@povio/openapi-codegen-cli 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var HS=Object.create;var ii=Object.defineProperty;var US=Object.getOwnPropertyDescriptor;var zS=Object.getOwnPropertyNames;var GS=Object.getPrototypeOf,ZS=Object.prototype.hasOwnProperty;var s=(e,t)=>ii(e,"name",{value:t,configurable:!0});var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),KS=(e,t)=>{for(var r in t)ii(e,r,{get:t[r],enumerable:!0})},Gp=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zS(t))!ZS.call(e,i)&&i!==r&&ii(e,i,{get:()=>t[i],enumerable:!(n=US(t,i))||n.enumerable});return e};var De=(e,t,r)=>(r=e!=null?HS(GS(e)):{},Gp(t||!e||!e.__esModule?ii(r,"default",{value:e,enumerable:!0}):r,e)),WS=e=>Gp(ii({},"__esModule",{value:!0}),e);var Ce=m((Te,Kp)=>{"use strict";var Po=/^win/.test(process.platform),YS=/\//g,QS=/^(\w{2,}):\/\//i,Zp=Kp.exports,JS=/~1/g,XS=/~0/g,Ra=[/\?/g,"%3F",/\#/g,"%23"],Ta=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];Te.parse=require("url").parse;Te.resolve=require("url").resolve;Te.cwd=s(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");Te.getProtocol=s(function(t){let r=QS.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");Te.getExtension=s(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");Te.getHash=s(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");Te.stripHash=s(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");Te.isHttp=s(function(t){let r=Zp.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");Te.isFileSystemPath=s(function(t){if(process.browser)return!1;let r=Zp.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");Te.fromFileSystemPath=s(function(t){Po&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<Ra.length;r+=2)t=t.replace(Ra[r],Ra[r+1]);return t},"fromFileSystemPath");Te.toFileSystemPath=s(function(t,r){t=decodeURI(t);for(let i=0;i<Ta.length;i+=2)t=t.replace(Ta[i],Ta[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),Po&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=Po?t:"/"+t)),Po&&!n&&(t=t.replace(YS,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");Te.safePointerToPath=s(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(JS,"/").replace(XS,"~"))},"safePointerToPath")});var $o=m(oi=>{"use strict";var Wp=require("util"),e2=Ce();oi.format=Wp.format;oi.inherits=Wp.inherits;oi.swaggerParamRegExp=/\{([^/}]+)}/g;var t2=["get","post","put","delete","patch","options","head","trace"];function Ca(e,t){if(e.url&&e.url.startsWith("/")){let r=e2.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}s(Ca,"fixServers");function r2(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>Ca(r,t)),["paths","webhooks"].forEach(r=>{Object.keys(e[r]||[]).forEach(n=>{let i=e[r][n];Object.keys(i).forEach(o=>{o==="servers"?i[o].map(a=>Ca(a,t)):t2.includes(o)&&i[o].servers&&i[o].servers.map(a=>Ca(a,t))})})}))}s(r2,"fixOasRelativeServers");oi.fixOasRelativeServers=r2});var Oo=m(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.getDeepKeys=Xr.toJSON=void 0;var n2=["function","symbol","undefined"],i2=["constructor","prototype","__proto__"],o2=Object.getPrototypeOf({});function s2(){let e={},t=this;for(let r of Yp(t))if(typeof r=="string"){let n=t[r],i=typeof n;n2.includes(i)||(e[r]=n)}return e}s(s2,"toJSON");Xr.toJSON=s2;function Yp(e,t=[]){let r=[];for(;e&&e!==o2;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(i2))n.delete(i);return n}s(Yp,"getDeepKeys");Xr.getDeepKeys=Yp});var Na=m(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.addInspectMethod=en.format=void 0;var Qp=require("util"),a2=Oo(),Jp=Qp.inspect.custom||Symbol.for("nodejs.util.inspect.custom");en.format=Qp.format;function u2(e){e[Jp]=c2}s(u2,"addInspectMethod");en.addInspectMethod=u2;function c2(){let e={},t=this;for(let r of a2.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[Jp],e}s(c2,"inspect")});var td=m(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.lazyJoinStacks=pt.joinStacks=pt.isWritableStack=pt.isLazyStack=void 0;var l2=/\r?\n/,f2=/\bono[ @]/;function p2(e){return!!(e&&e.configurable&&typeof e.get=="function")}s(p2,"isLazyStack");pt.isLazyStack=p2;function d2(e){return!!(!e||e.writable||typeof e.set=="function")}s(d2,"isWritableStack");pt.isWritableStack=d2;function Xp(e,t){let r=ed(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:s}}o($2,"normalizeArgs");tn.normalizeArgs=$2});var Ma=m(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.Ono=void 0;var Ao=od(),ad=sd(),O2=Eo(),E2=ja;Io.Ono=E2;function ja(e,t){t=ad.normalizeOptions(t);function r(...n){let{originalError:i,props:s,message:a}=ad.normalizeArgs(n,t),u=new e(a);return Ao.extendError(u,i,s)}return o(r,"ono"),r[Symbol.species]=e,r}o(ja,"Ono");ja.toJSON=o(function(t){return O2.toJSON.call(t)},"toJSON");ja.extend=o(function(t,r,n){return n||r instanceof Error?Ao.extendError(t,r,n):r?Ao.extendError(t,void 0,r):Ao.extendError(t)},"extend")});var ud=m(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.ono=void 0;var vr=Ma(),x2=dt;ko.ono=x2;dt.error=new vr.Ono(Error);dt.eval=new vr.Ono(EvalError);dt.range=new vr.Ono(RangeError);dt.reference=new vr.Ono(ReferenceError);dt.syntax=new vr.Ono(SyntaxError);dt.type=new vr.Ono(TypeError);dt.uri=new vr.Ono(URIError);var w2=dt;function dt(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(w2))if(typeof r=="function"&&r.name==="ono"){let n=r[Symbol.species];if(n&&n!==Error&&(t instanceof n||t.name===n.name))return r.apply(void 0,e)}}return dt.error.apply(void 0,e)}o(dt,"ono")});var ld=m(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});var vq=require("util")});var Qe=m((Ye,rn)=>{"use strict";var A2=Ye&&Ye.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:o(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),I2=Ye&&Ye.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&A2(t,e,r)};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.ono=void 0;var fd=ud();Object.defineProperty(Ye,"ono",{enumerable:!0,get:o(function(){return fd.ono},"get")});var k2=Ma();Object.defineProperty(Ye,"Ono",{enumerable:!0,get:o(function(){return k2.Ono},"get")});I2(ld(),Ye);Ye.default=fd.ono;typeof rn=="object"&&typeof rn.exports=="object"&&(rn.exports=Object.assign(rn.exports.default,rn.exports))});var ci=m(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.regexpCode=q.getEsmExportName=q.getProperty=q.safeStringify=q.stringify=q.strConcat=q.addCodeArg=q.str=q._=q.nil=q._Code=q.Name=q.IDENTIFIER=q._CodeOrName=void 0;var Fa=class Fa{};o(Fa,"_CodeOrName");var ai=Fa;q._CodeOrName=ai;q.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Va=class Va extends ai{constructor(t){if(super(),!q.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};o(Va,"Name");var _r=Va;q.Name=_r;var Ba=class Ba extends ai{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof _r&&(r[n.str]=(r[n.str]||0)+1),r),{})}};o(Ba,"_Code");var Le=Ba;q._Code=Le;q.nil=new Le("");function pd(e,...t){let r=[e[0]],n=0;for(;n<t.length;)La(r,t[n]),r.push(e[++n]);return new Le(r)}o(pd,"_");q._=pd;var Da=new Le("+");function dd(e,...t){let r=[ui(e[0])],n=0;for(;n<t.length;)r.push(Da),La(r,t[n]),r.push(Da,ui(e[++n]));return R2(r),new Le(r)}o(dd,"str");q.str=dd;function La(e,t){t instanceof Le?e.push(...t._items):t instanceof _r?e.push(t):e.push(N2(t))}o(La,"addCodeArg");q.addCodeArg=La;function R2(e){let t=1;for(;t<e.length-1;){if(e[t]===Da){let r=T2(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}o(R2,"optimize");function T2(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof _r||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof _r))return`"${e}${t.slice(1)}`}o(T2,"mergeExprItems");function C2(e,t){return t.emptyStr()?e:e.emptyStr()?t:dd`${e}${t}`}o(C2,"strConcat");q.strConcat=C2;function N2(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ui(Array.isArray(e)?e.join(","):e)}o(N2,"interpolate");function q2(e){return new Le(ui(e))}o(q2,"stringify");q.stringify=q2;function ui(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(ui,"safeStringify");q.safeStringify=ui;function j2(e){return typeof e=="string"&&q.IDENTIFIER.test(e)?new Le(`.${e}`):pd`[${e}]`}o(j2,"getProperty");q.getProperty=j2;function M2(e){if(typeof e=="string"&&q.IDENTIFIER.test(e))return new Le(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}o(M2,"getEsmExportName");q.getEsmExportName=M2;function D2(e){return new Le(e.toString())}o(D2,"regexpCode");q.regexpCode=D2});var Wa=m(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.ValueScope=we.ValueScopeName=we.Scope=we.varKinds=we.UsedValueState=void 0;var xe=ci(),za=class za extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};o(za,"ValueError");var Ha=za,Ro;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Ro||(we.UsedValueState=Ro={}));we.varKinds={const:new xe.Name("const"),let:new xe.Name("let"),var:new xe.Name("var")};var Ga=class Ga{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof xe.Name?t:this.name(t)}name(t){return new xe.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};o(Ga,"Scope");var To=Ga;we.Scope=To;var Za=class Za extends xe.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,xe._)`.${new xe.Name(r)}[${n}]`}};o(Za,"ValueScopeName");var Co=Za;we.ValueScopeName=Co;var L2=(0,xe._)`\n`,Ka=class Ka extends To{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?L2:xe.nil}}get(){return this._scope}name(t){return new Co(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:s}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,u=this._values[s];if(u){let p=u.get(a);if(p)return p}else u=this._values[s]=new Map;u.set(a,i);let c=this._scope[s]||(this._scope[s]=[]),l=c.length;return c[l]=r.ref,i.setValue(r,{property:s,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,xe._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let s=xe.nil;for(let a in t){let u=t[a];if(!u)continue;let c=n[a]=n[a]||new Map;u.forEach(l=>{if(c.has(l))return;c.set(l,Ro.Started);let p=r(l);if(p){let f=this.opts.es5?we.varKinds.var:we.varKinds.const;s=(0,xe._)`${s}${f} ${l} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(l))s=(0,xe._)`${s}${p}${this.opts._n}`;else throw new Ha(l);c.set(l,Ro.Completed)})}return s}};o(Ka,"ValueScope");var Ua=Ka;we.ValueScope=Ua});var A=m(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.or=k.and=k.not=k.CodeGen=k.operators=k.varKinds=k.ValueScopeName=k.ValueScope=k.Scope=k.Name=k.regexpCode=k.stringify=k.getProperty=k.nil=k.strConcat=k.str=k._=void 0;var C=ci(),Je=Wa(),Ht=ci();Object.defineProperty(k,"_",{enumerable:!0,get:o(function(){return Ht._},"get")});Object.defineProperty(k,"str",{enumerable:!0,get:o(function(){return Ht.str},"get")});Object.defineProperty(k,"strConcat",{enumerable:!0,get:o(function(){return Ht.strConcat},"get")});Object.defineProperty(k,"nil",{enumerable:!0,get:o(function(){return Ht.nil},"get")});Object.defineProperty(k,"getProperty",{enumerable:!0,get:o(function(){return Ht.getProperty},"get")});Object.defineProperty(k,"stringify",{enumerable:!0,get:o(function(){return Ht.stringify},"get")});Object.defineProperty(k,"regexpCode",{enumerable:!0,get:o(function(){return Ht.regexpCode},"get")});Object.defineProperty(k,"Name",{enumerable:!0,get:o(function(){return Ht.Name},"get")});var Mo=Wa();Object.defineProperty(k,"Scope",{enumerable:!0,get:o(function(){return Mo.Scope},"get")});Object.defineProperty(k,"ValueScope",{enumerable:!0,get:o(function(){return Mo.ValueScope},"get")});Object.defineProperty(k,"ValueScopeName",{enumerable:!0,get:o(function(){return Mo.ValueScopeName},"get")});Object.defineProperty(k,"varKinds",{enumerable:!0,get:o(function(){return Mo.varKinds},"get")});k.operators={GT:new C._Code(">"),GTE:new C._Code(">="),LT:new C._Code("<"),LTE:new C._Code("<="),EQ:new C._Code("==="),NEQ:new C._Code("!=="),NOT:new C._Code("!"),OR:new C._Code("||"),AND:new C._Code("&&"),ADD:new C._Code("+")};var uu=class uu{optimizeNodes(){return this}optimizeNames(t,r){return this}};o(uu,"Node");var Rt=uu,cu=class cu extends Rt{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Je.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=sn(this.rhs,t,r)),this}get names(){return this.rhs instanceof C._CodeOrName?this.rhs.names:{}}};o(cu,"Def");var Ya=cu,lu=class lu extends Rt{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof C.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=sn(this.rhs,t,r),this}get names(){let t=this.lhs instanceof C.Name?{}:{...this.lhs.names};return jo(t,this.rhs)}};o(lu,"Assign");var No=lu,fu=class fu extends No{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};o(fu,"AssignOp");var Qa=fu,pu=class pu extends Rt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};o(pu,"Label");var Ja=pu,du=class du extends Rt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};o(du,"Break");var Xa=du,hu=class hu extends Rt{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};o(hu,"Throw");var eu=hu,mu=class mu extends Rt{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=sn(this.code,t,r),this}get names(){return this.code instanceof C._CodeOrName?this.code.names:{}}};o(mu,"AnyCode");var tu=mu,gu=class gu extends Rt{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let s=n[i];s.optimizeNames(t,r)||(F2(t,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Pr(t,r.names),{})}};o(gu,"ParentNode");var li=gu,yu=class yu extends li{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};o(yu,"BlockNode");var Tt=yu,vu=class vu extends li{};o(vu,"Root");var ru=vu,_u=class _u extends Tt{};o(_u,"Else");var on=_u;on.kind="else";var nn=class nn extends Tt{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new on(n):n}if(r)return t===!1?r instanceof nn?r:r.nodes:this.nodes.length?this:new nn(hd(t),r instanceof nn?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=sn(this.condition,t,r),this}get names(){let t=super.names;return jo(t,this.condition),this.else&&Pr(t,this.else.names),t}};o(nn,"If");var br=nn;br.kind="if";var bu=class bu extends Tt{};o(bu,"For");var Sr=bu;Sr.kind="for";var Su=class Su extends Sr{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=sn(this.iteration,t,r),this}get names(){return Pr(super.names,this.iteration.names)}};o(Su,"ForLoop");var nu=Su,Pu=class Pu extends Sr{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?Je.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${r} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(t)}get names(){let t=jo(super.names,this.from);return jo(t,this.to)}};o(Pu,"ForRange");var iu=Pu,$u=class $u extends Sr{constructor(t,r,n,i){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=sn(this.iterable,t,r),this}get names(){return Pr(super.names,this.iterable.names)}};o($u,"ForIter");var qo=$u,Ou=class Ou extends Tt{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};o(Ou,"Func");var fi=Ou;fi.kind="func";var Eu=class Eu extends li{render(t){return"return "+super.render(t)}};o(Eu,"Return");var pi=Eu;pi.kind="return";var xu=class xu extends Tt{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,i;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(i=this.finally)===null||i===void 0||i.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&Pr(t,this.catch.names),this.finally&&Pr(t,this.finally.names),t}};o(xu,"Try");var ou=xu,wu=class wu extends Tt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};o(wu,"Catch");var di=wu;di.kind="catch";var Au=class Au extends Tt{render(t){return"finally"+super.render(t)}};o(Au,"Finally");var hi=Au;hi.kind="finally";var Iu=class Iu{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
6
|
-
`:""},this._extScope=t,this._scope=new Je.Scope({parent:t}),this._nodes=[new ru]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let s=this._scope.toName(r);return n!==void 0&&i&&(this._constants[s.str]=n),this._leafNode(new Ya(t,s,n)),s}const(t,r,n){return this._def(Je.varKinds.const,t,r,n)}let(t,r,n){return this._def(Je.varKinds.let,t,r,n)}var(t,r,n){return this._def(Je.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new No(t,r,n))}add(t,r){return this._leafNode(new Qa(t,k.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==C.nil&&this._leafNode(new tu(t)),this}object(...t){let r=["{"];for(let[n,i]of t)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,C.addCodeArg)(r,i));return r.push("}"),new C._Code(r)}if(t,r,n){if(this._blockNode(new br(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new br(t))}else(){return this._elseNode(new on)}endIf(){return this._endBlockNode(br,on)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new nu(t),r)}forRange(t,r,n,i,s=this.opts.es5?Je.varKinds.var:Je.varKinds.let){let a=this._scope.toName(t);return this._for(new iu(s,a,r,n),()=>i(a))}forOf(t,r,n,i=Je.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let a=r instanceof C.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,C._)`${a}.length`,u=>{this.var(s,(0,C._)`${a}[${u}]`),n(s)})}return this._for(new qo("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?Je.varKinds.var:Je.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,C._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new qo("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(Sr)}label(t){return this._leafNode(new Ja(t))}break(t){return this._leafNode(new Xa(t))}return(t){let r=new pi;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(pi)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new ou;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new di(s),r(s)}return n&&(this._currNode=i.finally=new hi,this.code(n)),this._endBlockNode(di,hi)}throw(t){return this._leafNode(new eu(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=C.nil,n,i){return this._blockNode(new fi(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(fi)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof br))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};o(Iu,"CodeGen");var su=Iu;k.CodeGen=su;function Pr(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}o(Pr,"addNames");function jo(e,t){return t instanceof C._CodeOrName?Pr(e,t.names):e}o(jo,"addExprNames");function sn(e,t,r){if(e instanceof C.Name)return n(e);if(!i(e))return e;return new C._Code(e._items.reduce((s,a)=>(a instanceof C.Name&&(a=n(a)),a instanceof C._Code?s.push(...a._items):s.push(a),s),[]));function n(s){let a=r[s.str];return a===void 0||t[s.str]!==1?s:(delete t[s.str],a)}function i(s){return s instanceof C._Code&&s._items.some(a=>a instanceof C.Name&&t[a.str]===1&&r[a.str]!==void 0)}}o(sn,"optimizeExpr");function F2(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}o(F2,"subtractNames");function hd(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,C._)`!${au(e)}`}o(hd,"not");k.not=hd;var V2=md(k.operators.AND);function B2(...e){return e.reduce(V2)}o(B2,"and");k.and=B2;var H2=md(k.operators.OR);function U2(...e){return e.reduce(H2)}o(U2,"or");k.or=U2;function md(e){return(t,r)=>t===C.nil?r:r===C.nil?t:(0,C._)`${au(t)} ${e} ${au(r)}`}o(md,"mappend");function au(e){return e instanceof C.Name?e:(0,C._)`(${e})`}o(au,"par")});var T=m(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.checkStrictMode=R.getErrorPath=R.Type=R.useFunc=R.setEvaluated=R.evaluatedPropsToName=R.mergeEvaluated=R.eachItem=R.unescapeJsonPointer=R.escapeJsonPointer=R.escapeFragment=R.unescapeFragment=R.schemaRefOrVal=R.schemaHasRulesButRef=R.schemaHasRules=R.checkUnknownRules=R.alwaysValidSchema=R.toHash=void 0;var F=A(),z2=ci();function G2(e){let t={};for(let r of e)t[r]=!0;return t}o(G2,"toHash");R.toHash=G2;function Z2(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(vd(e,t),!_d(t,e.self.RULES.all))}o(Z2,"alwaysValidSchema");R.alwaysValidSchema=Z2;function vd(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let s in t)i[s]||Pd(e,`unknown keyword: "${s}"`)}o(vd,"checkUnknownRules");R.checkUnknownRules=vd;function _d(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}o(_d,"schemaHasRules");R.schemaHasRules=_d;function K2(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}o(K2,"schemaHasRulesButRef");R.schemaHasRulesButRef=K2;function W2({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,F._)`${r}`}return(0,F._)`${e}${t}${(0,F.getProperty)(n)}`}o(W2,"schemaRefOrVal");R.schemaRefOrVal=W2;function Y2(e){return bd(decodeURIComponent(e))}o(Y2,"unescapeFragment");R.unescapeFragment=Y2;function Q2(e){return encodeURIComponent(Ru(e))}o(Q2,"escapeFragment");R.escapeFragment=Q2;function Ru(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}o(Ru,"escapeJsonPointer");R.escapeJsonPointer=Ru;function bd(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(bd,"unescapeJsonPointer");R.unescapeJsonPointer=bd;function J2(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}o(J2,"eachItem");R.eachItem=J2;function gd({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,u)=>{let c=a===void 0?s:a instanceof F.Name?(s instanceof F.Name?e(i,s,a):t(i,s,a),a):s instanceof F.Name?(t(i,a,s),s):r(s,a);return u===F.Name&&!(c instanceof F.Name)?n(i,c):c}}o(gd,"makeMergeEvaluated");R.mergeEvaluated={props:gd({mergeNames:o((e,t,r)=>e.if((0,F._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,F._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,F._)`${r} || {}`).code((0,F._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,F._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,F._)`${r} || {}`),Tu(e,r,t))}),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:Sd}),items:gd({mergeNames:o((e,t,r)=>e.if((0,F._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,F._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,F._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,F._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:o((e,t)=>e.var("items",t),"resultToName")})};function Sd(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,F._)`{}`);return t!==void 0&&Tu(e,r,t),r}o(Sd,"evaluatedPropsToName");R.evaluatedPropsToName=Sd;function Tu(e,t,r){Object.keys(r).forEach(n=>e.assign((0,F._)`${t}${(0,F.getProperty)(n)}`,!0))}o(Tu,"setEvaluated");R.setEvaluated=Tu;var yd={};function X2(e,t){return e.scopeValue("func",{ref:t,code:yd[t.code]||(yd[t.code]=new z2._Code(t.code))})}o(X2,"useFunc");R.useFunc=X2;var ku;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(ku||(R.Type=ku={}));function e1(e,t,r){if(e instanceof F.Name){let n=t===ku.Num;return r?n?(0,F._)`"[" + ${e} + "]"`:(0,F._)`"['" + ${e} + "']"`:n?(0,F._)`"/" + ${e}`:(0,F._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,F.getProperty)(e).toString():"/"+Ru(e)}o(e1,"getErrorPath");R.getErrorPath=e1;function Pd(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}o(Pd,"checkStrictMode");R.checkStrictMode=Pd});var Fe=m(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});var fe=A(),t1={data:new fe.Name("data"),valCxt:new fe.Name("valCxt"),instancePath:new fe.Name("instancePath"),parentData:new fe.Name("parentData"),parentDataProperty:new fe.Name("parentDataProperty"),rootData:new fe.Name("rootData"),dynamicAnchors:new fe.Name("dynamicAnchors"),vErrors:new fe.Name("vErrors"),errors:new fe.Name("errors"),this:new fe.Name("this"),self:new fe.Name("self"),scope:new fe.Name("scope"),json:new fe.Name("json"),jsonPos:new fe.Name("jsonPos"),jsonLen:new fe.Name("jsonLen"),jsonPart:new fe.Name("jsonPart")};Cu.default=t1});var mi=m(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.extendErrors=pe.resetErrorsCount=pe.reportExtraError=pe.reportError=pe.keyword$DataError=pe.keywordError=void 0;var N=A(),Do=T(),_e=Fe();pe.keywordError={message:o(({keyword:e})=>(0,N.str)`must pass "${e}" keyword validation`,"message")};pe.keyword$DataError={message:o(({keyword:e,schemaType:t})=>t?(0,N.str)`"${e}" keyword must be ${t} ($data)`:(0,N.str)`"${e}" keyword is invalid ($data)`,"message")};function r1(e,t=pe.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:u}=i,c=Ed(e,t,r);n??(a||u)?$d(s,c):Od(i,(0,N._)`[${c}]`)}o(r1,"reportError");pe.reportError=r1;function n1(e,t=pe.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,u=Ed(e,t,r);$d(i,u),s||a||Od(n,_e.default.vErrors)}o(n1,"reportExtraError");pe.reportExtraError=n1;function i1(e,t){e.assign(_e.default.errors,t),e.if((0,N._)`${_e.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,N._)`${_e.default.vErrors}.length`,t),()=>e.assign(_e.default.vErrors,null)))}o(i1,"resetErrorsCount");pe.resetErrorsCount=i1;function o1({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,_e.default.errors,u=>{e.const(a,(0,N._)`${_e.default.vErrors}[${u}]`),e.if((0,N._)`${a}.instancePath === undefined`,()=>e.assign((0,N._)`${a}.instancePath`,(0,N.strConcat)(_e.default.instancePath,s.errorPath))),e.assign((0,N._)`${a}.schemaPath`,(0,N.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,N._)`${a}.schema`,r),e.assign((0,N._)`${a}.data`,n))})}o(o1,"extendErrors");pe.extendErrors=o1;function $d(e,t){let r=e.const("err",t);e.if((0,N._)`${_e.default.vErrors} === null`,()=>e.assign(_e.default.vErrors,(0,N._)`[${r}]`),(0,N._)`${_e.default.vErrors}.push(${r})`),e.code((0,N._)`${_e.default.errors}++`)}o($d,"addError");function Od(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,N._)`new ${e.ValidationError}(${t})`):(r.assign((0,N._)`${n}.errors`,t),r.return(!1))}o(Od,"returnErrors");var $r={keyword:new N.Name("keyword"),schemaPath:new N.Name("schemaPath"),params:new N.Name("params"),propertyName:new N.Name("propertyName"),message:new N.Name("message"),schema:new N.Name("schema"),parentSchema:new N.Name("parentSchema")};function Ed(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,N._)`{}`:s1(e,t,r)}o(Ed,"errorObjectCode");function s1(e,t,r={}){let{gen:n,it:i}=e,s=[a1(i,r),u1(e,r)];return c1(e,t,s),n.object(...s)}o(s1,"errorObject");function a1({errorPath:e},{instancePath:t}){let r=t?(0,N.str)`${e}${(0,Do.getErrorPath)(t,Do.Type.Str)}`:e;return[_e.default.instancePath,(0,N.strConcat)(_e.default.instancePath,r)]}o(a1,"errorInstancePath");function u1({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,N.str)`${t}/${e}`;return r&&(i=(0,N.str)`${i}${(0,Do.getErrorPath)(r,Do.Type.Str)}`),[$r.schemaPath,i]}o(u1,"errorSchemaPath");function c1(e,{params:t,message:r},n){let{keyword:i,data:s,schemaValue:a,it:u}=e,{opts:c,propertyName:l,topSchemaRef:p,schemaPath:f}=u;n.push([$r.keyword,i],[$r.params,typeof t=="function"?t(e):t||(0,N._)`{}`]),c.messages&&n.push([$r.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([$r.schema,a],[$r.parentSchema,(0,N._)`${p}${f}`],[_e.default.data,s]),l&&n.push([$r.propertyName,l])}o(c1,"extraErrorProps")});var wd=m(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.boolOrEmptySchema=an.topBoolOrEmptySchema=void 0;var l1=mi(),f1=A(),p1=Fe(),d1={message:"boolean schema is false"};function h1(e){let{gen:t,schema:r,validateName:n}=e;r===!1?xd(e,!1):typeof r=="object"&&r.$async===!0?t.return(p1.default.data):(t.assign((0,f1._)`${n}.errors`,null),t.return(!0))}o(h1,"topBoolOrEmptySchema");an.topBoolOrEmptySchema=h1;function m1(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),xd(e)):r.var(t,!0)}o(m1,"boolOrEmptySchema");an.boolOrEmptySchema=m1;function xd(e,t){let{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,l1.reportError)(i,d1,void 0,t)}o(xd,"falseSchemaError")});var Nu=m(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.getRules=un.isJSONType=void 0;var g1=["string","number","integer","boolean","null","object","array"],y1=new Set(g1);function v1(e){return typeof e=="string"&&y1.has(e)}o(v1,"isJSONType");un.isJSONType=v1;function _1(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}o(_1,"getRules");un.getRules=_1});var qu=m(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.shouldUseRule=Ut.shouldUseGroup=Ut.schemaHasRulesForType=void 0;function b1({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Ad(e,n)}o(b1,"schemaHasRulesForType");Ut.schemaHasRulesForType=b1;function Ad(e,t){return t.rules.some(r=>Id(e,r))}o(Ad,"shouldUseGroup");Ut.shouldUseGroup=Ad;function Id(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}o(Id,"shouldUseRule");Ut.shouldUseRule=Id});var gi=m(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.reportTypeError=de.checkDataTypes=de.checkDataType=de.coerceAndCheckDataType=de.getJSONTypes=de.getSchemaTypes=de.DataType=void 0;var S1=Nu(),P1=qu(),$1=mi(),I=A(),kd=T(),cn;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(cn||(de.DataType=cn={}));function O1(e){let t=Rd(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}o(O1,"getSchemaTypes");de.getSchemaTypes=O1;function Rd(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(S1.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}o(Rd,"getJSONTypes");de.getJSONTypes=Rd;function E1(e,t){let{gen:r,data:n,opts:i}=e,s=x1(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,P1.schemaHasRulesForType)(e,t[0]));if(a){let u=Mu(t,n,i.strictNumbers,cn.Wrong);r.if(u,()=>{s.length?w1(e,t,s):Du(e)})}return a}o(E1,"coerceAndCheckDataType");de.coerceAndCheckDataType=E1;var Td=new Set(["string","number","integer","boolean","null"]);function x1(e,t){return t?e.filter(r=>Td.has(r)||t==="array"&&r==="array"):[]}o(x1,"coerceToTypes");function w1(e,t,r){let{gen:n,data:i,opts:s}=e,a=n.let("dataType",(0,I._)`typeof ${i}`),u=n.let("coerced",(0,I._)`undefined`);s.coerceTypes==="array"&&n.if((0,I._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,I._)`${i}[0]`).assign(a,(0,I._)`typeof ${i}`).if(Mu(t,i,s.strictNumbers),()=>n.assign(u,i))),n.if((0,I._)`${u} !== undefined`);for(let l of r)(Td.has(l)||l==="array"&&s.coerceTypes==="array")&&c(l);n.else(),Du(e),n.endIf(),n.if((0,I._)`${u} !== undefined`,()=>{n.assign(i,u),A1(e,u)});function c(l){switch(l){case"string":n.elseIf((0,I._)`${a} == "number" || ${a} == "boolean"`).assign(u,(0,I._)`"" + ${i}`).elseIf((0,I._)`${i} === null`).assign(u,(0,I._)`""`);return;case"number":n.elseIf((0,I._)`${a} == "boolean" || ${i} === null
|
|
3
|
+
`+n:r||n}s(Xp,"joinStacks");pt.joinStacks=Xp;function h2(e,t,r){r?Object.defineProperty(t,"stack",{get:s(()=>{let n=e.get.apply(t);return Xp({stack:n},r)},"get"),enumerable:!1,configurable:!0}):m2(t,e)}s(h2,"lazyJoinStacks");pt.lazyJoinStacks=h2;function ed(e){if(e){let t=e.split(l2),r;for(let n=0;n<t.length;n++){let i=t[n];if(f2.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}s(ed,"popStack");function m2(e,t){Object.defineProperty(e,"stack",{get:s(()=>ed(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}s(m2,"lazyPopStack")});var id=m(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.extendError=void 0;var rd=Na(),Eo=td(),nd=Oo(),g2=["name","message","stack"];function y2(e,t,r){let n=e;return v2(n,t),t&&typeof t=="object"&&_2(n,t),n.toJSON=nd.toJSON,rd.addInspectMethod&&rd.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}s(y2,"extendError");xo.extendError=y2;function v2(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");Eo.isLazyStack(r)?Eo.lazyJoinStacks(r,e,t):Eo.isWritableStack(r)&&(e.stack=Eo.joinStacks(e,t))}s(v2,"extendStack");function _2(e,t){let r=nd.getDeepKeys(t,g2),n=e,i=t;for(let o of r)if(n[o]===void 0)try{n[o]=i[o]}catch{}}s(_2,"mergeErrors")});var od=m(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.normalizeArgs=tn.normalizeOptions=void 0;var b2=Na();function S2(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?b2.format:typeof e.format=="function"?e.format:!1}}s(S2,"normalizeOptions");tn.normalizeOptions=S2;function P2(e,t){let r,n,i,o="";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?o=t.format.apply(void 0,i):o=i.join(" ")),t.concatMessages&&r&&r.message&&(o+=(o?`
|
|
5
|
+
`:"")+r.message),{originalError:r,props:n,message:o}}s(P2,"normalizeArgs");tn.normalizeArgs=P2});var ja=m(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.Ono=void 0;var wo=id(),sd=od(),$2=Oo(),O2=qa;Ao.Ono=O2;function qa(e,t){t=sd.normalizeOptions(t);function r(...n){let{originalError:i,props:o,message:a}=sd.normalizeArgs(n,t),u=new e(a);return wo.extendError(u,i,o)}return s(r,"ono"),r[Symbol.species]=e,r}s(qa,"Ono");qa.toJSON=s(function(t){return $2.toJSON.call(t)},"toJSON");qa.extend=s(function(t,r,n){return n||r instanceof Error?wo.extendError(t,r,n):r?wo.extendError(t,void 0,r):wo.extendError(t)},"extend")});var ad=m(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.ono=void 0;var vr=ja(),E2=dt;Io.ono=E2;dt.error=new vr.Ono(Error);dt.eval=new vr.Ono(EvalError);dt.range=new vr.Ono(RangeError);dt.reference=new vr.Ono(ReferenceError);dt.syntax=new vr.Ono(SyntaxError);dt.type=new vr.Ono(TypeError);dt.uri=new vr.Ono(URIError);var x2=dt;function dt(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(x2))if(typeof r=="function"&&r.name==="ono"){let n=r[Symbol.species];if(n&&n!==Error&&(t instanceof n||t.name===n.name))return r.apply(void 0,e)}}return dt.error.apply(void 0,e)}s(dt,"ono")});var cd=m(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});var gq=require("util")});var Qe=m((Ye,rn)=>{"use strict";var w2=Ye&&Ye.__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]}),A2=Ye&&Ye.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&w2(t,e,r)};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.ono=void 0;var ld=ad();Object.defineProperty(Ye,"ono",{enumerable:!0,get:s(function(){return ld.ono},"get")});var I2=ja();Object.defineProperty(Ye,"Ono",{enumerable:!0,get:s(function(){return I2.Ono},"get")});A2(cd(),Ye);Ye.default=ld.ono;typeof rn=="object"&&typeof rn.exports=="object"&&(rn.exports=Object.assign(rn.exports.default,rn.exports))});var ui=m(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.regexpCode=q.getEsmExportName=q.getProperty=q.safeStringify=q.stringify=q.strConcat=q.addCodeArg=q.str=q._=q.nil=q._Code=q.Name=q.IDENTIFIER=q._CodeOrName=void 0;var La=class La{};s(La,"_CodeOrName");var si=La;q._CodeOrName=si;q.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Fa=class Fa extends si{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}}};s(Fa,"Name");var _r=Fa;q.Name=_r;var Va=class Va extends si{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),{})}};s(Va,"_Code");var Le=Va;q._Code=Le;q.nil=new Le("");function fd(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Da(r,t[n]),r.push(e[++n]);return new Le(r)}s(fd,"_");q._=fd;var Ma=new Le("+");function pd(e,...t){let r=[ai(e[0])],n=0;for(;n<t.length;)r.push(Ma),Da(r,t[n]),r.push(Ma,ai(e[++n]));return k2(r),new Le(r)}s(pd,"str");q.str=pd;function Da(e,t){t instanceof Le?e.push(...t._items):t instanceof _r?e.push(t):e.push(C2(t))}s(Da,"addCodeArg");q.addCodeArg=Da;function k2(e){let t=1;for(;t<e.length-1;){if(e[t]===Ma){let r=R2(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}s(k2,"optimize");function R2(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)}`}s(R2,"mergeExprItems");function T2(e,t){return t.emptyStr()?e:e.emptyStr()?t:pd`${e}${t}`}s(T2,"strConcat");q.strConcat=T2;function C2(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ai(Array.isArray(e)?e.join(","):e)}s(C2,"interpolate");function N2(e){return new Le(ai(e))}s(N2,"stringify");q.stringify=N2;function ai(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}s(ai,"safeStringify");q.safeStringify=ai;function q2(e){return typeof e=="string"&&q.IDENTIFIER.test(e)?new Le(`.${e}`):fd`[${e}]`}s(q2,"getProperty");q.getProperty=q2;function j2(e){if(typeof e=="string"&&q.IDENTIFIER.test(e))return new Le(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}s(j2,"getEsmExportName");q.getEsmExportName=j2;function M2(e){return new Le(e.toString())}s(M2,"regexpCode");q.regexpCode=M2});var Ka=m(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.ValueScope=we.ValueScopeName=we.Scope=we.varKinds=we.UsedValueState=void 0;var xe=ui(),Ua=class Ua extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};s(Ua,"ValueError");var Ba=Ua,ko;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(ko||(we.UsedValueState=ko={}));we.varKinds={const:new xe.Name("const"),let:new xe.Name("let"),var:new xe.Name("var")};var za=class za{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(za,"Scope");var Ro=za;we.Scope=Ro;var Ga=class Ga 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(Ga,"ValueScopeName");var To=Ga;we.ValueScopeName=To;var D2=(0,xe._)`\n`,Za=class Za extends Ro{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?D2:xe.nil}}get(){return this._scope}name(t){return new To(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,u=this._values[o];if(u){let p=u.get(a);if(p)return p}else u=this._values[o]=new Map;u.set(a,i);let c=this._scope[o]||(this._scope[o]=[]),l=c.length;return c[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 u=t[a];if(!u)continue;let c=n[a]=n[a]||new Map;u.forEach(l=>{if(c.has(l))return;c.set(l,ko.Started);let p=r(l);if(p){let f=this.opts.es5?we.varKinds.var:we.varKinds.const;o=(0,xe._)`${o}${f} ${l} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(l))o=(0,xe._)`${o}${p}${this.opts._n}`;else throw new Ba(l);c.set(l,ko.Completed)})}return o}};s(Za,"ValueScope");var Ha=Za;we.ValueScope=Ha});var A=m(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.or=k.and=k.not=k.CodeGen=k.operators=k.varKinds=k.ValueScopeName=k.ValueScope=k.Scope=k.Name=k.regexpCode=k.stringify=k.getProperty=k.nil=k.strConcat=k.str=k._=void 0;var C=ui(),Je=Ka(),Ht=ui();Object.defineProperty(k,"_",{enumerable:!0,get:s(function(){return Ht._},"get")});Object.defineProperty(k,"str",{enumerable:!0,get:s(function(){return Ht.str},"get")});Object.defineProperty(k,"strConcat",{enumerable:!0,get:s(function(){return Ht.strConcat},"get")});Object.defineProperty(k,"nil",{enumerable:!0,get:s(function(){return Ht.nil},"get")});Object.defineProperty(k,"getProperty",{enumerable:!0,get:s(function(){return Ht.getProperty},"get")});Object.defineProperty(k,"stringify",{enumerable:!0,get:s(function(){return Ht.stringify},"get")});Object.defineProperty(k,"regexpCode",{enumerable:!0,get:s(function(){return Ht.regexpCode},"get")});Object.defineProperty(k,"Name",{enumerable:!0,get:s(function(){return Ht.Name},"get")});var jo=Ka();Object.defineProperty(k,"Scope",{enumerable:!0,get:s(function(){return jo.Scope},"get")});Object.defineProperty(k,"ValueScope",{enumerable:!0,get:s(function(){return jo.ValueScope},"get")});Object.defineProperty(k,"ValueScopeName",{enumerable:!0,get:s(function(){return jo.ValueScopeName},"get")});Object.defineProperty(k,"varKinds",{enumerable:!0,get:s(function(){return jo.varKinds},"get")});k.operators={GT:new C._Code(">"),GTE:new C._Code(">="),LT:new C._Code("<"),LTE:new C._Code("<="),EQ:new C._Code("==="),NEQ:new C._Code("!=="),NOT:new C._Code("!"),OR:new C._Code("||"),AND:new C._Code("&&"),ADD:new C._Code("+")};var au=class au{optimizeNodes(){return this}optimizeNames(t,r){return this}};s(au,"Node");var Rt=au,uu=class uu extends Rt{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Je.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=sn(this.rhs,t,r)),this}get names(){return this.rhs instanceof C._CodeOrName?this.rhs.names:{}}};s(uu,"Def");var Wa=uu,cu=class cu extends Rt{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof C.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=sn(this.rhs,t,r),this}get names(){let t=this.lhs instanceof C.Name?{}:{...this.lhs.names};return qo(t,this.rhs)}};s(cu,"Assign");var Co=cu,lu=class lu extends Co{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};s(lu,"AssignOp");var Ya=lu,fu=class fu extends Rt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};s(fu,"Label");var Qa=fu,pu=class pu extends Rt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};s(pu,"Break");var Ja=pu,du=class du extends Rt{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};s(du,"Throw");var Xa=du,hu=class hu extends Rt{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=sn(this.code,t,r),this}get names(){return this.code instanceof C._CodeOrName?this.code.names:{}}};s(hu,"AnyCode");var eu=hu,mu=class mu extends Rt{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(t,r)||(L2(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Pr(t,r.names),{})}};s(mu,"ParentNode");var ci=mu,gu=class gu extends ci{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};s(gu,"BlockNode");var Tt=gu,yu=class yu extends ci{};s(yu,"Root");var tu=yu,vu=class vu extends Tt{};s(vu,"Else");var on=vu;on.kind="else";var nn=class nn extends Tt{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new on(n):n}if(r)return t===!1?r instanceof nn?r:r.nodes:this.nodes.length?this:new nn(dd(t),r instanceof nn?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=sn(this.condition,t,r),this}get names(){let t=super.names;return qo(t,this.condition),this.else&&Pr(t,this.else.names),t}};s(nn,"If");var br=nn;br.kind="if";var _u=class _u extends Tt{};s(_u,"For");var Sr=_u;Sr.kind="for";var bu=class bu extends Sr{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=sn(this.iteration,t,r),this}get names(){return Pr(super.names,this.iteration.names)}};s(bu,"ForLoop");var ru=bu,Su=class Su extends Sr{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?Je.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(t)}get names(){let t=qo(super.names,this.from);return qo(t,this.to)}};s(Su,"ForRange");var nu=Su,Pu=class Pu extends Sr{constructor(t,r,n,i){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=sn(this.iterable,t,r),this}get names(){return Pr(super.names,this.iterable.names)}};s(Pu,"ForIter");var No=Pu,$u=class $u 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($u,"Func");var li=$u;li.kind="func";var Ou=class Ou extends ci{render(t){return"return "+super.render(t)}};s(Ou,"Return");var fi=Ou;fi.kind="return";var Eu=class Eu extends Tt{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,i;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(i=this.finally)===null||i===void 0||i.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&Pr(t,this.catch.names),this.finally&&Pr(t,this.finally.names),t}};s(Eu,"Try");var iu=Eu,xu=class xu extends Tt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};s(xu,"Catch");var pi=xu;pi.kind="catch";var wu=class wu extends Tt{render(t){return"finally"+super.render(t)}};s(wu,"Finally");var di=wu;di.kind="finally";var Au=class Au{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
6
|
+
`:""},this._extScope=t,this._scope=new Je.Scope({parent:t}),this._nodes=[new tu]}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 Wa(t,o,n)),o}const(t,r,n){return this._def(Je.varKinds.const,t,r,n)}let(t,r,n){return this._def(Je.varKinds.let,t,r,n)}var(t,r,n){return this._def(Je.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Co(t,r,n))}add(t,r){return this._leafNode(new Ya(t,k.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==C.nil&&this._leafNode(new eu(t)),this}object(...t){let r=["{"];for(let[n,i]of t)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,C.addCodeArg)(r,i));return r.push("}"),new C._Code(r)}if(t,r,n){if(this._blockNode(new br(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new br(t))}else(){return this._elseNode(new on)}endIf(){return this._endBlockNode(br,on)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new ru(t),r)}forRange(t,r,n,i,o=this.opts.es5?Je.varKinds.var:Je.varKinds.let){let a=this._scope.toName(t);return this._for(new nu(o,a,r,n),()=>i(a))}forOf(t,r,n,i=Je.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let a=r instanceof C.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,C._)`${a}.length`,u=>{this.var(o,(0,C._)`${a}[${u}]`),n(o)})}return this._for(new No("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?Je.varKinds.var:Je.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,C._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new No("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(Sr)}label(t){return this._leafNode(new Qa(t))}break(t){return this._leafNode(new Ja(t))}return(t){let r=new fi;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(fi)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new iu;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new pi(o),r(o)}return n&&(this._currNode=i.finally=new di,this.code(n)),this._endBlockNode(pi,di)}throw(t){return this._leafNode(new Xa(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 li(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(li)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof br))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};s(Au,"CodeGen");var ou=Au;k.CodeGen=ou;function Pr(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}s(Pr,"addNames");function qo(e,t){return t instanceof C._CodeOrName?Pr(e,t.names):e}s(qo,"addExprNames");function sn(e,t,r){if(e instanceof C.Name)return n(e);if(!i(e))return e;return new C._Code(e._items.reduce((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(sn,"optimizeExpr");function L2(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}s(L2,"subtractNames");function dd(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,C._)`!${su(e)}`}s(dd,"not");k.not=dd;var F2=hd(k.operators.AND);function V2(...e){return e.reduce(F2)}s(V2,"and");k.and=V2;var B2=hd(k.operators.OR);function H2(...e){return e.reduce(B2)}s(H2,"or");k.or=H2;function hd(e){return(t,r)=>t===C.nil?r:r===C.nil?t:(0,C._)`${su(t)} ${e} ${su(r)}`}s(hd,"mappend");function su(e){return e instanceof C.Name?e:(0,C._)`(${e})`}s(su,"par")});var T=m(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.checkStrictMode=R.getErrorPath=R.Type=R.useFunc=R.setEvaluated=R.evaluatedPropsToName=R.mergeEvaluated=R.eachItem=R.unescapeJsonPointer=R.escapeJsonPointer=R.escapeFragment=R.unescapeFragment=R.schemaRefOrVal=R.schemaHasRulesButRef=R.schemaHasRules=R.checkUnknownRules=R.alwaysValidSchema=R.toHash=void 0;var F=A(),U2=ui();function z2(e){let t={};for(let r of e)t[r]=!0;return t}s(z2,"toHash");R.toHash=z2;function G2(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(yd(e,t),!vd(t,e.self.RULES.all))}s(G2,"alwaysValidSchema");R.alwaysValidSchema=G2;function yd(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]||Sd(e,`unknown keyword: "${o}"`)}s(yd,"checkUnknownRules");R.checkUnknownRules=yd;function vd(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}s(vd,"schemaHasRules");R.schemaHasRules=vd;function Z2(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}s(Z2,"schemaHasRulesButRef");R.schemaHasRulesButRef=Z2;function K2({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,F._)`${r}`}return(0,F._)`${e}${t}${(0,F.getProperty)(n)}`}s(K2,"schemaRefOrVal");R.schemaRefOrVal=K2;function W2(e){return _d(decodeURIComponent(e))}s(W2,"unescapeFragment");R.unescapeFragment=W2;function Y2(e){return encodeURIComponent(ku(e))}s(Y2,"escapeFragment");R.escapeFragment=Y2;function ku(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}s(ku,"escapeJsonPointer");R.escapeJsonPointer=ku;function _d(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}s(_d,"unescapeJsonPointer");R.unescapeJsonPointer=_d;function Q2(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}s(Q2,"eachItem");R.eachItem=Q2;function md({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,a,u)=>{let c=a===void 0?o:a instanceof F.Name?(o instanceof F.Name?e(i,o,a):t(i,o,a),a):o instanceof F.Name?(t(i,a,o),o):r(o,a);return u===F.Name&&!(c instanceof F.Name)?n(i,c):c}}s(md,"makeMergeEvaluated");R.mergeEvaluated={props:md({mergeNames:s((e,t,r)=>e.if((0,F._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,F._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,F._)`${r} || {}`).code((0,F._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,F._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,F._)`${r} || {}`),Ru(e,r,t))}),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:bd}),items:md({mergeNames:s((e,t,r)=>e.if((0,F._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,F._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,F._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,F._)`${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 bd(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,F._)`{}`);return t!==void 0&&Ru(e,r,t),r}s(bd,"evaluatedPropsToName");R.evaluatedPropsToName=bd;function Ru(e,t,r){Object.keys(r).forEach(n=>e.assign((0,F._)`${t}${(0,F.getProperty)(n)}`,!0))}s(Ru,"setEvaluated");R.setEvaluated=Ru;var gd={};function J2(e,t){return e.scopeValue("func",{ref:t,code:gd[t.code]||(gd[t.code]=new U2._Code(t.code))})}s(J2,"useFunc");R.useFunc=J2;var Iu;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Iu||(R.Type=Iu={}));function X2(e,t,r){if(e instanceof F.Name){let n=t===Iu.Num;return r?n?(0,F._)`"[" + ${e} + "]"`:(0,F._)`"['" + ${e} + "']"`:n?(0,F._)`"/" + ${e}`:(0,F._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,F.getProperty)(e).toString():"/"+ku(e)}s(X2,"getErrorPath");R.getErrorPath=X2;function Sd(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(Sd,"checkStrictMode");R.checkStrictMode=Sd});var Fe=m(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});var fe=A(),e1={data:new fe.Name("data"),valCxt:new fe.Name("valCxt"),instancePath:new fe.Name("instancePath"),parentData:new fe.Name("parentData"),parentDataProperty:new fe.Name("parentDataProperty"),rootData:new fe.Name("rootData"),dynamicAnchors:new fe.Name("dynamicAnchors"),vErrors:new fe.Name("vErrors"),errors:new fe.Name("errors"),this:new fe.Name("this"),self:new fe.Name("self"),scope:new fe.Name("scope"),json:new fe.Name("json"),jsonPos:new fe.Name("jsonPos"),jsonLen:new fe.Name("jsonLen"),jsonPart:new fe.Name("jsonPart")};Tu.default=e1});var hi=m(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.extendErrors=pe.resetErrorsCount=pe.reportExtraError=pe.reportError=pe.keyword$DataError=pe.keywordError=void 0;var N=A(),Mo=T(),_e=Fe();pe.keywordError={message:s(({keyword:e})=>(0,N.str)`must pass "${e}" keyword validation`,"message")};pe.keyword$DataError={message:s(({keyword:e,schemaType:t})=>t?(0,N.str)`"${e}" keyword must be ${t} ($data)`:(0,N.str)`"${e}" keyword is invalid ($data)`,"message")};function t1(e,t=pe.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:a,allErrors:u}=i,c=Od(e,t,r);n??(a||u)?Pd(o,c):$d(i,(0,N._)`[${c}]`)}s(t1,"reportError");pe.reportError=t1;function r1(e,t=pe.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:a}=n,u=Od(e,t,r);Pd(i,u),o||a||$d(n,_e.default.vErrors)}s(r1,"reportExtraError");pe.reportExtraError=r1;function n1(e,t){e.assign(_e.default.errors,t),e.if((0,N._)`${_e.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,N._)`${_e.default.vErrors}.length`,t),()=>e.assign(_e.default.vErrors,null)))}s(n1,"resetErrorsCount");pe.resetErrorsCount=n1;function i1({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,_e.default.errors,u=>{e.const(a,(0,N._)`${_e.default.vErrors}[${u}]`),e.if((0,N._)`${a}.instancePath === undefined`,()=>e.assign((0,N._)`${a}.instancePath`,(0,N.strConcat)(_e.default.instancePath,o.errorPath))),e.assign((0,N._)`${a}.schemaPath`,(0,N.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,N._)`${a}.schema`,r),e.assign((0,N._)`${a}.data`,n))})}s(i1,"extendErrors");pe.extendErrors=i1;function Pd(e,t){let r=e.const("err",t);e.if((0,N._)`${_e.default.vErrors} === null`,()=>e.assign(_e.default.vErrors,(0,N._)`[${r}]`),(0,N._)`${_e.default.vErrors}.push(${r})`),e.code((0,N._)`${_e.default.errors}++`)}s(Pd,"addError");function $d(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,N._)`new ${e.ValidationError}(${t})`):(r.assign((0,N._)`${n}.errors`,t),r.return(!1))}s($d,"returnErrors");var $r={keyword:new N.Name("keyword"),schemaPath:new N.Name("schemaPath"),params:new N.Name("params"),propertyName:new N.Name("propertyName"),message:new N.Name("message"),schema:new N.Name("schema"),parentSchema:new N.Name("parentSchema")};function Od(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,N._)`{}`:o1(e,t,r)}s(Od,"errorObjectCode");function o1(e,t,r={}){let{gen:n,it:i}=e,o=[s1(i,r),a1(e,r)];return u1(e,t,o),n.object(...o)}s(o1,"errorObject");function s1({errorPath:e},{instancePath:t}){let r=t?(0,N.str)`${e}${(0,Mo.getErrorPath)(t,Mo.Type.Str)}`:e;return[_e.default.instancePath,(0,N.strConcat)(_e.default.instancePath,r)]}s(s1,"errorInstancePath");function a1({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,N.str)`${t}/${e}`;return r&&(i=(0,N.str)`${i}${(0,Mo.getErrorPath)(r,Mo.Type.Str)}`),[$r.schemaPath,i]}s(a1,"errorSchemaPath");function u1(e,{params:t,message:r},n){let{keyword:i,data:o,schemaValue:a,it:u}=e,{opts:c,propertyName:l,topSchemaRef:p,schemaPath:f}=u;n.push([$r.keyword,i],[$r.params,typeof t=="function"?t(e):t||(0,N._)`{}`]),c.messages&&n.push([$r.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([$r.schema,a],[$r.parentSchema,(0,N._)`${p}${f}`],[_e.default.data,o]),l&&n.push([$r.propertyName,l])}s(u1,"extraErrorProps")});var xd=m(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.boolOrEmptySchema=an.topBoolOrEmptySchema=void 0;var c1=hi(),l1=A(),f1=Fe(),p1={message:"boolean schema is false"};function d1(e){let{gen:t,schema:r,validateName:n}=e;r===!1?Ed(e,!1):typeof r=="object"&&r.$async===!0?t.return(f1.default.data):(t.assign((0,l1._)`${n}.errors`,null),t.return(!0))}s(d1,"topBoolOrEmptySchema");an.topBoolOrEmptySchema=d1;function h1(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Ed(e)):r.var(t,!0)}s(h1,"boolOrEmptySchema");an.boolOrEmptySchema=h1;function Ed(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,c1.reportError)(i,p1,void 0,t)}s(Ed,"falseSchemaError")});var Cu=m(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.getRules=un.isJSONType=void 0;var m1=["string","number","integer","boolean","null","object","array"],g1=new Set(m1);function y1(e){return typeof e=="string"&&g1.has(e)}s(y1,"isJSONType");un.isJSONType=y1;function v1(){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(v1,"getRules");un.getRules=v1});var Nu=m(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.shouldUseRule=Ut.shouldUseGroup=Ut.schemaHasRulesForType=void 0;function _1({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&wd(e,n)}s(_1,"schemaHasRulesForType");Ut.schemaHasRulesForType=_1;function wd(e,t){return t.rules.some(r=>Ad(e,r))}s(wd,"shouldUseGroup");Ut.shouldUseGroup=wd;function Ad(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(Ad,"shouldUseRule");Ut.shouldUseRule=Ad});var mi=m(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.reportTypeError=de.checkDataTypes=de.checkDataType=de.coerceAndCheckDataType=de.getJSONTypes=de.getSchemaTypes=de.DataType=void 0;var b1=Cu(),S1=Nu(),P1=hi(),I=A(),Id=T(),cn;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(cn||(de.DataType=cn={}));function $1(e){let t=kd(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($1,"getSchemaTypes");de.getSchemaTypes=$1;function kd(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(b1.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}s(kd,"getJSONTypes");de.getJSONTypes=kd;function O1(e,t){let{gen:r,data:n,opts:i}=e,o=E1(t,i.coerceTypes),a=t.length>0&&!(o.length===0&&t.length===1&&(0,S1.schemaHasRulesForType)(e,t[0]));if(a){let u=ju(t,n,i.strictNumbers,cn.Wrong);r.if(u,()=>{o.length?x1(e,t,o):Mu(e)})}return a}s(O1,"coerceAndCheckDataType");de.coerceAndCheckDataType=O1;var Rd=new Set(["string","number","integer","boolean","null"]);function E1(e,t){return t?e.filter(r=>Rd.has(r)||t==="array"&&r==="array"):[]}s(E1,"coerceToTypes");function x1(e,t,r){let{gen:n,data:i,opts:o}=e,a=n.let("dataType",(0,I._)`typeof ${i}`),u=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(ju(t,i,o.strictNumbers),()=>n.assign(u,i))),n.if((0,I._)`${u} !== undefined`);for(let l of r)(Rd.has(l)||l==="array"&&o.coerceTypes==="array")&&c(l);n.else(),Mu(e),n.endIf(),n.if((0,I._)`${u} !== undefined`,()=>{n.assign(i,u),w1(e,u)});function c(l){switch(l){case"string":n.elseIf((0,I._)`${a} == "number" || ${a} == "boolean"`).assign(u,(0,I._)`"" + ${i}`).elseIf((0,I._)`${i} === null`).assign(u,(0,I._)`""`);return;case"number":n.elseIf((0,I._)`${a} == "boolean" || ${i} === null
|
|
7
7
|
|| (${a} == "string" && ${i} && ${i} == +${i})`).assign(u,(0,I._)`+${i}`);return;case"integer":n.elseIf((0,I._)`${a} === "boolean" || ${i} === null
|
|
8
8
|
|| (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(u,(0,I._)`+${i}`);return;case"boolean":n.elseIf((0,I._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(u,!1).elseIf((0,I._)`${i} === "true" || ${i} === 1`).assign(u,!0);return;case"null":n.elseIf((0,I._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(u,null);return;case"array":n.elseIf((0,I._)`${a} === "string" || ${a} === "number"
|
|
9
|
-
|| ${a} === "boolean" || ${i} === null`).assign(u,(0,I._)`[${i}]`)}}o(c,"coerceSpecificType")}o(w1,"coerceData");function A1({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,I._)`${t} !== undefined`,()=>e.assign((0,I._)`${t}[${r}]`,n))}o(A1,"assignParentData");function ju(e,t,r,n=cn.Correct){let i=n===cn.Correct?I.operators.EQ:I.operators.NEQ,s;switch(e){case"null":return(0,I._)`${t} ${i} null`;case"array":s=(0,I._)`Array.isArray(${t})`;break;case"object":s=(0,I._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a((0,I._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return(0,I._)`typeof ${t} ${i} ${e}`}return n===cn.Correct?s:(0,I.not)(s);function a(u=I.nil){return(0,I.and)((0,I._)`typeof ${t} == "number"`,u,r?(0,I._)`isFinite(${t})`:I.nil)}}o(ju,"checkDataType");de.checkDataType=ju;function Mu(e,t,r,n){if(e.length===1)return ju(e[0],t,r,n);let i,s=(0,kd.toHash)(e);if(s.array&&s.object){let a=(0,I._)`typeof ${t} != "object"`;i=s.null?a:(0,I._)`!${t} || ${a}`,delete s.null,delete s.array,delete s.object}else i=I.nil;s.number&&delete s.integer;for(let a in s)i=(0,I.and)(i,ju(a,t,r,n));return i}o(Mu,"checkDataTypes");de.checkDataTypes=Mu;var I1={message:o(({schema:e})=>`must be ${e}`,"message"),params:o(({schema:e,schemaValue:t})=>typeof e=="string"?(0,I._)`{type: ${e}}`:(0,I._)`{type: ${t}}`,"params")};function Du(e){let t=k1(e);(0,$1.reportError)(t,I1)}o(Du,"reportTypeError");de.reportTypeError=Du;function k1(e){let{gen:t,data:r,schema:n}=e,i=(0,kd.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}o(k1,"getTypeErrorContext")});var Nd=m(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.assignDefaults=void 0;var ln=A(),R1=T();function T1(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)Cd(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>Cd(e,s,i.default))}o(T1,"assignDefaults");Lo.assignDefaults=T1;function Cd(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let u=(0,ln._)`${s}${(0,ln.getProperty)(t)}`;if(i){(0,R1.checkStrictMode)(e,`default is ignored for: ${u}`);return}let c=(0,ln._)`${u} === undefined`;a.useDefaults==="empty"&&(c=(0,ln._)`${c} || ${u} === null || ${u} === ""`),n.if(c,(0,ln._)`${u} = ${(0,ln.stringify)(r)}`)}o(Cd,"assignDefault")});var Ve=m(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.validateUnion=L.validateArray=L.usePattern=L.callValidateCode=L.schemaProperties=L.allSchemaProperties=L.noPropertyInData=L.propertyInData=L.isOwnProperty=L.hasPropFunc=L.reportMissingProp=L.checkMissingProp=L.checkReportMissingProp=void 0;var V=A(),Lu=T(),zt=Fe(),C1=T();function N1(e,t){let{gen:r,data:n,it:i}=e;r.if(Vu(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,V._)`${t}`},!0),e.error()})}o(N1,"checkReportMissingProp");L.checkReportMissingProp=N1;function q1({gen:e,data:t,it:{opts:r}},n,i){return(0,V.or)(...n.map(s=>(0,V.and)(Vu(e,t,s,r.ownProperties),(0,V._)`${i} = ${s}`)))}o(q1,"checkMissingProp");L.checkMissingProp=q1;function j1(e,t){e.setParams({missingProperty:t},!0),e.error()}o(j1,"reportMissingProp");L.reportMissingProp=j1;function qd(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,V._)`Object.prototype.hasOwnProperty`})}o(qd,"hasPropFunc");L.hasPropFunc=qd;function Fu(e,t,r){return(0,V._)`${qd(e)}.call(${t}, ${r})`}o(Fu,"isOwnProperty");L.isOwnProperty=Fu;function M1(e,t,r,n){let i=(0,V._)`${t}${(0,V.getProperty)(r)} !== undefined`;return n?(0,V._)`${i} && ${Fu(e,t,r)}`:i}o(M1,"propertyInData");L.propertyInData=M1;function Vu(e,t,r,n){let i=(0,V._)`${t}${(0,V.getProperty)(r)} === undefined`;return n?(0,V.or)(i,(0,V.not)(Fu(e,t,r))):i}o(Vu,"noPropertyInData");L.noPropertyInData=Vu;function jd(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}o(jd,"allSchemaProperties");L.allSchemaProperties=jd;function D1(e,t){return jd(t).filter(r=>!(0,Lu.alwaysValidSchema)(e,t[r]))}o(D1,"schemaProperties");L.schemaProperties=D1;function L1({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},u,c,l){let p=l?(0,V._)`${e}, ${t}, ${n}${i}`:t,f=[[zt.default.instancePath,(0,V.strConcat)(zt.default.instancePath,s)],[zt.default.parentData,a.parentData],[zt.default.parentDataProperty,a.parentDataProperty],[zt.default.rootData,zt.default.rootData]];a.opts.dynamicRef&&f.push([zt.default.dynamicAnchors,zt.default.dynamicAnchors]);let d=(0,V._)`${p}, ${r.object(...f)}`;return c!==V.nil?(0,V._)`${u}.call(${c}, ${d})`:(0,V._)`${u}(${d})`}o(L1,"callValidateCode");L.callValidateCode=L1;var F1=(0,V._)`new RegExp`;function V1({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,V._)`${i.code==="new RegExp"?F1:(0,C1.useFunc)(e,i)}(${r}, ${n})`})}o(V1,"usePattern");L.usePattern=V1;function B1(e){let{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){let u=t.let("valid",!0);return a(()=>t.assign(u,!1)),u}return t.var(s,!0),a(()=>t.break()),s;function a(u){let c=t.const("len",(0,V._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Lu.Type.Num},s),t.if((0,V.not)(s),u)})}o(a,"validateItems")}o(B1,"validateArray");L.validateArray=B1;function H1(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,Lu.alwaysValidSchema)(i,c))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),u=t.name("_valid");t.block(()=>r.forEach((c,l)=>{let p=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},u);t.assign(a,(0,V._)`${a} || ${u}`),e.mergeValidEvaluated(p,u)||t.if((0,V.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}o(H1,"validateUnion");L.validateUnion=H1});var Ld=m(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.validateKeywordUsage=ht.validSchemaType=ht.funcKeywordCode=ht.macroKeywordCode=void 0;var be=A(),Or=Fe(),U1=Ve(),z1=mi();function G1(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,u=t.macro.call(a.self,i,s,a),c=Dd(r,n,u);a.opts.validateSchema!==!1&&a.self.validateSchema(u,!0);let l=r.name("valid");e.subschema({schema:u,schemaPath:be.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}o(G1,"macroKeywordCode");ht.macroKeywordCode=G1;function Z1(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:u,it:c}=e;W1(c,t);let l=!u&&t.compile?t.compile.call(c.self,s,a,c):t.validate,p=Dd(n,i,l),f=n.let("valid");e.block$data(f,d),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function d(){if(t.errors===!1)y(),t.modifying&&Md(e),v(()=>e.error());else{let _=t.async?h():g();t.modifying&&Md(e),v(()=>K1(e,_))}}o(d,"validateKeyword");function h(){let _=n.let("ruleErrs",null);return n.try(()=>y((0,be._)`await `),b=>n.assign(f,!1).if((0,be._)`${b} instanceof ${c.ValidationError}`,()=>n.assign(_,(0,be._)`${b}.errors`),()=>n.throw(b))),_}o(h,"validateAsync");function g(){let _=(0,be._)`${p}.errors`;return n.assign(_,null),y(be.nil),_}o(g,"validateSync");function y(_=t.async?(0,be._)`await `:be.nil){let b=c.opts.passContext?Or.default.this:Or.default.self,S=!("compile"in t&&!u||t.schema===!1);n.assign(f,(0,be._)`${_}${(0,U1.callValidateCode)(e,p,b,S)}`,t.modifying)}o(y,"assignValid");function v(_){var b;n.if((0,be.not)((b=t.valid)!==null&&b!==void 0?b:f),_)}o(v,"reportErrs")}o(Z1,"funcKeywordCode");ht.funcKeywordCode=Z1;function Md(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,be._)`${n.parentData}[${n.parentDataProperty}]`))}o(Md,"modifyData");function K1(e,t){let{gen:r}=e;r.if((0,be._)`Array.isArray(${t})`,()=>{r.assign(Or.default.vErrors,(0,be._)`${Or.default.vErrors} === null ? ${t} : ${Or.default.vErrors}.concat(${t})`).assign(Or.default.errors,(0,be._)`${Or.default.vErrors}.length`),(0,z1.extendErrors)(e)},()=>e.error())}o(K1,"addErrs");function W1({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}o(W1,"checkAsyncKeyword");function Dd(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,be.stringify)(r)})}o(Dd,"useKeyword");function Y1(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}o(Y1,"validSchemaType");ht.validSchemaType=Y1;function Q1({schema:e,opts:t,self:r,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(u=>!Object.prototype.hasOwnProperty.call(e,u)))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){let c=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}o(Q1,"validateKeywordUsage");ht.validateKeywordUsage=Q1});var Vd=m(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.extendSubschemaMode=Gt.extendSubschemaData=Gt.getSubschema=void 0;var mt=A(),Fd=T();function J1(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let u=e.schema[t];return r===void 0?{schema:u,schemaPath:(0,mt._)`${e.schemaPath}${(0,mt.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:u[r],schemaPath:(0,mt._)`${e.schemaPath}${(0,mt.getProperty)(t)}${(0,mt.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Fd.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||s===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}o(J1,"getSubschema");Gt.getSubschema=J1;function X1(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:u}=t;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:f}=t,d=u.let("data",(0,mt._)`${t.data}${(0,mt.getProperty)(r)}`,!0);c(d),e.errorPath=(0,mt.str)`${l}${(0,Fd.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,mt._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof mt.Name?i:u.let("data",i,!0);c(l),a!==void 0&&(e.propertyName=a)}s&&(e.dataTypes=s);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}o(c,"dataContextProps")}o(X1,"extendSubschemaData");Gt.extendSubschemaData=X1;function eP(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}o(eP,"extendSubschemaMode");Gt.extendSubschemaMode=eP});var Bu=m((Kq,Bd)=>{"use strict";Bd.exports=o(function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var a=s[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var Ud=m((Yq,Hd)=>{"use strict";var Zt=Hd.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};Fo(t,n,i,e,"",e)};Zt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Zt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Zt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Zt.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Fo(e,t,r,n,i,s,a,u,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,a,u,c,l);for(var p in n){var f=n[p];if(Array.isArray(f)){if(p in Zt.arrayKeywords)for(var d=0;d<f.length;d++)Fo(e,t,r,f[d],i+"/"+p+"/"+d,s,i,p,n,d)}else if(p in Zt.propsKeywords){if(f&&typeof f=="object")for(var h in f)Fo(e,t,r,f[h],i+"/"+p+"/"+tP(h),s,i,p,n,h)}else(p in Zt.keywords||e.allKeys&&!(p in Zt.skipKeywords))&&Fo(e,t,r,f,i+"/"+p,s,i,p,n)}r(n,i,s,a,u,c,l)}}o(Fo,"_traverse");function tP(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(tP,"escapeJsonPtr")});var yi=m(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.getSchemaRefs=Ae.resolveUrl=Ae.normalizeId=Ae._getFullPath=Ae.getFullPath=Ae.inlineRef=void 0;var rP=T(),nP=Bu(),iP=Ud(),oP=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function sP(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Hu(e):t?zd(e)<=t:!1}o(sP,"inlineRef");Ae.inlineRef=sP;var aP=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Hu(e){for(let t in e){if(aP.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Hu)||typeof r=="object"&&Hu(r))return!0}return!1}o(Hu,"hasRef");function zd(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!oP.has(r)&&(typeof e[r]=="object"&&(0,rP.eachItem)(e[r],n=>t+=zd(n)),t===1/0))return 1/0}return t}o(zd,"countKeys");function Gd(e,t="",r){r!==!1&&(t=fn(t));let n=e.parse(t);return Zd(e,n)}o(Gd,"getFullPath");Ae.getFullPath=Gd;function Zd(e,t){return e.serialize(t).split("#")[0]+"#"}o(Zd,"_getFullPath");Ae._getFullPath=Zd;var uP=/#\/?$/;function fn(e){return e?e.replace(uP,""):""}o(fn,"normalizeId");Ae.normalizeId=fn;function cP(e,t,r){return r=fn(r),e.resolve(t,r)}o(cP,"resolveUrl");Ae.resolveUrl=cP;var lP=/^[a-z_][-a-z0-9._]*$/i;function fP(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=fn(e[r]||t),s={"":i},a=Gd(n,i,!1),u={},c=new Set;return iP(e,{allKeys:!0},(f,d,h,g)=>{if(g===void 0)return;let y=a+d,v=s[g];typeof f[r]=="string"&&(v=_.call(this,f[r])),b.call(this,f.$anchor),b.call(this,f.$dynamicAnchor),s[d]=v;function _(S){let E=this.opts.uriResolver.resolve;if(S=fn(v?E(v,S):S),c.has(S))throw p(S);c.add(S);let $=this.refs[S];return typeof $=="string"&&($=this.refs[$]),typeof $=="object"?l(f,$.schema,S):S!==fn(y)&&(S[0]==="#"?(l(f,u[S],S),u[S]=f):this.refs[S]=y),S}o(_,"addRef");function b(S){if(typeof S=="string"){if(!lP.test(S))throw new Error(`invalid anchor "${S}"`);_.call(this,`#${S}`)}}o(b,"addAnchor")}),u;function l(f,d,h){if(d!==void 0&&!nP(f,d))throw p(h)}o(l,"checkAmbiguosRef");function p(f){return new Error(`reference "${f}" resolves to more than one schema`)}o(p,"ambiguos")}o(fP,"getSchemaRefs");Ae.getSchemaRefs=fP});var bi=m(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.getData=Kt.KeywordCxt=Kt.validateFunctionCode=void 0;var Jd=wd(),Kd=gi(),zu=qu(),Vo=gi(),pP=Nd(),_i=Ld(),Uu=Vd(),O=A(),w=Fe(),dP=yi(),Ct=T(),vi=mi();function hP(e){if(th(e)&&(rh(e),eh(e))){yP(e);return}Xd(e,()=>(0,Jd.topBoolOrEmptySchema)(e))}o(hP,"validateFunctionCode");Kt.validateFunctionCode=hP;function Xd({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,O._)`${w.default.data}, ${w.default.valCxt}`,n.$async,()=>{e.code((0,O._)`"use strict"; ${Wd(r,i)}`),gP(e,i),e.code(s)}):e.func(t,(0,O._)`${w.default.data}, ${mP(i)}`,n.$async,()=>e.code(Wd(r,i)).code(s))}o(Xd,"validateFunction");function mP(e){return(0,O._)`{${w.default.instancePath}="", ${w.default.parentData}, ${w.default.parentDataProperty}, ${w.default.rootData}=${w.default.data}${e.dynamicRef?(0,O._)`, ${w.default.dynamicAnchors}={}`:O.nil}}={}`}o(mP,"destructureValCxt");function gP(e,t){e.if(w.default.valCxt,()=>{e.var(w.default.instancePath,(0,O._)`${w.default.valCxt}.${w.default.instancePath}`),e.var(w.default.parentData,(0,O._)`${w.default.valCxt}.${w.default.parentData}`),e.var(w.default.parentDataProperty,(0,O._)`${w.default.valCxt}.${w.default.parentDataProperty}`),e.var(w.default.rootData,(0,O._)`${w.default.valCxt}.${w.default.rootData}`),t.dynamicRef&&e.var(w.default.dynamicAnchors,(0,O._)`${w.default.valCxt}.${w.default.dynamicAnchors}`)},()=>{e.var(w.default.instancePath,(0,O._)`""`),e.var(w.default.parentData,(0,O._)`undefined`),e.var(w.default.parentDataProperty,(0,O._)`undefined`),e.var(w.default.rootData,w.default.data),t.dynamicRef&&e.var(w.default.dynamicAnchors,(0,O._)`{}`)})}o(gP,"destructureValCxtES5");function yP(e){let{schema:t,opts:r,gen:n}=e;Xd(e,()=>{r.$comment&&t.$comment&&ih(e),PP(e),n.let(w.default.vErrors,null),n.let(w.default.errors,0),r.unevaluated&&vP(e),nh(e),EP(e)})}o(yP,"topSchemaObjCode");function vP(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,O._)`${r}.evaluated`),t.if((0,O._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,O._)`${e.evaluated}.props`,(0,O._)`undefined`)),t.if((0,O._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,O._)`${e.evaluated}.items`,(0,O._)`undefined`))}o(vP,"resetEvaluated");function Wd(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,O._)`/*# sourceURL=${r} */`:O.nil}o(Wd,"funcSourceUrl");function _P(e,t){if(th(e)&&(rh(e),eh(e))){bP(e,t);return}(0,Jd.boolOrEmptySchema)(e,t)}o(_P,"subschemaCode");function eh({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}o(eh,"schemaCxtHasRules");function th(e){return typeof e.schema!="boolean"}o(th,"isSchemaObj");function bP(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&ih(e),$P(e),OP(e);let s=n.const("_errs",w.default.errors);nh(e,s),n.var(t,(0,O._)`${s} === ${w.default.errors}`)}o(bP,"subSchemaObjCode");function rh(e){(0,Ct.checkUnknownRules)(e),SP(e)}o(rh,"checkKeywords");function nh(e,t){if(e.opts.jtd)return Yd(e,[],!1,t);let r=(0,Kd.getSchemaTypes)(e.schema),n=(0,Kd.coerceAndCheckDataType)(e,r);Yd(e,r,!n,t)}o(nh,"typeAndKeywords");function SP(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Ct.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}o(SP,"checkRefsAndKeywords");function PP(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Ct.checkStrictMode)(e,"default is ignored in the schema root")}o(PP,"checkNoDefault");function $P(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,dP.resolveUrl)(e.opts.uriResolver,e.baseId,t))}o($P,"updateContext");function OP(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}o(OP,"checkAsyncSchema");function ih({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)e.code((0,O._)`${w.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let a=(0,O.str)`${n}/$comment`,u=e.scopeValue("root",{ref:t.root});e.code((0,O._)`${w.default.self}.opts.$comment(${s}, ${a}, ${u}.schema)`)}}o(ih,"commentKeyword");function EP(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,O._)`${w.default.errors} === 0`,()=>t.return(w.default.data),()=>t.throw((0,O._)`new ${i}(${w.default.vErrors})`)):(t.assign((0,O._)`${n}.errors`,w.default.vErrors),s.unevaluated&&xP(e),t.return((0,O._)`${w.default.errors} === 0`))}o(EP,"returnResults");function xP({gen:e,evaluated:t,props:r,items:n}){r instanceof O.Name&&e.assign((0,O._)`${t}.props`,r),n instanceof O.Name&&e.assign((0,O._)`${t}.items`,n)}o(xP,"assignEvaluated");function Yd(e,t,r,n){let{gen:i,schema:s,data:a,allErrors:u,opts:c,self:l}=e,{RULES:p}=l;if(s.$ref&&(c.ignoreKeywordsWithRef||!(0,Ct.schemaHasRulesButRef)(s,p))){i.block(()=>sh(e,"$ref",p.all.$ref.definition));return}c.jtd||wP(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,zu.shouldUseGroup)(s,d)&&(d.type?(i.if((0,Vo.checkDataType)(d.type,a,c.strictNumbers)),Qd(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,Vo.reportTypeError)(e)),i.endIf()):Qd(e,d),u||i.if((0,O._)`${w.default.errors} === ${n||0}`))}o(f,"groupKeywords")}o(Yd,"schemaKeywords");function Qd(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,pP.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,zu.shouldUseRule)(n,s)&&sh(e,s.keyword,s.definition,t.type)})}o(Qd,"iterateKeywords");function wP(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(AP(e,t),e.opts.allowUnionTypes||IP(e,t),kP(e,e.dataTypes))}o(wP,"checkStrictTypes");function AP(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{oh(e.dataTypes,r)||Gu(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),TP(e,t)}}o(AP,"checkContextTypes");function IP(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Gu(e,"use allowUnionTypes to allow union type keyword")}o(IP,"checkMultipleTypes");function kP(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,zu.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>RP(t,a))&&Gu(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}o(kP,"checkKeywordTypes");function RP(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}o(RP,"hasApplicableType");function oh(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}o(oh,"includesType");function TP(e,t){let r=[];for(let n of e.dataTypes)oh(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}o(TP,"narrowSchemaTypes");function Gu(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Ct.checkStrictMode)(e,t,e.opts.strictTypes)}o(Gu,"strictTypesError");var Zu=class Zu{constructor(t,r,n){if((0,_i.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ct.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",ah(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,_i.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",w.default.errors))}result(t,r,n){this.failResult((0,O.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,O.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,O._)`${r} !== undefined && (${(0,O.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?vi.reportExtraError:vi.reportError)(this,this.def.error,r)}$dataError(){(0,vi.reportError)(this,this.def.$dataError||vi.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,vi.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=O.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=O.nil,r=O.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:a}=this;n.if((0,O.or)((0,O._)`${i} === undefined`,r)),t!==O.nil&&n.assign(t,!0),(s.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==O.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,O.or)(a(),u());function a(){if(n.length){if(!(r instanceof O.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,O._)`${(0,Vo.checkDataTypes)(c,r,s.opts.strictNumbers,Vo.DataType.Wrong)}`}return O.nil}function u(){if(i.validateSchema){let c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,O._)`!${c}(${r})`}return O.nil}}subschema(t,r){let n=(0,Uu.getSubschema)(this.it,t);(0,Uu.extendSubschemaData)(n,this.it,t),(0,Uu.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return _P(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Ct.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Ct.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,O.Name)),!0}};o(Zu,"KeywordCxt");var Bo=Zu;Kt.KeywordCxt=Bo;function sh(e,t,r,n){let i=new Bo(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,_i.funcKeywordCode)(i,r):"macro"in r?(0,_i.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,_i.funcKeywordCode)(i,r)}o(sh,"keywordCode");var CP=/^\/(?:[^~]|~0|~1)*$/,NP=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ah(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return w.default.rootData;if(e[0]==="/"){if(!CP.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=w.default.rootData}else{let l=NP.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let p=+l[1];if(i=l[2],i==="#"){if(p>=t)throw new Error(c("property/index",p));return n[t-p]}if(p>t)throw new Error(c("data",p));if(s=r[t-p],!i)return s}let a=s,u=i.split("/");for(let l of u)l&&(s=(0,O._)`${s}${(0,O.getProperty)((0,Ct.unescapeJsonPointer)(l))}`,a=(0,O._)`${a} && ${s}`);return a;function c(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}o(ah,"getData");Kt.getData=ah});var Ho=m(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});var Yu=class Yu extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};o(Yu,"ValidationError");var Ku=Yu;Wu.default=Ku});var Si=m(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});var Qu=yi(),ec=class ec extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Qu.resolveUrl)(t,r,n),this.missingSchema=(0,Qu.normalizeId)((0,Qu.getFullPath)(t,this.missingRef))}};o(ec,"MissingRefError");var Ju=ec;Xu.default=Ju});var Pi=m(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.resolveSchema=Be.getCompilingSchema=Be.resolveRef=Be.compileSchema=Be.SchemaEnv=void 0;var Xe=A(),qP=Ho(),Er=Fe(),et=yi(),uh=T(),jP=bi(),nc=class nc{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,et.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};o(nc,"SchemaEnv");var pn=nc;Be.SchemaEnv=pn;function rc(e){let t=ch.call(this,e);if(t)return t;let r=(0,et.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new Xe.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),u;e.$async&&(u=a.scopeValue("Error",{ref:qP.default,code:(0,Xe._)`require("ajv/dist/runtime/validation_error").default`}));let c=a.scopeName("validate");e.validateName=c;let l={gen:a,allErrors:this.opts.allErrors,data:Er.default.data,parentData:Er.default.parentData,parentDataProperty:Er.default.parentDataProperty,dataNames:[Er.default.data],dataPathArr:[Xe.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Xe.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:u,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Xe.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Xe._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,jP.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(Er.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${Er.default.self}`,`${Er.default.scope}`,p)(this,this.scope.get());if(this.scope.value(c,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:c,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:g,items:y}=l;h.evaluated={props:g instanceof Xe.Name?void 0:g,items:y instanceof Xe.Name?void 0:y,dynamicProps:g instanceof Xe.Name,dynamicItems:y instanceof Xe.Name},h.source&&(h.source.evaluated=(0,Xe.stringify)(h.evaluated))}return e.validate=h,e}catch(f){throw delete e.validate,delete e.validateName,p&&this.logger.error("Error compiling schema, function code:",p),f}finally{this._compilations.delete(e)}}o(rc,"compileSchema");Be.compileSchema=rc;function MP(e,t,r){var n;r=(0,et.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=FP.call(this,e,r);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:u}=this.opts;a&&(s=new pn({schema:a,schemaId:u,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=DP.call(this,s)}o(MP,"resolveRef");Be.resolveRef=MP;function DP(e){return(0,et.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:rc.call(this,e)}o(DP,"inlineOrCompile");function ch(e){for(let t of this._compilations)if(LP(t,e))return t}o(ch,"getCompilingSchema");Be.getCompilingSchema=ch;function LP(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}o(LP,"sameSchemaEnv");function FP(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Uo.call(this,e,t)}o(FP,"resolve");function Uo(e,t){let r=this.opts.uriResolver.parse(t),n=(0,et._getFullPath)(this.opts.uriResolver,r),i=(0,et.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return tc.call(this,r,e);let s=(0,et.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let u=Uo.call(this,e,a);return typeof(u==null?void 0:u.schema)!="object"?void 0:tc.call(this,r,u)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||rc.call(this,a),s===(0,et.normalizeId)(t)){let{schema:u}=a,{schemaId:c}=this.opts,l=u[c];return l&&(i=(0,et.resolveUrl)(this.opts.uriResolver,i,l)),new pn({schema:u,schemaId:c,root:e,baseId:i})}return tc.call(this,r,a)}}o(Uo,"resolveSchema");Be.resolveSchema=Uo;var VP=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function tc(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let u of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,uh.unescapeFragment)(u)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!VP.has(u)&&l&&(t=(0,et.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,uh.schemaHasRulesButRef)(r,this.RULES)){let u=(0,et.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=Uo.call(this,n,u)}let{schemaId:a}=this.opts;if(s=s||new pn({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}o(tc,"getJsonPointer")});var lh=m((uj,BP)=>{BP.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var ph=m((cj,fh)=>{"use strict";var HP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};fh.exports={HEX:HP}});var bh=m((lj,_h)=>{"use strict";var{HEX:UP}=ph();function gh(e){if(vh(e,".")<3)return{host:e,isIPV4:!1};let t=e.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[r]=t;return r?{host:GP(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}o(gh,"normalizeIPv4");function ic(e,t=!1){let r="",n=!0;for(let i of e){if(UP[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}o(ic,"stringArrayToHexStripped");function zP(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,a=!1,u=!1;function c(){if(i.length){if(s===!1){let l=ic(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}o(c,"consume");for(let l=0;l<e.length;l++){let p=e[l];if(!(p==="["||p==="]"))if(p===":"){if(a===!0&&(u=!0),!c())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(p==="%"){if(!c())break;s=!0}else{i.push(p);continue}}return i.length&&(s?r.zone=i.join(""):u?n.push(i.join("")):n.push(ic(i))),r.address=n.join(""),r}o(zP,"getIPV6");function yh(e,t={}){if(vh(e,":")<2)return{host:e,isIPV6:!1};let r=zP(e);if(r.error)return{host:e,isIPV6:!1};{let n=r.address,i=r.address;return r.zone&&(n+="%"+r.zone,i+="%25"+r.zone),{host:n,escapedHost:i,isIPV6:!0}}}o(yh,"normalizeIPv6");function GP(e,t){let r="",n=!0,i=e.length;for(let s=0;s<i;s++){let a=e[s];a==="0"&&n?(s+1<=i&&e[s+1]===t||s+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}o(GP,"stripLeadingZeros");function vh(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}o(vh,"findToken");var dh=/^\.\.?\//u,hh=/^\/\.(?:\/|$)/u,mh=/^\/\.\.(?:\/|$)/u,ZP=/^\/?(?:.|\n)*?(?=\/|$)/u;function KP(e){let t=[];for(;e.length;)if(e.match(dh))e=e.replace(dh,"");else if(e.match(hh))e=e.replace(hh,"/");else if(e.match(mh))e=e.replace(mh,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(ZP);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}o(KP,"removeDotSegments");function WP(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}o(WP,"normalizeComponentEncoding");function YP(e,t){let r=[];if(e.userinfo!==void 0&&(r.push(e.userinfo),r.push("@")),e.host!==void 0){let n=unescape(e.host),i=gh(n);if(i.isIPV4)n=i.host;else{let s=yh(i.host,{isIPV4:!1});s.isIPV6===!0?n=`[${s.escapedHost}]`:n=e.host}r.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}o(YP,"recomposeAuthority");_h.exports={recomposeAuthority:YP,normalizeComponentEncoding:WP,removeDotSegments:KP,normalizeIPv4:gh,normalizeIPv6:yh,stringArrayToHexStripped:ic}});var xh=m((pj,Eh)=>{"use strict";var QP=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,JP=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function Sh(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}o(Sh,"isSecure");function Ph(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}o(Ph,"httpParse");function $h(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}o($h,"httpSerialize");function XP(e){return e.secure=Sh(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}o(XP,"wsParse");function e$(e){if((e.port===(Sh(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}o(e$,"wsSerialize");function t$(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(JP);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,s=oc[i];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}o(t$,"urnParse");function r$(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=oc[i];s&&(e=s.serialize(e,t));let a=e,u=e.nss;return a.path=`${n||t.nid}:${u}`,t.skipEscape=!0,a}o(r$,"urnSerialize");function n$(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!QP.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}o(n$,"urnuuidParse");function i$(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}o(i$,"urnuuidSerialize");var Oh={scheme:"http",domainHost:!0,parse:Ph,serialize:$h},o$={scheme:"https",domainHost:Oh.domainHost,parse:Ph,serialize:$h},zo={scheme:"ws",domainHost:!0,parse:XP,serialize:e$},s$={scheme:"wss",domainHost:zo.domainHost,parse:zo.parse,serialize:zo.serialize},a$={scheme:"urn",parse:t$,serialize:r$,skipNormalize:!0},u$={scheme:"urn:uuid",parse:n$,serialize:i$,skipNormalize:!0},oc={http:Oh,https:o$,ws:zo,wss:s$,urn:a$,"urn:uuid":u$};Eh.exports=oc});var Ah=m((hj,Zo)=>{"use strict";var{normalizeIPv6:c$,normalizeIPv4:l$,removeDotSegments:$i,recomposeAuthority:f$,normalizeComponentEncoding:Go}=bh(),sc=xh();function p$(e,t){return typeof e=="string"?e=gt(Nt(e,t),t):typeof e=="object"&&(e=Nt(gt(e,t),t)),e}o(p$,"normalize");function d$(e,t,r){let n=Object.assign({scheme:"null"},r),i=wh(Nt(e,n),Nt(t,n),n,!0);return gt(i,{...n,skipEscape:!0})}o(d$,"resolve");function wh(e,t,r,n){let i={};return n||(e=Nt(gt(e,r),r),t=Nt(gt(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=$i(t.path||""),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=$i(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=$i(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path,i.path=$i(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}o(wh,"resolveComponents");function h$(e,t,r){return typeof e=="string"?(e=unescape(e),e=gt(Go(Nt(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=gt(Go(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=gt(Go(Nt(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=gt(Go(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}o(h$,"equal");function gt(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],s=sc[(n.scheme||r.scheme||"").toLowerCase()];s&&s.serialize&&s.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&(i.push(r.scheme),i.push(":"));let a=f$(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let u=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(u=$i(u)),a===void 0&&(u=u.replace(/^\/\//u,"/%2F")),i.push(u)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}o(gt,"serialize");var m$=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function g$(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||m$[t])return!0;return!1}o(g$,"nonSimpleDomain");var y$=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Nt(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,s=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(y$);if(a){if(n.scheme=a[1],n.userinfo=a[3],n.host=a[4],n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=a[7],n.fragment=a[8],isNaN(n.port)&&(n.port=a[5]),n.host){let c=l$(n.host);if(c.isIPV4===!1){let l=c$(c.host,{isIPV4:!1});n.host=l.host.toLowerCase(),s=l.isIPV6}else n.host=c.host,s=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let u=sc[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!u||!u.unicodeSupport)&&n.host&&(r.domainHost||u&&u.domainHost)&&s===!1&&g$(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(c){n.error=n.error||"Host's domain name can not be converted to ASCII: "+c}(!u||u&&!u.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),u&&u.parse&&u.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}o(Nt,"parse");var ac={SCHEMES:sc,normalize:p$,resolve:d$,resolveComponents:wh,equal:h$,serialize:gt,parse:Nt};Zo.exports=ac;Zo.exports.default=ac;Zo.exports.fastUri=ac});var kh=m(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});var Ih=Ah();Ih.code='require("ajv/dist/runtime/uri").default';uc.default=Ih});var hn=m(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.CodeGen=ae.Name=ae.nil=ae.stringify=ae.str=ae._=ae.KeywordCxt=void 0;var v$=bi();Object.defineProperty(ae,"KeywordCxt",{enumerable:!0,get:o(function(){return v$.KeywordCxt},"get")});var dn=A();Object.defineProperty(ae,"_",{enumerable:!0,get:o(function(){return dn._},"get")});Object.defineProperty(ae,"str",{enumerable:!0,get:o(function(){return dn.str},"get")});Object.defineProperty(ae,"stringify",{enumerable:!0,get:o(function(){return dn.stringify},"get")});Object.defineProperty(ae,"nil",{enumerable:!0,get:o(function(){return dn.nil},"get")});Object.defineProperty(ae,"Name",{enumerable:!0,get:o(function(){return dn.Name},"get")});Object.defineProperty(ae,"CodeGen",{enumerable:!0,get:o(function(){return dn.CodeGen},"get")});var _$=Ho(),qh=Si(),b$=Nu(),Oi=Pi(),S$=A(),Ei=yi(),Ko=gi(),lc=T(),Rh=lh(),P$=kh(),jh=o((e,t)=>new RegExp(e,t),"defaultRegExp");jh.code="new RegExp";var $$=["removeAdditional","useDefaults","coerceTypes"],O$=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),E$={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},x$={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Th=200;function w$(e){var t,r,n,i,s,a,u,c,l,p,f,d,h,g,y,v,_,b,S,E,$,M,j,ie,oe;let le=e.strict,Me=(t=e.code)===null||t===void 0?void 0:t.optimize,Ee=Me===!0||Me===void 0?1:Me||0,Bt=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:jh,Jr=(i=e.uriResolver)!==null&&i!==void 0?i:P$.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:le)!==null&&a!==void 0?a:!0,strictNumbers:(c=(u=e.strictNumbers)!==null&&u!==void 0?u:le)!==null&&c!==void 0?c:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:le)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:le)!==null&&d!==void 0?d:"log",strictRequired:(g=(h=e.strictRequired)!==null&&h!==void 0?h:le)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:Ee,regExp:Bt}:{optimize:Ee,regExp:Bt},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:Th,loopEnum:(v=e.loopEnum)!==null&&v!==void 0?v:Th,meta:(_=e.meta)!==null&&_!==void 0?_:!0,messages:(b=e.messages)!==null&&b!==void 0?b:!0,inlineRefs:(S=e.inlineRefs)!==null&&S!==void 0?S:!0,schemaId:(E=e.schemaId)!==null&&E!==void 0?E:"$id",addUsedSchema:($=e.addUsedSchema)!==null&&$!==void 0?$:!0,validateSchema:(M=e.validateSchema)!==null&&M!==void 0?M:!0,validateFormats:(j=e.validateFormats)!==null&&j!==void 0?j:!0,unicodeRegExp:(ie=e.unicodeRegExp)!==null&&ie!==void 0?ie:!0,int32range:(oe=e.int32range)!==null&&oe!==void 0?oe:!0,uriResolver:Jr}}o(w$,"requiredOptions");var fc=class fc{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...w$(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new S$.ValueScope({scope:{},prefixes:O$,es5:r,lines:n}),this.logger=C$(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,b$.getRules)(),Ch.call(this,E$,t,"NOT SUPPORTED"),Ch.call(this,x$,t,"DEPRECATED","warn"),this._metaOpts=R$.call(this),t.formats&&I$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&k$.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),A$.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=Rh;n==="id"&&(i={...Rh},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(p,f){await s.call(this,p.$schema);let d=this._addSchema(p,f);return d.validate||a.call(this,d)}async function s(p){p&&!this.getSchema(p)&&await i.call(this,{$ref:p},!0)}async function a(p){try{return this._compileSchemaEnv(p)}catch(f){if(!(f instanceof qh.default))throw f;return u.call(this,f),await c.call(this,f.missingSchema),a.call(this,p)}}function u({missingSchema:p,missingRef:f}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${f} cannot be resolved`)}async function c(p){let f=await l.call(this,p);this.refs[p]||await s.call(this,f.$schema),this.refs[p]||this.addSchema(f,p,r)}async function l(p){let f=this._loading[p];if(f)return f;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let s;if(typeof t=="object"){let{schemaId:a}=this.opts;if(s=t[a],s!==void 0&&typeof s!="string")throw new Error(`schema ${a} must be string`)}return r=(0,Ei.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return i}getSchema(t){let r;for(;typeof(r=Nh.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new Oi.SchemaEnv({schema:{},schemaId:n});if(r=Oi.resolveSchema.call(this,i,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=Nh.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,Ei.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(q$.call(this,n,r),!r)return(0,lc.eachItem)(n,s=>cc.call(this,s)),this;M$.call(this,r);let i={...r,type:(0,Ko.getJSONTypes)(r.type),schemaType:(0,Ko.getJSONTypes)(r.schemaType)};return(0,lc.eachItem)(n,i.type.length===0?s=>cc.call(this,s,i):s=>i.type.forEach(a=>cc.call(this,s,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(s=>s.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,s)=>i+r+s)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let s=i.split("/").slice(1),a=t;for(let u of s)a=a[u];for(let u in n){let c=n[u];if(typeof c!="object")continue;let{$data:l}=c.definition,p=a[u];l&&p&&(a[u]=Mh(p))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,s=this.opts.addUsedSchema){let a,{schemaId:u}=this.opts;if(typeof t=="object")a=t[u];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,Ei.normalizeId)(a||n);let l=Ei.getSchemaRefs.call(this,t,n);return c=new Oi.SchemaEnv({schema:t,schemaId:u,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),i&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):Oi.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{Oi.compileSchema.call(this,t)}finally{this.opts=r}}};o(fc,"Ajv");var xi=fc;xi.ValidationError=_$.default;xi.MissingRefError=qh.default;ae.default=xi;function Ch(e,t,r,n="error"){for(let i in e){let s=i;s in t&&this.logger[n](`${r}: option ${i}. ${e[s]}`)}}o(Ch,"checkOptions");function Nh(e){return e=(0,Ei.normalizeId)(e),this.schemas[e]||this.refs[e]}o(Nh,"getSchEnv");function A$(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}o(A$,"addInitialSchemas");function I$(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}o(I$,"addInitialFormats");function k$(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}o(k$,"addInitialKeywords");function R$(){let e={...this.opts};for(let t of $$)delete e[t];return e}o(R$,"getMetaSchemaOptions");var T$={log(){},warn(){},error(){}};function C$(e){if(e===!1)return T$;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}o(C$,"getLogger");var N$=/^[a-z_$][a-z0-9_$:-]*$/i;function q$(e,t){let{RULES:r}=this;if((0,lc.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!N$.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}o(q$,"checkKeyword");function cc(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,a=i?s.post:s.rules.find(({type:c})=>c===r);if(a||(a={type:r,rules:[]},s.rules.push(a)),s.keywords[e]=!0,!t)return;let u={keyword:e,definition:{...t,type:(0,Ko.getJSONTypes)(t.type),schemaType:(0,Ko.getJSONTypes)(t.schemaType)}};t.before?j$.call(this,a,u,t.before):a.rules.push(u),s.all[e]=u,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}o(cc,"addRule");function j$(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}o(j$,"addBeforeRule");function M$(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=Mh(t)),e.validateSchema=this.compile(t,!0))}o(M$,"keywordMetaschema");var D$={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Mh(e){return{anyOf:[e,D$]}}o(Mh,"schemaOrData")});var wi=m(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.callRef=xr.getValidate=void 0;var L$=Si(),Dh=Ve(),Ie=A(),mn=Fe(),Lh=Pi(),Wo=T(),F$={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:a,opts:u,self:c}=n,{root:l}=s;if((r==="#"||r==="#/")&&i===l.baseId)return f();let p=Lh.resolveRef.call(c,l,i,r);if(p===void 0)throw new L$.default(n.opts.uriResolver,i,r);if(p instanceof Lh.SchemaEnv)return d(p);return h(p);function f(){if(s===l)return Yo(e,a,s,s.$async);let g=t.scopeValue("root",{ref:l});return Yo(e,(0,Ie._)`${g}.validate`,l,l.$async)}function d(g){let y=Fh(e,g);Yo(e,y,g,g.$async)}function h(g){let y=t.scopeValue("schema",u.code.source===!0?{ref:g,code:(0,Ie.stringify)(g)}:{ref:g}),v=t.name("valid"),_=e.subschema({schema:g,dataTypes:[],schemaPath:Ie.nil,topSchemaRef:y,errSchemaPath:r},v);e.mergeEvaluated(_),e.ok(v)}}};function Fh(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Ie._)`${r.scopeValue("wrapper",{ref:t})}.validate`}o(Fh,"getValidate");xr.getValidate=Fh;function Yo(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:u,opts:c}=s,l=c.passContext?mn.default.this:Ie.nil;n?p():f();function p(){if(!u.$async)throw new Error("async schema referenced by sync schema");let g=i.let("valid");i.try(()=>{i.code((0,Ie._)`await ${(0,Dh.callValidateCode)(e,t,l)}`),h(t),a||i.assign(g,!0)},y=>{i.if((0,Ie._)`!(${y} instanceof ${s.ValidationError})`,()=>i.throw(y)),d(y),a||i.assign(g,!1)}),e.ok(g)}o(p,"callAsyncRef");function f(){e.result((0,Dh.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}o(f,"callSyncRef");function d(g){let y=(0,Ie._)`${g}.errors`;i.assign(mn.default.vErrors,(0,Ie._)`${mn.default.vErrors} === null ? ${y} : ${mn.default.vErrors}.concat(${y})`),i.assign(mn.default.errors,(0,Ie._)`${mn.default.vErrors}.length`)}o(d,"addErrorsFrom");function h(g){var y;if(!s.opts.unevaluated)return;let v=(y=r==null?void 0:r.validate)===null||y===void 0?void 0:y.evaluated;if(s.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(s.props=Wo.mergeEvaluated.props(i,v.props,s.props));else{let _=i.var("props",(0,Ie._)`${g}.evaluated.props`);s.props=Wo.mergeEvaluated.props(i,_,s.props,Ie.Name)}if(s.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(s.items=Wo.mergeEvaluated.items(i,v.items,s.items));else{let _=i.var("items",(0,Ie._)`${g}.evaluated.items`);s.items=Wo.mergeEvaluated.items(i,_,s.items,Ie.Name)}}o(h,"addEvaluatedFrom")}o(Yo,"callRef");xr.callRef=Yo;xr.default=F$});var Vh=m(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});var V$=wi(),B$=["$schema","id","$defs",{keyword:"$comment"},"definitions",V$.default];pc.default=B$});var Bh=m(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});var dc=hn(),H$=A(),Wt=H$.operators,hc={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:Wt.LTE,fail:Wt.GT},{okStr:"<",ok:Wt.LT,fail:Wt.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:Wt.GTE,fail:Wt.LT},{okStr:">",ok:Wt.GT,fail:Wt.LTE}]}},U$={message:o(e=>dc.str`must be ${mc(e).okStr} ${e.schemaCode}`,"message"),params:o(e=>dc._`{comparison: ${mc(e).okStr}, limit: ${e.schemaCode}}`,"params")},z$={keyword:Object.keys(hc),type:"number",schemaType:"number",$data:!0,error:U$,code(e){let{data:t,schemaCode:r}=e;e.fail$data(dc._`${t} ${mc(e).fail} ${r} || isNaN(${t})`)}};function mc(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[hc[r].exclusive]?1:0;return hc[r].ops[n]}o(mc,"kwdOp");gc.default=z$});var Uh=m(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});var Hh={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},G$={keyword:Object.keys(Hh),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=Hh[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};yc.default=G$});var _c=m(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});var Ai=A(),Z$={message:o(({schemaCode:e})=>(0,Ai.str)`must be multiple of ${e}`,"message"),params:o(({schemaCode:e})=>(0,Ai._)`{multipleOf: ${e}}`,"params")},K$={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Z$,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),u=s?(0,Ai._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,Ai._)`${a} !== parseInt(${a})`;e.fail$data((0,Ai._)`(${n} === 0 || (${a} = ${r}/${n}, ${u}))`)}};vc.default=K$});var Gh=m(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});function zh(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}o(zh,"ucs2length");bc.default=zh;zh.code='require("ajv/dist/runtime/ucs2length").default'});var Pc=m(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});var wr=A(),W$=T(),Y$=Gh(),Q$={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,wr.str)`must NOT have ${r} than ${t} characters`},params:o(({schemaCode:e})=>(0,wr._)`{limit: ${e}}`,"params")},J$={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Q$,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?wr.operators.GT:wr.operators.LT,a=i.opts.unicode===!1?(0,wr._)`${r}.length`:(0,wr._)`${(0,W$.useFunc)(e.gen,Y$.default)}(${r})`;e.fail$data((0,wr._)`${a} ${s} ${n}`)}};Sc.default=J$});var Oc=m($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});var X$=Ve(),Qo=A(),eO={message:o(({schemaCode:e})=>(0,Qo.str)`must match pattern "${e}"`,"message"),params:o(({schemaCode:e})=>(0,Qo._)`{pattern: ${e}}`,"params")},tO={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:eO,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",u=r?(0,Qo._)`(new RegExp(${i}, ${a}))`:(0,X$.usePattern)(e,n);e.fail$data((0,Qo._)`!${u}.test(${t})`)}};$c.default=tO});var xc=m(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});var Ii=A(),rO={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Ii.str)`must NOT have ${r} than ${t} properties`},params:o(({schemaCode:e})=>(0,Ii._)`{limit: ${e}}`,"params")},nO={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:rO,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Ii.operators.GT:Ii.operators.LT;e.fail$data((0,Ii._)`Object.keys(${r}).length ${i} ${n}`)}};Ec.default=nO});var Ac=m(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});var ki=Ve(),Ri=A(),iO=T(),oO={message:o(({params:{missingProperty:e}})=>(0,Ri.str)`must have required property '${e}'`,"message"),params:o(({params:{missingProperty:e}})=>(0,Ri._)`{missingProperty: ${e}}`,"params")},sO={keyword:"required",type:"object",schemaType:"array",$data:!0,error:oO,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:a}=e,{opts:u}=a;if(!s&&r.length===0)return;let c=r.length>=u.loopRequired;if(a.allErrors?l():p(),u.strictRequired){let h=e.parentSchema.properties,{definedProperties:g}=e.it;for(let y of r)if((h==null?void 0:h[y])===void 0&&!g.has(y)){let v=a.schemaEnv.baseId+a.errSchemaPath,_=`required property "${y}" is not defined at "${v}" (strictRequired)`;(0,iO.checkStrictMode)(a,_,a.opts.strictRequired)}}function l(){if(c||s)e.block$data(Ri.nil,f);else for(let h of r)(0,ki.checkReportMissingProp)(e,h)}o(l,"allErrorsMode");function p(){let h=t.let("missing");if(c||s){let g=t.let("valid",!0);e.block$data(g,()=>d(h,g)),e.ok(g)}else t.if((0,ki.checkMissingProp)(e,r,h)),(0,ki.reportMissingProp)(e,h),t.else()}o(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,ki.noPropertyInData)(t,i,h,u.ownProperties),()=>e.error())})}o(f,"loopAllRequired");function d(h,g){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(g,(0,ki.propertyInData)(t,i,h,u.ownProperties)),t.if((0,Ri.not)(g),()=>{e.error(),t.break()})},Ri.nil)}o(d,"loopUntilMissing")}};wc.default=sO});var kc=m(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});var Ti=A(),aO={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Ti.str)`must NOT have ${r} than ${t} items`},params:o(({schemaCode:e})=>(0,Ti._)`{limit: ${e}}`,"params")},uO={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:aO,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Ti.operators.GT:Ti.operators.LT;e.fail$data((0,Ti._)`${r}.length ${i} ${n}`)}};Ic.default=uO});var Jo=m(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});var Zh=Bu();Zh.code='require("ajv/dist/runtime/equal").default';Rc.default=Zh});var Nc=m(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});var Tc=gi(),ue=A(),cO=T(),lO=Jo(),fO={message:o(({params:{i:e,j:t}})=>(0,ue.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:o(({params:{i:e,j:t}})=>(0,ue._)`{i: ${e}, j: ${t}}`,"params")},pO={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:fO,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:a,it:u}=e;if(!n&&!i)return;let c=t.let("valid"),l=s.items?(0,Tc.getSchemaTypes)(s.items):[];e.block$data(c,p,(0,ue._)`${a} === false`),e.ok(c);function p(){let g=t.let("i",(0,ue._)`${r}.length`),y=t.let("j");e.setParams({i:g,j:y}),t.assign(c,!0),t.if((0,ue._)`${g} > 1`,()=>(f()?d:h)(g,y))}o(p,"validateUniqueItems");function f(){return l.length>0&&!l.some(g=>g==="object"||g==="array")}o(f,"canOptimize");function d(g,y){let v=t.name("item"),_=(0,Tc.checkDataTypes)(l,v,u.opts.strictNumbers,Tc.DataType.Wrong),b=t.const("indices",(0,ue._)`{}`);t.for((0,ue._)`;${g}--;`,()=>{t.let(v,(0,ue._)`${r}[${g}]`),t.if(_,(0,ue._)`continue`),l.length>1&&t.if((0,ue._)`typeof ${v} == "string"`,(0,ue._)`${v} += "_"`),t.if((0,ue._)`typeof ${b}[${v}] == "number"`,()=>{t.assign(y,(0,ue._)`${b}[${v}]`),e.error(),t.assign(c,!1).break()}).code((0,ue._)`${b}[${v}] = ${g}`)})}o(d,"loopN");function h(g,y){let v=(0,cO.useFunc)(t,lO.default),_=t.name("outer");t.label(_).for((0,ue._)`;${g}--;`,()=>t.for((0,ue._)`${y} = ${g}; ${y}--;`,()=>t.if((0,ue._)`${v}(${r}[${g}], ${r}[${y}])`,()=>{e.error(),t.assign(c,!1).break(_)})))}o(h,"loopN2")}};Cc.default=pO});var Mc=m(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});var qc=A(),dO=T(),hO=Jo(),mO={message:"must be equal to constant",params:o(({schemaCode:e})=>(0,qc._)`{allowedValue: ${e}}`,"params")},gO={keyword:"const",$data:!0,error:mO,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,qc._)`!${(0,dO.useFunc)(t,hO.default)}(${r}, ${i})`):e.fail((0,qc._)`${s} !== ${r}`)}};jc.default=gO});var Lc=m(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});var Ci=A(),yO=T(),vO=Jo(),_O={message:"must be equal to one of the allowed values",params:o(({schemaCode:e})=>(0,Ci._)`{allowedValues: ${e}}`,"params")},bO={keyword:"enum",schemaType:"array",$data:!0,error:_O,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:s,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let u=i.length>=a.opts.loopEnum,c,l=o(()=>c??(c=(0,yO.useFunc)(t,vO.default)),"getEql"),p;if(u||n)p=t.let("valid"),e.block$data(p,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let h=t.const("vSchema",s);p=(0,Ci.or)(...i.map((g,y)=>d(h,y)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",s,h=>t.if((0,Ci._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}o(f,"loopEnum");function d(h,g){let y=i[g];return typeof y=="object"&&y!==null?(0,Ci._)`${l()}(${r}, ${h}[${g}])`:(0,Ci._)`${r} === ${y}`}o(d,"equalCode")}};Dc.default=bO});var Kh=m(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});var SO=Bh(),PO=Uh(),$O=_c(),OO=Pc(),EO=Oc(),xO=xc(),wO=Ac(),AO=kc(),IO=Nc(),kO=Mc(),RO=Lc(),TO=[SO.default,PO.default,$O.default,OO.default,EO.default,xO.default,wO.default,AO.default,IO.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},kO.default,RO.default];Fc.default=TO});var Bc=m(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.validateAdditionalItems=void 0;var Ar=A(),Vc=T(),CO={message:o(({params:{len:e}})=>(0,Ar.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Ar._)`{limit: ${e}}`,"params")},NO={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:CO,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Vc.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Wh(e,n)}};function Wh(e,t){let{gen:r,schema:n,data:i,keyword:s,it:a}=e;a.items=!0;let u=r.const("len",(0,Ar._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Ar._)`${u} <= ${t.length}`);else if(typeof n=="object"&&!(0,Vc.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,Ar._)`${u} <= ${t.length}`);r.if((0,Ar.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,u,p=>{e.subschema({keyword:s,dataProp:p,dataPropType:Vc.Type.Num},l),a.allErrors||r.if((0,Ar.not)(l),()=>r.break())})}o(c,"validateItems")}o(Wh,"validateAdditionalItems");Ni.validateAdditionalItems=Wh;Ni.default=NO});var Hc=m(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.validateTuple=void 0;var Yh=A(),Xo=T(),qO=Ve(),jO={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return Qh(e,"additionalItems",t);r.items=!0,!(0,Xo.alwaysValidSchema)(r,t)&&e.ok((0,qO.validateArray)(e))}};function Qh(e,t,r=e.schema){let{gen:n,parentSchema:i,data:s,keyword:a,it:u}=e;p(i),u.opts.unevaluated&&r.length&&u.items!==!0&&(u.items=Xo.mergeEvaluated.items(n,r.length,u.items));let c=n.name("valid"),l=n.const("len",(0,Yh._)`${s}.length`);r.forEach((f,d)=>{(0,Xo.alwaysValidSchema)(u,f)||(n.if((0,Yh._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},c)),e.ok(c))});function p(f){let{opts:d,errSchemaPath:h}=u,g=r.length,y=g===f.minItems&&(g===f.maxItems||f[t]===!1);if(d.strictTuples&&!y){let v=`"${a}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Xo.checkStrictMode)(u,v,d.strictTuples)}}o(p,"checkStrictTuple")}o(Qh,"validateTuple");qi.validateTuple=Qh;qi.default=jO});var Jh=m(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});var MO=Hc(),DO={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o(e=>(0,MO.validateTuple)(e,"items"),"code")};Uc.default=DO});var em=m(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});var Xh=A(),LO=T(),FO=Ve(),VO=Bc(),BO={message:o(({params:{len:e}})=>(0,Xh.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Xh._)`{limit: ${e}}`,"params")},HO={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:BO,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,LO.alwaysValidSchema)(n,t)&&(i?(0,VO.validateAdditionalItems)(e,i):e.ok((0,FO.validateArray)(e)))}};zc.default=HO});var tm=m(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});var He=A(),es=T(),UO={message:o(({params:{min:e,max:t}})=>t===void 0?(0,He.str)`must contain at least ${e} valid item(s)`:(0,He.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:o(({params:{min:e,max:t}})=>t===void 0?(0,He._)`{minContains: ${e}}`:(0,He._)`{minContains: ${e}, maxContains: ${t}}`,"params")},zO={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:UO,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e,a,u,{minContains:c,maxContains:l}=n;s.opts.next?(a=c===void 0?1:c,u=l):a=1;let p=t.const("len",(0,He._)`${i}.length`);if(e.setParams({min:a,max:u}),u===void 0&&a===0){(0,es.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(u!==void 0&&a>u){(0,es.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,es.alwaysValidSchema)(s,r)){let y=(0,He._)`${p} >= ${a}`;u!==void 0&&(y=(0,He._)`${y} && ${p} <= ${u}`),e.pass(y);return}s.items=!0;let f=t.name("valid");u===void 0&&a===1?h(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),u!==void 0&&t.if((0,He._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let y=t.name("_valid"),v=t.let("count",0);h(y,()=>t.if(y,()=>g(v)))}o(d,"validateItemsWithCount");function h(y,v){t.forRange("i",0,p,_=>{e.subschema({keyword:"contains",dataProp:_,dataPropType:es.Type.Num,compositeRule:!0},y),v()})}o(h,"validateItems");function g(y){t.code((0,He._)`${y}++`),u===void 0?t.if((0,He._)`${y} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,He._)`${y} > ${u}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,He._)`${y} >= ${a}`,()=>t.assign(f,!0)))}o(g,"checkLimits")}};Gc.default=zO});var ts=m(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.validateSchemaDeps=yt.validatePropertyDeps=yt.error=void 0;var Zc=A(),GO=T(),ji=Ve();yt.error={message:o(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Zc.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:o(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Zc._)`{property: ${e},
|
|
9
|
+
|| ${a} === "boolean" || ${i} === null`).assign(u,(0,I._)`[${i}]`)}}s(c,"coerceSpecificType")}s(x1,"coerceData");function w1({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,I._)`${t} !== undefined`,()=>e.assign((0,I._)`${t}[${r}]`,n))}s(w1,"assignParentData");function qu(e,t,r,n=cn.Correct){let i=n===cn.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===cn.Correct?o:(0,I.not)(o);function a(u=I.nil){return(0,I.and)((0,I._)`typeof ${t} == "number"`,u,r?(0,I._)`isFinite(${t})`:I.nil)}}s(qu,"checkDataType");de.checkDataType=qu;function ju(e,t,r,n){if(e.length===1)return qu(e[0],t,r,n);let i,o=(0,Id.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,qu(a,t,r,n));return i}s(ju,"checkDataTypes");de.checkDataTypes=ju;var A1={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 Mu(e){let t=I1(e);(0,P1.reportError)(t,A1)}s(Mu,"reportTypeError");de.reportTypeError=Mu;function I1(e){let{gen:t,data:r,schema:n}=e,i=(0,Id.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}s(I1,"getTypeErrorContext")});var Cd=m(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.assignDefaults=void 0;var ln=A(),k1=T();function R1(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)Td(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>Td(e,o,i.default))}s(R1,"assignDefaults");Do.assignDefaults=R1;function Td(e,t,r){let{gen:n,compositeRule:i,data:o,opts:a}=e;if(r===void 0)return;let u=(0,ln._)`${o}${(0,ln.getProperty)(t)}`;if(i){(0,k1.checkStrictMode)(e,`default is ignored for: ${u}`);return}let c=(0,ln._)`${u} === undefined`;a.useDefaults==="empty"&&(c=(0,ln._)`${c} || ${u} === null || ${u} === ""`),n.if(c,(0,ln._)`${u} = ${(0,ln.stringify)(r)}`)}s(Td,"assignDefault")});var Ve=m(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.validateUnion=L.validateArray=L.usePattern=L.callValidateCode=L.schemaProperties=L.allSchemaProperties=L.noPropertyInData=L.propertyInData=L.isOwnProperty=L.hasPropFunc=L.reportMissingProp=L.checkMissingProp=L.checkReportMissingProp=void 0;var V=A(),Du=T(),zt=Fe(),T1=T();function C1(e,t){let{gen:r,data:n,it:i}=e;r.if(Fu(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,V._)`${t}`},!0),e.error()})}s(C1,"checkReportMissingProp");L.checkReportMissingProp=C1;function N1({gen:e,data:t,it:{opts:r}},n,i){return(0,V.or)(...n.map(o=>(0,V.and)(Fu(e,t,o,r.ownProperties),(0,V._)`${i} = ${o}`)))}s(N1,"checkMissingProp");L.checkMissingProp=N1;function q1(e,t){e.setParams({missingProperty:t},!0),e.error()}s(q1,"reportMissingProp");L.reportMissingProp=q1;function Nd(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,V._)`Object.prototype.hasOwnProperty`})}s(Nd,"hasPropFunc");L.hasPropFunc=Nd;function Lu(e,t,r){return(0,V._)`${Nd(e)}.call(${t}, ${r})`}s(Lu,"isOwnProperty");L.isOwnProperty=Lu;function j1(e,t,r,n){let i=(0,V._)`${t}${(0,V.getProperty)(r)} !== undefined`;return n?(0,V._)`${i} && ${Lu(e,t,r)}`:i}s(j1,"propertyInData");L.propertyInData=j1;function Fu(e,t,r,n){let i=(0,V._)`${t}${(0,V.getProperty)(r)} === undefined`;return n?(0,V.or)(i,(0,V.not)(Lu(e,t,r))):i}s(Fu,"noPropertyInData");L.noPropertyInData=Fu;function qd(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}s(qd,"allSchemaProperties");L.allSchemaProperties=qd;function M1(e,t){return qd(t).filter(r=>!(0,Du.alwaysValidSchema)(e,t[r]))}s(M1,"schemaProperties");L.schemaProperties=M1;function D1({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},u,c,l){let p=l?(0,V._)`${e}, ${t}, ${n}${i}`:t,f=[[zt.default.instancePath,(0,V.strConcat)(zt.default.instancePath,o)],[zt.default.parentData,a.parentData],[zt.default.parentDataProperty,a.parentDataProperty],[zt.default.rootData,zt.default.rootData]];a.opts.dynamicRef&&f.push([zt.default.dynamicAnchors,zt.default.dynamicAnchors]);let d=(0,V._)`${p}, ${r.object(...f)}`;return c!==V.nil?(0,V._)`${u}.call(${c}, ${d})`:(0,V._)`${u}(${d})`}s(D1,"callValidateCode");L.callValidateCode=D1;var L1=(0,V._)`new RegExp`;function F1({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,V._)`${i.code==="new RegExp"?L1:(0,T1.useFunc)(e,i)}(${r}, ${n})`})}s(F1,"usePattern");L.usePattern=F1;function V1(e){let{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){let u=t.let("valid",!0);return a(()=>t.assign(u,!1)),u}return t.var(o,!0),a(()=>t.break()),o;function a(u){let c=t.const("len",(0,V._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Du.Type.Num},o),t.if((0,V.not)(o),u)})}s(a,"validateItems")}s(V1,"validateArray");L.validateArray=V1;function B1(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,Du.alwaysValidSchema)(i,c))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),u=t.name("_valid");t.block(()=>r.forEach((c,l)=>{let p=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},u);t.assign(a,(0,V._)`${a} || ${u}`),e.mergeValidEvaluated(p,u)||t.if((0,V.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}s(B1,"validateUnion");L.validateUnion=B1});var Dd=m(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.validateKeywordUsage=ht.validSchemaType=ht.funcKeywordCode=ht.macroKeywordCode=void 0;var be=A(),Or=Fe(),H1=Ve(),U1=hi();function z1(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:a}=e,u=t.macro.call(a.self,i,o,a),c=Md(r,n,u);a.opts.validateSchema!==!1&&a.self.validateSchema(u,!0);let l=r.name("valid");e.subschema({schema:u,schemaPath:be.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}s(z1,"macroKeywordCode");ht.macroKeywordCode=z1;function G1(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:u,it:c}=e;K1(c,t);let l=!u&&t.compile?t.compile.call(c.self,o,a,c):t.validate,p=Md(n,i,l),f=n.let("valid");e.block$data(f,d),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function d(){if(t.errors===!1)y(),t.modifying&&jd(e),v(()=>e.error());else{let _=t.async?h():g();t.modifying&&jd(e),v(()=>Z1(e,_))}}s(d,"validateKeyword");function h(){let _=n.let("ruleErrs",null);return n.try(()=>y((0,be._)`await `),b=>n.assign(f,!1).if((0,be._)`${b} instanceof ${c.ValidationError}`,()=>n.assign(_,(0,be._)`${b}.errors`),()=>n.throw(b))),_}s(h,"validateAsync");function g(){let _=(0,be._)`${p}.errors`;return n.assign(_,null),y(be.nil),_}s(g,"validateSync");function y(_=t.async?(0,be._)`await `:be.nil){let b=c.opts.passContext?Or.default.this:Or.default.self,S=!("compile"in t&&!u||t.schema===!1);n.assign(f,(0,be._)`${_}${(0,H1.callValidateCode)(e,p,b,S)}`,t.modifying)}s(y,"assignValid");function v(_){var b;n.if((0,be.not)((b=t.valid)!==null&&b!==void 0?b:f),_)}s(v,"reportErrs")}s(G1,"funcKeywordCode");ht.funcKeywordCode=G1;function jd(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,be._)`${n.parentData}[${n.parentDataProperty}]`))}s(jd,"modifyData");function Z1(e,t){let{gen:r}=e;r.if((0,be._)`Array.isArray(${t})`,()=>{r.assign(Or.default.vErrors,(0,be._)`${Or.default.vErrors} === null ? ${t} : ${Or.default.vErrors}.concat(${t})`).assign(Or.default.errors,(0,be._)`${Or.default.vErrors}.length`),(0,U1.extendErrors)(e)},()=>e.error())}s(Z1,"addErrs");function K1({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}s(K1,"checkAsyncKeyword");function Md(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,be.stringify)(r)})}s(Md,"useKeyword");function W1(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(W1,"validSchemaType");ht.validSchemaType=W1;function Y1({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(u=>!Object.prototype.hasOwnProperty.call(e,u)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){let c=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}s(Y1,"validateKeywordUsage");ht.validateKeywordUsage=Y1});var Fd=m(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.extendSubschemaMode=Gt.extendSubschemaData=Gt.getSubschema=void 0;var mt=A(),Ld=T();function Q1(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 u=e.schema[t];return r===void 0?{schema:u,schemaPath:(0,mt._)`${e.schemaPath}${(0,mt.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:u[r],schemaPath:(0,mt._)`${e.schemaPath}${(0,mt.getProperty)(t)}${(0,mt.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Ld.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(Q1,"getSubschema");Gt.getSubschema=Q1;function J1(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:u}=t;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:f}=t,d=u.let("data",(0,mt._)`${t.data}${(0,mt.getProperty)(r)}`,!0);c(d),e.errorPath=(0,mt.str)`${l}${(0,Ld.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,mt._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof mt.Name?i:u.let("data",i,!0);c(l),a!==void 0&&(e.propertyName=a)}o&&(e.dataTypes=o);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}s(c,"dataContextProps")}s(J1,"extendSubschemaData");Gt.extendSubschemaData=J1;function X1(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(X1,"extendSubschemaMode");Gt.extendSubschemaMode=X1});var Vu=m((Gq,Vd)=>{"use strict";Vd.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 Hd=m((Kq,Bd)=>{"use strict";var Zt=Bd.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(){};Lo(t,n,i,e,"",e)};Zt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Zt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Zt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Zt.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Lo(e,t,r,n,i,o,a,u,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,a,u,c,l);for(var p in n){var f=n[p];if(Array.isArray(f)){if(p in Zt.arrayKeywords)for(var d=0;d<f.length;d++)Lo(e,t,r,f[d],i+"/"+p+"/"+d,o,i,p,n,d)}else if(p in Zt.propsKeywords){if(f&&typeof f=="object")for(var h in f)Lo(e,t,r,f[h],i+"/"+p+"/"+eP(h),o,i,p,n,h)}else(p in Zt.keywords||e.allKeys&&!(p in Zt.skipKeywords))&&Lo(e,t,r,f,i+"/"+p,o,i,p,n)}r(n,i,o,a,u,c,l)}}s(Lo,"_traverse");function eP(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}s(eP,"escapeJsonPtr")});var gi=m(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.getSchemaRefs=Ae.resolveUrl=Ae.normalizeId=Ae._getFullPath=Ae.getFullPath=Ae.inlineRef=void 0;var tP=T(),rP=Vu(),nP=Hd(),iP=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function oP(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Bu(e):t?Ud(e)<=t:!1}s(oP,"inlineRef");Ae.inlineRef=oP;var sP=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Bu(e){for(let t in e){if(sP.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Bu)||typeof r=="object"&&Bu(r))return!0}return!1}s(Bu,"hasRef");function Ud(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!iP.has(r)&&(typeof e[r]=="object"&&(0,tP.eachItem)(e[r],n=>t+=Ud(n)),t===1/0))return 1/0}return t}s(Ud,"countKeys");function zd(e,t="",r){r!==!1&&(t=fn(t));let n=e.parse(t);return Gd(e,n)}s(zd,"getFullPath");Ae.getFullPath=zd;function Gd(e,t){return e.serialize(t).split("#")[0]+"#"}s(Gd,"_getFullPath");Ae._getFullPath=Gd;var aP=/#\/?$/;function fn(e){return e?e.replace(aP,""):""}s(fn,"normalizeId");Ae.normalizeId=fn;function uP(e,t,r){return r=fn(r),e.resolve(t,r)}s(uP,"resolveUrl");Ae.resolveUrl=uP;var cP=/^[a-z_][-a-z0-9._]*$/i;function lP(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=fn(e[r]||t),o={"":i},a=zd(n,i,!1),u={},c=new Set;return nP(e,{allKeys:!0},(f,d,h,g)=>{if(g===void 0)return;let y=a+d,v=o[g];typeof f[r]=="string"&&(v=_.call(this,f[r])),b.call(this,f.$anchor),b.call(this,f.$dynamicAnchor),o[d]=v;function _(S){let E=this.opts.uriResolver.resolve;if(S=fn(v?E(v,S):S),c.has(S))throw p(S);c.add(S);let $=this.refs[S];return typeof $=="string"&&($=this.refs[$]),typeof $=="object"?l(f,$.schema,S):S!==fn(y)&&(S[0]==="#"?(l(f,u[S],S),u[S]=f):this.refs[S]=y),S}s(_,"addRef");function b(S){if(typeof S=="string"){if(!cP.test(S))throw new Error(`invalid anchor "${S}"`);_.call(this,`#${S}`)}}s(b,"addAnchor")}),u;function l(f,d,h){if(d!==void 0&&!rP(f,d))throw p(h)}s(l,"checkAmbiguosRef");function p(f){return new Error(`reference "${f}" resolves to more than one schema`)}s(p,"ambiguos")}s(lP,"getSchemaRefs");Ae.getSchemaRefs=lP});var _i=m(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.getData=Kt.KeywordCxt=Kt.validateFunctionCode=void 0;var Qd=xd(),Zd=mi(),Uu=Nu(),Fo=mi(),fP=Cd(),vi=Dd(),Hu=Fd(),O=A(),w=Fe(),pP=gi(),Ct=T(),yi=hi();function dP(e){if(eh(e)&&(th(e),Xd(e))){gP(e);return}Jd(e,()=>(0,Qd.topBoolOrEmptySchema)(e))}s(dP,"validateFunctionCode");Kt.validateFunctionCode=dP;function Jd({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"; ${Kd(r,i)}`),mP(e,i),e.code(o)}):e.func(t,(0,O._)`${w.default.data}, ${hP(i)}`,n.$async,()=>e.code(Kd(r,i)).code(o))}s(Jd,"validateFunction");function hP(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(hP,"destructureValCxt");function mP(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(mP,"destructureValCxtES5");function gP(e){let{schema:t,opts:r,gen:n}=e;Jd(e,()=>{r.$comment&&t.$comment&&nh(e),SP(e),n.let(w.default.vErrors,null),n.let(w.default.errors,0),r.unevaluated&&yP(e),rh(e),OP(e)})}s(gP,"topSchemaObjCode");function yP(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(yP,"resetEvaluated");function Kd(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(Kd,"funcSourceUrl");function vP(e,t){if(eh(e)&&(th(e),Xd(e))){_P(e,t);return}(0,Qd.boolOrEmptySchema)(e,t)}s(vP,"subschemaCode");function Xd({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(Xd,"schemaCxtHasRules");function eh(e){return typeof e.schema!="boolean"}s(eh,"isSchemaObj");function _P(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&nh(e),PP(e),$P(e);let o=n.const("_errs",w.default.errors);rh(e,o),n.var(t,(0,O._)`${o} === ${w.default.errors}`)}s(_P,"subSchemaObjCode");function th(e){(0,Ct.checkUnknownRules)(e),bP(e)}s(th,"checkKeywords");function rh(e,t){if(e.opts.jtd)return Wd(e,[],!1,t);let r=(0,Zd.getSchemaTypes)(e.schema),n=(0,Zd.coerceAndCheckDataType)(e,r);Wd(e,r,!n,t)}s(rh,"typeAndKeywords");function bP(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Ct.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}s(bP,"checkRefsAndKeywords");function SP(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Ct.checkStrictMode)(e,"default is ignored in the schema root")}s(SP,"checkNoDefault");function PP(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,pP.resolveUrl)(e.opts.uriResolver,e.baseId,t))}s(PP,"updateContext");function $P(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}s($P,"checkAsyncSchema");function nh({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`,u=e.scopeValue("root",{ref:t.root});e.code((0,O._)`${w.default.self}.opts.$comment(${o}, ${a}, ${u}.schema)`)}}s(nh,"commentKeyword");function OP(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&&EP(e),t.return((0,O._)`${w.default.errors} === 0`))}s(OP,"returnResults");function EP({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(EP,"assignEvaluated");function Wd(e,t,r,n){let{gen:i,schema:o,data:a,allErrors:u,opts:c,self:l}=e,{RULES:p}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,Ct.schemaHasRulesButRef)(o,p))){i.block(()=>oh(e,"$ref",p.all.$ref.definition));return}c.jtd||xP(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,Uu.shouldUseGroup)(o,d)&&(d.type?(i.if((0,Fo.checkDataType)(d.type,a,c.strictNumbers)),Yd(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,Fo.reportTypeError)(e)),i.endIf()):Yd(e,d),u||i.if((0,O._)`${w.default.errors} === ${n||0}`))}s(f,"groupKeywords")}s(Wd,"schemaKeywords");function Yd(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,fP.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,Uu.shouldUseRule)(n,o)&&oh(e,o.keyword,o.definition,t.type)})}s(Yd,"iterateKeywords");function xP(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(wP(e,t),e.opts.allowUnionTypes||AP(e,t),IP(e,e.dataTypes))}s(xP,"checkStrictTypes");function wP(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{ih(e.dataTypes,r)||zu(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),RP(e,t)}}s(wP,"checkContextTypes");function AP(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&zu(e,"use allowUnionTypes to allow union type keyword")}s(AP,"checkMultipleTypes");function IP(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Uu.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>kP(t,a))&&zu(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}s(IP,"checkKeywordTypes");function kP(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}s(kP,"hasApplicableType");function ih(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}s(ih,"includesType");function RP(e,t){let r=[];for(let n of e.dataTypes)ih(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}s(RP,"narrowSchemaTypes");function zu(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Ct.checkStrictMode)(e,t,e.opts.strictTypes)}s(zu,"strictTypesError");var Gu=class Gu{constructor(t,r,n){if((0,vi.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ct.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",sh(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,vi.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?yi.reportExtraError:yi.reportError)(this,this.def.error,r)}$dataError(){(0,yi.reportError)(this,this.def.$dataError||yi.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,yi.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(),u());function a(){if(n.length){if(!(r instanceof O.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,O._)`${(0,Fo.checkDataTypes)(c,r,o.opts.strictNumbers,Fo.DataType.Wrong)}`}return O.nil}function u(){if(i.validateSchema){let c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,O._)`!${c}(${r})`}return O.nil}}subschema(t,r){let n=(0,Hu.getSubschema)(this.it,t);(0,Hu.extendSubschemaData)(n,this.it,t),(0,Hu.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return vP(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Ct.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Ct.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,O.Name)),!0}};s(Gu,"KeywordCxt");var Vo=Gu;Kt.KeywordCxt=Vo;function oh(e,t,r,n){let i=new Vo(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,vi.funcKeywordCode)(i,r):"macro"in r?(0,vi.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,vi.funcKeywordCode)(i,r)}s(oh,"keywordCode");var TP=/^\/(?:[^~]|~0|~1)*$/,CP=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function sh(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return w.default.rootData;if(e[0]==="/"){if(!TP.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=w.default.rootData}else{let l=CP.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let p=+l[1];if(i=l[2],i==="#"){if(p>=t)throw new Error(c("property/index",p));return n[t-p]}if(p>t)throw new Error(c("data",p));if(o=r[t-p],!i)return o}let a=o,u=i.split("/");for(let l of u)l&&(o=(0,O._)`${o}${(0,O.getProperty)((0,Ct.unescapeJsonPointer)(l))}`,a=(0,O._)`${a} && ${o}`);return a;function c(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}s(sh,"getData");Kt.getData=sh});var Bo=m(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});var Wu=class Wu extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};s(Wu,"ValidationError");var Zu=Wu;Ku.default=Zu});var bi=m(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});var Yu=gi(),Xu=class Xu extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Yu.resolveUrl)(t,r,n),this.missingSchema=(0,Yu.normalizeId)((0,Yu.getFullPath)(t,this.missingRef))}};s(Xu,"MissingRefError");var Qu=Xu;Ju.default=Qu});var Si=m(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.resolveSchema=Be.getCompilingSchema=Be.resolveRef=Be.compileSchema=Be.SchemaEnv=void 0;var Xe=A(),NP=Bo(),Er=Fe(),et=gi(),ah=T(),qP=_i(),rc=class rc{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,et.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};s(rc,"SchemaEnv");var pn=rc;Be.SchemaEnv=pn;function tc(e){let t=uh.call(this,e);if(t)return t;let r=(0,et.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new Xe.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),u;e.$async&&(u=a.scopeValue("Error",{ref:NP.default,code:(0,Xe._)`require("ajv/dist/runtime/validation_error").default`}));let c=a.scopeName("validate");e.validateName=c;let l={gen:a,allErrors:this.opts.allErrors,data:Er.default.data,parentData:Er.default.parentData,parentDataProperty:Er.default.parentDataProperty,dataNames:[Er.default.data],dataPathArr:[Xe.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Xe.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:u,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Xe.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Xe._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,qP.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(Er.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${Er.default.self}`,`${Er.default.scope}`,p)(this,this.scope.get());if(this.scope.value(c,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:c,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:g,items:y}=l;h.evaluated={props:g instanceof Xe.Name?void 0:g,items:y instanceof Xe.Name?void 0:y,dynamicProps:g instanceof Xe.Name,dynamicItems:y instanceof Xe.Name},h.source&&(h.source.evaluated=(0,Xe.stringify)(h.evaluated))}return e.validate=h,e}catch(f){throw delete e.validate,delete e.validateName,p&&this.logger.error("Error compiling schema, function code:",p),f}finally{this._compilations.delete(e)}}s(tc,"compileSchema");Be.compileSchema=tc;function jP(e,t,r){var n;r=(0,et.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let o=LP.call(this,e,r);if(o===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:u}=this.opts;a&&(o=new pn({schema:a,schemaId:u,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=MP.call(this,o)}s(jP,"resolveRef");Be.resolveRef=jP;function MP(e){return(0,et.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:tc.call(this,e)}s(MP,"inlineOrCompile");function uh(e){for(let t of this._compilations)if(DP(t,e))return t}s(uh,"getCompilingSchema");Be.getCompilingSchema=uh;function DP(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}s(DP,"sameSchemaEnv");function LP(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Ho.call(this,e,t)}s(LP,"resolve");function Ho(e,t){let r=this.opts.uriResolver.parse(t),n=(0,et._getFullPath)(this.opts.uriResolver,r),i=(0,et.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return ec.call(this,r,e);let o=(0,et.normalizeId)(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let u=Ho.call(this,e,a);return typeof(u==null?void 0:u.schema)!="object"?void 0:ec.call(this,r,u)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||tc.call(this,a),o===(0,et.normalizeId)(t)){let{schema:u}=a,{schemaId:c}=this.opts,l=u[c];return l&&(i=(0,et.resolveUrl)(this.opts.uriResolver,i,l)),new pn({schema:u,schemaId:c,root:e,baseId:i})}return ec.call(this,r,a)}}s(Ho,"resolveSchema");Be.resolveSchema=Ho;var FP=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function ec(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let u of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,ah.unescapeFragment)(u)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!FP.has(u)&&l&&(t=(0,et.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,ah.schemaHasRulesButRef)(r,this.RULES)){let u=(0,et.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=Ho.call(this,n,u)}let{schemaId:a}=this.opts;if(o=o||new pn({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}s(ec,"getJsonPointer")});var ch=m((sj,VP)=>{VP.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 fh=m((aj,lh)=>{"use strict";var BP={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};lh.exports={HEX:BP}});var _h=m((uj,vh)=>{"use strict";var{HEX:HP}=fh();function mh(e){if(yh(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:zP(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}s(mh,"normalizeIPv4");function nc(e,t=!1){let r="",n=!0;for(let i of e){if(HP[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}s(nc,"stringArrayToHexStripped");function UP(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],o=!1,a=!1,u=!1;function c(){if(i.length){if(o===!1){let l=nc(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}s(c,"consume");for(let l=0;l<e.length;l++){let p=e[l];if(!(p==="["||p==="]"))if(p===":"){if(a===!0&&(u=!0),!c())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(p==="%"){if(!c())break;o=!0}else{i.push(p);continue}}return i.length&&(o?r.zone=i.join(""):u?n.push(i.join("")):n.push(nc(i))),r.address=n.join(""),r}s(UP,"getIPV6");function gh(e,t={}){if(yh(e,":")<2)return{host:e,isIPV6:!1};let r=UP(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(gh,"normalizeIPv6");function zP(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(zP,"stripLeadingZeros");function yh(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}s(yh,"findToken");var ph=/^\.\.?\//u,dh=/^\/\.(?:\/|$)/u,hh=/^\/\.\.(?:\/|$)/u,GP=/^\/?(?:.|\n)*?(?=\/|$)/u;function ZP(e){let t=[];for(;e.length;)if(e.match(ph))e=e.replace(ph,"");else if(e.match(dh))e=e.replace(dh,"/");else if(e.match(hh))e=e.replace(hh,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(GP);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(ZP,"removeDotSegments");function KP(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(KP,"normalizeComponentEncoding");function WP(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=mh(n);if(i.isIPV4)n=i.host;else{let o=gh(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(WP,"recomposeAuthority");vh.exports={recomposeAuthority:WP,normalizeComponentEncoding:KP,removeDotSegments:ZP,normalizeIPv4:mh,normalizeIPv6:gh,stringArrayToHexStripped:nc}});var Eh=m((lj,Oh)=>{"use strict";var YP=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,QP=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function bh(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}s(bh,"isSecure");function Sh(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}s(Sh,"httpParse");function Ph(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(Ph,"httpSerialize");function JP(e){return e.secure=bh(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}s(JP,"wsParse");function XP(e){if((e.port===(bh(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(XP,"wsSerialize");function e$(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(QP);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=ic[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}s(e$,"urnParse");function t$(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,o=ic[i];o&&(e=o.serialize(e,t));let a=e,u=e.nss;return a.path=`${n||t.nid}:${u}`,t.skipEscape=!0,a}s(t$,"urnSerialize");function r$(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!YP.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}s(r$,"urnuuidParse");function n$(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}s(n$,"urnuuidSerialize");var $h={scheme:"http",domainHost:!0,parse:Sh,serialize:Ph},i$={scheme:"https",domainHost:$h.domainHost,parse:Sh,serialize:Ph},Uo={scheme:"ws",domainHost:!0,parse:JP,serialize:XP},o$={scheme:"wss",domainHost:Uo.domainHost,parse:Uo.parse,serialize:Uo.serialize},s$={scheme:"urn",parse:e$,serialize:t$,skipNormalize:!0},a$={scheme:"urn:uuid",parse:r$,serialize:n$,skipNormalize:!0},ic={http:$h,https:i$,ws:Uo,wss:o$,urn:s$,"urn:uuid":a$};Oh.exports=ic});var wh=m((pj,Go)=>{"use strict";var{normalizeIPv6:u$,normalizeIPv4:c$,removeDotSegments:Pi,recomposeAuthority:l$,normalizeComponentEncoding:zo}=_h(),oc=Eh();function f$(e,t){return typeof e=="string"?e=gt(Nt(e,t),t):typeof e=="object"&&(e=Nt(gt(e,t),t)),e}s(f$,"normalize");function p$(e,t,r){let n=Object.assign({scheme:"null"},r),i=xh(Nt(e,n),Nt(t,n),n,!0);return gt(i,{...n,skipEscape:!0})}s(p$,"resolve");function xh(e,t,r,n){let i={};return n||(e=Nt(gt(e,r),r),t=Nt(gt(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=Pi(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=Pi(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=Pi(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=Pi(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(xh,"resolveComponents");function d$(e,t,r){return typeof e=="string"?(e=unescape(e),e=gt(zo(Nt(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=gt(zo(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=gt(zo(Nt(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=gt(zo(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}s(d$,"equal");function gt(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],o=oc[(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=l$(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let u=r.path;!n.absolutePath&&(!o||!o.absolutePath)&&(u=Pi(u)),a===void 0&&(u=u.replace(/^\/\//u,"/%2F")),i.push(u)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}s(gt,"serialize");var h$=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function m$(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||h$[t])return!0;return!1}s(m$,"nonSimpleDomain");var g$=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\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(g$);if(a){if(n.scheme=a[1],n.userinfo=a[3],n.host=a[4],n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=a[7],n.fragment=a[8],isNaN(n.port)&&(n.port=a[5]),n.host){let c=c$(n.host);if(c.isIPV4===!1){let l=u$(c.host,{isIPV4:!1});n.host=l.host.toLowerCase(),o=l.isIPV6}else n.host=c.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 u=oc[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!u||!u.unicodeSupport)&&n.host&&(r.domainHost||u&&u.domainHost)&&o===!1&&m$(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(c){n.error=n.error||"Host's domain name can not be converted to ASCII: "+c}(!u||u&&!u.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),u&&u.parse&&u.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}s(Nt,"parse");var sc={SCHEMES:oc,normalize:f$,resolve:p$,resolveComponents:xh,equal:d$,serialize:gt,parse:Nt};Go.exports=sc;Go.exports.default=sc;Go.exports.fastUri=sc});var Ih=m(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var Ah=wh();Ah.code='require("ajv/dist/runtime/uri").default';ac.default=Ah});var hn=m(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.CodeGen=ae.Name=ae.nil=ae.stringify=ae.str=ae._=ae.KeywordCxt=void 0;var y$=_i();Object.defineProperty(ae,"KeywordCxt",{enumerable:!0,get:s(function(){return y$.KeywordCxt},"get")});var dn=A();Object.defineProperty(ae,"_",{enumerable:!0,get:s(function(){return dn._},"get")});Object.defineProperty(ae,"str",{enumerable:!0,get:s(function(){return dn.str},"get")});Object.defineProperty(ae,"stringify",{enumerable:!0,get:s(function(){return dn.stringify},"get")});Object.defineProperty(ae,"nil",{enumerable:!0,get:s(function(){return dn.nil},"get")});Object.defineProperty(ae,"Name",{enumerable:!0,get:s(function(){return dn.Name},"get")});Object.defineProperty(ae,"CodeGen",{enumerable:!0,get:s(function(){return dn.CodeGen},"get")});var v$=Bo(),Nh=bi(),_$=Cu(),$i=Si(),b$=A(),Oi=gi(),Zo=mi(),cc=T(),kh=ch(),S$=Ih(),qh=s((e,t)=>new RegExp(e,t),"defaultRegExp");qh.code="new RegExp";var P$=["removeAdditional","useDefaults","coerceTypes"],$$=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),O$={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."},E$={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Rh=200;function x$(e){var t,r,n,i,o,a,u,c,l,p,f,d,h,g,y,v,_,b,S,E,$,M,j,ie,oe;let le=e.strict,Me=(t=e.code)===null||t===void 0?void 0:t.optimize,Ee=Me===!0||Me===void 0?1:Me||0,Bt=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:qh,Jr=(i=e.uriResolver)!==null&&i!==void 0?i:S$.default;return{strictSchema:(a=(o=e.strictSchema)!==null&&o!==void 0?o:le)!==null&&a!==void 0?a:!0,strictNumbers:(c=(u=e.strictNumbers)!==null&&u!==void 0?u:le)!==null&&c!==void 0?c:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:le)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:le)!==null&&d!==void 0?d:"log",strictRequired:(g=(h=e.strictRequired)!==null&&h!==void 0?h:le)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:Ee,regExp:Bt}:{optimize:Ee,regExp:Bt},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:Rh,loopEnum:(v=e.loopEnum)!==null&&v!==void 0?v:Rh,meta:(_=e.meta)!==null&&_!==void 0?_:!0,messages:(b=e.messages)!==null&&b!==void 0?b:!0,inlineRefs:(S=e.inlineRefs)!==null&&S!==void 0?S:!0,schemaId:(E=e.schemaId)!==null&&E!==void 0?E:"$id",addUsedSchema:($=e.addUsedSchema)!==null&&$!==void 0?$:!0,validateSchema:(M=e.validateSchema)!==null&&M!==void 0?M:!0,validateFormats:(j=e.validateFormats)!==null&&j!==void 0?j:!0,unicodeRegExp:(ie=e.unicodeRegExp)!==null&&ie!==void 0?ie:!0,int32range:(oe=e.int32range)!==null&&oe!==void 0?oe:!0,uriResolver:Jr}}s(x$,"requiredOptions");var lc=class lc{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...x$(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new b$.ValueScope({scope:{},prefixes:$$,es5:r,lines:n}),this.logger=T$(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,_$.getRules)(),Th.call(this,O$,t,"NOT SUPPORTED"),Th.call(this,E$,t,"DEPRECATED","warn"),this._metaOpts=k$.call(this),t.formats&&A$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&I$.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),w$.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=kh;n==="id"&&(i={...kh},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(p,f){await o.call(this,p.$schema);let d=this._addSchema(p,f);return d.validate||a.call(this,d)}async function o(p){p&&!this.getSchema(p)&&await i.call(this,{$ref:p},!0)}async function a(p){try{return this._compileSchemaEnv(p)}catch(f){if(!(f instanceof Nh.default))throw f;return u.call(this,f),await c.call(this,f.missingSchema),a.call(this,p)}}function u({missingSchema:p,missingRef:f}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${f} cannot be resolved`)}async function c(p){let f=await l.call(this,p);this.refs[p]||await o.call(this,f.$schema),this.refs[p]||this.addSchema(f,p,r)}async function l(p){let f=this._loading[p];if(f)return f;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let 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,Oi.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=Ch.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=Ch.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,Oi.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(N$.call(this,n,r),!r)return(0,cc.eachItem)(n,o=>uc.call(this,o)),this;j$.call(this,r);let i={...r,type:(0,Zo.getJSONTypes)(r.type),schemaType:(0,Zo.getJSONTypes)(r.schemaType)};return(0,cc.eachItem)(n,i.type.length===0?o=>uc.call(this,o,i):o=>i.type.forEach(a=>uc.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 u of o)a=a[u];for(let u in n){let c=n[u];if(typeof c!="object")continue;let{$data:l}=c.definition,p=a[u];l&&p&&(a[u]=jh(p))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,o=this.opts.addUsedSchema){let a,{schemaId:u}=this.opts;if(typeof t=="object")a=t[u];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,Oi.normalizeId)(a||n);let l=Oi.getSchemaRefs.call(this,t,n);return c=new $i.SchemaEnv({schema:t,schemaId:u,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),i&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):$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(lc,"Ajv");var Ei=lc;Ei.ValidationError=v$.default;Ei.MissingRefError=Nh.default;ae.default=Ei;function Th(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(Th,"checkOptions");function Ch(e){return e=(0,Oi.normalizeId)(e),this.schemas[e]||this.refs[e]}s(Ch,"getSchEnv");function w$(){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(w$,"addInitialSchemas");function A$(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}s(A$,"addInitialFormats");function I$(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(I$,"addInitialKeywords");function k$(){let e={...this.opts};for(let t of P$)delete e[t];return e}s(k$,"getMetaSchemaOptions");var R$={log(){},warn(){},error(){}};function T$(e){if(e===!1)return R$;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(T$,"getLogger");var C$=/^[a-z_$][a-z0-9_$:-]*$/i;function N$(e,t){let{RULES:r}=this;if((0,cc.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!C$.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(N$,"checkKeyword");function uc(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:c})=>c===r);if(a||(a={type:r,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;let u={keyword:e,definition:{...t,type:(0,Zo.getJSONTypes)(t.type),schemaType:(0,Zo.getJSONTypes)(t.schemaType)}};t.before?q$.call(this,a,u,t.before):a.rules.push(u),o.all[e]=u,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}s(uc,"addRule");function q$(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(q$,"addBeforeRule");function j$(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=jh(t)),e.validateSchema=this.compile(t,!0))}s(j$,"keywordMetaschema");var M$={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function jh(e){return{anyOf:[e,M$]}}s(jh,"schemaOrData")});var xi=m(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.callRef=xr.getValidate=void 0;var D$=bi(),Mh=Ve(),Ie=A(),mn=Fe(),Dh=Si(),Ko=T(),L$={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:a,opts:u,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return f();let p=Dh.resolveRef.call(c,l,i,r);if(p===void 0)throw new D$.default(n.opts.uriResolver,i,r);if(p instanceof Dh.SchemaEnv)return d(p);return h(p);function f(){if(o===l)return Wo(e,a,o,o.$async);let g=t.scopeValue("root",{ref:l});return Wo(e,(0,Ie._)`${g}.validate`,l,l.$async)}function d(g){let y=Lh(e,g);Wo(e,y,g,g.$async)}function h(g){let y=t.scopeValue("schema",u.code.source===!0?{ref:g,code:(0,Ie.stringify)(g)}:{ref:g}),v=t.name("valid"),_=e.subschema({schema:g,dataTypes:[],schemaPath:Ie.nil,topSchemaRef:y,errSchemaPath:r},v);e.mergeEvaluated(_),e.ok(v)}}};function Lh(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Ie._)`${r.scopeValue("wrapper",{ref:t})}.validate`}s(Lh,"getValidate");xr.getValidate=Lh;function Wo(e,t,r,n){let{gen:i,it:o}=e,{allErrors:a,schemaEnv:u,opts:c}=o,l=c.passContext?mn.default.this:Ie.nil;n?p():f();function p(){if(!u.$async)throw new Error("async schema referenced by sync schema");let g=i.let("valid");i.try(()=>{i.code((0,Ie._)`await ${(0,Mh.callValidateCode)(e,t,l)}`),h(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(p,"callAsyncRef");function f(){e.result((0,Mh.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}s(f,"callSyncRef");function d(g){let y=(0,Ie._)`${g}.errors`;i.assign(mn.default.vErrors,(0,Ie._)`${mn.default.vErrors} === null ? ${y} : ${mn.default.vErrors}.concat(${y})`),i.assign(mn.default.errors,(0,Ie._)`${mn.default.vErrors}.length`)}s(d,"addErrorsFrom");function h(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=Ko.mergeEvaluated.props(i,v.props,o.props));else{let _=i.var("props",(0,Ie._)`${g}.evaluated.props`);o.props=Ko.mergeEvaluated.props(i,_,o.props,Ie.Name)}if(o.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(o.items=Ko.mergeEvaluated.items(i,v.items,o.items));else{let _=i.var("items",(0,Ie._)`${g}.evaluated.items`);o.items=Ko.mergeEvaluated.items(i,_,o.items,Ie.Name)}}s(h,"addEvaluatedFrom")}s(Wo,"callRef");xr.callRef=Wo;xr.default=L$});var Fh=m(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});var F$=xi(),V$=["$schema","id","$defs",{keyword:"$comment"},"definitions",F$.default];fc.default=V$});var Vh=m(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});var pc=hn(),B$=A(),Wt=B$.operators,dc={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}]}},H$={message:s(e=>pc.str`must be ${hc(e).okStr} ${e.schemaCode}`,"message"),params:s(e=>pc._`{comparison: ${hc(e).okStr}, limit: ${e.schemaCode}}`,"params")},U$={keyword:Object.keys(dc),type:"number",schemaType:"number",$data:!0,error:H$,code(e){let{data:t,schemaCode:r}=e;e.fail$data(pc._`${t} ${hc(e).fail} ${r} || isNaN(${t})`)}};function hc(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[dc[r].exclusive]?1:0;return dc[r].ops[n]}s(hc,"kwdOp");mc.default=U$});var Hh=m(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});var Bh={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},z$={keyword:Object.keys(Bh),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=Bh[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};gc.default=z$});var vc=m(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});var wi=A(),G$={message:s(({schemaCode:e})=>(0,wi.str)`must be multiple of ${e}`,"message"),params:s(({schemaCode:e})=>(0,wi._)`{multipleOf: ${e}}`,"params")},Z$={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:G$,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),u=o?(0,wi._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,wi._)`${a} !== parseInt(${a})`;e.fail$data((0,wi._)`(${n} === 0 || (${a} = ${r}/${n}, ${u}))`)}};yc.default=Z$});var zh=m(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});function Uh(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(Uh,"ucs2length");_c.default=Uh;Uh.code='require("ajv/dist/runtime/ucs2length").default'});var Sc=m(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});var wr=A(),K$=T(),W$=zh(),Y$={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,wr.str)`must NOT have ${r} than ${t} characters`},params:s(({schemaCode:e})=>(0,wr._)`{limit: ${e}}`,"params")},Q$={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Y$,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?wr.operators.GT:wr.operators.LT,a=i.opts.unicode===!1?(0,wr._)`${r}.length`:(0,wr._)`${(0,K$.useFunc)(e.gen,W$.default)}(${r})`;e.fail$data((0,wr._)`${a} ${o} ${n}`)}};bc.default=Q$});var $c=m(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});var J$=Ve(),Yo=A(),X$={message:s(({schemaCode:e})=>(0,Yo.str)`must match pattern "${e}"`,"message"),params:s(({schemaCode:e})=>(0,Yo._)`{pattern: ${e}}`,"params")},eO={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:X$,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,a=o.opts.unicodeRegExp?"u":"",u=r?(0,Yo._)`(new RegExp(${i}, ${a}))`:(0,J$.usePattern)(e,n);e.fail$data((0,Yo._)`!${u}.test(${t})`)}};Pc.default=eO});var Ec=m(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});var Ai=A(),tO={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Ai.str)`must NOT have ${r} than ${t} properties`},params:s(({schemaCode:e})=>(0,Ai._)`{limit: ${e}}`,"params")},rO={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:tO,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Ai.operators.GT:Ai.operators.LT;e.fail$data((0,Ai._)`Object.keys(${r}).length ${i} ${n}`)}};Oc.default=rO});var wc=m(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});var Ii=Ve(),ki=A(),nO=T(),iO={message:s(({params:{missingProperty:e}})=>(0,ki.str)`must have required property '${e}'`,"message"),params:s(({params:{missingProperty:e}})=>(0,ki._)`{missingProperty: ${e}}`,"params")},oO={keyword:"required",type:"object",schemaType:"array",$data:!0,error:iO,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:a}=e,{opts:u}=a;if(!o&&r.length===0)return;let c=r.length>=u.loopRequired;if(a.allErrors?l():p(),u.strictRequired){let h=e.parentSchema.properties,{definedProperties:g}=e.it;for(let y of r)if((h==null?void 0:h[y])===void 0&&!g.has(y)){let v=a.schemaEnv.baseId+a.errSchemaPath,_=`required property "${y}" is not defined at "${v}" (strictRequired)`;(0,nO.checkStrictMode)(a,_,a.opts.strictRequired)}}function l(){if(c||o)e.block$data(ki.nil,f);else for(let h of r)(0,Ii.checkReportMissingProp)(e,h)}s(l,"allErrorsMode");function p(){let h=t.let("missing");if(c||o){let g=t.let("valid",!0);e.block$data(g,()=>d(h,g)),e.ok(g)}else t.if((0,Ii.checkMissingProp)(e,r,h)),(0,Ii.reportMissingProp)(e,h),t.else()}s(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,Ii.noPropertyInData)(t,i,h,u.ownProperties),()=>e.error())})}s(f,"loopAllRequired");function d(h,g){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(g,(0,Ii.propertyInData)(t,i,h,u.ownProperties)),t.if((0,ki.not)(g),()=>{e.error(),t.break()})},ki.nil)}s(d,"loopUntilMissing")}};xc.default=oO});var Ic=m(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});var Ri=A(),sO={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Ri.str)`must NOT have ${r} than ${t} items`},params:s(({schemaCode:e})=>(0,Ri._)`{limit: ${e}}`,"params")},aO={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:sO,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Ri.operators.GT:Ri.operators.LT;e.fail$data((0,Ri._)`${r}.length ${i} ${n}`)}};Ac.default=aO});var Qo=m(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});var Gh=Vu();Gh.code='require("ajv/dist/runtime/equal").default';kc.default=Gh});var Cc=m(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});var Rc=mi(),ue=A(),uO=T(),cO=Qo(),lO={message:s(({params:{i:e,j:t}})=>(0,ue.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:s(({params:{i:e,j:t}})=>(0,ue._)`{i: ${e}, j: ${t}}`,"params")},fO={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:lO,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:a,it:u}=e;if(!n&&!i)return;let c=t.let("valid"),l=o.items?(0,Rc.getSchemaTypes)(o.items):[];e.block$data(c,p,(0,ue._)`${a} === false`),e.ok(c);function p(){let g=t.let("i",(0,ue._)`${r}.length`),y=t.let("j");e.setParams({i:g,j:y}),t.assign(c,!0),t.if((0,ue._)`${g} > 1`,()=>(f()?d:h)(g,y))}s(p,"validateUniqueItems");function f(){return l.length>0&&!l.some(g=>g==="object"||g==="array")}s(f,"canOptimize");function d(g,y){let v=t.name("item"),_=(0,Rc.checkDataTypes)(l,v,u.opts.strictNumbers,Rc.DataType.Wrong),b=t.const("indices",(0,ue._)`{}`);t.for((0,ue._)`;${g}--;`,()=>{t.let(v,(0,ue._)`${r}[${g}]`),t.if(_,(0,ue._)`continue`),l.length>1&&t.if((0,ue._)`typeof ${v} == "string"`,(0,ue._)`${v} += "_"`),t.if((0,ue._)`typeof ${b}[${v}] == "number"`,()=>{t.assign(y,(0,ue._)`${b}[${v}]`),e.error(),t.assign(c,!1).break()}).code((0,ue._)`${b}[${v}] = ${g}`)})}s(d,"loopN");function h(g,y){let v=(0,uO.useFunc)(t,cO.default),_=t.name("outer");t.label(_).for((0,ue._)`;${g}--;`,()=>t.for((0,ue._)`${y} = ${g}; ${y}--;`,()=>t.if((0,ue._)`${v}(${r}[${g}], ${r}[${y}])`,()=>{e.error(),t.assign(c,!1).break(_)})))}s(h,"loopN2")}};Tc.default=fO});var jc=m(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});var Nc=A(),pO=T(),dO=Qo(),hO={message:"must be equal to constant",params:s(({schemaCode:e})=>(0,Nc._)`{allowedValue: ${e}}`,"params")},mO={keyword:"const",$data:!0,error:hO,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,Nc._)`!${(0,pO.useFunc)(t,dO.default)}(${r}, ${i})`):e.fail((0,Nc._)`${o} !== ${r}`)}};qc.default=mO});var Dc=m(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});var Ti=A(),gO=T(),yO=Qo(),vO={message:"must be equal to one of the allowed values",params:s(({schemaCode:e})=>(0,Ti._)`{allowedValues: ${e}}`,"params")},_O={keyword:"enum",schemaType:"array",$data:!0,error:vO,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 u=i.length>=a.opts.loopEnum,c,l=s(()=>c??(c=(0,gO.useFunc)(t,yO.default)),"getEql"),p;if(u||n)p=t.let("valid"),e.block$data(p,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let h=t.const("vSchema",o);p=(0,Ti.or)(...i.map((g,y)=>d(h,y)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",o,h=>t.if((0,Ti._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}s(f,"loopEnum");function d(h,g){let y=i[g];return typeof y=="object"&&y!==null?(0,Ti._)`${l()}(${r}, ${h}[${g}])`:(0,Ti._)`${r} === ${y}`}s(d,"equalCode")}};Mc.default=_O});var Zh=m(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});var bO=Vh(),SO=Hh(),PO=vc(),$O=Sc(),OO=$c(),EO=Ec(),xO=wc(),wO=Ic(),AO=Cc(),IO=jc(),kO=Dc(),RO=[bO.default,SO.default,PO.default,$O.default,OO.default,EO.default,xO.default,wO.default,AO.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},IO.default,kO.default];Lc.default=RO});var Vc=m(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.validateAdditionalItems=void 0;var Ar=A(),Fc=T(),TO={message:s(({params:{len:e}})=>(0,Ar.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Ar._)`{limit: ${e}}`,"params")},CO={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:TO,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Fc.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Kh(e,n)}};function Kh(e,t){let{gen:r,schema:n,data:i,keyword:o,it:a}=e;a.items=!0;let u=r.const("len",(0,Ar._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Ar._)`${u} <= ${t.length}`);else if(typeof n=="object"&&!(0,Fc.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,Ar._)`${u} <= ${t.length}`);r.if((0,Ar.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,u,p=>{e.subschema({keyword:o,dataProp:p,dataPropType:Fc.Type.Num},l),a.allErrors||r.if((0,Ar.not)(l),()=>r.break())})}s(c,"validateItems")}s(Kh,"validateAdditionalItems");Ci.validateAdditionalItems=Kh;Ci.default=CO});var Bc=m(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.validateTuple=void 0;var Wh=A(),Jo=T(),NO=Ve(),qO={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return Yh(e,"additionalItems",t);r.items=!0,!(0,Jo.alwaysValidSchema)(r,t)&&e.ok((0,NO.validateArray)(e))}};function Yh(e,t,r=e.schema){let{gen:n,parentSchema:i,data:o,keyword:a,it:u}=e;p(i),u.opts.unevaluated&&r.length&&u.items!==!0&&(u.items=Jo.mergeEvaluated.items(n,r.length,u.items));let c=n.name("valid"),l=n.const("len",(0,Wh._)`${o}.length`);r.forEach((f,d)=>{(0,Jo.alwaysValidSchema)(u,f)||(n.if((0,Wh._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},c)),e.ok(c))});function p(f){let{opts:d,errSchemaPath:h}=u,g=r.length,y=g===f.minItems&&(g===f.maxItems||f[t]===!1);if(d.strictTuples&&!y){let v=`"${a}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Jo.checkStrictMode)(u,v,d.strictTuples)}}s(p,"checkStrictTuple")}s(Yh,"validateTuple");Ni.validateTuple=Yh;Ni.default=qO});var Qh=m(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});var jO=Bc(),MO={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:s(e=>(0,jO.validateTuple)(e,"items"),"code")};Hc.default=MO});var Xh=m(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});var Jh=A(),DO=T(),LO=Ve(),FO=Vc(),VO={message:s(({params:{len:e}})=>(0,Jh.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Jh._)`{limit: ${e}}`,"params")},BO={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:VO,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,DO.alwaysValidSchema)(n,t)&&(i?(0,FO.validateAdditionalItems)(e,i):e.ok((0,LO.validateArray)(e)))}};Uc.default=BO});var em=m(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});var He=A(),Xo=T(),HO={message:s(({params:{min:e,max:t}})=>t===void 0?(0,He.str)`must contain at least ${e} valid item(s)`:(0,He.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:s(({params:{min:e,max:t}})=>t===void 0?(0,He._)`{minContains: ${e}}`:(0,He._)`{minContains: ${e}, maxContains: ${t}}`,"params")},UO={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:HO,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e,a,u,{minContains:c,maxContains:l}=n;o.opts.next?(a=c===void 0?1:c,u=l):a=1;let p=t.const("len",(0,He._)`${i}.length`);if(e.setParams({min:a,max:u}),u===void 0&&a===0){(0,Xo.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(u!==void 0&&a>u){(0,Xo.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Xo.alwaysValidSchema)(o,r)){let y=(0,He._)`${p} >= ${a}`;u!==void 0&&(y=(0,He._)`${y} && ${p} <= ${u}`),e.pass(y);return}o.items=!0;let f=t.name("valid");u===void 0&&a===1?h(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),u!==void 0&&t.if((0,He._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let y=t.name("_valid"),v=t.let("count",0);h(y,()=>t.if(y,()=>g(v)))}s(d,"validateItemsWithCount");function h(y,v){t.forRange("i",0,p,_=>{e.subschema({keyword:"contains",dataProp:_,dataPropType:Xo.Type.Num,compositeRule:!0},y),v()})}s(h,"validateItems");function g(y){t.code((0,He._)`${y}++`),u===void 0?t.if((0,He._)`${y} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,He._)`${y} > ${u}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,He._)`${y} >= ${a}`,()=>t.assign(f,!0)))}s(g,"checkLimits")}};zc.default=UO});var es=m(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.validateSchemaDeps=yt.validatePropertyDeps=yt.error=void 0;var Gc=A(),zO=T(),qi=Ve();yt.error={message:s(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Gc.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:s(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Gc._)`{property: ${e},
|
|
10
10
|
missingProperty: ${n},
|
|
11
11
|
depsCount: ${t},
|
|
12
|
-
deps: ${r}}`,"params")};var ZO={keyword:"dependencies",type:"object",schemaType:"object",error:yt.error,code(e){let[t,r]=KO(e);rm(e,t),nm(e,r)}};function KO({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}o(KO,"splitDependencies");function rm(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let a in t){let u=t[a];if(u.length===0)continue;let c=(0,ji.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:u.length,deps:u.join(", ")}),i.allErrors?r.if(c,()=>{for(let l of u)(0,ji.checkReportMissingProp)(e,l)}):(r.if((0,Zc._)`${c} && (${(0,ji.checkMissingProp)(e,u,s)})`),(0,ji.reportMissingProp)(e,s),r.else())}}o(rm,"validatePropertyDeps");yt.validatePropertyDeps=rm;function nm(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let u in t)(0,GO.alwaysValidSchema)(s,t[u])||(r.if((0,ji.propertyInData)(r,n,u,s.opts.ownProperties),()=>{let c=e.subschema({keyword:i,schemaProp:u},a);e.mergeValidEvaluated(c,a)},()=>r.var(a,!0)),e.ok(a))}o(nm,"validateSchemaDeps");yt.validateSchemaDeps=nm;yt.default=ZO});var om=m(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});var im=A(),WO=T(),YO={message:"property name must be valid",params:o(({params:e})=>(0,im._)`{propertyName: ${e.propertyName}}`,"params")},QO={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:YO,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,WO.alwaysValidSchema)(i,r))return;let s=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},s),t.if((0,im.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};Kc.default=QO});var Yc=m(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});var rs=Ve(),tt=A(),JO=Fe(),ns=T(),XO={message:"must NOT have additional properties",params:o(({params:e})=>(0,tt._)`{additionalProperty: ${e.additionalProperty}}`,"params")},eE={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:XO,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:s,it:a}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:u,opts:c}=a;if(a.props=!0,c.removeAdditional!=="all"&&(0,ns.alwaysValidSchema)(a,r))return;let l=(0,rs.allSchemaProperties)(n.properties),p=(0,rs.allSchemaProperties)(n.patternProperties);f(),e.ok((0,tt._)`${s} === ${JO.default.errors}`);function f(){t.forIn("key",i,v=>{!l.length&&!p.length?g(v):t.if(d(v),()=>g(v))})}o(f,"checkAdditionalProperties");function d(v){let _;if(l.length>8){let b=(0,ns.schemaRefOrVal)(a,n.properties,"properties");_=(0,rs.isOwnProperty)(t,b,v)}else l.length?_=(0,tt.or)(...l.map(b=>(0,tt._)`${v} === ${b}`)):_=tt.nil;return p.length&&(_=(0,tt.or)(_,...p.map(b=>(0,tt._)`${(0,rs.usePattern)(e,b)}.test(${v})`))),(0,tt.not)(_)}o(d,"isAdditional");function h(v){t.code((0,tt._)`delete ${i}[${v}]`)}o(h,"deleteAdditional");function g(v){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){h(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),u||t.break();return}if(typeof r=="object"&&!(0,ns.alwaysValidSchema)(a,r)){let _=t.name("valid");c.removeAdditional==="failing"?(y(v,_,!1),t.if((0,tt.not)(_),()=>{e.reset(),h(v)})):(y(v,_),u||t.if((0,tt.not)(_),()=>t.break()))}}o(g,"additionalPropertyCode");function y(v,_,b){let S={keyword:"additionalProperties",dataProp:v,dataPropType:ns.Type.Str};b===!1&&Object.assign(S,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(S,_)}o(y,"applyAdditionalSchema")}};Wc.default=eE});var um=m(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});var tE=bi(),sm=Ve(),Qc=T(),am=Yc(),rE={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&am.default.code(new tE.KeywordCxt(s,am.default,"additionalProperties"));let a=(0,sm.allSchemaProperties)(r);for(let f of a)s.definedProperties.add(f);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=Qc.mergeEvaluated.props(t,(0,Qc.toHash)(a),s.props));let u=a.filter(f=>!(0,Qc.alwaysValidSchema)(s,r[f]));if(u.length===0)return;let c=t.name("valid");for(let f of u)l(f)?p(f):(t.if((0,sm.propertyInData)(t,i,f,s.opts.ownProperties)),p(f),s.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(c);function l(f){return s.opts.useDefaults&&!s.compositeRule&&r[f].default!==void 0}o(l,"hasDefault");function p(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}o(p,"applyPropertySchema")}};Jc.default=rE});var pm=m(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});var cm=Ve(),is=A(),lm=T(),fm=T(),nE={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:a}=s,u=(0,cm.allSchemaProperties)(r),c=u.filter(y=>(0,lm.alwaysValidSchema)(s,r[y]));if(u.length===0||c.length===u.length&&(!s.opts.unevaluated||s.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,p=t.name("valid");s.props!==!0&&!(s.props instanceof is.Name)&&(s.props=(0,fm.evaluatedPropsToName)(t,s.props));let{props:f}=s;d();function d(){for(let y of u)l&&h(y),s.allErrors?g(y):(t.var(p,!0),g(y),t.if(p))}o(d,"validatePatternProperties");function h(y){for(let v in l)new RegExp(y).test(v)&&(0,lm.checkStrictMode)(s,`property ${v} matches pattern ${y} (use allowMatchingProperties)`)}o(h,"checkMatchingProperties");function g(y){t.forIn("key",n,v=>{t.if((0,is._)`${(0,cm.usePattern)(e,y)}.test(${v})`,()=>{let _=c.includes(y);_||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:v,dataPropType:fm.Type.Str},p),s.opts.unevaluated&&f!==!0?t.assign((0,is._)`${f}[${v}]`,!0):!_&&!s.allErrors&&t.if((0,is.not)(p),()=>t.break())})})}o(g,"validateProperties")}};Xc.default=nE});var dm=m(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var iE=T(),oE={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,iE.alwaysValidSchema)(n,r)){e.fail();return}let i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};el.default=oE});var hm=m(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var sE=Ve(),aE={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:sE.validateUnion,error:{message:"must match a schema in anyOf"}};tl.default=aE});var mm=m(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var os=A(),uE=T(),cE={message:"must match exactly one schema in oneOf",params:o(({params:e})=>(0,os._)`{passingSchemas: ${e.passing}}`,"params")},lE={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:cE,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let s=r,a=t.let("valid",!1),u=t.let("passing",null),c=t.name("_valid");e.setParams({passing:u}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){s.forEach((p,f)=>{let d;(0,uE.alwaysValidSchema)(i,p)?t.var(c,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&t.if((0,os._)`${c} && ${a}`).assign(a,!1).assign(u,(0,os._)`[${u}, ${f}]`).else(),t.if(c,()=>{t.assign(a,!0),t.assign(u,f),d&&e.mergeEvaluated(d,os.Name)})})}o(l,"validateOneOf")}};rl.default=lE});var gm=m(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});var fE=T(),pE={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((s,a)=>{if((0,fE.alwaysValidSchema)(n,s))return;let u=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(u)})}};nl.default=pE});var _m=m(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});var ss=A(),vm=T(),dE={message:o(({params:e})=>(0,ss.str)`must match "${e.ifClause}" schema`,"message"),params:o(({params:e})=>(0,ss._)`{failingKeyword: ${e.ifClause}}`,"params")},hE={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:dE,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,vm.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=ym(n,"then"),s=ym(n,"else");if(!i&&!s)return;let a=t.let("valid",!0),u=t.name("_valid");if(c(),e.reset(),i&&s){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(u,l("then",p),l("else",p))}else i?t.if(u,l("then")):t.if((0,ss.not)(u),l("else"));e.pass(a,()=>e.error(!0));function c(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(p)}o(c,"validateIf");function l(p,f){return()=>{let d=e.subschema({keyword:p},u);t.assign(a,u),e.mergeValidEvaluated(d,a),f?t.assign(f,(0,ss._)`${p}`):e.setParams({ifClause:p})}}o(l,"validateClause")}};function ym(e,t){let r=e.schema[t];return r!==void 0&&!(0,vm.alwaysValidSchema)(e,r)}o(ym,"hasSchema");il.default=hE});var bm=m(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var mE=T(),gE={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,mE.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};ol.default=gE});var al=m(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});var yE=Bc(),vE=Jh(),_E=Hc(),bE=em(),SE=tm(),PE=ts(),$E=om(),OE=Yc(),EE=um(),xE=pm(),wE=dm(),AE=hm(),IE=mm(),kE=gm(),RE=_m(),TE=bm();function CE(e=!1){let t=[wE.default,AE.default,IE.default,kE.default,RE.default,TE.default,$E.default,OE.default,PE.default,EE.default,xE.default];return e?t.push(vE.default,bE.default):t.push(yE.default,_E.default),t.push(SE.default),t}o(CE,"getApplicator");sl.default=CE});var Sm=m(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var Q=A(),NE={message:o(({schemaCode:e})=>(0,Q.str)`must match format "${e}"`,"message"),params:o(({schemaCode:e})=>(0,Q._)`{format: ${e}}`,"params")},qE={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:NE,code(e,t){let{gen:r,data:n,$data:i,schema:s,schemaCode:a,it:u}=e,{opts:c,errSchemaPath:l,schemaEnv:p,self:f}=u;if(!c.validateFormats)return;i?d():h();function d(){let g=r.scopeValue("formats",{ref:f.formats,code:c.code.formats}),y=r.const("fDef",(0,Q._)`${g}[${a}]`),v=r.let("fType"),_=r.let("format");r.if((0,Q._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(v,(0,Q._)`${y}.type || "string"`).assign(_,(0,Q._)`${y}.validate`),()=>r.assign(v,(0,Q._)`"string"`).assign(_,y)),e.fail$data((0,Q.or)(b(),S()));function b(){return c.strictSchema===!1?Q.nil:(0,Q._)`${a} && !${_}`}o(b,"unknownFmt");function S(){let E=p.$async?(0,Q._)`(${y}.async ? await ${_}(${n}) : ${_}(${n}))`:(0,Q._)`${_}(${n})`,$=(0,Q._)`(typeof ${_} == "function" ? ${E} : ${_}.test(${n}))`;return(0,Q._)`${_} && ${_} !== true && ${v} === ${t} && !${$}`}o(S,"invalidFmt")}o(d,"validate$DataFormat");function h(){let g=f.formats[s];if(!g){b();return}if(g===!0)return;let[y,v,_]=S(g);y===t&&e.pass(E());function b(){if(c.strictSchema===!1){f.logger.warn($());return}throw new Error($());function $(){return`unknown format "${s}" ignored in schema at path "${l}"`}}o(b,"unknownFormat");function S($){let M=$ instanceof RegExp?(0,Q.regexpCode)($):c.code.formats?(0,Q._)`${c.code.formats}${(0,Q.getProperty)(s)}`:void 0,j=r.scopeValue("formats",{key:s,ref:$,code:M});return typeof $=="object"&&!($ instanceof RegExp)?[$.type||"string",$.validate,(0,Q._)`${j}.validate`]:["string",$,j]}o(S,"getFormat");function E(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!p.$async)throw new Error("async format in sync schema");return(0,Q._)`await ${_}(${n})`}return typeof v=="function"?(0,Q._)`${_}(${n})`:(0,Q._)`${_}.test(${n})`}o(E,"validCondition")}o(h,"validateFormat")}};ul.default=qE});var ll=m(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});var jE=Sm(),ME=[jE.default];cl.default=ME});var Pm=m(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});var DE=Vh(),LE=Kh(),FE=al(),VE=ll(),BE=["title","description","default"],HE=[DE.default,LE.default,FE.default(),VE.default,BE];fl.default=HE});var Om=m(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.DiscrError=void 0;var $m;(function(e){e.Tag="tag",e.Mapping="mapping"})($m||(as.DiscrError=$m={}))});var hl=m(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var gn=A(),pl=Om(),Em=Pi(),UE=Si(),zE=T(),GE={message:o(({params:{discrError:e,tagName:t}})=>e===pl.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:o(({params:{discrError:e,tag:t,tagName:r}})=>(0,gn._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},ZE={keyword:"discriminator",type:"object",schemaType:"object",error:GE,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:s}=e,{oneOf:a}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let u=n.propertyName;if(typeof u!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let c=t.let("valid",!1),l=t.const("tag",(0,gn._)`${r}${(0,gn.getProperty)(u)}`);t.if((0,gn._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:pl.DiscrError.Tag,tag:l,tagName:u})),e.ok(c);function p(){let h=d();t.if(!1);for(let g in h)t.elseIf((0,gn._)`${l} === ${g}`),t.assign(c,f(h[g]));t.else(),e.error(!1,{discrError:pl.DiscrError.Mapping,tag:l,tagName:u}),t.endIf()}o(p,"validateMapping");function f(h){let g=t.name("valid"),y=e.subschema({keyword:"oneOf",schemaProp:h},g);return e.mergeEvaluated(y,gn.Name),g}o(f,"applyTagSchema");function d(){var h;let g={},y=_(i),v=!0;for(let E=0;E<a.length;E++){let $=a[E];if($!=null&&$.$ref&&!(0,zE.schemaHasRulesButRef)($,s.self.RULES)){let j=$.$ref;if($=Em.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,j),$ instanceof Em.SchemaEnv&&($=$.schema),$===void 0)throw new UE.default(s.opts.uriResolver,s.baseId,j)}let M=(h=$==null?void 0:$.properties)===null||h===void 0?void 0:h[u];if(typeof M!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${u}"`);v=v&&(y||_($)),b(M,E)}if(!v)throw new Error(`discriminator: "${u}" must be required`);return g;function _({required:E}){return Array.isArray(E)&&E.includes(u)}function b(E,$){if(E.const)S(E.const,$);else if(E.enum)for(let M of E.enum)S(M,$);else throw new Error(`discriminator: "properties/${u}" must have "const" or "enum"`)}function S(E,$){if(typeof E!="string"||E in g)throw new Error(`discriminator: "${u}" values must be unique strings`);g[E]=$}}o(d,"getMapping")}};dl.default=ZE});var xm=m((k4,KE)=>{KE.exports={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}}});var Im=m((ee,Am)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.CodeGen=ee.Name=ee.nil=ee.stringify=ee.str=ee._=ee.KeywordCxt=void 0;var WE=hn(),YE=Pm(),QE=hl(),wm=xm(),JE=["/properties"],us="http://json-schema.org/draft-04/schema",ml=class ml extends WE.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),YE.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(QE.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(wm,JE):wm;this.addMetaSchema(t,us,!1),this.refs["http://json-schema.org/schema"]=us}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(us)?us:void 0)}};o(ml,"Ajv");var cs=ml;Am.exports=ee=cs;Object.defineProperty(ee,"__esModule",{value:!0});ee.default=cs;var XE=hn();Object.defineProperty(ee,"KeywordCxt",{enumerable:!0,get:o(function(){return XE.KeywordCxt},"get")});var yn=hn();Object.defineProperty(ee,"_",{enumerable:!0,get:o(function(){return yn._},"get")});Object.defineProperty(ee,"str",{enumerable:!0,get:o(function(){return yn.str},"get")});Object.defineProperty(ee,"stringify",{enumerable:!0,get:o(function(){return yn.stringify},"get")});Object.defineProperty(ee,"nil",{enumerable:!0,get:o(function(){return yn.nil},"get")});Object.defineProperty(ee,"Name",{enumerable:!0,get:o(function(){return yn.Name},"get")});Object.defineProperty(ee,"CodeGen",{enumerable:!0,get:o(function(){return yn.CodeGen},"get")})});var km=m(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var ex={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};gl.default=ex});var Rm=m(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var tx=km(),rx=wi(),nx=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",tx.default,rx.default];yl.default=nx});var Tm=m(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var ls=A(),Yt=ls.operators,fs={maximum:{okStr:"<=",ok:Yt.LTE,fail:Yt.GT},minimum:{okStr:">=",ok:Yt.GTE,fail:Yt.LT},exclusiveMaximum:{okStr:"<",ok:Yt.LT,fail:Yt.GTE},exclusiveMinimum:{okStr:">",ok:Yt.GT,fail:Yt.LTE}},ix={message:o(({keyword:e,schemaCode:t})=>(0,ls.str)`must be ${fs[e].okStr} ${t}`,"message"),params:o(({keyword:e,schemaCode:t})=>(0,ls._)`{comparison: ${fs[e].okStr}, limit: ${t}}`,"params")},ox={keyword:Object.keys(fs),type:"number",schemaType:"number",$data:!0,error:ix,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,ls._)`${r} ${fs[t].fail} ${n} || isNaN(${r})`)}};vl.default=ox});var Cm=m(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});var sx=Tm(),ax=_c(),ux=Pc(),cx=Oc(),lx=xc(),fx=Ac(),px=kc(),dx=Nc(),hx=Mc(),mx=Lc(),gx=[sx.default,ax.default,ux.default,cx.default,lx.default,fx.default,px.default,dx.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},hx.default,mx.default];_l.default=gx});var Sl=m(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.dynamicAnchor=void 0;var bl=A(),yx=Fe(),Nm=Pi(),vx=wi(),_x={keyword:"$dynamicAnchor",schemaType:"string",code:o(e=>qm(e,e.schema),"code")};function qm(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,bl._)`${yx.default.dynamicAnchors}${(0,bl.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:bx(e);r.if((0,bl._)`!${i}`,()=>r.assign(i,s))}o(qm,"dynamicAnchor");Mi.dynamicAnchor=qm;function bx(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:s,localRefs:a,meta:u}=t.root,{schemaId:c}=n.opts,l=new Nm.SchemaEnv({schema:r,schemaId:c,root:i,baseId:s,localRefs:a,meta:u});return Nm.compileSchema.call(n,l),(0,vx.getValidate)(e,l)}o(bx,"_getValidate");Mi.default=_x});var Pl=m(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.dynamicRef=void 0;var jm=A(),Sx=Fe(),Mm=wi(),Px={keyword:"$dynamicRef",schemaType:"string",code:o(e=>Dm(e,e.schema),"code")};function Dm(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let s=t.slice(1);if(i.allErrors)a();else{let c=r.let("valid",!1);a(c),e.ok(c)}function a(c){if(i.schemaEnv.root.dynamicAnchors[s]){let l=r.let("_v",(0,jm._)`${Sx.default.dynamicAnchors}${(0,jm.getProperty)(s)}`);r.if(l,u(l,c),u(i.validateName,c))}else u(i.validateName,c)()}o(a,"_dynamicRef");function u(c,l){return l?()=>r.block(()=>{(0,Mm.callRef)(e,c),r.let(l,!0)}):()=>(0,Mm.callRef)(e,c)}o(u,"_callRef")}o(Dm,"dynamicRef");Di.dynamicRef=Dm;Di.default=Px});var Lm=m($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var $x=Sl(),Ox=T(),Ex={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,$x.dynamicAnchor)(e,""):(0,Ox.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};$l.default=Ex});var Fm=m(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var xx=Pl(),wx={keyword:"$recursiveRef",schemaType:"string",code:o(e=>(0,xx.dynamicRef)(e,e.schema),"code")};Ol.default=wx});var Vm=m(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var Ax=Sl(),Ix=Pl(),kx=Lm(),Rx=Fm(),Tx=[Ax.default,Ix.default,kx.default,Rx.default];El.default=Tx});var Hm=m(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var Bm=ts(),Cx={keyword:"dependentRequired",type:"object",schemaType:"object",error:Bm.error,code:o(e=>(0,Bm.validatePropertyDeps)(e),"code")};xl.default=Cx});var Um=m(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});var Nx=ts(),qx={keyword:"dependentSchemas",type:"object",schemaType:"object",code:o(e=>(0,Nx.validateSchemaDeps)(e),"code")};wl.default=qx});var zm=m(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});var jx=T(),Mx={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,jx.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};Al.default=Mx});var Gm=m(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var Dx=Hm(),Lx=Um(),Fx=zm(),Vx=[Dx.default,Lx.default,Fx.default];Il.default=Vx});var Km=m(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});var Qt=A(),Zm=T(),Bx=Fe(),Hx={message:"must NOT have unevaluated properties",params:o(({params:e})=>(0,Qt._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},Ux={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:Hx,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:s}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:u}=s;u instanceof Qt.Name?t.if((0,Qt._)`${u} !== true`,()=>t.forIn("key",n,f=>t.if(l(u,f),()=>c(f)))):u!==!0&&t.forIn("key",n,f=>u===void 0?c(f):t.if(p(u,f),()=>c(f))),s.props=!0,e.ok((0,Qt._)`${i} === ${Bx.default.errors}`);function c(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,Zm.alwaysValidSchema)(s,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:Zm.Type.Str},d),a||t.if((0,Qt.not)(d),()=>t.break())}}o(c,"unevaluatedPropCode");function l(f,d){return(0,Qt._)`!${f} || !${f}[${d}]`}o(l,"unevaluatedDynamic");function p(f,d){let h=[];for(let g in f)f[g]===!0&&h.push((0,Qt._)`${d} !== ${g}`);return(0,Qt.and)(...h)}o(p,"unevaluatedStatic")}};kl.default=Ux});var Ym=m(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});var Ir=A(),Wm=T(),zx={message:o(({params:{len:e}})=>(0,Ir.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Ir._)`{limit: ${e}}`,"params")},Gx={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:zx,code(e){let{gen:t,schema:r,data:n,it:i}=e,s=i.items||0;if(s===!0)return;let a=t.const("len",(0,Ir._)`${n}.length`);if(r===!1)e.setParams({len:s}),e.fail((0,Ir._)`${a} > ${s}`);else if(typeof r=="object"&&!(0,Wm.alwaysValidSchema)(i,r)){let c=t.var("valid",(0,Ir._)`${a} <= ${s}`);t.if((0,Ir.not)(c),()=>u(c,s)),e.ok(c)}i.items=!0;function u(c,l){t.forRange("i",l,a,p=>{e.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:Wm.Type.Num},c),i.allErrors||t.if((0,Ir.not)(c),()=>t.break())})}o(u,"validateItems")}};Rl.default=Gx});var Qm=m(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});var Zx=Km(),Kx=Ym(),Wx=[Zx.default,Kx.default];Tl.default=Wx});var Jm=m(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.contentVocabulary=vn.metadataVocabulary=void 0;vn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];vn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var eg=m(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});var Yx=Rm(),Qx=Cm(),Jx=al(),Xx=Vm(),ew=Gm(),tw=Qm(),rw=ll(),Xm=Jm(),nw=[Xx.default,Yx.default,Qx.default,(0,Jx.default)(!0),rw.default,Xm.metadataVocabulary,Xm.contentVocabulary,ew.default,tw.default];Cl.default=nw});var tg=m((iM,iw)=>{iw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var rg=m((oM,ow)=>{ow.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var ng=m((sM,sw)=>{sw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var ig=m((aM,aw)=>{aw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var og=m((uM,uw)=>{uw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var sg=m((cM,cw)=>{cw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var ag=m((lM,lw)=>{lw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var ug=m((fM,fw)=>{fw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var cg=m(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});var pw=tg(),dw=rg(),hw=ng(),mw=ig(),gw=og(),yw=sg(),vw=ag(),_w=ug(),bw=["/properties"];function Sw(e){return[pw,dw,hw,mw,gw,t(this,yw),vw,t(this,_w)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,bw):n}o(t,"with$data")}o(Sw,"addMetaSchema2020");Nl.default=Sw});var lg=m((B,jl)=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.MissingRefError=B.ValidationError=B.CodeGen=B.Name=B.nil=B.stringify=B.str=B._=B.KeywordCxt=B.Ajv2020=void 0;var Pw=hn(),$w=eg(),Ow=hl(),Ew=cg(),ql="https://json-schema.org/draft/2020-12/schema",Ml=class Ml extends Pw.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),$w.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Ow.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(Ew.default.call(this,t),this.refs["http://json-schema.org/schema"]=ql)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ql)?ql:void 0)}};o(Ml,"Ajv2020");var _n=Ml;B.Ajv2020=_n;jl.exports=B=_n;jl.exports.Ajv2020=_n;Object.defineProperty(B,"__esModule",{value:!0});B.default=_n;var xw=bi();Object.defineProperty(B,"KeywordCxt",{enumerable:!0,get:o(function(){return xw.KeywordCxt},"get")});var bn=A();Object.defineProperty(B,"_",{enumerable:!0,get:o(function(){return bn._},"get")});Object.defineProperty(B,"str",{enumerable:!0,get:o(function(){return bn.str},"get")});Object.defineProperty(B,"stringify",{enumerable:!0,get:o(function(){return bn.stringify},"get")});Object.defineProperty(B,"nil",{enumerable:!0,get:o(function(){return bn.nil},"get")});Object.defineProperty(B,"Name",{enumerable:!0,get:o(function(){return bn.Name},"get")});Object.defineProperty(B,"CodeGen",{enumerable:!0,get:o(function(){return bn.CodeGen},"get")});var ww=Ho();Object.defineProperty(B,"ValidationError",{enumerable:!0,get:o(function(){return ww.default},"get")});var Aw=Si();Object.defineProperty(B,"MissingRefError",{enumerable:!0,get:o(function(){return Aw.default},"get")})});var fg=m((mM,Iw)=>{Iw.exports={id:"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v1.2/apiDeclaration.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swaggerVersion","basePath","apis"],properties:{swaggerVersion:{enum:["1.2"]},apiVersion:{type:"string"},basePath:{type:"string",format:"uri",pattern:"^https?://"},resourcePath:{type:"string",format:"uri",pattern:"^/"},apis:{type:"array",items:{$ref:"#/definitions/apiObject"}},models:{type:"object",additionalProperties:{$ref:"modelsObject.json#"}},produces:{$ref:"#/definitions/mimeTypeArray"},consumes:{$ref:"#/definitions/mimeTypeArray"},authorizations:{$ref:"authorizationObject.json#"}},additionalProperties:!1,definitions:{apiObject:{type:"object",required:["path","operations"],properties:{path:{type:"string",format:"uri-template",pattern:"^/"},description:{type:"string"},operations:{type:"array",items:{$ref:"operationObject.json#"}}},additionalProperties:!1},mimeTypeArray:{type:"array",items:{type:"string",format:"mime-type"},uniqueItems:!0}}}});var pg=m((gM,kw)=>{kw.exports={title:"A JSON Schema for Swagger 2.0 API.",id:"http://swagger.io/v2/schema.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swagger","info","paths"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{swagger:{type:"string",enum:["2.0"],description:"The Swagger version of this document."},info:{$ref:"#/definitions/info"},host:{type:"string",pattern:"^[^{}/ :\\\\]+(?::\\d+)?$",description:"The host (name or ip) of the API. Example: 'swagger.io'"},basePath:{type:"string",pattern:"^/",description:"The base path to the API. Example: '/api'."},schemes:{$ref:"#/definitions/schemesList"},consumes:{description:"A list of MIME types accepted by the API.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},paths:{$ref:"#/definitions/paths"},definitions:{$ref:"#/definitions/definitions"},parameters:{$ref:"#/definitions/parameterDefinitions"},responses:{$ref:"#/definitions/responseDefinitions"},security:{$ref:"#/definitions/security"},securityDefinitions:{$ref:"#/definitions/securityDefinitions"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:!0},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed."},termsOfService:{type:"string",description:"The terms of service for the API."},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:!1,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},license:{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},paths:{type:"object",description:"Relative paths to the individual endpoints. They must be relative to the 'basePath'.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"},"^/":{$ref:"#/definitions/pathItem"}},additionalProperties:!1},definitions:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"One or more JSON objects describing the schemas being consumed and produced by the API."},parameterDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"},description:"One or more JSON representations for parameters"},responseDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/response"},description:"One or more JSON representations for responses"},externalDocs:{type:"object",additionalProperties:!1,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},examples:{type:"object",additionalProperties:!0},mimeType:{type:"string",description:"The MIME type of the HTTP message."},operation:{type:"object",required:["responses"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{tags:{type:"array",items:{type:"string"},uniqueItems:!0},summary:{type:"string",description:"A brief summary of the operation."},description:{type:"string",description:"A longer description of the operation, GitHub Flavored Markdown is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string",description:"A unique identifier of the operation."},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},consumes:{description:"A list of MIME types the API can consume.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},parameters:{$ref:"#/definitions/parametersList"},responses:{$ref:"#/definitions/responses"},schemes:{$ref:"#/definitions/schemesList"},deprecated:{type:"boolean",default:!1},security:{$ref:"#/definitions/security"}}},pathItem:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},get:{$ref:"#/definitions/operation"},put:{$ref:"#/definitions/operation"},post:{$ref:"#/definitions/operation"},delete:{$ref:"#/definitions/operation"},options:{$ref:"#/definitions/operation"},head:{$ref:"#/definitions/operation"},patch:{$ref:"#/definitions/operation"},parameters:{$ref:"#/definitions/parametersList"}}},responses:{type:"object",description:"Response objects names can either be any valid HTTP status code or 'default'.",minProperties:1,additionalProperties:!1,patternProperties:{"^([0-9]{3})$|^(default)$":{$ref:"#/definitions/responseValue"},"^x-":{$ref:"#/definitions/vendorExtension"}},not:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}}},responseValue:{oneOf:[{$ref:"#/definitions/response"},{$ref:"#/definitions/jsonReference"}]},response:{type:"object",required:["description"],properties:{description:{type:"string"},schema:{oneOf:[{$ref:"#/definitions/schema"},{$ref:"#/definitions/fileSchema"}]},headers:{$ref:"#/definitions/headers"},examples:{$ref:"#/definitions/examples"}},additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},headers:{type:"object",additionalProperties:{$ref:"#/definitions/header"}},header:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},vendorExtension:{description:"Any property starting with x- is valid.",additionalProperties:!0,additionalItems:!0},bodyParameter:{type:"object",required:["name","in","schema"],patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},in:{type:"string",description:"Determines the location of the parameter.",enum:["body"]},required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},schema:{$ref:"#/definitions/schema"}},additionalProperties:!1},headerParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["header"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},queryParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["query"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},formDataParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["formData"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array","file"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},pathParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["required"],properties:{required:{type:"boolean",enum:[!0],description:"Determines whether or not this parameter is required or optional."},in:{type:"string",description:"Determines the location of the parameter.",enum:["path"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},nonBodyParameter:{type:"object",required:["name","in","type"],oneOf:[{$ref:"#/definitions/headerParameterSubSchema"},{$ref:"#/definitions/formDataParameterSubSchema"},{$ref:"#/definitions/queryParameterSubSchema"},{$ref:"#/definitions/pathParameterSubSchema"}]},parameter:{oneOf:[{$ref:"#/definitions/bodyParameter"},{$ref:"#/definitions/nonBodyParameter"}]},schema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},maxProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}],default:{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type"},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},discriminator:{type:"string"},readOnly:{type:"boolean",default:!1},xml:{$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},fileSchema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["type"],properties:{format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},type:{type:"string",enum:["file"]},readOnly:{type:"boolean",default:!1},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},primitivesItems:{type:"object",additionalProperties:!1,properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},security:{type:"array",items:{$ref:"#/definitions/securityRequirement"},uniqueItems:!0},securityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"},uniqueItems:!0}},xml:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},tag:{type:"object",additionalProperties:!1,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},securityDefinitions:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/basicAuthenticationSecurity"},{$ref:"#/definitions/apiKeySecurity"},{$ref:"#/definitions/oauth2ImplicitSecurity"},{$ref:"#/definitions/oauth2PasswordSecurity"},{$ref:"#/definitions/oauth2ApplicationSecurity"},{$ref:"#/definitions/oauth2AccessCodeSecurity"}]}},basicAuthenticationSecurity:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["basic"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},apiKeySecurity:{type:"object",additionalProperties:!1,required:["type","name","in"],properties:{type:{type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ImplicitSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["implicit"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2PasswordSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["password"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ApplicationSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["application"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2AccessCodeSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["accessCode"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2Scopes:{type:"object",additionalProperties:{type:"string"}},mediaTypeList:{type:"array",items:{$ref:"#/definitions/mimeType"},uniqueItems:!0},parametersList:{type:"array",description:"The parameters needed to send a valid API call.",additionalItems:!1,items:{oneOf:[{$ref:"#/definitions/parameter"},{$ref:"#/definitions/jsonReference"}]},uniqueItems:!0},schemesList:{type:"array",description:"The transfer protocol of the API.",items:{type:"string",enum:["http","https","ws","wss"]},uniqueItems:!0},collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes"],default:"csv"},collectionFormatWithMulti:{type:"string",enum:["csv","ssv","tsv","pipes","multi"],default:"csv"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},jsonReference:{type:"object",required:["$ref"],additionalProperties:!1,properties:{$ref:{type:"string"}}}}}});var dg=m((yM,Rw)=>{Rw.exports={id:"https://spec.openapis.org/oas/3.0/schema/2019-04-02",$schema:"http://json-schema.org/draft-04/schema#",description:"Validation schema for OpenAPI Specification 3.0.X.",type:"object",required:["openapi","info","paths"],properties:{openapi:{type:"string",pattern:"^3\\.0\\.\\d(-.+)?$"},info:{$ref:"#/definitions/Info"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},tags:{type:"array",items:{$ref:"#/definitions/Tag"},uniqueItems:!0},paths:{$ref:"#/definitions/Paths"},components:{$ref:"#/definitions/Components"}},patternProperties:{"^x-":{}},additionalProperties:!1,definitions:{Reference:{type:"object",required:["$ref"],patternProperties:{"^\\$ref$":{type:"string",format:"uri-reference"}}},Info:{type:"object",required:["title","version"],properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri-reference"},contact:{$ref:"#/definitions/Contact"},license:{$ref:"#/definitions/License"},version:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},Contact:{type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"},email:{type:"string",format:"email"}},patternProperties:{"^x-":{}},additionalProperties:!1},License:{type:"object",required:["name"],properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},Server:{type:"object",required:["url"],properties:{url:{type:"string"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/definitions/ServerVariable"}}},patternProperties:{"^x-":{}},additionalProperties:!1},ServerVariable:{type:"object",required:["default"],properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},Components:{type:"object",properties:{schemas:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}}},responses:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Response"}]}}},parameters:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Parameter"}]}}},examples:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Example"}]}}},requestBodies:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/RequestBody"}]}}},headers:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Header"}]}}},securitySchemes:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/SecurityScheme"}]}}},links:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Link"}]}}},callbacks:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Callback"}]}}}},patternProperties:{"^x-":{}},additionalProperties:!1},Schema:{type:"object",properties:{title:{type:"string"},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0,default:0},pattern:{type:"string",format:"regex"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0,default:0},uniqueItems:{type:"boolean",default:!1},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0,default:0},required:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},enum:{type:"array",items:{},minItems:1,uniqueItems:!1},type:{type:"string",enum:["array","boolean","integer","number","object","string"]},not:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},allOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},oneOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},anyOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},properties:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"},{type:"boolean"}],default:!0},description:{type:"string"},format:{type:"string"},default:{},nullable:{type:"boolean",default:!1},discriminator:{$ref:"#/definitions/Discriminator"},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},example:{},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},deprecated:{type:"boolean",default:!1},xml:{$ref:"#/definitions/XML"}},patternProperties:{"^x-":{}},additionalProperties:!1},Discriminator:{type:"object",required:["propertyName"],properties:{propertyName:{type:"string"},mapping:{type:"object",additionalProperties:{type:"string"}}}},XML:{type:"object",properties:{name:{type:"string"},namespace:{type:"string",format:"uri"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1},Response:{type:"object",required:["description"],properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Header"},{$ref:"#/definitions/Reference"}]}},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}},links:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Link"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1},MediaType:{type:"object",properties:{schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}},encoding:{type:"object",additionalProperties:{$ref:"#/definitions/Encoding"}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"}]},Example:{type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:{},externalValue:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},Header:{type:"object",properties:{description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string",enum:["simple"],default:"simple"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"}]},Paths:{type:"object",patternProperties:{"^\\/":{$ref:"#/definitions/PathItem"},"^x-":{}},additionalProperties:!1},PathItem:{type:"object",properties:{$ref:{type:"string"},summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},parameters:{type:"array",items:{oneOf:[{$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},uniqueItems:!0}},patternProperties:{"^(get|put|post|delete|options|head|patch|trace)$":{$ref:"#/definitions/Operation"},"^x-":{}},additionalProperties:!1},Operation:{type:"object",required:["responses"],properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},operationId:{type:"string"},parameters:{type:"array",items:{oneOf:[{$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},uniqueItems:!0},requestBody:{oneOf:[{$ref:"#/definitions/RequestBody"},{$ref:"#/definitions/Reference"}]},responses:{$ref:"#/definitions/Responses"},callbacks:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Callback"},{$ref:"#/definitions/Reference"}]}},deprecated:{type:"boolean",default:!1},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},servers:{type:"array",items:{$ref:"#/definitions/Server"}}},patternProperties:{"^x-":{}},additionalProperties:!1},Responses:{type:"object",properties:{default:{oneOf:[{$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]}},patternProperties:{"^[1-5](?:\\d{2}|XX)$":{oneOf:[{$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]},"^x-":{}},minProperties:1,additionalProperties:!1},SecurityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},Tag:{type:"object",required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"}},patternProperties:{"^x-":{}},additionalProperties:!1},ExternalDocumentation:{type:"object",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},ExampleXORExamples:{description:"Example and examples are mutually exclusive",not:{required:["example","examples"]}},SchemaXORContent:{description:"Schema and content are mutually exclusive, at least one is required",not:{required:["schema","content"]},oneOf:[{required:["schema"]},{required:["content"],description:"Some properties are not allowed if content is present",allOf:[{not:{required:["style"]}},{not:{required:["explode"]}},{not:{required:["allowReserved"]}},{not:{required:["example"]}},{not:{required:["examples"]}}]}]},Parameter:{type:"object",properties:{name:{type:"string"},in:{type:"string"},description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1,required:["name","in"],allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"},{$ref:"#/definitions/ParameterLocation"}]},ParameterLocation:{description:"Parameter location",oneOf:[{description:"Parameter in path",required:["required"],properties:{in:{enum:["path"]},style:{enum:["matrix","label","simple"],default:"simple"},required:{enum:[!0]}}},{description:"Parameter in query",properties:{in:{enum:["query"]},style:{enum:["form","spaceDelimited","pipeDelimited","deepObject"],default:"form"}}},{description:"Parameter in header",properties:{in:{enum:["header"]},style:{enum:["simple"],default:"simple"}}},{description:"Parameter in cookie",properties:{in:{enum:["cookie"]},style:{enum:["form"],default:"form"}}}]},RequestBody:{type:"object",required:["content"],properties:{description:{type:"string"},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}},required:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1},SecurityScheme:{oneOf:[{$ref:"#/definitions/APIKeySecurityScheme"},{$ref:"#/definitions/HTTPSecurityScheme"},{$ref:"#/definitions/OAuth2SecurityScheme"},{$ref:"#/definitions/OpenIdConnectSecurityScheme"}]},APIKeySecurityScheme:{type:"object",required:["type","name","in"],properties:{type:{type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query","cookie"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},HTTPSecurityScheme:{type:"object",required:["scheme","type"],properties:{scheme:{type:"string"},bearerFormat:{type:"string"},description:{type:"string"},type:{type:"string",enum:["http"]}},patternProperties:{"^x-":{}},additionalProperties:!1,oneOf:[{description:"Bearer",properties:{scheme:{enum:["bearer"]}}},{description:"Non Bearer",not:{required:["bearerFormat"]},properties:{scheme:{not:{enum:["bearer"]}}}}]},OAuth2SecurityScheme:{type:"object",required:["type","flows"],properties:{type:{type:"string",enum:["oauth2"]},flows:{$ref:"#/definitions/OAuthFlows"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},OpenIdConnectSecurityScheme:{type:"object",required:["type","openIdConnectUrl"],properties:{type:{type:"string",enum:["openIdConnect"]},openIdConnectUrl:{type:"string",format:"uri-reference"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},OAuthFlows:{type:"object",properties:{implicit:{$ref:"#/definitions/ImplicitOAuthFlow"},password:{$ref:"#/definitions/PasswordOAuthFlow"},clientCredentials:{$ref:"#/definitions/ClientCredentialsFlow"},authorizationCode:{$ref:"#/definitions/AuthorizationCodeOAuthFlow"}},patternProperties:{"^x-":{}},additionalProperties:!1},ImplicitOAuthFlow:{type:"object",required:["authorizationUrl","scopes"],properties:{authorizationUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},PasswordOAuthFlow:{type:"object",required:["tokenUrl"],properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},ClientCredentialsFlow:{type:"object",required:["tokenUrl"],properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},AuthorizationCodeOAuthFlow:{type:"object",required:["authorizationUrl","tokenUrl"],properties:{authorizationUrl:{type:"string",format:"uri-reference"},tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},Link:{type:"object",properties:{operationId:{type:"string"},operationRef:{type:"string",format:"uri-reference"},parameters:{type:"object",additionalProperties:{}},requestBody:{},description:{type:"string"},server:{$ref:"#/definitions/Server"}},patternProperties:{"^x-":{}},additionalProperties:!1,not:{description:"Operation Id and Operation Ref are mutually exclusive",required:["operationId","operationRef"]}},Callback:{type:"object",additionalProperties:{$ref:"#/definitions/PathItem"},patternProperties:{"^x-":{}}},Encoding:{type:"object",properties:{contentType:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/definitions/Header"}},style:{type:"string",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1}},additionalProperties:!1}}}});var hg=m((vM,Tw)=>{Tw.exports={$id:"https://spec.openapis.org/oas/3.1/schema/2021-04-15",$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{openapi:{type:"string",pattern:"^3\\.1\\.\\d+(-.+)?$"},info:{$ref:"#/$defs/info"},jsonSchemaDialect:{$ref:"#/$defs/uri",default:"https://spec.openapis.org/oas/3.1/dialect/base"},servers:{type:"array",items:{$ref:"#/$defs/server"}},paths:{$ref:"#/$defs/paths"},webhooks:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},components:{$ref:"#/$defs/components"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},tags:{type:"array",items:{$ref:"#/$defs/tag"}},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["openapi","info"],anyOf:[{required:["paths"]},{required:["components"]},{required:["webhooks"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{info:{type:"object",properties:{title:{type:"string"},summary:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:{$ref:"#/$defs/contact"},license:{$ref:"#/$defs/license"},version:{type:"string"}},required:["title","version"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},contact:{type:"object",properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},license:{type:"object",properties:{name:{type:"string"},identifier:{type:"string"},url:{$ref:"#/$defs/uri"}},required:["name"],oneOf:[{required:["identifier"]},{required:["url"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},server:{type:"object",properties:{url:{$ref:"#/$defs/uri"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/$defs/server-variable"}}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"server-variable":{type:"object",properties:{enum:{type:"array",items:{type:"string"},minItems:1},default:{type:"string"},descriptions:{type:"string"}},required:["default"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},components:{type:"object",properties:{schemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"}},responses:{type:"object",additionalProperties:{$ref:"#/$defs/response-or-reference"}},parameters:{type:"object",additionalProperties:{$ref:"#/$defs/parameter-or-reference"}},examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}},requestBodies:{type:"object",additionalProperties:{$ref:"#/$defs/request-body-or-reference"}},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},securitySchemes:{type:"object",additionalProperties:{$ref:"#/$defs/security-scheme-or-reference"}},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},pathItems:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}}},patternProperties:{"^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$":{$comment:"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected",propertyNames:{pattern:"^[a-zA-Z0-9._-]+$"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},paths:{type:"object",patternProperties:{"^/":{$ref:"#/$defs/path-item"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item":{type:"object",properties:{summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/$defs/server"}},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}}},patternProperties:{"^(get|put|post|delete|options|head|patch|trace)$":{$ref:"#/$defs/operation"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/path-item"}},operation:{type:"object",properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"},operationId:{type:"string"},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}},requestBody:{$ref:"#/$defs/request-body-or-reference"},responses:{$ref:"#/$defs/responses"},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},deprecated:{default:!1,type:"boolean"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},servers:{type:"array",items:{$ref:"#/$defs/server"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"external-documentation":{type:"object",properties:{description:{type:"string"},url:{$ref:"#/$defs/uri"}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},parameter:{type:"object",properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},allowEmptyValue:{default:!1,type:"boolean"},schema:{$dynamicRef:"#meta"},content:{$ref:"#/$defs/content"}},required:["in"],oneOf:[{required:["schema"]},{required:["content"]}],dependentSchemas:{schema:{properties:{style:{type:"string"},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/examples"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-form"}],$defs:{"styles-for-path":{if:{properties:{in:{const:"path"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["matrix","label","simple"]},required:{const:!0}},required:["required"]}},"styles-for-header":{if:{properties:{in:{const:"header"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["simple"]}}}},"styles-for-query":{if:{properties:{in:{const:"query"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]}}}},"styles-for-cookie":{if:{properties:{in:{const:"cookie"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form"]}}}},"styles-for-form":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"parameter-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/parameter"}},"request-body":{type:"object",properties:{description:{type:"string"},content:{$ref:"#/$defs/content"},required:{default:!1,type:"boolean"}},required:["content"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"request-body-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/request-body"}},content:{type:"object",additionalProperties:{$ref:"#/$defs/media-type"},propertyNames:{format:"media-range"}},"media-type":{type:"object",properties:{schema:{$dynamicRef:"#meta"},encoding:{type:"object",additionalProperties:{$ref:"#/$defs/encoding"}}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/examples"}],unevaluatedProperties:!1},encoding:{type:"object",properties:{contentType:{type:"string",format:"media-range"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/encoding/$defs/explode-default"}],unevaluatedProperties:!1,$defs:{"explode-default":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}},responses:{type:"object",properties:{default:{$ref:"#/$defs/response-or-reference"}},patternProperties:{"^[1-5][0-9X]{2}$":{$ref:"#/$defs/response-or-reference"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},response:{type:"object",properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},content:{$ref:"#/$defs/content"},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}}},required:["description"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"response-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/response"}},callbacks:{type:"object",$ref:"#/$defs/specification-extensions",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},"callbacks-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/callbacks"}},example:{type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:!0,externalValue:{$ref:"#/$defs/uri"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"example-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/example"}},link:{type:"object",properties:{operationRef:{$ref:"#/$defs/uri"},operationId:!0,parameters:{$ref:"#/$defs/map-of-strings"},requestBody:!0,description:{type:"string"},body:{$ref:"#/$defs/server"}},oneOf:[{required:["operationRef"]},{required:["operationId"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"link-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/link"}},header:{type:"object",properties:{description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},allowEmptyValue:{default:!1,type:"boolean"}},dependentSchemas:{schema:{properties:{style:{default:"simple",enum:["simple"]},explode:{default:!1,type:"boolean"},allowReserved:{default:!1,type:"boolean"},schema:{$dynamicRef:"#meta"}},$ref:"#/$defs/examples"},content:{properties:{content:{$ref:"#/$defs/content"}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"header-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/header"}},tag:{type:"object",properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["name"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},reference:{type:"object",properties:{$ref:{$ref:"#/$defs/uri"},summary:{type:"string"},description:{type:"string"}},unevaluatedProperties:!1},schema:{$dynamicAnchor:"meta",type:["object","boolean"]},"security-scheme":{type:"object",properties:{type:{enum:["apiKey","http","mutualTLS","oauth2","openIdConnect"]},description:{type:"string"}},required:["type"],allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/security-scheme/$defs/type-apikey"},{$ref:"#/$defs/security-scheme/$defs/type-http"},{$ref:"#/$defs/security-scheme/$defs/type-http-bearer"},{$ref:"#/$defs/security-scheme/$defs/type-oauth2"},{$ref:"#/$defs/security-scheme/$defs/type-oidc"}],unevaluatedProperties:!1,$defs:{"type-apikey":{if:{properties:{type:{const:"apiKey"}},required:["type"]},then:{properties:{name:{type:"string"},in:{enum:["query","header","cookie"]}},required:["name","in"]}},"type-http":{if:{properties:{type:{const:"http"}},required:["type"]},then:{properties:{scheme:{type:"string"}},required:["scheme"]}},"type-http-bearer":{if:{properties:{type:{const:"http"},scheme:{const:"bearer"}},required:["type","scheme"]},then:{properties:{bearerFormat:{type:"string"}},required:["scheme"]}},"type-oauth2":{if:{properties:{type:{const:"oauth2"}},required:["type"]},then:{properties:{flows:{$ref:"#/$defs/oauth-flows"}},required:["flows"]}},"type-oidc":{if:{properties:{type:{const:"openIdConnect"}},required:["type"]},then:{properties:{openIdConnectUrl:{$ref:"#/$defs/uri"}},required:["openIdConnectUrl"]}}}},"security-scheme-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/security-scheme"}},"oauth-flows":{type:"object",properties:{implicit:{$ref:"#/$defs/oauth-flows/$defs/implicit"},password:{$ref:"#/$defs/oauth-flows/$defs/password"},clientCredentials:{$ref:"#/$defs/oauth-flows/$defs/client-credentials"},authorizationCode:{$ref:"#/$defs/oauth-flows/$defs/authorization-code"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{implicit:{type:"object",properties:{authorizationUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},password:{type:"object",properties:{tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"client-credentials":{type:"object",properties:{tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"authorization-code":{type:"object",properties:{authorizationUrl:{type:"string"},tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}}},"security-requirement":{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},"specification-extensions":{patternProperties:{"^x-":!0}},examples:{properties:{example:!0,examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}}}},uri:{type:"string",format:"uri"},"map-of-strings":{type:"object",additionalProperties:{type:"string"}}}}});var mg=m((se,Sn)=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.openapi=se.openapiV31=se.openapiV3=se.openapiV2=se.openapiV1=void 0;se.openapiV1=fg();se.openapiV2=pg();se.openapiV3=dg();se.openapiV31=hg();se.openapi={v1:se.openapiV1,v2:se.openapiV2,v3:se.openapiV3,v31:se.openapiV31};se.default=se.openapi;typeof Sn=="object"&&typeof Sn.exports=="object"&&(Sn.exports=Object.assign(Sn.exports.default,Sn.exports))});var Fl=m((_M,gg)=>{"use strict";var Cw=Oo(),{ono:Nw}=Qe(),qw=Im(),jw=lg(),{openapi:Dl}=mg();gg.exports=Mw;function Mw(e){let t,r;if(e.swagger)r=Dl.v2,t=Ll();else if(e.openapi.startsWith("3.1")){r=Dl.v31;let i=r.$defs.schema;delete i.$dynamicAnchor,r.$defs.components.properties.schemas.additionalProperties=i,r.$defs.header.dependentSchemas.schema.properties.schema=i,r.$defs["media-type"].properties.schema=i,r.$defs.parameter.properties.schema=i,t=Ll(!1)}else r=Dl.v3,t=Ll();if(!t.validate(r,e)){let i=t.errors,s=`Swagger schema validation failed.
|
|
13
|
-
`+
|
|
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
|
-
`,
|
|
12
|
+
deps: ${r}}`,"params")};var GO={keyword:"dependencies",type:"object",schemaType:"object",error:yt.error,code(e){let[t,r]=ZO(e);tm(e,t),rm(e,r)}};function ZO({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(ZO,"splitDependencies");function tm(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 u=t[a];if(u.length===0)continue;let c=(0,qi.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:u.length,deps:u.join(", ")}),i.allErrors?r.if(c,()=>{for(let l of u)(0,qi.checkReportMissingProp)(e,l)}):(r.if((0,Gc._)`${c} && (${(0,qi.checkMissingProp)(e,u,o)})`),(0,qi.reportMissingProp)(e,o),r.else())}}s(tm,"validatePropertyDeps");yt.validatePropertyDeps=tm;function rm(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,a=r.name("valid");for(let u in t)(0,zO.alwaysValidSchema)(o,t[u])||(r.if((0,qi.propertyInData)(r,n,u,o.opts.ownProperties),()=>{let c=e.subschema({keyword:i,schemaProp:u},a);e.mergeValidEvaluated(c,a)},()=>r.var(a,!0)),e.ok(a))}s(rm,"validateSchemaDeps");yt.validateSchemaDeps=rm;yt.default=GO});var im=m(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});var nm=A(),KO=T(),WO={message:"property name must be valid",params:s(({params:e})=>(0,nm._)`{propertyName: ${e.propertyName}}`,"params")},YO={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:WO,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,KO.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,nm.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};Zc.default=YO});var Wc=m(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});var ts=Ve(),tt=A(),QO=Fe(),rs=T(),JO={message:"must NOT have additional properties",params:s(({params:e})=>(0,tt._)`{additionalProperty: ${e.additionalProperty}}`,"params")},XO={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:JO,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:u,opts:c}=a;if(a.props=!0,c.removeAdditional!=="all"&&(0,rs.alwaysValidSchema)(a,r))return;let l=(0,ts.allSchemaProperties)(n.properties),p=(0,ts.allSchemaProperties)(n.patternProperties);f(),e.ok((0,tt._)`${o} === ${QO.default.errors}`);function f(){t.forIn("key",i,v=>{!l.length&&!p.length?g(v):t.if(d(v),()=>g(v))})}s(f,"checkAdditionalProperties");function d(v){let _;if(l.length>8){let b=(0,rs.schemaRefOrVal)(a,n.properties,"properties");_=(0,ts.isOwnProperty)(t,b,v)}else l.length?_=(0,tt.or)(...l.map(b=>(0,tt._)`${v} === ${b}`)):_=tt.nil;return p.length&&(_=(0,tt.or)(_,...p.map(b=>(0,tt._)`${(0,ts.usePattern)(e,b)}.test(${v})`))),(0,tt.not)(_)}s(d,"isAdditional");function h(v){t.code((0,tt._)`delete ${i}[${v}]`)}s(h,"deleteAdditional");function g(v){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){h(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),u||t.break();return}if(typeof r=="object"&&!(0,rs.alwaysValidSchema)(a,r)){let _=t.name("valid");c.removeAdditional==="failing"?(y(v,_,!1),t.if((0,tt.not)(_),()=>{e.reset(),h(v)})):(y(v,_),u||t.if((0,tt.not)(_),()=>t.break()))}}s(g,"additionalPropertyCode");function y(v,_,b){let S={keyword:"additionalProperties",dataProp:v,dataPropType:rs.Type.Str};b===!1&&Object.assign(S,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(S,_)}s(y,"applyAdditionalSchema")}};Kc.default=XO});var am=m(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});var eE=_i(),om=Ve(),Yc=T(),sm=Wc(),tE={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&&sm.default.code(new eE.KeywordCxt(o,sm.default,"additionalProperties"));let a=(0,om.allSchemaProperties)(r);for(let f of a)o.definedProperties.add(f);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=Yc.mergeEvaluated.props(t,(0,Yc.toHash)(a),o.props));let u=a.filter(f=>!(0,Yc.alwaysValidSchema)(o,r[f]));if(u.length===0)return;let c=t.name("valid");for(let f of u)l(f)?p(f):(t.if((0,om.propertyInData)(t,i,f,o.opts.ownProperties)),p(f),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(c);function l(f){return o.opts.useDefaults&&!o.compositeRule&&r[f].default!==void 0}s(l,"hasDefault");function p(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}s(p,"applyPropertySchema")}};Qc.default=tE});var fm=m(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});var um=Ve(),ns=A(),cm=T(),lm=T(),rE={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:a}=o,u=(0,um.allSchemaProperties)(r),c=u.filter(y=>(0,cm.alwaysValidSchema)(o,r[y]));if(u.length===0||c.length===u.length&&(!o.opts.unevaluated||o.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,p=t.name("valid");o.props!==!0&&!(o.props instanceof ns.Name)&&(o.props=(0,lm.evaluatedPropsToName)(t,o.props));let{props:f}=o;d();function d(){for(let y of u)l&&h(y),o.allErrors?g(y):(t.var(p,!0),g(y),t.if(p))}s(d,"validatePatternProperties");function h(y){for(let v in l)new RegExp(y).test(v)&&(0,cm.checkStrictMode)(o,`property ${v} matches pattern ${y} (use allowMatchingProperties)`)}s(h,"checkMatchingProperties");function g(y){t.forIn("key",n,v=>{t.if((0,ns._)`${(0,um.usePattern)(e,y)}.test(${v})`,()=>{let _=c.includes(y);_||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:v,dataPropType:lm.Type.Str},p),o.opts.unevaluated&&f!==!0?t.assign((0,ns._)`${f}[${v}]`,!0):!_&&!o.allErrors&&t.if((0,ns.not)(p),()=>t.break())})})}s(g,"validateProperties")}};Jc.default=rE});var pm=m(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});var nE=T(),iE={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,nE.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"}};Xc.default=iE});var dm=m(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var oE=Ve(),sE={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:oE.validateUnion,error:{message:"must match a schema in anyOf"}};el.default=sE});var hm=m(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var is=A(),aE=T(),uE={message:"must match exactly one schema in oneOf",params:s(({params:e})=>(0,is._)`{passingSchemas: ${e.passing}}`,"params")},cE={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:uE,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),u=t.let("passing",null),c=t.name("_valid");e.setParams({passing:u}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((p,f)=>{let d;(0,aE.alwaysValidSchema)(i,p)?t.var(c,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&t.if((0,is._)`${c} && ${a}`).assign(a,!1).assign(u,(0,is._)`[${u}, ${f}]`).else(),t.if(c,()=>{t.assign(a,!0),t.assign(u,f),d&&e.mergeEvaluated(d,is.Name)})})}s(l,"validateOneOf")}};tl.default=cE});var mm=m(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var lE=T(),fE={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,lE.alwaysValidSchema)(n,o))return;let u=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(u)})}};rl.default=fE});var vm=m(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});var os=A(),ym=T(),pE={message:s(({params:e})=>(0,os.str)`must match "${e.ifClause}" schema`,"message"),params:s(({params:e})=>(0,os._)`{failingKeyword: ${e.ifClause}}`,"params")},dE={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:pE,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,ym.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=gm(n,"then"),o=gm(n,"else");if(!i&&!o)return;let a=t.let("valid",!0),u=t.name("_valid");if(c(),e.reset(),i&&o){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(u,l("then",p),l("else",p))}else i?t.if(u,l("then")):t.if((0,os.not)(u),l("else"));e.pass(a,()=>e.error(!0));function c(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(p)}s(c,"validateIf");function l(p,f){return()=>{let d=e.subschema({keyword:p},u);t.assign(a,u),e.mergeValidEvaluated(d,a),f?t.assign(f,(0,os._)`${p}`):e.setParams({ifClause:p})}}s(l,"validateClause")}};function gm(e,t){let r=e.schema[t];return r!==void 0&&!(0,ym.alwaysValidSchema)(e,r)}s(gm,"hasSchema");nl.default=dE});var _m=m(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});var hE=T(),mE={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,hE.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};il.default=mE});var sl=m(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var gE=Vc(),yE=Qh(),vE=Bc(),_E=Xh(),bE=em(),SE=es(),PE=im(),$E=Wc(),OE=am(),EE=fm(),xE=pm(),wE=dm(),AE=hm(),IE=mm(),kE=vm(),RE=_m();function TE(e=!1){let t=[xE.default,wE.default,AE.default,IE.default,kE.default,RE.default,PE.default,$E.default,SE.default,OE.default,EE.default];return e?t.push(yE.default,_E.default):t.push(gE.default,vE.default),t.push(bE.default),t}s(TE,"getApplicator");ol.default=TE});var bm=m(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});var Q=A(),CE={message:s(({schemaCode:e})=>(0,Q.str)`must match format "${e}"`,"message"),params:s(({schemaCode:e})=>(0,Q._)`{format: ${e}}`,"params")},NE={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:CE,code(e,t){let{gen:r,data:n,$data:i,schema:o,schemaCode:a,it:u}=e,{opts:c,errSchemaPath:l,schemaEnv:p,self:f}=u;if(!c.validateFormats)return;i?d():h();function d(){let g=r.scopeValue("formats",{ref:f.formats,code:c.code.formats}),y=r.const("fDef",(0,Q._)`${g}[${a}]`),v=r.let("fType"),_=r.let("format");r.if((0,Q._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(v,(0,Q._)`${y}.type || "string"`).assign(_,(0,Q._)`${y}.validate`),()=>r.assign(v,(0,Q._)`"string"`).assign(_,y)),e.fail$data((0,Q.or)(b(),S()));function b(){return c.strictSchema===!1?Q.nil:(0,Q._)`${a} && !${_}`}s(b,"unknownFmt");function S(){let E=p.$async?(0,Q._)`(${y}.async ? await ${_}(${n}) : ${_}(${n}))`:(0,Q._)`${_}(${n})`,$=(0,Q._)`(typeof ${_} == "function" ? ${E} : ${_}.test(${n}))`;return(0,Q._)`${_} && ${_} !== true && ${v} === ${t} && !${$}`}s(S,"invalidFmt")}s(d,"validate$DataFormat");function h(){let g=f.formats[o];if(!g){b();return}if(g===!0)return;let[y,v,_]=S(g);y===t&&e.pass(E());function b(){if(c.strictSchema===!1){f.logger.warn($());return}throw new Error($());function $(){return`unknown format "${o}" ignored in schema at path "${l}"`}}s(b,"unknownFormat");function S($){let M=$ instanceof RegExp?(0,Q.regexpCode)($):c.code.formats?(0,Q._)`${c.code.formats}${(0,Q.getProperty)(o)}`:void 0,j=r.scopeValue("formats",{key:o,ref:$,code:M});return typeof $=="object"&&!($ instanceof RegExp)?[$.type||"string",$.validate,(0,Q._)`${j}.validate`]:["string",$,j]}s(S,"getFormat");function E(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!p.$async)throw new Error("async format in sync schema");return(0,Q._)`await ${_}(${n})`}return typeof v=="function"?(0,Q._)`${_}(${n})`:(0,Q._)`${_}.test(${n})`}s(E,"validCondition")}s(h,"validateFormat")}};al.default=NE});var cl=m(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var qE=bm(),jE=[qE.default];ul.default=jE});var Sm=m(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});var ME=Fh(),DE=Zh(),LE=sl(),FE=cl(),VE=["title","description","default"],BE=[ME.default,DE.default,LE.default(),FE.default,VE];ll.default=BE});var $m=m(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.DiscrError=void 0;var Pm;(function(e){e.Tag="tag",e.Mapping="mapping"})(Pm||(ss.DiscrError=Pm={}))});var dl=m(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});var gn=A(),fl=$m(),Om=Si(),HE=bi(),UE=T(),zE={message:s(({params:{discrError:e,tagName:t}})=>e===fl.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,gn._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},GE={keyword:"discriminator",type:"object",schemaType:"object",error:zE,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 u=n.propertyName;if(typeof u!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let c=t.let("valid",!1),l=t.const("tag",(0,gn._)`${r}${(0,gn.getProperty)(u)}`);t.if((0,gn._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:fl.DiscrError.Tag,tag:l,tagName:u})),e.ok(c);function p(){let h=d();t.if(!1);for(let g in h)t.elseIf((0,gn._)`${l} === ${g}`),t.assign(c,f(h[g]));t.else(),e.error(!1,{discrError:fl.DiscrError.Mapping,tag:l,tagName:u}),t.endIf()}s(p,"validateMapping");function f(h){let g=t.name("valid"),y=e.subschema({keyword:"oneOf",schemaProp:h},g);return e.mergeEvaluated(y,gn.Name),g}s(f,"applyTagSchema");function d(){var h;let g={},y=_(i),v=!0;for(let E=0;E<a.length;E++){let $=a[E];if($!=null&&$.$ref&&!(0,UE.schemaHasRulesButRef)($,o.self.RULES)){let j=$.$ref;if($=Om.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,j),$ instanceof Om.SchemaEnv&&($=$.schema),$===void 0)throw new HE.default(o.opts.uriResolver,o.baseId,j)}let M=(h=$==null?void 0:$.properties)===null||h===void 0?void 0:h[u];if(typeof M!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${u}"`);v=v&&(y||_($)),b(M,E)}if(!v)throw new Error(`discriminator: "${u}" must be required`);return g;function _({required:E}){return Array.isArray(E)&&E.includes(u)}function b(E,$){if(E.const)S(E.const,$);else if(E.enum)for(let M of E.enum)S(M,$);else throw new Error(`discriminator: "properties/${u}" must have "const" or "enum"`)}function S(E,$){if(typeof E!="string"||E in g)throw new Error(`discriminator: "${u}" values must be unique strings`);g[E]=$}}s(d,"getMapping")}};pl.default=GE});var Em=m((A4,ZE)=>{ZE.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 Am=m((ee,wm)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.CodeGen=ee.Name=ee.nil=ee.stringify=ee.str=ee._=ee.KeywordCxt=void 0;var KE=hn(),WE=Sm(),YE=dl(),xm=Em(),QE=["/properties"],as="http://json-schema.org/draft-04/schema",hl=class hl extends KE.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),WE.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(YE.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(xm,QE):xm;this.addMetaSchema(t,as,!1),this.refs["http://json-schema.org/schema"]=as}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(as)?as:void 0)}};s(hl,"Ajv");var us=hl;wm.exports=ee=us;Object.defineProperty(ee,"__esModule",{value:!0});ee.default=us;var JE=hn();Object.defineProperty(ee,"KeywordCxt",{enumerable:!0,get:s(function(){return JE.KeywordCxt},"get")});var yn=hn();Object.defineProperty(ee,"_",{enumerable:!0,get:s(function(){return yn._},"get")});Object.defineProperty(ee,"str",{enumerable:!0,get:s(function(){return yn.str},"get")});Object.defineProperty(ee,"stringify",{enumerable:!0,get:s(function(){return yn.stringify},"get")});Object.defineProperty(ee,"nil",{enumerable:!0,get:s(function(){return yn.nil},"get")});Object.defineProperty(ee,"Name",{enumerable:!0,get:s(function(){return yn.Name},"get")});Object.defineProperty(ee,"CodeGen",{enumerable:!0,get:s(function(){return yn.CodeGen},"get")})});var Im=m(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});var XE={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};ml.default=XE});var km=m(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var ex=Im(),tx=xi(),rx=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",ex.default,tx.default];gl.default=rx});var Rm=m(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var cs=A(),Yt=cs.operators,ls={maximum:{okStr:"<=",ok:Yt.LTE,fail:Yt.GT},minimum:{okStr:">=",ok:Yt.GTE,fail:Yt.LT},exclusiveMaximum:{okStr:"<",ok:Yt.LT,fail:Yt.GTE},exclusiveMinimum:{okStr:">",ok:Yt.GT,fail:Yt.LTE}},nx={message:s(({keyword:e,schemaCode:t})=>(0,cs.str)`must be ${ls[e].okStr} ${t}`,"message"),params:s(({keyword:e,schemaCode:t})=>(0,cs._)`{comparison: ${ls[e].okStr}, limit: ${t}}`,"params")},ix={keyword:Object.keys(ls),type:"number",schemaType:"number",$data:!0,error:nx,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,cs._)`${r} ${ls[t].fail} ${n} || isNaN(${r})`)}};yl.default=ix});var Tm=m(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var ox=Rm(),sx=vc(),ax=Sc(),ux=$c(),cx=Ec(),lx=wc(),fx=Ic(),px=Cc(),dx=jc(),hx=Dc(),mx=[ox.default,sx.default,ax.default,ux.default,cx.default,lx.default,fx.default,px.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},dx.default,hx.default];vl.default=mx});var bl=m(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.dynamicAnchor=void 0;var _l=A(),gx=Fe(),Cm=Si(),yx=xi(),vx={keyword:"$dynamicAnchor",schemaType:"string",code:s(e=>Nm(e,e.schema),"code")};function Nm(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,_l._)`${gx.default.dynamicAnchors}${(0,_l.getProperty)(t)}`,o=n.errSchemaPath==="#"?n.validateName:_x(e);r.if((0,_l._)`!${i}`,()=>r.assign(i,o))}s(Nm,"dynamicAnchor");ji.dynamicAnchor=Nm;function _x(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:o,localRefs:a,meta:u}=t.root,{schemaId:c}=n.opts,l=new Cm.SchemaEnv({schema:r,schemaId:c,root:i,baseId:o,localRefs:a,meta:u});return Cm.compileSchema.call(n,l),(0,yx.getValidate)(e,l)}s(_x,"_getValidate");ji.default=vx});var Sl=m(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.dynamicRef=void 0;var qm=A(),bx=Fe(),jm=xi(),Sx={keyword:"$dynamicRef",schemaType:"string",code:s(e=>Mm(e,e.schema),"code")};function Mm(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 c=r.let("valid",!1);a(c),e.ok(c)}function a(c){if(i.schemaEnv.root.dynamicAnchors[o]){let l=r.let("_v",(0,qm._)`${bx.default.dynamicAnchors}${(0,qm.getProperty)(o)}`);r.if(l,u(l,c),u(i.validateName,c))}else u(i.validateName,c)()}s(a,"_dynamicRef");function u(c,l){return l?()=>r.block(()=>{(0,jm.callRef)(e,c),r.let(l,!0)}):()=>(0,jm.callRef)(e,c)}s(u,"_callRef")}s(Mm,"dynamicRef");Mi.dynamicRef=Mm;Mi.default=Sx});var Dm=m(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});var Px=bl(),$x=T(),Ox={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,Px.dynamicAnchor)(e,""):(0,$x.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Pl.default=Ox});var Lm=m($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var Ex=Sl(),xx={keyword:"$recursiveRef",schemaType:"string",code:s(e=>(0,Ex.dynamicRef)(e,e.schema),"code")};$l.default=xx});var Fm=m(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var wx=bl(),Ax=Sl(),Ix=Dm(),kx=Lm(),Rx=[wx.default,Ax.default,Ix.default,kx.default];Ol.default=Rx});var Bm=m(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var Vm=es(),Tx={keyword:"dependentRequired",type:"object",schemaType:"object",error:Vm.error,code:s(e=>(0,Vm.validatePropertyDeps)(e),"code")};El.default=Tx});var Hm=m(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var Cx=es(),Nx={keyword:"dependentSchemas",type:"object",schemaType:"object",code:s(e=>(0,Cx.validateSchemaDeps)(e),"code")};xl.default=Nx});var Um=m(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});var qx=T(),jx={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,qx.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};wl.default=jx});var zm=m(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});var Mx=Bm(),Dx=Hm(),Lx=Um(),Fx=[Mx.default,Dx.default,Lx.default];Al.default=Fx});var Zm=m(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var Qt=A(),Gm=T(),Vx=Fe(),Bx={message:"must NOT have unevaluated properties",params:s(({params:e})=>(0,Qt._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},Hx={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:Bx,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:u}=o;u instanceof Qt.Name?t.if((0,Qt._)`${u} !== true`,()=>t.forIn("key",n,f=>t.if(l(u,f),()=>c(f)))):u!==!0&&t.forIn("key",n,f=>u===void 0?c(f):t.if(p(u,f),()=>c(f))),o.props=!0,e.ok((0,Qt._)`${i} === ${Vx.default.errors}`);function c(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,Gm.alwaysValidSchema)(o,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:Gm.Type.Str},d),a||t.if((0,Qt.not)(d),()=>t.break())}}s(c,"unevaluatedPropCode");function l(f,d){return(0,Qt._)`!${f} || !${f}[${d}]`}s(l,"unevaluatedDynamic");function p(f,d){let h=[];for(let g in f)f[g]===!0&&h.push((0,Qt._)`${d} !== ${g}`);return(0,Qt.and)(...h)}s(p,"unevaluatedStatic")}};Il.default=Hx});var Wm=m(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});var Ir=A(),Km=T(),Ux={message:s(({params:{len:e}})=>(0,Ir.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Ir._)`{limit: ${e}}`,"params")},zx={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:Ux,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,Ir._)`${n}.length`);if(r===!1)e.setParams({len:o}),e.fail((0,Ir._)`${a} > ${o}`);else if(typeof r=="object"&&!(0,Km.alwaysValidSchema)(i,r)){let c=t.var("valid",(0,Ir._)`${a} <= ${o}`);t.if((0,Ir.not)(c),()=>u(c,o)),e.ok(c)}i.items=!0;function u(c,l){t.forRange("i",l,a,p=>{e.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:Km.Type.Num},c),i.allErrors||t.if((0,Ir.not)(c),()=>t.break())})}s(u,"validateItems")}};kl.default=zx});var Ym=m(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});var Gx=Zm(),Zx=Wm(),Kx=[Gx.default,Zx.default];Rl.default=Kx});var Qm=m(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.contentVocabulary=vn.metadataVocabulary=void 0;vn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];vn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Xm=m(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});var Wx=km(),Yx=Tm(),Qx=sl(),Jx=Fm(),Xx=zm(),ew=Ym(),tw=cl(),Jm=Qm(),rw=[Jx.default,Wx.default,Yx.default,(0,Qx.default)(!0),tw.default,Jm.metadataVocabulary,Jm.contentVocabulary,Xx.default,ew.default];Tl.default=rw});var eg=m((rM,nw)=>{nw.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 tg=m((nM,iw)=>{iw.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 rg=m((iM,ow)=>{ow.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 ng=m((oM,sw)=>{sw.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 ig=m((sM,aw)=>{aw.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 og=m((aM,uw)=>{uw.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 sg=m((uM,cw)=>{cw.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 ag=m((cM,lw)=>{lw.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 ug=m(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});var fw=eg(),pw=tg(),dw=rg(),hw=ng(),mw=ig(),gw=og(),yw=sg(),vw=ag(),_w=["/properties"];function bw(e){return[fw,pw,dw,hw,mw,t(this,gw),yw,t(this,vw)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,_w):n}s(t,"with$data")}s(bw,"addMetaSchema2020");Cl.default=bw});var cg=m((B,ql)=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.MissingRefError=B.ValidationError=B.CodeGen=B.Name=B.nil=B.stringify=B.str=B._=B.KeywordCxt=B.Ajv2020=void 0;var Sw=hn(),Pw=Xm(),$w=dl(),Ow=ug(),Nl="https://json-schema.org/draft/2020-12/schema",jl=class jl extends Sw.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),Pw.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword($w.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(Ow.default.call(this,t),this.refs["http://json-schema.org/schema"]=Nl)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Nl)?Nl:void 0)}};s(jl,"Ajv2020");var _n=jl;B.Ajv2020=_n;ql.exports=B=_n;ql.exports.Ajv2020=_n;Object.defineProperty(B,"__esModule",{value:!0});B.default=_n;var Ew=_i();Object.defineProperty(B,"KeywordCxt",{enumerable:!0,get:s(function(){return Ew.KeywordCxt},"get")});var bn=A();Object.defineProperty(B,"_",{enumerable:!0,get:s(function(){return bn._},"get")});Object.defineProperty(B,"str",{enumerable:!0,get:s(function(){return bn.str},"get")});Object.defineProperty(B,"stringify",{enumerable:!0,get:s(function(){return bn.stringify},"get")});Object.defineProperty(B,"nil",{enumerable:!0,get:s(function(){return bn.nil},"get")});Object.defineProperty(B,"Name",{enumerable:!0,get:s(function(){return bn.Name},"get")});Object.defineProperty(B,"CodeGen",{enumerable:!0,get:s(function(){return bn.CodeGen},"get")});var xw=Bo();Object.defineProperty(B,"ValidationError",{enumerable:!0,get:s(function(){return xw.default},"get")});var ww=bi();Object.defineProperty(B,"MissingRefError",{enumerable:!0,get:s(function(){return ww.default},"get")})});var lg=m((dM,Aw)=>{Aw.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 fg=m((hM,Iw)=>{Iw.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 pg=m((mM,kw)=>{kw.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 dg=m((gM,Rw)=>{Rw.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 hg=m((se,Sn)=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.openapi=se.openapiV31=se.openapiV3=se.openapiV2=se.openapiV1=void 0;se.openapiV1=lg();se.openapiV2=fg();se.openapiV3=pg();se.openapiV31=dg();se.openapi={v1:se.openapiV1,v2:se.openapiV2,v3:se.openapiV3,v31:se.openapiV31};se.default=se.openapi;typeof Sn=="object"&&typeof Sn.exports=="object"&&(Sn.exports=Object.assign(Sn.exports.default,Sn.exports))});var Ll=m((yM,mg)=>{"use strict";var Tw=$o(),{ono:Cw}=Qe(),Nw=Am(),qw=cg(),{openapi:Ml}=hg();mg.exports=jw;function jw(e){let t,r;if(e.swagger)r=Ml.v2,t=Dl();else if(e.openapi.startsWith("3.1")){r=Ml.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=Dl(!1)}else r=Ml.v3,t=Dl();if(!t.validate(r,e)){let i=t.errors,o=`Swagger schema validation failed.
|
|
13
|
+
`+Mw(i);throw Cw.syntax(i,{details:i},o)}}s(jw,"validateSchema");function Dl(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new Nw(t):new qw(t)}s(Dl,"initializeAjv");function Mw(e,t){t=t||" ";let r="";for(let n of e)r+=Tw.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
|
|
14
|
+
`);return r}s(Mw,"formatAjvError")});var yg=m((_M,gg)=>{"use strict";gg.exports=["get","put","post","delete","options","head","patch"]});var Bl=m((bM,Sg)=>{"use strict";var Dw=$o(),{ono:he}=Qe(),Lw=yg(),Fl=["array","boolean","integer","number","string"],_g=["array","boolean","integer","number","string","object","null",void 0];Sg.exports=Fw;function Fw(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let i of t){let o=e.paths[i],a="/paths"+i;o&&i.indexOf("/")===0&&Vw(e,o,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let o=e.definitions[i],a="/definitions/"+i;bg(o,a)}}s(Fw,"validateSpec");function Vw(e,t,r,n){for(let i of Lw){let o=t[i],a=r+"/"+i;if(o){let u=o.operationId;if(u)if(n.indexOf(u)===-1)n.push(u);else throw he.syntax(`Validation failed. Duplicate operation id '${u}'`);Bw(e,t,r,o,a);let c=Object.keys(o.responses||{});for(let l of c){let p=o.responses[l],f=a+"/responses/"+l;Gw(l,p||{},f)}}}}s(Vw,"validatePath");function Bw(e,t,r,n,i){let o=t.parameters||[],a=n.parameters||[];try{vg(o)}catch(c){throw he.syntax(c,`Validation failed. ${r} has duplicate parameters`)}try{vg(a)}catch(c){throw he.syntax(c,`Validation failed. ${i} has duplicate parameters`)}let u=o.reduce((c,l)=>(c.some(f=>f.in===l.in&&f.name===l.name)||c.push(l),c),a.slice());Hw(u,i),Uw(u,r,i),zw(u,e,n,i)}s(Bw,"validateParameters");function Hw(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw he.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw he.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}s(Hw,"validateBodyParameters");function Uw(e,t,r){let n=t.match(Dw.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let o=i+1;o<n.length;o++)if(n[i]===n[o])throw he.syntax(`Validation failed. ${r} has multiple path placeholders named ${n[i]}`);e=e.filter(i=>i.in==="path");for(let i of e){if(i.required!==!0)throw he.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${r}`);let o=n.indexOf("{"+i.name+"}");if(o===-1)throw he.syntax(`Validation failed. ${r} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(o,1)}if(n.length>0)throw he.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}s(Uw,"validatePathParameters");function zw(e,t,r,n){for(let i of e){let o=n+"/parameters/"+i.name,a,u;switch(i.in){case"body":a=i.schema,u=_g;break;case"formData":a=i,u=Fl.concat("file");break;default:a=i,u=Fl}if(Vl(a,o,u),bg(a,o),a.type==="file"){let c=/multipart\/(.*\+)?form-data/,l=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some(d=>c.test(d)||l.test(d)))throw he.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}s(zw,"validateParameterTypes");function vg(e){for(let t=0;t<e.length-1;t++){let r=e[t];for(let n=t+1;n<e.length;n++){let i=e[n];if(r.name===i.name&&r.in===i.in)throw he.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}s(vg,"checkForDuplicates");function Gw(e,t,r){if(e!=="default"&&(e<100||e>599))throw he.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let i of n){let o=t.headers[i],a=r+"/headers/"+i;Vl(o,a,Fl)}if(t.schema){let i=_g.concat("file");if(i.indexOf(t.schema.type)===-1)throw he.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);Vl(t.schema,r+"/schema",i)}}s(Gw,"validateResponse");function Vl(e,t,r){if(r.indexOf(e.type)===-1)throw he.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw he.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}s(Vl,"validateSchema");function bg(e,t){function r(n,i){if(n.properties)for(let o in n.properties)n.properties.hasOwnProperty(o)&&(i[o]=n.properties[o]);if(n.allOf)for(let o of n.allOf)r(o,i)}if(s(r,"collectProperties"),e.required&&Array.isArray(e.required)){let n={};r(e,n);for(let i of e.required)if(!n[i])throw he.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}s(bg,"validateRequiredPropertiesExist")});var nt=m(rt=>{"use strict";var{Ono:Pg}=Qe(),{stripHash:$g,toFileSystemPath:Zw}=Ce(),Pn,Jt=rt.JSONParserError=(Pn=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,Pg.extend(this)}},s(Pn,"JSONParserError"),Pn);Xt(Jt);var kr,Og=rt.JSONParserErrorGroup=(kr=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${Zw(t.$refs._root$Ref.path)}'`,Pg.extend(this)}static getParserErrors(t){let r=[];for(let n of Object.values(t.$refs._$refs))n.errors&&r.push(...n.errors);return r}get errors(){return kr.getParserErrors(this.files)}},s(kr,"JSONParserErrorGroup"),kr);Xt(Og);var $n,Kw=rt.ParserError=($n=class extends Jt{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},s($n,"ParserError"),$n);Xt(Kw);var On,Ww=rt.UnmatchedParserError=(On=class extends Jt{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},s(On,"UnmatchedParserError"),On);Xt(Ww);var En,Yw=rt.ResolverError=(En=class extends Jt{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},s(En,"ResolverError"),En);Xt(Yw);var xn,Qw=rt.UnmatchedResolverError=(xn=class extends Jt{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},s(xn,"UnmatchedResolverError"),xn);Xt(Qw);var wn,Jw=rt.MissingPointerError=(wn=class extends Jt{constructor(t,r){super(`Token "${t}" does not exist.`,$g(r)),this.code="EMISSINGPOINTER"}},s(wn,"MissingPointerError"),wn);Xt(Jw);var An,Xw=rt.InvalidPointerError=(An=class extends Jt{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,$g(r)),this.code="EINVALIDPOINTER"}},s(An,"InvalidPointerError"),An);Xt(Xw);function Xt(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}s(Xt,"setErrorName");rt.isHandledError=function(e){return e instanceof Jt||e instanceof Og};rt.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var xg=m((OM,Eg)=>{"use strict";var{ParserError:eA}=nt();Eg.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 eA(r.message,e.url)}}else return t}}});var Tr=m((EM,Rr)=>{"use strict";function wg(e){return typeof e>"u"||e===null}s(wg,"isNothing");function tA(e){return typeof e=="object"&&e!==null}s(tA,"isObject");function rA(e){return Array.isArray(e)?e:wg(e)?[]:[e]}s(rA,"toArray");function nA(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=t[i];return e}s(nA,"extend");function iA(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}s(iA,"repeat");function oA(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}s(oA,"isNegativeZero");Rr.exports.isNothing=wg;Rr.exports.isObject=tA;Rr.exports.toArray=rA;Rr.exports.repeat=iA;Rr.exports.isNegativeZero=oA;Rr.exports.extend=nA});var In=m((wM,Ag)=>{"use strict";function Di(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||""}s(Di,"YAMLException");Di.prototype=Object.create(Error.prototype);Di.prototype.constructor=Di;Di.prototype.toString=s(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");Ag.exports=Di});var Rg=m((IM,kg)=>{"use strict";var Ig=Tr();function Hl(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}s(Hl,"Mark");Hl.prototype.getSnippet=s(function(t,r){var n,i,o,a,u;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
|
|
15
|
+
\x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(o="",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){o=" ... ",a-=5;break}return u=this.buffer.slice(i,a),Ig.repeat(" ",t)+n+u+o+`
|
|
17
|
+
`+Ig.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");Hl.prototype.toString=s(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");kg.exports=Hl});var te=m((RM,Cg)=>{"use strict";var Tg=In(),sA=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],aA=["scalar","sequence","mapping"];function uA(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}s(uA,"compileStyleAliases");function cA(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(sA.indexOf(r)===-1)throw new Tg('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=uA(t.styleAliases||null),aA.indexOf(this.kind)===-1)throw new Tg('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}s(cA,"Type");Cg.exports=cA});var Cr=m((CM,qg)=>{"use strict";var Ng=Tr(),fs=In(),lA=te();function Ul(e,t,r){var n=[];return e.include.forEach(function(i){r=Ul(i,t,r)}),e[t].forEach(function(i){r.forEach(function(o,a){o.tag===i.tag&&o.kind===i.kind&&n.push(a)}),r.push(i)}),r.filter(function(i,o){return n.indexOf(o)===-1})}s(Ul,"compileList");function fA(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(s(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}s(fA,"compileMap");function kn(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new fs("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Ul(this,"implicit",[]),this.compiledExplicit=Ul(this,"explicit",[]),this.compiledTypeMap=fA(this.compiledImplicit,this.compiledExplicit)}s(kn,"Schema");kn.DEFAULT=null;kn.create=s(function(){var t,r;switch(arguments.length){case 1:t=kn.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new fs("Wrong number of arguments for Schema.create function")}if(t=Ng.toArray(t),r=Ng.toArray(r),!t.every(function(n){return n instanceof kn}))throw new fs("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof lA}))throw new fs("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new kn({include:t,explicit:r})},"createSchema");qg.exports=kn});var Mg=m((qM,jg)=>{"use strict";var pA=te();jg.exports=new pA("tag:yaml.org,2002:str",{kind:"scalar",construct:s(function(e){return e!==null?e:""},"construct")})});var Lg=m((MM,Dg)=>{"use strict";var dA=te();Dg.exports=new dA("tag:yaml.org,2002:seq",{kind:"sequence",construct:s(function(e){return e!==null?e:[]},"construct")})});var Vg=m((LM,Fg)=>{"use strict";var hA=te();Fg.exports=new hA("tag:yaml.org,2002:map",{kind:"mapping",construct:s(function(e){return e!==null?e:{}},"construct")})});var ps=m((VM,Bg)=>{"use strict";var mA=Cr();Bg.exports=new mA({explicit:[Mg(),Lg(),Vg()]})});var Ug=m((BM,Hg)=>{"use strict";var gA=te();function yA(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}s(yA,"resolveYamlNull");function vA(){return null}s(vA,"constructYamlNull");function _A(e){return e===null}s(_A,"isNull");Hg.exports=new gA("tag:yaml.org,2002:null",{kind:"scalar",resolve:yA,construct:vA,predicate:_A,represent:{canonical:s(function(){return"~"},"canonical"),lowercase:s(function(){return"null"},"lowercase"),uppercase:s(function(){return"NULL"},"uppercase"),camelcase:s(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var Gg=m((UM,zg)=>{"use strict";var bA=te();function SA(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")}s(SA,"resolveYamlBoolean");function PA(e){return e==="true"||e==="True"||e==="TRUE"}s(PA,"constructYamlBoolean");function $A(e){return Object.prototype.toString.call(e)==="[object Boolean]"}s($A,"isBoolean");zg.exports=new bA("tag:yaml.org,2002:bool",{kind:"scalar",resolve:SA,construct:PA,predicate:$A,represent:{lowercase:s(function(e){return e?"true":"false"},"lowercase"),uppercase:s(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:s(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var Kg=m((GM,Zg)=>{"use strict";var OA=Tr(),EA=te();function xA(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}s(xA,"isHexCode");function wA(e){return 48<=e&&e<=55}s(wA,"isOctCode");function AA(e){return 48<=e&&e<=57}s(AA,"isDecCode");function IA(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(!xA(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!wA(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(!AA(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}s(IA,"resolveYamlInteger");function kA(e){var t=e,r=1,n,i,o=[];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){o.unshift(parseInt(a,10))}),t=0,i=1,o.forEach(function(a){t+=a*i,i*=60}),r*t):r*parseInt(t,10)}s(kA,"constructYamlInteger");function RA(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!OA.isNegativeZero(e)}s(RA,"isInteger");Zg.exports=new EA("tag:yaml.org,2002:int",{kind:"scalar",resolve:IA,construct:kA,predicate:RA,represent:{binary:s(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:s(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:s(function(e){return e.toString(10)},"decimal"),hexadecimal:s(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 Qg=m((KM,Yg)=>{"use strict";var Wg=Tr(),TA=te(),CA=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 NA(e){return!(e===null||!CA.test(e)||e[e.length-1]==="_")}s(NA,"resolveYamlFloat");function qA(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(o){i.unshift(parseFloat(o,10))}),t=0,n=1,i.forEach(function(o){t+=o*n,n*=60}),r*t):r*parseFloat(t,10)}s(qA,"constructYamlFloat");var jA=/^[-+]?[0-9]+e/;function MA(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(Wg.isNegativeZero(e))return"-0.0";return r=e.toString(10),jA.test(r)?r.replace("e",".e"):r}s(MA,"representYamlFloat");function DA(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Wg.isNegativeZero(e))}s(DA,"isFloat");Yg.exports=new TA("tag:yaml.org,2002:float",{kind:"scalar",resolve:NA,construct:qA,predicate:DA,represent:MA,defaultStyle:"lowercase"})});var zl=m((YM,Jg)=>{"use strict";var LA=Cr();Jg.exports=new LA({include:[ps()],implicit:[Ug(),Gg(),Kg(),Qg()]})});var Gl=m((QM,Xg)=>{"use strict";var FA=Cr();Xg.exports=new FA({include:[zl()]})});var ny=m((JM,ry)=>{"use strict";var VA=te(),ey=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ty=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 BA(e){return e===null?!1:ey.exec(e)!==null||ty.exec(e)!==null}s(BA,"resolveYamlTimestamp");function HA(e){var t,r,n,i,o,a,u,c=0,l=null,p,f,d;if(t=ey.exec(e),t===null&&(t=ty.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(o=+t[4],a=+t[5],u=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(p=+t[10],f=+(t[11]||0),l=(p*60+f)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,o,a,u,c)),l&&d.setTime(d.getTime()-l),d}s(HA,"constructYamlTimestamp");function UA(e){return e.toISOString()}s(UA,"representYamlTimestamp");ry.exports=new VA("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:BA,construct:HA,instanceOf:Date,represent:UA})});var oy=m((e8,iy)=>{"use strict";var zA=te();function GA(e){return e==="<<"||e===null}s(GA,"resolveYamlMerge");iy.exports=new zA("tag:yaml.org,2002:merge",{kind:"scalar",resolve:GA})});var uy=m((r8,ay)=>{"use strict";var Nr;try{sy=require,Nr=sy("buffer").Buffer}catch{}var sy,ZA=te(),Zl=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
19
|
+
\r`;function KA(e){if(e===null)return!1;var t,r,n=0,i=e.length,o=Zl;for(r=0;r<i;r++)if(t=o.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}s(KA,"resolveYamlBinary");function WA(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=Zl,a=0,u=[];for(t=0;t<i;t++)t%4===0&&t&&(u.push(a>>16&255),u.push(a>>8&255),u.push(a&255)),a=a<<6|o.indexOf(n.charAt(t));return r=i%4*6,r===0?(u.push(a>>16&255),u.push(a>>8&255),u.push(a&255)):r===18?(u.push(a>>10&255),u.push(a>>2&255)):r===12&&u.push(a>>4&255),Nr?Nr.from?Nr.from(u):new Nr(u):u}s(WA,"constructYamlBinary");function YA(e){var t="",r=0,n,i,o=e.length,a=Zl;for(n=0;n<o;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=o%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}s(YA,"representYamlBinary");function QA(e){return Nr&&Nr.isBuffer(e)}s(QA,"isBinary");ay.exports=new ZA("tag:yaml.org,2002:binary",{kind:"scalar",resolve:KA,construct:WA,predicate:QA,represent:YA})});var ly=m((i8,cy)=>{"use strict";var JA=te(),XA=Object.prototype.hasOwnProperty,eI=Object.prototype.toString;function tI(e){if(e===null)return!0;var t=[],r,n,i,o,a,u=e;for(r=0,n=u.length;r<n;r+=1){if(i=u[r],a=!1,eI.call(i)!=="[object Object]")return!1;for(o in i)if(XA.call(i,o))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}s(tI,"resolveYamlOmap");function rI(e){return e!==null?e:[]}s(rI,"constructYamlOmap");cy.exports=new JA("tag:yaml.org,2002:omap",{kind:"sequence",resolve:tI,construct:rI})});var py=m((s8,fy)=>{"use strict";var nI=te(),iI=Object.prototype.toString;function oI(e){if(e===null)return!0;var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],iI.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[t]=[i[0],n[i[0]]]}return!0}s(oI,"resolveYamlPairs");function sI(e){if(e===null)return[];var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}s(sI,"constructYamlPairs");fy.exports=new nI("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:oI,construct:sI})});var hy=m((u8,dy)=>{"use strict";var aI=te(),uI=Object.prototype.hasOwnProperty;function cI(e){if(e===null)return!0;var t,r=e;for(t in r)if(uI.call(r,t)&&r[t]!==null)return!1;return!0}s(cI,"resolveYamlSet");function lI(e){return e!==null?e:{}}s(lI,"constructYamlSet");dy.exports=new aI("tag:yaml.org,2002:set",{kind:"mapping",resolve:cI,construct:lI})});var Rn=m((l8,my)=>{"use strict";var fI=Cr();my.exports=new fI({include:[Gl()],implicit:[ny(),oy()],explicit:[uy(),ly(),py(),hy()]})});var yy=m((f8,gy)=>{"use strict";var pI=te();function dI(){return!0}s(dI,"resolveJavascriptUndefined");function hI(){}s(hI,"constructJavascriptUndefined");function mI(){return""}s(mI,"representJavascriptUndefined");function gI(e){return typeof e>"u"}s(gI,"isUndefined");gy.exports=new pI("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:dI,construct:hI,predicate:gI,represent:mI})});var _y=m((d8,vy)=>{"use strict";var yI=te();function vI(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]!=="/"))}s(vI,"resolveJavascriptRegExp");function _I(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)}s(_I,"constructJavascriptRegExp");function bI(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}s(bI,"representJavascriptRegExp");function SI(e){return Object.prototype.toString.call(e)==="[object RegExp]"}s(SI,"isRegExp");vy.exports=new yI("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:vI,construct:_I,predicate:SI,represent:bI})});var Py=m((m8,Sy)=>{"use strict";var ds;try{by=require,ds=by("esprima")}catch{typeof window<"u"&&(ds=window.esprima)}var by,PI=te();function $I(e){if(e===null)return!1;try{var t="("+e+")",r=ds.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}}s($I,"resolveJavascriptFunction");function OI(e){var t="("+e+")",r=ds.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(o){n.push(o.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]))}s(OI,"constructJavascriptFunction");function EI(e){return e.toString()}s(EI,"representJavascriptFunction");function xI(e){return Object.prototype.toString.call(e)==="[object Function]"}s(xI,"isFunction");Sy.exports=new PI("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:$I,construct:OI,predicate:xI,represent:EI})});var Li=m((y8,Oy)=>{"use strict";var $y=Cr();Oy.exports=$y.DEFAULT=new $y({include:[Rn()],explicit:[yy(),_y(),Py()]})});var Hy=m((v8,Fi)=>{"use strict";var qt=Tr(),Ry=In(),wI=Rg(),Ty=Rn(),AI=Li(),tr=Object.prototype.hasOwnProperty,hs=1,Cy=2,Ny=3,ms=4,Kl=1,II=2,Ey=3,kI=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,RI=/[\x85\u2028\u2029]/,TI=/[,\[\]\{\}]/,qy=/^(?:!|!!|![a-z\-]+!)$/i,jy=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function xy(e){return Object.prototype.toString.call(e)}s(xy,"_class");function vt(e){return e===10||e===13}s(vt,"is_EOL");function jr(e){return e===9||e===32}s(jr,"is_WHITE_SPACE");function ke(e){return e===9||e===32||e===10||e===13}s(ke,"is_WS_OR_EOL");function Tn(e){return e===44||e===91||e===93||e===123||e===125}s(Tn,"is_FLOW_INDICATOR");function CI(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}s(CI,"fromHexCode");function NI(e){return e===120?2:e===117?4:e===85?8:0}s(NI,"escapedHexLen");function qI(e){return 48<=e&&e<=57?e-48:-1}s(qI,"fromDecimalCode");function wy(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":""}s(wy,"simpleEscapeSequence");function jI(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}s(jI,"charFromCodepoint");var My=new Array(256),Dy=new Array(256);for(qr=0;qr<256;qr++)My[qr]=wy(qr)?1:0,Dy[qr]=wy(qr);var qr;function MI(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||AI,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=[]}s(MI,"State");function Ly(e,t){return new Ry(t,new wI(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}s(Ly,"generateError");function x(e,t){throw Ly(e,t)}s(x,"throwError");function gs(e,t){e.onWarning&&e.onWarning.call(null,Ly(e,t))}s(gs,"throwWarning");var Ay={YAML:s(function(t,r,n){var i,o,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"),o=parseInt(i[1],10),a=parseInt(i[2],10),o!==1&&x(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&gs(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:s(function(t,r,n){var i,o;n.length!==2&&x(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],qy.test(i)||x(t,"ill-formed tag handle (first argument) of the TAG directive"),tr.call(t.tagMap,i)&&x(t,'there is a previously declared suffix for "'+i+'" tag handle'),jy.test(o)||x(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o},"handleTagDirective")};function er(e,t,r,n){var i,o,a,u;if(t<r){if(u=e.input.slice(t,r),n)for(i=0,o=u.length;i<o;i+=1)a=u.charCodeAt(i),a===9||32<=a&&a<=1114111||x(e,"expected valid JSON character");else kI.test(u)&&x(e,"the stream contains non-printable characters");e.result+=u}}s(er,"captureSegment");function Iy(e,t,r,n){var i,o,a,u;for(qt.isObject(r)||x(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,u=i.length;a<u;a+=1)o=i[a],tr.call(t,o)||(t[o]=r[o],n[o]=!0)}s(Iy,"mergeMappings");function Cn(e,t,r,n,i,o,a,u){var c,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,l=i.length;c<l;c+=1)Array.isArray(i[c])&&x(e,"nested arrays are not supported inside keys"),typeof i=="object"&&xy(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&xy(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,l=o.length;c<l;c+=1)Iy(e,t,o[c],r);else Iy(e,t,o,r);else!e.json&&!tr.call(r,i)&&tr.call(t,i)&&(e.line=a||e.line,e.position=u||e.position,x(e,"duplicated mapping key")),t[i]=o,delete r[i];return t}s(Cn,"storeMappingPair");function Wl(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}s(Wl,"readLineBreak");function J(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;jr(i);)i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(vt(i))for(Wl(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&&gs(e,"deficient indentation"),n}s(J,"skipSeparationSpace");function ys(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)))}s(ys,"testDocumentSeparator");function Yl(e,t){t===1?e.result+=" ":t>1&&(e.result+=qt.repeat(`
|
|
21
|
+
`,t-1))}s(Yl,"writeFoldedLines");function DI(e,t,r){var n,i,o,a,u,c,l,p,f=e.kind,d=e.result,h;if(h=e.input.charCodeAt(e.position),ke(h)||Tn(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),ke(i)||r&&Tn(i)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,u=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),ke(i)||r&&Tn(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),ke(n))break}else{if(e.position===e.lineStart&&ys(e)||r&&Tn(h))break;if(vt(h))if(c=e.line,l=e.lineStart,p=e.lineIndent,J(e,!1,-1),e.lineIndent>=t){u=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=c,e.lineStart=l,e.lineIndent=p;break}}u&&(er(e,o,a,!1),Yl(e,e.line-c),o=a=e.position,u=!1),jr(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return er(e,o,a,!1),e.result?!0:(e.kind=f,e.result=d,!1)}s(DI,"readPlainScalar");function LI(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(er(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else vt(r)?(er(e,n,i,!0),Yl(e,J(e,!1,t)),n=i=e.position):e.position===e.lineStart&&ys(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")}s(LI,"readSingleQuotedScalar");function FI(e,t){var r,n,i,o,a,u;if(u=e.input.charCodeAt(e.position),u!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(u=e.input.charCodeAt(e.position))!==0;){if(u===34)return er(e,r,e.position,!0),e.position++,!0;if(u===92){if(er(e,r,e.position,!0),u=e.input.charCodeAt(++e.position),vt(u))J(e,!1,t);else if(u<256&&My[u])e.result+=Dy[u],e.position++;else if((a=NI(u))>0){for(i=a,o=0;i>0;i--)u=e.input.charCodeAt(++e.position),(a=CI(u))>=0?o=(o<<4)+a:x(e,"expected hexadecimal character");e.result+=jI(o),e.position++}else x(e,"unknown escape sequence");r=n=e.position}else vt(u)?(er(e,r,n,!0),Yl(e,J(e,!1,t)),r=n=e.position):e.position===e.lineStart&&ys(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")}s(FI,"readDoubleQuotedScalar");function VI(e,t){var r=!0,n,i=e.tag,o,a=e.anchor,u,c,l,p,f,d={},h,g,y,v;if(v=e.input.charCodeAt(e.position),v===91)c=93,f=!1,o=[];else if(v===123)c=125,f=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),v=e.input.charCodeAt(++e.position);v!==0;){if(J(e,!0,t),v=e.input.charCodeAt(e.position),v===c)return e.position++,e.tag=i,e.anchor=a,e.kind=f?"mapping":"sequence",e.result=o,!0;r||x(e,"missed comma between flow collection entries"),g=h=y=null,l=p=!1,v===63&&(u=e.input.charCodeAt(e.position+1),ke(u)&&(l=p=!0,e.position++,J(e,!0,t))),n=e.line,Nn(e,t,hs,!1,!0),g=e.tag,h=e.result,J(e,!0,t),v=e.input.charCodeAt(e.position),(p||e.line===n)&&v===58&&(l=!0,v=e.input.charCodeAt(++e.position),J(e,!0,t),Nn(e,t,hs,!1,!0),y=e.result),f?Cn(e,o,d,g,h,y):l?o.push(Cn(e,null,d,g,h,y)):o.push(h),J(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(r=!0,v=e.input.charCodeAt(++e.position)):r=!1}x(e,"unexpected end of the stream within a flow collection")}s(VI,"readFlowCollection");function BI(e,t){var r,n,i=Kl,o=!1,a=!1,u=t,c=0,l=!1,p,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)Kl===i?i=f===43?Ey:II:x(e,"repeat of a chomping mode identifier");else if((p=qI(f))>=0)p===0?x(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?x(e,"repeat of an indentation width identifier"):(u=t+p-1,a=!0);else break;if(jr(f)){do f=e.input.charCodeAt(++e.position);while(jr(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!vt(f)&&f!==0)}for(;f!==0;){for(Wl(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!a||e.lineIndent<u)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>u&&(u=e.lineIndent),vt(f)){c++;continue}if(e.lineIndent<u){i===Ey?e.result+=qt.repeat(`
|
|
22
|
+
`,o?1+c:c):i===Kl&&o&&(e.result+=`
|
|
23
23
|
`);break}for(n?jr(f)?(l=!0,e.result+=qt.repeat(`
|
|
24
|
-
`,
|
|
25
|
-
`,c+1)):c===0?
|
|
24
|
+
`,o?1+c:c)):l?(l=!1,e.result+=qt.repeat(`
|
|
25
|
+
`,c+1)):c===0?o&&(e.result+=" "):e.result+=qt.repeat(`
|
|
26
26
|
`,c):e.result+=qt.repeat(`
|
|
27
|
-
`,
|
|
28
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new
|
|
27
|
+
`,o?1+c:c),o=!0,a=!0,c=0,r=e.position;!vt(f)&&f!==0;)f=e.input.charCodeAt(++e.position);er(e,r,e.position,!1)}return!0}s(BI,"readBlockScalar");function ky(e,t){var r,n=e.tag,i=e.anchor,o=[],a,u=!1,c;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),c=e.input.charCodeAt(e.position);c!==0&&!(c!==45||(a=e.input.charCodeAt(e.position+1),!ke(a)));){if(u=!0,e.position++,J(e,!0,-1)&&e.lineIndent<=t){o.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,Nn(e,t,Ny,!1,!0),o.push(e.result),J(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)x(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return u?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}s(ky,"readBlockSequence");function HI(e,t,r){var n,i,o,a,u=e.tag,c=e.anchor,l={},p={},f=null,d=null,h=null,g=!1,y=!1,v;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),v=e.input.charCodeAt(e.position);v!==0;){if(n=e.input.charCodeAt(e.position+1),o=e.line,a=e.position,(v===63||v===58)&&ke(n))v===63?(g&&(Cn(e,l,p,f,d,null),f=d=h=null),y=!0,g=!0,i=!0):g?(g=!1,i=!0):x(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,v=n;else if(Nn(e,r,Cy,!1,!0))if(e.line===o){for(v=e.input.charCodeAt(e.position);jr(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),ke(v)||x(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(Cn(e,l,p,f,d,null),f=d=h=null),y=!0,g=!1,i=!1,f=e.tag,d=e.result;else if(y)x(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=c,!0}else if(y)x(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=c,!0;else break;if((e.line===o||e.lineIndent>t)&&(Nn(e,t,ms,!0,i)&&(g?d=e.result:h=e.result),g||(Cn(e,l,p,f,d,h,o,a),f=d=h=null),J(e,!0,-1),v=e.input.charCodeAt(e.position)),e.lineIndent>t&&v!==0)x(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&Cn(e,l,p,f,d,null),y&&(e.tag=u,e.anchor=c,e.kind="mapping",e.result=l),y}s(HI,"readBlockMapping");function UI(e){var t,r=!1,n=!1,i,o,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?(o=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),qy.test(i)||x(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),TI.test(o)&&x(e,"tag suffix cannot contain flow indicator characters")}return o&&!jy.test(o)&&x(e,"tag name cannot contain such characters: "+o),r?e.tag=o:tr.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:x(e,'undeclared tag handle "'+i+'"'),!0}s(UI,"readTagProperty");function zI(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&x(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!ke(r)&&!Tn(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&x(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}s(zI,"readAnchorProperty");function GI(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!ke(n)&&!Tn(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&x(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),tr.call(e.anchorMap,r)||x(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],J(e,!0,-1),!0}s(GI,"readAlias");function Nn(e,t,r,n,i){var o,a,u,c=1,l=!1,p=!1,f,d,h,g,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=u=ms===r||Ny===r,n&&J(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;UI(e)||zI(e);)J(e,!0,-1)?(l=!0,u=o,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):u=!1;if(u&&(u=l||i),(c===1||ms===r)&&(hs===r||Cy===r?g=t:g=t+1,y=e.position-e.lineStart,c===1?u&&(ky(e,y)||HI(e,y,g))||VI(e,g)?p=!0:(a&&BI(e,g)||LI(e,g)||FI(e,g)?p=!0:GI(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&x(e,"alias node should not have any properties")):DI(e,g,hs===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(p=u&&ky(e,y))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&x(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,d=e.implicitTypes.length;f<d;f+=1)if(h=e.implicitTypes[f],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else tr.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&x(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result)?(e.result=h.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):x(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):x(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}s(Nn,"composeNode");function ZI(e){var t=e.position,r,n,i,o=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(J(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(o=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!ke(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&x(e,"directive name must not be less than one character in length");a!==0;){for(;jr(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!vt(a));break}if(vt(a))break;for(r=e.position;a!==0&&!ke(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Wl(e),tr.call(Ay,n)?Ay[n](e,n,i):gs(e,'unknown document directive "'+n+'"')}if(J(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,J(e,!0,-1)):o&&x(e,"directives end mark is expected"),Nn(e,e.lineIndent-1,ms,!1,!0),J(e,!0,-1),e.checkLineBreaks&&RI.test(e.input.slice(t,e.position))&&gs(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ys(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,J(e,!0,-1));return}if(e.position<e.length-1)x(e,"end of the stream or a document separator is expected");else return}s(ZI,"readDocument");function Fy(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 MI(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;)ZI(r);return r.documents}s(Fy,"loadDocuments");function Vy(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=Fy(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}s(Vy,"loadAll");function By(e,t){var r=Fy(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Ry("expected a single document in the stream, but found more")}}s(By,"load");function KI(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),Vy(e,t,qt.extend({schema:Ty},r))}s(KI,"safeLoadAll");function WI(e,t){return By(e,qt.extend({schema:Ty},t))}s(WI,"safeLoad");Fi.exports.loadAll=Vy;Fi.exports.load=By;Fi.exports.safeLoadAll=KI;Fi.exports.safeLoad=WI});var p0=m((b8,ef)=>{"use strict";var Bi=Tr(),Hi=In(),YI=Li(),QI=Rn(),Qy=Object.prototype.toString,Jy=Object.prototype.hasOwnProperty,JI=9,Vi=10,XI=13,ek=32,tk=33,rk=34,Xy=35,nk=37,ik=38,ok=39,sk=42,e0=44,ak=45,t0=58,uk=61,ck=62,lk=63,fk=64,r0=91,n0=93,pk=96,i0=123,dk=124,o0=125,me={};me[0]="\\0";me[7]="\\a";me[8]="\\b";me[9]="\\t";me[10]="\\n";me[11]="\\v";me[12]="\\f";me[13]="\\r";me[27]="\\e";me[34]='\\"';me[92]="\\\\";me[133]="\\N";me[160]="\\_";me[8232]="\\L";me[8233]="\\P";var hk=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function mk(e,t){var r,n,i,o,a,u,c;if(t===null)return{};for(r={},n=Object.keys(t),i=0,o=n.length;i<o;i+=1)a=n[i],u=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),c=e.compiledTypeMap.fallback[a],c&&Jy.call(c.styleAliases,u)&&(u=c.styleAliases[u]),r[a]=u;return r}s(mk,"compileStyleMap");function Uy(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 Hi("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Bi.repeat("0",n-t.length)+t}s(Uy,"encodeHex");function gk(e){this.schema=e.schema||YI,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Bi.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=mk(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}s(gk,"State");function zy(e,t){for(var r=Bi.repeat(" ",t),n=0,i=-1,o="",a,u=e.length;n<u;)i=e.indexOf(`
|
|
29
29
|
`,n),i===-1?(a=e.slice(n),n=u):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
|
|
30
|
-
`&&(
|
|
31
|
-
`+
|
|
30
|
+
`&&(o+=r),o+=a;return o}s(zy,"indentString");function Ql(e,t){return`
|
|
31
|
+
`+Bi.repeat(" ",e.indent*t)}s(Ql,"generateNextLine");function yk(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}s(yk,"testImplicitResolving");function Xl(e){return e===ek||e===JI}s(Xl,"isWhitespace");function qn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}s(qn,"isPrintable");function vk(e){return qn(e)&&!Xl(e)&&e!==65279&&e!==XI&&e!==Vi}s(vk,"isNsChar");function Gy(e,t){return qn(e)&&e!==65279&&e!==e0&&e!==r0&&e!==n0&&e!==i0&&e!==o0&&e!==t0&&(e!==Xy||t&&vk(t))}s(Gy,"isPlainSafe");function _k(e){return qn(e)&&e!==65279&&!Xl(e)&&e!==ak&&e!==lk&&e!==t0&&e!==e0&&e!==r0&&e!==n0&&e!==i0&&e!==o0&&e!==Xy&&e!==ik&&e!==sk&&e!==tk&&e!==dk&&e!==uk&&e!==ck&&e!==ok&&e!==rk&&e!==nk&&e!==fk&&e!==pk}s(_k,"isPlainSafeFirst");function s0(e){var t=/^\n* /;return t.test(e)}s(s0,"needIndentIndicator");var a0=1,u0=2,c0=3,l0=4,vs=5;function bk(e,t,r,n,i){var o,a,u,c=!1,l=!1,p=n!==-1,f=-1,d=_k(e.charCodeAt(0))&&!Xl(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),!qn(a))return vs;u=o>0?e.charCodeAt(o-1):null,d=d&&Gy(a,u)}else{for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),a===Vi)c=!0,p&&(l=l||o-f-1>n&&e[f+1]!==" ",f=o);else if(!qn(a))return vs;u=o>0?e.charCodeAt(o-1):null,d=d&&Gy(a,u)}l=l||p&&o-f-1>n&&e[f+1]!==" "}return!c&&!l?d&&!i(e)?a0:u0:r>9&&s0(e)?vs:l?l0:c0}s(bk,"chooseScalarStyle");function Sk(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&hk.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;function u(c){return yk(e,c)}switch(s(u,"testAmbiguity"),bk(t,a,e.indent,o,u)){case a0:return t;case u0:return"'"+t.replace(/'/g,"''")+"'";case c0:return"|"+Zy(t,e.indent)+Ky(zy(t,i));case l0:return">"+Zy(t,e.indent)+Ky(zy(Pk(t,o),i));case vs:return'"'+$k(t,o)+'"';default:throw new Hi("impossible error: invalid scalar style")}}()}s(Sk,"writeScalar");function Zy(e,t){var r=s0(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
|
+
`),o=i?"+":n?"":"-";return r+o+`
|
|
35
|
+
`}s(Zy,"blockHeader");function Ky(e){return e[e.length-1]===`
|
|
36
|
+
`?e.slice(0,-1):e}s(Ky,"dropEndingNewline");function Pk(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,Wy(e.slice(0,l),t)}(),i=e[0]===`
|
|
38
|
+
`||e[0]===" ",o,a;a=r.exec(e);){var u=a[1],c=a[2];o=c[0]===" ",n+=u+(!i&&!o&&c!==""?`
|
|
39
|
+
`:"")+Wy(c,t),i=o}return n}s(Pk,"foldString");function Wy(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,o,a=0,u=0,c="";n=r.exec(e);)u=n.index,u-i>t&&(o=a>i?a:u,c+=`
|
|
40
|
+
`+e.slice(i,o),i=o+1),a=u;return c+=`
|
|
41
41
|
`,e.length-i>t&&a>i?c+=e.slice(i,a)+`
|
|
42
|
-
`+e.slice(a+1):c+=e.slice(i),c.slice(1)}
|
|
43
|
-
`:""}
|
|
42
|
+
`+e.slice(a+1):c+=e.slice(i),c.slice(1)}s(Wy,"foldLine");function $k(e){for(var t="",r,n,i,o=0;o<e.length;o++){if(r=e.charCodeAt(o),r>=55296&&r<=56319&&(n=e.charCodeAt(o+1),n>=56320&&n<=57343)){t+=Uy((r-55296)*1024+n-56320+65536),o++;continue}i=me[r],t+=!i&&qn(r)?e[o]:i||Uy(r)}return t}s($k,"escapeString");function Ok(e,t,r){var n="",i=e.tag,o,a;for(o=0,a=r.length;o<a;o+=1)Mr(e,t,r[o],!1,!1)&&(o!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}s(Ok,"writeFlowSequence");function Ek(e,t,r,n){var i="",o=e.tag,a,u;for(a=0,u=r.length;a<u;a+=1)Mr(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Ql(e,t)),e.dump&&Vi===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}s(Ek,"writeBlockSequence");function xk(e,t,r){var n="",i=e.tag,o=Object.keys(r),a,u,c,l,p;for(a=0,u=o.length;a<u;a+=1)p="",a!==0&&(p+=", "),e.condenseFlow&&(p+='"'),c=o[a],l=r[c],Mr(e,t,c,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Mr(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}s(xk,"writeFlowMapping");function wk(e,t,r,n){var i="",o=e.tag,a=Object.keys(r),u,c,l,p,f,d;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new Hi("sortKeys must be a boolean or a function");for(u=0,c=a.length;u<c;u+=1)d="",(!n||u!==0)&&(d+=Ql(e,t)),l=a[u],p=r[l],Mr(e,t+1,l,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Vi===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=Ql(e,t)),Mr(e,t+1,p,!0,f)&&(e.dump&&Vi===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=o,e.dump=i||"{}"}s(wk,"writeBlockMapping");function Yy(e,t,r){var n,i,o,a,u,c;for(i=r?e.explicitTypes:e.implicitTypes,o=0,a=i.length;o<a;o+=1)if(u=i[o],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof t=="object"&&t instanceof u.instanceOf)&&(!u.predicate||u.predicate(t))){if(e.tag=r?u.tag:"?",u.represent){if(c=e.styleMap[u.tag]||u.defaultStyle,Qy.call(u.represent)==="[object Function]")n=u.represent(t,c);else if(Jy.call(u.represent,c))n=u.represent[c](t,c);else throw new Hi("!<"+u.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}s(Yy,"detectType");function Mr(e,t,r,n,i,o){e.tag=null,e.dump=r,Yy(e,r,!1)||Yy(e,r,!0);var a=Qy.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var u=a==="[object Object]"||a==="[object Array]",c,l;if(u&&(c=e.duplicates.indexOf(r),l=c!==-1),(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&t>0)&&(i=!1),l&&e.usedDuplicates[c])e.dump="*ref_"+c;else{if(u&&l&&!e.usedDuplicates[c]&&(e.usedDuplicates[c]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(wk(e,t,e.dump,i),l&&(e.dump="&ref_"+c+e.dump)):(xk(e,t,e.dump),l&&(e.dump="&ref_"+c+" "+e.dump));else if(a==="[object Array]"){var p=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(Ek(e,p,e.dump,i),l&&(e.dump="&ref_"+c+e.dump)):(Ok(e,p,e.dump),l&&(e.dump="&ref_"+c+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&Sk(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new Hi("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}s(Mr,"writeNode");function Ak(e,t){var r=[],n=[],i,o;for(Jl(e,r,n),i=0,o=n.length;i<o;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(o)}s(Ak,"getDuplicateReferences");function Jl(e,t,r){var n,i,o;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,o=e.length;i<o;i+=1)Jl(e[i],t,r);else for(n=Object.keys(e),i=0,o=n.length;i<o;i+=1)Jl(e[n[i]],t,r)}s(Jl,"inspectNode");function f0(e,t){t=t||{};var r=new gk(t);return r.noRefs||Ak(e,r),Mr(r,0,e,!0,!0)?r.dump+`
|
|
43
|
+
`:""}s(f0,"dump");function Ik(e,t){return f0(e,Bi.extend({schema:QI},t))}s(Ik,"safeDump");ef.exports.dump=f0;ef.exports.safeDump=Ik});var h0=m((P8,K)=>{"use strict";var _s=Hy(),d0=p0();function bs(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}s(bs,"deprecated");K.exports.Type=te();K.exports.Schema=Cr();K.exports.FAILSAFE_SCHEMA=ps();K.exports.JSON_SCHEMA=zl();K.exports.CORE_SCHEMA=Gl();K.exports.DEFAULT_SAFE_SCHEMA=Rn();K.exports.DEFAULT_FULL_SCHEMA=Li();K.exports.load=_s.load;K.exports.loadAll=_s.loadAll;K.exports.safeLoad=_s.safeLoad;K.exports.safeLoadAll=_s.safeLoadAll;K.exports.dump=d0.dump;K.exports.safeDump=d0.safeDump;K.exports.YAMLException=In();K.exports.MINIMAL_SCHEMA=ps();K.exports.SAFE_SCHEMA=Rn();K.exports.DEFAULT_SCHEMA=Li();K.exports.scan=bs("scan");K.exports.parse=bs("parse");K.exports.compose=bs("compose");K.exports.addConstructor=bs("addConstructor")});var g0=m((O8,m0)=>{"use strict";var kk=h0();m0.exports=kk});var v0=m((E8,y0)=>{"use strict";var{ParserError:Rk}=nt(),Tk=g0();y0.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 Tk.safeLoad(t)}catch(r){throw new Rk(r.message,e.url)}else return t}}});var b0=m((x8,_0)=>{"use strict";var{ParserError:Ck}=nt(),Nk=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;_0.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&Nk.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 Ck("data is not text",e.url)}}});var P0=m((w8,S0)=>{"use strict";var qk=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;S0.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&qk.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var E0=m((A8,O0)=>{"use strict";var jk=require("fs"),{ono:tf}=Qe(),$0=Ce(),{ResolverError:rf}=nt();O0.exports={order:100,canRead(e){return $0.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=$0.toFileSystemPath(e.url)}catch(i){r(new rf(tf.uri(i,`Malformed URI: ${e.url}`),e.url))}try{jk.readFile(n,(i,o)=>{i?r(new rf(tf(i,`Error opening file "${n}"`),n)):t(o)})}catch(i){r(new rf(tf(i,`Error opening file "${n}"`),n))}})}}});var I0=m((I8,A0)=>{"use strict";var Mk=require("http"),Dk=require("https"),{ono:Ss}=Qe(),Ui=Ce(),{ResolverError:x0}=nt();A0.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return Ui.isHttp(e.url)},read(e){let t=Ui.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=Ui.parse(location.href).protocol),w0(t,this)}};function w0(e,t,r){return new Promise((n,i)=>{e=Ui.parse(e),r=r||[],r.push(e.href),Lk(e,t).then(o=>{if(o.statusCode>=400)throw Ss({status:o.statusCode},`HTTP ERROR ${o.statusCode}`);if(o.statusCode>=300)if(r.length>t.redirects)i(new x0(Ss({status:o.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)};it.prototype._add=function(e){let t=nr.stripHash(e),r=new
|
|
49
|
-
"${i}" not found.`);return
|
|
50
|
-
Parsed value is empty`)):n(p)}o(c,"onParsed");function l(p){!p&&t.continueOnError?i(new pR(e.url)):!p||!("error"in p)?i(df.syntax(`Unable to parse ${e.url}`)):p.error instanceof tv?i(p.error):i(new tv(p.error.message,e.url))}o(l,"onError")})}o(yR,"parseFile");function vR(e){return e===void 0||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0||Buffer.isBuffer(e)&&e.length===0}o(vR,"isEmpty")});var sv=m((X8,ov)=>{"use strict";var nv=jn(),_R=Gi(),bR=hf(),Ki=Ce(),{isHandledError:SR}=nt();ov.exports=PR;function PR(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=mf(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}o(PR,"resolveExternal");function mf(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(nv.isExternal$Ref(e))i.push(iv(e,t,r,n));else for(let s of Object.keys(e)){let a=_R.join(t,s),u=e[s];nv.isExternal$Ref(u)?i.push(iv(u,a,r,n)):i=i.concat(mf(u,a,r,n))}return i}o(mf,"crawl");async function iv(e,t,r,n){let i=Ki.resolve(t,e.$ref),s=Ki.stripHash(i);if(e=r._$refs[s],e)return Promise.resolve(e.value);try{let a=await bR(i,r,n),u=mf(a,s+"#",r,n);return Promise.all(u)}catch(a){if(!n.continueOnError||!SR(a))throw a;return r._$refs[s]&&(a.source=Ki.stripHash(t),a.path=Ki.safePointerToPath(Ki.getHash(t))),[]}}o(iv,"resolve$Ref")});var cv=m((tD,uv)=>{"use strict";var Es=jn(),Wi=Gi(),gf=Ce();uv.exports=$R;function $R(e,t){let r=[];yf(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),OR(r)}o($R,"bundle");function yf(e,t,r,n,i,s,a,u){let c=t===null?e:e[t];if(c&&typeof c=="object"&&!ArrayBuffer.isView(c))if(Es.isAllowed$Ref(c))av(e,t,r,n,i,s,a,u);else{let l=Object.keys(c).sort((p,f)=>p==="definitions"?-1:f==="definitions"?1:p.length-f.length);for(let p of l){let f=Wi.join(r,p),d=Wi.join(n,p),h=c[p];Es.isAllowed$Ref(h)?av(c,p,r,d,i,s,a,u):yf(c,p,f,d,i,s,a,u)}}}o(yf,"crawl");function av(e,t,r,n,i,s,a,u){let c=t===null?e:e[t],l=gf.resolve(r,c.$ref),p=a._resolve(l,n,u);if(p===null)return;let f=Wi.parse(n).length,d=gf.stripHash(p.path),h=gf.getHash(p.path),g=d!==a._root$Ref.path,y=Es.isExtended$Ref(c);i+=p.indirections;let v=ER(s,e,t);if(v)if(f<v.depth||i<v.indirections)xR(s,v);else return;s.push({$ref:c,parent:e,key:t,pathFromRoot:n,depth:f,file:d,hash:h,value:p.value,circular:p.circular,extended:y,external:g,indirections:i}),v||yf(p.value,null,p.path,n,i+1,s,a,u)}o(av,"inventory$Ref");function OR(e){e.sort((i,s)=>{if(i.file!==s.file)return i.file<s.file?-1:1;if(i.hash!==s.hash)return i.hash<s.hash?-1:1;if(i.circular!==s.circular)return i.circular?-1:1;if(i.extended!==s.extended)return i.extended?1:-1;if(i.indirections!==s.indirections)return i.indirections-s.indirections;if(i.depth!==s.depth)return i.depth-s.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),u=s.pathFromRoot.lastIndexOf("/definitions");return a!==u?u-a:i.pathFromRoot.length-s.pathFromRoot.length}});let t,r,n;for(let i of e)i.external?i.file===t&&i.hash===r?i.$ref.$ref=n:i.file===t&&i.hash.indexOf(r+"/")===0?i.$ref.$ref=Wi.join(n,Wi.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=Es.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}o(OR,"remap");function ER(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}o(ER,"findInInventory");function xR(e,t){let r=e.indexOf(t);e.splice(r,1)}o(xR,"removeFromInventory")});var bf=m((nD,dv)=>{"use strict";var vf=jn(),lv=Gi(),{ono:wR}=Qe(),AR=Ce();dv.exports=IR;function IR(e,t){let r=_f(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}o(IR,"dereference");function _f(e,t,r,n,i,s){let a,u={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),vf.isAllowed$Ref(e,s))a=fv(e,t,r,n,i,s),u.circular=a.circular,u.value=a.value;else for(let c of Object.keys(e)){let l=lv.join(t,c),p=lv.join(r,c),f=e[c],d=!1;vf.isAllowed$Ref(f,s)?(a=fv(f,l,p,n,i,s),d=a.circular,e[c]!==a.value&&(e[c]=a.value)):n.indexOf(f)===-1?(a=_f(f,l,p,n,i,s),d=a.circular,e[c]!==a.value&&(e[c]=a.value)):d=pv(l,i,s),u.circular=u.circular||d}n.pop()}return u}o(_f,"crawl");function fv(e,t,r,n,i,s){let a=AR.resolve(t,e.$ref),u=i._resolve(a,t,s);if(u===null)return{circular:!1,value:null};let c=u.circular,l=c||n.indexOf(u.value)!==-1;l&&pv(t,i,s);let p=vf.dereference(e,u.value);if(!l){let f=_f(p,u.path,r,n,i,s);l=f.circular,p=f.value}return l&&!c&&s.dereference.circular==="ignore"&&(p=e),c&&(p.$ref=r),{circular:l,value:p}}o(fv,"dereference$Ref");function pv(e,t,r){if(t.circular=!0,!r.dereference.circular)throw wR.reference(`Circular $ref pointer found at ${e}`);return!0}o(pv,"foundCircularReference")});var yv=m((oD,bt)=>{"use strict";var gv=Y0(),kR=hf(),xs=uf(),RR=sv(),TR=cv(),CR=bf(),Mn=Ce(),{JSONParserError:NR,InvalidPointerError:qR,MissingPointerError:jR,ResolverError:MR,ParserError:DR,UnmatchedParserError:LR,UnmatchedResolverError:FR,isHandledError:VR,JSONParserErrorGroup:hv}=nt(),ot=lf(),{ono:mv}=Qe();bt.exports=_t;bt.exports.default=_t;bt.exports.JSONParserError=NR;bt.exports.InvalidPointerError=qR;bt.exports.MissingPointerError=jR;bt.exports.ResolverError=MR;bt.exports.ParserError=DR;bt.exports.UnmatchedParserError=LR;bt.exports.UnmatchedResolverError=FR;function _t(){this.schema=null,this.$refs=new gv}o(_t,"$RefParser");_t.parse=o(function(t,r,n,i){let s=this,a=new s;return a.parse.apply(a,arguments)},"parse");_t.prototype.parse=o(async function(t,r,n,i){let s=xs(arguments),a;if(!s.path&&!s.schema){let l=mv(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return ot(s.callback,Promise.reject(l))}this.schema=null,this.$refs=new gv;let u="http";if(Mn.isFileSystemPath(s.path)&&(s.path=Mn.fromFileSystemPath(s.path),u="file"),s.path=Mn.resolve(Mn.cwd(),s.path),s.schema&&typeof s.schema=="object"){let l=this.$refs._add(s.path);l.value=s.schema,l.pathType=u,a=Promise.resolve(s.schema)}else a=kR(s.path,this.$refs,s.options);let c=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return c.schema=l,ot(s.callback,Promise.resolve(c.schema));if(s.options.continueOnError)return c.schema=null,ot(s.callback,Promise.resolve(c.schema));throw mv.syntax(`"${c.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!s.options.continueOnError||!VR(l)?ot(s.callback,Promise.reject(l)):(this.$refs._$refs[Mn.stripHash(s.path)]&&this.$refs._$refs[Mn.stripHash(s.path)].addError(l),ot(s.callback,Promise.resolve(null)))}},"parse");_t.resolve=o(function(t,r,n,i){let s=this,a=new s;return a.resolve.apply(a,arguments)},"resolve");_t.prototype.resolve=o(async function(t,r,n,i){let s=this,a=xs(arguments);try{return await this.parse(a.path,a.schema,a.options),await RR(s,a.options),Sf(s),ot(a.callback,Promise.resolve(s.$refs))}catch(u){return ot(a.callback,Promise.reject(u))}},"resolve");_t.bundle=o(function(t,r,n,i){let s=this,a=new s;return a.bundle.apply(a,arguments)},"bundle");_t.prototype.bundle=o(async function(t,r,n,i){let s=this,a=xs(arguments);try{return await this.resolve(a.path,a.schema,a.options),TR(s,a.options),Sf(s),ot(a.callback,Promise.resolve(s.schema))}catch(u){return ot(a.callback,Promise.reject(u))}},"bundle");_t.dereference=o(function(t,r,n,i){let s=this,a=new s;return a.dereference.apply(a,arguments)},"dereference");_t.prototype.dereference=o(async function(t,r,n,i){let s=this,a=xs(arguments);try{return await this.resolve(a.path,a.schema,a.options),CR(s,a.options),Sf(s),ot(a.callback,Promise.resolve(s.schema))}catch(u){return ot(a.callback,Promise.reject(u))}},"dereference");function Sf(e){if(hv.getParserErrors(e).length>0)throw new hv(e)}o(Sf,"finalize")});var Pv=m((aD,Sv)=>{"use strict";var BR=Fl(),HR=Hl(),vv=uf(),_v=Oo(),bv=j0(),ws=lf(),{ono:st}=Qe(),Dr=yv(),UR=bf();Sv.exports=St;function St(){Dr.apply(this,arguments)}o(St,"SwaggerParser");_v.inherits(St,Dr);St.parse=Dr.parse;St.resolve=Dr.resolve;St.bundle=Dr.bundle;St.dereference=Dr.dereference;Object.defineProperty(St.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});St.prototype.parse=async function(e,t,r,n){let i=vv(arguments);i.options=new bv(i.options);try{let s=await Dr.prototype.parse.call(this,i.path,i.schema,i.options);if(s.swagger){if(s.swagger===void 0||s.info===void 0||s.paths===void 0)throw st.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof s.swagger=="number")throw st.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof s.info.version=="number")throw st.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(s.swagger!=="2.0")throw st.syntax(`Unrecognized Swagger version: ${s.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(s.openapi===void 0||s.info===void 0)throw st.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(s.paths===void 0)if(s.openapi==="3.1.0"){if(s.webhooks===void 0)throw st.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw st.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof s.openapi=="number")throw st.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof s.info.version=="number")throw st.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(s.openapi)===-1)throw st.syntax(`Unsupported OpenAPI version: ${s.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}_v.fixOasRelativeServers(s,i.path)}return ws(i.callback,Promise.resolve(s))}catch(s){return ws(i.callback,Promise.reject(s))}};St.validate=function(e,t,r,n){let i=this,s=new i;return s.validate.apply(s,arguments)};St.prototype.validate=async function(e,t,r,n){let i=this,s=vv(arguments);s.options=new bv(s.options);let a=s.options.dereference.circular;s.options.validate.schema&&(s.options.dereference.circular="ignore");try{if(await this.dereference(s.path,s.schema,s.options),s.options.dereference.circular=a,s.options.validate.schema&&(BR(i.api),i.$refs.circular)){if(a===!0)UR(i,s.options);else if(a===!1)throw st.reference("The API contains circular references")}return s.options.validate.spec&&HR(i.api),ws(s.callback,Promise.resolve(i.schema))}catch(u){return ws(s.callback,Promise.reject(u))}}});var Oe=m(qe=>{"use strict";qe.__esModule=!0;qe.extend=F_;qe.indexOf=zT;qe.escapeExpression=GT;qe.isEmpty=ZT;qe.createFrame=KT;qe.blockParams=WT;qe.appendContextPath=YT;var VT={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},BT=/[&<>"'`=]/g,HT=/[&<>"'`=]/;function UT(e){return VT[e]}o(UT,"escapeChar");function F_(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}o(F_,"extend");var Qf=Object.prototype.toString;qe.toString=Qf;var Yf=o(function(t){return typeof t=="function"},"isFunction");Yf(/x/)&&(qe.isFunction=Yf=o(function(e){return typeof e=="function"&&Qf.call(e)==="[object Function]"},"isFunction"));qe.isFunction=Yf;var V_=Array.isArray||function(e){return e&&typeof e=="object"?Qf.call(e)==="[object Array]":!1};qe.isArray=V_;function zT(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}o(zT,"indexOf");function GT(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return HT.test(e)?e.replace(BT,UT):e}o(GT,"escapeExpression");function ZT(e){return!e&&e!==0?!0:!!(V_(e)&&e.length===0)}o(ZT,"isEmpty");function KT(e){var t=F_({},e);return t._parent=e,t}o(KT,"createFrame");function WT(e,t){return e.path=t,e}o(WT,"blockParams");function YT(e,t){return(e?e+".":"")+t}o(YT,"appendContextPath")});var Ze=m((Ks,B_)=>{"use strict";Ks.__esModule=!0;var Jf=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Xf(e,t){var r=t&&t.loc,n=void 0,i=void 0,s=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,s=r.start.column,a=r.end.column,e+=" - "+n+":"+s);for(var u=Error.prototype.constructor.call(this,e),c=0;c<Jf.length;c++)this[Jf[c]]=u[Jf[c]];Error.captureStackTrace&&Error.captureStackTrace(this,Xf);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=s,this.endColumn=a))}catch{}}o(Xf,"Exception");Xf.prototype=new Error;Ks.default=Xf;B_.exports=Ks.default});var U_=m((Ws,H_)=>{"use strict";Ws.__esModule=!0;var ep=Oe();Ws.default=function(e){e.registerHelper("blockHelperMissing",function(t,r){var n=r.inverse,i=r.fn;if(t===!0)return i(this);if(t===!1||t==null)return n(this);if(ep.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):n(this);if(r.data&&r.ids){var s=ep.createFrame(r.data);s.contextPath=ep.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(t,r)})};H_.exports=Ws.default});var G_=m((Ys,z_)=>{"use strict";Ys.__esModule=!0;function QT(e){return e&&e.__esModule?e:{default:e}}o(QT,"_interopRequireDefault");var co=Oe(),JT=Ze(),XT=QT(JT);Ys.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new XT.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,s=0,a="",u=void 0,c=void 0;r.data&&r.ids&&(c=co.appendContextPath(r.data.contextPath,r.ids[0])+"."),co.isFunction(t)&&(t=t.call(this)),r.data&&(u=co.createFrame(r.data));function l(g,y,v){u&&(u.key=g,u.index=y,u.first=y===0,u.last=!!v,c&&(u.contextPath=c+g)),a=a+n(t[g],{data:u,blockParams:co.blockParams([t[g],g],[c+g,null])})}if(o(l,"execIteration"),t&&typeof t=="object")if(co.isArray(t))for(var p=t.length;s<p;s++)s in t&&l(s,s,s===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var f=[],d=t[Symbol.iterator](),h=d.next();!h.done;h=d.next())f.push(h.value);t=f;for(var p=t.length;s<p;s++)l(s,s,s===t.length-1)}else(function(){var g=void 0;Object.keys(t).forEach(function(y){g!==void 0&&l(g,s-1),g=y,s++}),g!==void 0&&l(g,s-1,!0)})();return s===0&&(a=i(this)),a})};z_.exports=Ys.default});var K_=m((Qs,Z_)=>{"use strict";Qs.__esModule=!0;function e3(e){return e&&e.__esModule?e:{default:e}}o(e3,"_interopRequireDefault");var t3=Ze(),r3=e3(t3);Qs.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new r3.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};Z_.exports=Qs.default});var J_=m((Js,Q_)=>{"use strict";Js.__esModule=!0;function n3(e){return e&&e.__esModule?e:{default:e}}o(n3,"_interopRequireDefault");var W_=Oe(),i3=Ze(),Y_=n3(i3);Js.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new Y_.default("#if requires exactly one argument");return W_.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||W_.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new Y_.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};Q_.exports=Js.default});var eb=m((Xs,X_)=>{"use strict";Xs.__esModule=!0;Xs.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],r=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var i=1;r.hash.level!=null?i=r.hash.level:r.data&&r.data.level!=null&&(i=r.data.level),t[0]=i,e.log.apply(e,t)})};X_.exports=Xs.default});var rb=m((ea,tb)=>{"use strict";ea.__esModule=!0;ea.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};tb.exports=ea.default});var ib=m((ta,nb)=>{"use strict";ta.__esModule=!0;function o3(e){return e&&e.__esModule?e:{default:e}}o(o3,"_interopRequireDefault");var lo=Oe(),s3=Ze(),a3=o3(s3);ta.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new a3.default("#with requires exactly one argument");lo.isFunction(t)&&(t=t.call(this));var n=r.fn;if(lo.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=lo.createFrame(r.data),i.contextPath=lo.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:lo.blockParams([t],[i&&i.contextPath])})})};nb.exports=ta.default});var tp=m(ra=>{"use strict";ra.__esModule=!0;ra.registerDefaultHelpers=P3;ra.moveHelperToHooks=$3;function Ur(e){return e&&e.__esModule?e:{default:e}}o(Ur,"_interopRequireDefault");var u3=U_(),c3=Ur(u3),l3=G_(),f3=Ur(l3),p3=K_(),d3=Ur(p3),h3=J_(),m3=Ur(h3),g3=eb(),y3=Ur(g3),v3=rb(),_3=Ur(v3),b3=ib(),S3=Ur(b3);function P3(e){c3.default(e),f3.default(e),d3.default(e),m3.default(e),y3.default(e),_3.default(e),S3.default(e)}o(P3,"registerDefaultHelpers");function $3(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}o($3,"moveHelperToHooks")});var sb=m((na,ob)=>{"use strict";na.__esModule=!0;var O3=Oe();na.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var s=t;return r.partials||(r.partials={},s=o(function(a,u){var c=n.partials;n.partials=O3.extend({},c,r.partials);var l=t(a,u);return n.partials=c,l},"ret")),r.partials[i.args[0]]=i.fn,s})};ob.exports=na.default});var ab=m(rp=>{"use strict";rp.__esModule=!0;rp.registerDefaultDecorators=A3;function E3(e){return e&&e.__esModule?e:{default:e}}o(E3,"_interopRequireDefault");var x3=sb(),w3=E3(x3);function A3(e){w3.default(e)}o(A3,"registerDefaultDecorators")});var np=m((ia,ub)=>{"use strict";ia.__esModule=!0;var I3=Oe(),Gn={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(t){if(typeof t=="string"){var r=I3.indexOf(Gn.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:o(function(t){if(t=Gn.lookupLevel(t),typeof console<"u"&&Gn.lookupLevel(Gn.level)<=t){var r=Gn.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];console[r].apply(console,i)}},"log")};ia.default=Gn;ub.exports=ia.default});var cb=m(ip=>{"use strict";ip.__esModule=!0;ip.createNewLookupObject=R3;var k3=Oe();function R3(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return k3.extend.apply(void 0,[Object.create(null)].concat(t))}o(R3,"createNewLookupObject")});var op=m(fo=>{"use strict";fo.__esModule=!0;fo.createProtoAccessControl=q3;fo.resultIsAllowed=j3;fo.resetLoggedProperties=D3;function T3(e){return e&&e.__esModule?e:{default:e}}o(T3,"_interopRequireDefault");var lb=cb(),C3=np(),N3=T3(C3),oa=Object.create(null);function q3(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var r=Object.create(null);return r.__proto__=!1,{properties:{whitelist:lb.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:lb.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}o(q3,"createProtoAccessControl");function j3(e,t,r){return fb(typeof e=="function"?t.methods:t.properties,r)}o(j3,"resultIsAllowed");function fb(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(M3(t),!1)}o(fb,"checkWhiteList");function M3(e){oa[e]!==!0&&(oa[e]=!0,N3.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
|
|
46
|
+
`)}`)));else if(o.headers.location){let a=Ui.resolve(e,o.headers.location);w0(a,t,r).then(n,i)}else throw Ss({status:o.statusCode},`HTTP ${o.statusCode} redirect with no location header`);else n(o.body||Buffer.alloc(0))}).catch(o=>{i(new x0(Ss(o,`Error downloading ${e.href}`),e.href))})})}s(w0,"download");function Lk(e,t){return new Promise((r,n)=>{let o=(e.protocol==="https:"?Dk:Mk).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});typeof o.setTimeout=="function"&&o.setTimeout(t.timeout),o.on("timeout",()=>{o.abort()}),o.on("error",n),o.once("response",a=>{a.body=Buffer.alloc(0),a.on("data",u=>{a.body=Buffer.concat([a.body,Buffer.from(u)])}),a.on("error",n),a.on("end",()=>{r(a)})})})}s(Lk,"get")});var sf=m((R8,R0)=>{"use strict";var Fk=xg(),Vk=v0(),Bk=b0(),Hk=P0(),Uk=E0(),zk=I0();R0.exports=of;function of(e){nf(this,of.defaults),nf(this,e)}s(of,"$RefParserOptions");of.defaults={parse:{json:Fk,yaml:Vk,text:Bk,binary:Hk},resolve:{file:Uk,http:zk,external:!0},continueOnError:!1,dereference:{circular:!0}};function nf(e,t){if(k0(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],o=t[i],a=e[i];k0(o)?e[i]=nf(a||{},o):o!==void 0&&(e[i]=o)}}return e}s(nf,"merge");function k0(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}s(k0,"isMergeable")});var af=m((C8,C0)=>{"use strict";var T0=sf();C0.exports=Gk;function Gk(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 T0||(n=new T0(n)),{path:t,schema:r,options:n,callback:i}}s(Gk,"normalizeArgs")});var q0=m((q8,N0)=>{"use strict";var uf=sf(),Zk=Ll(),Kk=Bl(),Wk=require("util");N0.exports=Ps;function Ps(e){uf.call(this,Ps.defaults),uf.apply(this,arguments)}s(Ps,"ParserOptions");Ps.defaults={validate:{schema:Zk,spec:Kk}};Wk.inherits(Ps,uf)});var M0=m((M8,j0)=>{"use strict";function Yk(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:s(function(t){setTimeout(t,0)},"next")}s(Yk,"makeNext");j0.exports=Yk()});var cf=m((L8,L0)=>{"use strict";var D0=M0();L0.exports=s(function(t,r){if(t){r.then(function(n){D0(function(){t(null,n)})},function(n){D0(function(){t(n)})});return}else return r},"maybe")});var zi=m((V8,B0)=>{"use strict";B0.exports=rr;var lf=jn(),ff=Ce(),{JSONParserError:Qk,InvalidPointerError:Jk,MissingPointerError:Xk,isHandledError:eR}=nt(),tR=/\//g,rR=/~/g,nR=/~1/g,iR=/~0/g;function rr(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}s(rr,"Pointer");rr.prototype.resolve=function(e,t,r){let n=rr.parse(this.path,this.originalPath);this.value=V0(e);for(let i=0;i<n.length;i++){if($s(this,t)&&(this.path=rr.join(this.path,n.slice(i))),typeof this.value=="object"&&this.value!==null&&"$ref"in this.value)return this;let o=n[i];if(this.value[o]===void 0||this.value[o]===null)throw this.value=null,new Xk(o,this.originalPath);this.value=this.value[o]}return(!this.value||this.value.$ref&&ff.resolve(this.path,this.value.$ref)!==r)&&$s(this,t),this};rr.prototype.set=function(e,t,r){let n=rr.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=V0(e);for(let o=0;o<n.length-1;o++)$s(this,r),i=n[o],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=F0(this,i,{});return $s(this,r),i=n[n.length-1],F0(this,i,t),e};rr.parse=function(e,t){let r=ff.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(nR,"/").replace(iR,"~"));if(r[0]!=="")throw new Jk(r,t===void 0?e:t);return r.slice(1)};rr.join=function(e,t){e.indexOf("#")===-1&&(e+="#"),t=Array.isArray(t)?t:[t];for(let r=0;r<t.length;r++){let n=t[r];e+="/"+encodeURIComponent(n.replace(rR,"~0").replace(tR,"~1"))}return e};function $s(e,t){if(lf.isAllowed$Ref(e.value,t)){let r=ff.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,lf.isExtended$Ref(e.value)?(e.value=lf.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}s($s,"resolveIf$Ref");function F0(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 Qk(`Error assigning $ref pointer "${e.path}".
|
|
47
|
+
Cannot set "${t}" of a non-object.`);return r}s(F0,"setValue");function V0(e){if(eR(e))throw e;return e}s(V0,"unwrapOrThrow")});var jn=m((H8,z0)=>{"use strict";z0.exports=Se;var U0=zi(),{InvalidPointerError:oR,isHandledError:sR,normalizeError:H0}=nt(),{safePointerToPath:aR,stripHash:uR,getHash:cR}=Ce();function Se(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}s(Se,"$Ref");Se.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(H0)):this.errors.push(H0(e))};Se.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};Se.prototype.get=function(e,t){return this.resolve(e,t).value};Se.prototype.resolve=function(e,t,r,n){let i=new U0(this,e,r);try{return i.resolve(this.value,t,n)}catch(o){if(!t||!t.continueOnError||!sR(o))throw o;return o.path===null&&(o.path=aR(cR(n))),o instanceof oR&&(o.source=uR(n)),this.addError(o),null}};Se.prototype.set=function(e,t){let r=new U0(this,e);this.value=r.set(this.value,t)};Se.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};Se.isExternal$Ref=function(e){return Se.is$Ref(e)&&e.$ref[0]!=="#"};Se.isAllowed$Ref=function(e,t){if(Se.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};Se.isExtended$Ref=function(e){return Se.is$Ref(e)&&Object.keys(e).length>1};Se.dereference=function(e,t){if(t&&typeof t=="object"&&Se.isExtended$Ref(e)){let r={};for(let n of Object.keys(e))n!=="$ref"&&(r[n]=e[n]);for(let n of Object.keys(t))n in r||(r[n]=t[n]);return r}else return t}});var W0=m((z8,K0)=>{"use strict";var{ono:G0}=Qe(),lR=jn(),nr=Ce();K0.exports=it;function it(){this.circular=!1,this._$refs={},this._root$Ref=null}s(it,"$Refs");it.prototype.paths=function(e){return Z0(this._$refs,arguments).map(r=>r.decoded)};it.prototype.values=function(e){let t=this._$refs;return Z0(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};it.prototype.toJSON=it.prototype.values;it.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};it.prototype.get=function(e,t){return this._resolve(e,"",t).value};it.prototype.set=function(e,t){let r=nr.resolve(this._root$Ref.path,e),n=nr.stripHash(r),i=this._$refs[n];if(!i)throw G0(`Error resolving $ref pointer "${e}".
|
|
48
|
+
"${n}" not found.`);i.set(r,t)};it.prototype._add=function(e){let t=nr.stripHash(e),r=new lR;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};it.prototype._resolve=function(e,t,r){let n=nr.resolve(this._root$Ref.path,e),i=nr.stripHash(n),o=this._$refs[i];if(!o)throw G0(`Error resolving $ref pointer "${e}".
|
|
49
|
+
"${i}" not found.`);return o.resolve(n,r,e,t)};it.prototype._get$Ref=function(e){e=nr.resolve(this._root$Ref.path,e);let t=nr.stripHash(e);return this._$refs[t]};function Z0(e,t){let r=Object.keys(e);return t=Array.isArray(t[0])?t[0]:Array.prototype.slice.call(t),t.length>0&&t[0]&&(r=r.filter(n=>t.indexOf(e[n].pathType)!==-1)),r.map(n=>({encoded:n,decoded:e[n].pathType==="file"?nr.toFileSystemPath(n,!0):n}))}s(Z0,"getPaths")});var Q0=m(Gi=>{"use strict";Gi.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};Gi.filter=function(e,t,r){return e.filter(n=>!!Y0(n,t,r))};Gi.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)};Gi.run=function(e,t,r,n){let i,o,a=0;return new Promise((u,c)=>{l();function l(){if(i=e[a++],!i)return c(o);try{let h=Y0(i,t,r,p,n);if(h&&typeof h.then=="function")h.then(f,d);else if(h!==void 0)f(h);else if(a===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(h){d(h)}}s(l,"runNextPlugin");function p(h,g){h?d(h):f(g)}s(p,"callback");function f(h){u({plugin:i,result:h})}s(f,"onSuccess");function d(h){o={plugin:i,error:h},l()}s(d,"onError")})};function Y0(e,t,r,n,i){let o=e[t];if(typeof o=="function")return o.apply(e,[r,n,i]);if(!n){if(o instanceof RegExp)return o.test(r.url);if(typeof o=="string")return o===r.extension;if(Array.isArray(o))return o.indexOf(r.extension)!==-1}return o}s(Y0,"getResult")});var df=m((W8,tv)=>{"use strict";var{ono:pf}=Qe(),J0=Ce(),ir=Q0(),{ResolverError:X0,ParserError:ev,UnmatchedParserError:fR,UnmatchedResolverError:pR,isHandledError:dR}=nt();tv.exports=hR;async function hR(e,t,r){e=J0.stripHash(e);let n=t._add(e),i={url:e,extension:J0.getExtension(e)};try{let o=await mR(i,r,t);n.pathType=o.plugin.name,i.data=o.result;let a=await gR(i,r,t);return n.value=a.result,a.result}catch(o){throw dR(o)&&(n.value=o),o}}s(hR,"parse");function mR(e,t,r){return new Promise((n,i)=>{let o=ir.all(t.resolve);o=ir.filter(o,"canRead",e),ir.sort(o),ir.run(o,"read",e,r).then(n,a);function a(u){!u&&t.continueOnError?i(new pR(e.url)):!u||!("error"in u)?i(pf.syntax(`Unable to resolve $ref pointer "${e.url}"`)):u.error instanceof X0?i(u.error):i(new X0(u,e.url))}s(a,"onError")})}s(mR,"readFile");function gR(e,t,r){return new Promise((n,i)=>{let o=ir.all(t.parse),a=ir.filter(o,"canParse",e),u=a.length>0?a:o;ir.sort(u),ir.run(u,"parse",e,r).then(c,l);function c(p){!p.plugin.allowEmpty&&yR(p.result)?i(pf.syntax(`Error parsing "${e.url}" as ${p.plugin.name}.
|
|
50
|
+
Parsed value is empty`)):n(p)}s(c,"onParsed");function l(p){!p&&t.continueOnError?i(new fR(e.url)):!p||!("error"in p)?i(pf.syntax(`Unable to parse ${e.url}`)):p.error instanceof ev?i(p.error):i(new ev(p.error.message,e.url))}s(l,"onError")})}s(gR,"parseFile");function yR(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(yR,"isEmpty")});var ov=m((Q8,iv)=>{"use strict";var rv=jn(),vR=zi(),_R=df(),Zi=Ce(),{isHandledError:bR}=nt();iv.exports=SR;function SR(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=hf(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}s(SR,"resolveExternal");function hf(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(rv.isExternal$Ref(e))i.push(nv(e,t,r,n));else for(let o of Object.keys(e)){let a=vR.join(t,o),u=e[o];rv.isExternal$Ref(u)?i.push(nv(u,a,r,n)):i=i.concat(hf(u,a,r,n))}return i}s(hf,"crawl");async function nv(e,t,r,n){let i=Zi.resolve(t,e.$ref),o=Zi.stripHash(i);if(e=r._$refs[o],e)return Promise.resolve(e.value);try{let a=await _R(i,r,n),u=hf(a,o+"#",r,n);return Promise.all(u)}catch(a){if(!n.continueOnError||!bR(a))throw a;return r._$refs[o]&&(a.source=Zi.stripHash(t),a.path=Zi.safePointerToPath(Zi.getHash(t))),[]}}s(nv,"resolve$Ref")});var uv=m((X8,av)=>{"use strict";var Os=jn(),Ki=zi(),mf=Ce();av.exports=PR;function PR(e,t){let r=[];gf(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),$R(r)}s(PR,"bundle");function gf(e,t,r,n,i,o,a,u){let c=t===null?e:e[t];if(c&&typeof c=="object"&&!ArrayBuffer.isView(c))if(Os.isAllowed$Ref(c))sv(e,t,r,n,i,o,a,u);else{let l=Object.keys(c).sort((p,f)=>p==="definitions"?-1:f==="definitions"?1:p.length-f.length);for(let p of l){let f=Ki.join(r,p),d=Ki.join(n,p),h=c[p];Os.isAllowed$Ref(h)?sv(c,p,r,d,i,o,a,u):gf(c,p,f,d,i,o,a,u)}}}s(gf,"crawl");function sv(e,t,r,n,i,o,a,u){let c=t===null?e:e[t],l=mf.resolve(r,c.$ref),p=a._resolve(l,n,u);if(p===null)return;let f=Ki.parse(n).length,d=mf.stripHash(p.path),h=mf.getHash(p.path),g=d!==a._root$Ref.path,y=Os.isExtended$Ref(c);i+=p.indirections;let v=OR(o,e,t);if(v)if(f<v.depth||i<v.indirections)ER(o,v);else return;o.push({$ref:c,parent:e,key:t,pathFromRoot:n,depth:f,file:d,hash:h,value:p.value,circular:p.circular,extended:y,external:g,indirections:i}),v||gf(p.value,null,p.path,n,i+1,o,a,u)}s(sv,"inventory$Ref");function $R(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"),u=o.pathFromRoot.lastIndexOf("/definitions");return a!==u?u-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=Ki.join(n,Ki.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=Os.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}s($R,"remap");function OR(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(OR,"findInInventory");function ER(e,t){let r=e.indexOf(t);e.splice(r,1)}s(ER,"removeFromInventory")});var _f=m((tD,pv)=>{"use strict";var yf=jn(),cv=zi(),{ono:xR}=Qe(),wR=Ce();pv.exports=AR;function AR(e,t){let r=vf(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}s(AR,"dereference");function vf(e,t,r,n,i,o){let a,u={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),yf.isAllowed$Ref(e,o))a=lv(e,t,r,n,i,o),u.circular=a.circular,u.value=a.value;else for(let c of Object.keys(e)){let l=cv.join(t,c),p=cv.join(r,c),f=e[c],d=!1;yf.isAllowed$Ref(f,o)?(a=lv(f,l,p,n,i,o),d=a.circular,e[c]!==a.value&&(e[c]=a.value)):n.indexOf(f)===-1?(a=vf(f,l,p,n,i,o),d=a.circular,e[c]!==a.value&&(e[c]=a.value)):d=fv(l,i,o),u.circular=u.circular||d}n.pop()}return u}s(vf,"crawl");function lv(e,t,r,n,i,o){let a=wR.resolve(t,e.$ref),u=i._resolve(a,t,o);if(u===null)return{circular:!1,value:null};let c=u.circular,l=c||n.indexOf(u.value)!==-1;l&&fv(t,i,o);let p=yf.dereference(e,u.value);if(!l){let f=vf(p,u.path,r,n,i,o);l=f.circular,p=f.value}return l&&!c&&o.dereference.circular==="ignore"&&(p=e),c&&(p.$ref=r),{circular:l,value:p}}s(lv,"dereference$Ref");function fv(e,t,r){if(t.circular=!0,!r.dereference.circular)throw xR.reference(`Circular $ref pointer found at ${e}`);return!0}s(fv,"foundCircularReference")});var gv=m((nD,bt)=>{"use strict";var mv=W0(),IR=df(),Es=af(),kR=ov(),RR=uv(),TR=_f(),Mn=Ce(),{JSONParserError:CR,InvalidPointerError:NR,MissingPointerError:qR,ResolverError:jR,ParserError:MR,UnmatchedParserError:DR,UnmatchedResolverError:LR,isHandledError:FR,JSONParserErrorGroup:dv}=nt(),ot=cf(),{ono:hv}=Qe();bt.exports=_t;bt.exports.default=_t;bt.exports.JSONParserError=CR;bt.exports.InvalidPointerError=NR;bt.exports.MissingPointerError=qR;bt.exports.ResolverError=jR;bt.exports.ParserError=MR;bt.exports.UnmatchedParserError=DR;bt.exports.UnmatchedResolverError=LR;function _t(){this.schema=null,this.$refs=new mv}s(_t,"$RefParser");_t.parse=s(function(t,r,n,i){let o=this,a=new o;return a.parse.apply(a,arguments)},"parse");_t.prototype.parse=s(async function(t,r,n,i){let o=Es(arguments),a;if(!o.path&&!o.schema){let l=hv(`Expected a file path, URL, or object. Got ${o.path||o.schema}`);return ot(o.callback,Promise.reject(l))}this.schema=null,this.$refs=new mv;let u="http";if(Mn.isFileSystemPath(o.path)&&(o.path=Mn.fromFileSystemPath(o.path),u="file"),o.path=Mn.resolve(Mn.cwd(),o.path),o.schema&&typeof o.schema=="object"){let l=this.$refs._add(o.path);l.value=o.schema,l.pathType=u,a=Promise.resolve(o.schema)}else a=IR(o.path,this.$refs,o.options);let c=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return c.schema=l,ot(o.callback,Promise.resolve(c.schema));if(o.options.continueOnError)return c.schema=null,ot(o.callback,Promise.resolve(c.schema));throw hv.syntax(`"${c.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!o.options.continueOnError||!FR(l)?ot(o.callback,Promise.reject(l)):(this.$refs._$refs[Mn.stripHash(o.path)]&&this.$refs._$refs[Mn.stripHash(o.path)].addError(l),ot(o.callback,Promise.resolve(null)))}},"parse");_t.resolve=s(function(t,r,n,i){let o=this,a=new o;return a.resolve.apply(a,arguments)},"resolve");_t.prototype.resolve=s(async function(t,r,n,i){let o=this,a=Es(arguments);try{return await this.parse(a.path,a.schema,a.options),await kR(o,a.options),bf(o),ot(a.callback,Promise.resolve(o.$refs))}catch(u){return ot(a.callback,Promise.reject(u))}},"resolve");_t.bundle=s(function(t,r,n,i){let o=this,a=new o;return a.bundle.apply(a,arguments)},"bundle");_t.prototype.bundle=s(async function(t,r,n,i){let o=this,a=Es(arguments);try{return await this.resolve(a.path,a.schema,a.options),RR(o,a.options),bf(o),ot(a.callback,Promise.resolve(o.schema))}catch(u){return ot(a.callback,Promise.reject(u))}},"bundle");_t.dereference=s(function(t,r,n,i){let o=this,a=new o;return a.dereference.apply(a,arguments)},"dereference");_t.prototype.dereference=s(async function(t,r,n,i){let o=this,a=Es(arguments);try{return await this.resolve(a.path,a.schema,a.options),TR(o,a.options),bf(o),ot(a.callback,Promise.resolve(o.schema))}catch(u){return ot(a.callback,Promise.reject(u))}},"dereference");function bf(e){if(dv.getParserErrors(e).length>0)throw new dv(e)}s(bf,"finalize")});var Sv=m((oD,bv)=>{"use strict";var VR=Ll(),BR=Bl(),yv=af(),vv=$o(),_v=q0(),xs=cf(),{ono:st}=Qe(),Dr=gv(),HR=_f();bv.exports=St;function St(){Dr.apply(this,arguments)}s(St,"SwaggerParser");vv.inherits(St,Dr);St.parse=Dr.parse;St.resolve=Dr.resolve;St.bundle=Dr.bundle;St.dereference=Dr.dereference;Object.defineProperty(St.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});St.prototype.parse=async function(e,t,r,n){let i=yv(arguments);i.options=new _v(i.options);try{let o=await Dr.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 st.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof o.swagger=="number")throw st.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof o.info.version=="number")throw st.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(o.swagger!=="2.0")throw st.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 st.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 st.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw st.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof o.openapi=="number")throw st.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof o.info.version=="number")throw st.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(o.openapi)===-1)throw st.syntax(`Unsupported OpenAPI version: ${o.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}vv.fixOasRelativeServers(o,i.path)}return xs(i.callback,Promise.resolve(o))}catch(o){return xs(i.callback,Promise.reject(o))}};St.validate=function(e,t,r,n){let i=this,o=new i;return o.validate.apply(o,arguments)};St.prototype.validate=async function(e,t,r,n){let i=this,o=yv(arguments);o.options=new _v(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&&(VR(i.api),i.$refs.circular)){if(a===!0)HR(i,o.options);else if(a===!1)throw st.reference("The API contains circular references")}return o.options.validate.spec&&BR(i.api),xs(o.callback,Promise.resolve(i.schema))}catch(u){return xs(o.callback,Promise.reject(u))}}});var Oe=m(qe=>{"use strict";qe.__esModule=!0;qe.extend=L_;qe.indexOf=UT;qe.escapeExpression=zT;qe.isEmpty=GT;qe.createFrame=ZT;qe.blockParams=KT;qe.appendContextPath=WT;var FT={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},VT=/[&<>"'`=]/g,BT=/[&<>"'`=]/;function HT(e){return FT[e]}s(HT,"escapeChar");function L_(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(L_,"extend");var Yf=Object.prototype.toString;qe.toString=Yf;var Wf=s(function(t){return typeof t=="function"},"isFunction");Wf(/x/)&&(qe.isFunction=Wf=s(function(e){return typeof e=="function"&&Yf.call(e)==="[object Function]"},"isFunction"));qe.isFunction=Wf;var F_=Array.isArray||function(e){return e&&typeof e=="object"?Yf.call(e)==="[object Array]":!1};qe.isArray=F_;function UT(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}s(UT,"indexOf");function zT(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return BT.test(e)?e.replace(VT,HT):e}s(zT,"escapeExpression");function GT(e){return!e&&e!==0?!0:!!(F_(e)&&e.length===0)}s(GT,"isEmpty");function ZT(e){var t=L_({},e);return t._parent=e,t}s(ZT,"createFrame");function KT(e,t){return e.path=t,e}s(KT,"blockParams");function WT(e,t){return(e?e+".":"")+t}s(WT,"appendContextPath")});var Ze=m((Zs,V_)=>{"use strict";Zs.__esModule=!0;var Qf=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Jf(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 u=Error.prototype.constructor.call(this,e),c=0;c<Qf.length;c++)this[Qf[c]]=u[Qf[c]];Error.captureStackTrace&&Error.captureStackTrace(this,Jf);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(Jf,"Exception");Jf.prototype=new Error;Zs.default=Jf;V_.exports=Zs.default});var H_=m((Ks,B_)=>{"use strict";Ks.__esModule=!0;var Xf=Oe();Ks.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(Xf.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=Xf.createFrame(r.data);o.contextPath=Xf.appendContextPath(r.data.contextPath,r.name),r={data:o}}return i(t,r)})};B_.exports=Ks.default});var z_=m((Ws,U_)=>{"use strict";Ws.__esModule=!0;function YT(e){return e&&e.__esModule?e:{default:e}}s(YT,"_interopRequireDefault");var uo=Oe(),QT=Ze(),JT=YT(QT);Ws.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new JT.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,o=0,a="",u=void 0,c=void 0;r.data&&r.ids&&(c=uo.appendContextPath(r.data.contextPath,r.ids[0])+"."),uo.isFunction(t)&&(t=t.call(this)),r.data&&(u=uo.createFrame(r.data));function l(g,y,v){u&&(u.key=g,u.index=y,u.first=y===0,u.last=!!v,c&&(u.contextPath=c+g)),a=a+n(t[g],{data:u,blockParams:uo.blockParams([t[g],g],[c+g,null])})}if(s(l,"execIteration"),t&&typeof t=="object")if(uo.isArray(t))for(var p=t.length;o<p;o++)o in t&&l(o,o,o===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var f=[],d=t[Symbol.iterator](),h=d.next();!h.done;h=d.next())f.push(h.value);t=f;for(var p=t.length;o<p;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})};U_.exports=Ws.default});var Z_=m((Ys,G_)=>{"use strict";Ys.__esModule=!0;function XT(e){return e&&e.__esModule?e:{default:e}}s(XT,"_interopRequireDefault");var e3=Ze(),t3=XT(e3);Ys.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new t3.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};G_.exports=Ys.default});var Q_=m((Qs,Y_)=>{"use strict";Qs.__esModule=!0;function r3(e){return e&&e.__esModule?e:{default:e}}s(r3,"_interopRequireDefault");var K_=Oe(),n3=Ze(),W_=r3(n3);Qs.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new W_.default("#if requires exactly one argument");return K_.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||K_.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new W_.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};Y_.exports=Qs.default});var X_=m((Js,J_)=>{"use strict";Js.__esModule=!0;Js.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)})};J_.exports=Js.default});var tb=m((Xs,eb)=>{"use strict";Xs.__esModule=!0;Xs.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};eb.exports=Xs.default});var nb=m((ea,rb)=>{"use strict";ea.__esModule=!0;function i3(e){return e&&e.__esModule?e:{default:e}}s(i3,"_interopRequireDefault");var co=Oe(),o3=Ze(),s3=i3(o3);ea.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new s3.default("#with requires exactly one argument");co.isFunction(t)&&(t=t.call(this));var n=r.fn;if(co.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=co.createFrame(r.data),i.contextPath=co.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:co.blockParams([t],[i&&i.contextPath])})})};rb.exports=ea.default});var ep=m(ta=>{"use strict";ta.__esModule=!0;ta.registerDefaultHelpers=S3;ta.moveHelperToHooks=P3;function Ur(e){return e&&e.__esModule?e:{default:e}}s(Ur,"_interopRequireDefault");var a3=H_(),u3=Ur(a3),c3=z_(),l3=Ur(c3),f3=Z_(),p3=Ur(f3),d3=Q_(),h3=Ur(d3),m3=X_(),g3=Ur(m3),y3=tb(),v3=Ur(y3),_3=nb(),b3=Ur(_3);function S3(e){u3.default(e),l3.default(e),p3.default(e),h3.default(e),g3.default(e),v3.default(e),b3.default(e)}s(S3,"registerDefaultHelpers");function P3(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}s(P3,"moveHelperToHooks")});var ob=m((ra,ib)=>{"use strict";ra.__esModule=!0;var $3=Oe();ra.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var o=t;return r.partials||(r.partials={},o=s(function(a,u){var c=n.partials;n.partials=$3.extend({},c,r.partials);var l=t(a,u);return n.partials=c,l},"ret")),r.partials[i.args[0]]=i.fn,o})};ib.exports=ra.default});var sb=m(tp=>{"use strict";tp.__esModule=!0;tp.registerDefaultDecorators=w3;function O3(e){return e&&e.__esModule?e:{default:e}}s(O3,"_interopRequireDefault");var E3=ob(),x3=O3(E3);function w3(e){x3.default(e)}s(w3,"registerDefaultDecorators")});var rp=m((na,ab)=>{"use strict";na.__esModule=!0;var A3=Oe(),Gn={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:s(function(t){if(typeof t=="string"){var r=A3.indexOf(Gn.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:s(function(t){if(t=Gn.lookupLevel(t),typeof console<"u"&&Gn.lookupLevel(Gn.level)<=t){var r=Gn.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];console[r].apply(console,i)}},"log")};na.default=Gn;ab.exports=na.default});var ub=m(np=>{"use strict";np.__esModule=!0;np.createNewLookupObject=k3;var I3=Oe();function k3(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return I3.extend.apply(void 0,[Object.create(null)].concat(t))}s(k3,"createNewLookupObject")});var ip=m(lo=>{"use strict";lo.__esModule=!0;lo.createProtoAccessControl=N3;lo.resultIsAllowed=q3;lo.resetLoggedProperties=M3;function R3(e){return e&&e.__esModule?e:{default:e}}s(R3,"_interopRequireDefault");var cb=ub(),T3=rp(),C3=R3(T3),ia=Object.create(null);function N3(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:cb.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:cb.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}s(N3,"createProtoAccessControl");function q3(e,t,r){return lb(typeof e=="function"?t.methods:t.properties,r)}s(q3,"resultIsAllowed");function lb(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(j3(t),!1)}s(lb,"checkWhiteList");function j3(e){ia[e]!==!0&&(ia[e]=!0,C3.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`))}s(j3,"logUnexpecedPropertyAccessOnce");function M3(){Object.keys(ia).forEach(function(e){delete ia[e]})}s(M3,"resetLoggedProperties")});var sa=m(It=>{"use strict";It.__esModule=!0;It.HandlebarsEnvironment=ap;function fb(e){return e&&e.__esModule?e:{default:e}}s(fb,"_interopRequireDefault");var zr=Oe(),D3=Ze(),op=fb(D3),L3=ep(),F3=sb(),V3=rp(),oa=fb(V3),B3=ip(),H3="4.7.8";It.VERSION=H3;var U3=8;It.COMPILER_REVISION=U3;var z3=7;It.LAST_COMPATIBLE_COMPILER_REVISION=z3;var G3={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};It.REVISION_CHANGES=G3;var sp="[object Object]";function ap(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},L3.registerDefaultHelpers(this),F3.registerDefaultDecorators(this)}s(ap,"HandlebarsEnvironment");ap.prototype={constructor:ap,logger:oa.default,log:oa.default.log,registerHelper:s(function(t,r){if(zr.toString.call(t)===sp){if(r)throw new op.default("Arg not supported with multiple helpers");zr.extend(this.helpers,t)}else this.helpers[t]=r},"registerHelper"),unregisterHelper:s(function(t){delete this.helpers[t]},"unregisterHelper"),registerPartial:s(function(t,r){if(zr.toString.call(t)===sp)zr.extend(this.partials,t);else{if(typeof r>"u")throw new op.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},"registerPartial"),unregisterPartial:s(function(t){delete this.partials[t]},"unregisterPartial"),registerDecorator:s(function(t,r){if(zr.toString.call(t)===sp){if(r)throw new op.default("Arg not supported with multiple decorators");zr.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:s(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:s(function(){B3.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Z3=oa.default.log;It.log=Z3;It.createFrame=zr.createFrame;It.logger=oa.default});var db=m((aa,pb)=>{"use strict";aa.__esModule=!0;function up(e){this.string=e}s(up,"SafeString");up.prototype.toString=up.prototype.toHTML=function(){return""+this.string};aa.default=up;pb.exports=aa.default});var hb=m(cp=>{"use strict";cp.__esModule=!0;cp.wrapHelper=K3;function K3(e,t){if(typeof e!="function")return e;var r=s(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=t(i),e.apply(this,arguments)},"wrapper");return r}s(K3,"wrapHelper")});var _b=m(mr=>{"use strict";mr.__esModule=!0;mr.checkRevision=eC;mr.template=tC;mr.wrapProgram=ua;mr.resolvePartial=rC;mr.invokePartial=nC;mr.noop=yb;function W3(e){return e&&e.__esModule?e:{default:e}}s(W3,"_interopRequireDefault");function Y3(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(Y3,"_interopRequireWildcard");var Q3=Oe(),Dt=Y3(Q3),J3=Ze(),Lt=W3(J3),Ft=sa(),mb=ep(),X3=hb(),gb=ip();function eC(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]+").")}s(eC,"checkRevision");function tC(e,t){if(!t)throw new Lt.default("No environment passed to template");if(!e||!e.main)throw new Lt.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&e.compiler[0]===7;function n(a,u,c){c.hash&&(u=Dt.extend({},u,c.hash),c.ids&&(c.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,u,c);var l=Dt.extend({},c,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),p=t.VM.invokePartial.call(this,a,u,l);if(p==null&&t.compile&&(c.partials[c.name]=t.compile(a,e.compilerOptions,t),p=c.partials[c.name](u,l)),p!=null){if(c.indent){for(var f=p.split(`
|
|
53
53
|
`),d=0,h=f.length;d<h&&!(!f[d]&&d+1===h);d++)f[d]=c.indent+f[d];p=f.join(`
|
|
54
|
-
`)}return p}else throw new Lt.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var i={strict:o(function(u,c,l){if(!u||!(c in u))throw new Lt.default('"'+c+'" not defined in '+u,{loc:l});return i.lookupProperty(u,c)},"strict"),lookupProperty:o(function(u,c){var l=u[c];if(l==null||Object.prototype.hasOwnProperty.call(u,c)||yb.resultIsAllowed(l,i.protoAccessControl,c))return l},"lookupProperty"),lookup:o(function(u,c){for(var l=u.length,p=0;p<l;p++){var f=u[p]&&i.lookupProperty(u[p],c);if(f!=null)return u[p][c]}},"lookup"),lambda:o(function(u,c){return typeof u=="function"?u.call(c):u},"lambda"),escapeExpression:Dt.escapeExpression,invokePartial:n,fn:o(function(u){var c=e[u];return c.decorator=e[u+"_d"],c},"fn"),programs:[],program:o(function(u,c,l,p,f){var d=this.programs[u],h=this.fn(u);return c||f||p||l?d=ca(this,u,h,c,l,p,f):d||(d=this.programs[u]=ca(this,u,h)),d},"program"),data:o(function(u,c){for(;u&&c--;)u=u._parent;return u},"data"),mergeIfNeeded:o(function(u,c){var l=u||c;return u&&c&&u!==c&&(l=Dt.extend({},c,u)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function s(a){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=u.data;s._setup(u),!u.partial&&e.useData&&(c=oC(a,c));var l=void 0,p=e.useBlockParams?[]:void 0;e.useDepths&&(u.depths?l=a!=u.depths[0]?[a].concat(u.depths):u.depths:l=[a]);function f(d){return""+e.main(i,d,i.helpers,i.partials,c,p,l)}return o(f,"main"),f=_b(e.main,f,i,u.depths||[],c,p),f(a,u)}return o(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var u=Dt.extend({},t.helpers,a.helpers);sC(u,i),i.helpers=u,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=Dt.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=yb.createProtoAccessControl(a);var c=a.allowCallsToHelperMissing||r;gb.moveHelperToHooks(i,"helperMissing",c),gb.moveHelperToHooks(i,"blockHelperMissing",c)}},s._child=function(a,u,c,l){if(e.useBlockParams&&!c)throw new Lt.default("must pass block params");if(e.useDepths&&!l)throw new Lt.default("must pass parent depths");return ca(i,a,e[a],u,0,c,l)},s}o(rC,"template");function ca(e,t,r,n,i,s,a){function u(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=a;return a&&c!=a[0]&&!(c===e.nullContext&&a[0]===null)&&(p=[c].concat(a)),r(e,c,e.helpers,e.partials,l.data||n,s&&[l.blockParams].concat(s),p)}return o(u,"prog"),u=_b(r,u,e,a,n,s),u.program=t,u.depth=a?a.length:0,u.blockParams=i||0,u}o(ca,"wrapProgram");function nC(e,t,r){return e?!e.call&&!r.name&&(r.name=e,e=r.partials[e]):r.name==="@partial-block"?e=r.data["partial-block"]:e=r.partials[r.name],e}o(nC,"resolvePartial");function iC(e,t,r){var n=r.data&&r.data["partial-block"];r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var i=void 0;if(r.fn&&r.fn!==vb&&function(){r.data=Ft.createFrame(r.data);var s=r.fn;i=r.data["partial-block"]=o(function(u){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=Ft.createFrame(c.data),c.data["partial-block"]=n,s(u,c)},"partialBlockWrapper"),s.partials&&(r.partials=Dt.extend({},r.partials,s.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new Lt.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}o(iC,"invokePartial");function vb(){return""}o(vb,"noop");function oC(e,t){return(!t||!("root"in t))&&(t=t?Ft.createFrame(t):{},t.root=e),t}o(oC,"initData");function _b(e,t,r,n,i,s){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,s,n),Dt.extend(t,a)}return t}o(_b,"executeDecorators");function sC(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=aC(n,t)})}o(sC,"wrapHelpersToPassLookupProperty");function aC(e,t){var r=t.lookupProperty;return eC.wrapHelper(e,function(n){return Dt.extend({lookupProperty:r},n)})}o(aC,"passLookupPropertyOption")});var fp=m((la,Sb)=>{"use strict";la.__esModule=!0;la.default=function(e){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var t=globalThis.Handlebars;e.noConflict=function(){return globalThis.Handlebars===e&&(globalThis.Handlebars=t),e}};Sb.exports=la.default});var xb=m((fa,Eb)=>{"use strict";fa.__esModule=!0;function dp(e){return e&&e.__esModule?e:{default:e}}o(dp,"_interopRequireDefault");function hp(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(hp,"_interopRequireWildcard");var uC=aa(),Pb=hp(uC),cC=hb(),lC=dp(cC),fC=Ze(),pC=dp(fC),dC=Oe(),pp=hp(dC),hC=bb(),$b=hp(hC),mC=fp(),gC=dp(mC);function Ob(){var e=new Pb.HandlebarsEnvironment;return pp.extend(e,Pb),e.SafeString=lC.default,e.Exception=pC.default,e.Utils=pp,e.escapeExpression=pp.escapeExpression,e.VM=$b,e.template=function(t){return $b.template(t,e)},e}o(Ob,"create");var po=Ob();po.create=Ob;gC.default(po);po.default=po;fa.default=po;Eb.exports=fa.default});var mp=m((pa,Ab)=>{"use strict";pa.__esModule=!0;var wb={helpers:{helperExpression:o(function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},"helperExpression"),scopedId:o(function(t){return/^\.|this\b/.test(t.original)},"scopedId"),simpleId:o(function(t){return t.parts.length===1&&!wb.helpers.scopedId(t)&&!t.depth},"simpleId")}};pa.default=wb;Ab.exports=pa.default});var kb=m((da,Ib)=>{"use strict";da.__esModule=!0;var yC=function(){var e={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:o(function(i,s,a,u,c,l,p){var f=l.length-1;switch(c){case 1:return l[f-1];case 2:this.$=u.prepareProgram(l[f]);break;case 3:this.$=l[f];break;case 4:this.$=l[f];break;case 5:this.$=l[f];break;case 6:this.$=l[f];break;case 7:this.$=l[f];break;case 8:this.$=l[f];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(l[f]),strip:u.stripFlags(l[f],l[f]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[f],value:l[f],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(l[f-2],l[f-1],l[f],this._$);break;case 12:this.$={path:l[f-3],params:l[f-2],hash:l[f-1]};break;case 13:this.$=u.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!1,this._$);break;case 14:this.$=u.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!0,this._$);break;case 15:this.$={open:l[f-5],path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 16:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 17:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 18:this.$={strip:u.stripFlags(l[f-1],l[f-1]),program:l[f]};break;case 19:var d=u.prepareBlock(l[f-2],l[f-1],l[f],l[f],!1,this._$),h=u.prepareProgram([d],l[f-1].loc);h.chained=!0,this.$={strip:l[f-2].strip,program:h,chain:!0};break;case 20:this.$=l[f];break;case 21:this.$={path:l[f-1],strip:u.stripFlags(l[f-2],l[f])};break;case 22:this.$=u.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],u.stripFlags(l[f-4],l[f]),this._$);break;case 23:this.$=u.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],u.stripFlags(l[f-4],l[f]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[f-3],params:l[f-2],hash:l[f-1],indent:"",strip:u.stripFlags(l[f-4],l[f]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(l[f-2],l[f-1],l[f],this._$);break;case 26:this.$={path:l[f-3],params:l[f-2],hash:l[f-1],strip:u.stripFlags(l[f-4],l[f])};break;case 27:this.$=l[f];break;case 28:this.$=l[f];break;case 29:this.$={type:"SubExpression",path:l[f-3],params:l[f-2],hash:l[f-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[f],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(l[f-2]),value:l[f],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(l[f-1]);break;case 33:this.$=l[f];break;case 34:this.$=l[f];break;case 35:this.$={type:"StringLiteral",value:l[f],original:l[f],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[f]),original:Number(l[f]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[f]==="true",original:l[f]==="true",loc:u.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:u.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:u.locInfo(this._$)};break;case 40:this.$=l[f];break;case 41:this.$=l[f];break;case 42:this.$=u.preparePath(!0,l[f],this._$);break;case 43:this.$=u.preparePath(!1,l[f],this._$);break;case 44:l[f-2].push({part:u.id(l[f]),original:l[f],separator:l[f-1]}),this.$=l[f-2];break;case 45:this.$=[{part:u.id(l[f]),original:l[f]}];break;case 46:this.$=[];break;case 47:l[f-1].push(l[f]);break;case 48:this.$=[];break;case 49:l[f-1].push(l[f]);break;case 50:this.$=[];break;case 51:l[f-1].push(l[f]);break;case 58:this.$=[];break;case 59:l[f-1].push(l[f]);break;case 64:this.$=[];break;case 65:l[f-1].push(l[f]);break;case 70:this.$=[];break;case 71:l[f-1].push(l[f]);break;case 78:this.$=[];break;case 79:l[f-1].push(l[f]);break;case 82:this.$=[];break;case 83:l[f-1].push(l[f]);break;case 86:this.$=[];break;case 87:l[f-1].push(l[f]);break;case 90:this.$=[];break;case 91:l[f-1].push(l[f]);break;case 94:this.$=[];break;case 95:l[f-1].push(l[f]);break;case 98:this.$=[l[f]];break;case 99:l[f-1].push(l[f]);break;case 100:this.$=[l[f]];break;case 101:l[f-1].push(l[f]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:o(function(i,s){throw new Error(i)},"parseError"),parse:o(function(i){var s=this,a=[0],u=[null],c=[],l=this.table,p="",f=0,d=0,h=0,g=2,y=1;this.lexer.setInput(i),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var v=this.lexer.yylloc;c.push(v);var _=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function b(ft){a.length=a.length-2*ft,u.length=u.length-ft,c.length=c.length-ft}o(b,"popStack");function S(){var ft;return ft=s.lexer.lex()||1,typeof ft!="number"&&(ft=s.symbols_[ft]||ft),ft}o(S,"lex");for(var E,$,M,j,ie,oe,le={},Me,Ee,Bt,Jr;;){if(M=a[a.length-1],this.defaultActions[M]?j=this.defaultActions[M]:((E===null||typeof E>"u")&&(E=S()),j=l[M]&&l[M][E]),typeof j>"u"||!j.length||!j[0]){var Ra="";if(!h){Jr=[];for(Me in l[M])this.terminals_[Me]&&Me>2&&Jr.push("'"+this.terminals_[Me]+"'");this.lexer.showPosition?Ra="Parse error on line "+(f+1)+`:
|
|
54
|
+
`)}return p}else throw new Lt.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}s(n,"invokePartialWrapper");var i={strict:s(function(u,c,l){if(!u||!(c in u))throw new Lt.default('"'+c+'" not defined in '+u,{loc:l});return i.lookupProperty(u,c)},"strict"),lookupProperty:s(function(u,c){var l=u[c];if(l==null||Object.prototype.hasOwnProperty.call(u,c)||gb.resultIsAllowed(l,i.protoAccessControl,c))return l},"lookupProperty"),lookup:s(function(u,c){for(var l=u.length,p=0;p<l;p++){var f=u[p]&&i.lookupProperty(u[p],c);if(f!=null)return u[p][c]}},"lookup"),lambda:s(function(u,c){return typeof u=="function"?u.call(c):u},"lambda"),escapeExpression:Dt.escapeExpression,invokePartial:n,fn:s(function(u){var c=e[u];return c.decorator=e[u+"_d"],c},"fn"),programs:[],program:s(function(u,c,l,p,f){var d=this.programs[u],h=this.fn(u);return c||f||p||l?d=ua(this,u,h,c,l,p,f):d||(d=this.programs[u]=ua(this,u,h)),d},"program"),data:s(function(u,c){for(;u&&c--;)u=u._parent;return u},"data"),mergeIfNeeded:s(function(u,c){var l=u||c;return u&&c&&u!==c&&(l=Dt.extend({},c,u)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function o(a){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=u.data;o._setup(u),!u.partial&&e.useData&&(c=iC(a,c));var l=void 0,p=e.useBlockParams?[]:void 0;e.useDepths&&(u.depths?l=a!=u.depths[0]?[a].concat(u.depths):u.depths:l=[a]);function f(d){return""+e.main(i,d,i.helpers,i.partials,c,p,l)}return s(f,"main"),f=vb(e.main,f,i,u.depths||[],c,p),f(a,u)}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 u=Dt.extend({},t.helpers,a.helpers);oC(u,i),i.helpers=u,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=Dt.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=gb.createProtoAccessControl(a);var c=a.allowCallsToHelperMissing||r;mb.moveHelperToHooks(i,"helperMissing",c),mb.moveHelperToHooks(i,"blockHelperMissing",c)}},o._child=function(a,u,c,l){if(e.useBlockParams&&!c)throw new Lt.default("must pass block params");if(e.useDepths&&!l)throw new Lt.default("must pass parent depths");return ua(i,a,e[a],u,0,c,l)},o}s(tC,"template");function ua(e,t,r,n,i,o,a){function u(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=a;return a&&c!=a[0]&&!(c===e.nullContext&&a[0]===null)&&(p=[c].concat(a)),r(e,c,e.helpers,e.partials,l.data||n,o&&[l.blockParams].concat(o),p)}return s(u,"prog"),u=vb(r,u,e,a,n,o),u.program=t,u.depth=a?a.length:0,u.blockParams=i||0,u}s(ua,"wrapProgram");function rC(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(rC,"resolvePartial");function nC(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!==yb&&function(){r.data=Ft.createFrame(r.data);var o=r.fn;i=r.data["partial-block"]=s(function(u){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=Ft.createFrame(c.data),c.data["partial-block"]=n,o(u,c)},"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(nC,"invokePartial");function yb(){return""}s(yb,"noop");function iC(e,t){return(!t||!("root"in t))&&(t=t?Ft.createFrame(t):{},t.root=e),t}s(iC,"initData");function vb(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(vb,"executeDecorators");function oC(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=sC(n,t)})}s(oC,"wrapHelpersToPassLookupProperty");function sC(e,t){var r=t.lookupProperty;return X3.wrapHelper(e,function(n){return Dt.extend({lookupProperty:r},n)})}s(sC,"passLookupPropertyOption")});var lp=m((ca,bb)=>{"use strict";ca.__esModule=!0;ca.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}};bb.exports=ca.default});var Eb=m((la,Ob)=>{"use strict";la.__esModule=!0;function pp(e){return e&&e.__esModule?e:{default:e}}s(pp,"_interopRequireDefault");function dp(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(dp,"_interopRequireWildcard");var aC=sa(),Sb=dp(aC),uC=db(),cC=pp(uC),lC=Ze(),fC=pp(lC),pC=Oe(),fp=dp(pC),dC=_b(),Pb=dp(dC),hC=lp(),mC=pp(hC);function $b(){var e=new Sb.HandlebarsEnvironment;return fp.extend(e,Sb),e.SafeString=cC.default,e.Exception=fC.default,e.Utils=fp,e.escapeExpression=fp.escapeExpression,e.VM=Pb,e.template=function(t){return Pb.template(t,e)},e}s($b,"create");var fo=$b();fo.create=$b;mC.default(fo);fo.default=fo;la.default=fo;Ob.exports=la.default});var hp=m((fa,wb)=>{"use strict";fa.__esModule=!0;var xb={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&&!xb.helpers.scopedId(t)&&!t.depth},"simpleId")}};fa.default=xb;wb.exports=fa.default});var Ib=m((pa,Ab)=>{"use strict";pa.__esModule=!0;var gC=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,u,c,l,p){var f=l.length-1;switch(c){case 1:return l[f-1];case 2:this.$=u.prepareProgram(l[f]);break;case 3:this.$=l[f];break;case 4:this.$=l[f];break;case 5:this.$=l[f];break;case 6:this.$=l[f];break;case 7:this.$=l[f];break;case 8:this.$=l[f];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(l[f]),strip:u.stripFlags(l[f],l[f]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[f],value:l[f],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(l[f-2],l[f-1],l[f],this._$);break;case 12:this.$={path:l[f-3],params:l[f-2],hash:l[f-1]};break;case 13:this.$=u.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!1,this._$);break;case 14:this.$=u.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!0,this._$);break;case 15:this.$={open:l[f-5],path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 16:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 17:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 18:this.$={strip:u.stripFlags(l[f-1],l[f-1]),program:l[f]};break;case 19:var d=u.prepareBlock(l[f-2],l[f-1],l[f],l[f],!1,this._$),h=u.prepareProgram([d],l[f-1].loc);h.chained=!0,this.$={strip:l[f-2].strip,program:h,chain:!0};break;case 20:this.$=l[f];break;case 21:this.$={path:l[f-1],strip:u.stripFlags(l[f-2],l[f])};break;case 22:this.$=u.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],u.stripFlags(l[f-4],l[f]),this._$);break;case 23:this.$=u.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],u.stripFlags(l[f-4],l[f]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[f-3],params:l[f-2],hash:l[f-1],indent:"",strip:u.stripFlags(l[f-4],l[f]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(l[f-2],l[f-1],l[f],this._$);break;case 26:this.$={path:l[f-3],params:l[f-2],hash:l[f-1],strip:u.stripFlags(l[f-4],l[f])};break;case 27:this.$=l[f];break;case 28:this.$=l[f];break;case 29:this.$={type:"SubExpression",path:l[f-3],params:l[f-2],hash:l[f-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[f],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(l[f-2]),value:l[f],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(l[f-1]);break;case 33:this.$=l[f];break;case 34:this.$=l[f];break;case 35:this.$={type:"StringLiteral",value:l[f],original:l[f],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[f]),original:Number(l[f]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[f]==="true",original:l[f]==="true",loc:u.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:u.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:u.locInfo(this._$)};break;case 40:this.$=l[f];break;case 41:this.$=l[f];break;case 42:this.$=u.preparePath(!0,l[f],this._$);break;case 43:this.$=u.preparePath(!1,l[f],this._$);break;case 44:l[f-2].push({part:u.id(l[f]),original:l[f],separator:l[f-1]}),this.$=l[f-2];break;case 45:this.$=[{part:u.id(l[f]),original:l[f]}];break;case 46:this.$=[];break;case 47:l[f-1].push(l[f]);break;case 48:this.$=[];break;case 49:l[f-1].push(l[f]);break;case 50:this.$=[];break;case 51:l[f-1].push(l[f]);break;case 58:this.$=[];break;case 59:l[f-1].push(l[f]);break;case 64:this.$=[];break;case 65:l[f-1].push(l[f]);break;case 70:this.$=[];break;case 71:l[f-1].push(l[f]);break;case 78:this.$=[];break;case 79:l[f-1].push(l[f]);break;case 82:this.$=[];break;case 83:l[f-1].push(l[f]);break;case 86:this.$=[];break;case 87:l[f-1].push(l[f]);break;case 90:this.$=[];break;case 91:l[f-1].push(l[f]);break;case 94:this.$=[];break;case 95:l[f-1].push(l[f]);break;case 98:this.$=[l[f]];break;case 99:l[f-1].push(l[f]);break;case 100:this.$=[l[f]];break;case 101:l[f-1].push(l[f]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:s(function(i,o){throw new Error(i)},"parseError"),parse:s(function(i){var o=this,a=[0],u=[null],c=[],l=this.table,p="",f=0,d=0,h=0,g=2,y=1;this.lexer.setInput(i),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var v=this.lexer.yylloc;c.push(v);var _=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function b(ft){a.length=a.length-2*ft,u.length=u.length-ft,c.length=c.length-ft}s(b,"popStack");function S(){var ft;return ft=o.lexer.lex()||1,typeof ft!="number"&&(ft=o.symbols_[ft]||ft),ft}s(S,"lex");for(var E,$,M,j,ie,oe,le={},Me,Ee,Bt,Jr;;){if(M=a[a.length-1],this.defaultActions[M]?j=this.defaultActions[M]:((E===null||typeof E>"u")&&(E=S()),j=l[M]&&l[M][E]),typeof j>"u"||!j.length||!j[0]){var ka="";if(!h){Jr=[];for(Me in l[M])this.terminals_[Me]&&Me>2&&Jr.push("'"+this.terminals_[Me]+"'");this.lexer.showPosition?ka="Parse error on line "+(f+1)+`:
|
|
55
55
|
`+this.lexer.showPosition()+`
|
|
56
|
-
Expecting `+Jr.join(", ")+", got '"+(this.terminals_[E]||E)+"'":
|
|
57
|
-
`+a+"^"},"showPosition"),next:
|
|
58
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=o(function(s,a,u,c){function l(f,d){return a.yytext=a.yytext.substring(f,a.yyleng-d+f)}o(l,"strip");var p=c;switch(u){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();e.lexer=t;function r(){this.yy={}}return o(r,"Parser"),r.prototype=e,e.Parser=r,new r}();da.default=yC;Ib.exports=da.default});var ya=m((ga,Cb)=>{"use strict";ga.__esModule=!0;function vC(e){return e&&e.__esModule?e:{default:e}}o(vC,"_interopRequireDefault");var _C=Ze(),gp=vC(_C);function ha(){this.parents=[]}o(ha,"Visitor");ha.prototype={constructor:ha,mutating:!1,acceptKey:o(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!ha.prototype[n.type])throw new gp.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+t.type);t[r]=n}},"acceptKey"),acceptRequired:o(function(t,r){if(this.acceptKey(t,r),!t[r])throw new gp.default(t.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(t){for(var r=0,n=t.length;r<n;r++)this.acceptKey(t,r),t[r]||(t.splice(r,1),r--,n--)},"acceptArray"),accept:o(function(t){if(t){if(!this[t.type])throw new gp.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var r=this[t.type](t);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return t}},"accept"),Program:o(function(t){this.acceptArray(t.body)},"Program"),MustacheStatement:ma,Decorator:ma,BlockStatement:Rb,DecoratorBlock:Rb,PartialStatement:Tb,PartialBlockStatement:o(function(t){Tb.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:ma,PathExpression:o(function(){},"PathExpression"),StringLiteral:o(function(){},"StringLiteral"),NumberLiteral:o(function(){},"NumberLiteral"),BooleanLiteral:o(function(){},"BooleanLiteral"),UndefinedLiteral:o(function(){},"UndefinedLiteral"),NullLiteral:o(function(){},"NullLiteral"),Hash:o(function(t){this.acceptArray(t.pairs)},"Hash"),HashPair:o(function(t){this.acceptRequired(t,"value")},"HashPair")};function ma(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(ma,"visitSubExpression");function Rb(e){ma.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}o(Rb,"visitBlock");function Tb(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(Tb,"visitPartial");ga.default=ha;Cb.exports=ga.default});var qb=m((va,Nb)=>{"use strict";va.__esModule=!0;function bC(e){return e&&e.__esModule?e:{default:e}}o(bC,"_interopRequireDefault");var SC=ya(),PC=bC(SC);function kt(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}o(kt,"WhitespaceControl");kt.prototype=new PC.default;kt.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,s=n.length;i<s;i++){var a=n[i],u=this.accept(a);if(u){var c=yp(n,i,r),l=vp(n,i,r),p=u.openStandalone&&c,f=u.closeStandalone&&l,d=u.inlineStandalone&&c&&l;u.close&&Gr(n,i,!0),u.open&&gr(n,i,!0),t&&d&&(Gr(n,i),gr(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(Gr((a.program||a.inverse).body),gr(n,i)),t&&f&&(Gr(n,i),gr((a.inverse||a.program).body))}}return e};kt.prototype.BlockStatement=kt.prototype.DecoratorBlock=kt.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var s={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:vp(t.body),closeStandalone:yp((n||t).body)};if(e.openStrip.close&&Gr(t.body,null,!0),r){var a=e.inverseStrip;a.open&&gr(t.body,null,!0),a.close&&Gr(n.body,null,!0),e.closeStrip.open&&gr(i.body,null,!0),!this.options.ignoreStandalone&&yp(t.body)&&vp(n.body)&&(gr(t.body),Gr(n.body))}else e.closeStrip.open&&gr(t.body,null,!0);return s};kt.prototype.Decorator=kt.prototype.MustacheStatement=function(e){return e.strip};kt.prototype.PartialStatement=kt.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function yp(e,t,r){t===void 0&&(t=e.length);var n=e[t-1],i=e[t-2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}o(yp,"isPrevWhitespace");function vp(e,t,r){t===void 0&&(t=-1);var n=e[t+1],i=e[t+2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}o(vp,"isNextWhitespace");function Gr(e,t,r){var n=e[t==null?0:t+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}o(Gr,"omitRight");function gr(e,t,r){var n=e[t==null?e.length-1:t-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}o(gr,"omitLeft");va.default=kt;Nb.exports=va.default});var jb=m(Ke=>{"use strict";Ke.__esModule=!0;Ke.SourceLocation=EC;Ke.id=xC;Ke.stripFlags=wC;Ke.stripComment=AC;Ke.preparePath=IC;Ke.prepareMustache=kC;Ke.prepareRawBlock=RC;Ke.prepareBlock=TC;Ke.prepareProgram=CC;Ke.preparePartialBlock=NC;function $C(e){return e&&e.__esModule?e:{default:e}}o($C,"_interopRequireDefault");var OC=Ze(),_p=$C(OC);function bp(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new _p.default(e.path.original+" doesn't match "+t,r)}}o(bp,"validateClose");function EC(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}o(EC,"SourceLocation");function xC(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}o(xC,"id");function wC(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}o(wC,"stripFlags");function AC(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(AC,"stripComment");function IC(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],s=0,a=0,u=t.length;a<u;a++){var c=t[a].part,l=t[a].original!==c;if(n+=(t[a].separator||"")+c,!l&&(c===".."||c==="."||c==="this")){if(i.length>0)throw new _p.default("Invalid path: "+n,{loc:r});c===".."&&s++}else i.push(c)}return{type:"PathExpression",data:e,depth:s,parts:i,original:n,loc:r}}o(IC,"preparePath");function kC(e,t,r,n,i,s){var a=n.charAt(3)||n.charAt(2),u=a!=="{"&&a!=="&",c=/\*/.test(n);return{type:c?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:u,strip:i,loc:this.locInfo(s)}}o(kC,"prepareMustache");function RC(e,t,r,n){bp(e,r),n=this.locInfo(n);var i={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}o(RC,"prepareRawBlock");function TC(e,t,r,n,i,s){n&&n.path&&bp(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var u=void 0,c=void 0;if(r){if(a)throw new _p.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),c=r.strip,u=r.program}return i&&(i=u,u=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:u,openStrip:e.strip,inverseStrip:c,closeStrip:n&&n.strip,loc:this.locInfo(s)}}o(TC,"prepareBlock");function CC(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}o(CC,"prepareProgram");function NC(e,t,r,n){return bp(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}o(NC,"preparePartialBlock")});var Lb=m(ho=>{"use strict";ho.__esModule=!0;ho.parseWithoutProcessing=Db;ho.parse=BC;function qC(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(qC,"_interopRequireWildcard");function Mb(e){return e&&e.__esModule?e:{default:e}}o(Mb,"_interopRequireDefault");var jC=kb(),Sp=Mb(jC),MC=qb(),DC=Mb(MC),LC=jb(),FC=qC(LC),VC=Oe();ho.parser=Sp.default;var _a={};VC.extend(_a,FC);function Db(e,t){if(e.type==="Program")return e;Sp.default.yy=_a,_a.locInfo=function(n){return new _a.SourceLocation(t&&t.srcName,n)};var r=Sp.default.parse(e);return r}o(Db,"parseWithoutProcessing");function BC(e,t){var r=Db(e,t),n=new DC.default(t);return n.accept(r)}o(BC,"parse")});var Hb=m(vo=>{"use strict";vo.__esModule=!0;vo.Compiler=Pp;vo.precompile=GC;vo.compile=ZC;function Vb(e){return e&&e.__esModule?e:{default:e}}o(Vb,"_interopRequireDefault");var HC=Ze(),go=Vb(HC),yo=Oe(),UC=mp(),mo=Vb(UC),zC=[].slice;function Pp(){}o(Pp,"Compiler");Pp.prototype={compiler:Pp,equals:o(function(t){var r=this.opcodes.length;if(t.opcodes.length!==r)return!1;for(var n=0;n<r;n++){var i=this.opcodes[n],s=t.opcodes[n];if(i.opcode!==s.opcode||!Bb(i.args,s.args))return!1}r=this.children.length;for(var n=0;n<r;n++)if(!this.children[n].equals(t.children[n]))return!1;return!0},"equals"),guid:0,compile:o(function(t,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=yo.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(t)},"compile"),compileProgram:o(function(t){var r=new this.compiler,n=r.compile(t,this.options),i=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[i]=n,this.useDepths=this.useDepths||n.useDepths,i},"compileProgram"),accept:o(function(t){if(!this[t.type])throw new go.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},"accept"),Program:o(function(t){this.options.blockParams.unshift(t.blockParams);for(var r=t.body,n=r.length,i=0;i<n;i++)this.accept(r[i]);return this.options.blockParams.shift(),this.isSimple=n===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},"Program"),BlockStatement:o(function(t){Fb(t);var r=t.program,n=t.inverse;r=r&&this.compileProgram(r),n=n&&this.compileProgram(n);var i=this.classifySexpr(t);i==="helper"?this.helperSexpr(t,r,n):i==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,r,n),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},"BlockStatement"),DecoratorBlock:o(function(t){var r=t.program&&this.compileProgram(t.program),n=this.setupFullMustacheParams(t,r,void 0),i=t.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,i.original)},"DecoratorBlock"),PartialStatement:o(function(t){this.usePartial=!0;var r=t.program;r&&(r=this.compileProgram(t.program));var n=t.params;if(n.length>1)throw new go.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=t.name.original,s=t.name.type==="SubExpression";s&&this.accept(t.name),this.setupFullMustacheParams(t,r,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",s,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:o(function(t){this.PartialStatement(t)},"PartialBlockStatement"),MustacheStatement:o(function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:o(function(t){this.DecoratorBlock(t)},"Decorator"),ContentStatement:o(function(t){t.value&&this.opcode("appendContent",t.value)},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:o(function(t){Fb(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},"SubExpression"),ambiguousSexpr:o(function(t,r,n){var i=t.path,s=i.parts[0],a=r!=null||n!=null;this.opcode("getContext",i.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",s,a)},"ambiguousSexpr"),simpleSexpr:o(function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:o(function(t,r,n){var i=this.setupFullMustacheParams(t,r,n),s=t.path,a=s.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new go.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);s.strict=!0,s.falsy=!0,this.accept(s),this.opcode("invokeHelper",i.length,s.original,mo.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=mo.default.helpers.scopedId(t),i=!t.depth&&!n&&this.blockParamIndex(r);i?this.opcode("lookupBlockParam",i,t.parts):r?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},"PathExpression"),StringLiteral:o(function(t){this.opcode("pushString",t.value)},"StringLiteral"),NumberLiteral:o(function(t){this.opcode("pushLiteral",t.value)},"NumberLiteral"),BooleanLiteral:o(function(t){this.opcode("pushLiteral",t.value)},"BooleanLiteral"),UndefinedLiteral:o(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:o(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:o(function(t){var r=t.pairs,n=0,i=r.length;for(this.opcode("pushHash");n<i;n++)this.pushParam(r[n].value);for(;n--;)this.opcode("assignToHash",r[n].key);this.opcode("popHash")},"Hash"),opcode:o(function(t){this.opcodes.push({opcode:t,args:zC.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:o(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:o(function(t){var r=mo.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&mo.default.helpers.helperExpression(t),s=!n&&(i||r);if(s&&!i){var a=t.path.parts[0],u=this.options;u.knownHelpers[a]?i=!0:u.knownHelpersOnly&&(s=!1)}return i?"helper":s?"ambiguous":"simple"},"classifySexpr"),pushParams:o(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:o(function(t){var r=t.value!=null?t.value:t.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",r,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var n=void 0;if(t.parts&&!mo.default.helpers.scopedId(t)&&!t.depth&&(n=this.blockParamIndex(t.parts[0])),n){var i=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,i)}else r=t.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,r)}this.accept(t)}},"pushParam"),setupFullMustacheParams:o(function(t,r,n,i){var s=t.params;return this.pushParams(s),this.opcode("pushProgram",r),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),s},"setupFullMustacheParams"),blockParamIndex:o(function(t){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],s=i&&yo.indexOf(i,t);if(i&&s>=0)return[r,s]}},"blockParamIndex")};function GC(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new go.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=r.parse(e,t),i=new r.Compiler().compile(n,t);return new r.JavaScriptCompiler().compile(i,t)}o(GC,"precompile");function ZC(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new go.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=yo.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function i(){var a=r.parse(e,t),u=new r.Compiler().compile(a,t),c=new r.JavaScriptCompiler().compile(u,t,void 0,!0);return r.template(c)}o(i,"compileInput");function s(a,u){return n||(n=i()),n.call(this,a,u)}return o(s,"ret"),s._setup=function(a){return n||(n=i()),n._setup(a)},s._child=function(a,u,c,l){return n||(n=i()),n._child(a,u,c,l)},s}o(ZC,"compile");function Bb(e,t){if(e===t)return!0;if(yo.isArray(e)&&yo.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!Bb(e[r],t[r]))return!1;return!0}}o(Bb,"argEquals");function Fb(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}o(Fb,"transformLiteralToPath")});var zb=m($p=>{var Ub="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");$p.encode=function(e){if(0<=e&&e<Ub.length)return Ub[e];throw new TypeError("Must be between 0 and 63: "+e)};$p.decode=function(e){var t=65,r=90,n=97,i=122,s=48,a=57,u=43,c=47,l=26,p=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:s<=e&&e<=a?e-s+p:e==u?62:e==c?63:-1}});var xp=m(Ep=>{var Gb=zb(),Op=5,Zb=1<<Op,Kb=Zb-1,Wb=Zb;function KC(e){return e<0?(-e<<1)+1:(e<<1)+0}o(KC,"toVLQSigned");function WC(e){var t=(e&1)===1,r=e>>1;return t?-r:r}o(WC,"fromVLQSigned");Ep.encode=o(function(t){var r="",n,i=KC(t);do n=i&Kb,i>>>=Op,i>0&&(n|=Wb),r+=Gb.encode(n);while(i>0);return r},"base64VLQ_encode");Ep.decode=o(function(t,r,n){var i=t.length,s=0,a=0,u,c;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=Gb.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));u=!!(c&Wb),c&=Kb,s=s+(c<<a),a+=Op}while(u);n.value=WC(s),n.rest=r},"base64VLQ_decode")});var Wn=m(ve=>{function YC(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}o(YC,"getArg");ve.getArg=YC;var Yb=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,QC=/^data:.+\,.+$/;function _o(e){var t=e.match(Yb);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}o(_o,"urlParse");ve.urlParse=_o;function Zn(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}o(Zn,"urlGenerate");ve.urlGenerate=Zn;function wp(e){var t=e,r=_o(e);if(r){if(!r.path)return e;t=r.path}for(var n=ve.isAbsolute(t),i=t.split(/\/+/),s,a=0,u=i.length-1;u>=0;u--)s=i[u],s==="."?i.splice(u,1):s===".."?a++:a>0&&(s===""?(i.splice(u+1,a),a=0):(i.splice(u,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Zn(r)):t}o(wp,"normalize");ve.normalize=wp;function Qb(e,t){e===""&&(e="."),t===""&&(t=".");var r=_o(t),n=_o(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Zn(r);if(r||t.match(QC))return t;if(n&&!n.host&&!n.path)return n.host=t,Zn(n);var i=t.charAt(0)==="/"?t:wp(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Zn(n)):i}o(Qb,"join");ve.join=Qb;ve.isAbsolute=function(e){return e.charAt(0)==="/"||Yb.test(e)};function JC(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}o(JC,"relative");ve.relative=JC;var Jb=function(){var e=Object.create(null);return!("__proto__"in e)}();function Xb(e){return e}o(Xb,"identity");function XC(e){return eS(e)?"$"+e:e}o(XC,"toSetString");ve.toSetString=Jb?Xb:XC;function eN(e){return eS(e)?e.slice(1):e}o(eN,"fromSetString");ve.fromSetString=Jb?Xb:eN;function eS(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}o(eS,"isProtoString");function tN(e,t,r){var n=Kn(e.source,t.source);return n!==0||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0||r)||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=e.generatedLine-t.generatedLine,n!==0)?n:Kn(e.name,t.name)}o(tN,"compareByOriginalPositions");ve.compareByOriginalPositions=tN;function rN(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=Kn(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Kn(e.name,t.name)}o(rN,"compareByGeneratedPositionsDeflated");ve.compareByGeneratedPositionsDeflated=rN;function Kn(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}o(Kn,"strcmp");function nN(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Kn(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Kn(e.name,t.name)}o(nN,"compareByGeneratedPositionsInflated");ve.compareByGeneratedPositionsInflated=nN;function iN(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}o(iN,"parseSourceMapInput");ve.parseSourceMapInput=iN;function oN(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=_o(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}t=Qb(Zn(n),t)}return wp(t)}o(oN,"computeSourceURL");ve.computeSourceURL=oN});var kp=m(tS=>{var Ap=Wn(),Ip=Object.prototype.hasOwnProperty,Zr=typeof Map<"u";function Vt(){this._array=[],this._set=Zr?new Map:Object.create(null)}o(Vt,"ArraySet");Vt.fromArray=o(function(t,r){for(var n=new Vt,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n},"ArraySet_fromArray");Vt.prototype.size=o(function(){return Zr?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");Vt.prototype.add=o(function(t,r){var n=Zr?t:Ap.toSetString(t),i=Zr?this.has(t):Ip.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(Zr?this._set.set(t,s):this._set[n]=s)},"ArraySet_add");Vt.prototype.has=o(function(t){if(Zr)return this._set.has(t);var r=Ap.toSetString(t);return Ip.call(this._set,r)},"ArraySet_has");Vt.prototype.indexOf=o(function(t){if(Zr){var r=this._set.get(t);if(r>=0)return r}else{var n=Ap.toSetString(t);if(Ip.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");Vt.prototype.at=o(function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)},"ArraySet_at");Vt.prototype.toArray=o(function(){return this._array.slice()},"ArraySet_toArray");tS.ArraySet=Vt});var iS=m(nS=>{var rS=Wn();function sN(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||rS.compareByGeneratedPositionsInflated(e,t)<=0}o(sN,"generatedPositionAfter");function ba(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(ba,"MappingList");ba.prototype.unsortedForEach=o(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");ba.prototype.add=o(function(t){sN(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");ba.prototype.toArray=o(function(){return this._sorted||(this._array.sort(rS.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");nS.MappingList=ba});var Rp=m(oS=>{var bo=xp(),X=Wn(),Sa=kp().ArraySet,aN=iS().MappingList;function We(e){e||(e={}),this._file=X.getArg(e,"file",null),this._sourceRoot=X.getArg(e,"sourceRoot",null),this._skipValidation=X.getArg(e,"skipValidation",!1),this._sources=new Sa,this._names=new Sa,this._mappings=new aN,this._sourcesContents=null}o(We,"SourceMapGenerator");We.prototype._version=3;We.fromSourceMap=o(function(t){var r=t.sourceRoot,n=new We({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=X.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s)}),t.sources.forEach(function(i){var s=i;r!==null&&(s=X.relative(r,i)),n._sources.has(s)||n._sources.add(s);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");We.prototype.addMapping=o(function(t){var r=X.getArg(t,"generated"),n=X.getArg(t,"original",null),i=X.getArg(t,"source",null),s=X.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})},"SourceMapGenerator_addMapping");We.prototype.setSourceContent=o(function(t,r){var n=t;this._sourceRoot!=null&&(n=X.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[X.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[X.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");We.prototype.applySourceMap=o(function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var s=this._sourceRoot;s!=null&&(i=X.relative(s,i));var a=new Sa,u=new Sa;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var l=t.originalPositionFor({line:c.originalLine,column:c.originalColumn});l.source!=null&&(c.source=l.source,n!=null&&(c.source=X.join(n,c.source)),s!=null&&(c.source=X.relative(s,c.source)),c.originalLine=l.line,c.originalColumn=l.column,l.name!=null&&(c.name=l.name))}var p=c.source;p!=null&&!a.has(p)&&a.add(p);var f=c.name;f!=null&&!u.has(f)&&u.add(f)},this),this._sources=a,this._names=u,t.sources.forEach(function(c){var l=t.sourceContentFor(c);l!=null&&(n!=null&&(c=X.join(n,c)),s!=null&&(c=X.relative(s,c)),this.setSourceContent(c,l))},this)},"SourceMapGenerator_applySourceMap");We.prototype._validateMapping=o(function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}},"SourceMapGenerator_validateMapping");We.prototype._serializeMappings=o(function(){for(var t=0,r=1,n=0,i=0,s=0,a=0,u="",c,l,p,f,d=this._mappings.toArray(),h=0,g=d.length;h<g;h++){if(l=d[h],c="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)c+=";",r++;else if(h>0){if(!X.compareByGeneratedPositionsInflated(l,d[h-1]))continue;c+=","}c+=bo.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),c+=bo.encode(f-a),a=f,c+=bo.encode(l.originalLine-1-i),i=l.originalLine-1,c+=bo.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),c+=bo.encode(p-s),s=p)),u+=c}return u},"SourceMapGenerator_serializeMappings");We.prototype._generateSourcesContent=o(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=X.relative(r,n));var i=X.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");We.prototype.toJSON=o(function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},"SourceMapGenerator_toJSON");We.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");oS.SourceMapGenerator=We});var sS=m(Kr=>{Kr.GREATEST_LOWER_BOUND=1;Kr.LEAST_UPPER_BOUND=2;function Tp(e,t,r,n,i,s){var a=Math.floor((t-e)/2)+e,u=i(r,n[a],!0);return u===0?a:u>0?t-a>1?Tp(a,t,r,n,i,s):s==Kr.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?Tp(e,a,r,n,i,s):s==Kr.LEAST_UPPER_BOUND?a:e<0?-1:e}o(Tp,"recursiveSearch");Kr.search=o(function(t,r,n,i){if(r.length===0)return-1;var s=Tp(-1,r.length,t,r,n,i||Kr.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s},"search")});var uS=m(aS=>{function Cp(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}o(Cp,"swap");function uN(e,t){return Math.round(e+Math.random()*(t-e))}o(uN,"randomIntInRange");function Np(e,t,r,n){if(r<n){var i=uN(r,n),s=r-1;Cp(e,i,n);for(var a=e[n],u=r;u<n;u++)t(e[u],a)<=0&&(s+=1,Cp(e,s,u));Cp(e,s+1,u);var c=s+1;Np(e,t,r,c-1),Np(e,t,c+1,n)}}o(Np,"doQuickSort");aS.quickSort=function(e,t){Np(e,t,0,e.length-1)}});var lS=m(Pa=>{var P=Wn(),qp=sS(),Yn=kp().ArraySet,cN=xp(),So=uS().quickSort;function U(e,t){var r=e;return typeof e=="string"&&(r=P.parseSourceMapInput(e)),r.sections!=null?new lt(r,t):new ce(r,t)}o(U,"SourceMapConsumer");U.fromSourceMap=function(e,t){return ce.fromSourceMap(e,t)};U.prototype._version=3;U.prototype.__generatedMappings=null;Object.defineProperty(U.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});U.prototype.__originalMappings=null;Object.defineProperty(U.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});U.prototype._charIsMappingSeparator=o(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");U.prototype._parseMappings=o(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");U.GENERATED_ORDER=1;U.ORIGINAL_ORDER=2;U.GREATEST_LOWER_BOUND=1;U.LEAST_UPPER_BOUND=2;U.prototype.eachMapping=o(function(t,r,n){var i=r||null,s=n||U.GENERATED_ORDER,a;switch(s){case U.GENERATED_ORDER:a=this._generatedMappings;break;case U.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var u=this.sourceRoot;a.map(function(c){var l=c.source===null?null:this._sources.at(c.source);return l=P.computeSourceURL(u,l,this._sourceMapURL),{source:l,generatedLine:c.generatedLine,generatedColumn:c.generatedColumn,originalLine:c.originalLine,originalColumn:c.originalColumn,name:c.name===null?null:this._names.at(c.name)}},this).forEach(t,i)},"SourceMapConsumer_eachMapping");U.prototype.allGeneratedPositionsFor=o(function(t){var r=P.getArg(t,"line"),n={source:P.getArg(t,"source"),originalLine:r,originalColumn:P.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",P.compareByOriginalPositions,qp.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var u=a.originalLine;a&&a.originalLine===u;)i.push({line:P.getArg(a,"generatedLine",null),column:P.getArg(a,"generatedColumn",null),lastColumn:P.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var c=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==c;)i.push({line:P.getArg(a,"generatedLine",null),column:P.getArg(a,"generatedColumn",null),lastColumn:P.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i},"SourceMapConsumer_allGeneratedPositionsFor");Pa.SourceMapConsumer=U;function ce(e,t){var r=e;typeof e=="string"&&(r=P.parseSourceMapInput(e));var n=P.getArg(r,"version"),i=P.getArg(r,"sources"),s=P.getArg(r,"names",[]),a=P.getArg(r,"sourceRoot",null),u=P.getArg(r,"sourcesContent",null),c=P.getArg(r,"mappings"),l=P.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=P.normalize(a)),i=i.map(String).map(P.normalize).map(function(p){return a&&P.isAbsolute(a)&&P.isAbsolute(p)?P.relative(a,p):p}),this._names=Yn.fromArray(s.map(String),!0),this._sources=Yn.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(p){return P.computeSourceURL(a,p,t)}),this.sourceRoot=a,this.sourcesContent=u,this._mappings=c,this._sourceMapURL=t,this.file=l}o(ce,"BasicSourceMapConsumer");ce.prototype=Object.create(U.prototype);ce.prototype.consumer=U;ce.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=P.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};ce.fromSourceMap=o(function(t,r){var n=Object.create(ce.prototype),i=n._names=Yn.fromArray(t._names.toArray(),!0),s=n._sources=Yn.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(h){return P.computeSourceURL(n.sourceRoot,h,r)});for(var a=t._mappings.toArray().slice(),u=n.__generatedMappings=[],c=n.__originalMappings=[],l=0,p=a.length;l<p;l++){var f=a[l],d=new cS;d.generatedLine=f.generatedLine,d.generatedColumn=f.generatedColumn,f.source&&(d.source=s.indexOf(f.source),d.originalLine=f.originalLine,d.originalColumn=f.originalColumn,f.name&&(d.name=i.indexOf(f.name)),c.push(d)),u.push(d)}return So(n.__originalMappings,P.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");ce.prototype._version=3;Object.defineProperty(ce.prototype,"sources",{get:o(function(){return this._absoluteSources.slice()},"get")});function cS(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o(cS,"Mapping");ce.prototype._parseMappings=o(function(t,r){for(var n=1,i=0,s=0,a=0,u=0,c=0,l=t.length,p=0,f={},d={},h=[],g=[],y,v,_,b,S;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(y=new cS,y.generatedLine=n,b=p;b<l&&!this._charIsMappingSeparator(t,b);b++);if(v=t.slice(p,b),_=f[v],_)p+=v.length;else{for(_=[];p<b;)cN.decode(t,p,d),S=d.value,p=d.rest,_.push(S);if(_.length===2)throw new Error("Found a source, but no line and column");if(_.length===3)throw new Error("Found a source and line, but no column");f[v]=_}y.generatedColumn=i+_[0],i=y.generatedColumn,_.length>1&&(y.source=u+_[1],u+=_[1],y.originalLine=s+_[2],s=y.originalLine,y.originalLine+=1,y.originalColumn=a+_[3],a=y.originalColumn,_.length>4&&(y.name=c+_[4],c+=_[4])),g.push(y),typeof y.originalLine=="number"&&h.push(y)}So(g,P.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,So(h,P.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");ce.prototype._findMapping=o(function(t,r,n,i,s,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return qp.search(t,r,s,a)},"SourceMapConsumer_findMapping");ce.prototype.computeColumnSpans=o(function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}},"SourceMapConsumer_computeColumnSpans");ce.prototype.originalPositionFor=o(function(t){var r={generatedLine:P.getArg(t,"line"),generatedColumn:P.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",P.compareByGeneratedPositionsDeflated,P.getArg(t,"bias",U.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=P.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=P.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=P.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:P.getArg(i,"originalLine",null),column:P.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");ce.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");ce.prototype.sourceContentFor=o(function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=P.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=P.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");ce.prototype.generatedPositionFor=o(function(t){var r=P.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:P.getArg(t,"line"),originalColumn:P.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",P.compareByOriginalPositions,P.getArg(t,"bias",U.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:P.getArg(s,"generatedLine",null),column:P.getArg(s,"generatedColumn",null),lastColumn:P.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");Pa.BasicSourceMapConsumer=ce;function lt(e,t){var r=e;typeof e=="string"&&(r=P.parseSourceMapInput(e));var n=P.getArg(r,"version"),i=P.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Yn,this._names=new Yn;var s={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var u=P.getArg(a,"offset"),c=P.getArg(u,"line"),l=P.getArg(u,"column");if(c<s.line||c===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=u,{generatedOffset:{generatedLine:c+1,generatedColumn:l+1},consumer:new U(P.getArg(a,"map"),t)}})}o(lt,"IndexedSourceMapConsumer");lt.prototype=Object.create(U.prototype);lt.prototype.constructor=U;lt.prototype._version=3;Object.defineProperty(lt.prototype,"sources",{get:o(function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e},"get")});lt.prototype.originalPositionFor=o(function(t){var r={generatedLine:P.getArg(t,"line"),generatedColumn:P.getArg(t,"column")},n=qp.search(r,this._sections,function(s,a){var u=s.generatedLine-a.generatedOffset.generatedLine;return u||s.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}},"IndexedSourceMapConsumer_originalPositionFor");lt.prototype.hasContentsOfAllSources=o(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");lt.prototype.sourceContentFor=o(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");lt.prototype.generatedPositionFor=o(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(P.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");lt.prototype._parseMappings=o(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var u=s[a],c=i.consumer._sources.at(u.source);c=P.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var l=null;u.name&&(l=i.consumer._names.at(u.name),this._names.add(l),l=this._names.indexOf(l));var p={source:c,generatedLine:u.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(i.generatedOffset.generatedLine===u.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:l};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}So(this.__generatedMappings,P.compareByGeneratedPositionsDeflated),So(this.__originalMappings,P.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");Pa.IndexedSourceMapConsumer=lt});var pS=m(fS=>{var lN=Rp().SourceMapGenerator,$a=Wn(),fN=/(\r?\n)/,pN=10,Qn="$$$isSourceNode$$$";function je(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=i??null,this[Qn]=!0,n!=null&&this.add(n)}o(je,"SourceNode");je.fromStringWithSourceMap=o(function(t,r,n){var i=new je,s=t.split(fN),a=0,u=o(function(){var d=g(),h=g()||"";return d+h;function g(){return a<s.length?s[a++]:void 0}},"shiftNextLine"),c=1,l=0,p=null;return r.eachMapping(function(d){if(p!==null)if(c<d.generatedLine)f(p,u()),c++,l=0;else{var h=s[a]||"",g=h.substr(0,d.generatedColumn-l);s[a]=h.substr(d.generatedColumn-l),l=d.generatedColumn,f(p,g),p=d;return}for(;c<d.generatedLine;)i.add(u()),c++;if(l<d.generatedColumn){var h=s[a]||"";i.add(h.substr(0,d.generatedColumn)),s[a]=h.substr(d.generatedColumn),l=d.generatedColumn}p=d},this),a<s.length&&(p&&f(p,u()),i.add(s.splice(a).join(""))),r.sources.forEach(function(d){var h=r.sourceContentFor(d);h!=null&&(n!=null&&(d=$a.join(n,d)),i.setSourceContent(d,h))}),i;function f(d,h){if(d===null||d.source===void 0)i.add(h);else{var g=n?$a.join(n,d.source):d.source;i.add(new je(d.originalLine,d.originalColumn,g,h,d.name))}}o(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");je.prototype.add=o(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Qn]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},"SourceNode_add");je.prototype.prepend=o(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Qn]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},"SourceNode_prepend");je.prototype.walk=o(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Qn]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");je.prototype.join=o(function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this},"SourceNode_join");je.prototype.replaceRight=o(function(t,r){var n=this.children[this.children.length-1];return n[Qn]?n.replaceRight(t,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(t,r):this.children.push("".replace(t,r)),this},"SourceNode_replaceRight");je.prototype.setSourceContent=o(function(t,r){this.sourceContents[$a.toSetString(t)]=r},"SourceNode_setSourceContent");je.prototype.walkSourceContents=o(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Qn]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t($a.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");je.prototype.toString=o(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");je.prototype.toStringWithSourceMap=o(function(t){var r={code:"",line:1,column:0},n=new lN(t),i=!1,s=null,a=null,u=null,c=null;return this.walk(function(l,p){r.code+=l,p.source!==null&&p.line!==null&&p.column!==null?((s!==p.source||a!==p.line||u!==p.column||c!==p.name)&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name}),s=p.source,a=p.line,u=p.column,c=p.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var f=0,d=l.length;f<d;f++)l.charCodeAt(f)===pN?(r.line++,r.column=0,f+1===d?(s=null,i=!1):i&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name})):r.column++}),this.walkSourceContents(function(l,p){n.setSourceContent(l,p)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");fS.SourceNode=je});var dS=m(Oa=>{Oa.SourceMapGenerator=Rp().SourceMapGenerator;Oa.SourceMapConsumer=lS().SourceMapConsumer;Oa.SourceNode=pS().SourceNode});var yS=m((Ea,gS)=>{"use strict";Ea.__esModule=!0;var Mp=Oe(),Wr=void 0;try{(typeof define!="function"||!define.amd)&&(hS=dS(),Wr=hS.SourceNode)}catch{}var hS;Wr||(Wr=o(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),Wr.prototype={add:o(function(t){Mp.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:o(function(t){Mp.isArray(t)&&(t=t.join("")),this.src=t+this.src},"prepend"),toStringWithSourceMap:o(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:o(function(){return this.src},"toString")});function jp(e,t,r){if(Mp.isArray(e)){for(var n=[],i=0,s=e.length;i<s;i++)n.push(t.wrap(e[i],r));return n}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}o(jp,"castChunk");function mS(e){this.srcFile=e,this.source=[]}o(mS,"CodeGen");mS.prototype={isEmpty:o(function(){return!this.source.length},"isEmpty"),prepend:o(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:o(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:o(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
|
|
59
|
-
`])}),t},"merge"),each:
|
|
56
|
+
Expecting `+Jr.join(", ")+", got '"+(this.terminals_[E]||E)+"'":ka="Parse error on line "+(f+1)+": Unexpected "+(E==1?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(ka,{text:this.lexer.match,token:this.terminals_[E]||E,line:this.lexer.yylineno,loc:v,expected:Jr})}}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+E);switch(j[0]){case 1:a.push(E),u.push(this.lexer.yytext),c.push(this.lexer.yylloc),a.push(j[1]),E=null,$?(E=$,$=null):(d=this.lexer.yyleng,p=this.lexer.yytext,f=this.lexer.yylineno,v=this.lexer.yylloc,h>0&&h--);break;case 2:if(Ee=this.productions_[j[1]][1],le.$=u[u.length-Ee],le._$={first_line:c[c.length-(Ee||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Ee||1)].first_column,last_column:c[c.length-1].last_column},_&&(le._$.range=[c[c.length-(Ee||1)].range[0],c[c.length-1].range[1]]),oe=this.performAction.call(le,p,d,f,this.yy,j[1],u,c),typeof oe<"u")return oe;Ee&&(a=a.slice(0,-1*Ee*2),u=u.slice(0,-1*Ee),c=c.slice(0,-1*Ee)),a.push(this.productions_[j[1]][0]),u.push(le.$),c.push(le._$),Bt=l[a[a.length-2]][a[a.length-1]],a.push(Bt);break;case 3:return!0}}return!0},"parse")},t=function(){var n={EOF:1,parseError:s(function(o,a){if(this.yy.parser)this.yy.parser.parseError(o,a);else throw new Error(o)},"parseError"),setInput:s(function(o){return this._input=o,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:s(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var a=o.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),o},"input"),unput:s(function(o){var a=o.length,u=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===c.length?this.yylloc.first_column:0)+c[c.length-u.length].length-u[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-a]),this},"unput"),more:s(function(){return this._more=!0,this},"more"),less:s(function(o){this.unput(this.match.slice(o))},"less"),pastInput:s(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var o=this.pastInput(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
57
|
+
`+a+"^"},"showPosition"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,a,u,c,l,p;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),d=0;d<f.length&&(u=this._input.match(this.rules[f[d]]),!(u&&(!a||u[0].length>a[0].length)&&(a=u,c=d,!this.options.flex)));d++);return a?(p=a[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],o=this.performAction.call(this,this.yy,this,f[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o||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: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,u,c){function l(f,d){return a.yytext=a.yytext.substring(f,a.yyleng-d+f)}s(l,"strip");var p=c;switch(u){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();e.lexer=t;function r(){this.yy={}}return s(r,"Parser"),r.prototype=e,e.Parser=r,new r}();pa.default=gC;Ab.exports=pa.default});var ga=m((ma,Tb)=>{"use strict";ma.__esModule=!0;function yC(e){return e&&e.__esModule?e:{default:e}}s(yC,"_interopRequireDefault");var vC=Ze(),mp=yC(vC);function da(){this.parents=[]}s(da,"Visitor");da.prototype={constructor:da,mutating:!1,acceptKey:s(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!da.prototype[n.type])throw new mp.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 mp.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 mp.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:ha,Decorator:ha,BlockStatement:kb,DecoratorBlock:kb,PartialStatement:Rb,PartialBlockStatement:s(function(t){Rb.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:s(function(){},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:ha,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 ha(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(ha,"visitSubExpression");function kb(e){ha.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}s(kb,"visitBlock");function Rb(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(Rb,"visitPartial");ma.default=da;Tb.exports=ma.default});var Nb=m((ya,Cb)=>{"use strict";ya.__esModule=!0;function _C(e){return e&&e.__esModule?e:{default:e}}s(_C,"_interopRequireDefault");var bC=ga(),SC=_C(bC);function kt(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}s(kt,"WhitespaceControl");kt.prototype=new SC.default;kt.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],u=this.accept(a);if(u){var c=gp(n,i,r),l=yp(n,i,r),p=u.openStandalone&&c,f=u.closeStandalone&&l,d=u.inlineStandalone&&c&&l;u.close&&Gr(n,i,!0),u.open&&gr(n,i,!0),t&&d&&(Gr(n,i),gr(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(Gr((a.program||a.inverse).body),gr(n,i)),t&&f&&(Gr(n,i),gr((a.inverse||a.program).body))}}return e};kt.prototype.BlockStatement=kt.prototype.DecoratorBlock=kt.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var o={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:yp(t.body),closeStandalone:gp((n||t).body)};if(e.openStrip.close&&Gr(t.body,null,!0),r){var a=e.inverseStrip;a.open&&gr(t.body,null,!0),a.close&&Gr(n.body,null,!0),e.closeStrip.open&&gr(i.body,null,!0),!this.options.ignoreStandalone&&gp(t.body)&&yp(n.body)&&(gr(t.body),Gr(n.body))}else e.closeStrip.open&&gr(t.body,null,!0);return o};kt.prototype.Decorator=kt.prototype.MustacheStatement=function(e){return e.strip};kt.prototype.PartialStatement=kt.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function gp(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(gp,"isPrevWhitespace");function yp(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(yp,"isNextWhitespace");function Gr(e,t,r){var n=e[t==null?0:t+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}s(Gr,"omitRight");function gr(e,t,r){var n=e[t==null?e.length-1:t-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}s(gr,"omitLeft");ya.default=kt;Cb.exports=ya.default});var qb=m(Ke=>{"use strict";Ke.__esModule=!0;Ke.SourceLocation=OC;Ke.id=EC;Ke.stripFlags=xC;Ke.stripComment=wC;Ke.preparePath=AC;Ke.prepareMustache=IC;Ke.prepareRawBlock=kC;Ke.prepareBlock=RC;Ke.prepareProgram=TC;Ke.preparePartialBlock=CC;function PC(e){return e&&e.__esModule?e:{default:e}}s(PC,"_interopRequireDefault");var $C=Ze(),vp=PC($C);function _p(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new vp.default(e.path.original+" doesn't match "+t,r)}}s(_p,"validateClose");function OC(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(OC,"SourceLocation");function EC(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}s(EC,"id");function xC(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}s(xC,"stripFlags");function wC(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}s(wC,"stripComment");function AC(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],o=0,a=0,u=t.length;a<u;a++){var c=t[a].part,l=t[a].original!==c;if(n+=(t[a].separator||"")+c,!l&&(c===".."||c==="."||c==="this")){if(i.length>0)throw new vp.default("Invalid path: "+n,{loc:r});c===".."&&o++}else i.push(c)}return{type:"PathExpression",data:e,depth:o,parts:i,original:n,loc:r}}s(AC,"preparePath");function IC(e,t,r,n,i,o){var a=n.charAt(3)||n.charAt(2),u=a!=="{"&&a!=="&",c=/\*/.test(n);return{type:c?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:u,strip:i,loc:this.locInfo(o)}}s(IC,"prepareMustache");function kC(e,t,r,n){_p(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(kC,"prepareRawBlock");function RC(e,t,r,n,i,o){n&&n.path&&_p(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var u=void 0,c=void 0;if(r){if(a)throw new vp.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),c=r.strip,u=r.program}return i&&(i=u,u=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:u,openStrip:e.strip,inverseStrip:c,closeStrip:n&&n.strip,loc:this.locInfo(o)}}s(RC,"prepareBlock");function TC(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(TC,"prepareProgram");function CC(e,t,r,n){return _p(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(CC,"preparePartialBlock")});var Db=m(po=>{"use strict";po.__esModule=!0;po.parseWithoutProcessing=Mb;po.parse=VC;function NC(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(NC,"_interopRequireWildcard");function jb(e){return e&&e.__esModule?e:{default:e}}s(jb,"_interopRequireDefault");var qC=Ib(),bp=jb(qC),jC=Nb(),MC=jb(jC),DC=qb(),LC=NC(DC),FC=Oe();po.parser=bp.default;var va={};FC.extend(va,LC);function Mb(e,t){if(e.type==="Program")return e;bp.default.yy=va,va.locInfo=function(n){return new va.SourceLocation(t&&t.srcName,n)};var r=bp.default.parse(e);return r}s(Mb,"parseWithoutProcessing");function VC(e,t){var r=Mb(e,t),n=new MC.default(t);return n.accept(r)}s(VC,"parse")});var Bb=m(yo=>{"use strict";yo.__esModule=!0;yo.Compiler=Sp;yo.precompile=zC;yo.compile=GC;function Fb(e){return e&&e.__esModule?e:{default:e}}s(Fb,"_interopRequireDefault");var BC=Ze(),mo=Fb(BC),go=Oe(),HC=hp(),ho=Fb(HC),UC=[].slice;function Sp(){}s(Sp,"Compiler");Sp.prototype={compiler:Sp,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||!Vb(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=go.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 mo.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){Lb(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 mo.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){Lb(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 mo.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,ho.default.helpers.simpleId(o))}},"helperSexpr"),PathExpression:s(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=ho.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:UC.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:s(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:s(function(t){var r=ho.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&ho.default.helpers.helperExpression(t),o=!n&&(i||r);if(o&&!i){var a=t.path.parts[0],u=this.options;u.knownHelpers[a]?i=!0:u.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&&!ho.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&&go.indexOf(i,t);if(i&&o>=0)return[r,o]}},"blockParamIndex")};function zC(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new mo.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(zC,"precompile");function GC(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new mo.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=go.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function i(){var a=r.parse(e,t),u=new r.Compiler().compile(a,t),c=new r.JavaScriptCompiler().compile(u,t,void 0,!0);return r.template(c)}s(i,"compileInput");function o(a,u){return n||(n=i()),n.call(this,a,u)}return s(o,"ret"),o._setup=function(a){return n||(n=i()),n._setup(a)},o._child=function(a,u,c,l){return n||(n=i()),n._child(a,u,c,l)},o}s(GC,"compile");function Vb(e,t){if(e===t)return!0;if(go.isArray(e)&&go.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!Vb(e[r],t[r]))return!1;return!0}}s(Vb,"argEquals");function Lb(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(Lb,"transformLiteralToPath")});var Ub=m(Pp=>{var Hb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Pp.encode=function(e){if(0<=e&&e<Hb.length)return Hb[e];throw new TypeError("Must be between 0 and 63: "+e)};Pp.decode=function(e){var t=65,r=90,n=97,i=122,o=48,a=57,u=43,c=47,l=26,p=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:o<=e&&e<=a?e-o+p:e==u?62:e==c?63:-1}});var Ep=m(Op=>{var zb=Ub(),$p=5,Gb=1<<$p,Zb=Gb-1,Kb=Gb;function ZC(e){return e<0?(-e<<1)+1:(e<<1)+0}s(ZC,"toVLQSigned");function KC(e){var t=(e&1)===1,r=e>>1;return t?-r:r}s(KC,"fromVLQSigned");Op.encode=s(function(t){var r="",n,i=ZC(t);do n=i&Zb,i>>>=$p,i>0&&(n|=Kb),r+=zb.encode(n);while(i>0);return r},"base64VLQ_encode");Op.decode=s(function(t,r,n){var i=t.length,o=0,a=0,u,c;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=zb.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));u=!!(c&Kb),c&=Zb,o=o+(c<<a),a+=$p}while(u);n.value=KC(o),n.rest=r},"base64VLQ_decode")});var Wn=m(ve=>{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");ve.getArg=WC;var Wb=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,YC=/^data:.+\,.+$/;function vo(e){var t=e.match(Wb);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}s(vo,"urlParse");ve.urlParse=vo;function Zn(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}s(Zn,"urlGenerate");ve.urlGenerate=Zn;function xp(e){var t=e,r=vo(e);if(r){if(!r.path)return e;t=r.path}for(var n=ve.isAbsolute(t),i=t.split(/\/+/),o,a=0,u=i.length-1;u>=0;u--)o=i[u],o==="."?i.splice(u,1):o===".."?a++:a>0&&(o===""?(i.splice(u+1,a),a=0):(i.splice(u,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Zn(r)):t}s(xp,"normalize");ve.normalize=xp;function Yb(e,t){e===""&&(e="."),t===""&&(t=".");var r=vo(t),n=vo(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Zn(r);if(r||t.match(YC))return t;if(n&&!n.host&&!n.path)return n.host=t,Zn(n);var i=t.charAt(0)==="/"?t:xp(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Zn(n)):i}s(Yb,"join");ve.join=Yb;ve.isAbsolute=function(e){return e.charAt(0)==="/"||Wb.test(e)};function QC(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(QC,"relative");ve.relative=QC;var Qb=function(){var e=Object.create(null);return!("__proto__"in e)}();function Jb(e){return e}s(Jb,"identity");function JC(e){return Xb(e)?"$"+e:e}s(JC,"toSetString");ve.toSetString=Qb?Jb:JC;function XC(e){return Xb(e)?e.slice(1):e}s(XC,"fromSetString");ve.fromSetString=Qb?Jb:XC;function Xb(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(Xb,"isProtoString");function eN(e,t,r){var n=Kn(e.source,t.source);return n!==0||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0||r)||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=e.generatedLine-t.generatedLine,n!==0)?n:Kn(e.name,t.name)}s(eN,"compareByOriginalPositions");ve.compareByOriginalPositions=eN;function tN(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=Kn(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Kn(e.name,t.name)}s(tN,"compareByGeneratedPositionsDeflated");ve.compareByGeneratedPositionsDeflated=tN;function Kn(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}s(Kn,"strcmp");function rN(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Kn(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Kn(e.name,t.name)}s(rN,"compareByGeneratedPositionsInflated");ve.compareByGeneratedPositionsInflated=rN;function nN(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}s(nN,"parseSourceMapInput");ve.parseSourceMapInput=nN;function iN(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=vo(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=Yb(Zn(n),t)}return xp(t)}s(iN,"computeSourceURL");ve.computeSourceURL=iN});var Ip=m(eS=>{var wp=Wn(),Ap=Object.prototype.hasOwnProperty,Zr=typeof Map<"u";function Vt(){this._array=[],this._set=Zr?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 Zr?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");Vt.prototype.add=s(function(t,r){var n=Zr?t:wp.toSetString(t),i=Zr?this.has(t):Ap.call(this._set,n),o=this._array.length;(!i||r)&&this._array.push(t),i||(Zr?this._set.set(t,o):this._set[n]=o)},"ArraySet_add");Vt.prototype.has=s(function(t){if(Zr)return this._set.has(t);var r=wp.toSetString(t);return Ap.call(this._set,r)},"ArraySet_has");Vt.prototype.indexOf=s(function(t){if(Zr){var r=this._set.get(t);if(r>=0)return r}else{var n=wp.toSetString(t);if(Ap.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");eS.ArraySet=Vt});var nS=m(rS=>{var tS=Wn();function oN(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,o=t.generatedColumn;return n>r||n==r&&o>=i||tS.compareByGeneratedPositionsInflated(e,t)<=0}s(oN,"generatedPositionAfter");function _a(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}s(_a,"MappingList");_a.prototype.unsortedForEach=s(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");_a.prototype.add=s(function(t){oN(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");_a.prototype.toArray=s(function(){return this._sorted||(this._array.sort(tS.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");rS.MappingList=_a});var kp=m(iS=>{var _o=Ep(),X=Wn(),ba=Ip().ArraySet,sN=nS().MappingList;function We(e){e||(e={}),this._file=X.getArg(e,"file",null),this._sourceRoot=X.getArg(e,"sourceRoot",null),this._skipValidation=X.getArg(e,"skipValidation",!1),this._sources=new ba,this._names=new ba,this._mappings=new sN,this._sourcesContents=null}s(We,"SourceMapGenerator");We.prototype._version=3;We.fromSourceMap=s(function(t){var r=t.sourceRoot,n=new We({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=X.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=X.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");We.prototype.addMapping=s(function(t){var r=X.getArg(t,"generated"),n=X.getArg(t,"original",null),i=X.getArg(t,"source",null),o=X.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");We.prototype.setSourceContent=s(function(t,r){var n=t;this._sourceRoot!=null&&(n=X.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[X.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[X.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");We.prototype.applySourceMap=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=X.relative(o,i));var a=new ba,u=new ba;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var l=t.originalPositionFor({line:c.originalLine,column:c.originalColumn});l.source!=null&&(c.source=l.source,n!=null&&(c.source=X.join(n,c.source)),o!=null&&(c.source=X.relative(o,c.source)),c.originalLine=l.line,c.originalColumn=l.column,l.name!=null&&(c.name=l.name))}var p=c.source;p!=null&&!a.has(p)&&a.add(p);var f=c.name;f!=null&&!u.has(f)&&u.add(f)},this),this._sources=a,this._names=u,t.sources.forEach(function(c){var l=t.sourceContentFor(c);l!=null&&(n!=null&&(c=X.join(n,c)),o!=null&&(c=X.relative(o,c)),this.setSourceContent(c,l))},this)},"SourceMapGenerator_applySourceMap");We.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");We.prototype._serializeMappings=s(function(){for(var t=0,r=1,n=0,i=0,o=0,a=0,u="",c,l,p,f,d=this._mappings.toArray(),h=0,g=d.length;h<g;h++){if(l=d[h],c="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)c+=";",r++;else if(h>0){if(!X.compareByGeneratedPositionsInflated(l,d[h-1]))continue;c+=","}c+=_o.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),c+=_o.encode(f-a),a=f,c+=_o.encode(l.originalLine-1-i),i=l.originalLine-1,c+=_o.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),c+=_o.encode(p-o),o=p)),u+=c}return u},"SourceMapGenerator_serializeMappings");We.prototype._generateSourcesContent=s(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=X.relative(r,n));var i=X.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");We.prototype.toJSON=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");We.prototype.toString=s(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");iS.SourceMapGenerator=We});var oS=m(Kr=>{Kr.GREATEST_LOWER_BOUND=1;Kr.LEAST_UPPER_BOUND=2;function Rp(e,t,r,n,i,o){var a=Math.floor((t-e)/2)+e,u=i(r,n[a],!0);return u===0?a:u>0?t-a>1?Rp(a,t,r,n,i,o):o==Kr.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?Rp(e,a,r,n,i,o):o==Kr.LEAST_UPPER_BOUND?a:e<0?-1:e}s(Rp,"recursiveSearch");Kr.search=s(function(t,r,n,i){if(r.length===0)return-1;var o=Rp(-1,r.length,t,r,n,i||Kr.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 aS=m(sS=>{function Tp(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}s(Tp,"swap");function aN(e,t){return Math.round(e+Math.random()*(t-e))}s(aN,"randomIntInRange");function Cp(e,t,r,n){if(r<n){var i=aN(r,n),o=r-1;Tp(e,i,n);for(var a=e[n],u=r;u<n;u++)t(e[u],a)<=0&&(o+=1,Tp(e,o,u));Tp(e,o+1,u);var c=o+1;Cp(e,t,r,c-1),Cp(e,t,c+1,n)}}s(Cp,"doQuickSort");sS.quickSort=function(e,t){Cp(e,t,0,e.length-1)}});var cS=m(Sa=>{var P=Wn(),Np=oS(),Yn=Ip().ArraySet,uN=Ep(),bo=aS().quickSort;function U(e,t){var r=e;return typeof e=="string"&&(r=P.parseSourceMapInput(e)),r.sections!=null?new lt(r,t):new ce(r,t)}s(U,"SourceMapConsumer");U.fromSourceMap=function(e,t){return ce.fromSourceMap(e,t)};U.prototype._version=3;U.prototype.__generatedMappings=null;Object.defineProperty(U.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get: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 u=this.sourceRoot;a.map(function(c){var l=c.source===null?null:this._sources.at(c.source);return l=P.computeSourceURL(u,l,this._sourceMapURL),{source:l,generatedLine:c.generatedLine,generatedColumn:c.generatedColumn,originalLine:c.originalLine,originalColumn:c.originalColumn,name:c.name===null?null:this._names.at(c.name)}},this).forEach(t,i)},"SourceMapConsumer_eachMapping");U.prototype.allGeneratedPositionsFor=s(function(t){var r=P.getArg(t,"line"),n={source:P.getArg(t,"source"),originalLine:r,originalColumn:P.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",P.compareByOriginalPositions,Np.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(t.column===void 0)for(var u=a.originalLine;a&&a.originalLine===u;)i.push({line:P.getArg(a,"generatedLine",null),column:P.getArg(a,"generatedColumn",null),lastColumn:P.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o];else for(var c=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==c;)i.push({line:P.getArg(a,"generatedLine",null),column:P.getArg(a,"generatedColumn",null),lastColumn:P.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o]}return i},"SourceMapConsumer_allGeneratedPositionsFor");Sa.SourceMapConsumer=U;function ce(e,t){var r=e;typeof e=="string"&&(r=P.parseSourceMapInput(e));var n=P.getArg(r,"version"),i=P.getArg(r,"sources"),o=P.getArg(r,"names",[]),a=P.getArg(r,"sourceRoot",null),u=P.getArg(r,"sourcesContent",null),c=P.getArg(r,"mappings"),l=P.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=P.normalize(a)),i=i.map(String).map(P.normalize).map(function(p){return a&&P.isAbsolute(a)&&P.isAbsolute(p)?P.relative(a,p):p}),this._names=Yn.fromArray(o.map(String),!0),this._sources=Yn.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(p){return P.computeSourceURL(a,p,t)}),this.sourceRoot=a,this.sourcesContent=u,this._mappings=c,this._sourceMapURL=t,this.file=l}s(ce,"BasicSourceMapConsumer");ce.prototype=Object.create(U.prototype);ce.prototype.consumer=U;ce.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=P.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};ce.fromSourceMap=s(function(t,r){var n=Object.create(ce.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(h){return P.computeSourceURL(n.sourceRoot,h,r)});for(var a=t._mappings.toArray().slice(),u=n.__generatedMappings=[],c=n.__originalMappings=[],l=0,p=a.length;l<p;l++){var f=a[l],d=new uS;d.generatedLine=f.generatedLine,d.generatedColumn=f.generatedColumn,f.source&&(d.source=o.indexOf(f.source),d.originalLine=f.originalLine,d.originalColumn=f.originalColumn,f.name&&(d.name=i.indexOf(f.name)),c.push(d)),u.push(d)}return bo(n.__originalMappings,P.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");ce.prototype._version=3;Object.defineProperty(ce.prototype,"sources",{get:s(function(){return this._absoluteSources.slice()},"get")});function uS(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s(uS,"Mapping");ce.prototype._parseMappings=s(function(t,r){for(var n=1,i=0,o=0,a=0,u=0,c=0,l=t.length,p=0,f={},d={},h=[],g=[],y,v,_,b,S;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(y=new uS,y.generatedLine=n,b=p;b<l&&!this._charIsMappingSeparator(t,b);b++);if(v=t.slice(p,b),_=f[v],_)p+=v.length;else{for(_=[];p<b;)uN.decode(t,p,d),S=d.value,p=d.rest,_.push(S);if(_.length===2)throw new Error("Found a source, but no line and column");if(_.length===3)throw new Error("Found a source and line, but no column");f[v]=_}y.generatedColumn=i+_[0],i=y.generatedColumn,_.length>1&&(y.source=u+_[1],u+=_[1],y.originalLine=o+_[2],o=y.originalLine,y.originalLine+=1,y.originalColumn=a+_[3],a=y.originalColumn,_.length>4&&(y.name=c+_[4],c+=_[4])),g.push(y),typeof y.originalLine=="number"&&h.push(y)}bo(g,P.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,bo(h,P.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");ce.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 Np.search(t,r,o,a)},"SourceMapConsumer_findMapping");ce.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");ce.prototype.originalPositionFor=s(function(t){var r={generatedLine:P.getArg(t,"line"),generatedColumn:P.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",P.compareByGeneratedPositionsDeflated,P.getArg(t,"bias",U.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var o=P.getArg(i,"source",null);o!==null&&(o=this._sources.at(o),o=P.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var a=P.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:o,line:P.getArg(i,"originalLine",null),column:P.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");ce.prototype.hasContentsOfAllSources=s(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");ce.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=P.relative(this.sourceRoot,i));var o;if(this.sourceRoot!=null&&(o=P.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");ce.prototype.generatedPositionFor=s(function(t){var r=P.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:P.getArg(t,"line"),originalColumn:P.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",P.compareByOriginalPositions,P.getArg(t,"bias",U.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:P.getArg(o,"generatedLine",null),column:P.getArg(o,"generatedColumn",null),lastColumn:P.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");Sa.BasicSourceMapConsumer=ce;function lt(e,t){var r=e;typeof e=="string"&&(r=P.parseSourceMapInput(e));var n=P.getArg(r,"version"),i=P.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Yn,this._names=new Yn;var 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 u=P.getArg(a,"offset"),c=P.getArg(u,"line"),l=P.getArg(u,"column");if(c<o.line||c===o.line&&l<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=u,{generatedOffset:{generatedLine:c+1,generatedColumn:l+1},consumer:new U(P.getArg(a,"map"),t)}})}s(lt,"IndexedSourceMapConsumer");lt.prototype=Object.create(U.prototype);lt.prototype.constructor=U;lt.prototype._version=3;Object.defineProperty(lt.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")});lt.prototype.originalPositionFor=s(function(t){var r={generatedLine:P.getArg(t,"line"),generatedColumn:P.getArg(t,"column")},n=Np.search(r,this._sections,function(o,a){var u=o.generatedLine-a.generatedOffset.generatedLine;return u||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");lt.prototype.hasContentsOfAllSources=s(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");lt.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");lt.prototype.generatedPositionFor=s(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(P.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var 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");lt.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 u=o[a],c=i.consumer._sources.at(u.source);c=P.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var l=null;u.name&&(l=i.consumer._names.at(u.name),this._names.add(l),l=this._names.indexOf(l));var p={source:c,generatedLine:u.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(i.generatedOffset.generatedLine===u.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:l};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}bo(this.__generatedMappings,P.compareByGeneratedPositionsDeflated),bo(this.__originalMappings,P.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");Sa.IndexedSourceMapConsumer=lt});var fS=m(lS=>{var cN=kp().SourceMapGenerator,Pa=Wn(),lN=/(\r?\n)/,fN=10,Qn="$$$isSourceNode$$$";function je(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=i??null,this[Qn]=!0,n!=null&&this.add(n)}s(je,"SourceNode");je.fromStringWithSourceMap=s(function(t,r,n){var i=new je,o=t.split(lN),a=0,u=s(function(){var d=g(),h=g()||"";return d+h;function g(){return a<o.length?o[a++]:void 0}},"shiftNextLine"),c=1,l=0,p=null;return r.eachMapping(function(d){if(p!==null)if(c<d.generatedLine)f(p,u()),c++,l=0;else{var h=o[a]||"",g=h.substr(0,d.generatedColumn-l);o[a]=h.substr(d.generatedColumn-l),l=d.generatedColumn,f(p,g),p=d;return}for(;c<d.generatedLine;)i.add(u()),c++;if(l<d.generatedColumn){var h=o[a]||"";i.add(h.substr(0,d.generatedColumn)),o[a]=h.substr(d.generatedColumn),l=d.generatedColumn}p=d},this),a<o.length&&(p&&f(p,u()),i.add(o.splice(a).join(""))),r.sources.forEach(function(d){var h=r.sourceContentFor(d);h!=null&&(n!=null&&(d=Pa.join(n,d)),i.setSourceContent(d,h))}),i;function f(d,h){if(d===null||d.source===void 0)i.add(h);else{var g=n?Pa.join(n,d.source):d.source;i.add(new je(d.originalLine,d.originalColumn,g,h,d.name))}}s(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");je.prototype.add=s(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Qn]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},"SourceNode_add");je.prototype.prepend=s(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Qn]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},"SourceNode_prepend");je.prototype.walk=s(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Qn]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");je.prototype.join=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");je.prototype.replaceRight=s(function(t,r){var n=this.children[this.children.length-1];return n[Qn]?n.replaceRight(t,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(t,r):this.children.push("".replace(t,r)),this},"SourceNode_replaceRight");je.prototype.setSourceContent=s(function(t,r){this.sourceContents[Pa.toSetString(t)]=r},"SourceNode_setSourceContent");je.prototype.walkSourceContents=s(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Qn]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(Pa.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");je.prototype.toString=s(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");je.prototype.toStringWithSourceMap=s(function(t){var r={code:"",line:1,column:0},n=new cN(t),i=!1,o=null,a=null,u=null,c=null;return this.walk(function(l,p){r.code+=l,p.source!==null&&p.line!==null&&p.column!==null?((o!==p.source||a!==p.line||u!==p.column||c!==p.name)&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name}),o=p.source,a=p.line,u=p.column,c=p.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),o=null,i=!1);for(var f=0,d=l.length;f<d;f++)l.charCodeAt(f)===fN?(r.line++,r.column=0,f+1===d?(o=null,i=!1):i&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name})):r.column++}),this.walkSourceContents(function(l,p){n.setSourceContent(l,p)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");lS.SourceNode=je});var pS=m($a=>{$a.SourceMapGenerator=kp().SourceMapGenerator;$a.SourceMapConsumer=cS().SourceMapConsumer;$a.SourceNode=fS().SourceNode});var gS=m((Oa,mS)=>{"use strict";Oa.__esModule=!0;var jp=Oe(),Wr=void 0;try{(typeof define!="function"||!define.amd)&&(dS=pS(),Wr=dS.SourceNode)}catch{}var dS;Wr||(Wr=s(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),Wr.prototype={add:s(function(t){jp.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:s(function(t){jp.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 qp(e,t,r){if(jp.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(qp,"castChunk");function hS(e){this.srcFile=e,this.source=[]}s(hS,"CodeGen");hS.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:s(function(t){for(var r=0,n=this.source.length;r<n;r++)t(this.source[r])},"each"),empty:s(function(){var t=this.currentLocation||{start:{}};return new Wr(t.start.line,t.start.column,this.srcFile)},"empty"),wrap:s(function(t){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return t instanceof Wr?t:(t=qp(t,this,r),new Wr(r.start.line,r.start.column,this.srcFile,t))},"wrap"),functionCall:s(function(t,r,n){return n=this.generateList(n),this.wrap([t,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:s(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:s(function(t){var r=this,n=[];Object.keys(t).forEach(function(o){var a=qp(t[o],r);a!=="undefined"&&n.push([r.quotedString(o),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:s(function(t){for(var r=this.empty(),n=0,i=t.length;n<i;n++)n&&r.add(","),r.add(qp(t[n],this));return r},"generateList"),generateArray:s(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};Oa.default=hS;mS.exports=Oa.default});var SS=m((Ea,bS)=>{"use strict";Ea.__esModule=!0;function _S(e){return e&&e.__esModule?e:{default:e}}s(_S,"_interopRequireDefault");var yS=sa(),pN=Ze(),Mp=_S(pN),dN=Oe(),hN=gS(),vS=_S(hN);function Jn(e){this.value=e}s(Jn,"Literal");function Xn(){}s(Xn,"JavaScriptCompiler");Xn.prototype={nameLookup:s(function(t,r){return this.internalNameLookup(t,r)},"nameLookup"),depthedLookup:s(function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},"depthedLookup"),compilerInfo:s(function(){var t=yS.COMPILER_REVISION,r=yS.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:s(function(t,r,n){return dN.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},"appendToBuffer"),initializeBuffer:s(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:s(function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:s(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 o=t.opcodes,a=void 0,u=void 0,c=void 0,l=void 0;for(c=0,l=o.length;c<l;c++)a=o[c],this.source.currentLocation=a.loc,u=u||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=u,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new Mp.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 p=this.createFunctionContext(i);if(this.isChild)return p;var f={compiler:this.compilerInfo(),main:p};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var d=this.context,h=d.programs,g=d.decorators;for(c=0,l=h.length;c<l;c++)h[c]&&(f[c]=h[c],g[c]&&(f[c+"_d"]=g[c],f.useDecorators=!0));return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),i?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},"compile"),preamble:
|
|
63
|
-
`,u,"}"])},"createFunctionContext"),mergeSource:
|
|
64
|
-
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:
|
|
62
|
+
`),this.decorators=this.decorators.merge()));var p=this.createFunctionContext(i);if(this.isChild)return p;var f={compiler:this.compilerInfo(),main:p};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var d=this.context,h=d.programs,g=d.decorators;for(c=0,l=h.length;c<l;c++)h[c]&&(f[c]=h[c],g[c]&&(f[c+"_d"]=g[c],f.useDecorators=!0));return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),i?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},"compile"),preamble:s(function(){this.lastContext=0,this.source=new vS.default(this.options.srcName),this.decorators=new vS.default(this.options.srcName)},"preamble"),createFunctionContext:s(function(t){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var o=0;Object.keys(this.aliases).forEach(function(c){var l=r.aliases[c];l.children&&l.referenceCount>1&&(n+=", alias"+ ++o+"="+c,l.children[0]="alias"+o)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var u=this.mergeSource(n);return t?(a.push(u),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
|
|
63
|
+
`,u,"}"])},"createFunctionContext"),mergeSource:s(function(t){var r=this.environment.isSimple,n=!this.forceBuffer,i=void 0,o=void 0,a=void 0,u=void 0;return this.source.each(function(c){c.appendToBuffer?(a?c.prepend(" + "):a=c,u=c):(a&&(o?a.prepend("buffer += "):i=!0,u.add(";"),a=u=void 0),o=!0,r||(n=!1))}),n?a?(a.prepend("return "),u.add(";")):o||this.source.push('return "";'):(t+=", buffer = "+(i?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),u.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(i?"":`;
|
|
64
|
+
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:s(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:o(function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(t){this.lastContext=t},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(t,r,n,i){var s=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[s++])):this.pushContext(),this.resolvePath("context",t,s,r,n)},"lookupOnContext"),lookupBlockParam:o(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(t,r,n,i,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(gN(this.options.strict&&s,this,r,n,t));return}for(var u=r.length;n<u;n++)this.replaceStack(function(c){var l=a.nameLookup(c,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",c]})},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:o(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},"popHash"),pushString:o(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:o(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:o(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(t,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,t);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:o(function(t,r,n){var i=this.popStack(),s=this.setupHelper(t,r),a=[];n&&a.push(s.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var u=["(",this.itemsSeparatedBy(a,"||"),")"],c=this.source.functionCall(u,"call",s.callParams);this.push(c)},"invokeHelper"),itemsSeparatedBy:o(function(t,r){var n=[];n.push(t[0]);for(var i=1;i<t.length;i++)n.push(r,t[i]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),s=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",s," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:o(function(t,r,n){var i=[],s=this.setupParams(r,1,i);t&&(r=this.popStack(),delete s.name),n&&(s.indent=JSON.stringify(n)),s.helpers="helpers",s.partials="partials",s.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(s.depths="depths"),s=this.objectLiteral(s),i.push(s),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:o(function(t){var r=this.popStack(),n=void 0,i=void 0,s=void 0;this.trackIds&&(s=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),s&&(a.ids[t]=s),a.values[t]=r},"assignToHash"),pushId:o(function(t,r,n){t==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):t==="PathExpression"?this.pushString(r):t==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:Xn,compileChildren:o(function(t,r){for(var n=t.children,i=void 0,s=void 0,a=0,u=n.length;a<u;a++){i=n[a],s=new this.compiler;var c=this.matchExistingProgram(i);if(c==null){this.context.programs.push("");var l=this.context.programs.length;i.index=l,i.name="program"+l,this.context.programs[l]=s.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=s.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=c.index,i.name="program"+c.index,this.useDepths=this.useDepths||c.useDepths,this.useBlockParams=this.useBlockParams||c.useBlockParams}},"compileChildren"),matchExistingProgram:o(function(t){for(var r=0,n=this.context.environments.length;r<n;r++){var i=this.context.environments[r];if(i&&i.equals(t))return i}},"matchExistingProgram"),programExpression:o(function(t){var r=this.environment.children[t],n=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},"programExpression"),useRegister:o(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:o(function(t){return t instanceof Jn||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:o(function(t){this.push(new Jn(t))},"pushStackLiteral"),pushSource:o(function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},"pushSource"),replaceStack:o(function(t){var r=["("],n=void 0,i=void 0,s=void 0;if(!this.isInline())throw new Dp.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof Jn)n=[a.value],r=["(",n],s=!0;else{i=!0;var u=this.incrStack();r=["((",this.push(u)," = ",a,")"],n=this.topStack()}var c=t.call(this,n);s||this.popStack(),i&&this.stackSlot--,this.push(r.concat(c,")"))},"replaceStack"),incrStack:o(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:o(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:o(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof Jn)this.compileStack.push(i);else{var s=this.incrStack();this.pushSource([s," = ",i,";"]),this.compileStack.push(s)}}},"flushInline"),isInline:o(function(){return this.inlineStack.length},"isInline"),popStack:o(function(t){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof Jn)return n.value;if(!r){if(!this.stackSlot)throw new Dp.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:o(function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof Jn?r.value:r},"topStack"),contextName:o(function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},"contextName"),quotedString:o(function(t){return this.source.quotedString(t)},"quotedString"),objectLiteral:o(function(t){return this.source.objectLiteral(t)},"objectLiteral"),aliasable:o(function(t){var r=this.aliases[t];return r?(r.referenceCount++,r):(r=this.aliases[t]=this.source.wrap(t),r.aliasable=!0,r.referenceCount=1,r)},"aliasable"),setupHelper:o(function(t,r,n){var i=[],s=this.setupHelperArgs(r,t,i,n),a=this.nameLookup("helpers",r,"helper"),u=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:s,name:a,callParams:[u].concat(i)}},"setupHelper"),setupParams:o(function(t,r,n){var i={},s=[],a=[],u=[],c=!n,l=void 0;c&&(n=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var p=this.popStack(),f=this.popStack();(f||p)&&(i.fn=f||"container.noop",i.inverse=p||"container.noop");for(var d=r;d--;)l=this.popStack(),n[d]=l,this.trackIds&&(u[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),s[d]=this.popStack());return c&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(u)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(s)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:o(function(t,r,n,i){var s=this.setupParams(t,r,n);return s.loc=JSON.stringify(this.source.currentLocation),s=this.objectLiteral(s),i?(this.useRegister("options"),n.push("options"),["options=",s]):n?(n.push(s),""):s},"setupHelperArgs")};(function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=Xn.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();Xn.isValidJavaScriptVariableName=function(e){return!Xn.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function gN(e,t,r,n,i){var s=t.popStack(),a=r.length;for(e&&a--;n<a;n++)s=t.nameLookup(s,r[n],i);return e?[t.aliasable("container.strict"),"(",s,", ",t.quotedString(r[n]),", ",JSON.stringify(t.source.currentLocation)," )"]:s}o(gN,"strictLookup");xa.default=Xn;SS.exports=xa.default});var ES=m((wa,OS)=>{"use strict";wa.__esModule=!0;function Po(e){return e&&e.__esModule?e:{default:e}}o(Po,"_interopRequireDefault");var yN=xb(),vN=Po(yN),_N=mp(),bN=Po(_N),Lp=Lb(),Fp=Hb(),SN=PS(),PN=Po(SN),$N=ya(),ON=Po($N),EN=fp(),xN=Po(EN),wN=vN.default.create;function $S(){var e=wN();return e.compile=function(t,r){return Fp.compile(t,r,e)},e.precompile=function(t,r){return Fp.precompile(t,r,e)},e.AST=bN.default,e.Compiler=Fp.Compiler,e.JavaScriptCompiler=PN.default,e.Parser=Lp.parser,e.parse=Lp.parse,e.parseWithoutProcessing=Lp.parseWithoutProcessing,e}o($S,"create");var ei=$S();ei.create=$S;xN.default(ei);ei.Visitor=ON.default;ei.default=ei;wa.default=ei;OS.exports=wa.default});var xS=m(Aa=>{"use strict";Aa.__esModule=!0;Aa.print=RN;Aa.PrintVisitor=Y;function AN(e){return e&&e.__esModule?e:{default:e}}o(AN,"_interopRequireDefault");var IN=ya(),kN=AN(IN);function RN(e){return new Y().accept(e)}o(RN,"print");function Y(){this.padding=0}o(Y,"PrintVisitor");Y.prototype=new kN.default;Y.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
|
|
72
|
-
`,t};Y.prototype.Program=function(e){var t="",r=e.body,n=void 0,i=void 0;if(e.blockParams){var s="BLOCK PARAMS: [";for(n=0,i=e.blockParams.length;n<i;n++)s+=" "+e.blockParams[n];s+=" ]",t+=this.pad(s)}for(n=0,i=r.length;n<i;n++)t+=this.accept(r[n]);return this.padding--,t};Y.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};Y.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};Y.prototype.BlockStatement=Y.prototype.DecoratorBlock=function(e){var t="";return t+=this.pad((e.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,t+=this.pad(this.SubExpression(e)),e.program&&(t+=this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--),e.inverse&&(e.program&&this.padding++,t+=this.pad("{{^}}"),this.padding++,t+=this.accept(e.inverse),this.padding--,e.program&&this.padding--),this.padding--,t};Y.prototype.PartialStatement=function(e){var t="PARTIAL:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),this.pad("{{> "+t+" }}")};Y.prototype.PartialBlockStatement=function(e){var t="PARTIAL BLOCK:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),t+=" "+this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--,this.pad("{{> "+t+" }}")};Y.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};Y.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};Y.prototype.SubExpression=function(e){for(var t=e.params,r=[],n=void 0,i=0,s=t.length;i<s;i++)r.push(this.accept(t[i]));return t="["+r.join(", ")+"]",n=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+n};Y.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};Y.prototype.StringLiteral=function(e){return'"'+e.value+'"'};Y.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};Y.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};Y.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Y.prototype.NullLiteral=function(){return"NULL"};Y.prototype.Hash=function(e){for(var t=e.pairs,r=[],n=0,i=t.length;n<i;n++)r.push(this.accept(t[n]));return"HASH{"+r.join(", ")+"}"};Y.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var Yr=m((ZF,IS)=>{var Ia=ES().default,AS=xS();Ia.PrintVisitor=AS.PrintVisitor;Ia.print=AS.print;IS.exports=Ia;function wS(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=Ia.compile(n)}o(wS,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=wS,require.extensions[".hbs"]=wS)});var XN={};WS(XN,{getGenerateFileData:()=>JN,getGenerateMetadata:()=>QN});module.exports=YS(XN);var Gp=De(Pv());var $v="Schema",Ov="Enum",Ev="Body",xv="Param",wv="Response",Av="ErrorResponse",Pf="z.void()",As={bindings:["z"],from:"zod"};var Yi={input:"input.yaml",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,importPath:"ts",extractEnums:!0,configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"}},schemaSuffix:$v,enumSuffix:Ov,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var Ne=o((...e)=>[...new Set(e.flat())],"getUniqueArray");var ge=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Qi=o(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),Is=o(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),Re=o(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),Iv=o(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),$f=o((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),kv=o((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),zR=o(e=>{var n;let t=e.reduce((i,s)=>({...i,[s]:(i[s]??0)+1}),{});return(n=Object.entries(t).sort((i,s)=>i[1]===s[1]?s[0].length-i[0].length:s[1]-i[1])[0])==null?void 0:n[0]},"getLongestMostCommon"),Of=o(e=>{let t=e.map(ge).map(GR).map(r=>ZR(r)).flat();return zR(t)},"getMostCommonAdjacentCombinationSplit"),GR=o(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),ZR=o((e,t=["dto","by","for","of","in","to","and","with"])=>{var n;let r=[];for(let i=0;i<e.length;i++)if(!t.includes(e[i].toLowerCase()))for(let s=i+1;s<=e.length;s++)t.includes((n=e[s-1])==null?void 0:n.toLowerCase())||r.push(e.slice(i,s).join(""));return r},"getAdjacentStringCombinations");var ks=o(e=>`use${ge(Re(e.operationName))}`,"getQueryName"),Ef=o(e=>{let t=e.map(({path:s})=>s),r=/^\/[^\/]*/g,n=Ne(t.map(s=>s.match(r)).flat()),i=o(s=>n.length===1?"all":`all${ge(Is(s.replace(/\//g,"")??""))}`,"getQueryKeyName");return n.filter(s=>s!==null).map(s=>({path:s,name:i(s??"")}))},"getAllQueryKeys"),Rv=o((e,t)=>{let n=Ef(t).find(({path:s})=>e.path.startsWith(s));if(!n)return[e.path];let i=e.path.substring(n.path.length);return[`...keys.${n.name}`,...i?[`"${i}"`]:[]]},"getEndpointPathQueryKeys");function or({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Qi(t)}/`:""}${Qi(t)}.${i}`:i}o(or,"getTagFileName");var re=o(({type:e,tag:t,options:r})=>`${ge(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var Tv=o(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),Pt=o(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");var jt=Symbol.for("@ts-pattern/matcher"),KR=Symbol.for("@ts-pattern/isVariadic"),Ts="@ts-pattern/anonymous-select-key",xf=o(e=>!!(e&&typeof e=="object"),"r"),Rs=o(e=>e&&!!e[jt],"i"),Et=o((e,t,r)=>{if(Rs(e)){let n=e[jt](),{matched:i,selections:s}=n.match(t);return i&&s&&Object.keys(s).forEach(a=>r(a,s[a])),i}if(xf(e)){if(!xf(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],s=[];for(let a of e.keys()){let u=e[a];Rs(u)&&u[KR]?s.push(u):s.length?i.push(u):n.push(u)}if(s.length){if(s.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let a=t.slice(0,n.length),u=i.length===0?[]:t.slice(-i.length),c=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,p)=>Et(l,a[p],r))&&i.every((l,p)=>Et(l,u[p],r))&&(s.length===0||Et(s[0],c,r))}return e.length===t.length&&e.every((a,u)=>Et(a,t[u],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||Rs(s=i)&&s[jt]().matcherType==="optional")&&Et(i,t[n],r);var s})}return Object.is(t,e)},"s"),lr=o(e=>{var t,r,n;return xf(e)?Rs(e)?(t=(r=(n=e[jt]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Xi(e,lr):Xi(Object.values(e),lr):[]},"o"),Xi=o((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function Ue(e){return Object.assign(e,{optional:o(()=>WR(e),"optional"),and:o(t=>z(e,t),"and"),or:o(t=>YR(e,t),"or"),select:o(t=>t===void 0?Cv(e):Cv(t,e),"select")})}o(Ue,"u");function WR(e){return Ue({[jt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return t===void 0?(lr(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Et(e,t,n),selections:r}},"match"),getSelectionKeys:o(()=>lr(e),"getSelectionKeys"),matcherType:"optional"})})}o(WR,"h");function z(...e){return Ue({[jt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return{matched:e.every(i=>Et(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Xi(e,lr),"getSelectionKeys"),matcherType:"and"})})}o(z,"m");function YR(...e){return Ue({[jt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return Xi(e,lr).forEach(i=>n(i,void 0)),{matched:e.some(i=>Et(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Xi(e,lr),"getSelectionKeys"),matcherType:"or"})})}o(YR,"d");function D(e){return{[jt]:()=>({match:o(t=>({matched:!!e(t)}),"match")})}}o(D,"p");function Cv(...e){let t=typeof e[0]=="string"?e[0]:void 0,r=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return Ue({[jt]:()=>({match:o(n=>{let i={[t??Ts]:n};return{matched:r===void 0||Et(r,n,(s,a)=>{i[s]=a}),selections:i}},"match"),getSelectionKeys:o(()=>[t??Ts].concat(r===void 0?[]:lr(r)),"getSelectionKeys")})})}o(Cv,"y");function $t(e){return typeof e=="number"}o($t,"v");function sr(e){return typeof e=="string"}o(sr,"b");function ar(e){return typeof e=="bigint"}o(ar,"w");var wD=Ue(D(function(e){return!0}));var ur=o(e=>Object.assign(Ue(e),{startsWith:o(t=>{return ur(z(e,(r=t,D(n=>sr(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:o(t=>{return ur(z(e,(r=t,D(n=>sr(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:o(t=>ur(z(e,(r=>D(n=>sr(n)&&n.length>=r))(t))),"minLength"),length:o(t=>ur(z(e,(r=>D(n=>sr(n)&&n.length===r))(t))),"length"),maxLength:o(t=>ur(z(e,(r=>D(n=>sr(n)&&n.length<=r))(t))),"maxLength"),includes:o(t=>{return ur(z(e,(r=t,D(n=>sr(n)&&n.includes(r)))));var r},"includes"),regex:o(t=>{return ur(z(e,(r=t,D(n=>sr(n)&&!!n.match(r)))));var r},"regex")}),"j"),AD=ur(D(sr)),Ot=o(e=>Object.assign(Ue(e),{between:o((t,r)=>Ot(z(e,((n,i)=>D(s=>$t(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Ot(z(e,(r=>D(n=>$t(n)&&n<r))(t))),"lt"),gt:o(t=>Ot(z(e,(r=>D(n=>$t(n)&&n>r))(t))),"gt"),lte:o(t=>Ot(z(e,(r=>D(n=>$t(n)&&n<=r))(t))),"lte"),gte:o(t=>Ot(z(e,(r=>D(n=>$t(n)&&n>=r))(t))),"gte"),int:o(()=>Ot(z(e,D(t=>$t(t)&&Number.isInteger(t)))),"int"),finite:o(()=>Ot(z(e,D(t=>$t(t)&&Number.isFinite(t)))),"finite"),positive:o(()=>Ot(z(e,D(t=>$t(t)&&t>0))),"positive"),negative:o(()=>Ot(z(e,D(t=>$t(t)&&t<0))),"negative")}),"x"),ID=Ot(D($t)),cr=o(e=>Object.assign(Ue(e),{between:o((t,r)=>cr(z(e,((n,i)=>D(s=>ar(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>cr(z(e,(r=>D(n=>ar(n)&&n<r))(t))),"lt"),gt:o(t=>cr(z(e,(r=>D(n=>ar(n)&&n>r))(t))),"gt"),lte:o(t=>cr(z(e,(r=>D(n=>ar(n)&&n<=r))(t))),"lte"),gte:o(t=>cr(z(e,(r=>D(n=>ar(n)&&n>=r))(t))),"gte"),positive:o(()=>cr(z(e,D(t=>ar(t)&&t>0))),"positive"),negative:o(()=>cr(z(e,D(t=>ar(t)&&t<0))),"negative")}),"A"),kD=cr(D(ar)),RD=Ue(D(function(e){return typeof e=="boolean"})),TD=Ue(D(function(e){return typeof e=="symbol"})),CD=Ue(D(function(e){return e==null})),ND=Ue(D(function(e){return e!=null}));var kf=class kf extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}};o(kf,"W");var wf=kf,Af={matched:!1,value:void 0};function ye(e){return new If(e,Af)}o(ye,"z");var Ji=class Ji{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let s=!1,a={},u=o((l,p)=>{s=!0,a[l]=p},"a"),c=!n.some(l=>Et(l,this.input,u))||i&&!i(this.input)?Af:{matched:!0,value:r(s?Ts in a?a[Ts]:a:this.input,this.input)};return new Ji(this.input,c)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new Ji(this.input,n?{matched:!0,value:r(this.input,this.input)}:Af)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new wf(this.input)}run(){return this.exhaustive()}returnType(){return this}};o(Ji,"I");var If=Ji;var Nv=["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"];var Rf=2,qv=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],jv=["query","header","path"],fr=["get","put","post","delete","options","head","patch","trace"],Mv=["string","number","integer","boolean"],Cs=["allOf","anyOf","oneOf"];function pr(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}o(pr,"pick");function xt(e){return Iv(e)}o(xt,"formatTag");function Lr(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return xt(r??t.defaultTag)}o(Lr,"getOperationTag");function Dv(e,t){let r={};for(let n in e.paths){let i=e.paths[n],s=pr(i,fr);for(let a in s){let u=s[a];if(!u||u.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let c=t.splitByTags?Lr(u,t):t.defaultTag;r[c]||(r[c]=[]),r[c].push(u)}}return r}o(Dv,"getOperationsByTag");var Fv=o(e=>`#/components/schemas/${e}`,"getSchemaRef"),Fr=o(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),Dn=o(e=>Fr(e).split("/").at(-1),"getSchemaNameByRef");function H(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}o(H,"isReferenceObject");function Nf(e){let t=QR(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return Re(t)}o(Nf,"normalizeString");function Vv(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}o(Vv,"wrapWithQuotesIfNeeded");function Bv(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}o(Bv,"unwrapQuotesIfNeeded");function QR(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}o(QR,"prefixStringStartingWithNumberIfNeeded");function qf(e){let t=e.replaceAll("_","#");return Re(t.replaceAll("-","_")).replaceAll("#","_")}o(qf,"pathParamToVariableName");var Mt=o(e=>Mv.includes(e),"isPrimitiveType");function Hv(e){return e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/([\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\uFFFE\uFFFF])/g,(t,r)=>{let n=r.codePointAt(),i=n.toString(16);return n<=255?`\\x${`00${i}`.slice(-2)}`:`\\u${`0000${i}`.slice(-4)}`}).replace(/\//g,"\\/")}o(Hv,"escapeControlCharacters");function dr(e){return e.includes("application/")&&e.includes("json")||qv.includes(e)||e.includes("text/")}o(dr,"isParamMediaTypeAllowed");function Ns(e){return e>=200&&e<300}o(Ns,"isMainResponseStatus");function qs(e){return!(e>=200&&e<300)}o(qs,"isErrorStatus");function Ln(e){return e==="application/json"}o(Ln,"isMediaTypeAllowed");function Tf({path:e,method:t,operation:r,options:n,keepOperationPrefixWithoutEnding:i}){let s=`${t}${XR(e)}`,a=r.operationId?Pt(r.operationId):s;if(n.removeOperationPrefixEndingWith&&i)return a.split(n.removeOperationPrefixEndingWith).map((c,l)=>l===0?c:ge(c)).join("");if(n.removeOperationPrefixEndingWith&&!i){let u=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);a=a.replace(u,"")}return Nv.includes(a)?s:a}o(Tf,"getOperationName");function eo({path:e,method:t,operation:r,operationsByTag:n,options:i}){let s=i.splitByTags?Lr(r,i):i.defaultTag,a=Tf({path:e,method:t,operation:r,options:i});return n[s].filter(c=>Tf({path:e,method:t,operation:c,options:i})===a).length===1?a:Tf({path:e,method:t,operation:r,options:i,keepOperationPrefixWithoutEnding:!0})}o(eo,"getUniqueOperationName");function Uv(e,t,r){let n=[];for(let i in e.paths){let s=e.paths[i],a=pr(s,fr);for(let u in a){let c=a[u];if(!c||c.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let l=eo({path:i,method:u,operation:c,operationsByTag:t,options:r});n.push(l)}}return n}o(Uv,"getUniqueOperationNamesWithoutSplitByTags");var Lv=/({\w+})/g,JR=/[^\w\-]+/g;function XR(e){e=ge(Is(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(Lv)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(Lv,"")}By${ge(r.slice(1,-1))}`}return e.replace(JR,"_")}o(XR,"pathToVariableName");var Cf=/{(\b\w+(?:-\w+)*\b)}/g;function zv(e){let t=e.match(Cf);return t===null?e.replaceAll(Cf,":$1"):(t.forEach(r=>{let n=qf(r.replaceAll(Cf,":$1"));e=e.replaceAll(r,n)}),e)}o(zv,"replaceHyphenatedPath");var Fn=o(e=>e.method==="get","isQuery"),js=o(e=>e.method!=="get","isMutation");var hr=o((e,t)=>$f(ge(Nf(e)),t),"getZodSchemaName"),Gv=o((e,t,r)=>$f(ge(Nf(e)),`${t}${r}`),"getEnumZodSchemaName"),Pe=o(e=>!e.startsWith("z."),"isNamedZodSchema"),Vr=o((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),Ms=o(e=>Re(`${e}_${Ev}`),"getBodyZodSchemaName"),Zv=o((e,t)=>Re(`${e}_${t}${xv}`),"getParamZodSchemaName"),eT=o(e=>Re(`${e}${wv}`),"getMainResponseZodSchemaName"),tT=o((e,t)=>Re(`${e}_${t}_${Av}`),"getErrorResponseZodSchemaName");function Ds({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),s=Vr(t,r,n);return!Ns(i)&&e!=="default"&&qs(i)?tT(s,e):eT(s)}o(Ds,"getResponseZodSchemaName");var to=o((e,t)=>kv(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),Kv=o((e,t)=>Pe(t)?`${e.options.includeNamespaces?`${re({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),Ls=o((e,t)=>Pe(t)?`${e.options.includeNamespaces?`${re({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${to(t,e.options)}`:t,"getImportedZodSchemaInferedTypeName");function Fs(e){return ye(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}o(Fs,"primitiveTypeToTsType");function Vn({zodSchemaName:e,schema:t,resolver:r}){let n="void",i;e&&Pe(e)?(n=Ls(r,e),i=r.getTagByZodSchemaName(e)):t!=null&&t.type&&Mt(t==null?void 0:t.type)&&(n=Fs(t==null?void 0:t.type));let s=n.split(".");return{type:s[s.length-1],...s.length>1?{namespace:s[0]}:{},...i?{filePath:or({type:"models",tag:i,includeTagDir:!0,options:r.options})}:{}}}o(Vn,"getTsTypeBase");function Br({schema:e,isCircular:t,parentTypes:r,resolver:n}){if(!e)return{metaType:"primitive"};for(let i of Cs){let s=e[i];if(s)if(s.length>1){let a=s.map(u=>{let c=n.resolveObject(u);return Br({schema:c,parentTypes:r,resolver:n})});return a.every(({metaType:u})=>u==="object")?{metaType:"object",objectProperties:a.reduce((u,{objectProperties:c})=>{let l=c.map(({name:p})=>p);return[...u.filter(({name:p})=>!l.includes(p)),...c]},[])}:{metaType:"composite",[i]:a}}else e=n.resolveObject(s[0])}return e.type==="array"?{metaType:"array",arrayType:Wv({arraySchema:e,resolver:n,parentTypes:r})}:(e.type==="object"||e.properties)&&t?{metaType:"object",objectProperties:[],isCircular:!0}:e.type==="object"||e.properties?{metaType:"object",objectProperties:rT({schema:e,parentTypes:r,resolver:n})}:{metaType:"primitive"}}o(Br,"getSchemaTsMetaType");function Wv({arraySchema:e,parentTypes:t,resolver:r}){let n,i;if(H(e.items)){let c=e.items.$ref;n=r.getZodSchemaNameByRef(c),i=r.getSchemaByRef(c)}else i=e.items;let s=Vn({zodSchemaName:n,schema:i,resolver:r}),a=Yv(s,t),u=Br({schema:i,isCircular:a,parentTypes:[...t,s],resolver:r});return{...s,...u}}o(Wv,"getArraySchemaTsType");function rT({schema:e,parentTypes:t,resolver:r}){return Object.entries((e==null?void 0:e.properties)??{}).map(([n,i])=>{var a;let s=((a=e==null?void 0:e.required)==null?void 0:a.includes(n))??!1;if(H(i)){let u=r.getZodSchemaNameByRef(i.$ref),c=r.getSchemaByRef(i.$ref),l=Vn({zodSchemaName:u,schema:c,resolver:r}),p=Yv(l,t),f=Br({schema:c,isCircular:p,parentTypes:[...t,l],resolver:r});return{name:n,isRequired:s,...l,...f}}else if(i.type==="array"){let u=Wv({arraySchema:i,parentTypes:t,resolver:r});return{name:n,isRequired:s,type:"array",metaType:"array",arrayType:u}}else if(Mt(i.type))return{name:n,isRequired:s,type:Fs(i.type),metaType:"primitive"};return{name:n,isRequired:s,type:"void",metaType:"primitive"}})}o(rT,"getSchemaTsProperties");function Yv(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}o(Yv,"getIsCircular");var jf={"Content-Type":"application/json",Accept:"application/json"},Qv="data";function wt(e){return!H(e)}o(wt,"isSchemaObject");function Jv(e){return e.type==="array"}o(Jv,"isArraySchemaObject");function Xv(e){if(!e.allOf)throw new Error("Function inferRequiredSchema is specialized to handle item with required only in an allOf array.");let[t,r]=e.allOf.reduce((i,s)=>{if(nT(s)){let a=s.required;i[0].push(...a??[])}else i[1].push(s);return i},[[],[]]),n={properties:t.reduce((i,s)=>(i[s]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:o((i,s)=>{if(H(i)){let a=s(i.$ref);a&&n.required.forEach(u=>{var c;n.properties[u]=((c=a==null?void 0:a.properties)==null?void 0:c[u])??{}})}else{let a=i.properties??{};n.required.forEach(u=>{a[u]&&(n.properties[u]=a[u]??{})})}},"patchRequiredSchemaInLoop")}}o(Xv,"inferRequiredSchema");var nT=o(e=>!H(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var ro=o(e=>Qi(Re(e.operationName)),"getEndpointName");function e_(e,t){return`${t.includeNamespaces?`${re({type:"endpoints",tag:no(e,t),options:t})}.`:""}${ro(e)}`}o(e_,"getImportedEndpointName");var t_=o(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function no(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return xt(r??t.defaultTag)}o(no,"getEndpointTag");function Mf(e,t){return t.parameters.map(r=>{var i,s,a,u;let n="string";if(Pe(r.zodSchema))n=Ls(e,r.zodSchema);else if((i=r.parameterObject)!=null&&i.schema&&wt(r.parameterObject.schema)){let c=(a=(s=r.parameterObject)==null?void 0:s.schema)==null?void 0:a.type;c&&Mt(c)&&(n=Fs(c))}return{name:Pt(r.name),type:n,paramType:r.type,required:((u=r.parameterObject)==null?void 0:u.required)??!0}}).sort((r,n)=>{if(r.required===n.required){let i=["Path","Body","Query","Header"];return i.indexOf(r.paramType)-i.indexOf(n.paramType)}return r.required?-1:1})}o(Mf,"mapEndpointParamsToFunctionParams");function r_(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let s=Tv(i.name)?i.name:`"${i.name}"`,a=Pt(i.name);return{...i,name:s,value:a}}),r={};return e.requestFormat!==jf["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==jf.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=Pt(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}o(r_,"getEndpointConfig");var n_=o((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),i_=o((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),o_=o((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),G={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},V5=Object.keys(G.modifier),iT=Object.keys(G.color),oT=Object.keys(G.bgColor),B5=[...iT,...oT];function sT(){let e=new Map;for(let[t,r]of Object.entries(G)){for(let[n,i]of Object.entries(r))G[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=G[n],e.set(i[0],i[1]);Object.defineProperty(G,t,{value:r,enumerable:!1})}return Object.defineProperty(G,"codes",{value:e,enumerable:!1}),G.color.close="\x1B[39m",G.bgColor.close="\x1B[49m",G.color.ansi=n_(),G.color.ansi256=i_(),G.color.ansi16m=o_(),G.bgColor.ansi=n_(10),G.bgColor.ansi256=i_(10),G.bgColor.ansi16m=o_(10),Object.defineProperties(G,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:o(t=>G.rgbToAnsi256(...G.hexToRgb(t)),"value"),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let u=t%36;r=Math.floor(t/36)/5,n=Math.floor(u/6)/5,i=u%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:o((t,r,n)=>G.ansi256ToAnsi(G.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:o(t=>G.ansi256ToAnsi(G.hexToAnsi256(t)),"value"),enumerable:!1}}),G}o(sT,"assembleStyles");var aT=sT(),ut=aT;var Bs=De(require("process"),1),a_=De(require("os"),1),Df=De(require("tty"),1);function ze(e,t=globalThis.Deno?globalThis.Deno.args:Bs.default.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}o(ze,"hasFlag");var{env:Z}=Bs.default,Vs;ze("no-color")||ze("no-colors")||ze("color=false")||ze("color=never")?Vs=0:(ze("color")||ze("colors")||ze("color=true")||ze("color=always"))&&(Vs=1);function uT(){if("FORCE_COLOR"in Z)return Z.FORCE_COLOR==="true"?1:Z.FORCE_COLOR==="false"?0:Z.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Z.FORCE_COLOR,10),3)}o(uT,"envForceColor");function cT(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}o(cT,"translateLevel");function lT(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=uT();n!==void 0&&(Vs=n);let i=r?Vs:n;if(i===0)return 0;if(r){if(ze("color=16m")||ze("color=full")||ze("color=truecolor"))return 3;if(ze("color=256"))return 2}if("TF_BUILD"in Z&&"AGENT_NAME"in Z)return 1;if(e&&!t&&i===void 0)return 0;let s=i||0;if(Z.TERM==="dumb")return s;if(Bs.default.platform==="win32"){let a=a_.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Z)return"GITHUB_ACTIONS"in Z||"GITEA_ACTIONS"in Z?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in Z)||Z.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in Z)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Z.TEAMCITY_VERSION)?1:0;if(Z.COLORTERM==="truecolor"||Z.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Z){let a=Number.parseInt((Z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Z.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Z.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Z.TERM)||"COLORTERM"in Z?1:s}o(lT,"_supportsColor");function s_(e,t={}){let r=lT(e,{streamIsTTY:e&&e.isTTY,...t});return cT(r)}o(s_,"createSupportsColor");var fT={stdout:s_({isTTY:Df.default.isatty(1)}),stderr:s_({isTTY:Df.default.isatty(2)})},u_=fT;function c_(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,a="";do a+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return a+=e.slice(s),a}o(c_,"stringReplaceAll");function l_(e,t,r,n){let i=0,s="";do{let a=e[n-1]==="\r";s+=e.slice(i,a?n-1:n)+t+(a?`\r
|
|
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(mN(this.options.strict&&o,this,r,n,t));return}for(var u=r.length;n<u;n++)this.replaceStack(function(c){var l=a.nameLookup(c,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",c]})},"resolvePath"),resolvePossibleLambda: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 u=["(",this.itemsSeparatedBy(a,"||"),")"],c=this.source.functionCall(u,"call",o.callParams);this.push(c)},"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:Xn,compileChildren:s(function(t,r){for(var n=t.children,i=void 0,o=void 0,a=0,u=n.length;a<u;a++){i=n[a],o=new this.compiler;var c=this.matchExistingProgram(i);if(c==null){this.context.programs.push("");var l=this.context.programs.length;i.index=l,i.name="program"+l,this.context.programs[l]=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=c.index,i.name="program"+c.index,this.useDepths=this.useDepths||c.useDepths,this.useBlockParams=this.useBlockParams||c.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 Jn||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:s(function(t){this.push(new Jn(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 Mp.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof Jn)n=[a.value],r=["(",n],o=!0;else{i=!0;var u=this.incrStack();r=["((",this.push(u)," = ",a,")"],n=this.topStack()}var c=t.call(this,n);o||this.popStack(),i&&this.stackSlot--,this.push(r.concat(c,")"))},"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 Jn)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 Jn)return n.value;if(!r){if(!this.stackSlot)throw new Mp.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 Jn?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"),u=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:o,name:a,callParams:[u].concat(i)}},"setupHelper"),setupParams:s(function(t,r,n){var i={},o=[],a=[],u=[],c=!n,l=void 0;c&&(n=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var p=this.popStack(),f=this.popStack();(f||p)&&(i.fn=f||"container.noop",i.inverse=p||"container.noop");for(var d=r;d--;)l=this.popStack(),n[d]=l,this.trackIds&&(u[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),o[d]=this.popStack());return c&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(u)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(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=Xn.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();Xn.isValidJavaScriptVariableName=function(e){return!Xn.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function mN(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(mN,"strictLookup");Ea.default=Xn;bS.exports=Ea.default});var OS=m((xa,$S)=>{"use strict";xa.__esModule=!0;function So(e){return e&&e.__esModule?e:{default:e}}s(So,"_interopRequireDefault");var gN=Eb(),yN=So(gN),vN=hp(),_N=So(vN),Dp=Db(),Lp=Bb(),bN=SS(),SN=So(bN),PN=ga(),$N=So(PN),ON=lp(),EN=So(ON),xN=yN.default.create;function PS(){var e=xN();return e.compile=function(t,r){return Lp.compile(t,r,e)},e.precompile=function(t,r){return Lp.precompile(t,r,e)},e.AST=_N.default,e.Compiler=Lp.Compiler,e.JavaScriptCompiler=SN.default,e.Parser=Dp.parser,e.parse=Dp.parse,e.parseWithoutProcessing=Dp.parseWithoutProcessing,e}s(PS,"create");var ei=PS();ei.create=PS;EN.default(ei);ei.Visitor=$N.default;ei.default=ei;xa.default=ei;$S.exports=xa.default});var ES=m(wa=>{"use strict";wa.__esModule=!0;wa.print=kN;wa.PrintVisitor=Y;function wN(e){return e&&e.__esModule?e:{default:e}}s(wN,"_interopRequireDefault");var AN=ga(),IN=wN(AN);function kN(e){return new Y().accept(e)}s(kN,"print");function Y(){this.padding=0}s(Y,"PrintVisitor");Y.prototype=new IN.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 Yr=m((zF,AS)=>{var Aa=OS().default,wS=ES();Aa.PrintVisitor=wS.PrintVisitor;Aa.print=wS.print;AS.exports=Aa;function xS(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=Aa.compile(n)}s(xS,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=xS,require.extensions[".hbs"]=xS)});var QN={};KS(QN,{getGenerateFilesData:()=>YN,getGenerateMetadata:()=>WN});module.exports=WS(QN);var zp=De(Sv());var Pv="Schema",$v="Enum",Ov="Body",Ev="Param",xv="Response",wv="ErrorResponse",Sf="z.void()",ws={bindings:["z"],from:"zod"};var Wi={input:"input.yaml",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,importPath:"ts",extractEnums:!0,configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"}},schemaSuffix:Pv,enumSuffix:$v,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var Ne=s((...e)=>[...new Set(e.flat())],"getUniqueArray");var ge=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Yi=s(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),As=s(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),Re=s(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),Av=s(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),Pf=s((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),Iv=s((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),UR=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"),$f=s(e=>{let t=e.map(ge).map(zR).map(r=>GR(r)).flat();return UR(t)},"getMostCommonAdjacentCombinationSplit"),zR=s(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),GR=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 Is=s(e=>`use${ge(Re(e.operationName))}`,"getQueryName"),Of=s(e=>{let t=e.map(({path:o})=>o),r=/^\/[^\/]*/g,n=Ne(t.map(o=>o.match(r)).flat()),i=s(o=>n.length===1?"all":`all${ge(As(o.replace(/\//g,"")??""))}`,"getQueryKeyName");return n.filter(o=>o!==null).map(o=>({path:o,name:i(o??"")}))},"getAllQueryKeys"),kv=s((e,t)=>{let n=Of(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 or({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Yi(t)}/`:""}${Yi(t)}.${i}`:i}s(or,"getTagFileName");var re=s(({type:e,tag:t,options:r})=>`${ge(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var Rv=s(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),Pt=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 jt=Symbol.for("@ts-pattern/matcher"),ZR=Symbol.for("@ts-pattern/isVariadic"),Rs="@ts-pattern/anonymous-select-key",Ef=s(e=>!!(e&&typeof e=="object"),"r"),ks=s(e=>e&&!!e[jt],"i"),Et=s((e,t,r)=>{if(ks(e)){let n=e[jt](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(a=>r(a,o[a])),i}if(Ef(e)){if(!Ef(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],o=[];for(let a of e.keys()){let u=e[a];ks(u)&&u[ZR]?o.push(u):o.length?i.push(u):n.push(u)}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),u=i.length===0?[]:t.slice(-i.length),c=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,p)=>Et(l,a[p],r))&&i.every((l,p)=>Et(l,u[p],r))&&(o.length===0||Et(o[0],c,r))}return e.length===t.length&&e.every((a,u)=>Et(a,t[u],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||ks(o=i)&&o[jt]().matcherType==="optional")&&Et(i,t[n],r);var o})}return Object.is(t,e)},"s"),lr=s(e=>{var t,r,n;return Ef(e)?ks(e)?(t=(r=(n=e[jt]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Ji(e,lr):Ji(Object.values(e),lr):[]},"o"),Ji=s((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function Ue(e){return Object.assign(e,{optional:s(()=>KR(e),"optional"),and:s(t=>z(e,t),"and"),or:s(t=>WR(e,t),"or"),select:s(t=>t===void 0?Tv(e):Tv(t,e),"select")})}s(Ue,"u");function KR(e){return Ue({[jt]:()=>({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:Et(e,t,n),selections:r}},"match"),getSelectionKeys:s(()=>lr(e),"getSelectionKeys"),matcherType:"optional"})})}s(KR,"h");function z(...e){return Ue({[jt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return{matched:e.every(i=>Et(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>Ji(e,lr),"getSelectionKeys"),matcherType:"and"})})}s(z,"m");function WR(...e){return Ue({[jt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return Ji(e,lr).forEach(i=>n(i,void 0)),{matched:e.some(i=>Et(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>Ji(e,lr),"getSelectionKeys"),matcherType:"or"})})}s(WR,"d");function D(e){return{[jt]:()=>({match:s(t=>({matched:!!e(t)}),"match")})}}s(D,"p");function Tv(...e){let t=typeof e[0]=="string"?e[0]:void 0,r=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return Ue({[jt]:()=>({match:s(n=>{let i={[t??Rs]:n};return{matched:r===void 0||Et(r,n,(o,a)=>{i[o]=a}),selections:i}},"match"),getSelectionKeys:s(()=>[t??Rs].concat(r===void 0?[]:lr(r)),"getSelectionKeys")})})}s(Tv,"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 ED=Ue(D(function(e){return!0}));var ur=s(e=>Object.assign(Ue(e),{startsWith:s(t=>{return ur(z(e,(r=t,D(n=>sr(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:s(t=>{return ur(z(e,(r=t,D(n=>sr(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:s(t=>ur(z(e,(r=>D(n=>sr(n)&&n.length>=r))(t))),"minLength"),length:s(t=>ur(z(e,(r=>D(n=>sr(n)&&n.length===r))(t))),"length"),maxLength:s(t=>ur(z(e,(r=>D(n=>sr(n)&&n.length<=r))(t))),"maxLength"),includes:s(t=>{return ur(z(e,(r=t,D(n=>sr(n)&&n.includes(r)))));var r},"includes"),regex:s(t=>{return ur(z(e,(r=t,D(n=>sr(n)&&!!n.match(r)))));var r},"regex")}),"j"),xD=ur(D(sr)),Ot=s(e=>Object.assign(Ue(e),{between:s((t,r)=>Ot(z(e,((n,i)=>D(o=>$t(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>Ot(z(e,(r=>D(n=>$t(n)&&n<r))(t))),"lt"),gt:s(t=>Ot(z(e,(r=>D(n=>$t(n)&&n>r))(t))),"gt"),lte:s(t=>Ot(z(e,(r=>D(n=>$t(n)&&n<=r))(t))),"lte"),gte:s(t=>Ot(z(e,(r=>D(n=>$t(n)&&n>=r))(t))),"gte"),int:s(()=>Ot(z(e,D(t=>$t(t)&&Number.isInteger(t)))),"int"),finite:s(()=>Ot(z(e,D(t=>$t(t)&&Number.isFinite(t)))),"finite"),positive:s(()=>Ot(z(e,D(t=>$t(t)&&t>0))),"positive"),negative:s(()=>Ot(z(e,D(t=>$t(t)&&t<0))),"negative")}),"x"),wD=Ot(D($t)),cr=s(e=>Object.assign(Ue(e),{between:s((t,r)=>cr(z(e,((n,i)=>D(o=>ar(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>cr(z(e,(r=>D(n=>ar(n)&&n<r))(t))),"lt"),gt:s(t=>cr(z(e,(r=>D(n=>ar(n)&&n>r))(t))),"gt"),lte:s(t=>cr(z(e,(r=>D(n=>ar(n)&&n<=r))(t))),"lte"),gte:s(t=>cr(z(e,(r=>D(n=>ar(n)&&n>=r))(t))),"gte"),positive:s(()=>cr(z(e,D(t=>ar(t)&&t>0))),"positive"),negative:s(()=>cr(z(e,D(t=>ar(t)&&t<0))),"negative")}),"A"),AD=cr(D(ar)),ID=Ue(D(function(e){return typeof e=="boolean"})),kD=Ue(D(function(e){return typeof e=="symbol"})),RD=Ue(D(function(e){return e==null})),TD=Ue(D(function(e){return e!=null}));var If=class If 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(If,"W");var xf=If,wf={matched:!1,value:void 0};function ye(e){return new Af(e,wf)}s(ye,"z");var Qi=class Qi{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={},u=s((l,p)=>{o=!0,a[l]=p},"a"),c=!n.some(l=>Et(l,this.input,u))||i&&!i(this.input)?wf:{matched:!0,value:r(o?Rs in a?a[Rs]:a:this.input,this.input)};return new Qi(this.input,c)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new Qi(this.input,n?{matched:!0,value:r(this.input,this.input)}:wf)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new xf(this.input)}run(){return this.exhaustive()}returnType(){return this}};s(Qi,"I");var Af=Qi;var Cv=["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 kf=2,Nv=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],qv=["query","header","path"],fr=["get","put","post","delete","options","head","patch","trace"],jv=["string","number","integer","boolean"],Ts=["allOf","anyOf","oneOf"];function pr(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}s(pr,"pick");function xt(e){return Av(e)}s(xt,"formatTag");function Lr(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return xt(r??t.defaultTag)}s(Lr,"getOperationTag");function Mv(e,t){let r={};for(let n in e.paths){let i=e.paths[n],o=pr(i,fr);for(let a in o){let u=o[a];if(!u||u.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let c=t.splitByTags?Lr(u,t):t.defaultTag;r[c]||(r[c]=[]),r[c].push(u)}}return r}s(Mv,"getOperationsByTag");var Lv=s(e=>`#/components/schemas/${e}`,"getSchemaRef"),Fr=s(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),Dn=s(e=>Fr(e).split("/").at(-1),"getSchemaNameByRef");function H(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}s(H,"isReferenceObject");function Cf(e){let t=YR(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return Re(t)}s(Cf,"normalizeString");function Fv(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}s(Fv,"wrapWithQuotesIfNeeded");function Vv(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}s(Vv,"unwrapQuotesIfNeeded");function YR(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}s(YR,"prefixStringStartingWithNumberIfNeeded");function Nf(e){let t=e.replaceAll("_","#");return Re(t.replaceAll("-","_")).replaceAll("#","_")}s(Nf,"pathParamToVariableName");var Mt=s(e=>jv.includes(e),"isPrimitiveType");function Bv(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(Bv,"escapeControlCharacters");function dr(e){return e.includes("application/")&&e.includes("json")||Nv.includes(e)||e.includes("text/")}s(dr,"isParamMediaTypeAllowed");function Cs(e){return e>=200&&e<300}s(Cs,"isMainResponseStatus");function Ns(e){return!(e>=200&&e<300)}s(Ns,"isErrorStatus");function Ln(e){return e==="application/json"}s(Ln,"isMediaTypeAllowed");function Rf({path:e,method:t,operation:r,options:n,keepOperationPrefixWithoutEnding:i}){let o=`${t}${JR(e)}`,a=r.operationId?Pt(r.operationId):o;if(n.removeOperationPrefixEndingWith&&i)return a.split(n.removeOperationPrefixEndingWith).map((c,l)=>l===0?c:ge(c)).join("");if(n.removeOperationPrefixEndingWith&&!i){let u=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);a=a.replace(u,"")}return Cv.includes(a)?o:a}s(Rf,"getOperationName");function Xi({path:e,method:t,operation:r,operationsByTag:n,options:i}){let o=i.splitByTags?Lr(r,i):i.defaultTag,a=Rf({path:e,method:t,operation:r,options:i});return n[o].filter(c=>Rf({path:e,method:t,operation:c,options:i})===a).length===1?a:Rf({path:e,method:t,operation:r,options:i,keepOperationPrefixWithoutEnding:!0})}s(Xi,"getUniqueOperationName");function Hv(e,t,r){let n=[];for(let i in e.paths){let o=e.paths[i],a=pr(o,fr);for(let u in a){let c=a[u];if(!c||c.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let l=Xi({path:i,method:u,operation:c,operationsByTag:t,options:r});n.push(l)}}return n}s(Hv,"getUniqueOperationNamesWithoutSplitByTags");var Dv=/({\w+})/g,QR=/[^\w\-]+/g;function JR(e){e=ge(As(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(Dv)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(Dv,"")}By${ge(r.slice(1,-1))}`}return e.replace(QR,"_")}s(JR,"pathToVariableName");var Tf=/{(\b\w+(?:-\w+)*\b)}/g;function Uv(e){let t=e.match(Tf);return t===null?e.replaceAll(Tf,":$1"):(t.forEach(r=>{let n=Nf(r.replaceAll(Tf,":$1"));e=e.replaceAll(r,n)}),e)}s(Uv,"replaceHyphenatedPath");var Fn=s(e=>e.method==="get","isQuery"),qs=s(e=>e.method!=="get","isMutation");var hr=s((e,t)=>Pf(ge(Cf(e)),t),"getZodSchemaName"),zv=s((e,t,r)=>Pf(ge(Cf(e)),`${t}${r}`),"getEnumZodSchemaName"),Pe=s(e=>!e.startsWith("z."),"isNamedZodSchema"),Vr=s((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),js=s(e=>Re(`${e}_${Ov}`),"getBodyZodSchemaName"),Gv=s((e,t)=>Re(`${e}_${t}${Ev}`),"getParamZodSchemaName"),XR=s(e=>Re(`${e}${xv}`),"getMainResponseZodSchemaName"),eT=s((e,t)=>Re(`${e}_${t}_${wv}`),"getErrorResponseZodSchemaName");function Ms({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),o=Vr(t,r,n);return!Cs(i)&&e!=="default"&&Ns(i)?eT(o,e):XR(o)}s(Ms,"getResponseZodSchemaName");var eo=s((e,t)=>Iv(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),Zv=s((e,t)=>Pe(t)?`${e.options.includeNamespaces?`${re({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),Ds=s((e,t)=>Pe(t)?`${e.options.includeNamespaces?`${re({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${eo(t,e.options)}`:t,"getImportedZodSchemaInferedTypeName");function Ls(e){return ye(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}s(Ls,"primitiveTypeToTsType");function Vn({zodSchemaName:e,schema:t,resolver:r}){let n="void",i;e&&Pe(e)?(n=Ds(r,e),i=r.getTagByZodSchemaName(e)):t!=null&&t.type&&Mt(t==null?void 0:t.type)&&(n=Ls(t==null?void 0:t.type));let o=n.split(".");return{type:o[o.length-1],...o.length>1?{namespace:o[0]}:{},...i?{filePath:or({type:"models",tag:i,includeTagDir:!0,options:r.options})}:{}}}s(Vn,"getTsTypeBase");function Br({schema:e,isCircular:t,parentTypes:r,resolver:n}){if(!e)return{metaType:"primitive"};for(let i of Ts){let o=e[i];if(o)if(o.length>1){let a=o.map(u=>{let c=n.resolveObject(u);return Br({schema:c,parentTypes:r,resolver:n})});return a.every(({metaType:u})=>u==="object")?{metaType:"object",objectProperties:a.reduce((u,{objectProperties:c})=>{let l=c.map(({name:p})=>p);return[...u.filter(({name:p})=>!l.includes(p)),...c]},[])}:{metaType:"composite",[i]:a}}else e=n.resolveObject(o[0])}return e.type==="array"?{metaType:"array",arrayType:Kv({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:tT({schema:e,parentTypes:r,resolver:n})}:{metaType:"primitive"}}s(Br,"getSchemaTsMetaType");function Kv({arraySchema:e,parentTypes:t,resolver:r}){let n,i;if(H(e.items)){let c=e.items.$ref;n=r.getZodSchemaNameByRef(c),i=r.getSchemaByRef(c)}else i=e.items;let o=Vn({zodSchemaName:n,schema:i,resolver:r}),a=Wv(o,t),u=Br({schema:i,isCircular:a,parentTypes:[...t,o],resolver:r});return{...o,...u}}s(Kv,"getArraySchemaTsType");function tT({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(H(i)){let u=r.getZodSchemaNameByRef(i.$ref),c=r.getSchemaByRef(i.$ref),l=Vn({zodSchemaName:u,schema:c,resolver:r}),p=Wv(l,t),f=Br({schema:c,isCircular:p,parentTypes:[...t,l],resolver:r});return{name:n,isRequired:o,...l,...f}}else if(i.type==="array"){let u=Kv({arraySchema:i,parentTypes:t,resolver:r});return{name:n,isRequired:o,type:"array",metaType:"array",arrayType:u}}else if(Mt(i.type))return{name:n,isRequired:o,type:Ls(i.type),metaType:"primitive"};return{name:n,isRequired:o,type:"void",metaType:"primitive"}})}s(tT,"getSchemaTsProperties");function Wv(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}s(Wv,"getIsCircular");var qf={"Content-Type":"application/json",Accept:"application/json"},Yv="data";function wt(e){return!H(e)}s(wt,"isSchemaObject");function Qv(e){return e.type==="array"}s(Qv,"isArraySchemaObject");function Jv(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(rT(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(H(i)){let a=o(i.$ref);a&&n.required.forEach(u=>{var c;n.properties[u]=((c=a==null?void 0:a.properties)==null?void 0:c[u])??{}})}else{let a=i.properties??{};n.required.forEach(u=>{a[u]&&(n.properties[u]=a[u]??{})})}},"patchRequiredSchemaInLoop")}}s(Jv,"inferRequiredSchema");var rT=s(e=>!H(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var to=s(e=>Yi(Re(e.operationName)),"getEndpointName");function Xv(e,t){return`${t.includeNamespaces?`${re({type:"endpoints",tag:ro(e,t),options:t})}.`:""}${to(e)}`}s(Xv,"getImportedEndpointName");var e_=s(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function ro(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return xt(r??t.defaultTag)}s(ro,"getEndpointTag");function jf(e,t){return t.parameters.map(r=>{var i,o,a,u;let n="string";if(Pe(r.zodSchema))n=Ds(e,r.zodSchema);else if((i=r.parameterObject)!=null&&i.schema&&wt(r.parameterObject.schema)){let c=(a=(o=r.parameterObject)==null?void 0:o.schema)==null?void 0:a.type;c&&Mt(c)&&(n=Ls(c))}return{name:Pt(r.name),type:n,paramType:r.type,required:((u=r.parameterObject)==null?void 0:u.required)??!0}}).sort((r,n)=>{if(r.required===n.required){let i=["Path","Body","Query","Header"];return i.indexOf(r.paramType)-i.indexOf(n.paramType)}return r.required?-1:1})}s(jf,"mapEndpointParamsToFunctionParams");function t_(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let o=Rv(i.name)?i.name:`"${i.name}"`,a=Pt(i.name);return{...i,name:o,value:a}}),r={};return e.requestFormat!==qf["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==qf.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=Pt(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}s(t_,"getEndpointConfig");var r_=s((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),n_=s((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),i_=s((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),G={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},L5=Object.keys(G.modifier),nT=Object.keys(G.color),iT=Object.keys(G.bgColor),F5=[...nT,...iT];function oT(){let e=new Map;for(let[t,r]of Object.entries(G)){for(let[n,i]of Object.entries(r))G[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=G[n],e.set(i[0],i[1]);Object.defineProperty(G,t,{value:r,enumerable:!1})}return Object.defineProperty(G,"codes",{value:e,enumerable:!1}),G.color.close="\x1B[39m",G.bgColor.close="\x1B[49m",G.color.ansi=r_(),G.color.ansi256=n_(),G.color.ansi16m=i_(),G.bgColor.ansi=r_(10),G.bgColor.ansi256=n_(10),G.bgColor.ansi16m=i_(10),Object.defineProperties(G,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(o=>o+o).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:s(t=>G.rgbToAnsi256(...G.hexToRgb(t)),"value"),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let u=t%36;r=Math.floor(t/36)/5,n=Math.floor(u/6)/5,i=u%6/5}let o=Math.max(r,n,i)*2;if(o===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return o===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:s((t,r,n)=>G.ansi256ToAnsi(G.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:s(t=>G.ansi256ToAnsi(G.hexToAnsi256(t)),"value"),enumerable:!1}}),G}s(oT,"assembleStyles");var sT=oT(),ut=sT;var Vs=De(require("process"),1),s_=De(require("os"),1),Mf=De(require("tty"),1);function ze(e,t=globalThis.Deno?globalThis.Deno.args:Vs.default.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}s(ze,"hasFlag");var{env:Z}=Vs.default,Fs;ze("no-color")||ze("no-colors")||ze("color=false")||ze("color=never")?Fs=0:(ze("color")||ze("colors")||ze("color=true")||ze("color=always"))&&(Fs=1);function aT(){if("FORCE_COLOR"in Z)return Z.FORCE_COLOR==="true"?1:Z.FORCE_COLOR==="false"?0:Z.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Z.FORCE_COLOR,10),3)}s(aT,"envForceColor");function uT(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}s(uT,"translateLevel");function cT(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=aT();n!==void 0&&(Fs=n);let i=r?Fs:n;if(i===0)return 0;if(r){if(ze("color=16m")||ze("color=full")||ze("color=truecolor"))return 3;if(ze("color=256"))return 2}if("TF_BUILD"in Z&&"AGENT_NAME"in Z)return 1;if(e&&!t&&i===void 0)return 0;let o=i||0;if(Z.TERM==="dumb")return o;if(Vs.default.platform==="win32"){let a=s_.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Z)return"GITHUB_ACTIONS"in Z||"GITEA_ACTIONS"in Z?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in Z)||Z.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in Z)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Z.TEAMCITY_VERSION)?1:0;if(Z.COLORTERM==="truecolor"||Z.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Z){let a=Number.parseInt((Z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Z.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Z.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Z.TERM)||"COLORTERM"in Z?1:o}s(cT,"_supportsColor");function o_(e,t={}){let r=cT(e,{streamIsTTY:e&&e.isTTY,...t});return uT(r)}s(o_,"createSupportsColor");var lT={stdout:o_({isTTY:Mf.default.isatty(1)}),stderr:o_({isTTY:Mf.default.isatty(2)})},a_=lT;function u_(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,o=0,a="";do a+=e.slice(o,n)+t+r,o=n+i,n=e.indexOf(t,o);while(n!==-1);return a+=e.slice(o),a}s(u_,"stringReplaceAll");function c_(e,t,r,n){let i=0,o="";do{let a=e[n-1]==="\r";o+=e.slice(i,a?n-1:n)+t+(a?`\r
|
|
73
73
|
`:`
|
|
74
74
|
`)+r,i=n+1,n=e.indexOf(`
|
|
75
|
-
`,i)}while(n!==-1);return
|
|
76
|
-
`);return
|
|
75
|
+
`,i)}while(n!==-1);return o+=e.slice(i),o}s(c_,"stringEncaseCRLFWithFirstIndex");var{stdout:l_,stderr:f_}=a_,Df=Symbol("GENERATOR"),Bn=Symbol("STYLER"),no=Symbol("IS_EMPTY"),p_=["ansi","ansi","ansi256","ansi16m"],Hn=Object.create(null),fT=s((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=l_?l_.level:0;e.level=t.level===void 0?r:t.level},"applyOptions"),Vf=class Vf{constructor(t){return d_(t)}};s(Vf,"Chalk");var Bs=Vf,d_=s(e=>{let t=s((...r)=>r.join(" "),"chalk");return fT(t,e),Object.setPrototypeOf(t,io.prototype),t},"chalkFactory");function io(e){return d_(e)}s(io,"createChalk");Object.setPrototypeOf(io.prototype,Function.prototype);for(let[e,t]of Object.entries(ut))Hn[e]={get(){let r=Hs(this,Ff(t.open,t.close,this[Bn]),this[no]);return Object.defineProperty(this,e,{value:r}),r}};Hn.visible={get(){let e=Hs(this,this[Bn],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Lf=s((e,t,r,...n)=>e==="rgb"?t==="ansi16m"?ut[r].ansi16m(...n):t==="ansi256"?ut[r].ansi256(ut.rgbToAnsi256(...n)):ut[r].ansi(ut.rgbToAnsi(...n)):e==="hex"?Lf("rgb",t,r,...ut.hexToRgb(...n)):ut[r][e](...n),"getModelAnsi"),pT=["rgb","hex","ansi256"];for(let e of pT){Hn[e]={get(){let{level:r}=this;return function(...n){let i=Ff(Lf(e,p_[r],"color",...n),ut.color.close,this[Bn]);return Hs(this,i,this[no])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Hn[t]={get(){let{level:r}=this;return function(...n){let i=Ff(Lf(e,p_[r],"bgColor",...n),ut.bgColor.close,this[Bn]);return Hs(this,i,this[no])}}}}var dT=Object.defineProperties(()=>{},{...Hn,level:{enumerable:!0,get(){return this[Df].level},set(e){this[Df].level=e}}}),Ff=s((e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},"createStyler"),Hs=s((e,t,r)=>{let n=s((...i)=>hT(n,i.length===1?""+i[0]:i.join(" ")),"builder");return Object.setPrototypeOf(n,dT),n[Df]=e,n[Bn]=t,n[no]=r,n},"createBuilder"),hT=s((e,t)=>{if(e.level<=0||!t)return e[no]?"":t;let r=e[Bn];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=u_(t,r.close,r.open),r=r.parent;let o=t.indexOf(`
|
|
76
|
+
`);return o!==-1&&(t=c_(t,i,n,o)),n+t+i},"applyStyle");Object.defineProperties(io.prototype,Hn);var Y5=io(),Q5=io({level:f_?f_.level:0});var Ge=new Bs;function h_(e){return{type:"invalid-schema",message:`${e} has both reference and composite keyword`}}s(h_,"getInvalidSchemaError");function m_(e){return{type:"invalid-operation-id",message:`Operation ${Ge.gray(e)}`}}s(m_,"getInvalidOperationIdError");function g_(e,t){return{type:"missing-path-parameter",message:`Path ${Ge.gray(t)} is missing [${e.map(({name:r})=>Ge.gray(r)).join(", ")}]`}}s(g_,"getMissingPathParameterError");function y_(e){return{type:"not-allowed-inline-enum",message:e}}s(y_,"getNotAllowedInlineEnumError");function At({schema:e,meta:t,options:r}){let n=[];ye(e.type).with("string",()=>n.push(yT(e))).with("number","integer",()=>n.push(_T(e))).with("array",()=>n.push(bT(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
|
|
77
77
|
`,"\r",`\r
|
|
78
|
-
`].some(
|
|
78
|
+
`].some(o=>String.prototype.includes.call(e.description,o))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(mT(e,t),(r==null?void 0:r.withDefaultValues)!==!1?gT(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}s(At,"getZodChain");function mT(e,t){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable?"nullable()":t!=null&&t.isRequired?"":"optional()"}s(mT,"getZodChainablePresence");function gT(e){return e.default!==void 0?`default(${ye(e.type).with("number","integer",()=>Vv(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}s(gT,"getZodChainableDefault");function yT(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(${vT(e.pattern)})`),e.format){let r=ye(e.format).with("email",()=>"email()").with("hostname","uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}s(yT,"getZodChainableStringValidations");function vT(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=Bv(e),`/${e}/`}s(vT,"formatPatternIfNeeded");function _T(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("."))}s(_T,"getZodChainableNumberValidations");function bT(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}s(bT,"getZodChainableArrayValidations");var Hr=s(e=>e.reduce((t,r)=>t+r,0),"sum");function ne(e,t){if(!t)return e;if(H(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?$e("oneOf")+ne(e,{...t,type:t.type[0]}):e+$e("oneOf")+Hr(t.type.map(r=>ne(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?$e("oneOf")+ne(e,t.oneOf[0]):e+$e("oneOf")+Hr(t.oneOf.map(r=>ne(0,r)));if(t.anyOf)return t.anyOf.length===1?$e("anyOf")+ne(e,t.anyOf[0]):e+$e("anyOf")+Hr(t.anyOf.map(r=>ne(0,r)));if(t.allOf)return t.allOf.length===1?$e("allOf")+ne(e,t.allOf[0]):e+$e("allOf")+Hr(t.allOf.map(r=>ne(0,r)));if(!t.type)return e;if(Mt(t.type))return t.enum?e+v_(t)+$e("enum")+Hr(t.enum.map(r=>ne(0,r))):e+v_(t);if(t.type==="array")return t.items?$e("array")+ne(e,t.items):$e("array")+ne(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.additionalProperties)return t.additionalProperties===!0?$e("record")+ne(e):$e("record")+ne(e,t.additionalProperties);if(t.properties){let r=Object.values(t.properties);return e+$e("object")+Hr(r.map(n=>ne(0,n)))}return $e("empty-object")+ne(e)}return e}s(ne,"getOpenAPISchemaComplexity");function v_(e){return ye(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}s(v_,"complexityByType");function $e(e){return ye(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","record","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}s($e,"complexityByComposite");var Bf=class Bf{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;H(t)&&(this.ref=t.$ref),i&&(this.enumRef=i),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;enumRef;children=[];meta;getCodeString(t,r){var o,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=(o=this.resolver)==null?void 0:o.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.includeNamespaces&&i&&i!==t?`${re({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return ne(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};s(Bf,"ZodSchema");var oo=Bf;function W({schema:e,resolver:t,meta:r,tag:n}){var g;let i=new oo(e,t,r),o={parent:i.inherit(r==null?void 0:r.parent),referencedBy:[...i.meta.referencedBy]},a={resolver:t,meta:o,tag:n};if(H(e))return ST({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});let u=$T({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(u)return u;let c=PT({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(c)return c;let l=OT({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(l)return l;let p=ET({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(p)return p;let f=xT({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(f)return f;let d=t.options.allReadonly?".readonly()":"";if(Qv(e))return e.items?i.assign(`z.array(${W({...a,schema:e.items}).getCodeString(n,t.options)}${At({schema:e.items,meta:{...o,isRequired:!0},options:t.options})})${d}`):i.assign(`z.array(z.any())${d}`);let h=e.type?e.type.toLowerCase():void 0;if(h==="object"||e.properties||e.additionalProperties){let y=t.options.additionalPropertiesDefaultValue!==void 0?t.options.additionalPropertiesDefaultValue:!0,_=(e.additionalProperties===null||e.additionalProperties===void 0?y:e.additionalProperties)===!1?"":".passthrough()";if(typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0)return i.assign(`z.record(${W({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+At({schema:e.additionalProperties,meta:{...o,isRequired:!0},options:t.options})})`);let b=e.required&&e.required.length>0,S=t.options.withImplicitRequiredProps?!1:!((g=e.required)!=null&&g.length),E="{}";e.properties&&(E="{ "+Object.entries(e.properties).map(([ie,oe])=>{var Bt;let le={...o,isRequired:S?!0:b?(Bt=e.required)==null?void 0:Bt.includes(ie):t.options.withImplicitRequiredProps,name:ie},Me=oe;if(H(oe)&&t&&(Me=t.getSchemaByRef(oe.$ref),!Me))throw new Error(`Schema ${oe.$ref} not found`);let Ee=W({...a,schema:oe,meta:le}).getCodeString(n,t.options)+At({schema:Me,meta:le,options:t.options});return[ie,Ee]}).map(([ie,oe])=>`${Fv(ie)}: ${oe}`).join(", ")+" }");let $=S?".partial()":"",M=t.options.strictObjects?".strict()":"";return i.assign(`z.object(${E})${$}${M}${_}${d}`)}if(!h)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${h}`)}s(W,"getZodSchema");function ST({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!H(e))return;let o=t.meta.referencedBy.slice(0,-1).map(c=>c.ref?r.getZodSchemaNameByRef(c.ref)??c.ref:void 0).filter(Boolean),a=r.getZodSchemaNameByRef(e.$ref);if(o.length>1&&o.includes(a))return t.assign(r.getCodeByZodSchemaName(t.ref));let u=r.getCodeByZodSchemaName(e.$ref);if(!u){let c=r.getSchemaByRef(e.$ref);if(!c)throw new Error(`Schema ${e.$ref} not found`);u=W({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,u,i),t}s(ST,"getReferenceZodSchema");function PT({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!wt(e)||!e.oneOf)return;if(e.oneOf.length===1){let u=W({schema:e.oneOf[0],resolver:r,meta:n,tag:i});return t.assign(u.getCodeString(i,r.options))}let o=(a=e.oneOf)==null?void 0:a.some(u=>wt(u)&&((u==null?void 0:u.allOf)||[]).length>1);if(e.discriminator&&!o){let u=e.discriminator.propertyName;return t.assign(`
|
|
79
79
|
z.discriminatedUnion("${u}", [${e.oneOf.map(c=>W({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])
|
|
80
|
-
`)}return t.assign(`z.union([${e.oneOf.map(u=>W({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o($T,"getOneOfZodSchema");function OT({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!wt(e)||!Array.isArray(e.type)))return e.type.length===1?W({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(s=>W({schema:{...e,type:s},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(OT,"getArrayZodSchema");function ET({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!wt(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=W({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let s=e.anyOf.map(a=>W({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${s}])`)}o(ET,"getAnyOfZodSchema");function xT({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!wt(e)||!e.allOf)return;if(e.allOf.length===1){let f=W({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(f.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:s,noRequiredOnlyAllof:a,composedRequiredSchema:u}=Xv(e),c=a.map(f=>{let d=W({schema:f,resolver:r,meta:n,tag:i});return r&&s(f,r.getSchemaByRef.bind(r)),d});u.required.length&&c.push(W({schema:u,resolver:r,meta:n,tag:i}));let l=c.at(0),p=c.slice(1).map(f=>`merge(${f.getCodeString(i,r.options)})`).join(".");return t.assign(`${l.getCodeString(i,r.options)}.${p}`)}o(xT,"getAllOfZodSchema");function wT({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!wt(e))return;let s=e.type?e.type.toLowerCase():void 0;if(s&&Mt(s)){if(e.enum){if(s==="string")return AT({schema:e,zodSchema:t,resolver:r,meta:n,tag:i});if(e.enum.some(a=>typeof a=="string"))return t.assign("z.never()");if(e.enum.length===1){let a=e.enum[0];return t.assign(`z.literal(${a===null?"null":a})`)}return t.assign(`z.union([${e.enum.map(a=>`z.literal(${a===null?"null":a})`).join(", ")}])`)}return t.assign(ye(s).with("integer",()=>"z.number()").with("string",()=>ye(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(a=>`z.${a}()`))}}o(wT,"getPrimitiveZodSchema");function AT({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){if(!wt(t))return;let s=Uf(t),a=e.getEnumZodSchemaDataByCode(s);if(!e.options.extractEnums||!a)return r.assign(s);if(!a.zodSchemaName||!a.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${s}`);let u=e.options.includeNamespaces&&a.tag!==i?`${re({type:"models",tag:a.tag,options:e.options})}.`:"";return new so(t,e,n,a.zodSchemaName).inherit(r),r.assign(`${u}${a.zodSchemaName}`)}o(AT,"getEnumZodSchema");function Uf(e){var t;return`z.enum([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}o(Uf,"getEnumZodSchemaCode");function Un({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var u;let s=t.getCodeString();if((!Pe(s)||t.ref===void 0)&&r){if(t.complexity<Rf)return s;let c=hr(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(c);){if((u=n.getZodSchemaNamesByCompositeCode(s))!=null&&u.includes(c))return c;if(n.getCodeByZodSchemaName(c)===c)return c;throw new Error(`Can't uniquely resolve zod schema name: ${c}`)}return n.setZodSchema(c,s,i),n.addZodSchemaForCompositeCode(s,t,c,e),c}let a=n.getCodeByZodSchemaName(s);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return ne(0,n.getSchemaByRef(t.ref))<Rf?n.getCodeByZodSchemaName(s):s;throw new Error(`Invalid ref: ${t.ref}`)}o(Un,"resolveZodSchemaName");function b_({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var h,g;let s=e.resolveObject(t.requestBody);if(!s)return;let u=Object.keys(s.content??{}).find(dr);if(!u)return;let c=(g=(h=s.content)==null?void 0:h[u])==null?void 0:g.schema;if(!c)return;let l=W({schema:c,resolver:e,meta:{isRequired:s.required??!0},tag:i}),p=e.resolveObject(c),f=Un({schema:p,zodSchema:l,fallbackName:Ms(Vr(r,n,i)),resolver:e,tag:i}),d=At({schema:p,meta:l.meta,options:e.options});return{endpointParameter:{name:Qv,type:"Body",description:s.description,zodSchema:f+d,bodyObject:s},requestFormat:u}}o(b_,"getEndpointBody");function S_({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let s=e.resolveObject(t);if(!jv.includes(s.in))return;let a={};if(s.content){let f=Object.keys(s.content??{}),d=f.find(dr);if(!d)throw new Error(`Unsupported media type for param ${s.name}: ${f.join(", ")}`);let h=s.content[d];if(!h)throw new Error(`No content with media type for param ${s.name}: ${d}`);a=(h==null?void 0:h.schema)??h}else s.schema&&(a=s.schema);e.options.withDescription&&a&&(a.description=(s.description??"").trim());let u=W({schema:a,resolver:e,meta:{isRequired:s.in==="path"?!0:s.required??!1},tag:i}),c=e.resolveObject(a),l=At({schema:c,meta:u.meta,options:e.options}),p=Un({schema:c,zodSchema:u.assign(u.getCodeString(i)+l),fallbackName:Zv(Vr(r,n,i),s.name),resolver:e,tag:i});return{name:ye(s.in).with("path",()=>qf(s.name)).otherwise(()=>s.name),type:ye(s.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:p,parameterObject:s}}o(S_,"getEndpointParameter");function $_(e){var r,n,i;let t=[];for(let s in e.openApiDoc.paths){let a=e.openApiDoc.paths[s],u=pr(a,fr),c=P_(a.parameters??[]);for(let l in u){let p=u[l];if(!p||p.deprecated&&!e.options.withDeprecatedEndpoints)continue;let f=p.operationId&&p.operationId!==Pt(p.operationId);p.operationId&&f&&e.validationErrors.push(g_(p.operationId));let d=Object.entries({...c,...P_(p.parameters??[])}).map(([,b])=>b),h=eo({path:s,method:l,operation:p,operationsByTag:e.operationsByTag,options:e.options}),g=e.operationNames.filter(b=>b===h).length<=1,y=Lr(p,e.options),v={method:l,path:zv(s),operationName:h,description:p.description,tags:(r=p.tags)==null?void 0:r.map(xt),requestFormat:"application/json",parameters:[],response:"",errors:[]};if(p.requestBody){let b=b_({resolver:e,operation:p,operationName:h,isUniqueOperationName:g,tag:y});b&&(v.parameters.push(b.endpointParameter),v.requestFormat=b.requestFormat)}for(let b of d){let S=S_({resolver:e,param:b,operationName:h,isUniqueOperationName:g,tag:y});S&&v.parameters.push(S)}let _=IT(v);_.forEach(b=>{v.parameters.push(b)}),_.length>0&&e.validationErrors.push(y_(_,s));for(let b in p.responses){let S=e.resolveObject(p.responses[b]),$=Object.keys(S.content??{}).find(Ln),M,j;if($?(v.responseFormat=$,M=(i=(n=S.content)==null?void 0:n[$])==null?void 0:i.schema):j=Pf,M){let ie=W({schema:M,resolver:e,meta:{isRequired:!0},tag:y}),oe=e.resolveObject(M);j=Un({schema:oe,zodSchema:ie,fallbackName:ie.ref?void 0:Ds({statusCode:b,operationName:h,isUniqueOperationName:g,tag:y}),resolver:e,tag:y})+At({schema:oe,meta:ie.meta,options:e.options})}if(j){let ie=Number(b);Ns(ie)?(v.response=j,v.responseObject=S):b!=="default"&&qs(ie)&&v.errors.push({zodSchema:j,status:ie,description:S.description})}}v.response||(v.response=Pf),t.push(v)}}return t}o($_,"getEndpointsFromOpenAPIDoc");function P_(e){return Object.fromEntries((e??[]).map(t=>[H(t)?t.$ref:t.name,t]))}o(P_,"getParameters");function IT(e){return[...e.path.matchAll(/:([a-zA-Z0-9_]+)/g)].map(r=>r[1]).filter(r=>e.parameters.findIndex(({name:n})=>n===r)===-1).map(r=>kT(r))}o(IT,"getMissingPathParameters");function kT(e){return{name:e,type:"Path",zodSchema:"z.string()",parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}o(kT,"getPathParameterFromName");function ct(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(H(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(Cs.some(s=>s in i&&i[s])){let s=i.allOf??i.anyOf??i.oneOf??[];for(let a of s){if((n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))===!0)return;ct(a,{data:r,onSchema:n})}}if(i.properties)for(let[s,a]of Object.entries(i.properties)){if(n({type:"property",parentSchema:e,schema:a,data:r,propertyName:s})===!0)return;ct(a,t)}if(i.additionalProperties)for(let[s,a]of Object.entries(i.additionalProperties)){if(!(a instanceof Object)||n({type:"additionalProperty",parentSchema:e,schema:a,data:r,propertyName:s})===!0)return;ct(a,t)}if(i.type==="array"){let s=e.items;if(n({type:"array",parentSchema:e,schema:s,data:r})===!0)return;ct(s,t)}}o(ct,"iterateSchema");function O_(e,t){let r=RT(e,t),n=TT(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}o(O_,"getOpenAPISchemaDependencyGraph");function RT(e,t){let r={},n={};return e.forEach(i=>CT({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}o(RT,"getRefsDependencyGraph");function TT(e,t){let r={},n={},i=o((s,a)=>{n[a].add(s),t[s]&&a!==s&&t[s].forEach(u=>{let c=`${a}__${u}`;r[c]||(r[c]=!0,i(u,a))})},"visit");return e.forEach(s=>{let a=t[s];a&&(n[s]||(n[s]=new Set),a.forEach(u=>i(u,s)))}),n}o(TT,"getDeepRefsDependencyGraph");function CT({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let s=o(a=>{if(a.type!=="reference"||!a.data)return;let{schema:u,data:c}=a;if(i[c.fromRef]||(i[c.fromRef]=new Set),i[c.fromRef].add(u.$ref),n[u.$ref])return!0;n[c.fromRef]=!0,ct(r(u.$ref),{data:{fromRef:u.$ref},onSchema:s})},"onSchema");return ct(e,{data:{fromRef:t},onSchema:s}),{visitedRefs:n,refsDependencyGraph:i}}o(CT,"getSchemaRefsDependencyGraph");function zs(e,t,r){let n=[];return ct(t,{onSchema:o(i=>{i.type==="reference"?n.push(i.schema):H(i.parentSchema)&&e.validationErrors.push(m_(r))},"onSchema")}),n}o(zs,"getSchemaRefObjs");function E_(e,t){return t.map(i=>Fr(i.$ref)).reduce((i,s)=>{let a=e.dependencyGraph.deepDependencyGraph[s];return[...i,s,...Array.from(a??[])]},[])}o(E_,"getDeepSchemaRefObjs");function ao({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&x_({schema:e,nameSegments:t,...n}),ct(e,{data:{nameSegments:t},onSchema:o(i=>{var a;if(i.type==="reference")return!0;let s=[...((a=i.data)==null?void 0:a.nameSegments)??[]];(i.type==="property"||i.type==="additionalProperty")&&s.push(i.propertyName),x_({schema:i.schema,nameSegments:[...s],...n})},"onSchema")})}o(ao,"updateEnumZodSchemaData");function x_({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:s=[]}){if(!t||H(t)||!t.enum)return;let a=Uf(t),u=e.enumZodSchemaData.find(c=>c.code===a);u?(u.meta.zodSchemaNameSegments.push(s),u.meta.tags.push(...i),u.meta.schemaRefs.push(...r?[r]:[])):e.enumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[s],tags:[...i],schemaRefs:r?[r]:[]}}),e.validationErrors.push(v_(r?`schema ${Ge.gray(Dn(r))} property ${Ge.gray(s[s.length-1])}`:n??s.join("->")))}o(x_,"handleEnumZodSchemaDataUpdate");function A_(e){e.enumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(s=>s[s.length-1]).filter(Boolean),i=Of(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=Gv(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!w_(e);)NT(e,t+2),t++;if(!w_(e))throw new Error("Failed to resolve unique names for enum zod schemas")}o(A_,"resolveEnumZodSchemaNames");function w_(e){return e.enumZodSchemaData.every(t=>e.enumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length==1)}o(w_,"allEnumZodSchemaNamesAreUnique");function NT(e,t){e.enumZodSchemaData.forEach(r=>{let n=e.enumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&qT(n,t)})}o(NT,"additionalResolveEnumZodSchemaName");function qT(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1)r.zodSchemaName=[ge(n[0]),r.zodSchemaName].filter(Boolean).join("");else{let i=Of(n);r.zodSchemaName=[i?ge(i):"",r.zodSchemaName].filter(Boolean).join("")}})}o(qT,"suffixWithPreviousSegmentName");function I_(e){e.enumZodSchemaData.forEach(t=>{let r=Ne(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}o(I_,"resolveEnumZodSchemaTags");var zf=class zf{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=O_(this.schemaRefs,this.getSchemaByRef.bind(this)),this.operationsByTag=Dv(t,r),this.operationNames=Uv(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];enumZodSchemaData=[];dependencyGraph;operationsByTag={};operationNames=[];validationErrors=[];get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(Fv)}getSchemaByRef(t){return this.docSchemas[Dn(t)]}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(Fr(t)))==null?void 0:n.zodSchemaName)??((i=this.enumZodSchemaData.find(s=>s.zodSchemaName===t))==null?void 0:i.zodSchemaName);if(!r)throw new Error(`Zod schema not found for ref: ${t}`);return r}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var c,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.enumZodSchemaData.find(p=>p.zodSchemaName===t);if(r)return xt(r.tag??this.options.defaultTag);let n=this.getRefByZodSchemaName(t),i=n?((c=this.getSchemaDataByRef(n))==null?void 0:c.tags)??[]:[],s=((l=this.zodSchemaData.find(p=>p.zodSchemaName===t))==null?void 0:l.tags)??[],a=Ne(i,s),u=a.length===1?a[0]:this.options.defaultTag;return xt(u??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(s=>s.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let s={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(u=>u.code===t);a?a.zodSchemas.push(s):this.compositeZodSchemaData.push({code:t,zodSchemas:[s]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemaData.find(r=>r.code===t)}getEnumZodSchemaNamesReferencedBySchemaRef(t){return this.enumZodSchemaData.reduce((r,{zodSchemaName:n,meta:i})=>(n&&i.schemaRefs.includes(t)&&r.push(n),r),[])}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}getEnumZodSchemas(){return this.enumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return H(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}initialize(){var t,r,n,i,s,a;this.schemaRefs.forEach(u=>{let c=Fr(u),l=Dn(c),p=hr(l,this.options.schemaSuffix);this.schemaData.push({ref:c,name:l,zodSchemaName:p,tags:[]})});for(let u in this.openApiDoc.paths){let c=this.openApiDoc.paths[u],l=pr(c,fr);for(let p in l){let f=l[p];if(!f||f.deprecated&&!((t=this.options)!=null&&t.withDeprecatedEndpoints))continue;let d=Lr(f,this.options),h=eo({path:u,method:p,operation:f,operationsByTag:this.operationsByTag,options:this.options}),g=this.operationNames.filter(b=>b===h).length<=1,y=Re(Vr(h,g,d)),v=[];if((r=f.parameters)==null||r.map(b=>{let S=b,E=S.schema,$=`operation ${Ge.gray(f.operationId??u)} parameter ${Ge.gray(S.name)}`;v.push(...zs(this,E,$)),this.options.extractEnums&&ao({resolver:this,schema:E,schemaInfo:$,tags:[d],nameSegments:[y,S.name],includeSelf:!0})}),f.requestBody){let b=this.resolveObject(f.requestBody),E=Object.keys(b.content??{}).find(dr);if(E){let $=(i=(n=b.content)==null?void 0:n[E])==null?void 0:i.schema,M=`operation ${Ge.gray(f.operationId)} request body`;v.push(...zs(this,$,M)),this.options.extractEnums&&ao({resolver:this,schema:$,schemaInfo:M,tags:[d],nameSegments:[Ms(y)]})}}for(let b in f.responses){let S=this.resolveObject(f.responses[b]),$=Object.keys(S.content??{}).find(Ln);if($){let M=(a=(s=S.content)==null?void 0:s[$])==null?void 0:a.schema,j=`operation ${Ge.gray(f.operationId)} response body`;v.push(...zs(this,M,j)),this.options.extractEnums&&ao({resolver:this,schema:M,schemaInfo:j,tags:[d],nameSegments:[Ds({statusCode:b,operationName:h,isUniqueOperationName:g,tag:d})]})}}E_(this,v).forEach(b=>{let S=this.getSchemaDataByRef(b);S&&S.tags.push(d)})}}this.options.extractEnums&&(this.schemaRefs.forEach(u=>{var l;let c=Fr(u);ao({resolver:this,schema:this.getSchemaByRef(c),schemaRef:c,tags:((l=this.getSchemaDataByRef(c))==null?void 0:l.tags)??[],nameSegments:[Dn(c)]})}),A_(this),I_(this))}};o(zf,"SchemaResolver");var Gs=zf;function k_(e){var r;let t={};return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let s=hr(n,e.options.schemaSuffix);if(!t[s]){let a=e.getTagByZodSchemaName(s);t[s]=W({schema:i,resolver:e,tag:a}).getCodeString(a)}}),t}o(k_,"getZodSchemasFromOpenAPIDoc");function R_(e){let t=[],r={};function n(i,s){Array.isArray(s)||(s=[]),s.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{s.includes(a)||r[a]||n(a,s.slice(0))}),t.includes(i)||t.push(i)}return o(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}o(R_,"topologicalSort");function T_(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[s])=>t.indexOf(i)-t.indexOf(s)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}o(T_,"sortObjKeysFromArray");function C_(e,t){let r=R_(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return T_(t,r)}o(C_,"sortZodSchemasByTopology");function N_(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let s=e.getRefByZodSchemaName(n),a=s&&e.isSchemaCircular(s);r[hr(n,e.options.schemaSuffix)]=a?`z.lazy(() => ${i})`:i}),r}o(N_,"wrapCircularZodSchemas");function Zs(e,t){let r=new Gs(e,t),n=$_(r),s={...k_(r),...r.getZodSchemas()};return s=N_(r,s),s=C_(r,s),s={...r.getEnumZodSchemas(),...s},{resolver:r,data:jT({resolver:r,endpoints:n,zodSchemas:s,options:t})}}o(Zs,"getDataFromOpenAPIDoc");function jT({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(s=>{let a=no(s,n);q_(a,i).endpoints.push(s)}),Object.entries(r).forEach(([s,a])=>{let u=e.getTagByZodSchemaName(s);u&&(q_(u,i).zodSchemas[s]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}o(jT,"splitDataByTags");function q_(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}o(q_,"getTagElement");async function j_(e,t){let{resolver:r,data:n}=await Zs(e,t),i=[],s=[];return n.forEach(({endpoints:u,zodSchemas:c},l)=>{var d;((d=t.excludeTags)==null?void 0:d.findIndex(h=>h.toLowerCase()===l.toLowerCase()))===-1&&(Object.keys(c).forEach(h=>{let g=r.getRefByZodSchemaName(h),y=g?r.getSchemaByRef(g):r.getSchemaByCompositeZodSchemaName(h),v=Vn({zodSchemaName:h,schema:y,resolver:r}),_;y&&(_=Br({schema:y,parentTypes:[v],resolver:r})),i.push({...v,metaType:"primitive",..._})}),u.forEach(h=>{let g="queries",y=xt(l);s.push({name:ks(h),filePath:or({type:g,tag:y,includeTagDir:!0,options:t}),namespace:t.includeNamespaces?re({type:g,tag:y,options:t}):void 0,isQuery:Fn(h),isMutation:js(h),params:MT({resolver:r,endpoint:h}),response:DT({resolver:r,endpoint:h})})}))}),{openApiDoc:e,models:i,queries:s}}o(j_,"getMetadataFromOpenAPIDoc");function MT({resolver:e,endpoint:t}){return t.parameters.map(r=>{var a,u,c,l;let n;if((a=r.parameterObject)!=null&&a.schema)n=e.resolveObject(r.parameterObject.schema);else if(r.bodyObject){let f=Object.keys(r.bodyObject.content??{}).find(dr);f&&(n=e.resolveObject((c=(u=r.bodyObject.content)==null?void 0:u[f])==null?void 0:c.schema))}let i=Vn({zodSchemaName:r.zodSchema,schema:n,resolver:e}),s;return n&&(s=Br({schema:n,parentTypes:[i],resolver:e})),{name:Pt(r.name),isRequired:((l=r.parameterObject)==null?void 0:l.required)??!0,...i,...s,paramType:r.type}}).sort((r,n)=>{if(r.isRequired===n.isRequired){let i=["Path","Body","Query","Header"];return i.indexOf(r.paramType)-i.indexOf(n.paramType)}return r.isRequired?-1:1}).map(({paramType:r,...n})=>n)}o(MT,"getQueryMetadataParams");function DT({resolver:e,endpoint:t}){var a,u,c,l;let r,n=Object.keys(((a=t.responseObject)==null?void 0:a.content)??{}).find(Ln);n&&(r=e.resolveObject((l=(c=(u=t.responseObject)==null?void 0:u.content)==null?void 0:c[n])==null?void 0:l.schema));let i=Vn({zodSchemaName:t.response,schema:r,resolver:e}),s;return r&&(s=Br({schema:r,parentTypes:[i],resolver:e})),{...i,metaType:"primitive",...s}}o(DT,"getQueryMetadataResponse");var Gf="src/data",Zf="@/data",Kf="AppRestClient",M_={bindings:[Kf],from:"@/util/rest/clients/app-rest-client"},uo={query:"AppQueryOptions",mutation:"AppMutationOptions"},D_={bindings:[uo.query,uo.mutation],from:"@/types/react-query"};function zn({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",s=o(c=>e.getTagByZodSchemaName(c),"getTag"),a=Wf({type:i,tag:t,entities:r,getTag:s,getEntityName:o(c=>c,"getEntityName"),options:e.options}),u=Wf({type:i,tag:t,entities:n,getTag:s,getEntityName:o(c=>to(c,e.options),"getEntityName"),options:e.options});return FT(e.options,a,u)}o(zn,"getModelsImports");function L_({tag:e,endpoints:t,options:r}){return Wf({type:"endpoints",tag:e,entities:t,getTag:o(n=>no(n,r),"getTag"),getEntityName:ro,options:r})}o(L_,"getEndpointsImports");function LT(e){let t=Zf;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${Gf}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${Gf}`,"g"),Zf)),`${t}/`.replace(/\/\//g,"/")}o(LT,"getImportPath");function Wf({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:s}){let a=new Map;return r.forEach(u=>{let c=n(u);if(a.has(c))s.includeNamespaces||a.get(c).bindings.push(i(u));else{let l=t===c;a.set(c,{bindings:[s.includeNamespaces?re({type:e,tag:c,options:s}):i(u)],from:`${l?"./":LT(s)}${or({type:e,tag:c,includeTagDir:!l,options:s})}`})}}),Array.from(a.values())}o(Wf,"getImports");function FT(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.includeNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:Ne(n.bindings)}))}o(FT,"mergeImports");var zp=De(Yr());var ti=De(require("fs")),Vp=De(require("path"));function Bp(e){let t=`src/generators/templates/${e}.hbs`;return ti.default.readFileSync(Vp.default.join(__dirname,`../${t}`),"utf-8")}o(Bp,"readHbsTemplateSync");function kS({output:e,fileName:t}){return`${e}/${t}.ts`}o(kS,"getOutputFileName");function RS({fileName:e,content:t}){TN(e,t)}o(RS,"writeTsFileSync");function TN(e,t){let r=Vp.default.dirname(e);ti.default.existsSync(r)||ti.default.mkdirSync(r,{recursive:!0}),ti.default.writeFileSync(e,t,"utf-8")}o(TN,"writeFileWithDirSync");var Hp=De(Yr());function TS(){CN(),NN()}o(TS,"registerCommonHbsHelpers");function CN(){Hp.default.registerHelper("isEqual",(e,t)=>e===t)}o(CN,"registerIsEqualHelper");function NN(){Hp.default.registerHelper("commaSeparated",e=>e.join(", "))}o(NN,"registerCommaSeparatedListHelper");var Qr=De(Yr());function CS(e){qN(),jN(e.options),LN(e),MN(),DN(),FN(e)}o(CS,"registerEndpointsHbsHelpers");function qN(){Qr.default.registerHelper("endpointName",ro)}o(qN,"registerEndpointNameHelper");function jN(e){Qr.default.registerHelper("importedEndpointName",t=>e_(t,e))}o(jN,"registerImportedEndpointNameHelper");function MN(){Qr.default.registerHelper("endpointPath",t_)}o(MN,"registerEndpointPathHelper");function DN(){Qr.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}o(DN,"registerEndpointBodyHelper");function LN(e){Qr.default.registerHelper("endpointParams",t=>Mf(e,t))}o(LN,"registerEndpointParamsHelper");function FN(e){Qr.default.registerHelper("endpointArgs",t=>Mf(e,t).map(r=>r.name).join(", "))}o(FN,"registerEndpointArgsHelper");var ri=De(Yr());var yr={query:"useQuery",mutation:"useMutation"},NS={bindings:[yr.query,yr.mutation],from:"@tanstack/react-query"};function qS(){VN(),BN(),HN(),UN(),zN()}o(qS,"registerPartialsHbsHelpers");function VN(){ri.default.registerHelper("genImport",e=>ni("import")({import:e}))}o(VN,"registerImportHelper");function BN(){ri.default.registerHelper("genEndpointParams",e=>ni("endpoint-params")({endpoint:e}))}o(BN,"registerGenerateEndpointParamsHelper");function HN(){ri.default.registerHelper("genEndpointConfig",e=>{let t=r_(e);return Object.keys(t).length===0?"":ni("endpoint-config")({endpointConfig:t})})}o(HN,"registerGenerateEndpointConfigHelper");function UN(){ri.default.registerHelper("genQueryKeys",e=>e.length===0?"":ni("query-keys")({endpoints:e}))}o(UN,"registerGenerateQueryKeysHelper");function zN(){ri.default.registerHelper("genQuery",e=>{let t,r;return Fn(e)?(t="query-use-query",r=yr.query):(t="query-use-mutation",r=yr.mutation),ni(t)({endpoint:e,queryHook:r})})}o(zN,"registerGenerateQueryHelper");var ka=De(Yr());function jS(){GN(),ZN(),KN()}o(jS,"registerQueryHbsHelpers");function GN(){ka.default.registerHelper("queryName",ks)}o(GN,"registerQueryNameHelper");function ZN(){ka.default.registerHelper("allQueryKeys",Ef)}o(ZN,"registerQueryKeysHelper");function KN(){ka.default.registerHelper("endpointPathQueryKeys",Rv)}o(KN,"registerEndpointPathQueryKeysHelper");var Up=De(Yr());function MS(e){WN(e.options),YN(e)}o(MS,"registerZodHbsHelpers");function WN(e){Up.default.registerHelper("zodInferedType",t=>to(t,e))}o(WN,"registerInferedTypeHelper");function YN(e){Up.default.registerHelper("importedZodSchemaName",t=>Kv(e,t))}o(YN,"registerImportedZodSchemaNameHelper");function ii(e,t){let r=Bp(t);return TS(),MS(e),CS(e),jS(),qS(),zp.default.compile(r)}o(ii,"getHbsTemplateDelegate");function ni(e){let t=Bp(`partials/${e}`);return zp.default.compile(t)}o(ni,"getHbsPartialTemplateDelegate");function DS({resolver:e,data:t,tag:r=""}){var l;let n=(l=t.get(r))==null?void 0:l.endpoints;if(!n||n.length===0)return;let i=n.map(p=>p.response),s=i.some(p=>!Pe(p)),a=n.reduce((p,f)=>[...p,...f.parameters],[]),u=zn({resolver:e,tag:r,zodSchemas:Ne(i.filter(Pe)),zodSchemasAsTypes:Ne(a.map(p=>p.zodSchema).filter(Pe))});return ii(e,"endpoints")({restClientImport:M_,hasZodImport:s,zodImport:As,modelsImports:u,includeNamespace:e.options.includeNamespaces,namespace:re({type:"endpoints",tag:r,options:e.options}),restClientName:Kf,endpoints:n})}o(DS,"generateEndpoints");function LS(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),s=e.getEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...s]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(FS(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}o(LS,"getZodSchemaRefs");function FS(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&FS(n).forEach(s=>r.add(s)),r},new Set)}o(FS,"getSchemaRefs");function VS({resolver:e,data:t,tag:r=""}){var c;let n=(c=t.get(r))==null?void 0:c.zodSchemas;if(!n||Object.keys(n).length===0)return;let i=Object.keys(n).reduce((l,p)=>[...l,...LS(e,p)],[]).filter(l=>!n[l]),s=zn({resolver:e,tag:r,zodSchemas:i}),a=Object.entries(n).reduce((l,[p,f])=>{let d=e.getRefByZodSchemaName(p);return{...l,[p]:{code:f,isCircular:!!d&&e.isSchemaCircular(d)}}},{});return ii(e,"models")({zodImport:As,modelsImports:s,includeNamespace:e.options.includeNamespaces,namespace:re({type:"models",tag:r,options:e.options}),zodSchemasData:a})}o(VS,"generateModels");function BS({resolver:e,data:t,tag:r=""}){var d;let n=(d=t.get(r))==null?void 0:d.endpoints;if(!n||n.length===0)return;let i=n.filter(Fn),s=n.filter(js),a={...NS,bindings:[...i.length>0?[yr.query]:[],...s.length>0?[yr.mutation]:[]]},u={...D_,bindings:[...i.length>0?[uo.query]:[],...s.length>0?[uo.mutation]:[]]},c=[...i,...s].reduce((h,g)=>[...h,...g.parameters],[]),l=zn({resolver:e,tag:r,zodSchemasAsTypes:Ne(c.map(h=>h.zodSchema).filter(Pe))}),p=L_({tag:r,endpoints:n,options:e.options});return ii(e,"queries")({queryImport:a,queryTypesImport:u,modelsImports:l,endpointsImports:p,includeNamespace:e.options.includeNamespaces,namespace:re({type:"queries",tag:r,options:e.options}),endpoints:n,queryEndpoints:i})}o(BS,"generateQueries");function HS(e,t,r=!0){let n={...Yi,...t},{resolver:i,data:s}=Zs(e,n),a=[],u=["models","endpoints","queries"],c={models:VS,endpoints:DS,queries:BS};return s.forEach((l,p)=>{n.excludeTags.find(d=>d.toLowerCase()===p.toLowerCase())||u.forEach(d=>{let h=c[d]({resolver:i,data:s,tag:p});if(h){let g=kS({output:n.output,fileName:or({tag:p,type:d,options:n})});a.push({fileName:g,content:h})}})}),r&&a.forEach(RS),a}o(HS,"generateCodeFromOpenAPIDoc");async function QN({input:e,options:t}){let r={...Yi,...t},n=await Gp.default.bundle(e);return await j_(n,r)}o(QN,"getGenerateMetadata");async function JN({input:e,options:t}){let r={...Yi,...t},n=await Gp.default.bundle(e);return HS(n,r,!1)}o(JN,"getGenerateFileData");0&&(module.exports={getGenerateFileData,getGenerateMetadata});
|
|
80
|
+
`)}return t.assign(`z.union([${e.oneOf.map(u=>W({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}s(PT,"getOneOfZodSchema");function $T({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!wt(e)||!Array.isArray(e.type)))return e.type.length===1?W({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(o=>W({schema:{...e,type:o},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}s($T,"getArrayZodSchema");function OT({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!wt(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=W({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let o=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([${o}])`)}s(OT,"getAnyOfZodSchema");function ET({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!wt(e)||!e.allOf)return;if(e.allOf.length===1){let f=W({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(f.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:o,noRequiredOnlyAllof:a,composedRequiredSchema:u}=Jv(e),c=a.map(f=>{let d=W({schema:f,resolver:r,meta:n,tag:i});return r&&o(f,r.getSchemaByRef.bind(r)),d});u.required.length&&c.push(W({schema:u,resolver:r,meta:n,tag:i}));let l=c.at(0),p=c.slice(1).map(f=>`merge(${f.getCodeString(i,r.options)})`).join(".");return t.assign(`${l.getCodeString(i,r.options)}.${p}`)}s(ET,"getAllOfZodSchema");function xT({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!wt(e))return;let o=e.type?e.type.toLowerCase():void 0;if(o&&Mt(o)){if(e.enum){if(o==="string")return wT({schema:e,zodSchema:t,resolver:r,meta:n,tag:i});if(e.enum.some(a=>typeof a=="string"))return t.assign("z.never()");if(e.enum.length===1){let a=e.enum[0];return t.assign(`z.literal(${a===null?"null":a})`)}return t.assign(`z.union([${e.enum.map(a=>`z.literal(${a===null?"null":a})`).join(", ")}])`)}return t.assign(ye(o).with("integer",()=>"z.number()").with("string",()=>ye(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(a=>`z.${a}()`))}}s(xT,"getPrimitiveZodSchema");function wT({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){if(!wt(t))return;let o=Hf(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 u=e.options.includeNamespaces&&a.tag!==i?`${re({type:"models",tag:a.tag,options:e.options})}.`:"";return new oo(t,e,n,a.zodSchemaName).inherit(r),r.assign(`${u}${a.zodSchemaName}`)}s(wT,"getEnumZodSchema");function Hf(e){var t;return`z.enum([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}s(Hf,"getEnumZodSchemaCode");function Un({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var u;let o=t.getCodeString();if((!Pe(o)||t.ref===void 0)&&r){if(t.complexity<kf)return o;let c=hr(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(c);){if((u=n.getZodSchemaNamesByCompositeCode(o))!=null&&u.includes(c))return c;if(n.getCodeByZodSchemaName(c)===c)return c;throw new Error(`Can't uniquely resolve zod schema name: ${c}`)}return n.setZodSchema(c,o,i),n.addZodSchemaForCompositeCode(o,t,c,e),c}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))<kf?n.getCodeByZodSchemaName(o):o;throw new Error(`Invalid ref: ${t.ref}`)}s(Un,"resolveZodSchemaName");function __({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var h,g;let o=e.resolveObject(t.requestBody);if(!o)return;let u=Object.keys(o.content??{}).find(dr);if(!u)return;let c=(g=(h=o.content)==null?void 0:h[u])==null?void 0:g.schema;if(!c)return;let l=W({schema:c,resolver:e,meta:{isRequired:o.required??!0},tag:i}),p=e.resolveObject(c),f=Un({schema:p,zodSchema:l,fallbackName:js(Vr(r,n,i)),resolver:e,tag:i}),d=At({schema:p,meta:l.meta,options:e.options});return{endpointParameter:{name:Yv,type:"Body",description:o.description,zodSchema:f+d,bodyObject:o},requestFormat:u}}s(__,"getEndpointBody");function b_({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let o=e.resolveObject(t);if(!qv.includes(o.in))return;let a={};if(o.content){let f=Object.keys(o.content??{}),d=f.find(dr);if(!d)throw new Error(`Unsupported media type for param ${o.name}: ${f.join(", ")}`);let h=o.content[d];if(!h)throw new Error(`No content with media type for param ${o.name}: ${d}`);a=(h==null?void 0:h.schema)??h}else o.schema&&(a=o.schema);e.options.withDescription&&a&&(a.description=(o.description??"").trim());let u=W({schema:a,resolver:e,meta:{isRequired:o.in==="path"?!0:o.required??!1},tag:i}),c=e.resolveObject(a),l=At({schema:c,meta:u.meta,options:e.options}),p=Un({schema:c,zodSchema:u.assign(u.getCodeString(i)+l),fallbackName:Gv(Vr(r,n,i),o.name),resolver:e,tag:i});return{name:ye(o.in).with("path",()=>Nf(o.name)).otherwise(()=>o.name),type:ye(o.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:p,parameterObject:o}}s(b_,"getEndpointParameter");function P_(e){var r,n,i;let t=[];for(let o in e.openApiDoc.paths){let a=e.openApiDoc.paths[o],u=pr(a,fr),c=S_(a.parameters??[]);for(let l in u){let p=u[l];if(!p||p.deprecated&&!e.options.withDeprecatedEndpoints)continue;let f=p.operationId&&p.operationId!==Pt(p.operationId);p.operationId&&f&&e.validationErrors.push(m_(p.operationId));let d=Object.entries({...c,...S_(p.parameters??[])}).map(([,b])=>b),h=Xi({path:o,method:l,operation:p,operationsByTag:e.operationsByTag,options:e.options}),g=e.operationNames.filter(b=>b===h).length<=1,y=Lr(p,e.options),v={method:l,path:Uv(o),operationName:h,description:p.description,tags:(r=p.tags)==null?void 0:r.map(xt),requestFormat:"application/json",parameters:[],response:"",errors:[]};if(p.requestBody){let b=__({resolver:e,operation:p,operationName:h,isUniqueOperationName:g,tag:y});b&&(v.parameters.push(b.endpointParameter),v.requestFormat=b.requestFormat)}for(let b of d){let S=b_({resolver:e,param:b,operationName:h,isUniqueOperationName:g,tag:y});S&&v.parameters.push(S)}let _=AT(v);_.forEach(b=>{v.parameters.push(b)}),_.length>0&&e.validationErrors.push(g_(_,o));for(let b in p.responses){let S=e.resolveObject(p.responses[b]),$=Object.keys(S.content??{}).find(Ln),M,j;if($?(v.responseFormat=$,M=(i=(n=S.content)==null?void 0:n[$])==null?void 0:i.schema):j=Sf,M){let ie=W({schema:M,resolver:e,meta:{isRequired:!0},tag:y}),oe=e.resolveObject(M);j=Un({schema:oe,zodSchema:ie,fallbackName:ie.ref?void 0:Ms({statusCode:b,operationName:h,isUniqueOperationName:g,tag:y}),resolver:e,tag:y})+At({schema:oe,meta:ie.meta,options:e.options})}if(j){let ie=Number(b);Cs(ie)?(v.response=j,v.responseObject=S):b!=="default"&&Ns(ie)&&v.errors.push({zodSchema:j,status:ie,description:S.description})}}v.response||(v.response=Sf),t.push(v)}}return t}s(P_,"getEndpointsFromOpenAPIDoc");function S_(e){return Object.fromEntries((e??[]).map(t=>[H(t)?t.$ref:t.name,t]))}s(S_,"getParameters");function AT(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=>IT(r))}s(AT,"getMissingPathParameters");function IT(e){return{name:e,type:"Path",zodSchema:"z.string()",parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}s(IT,"getPathParameterFromName");function ct(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(H(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(Ts.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;ct(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;ct(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;ct(a,t)}if(i.type==="array"){let o=e.items;if(n({type:"array",parentSchema:e,schema:o,data:r})===!0)return;ct(o,t)}}s(ct,"iterateSchema");function $_(e,t){let r=kT(e,t),n=RT(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}s($_,"getOpenAPISchemaDependencyGraph");function kT(e,t){let r={},n={};return e.forEach(i=>TT({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}s(kT,"getRefsDependencyGraph");function RT(e,t){let r={},n={},i=s((o,a)=>{n[a].add(o),t[o]&&a!==o&&t[o].forEach(u=>{let c=`${a}__${u}`;r[c]||(r[c]=!0,i(u,a))})},"visit");return e.forEach(o=>{let a=t[o];a&&(n[o]||(n[o]=new Set),a.forEach(u=>i(u,o)))}),n}s(RT,"getDeepRefsDependencyGraph");function TT({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let o=s(a=>{if(a.type!=="reference"||!a.data)return;let{schema:u,data:c}=a;if(i[c.fromRef]||(i[c.fromRef]=new Set),i[c.fromRef].add(u.$ref),n[u.$ref])return!0;n[c.fromRef]=!0,ct(r(u.$ref),{data:{fromRef:u.$ref},onSchema:o})},"onSchema");return ct(e,{data:{fromRef:t},onSchema:o}),{visitedRefs:n,refsDependencyGraph:i}}s(TT,"getSchemaRefsDependencyGraph");function Us(e,t,r){let n=[];return ct(t,{onSchema:s(i=>{i.type==="reference"?n.push(i.schema):H(i.parentSchema)&&e.validationErrors.push(h_(r))},"onSchema")}),n}s(Us,"getSchemaRefObjs");function O_(e,t){return t.map(i=>Fr(i.$ref)).reduce((i,o)=>{let a=e.dependencyGraph.deepDependencyGraph[o];return[...i,o,...Array.from(a??[])]},[])}s(O_,"getDeepSchemaRefObjs");function so({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&E_({schema:e,nameSegments:t,...n}),ct(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),E_({schema:i.schema,nameSegments:[...o],...n})},"onSchema")})}s(so,"updateEnumZodSchemaData");function E_({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:o=[]}){if(!t||H(t)||!t.enum)return;let a=Hf(t),u=e.enumZodSchemaData.find(c=>c.code===a);u?(u.meta.zodSchemaNameSegments.push(o),u.meta.tags.push(...i),u.meta.schemaRefs.push(...r?[r]:[])):e.enumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[o],tags:[...i],schemaRefs:r?[r]:[]}}),e.validationErrors.push(y_(r?`schema ${Ge.gray(Dn(r))} property ${Ge.gray(o[o.length-1])}`:n??o.join("->")))}s(E_,"handleEnumZodSchemaDataUpdate");function w_(e){e.enumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(o=>o[o.length-1]).filter(Boolean),i=$f(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=zv(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!x_(e);)CT(e,t+2),t++;if(!x_(e))throw new Error("Failed to resolve unique names for enum zod schemas")}s(w_,"resolveEnumZodSchemaNames");function x_(e){return e.enumZodSchemaData.every(t=>e.enumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length==1)}s(x_,"allEnumZodSchemaNamesAreUnique");function CT(e,t){e.enumZodSchemaData.forEach(r=>{let n=e.enumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&NT(n,t)})}s(CT,"additionalResolveEnumZodSchemaName");function NT(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1)r.zodSchemaName=[ge(n[0]),r.zodSchemaName].filter(Boolean).join("");else{let i=$f(n);r.zodSchemaName=[i?ge(i):"",r.zodSchemaName].filter(Boolean).join("")}})}s(NT,"suffixWithPreviousSegmentName");function A_(e){e.enumZodSchemaData.forEach(t=>{let r=Ne(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}s(A_,"resolveEnumZodSchemaTags");var Uf=class Uf{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=$_(this.schemaRefs,this.getSchemaByRef.bind(this)),this.operationsByTag=Mv(t,r),this.operationNames=Hv(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(Lv)}getSchemaByRef(t){return this.docSchemas[Dn(t)]}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(Fr(t)))==null?void 0:n.zodSchemaName)??((i=this.enumZodSchemaData.find(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 c,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.enumZodSchemaData.find(p=>p.zodSchemaName===t);if(r)return xt(r.tag??this.options.defaultTag);let n=this.getRefByZodSchemaName(t),i=n?((c=this.getSchemaDataByRef(n))==null?void 0:c.tags)??[]:[],o=((l=this.zodSchemaData.find(p=>p.zodSchemaName===t))==null?void 0:l.tags)??[],a=Ne(i,o),u=a.length===1?a[0]:this.options.defaultTag;return xt(u??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(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(u=>u.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 H(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}initialize(){var t,r,n,i,o,a;this.schemaRefs.forEach(u=>{let c=Fr(u),l=Dn(c),p=hr(l,this.options.schemaSuffix);this.schemaData.push({ref:c,name:l,zodSchemaName:p,tags:[]})});for(let u in this.openApiDoc.paths){let c=this.openApiDoc.paths[u],l=pr(c,fr);for(let p in l){let f=l[p];if(!f||f.deprecated&&!((t=this.options)!=null&&t.withDeprecatedEndpoints))continue;let d=Lr(f,this.options),h=Xi({path:u,method:p,operation:f,operationsByTag:this.operationsByTag,options:this.options}),g=this.operationNames.filter(b=>b===h).length<=1,y=Re(Vr(h,g,d)),v=[];if((r=f.parameters)==null||r.map(b=>{let S=b,E=S.schema,$=`operation ${Ge.gray(f.operationId??u)} parameter ${Ge.gray(S.name)}`;v.push(...Us(this,E,$)),this.options.extractEnums&&so({resolver:this,schema:E,schemaInfo:$,tags:[d],nameSegments:[y,S.name],includeSelf:!0})}),f.requestBody){let b=this.resolveObject(f.requestBody),E=Object.keys(b.content??{}).find(dr);if(E){let $=(i=(n=b.content)==null?void 0:n[E])==null?void 0:i.schema,M=`operation ${Ge.gray(f.operationId)} request body`;v.push(...Us(this,$,M)),this.options.extractEnums&&so({resolver:this,schema:$,schemaInfo:M,tags:[d],nameSegments:[js(y)]})}}for(let b in f.responses){let S=this.resolveObject(f.responses[b]),$=Object.keys(S.content??{}).find(Ln);if($){let M=(a=(o=S.content)==null?void 0:o[$])==null?void 0:a.schema,j=`operation ${Ge.gray(f.operationId)} response body`;v.push(...Us(this,M,j)),this.options.extractEnums&&so({resolver:this,schema:M,schemaInfo:j,tags:[d],nameSegments:[Ms({statusCode:b,operationName:h,isUniqueOperationName:g,tag:d})]})}}O_(this,v).forEach(b=>{let S=this.getSchemaDataByRef(b);S&&S.tags.push(d)})}}this.options.extractEnums&&(this.schemaRefs.forEach(u=>{var l;let c=Fr(u);so({resolver:this,schema:this.getSchemaByRef(c),schemaRef:c,tags:((l=this.getSchemaDataByRef(c))==null?void 0:l.tags)??[],nameSegments:[Dn(c)]})}),w_(this),A_(this))}};s(Uf,"SchemaResolver");var zs=Uf;function I_(e){var r;let t={};return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let o=hr(n,e.options.schemaSuffix);if(!t[o]){let a=e.getTagByZodSchemaName(o);t[o]=W({schema:i,resolver:e,tag:a}).getCodeString(a)}}),t}s(I_,"getZodSchemasFromOpenAPIDoc");function k_(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(k_,"topologicalSort");function R_(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(R_,"sortObjKeysFromArray");function T_(e,t){let r=k_(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return R_(t,r)}s(T_,"sortZodSchemasByTopology");function C_(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let o=e.getRefByZodSchemaName(n),a=o&&e.isSchemaCircular(o);r[hr(n,e.options.schemaSuffix)]=a?`z.lazy(() => ${i})`:i}),r}s(C_,"wrapCircularZodSchemas");function Gs(e,t){let r=new zs(e,t),n=P_(r),o={...I_(r),...r.getZodSchemas()};return o=C_(r,o),o=T_(r,o),o={...r.getEnumZodSchemas(),...o},{resolver:r,data:qT({resolver:r,endpoints:n,zodSchemas:o,options:t})}}s(Gs,"getDataFromOpenAPIDoc");function qT({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(o=>{let a=ro(o,n);N_(a,i).endpoints.push(o)}),Object.entries(r).forEach(([o,a])=>{let u=e.getTagByZodSchemaName(o);u&&(N_(u,i).zodSchemas[o]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}s(qT,"splitDataByTags");function N_(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}s(N_,"getTagElement");async function q_(e,t){let{resolver:r,data:n}=await Gs(e,t),i=[],o=[];return n.forEach(({endpoints:u,zodSchemas:c},l)=>{var d;((d=t.excludeTags)==null?void 0:d.findIndex(h=>h.toLowerCase()===l.toLowerCase()))===-1&&(Object.keys(c).forEach(h=>{let g=r.getRefByZodSchemaName(h),y=g?r.getSchemaByRef(g):r.getSchemaByCompositeZodSchemaName(h),v=Vn({zodSchemaName:h,schema:y,resolver:r}),_;y&&(_=Br({schema:y,parentTypes:[v],resolver:r})),i.push({...v,metaType:"primitive",..._})}),u.forEach(h=>{let g="queries",y=xt(l);o.push({name:Is(h),filePath:or({type:g,tag:y,includeTagDir:!0,options:t}),namespace:t.includeNamespaces?re({type:g,tag:y,options:t}):void 0,isQuery:Fn(h),isMutation:qs(h),params:jT({resolver:r,endpoint:h}),response:MT({resolver:r,endpoint:h})})}))}),{openApiDoc:e,models:i,queries:o}}s(q_,"getMetadataFromOpenAPIDoc");function jT({resolver:e,endpoint:t}){return t.parameters.map(r=>{var a,u,c,l;let n;if((a=r.parameterObject)!=null&&a.schema)n=e.resolveObject(r.parameterObject.schema);else if(r.bodyObject){let f=Object.keys(r.bodyObject.content??{}).find(dr);f&&(n=e.resolveObject((c=(u=r.bodyObject.content)==null?void 0:u[f])==null?void 0:c.schema))}let i=Vn({zodSchemaName:r.zodSchema,schema:n,resolver:e}),o;return n&&(o=Br({schema:n,parentTypes:[i],resolver:e})),{name:Pt(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(jT,"getQueryMetadataParams");function MT({resolver:e,endpoint:t}){var a,u,c,l;let r,n=Object.keys(((a=t.responseObject)==null?void 0:a.content)??{}).find(Ln);n&&(r=e.resolveObject((l=(c=(u=t.responseObject)==null?void 0:u.content)==null?void 0:c[n])==null?void 0:l.schema));let i=Vn({zodSchemaName:t.response,schema:r,resolver:e}),o;return r&&(o=Br({schema:r,parentTypes:[i],resolver:e})),{...i,metaType:"primitive",...o}}s(MT,"getQueryMetadataResponse");var zf="src/data",Gf="@/data",Zf="AppRestClient",j_={bindings:[Zf],from:"@/util/rest/clients/app-rest-client"},ao={query:"AppQueryOptions",mutation:"AppMutationOptions"},M_={bindings:[ao.query,ao.mutation],from:"@/types/react-query"};function zn({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",o=s(c=>e.getTagByZodSchemaName(c),"getTag"),a=Kf({type:i,tag:t,entities:r,getTag:o,getEntityName:s(c=>c,"getEntityName"),options:e.options}),u=Kf({type:i,tag:t,entities:n,getTag:o,getEntityName:s(c=>eo(c,e.options),"getEntityName"),options:e.options});return LT(e.options,a,u)}s(zn,"getModelsImports");function D_({tag:e,endpoints:t,options:r}){return Kf({type:"endpoints",tag:e,entities:t,getTag:s(n=>ro(n,r),"getTag"),getEntityName:to,options:r})}s(D_,"getEndpointsImports");function DT(e){let t=Gf;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${zf}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${zf}`,"g"),Gf)),`${t}/`.replace(/\/\//g,"/")}s(DT,"getImportPath");function Kf({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:o}){let a=new Map;return r.forEach(u=>{let c=n(u);if(a.has(c))o.includeNamespaces||a.get(c).bindings.push(i(u));else{let l=t===c;a.set(c,{bindings:[o.includeNamespaces?re({type:e,tag:c,options:o}):i(u)],from:`${l?"./":DT(o)}${or({type:e,tag:c,includeTagDir:!l,options:o})}`})}}),Array.from(a.values())}s(Kf,"getImports");function LT(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.includeNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:Ne(n.bindings)}))}s(LT,"mergeImports");var Up=De(Yr());var Fp=De(require("fs")),IS=De(require("path"));function Vp(e){let t=`src/generators/templates/${e}.hbs`;return Fp.default.readFileSync(IS.default.join(__dirname,`../${t}`),"utf-8")}s(Vp,"readHbsTemplateSync");function kS({output:e,fileName:t}){return`${e}/${t}.ts`}s(kS,"getOutputFileName");var Bp=De(Yr());function RS(){RN(),TN()}s(RS,"registerCommonHbsHelpers");function RN(){Bp.default.registerHelper("isEqual",(e,t)=>e===t)}s(RN,"registerIsEqualHelper");function TN(){Bp.default.registerHelper("commaSeparated",e=>e.join(", "))}s(TN,"registerCommaSeparatedListHelper");var Qr=De(Yr());function TS(e){CN(),NN(e.options),MN(e),qN(),jN(),DN(e)}s(TS,"registerEndpointsHbsHelpers");function CN(){Qr.default.registerHelper("endpointName",to)}s(CN,"registerEndpointNameHelper");function NN(e){Qr.default.registerHelper("importedEndpointName",t=>Xv(t,e))}s(NN,"registerImportedEndpointNameHelper");function qN(){Qr.default.registerHelper("endpointPath",e_)}s(qN,"registerEndpointPathHelper");function jN(){Qr.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}s(jN,"registerEndpointBodyHelper");function MN(e){Qr.default.registerHelper("endpointParams",t=>jf(e,t))}s(MN,"registerEndpointParamsHelper");function DN(e){Qr.default.registerHelper("endpointArgs",t=>jf(e,t).map(r=>r.name).join(", "))}s(DN,"registerEndpointArgsHelper");var ti=De(Yr());var yr={query:"useQuery",mutation:"useMutation"},CS={bindings:[yr.query,yr.mutation],from:"@tanstack/react-query"};function NS(){LN(),FN(),VN(),BN(),HN()}s(NS,"registerPartialsHbsHelpers");function LN(){ti.default.registerHelper("genImport",e=>ri("import")({import:e}))}s(LN,"registerImportHelper");function FN(){ti.default.registerHelper("genEndpointParams",e=>ri("endpoint-params")({endpoint:e}))}s(FN,"registerGenerateEndpointParamsHelper");function VN(){ti.default.registerHelper("genEndpointConfig",e=>{let t=t_(e);return Object.keys(t).length===0?"":ri("endpoint-config")({endpointConfig:t})})}s(VN,"registerGenerateEndpointConfigHelper");function BN(){ti.default.registerHelper("genQueryKeys",e=>e.length===0?"":ri("query-keys")({endpoints:e}))}s(BN,"registerGenerateQueryKeysHelper");function HN(){ti.default.registerHelper("genQuery",e=>{let t,r;return Fn(e)?(t="query-use-query",r=yr.query):(t="query-use-mutation",r=yr.mutation),ri(t)({endpoint:e,queryHook:r})})}s(HN,"registerGenerateQueryHelper");var Ia=De(Yr());function qS(){UN(),zN(),GN()}s(qS,"registerQueryHbsHelpers");function UN(){Ia.default.registerHelper("queryName",Is)}s(UN,"registerQueryNameHelper");function zN(){Ia.default.registerHelper("allQueryKeys",Of)}s(zN,"registerQueryKeysHelper");function GN(){Ia.default.registerHelper("endpointPathQueryKeys",kv)}s(GN,"registerEndpointPathQueryKeysHelper");var Hp=De(Yr());function jS(e){ZN(e.options),KN(e)}s(jS,"registerZodHbsHelpers");function ZN(e){Hp.default.registerHelper("zodInferedType",t=>eo(t,e))}s(ZN,"registerInferedTypeHelper");function KN(e){Hp.default.registerHelper("importedZodSchemaName",t=>Zv(e,t))}s(KN,"registerImportedZodSchemaNameHelper");function ni(e,t){let r=Vp(t);return RS(),jS(e),TS(e),qS(),NS(),Up.default.compile(r)}s(ni,"getHbsTemplateDelegate");function ri(e){let t=Vp(`partials/${e}`);return Up.default.compile(t)}s(ri,"getHbsPartialTemplateDelegate");function MS({resolver:e,data:t,tag:r=""}){var l;let n=(l=t.get(r))==null?void 0:l.endpoints;if(!n||n.length===0)return;let i=n.map(p=>p.response),o=i.some(p=>!Pe(p)),a=n.reduce((p,f)=>[...p,...f.parameters],[]),u=zn({resolver:e,tag:r,zodSchemas:Ne(i.filter(Pe)),zodSchemasAsTypes:Ne(a.map(p=>p.zodSchema).filter(Pe))});return ni(e,"endpoints")({restClientImport:j_,hasZodImport:o,zodImport:ws,modelsImports:u,includeNamespace:e.options.includeNamespaces,namespace:re({type:"endpoints",tag:r,options:e.options}),restClientName:Zf,endpoints:n})}s(MS,"generateEndpoints");function DS(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(LS(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}s(DS,"getZodSchemaRefs");function LS(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&LS(n).forEach(o=>r.add(o)),r},new Set)}s(LS,"getSchemaRefs");function FS({resolver:e,data:t,tag:r=""}){var c;let n=(c=t.get(r))==null?void 0:c.zodSchemas;if(!n||Object.keys(n).length===0)return;let i=Object.keys(n).reduce((l,p)=>[...l,...DS(e,p)],[]).filter(l=>!n[l]),o=zn({resolver:e,tag:r,zodSchemas:i}),a=Object.entries(n).reduce((l,[p,f])=>{let d=e.getRefByZodSchemaName(p);return{...l,[p]:{code:f,isCircular:!!d&&e.isSchemaCircular(d)}}},{});return ni(e,"models")({zodImport:ws,modelsImports:o,includeNamespace:e.options.includeNamespaces,namespace:re({type:"models",tag:r,options:e.options}),zodSchemasData:a})}s(FS,"generateModels");function VS({resolver:e,data:t,tag:r=""}){var d;let n=(d=t.get(r))==null?void 0:d.endpoints;if(!n||n.length===0)return;let i=n.filter(Fn),o=n.filter(qs),a={...CS,bindings:[...i.length>0?[yr.query]:[],...o.length>0?[yr.mutation]:[]]},u={...M_,bindings:[...i.length>0?[ao.query]:[],...o.length>0?[ao.mutation]:[]]},c=[...i,...o].reduce((h,g)=>[...h,...g.parameters],[]),l=zn({resolver:e,tag:r,zodSchemasAsTypes:Ne(c.map(h=>h.zodSchema).filter(Pe))}),p=D_({tag:r,endpoints:n,options:e.options});return ni(e,"queries")({queryImport:a,queryTypesImport:u,modelsImports:l,endpointsImports:p,includeNamespace:e.options.includeNamespaces,namespace:re({type:"queries",tag:r,options:e.options}),endpoints:n,queryEndpoints:i})}s(VS,"generateQueries");function BS(e,t){let r={...Wi,...t},{resolver:n,data:i}=Gs(e,r),o=[],a=["models","endpoints","queries"],u={models:FS,endpoints:MS,queries:VS};return i.forEach((c,l)=>{r.excludeTags.find(f=>f.toLowerCase()===l.toLowerCase())||a.forEach(f=>{let d=u[f]({resolver:n,data:i,tag:l});if(d){let h=kS({output:r.output,fileName:or({tag:l,type:f,options:r})});o.push({fileName:h,content:d})}})}),o}s(BS,"generateCodeFromOpenAPIDoc");async function WN({input:e,options:t}){let r={...Wi,...t},n=await zp.default.bundle(e);return await q_(n,r)}s(WN,"getGenerateMetadata");async function YN({input:e,options:t}){let r={...Wi,...t},n=await zp.default.bundle(e);return BS(n,r)}s(YN,"getGenerateFilesData");0&&(module.exports={getGenerateFilesData,getGenerateMetadata});
|