@povio/openapi-codegen-cli 0.5.3 → 0.5.4

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,65 +1,65 @@
1
- "use strict";var YS=Object.create;var ti=Object.defineProperty;var QS=Object.getOwnPropertyDescriptor;var JS=Object.getOwnPropertyNames;var XS=Object.getPrototypeOf,e2=Object.prototype.hasOwnProperty;var o=(e,t)=>ti(e,"name",{value:t,configurable:!0});var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),t2=(e,t)=>{for(var r in t)ti(e,r,{get:t[r],enumerable:!0})},Bf=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of JS(t))!e2.call(e,i)&&i!==r&&ti(e,i,{get:()=>t[i],enumerable:!(n=QS(t,i))||n.enumerable});return e};var lt=(e,t,r)=>(r=e!=null?YS(XS(e)):{},Bf(t||!e||!e.__esModule?ti(r,"default",{value:e,enumerable:!0}):r,e)),r2=e=>Bf(ti({},"__esModule",{value:!0}),e);var Ce=h((ke,zf)=>{"use strict";var _o=/^win/.test(process.platform),n2=/\//g,i2=/^(\w{2,}):\/\//i,Uf=zf.exports,o2=/~1/g,s2=/~0/g,Ta=[/\?/g,"%3F",/\#/g,"%23"],ka=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];ke.parse=require("url").parse;ke.resolve=require("url").resolve;ke.cwd=o(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");ke.getProtocol=o(function(t){let r=i2.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");ke.getExtension=o(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");ke.getHash=o(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");ke.stripHash=o(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");ke.isHttp=o(function(t){let r=Uf.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");ke.isFileSystemPath=o(function(t){if(process.browser)return!1;let r=Uf.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");ke.fromFileSystemPath=o(function(t){_o&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<Ta.length;r+=2)t=t.replace(Ta[r],Ta[r+1]);return t},"fromFileSystemPath");ke.toFileSystemPath=o(function(t,r){t=decodeURI(t);for(let i=0;i<ka.length;i+=2)t=t.replace(ka[i],ka[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),_o&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=_o?t:"/"+t)),_o&&!n&&(t=t.replace(n2,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");ke.safePointerToPath=o(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(o2,"/").replace(s2,"~"))},"safePointerToPath")});var So=h(ri=>{"use strict";var Gf=require("util"),a2=Ce();ri.format=Gf.format;ri.inherits=Gf.inherits;ri.swaggerParamRegExp=/\{([^/}]+)}/g;var c2=["get","post","put","delete","patch","options","head","trace"];function Ca(e,t){if(e.url&&e.url.startsWith("/")){let r=a2.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}o(Ca,"fixServers");function u2(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(s=>{s==="servers"?i[s].map(a=>Ca(a,t)):c2.includes(s)&&i[s].servers&&i[s].servers.map(a=>Ca(a,t))})})}))}o(u2,"fixOasRelativeServers");ri.fixOasRelativeServers=u2});var $o=h(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.getDeepKeys=rn.toJSON=void 0;var l2=["function","symbol","undefined"],p2=["constructor","prototype","__proto__"],f2=Object.getPrototypeOf({});function d2(){let e={},t=this;for(let r of Zf(t))if(typeof r=="string"){let n=t[r],i=typeof n;l2.includes(i)||(e[r]=n)}return e}o(d2,"toJSON");rn.toJSON=d2;function Zf(e,t=[]){let r=[];for(;e&&e!==f2;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(p2))n.delete(i);return n}o(Zf,"getDeepKeys");rn.getDeepKeys=Zf});var Ra=h(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.addInspectMethod=nn.format=void 0;var Kf=require("util"),m2=$o(),Wf=Kf.inspect.custom||Symbol.for("nodejs.util.inspect.custom");nn.format=Kf.format;function h2(e){e[Wf]=g2}o(h2,"addInspectMethod");nn.addInspectMethod=h2;function g2(){let e={},t=this;for(let r of m2.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[Wf],e}o(g2,"inspect")});var Jf=h(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.lazyJoinStacks=pt.joinStacks=pt.isWritableStack=pt.isLazyStack=void 0;var y2=/\r?\n/,v2=/\bono[ @]/;function b2(e){return!!(e&&e.configurable&&typeof e.get=="function")}o(b2,"isLazyStack");pt.isLazyStack=b2;function _2(e){return!!(!e||e.writable||typeof e.set=="function")}o(_2,"isWritableStack");pt.isWritableStack=_2;function Yf(e,t){let r=Qf(e.stack),n=t?t.stack:void 0;return r&&n?r+`
1
+ "use strict";var t2=Object.create;var ni=Object.defineProperty;var r2=Object.getOwnPropertyDescriptor;var n2=Object.getOwnPropertyNames;var i2=Object.getPrototypeOf,o2=Object.prototype.hasOwnProperty;var o=(e,t)=>ni(e,"name",{value:t,configurable:!0});var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s2=(e,t)=>{for(var r in t)ni(e,r,{get:t[r],enumerable:!0})},zf=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of n2(t))!o2.call(e,i)&&i!==r&&ni(e,i,{get:()=>t[i],enumerable:!(n=r2(t,i))||n.enumerable});return e};var lt=(e,t,r)=>(r=e!=null?t2(i2(e)):{},zf(t||!e||!e.__esModule?ni(r,"default",{value:e,enumerable:!0}):r,e)),a2=e=>zf(ni({},"__esModule",{value:!0}),e);var Re=h((Ce,Zf)=>{"use strict";var Oo=/^win/.test(process.platform),c2=/\//g,u2=/^(\w{2,}):\/\//i,Gf=Zf.exports,l2=/~1/g,p2=/~0/g,Ca=[/\?/g,"%3F",/\#/g,"%23"],Ra=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];Ce.parse=require("url").parse;Ce.resolve=require("url").resolve;Ce.cwd=o(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");Ce.getProtocol=o(function(t){let r=u2.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");Ce.getExtension=o(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");Ce.getHash=o(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");Ce.stripHash=o(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");Ce.isHttp=o(function(t){let r=Gf.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");Ce.isFileSystemPath=o(function(t){if(process.browser)return!1;let r=Gf.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");Ce.fromFileSystemPath=o(function(t){Oo&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<Ca.length;r+=2)t=t.replace(Ca[r],Ca[r+1]);return t},"fromFileSystemPath");Ce.toFileSystemPath=o(function(t,r){t=decodeURI(t);for(let i=0;i<Ra.length;i+=2)t=t.replace(Ra[i],Ra[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),Oo&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=Oo?t:"/"+t)),Oo&&!n&&(t=t.replace(c2,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");Ce.safePointerToPath=o(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(l2,"/").replace(p2,"~"))},"safePointerToPath")});var Eo=h(ii=>{"use strict";var Kf=require("util"),f2=Re();ii.format=Kf.format;ii.inherits=Kf.inherits;ii.swaggerParamRegExp=/\{([^/}]+)}/g;var d2=["get","post","put","delete","patch","options","head","trace"];function Na(e,t){if(e.url&&e.url.startsWith("/")){let r=f2.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}o(Na,"fixServers");function m2(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>Na(r,t)),["paths","webhooks"].forEach(r=>{Object.keys(e[r]||[]).forEach(n=>{let i=e[r][n];Object.keys(i).forEach(s=>{s==="servers"?i[s].map(a=>Na(a,t)):d2.includes(s)&&i[s].servers&&i[s].servers.map(a=>Na(a,t))})})}))}o(m2,"fixOasRelativeServers");ii.fixOasRelativeServers=m2});var xo=h(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.getDeepKeys=on.toJSON=void 0;var h2=["function","symbol","undefined"],g2=["constructor","prototype","__proto__"],y2=Object.getPrototypeOf({});function v2(){let e={},t=this;for(let r of Wf(t))if(typeof r=="string"){let n=t[r],i=typeof n;h2.includes(i)||(e[r]=n)}return e}o(v2,"toJSON");on.toJSON=v2;function Wf(e,t=[]){let r=[];for(;e&&e!==y2;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(g2))n.delete(i);return n}o(Wf,"getDeepKeys");on.getDeepKeys=Wf});var ja=h(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.addInspectMethod=sn.format=void 0;var Yf=require("util"),b2=xo(),Jf=Yf.inspect.custom||Symbol.for("nodejs.util.inspect.custom");sn.format=Yf.format;function S2(e){e[Jf]=_2}o(S2,"addInspectMethod");sn.addInspectMethod=S2;function _2(){let e={},t=this;for(let r of b2.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[Jf],e}o(_2,"inspect")});var ed=h(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.lazyJoinStacks=pt.joinStacks=pt.isWritableStack=pt.isLazyStack=void 0;var P2=/\r?\n/,$2=/\bono[ @]/;function O2(e){return!!(e&&e.configurable&&typeof e.get=="function")}o(O2,"isLazyStack");pt.isLazyStack=O2;function E2(e){return!!(!e||e.writable||typeof e.set=="function")}o(E2,"isWritableStack");pt.isWritableStack=E2;function Qf(e,t){let r=Xf(e.stack),n=t?t.stack:void 0;return r&&n?r+`
2
2
 
3
- `+n:r||n}o(Yf,"joinStacks");pt.joinStacks=Yf;function S2(e,t,r){r?Object.defineProperty(t,"stack",{get:o(()=>{let n=e.get.apply(t);return Yf({stack:n},r)},"get"),enumerable:!1,configurable:!0}):$2(t,e)}o(S2,"lazyJoinStacks");pt.lazyJoinStacks=S2;function Qf(e){if(e){let t=e.split(y2),r;for(let n=0;n<t.length;n++){let i=t[n];if(v2.test(i))r===void 0&&(r=n);else if(r!==void 0){t.splice(r,n-r);break}}if(t.length>0)return t.join(`
4
- `)}return e}o(Qf,"popStack");function $2(e,t){Object.defineProperty(e,"stack",{get:o(()=>Qf(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}o($2,"lazyPopStack")});var td=h(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.extendError=void 0;var Xf=Ra(),Po=Jf(),ed=$o(),P2=["name","message","stack"];function E2(e,t,r){let n=e;return O2(n,t),t&&typeof t=="object"&&x2(n,t),n.toJSON=ed.toJSON,Xf.addInspectMethod&&Xf.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}o(E2,"extendError");Eo.extendError=E2;function O2(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");Po.isLazyStack(r)?Po.lazyJoinStacks(r,e,t):Po.isWritableStack(r)&&(e.stack=Po.joinStacks(e,t))}o(O2,"extendStack");function x2(e,t){let r=ed.getDeepKeys(t,P2),n=e,i=t;for(let s of r)if(n[s]===void 0)try{n[s]=i[s]}catch{}}o(x2,"mergeErrors")});var rd=h(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.normalizeArgs=on.normalizeOptions=void 0;var w2=Ra();function A2(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?w2.format:typeof e.format=="function"?e.format:!1}}o(A2,"normalizeOptions");on.normalizeOptions=A2;function I2(e,t){let r,n,i,s="";return typeof e[0]=="string"?i=e:typeof e[1]=="string"?(e[0]instanceof Error?r=e[0]:n=e[0],i=e.slice(1)):(r=e[0],n=e[1],i=e.slice(2)),i.length>0&&(t.format?s=t.format.apply(void 0,i):s=i.join(" ")),t.concatMessages&&r&&r.message&&(s+=(s?`
5
- `:"")+r.message),{originalError:r,props:n,message:s}}o(I2,"normalizeArgs");on.normalizeArgs=I2});var ja=h(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.Ono=void 0;var Oo=td(),nd=rd(),T2=$o(),k2=Na;xo.Ono=k2;function Na(e,t){t=nd.normalizeOptions(t);function r(...n){let{originalError:i,props:s,message:a}=nd.normalizeArgs(n,t),c=new e(a);return Oo.extendError(c,i,s)}return o(r,"ono"),r[Symbol.species]=e,r}o(Na,"Ono");Na.toJSON=o(function(t){return T2.toJSON.call(t)},"toJSON");Na.extend=o(function(t,r,n){return n||r instanceof Error?Oo.extendError(t,r,n):r?Oo.extendError(t,void 0,r):Oo.extendError(t)},"extend")});var id=h(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.ono=void 0;var Sr=ja(),C2=ft;wo.ono=C2;ft.error=new Sr.Ono(Error);ft.eval=new Sr.Ono(EvalError);ft.range=new Sr.Ono(RangeError);ft.reference=new Sr.Ono(ReferenceError);ft.syntax=new Sr.Ono(SyntaxError);ft.type=new Sr.Ono(TypeError);ft.uri=new Sr.Ono(URIError);var R2=ft;function ft(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(R2))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 ft.error.apply(void 0,e)}o(ft,"ono")});var sd=h(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});var Ej=require("util")});var We=h((Ke,sn)=>{"use strict";var N2=Ke&&Ke.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:o(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),j2=Ke&&Ke.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&N2(t,e,r)};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.ono=void 0;var ad=id();Object.defineProperty(Ke,"ono",{enumerable:!0,get:o(function(){return ad.ono},"get")});var q2=ja();Object.defineProperty(Ke,"Ono",{enumerable:!0,get:o(function(){return q2.Ono},"get")});j2(sd(),Ke);Ke.default=ad.ono;typeof sn=="object"&&typeof sn.exports=="object"&&(sn.exports=Object.assign(sn.exports.default,sn.exports))});var oi=h(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.regexpCode=q.getEsmExportName=q.getProperty=q.safeStringify=q.stringify=q.strConcat=q.addCodeArg=q.str=q._=q.nil=q._Code=q.Name=q.IDENTIFIER=q._CodeOrName=void 0;var Da=class Da{};o(Da,"_CodeOrName");var ni=Da;q._CodeOrName=ni;q.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var La=class La extends ni{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(La,"Name");var $r=La;q.Name=$r;var Fa=class Fa extends ni{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(Fa,"_Code");var Me=Fa;q._Code=Me;q.nil=new Me("");function cd(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Ma(r,t[n]),r.push(e[++n]);return new Me(r)}o(cd,"_");q._=cd;var qa=new Me("+");function ud(e,...t){let r=[ii(e[0])],n=0;for(;n<t.length;)r.push(qa),Ma(r,t[n]),r.push(qa,ii(e[++n]));return M2(r),new Me(r)}o(ud,"str");q.str=ud;function Ma(e,t){t instanceof Me?e.push(...t._items):t instanceof $r?e.push(t):e.push(F2(t))}o(Ma,"addCodeArg");q.addCodeArg=Ma;function M2(e){let t=1;for(;t<e.length-1;){if(e[t]===qa){let r=D2(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}o(M2,"optimize");function D2(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(D2,"mergeExprItems");function L2(e,t){return t.emptyStr()?e:e.emptyStr()?t:ud`${e}${t}`}o(L2,"strConcat");q.strConcat=L2;function F2(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ii(Array.isArray(e)?e.join(","):e)}o(F2,"interpolate");function V2(e){return new Me(ii(e))}o(V2,"stringify");q.stringify=V2;function ii(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(ii,"safeStringify");q.safeStringify=ii;function H2(e){return typeof e=="string"&&q.IDENTIFIER.test(e)?new Me(`.${e}`):cd`[${e}]`}o(H2,"getProperty");q.getProperty=H2;function B2(e){if(typeof e=="string"&&q.IDENTIFIER.test(e))return new Me(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}o(B2,"getEsmExportName");q.getEsmExportName=B2;function U2(e){return new Me(e.toString())}o(U2,"regexpCode");q.regexpCode=U2});var Za=h(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.ValueScope=we.ValueScopeName=we.Scope=we.varKinds=we.UsedValueState=void 0;var xe=oi(),Ba=class Ba extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};o(Ba,"ValueError");var Va=Ba,Ao;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Ao||(we.UsedValueState=Ao={}));we.varKinds={const:new xe.Name("const"),let:new xe.Name("let"),var:new xe.Name("var")};var Ua=class Ua{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(Ua,"Scope");var Io=Ua;we.Scope=Io;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 To=za;we.ValueScopeName=To;var z2=(0,xe._)`\n`,Ga=class Ga extends Io{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?z2: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:s}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,c=this._values[s];if(c){let f=c.get(a);if(f)return f}else c=this._values[s]=new Map;c.set(a,i);let u=this._scope[s]||(this._scope[s]=[]),l=u.length;return u[l]=r.ref,i.setValue(r,{property:s,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,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 c=t[a];if(!c)continue;let u=n[a]=n[a]||new Map;c.forEach(l=>{if(u.has(l))return;u.set(l,Ao.Started);let f=r(l);if(f){let p=this.opts.es5?we.varKinds.var:we.varKinds.const;s=(0,xe._)`${s}${p} ${l} = ${f};${this.opts._n}`}else if(f=i==null?void 0:i(l))s=(0,xe._)`${s}${f}${this.opts._n}`;else throw new Va(l);u.set(l,Ao.Completed)})}return s}};o(Ga,"ValueScope");var Ha=Ga;we.ValueScope=Ha});var A=h(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.or=T.and=T.not=T.CodeGen=T.operators=T.varKinds=T.ValueScopeName=T.ValueScope=T.Scope=T.Name=T.regexpCode=T.stringify=T.getProperty=T.nil=T.strConcat=T.str=T._=void 0;var N=oi(),Ye=Za(),Zt=oi();Object.defineProperty(T,"_",{enumerable:!0,get:o(function(){return Zt._},"get")});Object.defineProperty(T,"str",{enumerable:!0,get:o(function(){return Zt.str},"get")});Object.defineProperty(T,"strConcat",{enumerable:!0,get:o(function(){return Zt.strConcat},"get")});Object.defineProperty(T,"nil",{enumerable:!0,get:o(function(){return Zt.nil},"get")});Object.defineProperty(T,"getProperty",{enumerable:!0,get:o(function(){return Zt.getProperty},"get")});Object.defineProperty(T,"stringify",{enumerable:!0,get:o(function(){return Zt.stringify},"get")});Object.defineProperty(T,"regexpCode",{enumerable:!0,get:o(function(){return Zt.regexpCode},"get")});Object.defineProperty(T,"Name",{enumerable:!0,get:o(function(){return Zt.Name},"get")});var No=Za();Object.defineProperty(T,"Scope",{enumerable:!0,get:o(function(){return No.Scope},"get")});Object.defineProperty(T,"ValueScope",{enumerable:!0,get:o(function(){return No.ValueScope},"get")});Object.defineProperty(T,"ValueScopeName",{enumerable:!0,get:o(function(){return No.ValueScopeName},"get")});Object.defineProperty(T,"varKinds",{enumerable:!0,get:o(function(){return No.varKinds},"get")});T.operators={GT:new N._Code(">"),GTE:new N._Code(">="),LT:new N._Code("<"),LTE:new N._Code("<="),EQ:new N._Code("==="),NEQ:new N._Code("!=="),NOT:new N._Code("!"),OR:new N._Code("||"),AND:new N._Code("&&"),ADD:new N._Code("+")};var sc=class sc{optimizeNodes(){return this}optimizeNames(t,r){return this}};o(sc,"Node");var kt=sc,ac=class ac extends kt{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Ye.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=un(this.rhs,t,r)),this}get names(){return this.rhs instanceof N._CodeOrName?this.rhs.names:{}}};o(ac,"Def");var Ka=ac,cc=class cc extends kt{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 N.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=un(this.rhs,t,r),this}get names(){let t=this.lhs instanceof N.Name?{}:{...this.lhs.names};return Ro(t,this.rhs)}};o(cc,"Assign");var ko=cc,uc=class uc extends ko{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};o(uc,"AssignOp");var Wa=uc,lc=class lc extends kt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};o(lc,"Label");var Ya=lc,pc=class pc extends kt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};o(pc,"Break");var Qa=pc,fc=class fc extends kt{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};o(fc,"Throw");var Ja=fc,dc=class dc extends kt{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=un(this.code,t,r),this}get names(){return this.code instanceof N._CodeOrName?this.code.names:{}}};o(dc,"AnyCode");var Xa=dc,mc=class mc extends kt{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)||(G2(t,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Or(t,r.names),{})}};o(mc,"ParentNode");var si=mc,hc=class hc extends si{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};o(hc,"BlockNode");var Ct=hc,gc=class gc extends si{};o(gc,"Root");var ec=gc,yc=class yc extends Ct{};o(yc,"Else");var cn=yc;cn.kind="else";var an=class an extends Ct{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new cn(n):n}if(r)return t===!1?r instanceof an?r:r.nodes:this.nodes.length?this:new an(ld(t),r instanceof an?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=un(this.condition,t,r),this}get names(){let t=super.names;return Ro(t,this.condition),this.else&&Or(t,this.else.names),t}};o(an,"If");var Pr=an;Pr.kind="if";var vc=class vc extends Ct{};o(vc,"For");var Er=vc;Er.kind="for";var bc=class bc extends Er{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=un(this.iteration,t,r),this}get names(){return Or(super.names,this.iteration.names)}};o(bc,"ForLoop");var tc=bc,_c=class _c extends Er{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?Ye.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=Ro(super.names,this.from);return Ro(t,this.to)}};o(_c,"ForRange");var rc=_c,Sc=class Sc extends Er{constructor(t,r,n,i){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=un(this.iterable,t,r),this}get names(){return Or(super.names,this.iterable.names)}};o(Sc,"ForIter");var Co=Sc,$c=class $c extends Ct{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($c,"Func");var ai=$c;ai.kind="func";var Pc=class Pc extends si{render(t){return"return "+super.render(t)}};o(Pc,"Return");var ci=Pc;ci.kind="return";var Ec=class Ec extends Ct{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&&Or(t,this.catch.names),this.finally&&Or(t,this.finally.names),t}};o(Ec,"Try");var nc=Ec,Oc=class Oc extends Ct{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};o(Oc,"Catch");var ui=Oc;ui.kind="catch";var xc=class xc extends Ct{render(t){return"finally"+super.render(t)}};o(xc,"Finally");var li=xc;li.kind="finally";var wc=class wc{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
6
- `:""},this._extScope=t,this._scope=new Ye.Scope({parent:t}),this._nodes=[new ec]}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 Ka(t,s,n)),s}const(t,r,n){return this._def(Ye.varKinds.const,t,r,n)}let(t,r,n){return this._def(Ye.varKinds.let,t,r,n)}var(t,r,n){return this._def(Ye.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new ko(t,r,n))}add(t,r){return this._leafNode(new Wa(t,T.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==N.nil&&this._leafNode(new Xa(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,N.addCodeArg)(r,i));return r.push("}"),new N._Code(r)}if(t,r,n){if(this._blockNode(new Pr(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 Pr(t))}else(){return this._elseNode(new cn)}endIf(){return this._endBlockNode(Pr,cn)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new tc(t),r)}forRange(t,r,n,i,s=this.opts.es5?Ye.varKinds.var:Ye.varKinds.let){let a=this._scope.toName(t);return this._for(new rc(s,a,r,n),()=>i(a))}forOf(t,r,n,i=Ye.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let a=r instanceof N.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,N._)`${a}.length`,c=>{this.var(s,(0,N._)`${a}[${c}]`),n(s)})}return this._for(new Co("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?Ye.varKinds.var:Ye.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,N._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new Co("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(Er)}label(t){return this._leafNode(new Ya(t))}break(t){return this._leafNode(new Qa(t))}return(t){let r=new ci;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(ci)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new nc;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new ui(s),r(s)}return n&&(this._currNode=i.finally=new li,this.code(n)),this._endBlockNode(ui,li)}throw(t){return this._leafNode(new Ja(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=N.nil,n,i){return this._blockNode(new ai(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(ai)}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 Pr))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(wc,"CodeGen");var ic=wc;T.CodeGen=ic;function Or(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}o(Or,"addNames");function Ro(e,t){return t instanceof N._CodeOrName?Or(e,t.names):e}o(Ro,"addExprNames");function un(e,t,r){if(e instanceof N.Name)return n(e);if(!i(e))return e;return new N._Code(e._items.reduce((s,a)=>(a instanceof N.Name&&(a=n(a)),a instanceof N._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 N._Code&&s._items.some(a=>a instanceof N.Name&&t[a.str]===1&&r[a.str]!==void 0)}}o(un,"optimizeExpr");function G2(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}o(G2,"subtractNames");function ld(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,N._)`!${oc(e)}`}o(ld,"not");T.not=ld;var Z2=pd(T.operators.AND);function K2(...e){return e.reduce(Z2)}o(K2,"and");T.and=K2;var W2=pd(T.operators.OR);function Y2(...e){return e.reduce(W2)}o(Y2,"or");T.or=Y2;function pd(e){return(t,r)=>t===N.nil?r:r===N.nil?t:(0,N._)`${oc(t)} ${e} ${oc(r)}`}o(pd,"mappend");function oc(e){return e instanceof N.Name?e:(0,N._)`(${e})`}o(oc,"par")});var C=h(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.checkStrictMode=k.getErrorPath=k.Type=k.useFunc=k.setEvaluated=k.evaluatedPropsToName=k.mergeEvaluated=k.eachItem=k.unescapeJsonPointer=k.escapeJsonPointer=k.escapeFragment=k.unescapeFragment=k.schemaRefOrVal=k.schemaHasRulesButRef=k.schemaHasRules=k.checkUnknownRules=k.alwaysValidSchema=k.toHash=void 0;var V=A(),Q2=oi();function J2(e){let t={};for(let r of e)t[r]=!0;return t}o(J2,"toHash");k.toHash=J2;function X2(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(md(e,t),!hd(t,e.self.RULES.all))}o(X2,"alwaysValidSchema");k.alwaysValidSchema=X2;function md(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]||vd(e,`unknown keyword: "${s}"`)}o(md,"checkUnknownRules");k.checkUnknownRules=md;function hd(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}o(hd,"schemaHasRules");k.schemaHasRules=hd;function e$(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}o(e$,"schemaHasRulesButRef");k.schemaHasRulesButRef=e$;function t$({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,V._)`${r}`}return(0,V._)`${e}${t}${(0,V.getProperty)(n)}`}o(t$,"schemaRefOrVal");k.schemaRefOrVal=t$;function r$(e){return gd(decodeURIComponent(e))}o(r$,"unescapeFragment");k.unescapeFragment=r$;function n$(e){return encodeURIComponent(Ic(e))}o(n$,"escapeFragment");k.escapeFragment=n$;function Ic(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}o(Ic,"escapeJsonPointer");k.escapeJsonPointer=Ic;function gd(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(gd,"unescapeJsonPointer");k.unescapeJsonPointer=gd;function i$(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}o(i$,"eachItem");k.eachItem=i$;function fd({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,c)=>{let u=a===void 0?s:a instanceof V.Name?(s instanceof V.Name?e(i,s,a):t(i,s,a),a):s instanceof V.Name?(t(i,a,s),s):r(s,a);return c===V.Name&&!(u instanceof V.Name)?n(i,u):u}}o(fd,"makeMergeEvaluated");k.mergeEvaluated={props:fd({mergeNames:o((e,t,r)=>e.if((0,V._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,V._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,V._)`${r} || {}`).code((0,V._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,V._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,V._)`${r} || {}`),Tc(e,r,t))}),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:yd}),items:fd({mergeNames:o((e,t,r)=>e.if((0,V._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,V._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,V._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,V._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:o((e,t)=>e.var("items",t),"resultToName")})};function yd(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,V._)`{}`);return t!==void 0&&Tc(e,r,t),r}o(yd,"evaluatedPropsToName");k.evaluatedPropsToName=yd;function Tc(e,t,r){Object.keys(r).forEach(n=>e.assign((0,V._)`${t}${(0,V.getProperty)(n)}`,!0))}o(Tc,"setEvaluated");k.setEvaluated=Tc;var dd={};function o$(e,t){return e.scopeValue("func",{ref:t,code:dd[t.code]||(dd[t.code]=new Q2._Code(t.code))})}o(o$,"useFunc");k.useFunc=o$;var Ac;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Ac||(k.Type=Ac={}));function s$(e,t,r){if(e instanceof V.Name){let n=t===Ac.Num;return r?n?(0,V._)`"[" + ${e} + "]"`:(0,V._)`"['" + ${e} + "']"`:n?(0,V._)`"/" + ${e}`:(0,V._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,V.getProperty)(e).toString():"/"+Ic(e)}o(s$,"getErrorPath");k.getErrorPath=s$;function vd(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(vd,"checkStrictMode");k.checkStrictMode=vd});var De=h(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});var pe=A(),a$={data:new pe.Name("data"),valCxt:new pe.Name("valCxt"),instancePath:new pe.Name("instancePath"),parentData:new pe.Name("parentData"),parentDataProperty:new pe.Name("parentDataProperty"),rootData:new pe.Name("rootData"),dynamicAnchors:new pe.Name("dynamicAnchors"),vErrors:new pe.Name("vErrors"),errors:new pe.Name("errors"),this:new pe.Name("this"),self:new pe.Name("self"),scope:new pe.Name("scope"),json:new pe.Name("json"),jsonPos:new pe.Name("jsonPos"),jsonLen:new pe.Name("jsonLen"),jsonPart:new pe.Name("jsonPart")};kc.default=a$});var pi=h(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.extendErrors=fe.resetErrorsCount=fe.reportExtraError=fe.reportError=fe.keyword$DataError=fe.keywordError=void 0;var j=A(),jo=C(),_e=De();fe.keywordError={message:o(({keyword:e})=>(0,j.str)`must pass "${e}" keyword validation`,"message")};fe.keyword$DataError={message:o(({keyword:e,schemaType:t})=>t?(0,j.str)`"${e}" keyword must be ${t} ($data)`:(0,j.str)`"${e}" keyword is invalid ($data)`,"message")};function c$(e,t=fe.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:c}=i,u=Sd(e,t,r);n??(a||c)?bd(s,u):_d(i,(0,j._)`[${u}]`)}o(c$,"reportError");fe.reportError=c$;function u$(e,t=fe.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,c=Sd(e,t,r);bd(i,c),s||a||_d(n,_e.default.vErrors)}o(u$,"reportExtraError");fe.reportExtraError=u$;function l$(e,t){e.assign(_e.default.errors,t),e.if((0,j._)`${_e.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,j._)`${_e.default.vErrors}.length`,t),()=>e.assign(_e.default.vErrors,null)))}o(l$,"resetErrorsCount");fe.resetErrorsCount=l$;function p$({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,c=>{e.const(a,(0,j._)`${_e.default.vErrors}[${c}]`),e.if((0,j._)`${a}.instancePath === undefined`,()=>e.assign((0,j._)`${a}.instancePath`,(0,j.strConcat)(_e.default.instancePath,s.errorPath))),e.assign((0,j._)`${a}.schemaPath`,(0,j.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,j._)`${a}.schema`,r),e.assign((0,j._)`${a}.data`,n))})}o(p$,"extendErrors");fe.extendErrors=p$;function bd(e,t){let r=e.const("err",t);e.if((0,j._)`${_e.default.vErrors} === null`,()=>e.assign(_e.default.vErrors,(0,j._)`[${r}]`),(0,j._)`${_e.default.vErrors}.push(${r})`),e.code((0,j._)`${_e.default.errors}++`)}o(bd,"addError");function _d(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,j._)`new ${e.ValidationError}(${t})`):(r.assign((0,j._)`${n}.errors`,t),r.return(!1))}o(_d,"returnErrors");var xr={keyword:new j.Name("keyword"),schemaPath:new j.Name("schemaPath"),params:new j.Name("params"),propertyName:new j.Name("propertyName"),message:new j.Name("message"),schema:new j.Name("schema"),parentSchema:new j.Name("parentSchema")};function Sd(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,j._)`{}`:f$(e,t,r)}o(Sd,"errorObjectCode");function f$(e,t,r={}){let{gen:n,it:i}=e,s=[d$(i,r),m$(e,r)];return h$(e,t,s),n.object(...s)}o(f$,"errorObject");function d$({errorPath:e},{instancePath:t}){let r=t?(0,j.str)`${e}${(0,jo.getErrorPath)(t,jo.Type.Str)}`:e;return[_e.default.instancePath,(0,j.strConcat)(_e.default.instancePath,r)]}o(d$,"errorInstancePath");function m$({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,j.str)`${t}/${e}`;return r&&(i=(0,j.str)`${i}${(0,jo.getErrorPath)(r,jo.Type.Str)}`),[xr.schemaPath,i]}o(m$,"errorSchemaPath");function h$(e,{params:t,message:r},n){let{keyword:i,data:s,schemaValue:a,it:c}=e,{opts:u,propertyName:l,topSchemaRef:f,schemaPath:p}=c;n.push([xr.keyword,i],[xr.params,typeof t=="function"?t(e):t||(0,j._)`{}`]),u.messages&&n.push([xr.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([xr.schema,a],[xr.parentSchema,(0,j._)`${f}${p}`],[_e.default.data,s]),l&&n.push([xr.propertyName,l])}o(h$,"extraErrorProps")});var Pd=h(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.boolOrEmptySchema=ln.topBoolOrEmptySchema=void 0;var g$=pi(),y$=A(),v$=De(),b$={message:"boolean schema is false"};function _$(e){let{gen:t,schema:r,validateName:n}=e;r===!1?$d(e,!1):typeof r=="object"&&r.$async===!0?t.return(v$.default.data):(t.assign((0,y$._)`${n}.errors`,null),t.return(!0))}o(_$,"topBoolOrEmptySchema");ln.topBoolOrEmptySchema=_$;function S$(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),$d(e)):r.var(t,!0)}o(S$,"boolOrEmptySchema");ln.boolOrEmptySchema=S$;function $d(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,g$.reportError)(i,b$,void 0,t)}o($d,"falseSchemaError")});var Cc=h(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.getRules=pn.isJSONType=void 0;var $$=["string","number","integer","boolean","null","object","array"],P$=new Set($$);function E$(e){return typeof e=="string"&&P$.has(e)}o(E$,"isJSONType");pn.isJSONType=E$;function O$(){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(O$,"getRules");pn.getRules=O$});var Rc=h(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.shouldUseRule=Kt.shouldUseGroup=Kt.schemaHasRulesForType=void 0;function x$({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Ed(e,n)}o(x$,"schemaHasRulesForType");Kt.schemaHasRulesForType=x$;function Ed(e,t){return t.rules.some(r=>Od(e,r))}o(Ed,"shouldUseGroup");Kt.shouldUseGroup=Ed;function Od(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(Od,"shouldUseRule");Kt.shouldUseRule=Od});var fi=h(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.reportTypeError=de.checkDataTypes=de.checkDataType=de.coerceAndCheckDataType=de.getJSONTypes=de.getSchemaTypes=de.DataType=void 0;var w$=Cc(),A$=Rc(),I$=pi(),I=A(),xd=C(),fn;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(fn||(de.DataType=fn={}));function T$(e){let t=wd(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(T$,"getSchemaTypes");de.getSchemaTypes=T$;function wd(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(w$.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}o(wd,"getJSONTypes");de.getJSONTypes=wd;function k$(e,t){let{gen:r,data:n,opts:i}=e,s=C$(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,A$.schemaHasRulesForType)(e,t[0]));if(a){let c=jc(t,n,i.strictNumbers,fn.Wrong);r.if(c,()=>{s.length?R$(e,t,s):qc(e)})}return a}o(k$,"coerceAndCheckDataType");de.coerceAndCheckDataType=k$;var Ad=new Set(["string","number","integer","boolean","null"]);function C$(e,t){return t?e.filter(r=>Ad.has(r)||t==="array"&&r==="array"):[]}o(C$,"coerceToTypes");function R$(e,t,r){let{gen:n,data:i,opts:s}=e,a=n.let("dataType",(0,I._)`typeof ${i}`),c=n.let("coerced",(0,I._)`undefined`);s.coerceTypes==="array"&&n.if((0,I._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,I._)`${i}[0]`).assign(a,(0,I._)`typeof ${i}`).if(jc(t,i,s.strictNumbers),()=>n.assign(c,i))),n.if((0,I._)`${c} !== undefined`);for(let l of r)(Ad.has(l)||l==="array"&&s.coerceTypes==="array")&&u(l);n.else(),qc(e),n.endIf(),n.if((0,I._)`${c} !== undefined`,()=>{n.assign(i,c),N$(e,c)});function u(l){switch(l){case"string":n.elseIf((0,I._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,I._)`"" + ${i}`).elseIf((0,I._)`${i} === null`).assign(c,(0,I._)`""`);return;case"number":n.elseIf((0,I._)`${a} == "boolean" || ${i} === null
3
+ `+n:r||n}o(Qf,"joinStacks");pt.joinStacks=Qf;function x2(e,t,r){r?Object.defineProperty(t,"stack",{get:o(()=>{let n=e.get.apply(t);return Qf({stack:n},r)},"get"),enumerable:!1,configurable:!0}):w2(t,e)}o(x2,"lazyJoinStacks");pt.lazyJoinStacks=x2;function Xf(e){if(e){let t=e.split(P2),r;for(let n=0;n<t.length;n++){let i=t[n];if($2.test(i))r===void 0&&(r=n);else if(r!==void 0){t.splice(r,n-r);break}}if(t.length>0)return t.join(`
4
+ `)}return e}o(Xf,"popStack");function w2(e,t){Object.defineProperty(e,"stack",{get:o(()=>Xf(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}o(w2,"lazyPopStack")});var nd=h(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.extendError=void 0;var td=ja(),wo=ed(),rd=xo(),A2=["name","message","stack"];function I2(e,t,r){let n=e;return T2(n,t),t&&typeof t=="object"&&k2(n,t),n.toJSON=rd.toJSON,td.addInspectMethod&&td.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}o(I2,"extendError");Ao.extendError=I2;function T2(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");wo.isLazyStack(r)?wo.lazyJoinStacks(r,e,t):wo.isWritableStack(r)&&(e.stack=wo.joinStacks(e,t))}o(T2,"extendStack");function k2(e,t){let r=rd.getDeepKeys(t,A2),n=e,i=t;for(let s of r)if(n[s]===void 0)try{n[s]=i[s]}catch{}}o(k2,"mergeErrors")});var id=h(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.normalizeArgs=an.normalizeOptions=void 0;var C2=ja();function R2(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?C2.format:typeof e.format=="function"?e.format:!1}}o(R2,"normalizeOptions");an.normalizeOptions=R2;function N2(e,t){let r,n,i,s="";return typeof e[0]=="string"?i=e:typeof e[1]=="string"?(e[0]instanceof Error?r=e[0]:n=e[0],i=e.slice(1)):(r=e[0],n=e[1],i=e.slice(2)),i.length>0&&(t.format?s=t.format.apply(void 0,i):s=i.join(" ")),t.concatMessages&&r&&r.message&&(s+=(s?`
5
+ `:"")+r.message),{originalError:r,props:n,message:s}}o(N2,"normalizeArgs");an.normalizeArgs=N2});var Ma=h(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.Ono=void 0;var Io=nd(),od=id(),j2=xo(),q2=qa;To.Ono=q2;function qa(e,t){t=od.normalizeOptions(t);function r(...n){let{originalError:i,props:s,message:a}=od.normalizeArgs(n,t),c=new e(a);return Io.extendError(c,i,s)}return o(r,"ono"),r[Symbol.species]=e,r}o(qa,"Ono");qa.toJSON=o(function(t){return j2.toJSON.call(t)},"toJSON");qa.extend=o(function(t,r,n){return n||r instanceof Error?Io.extendError(t,r,n):r?Io.extendError(t,void 0,r):Io.extendError(t)},"extend")});var sd=h(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.ono=void 0;var Pr=Ma(),M2=ft;ko.ono=M2;ft.error=new Pr.Ono(Error);ft.eval=new Pr.Ono(EvalError);ft.range=new Pr.Ono(RangeError);ft.reference=new Pr.Ono(ReferenceError);ft.syntax=new Pr.Ono(SyntaxError);ft.type=new Pr.Ono(TypeError);ft.uri=new Pr.Ono(URIError);var D2=ft;function ft(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(D2))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 ft.error.apply(void 0,e)}o(ft,"ono")});var cd=h(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});var Nj=require("util")});var Ye=h((We,cn)=>{"use strict";var L2=We&&We.__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]}),F2=We&&We.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&L2(t,e,r)};Object.defineProperty(We,"__esModule",{value:!0});We.ono=void 0;var ud=sd();Object.defineProperty(We,"ono",{enumerable:!0,get:o(function(){return ud.ono},"get")});var V2=Ma();Object.defineProperty(We,"Ono",{enumerable:!0,get:o(function(){return V2.Ono},"get")});F2(cd(),We);We.default=ud.ono;typeof cn=="object"&&typeof cn.exports=="object"&&(cn.exports=Object.assign(cn.exports.default,cn.exports))});var ai=h(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});j.regexpCode=j.getEsmExportName=j.getProperty=j.safeStringify=j.stringify=j.strConcat=j.addCodeArg=j.str=j._=j.nil=j._Code=j.Name=j.IDENTIFIER=j._CodeOrName=void 0;var Fa=class Fa{};o(Fa,"_CodeOrName");var oi=Fa;j._CodeOrName=oi;j.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Va=class Va extends oi{constructor(t){if(super(),!j.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;j.Name=$r;var Ha=class Ha extends oi{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(Ha,"_Code");var De=Ha;j._Code=De;j.nil=new De("");function ld(e,...t){let r=[e[0]],n=0;for(;n<t.length;)La(r,t[n]),r.push(e[++n]);return new De(r)}o(ld,"_");j._=ld;var Da=new De("+");function pd(e,...t){let r=[si(e[0])],n=0;for(;n<t.length;)r.push(Da),La(r,t[n]),r.push(Da,si(e[++n]));return H2(r),new De(r)}o(pd,"str");j.str=pd;function La(e,t){t instanceof De?e.push(...t._items):t instanceof $r?e.push(t):e.push(z2(t))}o(La,"addCodeArg");j.addCodeArg=La;function H2(e){let t=1;for(;t<e.length-1;){if(e[t]===Da){let r=B2(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}o(H2,"optimize");function B2(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(B2,"mergeExprItems");function U2(e,t){return t.emptyStr()?e:e.emptyStr()?t:pd`${e}${t}`}o(U2,"strConcat");j.strConcat=U2;function z2(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:si(Array.isArray(e)?e.join(","):e)}o(z2,"interpolate");function G2(e){return new De(si(e))}o(G2,"stringify");j.stringify=G2;function si(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(si,"safeStringify");j.safeStringify=si;function Z2(e){return typeof e=="string"&&j.IDENTIFIER.test(e)?new De(`.${e}`):ld`[${e}]`}o(Z2,"getProperty");j.getProperty=Z2;function K2(e){if(typeof e=="string"&&j.IDENTIFIER.test(e))return new De(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}o(K2,"getEsmExportName");j.getEsmExportName=K2;function W2(e){return new De(e.toString())}o(W2,"regexpCode");j.regexpCode=W2});var Wa=h(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.ValueScope=Ae.ValueScopeName=Ae.Scope=Ae.varKinds=Ae.UsedValueState=void 0;var we=ai(),za=class za extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};o(za,"ValueError");var Ba=za,Co;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Co||(Ae.UsedValueState=Co={}));Ae.varKinds={const:new we.Name("const"),let:new we.Name("let"),var:new we.Name("var")};var Ga=class Ga{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof we.Name?t:this.name(t)}name(t){return new we.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};o(Ga,"Scope");var Ro=Ga;Ae.Scope=Ro;var Za=class Za extends we.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,we._)`.${new we.Name(r)}[${n}]`}};o(Za,"ValueScopeName");var No=Za;Ae.ValueScopeName=No;var Y2=(0,we._)`\n`,Ka=class Ka extends Ro{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?Y2:we.nil}}get(){return this._scope}name(t){return new No(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:s}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,c=this._values[s];if(c){let f=c.get(a);if(f)return f}else c=this._values[s]=new Map;c.set(a,i);let u=this._scope[s]||(this._scope[s]=[]),l=u.length;return u[l]=r.ref,i.setValue(r,{property:s,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,we._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let s=we.nil;for(let a in t){let c=t[a];if(!c)continue;let u=n[a]=n[a]||new Map;c.forEach(l=>{if(u.has(l))return;u.set(l,Co.Started);let f=r(l);if(f){let p=this.opts.es5?Ae.varKinds.var:Ae.varKinds.const;s=(0,we._)`${s}${p} ${l} = ${f};${this.opts._n}`}else if(f=i==null?void 0:i(l))s=(0,we._)`${s}${f}${this.opts._n}`;else throw new Ba(l);u.set(l,Co.Completed)})}return s}};o(Ka,"ValueScope");var Ua=Ka;Ae.ValueScope=Ua});var A=h(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.or=T.and=T.not=T.CodeGen=T.operators=T.varKinds=T.ValueScopeName=T.ValueScope=T.Scope=T.Name=T.regexpCode=T.stringify=T.getProperty=T.nil=T.strConcat=T.str=T._=void 0;var R=ai(),Je=Wa(),Zt=ai();Object.defineProperty(T,"_",{enumerable:!0,get:o(function(){return Zt._},"get")});Object.defineProperty(T,"str",{enumerable:!0,get:o(function(){return Zt.str},"get")});Object.defineProperty(T,"strConcat",{enumerable:!0,get:o(function(){return Zt.strConcat},"get")});Object.defineProperty(T,"nil",{enumerable:!0,get:o(function(){return Zt.nil},"get")});Object.defineProperty(T,"getProperty",{enumerable:!0,get:o(function(){return Zt.getProperty},"get")});Object.defineProperty(T,"stringify",{enumerable:!0,get:o(function(){return Zt.stringify},"get")});Object.defineProperty(T,"regexpCode",{enumerable:!0,get:o(function(){return Zt.regexpCode},"get")});Object.defineProperty(T,"Name",{enumerable:!0,get:o(function(){return Zt.Name},"get")});var Do=Wa();Object.defineProperty(T,"Scope",{enumerable:!0,get:o(function(){return Do.Scope},"get")});Object.defineProperty(T,"ValueScope",{enumerable:!0,get:o(function(){return Do.ValueScope},"get")});Object.defineProperty(T,"ValueScopeName",{enumerable:!0,get:o(function(){return Do.ValueScopeName},"get")});Object.defineProperty(T,"varKinds",{enumerable:!0,get:o(function(){return Do.varKinds},"get")});T.operators={GT:new R._Code(">"),GTE:new R._Code(">="),LT:new R._Code("<"),LTE:new R._Code("<="),EQ:new R._Code("==="),NEQ:new R._Code("!=="),NOT:new R._Code("!"),OR:new R._Code("||"),AND:new R._Code("&&"),ADD:new R._Code("+")};var cc=class cc{optimizeNodes(){return this}optimizeNames(t,r){return this}};o(cc,"Node");var Rt=cc,uc=class uc 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=pn(this.rhs,t,r)),this}get names(){return this.rhs instanceof R._CodeOrName?this.rhs.names:{}}};o(uc,"Def");var Ya=uc,lc=class lc 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 R.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=pn(this.rhs,t,r),this}get names(){let t=this.lhs instanceof R.Name?{}:{...this.lhs.names};return Mo(t,this.rhs)}};o(lc,"Assign");var jo=lc,pc=class pc extends jo{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};o(pc,"AssignOp");var Ja=pc,fc=class fc extends Rt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};o(fc,"Label");var Qa=fc,dc=class dc extends Rt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};o(dc,"Break");var Xa=dc,mc=class mc extends Rt{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};o(mc,"Throw");var ec=mc,hc=class hc 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=pn(this.code,t,r),this}get names(){return this.code instanceof R._CodeOrName?this.code.names:{}}};o(hc,"AnyCode");var tc=hc,gc=class gc 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)||(J2(t,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>xr(t,r.names),{})}};o(gc,"ParentNode");var ci=gc,yc=class yc extends ci{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};o(yc,"BlockNode");var Nt=yc,vc=class vc extends ci{};o(vc,"Root");var rc=vc,bc=class bc extends Nt{};o(bc,"Else");var ln=bc;ln.kind="else";var un=class un extends Nt{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 ln(n):n}if(r)return t===!1?r instanceof un?r:r.nodes:this.nodes.length?this:new un(fd(t),r instanceof un?[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=pn(this.condition,t,r),this}get names(){let t=super.names;return Mo(t,this.condition),this.else&&xr(t,this.else.names),t}};o(un,"If");var Or=un;Or.kind="if";var Sc=class Sc extends Nt{};o(Sc,"For");var Er=Sc;Er.kind="for";var _c=class _c extends Er{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=pn(this.iteration,t,r),this}get names(){return xr(super.names,this.iteration.names)}};o(_c,"ForLoop");var nc=_c,Pc=class Pc extends Er{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?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=Mo(super.names,this.from);return Mo(t,this.to)}};o(Pc,"ForRange");var ic=Pc,$c=class $c extends Er{constructor(t,r,n,i){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=pn(this.iterable,t,r),this}get names(){return xr(super.names,this.iterable.names)}};o($c,"ForIter");var qo=$c,Oc=class Oc extends Nt{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(Oc,"Func");var ui=Oc;ui.kind="func";var Ec=class Ec extends ci{render(t){return"return "+super.render(t)}};o(Ec,"Return");var li=Ec;li.kind="return";var xc=class xc extends Nt{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,i;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(i=this.finally)===null||i===void 0||i.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&xr(t,this.catch.names),this.finally&&xr(t,this.finally.names),t}};o(xc,"Try");var oc=xc,wc=class wc extends Nt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};o(wc,"Catch");var pi=wc;pi.kind="catch";var Ac=class Ac extends Nt{render(t){return"finally"+super.render(t)}};o(Ac,"Finally");var fi=Ac;fi.kind="finally";var Ic=class Ic{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 rc]}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 jo(t,r,n))}add(t,r){return this._leafNode(new Ja(t,T.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==R.nil&&this._leafNode(new tc(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,R.addCodeArg)(r,i));return r.push("}"),new R._Code(r)}if(t,r,n){if(this._blockNode(new Or(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new Or(t))}else(){return this._elseNode(new ln)}endIf(){return this._endBlockNode(Or,ln)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new nc(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 ic(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 R.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,R._)`${a}.length`,c=>{this.var(s,(0,R._)`${a}[${c}]`),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,R._)`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(Er)}label(t){return this._leafNode(new Qa(t))}break(t){return this._leafNode(new Xa(t))}return(t){let r=new li;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(li)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new oc;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new pi(s),r(s)}return n&&(this._currNode=i.finally=new fi,this.code(n)),this._endBlockNode(pi,fi)}throw(t){return this._leafNode(new ec(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=R.nil,n,i){return this._blockNode(new ui(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(ui)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof Or))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};o(Ic,"CodeGen");var sc=Ic;T.CodeGen=sc;function xr(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}o(xr,"addNames");function Mo(e,t){return t instanceof R._CodeOrName?xr(e,t.names):e}o(Mo,"addExprNames");function pn(e,t,r){if(e instanceof R.Name)return n(e);if(!i(e))return e;return new R._Code(e._items.reduce((s,a)=>(a instanceof R.Name&&(a=n(a)),a instanceof R._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 R._Code&&s._items.some(a=>a instanceof R.Name&&t[a.str]===1&&r[a.str]!==void 0)}}o(pn,"optimizeExpr");function J2(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}o(J2,"subtractNames");function fd(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,R._)`!${ac(e)}`}o(fd,"not");T.not=fd;var Q2=dd(T.operators.AND);function X2(...e){return e.reduce(Q2)}o(X2,"and");T.and=X2;var eP=dd(T.operators.OR);function tP(...e){return e.reduce(eP)}o(tP,"or");T.or=tP;function dd(e){return(t,r)=>t===R.nil?r:r===R.nil?t:(0,R._)`${ac(t)} ${e} ${ac(r)}`}o(dd,"mappend");function ac(e){return e instanceof R.Name?e:(0,R._)`(${e})`}o(ac,"par")});var C=h(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.checkStrictMode=k.getErrorPath=k.Type=k.useFunc=k.setEvaluated=k.evaluatedPropsToName=k.mergeEvaluated=k.eachItem=k.unescapeJsonPointer=k.escapeJsonPointer=k.escapeFragment=k.unescapeFragment=k.schemaRefOrVal=k.schemaHasRulesButRef=k.schemaHasRules=k.checkUnknownRules=k.alwaysValidSchema=k.toHash=void 0;var F=A(),rP=ai();function nP(e){let t={};for(let r of e)t[r]=!0;return t}o(nP,"toHash");k.toHash=nP;function iP(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(gd(e,t),!yd(t,e.self.RULES.all))}o(iP,"alwaysValidSchema");k.alwaysValidSchema=iP;function gd(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]||Sd(e,`unknown keyword: "${s}"`)}o(gd,"checkUnknownRules");k.checkUnknownRules=gd;function yd(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}o(yd,"schemaHasRules");k.schemaHasRules=yd;function oP(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}o(oP,"schemaHasRulesButRef");k.schemaHasRulesButRef=oP;function sP({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(sP,"schemaRefOrVal");k.schemaRefOrVal=sP;function aP(e){return vd(decodeURIComponent(e))}o(aP,"unescapeFragment");k.unescapeFragment=aP;function cP(e){return encodeURIComponent(kc(e))}o(cP,"escapeFragment");k.escapeFragment=cP;function kc(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}o(kc,"escapeJsonPointer");k.escapeJsonPointer=kc;function vd(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(vd,"unescapeJsonPointer");k.unescapeJsonPointer=vd;function uP(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}o(uP,"eachItem");k.eachItem=uP;function md({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,c)=>{let u=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 c===F.Name&&!(u instanceof F.Name)?n(i,u):u}}o(md,"makeMergeEvaluated");k.mergeEvaluated={props:md({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} || {}`),Cc(e,r,t))}),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:bd}),items:md({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 bd(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,F._)`{}`);return t!==void 0&&Cc(e,r,t),r}o(bd,"evaluatedPropsToName");k.evaluatedPropsToName=bd;function Cc(e,t,r){Object.keys(r).forEach(n=>e.assign((0,F._)`${t}${(0,F.getProperty)(n)}`,!0))}o(Cc,"setEvaluated");k.setEvaluated=Cc;var hd={};function lP(e,t){return e.scopeValue("func",{ref:t,code:hd[t.code]||(hd[t.code]=new rP._Code(t.code))})}o(lP,"useFunc");k.useFunc=lP;var Tc;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Tc||(k.Type=Tc={}));function pP(e,t,r){if(e instanceof F.Name){let n=t===Tc.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():"/"+kc(e)}o(pP,"getErrorPath");k.getErrorPath=pP;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)}}o(Sd,"checkStrictMode");k.checkStrictMode=Sd});var Le=h(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});var pe=A(),fP={data:new pe.Name("data"),valCxt:new pe.Name("valCxt"),instancePath:new pe.Name("instancePath"),parentData:new pe.Name("parentData"),parentDataProperty:new pe.Name("parentDataProperty"),rootData:new pe.Name("rootData"),dynamicAnchors:new pe.Name("dynamicAnchors"),vErrors:new pe.Name("vErrors"),errors:new pe.Name("errors"),this:new pe.Name("this"),self:new pe.Name("self"),scope:new pe.Name("scope"),json:new pe.Name("json"),jsonPos:new pe.Name("jsonPos"),jsonLen:new pe.Name("jsonLen"),jsonPart:new pe.Name("jsonPart")};Rc.default=fP});var di=h(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.extendErrors=fe.resetErrorsCount=fe.reportExtraError=fe.reportError=fe.keyword$DataError=fe.keywordError=void 0;var N=A(),Lo=C(),Se=Le();fe.keywordError={message:o(({keyword:e})=>(0,N.str)`must pass "${e}" keyword validation`,"message")};fe.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 dP(e,t=fe.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:c}=i,u=$d(e,t,r);n??(a||c)?_d(s,u):Pd(i,(0,N._)`[${u}]`)}o(dP,"reportError");fe.reportError=dP;function mP(e,t=fe.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,c=$d(e,t,r);_d(i,c),s||a||Pd(n,Se.default.vErrors)}o(mP,"reportExtraError");fe.reportExtraError=mP;function hP(e,t){e.assign(Se.default.errors,t),e.if((0,N._)`${Se.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,N._)`${Se.default.vErrors}.length`,t),()=>e.assign(Se.default.vErrors,null)))}o(hP,"resetErrorsCount");fe.resetErrorsCount=hP;function gP({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,Se.default.errors,c=>{e.const(a,(0,N._)`${Se.default.vErrors}[${c}]`),e.if((0,N._)`${a}.instancePath === undefined`,()=>e.assign((0,N._)`${a}.instancePath`,(0,N.strConcat)(Se.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(gP,"extendErrors");fe.extendErrors=gP;function _d(e,t){let r=e.const("err",t);e.if((0,N._)`${Se.default.vErrors} === null`,()=>e.assign(Se.default.vErrors,(0,N._)`[${r}]`),(0,N._)`${Se.default.vErrors}.push(${r})`),e.code((0,N._)`${Se.default.errors}++`)}o(_d,"addError");function Pd(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(Pd,"returnErrors");var wr={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 $d(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,N._)`{}`:yP(e,t,r)}o($d,"errorObjectCode");function yP(e,t,r={}){let{gen:n,it:i}=e,s=[vP(i,r),bP(e,r)];return SP(e,t,s),n.object(...s)}o(yP,"errorObject");function vP({errorPath:e},{instancePath:t}){let r=t?(0,N.str)`${e}${(0,Lo.getErrorPath)(t,Lo.Type.Str)}`:e;return[Se.default.instancePath,(0,N.strConcat)(Se.default.instancePath,r)]}o(vP,"errorInstancePath");function bP({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,Lo.getErrorPath)(r,Lo.Type.Str)}`),[wr.schemaPath,i]}o(bP,"errorSchemaPath");function SP(e,{params:t,message:r},n){let{keyword:i,data:s,schemaValue:a,it:c}=e,{opts:u,propertyName:l,topSchemaRef:f,schemaPath:p}=c;n.push([wr.keyword,i],[wr.params,typeof t=="function"?t(e):t||(0,N._)`{}`]),u.messages&&n.push([wr.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([wr.schema,a],[wr.parentSchema,(0,N._)`${f}${p}`],[Se.default.data,s]),l&&n.push([wr.propertyName,l])}o(SP,"extraErrorProps")});var Ed=h(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.boolOrEmptySchema=fn.topBoolOrEmptySchema=void 0;var _P=di(),PP=A(),$P=Le(),OP={message:"boolean schema is false"};function EP(e){let{gen:t,schema:r,validateName:n}=e;r===!1?Od(e,!1):typeof r=="object"&&r.$async===!0?t.return($P.default.data):(t.assign((0,PP._)`${n}.errors`,null),t.return(!0))}o(EP,"topBoolOrEmptySchema");fn.topBoolOrEmptySchema=EP;function xP(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Od(e)):r.var(t,!0)}o(xP,"boolOrEmptySchema");fn.boolOrEmptySchema=xP;function Od(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,_P.reportError)(i,OP,void 0,t)}o(Od,"falseSchemaError")});var Nc=h(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.getRules=dn.isJSONType=void 0;var wP=["string","number","integer","boolean","null","object","array"],AP=new Set(wP);function IP(e){return typeof e=="string"&&AP.has(e)}o(IP,"isJSONType");dn.isJSONType=IP;function TP(){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(TP,"getRules");dn.getRules=TP});var jc=h(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.shouldUseRule=Kt.shouldUseGroup=Kt.schemaHasRulesForType=void 0;function kP({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&xd(e,n)}o(kP,"schemaHasRulesForType");Kt.schemaHasRulesForType=kP;function xd(e,t){return t.rules.some(r=>wd(e,r))}o(xd,"shouldUseGroup");Kt.shouldUseGroup=xd;function wd(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(wd,"shouldUseRule");Kt.shouldUseRule=wd});var mi=h(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.reportTypeError=de.checkDataTypes=de.checkDataType=de.coerceAndCheckDataType=de.getJSONTypes=de.getSchemaTypes=de.DataType=void 0;var CP=Nc(),RP=jc(),NP=di(),I=A(),Ad=C(),mn;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(mn||(de.DataType=mn={}));function jP(e){let t=Id(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(jP,"getSchemaTypes");de.getSchemaTypes=jP;function Id(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(CP.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}o(Id,"getJSONTypes");de.getJSONTypes=Id;function qP(e,t){let{gen:r,data:n,opts:i}=e,s=MP(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,RP.schemaHasRulesForType)(e,t[0]));if(a){let c=Mc(t,n,i.strictNumbers,mn.Wrong);r.if(c,()=>{s.length?DP(e,t,s):Dc(e)})}return a}o(qP,"coerceAndCheckDataType");de.coerceAndCheckDataType=qP;var Td=new Set(["string","number","integer","boolean","null"]);function MP(e,t){return t?e.filter(r=>Td.has(r)||t==="array"&&r==="array"):[]}o(MP,"coerceToTypes");function DP(e,t,r){let{gen:n,data:i,opts:s}=e,a=n.let("dataType",(0,I._)`typeof ${i}`),c=n.let("coerced",(0,I._)`undefined`);s.coerceTypes==="array"&&n.if((0,I._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,I._)`${i}[0]`).assign(a,(0,I._)`typeof ${i}`).if(Mc(t,i,s.strictNumbers),()=>n.assign(c,i))),n.if((0,I._)`${c} !== undefined`);for(let l of r)(Td.has(l)||l==="array"&&s.coerceTypes==="array")&&u(l);n.else(),Dc(e),n.endIf(),n.if((0,I._)`${c} !== undefined`,()=>{n.assign(i,c),LP(e,c)});function u(l){switch(l){case"string":n.elseIf((0,I._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,I._)`"" + ${i}`).elseIf((0,I._)`${i} === null`).assign(c,(0,I._)`""`);return;case"number":n.elseIf((0,I._)`${a} == "boolean" || ${i} === null
7
7
  || (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,(0,I._)`+${i}`);return;case"integer":n.elseIf((0,I._)`${a} === "boolean" || ${i} === null
8
8
  || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,(0,I._)`+${i}`);return;case"boolean":n.elseIf((0,I._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf((0,I._)`${i} === "true" || ${i} === 1`).assign(c,!0);return;case"null":n.elseIf((0,I._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(c,null);return;case"array":n.elseIf((0,I._)`${a} === "string" || ${a} === "number"
9
- || ${a} === "boolean" || ${i} === null`).assign(c,(0,I._)`[${i}]`)}}o(u,"coerceSpecificType")}o(R$,"coerceData");function N$({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,I._)`${t} !== undefined`,()=>e.assign((0,I._)`${t}[${r}]`,n))}o(N$,"assignParentData");function Nc(e,t,r,n=fn.Correct){let i=n===fn.Correct?I.operators.EQ:I.operators.NEQ,s;switch(e){case"null":return(0,I._)`${t} ${i} null`;case"array":s=(0,I._)`Array.isArray(${t})`;break;case"object":s=(0,I._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a((0,I._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return(0,I._)`typeof ${t} ${i} ${e}`}return n===fn.Correct?s:(0,I.not)(s);function a(c=I.nil){return(0,I.and)((0,I._)`typeof ${t} == "number"`,c,r?(0,I._)`isFinite(${t})`:I.nil)}}o(Nc,"checkDataType");de.checkDataType=Nc;function jc(e,t,r,n){if(e.length===1)return Nc(e[0],t,r,n);let i,s=(0,xd.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,Nc(a,t,r,n));return i}o(jc,"checkDataTypes");de.checkDataTypes=jc;var j$={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 qc(e){let t=q$(e);(0,I$.reportError)(t,j$)}o(qc,"reportTypeError");de.reportTypeError=qc;function q$(e){let{gen:t,data:r,schema:n}=e,i=(0,xd.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}o(q$,"getTypeErrorContext")});var Td=h(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.assignDefaults=void 0;var dn=A(),M$=C();function D$(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)Id(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>Id(e,s,i.default))}o(D$,"assignDefaults");qo.assignDefaults=D$;function Id(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let c=(0,dn._)`${s}${(0,dn.getProperty)(t)}`;if(i){(0,M$.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,dn._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,dn._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,dn._)`${c} = ${(0,dn.stringify)(r)}`)}o(Id,"assignDefault")});var Le=h(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.validateUnion=L.validateArray=L.usePattern=L.callValidateCode=L.schemaProperties=L.allSchemaProperties=L.noPropertyInData=L.propertyInData=L.isOwnProperty=L.hasPropFunc=L.reportMissingProp=L.checkMissingProp=L.checkReportMissingProp=void 0;var H=A(),Mc=C(),Wt=De(),L$=C();function F$(e,t){let{gen:r,data:n,it:i}=e;r.if(Lc(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,H._)`${t}`},!0),e.error()})}o(F$,"checkReportMissingProp");L.checkReportMissingProp=F$;function V$({gen:e,data:t,it:{opts:r}},n,i){return(0,H.or)(...n.map(s=>(0,H.and)(Lc(e,t,s,r.ownProperties),(0,H._)`${i} = ${s}`)))}o(V$,"checkMissingProp");L.checkMissingProp=V$;function H$(e,t){e.setParams({missingProperty:t},!0),e.error()}o(H$,"reportMissingProp");L.reportMissingProp=H$;function kd(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,H._)`Object.prototype.hasOwnProperty`})}o(kd,"hasPropFunc");L.hasPropFunc=kd;function Dc(e,t,r){return(0,H._)`${kd(e)}.call(${t}, ${r})`}o(Dc,"isOwnProperty");L.isOwnProperty=Dc;function B$(e,t,r,n){let i=(0,H._)`${t}${(0,H.getProperty)(r)} !== undefined`;return n?(0,H._)`${i} && ${Dc(e,t,r)}`:i}o(B$,"propertyInData");L.propertyInData=B$;function Lc(e,t,r,n){let i=(0,H._)`${t}${(0,H.getProperty)(r)} === undefined`;return n?(0,H.or)(i,(0,H.not)(Dc(e,t,r))):i}o(Lc,"noPropertyInData");L.noPropertyInData=Lc;function Cd(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}o(Cd,"allSchemaProperties");L.allSchemaProperties=Cd;function U$(e,t){return Cd(t).filter(r=>!(0,Mc.alwaysValidSchema)(e,t[r]))}o(U$,"schemaProperties");L.schemaProperties=U$;function z$({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},c,u,l){let f=l?(0,H._)`${e}, ${t}, ${n}${i}`:t,p=[[Wt.default.instancePath,(0,H.strConcat)(Wt.default.instancePath,s)],[Wt.default.parentData,a.parentData],[Wt.default.parentDataProperty,a.parentDataProperty],[Wt.default.rootData,Wt.default.rootData]];a.opts.dynamicRef&&p.push([Wt.default.dynamicAnchors,Wt.default.dynamicAnchors]);let d=(0,H._)`${f}, ${r.object(...p)}`;return u!==H.nil?(0,H._)`${c}.call(${u}, ${d})`:(0,H._)`${c}(${d})`}o(z$,"callValidateCode");L.callValidateCode=z$;var G$=(0,H._)`new RegExp`;function Z$({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,H._)`${i.code==="new RegExp"?G$:(0,L$.useFunc)(e,i)}(${r}, ${n})`})}o(Z$,"usePattern");L.usePattern=Z$;function K$(e){let{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){let c=t.let("valid",!0);return a(()=>t.assign(c,!1)),c}return t.var(s,!0),a(()=>t.break()),s;function a(c){let u=t.const("len",(0,H._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Mc.Type.Num},s),t.if((0,H.not)(s),c)})}o(a,"validateItems")}o(K$,"validateArray");L.validateArray=K$;function W$(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,Mc.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((u,l)=>{let f=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},c);t.assign(a,(0,H._)`${a} || ${c}`),e.mergeValidEvaluated(f,c)||t.if((0,H.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}o(W$,"validateUnion");L.validateUnion=W$});var jd=h(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.validateKeywordUsage=dt.validSchemaType=dt.funcKeywordCode=dt.macroKeywordCode=void 0;var Se=A(),wr=De(),Y$=Le(),Q$=pi();function J$(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,c=t.macro.call(a.self,i,s,a),u=Nd(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let l=r.name("valid");e.subschema({schema:c,schemaPath:Se.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}o(J$,"macroKeywordCode");dt.macroKeywordCode=J$;function X$(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:c,it:u}=e;t1(u,t);let l=!c&&t.compile?t.compile.call(u.self,s,a,u):t.validate,f=Nd(n,i,l),p=n.let("valid");e.block$data(p,d),e.ok((r=t.valid)!==null&&r!==void 0?r:p);function d(){if(t.errors===!1)y(),t.modifying&&Rd(e),v(()=>e.error());else{let b=t.async?m():g();t.modifying&&Rd(e),v(()=>e1(e,b))}}o(d,"validateKeyword");function m(){let b=n.let("ruleErrs",null);return n.try(()=>y((0,Se._)`await `),_=>n.assign(p,!1).if((0,Se._)`${_} instanceof ${u.ValidationError}`,()=>n.assign(b,(0,Se._)`${_}.errors`),()=>n.throw(_))),b}o(m,"validateAsync");function g(){let b=(0,Se._)`${f}.errors`;return n.assign(b,null),y(Se.nil),b}o(g,"validateSync");function y(b=t.async?(0,Se._)`await `:Se.nil){let _=u.opts.passContext?wr.default.this:wr.default.self,E=!("compile"in t&&!c||t.schema===!1);n.assign(p,(0,Se._)`${b}${(0,Y$.callValidateCode)(e,f,_,E)}`,t.modifying)}o(y,"assignValid");function v(b){var _;n.if((0,Se.not)((_=t.valid)!==null&&_!==void 0?_:p),b)}o(v,"reportErrs")}o(X$,"funcKeywordCode");dt.funcKeywordCode=X$;function Rd(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Se._)`${n.parentData}[${n.parentDataProperty}]`))}o(Rd,"modifyData");function e1(e,t){let{gen:r}=e;r.if((0,Se._)`Array.isArray(${t})`,()=>{r.assign(wr.default.vErrors,(0,Se._)`${wr.default.vErrors} === null ? ${t} : ${wr.default.vErrors}.concat(${t})`).assign(wr.default.errors,(0,Se._)`${wr.default.vErrors}.length`),(0,Q$.extendErrors)(e)},()=>e.error())}o(e1,"addErrs");function t1({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}o(t1,"checkAsyncKeyword");function Nd(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Se.stringify)(r)})}o(Nd,"useKeyword");function r1(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(r1,"validSchemaType");dt.validSchemaType=r1;function n1({schema:e,opts:t,self:r,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(c=>!Object.prototype.hasOwnProperty.call(e,c)))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){let u=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}o(n1,"validateKeywordUsage");dt.validateKeywordUsage=n1});var Md=h(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.extendSubschemaMode=Yt.extendSubschemaData=Yt.getSubschema=void 0;var mt=A(),qd=C();function i1(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let c=e.schema[t];return r===void 0?{schema:c,schemaPath:(0,mt._)`${e.schemaPath}${(0,mt.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,mt._)`${e.schemaPath}${(0,mt.getProperty)(t)}${(0,mt.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,qd.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(i1,"getSubschema");Yt.getSubschema=i1;function o1(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:c}=t;if(r!==void 0){let{errorPath:l,dataPathArr:f,opts:p}=t,d=c.let("data",(0,mt._)`${t.data}${(0,mt.getProperty)(r)}`,!0);u(d),e.errorPath=(0,mt.str)`${l}${(0,qd.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,mt._)`${r}`,e.dataPathArr=[...f,e.parentDataProperty]}if(i!==void 0){let l=i instanceof mt.Name?i:c.let("data",i,!0);u(l),a!==void 0&&(e.propertyName=a)}s&&(e.dataTypes=s);function u(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}o(u,"dataContextProps")}o(o1,"extendSubschemaData");Yt.extendSubschemaData=o1;function s1(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(s1,"extendSubschemaMode");Yt.extendSubschemaMode=s1});var Fc=h((eq,Dd)=>{"use strict";Dd.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 Fd=h((rq,Ld)=>{"use strict";var Qt=Ld.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(){};Mo(t,n,i,e,"",e)};Qt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Qt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Qt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Qt.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 Mo(e,t,r,n,i,s,a,c,u,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,a,c,u,l);for(var f in n){var p=n[f];if(Array.isArray(p)){if(f in Qt.arrayKeywords)for(var d=0;d<p.length;d++)Mo(e,t,r,p[d],i+"/"+f+"/"+d,s,i,f,n,d)}else if(f in Qt.propsKeywords){if(p&&typeof p=="object")for(var m in p)Mo(e,t,r,p[m],i+"/"+f+"/"+a1(m),s,i,f,n,m)}else(f in Qt.keywords||e.allKeys&&!(f in Qt.skipKeywords))&&Mo(e,t,r,p,i+"/"+f,s,i,f,n)}r(n,i,s,a,c,u,l)}}o(Mo,"_traverse");function a1(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(a1,"escapeJsonPtr")});var di=h(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.getSchemaRefs=Ae.resolveUrl=Ae.normalizeId=Ae._getFullPath=Ae.getFullPath=Ae.inlineRef=void 0;var c1=C(),u1=Fc(),l1=Fd(),p1=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function f1(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Vc(e):t?Vd(e)<=t:!1}o(f1,"inlineRef");Ae.inlineRef=f1;var d1=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Vc(e){for(let t in e){if(d1.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Vc)||typeof r=="object"&&Vc(r))return!0}return!1}o(Vc,"hasRef");function Vd(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!p1.has(r)&&(typeof e[r]=="object"&&(0,c1.eachItem)(e[r],n=>t+=Vd(n)),t===1/0))return 1/0}return t}o(Vd,"countKeys");function Hd(e,t="",r){r!==!1&&(t=mn(t));let n=e.parse(t);return Bd(e,n)}o(Hd,"getFullPath");Ae.getFullPath=Hd;function Bd(e,t){return e.serialize(t).split("#")[0]+"#"}o(Bd,"_getFullPath");Ae._getFullPath=Bd;var m1=/#\/?$/;function mn(e){return e?e.replace(m1,""):""}o(mn,"normalizeId");Ae.normalizeId=mn;function h1(e,t,r){return r=mn(r),e.resolve(t,r)}o(h1,"resolveUrl");Ae.resolveUrl=h1;var g1=/^[a-z_][-a-z0-9._]*$/i;function y1(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=mn(e[r]||t),s={"":i},a=Hd(n,i,!1),c={},u=new Set;return l1(e,{allKeys:!0},(p,d,m,g)=>{if(g===void 0)return;let y=a+d,v=s[g];typeof p[r]=="string"&&(v=b.call(this,p[r])),_.call(this,p.$anchor),_.call(this,p.$dynamicAnchor),s[d]=v;function b(E){let $=this.opts.uriResolver.resolve;if(E=mn(v?$(v,E):E),u.has(E))throw f(E);u.add(E);let S=this.refs[E];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?l(p,S.schema,E):E!==mn(y)&&(E[0]==="#"?(l(p,c[E],E),c[E]=p):this.refs[E]=y),E}o(b,"addRef");function _(E){if(typeof E=="string"){if(!g1.test(E))throw new Error(`invalid anchor "${E}"`);b.call(this,`#${E}`)}}o(_,"addAnchor")}),c;function l(p,d,m){if(d!==void 0&&!u1(p,d))throw f(m)}o(l,"checkAmbiguosRef");function f(p){return new Error(`reference "${p}" resolves to more than one schema`)}o(f,"ambiguos")}o(y1,"getSchemaRefs");Ae.getSchemaRefs=y1});var gi=h(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.getData=Jt.KeywordCxt=Jt.validateFunctionCode=void 0;var Kd=Pd(),Ud=fi(),Bc=Rc(),Do=fi(),v1=Td(),hi=jd(),Hc=Md(),O=A(),w=De(),b1=di(),Rt=C(),mi=pi();function _1(e){if(Qd(e)&&(Jd(e),Yd(e))){P1(e);return}Wd(e,()=>(0,Kd.topBoolOrEmptySchema)(e))}o(_1,"validateFunctionCode");Jt.validateFunctionCode=_1;function Wd({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"; ${zd(r,i)}`),$1(e,i),e.code(s)}):e.func(t,(0,O._)`${w.default.data}, ${S1(i)}`,n.$async,()=>e.code(zd(r,i)).code(s))}o(Wd,"validateFunction");function S1(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(S1,"destructureValCxt");function $1(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($1,"destructureValCxtES5");function P1(e){let{schema:t,opts:r,gen:n}=e;Wd(e,()=>{r.$comment&&t.$comment&&em(e),A1(e),n.let(w.default.vErrors,null),n.let(w.default.errors,0),r.unevaluated&&E1(e),Xd(e),k1(e)})}o(P1,"topSchemaObjCode");function E1(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(E1,"resetEvaluated");function zd(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(zd,"funcSourceUrl");function O1(e,t){if(Qd(e)&&(Jd(e),Yd(e))){x1(e,t);return}(0,Kd.boolOrEmptySchema)(e,t)}o(O1,"subschemaCode");function Yd({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(Yd,"schemaCxtHasRules");function Qd(e){return typeof e.schema!="boolean"}o(Qd,"isSchemaObj");function x1(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&em(e),I1(e),T1(e);let s=n.const("_errs",w.default.errors);Xd(e,s),n.var(t,(0,O._)`${s} === ${w.default.errors}`)}o(x1,"subSchemaObjCode");function Jd(e){(0,Rt.checkUnknownRules)(e),w1(e)}o(Jd,"checkKeywords");function Xd(e,t){if(e.opts.jtd)return Gd(e,[],!1,t);let r=(0,Ud.getSchemaTypes)(e.schema),n=(0,Ud.coerceAndCheckDataType)(e,r);Gd(e,r,!n,t)}o(Xd,"typeAndKeywords");function w1(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Rt.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}o(w1,"checkRefsAndKeywords");function A1(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Rt.checkStrictMode)(e,"default is ignored in the schema root")}o(A1,"checkNoDefault");function I1(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,b1.resolveUrl)(e.opts.uriResolver,e.baseId,t))}o(I1,"updateContext");function T1(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}o(T1,"checkAsyncSchema");function em({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`,c=e.scopeValue("root",{ref:t.root});e.code((0,O._)`${w.default.self}.opts.$comment(${s}, ${a}, ${c}.schema)`)}}o(em,"commentKeyword");function k1(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&&C1(e),t.return((0,O._)`${w.default.errors} === 0`))}o(k1,"returnResults");function C1({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(C1,"assignEvaluated");function Gd(e,t,r,n){let{gen:i,schema:s,data:a,allErrors:c,opts:u,self:l}=e,{RULES:f}=l;if(s.$ref&&(u.ignoreKeywordsWithRef||!(0,Rt.schemaHasRulesButRef)(s,f))){i.block(()=>rm(e,"$ref",f.all.$ref.definition));return}u.jtd||R1(e,t),i.block(()=>{for(let d of f.rules)p(d);p(f.post)});function p(d){(0,Bc.shouldUseGroup)(s,d)&&(d.type?(i.if((0,Do.checkDataType)(d.type,a,u.strictNumbers)),Zd(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,Do.reportTypeError)(e)),i.endIf()):Zd(e,d),c||i.if((0,O._)`${w.default.errors} === ${n||0}`))}o(p,"groupKeywords")}o(Gd,"schemaKeywords");function Zd(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,v1.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,Bc.shouldUseRule)(n,s)&&rm(e,s.keyword,s.definition,t.type)})}o(Zd,"iterateKeywords");function R1(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(N1(e,t),e.opts.allowUnionTypes||j1(e,t),q1(e,e.dataTypes))}o(R1,"checkStrictTypes");function N1(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{tm(e.dataTypes,r)||Uc(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),D1(e,t)}}o(N1,"checkContextTypes");function j1(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Uc(e,"use allowUnionTypes to allow union type keyword")}o(j1,"checkMultipleTypes");function q1(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Bc.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>M1(t,a))&&Uc(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}o(q1,"checkKeywordTypes");function M1(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}o(M1,"hasApplicableType");function tm(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}o(tm,"includesType");function D1(e,t){let r=[];for(let n of e.dataTypes)tm(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}o(D1,"narrowSchemaTypes");function Uc(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Rt.checkStrictMode)(e,t,e.opts.strictTypes)}o(Uc,"strictTypesError");var zc=class zc{constructor(t,r,n){if((0,hi.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Rt.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",nm(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,hi.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?mi.reportExtraError:mi.reportError)(this,this.def.error,r)}$dataError(){(0,mi.reportError)(this,this.def.$dataError||mi.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,mi.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(),c());function a(){if(n.length){if(!(r instanceof O.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,O._)`${(0,Do.checkDataTypes)(u,r,s.opts.strictNumbers,Do.DataType.Wrong)}`}return O.nil}function c(){if(i.validateSchema){let u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,O._)`!${u}(${r})`}return O.nil}}subschema(t,r){let n=(0,Hc.getSubschema)(this.it,t);(0,Hc.extendSubschemaData)(n,this.it,t),(0,Hc.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return O1(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Rt.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Rt.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,O.Name)),!0}};o(zc,"KeywordCxt");var Lo=zc;Jt.KeywordCxt=Lo;function rm(e,t,r,n){let i=new Lo(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,hi.funcKeywordCode)(i,r):"macro"in r?(0,hi.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,hi.funcKeywordCode)(i,r)}o(rm,"keywordCode");var L1=/^\/(?:[^~]|~0|~1)*$/,F1=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function nm(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return w.default.rootData;if(e[0]==="/"){if(!L1.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=w.default.rootData}else{let l=F1.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let f=+l[1];if(i=l[2],i==="#"){if(f>=t)throw new Error(u("property/index",f));return n[t-f]}if(f>t)throw new Error(u("data",f));if(s=r[t-f],!i)return s}let a=s,c=i.split("/");for(let l of c)l&&(s=(0,O._)`${s}${(0,O.getProperty)((0,Rt.unescapeJsonPointer)(l))}`,a=(0,O._)`${a} && ${s}`);return a;function u(l,f){return`Cannot access ${l} ${f} levels up, current level is ${t}`}}o(nm,"getData");Jt.getData=nm});var Fo=h(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});var Kc=class Kc extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};o(Kc,"ValidationError");var Gc=Kc;Zc.default=Gc});var yi=h(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});var Wc=di(),Jc=class Jc extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Wc.resolveUrl)(t,r,n),this.missingSchema=(0,Wc.normalizeId)((0,Wc.getFullPath)(t,this.missingRef))}};o(Jc,"MissingRefError");var Yc=Jc;Qc.default=Yc});var vi=h(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.resolveSchema=Fe.getCompilingSchema=Fe.resolveRef=Fe.compileSchema=Fe.SchemaEnv=void 0;var Qe=A(),V1=Fo(),Ar=De(),Je=di(),im=C(),H1=gi(),tu=class tu{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,Je.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};o(tu,"SchemaEnv");var hn=tu;Fe.SchemaEnv=hn;function eu(e){let t=om.call(this,e);if(t)return t;let r=(0,Je.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new Qe.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),c;e.$async&&(c=a.scopeValue("Error",{ref:V1.default,code:(0,Qe._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:Ar.default.data,parentData:Ar.default.parentData,parentDataProperty:Ar.default.parentDataProperty,dataNames:[Ar.default.data],dataPathArr:[Qe.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Qe.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Qe.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Qe._)`""`,opts:this.opts,self:this},f;try{this._compilations.add(e),(0,H1.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let p=a.toString();f=`${a.scopeRefs(Ar.default.scope)}return ${p}`,this.opts.code.process&&(f=this.opts.code.process(f,e));let m=new Function(`${Ar.default.self}`,`${Ar.default.scope}`,f)(this,this.scope.get());if(this.scope.value(u,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:u,validateCode:p,scopeValues:a._values}),this.opts.unevaluated){let{props:g,items:y}=l;m.evaluated={props:g instanceof Qe.Name?void 0:g,items:y instanceof Qe.Name?void 0:y,dynamicProps:g instanceof Qe.Name,dynamicItems:y instanceof Qe.Name},m.source&&(m.source.evaluated=(0,Qe.stringify)(m.evaluated))}return e.validate=m,e}catch(p){throw delete e.validate,delete e.validateName,f&&this.logger.error("Error compiling schema, function code:",f),p}finally{this._compilations.delete(e)}}o(eu,"compileSchema");Fe.compileSchema=eu;function B1(e,t,r){var n;r=(0,Je.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=G1.call(this,e,r);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;a&&(s=new hn({schema:a,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=U1.call(this,s)}o(B1,"resolveRef");Fe.resolveRef=B1;function U1(e){return(0,Je.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:eu.call(this,e)}o(U1,"inlineOrCompile");function om(e){for(let t of this._compilations)if(z1(t,e))return t}o(om,"getCompilingSchema");Fe.getCompilingSchema=om;function z1(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}o(z1,"sameSchemaEnv");function G1(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Vo.call(this,e,t)}o(G1,"resolve");function Vo(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Je._getFullPath)(this.opts.uriResolver,r),i=(0,Je.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Xc.call(this,r,e);let s=(0,Je.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let c=Vo.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:Xc.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||eu.call(this,a),s===(0,Je.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,Je.resolveUrl)(this.opts.uriResolver,i,l)),new hn({schema:c,schemaId:u,root:e,baseId:i})}return Xc.call(this,r,a)}}o(Vo,"resolveSchema");Fe.resolveSchema=Vo;var Z1=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Xc(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let c of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let u=r[(0,im.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!Z1.has(c)&&l&&(t=(0,Je.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,im.schemaHasRulesButRef)(r,this.RULES)){let c=(0,Je.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=Vo.call(this,n,c)}let{schemaId:a}=this.opts;if(s=s||new hn({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}o(Xc,"getJsonPointer")});var sm=h((mq,K1)=>{K1.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 cm=h((hq,am)=>{"use strict";var W1={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};am.exports={HEX:W1}});var gm=h((gq,hm)=>{"use strict";var{HEX:Y1}=cm();function fm(e){if(mm(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:J1(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}o(fm,"normalizeIPv4");function ru(e,t=!1){let r="",n=!0;for(let i of e){if(Y1[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}o(ru,"stringArrayToHexStripped");function Q1(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,a=!1,c=!1;function u(){if(i.length){if(s===!1){let l=ru(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}o(u,"consume");for(let l=0;l<e.length;l++){let f=e[l];if(!(f==="["||f==="]"))if(f===":"){if(a===!0&&(c=!0),!u())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(f==="%"){if(!u())break;s=!0}else{i.push(f);continue}}return i.length&&(s?r.zone=i.join(""):c?n.push(i.join("")):n.push(ru(i))),r.address=n.join(""),r}o(Q1,"getIPV6");function dm(e,t={}){if(mm(e,":")<2)return{host:e,isIPV6:!1};let r=Q1(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(dm,"normalizeIPv6");function J1(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(J1,"stripLeadingZeros");function mm(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}o(mm,"findToken");var um=/^\.\.?\//u,lm=/^\/\.(?:\/|$)/u,pm=/^\/\.\.(?:\/|$)/u,X1=/^\/?(?:.|\n)*?(?=\/|$)/u;function eP(e){let t=[];for(;e.length;)if(e.match(um))e=e.replace(um,"");else if(e.match(lm))e=e.replace(lm,"/");else if(e.match(pm))e=e.replace(pm,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(X1);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(eP,"removeDotSegments");function tP(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(tP,"normalizeComponentEncoding");function rP(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=fm(n);if(i.isIPV4)n=i.host;else{let s=dm(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(rP,"recomposeAuthority");hm.exports={recomposeAuthority:rP,normalizeComponentEncoding:tP,removeDotSegments:eP,normalizeIPv4:fm,normalizeIPv6:dm,stringArrayToHexStripped:ru}});var $m=h((vq,Sm)=>{"use strict";var nP=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,iP=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function ym(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}o(ym,"isSecure");function vm(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}o(vm,"httpParse");function bm(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(bm,"httpSerialize");function oP(e){return e.secure=ym(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}o(oP,"wsParse");function sP(e){if((e.port===(ym(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(sP,"wsSerialize");function aP(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(iP);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=nu[i];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}o(aP,"urnParse");function cP(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=nu[i];s&&(e=s.serialize(e,t));let a=e,c=e.nss;return a.path=`${n||t.nid}:${c}`,t.skipEscape=!0,a}o(cP,"urnSerialize");function uP(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!nP.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}o(uP,"urnuuidParse");function lP(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}o(lP,"urnuuidSerialize");var _m={scheme:"http",domainHost:!0,parse:vm,serialize:bm},pP={scheme:"https",domainHost:_m.domainHost,parse:vm,serialize:bm},Ho={scheme:"ws",domainHost:!0,parse:oP,serialize:sP},fP={scheme:"wss",domainHost:Ho.domainHost,parse:Ho.parse,serialize:Ho.serialize},dP={scheme:"urn",parse:aP,serialize:cP,skipNormalize:!0},mP={scheme:"urn:uuid",parse:uP,serialize:lP,skipNormalize:!0},nu={http:_m,https:pP,ws:Ho,wss:fP,urn:dP,"urn:uuid":mP};Sm.exports=nu});var Em=h((_q,Uo)=>{"use strict";var{normalizeIPv6:hP,normalizeIPv4:gP,removeDotSegments:bi,recomposeAuthority:yP,normalizeComponentEncoding:Bo}=gm(),iu=$m();function vP(e,t){return typeof e=="string"?e=ht(Nt(e,t),t):typeof e=="object"&&(e=Nt(ht(e,t),t)),e}o(vP,"normalize");function bP(e,t,r){let n=Object.assign({scheme:"null"},r),i=Pm(Nt(e,n),Nt(t,n),n,!0);return ht(i,{...n,skipEscape:!0})}o(bP,"resolve");function Pm(e,t,r,n){let i={};return n||(e=Nt(ht(e,r),r),t=Nt(ht(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=bi(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=bi(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=bi(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=bi(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(Pm,"resolveComponents");function _P(e,t,r){return typeof e=="string"?(e=unescape(e),e=ht(Bo(Nt(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=ht(Bo(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=ht(Bo(Nt(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=ht(Bo(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}o(_P,"equal");function ht(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=iu[(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=yP(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let c=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(c=bi(c)),a===void 0&&(c=c.replace(/^\/\//u,"/%2F")),i.push(c)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}o(ht,"serialize");var SP=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function $P(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||SP[t])return!0;return!1}o($P,"nonSimpleDomain");var PP=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\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(PP);if(a){if(n.scheme=a[1],n.userinfo=a[3],n.host=a[4],n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=a[7],n.fragment=a[8],isNaN(n.port)&&(n.port=a[5]),n.host){let u=gP(n.host);if(u.isIPV4===!1){let l=hP(u.host,{isIPV4:!1});n.host=l.host.toLowerCase(),s=l.isIPV6}else n.host=u.host,s=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let c=iu[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&s===!1&&$P(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}(!c||c&&!c.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),c&&c.parse&&c.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}o(Nt,"parse");var ou={SCHEMES:iu,normalize:vP,resolve:bP,resolveComponents:Pm,equal:_P,serialize:ht,parse:Nt};Uo.exports=ou;Uo.exports.default=ou;Uo.exports.fastUri=ou});var xm=h(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});var Om=Em();Om.code='require("ajv/dist/runtime/uri").default';su.default=Om});var yn=h(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.CodeGen=ae.Name=ae.nil=ae.stringify=ae.str=ae._=ae.KeywordCxt=void 0;var EP=gi();Object.defineProperty(ae,"KeywordCxt",{enumerable:!0,get:o(function(){return EP.KeywordCxt},"get")});var gn=A();Object.defineProperty(ae,"_",{enumerable:!0,get:o(function(){return gn._},"get")});Object.defineProperty(ae,"str",{enumerable:!0,get:o(function(){return gn.str},"get")});Object.defineProperty(ae,"stringify",{enumerable:!0,get:o(function(){return gn.stringify},"get")});Object.defineProperty(ae,"nil",{enumerable:!0,get:o(function(){return gn.nil},"get")});Object.defineProperty(ae,"Name",{enumerable:!0,get:o(function(){return gn.Name},"get")});Object.defineProperty(ae,"CodeGen",{enumerable:!0,get:o(function(){return gn.CodeGen},"get")});var OP=Fo(),km=yi(),xP=Cc(),_i=vi(),wP=A(),Si=di(),zo=fi(),cu=C(),wm=sm(),AP=xm(),Cm=o((e,t)=>new RegExp(e,t),"defaultRegExp");Cm.code="new RegExp";var IP=["removeAdditional","useDefaults","coerceTypes"],TP=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),kP={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."},CP={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Am=200;function RP(e){var t,r,n,i,s,a,c,u,l,f,p,d,m,g,y,v,b,_,E,$,S,D,R,se,J;let G=e.strict,ve=(t=e.code)===null||t===void 0?void 0:t.optimize,be=ve===!0||ve===void 0?1:ve||0,Gt=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:Cm,tn=(i=e.uriResolver)!==null&&i!==void 0?i:AP.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:G)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:G)!==null&&u!==void 0?u:!0,strictTypes:(f=(l=e.strictTypes)!==null&&l!==void 0?l:G)!==null&&f!==void 0?f:"log",strictTuples:(d=(p=e.strictTuples)!==null&&p!==void 0?p:G)!==null&&d!==void 0?d:"log",strictRequired:(g=(m=e.strictRequired)!==null&&m!==void 0?m:G)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:be,regExp:Gt}:{optimize:be,regExp:Gt},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:Am,loopEnum:(v=e.loopEnum)!==null&&v!==void 0?v:Am,meta:(b=e.meta)!==null&&b!==void 0?b:!0,messages:(_=e.messages)!==null&&_!==void 0?_:!0,inlineRefs:(E=e.inlineRefs)!==null&&E!==void 0?E:!0,schemaId:($=e.schemaId)!==null&&$!==void 0?$:"$id",addUsedSchema:(S=e.addUsedSchema)!==null&&S!==void 0?S:!0,validateSchema:(D=e.validateSchema)!==null&&D!==void 0?D:!0,validateFormats:(R=e.validateFormats)!==null&&R!==void 0?R:!0,unicodeRegExp:(se=e.unicodeRegExp)!==null&&se!==void 0?se:!0,int32range:(J=e.int32range)!==null&&J!==void 0?J:!0,uriResolver:tn}}o(RP,"requiredOptions");var uu=class uu{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...RP(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new wP.ValueScope({scope:{},prefixes:TP,es5:r,lines:n}),this.logger=LP(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,xP.getRules)(),Im.call(this,kP,t,"NOT SUPPORTED"),Im.call(this,CP,t,"DEPRECATED","warn"),this._metaOpts=MP.call(this),t.formats&&jP.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&qP.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),NP.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=wm;n==="id"&&(i={...wm},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(f,p){await s.call(this,f.$schema);let d=this._addSchema(f,p);return d.validate||a.call(this,d)}async function s(f){f&&!this.getSchema(f)&&await i.call(this,{$ref:f},!0)}async function a(f){try{return this._compileSchemaEnv(f)}catch(p){if(!(p instanceof km.default))throw p;return c.call(this,p),await u.call(this,p.missingSchema),a.call(this,f)}}function c({missingSchema:f,missingRef:p}){if(this.refs[f])throw new Error(`AnySchema ${f} is loaded but ${p} cannot be resolved`)}async function u(f){let p=await l.call(this,f);this.refs[f]||await s.call(this,p.$schema),this.refs[f]||this.addSchema(p,f,r)}async function l(f){let p=this._loading[f];if(p)return p;try{return await(this._loading[f]=n(f))}finally{delete this._loading[f]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let s;if(typeof t=="object"){let{schemaId:a}=this.opts;if(s=t[a],s!==void 0&&typeof s!="string")throw new Error(`schema ${a} must be string`)}return r=(0,Si.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=Tm.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=Tm.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,Si.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(VP.call(this,n,r),!r)return(0,cu.eachItem)(n,s=>au.call(this,s)),this;BP.call(this,r);let i={...r,type:(0,zo.getJSONTypes)(r.type),schemaType:(0,zo.getJSONTypes)(r.schemaType)};return(0,cu.eachItem)(n,i.type.length===0?s=>au.call(this,s,i):s=>i.type.forEach(a=>au.call(this,s,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(s=>s.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,s)=>i+r+s)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let s=i.split("/").slice(1),a=t;for(let c of s)a=a[c];for(let c in n){let u=n[c];if(typeof u!="object")continue;let{$data:l}=u.definition,f=a[c];l&&f&&(a[c]=Rm(f))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,s=this.opts.addUsedSchema){let a,{schemaId:c}=this.opts;if(typeof t=="object")a=t[c];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let u=this._cache.get(t);if(u!==void 0)return u;n=(0,Si.normalizeId)(a||n);let l=Si.getSchemaRefs.call(this,t,n);return u=new _i.SchemaEnv({schema:t,schemaId:c,meta:r,baseId:n,localRefs:l}),this._cache.set(u.schema,u),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),i&&this.validateSchema(t,!0),u}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):_i.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{_i.compileSchema.call(this,t)}finally{this.opts=r}}};o(uu,"Ajv");var $i=uu;$i.ValidationError=OP.default;$i.MissingRefError=km.default;ae.default=$i;function Im(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(Im,"checkOptions");function Tm(e){return e=(0,Si.normalizeId)(e),this.schemas[e]||this.refs[e]}o(Tm,"getSchEnv");function NP(){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(NP,"addInitialSchemas");function jP(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}o(jP,"addInitialFormats");function qP(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(qP,"addInitialKeywords");function MP(){let e={...this.opts};for(let t of IP)delete e[t];return e}o(MP,"getMetaSchemaOptions");var DP={log(){},warn(){},error(){}};function LP(e){if(e===!1)return DP;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(LP,"getLogger");var FP=/^[a-z_$][a-z0-9_$:-]*$/i;function VP(e,t){let{RULES:r}=this;if((0,cu.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!FP.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(VP,"checkKeyword");function au(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,a=i?s.post:s.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},s.rules.push(a)),s.keywords[e]=!0,!t)return;let c={keyword:e,definition:{...t,type:(0,zo.getJSONTypes)(t.type),schemaType:(0,zo.getJSONTypes)(t.schemaType)}};t.before?HP.call(this,a,c,t.before):a.rules.push(c),s.all[e]=c,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}o(au,"addRule");function HP(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(HP,"addBeforeRule");function BP(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=Rm(t)),e.validateSchema=this.compile(t,!0))}o(BP,"keywordMetaschema");var UP={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Rm(e){return{anyOf:[e,UP]}}o(Rm,"schemaOrData")});var Pi=h(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.callRef=Ir.getValidate=void 0;var zP=yi(),Nm=Le(),Ie=A(),vn=De(),jm=vi(),Go=C(),GP={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:a,opts:c,self:u}=n,{root:l}=s;if((r==="#"||r==="#/")&&i===l.baseId)return p();let f=jm.resolveRef.call(u,l,i,r);if(f===void 0)throw new zP.default(n.opts.uriResolver,i,r);if(f instanceof jm.SchemaEnv)return d(f);return m(f);function p(){if(s===l)return Zo(e,a,s,s.$async);let g=t.scopeValue("root",{ref:l});return Zo(e,(0,Ie._)`${g}.validate`,l,l.$async)}function d(g){let y=qm(e,g);Zo(e,y,g,g.$async)}function m(g){let y=t.scopeValue("schema",c.code.source===!0?{ref:g,code:(0,Ie.stringify)(g)}:{ref:g}),v=t.name("valid"),b=e.subschema({schema:g,dataTypes:[],schemaPath:Ie.nil,topSchemaRef:y,errSchemaPath:r},v);e.mergeEvaluated(b),e.ok(v)}}};function qm(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Ie._)`${r.scopeValue("wrapper",{ref:t})}.validate`}o(qm,"getValidate");Ir.getValidate=qm;function Zo(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:c,opts:u}=s,l=u.passContext?vn.default.this:Ie.nil;n?f():p();function f(){if(!c.$async)throw new Error("async schema referenced by sync schema");let g=i.let("valid");i.try(()=>{i.code((0,Ie._)`await ${(0,Nm.callValidateCode)(e,t,l)}`),m(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(f,"callAsyncRef");function p(){e.result((0,Nm.callValidateCode)(e,t,l),()=>m(t),()=>d(t))}o(p,"callSyncRef");function d(g){let y=(0,Ie._)`${g}.errors`;i.assign(vn.default.vErrors,(0,Ie._)`${vn.default.vErrors} === null ? ${y} : ${vn.default.vErrors}.concat(${y})`),i.assign(vn.default.errors,(0,Ie._)`${vn.default.vErrors}.length`)}o(d,"addErrorsFrom");function m(g){var y;if(!s.opts.unevaluated)return;let v=(y=r==null?void 0:r.validate)===null||y===void 0?void 0:y.evaluated;if(s.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(s.props=Go.mergeEvaluated.props(i,v.props,s.props));else{let b=i.var("props",(0,Ie._)`${g}.evaluated.props`);s.props=Go.mergeEvaluated.props(i,b,s.props,Ie.Name)}if(s.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(s.items=Go.mergeEvaluated.items(i,v.items,s.items));else{let b=i.var("items",(0,Ie._)`${g}.evaluated.items`);s.items=Go.mergeEvaluated.items(i,b,s.items,Ie.Name)}}o(m,"addEvaluatedFrom")}o(Zo,"callRef");Ir.callRef=Zo;Ir.default=GP});var Mm=h(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});var ZP=Pi(),KP=["$schema","id","$defs",{keyword:"$comment"},"definitions",ZP.default];lu.default=KP});var Dm=h(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});var pu=yn(),WP=A(),Xt=WP.operators,fu={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:Xt.LTE,fail:Xt.GT},{okStr:"<",ok:Xt.LT,fail:Xt.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:Xt.GTE,fail:Xt.LT},{okStr:">",ok:Xt.GT,fail:Xt.LTE}]}},YP={message:o(e=>pu.str`must be ${du(e).okStr} ${e.schemaCode}`,"message"),params:o(e=>pu._`{comparison: ${du(e).okStr}, limit: ${e.schemaCode}}`,"params")},QP={keyword:Object.keys(fu),type:"number",schemaType:"number",$data:!0,error:YP,code(e){let{data:t,schemaCode:r}=e;e.fail$data(pu._`${t} ${du(e).fail} ${r} || isNaN(${t})`)}};function du(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[fu[r].exclusive]?1:0;return fu[r].ops[n]}o(du,"kwdOp");mu.default=QP});var Fm=h(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});var Lm={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},JP={keyword:Object.keys(Lm),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=Lm[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};hu.default=JP});var yu=h(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});var Ei=A(),XP={message:o(({schemaCode:e})=>(0,Ei.str)`must be multiple of ${e}`,"message"),params:o(({schemaCode:e})=>(0,Ei._)`{multipleOf: ${e}}`,"params")},eE={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:XP,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),c=s?(0,Ei._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,Ei._)`${a} !== parseInt(${a})`;e.fail$data((0,Ei._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};gu.default=eE});var Hm=h(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});function Vm(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(Vm,"ucs2length");vu.default=Vm;Vm.code='require("ajv/dist/runtime/ucs2length").default'});var _u=h(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});var Tr=A(),tE=C(),rE=Hm(),nE={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Tr.str)`must NOT have ${r} than ${t} characters`},params:o(({schemaCode:e})=>(0,Tr._)`{limit: ${e}}`,"params")},iE={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:nE,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?Tr.operators.GT:Tr.operators.LT,a=i.opts.unicode===!1?(0,Tr._)`${r}.length`:(0,Tr._)`${(0,tE.useFunc)(e.gen,rE.default)}(${r})`;e.fail$data((0,Tr._)`${a} ${s} ${n}`)}};bu.default=iE});var $u=h(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});var oE=Le(),Ko=A(),sE={message:o(({schemaCode:e})=>(0,Ko.str)`must match pattern "${e}"`,"message"),params:o(({schemaCode:e})=>(0,Ko._)`{pattern: ${e}}`,"params")},aE={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:sE,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",c=r?(0,Ko._)`(new RegExp(${i}, ${a}))`:(0,oE.usePattern)(e,n);e.fail$data((0,Ko._)`!${c}.test(${t})`)}};Su.default=aE});var Eu=h(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});var Oi=A(),cE={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Oi.str)`must NOT have ${r} than ${t} properties`},params:o(({schemaCode:e})=>(0,Oi._)`{limit: ${e}}`,"params")},uE={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:cE,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Oi.operators.GT:Oi.operators.LT;e.fail$data((0,Oi._)`Object.keys(${r}).length ${i} ${n}`)}};Pu.default=uE});var xu=h(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});var xi=Le(),wi=A(),lE=C(),pE={message:o(({params:{missingProperty:e}})=>(0,wi.str)`must have required property '${e}'`,"message"),params:o(({params:{missingProperty:e}})=>(0,wi._)`{missingProperty: ${e}}`,"params")},fE={keyword:"required",type:"object",schemaType:"array",$data:!0,error:pE,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:a}=e,{opts:c}=a;if(!s&&r.length===0)return;let u=r.length>=c.loopRequired;if(a.allErrors?l():f(),c.strictRequired){let m=e.parentSchema.properties,{definedProperties:g}=e.it;for(let y of r)if((m==null?void 0:m[y])===void 0&&!g.has(y)){let v=a.schemaEnv.baseId+a.errSchemaPath,b=`required property "${y}" is not defined at "${v}" (strictRequired)`;(0,lE.checkStrictMode)(a,b,a.opts.strictRequired)}}function l(){if(u||s)e.block$data(wi.nil,p);else for(let m of r)(0,xi.checkReportMissingProp)(e,m)}o(l,"allErrorsMode");function f(){let m=t.let("missing");if(u||s){let g=t.let("valid",!0);e.block$data(g,()=>d(m,g)),e.ok(g)}else t.if((0,xi.checkMissingProp)(e,r,m)),(0,xi.reportMissingProp)(e,m),t.else()}o(f,"exitOnErrorMode");function p(){t.forOf("prop",n,m=>{e.setParams({missingProperty:m}),t.if((0,xi.noPropertyInData)(t,i,m,c.ownProperties),()=>e.error())})}o(p,"loopAllRequired");function d(m,g){e.setParams({missingProperty:m}),t.forOf(m,n,()=>{t.assign(g,(0,xi.propertyInData)(t,i,m,c.ownProperties)),t.if((0,wi.not)(g),()=>{e.error(),t.break()})},wi.nil)}o(d,"loopUntilMissing")}};Ou.default=fE});var Au=h(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});var Ai=A(),dE={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Ai.str)`must NOT have ${r} than ${t} items`},params:o(({schemaCode:e})=>(0,Ai._)`{limit: ${e}}`,"params")},mE={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:dE,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Ai.operators.GT:Ai.operators.LT;e.fail$data((0,Ai._)`${r}.length ${i} ${n}`)}};wu.default=mE});var Wo=h(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});var Bm=Fc();Bm.code='require("ajv/dist/runtime/equal").default';Iu.default=Bm});var Cu=h(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});var Tu=fi(),ce=A(),hE=C(),gE=Wo(),yE={message:o(({params:{i:e,j:t}})=>(0,ce.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:o(({params:{i:e,j:t}})=>(0,ce._)`{i: ${e}, j: ${t}}`,"params")},vE={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:yE,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:a,it:c}=e;if(!n&&!i)return;let u=t.let("valid"),l=s.items?(0,Tu.getSchemaTypes)(s.items):[];e.block$data(u,f,(0,ce._)`${a} === false`),e.ok(u);function f(){let g=t.let("i",(0,ce._)`${r}.length`),y=t.let("j");e.setParams({i:g,j:y}),t.assign(u,!0),t.if((0,ce._)`${g} > 1`,()=>(p()?d:m)(g,y))}o(f,"validateUniqueItems");function p(){return l.length>0&&!l.some(g=>g==="object"||g==="array")}o(p,"canOptimize");function d(g,y){let v=t.name("item"),b=(0,Tu.checkDataTypes)(l,v,c.opts.strictNumbers,Tu.DataType.Wrong),_=t.const("indices",(0,ce._)`{}`);t.for((0,ce._)`;${g}--;`,()=>{t.let(v,(0,ce._)`${r}[${g}]`),t.if(b,(0,ce._)`continue`),l.length>1&&t.if((0,ce._)`typeof ${v} == "string"`,(0,ce._)`${v} += "_"`),t.if((0,ce._)`typeof ${_}[${v}] == "number"`,()=>{t.assign(y,(0,ce._)`${_}[${v}]`),e.error(),t.assign(u,!1).break()}).code((0,ce._)`${_}[${v}] = ${g}`)})}o(d,"loopN");function m(g,y){let v=(0,hE.useFunc)(t,gE.default),b=t.name("outer");t.label(b).for((0,ce._)`;${g}--;`,()=>t.for((0,ce._)`${y} = ${g}; ${y}--;`,()=>t.if((0,ce._)`${v}(${r}[${g}], ${r}[${y}])`,()=>{e.error(),t.assign(u,!1).break(b)})))}o(m,"loopN2")}};ku.default=vE});var ju=h(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});var Ru=A(),bE=C(),_E=Wo(),SE={message:"must be equal to constant",params:o(({schemaCode:e})=>(0,Ru._)`{allowedValue: ${e}}`,"params")},$E={keyword:"const",$data:!0,error:SE,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,Ru._)`!${(0,bE.useFunc)(t,_E.default)}(${r}, ${i})`):e.fail((0,Ru._)`${s} !== ${r}`)}};Nu.default=$E});var Mu=h(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});var Ii=A(),PE=C(),EE=Wo(),OE={message:"must be equal to one of the allowed values",params:o(({schemaCode:e})=>(0,Ii._)`{allowedValues: ${e}}`,"params")},xE={keyword:"enum",schemaType:"array",$data:!0,error:OE,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:s,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let c=i.length>=a.opts.loopEnum,u,l=o(()=>u??(u=(0,PE.useFunc)(t,EE.default)),"getEql"),f;if(c||n)f=t.let("valid"),e.block$data(f,p);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let m=t.const("vSchema",s);f=(0,Ii.or)(...i.map((g,y)=>d(m,y)))}e.pass(f);function p(){t.assign(f,!1),t.forOf("v",s,m=>t.if((0,Ii._)`${l()}(${r}, ${m})`,()=>t.assign(f,!0).break()))}o(p,"loopEnum");function d(m,g){let y=i[g];return typeof y=="object"&&y!==null?(0,Ii._)`${l()}(${r}, ${m}[${g}])`:(0,Ii._)`${r} === ${y}`}o(d,"equalCode")}};qu.default=xE});var Um=h(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});var wE=Dm(),AE=Fm(),IE=yu(),TE=_u(),kE=$u(),CE=Eu(),RE=xu(),NE=Au(),jE=Cu(),qE=ju(),ME=Mu(),DE=[wE.default,AE.default,IE.default,TE.default,kE.default,CE.default,RE.default,NE.default,jE.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},qE.default,ME.default];Du.default=DE});var Fu=h(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.validateAdditionalItems=void 0;var kr=A(),Lu=C(),LE={message:o(({params:{len:e}})=>(0,kr.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,kr._)`{limit: ${e}}`,"params")},FE={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:LE,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Lu.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}zm(e,n)}};function zm(e,t){let{gen:r,schema:n,data:i,keyword:s,it:a}=e;a.items=!0;let c=r.const("len",(0,kr._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,kr._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,Lu.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,kr._)`${c} <= ${t.length}`);r.if((0,kr.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,c,f=>{e.subschema({keyword:s,dataProp:f,dataPropType:Lu.Type.Num},l),a.allErrors||r.if((0,kr.not)(l),()=>r.break())})}o(u,"validateItems")}o(zm,"validateAdditionalItems");Ti.validateAdditionalItems=zm;Ti.default=FE});var Vu=h(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.validateTuple=void 0;var Gm=A(),Yo=C(),VE=Le(),HE={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return Zm(e,"additionalItems",t);r.items=!0,!(0,Yo.alwaysValidSchema)(r,t)&&e.ok((0,VE.validateArray)(e))}};function Zm(e,t,r=e.schema){let{gen:n,parentSchema:i,data:s,keyword:a,it:c}=e;f(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=Yo.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,Gm._)`${s}.length`);r.forEach((p,d)=>{(0,Yo.alwaysValidSchema)(c,p)||(n.if((0,Gm._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},u)),e.ok(u))});function f(p){let{opts:d,errSchemaPath:m}=c,g=r.length,y=g===p.minItems&&(g===p.maxItems||p[t]===!1);if(d.strictTuples&&!y){let v=`"${a}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,Yo.checkStrictMode)(c,v,d.strictTuples)}}o(f,"checkStrictTuple")}o(Zm,"validateTuple");ki.validateTuple=Zm;ki.default=HE});var Km=h(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});var BE=Vu(),UE={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o(e=>(0,BE.validateTuple)(e,"items"),"code")};Hu.default=UE});var Ym=h(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});var Wm=A(),zE=C(),GE=Le(),ZE=Fu(),KE={message:o(({params:{len:e}})=>(0,Wm.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Wm._)`{limit: ${e}}`,"params")},WE={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:KE,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,zE.alwaysValidSchema)(n,t)&&(i?(0,ZE.validateAdditionalItems)(e,i):e.ok((0,GE.validateArray)(e)))}};Bu.default=WE});var Qm=h(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});var Ve=A(),Qo=C(),YE={message:o(({params:{min:e,max:t}})=>t===void 0?(0,Ve.str)`must contain at least ${e} valid item(s)`:(0,Ve.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:o(({params:{min:e,max:t}})=>t===void 0?(0,Ve._)`{minContains: ${e}}`:(0,Ve._)`{minContains: ${e}, maxContains: ${t}}`,"params")},QE={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:YE,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e,a,c,{minContains:u,maxContains:l}=n;s.opts.next?(a=u===void 0?1:u,c=l):a=1;let f=t.const("len",(0,Ve._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,Qo.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,Qo.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Qo.alwaysValidSchema)(s,r)){let y=(0,Ve._)`${f} >= ${a}`;c!==void 0&&(y=(0,Ve._)`${y} && ${f} <= ${c}`),e.pass(y);return}s.items=!0;let p=t.name("valid");c===void 0&&a===1?m(p,()=>t.if(p,()=>t.break())):a===0?(t.let(p,!0),c!==void 0&&t.if((0,Ve._)`${i}.length > 0`,d)):(t.let(p,!1),d()),e.result(p,()=>e.reset());function d(){let y=t.name("_valid"),v=t.let("count",0);m(y,()=>t.if(y,()=>g(v)))}o(d,"validateItemsWithCount");function m(y,v){t.forRange("i",0,f,b=>{e.subschema({keyword:"contains",dataProp:b,dataPropType:Qo.Type.Num,compositeRule:!0},y),v()})}o(m,"validateItems");function g(y){t.code((0,Ve._)`${y}++`),c===void 0?t.if((0,Ve._)`${y} >= ${a}`,()=>t.assign(p,!0).break()):(t.if((0,Ve._)`${y} > ${c}`,()=>t.assign(p,!1).break()),a===1?t.assign(p,!0):t.if((0,Ve._)`${y} >= ${a}`,()=>t.assign(p,!0)))}o(g,"checkLimits")}};Uu.default=QE});var Jo=h(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.validateSchemaDeps=gt.validatePropertyDeps=gt.error=void 0;var zu=A(),JE=C(),Ci=Le();gt.error={message:o(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,zu.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:o(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,zu._)`{property: ${e},
9
+ || ${a} === "boolean" || ${i} === null`).assign(c,(0,I._)`[${i}]`)}}o(u,"coerceSpecificType")}o(DP,"coerceData");function LP({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,I._)`${t} !== undefined`,()=>e.assign((0,I._)`${t}[${r}]`,n))}o(LP,"assignParentData");function qc(e,t,r,n=mn.Correct){let i=n===mn.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===mn.Correct?s:(0,I.not)(s);function a(c=I.nil){return(0,I.and)((0,I._)`typeof ${t} == "number"`,c,r?(0,I._)`isFinite(${t})`:I.nil)}}o(qc,"checkDataType");de.checkDataType=qc;function Mc(e,t,r,n){if(e.length===1)return qc(e[0],t,r,n);let i,s=(0,Ad.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,qc(a,t,r,n));return i}o(Mc,"checkDataTypes");de.checkDataTypes=Mc;var FP={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 Dc(e){let t=VP(e);(0,NP.reportError)(t,FP)}o(Dc,"reportTypeError");de.reportTypeError=Dc;function VP(e){let{gen:t,data:r,schema:n}=e,i=(0,Ad.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}o(VP,"getTypeErrorContext")});var Cd=h(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.assignDefaults=void 0;var hn=A(),HP=C();function BP(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)kd(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>kd(e,s,i.default))}o(BP,"assignDefaults");Fo.assignDefaults=BP;function kd(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let c=(0,hn._)`${s}${(0,hn.getProperty)(t)}`;if(i){(0,HP.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,hn._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,hn._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,hn._)`${c} = ${(0,hn.stringify)(r)}`)}o(kd,"assignDefault")});var Fe=h(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.validateUnion=L.validateArray=L.usePattern=L.callValidateCode=L.schemaProperties=L.allSchemaProperties=L.noPropertyInData=L.propertyInData=L.isOwnProperty=L.hasPropFunc=L.reportMissingProp=L.checkMissingProp=L.checkReportMissingProp=void 0;var H=A(),Lc=C(),Wt=Le(),UP=C();function zP(e,t){let{gen:r,data:n,it:i}=e;r.if(Vc(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,H._)`${t}`},!0),e.error()})}o(zP,"checkReportMissingProp");L.checkReportMissingProp=zP;function GP({gen:e,data:t,it:{opts:r}},n,i){return(0,H.or)(...n.map(s=>(0,H.and)(Vc(e,t,s,r.ownProperties),(0,H._)`${i} = ${s}`)))}o(GP,"checkMissingProp");L.checkMissingProp=GP;function ZP(e,t){e.setParams({missingProperty:t},!0),e.error()}o(ZP,"reportMissingProp");L.reportMissingProp=ZP;function Rd(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,H._)`Object.prototype.hasOwnProperty`})}o(Rd,"hasPropFunc");L.hasPropFunc=Rd;function Fc(e,t,r){return(0,H._)`${Rd(e)}.call(${t}, ${r})`}o(Fc,"isOwnProperty");L.isOwnProperty=Fc;function KP(e,t,r,n){let i=(0,H._)`${t}${(0,H.getProperty)(r)} !== undefined`;return n?(0,H._)`${i} && ${Fc(e,t,r)}`:i}o(KP,"propertyInData");L.propertyInData=KP;function Vc(e,t,r,n){let i=(0,H._)`${t}${(0,H.getProperty)(r)} === undefined`;return n?(0,H.or)(i,(0,H.not)(Fc(e,t,r))):i}o(Vc,"noPropertyInData");L.noPropertyInData=Vc;function Nd(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}o(Nd,"allSchemaProperties");L.allSchemaProperties=Nd;function WP(e,t){return Nd(t).filter(r=>!(0,Lc.alwaysValidSchema)(e,t[r]))}o(WP,"schemaProperties");L.schemaProperties=WP;function YP({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},c,u,l){let f=l?(0,H._)`${e}, ${t}, ${n}${i}`:t,p=[[Wt.default.instancePath,(0,H.strConcat)(Wt.default.instancePath,s)],[Wt.default.parentData,a.parentData],[Wt.default.parentDataProperty,a.parentDataProperty],[Wt.default.rootData,Wt.default.rootData]];a.opts.dynamicRef&&p.push([Wt.default.dynamicAnchors,Wt.default.dynamicAnchors]);let d=(0,H._)`${f}, ${r.object(...p)}`;return u!==H.nil?(0,H._)`${c}.call(${u}, ${d})`:(0,H._)`${c}(${d})`}o(YP,"callValidateCode");L.callValidateCode=YP;var JP=(0,H._)`new RegExp`;function QP({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,H._)`${i.code==="new RegExp"?JP:(0,UP.useFunc)(e,i)}(${r}, ${n})`})}o(QP,"usePattern");L.usePattern=QP;function XP(e){let{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){let c=t.let("valid",!0);return a(()=>t.assign(c,!1)),c}return t.var(s,!0),a(()=>t.break()),s;function a(c){let u=t.const("len",(0,H._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Lc.Type.Num},s),t.if((0,H.not)(s),c)})}o(a,"validateItems")}o(XP,"validateArray");L.validateArray=XP;function e$(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,Lc.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((u,l)=>{let f=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},c);t.assign(a,(0,H._)`${a} || ${c}`),e.mergeValidEvaluated(f,c)||t.if((0,H.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}o(e$,"validateUnion");L.validateUnion=e$});var Md=h(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.validateKeywordUsage=dt.validSchemaType=dt.funcKeywordCode=dt.macroKeywordCode=void 0;var _e=A(),Ar=Le(),t$=Fe(),r$=di();function n$(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,c=t.macro.call(a.self,i,s,a),u=qd(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let l=r.name("valid");e.subschema({schema:c,schemaPath:_e.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}o(n$,"macroKeywordCode");dt.macroKeywordCode=n$;function i$(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:c,it:u}=e;s$(u,t);let l=!c&&t.compile?t.compile.call(u.self,s,a,u):t.validate,f=qd(n,i,l),p=n.let("valid");e.block$data(p,d),e.ok((r=t.valid)!==null&&r!==void 0?r:p);function d(){if(t.errors===!1)y(),t.modifying&&jd(e),v(()=>e.error());else{let b=t.async?m():g();t.modifying&&jd(e),v(()=>o$(e,b))}}o(d,"validateKeyword");function m(){let b=n.let("ruleErrs",null);return n.try(()=>y((0,_e._)`await `),S=>n.assign(p,!1).if((0,_e._)`${S} instanceof ${u.ValidationError}`,()=>n.assign(b,(0,_e._)`${S}.errors`),()=>n.throw(S))),b}o(m,"validateAsync");function g(){let b=(0,_e._)`${f}.errors`;return n.assign(b,null),y(_e.nil),b}o(g,"validateSync");function y(b=t.async?(0,_e._)`await `:_e.nil){let S=u.opts.passContext?Ar.default.this:Ar.default.self,O=!("compile"in t&&!c||t.schema===!1);n.assign(p,(0,_e._)`${b}${(0,t$.callValidateCode)(e,f,S,O)}`,t.modifying)}o(y,"assignValid");function v(b){var S;n.if((0,_e.not)((S=t.valid)!==null&&S!==void 0?S:p),b)}o(v,"reportErrs")}o(i$,"funcKeywordCode");dt.funcKeywordCode=i$;function jd(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,_e._)`${n.parentData}[${n.parentDataProperty}]`))}o(jd,"modifyData");function o$(e,t){let{gen:r}=e;r.if((0,_e._)`Array.isArray(${t})`,()=>{r.assign(Ar.default.vErrors,(0,_e._)`${Ar.default.vErrors} === null ? ${t} : ${Ar.default.vErrors}.concat(${t})`).assign(Ar.default.errors,(0,_e._)`${Ar.default.vErrors}.length`),(0,r$.extendErrors)(e)},()=>e.error())}o(o$,"addErrs");function s$({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}o(s$,"checkAsyncKeyword");function qd(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,_e.stringify)(r)})}o(qd,"useKeyword");function a$(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(a$,"validSchemaType");dt.validSchemaType=a$;function c$({schema:e,opts:t,self:r,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(c=>!Object.prototype.hasOwnProperty.call(e,c)))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){let u=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}o(c$,"validateKeywordUsage");dt.validateKeywordUsage=c$});var Ld=h(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.extendSubschemaMode=Yt.extendSubschemaData=Yt.getSubschema=void 0;var mt=A(),Dd=C();function u$(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let c=e.schema[t];return r===void 0?{schema:c,schemaPath:(0,mt._)`${e.schemaPath}${(0,mt.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,mt._)`${e.schemaPath}${(0,mt.getProperty)(t)}${(0,mt.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Dd.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(u$,"getSubschema");Yt.getSubschema=u$;function l$(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:c}=t;if(r!==void 0){let{errorPath:l,dataPathArr:f,opts:p}=t,d=c.let("data",(0,mt._)`${t.data}${(0,mt.getProperty)(r)}`,!0);u(d),e.errorPath=(0,mt.str)`${l}${(0,Dd.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,mt._)`${r}`,e.dataPathArr=[...f,e.parentDataProperty]}if(i!==void 0){let l=i instanceof mt.Name?i:c.let("data",i,!0);u(l),a!==void 0&&(e.propertyName=a)}s&&(e.dataTypes=s);function u(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}o(u,"dataContextProps")}o(l$,"extendSubschemaData");Yt.extendSubschemaData=l$;function p$(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(p$,"extendSubschemaMode");Yt.extendSubschemaMode=p$});var Hc=h((lq,Fd)=>{"use strict";Fd.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 Hd=h((fq,Vd)=>{"use strict";var Jt=Vd.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(){};Vo(t,n,i,e,"",e)};Jt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Jt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Jt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Jt.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 Vo(e,t,r,n,i,s,a,c,u,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,a,c,u,l);for(var f in n){var p=n[f];if(Array.isArray(p)){if(f in Jt.arrayKeywords)for(var d=0;d<p.length;d++)Vo(e,t,r,p[d],i+"/"+f+"/"+d,s,i,f,n,d)}else if(f in Jt.propsKeywords){if(p&&typeof p=="object")for(var m in p)Vo(e,t,r,p[m],i+"/"+f+"/"+f$(m),s,i,f,n,m)}else(f in Jt.keywords||e.allKeys&&!(f in Jt.skipKeywords))&&Vo(e,t,r,p,i+"/"+f,s,i,f,n)}r(n,i,s,a,c,u,l)}}o(Vo,"_traverse");function f$(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(f$,"escapeJsonPtr")});var hi=h(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.getSchemaRefs=Ie.resolveUrl=Ie.normalizeId=Ie._getFullPath=Ie.getFullPath=Ie.inlineRef=void 0;var d$=C(),m$=Hc(),h$=Hd(),g$=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function y$(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Bc(e):t?Bd(e)<=t:!1}o(y$,"inlineRef");Ie.inlineRef=y$;var v$=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Bc(e){for(let t in e){if(v$.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Bc)||typeof r=="object"&&Bc(r))return!0}return!1}o(Bc,"hasRef");function Bd(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!g$.has(r)&&(typeof e[r]=="object"&&(0,d$.eachItem)(e[r],n=>t+=Bd(n)),t===1/0))return 1/0}return t}o(Bd,"countKeys");function Ud(e,t="",r){r!==!1&&(t=gn(t));let n=e.parse(t);return zd(e,n)}o(Ud,"getFullPath");Ie.getFullPath=Ud;function zd(e,t){return e.serialize(t).split("#")[0]+"#"}o(zd,"_getFullPath");Ie._getFullPath=zd;var b$=/#\/?$/;function gn(e){return e?e.replace(b$,""):""}o(gn,"normalizeId");Ie.normalizeId=gn;function S$(e,t,r){return r=gn(r),e.resolve(t,r)}o(S$,"resolveUrl");Ie.resolveUrl=S$;var _$=/^[a-z_][-a-z0-9._]*$/i;function P$(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=gn(e[r]||t),s={"":i},a=Ud(n,i,!1),c={},u=new Set;return h$(e,{allKeys:!0},(p,d,m,g)=>{if(g===void 0)return;let y=a+d,v=s[g];typeof p[r]=="string"&&(v=b.call(this,p[r])),S.call(this,p.$anchor),S.call(this,p.$dynamicAnchor),s[d]=v;function b(O){let P=this.opts.uriResolver.resolve;if(O=gn(v?P(v,O):O),u.has(O))throw f(O);u.add(O);let _=this.refs[O];return typeof _=="string"&&(_=this.refs[_]),typeof _=="object"?l(p,_.schema,O):O!==gn(y)&&(O[0]==="#"?(l(p,c[O],O),c[O]=p):this.refs[O]=y),O}o(b,"addRef");function S(O){if(typeof O=="string"){if(!_$.test(O))throw new Error(`invalid anchor "${O}"`);b.call(this,`#${O}`)}}o(S,"addAnchor")}),c;function l(p,d,m){if(d!==void 0&&!m$(p,d))throw f(m)}o(l,"checkAmbiguosRef");function f(p){return new Error(`reference "${p}" resolves to more than one schema`)}o(f,"ambiguos")}o(P$,"getSchemaRefs");Ie.getSchemaRefs=P$});var vi=h(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.getData=Qt.KeywordCxt=Qt.validateFunctionCode=void 0;var Yd=Ed(),Gd=mi(),zc=jc(),Ho=mi(),$$=Cd(),yi=Md(),Uc=Ld(),E=A(),w=Le(),O$=hi(),jt=C(),gi=di();function E$(e){if(Xd(e)&&(em(e),Qd(e))){A$(e);return}Jd(e,()=>(0,Yd.topBoolOrEmptySchema)(e))}o(E$,"validateFunctionCode");Qt.validateFunctionCode=E$;function Jd({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,E._)`${w.default.data}, ${w.default.valCxt}`,n.$async,()=>{e.code((0,E._)`"use strict"; ${Zd(r,i)}`),w$(e,i),e.code(s)}):e.func(t,(0,E._)`${w.default.data}, ${x$(i)}`,n.$async,()=>e.code(Zd(r,i)).code(s))}o(Jd,"validateFunction");function x$(e){return(0,E._)`{${w.default.instancePath}="", ${w.default.parentData}, ${w.default.parentDataProperty}, ${w.default.rootData}=${w.default.data}${e.dynamicRef?(0,E._)`, ${w.default.dynamicAnchors}={}`:E.nil}}={}`}o(x$,"destructureValCxt");function w$(e,t){e.if(w.default.valCxt,()=>{e.var(w.default.instancePath,(0,E._)`${w.default.valCxt}.${w.default.instancePath}`),e.var(w.default.parentData,(0,E._)`${w.default.valCxt}.${w.default.parentData}`),e.var(w.default.parentDataProperty,(0,E._)`${w.default.valCxt}.${w.default.parentDataProperty}`),e.var(w.default.rootData,(0,E._)`${w.default.valCxt}.${w.default.rootData}`),t.dynamicRef&&e.var(w.default.dynamicAnchors,(0,E._)`${w.default.valCxt}.${w.default.dynamicAnchors}`)},()=>{e.var(w.default.instancePath,(0,E._)`""`),e.var(w.default.parentData,(0,E._)`undefined`),e.var(w.default.parentDataProperty,(0,E._)`undefined`),e.var(w.default.rootData,w.default.data),t.dynamicRef&&e.var(w.default.dynamicAnchors,(0,E._)`{}`)})}o(w$,"destructureValCxtES5");function A$(e){let{schema:t,opts:r,gen:n}=e;Jd(e,()=>{r.$comment&&t.$comment&&rm(e),R$(e),n.let(w.default.vErrors,null),n.let(w.default.errors,0),r.unevaluated&&I$(e),tm(e),q$(e)})}o(A$,"topSchemaObjCode");function I$(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,E._)`${r}.evaluated`),t.if((0,E._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,E._)`${e.evaluated}.props`,(0,E._)`undefined`)),t.if((0,E._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,E._)`${e.evaluated}.items`,(0,E._)`undefined`))}o(I$,"resetEvaluated");function Zd(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,E._)`/*# sourceURL=${r} */`:E.nil}o(Zd,"funcSourceUrl");function T$(e,t){if(Xd(e)&&(em(e),Qd(e))){k$(e,t);return}(0,Yd.boolOrEmptySchema)(e,t)}o(T$,"subschemaCode");function Qd({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(Qd,"schemaCxtHasRules");function Xd(e){return typeof e.schema!="boolean"}o(Xd,"isSchemaObj");function k$(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&rm(e),N$(e),j$(e);let s=n.const("_errs",w.default.errors);tm(e,s),n.var(t,(0,E._)`${s} === ${w.default.errors}`)}o(k$,"subSchemaObjCode");function em(e){(0,jt.checkUnknownRules)(e),C$(e)}o(em,"checkKeywords");function tm(e,t){if(e.opts.jtd)return Kd(e,[],!1,t);let r=(0,Gd.getSchemaTypes)(e.schema),n=(0,Gd.coerceAndCheckDataType)(e,r);Kd(e,r,!n,t)}o(tm,"typeAndKeywords");function C$(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,jt.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}o(C$,"checkRefsAndKeywords");function R$(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,jt.checkStrictMode)(e,"default is ignored in the schema root")}o(R$,"checkNoDefault");function N$(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,O$.resolveUrl)(e.opts.uriResolver,e.baseId,t))}o(N$,"updateContext");function j$(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}o(j$,"checkAsyncSchema");function rm({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)e.code((0,E._)`${w.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let a=(0,E.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,E._)`${w.default.self}.opts.$comment(${s}, ${a}, ${c}.schema)`)}}o(rm,"commentKeyword");function q$(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,E._)`${w.default.errors} === 0`,()=>t.return(w.default.data),()=>t.throw((0,E._)`new ${i}(${w.default.vErrors})`)):(t.assign((0,E._)`${n}.errors`,w.default.vErrors),s.unevaluated&&M$(e),t.return((0,E._)`${w.default.errors} === 0`))}o(q$,"returnResults");function M$({gen:e,evaluated:t,props:r,items:n}){r instanceof E.Name&&e.assign((0,E._)`${t}.props`,r),n instanceof E.Name&&e.assign((0,E._)`${t}.items`,n)}o(M$,"assignEvaluated");function Kd(e,t,r,n){let{gen:i,schema:s,data:a,allErrors:c,opts:u,self:l}=e,{RULES:f}=l;if(s.$ref&&(u.ignoreKeywordsWithRef||!(0,jt.schemaHasRulesButRef)(s,f))){i.block(()=>im(e,"$ref",f.all.$ref.definition));return}u.jtd||D$(e,t),i.block(()=>{for(let d of f.rules)p(d);p(f.post)});function p(d){(0,zc.shouldUseGroup)(s,d)&&(d.type?(i.if((0,Ho.checkDataType)(d.type,a,u.strictNumbers)),Wd(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,Ho.reportTypeError)(e)),i.endIf()):Wd(e,d),c||i.if((0,E._)`${w.default.errors} === ${n||0}`))}o(p,"groupKeywords")}o(Kd,"schemaKeywords");function Wd(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,$$.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,zc.shouldUseRule)(n,s)&&im(e,s.keyword,s.definition,t.type)})}o(Wd,"iterateKeywords");function D$(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(L$(e,t),e.opts.allowUnionTypes||F$(e,t),V$(e,e.dataTypes))}o(D$,"checkStrictTypes");function L$(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{nm(e.dataTypes,r)||Gc(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),B$(e,t)}}o(L$,"checkContextTypes");function F$(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Gc(e,"use allowUnionTypes to allow union type keyword")}o(F$,"checkMultipleTypes");function V$(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,zc.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>H$(t,a))&&Gc(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}o(V$,"checkKeywordTypes");function H$(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}o(H$,"hasApplicableType");function nm(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}o(nm,"includesType");function B$(e,t){let r=[];for(let n of e.dataTypes)nm(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}o(B$,"narrowSchemaTypes");function Gc(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,jt.checkStrictMode)(e,t,e.opts.strictTypes)}o(Gc,"strictTypesError");var Zc=class Zc{constructor(t,r,n){if((0,yi.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,jt.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",om(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,yi.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",w.default.errors))}result(t,r,n){this.failResult((0,E.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,E.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,E._)`${r} !== undefined && (${(0,E.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?gi.reportExtraError:gi.reportError)(this,this.def.error,r)}$dataError(){(0,gi.reportError)(this,this.def.$dataError||gi.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,gi.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=E.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=E.nil,r=E.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:a}=this;n.if((0,E.or)((0,E._)`${i} === undefined`,r)),t!==E.nil&&n.assign(t,!0),(s.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==E.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,E.or)(a(),c());function a(){if(n.length){if(!(r instanceof E.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,E._)`${(0,Ho.checkDataTypes)(u,r,s.opts.strictNumbers,Ho.DataType.Wrong)}`}return E.nil}function c(){if(i.validateSchema){let u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,E._)`!${u}(${r})`}return E.nil}}subschema(t,r){let n=(0,Uc.getSubschema)(this.it,t);(0,Uc.extendSubschemaData)(n,this.it,t),(0,Uc.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return T$(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=jt.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=jt.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,E.Name)),!0}};o(Zc,"KeywordCxt");var Bo=Zc;Qt.KeywordCxt=Bo;function im(e,t,r,n){let i=new Bo(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,yi.funcKeywordCode)(i,r):"macro"in r?(0,yi.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,yi.funcKeywordCode)(i,r)}o(im,"keywordCode");var U$=/^\/(?:[^~]|~0|~1)*$/,z$=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function om(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return w.default.rootData;if(e[0]==="/"){if(!U$.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=w.default.rootData}else{let l=z$.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let f=+l[1];if(i=l[2],i==="#"){if(f>=t)throw new Error(u("property/index",f));return n[t-f]}if(f>t)throw new Error(u("data",f));if(s=r[t-f],!i)return s}let a=s,c=i.split("/");for(let l of c)l&&(s=(0,E._)`${s}${(0,E.getProperty)((0,jt.unescapeJsonPointer)(l))}`,a=(0,E._)`${a} && ${s}`);return a;function u(l,f){return`Cannot access ${l} ${f} levels up, current level is ${t}`}}o(om,"getData");Qt.getData=om});var Uo=h(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});var Yc=class Yc extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};o(Yc,"ValidationError");var Kc=Yc;Wc.default=Kc});var bi=h(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});var Jc=hi(),eu=class eu extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Jc.resolveUrl)(t,r,n),this.missingSchema=(0,Jc.normalizeId)((0,Jc.getFullPath)(t,this.missingRef))}};o(eu,"MissingRefError");var Qc=eu;Xc.default=Qc});var Si=h(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.resolveSchema=Ve.getCompilingSchema=Ve.resolveRef=Ve.compileSchema=Ve.SchemaEnv=void 0;var Qe=A(),G$=Uo(),Ir=Le(),Xe=hi(),sm=C(),Z$=vi(),nu=class nu{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,Xe.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(nu,"SchemaEnv");var yn=nu;Ve.SchemaEnv=yn;function ru(e){let t=am.call(this,e);if(t)return t;let r=(0,Xe.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new Qe.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),c;e.$async&&(c=a.scopeValue("Error",{ref:G$.default,code:(0,Qe._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:Ir.default.data,parentData:Ir.default.parentData,parentDataProperty:Ir.default.parentDataProperty,dataNames:[Ir.default.data],dataPathArr:[Qe.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Qe.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Qe.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Qe._)`""`,opts:this.opts,self:this},f;try{this._compilations.add(e),(0,Z$.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let p=a.toString();f=`${a.scopeRefs(Ir.default.scope)}return ${p}`,this.opts.code.process&&(f=this.opts.code.process(f,e));let m=new Function(`${Ir.default.self}`,`${Ir.default.scope}`,f)(this,this.scope.get());if(this.scope.value(u,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:u,validateCode:p,scopeValues:a._values}),this.opts.unevaluated){let{props:g,items:y}=l;m.evaluated={props:g instanceof Qe.Name?void 0:g,items:y instanceof Qe.Name?void 0:y,dynamicProps:g instanceof Qe.Name,dynamicItems:y instanceof Qe.Name},m.source&&(m.source.evaluated=(0,Qe.stringify)(m.evaluated))}return e.validate=m,e}catch(p){throw delete e.validate,delete e.validateName,f&&this.logger.error("Error compiling schema, function code:",f),p}finally{this._compilations.delete(e)}}o(ru,"compileSchema");Ve.compileSchema=ru;function K$(e,t,r){var n;r=(0,Xe.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=J$.call(this,e,r);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;a&&(s=new yn({schema:a,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=W$.call(this,s)}o(K$,"resolveRef");Ve.resolveRef=K$;function W$(e){return(0,Xe.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:ru.call(this,e)}o(W$,"inlineOrCompile");function am(e){for(let t of this._compilations)if(Y$(t,e))return t}o(am,"getCompilingSchema");Ve.getCompilingSchema=am;function Y$(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}o(Y$,"sameSchemaEnv");function J$(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||zo.call(this,e,t)}o(J$,"resolve");function zo(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Xe._getFullPath)(this.opts.uriResolver,r),i=(0,Xe.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return tu.call(this,r,e);let s=(0,Xe.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let c=zo.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:tu.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||ru.call(this,a),s===(0,Xe.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,Xe.resolveUrl)(this.opts.uriResolver,i,l)),new yn({schema:c,schemaId:u,root:e,baseId:i})}return tu.call(this,r,a)}}o(zo,"resolveSchema");Ve.resolveSchema=zo;var Q$=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function tu(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let c of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let u=r[(0,sm.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!Q$.has(c)&&l&&(t=(0,Xe.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,sm.schemaHasRulesButRef)(r,this.RULES)){let c=(0,Xe.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=zo.call(this,n,c)}let{schemaId:a}=this.opts;if(s=s||new yn({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}o(tu,"getJsonPointer")});var cm=h((Oq,X$)=>{X$.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 lm=h((Eq,um)=>{"use strict";var e1={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};um.exports={HEX:e1}});var vm=h((xq,ym)=>{"use strict";var{HEX:t1}=lm();function mm(e){if(gm(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:n1(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}o(mm,"normalizeIPv4");function iu(e,t=!1){let r="",n=!0;for(let i of e){if(t1[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}o(iu,"stringArrayToHexStripped");function r1(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,a=!1,c=!1;function u(){if(i.length){if(s===!1){let l=iu(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}o(u,"consume");for(let l=0;l<e.length;l++){let f=e[l];if(!(f==="["||f==="]"))if(f===":"){if(a===!0&&(c=!0),!u())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(f==="%"){if(!u())break;s=!0}else{i.push(f);continue}}return i.length&&(s?r.zone=i.join(""):c?n.push(i.join("")):n.push(iu(i))),r.address=n.join(""),r}o(r1,"getIPV6");function hm(e,t={}){if(gm(e,":")<2)return{host:e,isIPV6:!1};let r=r1(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(hm,"normalizeIPv6");function n1(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(n1,"stripLeadingZeros");function gm(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}o(gm,"findToken");var pm=/^\.\.?\//u,fm=/^\/\.(?:\/|$)/u,dm=/^\/\.\.(?:\/|$)/u,i1=/^\/?(?:.|\n)*?(?=\/|$)/u;function o1(e){let t=[];for(;e.length;)if(e.match(pm))e=e.replace(pm,"");else if(e.match(fm))e=e.replace(fm,"/");else if(e.match(dm))e=e.replace(dm,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(i1);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(o1,"removeDotSegments");function s1(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(s1,"normalizeComponentEncoding");function a1(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=mm(n);if(i.isIPV4)n=i.host;else{let s=hm(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(a1,"recomposeAuthority");ym.exports={recomposeAuthority:a1,normalizeComponentEncoding:s1,removeDotSegments:o1,normalizeIPv4:mm,normalizeIPv6:hm,stringArrayToHexStripped:iu}});var Om=h((Aq,$m)=>{"use strict";var c1=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,u1=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function bm(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}o(bm,"isSecure");function Sm(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}o(Sm,"httpParse");function _m(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(_m,"httpSerialize");function l1(e){return e.secure=bm(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}o(l1,"wsParse");function p1(e){if((e.port===(bm(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(p1,"wsSerialize");function f1(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(u1);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=ou[i];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}o(f1,"urnParse");function d1(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=ou[i];s&&(e=s.serialize(e,t));let a=e,c=e.nss;return a.path=`${n||t.nid}:${c}`,t.skipEscape=!0,a}o(d1,"urnSerialize");function m1(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!c1.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}o(m1,"urnuuidParse");function h1(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}o(h1,"urnuuidSerialize");var Pm={scheme:"http",domainHost:!0,parse:Sm,serialize:_m},g1={scheme:"https",domainHost:Pm.domainHost,parse:Sm,serialize:_m},Go={scheme:"ws",domainHost:!0,parse:l1,serialize:p1},y1={scheme:"wss",domainHost:Go.domainHost,parse:Go.parse,serialize:Go.serialize},v1={scheme:"urn",parse:f1,serialize:d1,skipNormalize:!0},b1={scheme:"urn:uuid",parse:m1,serialize:h1,skipNormalize:!0},ou={http:Pm,https:g1,ws:Go,wss:y1,urn:v1,"urn:uuid":b1};$m.exports=ou});var xm=h((Tq,Ko)=>{"use strict";var{normalizeIPv6:S1,normalizeIPv4:_1,removeDotSegments:_i,recomposeAuthority:P1,normalizeComponentEncoding:Zo}=vm(),su=Om();function $1(e,t){return typeof e=="string"?e=ht(qt(e,t),t):typeof e=="object"&&(e=qt(ht(e,t),t)),e}o($1,"normalize");function O1(e,t,r){let n=Object.assign({scheme:"null"},r),i=Em(qt(e,n),qt(t,n),n,!0);return ht(i,{...n,skipEscape:!0})}o(O1,"resolve");function Em(e,t,r,n){let i={};return n||(e=qt(ht(e,r),r),t=qt(ht(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(Em,"resolveComponents");function E1(e,t,r){return typeof e=="string"?(e=unescape(e),e=ht(Zo(qt(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=ht(Zo(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=ht(Zo(qt(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=ht(Zo(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}o(E1,"equal");function ht(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=su[(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=P1(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let c=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(c=_i(c)),a===void 0&&(c=c.replace(/^\/\//u,"/%2F")),i.push(c)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}o(ht,"serialize");var x1=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function w1(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||x1[t])return!0;return!1}o(w1,"nonSimpleDomain");var A1=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function qt(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(A1);if(a){if(n.scheme=a[1],n.userinfo=a[3],n.host=a[4],n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=a[7],n.fragment=a[8],isNaN(n.port)&&(n.port=a[5]),n.host){let u=_1(n.host);if(u.isIPV4===!1){let l=S1(u.host,{isIPV4:!1});n.host=l.host.toLowerCase(),s=l.isIPV6}else n.host=u.host,s=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let c=su[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&s===!1&&w1(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}(!c||c&&!c.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),c&&c.parse&&c.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}o(qt,"parse");var au={SCHEMES:su,normalize:$1,resolve:O1,resolveComponents:Em,equal:E1,serialize:ht,parse:qt};Ko.exports=au;Ko.exports.default=au;Ko.exports.fastUri=au});var Am=h(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});var wm=xm();wm.code='require("ajv/dist/runtime/uri").default';cu.default=wm});var bn=h(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.CodeGen=ae.Name=ae.nil=ae.stringify=ae.str=ae._=ae.KeywordCxt=void 0;var I1=vi();Object.defineProperty(ae,"KeywordCxt",{enumerable:!0,get:o(function(){return I1.KeywordCxt},"get")});var vn=A();Object.defineProperty(ae,"_",{enumerable:!0,get:o(function(){return vn._},"get")});Object.defineProperty(ae,"str",{enumerable:!0,get:o(function(){return vn.str},"get")});Object.defineProperty(ae,"stringify",{enumerable:!0,get:o(function(){return vn.stringify},"get")});Object.defineProperty(ae,"nil",{enumerable:!0,get:o(function(){return vn.nil},"get")});Object.defineProperty(ae,"Name",{enumerable:!0,get:o(function(){return vn.Name},"get")});Object.defineProperty(ae,"CodeGen",{enumerable:!0,get:o(function(){return vn.CodeGen},"get")});var T1=Uo(),Rm=bi(),k1=Nc(),Pi=Si(),C1=A(),$i=hi(),Wo=mi(),lu=C(),Im=cm(),R1=Am(),Nm=o((e,t)=>new RegExp(e,t),"defaultRegExp");Nm.code="new RegExp";var N1=["removeAdditional","useDefaults","coerceTypes"],j1=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),q1={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."},M1={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Tm=200;function D1(e){var t,r,n,i,s,a,c,u,l,f,p,d,m,g,y,v,b,S,O,P,_,V,q,se,Q;let G=e.strict,ve=(t=e.code)===null||t===void 0?void 0:t.optimize,be=ve===!0||ve===void 0?1:ve||0,Gt=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:Nm,nn=(i=e.uriResolver)!==null&&i!==void 0?i:R1.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:G)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:G)!==null&&u!==void 0?u:!0,strictTypes:(f=(l=e.strictTypes)!==null&&l!==void 0?l:G)!==null&&f!==void 0?f:"log",strictTuples:(d=(p=e.strictTuples)!==null&&p!==void 0?p:G)!==null&&d!==void 0?d:"log",strictRequired:(g=(m=e.strictRequired)!==null&&m!==void 0?m:G)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:be,regExp:Gt}:{optimize:be,regExp:Gt},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:Tm,loopEnum:(v=e.loopEnum)!==null&&v!==void 0?v:Tm,meta:(b=e.meta)!==null&&b!==void 0?b:!0,messages:(S=e.messages)!==null&&S!==void 0?S:!0,inlineRefs:(O=e.inlineRefs)!==null&&O!==void 0?O:!0,schemaId:(P=e.schemaId)!==null&&P!==void 0?P:"$id",addUsedSchema:(_=e.addUsedSchema)!==null&&_!==void 0?_:!0,validateSchema:(V=e.validateSchema)!==null&&V!==void 0?V:!0,validateFormats:(q=e.validateFormats)!==null&&q!==void 0?q:!0,unicodeRegExp:(se=e.unicodeRegExp)!==null&&se!==void 0?se:!0,int32range:(Q=e.int32range)!==null&&Q!==void 0?Q:!0,uriResolver:nn}}o(D1,"requiredOptions");var pu=class pu{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...D1(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new C1.ValueScope({scope:{},prefixes:j1,es5:r,lines:n}),this.logger=U1(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,k1.getRules)(),km.call(this,q1,t,"NOT SUPPORTED"),km.call(this,M1,t,"DEPRECATED","warn"),this._metaOpts=H1.call(this),t.formats&&F1.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&V1.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),L1.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=Im;n==="id"&&(i={...Im},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(f,p){await s.call(this,f.$schema);let d=this._addSchema(f,p);return d.validate||a.call(this,d)}async function s(f){f&&!this.getSchema(f)&&await i.call(this,{$ref:f},!0)}async function a(f){try{return this._compileSchemaEnv(f)}catch(p){if(!(p instanceof Rm.default))throw p;return c.call(this,p),await u.call(this,p.missingSchema),a.call(this,f)}}function c({missingSchema:f,missingRef:p}){if(this.refs[f])throw new Error(`AnySchema ${f} is loaded but ${p} cannot be resolved`)}async function u(f){let p=await l.call(this,f);this.refs[f]||await s.call(this,p.$schema),this.refs[f]||this.addSchema(p,f,r)}async function l(f){let p=this._loading[f];if(p)return p;try{return await(this._loading[f]=n(f))}finally{delete this._loading[f]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let s;if(typeof t=="object"){let{schemaId:a}=this.opts;if(s=t[a],s!==void 0&&typeof s!="string")throw new Error(`schema ${a} must be string`)}return r=(0,$i.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=Cm.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new Pi.SchemaEnv({schema:{},schemaId:n});if(r=Pi.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=Cm.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,$i.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(G1.call(this,n,r),!r)return(0,lu.eachItem)(n,s=>uu.call(this,s)),this;K1.call(this,r);let i={...r,type:(0,Wo.getJSONTypes)(r.type),schemaType:(0,Wo.getJSONTypes)(r.schemaType)};return(0,lu.eachItem)(n,i.type.length===0?s=>uu.call(this,s,i):s=>i.type.forEach(a=>uu.call(this,s,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(s=>s.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,s)=>i+r+s)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let s=i.split("/").slice(1),a=t;for(let c of s)a=a[c];for(let c in n){let u=n[c];if(typeof u!="object")continue;let{$data:l}=u.definition,f=a[c];l&&f&&(a[c]=jm(f))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,s=this.opts.addUsedSchema){let a,{schemaId:c}=this.opts;if(typeof t=="object")a=t[c];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let u=this._cache.get(t);if(u!==void 0)return u;n=(0,$i.normalizeId)(a||n);let l=$i.getSchemaRefs.call(this,t,n);return u=new Pi.SchemaEnv({schema:t,schemaId:c,meta:r,baseId:n,localRefs:l}),this._cache.set(u.schema,u),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),i&&this.validateSchema(t,!0),u}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):Pi.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{Pi.compileSchema.call(this,t)}finally{this.opts=r}}};o(pu,"Ajv");var Oi=pu;Oi.ValidationError=T1.default;Oi.MissingRefError=Rm.default;ae.default=Oi;function km(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(km,"checkOptions");function Cm(e){return e=(0,$i.normalizeId)(e),this.schemas[e]||this.refs[e]}o(Cm,"getSchEnv");function L1(){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(L1,"addInitialSchemas");function F1(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}o(F1,"addInitialFormats");function V1(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(V1,"addInitialKeywords");function H1(){let e={...this.opts};for(let t of N1)delete e[t];return e}o(H1,"getMetaSchemaOptions");var B1={log(){},warn(){},error(){}};function U1(e){if(e===!1)return B1;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(U1,"getLogger");var z1=/^[a-z_$][a-z0-9_$:-]*$/i;function G1(e,t){let{RULES:r}=this;if((0,lu.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!z1.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(G1,"checkKeyword");function uu(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,a=i?s.post:s.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},s.rules.push(a)),s.keywords[e]=!0,!t)return;let c={keyword:e,definition:{...t,type:(0,Wo.getJSONTypes)(t.type),schemaType:(0,Wo.getJSONTypes)(t.schemaType)}};t.before?Z1.call(this,a,c,t.before):a.rules.push(c),s.all[e]=c,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}o(uu,"addRule");function Z1(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(Z1,"addBeforeRule");function K1(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=jm(t)),e.validateSchema=this.compile(t,!0))}o(K1,"keywordMetaschema");var W1={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function jm(e){return{anyOf:[e,W1]}}o(jm,"schemaOrData")});var Ei=h(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.callRef=Tr.getValidate=void 0;var Y1=bi(),qm=Fe(),Te=A(),Sn=Le(),Mm=Si(),Yo=C(),J1={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:a,opts:c,self:u}=n,{root:l}=s;if((r==="#"||r==="#/")&&i===l.baseId)return p();let f=Mm.resolveRef.call(u,l,i,r);if(f===void 0)throw new Y1.default(n.opts.uriResolver,i,r);if(f instanceof Mm.SchemaEnv)return d(f);return m(f);function p(){if(s===l)return Jo(e,a,s,s.$async);let g=t.scopeValue("root",{ref:l});return Jo(e,(0,Te._)`${g}.validate`,l,l.$async)}function d(g){let y=Dm(e,g);Jo(e,y,g,g.$async)}function m(g){let y=t.scopeValue("schema",c.code.source===!0?{ref:g,code:(0,Te.stringify)(g)}:{ref:g}),v=t.name("valid"),b=e.subschema({schema:g,dataTypes:[],schemaPath:Te.nil,topSchemaRef:y,errSchemaPath:r},v);e.mergeEvaluated(b),e.ok(v)}}};function Dm(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Te._)`${r.scopeValue("wrapper",{ref:t})}.validate`}o(Dm,"getValidate");Tr.getValidate=Dm;function Jo(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:c,opts:u}=s,l=u.passContext?Sn.default.this:Te.nil;n?f():p();function f(){if(!c.$async)throw new Error("async schema referenced by sync schema");let g=i.let("valid");i.try(()=>{i.code((0,Te._)`await ${(0,qm.callValidateCode)(e,t,l)}`),m(t),a||i.assign(g,!0)},y=>{i.if((0,Te._)`!(${y} instanceof ${s.ValidationError})`,()=>i.throw(y)),d(y),a||i.assign(g,!1)}),e.ok(g)}o(f,"callAsyncRef");function p(){e.result((0,qm.callValidateCode)(e,t,l),()=>m(t),()=>d(t))}o(p,"callSyncRef");function d(g){let y=(0,Te._)`${g}.errors`;i.assign(Sn.default.vErrors,(0,Te._)`${Sn.default.vErrors} === null ? ${y} : ${Sn.default.vErrors}.concat(${y})`),i.assign(Sn.default.errors,(0,Te._)`${Sn.default.vErrors}.length`)}o(d,"addErrorsFrom");function m(g){var y;if(!s.opts.unevaluated)return;let v=(y=r==null?void 0:r.validate)===null||y===void 0?void 0:y.evaluated;if(s.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(s.props=Yo.mergeEvaluated.props(i,v.props,s.props));else{let b=i.var("props",(0,Te._)`${g}.evaluated.props`);s.props=Yo.mergeEvaluated.props(i,b,s.props,Te.Name)}if(s.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(s.items=Yo.mergeEvaluated.items(i,v.items,s.items));else{let b=i.var("items",(0,Te._)`${g}.evaluated.items`);s.items=Yo.mergeEvaluated.items(i,b,s.items,Te.Name)}}o(m,"addEvaluatedFrom")}o(Jo,"callRef");Tr.callRef=Jo;Tr.default=J1});var Lm=h(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});var Q1=Ei(),X1=["$schema","id","$defs",{keyword:"$comment"},"definitions",Q1.default];fu.default=X1});var Fm=h(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});var du=bn(),eO=A(),Xt=eO.operators,mu={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:Xt.LTE,fail:Xt.GT},{okStr:"<",ok:Xt.LT,fail:Xt.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:Xt.GTE,fail:Xt.LT},{okStr:">",ok:Xt.GT,fail:Xt.LTE}]}},tO={message:o(e=>du.str`must be ${hu(e).okStr} ${e.schemaCode}`,"message"),params:o(e=>du._`{comparison: ${hu(e).okStr}, limit: ${e.schemaCode}}`,"params")},rO={keyword:Object.keys(mu),type:"number",schemaType:"number",$data:!0,error:tO,code(e){let{data:t,schemaCode:r}=e;e.fail$data(du._`${t} ${hu(e).fail} ${r} || isNaN(${t})`)}};function hu(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[mu[r].exclusive]?1:0;return mu[r].ops[n]}o(hu,"kwdOp");gu.default=rO});var Hm=h(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});var Vm={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},nO={keyword:Object.keys(Vm),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=Vm[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};yu.default=nO});var bu=h(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});var xi=A(),iO={message:o(({schemaCode:e})=>(0,xi.str)`must be multiple of ${e}`,"message"),params:o(({schemaCode:e})=>(0,xi._)`{multipleOf: ${e}}`,"params")},oO={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:iO,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),c=s?(0,xi._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,xi._)`${a} !== parseInt(${a})`;e.fail$data((0,xi._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};vu.default=oO});var Um=h(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});function Bm(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(Bm,"ucs2length");Su.default=Bm;Bm.code='require("ajv/dist/runtime/ucs2length").default'});var Pu=h(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});var kr=A(),sO=C(),aO=Um(),cO={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,kr.str)`must NOT have ${r} than ${t} characters`},params:o(({schemaCode:e})=>(0,kr._)`{limit: ${e}}`,"params")},uO={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:cO,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?kr.operators.GT:kr.operators.LT,a=i.opts.unicode===!1?(0,kr._)`${r}.length`:(0,kr._)`${(0,sO.useFunc)(e.gen,aO.default)}(${r})`;e.fail$data((0,kr._)`${a} ${s} ${n}`)}};_u.default=uO});var Ou=h($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});var lO=Fe(),Qo=A(),pO={message:o(({schemaCode:e})=>(0,Qo.str)`must match pattern "${e}"`,"message"),params:o(({schemaCode:e})=>(0,Qo._)`{pattern: ${e}}`,"params")},fO={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:pO,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",c=r?(0,Qo._)`(new RegExp(${i}, ${a}))`:(0,lO.usePattern)(e,n);e.fail$data((0,Qo._)`!${c}.test(${t})`)}};$u.default=fO});var xu=h(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});var wi=A(),dO={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,wi.str)`must NOT have ${r} than ${t} properties`},params:o(({schemaCode:e})=>(0,wi._)`{limit: ${e}}`,"params")},mO={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:dO,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?wi.operators.GT:wi.operators.LT;e.fail$data((0,wi._)`Object.keys(${r}).length ${i} ${n}`)}};Eu.default=mO});var Au=h(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});var Ai=Fe(),Ii=A(),hO=C(),gO={message:o(({params:{missingProperty:e}})=>(0,Ii.str)`must have required property '${e}'`,"message"),params:o(({params:{missingProperty:e}})=>(0,Ii._)`{missingProperty: ${e}}`,"params")},yO={keyword:"required",type:"object",schemaType:"array",$data:!0,error:gO,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:a}=e,{opts:c}=a;if(!s&&r.length===0)return;let u=r.length>=c.loopRequired;if(a.allErrors?l():f(),c.strictRequired){let m=e.parentSchema.properties,{definedProperties:g}=e.it;for(let y of r)if((m==null?void 0:m[y])===void 0&&!g.has(y)){let v=a.schemaEnv.baseId+a.errSchemaPath,b=`required property "${y}" is not defined at "${v}" (strictRequired)`;(0,hO.checkStrictMode)(a,b,a.opts.strictRequired)}}function l(){if(u||s)e.block$data(Ii.nil,p);else for(let m of r)(0,Ai.checkReportMissingProp)(e,m)}o(l,"allErrorsMode");function f(){let m=t.let("missing");if(u||s){let g=t.let("valid",!0);e.block$data(g,()=>d(m,g)),e.ok(g)}else t.if((0,Ai.checkMissingProp)(e,r,m)),(0,Ai.reportMissingProp)(e,m),t.else()}o(f,"exitOnErrorMode");function p(){t.forOf("prop",n,m=>{e.setParams({missingProperty:m}),t.if((0,Ai.noPropertyInData)(t,i,m,c.ownProperties),()=>e.error())})}o(p,"loopAllRequired");function d(m,g){e.setParams({missingProperty:m}),t.forOf(m,n,()=>{t.assign(g,(0,Ai.propertyInData)(t,i,m,c.ownProperties)),t.if((0,Ii.not)(g),()=>{e.error(),t.break()})},Ii.nil)}o(d,"loopUntilMissing")}};wu.default=yO});var Tu=h(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});var Ti=A(),vO={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")},bO={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:vO,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}`)}};Iu.default=bO});var Xo=h(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});var zm=Hc();zm.code='require("ajv/dist/runtime/equal").default';ku.default=zm});var Nu=h(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});var Cu=mi(),ce=A(),SO=C(),_O=Xo(),PO={message:o(({params:{i:e,j:t}})=>(0,ce.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:o(({params:{i:e,j:t}})=>(0,ce._)`{i: ${e}, j: ${t}}`,"params")},$O={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:PO,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:a,it:c}=e;if(!n&&!i)return;let u=t.let("valid"),l=s.items?(0,Cu.getSchemaTypes)(s.items):[];e.block$data(u,f,(0,ce._)`${a} === false`),e.ok(u);function f(){let g=t.let("i",(0,ce._)`${r}.length`),y=t.let("j");e.setParams({i:g,j:y}),t.assign(u,!0),t.if((0,ce._)`${g} > 1`,()=>(p()?d:m)(g,y))}o(f,"validateUniqueItems");function p(){return l.length>0&&!l.some(g=>g==="object"||g==="array")}o(p,"canOptimize");function d(g,y){let v=t.name("item"),b=(0,Cu.checkDataTypes)(l,v,c.opts.strictNumbers,Cu.DataType.Wrong),S=t.const("indices",(0,ce._)`{}`);t.for((0,ce._)`;${g}--;`,()=>{t.let(v,(0,ce._)`${r}[${g}]`),t.if(b,(0,ce._)`continue`),l.length>1&&t.if((0,ce._)`typeof ${v} == "string"`,(0,ce._)`${v} += "_"`),t.if((0,ce._)`typeof ${S}[${v}] == "number"`,()=>{t.assign(y,(0,ce._)`${S}[${v}]`),e.error(),t.assign(u,!1).break()}).code((0,ce._)`${S}[${v}] = ${g}`)})}o(d,"loopN");function m(g,y){let v=(0,SO.useFunc)(t,_O.default),b=t.name("outer");t.label(b).for((0,ce._)`;${g}--;`,()=>t.for((0,ce._)`${y} = ${g}; ${y}--;`,()=>t.if((0,ce._)`${v}(${r}[${g}], ${r}[${y}])`,()=>{e.error(),t.assign(u,!1).break(b)})))}o(m,"loopN2")}};Ru.default=$O});var Mu=h(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});var ju=A(),OO=C(),EO=Xo(),xO={message:"must be equal to constant",params:o(({schemaCode:e})=>(0,ju._)`{allowedValue: ${e}}`,"params")},wO={keyword:"const",$data:!0,error:xO,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,ju._)`!${(0,OO.useFunc)(t,EO.default)}(${r}, ${i})`):e.fail((0,ju._)`${s} !== ${r}`)}};qu.default=wO});var Lu=h(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});var ki=A(),AO=C(),IO=Xo(),TO={message:"must be equal to one of the allowed values",params:o(({schemaCode:e})=>(0,ki._)`{allowedValues: ${e}}`,"params")},kO={keyword:"enum",schemaType:"array",$data:!0,error:TO,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:s,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let c=i.length>=a.opts.loopEnum,u,l=o(()=>u??(u=(0,AO.useFunc)(t,IO.default)),"getEql"),f;if(c||n)f=t.let("valid"),e.block$data(f,p);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let m=t.const("vSchema",s);f=(0,ki.or)(...i.map((g,y)=>d(m,y)))}e.pass(f);function p(){t.assign(f,!1),t.forOf("v",s,m=>t.if((0,ki._)`${l()}(${r}, ${m})`,()=>t.assign(f,!0).break()))}o(p,"loopEnum");function d(m,g){let y=i[g];return typeof y=="object"&&y!==null?(0,ki._)`${l()}(${r}, ${m}[${g}])`:(0,ki._)`${r} === ${y}`}o(d,"equalCode")}};Du.default=kO});var Gm=h(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});var CO=Fm(),RO=Hm(),NO=bu(),jO=Pu(),qO=Ou(),MO=xu(),DO=Au(),LO=Tu(),FO=Nu(),VO=Mu(),HO=Lu(),BO=[CO.default,RO.default,NO.default,jO.default,qO.default,MO.default,DO.default,LO.default,FO.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},VO.default,HO.default];Fu.default=BO});var Hu=h(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.validateAdditionalItems=void 0;var Cr=A(),Vu=C(),UO={message:o(({params:{len:e}})=>(0,Cr.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Cr._)`{limit: ${e}}`,"params")},zO={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:UO,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Vu.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Zm(e,n)}};function Zm(e,t){let{gen:r,schema:n,data:i,keyword:s,it:a}=e;a.items=!0;let c=r.const("len",(0,Cr._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Cr._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,Vu.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,Cr._)`${c} <= ${t.length}`);r.if((0,Cr.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,c,f=>{e.subschema({keyword:s,dataProp:f,dataPropType:Vu.Type.Num},l),a.allErrors||r.if((0,Cr.not)(l),()=>r.break())})}o(u,"validateItems")}o(Zm,"validateAdditionalItems");Ci.validateAdditionalItems=Zm;Ci.default=zO});var Bu=h(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.validateTuple=void 0;var Km=A(),es=C(),GO=Fe(),ZO={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return Wm(e,"additionalItems",t);r.items=!0,!(0,es.alwaysValidSchema)(r,t)&&e.ok((0,GO.validateArray)(e))}};function Wm(e,t,r=e.schema){let{gen:n,parentSchema:i,data:s,keyword:a,it:c}=e;f(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=es.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,Km._)`${s}.length`);r.forEach((p,d)=>{(0,es.alwaysValidSchema)(c,p)||(n.if((0,Km._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},u)),e.ok(u))});function f(p){let{opts:d,errSchemaPath:m}=c,g=r.length,y=g===p.minItems&&(g===p.maxItems||p[t]===!1);if(d.strictTuples&&!y){let v=`"${a}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,es.checkStrictMode)(c,v,d.strictTuples)}}o(f,"checkStrictTuple")}o(Wm,"validateTuple");Ri.validateTuple=Wm;Ri.default=ZO});var Ym=h(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});var KO=Bu(),WO={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o(e=>(0,KO.validateTuple)(e,"items"),"code")};Uu.default=WO});var Qm=h(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});var Jm=A(),YO=C(),JO=Fe(),QO=Hu(),XO={message:o(({params:{len:e}})=>(0,Jm.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Jm._)`{limit: ${e}}`,"params")},eE={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:XO,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,YO.alwaysValidSchema)(n,t)&&(i?(0,QO.validateAdditionalItems)(e,i):e.ok((0,JO.validateArray)(e)))}};zu.default=eE});var Xm=h(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});var He=A(),ts=C(),tE={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")},rE={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:tE,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e,a,c,{minContains:u,maxContains:l}=n;s.opts.next?(a=u===void 0?1:u,c=l):a=1;let f=t.const("len",(0,He._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,ts.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,ts.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,ts.alwaysValidSchema)(s,r)){let y=(0,He._)`${f} >= ${a}`;c!==void 0&&(y=(0,He._)`${y} && ${f} <= ${c}`),e.pass(y);return}s.items=!0;let p=t.name("valid");c===void 0&&a===1?m(p,()=>t.if(p,()=>t.break())):a===0?(t.let(p,!0),c!==void 0&&t.if((0,He._)`${i}.length > 0`,d)):(t.let(p,!1),d()),e.result(p,()=>e.reset());function d(){let y=t.name("_valid"),v=t.let("count",0);m(y,()=>t.if(y,()=>g(v)))}o(d,"validateItemsWithCount");function m(y,v){t.forRange("i",0,f,b=>{e.subschema({keyword:"contains",dataProp:b,dataPropType:ts.Type.Num,compositeRule:!0},y),v()})}o(m,"validateItems");function g(y){t.code((0,He._)`${y}++`),c===void 0?t.if((0,He._)`${y} >= ${a}`,()=>t.assign(p,!0).break()):(t.if((0,He._)`${y} > ${c}`,()=>t.assign(p,!1).break()),a===1?t.assign(p,!0):t.if((0,He._)`${y} >= ${a}`,()=>t.assign(p,!0)))}o(g,"checkLimits")}};Gu.default=rE});var rs=h(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.validateSchemaDeps=gt.validatePropertyDeps=gt.error=void 0;var Zu=A(),nE=C(),Ni=Fe();gt.error={message:o(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Zu.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:o(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Zu._)`{property: ${e},
10
10
  missingProperty: ${n},
11
11
  depsCount: ${t},
12
- deps: ${r}}`,"params")};var XE={keyword:"dependencies",type:"object",schemaType:"object",error:gt.error,code(e){let[t,r]=eO(e);Jm(e,t),Xm(e,r)}};function eO({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(eO,"splitDependencies");function Jm(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let a in t){let c=t[a];if(c.length===0)continue;let u=(0,Ci.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:c.length,deps:c.join(", ")}),i.allErrors?r.if(u,()=>{for(let l of c)(0,Ci.checkReportMissingProp)(e,l)}):(r.if((0,zu._)`${u} && (${(0,Ci.checkMissingProp)(e,c,s)})`),(0,Ci.reportMissingProp)(e,s),r.else())}}o(Jm,"validatePropertyDeps");gt.validatePropertyDeps=Jm;function Xm(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let c in t)(0,JE.alwaysValidSchema)(s,t[c])||(r.if((0,Ci.propertyInData)(r,n,c,s.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:c},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}o(Xm,"validateSchemaDeps");gt.validateSchemaDeps=Xm;gt.default=XE});var th=h(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});var eh=A(),tO=C(),rO={message:"property name must be valid",params:o(({params:e})=>(0,eh._)`{propertyName: ${e.propertyName}}`,"params")},nO={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:rO,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,tO.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,eh.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};Gu.default=nO});var Ku=h(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});var Xo=Le(),Xe=A(),iO=De(),es=C(),oO={message:"must NOT have additional properties",params:o(({params:e})=>(0,Xe._)`{additionalProperty: ${e.additionalProperty}}`,"params")},sO={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:oO,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:s,it:a}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:c,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,es.alwaysValidSchema)(a,r))return;let l=(0,Xo.allSchemaProperties)(n.properties),f=(0,Xo.allSchemaProperties)(n.patternProperties);p(),e.ok((0,Xe._)`${s} === ${iO.default.errors}`);function p(){t.forIn("key",i,v=>{!l.length&&!f.length?g(v):t.if(d(v),()=>g(v))})}o(p,"checkAdditionalProperties");function d(v){let b;if(l.length>8){let _=(0,es.schemaRefOrVal)(a,n.properties,"properties");b=(0,Xo.isOwnProperty)(t,_,v)}else l.length?b=(0,Xe.or)(...l.map(_=>(0,Xe._)`${v} === ${_}`)):b=Xe.nil;return f.length&&(b=(0,Xe.or)(b,...f.map(_=>(0,Xe._)`${(0,Xo.usePattern)(e,_)}.test(${v})`))),(0,Xe.not)(b)}o(d,"isAdditional");function m(v){t.code((0,Xe._)`delete ${i}[${v}]`)}o(m,"deleteAdditional");function g(v){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){m(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,es.alwaysValidSchema)(a,r)){let b=t.name("valid");u.removeAdditional==="failing"?(y(v,b,!1),t.if((0,Xe.not)(b),()=>{e.reset(),m(v)})):(y(v,b),c||t.if((0,Xe.not)(b),()=>t.break()))}}o(g,"additionalPropertyCode");function y(v,b,_){let E={keyword:"additionalProperties",dataProp:v,dataPropType:es.Type.Str};_===!1&&Object.assign(E,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(E,b)}o(y,"applyAdditionalSchema")}};Zu.default=sO});var ih=h(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});var aO=gi(),rh=Le(),Wu=C(),nh=Ku(),cO={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&&nh.default.code(new aO.KeywordCxt(s,nh.default,"additionalProperties"));let a=(0,rh.allSchemaProperties)(r);for(let p of a)s.definedProperties.add(p);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=Wu.mergeEvaluated.props(t,(0,Wu.toHash)(a),s.props));let c=a.filter(p=>!(0,Wu.alwaysValidSchema)(s,r[p]));if(c.length===0)return;let u=t.name("valid");for(let p of c)l(p)?f(p):(t.if((0,rh.propertyInData)(t,i,p,s.opts.ownProperties)),f(p),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(u);function l(p){return s.opts.useDefaults&&!s.compositeRule&&r[p].default!==void 0}o(l,"hasDefault");function f(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},u)}o(f,"applyPropertySchema")}};Yu.default=cO});var ch=h(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});var oh=Le(),ts=A(),sh=C(),ah=C(),uO={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:a}=s,c=(0,oh.allSchemaProperties)(r),u=c.filter(y=>(0,sh.alwaysValidSchema)(s,r[y]));if(c.length===0||u.length===c.length&&(!s.opts.unevaluated||s.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,f=t.name("valid");s.props!==!0&&!(s.props instanceof ts.Name)&&(s.props=(0,ah.evaluatedPropsToName)(t,s.props));let{props:p}=s;d();function d(){for(let y of c)l&&m(y),s.allErrors?g(y):(t.var(f,!0),g(y),t.if(f))}o(d,"validatePatternProperties");function m(y){for(let v in l)new RegExp(y).test(v)&&(0,sh.checkStrictMode)(s,`property ${v} matches pattern ${y} (use allowMatchingProperties)`)}o(m,"checkMatchingProperties");function g(y){t.forIn("key",n,v=>{t.if((0,ts._)`${(0,oh.usePattern)(e,y)}.test(${v})`,()=>{let b=u.includes(y);b||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:v,dataPropType:ah.Type.Str},f),s.opts.unevaluated&&p!==!0?t.assign((0,ts._)`${p}[${v}]`,!0):!b&&!s.allErrors&&t.if((0,ts.not)(f),()=>t.break())})})}o(g,"validateProperties")}};Qu.default=uO});var uh=h(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});var lO=C(),pO={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,lO.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"}};Ju.default=pO});var lh=h(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});var fO=Le(),dO={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:fO.validateUnion,error:{message:"must match a schema in anyOf"}};Xu.default=dO});var ph=h(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var rs=A(),mO=C(),hO={message:"must match exactly one schema in oneOf",params:o(({params:e})=>(0,rs._)`{passingSchemas: ${e.passing}}`,"params")},gO={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:hO,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let s=r,a=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){s.forEach((f,p)=>{let d;(0,mO.alwaysValidSchema)(i,f)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},u),p>0&&t.if((0,rs._)`${u} && ${a}`).assign(a,!1).assign(c,(0,rs._)`[${c}, ${p}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,p),d&&e.mergeEvaluated(d,rs.Name)})})}o(l,"validateOneOf")}};el.default=gO});var fh=h(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var yO=C(),vO={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,yO.alwaysValidSchema)(n,s))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};tl.default=vO});var hh=h(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var ns=A(),mh=C(),bO={message:o(({params:e})=>(0,ns.str)`must match "${e.ifClause}" schema`,"message"),params:o(({params:e})=>(0,ns._)`{failingKeyword: ${e.ifClause}}`,"params")},_O={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:bO,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,mh.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=dh(n,"then"),s=dh(n,"else");if(!i&&!s)return;let a=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&s){let f=t.let("ifClause");e.setParams({ifClause:f}),t.if(c,l("then",f),l("else",f))}else i?t.if(c,l("then")):t.if((0,ns.not)(c),l("else"));e.pass(a,()=>e.error(!0));function u(){let f=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(f)}o(u,"validateIf");function l(f,p){return()=>{let d=e.subschema({keyword:f},c);t.assign(a,c),e.mergeValidEvaluated(d,a),p?t.assign(p,(0,ns._)`${f}`):e.setParams({ifClause:f})}}o(l,"validateClause")}};function dh(e,t){let r=e.schema[t];return r!==void 0&&!(0,mh.alwaysValidSchema)(e,r)}o(dh,"hasSchema");rl.default=_O});var gh=h(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});var SO=C(),$O={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,SO.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};nl.default=$O});var ol=h(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});var PO=Fu(),EO=Km(),OO=Vu(),xO=Ym(),wO=Qm(),AO=Jo(),IO=th(),TO=Ku(),kO=ih(),CO=ch(),RO=uh(),NO=lh(),jO=ph(),qO=fh(),MO=hh(),DO=gh();function LO(e=!1){let t=[RO.default,NO.default,jO.default,qO.default,MO.default,DO.default,IO.default,TO.default,AO.default,kO.default,CO.default];return e?t.push(EO.default,xO.default):t.push(PO.default,OO.default),t.push(wO.default),t}o(LO,"getApplicator");il.default=LO});var yh=h(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});var X=A(),FO={message:o(({schemaCode:e})=>(0,X.str)`must match format "${e}"`,"message"),params:o(({schemaCode:e})=>(0,X._)`{format: ${e}}`,"params")},VO={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:FO,code(e,t){let{gen:r,data:n,$data:i,schema:s,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:l,schemaEnv:f,self:p}=c;if(!u.validateFormats)return;i?d():m();function d(){let g=r.scopeValue("formats",{ref:p.formats,code:u.code.formats}),y=r.const("fDef",(0,X._)`${g}[${a}]`),v=r.let("fType"),b=r.let("format");r.if((0,X._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(v,(0,X._)`${y}.type || "string"`).assign(b,(0,X._)`${y}.validate`),()=>r.assign(v,(0,X._)`"string"`).assign(b,y)),e.fail$data((0,X.or)(_(),E()));function _(){return u.strictSchema===!1?X.nil:(0,X._)`${a} && !${b}`}o(_,"unknownFmt");function E(){let $=f.$async?(0,X._)`(${y}.async ? await ${b}(${n}) : ${b}(${n}))`:(0,X._)`${b}(${n})`,S=(0,X._)`(typeof ${b} == "function" ? ${$} : ${b}.test(${n}))`;return(0,X._)`${b} && ${b} !== true && ${v} === ${t} && !${S}`}o(E,"invalidFmt")}o(d,"validate$DataFormat");function m(){let g=p.formats[s];if(!g){_();return}if(g===!0)return;let[y,v,b]=E(g);y===t&&e.pass($());function _(){if(u.strictSchema===!1){p.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${s}" ignored in schema at path "${l}"`}}o(_,"unknownFormat");function E(S){let D=S instanceof RegExp?(0,X.regexpCode)(S):u.code.formats?(0,X._)`${u.code.formats}${(0,X.getProperty)(s)}`:void 0,R=r.scopeValue("formats",{key:s,ref:S,code:D});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,X._)`${R}.validate`]:["string",S,R]}o(E,"getFormat");function $(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!f.$async)throw new Error("async format in sync schema");return(0,X._)`await ${b}(${n})`}return typeof v=="function"?(0,X._)`${b}(${n})`:(0,X._)`${b}.test(${n})`}o($,"validCondition")}o(m,"validateFormat")}};sl.default=VO});var cl=h(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});var HO=yh(),BO=[HO.default];al.default=BO});var vh=h(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var UO=Mm(),zO=Um(),GO=ol(),ZO=cl(),KO=["title","description","default"],WO=[UO.default,zO.default,GO.default(),ZO.default,KO];ul.default=WO});var _h=h(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.DiscrError=void 0;var bh;(function(e){e.Tag="tag",e.Mapping="mapping"})(bh||(is.DiscrError=bh={}))});var fl=h(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});var bn=A(),ll=_h(),Sh=vi(),YO=yi(),QO=C(),JO={message:o(({params:{discrError:e,tagName:t}})=>e===ll.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,bn._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},XO={keyword:"discriminator",type:"object",schemaType:"object",error:JO,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:s}=e,{oneOf:a}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let c=n.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=t.let("valid",!1),l=t.const("tag",(0,bn._)`${r}${(0,bn.getProperty)(c)}`);t.if((0,bn._)`typeof ${l} == "string"`,()=>f(),()=>e.error(!1,{discrError:ll.DiscrError.Tag,tag:l,tagName:c})),e.ok(u);function f(){let m=d();t.if(!1);for(let g in m)t.elseIf((0,bn._)`${l} === ${g}`),t.assign(u,p(m[g]));t.else(),e.error(!1,{discrError:ll.DiscrError.Mapping,tag:l,tagName:c}),t.endIf()}o(f,"validateMapping");function p(m){let g=t.name("valid"),y=e.subschema({keyword:"oneOf",schemaProp:m},g);return e.mergeEvaluated(y,bn.Name),g}o(p,"applyTagSchema");function d(){var m;let g={},y=b(i),v=!0;for(let $=0;$<a.length;$++){let S=a[$];if(S!=null&&S.$ref&&!(0,QO.schemaHasRulesButRef)(S,s.self.RULES)){let R=S.$ref;if(S=Sh.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,R),S instanceof Sh.SchemaEnv&&(S=S.schema),S===void 0)throw new YO.default(s.opts.uriResolver,s.baseId,R)}let D=(m=S==null?void 0:S.properties)===null||m===void 0?void 0:m[c];if(typeof D!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);v=v&&(y||b(S)),_(D,$)}if(!v)throw new Error(`discriminator: "${c}" must be required`);return g;function b({required:$}){return Array.isArray($)&&$.includes(c)}function _($,S){if($.const)E($.const,S);else if($.enum)for(let D of $.enum)E(D,S);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function E($,S){if(typeof $!="string"||$ in g)throw new Error(`discriminator: "${c}" values must be unique strings`);g[$]=S}}o(d,"getMapping")}};pl.default=XO});var $h=h((q4,ex)=>{ex.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 Oh=h((re,Eh)=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.CodeGen=re.Name=re.nil=re.stringify=re.str=re._=re.KeywordCxt=void 0;var tx=yn(),rx=vh(),nx=fl(),Ph=$h(),ix=["/properties"],os="http://json-schema.org/draft-04/schema",dl=class dl extends tx.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),rx.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(nx.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(Ph,ix):Ph;this.addMetaSchema(t,os,!1),this.refs["http://json-schema.org/schema"]=os}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(os)?os:void 0)}};o(dl,"Ajv");var ss=dl;Eh.exports=re=ss;Object.defineProperty(re,"__esModule",{value:!0});re.default=ss;var ox=yn();Object.defineProperty(re,"KeywordCxt",{enumerable:!0,get:o(function(){return ox.KeywordCxt},"get")});var _n=yn();Object.defineProperty(re,"_",{enumerable:!0,get:o(function(){return _n._},"get")});Object.defineProperty(re,"str",{enumerable:!0,get:o(function(){return _n.str},"get")});Object.defineProperty(re,"stringify",{enumerable:!0,get:o(function(){return _n.stringify},"get")});Object.defineProperty(re,"nil",{enumerable:!0,get:o(function(){return _n.nil},"get")});Object.defineProperty(re,"Name",{enumerable:!0,get:o(function(){return _n.Name},"get")});Object.defineProperty(re,"CodeGen",{enumerable:!0,get:o(function(){return _n.CodeGen},"get")})});var xh=h(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});var sx={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};ml.default=sx});var wh=h(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});var ax=xh(),cx=Pi(),ux=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",ax.default,cx.default];hl.default=ux});var Ah=h(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var as=A(),er=as.operators,cs={maximum:{okStr:"<=",ok:er.LTE,fail:er.GT},minimum:{okStr:">=",ok:er.GTE,fail:er.LT},exclusiveMaximum:{okStr:"<",ok:er.LT,fail:er.GTE},exclusiveMinimum:{okStr:">",ok:er.GT,fail:er.LTE}},lx={message:o(({keyword:e,schemaCode:t})=>(0,as.str)`must be ${cs[e].okStr} ${t}`,"message"),params:o(({keyword:e,schemaCode:t})=>(0,as._)`{comparison: ${cs[e].okStr}, limit: ${t}}`,"params")},px={keyword:Object.keys(cs),type:"number",schemaType:"number",$data:!0,error:lx,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,as._)`${r} ${cs[t].fail} ${n} || isNaN(${r})`)}};gl.default=px});var Ih=h(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var fx=Ah(),dx=yu(),mx=_u(),hx=$u(),gx=Eu(),yx=xu(),vx=Au(),bx=Cu(),_x=ju(),Sx=Mu(),$x=[fx.default,dx.default,mx.default,hx.default,gx.default,yx.default,vx.default,bx.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},_x.default,Sx.default];yl.default=$x});var bl=h(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.dynamicAnchor=void 0;var vl=A(),Px=De(),Th=vi(),Ex=Pi(),Ox={keyword:"$dynamicAnchor",schemaType:"string",code:o(e=>kh(e,e.schema),"code")};function kh(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,vl._)`${Px.default.dynamicAnchors}${(0,vl.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:xx(e);r.if((0,vl._)`!${i}`,()=>r.assign(i,s))}o(kh,"dynamicAnchor");Ri.dynamicAnchor=kh;function xx(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:s,localRefs:a,meta:c}=t.root,{schemaId:u}=n.opts,l=new Th.SchemaEnv({schema:r,schemaId:u,root:i,baseId:s,localRefs:a,meta:c});return Th.compileSchema.call(n,l),(0,Ex.getValidate)(e,l)}o(xx,"_getValidate");Ri.default=Ox});var _l=h(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.dynamicRef=void 0;var Ch=A(),wx=De(),Rh=Pi(),Ax={keyword:"$dynamicRef",schemaType:"string",code:o(e=>Nh(e,e.schema),"code")};function Nh(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let s=t.slice(1);if(i.allErrors)a();else{let u=r.let("valid",!1);a(u),e.ok(u)}function a(u){if(i.schemaEnv.root.dynamicAnchors[s]){let l=r.let("_v",(0,Ch._)`${wx.default.dynamicAnchors}${(0,Ch.getProperty)(s)}`);r.if(l,c(l,u),c(i.validateName,u))}else c(i.validateName,u)()}o(a,"_dynamicRef");function c(u,l){return l?()=>r.block(()=>{(0,Rh.callRef)(e,u),r.let(l,!0)}):()=>(0,Rh.callRef)(e,u)}o(c,"_callRef")}o(Nh,"dynamicRef");Ni.dynamicRef=Nh;Ni.default=Ax});var jh=h(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});var Ix=bl(),Tx=C(),kx={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,Ix.dynamicAnchor)(e,""):(0,Tx.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Sl.default=kx});var qh=h($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var Cx=_l(),Rx={keyword:"$recursiveRef",schemaType:"string",code:o(e=>(0,Cx.dynamicRef)(e,e.schema),"code")};$l.default=Rx});var Mh=h(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});var Nx=bl(),jx=_l(),qx=jh(),Mx=qh(),Dx=[Nx.default,jx.default,qx.default,Mx.default];Pl.default=Dx});var Lh=h(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var Dh=Jo(),Lx={keyword:"dependentRequired",type:"object",schemaType:"object",error:Dh.error,code:o(e=>(0,Dh.validatePropertyDeps)(e),"code")};El.default=Lx});var Fh=h(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var Fx=Jo(),Vx={keyword:"dependentSchemas",type:"object",schemaType:"object",code:o(e=>(0,Fx.validateSchemaDeps)(e),"code")};Ol.default=Vx});var Vh=h(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var Hx=C(),Bx={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,Hx.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};xl.default=Bx});var Hh=h(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});var Ux=Lh(),zx=Fh(),Gx=Vh(),Zx=[Ux.default,zx.default,Gx.default];wl.default=Zx});var Uh=h(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});var tr=A(),Bh=C(),Kx=De(),Wx={message:"must NOT have unevaluated properties",params:o(({params:e})=>(0,tr._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},Yx={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:Wx,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:s}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:c}=s;c instanceof tr.Name?t.if((0,tr._)`${c} !== true`,()=>t.forIn("key",n,p=>t.if(l(c,p),()=>u(p)))):c!==!0&&t.forIn("key",n,p=>c===void 0?u(p):t.if(f(c,p),()=>u(p))),s.props=!0,e.ok((0,tr._)`${i} === ${Kx.default.errors}`);function u(p){if(r===!1){e.setParams({unevaluatedProperty:p}),e.error(),a||t.break();return}if(!(0,Bh.alwaysValidSchema)(s,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:p,dataPropType:Bh.Type.Str},d),a||t.if((0,tr.not)(d),()=>t.break())}}o(u,"unevaluatedPropCode");function l(p,d){return(0,tr._)`!${p} || !${p}[${d}]`}o(l,"unevaluatedDynamic");function f(p,d){let m=[];for(let g in p)p[g]===!0&&m.push((0,tr._)`${d} !== ${g}`);return(0,tr.and)(...m)}o(f,"unevaluatedStatic")}};Al.default=Yx});var Gh=h(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var Cr=A(),zh=C(),Qx={message:o(({params:{len:e}})=>(0,Cr.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Cr._)`{limit: ${e}}`,"params")},Jx={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:Qx,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,Cr._)`${n}.length`);if(r===!1)e.setParams({len:s}),e.fail((0,Cr._)`${a} > ${s}`);else if(typeof r=="object"&&!(0,zh.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,Cr._)`${a} <= ${s}`);t.if((0,Cr.not)(u),()=>c(u,s)),e.ok(u)}i.items=!0;function c(u,l){t.forRange("i",l,a,f=>{e.subschema({keyword:"unevaluatedItems",dataProp:f,dataPropType:zh.Type.Num},u),i.allErrors||t.if((0,Cr.not)(u),()=>t.break())})}o(c,"validateItems")}};Il.default=Jx});var Zh=h(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});var Xx=Uh(),ew=Gh(),tw=[Xx.default,ew.default];Tl.default=tw});var Kh=h(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.contentVocabulary=Sn.metadataVocabulary=void 0;Sn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Sn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Yh=h(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});var rw=wh(),nw=Ih(),iw=ol(),ow=Mh(),sw=Hh(),aw=Zh(),cw=cl(),Wh=Kh(),uw=[ow.default,rw.default,nw.default,(0,iw.default)(!0),cw.default,Wh.metadataVocabulary,Wh.contentVocabulary,sw.default,aw.default];kl.default=uw});var Qh=h((lM,lw)=>{lw.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 Jh=h((pM,pw)=>{pw.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 Xh=h((fM,fw)=>{fw.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 eg=h((dM,dw)=>{dw.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 tg=h((mM,mw)=>{mw.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 rg=h((hM,hw)=>{hw.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 ng=h((gM,gw)=>{gw.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 ig=h((yM,yw)=>{yw.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 og=h(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});var vw=Qh(),bw=Jh(),_w=Xh(),Sw=eg(),$w=tg(),Pw=rg(),Ew=ng(),Ow=ig(),xw=["/properties"];function ww(e){return[vw,bw,_w,Sw,$w,t(this,Pw),Ew,t(this,Ow)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,xw):n}o(t,"with$data")}o(ww,"addMetaSchema2020");Cl.default=ww});var sg=h((B,Nl)=>{"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 Aw=yn(),Iw=Yh(),Tw=fl(),kw=og(),Rl="https://json-schema.org/draft/2020-12/schema",jl=class jl extends Aw.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),Iw.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Tw.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(kw.default.call(this,t),this.refs["http://json-schema.org/schema"]=Rl)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Rl)?Rl:void 0)}};o(jl,"Ajv2020");var $n=jl;B.Ajv2020=$n;Nl.exports=B=$n;Nl.exports.Ajv2020=$n;Object.defineProperty(B,"__esModule",{value:!0});B.default=$n;var Cw=gi();Object.defineProperty(B,"KeywordCxt",{enumerable:!0,get:o(function(){return Cw.KeywordCxt},"get")});var Pn=A();Object.defineProperty(B,"_",{enumerable:!0,get:o(function(){return Pn._},"get")});Object.defineProperty(B,"str",{enumerable:!0,get:o(function(){return Pn.str},"get")});Object.defineProperty(B,"stringify",{enumerable:!0,get:o(function(){return Pn.stringify},"get")});Object.defineProperty(B,"nil",{enumerable:!0,get:o(function(){return Pn.nil},"get")});Object.defineProperty(B,"Name",{enumerable:!0,get:o(function(){return Pn.Name},"get")});Object.defineProperty(B,"CodeGen",{enumerable:!0,get:o(function(){return Pn.CodeGen},"get")});var Rw=Fo();Object.defineProperty(B,"ValidationError",{enumerable:!0,get:o(function(){return Rw.default},"get")});var Nw=yi();Object.defineProperty(B,"MissingRefError",{enumerable:!0,get:o(function(){return Nw.default},"get")})});var ag=h((SM,jw)=>{jw.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 cg=h(($M,qw)=>{qw.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 ug=h((PM,Mw)=>{Mw.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 lg=h((EM,Dw)=>{Dw.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 pg=h((oe,En)=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.openapi=oe.openapiV31=oe.openapiV3=oe.openapiV2=oe.openapiV1=void 0;oe.openapiV1=ag();oe.openapiV2=cg();oe.openapiV3=ug();oe.openapiV31=lg();oe.openapi={v1:oe.openapiV1,v2:oe.openapiV2,v3:oe.openapiV3,v31:oe.openapiV31};oe.default=oe.openapi;typeof En=="object"&&typeof En.exports=="object"&&(En.exports=Object.assign(En.exports.default,En.exports))});var Dl=h((OM,fg)=>{"use strict";var Lw=So(),{ono:Fw}=We(),Vw=Oh(),Hw=sg(),{openapi:ql}=pg();fg.exports=Bw;function Bw(e){let t,r;if(e.swagger)r=ql.v2,t=Ml();else if(e.openapi.startsWith("3.1")){r=ql.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=Ml(!1)}else r=ql.v3,t=Ml();if(!t.validate(r,e)){let i=t.errors,s=`Swagger schema validation failed.
13
- `+Uw(i);throw Fw.syntax(i,{details:i},s)}}o(Bw,"validateSchema");function Ml(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new Vw(t):new Hw(t)}o(Ml,"initializeAjv");function Uw(e,t){t=t||" ";let r="";for(let n of e)r+=Lw.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
14
- `);return r}o(Uw,"formatAjvError")});var mg=h((wM,dg)=>{"use strict";dg.exports=["get","put","post","delete","options","head","patch"]});var Vl=h((AM,vg)=>{"use strict";var zw=So(),{ono:me}=We(),Gw=mg(),Ll=["array","boolean","integer","number","string"],gg=["array","boolean","integer","number","string","object","null",void 0];vg.exports=Zw;function Zw(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let i of t){let s=e.paths[i],a="/paths"+i;s&&i.indexOf("/")===0&&Kw(e,s,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let s=e.definitions[i],a="/definitions/"+i;yg(s,a)}}o(Zw,"validateSpec");function Kw(e,t,r,n){for(let i of Gw){let s=t[i],a=r+"/"+i;if(s){let c=s.operationId;if(c)if(n.indexOf(c)===-1)n.push(c);else throw me.syntax(`Validation failed. Duplicate operation id '${c}'`);Ww(e,t,r,s,a);let u=Object.keys(s.responses||{});for(let l of u){let f=s.responses[l],p=a+"/responses/"+l;Xw(l,f||{},p)}}}}o(Kw,"validatePath");function Ww(e,t,r,n,i){let s=t.parameters||[],a=n.parameters||[];try{hg(s)}catch(u){throw me.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{hg(a)}catch(u){throw me.syntax(u,`Validation failed. ${i} has duplicate parameters`)}let c=s.reduce((u,l)=>(u.some(p=>p.in===l.in&&p.name===l.name)||u.push(l),u),a.slice());Yw(c,i),Qw(c,r,i),Jw(c,e,n,i)}o(Ww,"validateParameters");function Yw(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw me.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw me.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}o(Yw,"validateBodyParameters");function Qw(e,t,r){let n=t.match(zw.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let s=i+1;s<n.length;s++)if(n[i]===n[s])throw me.syntax(`Validation failed. ${r} has multiple path placeholders named ${n[i]}`);e=e.filter(i=>i.in==="path");for(let i of e){if(i.required!==!0)throw me.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${r}`);let s=n.indexOf("{"+i.name+"}");if(s===-1)throw me.syntax(`Validation failed. ${r} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(s,1)}if(n.length>0)throw me.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}o(Qw,"validatePathParameters");function Jw(e,t,r,n){for(let i of e){let s=n+"/parameters/"+i.name,a,c;switch(i.in){case"body":a=i.schema,c=gg;break;case"formData":a=i,c=Ll.concat("file");break;default:a=i,c=Ll}if(Fl(a,s,c),yg(a,s),a.type==="file"){let u=/multipart\/(.*\+)?form-data/,l=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some(d=>u.test(d)||l.test(d)))throw me.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}o(Jw,"validateParameterTypes");function hg(e){for(let t=0;t<e.length-1;t++){let r=e[t];for(let n=t+1;n<e.length;n++){let i=e[n];if(r.name===i.name&&r.in===i.in)throw me.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}o(hg,"checkForDuplicates");function Xw(e,t,r){if(e!=="default"&&(e<100||e>599))throw me.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let i of n){let s=t.headers[i],a=r+"/headers/"+i;Fl(s,a,Ll)}if(t.schema){let i=gg.concat("file");if(i.indexOf(t.schema.type)===-1)throw me.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);Fl(t.schema,r+"/schema",i)}}o(Xw,"validateResponse");function Fl(e,t,r){if(r.indexOf(e.type)===-1)throw me.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw me.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}o(Fl,"validateSchema");function yg(e,t){function r(n,i){if(n.properties)for(let s in n.properties)n.properties.hasOwnProperty(s)&&(i[s]=n.properties[s]);if(n.allOf)for(let s of n.allOf)r(s,i)}if(o(r,"collectProperties"),e.required&&Array.isArray(e.required)){let n={};r(e,n);for(let i of e.required)if(!n[i])throw me.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}o(yg,"validateRequiredPropertiesExist")});var tt=h(et=>{"use strict";var{Ono:bg}=We(),{stripHash:_g,toFileSystemPath:eA}=Ce(),On,rr=et.JSONParserError=(On=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,bg.extend(this)}},o(On,"JSONParserError"),On);nr(rr);var Rr,Sg=et.JSONParserErrorGroup=(Rr=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${eA(t.$refs._root$Ref.path)}'`,bg.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 Rr.getParserErrors(this.files)}},o(Rr,"JSONParserErrorGroup"),Rr);nr(Sg);var xn,tA=et.ParserError=(xn=class extends rr{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},o(xn,"ParserError"),xn);nr(tA);var wn,rA=et.UnmatchedParserError=(wn=class extends rr{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},o(wn,"UnmatchedParserError"),wn);nr(rA);var An,nA=et.ResolverError=(An=class extends rr{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},o(An,"ResolverError"),An);nr(nA);var In,iA=et.UnmatchedResolverError=(In=class extends rr{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},o(In,"UnmatchedResolverError"),In);nr(iA);var Tn,oA=et.MissingPointerError=(Tn=class extends rr{constructor(t,r){super(`Token "${t}" does not exist.`,_g(r)),this.code="EMISSINGPOINTER"}},o(Tn,"MissingPointerError"),Tn);nr(oA);var kn,sA=et.InvalidPointerError=(kn=class extends rr{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,_g(r)),this.code="EINVALIDPOINTER"}},o(kn,"InvalidPointerError"),kn);nr(sA);function nr(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}o(nr,"setErrorName");et.isHandledError=function(e){return e instanceof rr||e instanceof Sg};et.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var Pg=h((CM,$g)=>{"use strict";var{ParserError:aA}=tt();$g.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 aA(r.message,e.url)}}else return t}}});var jr=h((RM,Nr)=>{"use strict";function Eg(e){return typeof e>"u"||e===null}o(Eg,"isNothing");function cA(e){return typeof e=="object"&&e!==null}o(cA,"isObject");function uA(e){return Array.isArray(e)?e:Eg(e)?[]:[e]}o(uA,"toArray");function lA(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}o(lA,"extend");function pA(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}o(pA,"repeat");function fA(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}o(fA,"isNegativeZero");Nr.exports.isNothing=Eg;Nr.exports.isObject=cA;Nr.exports.toArray=uA;Nr.exports.repeat=pA;Nr.exports.isNegativeZero=fA;Nr.exports.extend=lA});var Cn=h((jM,Og)=>{"use strict";function ji(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}o(ji,"YAMLException");ji.prototype=Object.create(Error.prototype);ji.prototype.constructor=ji;ji.prototype.toString=o(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");Og.exports=ji});var Ag=h((MM,wg)=>{"use strict";var xg=jr();function Hl(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}o(Hl,"Mark");Hl.prototype.getSnippet=o(function(t,r){var n,i,s,a,c;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
12
+ deps: ${r}}`,"params")};var iE={keyword:"dependencies",type:"object",schemaType:"object",error:gt.error,code(e){let[t,r]=oE(e);eh(e,t),th(e,r)}};function oE({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(oE,"splitDependencies");function eh(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let a in t){let c=t[a];if(c.length===0)continue;let u=(0,Ni.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:c.length,deps:c.join(", ")}),i.allErrors?r.if(u,()=>{for(let l of c)(0,Ni.checkReportMissingProp)(e,l)}):(r.if((0,Zu._)`${u} && (${(0,Ni.checkMissingProp)(e,c,s)})`),(0,Ni.reportMissingProp)(e,s),r.else())}}o(eh,"validatePropertyDeps");gt.validatePropertyDeps=eh;function th(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let c in t)(0,nE.alwaysValidSchema)(s,t[c])||(r.if((0,Ni.propertyInData)(r,n,c,s.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:c},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}o(th,"validateSchemaDeps");gt.validateSchemaDeps=th;gt.default=iE});var nh=h(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});var rh=A(),sE=C(),aE={message:"property name must be valid",params:o(({params:e})=>(0,rh._)`{propertyName: ${e.propertyName}}`,"params")},cE={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:aE,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,sE.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,rh.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};Ku.default=cE});var Yu=h(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});var ns=Fe(),et=A(),uE=Le(),is=C(),lE={message:"must NOT have additional properties",params:o(({params:e})=>(0,et._)`{additionalProperty: ${e.additionalProperty}}`,"params")},pE={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:lE,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:s,it:a}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:c,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,is.alwaysValidSchema)(a,r))return;let l=(0,ns.allSchemaProperties)(n.properties),f=(0,ns.allSchemaProperties)(n.patternProperties);p(),e.ok((0,et._)`${s} === ${uE.default.errors}`);function p(){t.forIn("key",i,v=>{!l.length&&!f.length?g(v):t.if(d(v),()=>g(v))})}o(p,"checkAdditionalProperties");function d(v){let b;if(l.length>8){let S=(0,is.schemaRefOrVal)(a,n.properties,"properties");b=(0,ns.isOwnProperty)(t,S,v)}else l.length?b=(0,et.or)(...l.map(S=>(0,et._)`${v} === ${S}`)):b=et.nil;return f.length&&(b=(0,et.or)(b,...f.map(S=>(0,et._)`${(0,ns.usePattern)(e,S)}.test(${v})`))),(0,et.not)(b)}o(d,"isAdditional");function m(v){t.code((0,et._)`delete ${i}[${v}]`)}o(m,"deleteAdditional");function g(v){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){m(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,is.alwaysValidSchema)(a,r)){let b=t.name("valid");u.removeAdditional==="failing"?(y(v,b,!1),t.if((0,et.not)(b),()=>{e.reset(),m(v)})):(y(v,b),c||t.if((0,et.not)(b),()=>t.break()))}}o(g,"additionalPropertyCode");function y(v,b,S){let O={keyword:"additionalProperties",dataProp:v,dataPropType:is.Type.Str};S===!1&&Object.assign(O,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(O,b)}o(y,"applyAdditionalSchema")}};Wu.default=pE});var sh=h(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});var fE=vi(),ih=Fe(),Ju=C(),oh=Yu(),dE={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&&oh.default.code(new fE.KeywordCxt(s,oh.default,"additionalProperties"));let a=(0,ih.allSchemaProperties)(r);for(let p of a)s.definedProperties.add(p);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=Ju.mergeEvaluated.props(t,(0,Ju.toHash)(a),s.props));let c=a.filter(p=>!(0,Ju.alwaysValidSchema)(s,r[p]));if(c.length===0)return;let u=t.name("valid");for(let p of c)l(p)?f(p):(t.if((0,ih.propertyInData)(t,i,p,s.opts.ownProperties)),f(p),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(u);function l(p){return s.opts.useDefaults&&!s.compositeRule&&r[p].default!==void 0}o(l,"hasDefault");function f(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},u)}o(f,"applyPropertySchema")}};Qu.default=dE});var lh=h(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});var ah=Fe(),os=A(),ch=C(),uh=C(),mE={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:a}=s,c=(0,ah.allSchemaProperties)(r),u=c.filter(y=>(0,ch.alwaysValidSchema)(s,r[y]));if(c.length===0||u.length===c.length&&(!s.opts.unevaluated||s.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,f=t.name("valid");s.props!==!0&&!(s.props instanceof os.Name)&&(s.props=(0,uh.evaluatedPropsToName)(t,s.props));let{props:p}=s;d();function d(){for(let y of c)l&&m(y),s.allErrors?g(y):(t.var(f,!0),g(y),t.if(f))}o(d,"validatePatternProperties");function m(y){for(let v in l)new RegExp(y).test(v)&&(0,ch.checkStrictMode)(s,`property ${v} matches pattern ${y} (use allowMatchingProperties)`)}o(m,"checkMatchingProperties");function g(y){t.forIn("key",n,v=>{t.if((0,os._)`${(0,ah.usePattern)(e,y)}.test(${v})`,()=>{let b=u.includes(y);b||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:v,dataPropType:uh.Type.Str},f),s.opts.unevaluated&&p!==!0?t.assign((0,os._)`${p}[${v}]`,!0):!b&&!s.allErrors&&t.if((0,os.not)(f),()=>t.break())})})}o(g,"validateProperties")}};Xu.default=mE});var ph=h(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var hE=C(),gE={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,hE.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=gE});var fh=h(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var yE=Fe(),vE={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:yE.validateUnion,error:{message:"must match a schema in anyOf"}};tl.default=vE});var dh=h(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var ss=A(),bE=C(),SE={message:"must match exactly one schema in oneOf",params:o(({params:e})=>(0,ss._)`{passingSchemas: ${e.passing}}`,"params")},_E={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:SE,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let s=r,a=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){s.forEach((f,p)=>{let d;(0,bE.alwaysValidSchema)(i,f)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},u),p>0&&t.if((0,ss._)`${u} && ${a}`).assign(a,!1).assign(c,(0,ss._)`[${c}, ${p}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,p),d&&e.mergeEvaluated(d,ss.Name)})})}o(l,"validateOneOf")}};rl.default=_E});var mh=h(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});var PE=C(),$E={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,PE.alwaysValidSchema)(n,s))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};nl.default=$E});var yh=h(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});var as=A(),gh=C(),OE={message:o(({params:e})=>(0,as.str)`must match "${e.ifClause}" schema`,"message"),params:o(({params:e})=>(0,as._)`{failingKeyword: ${e.ifClause}}`,"params")},EE={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:OE,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,gh.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=hh(n,"then"),s=hh(n,"else");if(!i&&!s)return;let a=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&s){let f=t.let("ifClause");e.setParams({ifClause:f}),t.if(c,l("then",f),l("else",f))}else i?t.if(c,l("then")):t.if((0,as.not)(c),l("else"));e.pass(a,()=>e.error(!0));function u(){let f=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(f)}o(u,"validateIf");function l(f,p){return()=>{let d=e.subschema({keyword:f},c);t.assign(a,c),e.mergeValidEvaluated(d,a),p?t.assign(p,(0,as._)`${f}`):e.setParams({ifClause:f})}}o(l,"validateClause")}};function hh(e,t){let r=e.schema[t];return r!==void 0&&!(0,gh.alwaysValidSchema)(e,r)}o(hh,"hasSchema");il.default=EE});var vh=h(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var xE=C(),wE={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,xE.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};ol.default=wE});var al=h(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});var AE=Hu(),IE=Ym(),TE=Bu(),kE=Qm(),CE=Xm(),RE=rs(),NE=nh(),jE=Yu(),qE=sh(),ME=lh(),DE=ph(),LE=fh(),FE=dh(),VE=mh(),HE=yh(),BE=vh();function UE(e=!1){let t=[DE.default,LE.default,FE.default,VE.default,HE.default,BE.default,NE.default,jE.default,RE.default,qE.default,ME.default];return e?t.push(IE.default,kE.default):t.push(AE.default,TE.default),t.push(CE.default),t}o(UE,"getApplicator");sl.default=UE});var bh=h(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});var X=A(),zE={message:o(({schemaCode:e})=>(0,X.str)`must match format "${e}"`,"message"),params:o(({schemaCode:e})=>(0,X._)`{format: ${e}}`,"params")},GE={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:zE,code(e,t){let{gen:r,data:n,$data:i,schema:s,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:l,schemaEnv:f,self:p}=c;if(!u.validateFormats)return;i?d():m();function d(){let g=r.scopeValue("formats",{ref:p.formats,code:u.code.formats}),y=r.const("fDef",(0,X._)`${g}[${a}]`),v=r.let("fType"),b=r.let("format");r.if((0,X._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(v,(0,X._)`${y}.type || "string"`).assign(b,(0,X._)`${y}.validate`),()=>r.assign(v,(0,X._)`"string"`).assign(b,y)),e.fail$data((0,X.or)(S(),O()));function S(){return u.strictSchema===!1?X.nil:(0,X._)`${a} && !${b}`}o(S,"unknownFmt");function O(){let P=f.$async?(0,X._)`(${y}.async ? await ${b}(${n}) : ${b}(${n}))`:(0,X._)`${b}(${n})`,_=(0,X._)`(typeof ${b} == "function" ? ${P} : ${b}.test(${n}))`;return(0,X._)`${b} && ${b} !== true && ${v} === ${t} && !${_}`}o(O,"invalidFmt")}o(d,"validate$DataFormat");function m(){let g=p.formats[s];if(!g){S();return}if(g===!0)return;let[y,v,b]=O(g);y===t&&e.pass(P());function S(){if(u.strictSchema===!1){p.logger.warn(_());return}throw new Error(_());function _(){return`unknown format "${s}" ignored in schema at path "${l}"`}}o(S,"unknownFormat");function O(_){let V=_ instanceof RegExp?(0,X.regexpCode)(_):u.code.formats?(0,X._)`${u.code.formats}${(0,X.getProperty)(s)}`:void 0,q=r.scopeValue("formats",{key:s,ref:_,code:V});return typeof _=="object"&&!(_ instanceof RegExp)?[_.type||"string",_.validate,(0,X._)`${q}.validate`]:["string",_,q]}o(O,"getFormat");function P(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!f.$async)throw new Error("async format in sync schema");return(0,X._)`await ${b}(${n})`}return typeof v=="function"?(0,X._)`${b}(${n})`:(0,X._)`${b}.test(${n})`}o(P,"validCondition")}o(m,"validateFormat")}};cl.default=GE});var ll=h(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var ZE=bh(),KE=[ZE.default];ul.default=KE});var Sh=h(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});var WE=Lm(),YE=Gm(),JE=al(),QE=ll(),XE=["title","description","default"],ex=[WE.default,YE.default,JE.default(),QE.default,XE];pl.default=ex});var Ph=h(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.DiscrError=void 0;var _h;(function(e){e.Tag="tag",e.Mapping="mapping"})(_h||(cs.DiscrError=_h={}))});var ml=h(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var _n=A(),fl=Ph(),$h=Si(),tx=bi(),rx=C(),nx={message:o(({params:{discrError:e,tagName:t}})=>e===fl.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:o(({params:{discrError:e,tag:t,tagName:r}})=>(0,_n._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},ix={keyword:"discriminator",type:"object",schemaType:"object",error:nx,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:s}=e,{oneOf:a}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let c=n.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=t.let("valid",!1),l=t.const("tag",(0,_n._)`${r}${(0,_n.getProperty)(c)}`);t.if((0,_n._)`typeof ${l} == "string"`,()=>f(),()=>e.error(!1,{discrError:fl.DiscrError.Tag,tag:l,tagName:c})),e.ok(u);function f(){let m=d();t.if(!1);for(let g in m)t.elseIf((0,_n._)`${l} === ${g}`),t.assign(u,p(m[g]));t.else(),e.error(!1,{discrError:fl.DiscrError.Mapping,tag:l,tagName:c}),t.endIf()}o(f,"validateMapping");function p(m){let g=t.name("valid"),y=e.subschema({keyword:"oneOf",schemaProp:m},g);return e.mergeEvaluated(y,_n.Name),g}o(p,"applyTagSchema");function d(){var m;let g={},y=b(i),v=!0;for(let P=0;P<a.length;P++){let _=a[P];if(_!=null&&_.$ref&&!(0,rx.schemaHasRulesButRef)(_,s.self.RULES)){let q=_.$ref;if(_=$h.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,q),_ instanceof $h.SchemaEnv&&(_=_.schema),_===void 0)throw new tx.default(s.opts.uriResolver,s.baseId,q)}let V=(m=_==null?void 0:_.properties)===null||m===void 0?void 0:m[c];if(typeof V!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);v=v&&(y||b(_)),S(V,P)}if(!v)throw new Error(`discriminator: "${c}" must be required`);return g;function b({required:P}){return Array.isArray(P)&&P.includes(c)}function S(P,_){if(P.const)O(P.const,_);else if(P.enum)for(let V of P.enum)O(V,_);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function O(P,_){if(typeof P!="string"||P in g)throw new Error(`discriminator: "${c}" values must be unique strings`);g[P]=_}}o(d,"getMapping")}};dl.default=ix});var Oh=h((G4,ox)=>{ox.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 wh=h((re,xh)=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.CodeGen=re.Name=re.nil=re.stringify=re.str=re._=re.KeywordCxt=void 0;var sx=bn(),ax=Sh(),cx=ml(),Eh=Oh(),ux=["/properties"],us="http://json-schema.org/draft-04/schema",hl=class hl extends sx.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),ax.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(cx.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(Eh,ux):Eh;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(hl,"Ajv");var ls=hl;xh.exports=re=ls;Object.defineProperty(re,"__esModule",{value:!0});re.default=ls;var lx=bn();Object.defineProperty(re,"KeywordCxt",{enumerable:!0,get:o(function(){return lx.KeywordCxt},"get")});var Pn=bn();Object.defineProperty(re,"_",{enumerable:!0,get:o(function(){return Pn._},"get")});Object.defineProperty(re,"str",{enumerable:!0,get:o(function(){return Pn.str},"get")});Object.defineProperty(re,"stringify",{enumerable:!0,get:o(function(){return Pn.stringify},"get")});Object.defineProperty(re,"nil",{enumerable:!0,get:o(function(){return Pn.nil},"get")});Object.defineProperty(re,"Name",{enumerable:!0,get:o(function(){return Pn.Name},"get")});Object.defineProperty(re,"CodeGen",{enumerable:!0,get:o(function(){return Pn.CodeGen},"get")})});var Ah=h(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var px={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};gl.default=px});var Ih=h(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var fx=Ah(),dx=Ei(),mx=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",fx.default,dx.default];yl.default=mx});var Th=h(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var ps=A(),er=ps.operators,fs={maximum:{okStr:"<=",ok:er.LTE,fail:er.GT},minimum:{okStr:">=",ok:er.GTE,fail:er.LT},exclusiveMaximum:{okStr:"<",ok:er.LT,fail:er.GTE},exclusiveMinimum:{okStr:">",ok:er.GT,fail:er.LTE}},hx={message:o(({keyword:e,schemaCode:t})=>(0,ps.str)`must be ${fs[e].okStr} ${t}`,"message"),params:o(({keyword:e,schemaCode:t})=>(0,ps._)`{comparison: ${fs[e].okStr}, limit: ${t}}`,"params")},gx={keyword:Object.keys(fs),type:"number",schemaType:"number",$data:!0,error:hx,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,ps._)`${r} ${fs[t].fail} ${n} || isNaN(${r})`)}};vl.default=gx});var kh=h(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});var yx=Th(),vx=bu(),bx=Pu(),Sx=Ou(),_x=xu(),Px=Au(),$x=Tu(),Ox=Nu(),Ex=Mu(),xx=Lu(),wx=[yx.default,vx.default,bx.default,Sx.default,_x.default,Px.default,$x.default,Ox.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Ex.default,xx.default];bl.default=wx});var _l=h(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.dynamicAnchor=void 0;var Sl=A(),Ax=Le(),Ch=Si(),Ix=Ei(),Tx={keyword:"$dynamicAnchor",schemaType:"string",code:o(e=>Rh(e,e.schema),"code")};function Rh(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,Sl._)`${Ax.default.dynamicAnchors}${(0,Sl.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:kx(e);r.if((0,Sl._)`!${i}`,()=>r.assign(i,s))}o(Rh,"dynamicAnchor");ji.dynamicAnchor=Rh;function kx(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:s,localRefs:a,meta:c}=t.root,{schemaId:u}=n.opts,l=new Ch.SchemaEnv({schema:r,schemaId:u,root:i,baseId:s,localRefs:a,meta:c});return Ch.compileSchema.call(n,l),(0,Ix.getValidate)(e,l)}o(kx,"_getValidate");ji.default=Tx});var Pl=h(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.dynamicRef=void 0;var Nh=A(),Cx=Le(),jh=Ei(),Rx={keyword:"$dynamicRef",schemaType:"string",code:o(e=>qh(e,e.schema),"code")};function qh(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let s=t.slice(1);if(i.allErrors)a();else{let u=r.let("valid",!1);a(u),e.ok(u)}function a(u){if(i.schemaEnv.root.dynamicAnchors[s]){let l=r.let("_v",(0,Nh._)`${Cx.default.dynamicAnchors}${(0,Nh.getProperty)(s)}`);r.if(l,c(l,u),c(i.validateName,u))}else c(i.validateName,u)()}o(a,"_dynamicRef");function c(u,l){return l?()=>r.block(()=>{(0,jh.callRef)(e,u),r.let(l,!0)}):()=>(0,jh.callRef)(e,u)}o(c,"_callRef")}o(qh,"dynamicRef");qi.dynamicRef=qh;qi.default=Rx});var Mh=h($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var Nx=_l(),jx=C(),qx={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,Nx.dynamicAnchor)(e,""):(0,jx.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};$l.default=qx});var Dh=h(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var Mx=Pl(),Dx={keyword:"$recursiveRef",schemaType:"string",code:o(e=>(0,Mx.dynamicRef)(e,e.schema),"code")};Ol.default=Dx});var Lh=h(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var Lx=_l(),Fx=Pl(),Vx=Mh(),Hx=Dh(),Bx=[Lx.default,Fx.default,Vx.default,Hx.default];El.default=Bx});var Vh=h(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var Fh=rs(),Ux={keyword:"dependentRequired",type:"object",schemaType:"object",error:Fh.error,code:o(e=>(0,Fh.validatePropertyDeps)(e),"code")};xl.default=Ux});var Hh=h(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});var zx=rs(),Gx={keyword:"dependentSchemas",type:"object",schemaType:"object",code:o(e=>(0,zx.validateSchemaDeps)(e),"code")};wl.default=Gx});var Bh=h(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});var Zx=C(),Kx={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,Zx.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};Al.default=Kx});var Uh=h(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var Wx=Vh(),Yx=Hh(),Jx=Bh(),Qx=[Wx.default,Yx.default,Jx.default];Il.default=Qx});var Gh=h(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});var tr=A(),zh=C(),Xx=Le(),ew={message:"must NOT have unevaluated properties",params:o(({params:e})=>(0,tr._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},tw={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:ew,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:s}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:c}=s;c instanceof tr.Name?t.if((0,tr._)`${c} !== true`,()=>t.forIn("key",n,p=>t.if(l(c,p),()=>u(p)))):c!==!0&&t.forIn("key",n,p=>c===void 0?u(p):t.if(f(c,p),()=>u(p))),s.props=!0,e.ok((0,tr._)`${i} === ${Xx.default.errors}`);function u(p){if(r===!1){e.setParams({unevaluatedProperty:p}),e.error(),a||t.break();return}if(!(0,zh.alwaysValidSchema)(s,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:p,dataPropType:zh.Type.Str},d),a||t.if((0,tr.not)(d),()=>t.break())}}o(u,"unevaluatedPropCode");function l(p,d){return(0,tr._)`!${p} || !${p}[${d}]`}o(l,"unevaluatedDynamic");function f(p,d){let m=[];for(let g in p)p[g]===!0&&m.push((0,tr._)`${d} !== ${g}`);return(0,tr.and)(...m)}o(f,"unevaluatedStatic")}};Tl.default=tw});var Kh=h(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});var Rr=A(),Zh=C(),rw={message:o(({params:{len:e}})=>(0,Rr.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Rr._)`{limit: ${e}}`,"params")},nw={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:rw,code(e){let{gen:t,schema:r,data:n,it:i}=e,s=i.items||0;if(s===!0)return;let a=t.const("len",(0,Rr._)`${n}.length`);if(r===!1)e.setParams({len:s}),e.fail((0,Rr._)`${a} > ${s}`);else if(typeof r=="object"&&!(0,Zh.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,Rr._)`${a} <= ${s}`);t.if((0,Rr.not)(u),()=>c(u,s)),e.ok(u)}i.items=!0;function c(u,l){t.forRange("i",l,a,f=>{e.subschema({keyword:"unevaluatedItems",dataProp:f,dataPropType:Zh.Type.Num},u),i.allErrors||t.if((0,Rr.not)(u),()=>t.break())})}o(c,"validateItems")}};kl.default=nw});var Wh=h(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});var iw=Gh(),ow=Kh(),sw=[iw.default,ow.default];Cl.default=sw});var Yh=h($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.contentVocabulary=$n.metadataVocabulary=void 0;$n.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];$n.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Qh=h(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});var aw=Ih(),cw=kh(),uw=al(),lw=Lh(),pw=Uh(),fw=Wh(),dw=ll(),Jh=Yh(),mw=[lw.default,aw.default,cw.default,(0,uw.default)(!0),dw.default,Jh.metadataVocabulary,Jh.contentVocabulary,pw.default,fw.default];Rl.default=mw});var Xh=h((SM,hw)=>{hw.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 eg=h((_M,gw)=>{gw.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 tg=h((PM,yw)=>{yw.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 rg=h(($M,vw)=>{vw.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 ng=h((OM,bw)=>{bw.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 ig=h((EM,Sw)=>{Sw.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 og=h((xM,_w)=>{_w.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 sg=h((wM,Pw)=>{Pw.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 ag=h(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});var $w=Xh(),Ow=eg(),Ew=tg(),xw=rg(),ww=ng(),Aw=ig(),Iw=og(),Tw=sg(),kw=["/properties"];function Cw(e){return[$w,Ow,Ew,xw,ww,t(this,Aw),Iw,t(this,Tw)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,kw):n}o(t,"with$data")}o(Cw,"addMetaSchema2020");Nl.default=Cw});var cg=h((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 Rw=bn(),Nw=Qh(),jw=ml(),qw=ag(),jl="https://json-schema.org/draft/2020-12/schema",Ml=class Ml extends Rw.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),Nw.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(jw.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(qw.default.call(this,t),this.refs["http://json-schema.org/schema"]=jl)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(jl)?jl:void 0)}};o(Ml,"Ajv2020");var On=Ml;B.Ajv2020=On;ql.exports=B=On;ql.exports.Ajv2020=On;Object.defineProperty(B,"__esModule",{value:!0});B.default=On;var Mw=vi();Object.defineProperty(B,"KeywordCxt",{enumerable:!0,get:o(function(){return Mw.KeywordCxt},"get")});var En=A();Object.defineProperty(B,"_",{enumerable:!0,get:o(function(){return En._},"get")});Object.defineProperty(B,"str",{enumerable:!0,get:o(function(){return En.str},"get")});Object.defineProperty(B,"stringify",{enumerable:!0,get:o(function(){return En.stringify},"get")});Object.defineProperty(B,"nil",{enumerable:!0,get:o(function(){return En.nil},"get")});Object.defineProperty(B,"Name",{enumerable:!0,get:o(function(){return En.Name},"get")});Object.defineProperty(B,"CodeGen",{enumerable:!0,get:o(function(){return En.CodeGen},"get")});var Dw=Uo();Object.defineProperty(B,"ValidationError",{enumerable:!0,get:o(function(){return Dw.default},"get")});var Lw=bi();Object.defineProperty(B,"MissingRefError",{enumerable:!0,get:o(function(){return Lw.default},"get")})});var ug=h((kM,Fw)=>{Fw.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 lg=h((CM,Vw)=>{Vw.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=h((RM,Hw)=>{Hw.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 fg=h((NM,Bw)=>{Bw.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 dg=h((oe,xn)=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.openapi=oe.openapiV31=oe.openapiV3=oe.openapiV2=oe.openapiV1=void 0;oe.openapiV1=ug();oe.openapiV2=lg();oe.openapiV3=pg();oe.openapiV31=fg();oe.openapi={v1:oe.openapiV1,v2:oe.openapiV2,v3:oe.openapiV3,v31:oe.openapiV31};oe.default=oe.openapi;typeof xn=="object"&&typeof xn.exports=="object"&&(xn.exports=Object.assign(xn.exports.default,xn.exports))});var Fl=h((jM,mg)=>{"use strict";var Uw=Eo(),{ono:zw}=Ye(),Gw=wh(),Zw=cg(),{openapi:Dl}=dg();mg.exports=Kw;function Kw(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
+ `+Ww(i);throw zw.syntax(i,{details:i},s)}}o(Kw,"validateSchema");function Ll(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new Gw(t):new Zw(t)}o(Ll,"initializeAjv");function Ww(e,t){t=t||" ";let r="";for(let n of e)r+=Uw.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
14
+ `);return r}o(Ww,"formatAjvError")});var gg=h((MM,hg)=>{"use strict";hg.exports=["get","put","post","delete","options","head","patch"]});var Bl=h((DM,Sg)=>{"use strict";var Yw=Eo(),{ono:me}=Ye(),Jw=gg(),Vl=["array","boolean","integer","number","string"],vg=["array","boolean","integer","number","string","object","null",void 0];Sg.exports=Qw;function Qw(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let i of t){let s=e.paths[i],a="/paths"+i;s&&i.indexOf("/")===0&&Xw(e,s,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let s=e.definitions[i],a="/definitions/"+i;bg(s,a)}}o(Qw,"validateSpec");function Xw(e,t,r,n){for(let i of Jw){let s=t[i],a=r+"/"+i;if(s){let c=s.operationId;if(c)if(n.indexOf(c)===-1)n.push(c);else throw me.syntax(`Validation failed. Duplicate operation id '${c}'`);eA(e,t,r,s,a);let u=Object.keys(s.responses||{});for(let l of u){let f=s.responses[l],p=a+"/responses/"+l;iA(l,f||{},p)}}}}o(Xw,"validatePath");function eA(e,t,r,n,i){let s=t.parameters||[],a=n.parameters||[];try{yg(s)}catch(u){throw me.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{yg(a)}catch(u){throw me.syntax(u,`Validation failed. ${i} has duplicate parameters`)}let c=s.reduce((u,l)=>(u.some(p=>p.in===l.in&&p.name===l.name)||u.push(l),u),a.slice());tA(c,i),rA(c,r,i),nA(c,e,n,i)}o(eA,"validateParameters");function tA(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw me.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw me.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}o(tA,"validateBodyParameters");function rA(e,t,r){let n=t.match(Yw.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let s=i+1;s<n.length;s++)if(n[i]===n[s])throw me.syntax(`Validation failed. ${r} has multiple path placeholders named ${n[i]}`);e=e.filter(i=>i.in==="path");for(let i of e){if(i.required!==!0)throw me.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${r}`);let s=n.indexOf("{"+i.name+"}");if(s===-1)throw me.syntax(`Validation failed. ${r} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(s,1)}if(n.length>0)throw me.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}o(rA,"validatePathParameters");function nA(e,t,r,n){for(let i of e){let s=n+"/parameters/"+i.name,a,c;switch(i.in){case"body":a=i.schema,c=vg;break;case"formData":a=i,c=Vl.concat("file");break;default:a=i,c=Vl}if(Hl(a,s,c),bg(a,s),a.type==="file"){let u=/multipart\/(.*\+)?form-data/,l=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some(d=>u.test(d)||l.test(d)))throw me.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}o(nA,"validateParameterTypes");function yg(e){for(let t=0;t<e.length-1;t++){let r=e[t];for(let n=t+1;n<e.length;n++){let i=e[n];if(r.name===i.name&&r.in===i.in)throw me.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}o(yg,"checkForDuplicates");function iA(e,t,r){if(e!=="default"&&(e<100||e>599))throw me.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let i of n){let s=t.headers[i],a=r+"/headers/"+i;Hl(s,a,Vl)}if(t.schema){let i=vg.concat("file");if(i.indexOf(t.schema.type)===-1)throw me.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);Hl(t.schema,r+"/schema",i)}}o(iA,"validateResponse");function Hl(e,t,r){if(r.indexOf(e.type)===-1)throw me.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw me.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}o(Hl,"validateSchema");function bg(e,t){function r(n,i){if(n.properties)for(let s in n.properties)n.properties.hasOwnProperty(s)&&(i[s]=n.properties[s]);if(n.allOf)for(let s of n.allOf)r(s,i)}if(o(r,"collectProperties"),e.required&&Array.isArray(e.required)){let n={};r(e,n);for(let i of e.required)if(!n[i])throw me.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}o(bg,"validateRequiredPropertiesExist")});var rt=h(tt=>{"use strict";var{Ono:_g}=Ye(),{stripHash:Pg,toFileSystemPath:oA}=Re(),wn,rr=tt.JSONParserError=(wn=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,_g.extend(this)}},o(wn,"JSONParserError"),wn);nr(rr);var Nr,$g=tt.JSONParserErrorGroup=(Nr=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${oA(t.$refs._root$Ref.path)}'`,_g.extend(this)}static getParserErrors(t){let r=[];for(let n of Object.values(t.$refs._$refs))n.errors&&r.push(...n.errors);return r}get errors(){return Nr.getParserErrors(this.files)}},o(Nr,"JSONParserErrorGroup"),Nr);nr($g);var An,sA=tt.ParserError=(An=class extends rr{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},o(An,"ParserError"),An);nr(sA);var In,aA=tt.UnmatchedParserError=(In=class extends rr{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},o(In,"UnmatchedParserError"),In);nr(aA);var Tn,cA=tt.ResolverError=(Tn=class extends rr{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},o(Tn,"ResolverError"),Tn);nr(cA);var kn,uA=tt.UnmatchedResolverError=(kn=class extends rr{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},o(kn,"UnmatchedResolverError"),kn);nr(uA);var Cn,lA=tt.MissingPointerError=(Cn=class extends rr{constructor(t,r){super(`Token "${t}" does not exist.`,Pg(r)),this.code="EMISSINGPOINTER"}},o(Cn,"MissingPointerError"),Cn);nr(lA);var Rn,pA=tt.InvalidPointerError=(Rn=class extends rr{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,Pg(r)),this.code="EINVALIDPOINTER"}},o(Rn,"InvalidPointerError"),Rn);nr(pA);function nr(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}o(nr,"setErrorName");tt.isHandledError=function(e){return e instanceof rr||e instanceof $g};tt.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var Eg=h((HM,Og)=>{"use strict";var{ParserError:fA}=rt();Og.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 fA(r.message,e.url)}}else return t}}});var qr=h((BM,jr)=>{"use strict";function xg(e){return typeof e>"u"||e===null}o(xg,"isNothing");function dA(e){return typeof e=="object"&&e!==null}o(dA,"isObject");function mA(e){return Array.isArray(e)?e:xg(e)?[]:[e]}o(mA,"toArray");function hA(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}o(hA,"extend");function gA(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}o(gA,"repeat");function yA(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}o(yA,"isNegativeZero");jr.exports.isNothing=xg;jr.exports.isObject=dA;jr.exports.toArray=mA;jr.exports.repeat=gA;jr.exports.isNegativeZero=yA;jr.exports.extend=hA});var Nn=h((zM,wg)=>{"use strict";function Mi(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}o(Mi,"YAMLException");Mi.prototype=Object.create(Error.prototype);Mi.prototype.constructor=Mi;Mi.prototype.toString=o(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");wg.exports=Mi});var Tg=h((ZM,Ig)=>{"use strict";var Ag=qr();function Ul(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}o(Ul,"Mark");Ul.prototype.getSnippet=o(function(t,r){var n,i,s,a,c;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
15
15
  \x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(s="",a=this.position;a<this.buffer.length&&`\0\r
16
- \x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){s=" ... ",a-=5;break}return c=this.buffer.slice(i,a),xg.repeat(" ",t)+n+c+s+`
17
- `+xg.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");Hl.prototype.toString=o(function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
18
- `+r)),n},"toString");wg.exports=Hl});var ne=h((LM,Tg)=>{"use strict";var Ig=Cn(),dA=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],mA=["scalar","sequence","mapping"];function hA(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}o(hA,"compileStyleAliases");function gA(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(dA.indexOf(r)===-1)throw new Ig('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=hA(t.styleAliases||null),mA.indexOf(this.kind)===-1)throw new Ig('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}o(gA,"Type");Tg.exports=gA});var qr=h((VM,Cg)=>{"use strict";var kg=jr(),us=Cn(),yA=ne();function Bl(e,t,r){var n=[];return e.include.forEach(function(i){r=Bl(i,t,r)}),e[t].forEach(function(i){r.forEach(function(s,a){s.tag===i.tag&&s.kind===i.kind&&n.push(a)}),r.push(i)}),r.filter(function(i,s){return n.indexOf(s)===-1})}o(Bl,"compileList");function vA(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(o(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}o(vA,"compileMap");function Rn(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new us("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Bl(this,"implicit",[]),this.compiledExplicit=Bl(this,"explicit",[]),this.compiledTypeMap=vA(this.compiledImplicit,this.compiledExplicit)}o(Rn,"Schema");Rn.DEFAULT=null;Rn.create=o(function(){var t,r;switch(arguments.length){case 1:t=Rn.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new us("Wrong number of arguments for Schema.create function")}if(t=kg.toArray(t),r=kg.toArray(r),!t.every(function(n){return n instanceof Rn}))throw new us("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof yA}))throw new us("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Rn({include:t,explicit:r})},"createSchema");Cg.exports=Rn});var Ng=h((BM,Rg)=>{"use strict";var bA=ne();Rg.exports=new bA("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")})});var qg=h((zM,jg)=>{"use strict";var _A=ne();jg.exports=new _A("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")})});var Dg=h((ZM,Mg)=>{"use strict";var SA=ne();Mg.exports=new SA("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")})});var ls=h((WM,Lg)=>{"use strict";var $A=qr();Lg.exports=new $A({explicit:[Ng(),qg(),Dg()]})});var Vg=h((YM,Fg)=>{"use strict";var PA=ne();function EA(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}o(EA,"resolveYamlNull");function OA(){return null}o(OA,"constructYamlNull");function xA(e){return e===null}o(xA,"isNull");Fg.exports=new PA("tag:yaml.org,2002:null",{kind:"scalar",resolve:EA,construct:OA,predicate:xA,represent:{canonical:o(function(){return"~"},"canonical"),lowercase:o(function(){return"null"},"lowercase"),uppercase:o(function(){return"NULL"},"uppercase"),camelcase:o(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var Bg=h((JM,Hg)=>{"use strict";var wA=ne();function AA(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}o(AA,"resolveYamlBoolean");function IA(e){return e==="true"||e==="True"||e==="TRUE"}o(IA,"constructYamlBoolean");function TA(e){return Object.prototype.toString.call(e)==="[object Boolean]"}o(TA,"isBoolean");Hg.exports=new wA("tag:yaml.org,2002:bool",{kind:"scalar",resolve:AA,construct:IA,predicate:TA,represent:{lowercase:o(function(e){return e?"true":"false"},"lowercase"),uppercase:o(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:o(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var zg=h((e8,Ug)=>{"use strict";var kA=jr(),CA=ne();function RA(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}o(RA,"isHexCode");function NA(e){return 48<=e&&e<=55}o(NA,"isOctCode");function jA(e){return 48<=e&&e<=57}o(jA,"isDecCode");function qA(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(!RA(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!NA(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(!jA(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}o(qA,"resolveYamlInteger");function MA(e){var t=e,r=1,n,i,s=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(a){s.unshift(parseInt(a,10))}),t=0,i=1,s.forEach(function(a){t+=a*i,i*=60}),r*t):r*parseInt(t,10)}o(MA,"constructYamlInteger");function DA(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!kA.isNegativeZero(e)}o(DA,"isInteger");Ug.exports=new CA("tag:yaml.org,2002:int",{kind:"scalar",resolve:qA,construct:MA,predicate:DA,represent:{binary:o(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:o(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:o(function(e){return e.toString(10)},"decimal"),hexadecimal:o(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var Kg=h((r8,Zg)=>{"use strict";var Gg=jr(),LA=ne(),FA=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 VA(e){return!(e===null||!FA.test(e)||e[e.length-1]==="_")}o(VA,"resolveYamlFloat");function HA(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(s){i.unshift(parseFloat(s,10))}),t=0,n=1,i.forEach(function(s){t+=s*n,n*=60}),r*t):r*parseFloat(t,10)}o(HA,"constructYamlFloat");var BA=/^[-+]?[0-9]+e/;function UA(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(Gg.isNegativeZero(e))return"-0.0";return r=e.toString(10),BA.test(r)?r.replace("e",".e"):r}o(UA,"representYamlFloat");function zA(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Gg.isNegativeZero(e))}o(zA,"isFloat");Zg.exports=new LA("tag:yaml.org,2002:float",{kind:"scalar",resolve:VA,construct:HA,predicate:zA,represent:UA,defaultStyle:"lowercase"})});var Ul=h((i8,Wg)=>{"use strict";var GA=qr();Wg.exports=new GA({include:[ls()],implicit:[Vg(),Bg(),zg(),Kg()]})});var zl=h((o8,Yg)=>{"use strict";var ZA=qr();Yg.exports=new ZA({include:[Ul()]})});var ey=h((s8,Xg)=>{"use strict";var KA=ne(),Qg=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Jg=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 WA(e){return e===null?!1:Qg.exec(e)!==null||Jg.exec(e)!==null}o(WA,"resolveYamlTimestamp");function YA(e){var t,r,n,i,s,a,c,u=0,l=null,f,p,d;if(t=Qg.exec(e),t===null&&(t=Jg.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],a=+t[5],c=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(f=+t[10],p=+(t[11]||0),l=(f*60+p)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,s,a,c,u)),l&&d.setTime(d.getTime()-l),d}o(YA,"constructYamlTimestamp");function QA(e){return e.toISOString()}o(QA,"representYamlTimestamp");Xg.exports=new KA("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:WA,construct:YA,instanceOf:Date,represent:QA})});var ry=h((c8,ty)=>{"use strict";var JA=ne();function XA(e){return e==="<<"||e===null}o(XA,"resolveYamlMerge");ty.exports=new JA("tag:yaml.org,2002:merge",{kind:"scalar",resolve:XA})});var oy=h((l8,iy)=>{"use strict";var Mr;try{ny=require,Mr=ny("buffer").Buffer}catch{}var ny,eI=ne(),Gl=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
19
- \r`;function tI(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Gl;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}o(tI,"resolveYamlBinary");function rI(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Gl,a=0,c=[];for(t=0;t<i;t++)t%4===0&&t&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),Mr?Mr.from?Mr.from(c):new Mr(c):c}o(rI,"constructYamlBinary");function nI(e){var t="",r=0,n,i,s=e.length,a=Gl;for(n=0;n<s;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}o(nI,"representYamlBinary");function iI(e){return Mr&&Mr.isBuffer(e)}o(iI,"isBinary");iy.exports=new eI("tag:yaml.org,2002:binary",{kind:"scalar",resolve:tI,construct:rI,predicate:iI,represent:nI})});var ay=h((f8,sy)=>{"use strict";var oI=ne(),sI=Object.prototype.hasOwnProperty,aI=Object.prototype.toString;function cI(e){if(e===null)return!0;var t=[],r,n,i,s,a,c=e;for(r=0,n=c.length;r<n;r+=1){if(i=c[r],a=!1,aI.call(i)!=="[object Object]")return!1;for(s in i)if(sI.call(i,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}o(cI,"resolveYamlOmap");function uI(e){return e!==null?e:[]}o(uI,"constructYamlOmap");sy.exports=new oI("tag:yaml.org,2002:omap",{kind:"sequence",resolve:cI,construct:uI})});var uy=h((m8,cy)=>{"use strict";var lI=ne(),pI=Object.prototype.toString;function fI(e){if(e===null)return!0;var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],pI.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}o(fI,"resolveYamlPairs");function dI(e){if(e===null)return[];var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}o(dI,"constructYamlPairs");cy.exports=new lI("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:fI,construct:dI})});var py=h((g8,ly)=>{"use strict";var mI=ne(),hI=Object.prototype.hasOwnProperty;function gI(e){if(e===null)return!0;var t,r=e;for(t in r)if(hI.call(r,t)&&r[t]!==null)return!1;return!0}o(gI,"resolveYamlSet");function yI(e){return e!==null?e:{}}o(yI,"constructYamlSet");ly.exports=new mI("tag:yaml.org,2002:set",{kind:"mapping",resolve:gI,construct:yI})});var Nn=h((v8,fy)=>{"use strict";var vI=qr();fy.exports=new vI({include:[zl()],implicit:[ey(),ry()],explicit:[oy(),ay(),uy(),py()]})});var my=h((b8,dy)=>{"use strict";var bI=ne();function _I(){return!0}o(_I,"resolveJavascriptUndefined");function SI(){}o(SI,"constructJavascriptUndefined");function $I(){return""}o($I,"representJavascriptUndefined");function PI(e){return typeof e>"u"}o(PI,"isUndefined");dy.exports=new bI("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:_I,construct:SI,predicate:PI,represent:$I})});var gy=h((S8,hy)=>{"use strict";var EI=ne();function OI(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}o(OI,"resolveJavascriptRegExp");function xI(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}o(xI,"constructJavascriptRegExp");function wI(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}o(wI,"representJavascriptRegExp");function AI(e){return Object.prototype.toString.call(e)==="[object RegExp]"}o(AI,"isRegExp");hy.exports=new EI("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:OI,construct:xI,predicate:AI,represent:wI})});var by=h((P8,vy)=>{"use strict";var ps;try{yy=require,ps=yy("esprima")}catch{typeof window<"u"&&(ps=window.esprima)}var yy,II=ne();function TI(e){if(e===null)return!1;try{var t="("+e+")",r=ps.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}o(TI,"resolveJavascriptFunction");function kI(e){var t="("+e+")",r=ps.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(s){n.push(s.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}o(kI,"constructJavascriptFunction");function CI(e){return e.toString()}o(CI,"representJavascriptFunction");function RI(e){return Object.prototype.toString.call(e)==="[object Function]"}o(RI,"isFunction");vy.exports=new II("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:TI,construct:kI,predicate:RI,represent:CI})});var qi=h((O8,Sy)=>{"use strict";var _y=qr();Sy.exports=_y.DEFAULT=new _y({include:[Nn()],explicit:[my(),gy(),by()]})});var Fy=h((x8,Mi)=>{"use strict";var jt=jr(),Ay=Cn(),NI=Ag(),Iy=Nn(),jI=qi(),or=Object.prototype.hasOwnProperty,fs=1,Ty=2,ky=3,ds=4,Zl=1,qI=2,$y=3,MI=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,DI=/[\x85\u2028\u2029]/,LI=/[,\[\]\{\}]/,Cy=/^(?:!|!!|![a-z\-]+!)$/i,Ry=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Py(e){return Object.prototype.toString.call(e)}o(Py,"_class");function yt(e){return e===10||e===13}o(yt,"is_EOL");function Lr(e){return e===9||e===32}o(Lr,"is_WHITE_SPACE");function Te(e){return e===9||e===32||e===10||e===13}o(Te,"is_WS_OR_EOL");function jn(e){return e===44||e===91||e===93||e===123||e===125}o(jn,"is_FLOW_INDICATOR");function FI(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}o(FI,"fromHexCode");function VI(e){return e===120?2:e===117?4:e===85?8:0}o(VI,"escapedHexLen");function HI(e){return 48<=e&&e<=57?e-48:-1}o(HI,"fromDecimalCode");function Ey(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
20
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}o(Ey,"simpleEscapeSequence");function BI(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}o(BI,"charFromCodepoint");var Ny=new Array(256),jy=new Array(256);for(Dr=0;Dr<256;Dr++)Ny[Dr]=Ey(Dr)?1:0,jy[Dr]=Ey(Dr);var Dr;function UI(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||jI,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}o(UI,"State");function qy(e,t){return new Ay(t,new NI(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}o(qy,"generateError");function x(e,t){throw qy(e,t)}o(x,"throwError");function ms(e,t){e.onWarning&&e.onWarning.call(null,qy(e,t))}o(ms,"throwWarning");var Oy={YAML:o(function(t,r,n){var i,s,a;t.version!==null&&x(t,"duplication of %YAML directive"),n.length!==1&&x(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&x(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&x(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&ms(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(t,r,n){var i,s;n.length!==2&&x(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],Cy.test(i)||x(t,"ill-formed tag handle (first argument) of the TAG directive"),or.call(t.tagMap,i)&&x(t,'there is a previously declared suffix for "'+i+'" tag handle'),Ry.test(s)||x(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s},"handleTagDirective")};function ir(e,t,r,n){var i,s,a,c;if(t<r){if(c=e.input.slice(t,r),n)for(i=0,s=c.length;i<s;i+=1)a=c.charCodeAt(i),a===9||32<=a&&a<=1114111||x(e,"expected valid JSON character");else MI.test(c)&&x(e,"the stream contains non-printable characters");e.result+=c}}o(ir,"captureSegment");function xy(e,t,r,n){var i,s,a,c;for(jt.isObject(r)||x(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,c=i.length;a<c;a+=1)s=i[a],or.call(t,s)||(t[s]=r[s],n[s]=!0)}o(xy,"mergeMappings");function qn(e,t,r,n,i,s,a,c){var u,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,l=i.length;u<l;u+=1)Array.isArray(i[u])&&x(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Py(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&Py(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,l=s.length;u<l;u+=1)xy(e,t,s[u],r);else xy(e,t,s,r);else!e.json&&!or.call(r,i)&&or.call(t,i)&&(e.line=a||e.line,e.position=c||e.position,x(e,"duplicated mapping key")),t[i]=s,delete r[i];return t}o(qn,"storeMappingPair");function Kl(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):x(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}o(Kl,"readLineBreak");function ee(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Lr(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(yt(i))for(Kl(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&&ms(e,"deficient indentation"),n}o(ee,"skipSeparationSpace");function hs(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||Te(r)))}o(hs,"testDocumentSeparator");function Wl(e,t){t===1?e.result+=" ":t>1&&(e.result+=jt.repeat(`
21
- `,t-1))}o(Wl,"writeFoldedLines");function zI(e,t,r){var n,i,s,a,c,u,l,f,p=e.kind,d=e.result,m;if(m=e.input.charCodeAt(e.position),Te(m)||jn(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(i=e.input.charCodeAt(e.position+1),Te(i)||r&&jn(i)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,c=!1;m!==0;){if(m===58){if(i=e.input.charCodeAt(e.position+1),Te(i)||r&&jn(i))break}else if(m===35){if(n=e.input.charCodeAt(e.position-1),Te(n))break}else{if(e.position===e.lineStart&&hs(e)||r&&jn(m))break;if(yt(m))if(u=e.line,l=e.lineStart,f=e.lineIndent,ee(e,!1,-1),e.lineIndent>=t){c=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=l,e.lineIndent=f;break}}c&&(ir(e,s,a,!1),Wl(e,e.line-u),s=a=e.position,c=!1),Lr(m)||(a=e.position+1),m=e.input.charCodeAt(++e.position)}return ir(e,s,a,!1),e.result?!0:(e.kind=p,e.result=d,!1)}o(zI,"readPlainScalar");function GI(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(ir(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 yt(r)?(ir(e,n,i,!0),Wl(e,ee(e,!1,t)),n=i=e.position):e.position===e.lineStart&&hs(e)?x(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);x(e,"unexpected end of the stream within a single quoted scalar")}o(GI,"readSingleQuotedScalar");function ZI(e,t){var r,n,i,s,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return ir(e,r,e.position,!0),e.position++,!0;if(c===92){if(ir(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),yt(c))ee(e,!1,t);else if(c<256&&Ny[c])e.result+=jy[c],e.position++;else if((a=VI(c))>0){for(i=a,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=FI(c))>=0?s=(s<<4)+a:x(e,"expected hexadecimal character");e.result+=BI(s),e.position++}else x(e,"unknown escape sequence");r=n=e.position}else yt(c)?(ir(e,r,n,!0),Wl(e,ee(e,!1,t)),r=n=e.position):e.position===e.lineStart&&hs(e)?x(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}x(e,"unexpected end of the stream within a double quoted scalar")}o(ZI,"readDoubleQuotedScalar");function KI(e,t){var r=!0,n,i=e.tag,s,a=e.anchor,c,u,l,f,p,d={},m,g,y,v;if(v=e.input.charCodeAt(e.position),v===91)u=93,p=!1,s=[];else if(v===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(ee(e,!0,t),v=e.input.charCodeAt(e.position),v===u)return e.position++,e.tag=i,e.anchor=a,e.kind=p?"mapping":"sequence",e.result=s,!0;r||x(e,"missed comma between flow collection entries"),g=m=y=null,l=f=!1,v===63&&(c=e.input.charCodeAt(e.position+1),Te(c)&&(l=f=!0,e.position++,ee(e,!0,t))),n=e.line,Mn(e,t,fs,!1,!0),g=e.tag,m=e.result,ee(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===n)&&v===58&&(l=!0,v=e.input.charCodeAt(++e.position),ee(e,!0,t),Mn(e,t,fs,!1,!0),y=e.result),p?qn(e,s,d,g,m,y):l?s.push(qn(e,null,d,g,m,y)):s.push(m),ee(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(r=!0,v=e.input.charCodeAt(++e.position)):r=!1}x(e,"unexpected end of the stream within a flow collection")}o(KI,"readFlowCollection");function WI(e,t){var r,n,i=Zl,s=!1,a=!1,c=t,u=0,l=!1,f,p;if(p=e.input.charCodeAt(e.position),p===124)n=!1;else if(p===62)n=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)Zl===i?i=p===43?$y:qI:x(e,"repeat of a chomping mode identifier");else if((f=HI(p))>=0)f===0?x(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?x(e,"repeat of an indentation width identifier"):(c=t+f-1,a=!0);else break;if(Lr(p)){do p=e.input.charCodeAt(++e.position);while(Lr(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!yt(p)&&p!==0)}for(;p!==0;){for(Kl(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!a||e.lineIndent<c)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>c&&(c=e.lineIndent),yt(p)){u++;continue}if(e.lineIndent<c){i===$y?e.result+=jt.repeat(`
22
- `,s?1+u:u):i===Zl&&s&&(e.result+=`
23
- `);break}for(n?Lr(p)?(l=!0,e.result+=jt.repeat(`
24
- `,s?1+u:u)):l?(l=!1,e.result+=jt.repeat(`
25
- `,u+1)):u===0?s&&(e.result+=" "):e.result+=jt.repeat(`
26
- `,u):e.result+=jt.repeat(`
27
- `,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!yt(p)&&p!==0;)p=e.input.charCodeAt(++e.position);ir(e,r,e.position,!1)}return!0}o(WI,"readBlockScalar");function wy(e,t){var r,n=e.tag,i=e.anchor,s=[],a,c=!1,u;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&!(u!==45||(a=e.input.charCodeAt(e.position+1),!Te(a)));){if(c=!0,e.position++,ee(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Mn(e,t,ky,!1,!0),s.push(e.result),ee(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)x(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}o(wy,"readBlockSequence");function YI(e,t,r){var n,i,s,a,c=e.tag,u=e.anchor,l={},f={},p=null,d=null,m=null,g=!1,y=!1,v;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),v=e.input.charCodeAt(e.position);v!==0;){if(n=e.input.charCodeAt(e.position+1),s=e.line,a=e.position,(v===63||v===58)&&Te(n))v===63?(g&&(qn(e,l,f,p,d,null),p=d=m=null),y=!0,g=!0,i=!0):g?(g=!1,i=!0):x(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,v=n;else if(Mn(e,r,Ty,!1,!0))if(e.line===s){for(v=e.input.charCodeAt(e.position);Lr(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),Te(v)||x(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(qn(e,l,f,p,d,null),p=d=m=null),y=!0,g=!1,i=!1,p=e.tag,d=e.result;else if(y)x(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(y)x(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=u,!0;else break;if((e.line===s||e.lineIndent>t)&&(Mn(e,t,ds,!0,i)&&(g?d=e.result:m=e.result),g||(qn(e,l,f,p,d,m,s,a),p=d=m=null),ee(e,!0,-1),v=e.input.charCodeAt(e.position)),e.lineIndent>t&&v!==0)x(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&qn(e,l,f,p,d,null),y&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=l),y}o(YI,"readBlockMapping");function QI(e){var t,r=!1,n=!1,i,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&x(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):x(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Te(a);)a===33&&(n?x(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Cy.test(i)||x(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),LI.test(s)&&x(e,"tag suffix cannot contain flow indicator characters")}return s&&!Ry.test(s)&&x(e,"tag name cannot contain such characters: "+s),r?e.tag=s:or.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:x(e,'undeclared tag handle "'+i+'"'),!0}o(QI,"readTagProperty");function JI(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&&!Te(r)&&!jn(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&x(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}o(JI,"readAnchorProperty");function XI(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&&!Te(n)&&!jn(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&x(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),or.call(e.anchorMap,r)||x(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],ee(e,!0,-1),!0}o(XI,"readAlias");function Mn(e,t,r,n,i){var s,a,c,u=1,l=!1,f=!1,p,d,m,g,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=c=ds===r||ky===r,n&&ee(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;QI(e)||JI(e);)ee(e,!0,-1)?(l=!0,c=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):c=!1;if(c&&(c=l||i),(u===1||ds===r)&&(fs===r||Ty===r?g=t:g=t+1,y=e.position-e.lineStart,u===1?c&&(wy(e,y)||YI(e,y,g))||KI(e,g)?f=!0:(a&&WI(e,g)||GI(e,g)||ZI(e,g)?f=!0:XI(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&x(e,"alias node should not have any properties")):zI(e,g,fs===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(f=c&&wy(e,y))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&x(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,d=e.implicitTypes.length;p<d;p+=1)if(m=e.implicitTypes[p],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else or.call(e.typeMap[e.kind||"fallback"],e.tag)?(m=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&m.kind!==e.kind&&x(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result)?(e.result=m.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):x(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):x(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}o(Mn,"composeNode");function eT(e){var t=e.position,r,n,i,s=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(ee(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!Te(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(;Lr(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!yt(a));break}if(yt(a))break;for(r=e.position;a!==0&&!Te(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Kl(e),or.call(Oy,n)?Oy[n](e,n,i):ms(e,'unknown document directive "'+n+'"')}if(ee(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,ee(e,!0,-1)):s&&x(e,"directives end mark is expected"),Mn(e,e.lineIndent-1,ds,!1,!0),ee(e,!0,-1),e.checkLineBreaks&&DI.test(e.input.slice(t,e.position))&&ms(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&hs(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ee(e,!0,-1));return}if(e.position<e.length-1)x(e,"end of the stream or a document separator is expected");else return}o(eT,"readDocument");function My(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 UI(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;)eT(r);return r.documents}o(My,"loadDocuments");function Dy(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=My(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}o(Dy,"loadAll");function Ly(e,t){var r=My(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Ay("expected a single document in the stream, but found more")}}o(Ly,"load");function tT(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),Dy(e,t,jt.extend({schema:Iy},r))}o(tT,"safeLoadAll");function rT(e,t){return Ly(e,jt.extend({schema:Iy},t))}o(rT,"safeLoad");Mi.exports.loadAll=Dy;Mi.exports.load=Ly;Mi.exports.safeLoadAll=tT;Mi.exports.safeLoad=rT});var u0=h((A8,Xl)=>{"use strict";var Li=jr(),Fi=Cn(),nT=qi(),iT=Nn(),Ky=Object.prototype.toString,Wy=Object.prototype.hasOwnProperty,oT=9,Di=10,sT=13,aT=32,cT=33,uT=34,Yy=35,lT=37,pT=38,fT=39,dT=42,Qy=44,mT=45,Jy=58,hT=61,gT=62,yT=63,vT=64,Xy=91,e0=93,bT=96,t0=123,_T=124,r0=125,he={};he[0]="\\0";he[7]="\\a";he[8]="\\b";he[9]="\\t";he[10]="\\n";he[11]="\\v";he[12]="\\f";he[13]="\\r";he[27]="\\e";he[34]='\\"';he[92]="\\\\";he[133]="\\N";he[160]="\\_";he[8232]="\\L";he[8233]="\\P";var ST=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function $T(e,t){var r,n,i,s,a,c,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)a=n[i],c=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),u=e.compiledTypeMap.fallback[a],u&&Wy.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}o($T,"compileStyleMap");function Vy(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 Fi("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Li.repeat("0",n-t.length)+t}o(Vy,"encodeHex");function PT(e){this.schema=e.schema||nT,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Li.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=$T(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}o(PT,"State");function Hy(e,t){for(var r=Li.repeat(" ",t),n=0,i=-1,s="",a,c=e.length;n<c;)i=e.indexOf(`
16
+ \x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){s=" ... ",a-=5;break}return c=this.buffer.slice(i,a),Ag.repeat(" ",t)+n+c+s+`
17
+ `+Ag.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");Ul.prototype.toString=o(function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
18
+ `+r)),n},"toString");Ig.exports=Ul});var ne=h((WM,Cg)=>{"use strict";var kg=Nn(),vA=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],bA=["scalar","sequence","mapping"];function SA(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}o(SA,"compileStyleAliases");function _A(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(vA.indexOf(r)===-1)throw new kg('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=SA(t.styleAliases||null),bA.indexOf(this.kind)===-1)throw new kg('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}o(_A,"Type");Cg.exports=_A});var Mr=h((JM,Ng)=>{"use strict";var Rg=qr(),ds=Nn(),PA=ne();function zl(e,t,r){var n=[];return e.include.forEach(function(i){r=zl(i,t,r)}),e[t].forEach(function(i){r.forEach(function(s,a){s.tag===i.tag&&s.kind===i.kind&&n.push(a)}),r.push(i)}),r.filter(function(i,s){return n.indexOf(s)===-1})}o(zl,"compileList");function $A(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(o(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}o($A,"compileMap");function jn(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 ds("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=zl(this,"implicit",[]),this.compiledExplicit=zl(this,"explicit",[]),this.compiledTypeMap=$A(this.compiledImplicit,this.compiledExplicit)}o(jn,"Schema");jn.DEFAULT=null;jn.create=o(function(){var t,r;switch(arguments.length){case 1:t=jn.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new ds("Wrong number of arguments for Schema.create function")}if(t=Rg.toArray(t),r=Rg.toArray(r),!t.every(function(n){return n instanceof jn}))throw new ds("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof PA}))throw new ds("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new jn({include:t,explicit:r})},"createSchema");Ng.exports=jn});var qg=h((XM,jg)=>{"use strict";var OA=ne();jg.exports=new OA("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")})});var Dg=h((tD,Mg)=>{"use strict";var EA=ne();Mg.exports=new EA("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")})});var Fg=h((nD,Lg)=>{"use strict";var xA=ne();Lg.exports=new xA("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")})});var ms=h((oD,Vg)=>{"use strict";var wA=Mr();Vg.exports=new wA({explicit:[qg(),Dg(),Fg()]})});var Bg=h((sD,Hg)=>{"use strict";var AA=ne();function IA(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}o(IA,"resolveYamlNull");function TA(){return null}o(TA,"constructYamlNull");function kA(e){return e===null}o(kA,"isNull");Hg.exports=new AA("tag:yaml.org,2002:null",{kind:"scalar",resolve:IA,construct:TA,predicate:kA,represent:{canonical:o(function(){return"~"},"canonical"),lowercase:o(function(){return"null"},"lowercase"),uppercase:o(function(){return"NULL"},"uppercase"),camelcase:o(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var zg=h((cD,Ug)=>{"use strict";var CA=ne();function RA(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}o(RA,"resolveYamlBoolean");function NA(e){return e==="true"||e==="True"||e==="TRUE"}o(NA,"constructYamlBoolean");function jA(e){return Object.prototype.toString.call(e)==="[object Boolean]"}o(jA,"isBoolean");Ug.exports=new CA("tag:yaml.org,2002:bool",{kind:"scalar",resolve:RA,construct:NA,predicate:jA,represent:{lowercase:o(function(e){return e?"true":"false"},"lowercase"),uppercase:o(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:o(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var Zg=h((lD,Gg)=>{"use strict";var qA=qr(),MA=ne();function DA(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}o(DA,"isHexCode");function LA(e){return 48<=e&&e<=55}o(LA,"isOctCode");function FA(e){return 48<=e&&e<=57}o(FA,"isDecCode");function VA(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(!DA(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!LA(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(!FA(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}o(VA,"resolveYamlInteger");function HA(e){var t=e,r=1,n,i,s=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(a){s.unshift(parseInt(a,10))}),t=0,i=1,s.forEach(function(a){t+=a*i,i*=60}),r*t):r*parseInt(t,10)}o(HA,"constructYamlInteger");function BA(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!qA.isNegativeZero(e)}o(BA,"isInteger");Gg.exports=new MA("tag:yaml.org,2002:int",{kind:"scalar",resolve:VA,construct:HA,predicate:BA,represent:{binary:o(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:o(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:o(function(e){return e.toString(10)},"decimal"),hexadecimal:o(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var Yg=h((fD,Wg)=>{"use strict";var Kg=qr(),UA=ne(),zA=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 GA(e){return!(e===null||!zA.test(e)||e[e.length-1]==="_")}o(GA,"resolveYamlFloat");function ZA(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(s){i.unshift(parseFloat(s,10))}),t=0,n=1,i.forEach(function(s){t+=s*n,n*=60}),r*t):r*parseFloat(t,10)}o(ZA,"constructYamlFloat");var KA=/^[-+]?[0-9]+e/;function WA(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(Kg.isNegativeZero(e))return"-0.0";return r=e.toString(10),KA.test(r)?r.replace("e",".e"):r}o(WA,"representYamlFloat");function YA(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Kg.isNegativeZero(e))}o(YA,"isFloat");Wg.exports=new UA("tag:yaml.org,2002:float",{kind:"scalar",resolve:GA,construct:ZA,predicate:YA,represent:WA,defaultStyle:"lowercase"})});var Gl=h((mD,Jg)=>{"use strict";var JA=Mr();Jg.exports=new JA({include:[ms()],implicit:[Bg(),zg(),Zg(),Yg()]})});var Zl=h((hD,Qg)=>{"use strict";var QA=Mr();Qg.exports=new QA({include:[Gl()]})});var ry=h((gD,ty)=>{"use strict";var XA=ne(),Xg=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ey=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 eI(e){return e===null?!1:Xg.exec(e)!==null||ey.exec(e)!==null}o(eI,"resolveYamlTimestamp");function tI(e){var t,r,n,i,s,a,c,u=0,l=null,f,p,d;if(t=Xg.exec(e),t===null&&(t=ey.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],a=+t[5],c=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(f=+t[10],p=+(t[11]||0),l=(f*60+p)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,s,a,c,u)),l&&d.setTime(d.getTime()-l),d}o(tI,"constructYamlTimestamp");function rI(e){return e.toISOString()}o(rI,"representYamlTimestamp");ty.exports=new XA("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:eI,construct:tI,instanceOf:Date,represent:rI})});var iy=h((vD,ny)=>{"use strict";var nI=ne();function iI(e){return e==="<<"||e===null}o(iI,"resolveYamlMerge");ny.exports=new nI("tag:yaml.org,2002:merge",{kind:"scalar",resolve:iI})});var ay=h((SD,sy)=>{"use strict";var Dr;try{oy=require,Dr=oy("buffer").Buffer}catch{}var oy,oI=ne(),Kl=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
19
+ \r`;function sI(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Kl;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}o(sI,"resolveYamlBinary");function aI(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Kl,a=0,c=[];for(t=0;t<i;t++)t%4===0&&t&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),Dr?Dr.from?Dr.from(c):new Dr(c):c}o(aI,"constructYamlBinary");function cI(e){var t="",r=0,n,i,s=e.length,a=Kl;for(n=0;n<s;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}o(cI,"representYamlBinary");function uI(e){return Dr&&Dr.isBuffer(e)}o(uI,"isBinary");sy.exports=new oI("tag:yaml.org,2002:binary",{kind:"scalar",resolve:sI,construct:aI,predicate:uI,represent:cI})});var uy=h((PD,cy)=>{"use strict";var lI=ne(),pI=Object.prototype.hasOwnProperty,fI=Object.prototype.toString;function dI(e){if(e===null)return!0;var t=[],r,n,i,s,a,c=e;for(r=0,n=c.length;r<n;r+=1){if(i=c[r],a=!1,fI.call(i)!=="[object Object]")return!1;for(s in i)if(pI.call(i,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}o(dI,"resolveYamlOmap");function mI(e){return e!==null?e:[]}o(mI,"constructYamlOmap");cy.exports=new lI("tag:yaml.org,2002:omap",{kind:"sequence",resolve:dI,construct:mI})});var py=h((OD,ly)=>{"use strict";var hI=ne(),gI=Object.prototype.toString;function yI(e){if(e===null)return!0;var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],gI.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}o(yI,"resolveYamlPairs");function vI(e){if(e===null)return[];var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}o(vI,"constructYamlPairs");ly.exports=new hI("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:yI,construct:vI})});var dy=h((xD,fy)=>{"use strict";var bI=ne(),SI=Object.prototype.hasOwnProperty;function _I(e){if(e===null)return!0;var t,r=e;for(t in r)if(SI.call(r,t)&&r[t]!==null)return!1;return!0}o(_I,"resolveYamlSet");function PI(e){return e!==null?e:{}}o(PI,"constructYamlSet");fy.exports=new bI("tag:yaml.org,2002:set",{kind:"mapping",resolve:_I,construct:PI})});var qn=h((AD,my)=>{"use strict";var $I=Mr();my.exports=new $I({include:[Zl()],implicit:[ry(),iy()],explicit:[ay(),uy(),py(),dy()]})});var gy=h((ID,hy)=>{"use strict";var OI=ne();function EI(){return!0}o(EI,"resolveJavascriptUndefined");function xI(){}o(xI,"constructJavascriptUndefined");function wI(){return""}o(wI,"representJavascriptUndefined");function AI(e){return typeof e>"u"}o(AI,"isUndefined");hy.exports=new OI("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:EI,construct:xI,predicate:AI,represent:wI})});var vy=h((kD,yy)=>{"use strict";var II=ne();function TI(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}o(TI,"resolveJavascriptRegExp");function kI(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}o(kI,"constructJavascriptRegExp");function CI(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}o(CI,"representJavascriptRegExp");function RI(e){return Object.prototype.toString.call(e)==="[object RegExp]"}o(RI,"isRegExp");yy.exports=new II("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:TI,construct:kI,predicate:RI,represent:CI})});var _y=h((RD,Sy)=>{"use strict";var hs;try{by=require,hs=by("esprima")}catch{typeof window<"u"&&(hs=window.esprima)}var by,NI=ne();function jI(e){if(e===null)return!1;try{var t="("+e+")",r=hs.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}o(jI,"resolveJavascriptFunction");function qI(e){var t="("+e+")",r=hs.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(s){n.push(s.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}o(qI,"constructJavascriptFunction");function MI(e){return e.toString()}o(MI,"representJavascriptFunction");function DI(e){return Object.prototype.toString.call(e)==="[object Function]"}o(DI,"isFunction");Sy.exports=new NI("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:jI,construct:qI,predicate:DI,represent:MI})});var Di=h((jD,$y)=>{"use strict";var Py=Mr();$y.exports=Py.DEFAULT=new Py({include:[qn()],explicit:[gy(),vy(),_y()]})});var Hy=h((qD,Li)=>{"use strict";var Mt=qr(),Ty=Nn(),LI=Tg(),ky=qn(),FI=Di(),or=Object.prototype.hasOwnProperty,gs=1,Cy=2,Ry=3,ys=4,Wl=1,VI=2,Oy=3,HI=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,BI=/[\x85\u2028\u2029]/,UI=/[,\[\]\{\}]/,Ny=/^(?:!|!!|![a-z\-]+!)$/i,jy=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ey(e){return Object.prototype.toString.call(e)}o(Ey,"_class");function yt(e){return e===10||e===13}o(yt,"is_EOL");function Fr(e){return e===9||e===32}o(Fr,"is_WHITE_SPACE");function ke(e){return e===9||e===32||e===10||e===13}o(ke,"is_WS_OR_EOL");function Mn(e){return e===44||e===91||e===93||e===123||e===125}o(Mn,"is_FLOW_INDICATOR");function zI(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}o(zI,"fromHexCode");function GI(e){return e===120?2:e===117?4:e===85?8:0}o(GI,"escapedHexLen");function ZI(e){return 48<=e&&e<=57?e-48:-1}o(ZI,"fromDecimalCode");function xy(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
20
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}o(xy,"simpleEscapeSequence");function KI(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}o(KI,"charFromCodepoint");var qy=new Array(256),My=new Array(256);for(Lr=0;Lr<256;Lr++)qy[Lr]=xy(Lr)?1:0,My[Lr]=xy(Lr);var Lr;function WI(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||FI,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}o(WI,"State");function Dy(e,t){return new Ty(t,new LI(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}o(Dy,"generateError");function x(e,t){throw Dy(e,t)}o(x,"throwError");function vs(e,t){e.onWarning&&e.onWarning.call(null,Dy(e,t))}o(vs,"throwWarning");var wy={YAML:o(function(t,r,n){var i,s,a;t.version!==null&&x(t,"duplication of %YAML directive"),n.length!==1&&x(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&x(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&x(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&vs(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(t,r,n){var i,s;n.length!==2&&x(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],Ny.test(i)||x(t,"ill-formed tag handle (first argument) of the TAG directive"),or.call(t.tagMap,i)&&x(t,'there is a previously declared suffix for "'+i+'" tag handle'),jy.test(s)||x(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s},"handleTagDirective")};function ir(e,t,r,n){var i,s,a,c;if(t<r){if(c=e.input.slice(t,r),n)for(i=0,s=c.length;i<s;i+=1)a=c.charCodeAt(i),a===9||32<=a&&a<=1114111||x(e,"expected valid JSON character");else HI.test(c)&&x(e,"the stream contains non-printable characters");e.result+=c}}o(ir,"captureSegment");function Ay(e,t,r,n){var i,s,a,c;for(Mt.isObject(r)||x(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,c=i.length;a<c;a+=1)s=i[a],or.call(t,s)||(t[s]=r[s],n[s]=!0)}o(Ay,"mergeMappings");function Dn(e,t,r,n,i,s,a,c){var u,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,l=i.length;u<l;u+=1)Array.isArray(i[u])&&x(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Ey(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&Ey(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,l=s.length;u<l;u+=1)Ay(e,t,s[u],r);else Ay(e,t,s,r);else!e.json&&!or.call(r,i)&&or.call(t,i)&&(e.line=a||e.line,e.position=c||e.position,x(e,"duplicated mapping key")),t[i]=s,delete r[i];return t}o(Dn,"storeMappingPair");function Yl(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):x(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}o(Yl,"readLineBreak");function ee(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Fr(i);)i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(yt(i))for(Yl(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&vs(e,"deficient indentation"),n}o(ee,"skipSeparationSpace");function bs(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||ke(r)))}o(bs,"testDocumentSeparator");function Jl(e,t){t===1?e.result+=" ":t>1&&(e.result+=Mt.repeat(`
21
+ `,t-1))}o(Jl,"writeFoldedLines");function YI(e,t,r){var n,i,s,a,c,u,l,f,p=e.kind,d=e.result,m;if(m=e.input.charCodeAt(e.position),ke(m)||Mn(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(i=e.input.charCodeAt(e.position+1),ke(i)||r&&Mn(i)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,c=!1;m!==0;){if(m===58){if(i=e.input.charCodeAt(e.position+1),ke(i)||r&&Mn(i))break}else if(m===35){if(n=e.input.charCodeAt(e.position-1),ke(n))break}else{if(e.position===e.lineStart&&bs(e)||r&&Mn(m))break;if(yt(m))if(u=e.line,l=e.lineStart,f=e.lineIndent,ee(e,!1,-1),e.lineIndent>=t){c=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=l,e.lineIndent=f;break}}c&&(ir(e,s,a,!1),Jl(e,e.line-u),s=a=e.position,c=!1),Fr(m)||(a=e.position+1),m=e.input.charCodeAt(++e.position)}return ir(e,s,a,!1),e.result?!0:(e.kind=p,e.result=d,!1)}o(YI,"readPlainScalar");function JI(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(ir(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 yt(r)?(ir(e,n,i,!0),Jl(e,ee(e,!1,t)),n=i=e.position):e.position===e.lineStart&&bs(e)?x(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);x(e,"unexpected end of the stream within a single quoted scalar")}o(JI,"readSingleQuotedScalar");function QI(e,t){var r,n,i,s,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return ir(e,r,e.position,!0),e.position++,!0;if(c===92){if(ir(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),yt(c))ee(e,!1,t);else if(c<256&&qy[c])e.result+=My[c],e.position++;else if((a=GI(c))>0){for(i=a,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=zI(c))>=0?s=(s<<4)+a:x(e,"expected hexadecimal character");e.result+=KI(s),e.position++}else x(e,"unknown escape sequence");r=n=e.position}else yt(c)?(ir(e,r,n,!0),Jl(e,ee(e,!1,t)),r=n=e.position):e.position===e.lineStart&&bs(e)?x(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}x(e,"unexpected end of the stream within a double quoted scalar")}o(QI,"readDoubleQuotedScalar");function XI(e,t){var r=!0,n,i=e.tag,s,a=e.anchor,c,u,l,f,p,d={},m,g,y,v;if(v=e.input.charCodeAt(e.position),v===91)u=93,p=!1,s=[];else if(v===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(ee(e,!0,t),v=e.input.charCodeAt(e.position),v===u)return e.position++,e.tag=i,e.anchor=a,e.kind=p?"mapping":"sequence",e.result=s,!0;r||x(e,"missed comma between flow collection entries"),g=m=y=null,l=f=!1,v===63&&(c=e.input.charCodeAt(e.position+1),ke(c)&&(l=f=!0,e.position++,ee(e,!0,t))),n=e.line,Ln(e,t,gs,!1,!0),g=e.tag,m=e.result,ee(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===n)&&v===58&&(l=!0,v=e.input.charCodeAt(++e.position),ee(e,!0,t),Ln(e,t,gs,!1,!0),y=e.result),p?Dn(e,s,d,g,m,y):l?s.push(Dn(e,null,d,g,m,y)):s.push(m),ee(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(r=!0,v=e.input.charCodeAt(++e.position)):r=!1}x(e,"unexpected end of the stream within a flow collection")}o(XI,"readFlowCollection");function eT(e,t){var r,n,i=Wl,s=!1,a=!1,c=t,u=0,l=!1,f,p;if(p=e.input.charCodeAt(e.position),p===124)n=!1;else if(p===62)n=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)Wl===i?i=p===43?Oy:VI:x(e,"repeat of a chomping mode identifier");else if((f=ZI(p))>=0)f===0?x(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?x(e,"repeat of an indentation width identifier"):(c=t+f-1,a=!0);else break;if(Fr(p)){do p=e.input.charCodeAt(++e.position);while(Fr(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!yt(p)&&p!==0)}for(;p!==0;){for(Yl(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!a||e.lineIndent<c)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>c&&(c=e.lineIndent),yt(p)){u++;continue}if(e.lineIndent<c){i===Oy?e.result+=Mt.repeat(`
22
+ `,s?1+u:u):i===Wl&&s&&(e.result+=`
23
+ `);break}for(n?Fr(p)?(l=!0,e.result+=Mt.repeat(`
24
+ `,s?1+u:u)):l?(l=!1,e.result+=Mt.repeat(`
25
+ `,u+1)):u===0?s&&(e.result+=" "):e.result+=Mt.repeat(`
26
+ `,u):e.result+=Mt.repeat(`
27
+ `,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!yt(p)&&p!==0;)p=e.input.charCodeAt(++e.position);ir(e,r,e.position,!1)}return!0}o(eT,"readBlockScalar");function Iy(e,t){var r,n=e.tag,i=e.anchor,s=[],a,c=!1,u;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&!(u!==45||(a=e.input.charCodeAt(e.position+1),!ke(a)));){if(c=!0,e.position++,ee(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Ln(e,t,Ry,!1,!0),s.push(e.result),ee(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)x(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}o(Iy,"readBlockSequence");function tT(e,t,r){var n,i,s,a,c=e.tag,u=e.anchor,l={},f={},p=null,d=null,m=null,g=!1,y=!1,v;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),v=e.input.charCodeAt(e.position);v!==0;){if(n=e.input.charCodeAt(e.position+1),s=e.line,a=e.position,(v===63||v===58)&&ke(n))v===63?(g&&(Dn(e,l,f,p,d,null),p=d=m=null),y=!0,g=!0,i=!0):g?(g=!1,i=!0):x(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,v=n;else if(Ln(e,r,Cy,!1,!0))if(e.line===s){for(v=e.input.charCodeAt(e.position);Fr(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),ke(v)||x(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(Dn(e,l,f,p,d,null),p=d=m=null),y=!0,g=!1,i=!1,p=e.tag,d=e.result;else if(y)x(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(y)x(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=u,!0;else break;if((e.line===s||e.lineIndent>t)&&(Ln(e,t,ys,!0,i)&&(g?d=e.result:m=e.result),g||(Dn(e,l,f,p,d,m,s,a),p=d=m=null),ee(e,!0,-1),v=e.input.charCodeAt(e.position)),e.lineIndent>t&&v!==0)x(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&Dn(e,l,f,p,d,null),y&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=l),y}o(tT,"readBlockMapping");function rT(e){var t,r=!1,n=!1,i,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&x(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):x(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!ke(a);)a===33&&(n?x(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Ny.test(i)||x(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),UI.test(s)&&x(e,"tag suffix cannot contain flow indicator characters")}return s&&!jy.test(s)&&x(e,"tag name cannot contain such characters: "+s),r?e.tag=s:or.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:x(e,'undeclared tag handle "'+i+'"'),!0}o(rT,"readTagProperty");function nT(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)&&!Mn(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&x(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}o(nT,"readAnchorProperty");function iT(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)&&!Mn(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),or.call(e.anchorMap,r)||x(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],ee(e,!0,-1),!0}o(iT,"readAlias");function Ln(e,t,r,n,i){var s,a,c,u=1,l=!1,f=!1,p,d,m,g,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=c=ys===r||Ry===r,n&&ee(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;rT(e)||nT(e);)ee(e,!0,-1)?(l=!0,c=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):c=!1;if(c&&(c=l||i),(u===1||ys===r)&&(gs===r||Cy===r?g=t:g=t+1,y=e.position-e.lineStart,u===1?c&&(Iy(e,y)||tT(e,y,g))||XI(e,g)?f=!0:(a&&eT(e,g)||JI(e,g)||QI(e,g)?f=!0:iT(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&x(e,"alias node should not have any properties")):YI(e,g,gs===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(f=c&&Iy(e,y))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&x(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,d=e.implicitTypes.length;p<d;p+=1)if(m=e.implicitTypes[p],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else or.call(e.typeMap[e.kind||"fallback"],e.tag)?(m=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&m.kind!==e.kind&&x(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result)?(e.result=m.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):x(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):x(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}o(Ln,"composeNode");function oT(e){var t=e.position,r,n,i,s=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(ee(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!ke(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&x(e,"directive name must not be less than one character in length");a!==0;){for(;Fr(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!yt(a));break}if(yt(a))break;for(r=e.position;a!==0&&!ke(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Yl(e),or.call(wy,n)?wy[n](e,n,i):vs(e,'unknown document directive "'+n+'"')}if(ee(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,ee(e,!0,-1)):s&&x(e,"directives end mark is expected"),Ln(e,e.lineIndent-1,ys,!1,!0),ee(e,!0,-1),e.checkLineBreaks&&BI.test(e.input.slice(t,e.position))&&vs(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&bs(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ee(e,!0,-1));return}if(e.position<e.length-1)x(e,"end of the stream or a document separator is expected");else return}o(oT,"readDocument");function Ly(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 WI(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;)oT(r);return r.documents}o(Ly,"loadDocuments");function Fy(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=Ly(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}o(Fy,"loadAll");function Vy(e,t){var r=Ly(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Ty("expected a single document in the stream, but found more")}}o(Vy,"load");function sT(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),Fy(e,t,Mt.extend({schema:ky},r))}o(sT,"safeLoadAll");function aT(e,t){return Vy(e,Mt.extend({schema:ky},t))}o(aT,"safeLoad");Li.exports.loadAll=Fy;Li.exports.load=Vy;Li.exports.safeLoadAll=sT;Li.exports.safeLoad=aT});var p0=h((DD,tp)=>{"use strict";var Vi=qr(),Hi=Nn(),cT=Di(),uT=qn(),Yy=Object.prototype.toString,Jy=Object.prototype.hasOwnProperty,lT=9,Fi=10,pT=13,fT=32,dT=33,mT=34,Qy=35,hT=37,gT=38,yT=39,vT=42,Xy=44,bT=45,e0=58,ST=61,_T=62,PT=63,$T=64,t0=91,r0=93,OT=96,n0=123,ET=124,i0=125,he={};he[0]="\\0";he[7]="\\a";he[8]="\\b";he[9]="\\t";he[10]="\\n";he[11]="\\v";he[12]="\\f";he[13]="\\r";he[27]="\\e";he[34]='\\"';he[92]="\\\\";he[133]="\\N";he[160]="\\_";he[8232]="\\L";he[8233]="\\P";var xT=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function wT(e,t){var r,n,i,s,a,c,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)a=n[i],c=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),u=e.compiledTypeMap.fallback[a],u&&Jy.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}o(wT,"compileStyleMap");function By(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+Vi.repeat("0",n-t.length)+t}o(By,"encodeHex");function AT(e){this.schema=e.schema||cT,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Vi.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=wT(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}o(AT,"State");function Uy(e,t){for(var r=Vi.repeat(" ",t),n=0,i=-1,s="",a,c=e.length;n<c;)i=e.indexOf(`
29
29
  `,n),i===-1?(a=e.slice(n),n=c):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
30
- `&&(s+=r),s+=a;return s}o(Hy,"indentString");function Yl(e,t){return`
31
- `+Li.repeat(" ",e.indent*t)}o(Yl,"generateNextLine");function ET(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}o(ET,"testImplicitResolving");function Jl(e){return e===aT||e===oT}o(Jl,"isWhitespace");function Dn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}o(Dn,"isPrintable");function OT(e){return Dn(e)&&!Jl(e)&&e!==65279&&e!==sT&&e!==Di}o(OT,"isNsChar");function By(e,t){return Dn(e)&&e!==65279&&e!==Qy&&e!==Xy&&e!==e0&&e!==t0&&e!==r0&&e!==Jy&&(e!==Yy||t&&OT(t))}o(By,"isPlainSafe");function xT(e){return Dn(e)&&e!==65279&&!Jl(e)&&e!==mT&&e!==yT&&e!==Jy&&e!==Qy&&e!==Xy&&e!==e0&&e!==t0&&e!==r0&&e!==Yy&&e!==pT&&e!==dT&&e!==cT&&e!==_T&&e!==hT&&e!==gT&&e!==fT&&e!==uT&&e!==lT&&e!==vT&&e!==bT}o(xT,"isPlainSafeFirst");function n0(e){var t=/^\n* /;return t.test(e)}o(n0,"needIndentIndicator");var i0=1,o0=2,s0=3,a0=4,gs=5;function wT(e,t,r,n,i){var s,a,c,u=!1,l=!1,f=n!==-1,p=-1,d=xT(e.charCodeAt(0))&&!Jl(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),!Dn(a))return gs;c=s>0?e.charCodeAt(s-1):null,d=d&&By(a,c)}else{for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),a===Di)u=!0,f&&(l=l||s-p-1>n&&e[p+1]!==" ",p=s);else if(!Dn(a))return gs;c=s>0?e.charCodeAt(s-1):null,d=d&&By(a,c)}l=l||f&&s-p-1>n&&e[p+1]!==" "}return!u&&!l?d&&!i(e)?i0:o0:r>9&&n0(e)?gs:l?a0:s0}o(wT,"chooseScalarStyle");function AT(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&ST.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(u){return ET(e,u)}switch(o(c,"testAmbiguity"),wT(t,a,e.indent,s,c)){case i0:return t;case o0:return"'"+t.replace(/'/g,"''")+"'";case s0:return"|"+Uy(t,e.indent)+zy(Hy(t,i));case a0:return">"+Uy(t,e.indent)+zy(Hy(IT(t,s),i));case gs:return'"'+TT(t,s)+'"';default:throw new Fi("impossible error: invalid scalar style")}}()}o(AT,"writeScalar");function Uy(e,t){var r=n0(e)?String(t):"",n=e[e.length-1]===`
30
+ `&&(s+=r),s+=a;return s}o(Uy,"indentString");function Ql(e,t){return`
31
+ `+Vi.repeat(" ",e.indent*t)}o(Ql,"generateNextLine");function IT(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}o(IT,"testImplicitResolving");function ep(e){return e===fT||e===lT}o(ep,"isWhitespace");function Fn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}o(Fn,"isPrintable");function TT(e){return Fn(e)&&!ep(e)&&e!==65279&&e!==pT&&e!==Fi}o(TT,"isNsChar");function zy(e,t){return Fn(e)&&e!==65279&&e!==Xy&&e!==t0&&e!==r0&&e!==n0&&e!==i0&&e!==e0&&(e!==Qy||t&&TT(t))}o(zy,"isPlainSafe");function kT(e){return Fn(e)&&e!==65279&&!ep(e)&&e!==bT&&e!==PT&&e!==e0&&e!==Xy&&e!==t0&&e!==r0&&e!==n0&&e!==i0&&e!==Qy&&e!==gT&&e!==vT&&e!==dT&&e!==ET&&e!==ST&&e!==_T&&e!==yT&&e!==mT&&e!==hT&&e!==$T&&e!==OT}o(kT,"isPlainSafeFirst");function o0(e){var t=/^\n* /;return t.test(e)}o(o0,"needIndentIndicator");var s0=1,a0=2,c0=3,u0=4,Ss=5;function CT(e,t,r,n,i){var s,a,c,u=!1,l=!1,f=n!==-1,p=-1,d=kT(e.charCodeAt(0))&&!ep(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),!Fn(a))return Ss;c=s>0?e.charCodeAt(s-1):null,d=d&&zy(a,c)}else{for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),a===Fi)u=!0,f&&(l=l||s-p-1>n&&e[p+1]!==" ",p=s);else if(!Fn(a))return Ss;c=s>0?e.charCodeAt(s-1):null,d=d&&zy(a,c)}l=l||f&&s-p-1>n&&e[p+1]!==" "}return!u&&!l?d&&!i(e)?s0:a0:r>9&&o0(e)?Ss:l?u0:c0}o(CT,"chooseScalarStyle");function RT(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&xT.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(u){return IT(e,u)}switch(o(c,"testAmbiguity"),CT(t,a,e.indent,s,c)){case s0:return t;case a0:return"'"+t.replace(/'/g,"''")+"'";case c0:return"|"+Gy(t,e.indent)+Zy(Uy(t,i));case u0:return">"+Gy(t,e.indent)+Zy(Uy(NT(t,s),i));case Ss:return'"'+jT(t,s)+'"';default:throw new Hi("impossible error: invalid scalar style")}}()}o(RT,"writeScalar");function Gy(e,t){var r=o0(e)?String(t):"",n=e[e.length-1]===`
32
32
  `,i=n&&(e[e.length-2]===`
33
33
  `||e===`
34
34
  `),s=i?"+":n?"":"-";return r+s+`
35
- `}o(Uy,"blockHeader");function zy(e){return e[e.length-1]===`
36
- `?e.slice(0,-1):e}o(zy,"dropEndingNewline");function IT(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,Gy(e.slice(0,l),t)}(),i=e[0]===`
35
+ `}o(Gy,"blockHeader");function Zy(e){return e[e.length-1]===`
36
+ `?e.slice(0,-1):e}o(Zy,"dropEndingNewline");function NT(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,Ky(e.slice(0,l),t)}(),i=e[0]===`
38
38
  `||e[0]===" ",s,a;a=r.exec(e);){var c=a[1],u=a[2];s=u[0]===" ",n+=c+(!i&&!s&&u!==""?`
39
- `:"")+Gy(u,t),i=s}return n}o(IT,"foldString");function Gy(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,a=0,c=0,u="";n=r.exec(e);)c=n.index,c-i>t&&(s=a>i?a:c,u+=`
39
+ `:"")+Ky(u,t),i=s}return n}o(NT,"foldString");function Ky(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,a=0,c=0,u="";n=r.exec(e);)c=n.index,c-i>t&&(s=a>i?a:c,u+=`
40
40
  `+e.slice(i,s),i=s+1),a=c;return u+=`
41
41
  `,e.length-i>t&&a>i?u+=e.slice(i,a)+`
42
- `+e.slice(a+1):u+=e.slice(i),u.slice(1)}o(Gy,"foldLine");function TT(e){for(var t="",r,n,i,s=0;s<e.length;s++){if(r=e.charCodeAt(s),r>=55296&&r<=56319&&(n=e.charCodeAt(s+1),n>=56320&&n<=57343)){t+=Vy((r-55296)*1024+n-56320+65536),s++;continue}i=he[r],t+=!i&&Dn(r)?e[s]:i||Vy(r)}return t}o(TT,"escapeString");function kT(e,t,r){var n="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Fr(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}o(kT,"writeFlowSequence");function CT(e,t,r,n){var i="",s=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)Fr(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Yl(e,t)),e.dump&&Di===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}o(CT,"writeBlockSequence");function RT(e,t,r){var n="",i=e.tag,s=Object.keys(r),a,c,u,l,f;for(a=0,c=s.length;a<c;a+=1)f="",a!==0&&(f+=", "),e.condenseFlow&&(f+='"'),u=s[a],l=r[u],Fr(e,t,u,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Fr(e,t,l,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}o(RT,"writeFlowMapping");function NT(e,t,r,n){var i="",s=e.tag,a=Object.keys(r),c,u,l,f,p,d;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new Fi("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)d="",(!n||c!==0)&&(d+=Yl(e,t)),l=a[c],f=r[l],Fr(e,t+1,l,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&Di===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,p&&(d+=Yl(e,t)),Fr(e,t+1,f,!0,p)&&(e.dump&&Di===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=s,e.dump=i||"{}"}o(NT,"writeBlockMapping");function Zy(e,t,r){var n,i,s,a,c,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,a=i.length;s<a;s+=1)if(c=i[s],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(e.tag=r?c.tag:"?",c.represent){if(u=e.styleMap[c.tag]||c.defaultStyle,Ky.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(Wy.call(c.represent,u))n=c.represent[u](t,u);else throw new Fi("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}o(Zy,"detectType");function Fr(e,t,r,n,i,s){e.tag=null,e.dump=r,Zy(e,r,!1)||Zy(e,r,!0);var a=Ky.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var c=a==="[object Object]"||a==="[object Array]",u,l;if(c&&(u=e.duplicates.indexOf(r),l=u!==-1),(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&t>0)&&(i=!1),l&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(c&&l&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(NT(e,t,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(RT(e,t,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump));else if(a==="[object Array]"){var f=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(CT(e,f,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(kT(e,f,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&AT(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new Fi("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}o(Fr,"writeNode");function jT(e,t){var r=[],n=[],i,s;for(Ql(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}o(jT,"getDuplicateReferences");function Ql(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)Ql(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Ql(e[n[i]],t,r)}o(Ql,"inspectNode");function c0(e,t){t=t||{};var r=new PT(t);return r.noRefs||jT(e,r),Fr(r,0,e,!0,!0)?r.dump+`
43
- `:""}o(c0,"dump");function qT(e,t){return c0(e,Li.extend({schema:iT},t))}o(qT,"safeDump");Xl.exports.dump=c0;Xl.exports.safeDump=qT});var p0=h((T8,K)=>{"use strict";var ys=Fy(),l0=u0();function vs(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}o(vs,"deprecated");K.exports.Type=ne();K.exports.Schema=qr();K.exports.FAILSAFE_SCHEMA=ls();K.exports.JSON_SCHEMA=Ul();K.exports.CORE_SCHEMA=zl();K.exports.DEFAULT_SAFE_SCHEMA=Nn();K.exports.DEFAULT_FULL_SCHEMA=qi();K.exports.load=ys.load;K.exports.loadAll=ys.loadAll;K.exports.safeLoad=ys.safeLoad;K.exports.safeLoadAll=ys.safeLoadAll;K.exports.dump=l0.dump;K.exports.safeDump=l0.safeDump;K.exports.YAMLException=Cn();K.exports.MINIMAL_SCHEMA=ls();K.exports.SAFE_SCHEMA=Nn();K.exports.DEFAULT_SCHEMA=qi();K.exports.scan=vs("scan");K.exports.parse=vs("parse");K.exports.compose=vs("compose");K.exports.addConstructor=vs("addConstructor")});var d0=h((C8,f0)=>{"use strict";var MT=p0();f0.exports=MT});var h0=h((R8,m0)=>{"use strict";var{ParserError:DT}=tt(),LT=d0();m0.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 LT.safeLoad(t)}catch(r){throw new DT(r.message,e.url)}else return t}}});var y0=h((N8,g0)=>{"use strict";var{ParserError:FT}=tt(),VT=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;g0.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&VT.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 FT("data is not text",e.url)}}});var b0=h((j8,v0)=>{"use strict";var HT=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;v0.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&HT.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var $0=h((q8,S0)=>{"use strict";var BT=require("fs"),{ono:ep}=We(),_0=Ce(),{ResolverError:tp}=tt();S0.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 tp(ep.uri(i,`Malformed URI: ${e.url}`),e.url))}try{BT.readFile(n,(i,s)=>{i?r(new tp(ep(i,`Error opening file "${n}"`),n)):t(s)})}catch(i){r(new tp(ep(i,`Error opening file "${n}"`),n))}})}}});var x0=h((M8,O0)=>{"use strict";var UT=require("http"),zT=require("https"),{ono:bs}=We(),Vi=Ce(),{ResolverError:P0}=tt();O0.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return Vi.isHttp(e.url)},read(e){let t=Vi.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=Vi.parse(location.href).protocol),E0(t,this)}};function E0(e,t,r){return new Promise((n,i)=>{e=Vi.parse(e),r=r||[],r.push(e.href),GT(e,t).then(s=>{if(s.statusCode>=400)throw bs({status:s.statusCode},`HTTP ERROR ${s.statusCode}`);if(s.statusCode>=300)if(r.length>t.redirects)i(new P0(bs({status:s.statusCode},`Error downloading ${r[0]}.
42
+ `+e.slice(a+1):u+=e.slice(i),u.slice(1)}o(Ky,"foldLine");function jT(e){for(var t="",r,n,i,s=0;s<e.length;s++){if(r=e.charCodeAt(s),r>=55296&&r<=56319&&(n=e.charCodeAt(s+1),n>=56320&&n<=57343)){t+=By((r-55296)*1024+n-56320+65536),s++;continue}i=he[r],t+=!i&&Fn(r)?e[s]:i||By(r)}return t}o(jT,"escapeString");function qT(e,t,r){var n="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Vr(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}o(qT,"writeFlowSequence");function MT(e,t,r,n){var i="",s=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)Vr(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Ql(e,t)),e.dump&&Fi===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}o(MT,"writeBlockSequence");function DT(e,t,r){var n="",i=e.tag,s=Object.keys(r),a,c,u,l,f;for(a=0,c=s.length;a<c;a+=1)f="",a!==0&&(f+=", "),e.condenseFlow&&(f+='"'),u=s[a],l=r[u],Vr(e,t,u,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Vr(e,t,l,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}o(DT,"writeFlowMapping");function LT(e,t,r,n){var i="",s=e.tag,a=Object.keys(r),c,u,l,f,p,d;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new Hi("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)d="",(!n||c!==0)&&(d+=Ql(e,t)),l=a[c],f=r[l],Vr(e,t+1,l,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&Fi===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,p&&(d+=Ql(e,t)),Vr(e,t+1,f,!0,p)&&(e.dump&&Fi===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=s,e.dump=i||"{}"}o(LT,"writeBlockMapping");function Wy(e,t,r){var n,i,s,a,c,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,a=i.length;s<a;s+=1)if(c=i[s],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(e.tag=r?c.tag:"?",c.represent){if(u=e.styleMap[c.tag]||c.defaultStyle,Yy.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(Jy.call(c.represent,u))n=c.represent[u](t,u);else throw new Hi("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}o(Wy,"detectType");function Vr(e,t,r,n,i,s){e.tag=null,e.dump=r,Wy(e,r,!1)||Wy(e,r,!0);var a=Yy.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var c=a==="[object Object]"||a==="[object Array]",u,l;if(c&&(u=e.duplicates.indexOf(r),l=u!==-1),(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&t>0)&&(i=!1),l&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(c&&l&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(LT(e,t,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(DT(e,t,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump));else if(a==="[object Array]"){var f=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(MT(e,f,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(qT(e,f,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&RT(e,e.dump,t,s);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}o(Vr,"writeNode");function FT(e,t){var r=[],n=[],i,s;for(Xl(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}o(FT,"getDuplicateReferences");function Xl(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)Xl(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Xl(e[n[i]],t,r)}o(Xl,"inspectNode");function l0(e,t){t=t||{};var r=new AT(t);return r.noRefs||FT(e,r),Vr(r,0,e,!0,!0)?r.dump+`
43
+ `:""}o(l0,"dump");function VT(e,t){return l0(e,Vi.extend({schema:uT},t))}o(VT,"safeDump");tp.exports.dump=l0;tp.exports.safeDump=VT});var d0=h((FD,K)=>{"use strict";var _s=Hy(),f0=p0();function Ps(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}o(Ps,"deprecated");K.exports.Type=ne();K.exports.Schema=Mr();K.exports.FAILSAFE_SCHEMA=ms();K.exports.JSON_SCHEMA=Gl();K.exports.CORE_SCHEMA=Zl();K.exports.DEFAULT_SAFE_SCHEMA=qn();K.exports.DEFAULT_FULL_SCHEMA=Di();K.exports.load=_s.load;K.exports.loadAll=_s.loadAll;K.exports.safeLoad=_s.safeLoad;K.exports.safeLoadAll=_s.safeLoadAll;K.exports.dump=f0.dump;K.exports.safeDump=f0.safeDump;K.exports.YAMLException=Nn();K.exports.MINIMAL_SCHEMA=ms();K.exports.SAFE_SCHEMA=qn();K.exports.DEFAULT_SCHEMA=Di();K.exports.scan=Ps("scan");K.exports.parse=Ps("parse");K.exports.compose=Ps("compose");K.exports.addConstructor=Ps("addConstructor")});var h0=h((HD,m0)=>{"use strict";var HT=d0();m0.exports=HT});var y0=h((BD,g0)=>{"use strict";var{ParserError:BT}=rt(),UT=h0();g0.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 UT.safeLoad(t)}catch(r){throw new BT(r.message,e.url)}else return t}}});var b0=h((UD,v0)=>{"use strict";var{ParserError:zT}=rt(),GT=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;v0.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&GT.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 zT("data is not text",e.url)}}});var _0=h((zD,S0)=>{"use strict";var ZT=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;S0.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&ZT.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var O0=h((GD,$0)=>{"use strict";var KT=require("fs"),{ono:rp}=Ye(),P0=Re(),{ResolverError:np}=rt();$0.exports={order:100,canRead(e){return P0.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=P0.toFileSystemPath(e.url)}catch(i){r(new np(rp.uri(i,`Malformed URI: ${e.url}`),e.url))}try{KT.readFile(n,(i,s)=>{i?r(new np(rp(i,`Error opening file "${n}"`),n)):t(s)})}catch(i){r(new np(rp(i,`Error opening file "${n}"`),n))}})}}});var A0=h((ZD,w0)=>{"use strict";var WT=require("http"),YT=require("https"),{ono:$s}=Ye(),Bi=Re(),{ResolverError:E0}=rt();w0.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return Bi.isHttp(e.url)},read(e){let t=Bi.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=Bi.parse(location.href).protocol),x0(t,this)}};function x0(e,t,r){return new Promise((n,i)=>{e=Bi.parse(e),r=r||[],r.push(e.href),JT(e,t).then(s=>{if(s.statusCode>=400)throw $s({status:s.statusCode},`HTTP ERROR ${s.statusCode}`);if(s.statusCode>=300)if(r.length>t.redirects)i(new E0($s({status:s.statusCode},`Error downloading ${r[0]}.
44
44
  Too many redirects:
45
45
  ${r.join(`
46
- `)}`)));else if(s.headers.location){let a=Vi.resolve(e,s.headers.location);E0(a,t,r).then(n,i)}else throw bs({status:s.statusCode},`HTTP ${s.statusCode} redirect with no location header`);else n(s.body||Buffer.alloc(0))}).catch(s=>{i(new P0(bs(s,`Error downloading ${e.href}`),e.href))})})}o(E0,"download");function GT(e,t){return new Promise((r,n)=>{let s=(e.protocol==="https:"?zT:UT).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});typeof s.setTimeout=="function"&&s.setTimeout(t.timeout),s.on("timeout",()=>{s.abort()}),s.on("error",n),s.once("response",a=>{a.body=Buffer.alloc(0),a.on("data",c=>{a.body=Buffer.concat([a.body,Buffer.from(c)])}),a.on("error",n),a.on("end",()=>{r(a)})})})}o(GT,"get")});var ip=h((L8,A0)=>{"use strict";var ZT=Pg(),KT=h0(),WT=y0(),YT=b0(),QT=$0(),JT=x0();A0.exports=np;function np(e){rp(this,np.defaults),rp(this,e)}o(np,"$RefParserOptions");np.defaults={parse:{json:ZT,yaml:KT,text:WT,binary:YT},resolve:{file:QT,http:JT,external:!0},continueOnError:!1,dereference:{circular:!0}};function rp(e,t){if(w0(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],s=t[i],a=e[i];w0(s)?e[i]=rp(a||{},s):s!==void 0&&(e[i]=s)}}return e}o(rp,"merge");function w0(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}o(w0,"isMergeable")});var op=h((V8,T0)=>{"use strict";var I0=ip();T0.exports=XT;function XT(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 I0||(n=new I0(n)),{path:t,schema:r,options:n,callback:i}}o(XT,"normalizeArgs")});var C0=h((B8,k0)=>{"use strict";var sp=ip(),ek=Dl(),tk=Vl(),rk=require("util");k0.exports=_s;function _s(e){sp.call(this,_s.defaults),sp.apply(this,arguments)}o(_s,"ParserOptions");_s.defaults={validate:{schema:ek,spec:tk}};rk.inherits(_s,sp)});var N0=h((z8,R0)=>{"use strict";function nk(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:o(function(t){setTimeout(t,0)},"next")}o(nk,"makeNext");R0.exports=nk()});var ap=h((Z8,q0)=>{"use strict";var j0=N0();q0.exports=o(function(t,r){if(t){r.then(function(n){j0(function(){t(null,n)})},function(n){j0(function(){t(n)})});return}else return r},"maybe")});var Hi=h((W8,L0)=>{"use strict";L0.exports=sr;var cp=Ln(),up=Ce(),{JSONParserError:ik,InvalidPointerError:ok,MissingPointerError:sk,isHandledError:ak}=tt(),ck=/\//g,uk=/~/g,lk=/~1/g,pk=/~0/g;function sr(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}o(sr,"Pointer");sr.prototype.resolve=function(e,t,r){let n=sr.parse(this.path,this.originalPath);this.value=D0(e);for(let i=0;i<n.length;i++){if(Ss(this,t)&&(this.path=sr.join(this.path,n.slice(i))),typeof this.value=="object"&&this.value!==null&&"$ref"in this.value)return this;let s=n[i];if(this.value[s]===void 0||this.value[s]===null)throw this.value=null,new sk(s,this.originalPath);this.value=this.value[s]}return(!this.value||this.value.$ref&&up.resolve(this.path,this.value.$ref)!==r)&&Ss(this,t),this};sr.prototype.set=function(e,t,r){let n=sr.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=D0(e);for(let s=0;s<n.length-1;s++)Ss(this,r),i=n[s],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=M0(this,i,{});return Ss(this,r),i=n[n.length-1],M0(this,i,t),e};sr.parse=function(e,t){let r=up.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(lk,"/").replace(pk,"~"));if(r[0]!=="")throw new ok(r,t===void 0?e:t);return r.slice(1)};sr.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(uk,"~0").replace(ck,"~1"))}return e};function Ss(e,t){if(cp.isAllowed$Ref(e.value,t)){let r=up.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,cp.isExtended$Ref(e.value)?(e.value=cp.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}o(Ss,"resolveIf$Ref");function M0(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 ik(`Error assigning $ref pointer "${e.path}".
47
- Cannot set "${t}" of a non-object.`);return r}o(M0,"setValue");function D0(e){if(ak(e))throw e;return e}o(D0,"unwrapOrThrow")});var Ln=h((Q8,H0)=>{"use strict";H0.exports=$e;var V0=Hi(),{InvalidPointerError:fk,isHandledError:dk,normalizeError:F0}=tt(),{safePointerToPath:mk,stripHash:hk,getHash:gk}=Ce();function $e(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}o($e,"$Ref");$e.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(F0)):this.errors.push(F0(e))};$e.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};$e.prototype.get=function(e,t){return this.resolve(e,t).value};$e.prototype.resolve=function(e,t,r,n){let i=new V0(this,e,r);try{return i.resolve(this.value,t,n)}catch(s){if(!t||!t.continueOnError||!dk(s))throw s;return s.path===null&&(s.path=mk(gk(n))),s instanceof fk&&(s.source=hk(n)),this.addError(s),null}};$e.prototype.set=function(e,t){let r=new V0(this,e);this.value=r.set(this.value,t)};$e.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};$e.isExternal$Ref=function(e){return $e.is$Ref(e)&&e.$ref[0]!=="#"};$e.isAllowed$Ref=function(e,t){if($e.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};$e.isExtended$Ref=function(e){return $e.is$Ref(e)&&Object.keys(e).length>1};$e.dereference=function(e,t){if(t&&typeof t=="object"&&$e.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 G0=h((X8,z0)=>{"use strict";var{ono:B0}=We(),yk=Ln(),ar=Ce();z0.exports=rt;function rt(){this.circular=!1,this._$refs={},this._root$Ref=null}o(rt,"$Refs");rt.prototype.paths=function(e){return U0(this._$refs,arguments).map(r=>r.decoded)};rt.prototype.values=function(e){let t=this._$refs;return U0(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};rt.prototype.toJSON=rt.prototype.values;rt.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};rt.prototype.get=function(e,t){return this._resolve(e,"",t).value};rt.prototype.set=function(e,t){let r=ar.resolve(this._root$Ref.path,e),n=ar.stripHash(r),i=this._$refs[n];if(!i)throw B0(`Error resolving $ref pointer "${e}".
48
- "${n}" not found.`);i.set(r,t)};rt.prototype._add=function(e){let t=ar.stripHash(e),r=new yk;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};rt.prototype._resolve=function(e,t,r){let n=ar.resolve(this._root$Ref.path,e),i=ar.stripHash(n),s=this._$refs[i];if(!s)throw B0(`Error resolving $ref pointer "${e}".
49
- "${i}" not found.`);return s.resolve(n,r,e,t)};rt.prototype._get$Ref=function(e){e=ar.resolve(this._root$Ref.path,e);let t=ar.stripHash(e);return this._$refs[t]};function U0(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"?ar.toFileSystemPath(n,!0):n}))}o(U0,"getPaths")});var K0=h(Bi=>{"use strict";Bi.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};Bi.filter=function(e,t,r){return e.filter(n=>!!Z0(n,t,r))};Bi.sort=function(e){for(let t of e)t.order=t.order||Number.MAX_SAFE_INTEGER;return e.sort((t,r)=>t.order-r.order)};Bi.run=function(e,t,r,n){let i,s,a=0;return new Promise((c,u)=>{l();function l(){if(i=e[a++],!i)return u(s);try{let m=Z0(i,t,r,f,n);if(m&&typeof m.then=="function")m.then(p,d);else if(m!==void 0)p(m);else if(a===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(m){d(m)}}o(l,"runNextPlugin");function f(m,g){m?d(m):p(g)}o(f,"callback");function p(m){c({plugin:i,result:m})}o(p,"onSuccess");function d(m){s={plugin:i,error:m},l()}o(d,"onError")})};function Z0(e,t,r,n,i){let s=e[t];if(typeof s=="function")return s.apply(e,[r,n,i]);if(!n){if(s instanceof RegExp)return s.test(r.url);if(typeof s=="string")return s===r.extension;if(Array.isArray(s))return s.indexOf(r.extension)!==-1}return s}o(Z0,"getResult")});var pp=h((nD,J0)=>{"use strict";var{ono:lp}=We(),W0=Ce(),cr=K0(),{ResolverError:Y0,ParserError:Q0,UnmatchedParserError:vk,UnmatchedResolverError:bk,isHandledError:_k}=tt();J0.exports=Sk;async function Sk(e,t,r){e=W0.stripHash(e);let n=t._add(e),i={url:e,extension:W0.getExtension(e)};try{let s=await $k(i,r,t);n.pathType=s.plugin.name,i.data=s.result;let a=await Pk(i,r,t);return n.value=a.result,a.result}catch(s){throw _k(s)&&(n.value=s),s}}o(Sk,"parse");function $k(e,t,r){return new Promise((n,i)=>{let s=cr.all(t.resolve);s=cr.filter(s,"canRead",e),cr.sort(s),cr.run(s,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new bk(e.url)):!c||!("error"in c)?i(lp.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof Y0?i(c.error):i(new Y0(c,e.url))}o(a,"onError")})}o($k,"readFile");function Pk(e,t,r){return new Promise((n,i)=>{let s=cr.all(t.parse),a=cr.filter(s,"canParse",e),c=a.length>0?a:s;cr.sort(c),cr.run(c,"parse",e,r).then(u,l);function u(f){!f.plugin.allowEmpty&&Ek(f.result)?i(lp.syntax(`Error parsing "${e.url}" as ${f.plugin.name}.
50
- Parsed value is empty`)):n(f)}o(u,"onParsed");function l(f){!f&&t.continueOnError?i(new vk(e.url)):!f||!("error"in f)?i(lp.syntax(`Unable to parse ${e.url}`)):f.error instanceof Q0?i(f.error):i(new Q0(f.error.message,e.url))}o(l,"onError")})}o(Pk,"parseFile");function Ek(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(Ek,"isEmpty")});var rv=h((oD,tv)=>{"use strict";var X0=Ln(),Ok=Hi(),xk=pp(),Ui=Ce(),{isHandledError:wk}=tt();tv.exports=Ak;function Ak(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=fp(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}o(Ak,"resolveExternal");function fp(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(X0.isExternal$Ref(e))i.push(ev(e,t,r,n));else for(let s of Object.keys(e)){let a=Ok.join(t,s),c=e[s];X0.isExternal$Ref(c)?i.push(ev(c,a,r,n)):i=i.concat(fp(c,a,r,n))}return i}o(fp,"crawl");async function ev(e,t,r,n){let i=Ui.resolve(t,e.$ref),s=Ui.stripHash(i);if(e=r._$refs[s],e)return Promise.resolve(e.value);try{let a=await xk(i,r,n),c=fp(a,s+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!wk(a))throw a;return r._$refs[s]&&(a.source=Ui.stripHash(t),a.path=Ui.safePointerToPath(Ui.getHash(t))),[]}}o(ev,"resolve$Ref")});var ov=h((aD,iv)=>{"use strict";var $s=Ln(),zi=Hi(),dp=Ce();iv.exports=Ik;function Ik(e,t){let r=[];mp(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),Tk(r)}o(Ik,"bundle");function mp(e,t,r,n,i,s,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if($s.isAllowed$Ref(u))nv(e,t,r,n,i,s,a,c);else{let l=Object.keys(u).sort((f,p)=>f==="definitions"?-1:p==="definitions"?1:f.length-p.length);for(let f of l){let p=zi.join(r,f),d=zi.join(n,f),m=u[f];$s.isAllowed$Ref(m)?nv(u,f,r,d,i,s,a,c):mp(u,f,p,d,i,s,a,c)}}}o(mp,"crawl");function nv(e,t,r,n,i,s,a,c){let u=t===null?e:e[t],l=dp.resolve(r,u.$ref),f=a._resolve(l,n,c);if(f===null)return;let p=zi.parse(n).length,d=dp.stripHash(f.path),m=dp.getHash(f.path),g=d!==a._root$Ref.path,y=$s.isExtended$Ref(u);i+=f.indirections;let v=kk(s,e,t);if(v)if(p<v.depth||i<v.indirections)Ck(s,v);else return;s.push({$ref:u,parent:e,key:t,pathFromRoot:n,depth:p,file:d,hash:m,value:f.value,circular:f.circular,extended:y,external:g,indirections:i}),v||mp(f.value,null,f.path,n,i+1,s,a,c)}o(nv,"inventory$Ref");function Tk(e){e.sort((i,s)=>{if(i.file!==s.file)return i.file<s.file?-1:1;if(i.hash!==s.hash)return i.hash<s.hash?-1:1;if(i.circular!==s.circular)return i.circular?-1:1;if(i.extended!==s.extended)return i.extended?1:-1;if(i.indirections!==s.indirections)return i.indirections-s.indirections;if(i.depth!==s.depth)return i.depth-s.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),c=s.pathFromRoot.lastIndexOf("/definitions");return a!==c?c-a:i.pathFromRoot.length-s.pathFromRoot.length}});let t,r,n;for(let i of e)i.external?i.file===t&&i.hash===r?i.$ref.$ref=n:i.file===t&&i.hash.indexOf(r+"/")===0?i.$ref.$ref=zi.join(n,zi.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=$s.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}o(Tk,"remap");function kk(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(kk,"findInInventory");function Ck(e,t){let r=e.indexOf(t);e.splice(r,1)}o(Ck,"removeFromInventory")});var yp=h((uD,uv)=>{"use strict";var hp=Ln(),sv=Hi(),{ono:Rk}=We(),Nk=Ce();uv.exports=jk;function jk(e,t){let r=gp(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}o(jk,"dereference");function gp(e,t,r,n,i,s){let a,c={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),hp.isAllowed$Ref(e,s))a=av(e,t,r,n,i,s),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let l=sv.join(t,u),f=sv.join(r,u),p=e[u],d=!1;hp.isAllowed$Ref(p,s)?(a=av(p,l,f,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(p)===-1?(a=gp(p,l,f,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=cv(l,i,s),c.circular=c.circular||d}n.pop()}return c}o(gp,"crawl");function av(e,t,r,n,i,s){let a=Nk.resolve(t,e.$ref),c=i._resolve(a,t,s);if(c===null)return{circular:!1,value:null};let u=c.circular,l=u||n.indexOf(c.value)!==-1;l&&cv(t,i,s);let f=hp.dereference(e,c.value);if(!l){let p=gp(f,c.path,r,n,i,s);l=p.circular,f=p.value}return l&&!u&&s.dereference.circular==="ignore"&&(f=e),u&&(f.$ref=r),{circular:l,value:f}}o(av,"dereference$Ref");function cv(e,t,r){if(t.circular=!0,!r.dereference.circular)throw Rk.reference(`Circular $ref pointer found at ${e}`);return!0}o(cv,"foundCircularReference")});var dv=h((pD,bt)=>{"use strict";var fv=G0(),qk=pp(),Ps=op(),Mk=rv(),Dk=ov(),Lk=yp(),Fn=Ce(),{JSONParserError:Fk,InvalidPointerError:Vk,MissingPointerError:Hk,ResolverError:Bk,ParserError:Uk,UnmatchedParserError:zk,UnmatchedResolverError:Gk,isHandledError:Zk,JSONParserErrorGroup:lv}=tt(),nt=ap(),{ono:pv}=We();bt.exports=vt;bt.exports.default=vt;bt.exports.JSONParserError=Fk;bt.exports.InvalidPointerError=Vk;bt.exports.MissingPointerError=Hk;bt.exports.ResolverError=Bk;bt.exports.ParserError=Uk;bt.exports.UnmatchedParserError=zk;bt.exports.UnmatchedResolverError=Gk;function vt(){this.schema=null,this.$refs=new fv}o(vt,"$RefParser");vt.parse=o(function(t,r,n,i){let s=this,a=new s;return a.parse.apply(a,arguments)},"parse");vt.prototype.parse=o(async function(t,r,n,i){let s=Ps(arguments),a;if(!s.path&&!s.schema){let l=pv(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return nt(s.callback,Promise.reject(l))}this.schema=null,this.$refs=new fv;let c="http";if(Fn.isFileSystemPath(s.path)&&(s.path=Fn.fromFileSystemPath(s.path),c="file"),s.path=Fn.resolve(Fn.cwd(),s.path),s.schema&&typeof s.schema=="object"){let l=this.$refs._add(s.path);l.value=s.schema,l.pathType=c,a=Promise.resolve(s.schema)}else a=qk(s.path,this.$refs,s.options);let u=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return u.schema=l,nt(s.callback,Promise.resolve(u.schema));if(s.options.continueOnError)return u.schema=null,nt(s.callback,Promise.resolve(u.schema));throw pv.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!s.options.continueOnError||!Zk(l)?nt(s.callback,Promise.reject(l)):(this.$refs._$refs[Fn.stripHash(s.path)]&&this.$refs._$refs[Fn.stripHash(s.path)].addError(l),nt(s.callback,Promise.resolve(null)))}},"parse");vt.resolve=o(function(t,r,n,i){let s=this,a=new s;return a.resolve.apply(a,arguments)},"resolve");vt.prototype.resolve=o(async function(t,r,n,i){let s=this,a=Ps(arguments);try{return await this.parse(a.path,a.schema,a.options),await Mk(s,a.options),vp(s),nt(a.callback,Promise.resolve(s.$refs))}catch(c){return nt(a.callback,Promise.reject(c))}},"resolve");vt.bundle=o(function(t,r,n,i){let s=this,a=new s;return a.bundle.apply(a,arguments)},"bundle");vt.prototype.bundle=o(async function(t,r,n,i){let s=this,a=Ps(arguments);try{return await this.resolve(a.path,a.schema,a.options),Dk(s,a.options),vp(s),nt(a.callback,Promise.resolve(s.schema))}catch(c){return nt(a.callback,Promise.reject(c))}},"bundle");vt.dereference=o(function(t,r,n,i){let s=this,a=new s;return a.dereference.apply(a,arguments)},"dereference");vt.prototype.dereference=o(async function(t,r,n,i){let s=this,a=Ps(arguments);try{return await this.resolve(a.path,a.schema,a.options),Lk(s,a.options),vp(s),nt(a.callback,Promise.resolve(s.schema))}catch(c){return nt(a.callback,Promise.reject(c))}},"dereference");function vp(e){if(lv.getParserErrors(e).length>0)throw new lv(e)}o(vp,"finalize")});var vv=h((dD,yv)=>{"use strict";var Kk=Dl(),Wk=Vl(),mv=op(),hv=So(),gv=C0(),Es=ap(),{ono:it}=We(),Vr=dv(),Yk=yp();yv.exports=_t;function _t(){Vr.apply(this,arguments)}o(_t,"SwaggerParser");hv.inherits(_t,Vr);_t.parse=Vr.parse;_t.resolve=Vr.resolve;_t.bundle=Vr.bundle;_t.dereference=Vr.dereference;Object.defineProperty(_t.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});_t.prototype.parse=async function(e,t,r,n){let i=mv(arguments);i.options=new gv(i.options);try{let s=await Vr.prototype.parse.call(this,i.path,i.schema,i.options);if(s.swagger){if(s.swagger===void 0||s.info===void 0||s.paths===void 0)throw it.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof s.swagger=="number")throw it.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof s.info.version=="number")throw it.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(s.swagger!=="2.0")throw it.syntax(`Unrecognized Swagger version: ${s.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(s.openapi===void 0||s.info===void 0)throw it.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(s.paths===void 0)if(s.openapi==="3.1.0"){if(s.webhooks===void 0)throw it.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw it.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof s.openapi=="number")throw it.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof s.info.version=="number")throw it.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(s.openapi)===-1)throw it.syntax(`Unsupported OpenAPI version: ${s.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}hv.fixOasRelativeServers(s,i.path)}return Es(i.callback,Promise.resolve(s))}catch(s){return Es(i.callback,Promise.reject(s))}};_t.validate=function(e,t,r,n){let i=this,s=new i;return s.validate.apply(s,arguments)};_t.prototype.validate=async function(e,t,r,n){let i=this,s=mv(arguments);s.options=new gv(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&&(Kk(i.api),i.$refs.circular)){if(a===!0)Yk(i,s.options);else if(a===!1)throw it.reference("The API contains circular references")}return s.options.validate.spec&&Wk(i.api),Es(s.callback,Promise.resolve(i.schema))}catch(c){return Es(s.callback,Promise.reject(c))}}});var Oe=h(je=>{"use strict";je.__esModule=!0;je.extend=Vb;je.indexOf=DC;je.escapeExpression=LC;je.isEmpty=FC;je.createFrame=VC;je.blockParams=HC;je.appendContextPath=BC;var NC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},jC=/[&<>"'`=]/g,qC=/[&<>"'`=]/;function MC(e){return NC[e]}o(MC,"escapeChar");function Vb(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(Vb,"extend");var Zp=Object.prototype.toString;je.toString=Zp;var Gp=o(function(t){return typeof t=="function"},"isFunction");Gp(/x/)&&(je.isFunction=Gp=o(function(e){return typeof e=="function"&&Zp.call(e)==="[object Function]"},"isFunction"));je.isFunction=Gp;var Hb=Array.isArray||function(e){return e&&typeof e=="object"?Zp.call(e)==="[object Array]":!1};je.isArray=Hb;function DC(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}o(DC,"indexOf");function LC(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return qC.test(e)?e.replace(jC,MC):e}o(LC,"escapeExpression");function FC(e){return!e&&e!==0?!0:!!(Hb(e)&&e.length===0)}o(FC,"isEmpty");function VC(e){var t=Vb({},e);return t._parent=e,t}o(VC,"createFrame");function HC(e,t){return e.path=t,e}o(HC,"blockParams");function BC(e,t){return(e?e+".":"")+t}o(BC,"appendContextPath")});var ze=h((zs,Bb)=>{"use strict";zs.__esModule=!0;var Kp=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Wp(e,t){var r=t&&t.loc,n=void 0,i=void 0,s=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,s=r.start.column,a=r.end.column,e+=" - "+n+":"+s);for(var c=Error.prototype.constructor.call(this,e),u=0;u<Kp.length;u++)this[Kp[u]]=c[Kp[u]];Error.captureStackTrace&&Error.captureStackTrace(this,Wp);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(Wp,"Exception");Wp.prototype=new Error;zs.default=Wp;Bb.exports=zs.default});var zb=h((Gs,Ub)=>{"use strict";Gs.__esModule=!0;var Yp=Oe();Gs.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(Yp.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=Yp.createFrame(r.data);s.contextPath=Yp.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(t,r)})};Ub.exports=Gs.default});var Zb=h((Zs,Gb)=>{"use strict";Zs.__esModule=!0;function UC(e){return e&&e.__esModule?e:{default:e}}o(UC,"_interopRequireDefault");var oo=Oe(),zC=ze(),GC=UC(zC);Zs.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new GC.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,s=0,a="",c=void 0,u=void 0;r.data&&r.ids&&(u=oo.appendContextPath(r.data.contextPath,r.ids[0])+"."),oo.isFunction(t)&&(t=t.call(this)),r.data&&(c=oo.createFrame(r.data));function l(g,y,v){c&&(c.key=g,c.index=y,c.first=y===0,c.last=!!v,u&&(c.contextPath=u+g)),a=a+n(t[g],{data:c,blockParams:oo.blockParams([t[g],g],[u+g,null])})}if(o(l,"execIteration"),t&&typeof t=="object")if(oo.isArray(t))for(var f=t.length;s<f;s++)s in t&&l(s,s,s===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var p=[],d=t[Symbol.iterator](),m=d.next();!m.done;m=d.next())p.push(m.value);t=p;for(var f=t.length;s<f;s++)l(s,s,s===t.length-1)}else(function(){var g=void 0;Object.keys(t).forEach(function(y){g!==void 0&&l(g,s-1),g=y,s++}),g!==void 0&&l(g,s-1,!0)})();return s===0&&(a=i(this)),a})};Gb.exports=Zs.default});var Wb=h((Ks,Kb)=>{"use strict";Ks.__esModule=!0;function ZC(e){return e&&e.__esModule?e:{default:e}}o(ZC,"_interopRequireDefault");var KC=ze(),WC=ZC(KC);Ks.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new WC.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};Kb.exports=Ks.default});var Xb=h((Ws,Jb)=>{"use strict";Ws.__esModule=!0;function YC(e){return e&&e.__esModule?e:{default:e}}o(YC,"_interopRequireDefault");var Yb=Oe(),QC=ze(),Qb=YC(QC);Ws.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new Qb.default("#if requires exactly one argument");return Yb.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||Yb.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new Qb.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};Jb.exports=Ws.default});var t_=h((Ys,e_)=>{"use strict";Ys.__esModule=!0;Ys.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)})};e_.exports=Ys.default});var n_=h((Qs,r_)=>{"use strict";Qs.__esModule=!0;Qs.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};r_.exports=Qs.default});var o_=h((Js,i_)=>{"use strict";Js.__esModule=!0;function JC(e){return e&&e.__esModule?e:{default:e}}o(JC,"_interopRequireDefault");var so=Oe(),XC=ze(),eR=JC(XC);Js.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new eR.default("#with requires exactly one argument");so.isFunction(t)&&(t=t.call(this));var n=r.fn;if(so.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=so.createFrame(r.data),i.contextPath=so.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:so.blockParams([t],[i&&i.contextPath])})})};i_.exports=Js.default});var Qp=h(Xs=>{"use strict";Xs.__esModule=!0;Xs.registerDefaultHelpers=hR;Xs.moveHelperToHooks=gR;function Wr(e){return e&&e.__esModule?e:{default:e}}o(Wr,"_interopRequireDefault");var tR=zb(),rR=Wr(tR),nR=Zb(),iR=Wr(nR),oR=Wb(),sR=Wr(oR),aR=Xb(),cR=Wr(aR),uR=t_(),lR=Wr(uR),pR=n_(),fR=Wr(pR),dR=o_(),mR=Wr(dR);function hR(e){rR.default(e),iR.default(e),sR.default(e),cR.default(e),lR.default(e),fR.default(e),mR.default(e)}o(hR,"registerDefaultHelpers");function gR(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}o(gR,"moveHelperToHooks")});var a_=h((ea,s_)=>{"use strict";ea.__esModule=!0;var yR=Oe();ea.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var s=t;return r.partials||(r.partials={},s=o(function(a,c){var u=n.partials;n.partials=yR.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,s})};s_.exports=ea.default});var c_=h(Jp=>{"use strict";Jp.__esModule=!0;Jp.registerDefaultDecorators=SR;function vR(e){return e&&e.__esModule?e:{default:e}}o(vR,"_interopRequireDefault");var bR=a_(),_R=vR(bR);function SR(e){_R.default(e)}o(SR,"registerDefaultDecorators")});var Xp=h((ta,u_)=>{"use strict";ta.__esModule=!0;var $R=Oe(),Gn={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(t){if(typeof t=="string"){var r=$R.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")};ta.default=Gn;u_.exports=ta.default});var l_=h(ef=>{"use strict";ef.__esModule=!0;ef.createNewLookupObject=ER;var PR=Oe();function ER(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return PR.extend.apply(void 0,[Object.create(null)].concat(t))}o(ER,"createNewLookupObject")});var tf=h(ao=>{"use strict";ao.__esModule=!0;ao.createProtoAccessControl=AR;ao.resultIsAllowed=IR;ao.resetLoggedProperties=kR;function OR(e){return e&&e.__esModule?e:{default:e}}o(OR,"_interopRequireDefault");var p_=l_(),xR=Xp(),wR=OR(xR),ra=Object.create(null);function AR(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:p_.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:p_.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}o(AR,"createProtoAccessControl");function IR(e,t,r){return f_(typeof e=="function"?t.methods:t.properties,r)}o(IR,"resultIsAllowed");function f_(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(TR(t),!1)}o(f_,"checkWhiteList");function TR(e){ra[e]!==!0&&(ra[e]=!0,wR.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
46
+ `)}`)));else if(s.headers.location){let a=Bi.resolve(e,s.headers.location);x0(a,t,r).then(n,i)}else throw $s({status:s.statusCode},`HTTP ${s.statusCode} redirect with no location header`);else n(s.body||Buffer.alloc(0))}).catch(s=>{i(new E0($s(s,`Error downloading ${e.href}`),e.href))})})}o(x0,"download");function JT(e,t){return new Promise((r,n)=>{let s=(e.protocol==="https:"?YT:WT).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});typeof s.setTimeout=="function"&&s.setTimeout(t.timeout),s.on("timeout",()=>{s.abort()}),s.on("error",n),s.once("response",a=>{a.body=Buffer.alloc(0),a.on("data",c=>{a.body=Buffer.concat([a.body,Buffer.from(c)])}),a.on("error",n),a.on("end",()=>{r(a)})})})}o(JT,"get")});var sp=h((WD,T0)=>{"use strict";var QT=Eg(),XT=y0(),ek=b0(),tk=_0(),rk=O0(),nk=A0();T0.exports=op;function op(e){ip(this,op.defaults),ip(this,e)}o(op,"$RefParserOptions");op.defaults={parse:{json:QT,yaml:XT,text:ek,binary:tk},resolve:{file:rk,http:nk,external:!0},continueOnError:!1,dereference:{circular:!0}};function ip(e,t){if(I0(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],s=t[i],a=e[i];I0(s)?e[i]=ip(a||{},s):s!==void 0&&(e[i]=s)}}return e}o(ip,"merge");function I0(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}o(I0,"isMergeable")});var ap=h((JD,C0)=>{"use strict";var k0=sp();C0.exports=ik;function ik(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 k0||(n=new k0(n)),{path:t,schema:r,options:n,callback:i}}o(ik,"normalizeArgs")});var N0=h((XD,R0)=>{"use strict";var cp=sp(),ok=Fl(),sk=Bl(),ak=require("util");R0.exports=Os;function Os(e){cp.call(this,Os.defaults),cp.apply(this,arguments)}o(Os,"ParserOptions");Os.defaults={validate:{schema:ok,spec:sk}};ak.inherits(Os,cp)});var q0=h((t8,j0)=>{"use strict";function ck(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:o(function(t){setTimeout(t,0)},"next")}o(ck,"makeNext");j0.exports=ck()});var up=h((n8,D0)=>{"use strict";var M0=q0();D0.exports=o(function(t,r){if(t){r.then(function(n){M0(function(){t(null,n)})},function(n){M0(function(){t(n)})});return}else return r},"maybe")});var Ui=h((o8,V0)=>{"use strict";V0.exports=sr;var lp=Vn(),pp=Re(),{JSONParserError:uk,InvalidPointerError:lk,MissingPointerError:pk,isHandledError:fk}=rt(),dk=/\//g,mk=/~/g,hk=/~1/g,gk=/~0/g;function sr(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}o(sr,"Pointer");sr.prototype.resolve=function(e,t,r){let n=sr.parse(this.path,this.originalPath);this.value=F0(e);for(let i=0;i<n.length;i++){if(Es(this,t)&&(this.path=sr.join(this.path,n.slice(i))),typeof this.value=="object"&&this.value!==null&&"$ref"in this.value)return this;let s=n[i];if(this.value[s]===void 0||this.value[s]===null)throw this.value=null,new pk(s,this.originalPath);this.value=this.value[s]}return(!this.value||this.value.$ref&&pp.resolve(this.path,this.value.$ref)!==r)&&Es(this,t),this};sr.prototype.set=function(e,t,r){let n=sr.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=F0(e);for(let s=0;s<n.length-1;s++)Es(this,r),i=n[s],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=L0(this,i,{});return Es(this,r),i=n[n.length-1],L0(this,i,t),e};sr.parse=function(e,t){let r=pp.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(hk,"/").replace(gk,"~"));if(r[0]!=="")throw new lk(r,t===void 0?e:t);return r.slice(1)};sr.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(mk,"~0").replace(dk,"~1"))}return e};function Es(e,t){if(lp.isAllowed$Ref(e.value,t)){let r=pp.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,lp.isExtended$Ref(e.value)?(e.value=lp.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}o(Es,"resolveIf$Ref");function L0(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 uk(`Error assigning $ref pointer "${e.path}".
47
+ Cannot set "${t}" of a non-object.`);return r}o(L0,"setValue");function F0(e){if(fk(e))throw e;return e}o(F0,"unwrapOrThrow")});var Vn=h((a8,U0)=>{"use strict";U0.exports=Pe;var B0=Ui(),{InvalidPointerError:yk,isHandledError:vk,normalizeError:H0}=rt(),{safePointerToPath:bk,stripHash:Sk,getHash:_k}=Re();function Pe(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}o(Pe,"$Ref");Pe.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(H0)):this.errors.push(H0(e))};Pe.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};Pe.prototype.get=function(e,t){return this.resolve(e,t).value};Pe.prototype.resolve=function(e,t,r,n){let i=new B0(this,e,r);try{return i.resolve(this.value,t,n)}catch(s){if(!t||!t.continueOnError||!vk(s))throw s;return s.path===null&&(s.path=bk(_k(n))),s instanceof yk&&(s.source=Sk(n)),this.addError(s),null}};Pe.prototype.set=function(e,t){let r=new B0(this,e);this.value=r.set(this.value,t)};Pe.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};Pe.isExternal$Ref=function(e){return Pe.is$Ref(e)&&e.$ref[0]!=="#"};Pe.isAllowed$Ref=function(e,t){if(Pe.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};Pe.isExtended$Ref=function(e){return Pe.is$Ref(e)&&Object.keys(e).length>1};Pe.dereference=function(e,t){if(t&&typeof t=="object"&&Pe.isExtended$Ref(e)){let r={};for(let n of Object.keys(e))n!=="$ref"&&(r[n]=e[n]);for(let n of Object.keys(t))n in r||(r[n]=t[n]);return r}else return t}});var K0=h((u8,Z0)=>{"use strict";var{ono:z0}=Ye(),Pk=Vn(),ar=Re();Z0.exports=nt;function nt(){this.circular=!1,this._$refs={},this._root$Ref=null}o(nt,"$Refs");nt.prototype.paths=function(e){return G0(this._$refs,arguments).map(r=>r.decoded)};nt.prototype.values=function(e){let t=this._$refs;return G0(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};nt.prototype.toJSON=nt.prototype.values;nt.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};nt.prototype.get=function(e,t){return this._resolve(e,"",t).value};nt.prototype.set=function(e,t){let r=ar.resolve(this._root$Ref.path,e),n=ar.stripHash(r),i=this._$refs[n];if(!i)throw z0(`Error resolving $ref pointer "${e}".
48
+ "${n}" not found.`);i.set(r,t)};nt.prototype._add=function(e){let t=ar.stripHash(e),r=new Pk;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};nt.prototype._resolve=function(e,t,r){let n=ar.resolve(this._root$Ref.path,e),i=ar.stripHash(n),s=this._$refs[i];if(!s)throw z0(`Error resolving $ref pointer "${e}".
49
+ "${i}" not found.`);return s.resolve(n,r,e,t)};nt.prototype._get$Ref=function(e){e=ar.resolve(this._root$Ref.path,e);let t=ar.stripHash(e);return this._$refs[t]};function G0(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"?ar.toFileSystemPath(n,!0):n}))}o(G0,"getPaths")});var Y0=h(zi=>{"use strict";zi.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};zi.filter=function(e,t,r){return e.filter(n=>!!W0(n,t,r))};zi.sort=function(e){for(let t of e)t.order=t.order||Number.MAX_SAFE_INTEGER;return e.sort((t,r)=>t.order-r.order)};zi.run=function(e,t,r,n){let i,s,a=0;return new Promise((c,u)=>{l();function l(){if(i=e[a++],!i)return u(s);try{let m=W0(i,t,r,f,n);if(m&&typeof m.then=="function")m.then(p,d);else if(m!==void 0)p(m);else if(a===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(m){d(m)}}o(l,"runNextPlugin");function f(m,g){m?d(m):p(g)}o(f,"callback");function p(m){c({plugin:i,result:m})}o(p,"onSuccess");function d(m){s={plugin:i,error:m},l()}o(d,"onError")})};function W0(e,t,r,n,i){let s=e[t];if(typeof s=="function")return s.apply(e,[r,n,i]);if(!n){if(s instanceof RegExp)return s.test(r.url);if(typeof s=="string")return s===r.extension;if(Array.isArray(s))return s.indexOf(r.extension)!==-1}return s}o(W0,"getResult")});var dp=h((d8,ev)=>{"use strict";var{ono:fp}=Ye(),J0=Re(),cr=Y0(),{ResolverError:Q0,ParserError:X0,UnmatchedParserError:$k,UnmatchedResolverError:Ok,isHandledError:Ek}=rt();ev.exports=xk;async function xk(e,t,r){e=J0.stripHash(e);let n=t._add(e),i={url:e,extension:J0.getExtension(e)};try{let s=await wk(i,r,t);n.pathType=s.plugin.name,i.data=s.result;let a=await Ak(i,r,t);return n.value=a.result,a.result}catch(s){throw Ek(s)&&(n.value=s),s}}o(xk,"parse");function wk(e,t,r){return new Promise((n,i)=>{let s=cr.all(t.resolve);s=cr.filter(s,"canRead",e),cr.sort(s),cr.run(s,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new Ok(e.url)):!c||!("error"in c)?i(fp.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof Q0?i(c.error):i(new Q0(c,e.url))}o(a,"onError")})}o(wk,"readFile");function Ak(e,t,r){return new Promise((n,i)=>{let s=cr.all(t.parse),a=cr.filter(s,"canParse",e),c=a.length>0?a:s;cr.sort(c),cr.run(c,"parse",e,r).then(u,l);function u(f){!f.plugin.allowEmpty&&Ik(f.result)?i(fp.syntax(`Error parsing "${e.url}" as ${f.plugin.name}.
50
+ Parsed value is empty`)):n(f)}o(u,"onParsed");function l(f){!f&&t.continueOnError?i(new $k(e.url)):!f||!("error"in f)?i(fp.syntax(`Unable to parse ${e.url}`)):f.error instanceof X0?i(f.error):i(new X0(f.error.message,e.url))}o(l,"onError")})}o(Ak,"parseFile");function Ik(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(Ik,"isEmpty")});var iv=h((h8,nv)=>{"use strict";var tv=Vn(),Tk=Ui(),kk=dp(),Gi=Re(),{isHandledError:Ck}=rt();nv.exports=Rk;function Rk(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=mp(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}o(Rk,"resolveExternal");function mp(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(tv.isExternal$Ref(e))i.push(rv(e,t,r,n));else for(let s of Object.keys(e)){let a=Tk.join(t,s),c=e[s];tv.isExternal$Ref(c)?i.push(rv(c,a,r,n)):i=i.concat(mp(c,a,r,n))}return i}o(mp,"crawl");async function rv(e,t,r,n){let i=Gi.resolve(t,e.$ref),s=Gi.stripHash(i);if(e=r._$refs[s],e)return Promise.resolve(e.value);try{let a=await kk(i,r,n),c=mp(a,s+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!Ck(a))throw a;return r._$refs[s]&&(a.source=Gi.stripHash(t),a.path=Gi.safePointerToPath(Gi.getHash(t))),[]}}o(rv,"resolve$Ref")});var av=h((y8,sv)=>{"use strict";var xs=Vn(),Zi=Ui(),hp=Re();sv.exports=Nk;function Nk(e,t){let r=[];gp(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),jk(r)}o(Nk,"bundle");function gp(e,t,r,n,i,s,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(xs.isAllowed$Ref(u))ov(e,t,r,n,i,s,a,c);else{let l=Object.keys(u).sort((f,p)=>f==="definitions"?-1:p==="definitions"?1:f.length-p.length);for(let f of l){let p=Zi.join(r,f),d=Zi.join(n,f),m=u[f];xs.isAllowed$Ref(m)?ov(u,f,r,d,i,s,a,c):gp(u,f,p,d,i,s,a,c)}}}o(gp,"crawl");function ov(e,t,r,n,i,s,a,c){let u=t===null?e:e[t],l=hp.resolve(r,u.$ref),f=a._resolve(l,n,c);if(f===null)return;let p=Zi.parse(n).length,d=hp.stripHash(f.path),m=hp.getHash(f.path),g=d!==a._root$Ref.path,y=xs.isExtended$Ref(u);i+=f.indirections;let v=qk(s,e,t);if(v)if(p<v.depth||i<v.indirections)Mk(s,v);else return;s.push({$ref:u,parent:e,key:t,pathFromRoot:n,depth:p,file:d,hash:m,value:f.value,circular:f.circular,extended:y,external:g,indirections:i}),v||gp(f.value,null,f.path,n,i+1,s,a,c)}o(ov,"inventory$Ref");function jk(e){e.sort((i,s)=>{if(i.file!==s.file)return i.file<s.file?-1:1;if(i.hash!==s.hash)return i.hash<s.hash?-1:1;if(i.circular!==s.circular)return i.circular?-1:1;if(i.extended!==s.extended)return i.extended?1:-1;if(i.indirections!==s.indirections)return i.indirections-s.indirections;if(i.depth!==s.depth)return i.depth-s.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),c=s.pathFromRoot.lastIndexOf("/definitions");return a!==c?c-a:i.pathFromRoot.length-s.pathFromRoot.length}});let t,r,n;for(let i of e)i.external?i.file===t&&i.hash===r?i.$ref.$ref=n:i.file===t&&i.hash.indexOf(r+"/")===0?i.$ref.$ref=Zi.join(n,Zi.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=xs.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}o(jk,"remap");function qk(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(qk,"findInInventory");function Mk(e,t){let r=e.indexOf(t);e.splice(r,1)}o(Mk,"removeFromInventory")});var bp=h((b8,pv)=>{"use strict";var yp=Vn(),cv=Ui(),{ono:Dk}=Ye(),Lk=Re();pv.exports=Fk;function Fk(e,t){let r=vp(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}o(Fk,"dereference");function vp(e,t,r,n,i,s){let a,c={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),yp.isAllowed$Ref(e,s))a=uv(e,t,r,n,i,s),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let l=cv.join(t,u),f=cv.join(r,u),p=e[u],d=!1;yp.isAllowed$Ref(p,s)?(a=uv(p,l,f,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(p)===-1?(a=vp(p,l,f,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=lv(l,i,s),c.circular=c.circular||d}n.pop()}return c}o(vp,"crawl");function uv(e,t,r,n,i,s){let a=Lk.resolve(t,e.$ref),c=i._resolve(a,t,s);if(c===null)return{circular:!1,value:null};let u=c.circular,l=u||n.indexOf(c.value)!==-1;l&&lv(t,i,s);let f=yp.dereference(e,c.value);if(!l){let p=vp(f,c.path,r,n,i,s);l=p.circular,f=p.value}return l&&!u&&s.dereference.circular==="ignore"&&(f=e),u&&(f.$ref=r),{circular:l,value:f}}o(uv,"dereference$Ref");function lv(e,t,r){if(t.circular=!0,!r.dereference.circular)throw Dk.reference(`Circular $ref pointer found at ${e}`);return!0}o(lv,"foundCircularReference")});var hv=h((_8,bt)=>{"use strict";var mv=K0(),Vk=dp(),ws=ap(),Hk=iv(),Bk=av(),Uk=bp(),Hn=Re(),{JSONParserError:zk,InvalidPointerError:Gk,MissingPointerError:Zk,ResolverError:Kk,ParserError:Wk,UnmatchedParserError:Yk,UnmatchedResolverError:Jk,isHandledError:Qk,JSONParserErrorGroup:fv}=rt(),it=up(),{ono:dv}=Ye();bt.exports=vt;bt.exports.default=vt;bt.exports.JSONParserError=zk;bt.exports.InvalidPointerError=Gk;bt.exports.MissingPointerError=Zk;bt.exports.ResolverError=Kk;bt.exports.ParserError=Wk;bt.exports.UnmatchedParserError=Yk;bt.exports.UnmatchedResolverError=Jk;function vt(){this.schema=null,this.$refs=new mv}o(vt,"$RefParser");vt.parse=o(function(t,r,n,i){let s=this,a=new s;return a.parse.apply(a,arguments)},"parse");vt.prototype.parse=o(async function(t,r,n,i){let s=ws(arguments),a;if(!s.path&&!s.schema){let l=dv(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return it(s.callback,Promise.reject(l))}this.schema=null,this.$refs=new mv;let c="http";if(Hn.isFileSystemPath(s.path)&&(s.path=Hn.fromFileSystemPath(s.path),c="file"),s.path=Hn.resolve(Hn.cwd(),s.path),s.schema&&typeof s.schema=="object"){let l=this.$refs._add(s.path);l.value=s.schema,l.pathType=c,a=Promise.resolve(s.schema)}else a=Vk(s.path,this.$refs,s.options);let u=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return u.schema=l,it(s.callback,Promise.resolve(u.schema));if(s.options.continueOnError)return u.schema=null,it(s.callback,Promise.resolve(u.schema));throw dv.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!s.options.continueOnError||!Qk(l)?it(s.callback,Promise.reject(l)):(this.$refs._$refs[Hn.stripHash(s.path)]&&this.$refs._$refs[Hn.stripHash(s.path)].addError(l),it(s.callback,Promise.resolve(null)))}},"parse");vt.resolve=o(function(t,r,n,i){let s=this,a=new s;return a.resolve.apply(a,arguments)},"resolve");vt.prototype.resolve=o(async function(t,r,n,i){let s=this,a=ws(arguments);try{return await this.parse(a.path,a.schema,a.options),await Hk(s,a.options),Sp(s),it(a.callback,Promise.resolve(s.$refs))}catch(c){return it(a.callback,Promise.reject(c))}},"resolve");vt.bundle=o(function(t,r,n,i){let s=this,a=new s;return a.bundle.apply(a,arguments)},"bundle");vt.prototype.bundle=o(async function(t,r,n,i){let s=this,a=ws(arguments);try{return await this.resolve(a.path,a.schema,a.options),Bk(s,a.options),Sp(s),it(a.callback,Promise.resolve(s.schema))}catch(c){return it(a.callback,Promise.reject(c))}},"bundle");vt.dereference=o(function(t,r,n,i){let s=this,a=new s;return a.dereference.apply(a,arguments)},"dereference");vt.prototype.dereference=o(async function(t,r,n,i){let s=this,a=ws(arguments);try{return await this.resolve(a.path,a.schema,a.options),Uk(s,a.options),Sp(s),it(a.callback,Promise.resolve(s.schema))}catch(c){return it(a.callback,Promise.reject(c))}},"dereference");function Sp(e){if(fv.getParserErrors(e).length>0)throw new fv(e)}o(Sp,"finalize")});var Sv=h(($8,bv)=>{"use strict";var Xk=Fl(),eC=Bl(),gv=ap(),yv=Eo(),vv=N0(),As=up(),{ono:ot}=Ye(),Hr=hv(),tC=bp();bv.exports=St;function St(){Hr.apply(this,arguments)}o(St,"SwaggerParser");yv.inherits(St,Hr);St.parse=Hr.parse;St.resolve=Hr.resolve;St.bundle=Hr.bundle;St.dereference=Hr.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=gv(arguments);i.options=new vv(i.options);try{let s=await Hr.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 ot.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof s.swagger=="number")throw ot.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof s.info.version=="number")throw ot.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(s.swagger!=="2.0")throw ot.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 ot.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 ot.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw ot.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof s.openapi=="number")throw ot.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof s.info.version=="number")throw ot.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(s.openapi)===-1)throw ot.syntax(`Unsupported OpenAPI version: ${s.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}yv.fixOasRelativeServers(s,i.path)}return As(i.callback,Promise.resolve(s))}catch(s){return As(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=gv(arguments);s.options=new vv(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&&(Xk(i.api),i.$refs.circular)){if(a===!0)tC(i,s.options);else if(a===!1)throw ot.reference("The API contains circular references")}return s.options.validate.spec&&eC(i.api),As(s.callback,Promise.resolve(i.schema))}catch(c){return As(s.callback,Promise.reject(c))}}});var xe=h(qe=>{"use strict";qe.__esModule=!0;qe.extend=Gb;qe.indexOf=BC;qe.escapeExpression=UC;qe.isEmpty=zC;qe.createFrame=GC;qe.blockParams=ZC;qe.appendContextPath=KC;var LC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},FC=/[&<>"'`=]/g,VC=/[&<>"'`=]/;function HC(e){return LC[e]}o(HC,"escapeChar");function Gb(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(Gb,"extend");var Wp=Object.prototype.toString;qe.toString=Wp;var Kp=o(function(t){return typeof t=="function"},"isFunction");Kp(/x/)&&(qe.isFunction=Kp=o(function(e){return typeof e=="function"&&Wp.call(e)==="[object Function]"},"isFunction"));qe.isFunction=Kp;var Zb=Array.isArray||function(e){return e&&typeof e=="object"?Wp.call(e)==="[object Array]":!1};qe.isArray=Zb;function BC(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}o(BC,"indexOf");function UC(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return VC.test(e)?e.replace(FC,HC):e}o(UC,"escapeExpression");function zC(e){return!e&&e!==0?!0:!!(Zb(e)&&e.length===0)}o(zC,"isEmpty");function GC(e){var t=Gb({},e);return t._parent=e,t}o(GC,"createFrame");function ZC(e,t){return e.path=t,e}o(ZC,"blockParams");function KC(e,t){return(e?e+".":"")+t}o(KC,"appendContextPath")});var Ge=h((Ws,Kb)=>{"use strict";Ws.__esModule=!0;var Yp=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Jp(e,t){var r=t&&t.loc,n=void 0,i=void 0,s=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,s=r.start.column,a=r.end.column,e+=" - "+n+":"+s);for(var c=Error.prototype.constructor.call(this,e),u=0;u<Yp.length;u++)this[Yp[u]]=c[Yp[u]];Error.captureStackTrace&&Error.captureStackTrace(this,Jp);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(Jp,"Exception");Jp.prototype=new Error;Ws.default=Jp;Kb.exports=Ws.default});var Yb=h((Ys,Wb)=>{"use strict";Ys.__esModule=!0;var Qp=xe();Ys.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(Qp.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=Qp.createFrame(r.data);s.contextPath=Qp.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(t,r)})};Wb.exports=Ys.default});var Qb=h((Js,Jb)=>{"use strict";Js.__esModule=!0;function WC(e){return e&&e.__esModule?e:{default:e}}o(WC,"_interopRequireDefault");var co=xe(),YC=Ge(),JC=WC(YC);Js.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new JC.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,s=0,a="",c=void 0,u=void 0;r.data&&r.ids&&(u=co.appendContextPath(r.data.contextPath,r.ids[0])+"."),co.isFunction(t)&&(t=t.call(this)),r.data&&(c=co.createFrame(r.data));function l(g,y,v){c&&(c.key=g,c.index=y,c.first=y===0,c.last=!!v,u&&(c.contextPath=u+g)),a=a+n(t[g],{data:c,blockParams:co.blockParams([t[g],g],[u+g,null])})}if(o(l,"execIteration"),t&&typeof t=="object")if(co.isArray(t))for(var f=t.length;s<f;s++)s in t&&l(s,s,s===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var p=[],d=t[Symbol.iterator](),m=d.next();!m.done;m=d.next())p.push(m.value);t=p;for(var f=t.length;s<f;s++)l(s,s,s===t.length-1)}else(function(){var g=void 0;Object.keys(t).forEach(function(y){g!==void 0&&l(g,s-1),g=y,s++}),g!==void 0&&l(g,s-1,!0)})();return s===0&&(a=i(this)),a})};Jb.exports=Js.default});var eS=h((Qs,Xb)=>{"use strict";Qs.__esModule=!0;function QC(e){return e&&e.__esModule?e:{default:e}}o(QC,"_interopRequireDefault");var XC=Ge(),eR=QC(XC);Qs.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new eR.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};Xb.exports=Qs.default});var iS=h((Xs,nS)=>{"use strict";Xs.__esModule=!0;function tR(e){return e&&e.__esModule?e:{default:e}}o(tR,"_interopRequireDefault");var tS=xe(),rR=Ge(),rS=tR(rR);Xs.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new rS.default("#if requires exactly one argument");return tS.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||tS.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new rS.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};nS.exports=Xs.default});var sS=h((ea,oS)=>{"use strict";ea.__esModule=!0;ea.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)})};oS.exports=ea.default});var cS=h((ta,aS)=>{"use strict";ta.__esModule=!0;ta.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};aS.exports=ta.default});var lS=h((ra,uS)=>{"use strict";ra.__esModule=!0;function nR(e){return e&&e.__esModule?e:{default:e}}o(nR,"_interopRequireDefault");var uo=xe(),iR=Ge(),oR=nR(iR);ra.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new oR.default("#with requires exactly one argument");uo.isFunction(t)&&(t=t.call(this));var n=r.fn;if(uo.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=uo.createFrame(r.data),i.contextPath=uo.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:uo.blockParams([t],[i&&i.contextPath])})})};uS.exports=ra.default});var Xp=h(na=>{"use strict";na.__esModule=!0;na.registerDefaultHelpers=SR;na.moveHelperToHooks=_R;function Yr(e){return e&&e.__esModule?e:{default:e}}o(Yr,"_interopRequireDefault");var sR=Yb(),aR=Yr(sR),cR=Qb(),uR=Yr(cR),lR=eS(),pR=Yr(lR),fR=iS(),dR=Yr(fR),mR=sS(),hR=Yr(mR),gR=cS(),yR=Yr(gR),vR=lS(),bR=Yr(vR);function SR(e){aR.default(e),uR.default(e),pR.default(e),dR.default(e),hR.default(e),yR.default(e),bR.default(e)}o(SR,"registerDefaultHelpers");function _R(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}o(_R,"moveHelperToHooks")});var fS=h((ia,pS)=>{"use strict";ia.__esModule=!0;var PR=xe();ia.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var s=t;return r.partials||(r.partials={},s=o(function(a,c){var u=n.partials;n.partials=PR.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,s})};pS.exports=ia.default});var dS=h(ef=>{"use strict";ef.__esModule=!0;ef.registerDefaultDecorators=xR;function $R(e){return e&&e.__esModule?e:{default:e}}o($R,"_interopRequireDefault");var OR=fS(),ER=$R(OR);function xR(e){ER.default(e)}o(xR,"registerDefaultDecorators")});var tf=h((oa,mS)=>{"use strict";oa.__esModule=!0;var wR=xe(),Kn={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(t){if(typeof t=="string"){var r=wR.indexOf(Kn.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:o(function(t){if(t=Kn.lookupLevel(t),typeof console<"u"&&Kn.lookupLevel(Kn.level)<=t){var r=Kn.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")};oa.default=Kn;mS.exports=oa.default});var hS=h(rf=>{"use strict";rf.__esModule=!0;rf.createNewLookupObject=IR;var AR=xe();function IR(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return AR.extend.apply(void 0,[Object.create(null)].concat(t))}o(IR,"createNewLookupObject")});var nf=h(lo=>{"use strict";lo.__esModule=!0;lo.createProtoAccessControl=RR;lo.resultIsAllowed=NR;lo.resetLoggedProperties=qR;function TR(e){return e&&e.__esModule?e:{default:e}}o(TR,"_interopRequireDefault");var gS=hS(),kR=tf(),CR=TR(kR),sa=Object.create(null);function RR(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:gS.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:gS.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}o(RR,"createProtoAccessControl");function NR(e,t,r){return yS(typeof e=="function"?t.methods:t.properties,r)}o(NR,"resultIsAllowed");function yS(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(jR(t),!1)}o(yS,"checkWhiteList");function jR(e){sa[e]!==!0&&(sa[e]=!0,CR.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`))}o(TR,"logUnexpecedPropertyAccessOnce");function kR(){Object.keys(ra).forEach(function(e){delete ra[e]})}o(kR,"resetLoggedProperties")});var ia=h(At=>{"use strict";At.__esModule=!0;At.HandlebarsEnvironment=of;function d_(e){return e&&e.__esModule?e:{default:e}}o(d_,"_interopRequireDefault");var Yr=Oe(),CR=ze(),rf=d_(CR),RR=Qp(),NR=c_(),jR=Xp(),na=d_(jR),qR=tf(),MR="4.7.8";At.VERSION=MR;var DR=8;At.COMPILER_REVISION=DR;var LR=7;At.LAST_COMPATIBLE_COMPILER_REVISION=LR;var FR={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"};At.REVISION_CHANGES=FR;var nf="[object Object]";function of(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},RR.registerDefaultHelpers(this),NR.registerDefaultDecorators(this)}o(of,"HandlebarsEnvironment");of.prototype={constructor:of,logger:na.default,log:na.default.log,registerHelper:o(function(t,r){if(Yr.toString.call(t)===nf){if(r)throw new rf.default("Arg not supported with multiple helpers");Yr.extend(this.helpers,t)}else this.helpers[t]=r},"registerHelper"),unregisterHelper:o(function(t){delete this.helpers[t]},"unregisterHelper"),registerPartial:o(function(t,r){if(Yr.toString.call(t)===nf)Yr.extend(this.partials,t);else{if(typeof r>"u")throw new rf.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},"registerPartial"),unregisterPartial:o(function(t){delete this.partials[t]},"unregisterPartial"),registerDecorator:o(function(t,r){if(Yr.toString.call(t)===nf){if(r)throw new rf.default("Arg not supported with multiple decorators");Yr.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:o(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){qR.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var VR=na.default.log;At.log=VR;At.createFrame=Yr.createFrame;At.logger=na.default});var h_=h((oa,m_)=>{"use strict";oa.__esModule=!0;function sf(e){this.string=e}o(sf,"SafeString");sf.prototype.toString=sf.prototype.toHTML=function(){return""+this.string};oa.default=sf;m_.exports=oa.default});var g_=h(af=>{"use strict";af.__esModule=!0;af.wrapHelper=HR;function HR(e,t){if(typeof e!="function")return e;var r=o(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=t(i),e.apply(this,arguments)},"wrapper");return r}o(HR,"wrapHelper")});var S_=h(yr=>{"use strict";yr.__esModule=!0;yr.checkRevision=KR;yr.template=WR;yr.wrapProgram=sa;yr.resolvePartial=YR;yr.invokePartial=QR;yr.noop=b_;function BR(e){return e&&e.__esModule?e:{default:e}}o(BR,"_interopRequireDefault");function UR(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(UR,"_interopRequireWildcard");var zR=Oe(),Lt=UR(zR),GR=ze(),Ft=BR(GR),Vt=ia(),y_=Qp(),ZR=g_(),v_=tf();function KR(e){var t=e&&e[0]||1,r=Vt.COMPILER_REVISION;if(!(t>=Vt.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Vt.COMPILER_REVISION))if(t<Vt.LAST_COMPATIBLE_COMPILER_REVISION){var n=Vt.REVISION_CHANGES[r],i=Vt.REVISION_CHANGES[t];throw new Ft.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 Ft.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}o(KR,"checkRevision");function WR(e,t){if(!t)throw new Ft.default("No environment passed to template");if(!e||!e.main)throw new Ft.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&e.compiler[0]===7;function n(a,c,u){u.hash&&(c=Lt.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,c,u);var l=Lt.extend({},u,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),f=t.VM.invokePartial.call(this,a,c,l);if(f==null&&t.compile&&(u.partials[u.name]=t.compile(a,e.compilerOptions,t),f=u.partials[u.name](c,l)),f!=null){if(u.indent){for(var p=f.split(`
52
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(jR,"logUnexpecedPropertyAccessOnce");function qR(){Object.keys(sa).forEach(function(e){delete sa[e]})}o(qR,"resetLoggedProperties")});var ca=h(At=>{"use strict";At.__esModule=!0;At.HandlebarsEnvironment=af;function vS(e){return e&&e.__esModule?e:{default:e}}o(vS,"_interopRequireDefault");var Jr=xe(),MR=Ge(),of=vS(MR),DR=Xp(),LR=dS(),FR=tf(),aa=vS(FR),VR=nf(),HR="4.7.8";At.VERSION=HR;var BR=8;At.COMPILER_REVISION=BR;var UR=7;At.LAST_COMPATIBLE_COMPILER_REVISION=UR;var zR={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"};At.REVISION_CHANGES=zR;var sf="[object Object]";function af(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},DR.registerDefaultHelpers(this),LR.registerDefaultDecorators(this)}o(af,"HandlebarsEnvironment");af.prototype={constructor:af,logger:aa.default,log:aa.default.log,registerHelper:o(function(t,r){if(Jr.toString.call(t)===sf){if(r)throw new of.default("Arg not supported with multiple helpers");Jr.extend(this.helpers,t)}else this.helpers[t]=r},"registerHelper"),unregisterHelper:o(function(t){delete this.helpers[t]},"unregisterHelper"),registerPartial:o(function(t,r){if(Jr.toString.call(t)===sf)Jr.extend(this.partials,t);else{if(typeof r>"u")throw new of.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},"registerPartial"),unregisterPartial:o(function(t){delete this.partials[t]},"unregisterPartial"),registerDecorator:o(function(t,r){if(Jr.toString.call(t)===sf){if(r)throw new of.default("Arg not supported with multiple decorators");Jr.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:o(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){VR.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var GR=aa.default.log;At.log=GR;At.createFrame=Jr.createFrame;At.logger=aa.default});var SS=h((ua,bS)=>{"use strict";ua.__esModule=!0;function cf(e){this.string=e}o(cf,"SafeString");cf.prototype.toString=cf.prototype.toHTML=function(){return""+this.string};ua.default=cf;bS.exports=ua.default});var _S=h(uf=>{"use strict";uf.__esModule=!0;uf.wrapHelper=ZR;function ZR(e,t){if(typeof e!="function")return e;var r=o(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=t(i),e.apply(this,arguments)},"wrapper");return r}o(ZR,"wrapHelper")});var xS=h(vr=>{"use strict";vr.__esModule=!0;vr.checkRevision=XR;vr.template=eN;vr.wrapProgram=la;vr.resolvePartial=tN;vr.invokePartial=rN;vr.noop=OS;function KR(e){return e&&e.__esModule?e:{default:e}}o(KR,"_interopRequireDefault");function WR(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(WR,"_interopRequireWildcard");var YR=xe(),Vt=WR(YR),JR=Ge(),Ht=KR(JR),Bt=ca(),PS=Xp(),QR=_S(),$S=nf();function XR(e){var t=e&&e[0]||1,r=Bt.COMPILER_REVISION;if(!(t>=Bt.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Bt.COMPILER_REVISION))if(t<Bt.LAST_COMPATIBLE_COMPILER_REVISION){var n=Bt.REVISION_CHANGES[r],i=Bt.REVISION_CHANGES[t];throw new Ht.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 Ht.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}o(XR,"checkRevision");function eN(e,t){if(!t)throw new Ht.default("No environment passed to template");if(!e||!e.main)throw new Ht.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&e.compiler[0]===7;function n(a,c,u){u.hash&&(c=Vt.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,c,u);var l=Vt.extend({},u,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),f=t.VM.invokePartial.call(this,a,c,l);if(f==null&&t.compile&&(u.partials[u.name]=t.compile(a,e.compilerOptions,t),f=u.partials[u.name](c,l)),f!=null){if(u.indent){for(var p=f.split(`
53
53
  `),d=0,m=p.length;d<m&&!(!p[d]&&d+1===m);d++)p[d]=u.indent+p[d];f=p.join(`
54
- `)}return f}else throw new Ft.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var i={strict:o(function(c,u,l){if(!c||!(u in c))throw new Ft.default('"'+u+'" not defined in '+c,{loc:l});return i.lookupProperty(c,u)},"strict"),lookupProperty:o(function(c,u){var l=c[u];if(l==null||Object.prototype.hasOwnProperty.call(c,u)||v_.resultIsAllowed(l,i.protoAccessControl,u))return l},"lookupProperty"),lookup:o(function(c,u){for(var l=c.length,f=0;f<l;f++){var p=c[f]&&i.lookupProperty(c[f],u);if(p!=null)return c[f][u]}},"lookup"),lambda:o(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:Lt.escapeExpression,invokePartial:n,fn:o(function(c){var u=e[c];return u.decorator=e[c+"_d"],u},"fn"),programs:[],program:o(function(c,u,l,f,p){var d=this.programs[c],m=this.fn(c);return u||p||f||l?d=sa(this,c,m,u,l,f,p):d||(d=this.programs[c]=sa(this,c,m)),d},"program"),data:o(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,u){var l=c||u;return c&&u&&c!==u&&(l=Lt.extend({},u,c)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;s._setup(c),!c.partial&&e.useData&&(u=JR(a,u));var l=void 0,f=e.useBlockParams?[]:void 0;e.useDepths&&(c.depths?l=a!=c.depths[0]?[a].concat(c.depths):c.depths:l=[a]);function p(d){return""+e.main(i,d,i.helpers,i.partials,u,f,l)}return o(p,"main"),p=__(e.main,p,i,c.depths||[],u,f),p(a,c)}return o(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var c=Lt.extend({},t.helpers,a.helpers);XR(c,i),i.helpers=c,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=Lt.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=v_.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;y_.moveHelperToHooks(i,"helperMissing",u),y_.moveHelperToHooks(i,"blockHelperMissing",u)}},s._child=function(a,c,u,l){if(e.useBlockParams&&!u)throw new Ft.default("must pass block params");if(e.useDepths&&!l)throw new Ft.default("must pass parent depths");return sa(i,a,e[a],c,0,u,l)},s}o(WR,"template");function sa(e,t,r,n,i,s,a){function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a;return a&&u!=a[0]&&!(u===e.nullContext&&a[0]===null)&&(f=[u].concat(a)),r(e,u,e.helpers,e.partials,l.data||n,s&&[l.blockParams].concat(s),f)}return o(c,"prog"),c=__(r,c,e,a,n,s),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}o(sa,"wrapProgram");function YR(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(YR,"resolvePartial");function QR(e,t,r){var n=r.data&&r.data["partial-block"];r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var i=void 0;if(r.fn&&r.fn!==b_&&function(){r.data=Vt.createFrame(r.data);var s=r.fn;i=r.data["partial-block"]=o(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=Vt.createFrame(u.data),u.data["partial-block"]=n,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=Lt.extend({},r.partials,s.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new Ft.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}o(QR,"invokePartial");function b_(){return""}o(b_,"noop");function JR(e,t){return(!t||!("root"in t))&&(t=t?Vt.createFrame(t):{},t.root=e),t}o(JR,"initData");function __(e,t,r,n,i,s){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,s,n),Lt.extend(t,a)}return t}o(__,"executeDecorators");function XR(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=eN(n,t)})}o(XR,"wrapHelpersToPassLookupProperty");function eN(e,t){var r=t.lookupProperty;return ZR.wrapHelper(e,function(n){return Lt.extend({lookupProperty:r},n)})}o(eN,"passLookupPropertyOption")});var cf=h((aa,$_)=>{"use strict";aa.__esModule=!0;aa.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}};$_.exports=aa.default});var w_=h((ca,x_)=>{"use strict";ca.__esModule=!0;function lf(e){return e&&e.__esModule?e:{default:e}}o(lf,"_interopRequireDefault");function pf(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(pf,"_interopRequireWildcard");var tN=ia(),P_=pf(tN),rN=h_(),nN=lf(rN),iN=ze(),oN=lf(iN),sN=Oe(),uf=pf(sN),aN=S_(),E_=pf(aN),cN=cf(),uN=lf(cN);function O_(){var e=new P_.HandlebarsEnvironment;return uf.extend(e,P_),e.SafeString=nN.default,e.Exception=oN.default,e.Utils=uf,e.escapeExpression=uf.escapeExpression,e.VM=E_,e.template=function(t){return E_.template(t,e)},e}o(O_,"create");var co=O_();co.create=O_;uN.default(co);co.default=co;ca.default=co;x_.exports=ca.default});var ff=h((ua,I_)=>{"use strict";ua.__esModule=!0;var A_={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&&!A_.helpers.scopedId(t)&&!t.depth},"simpleId")}};ua.default=A_;I_.exports=ua.default});var k_=h((la,T_)=>{"use strict";la.__esModule=!0;var lN=function(){var e={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:o(function(i,s,a,c,u,l,f){var p=l.length-1;switch(u){case 1:return l[p-1];case 2:this.$=c.prepareProgram(l[p]);break;case 3:this.$=l[p];break;case 4:this.$=l[p];break;case 5:this.$=l[p];break;case 6:this.$=l[p];break;case 7:this.$=l[p];break;case 8:this.$=l[p];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(l[p]),strip:c.stripFlags(l[p],l[p]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[p],value:l[p],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(l[p-2],l[p-1],l[p],this._$);break;case 12:this.$={path:l[p-3],params:l[p-2],hash:l[p-1]};break;case 13:this.$=c.prepareBlock(l[p-3],l[p-2],l[p-1],l[p],!1,this._$);break;case 14:this.$=c.prepareBlock(l[p-3],l[p-2],l[p-1],l[p],!0,this._$);break;case 15:this.$={open:l[p-5],path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:c.stripFlags(l[p-5],l[p])};break;case 16:this.$={path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:c.stripFlags(l[p-5],l[p])};break;case 17:this.$={path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:c.stripFlags(l[p-5],l[p])};break;case 18:this.$={strip:c.stripFlags(l[p-1],l[p-1]),program:l[p]};break;case 19:var d=c.prepareBlock(l[p-2],l[p-1],l[p],l[p],!1,this._$),m=c.prepareProgram([d],l[p-1].loc);m.chained=!0,this.$={strip:l[p-2].strip,program:m,chain:!0};break;case 20:this.$=l[p];break;case 21:this.$={path:l[p-1],strip:c.stripFlags(l[p-2],l[p])};break;case 22:this.$=c.prepareMustache(l[p-3],l[p-2],l[p-1],l[p-4],c.stripFlags(l[p-4],l[p]),this._$);break;case 23:this.$=c.prepareMustache(l[p-3],l[p-2],l[p-1],l[p-4],c.stripFlags(l[p-4],l[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[p-3],params:l[p-2],hash:l[p-1],indent:"",strip:c.stripFlags(l[p-4],l[p]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(l[p-2],l[p-1],l[p],this._$);break;case 26:this.$={path:l[p-3],params:l[p-2],hash:l[p-1],strip:c.stripFlags(l[p-4],l[p])};break;case 27:this.$=l[p];break;case 28:this.$=l[p];break;case 29:this.$={type:"SubExpression",path:l[p-3],params:l[p-2],hash:l[p-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[p],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(l[p-2]),value:l[p],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(l[p-1]);break;case 33:this.$=l[p];break;case 34:this.$=l[p];break;case 35:this.$={type:"StringLiteral",value:l[p],original:l[p],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[p]),original:Number(l[p]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[p]==="true",original:l[p]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=l[p];break;case 41:this.$=l[p];break;case 42:this.$=c.preparePath(!0,l[p],this._$);break;case 43:this.$=c.preparePath(!1,l[p],this._$);break;case 44:l[p-2].push({part:c.id(l[p]),original:l[p],separator:l[p-1]}),this.$=l[p-2];break;case 45:this.$=[{part:c.id(l[p]),original:l[p]}];break;case 46:this.$=[];break;case 47:l[p-1].push(l[p]);break;case 48:this.$=[];break;case 49:l[p-1].push(l[p]);break;case 50:this.$=[];break;case 51:l[p-1].push(l[p]);break;case 58:this.$=[];break;case 59:l[p-1].push(l[p]);break;case 64:this.$=[];break;case 65:l[p-1].push(l[p]);break;case 70:this.$=[];break;case 71:l[p-1].push(l[p]);break;case 78:this.$=[];break;case 79:l[p-1].push(l[p]);break;case 82:this.$=[];break;case 83:l[p-1].push(l[p]);break;case 86:this.$=[];break;case 87:l[p-1].push(l[p]);break;case 90:this.$=[];break;case 91:l[p-1].push(l[p]);break;case 94:this.$=[];break;case 95:l[p-1].push(l[p]);break;case 98:this.$=[l[p]];break;case 99:l[p-1].push(l[p]);break;case 100:this.$=[l[p]];break;case 101:l[p-1].push(l[p]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:o(function(i,s){throw new Error(i)},"parseError"),parse:o(function(i){var s=this,a=[0],c=[null],u=[],l=this.table,f="",p=0,d=0,m=0,g=2,y=1;this.lexer.setInput(i),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var v=this.lexer.yylloc;u.push(v);var b=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function _(ut){a.length=a.length-2*ut,c.length=c.length-ut,u.length=u.length-ut}o(_,"popStack");function E(){var ut;return ut=s.lexer.lex()||1,typeof ut!="number"&&(ut=s.symbols_[ut]||ut),ut}o(E,"lex");for(var $,S,D,R,se,J,G={},ve,be,Gt,tn;;){if(D=a[a.length-1],this.defaultActions[D]?R=this.defaultActions[D]:(($===null||typeof $>"u")&&($=E()),R=l[D]&&l[D][$]),typeof R>"u"||!R.length||!R[0]){var Ia="";if(!m){tn=[];for(ve in l[D])this.terminals_[ve]&&ve>2&&tn.push("'"+this.terminals_[ve]+"'");this.lexer.showPosition?Ia="Parse error on line "+(p+1)+`:
54
+ `)}return f}else throw new Ht.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var i={strict:o(function(c,u,l){if(!c||!(u in c))throw new Ht.default('"'+u+'" not defined in '+c,{loc:l});return i.lookupProperty(c,u)},"strict"),lookupProperty:o(function(c,u){var l=c[u];if(l==null||Object.prototype.hasOwnProperty.call(c,u)||$S.resultIsAllowed(l,i.protoAccessControl,u))return l},"lookupProperty"),lookup:o(function(c,u){for(var l=c.length,f=0;f<l;f++){var p=c[f]&&i.lookupProperty(c[f],u);if(p!=null)return c[f][u]}},"lookup"),lambda:o(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:Vt.escapeExpression,invokePartial:n,fn:o(function(c){var u=e[c];return u.decorator=e[c+"_d"],u},"fn"),programs:[],program:o(function(c,u,l,f,p){var d=this.programs[c],m=this.fn(c);return u||p||f||l?d=la(this,c,m,u,l,f,p):d||(d=this.programs[c]=la(this,c,m)),d},"program"),data:o(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,u){var l=c||u;return c&&u&&c!==u&&(l=Vt.extend({},u,c)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;s._setup(c),!c.partial&&e.useData&&(u=nN(a,u));var l=void 0,f=e.useBlockParams?[]:void 0;e.useDepths&&(c.depths?l=a!=c.depths[0]?[a].concat(c.depths):c.depths:l=[a]);function p(d){return""+e.main(i,d,i.helpers,i.partials,u,f,l)}return o(p,"main"),p=ES(e.main,p,i,c.depths||[],u,f),p(a,c)}return o(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var c=Vt.extend({},t.helpers,a.helpers);iN(c,i),i.helpers=c,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=Vt.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=$S.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;PS.moveHelperToHooks(i,"helperMissing",u),PS.moveHelperToHooks(i,"blockHelperMissing",u)}},s._child=function(a,c,u,l){if(e.useBlockParams&&!u)throw new Ht.default("must pass block params");if(e.useDepths&&!l)throw new Ht.default("must pass parent depths");return la(i,a,e[a],c,0,u,l)},s}o(eN,"template");function la(e,t,r,n,i,s,a){function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a;return a&&u!=a[0]&&!(u===e.nullContext&&a[0]===null)&&(f=[u].concat(a)),r(e,u,e.helpers,e.partials,l.data||n,s&&[l.blockParams].concat(s),f)}return o(c,"prog"),c=ES(r,c,e,a,n,s),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}o(la,"wrapProgram");function tN(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(tN,"resolvePartial");function rN(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!==OS&&function(){r.data=Bt.createFrame(r.data);var s=r.fn;i=r.data["partial-block"]=o(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=Bt.createFrame(u.data),u.data["partial-block"]=n,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=Vt.extend({},r.partials,s.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new Ht.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}o(rN,"invokePartial");function OS(){return""}o(OS,"noop");function nN(e,t){return(!t||!("root"in t))&&(t=t?Bt.createFrame(t):{},t.root=e),t}o(nN,"initData");function ES(e,t,r,n,i,s){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,s,n),Vt.extend(t,a)}return t}o(ES,"executeDecorators");function iN(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=oN(n,t)})}o(iN,"wrapHelpersToPassLookupProperty");function oN(e,t){var r=t.lookupProperty;return QR.wrapHelper(e,function(n){return Vt.extend({lookupProperty:r},n)})}o(oN,"passLookupPropertyOption")});var lf=h((pa,wS)=>{"use strict";pa.__esModule=!0;pa.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}};wS.exports=pa.default});var CS=h((fa,kS)=>{"use strict";fa.__esModule=!0;function ff(e){return e&&e.__esModule?e:{default:e}}o(ff,"_interopRequireDefault");function df(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(df,"_interopRequireWildcard");var sN=ca(),AS=df(sN),aN=SS(),cN=ff(aN),uN=Ge(),lN=ff(uN),pN=xe(),pf=df(pN),fN=xS(),IS=df(fN),dN=lf(),mN=ff(dN);function TS(){var e=new AS.HandlebarsEnvironment;return pf.extend(e,AS),e.SafeString=cN.default,e.Exception=lN.default,e.Utils=pf,e.escapeExpression=pf.escapeExpression,e.VM=IS,e.template=function(t){return IS.template(t,e)},e}o(TS,"create");var po=TS();po.create=TS;mN.default(po);po.default=po;fa.default=po;kS.exports=fa.default});var mf=h((da,NS)=>{"use strict";da.__esModule=!0;var RS={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&&!RS.helpers.scopedId(t)&&!t.depth},"simpleId")}};da.default=RS;NS.exports=da.default});var qS=h((ma,jS)=>{"use strict";ma.__esModule=!0;var hN=function(){var e={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:o(function(i,s,a,c,u,l,f){var p=l.length-1;switch(u){case 1:return l[p-1];case 2:this.$=c.prepareProgram(l[p]);break;case 3:this.$=l[p];break;case 4:this.$=l[p];break;case 5:this.$=l[p];break;case 6:this.$=l[p];break;case 7:this.$=l[p];break;case 8:this.$=l[p];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(l[p]),strip:c.stripFlags(l[p],l[p]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[p],value:l[p],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(l[p-2],l[p-1],l[p],this._$);break;case 12:this.$={path:l[p-3],params:l[p-2],hash:l[p-1]};break;case 13:this.$=c.prepareBlock(l[p-3],l[p-2],l[p-1],l[p],!1,this._$);break;case 14:this.$=c.prepareBlock(l[p-3],l[p-2],l[p-1],l[p],!0,this._$);break;case 15:this.$={open:l[p-5],path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:c.stripFlags(l[p-5],l[p])};break;case 16:this.$={path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:c.stripFlags(l[p-5],l[p])};break;case 17:this.$={path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:c.stripFlags(l[p-5],l[p])};break;case 18:this.$={strip:c.stripFlags(l[p-1],l[p-1]),program:l[p]};break;case 19:var d=c.prepareBlock(l[p-2],l[p-1],l[p],l[p],!1,this._$),m=c.prepareProgram([d],l[p-1].loc);m.chained=!0,this.$={strip:l[p-2].strip,program:m,chain:!0};break;case 20:this.$=l[p];break;case 21:this.$={path:l[p-1],strip:c.stripFlags(l[p-2],l[p])};break;case 22:this.$=c.prepareMustache(l[p-3],l[p-2],l[p-1],l[p-4],c.stripFlags(l[p-4],l[p]),this._$);break;case 23:this.$=c.prepareMustache(l[p-3],l[p-2],l[p-1],l[p-4],c.stripFlags(l[p-4],l[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[p-3],params:l[p-2],hash:l[p-1],indent:"",strip:c.stripFlags(l[p-4],l[p]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(l[p-2],l[p-1],l[p],this._$);break;case 26:this.$={path:l[p-3],params:l[p-2],hash:l[p-1],strip:c.stripFlags(l[p-4],l[p])};break;case 27:this.$=l[p];break;case 28:this.$=l[p];break;case 29:this.$={type:"SubExpression",path:l[p-3],params:l[p-2],hash:l[p-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[p],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(l[p-2]),value:l[p],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(l[p-1]);break;case 33:this.$=l[p];break;case 34:this.$=l[p];break;case 35:this.$={type:"StringLiteral",value:l[p],original:l[p],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[p]),original:Number(l[p]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[p]==="true",original:l[p]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=l[p];break;case 41:this.$=l[p];break;case 42:this.$=c.preparePath(!0,l[p],this._$);break;case 43:this.$=c.preparePath(!1,l[p],this._$);break;case 44:l[p-2].push({part:c.id(l[p]),original:l[p],separator:l[p-1]}),this.$=l[p-2];break;case 45:this.$=[{part:c.id(l[p]),original:l[p]}];break;case 46:this.$=[];break;case 47:l[p-1].push(l[p]);break;case 48:this.$=[];break;case 49:l[p-1].push(l[p]);break;case 50:this.$=[];break;case 51:l[p-1].push(l[p]);break;case 58:this.$=[];break;case 59:l[p-1].push(l[p]);break;case 64:this.$=[];break;case 65:l[p-1].push(l[p]);break;case 70:this.$=[];break;case 71:l[p-1].push(l[p]);break;case 78:this.$=[];break;case 79:l[p-1].push(l[p]);break;case 82:this.$=[];break;case 83:l[p-1].push(l[p]);break;case 86:this.$=[];break;case 87:l[p-1].push(l[p]);break;case 90:this.$=[];break;case 91:l[p-1].push(l[p]);break;case 94:this.$=[];break;case 95:l[p-1].push(l[p]);break;case 98:this.$=[l[p]];break;case 99:l[p-1].push(l[p]);break;case 100:this.$=[l[p]];break;case 101:l[p-1].push(l[p]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:o(function(i,s){throw new Error(i)},"parseError"),parse:o(function(i){var s=this,a=[0],c=[null],u=[],l=this.table,f="",p=0,d=0,m=0,g=2,y=1;this.lexer.setInput(i),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var v=this.lexer.yylloc;u.push(v);var b=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function S(ut){a.length=a.length-2*ut,c.length=c.length-ut,u.length=u.length-ut}o(S,"popStack");function O(){var ut;return ut=s.lexer.lex()||1,typeof ut!="number"&&(ut=s.symbols_[ut]||ut),ut}o(O,"lex");for(var P,_,V,q,se,Q,G={},ve,be,Gt,nn;;){if(V=a[a.length-1],this.defaultActions[V]?q=this.defaultActions[V]:((P===null||typeof P>"u")&&(P=O()),q=l[V]&&l[V][P]),typeof q>"u"||!q.length||!q[0]){var ka="";if(!m){nn=[];for(ve in l[V])this.terminals_[ve]&&ve>2&&nn.push("'"+this.terminals_[ve]+"'");this.lexer.showPosition?ka="Parse error on line "+(p+1)+`:
55
55
  `+this.lexer.showPosition()+`
56
- Expecting `+tn.join(", ")+", got '"+(this.terminals_[$]||$)+"'":Ia="Parse error on line "+(p+1)+": Unexpected "+($==1?"end of input":"'"+(this.terminals_[$]||$)+"'"),this.parseError(Ia,{text:this.lexer.match,token:this.terminals_[$]||$,line:this.lexer.yylineno,loc:v,expected:tn})}}if(R[0]instanceof Array&&R.length>1)throw new Error("Parse Error: multiple actions possible at state: "+D+", token: "+$);switch(R[0]){case 1:a.push($),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(R[1]),$=null,S?($=S,S=null):(d=this.lexer.yyleng,f=this.lexer.yytext,p=this.lexer.yylineno,v=this.lexer.yylloc,m>0&&m--);break;case 2:if(be=this.productions_[R[1]][1],G.$=c[c.length-be],G._$={first_line:u[u.length-(be||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(be||1)].first_column,last_column:u[u.length-1].last_column},b&&(G._$.range=[u[u.length-(be||1)].range[0],u[u.length-1].range[1]]),J=this.performAction.call(G,f,d,p,this.yy,R[1],c,u),typeof J<"u")return J;be&&(a=a.slice(0,-1*be*2),c=c.slice(0,-1*be),u=u.slice(0,-1*be)),a.push(this.productions_[R[1]][0]),c.push(G.$),u.push(G._$),Gt=l[a[a.length-2]][a[a.length-1]],a.push(Gt);break;case 3:return!0}}return!0},"parse")},t=function(){var n={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
56
+ Expecting `+nn.join(", ")+", got '"+(this.terminals_[P]||P)+"'":ka="Parse error on line "+(p+1)+": Unexpected "+(P==1?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(ka,{text:this.lexer.match,token:this.terminals_[P]||P,line:this.lexer.yylineno,loc:v,expected:nn})}}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+P);switch(q[0]){case 1:a.push(P),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(q[1]),P=null,_?(P=_,_=null):(d=this.lexer.yyleng,f=this.lexer.yytext,p=this.lexer.yylineno,v=this.lexer.yylloc,m>0&&m--);break;case 2:if(be=this.productions_[q[1]][1],G.$=c[c.length-be],G._$={first_line:u[u.length-(be||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(be||1)].first_column,last_column:u[u.length-1].last_column},b&&(G._$.range=[u[u.length-(be||1)].range[0],u[u.length-1].range[1]]),Q=this.performAction.call(G,f,d,p,this.yy,q[1],c,u),typeof Q<"u")return Q;be&&(a=a.slice(0,-1*be*2),c=c.slice(0,-1*be),u=u.slice(0,-1*be)),a.push(this.productions_[q[1]][0]),c.push(G.$),u.push(G._$),Gt=l[a[a.length-2]][a[a.length-1]],a.push(Gt);break;case 3:return!0}}return!0},"parse")},t=function(){var n={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
57
57
  `+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,c,u,l,f;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),d=0;d<p.length&&(c=this._input.match(this.rules[p[d]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,u=d,!this.options.flex)));d++);return a?(f=a[0].match(/(?:\r\n?|\n).*/g),f&&(this.yylineno+=f.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-f[f.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],s=this.performAction.call(this,this.yy,this,p[u],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
58
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=o(function(s,a,c,u){function l(p,d){return a.yytext=a.yytext.substring(p,a.yyleng-d+p)}o(l,"strip");var f=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();e.lexer=t;function r(){this.yy={}}return o(r,"Parser"),r.prototype=e,e.Parser=r,new r}();la.default=lN;T_.exports=la.default});var ma=h((da,N_)=>{"use strict";da.__esModule=!0;function pN(e){return e&&e.__esModule?e:{default:e}}o(pN,"_interopRequireDefault");var fN=ze(),df=pN(fN);function pa(){this.parents=[]}o(pa,"Visitor");pa.prototype={constructor:pa,mutating:!1,acceptKey:o(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!pa.prototype[n.type])throw new df.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 df.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 df.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:fa,Decorator:fa,BlockStatement:C_,DecoratorBlock:C_,PartialStatement:R_,PartialBlockStatement:o(function(t){R_.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:fa,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 fa(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(fa,"visitSubExpression");function C_(e){fa.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}o(C_,"visitBlock");function R_(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(R_,"visitPartial");da.default=pa;N_.exports=da.default});var q_=h((ha,j_)=>{"use strict";ha.__esModule=!0;function dN(e){return e&&e.__esModule?e:{default:e}}o(dN,"_interopRequireDefault");var mN=ma(),hN=dN(mN);function It(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}o(It,"WhitespaceControl");It.prototype=new hN.default;It.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,s=n.length;i<s;i++){var a=n[i],c=this.accept(a);if(c){var u=mf(n,i,r),l=hf(n,i,r),f=c.openStandalone&&u,p=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&Qr(n,i,!0),c.open&&vr(n,i,!0),t&&d&&(Qr(n,i),vr(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&f&&(Qr((a.program||a.inverse).body),vr(n,i)),t&&p&&(Qr(n,i),vr((a.inverse||a.program).body))}}return e};It.prototype.BlockStatement=It.prototype.DecoratorBlock=It.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:hf(t.body),closeStandalone:mf((n||t).body)};if(e.openStrip.close&&Qr(t.body,null,!0),r){var a=e.inverseStrip;a.open&&vr(t.body,null,!0),a.close&&Qr(n.body,null,!0),e.closeStrip.open&&vr(i.body,null,!0),!this.options.ignoreStandalone&&mf(t.body)&&hf(n.body)&&(vr(t.body),Qr(n.body))}else e.closeStrip.open&&vr(t.body,null,!0);return s};It.prototype.Decorator=It.prototype.MustacheStatement=function(e){return e.strip};It.prototype.PartialStatement=It.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function mf(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(mf,"isPrevWhitespace");function hf(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(hf,"isNextWhitespace");function Qr(e,t,r){var n=e[t==null?0:t+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}o(Qr,"omitRight");function vr(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(vr,"omitLeft");ha.default=It;j_.exports=ha.default});var M_=h(Ge=>{"use strict";Ge.__esModule=!0;Ge.SourceLocation=vN;Ge.id=bN;Ge.stripFlags=_N;Ge.stripComment=SN;Ge.preparePath=$N;Ge.prepareMustache=PN;Ge.prepareRawBlock=EN;Ge.prepareBlock=ON;Ge.prepareProgram=xN;Ge.preparePartialBlock=wN;function gN(e){return e&&e.__esModule?e:{default:e}}o(gN,"_interopRequireDefault");var yN=ze(),gf=gN(yN);function yf(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new gf.default(e.path.original+" doesn't match "+t,r)}}o(yf,"validateClose");function vN(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(vN,"SourceLocation");function bN(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}o(bN,"id");function _N(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}o(_N,"stripFlags");function SN(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(SN,"stripComment");function $N(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],s=0,a=0,c=t.length;a<c;a++){var u=t[a].part,l=t[a].original!==u;if(n+=(t[a].separator||"")+u,!l&&(u===".."||u==="."||u==="this")){if(i.length>0)throw new gf.default("Invalid path: "+n,{loc:r});u===".."&&s++}else i.push(u)}return{type:"PathExpression",data:e,depth:s,parts:i,original:n,loc:r}}o($N,"preparePath");function PN(e,t,r,n,i,s){var a=n.charAt(3)||n.charAt(2),c=a!=="{"&&a!=="&",u=/\*/.test(n);return{type:u?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:c,strip:i,loc:this.locInfo(s)}}o(PN,"prepareMustache");function EN(e,t,r,n){yf(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(EN,"prepareRawBlock");function ON(e,t,r,n,i,s){n&&n.path&&yf(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new gf.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),u=r.strip,c=r.program}return i&&(i=c,c=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:u,closeStrip:n&&n.strip,loc:this.locInfo(s)}}o(ON,"prepareBlock");function xN(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(xN,"prepareProgram");function wN(e,t,r,n){return yf(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(wN,"preparePartialBlock")});var F_=h(uo=>{"use strict";uo.__esModule=!0;uo.parseWithoutProcessing=L_;uo.parse=jN;function AN(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(AN,"_interopRequireWildcard");function D_(e){return e&&e.__esModule?e:{default:e}}o(D_,"_interopRequireDefault");var IN=k_(),vf=D_(IN),TN=q_(),kN=D_(TN),CN=M_(),RN=AN(CN),NN=Oe();uo.parser=vf.default;var ga={};NN.extend(ga,RN);function L_(e,t){if(e.type==="Program")return e;vf.default.yy=ga,ga.locInfo=function(n){return new ga.SourceLocation(t&&t.srcName,n)};var r=vf.default.parse(e);return r}o(L_,"parseWithoutProcessing");function jN(e,t){var r=L_(e,t),n=new kN.default(t);return n.accept(r)}o(jN,"parse")});var U_=h(mo=>{"use strict";mo.__esModule=!0;mo.Compiler=bf;mo.precompile=LN;mo.compile=FN;function H_(e){return e&&e.__esModule?e:{default:e}}o(H_,"_interopRequireDefault");var qN=ze(),po=H_(qN),fo=Oe(),MN=ff(),lo=H_(MN),DN=[].slice;function bf(){}o(bf,"Compiler");bf.prototype={compiler:bf,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||!B_(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=fo.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 po.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){V_(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 po.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){V_(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 po.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,lo.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=lo.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:DN.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:o(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:o(function(t){var r=lo.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&lo.default.helpers.helperExpression(t),s=!n&&(i||r);if(s&&!i){var a=t.path.parts[0],c=this.options;c.knownHelpers[a]?i=!0:c.knownHelpersOnly&&(s=!1)}return i?"helper":s?"ambiguous":"simple"},"classifySexpr"),pushParams:o(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:o(function(t){var r=t.value!=null?t.value:t.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",r,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var n=void 0;if(t.parts&&!lo.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&&fo.indexOf(i,t);if(i&&s>=0)return[r,s]}},"blockParamIndex")};function LN(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new po.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(LN,"precompile");function FN(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new po.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=fo.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function i(){var a=r.parse(e,t),c=new r.Compiler().compile(a,t),u=new r.JavaScriptCompiler().compile(c,t,void 0,!0);return r.template(u)}o(i,"compileInput");function s(a,c){return n||(n=i()),n.call(this,a,c)}return o(s,"ret"),s._setup=function(a){return n||(n=i()),n._setup(a)},s._child=function(a,c,u,l){return n||(n=i()),n._child(a,c,u,l)},s}o(FN,"compile");function B_(e,t){if(e===t)return!0;if(fo.isArray(e)&&fo.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!B_(e[r],t[r]))return!1;return!0}}o(B_,"argEquals");function V_(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(V_,"transformLiteralToPath")});var G_=h(_f=>{var z_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");_f.encode=function(e){if(0<=e&&e<z_.length)return z_[e];throw new TypeError("Must be between 0 and 63: "+e)};_f.decode=function(e){var t=65,r=90,n=97,i=122,s=48,a=57,c=43,u=47,l=26,f=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:s<=e&&e<=a?e-s+f:e==c?62:e==u?63:-1}});var Pf=h($f=>{var Z_=G_(),Sf=5,K_=1<<Sf,W_=K_-1,Y_=K_;function VN(e){return e<0?(-e<<1)+1:(e<<1)+0}o(VN,"toVLQSigned");function HN(e){var t=(e&1)===1,r=e>>1;return t?-r:r}o(HN,"fromVLQSigned");$f.encode=o(function(t){var r="",n,i=VN(t);do n=i&W_,i>>>=Sf,i>0&&(n|=Y_),r+=Z_.encode(n);while(i>0);return r},"base64VLQ_encode");$f.decode=o(function(t,r,n){var i=t.length,s=0,a=0,c,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=Z_.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&Y_),u&=W_,s=s+(u<<a),a+=Sf}while(c);n.value=HN(s),n.rest=r},"base64VLQ_decode")});var Wn=h(ye=>{function BN(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(BN,"getArg");ye.getArg=BN;var Q_=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,UN=/^data:.+\,.+$/;function ho(e){var t=e.match(Q_);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}o(ho,"urlParse");ye.urlParse=ho;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");ye.urlGenerate=Zn;function Ef(e){var t=e,r=ho(e);if(r){if(!r.path)return e;t=r.path}for(var n=ye.isAbsolute(t),i=t.split(/\/+/),s,a=0,c=i.length-1;c>=0;c--)s=i[c],s==="."?i.splice(c,1):s===".."?a++:a>0&&(s===""?(i.splice(c+1,a),a=0):(i.splice(c,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Zn(r)):t}o(Ef,"normalize");ye.normalize=Ef;function J_(e,t){e===""&&(e="."),t===""&&(t=".");var r=ho(t),n=ho(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Zn(r);if(r||t.match(UN))return t;if(n&&!n.host&&!n.path)return n.host=t,Zn(n);var i=t.charAt(0)==="/"?t:Ef(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Zn(n)):i}o(J_,"join");ye.join=J_;ye.isAbsolute=function(e){return e.charAt(0)==="/"||Q_.test(e)};function zN(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(zN,"relative");ye.relative=zN;var X_=function(){var e=Object.create(null);return!("__proto__"in e)}();function eS(e){return e}o(eS,"identity");function GN(e){return tS(e)?"$"+e:e}o(GN,"toSetString");ye.toSetString=X_?eS:GN;function ZN(e){return tS(e)?e.slice(1):e}o(ZN,"fromSetString");ye.fromSetString=X_?eS:ZN;function tS(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(tS,"isProtoString");function KN(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(KN,"compareByOriginalPositions");ye.compareByOriginalPositions=KN;function WN(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(WN,"compareByGeneratedPositionsDeflated");ye.compareByGeneratedPositionsDeflated=WN;function Kn(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}o(Kn,"strcmp");function YN(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(YN,"compareByGeneratedPositionsInflated");ye.compareByGeneratedPositionsInflated=YN;function QN(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}o(QN,"parseSourceMapInput");ye.parseSourceMapInput=QN;function JN(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=ho(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=J_(Zn(n),t)}return Ef(t)}o(JN,"computeSourceURL");ye.computeSourceURL=JN});var wf=h(rS=>{var Of=Wn(),xf=Object.prototype.hasOwnProperty,Jr=typeof Map<"u";function Ht(){this._array=[],this._set=Jr?new Map:Object.create(null)}o(Ht,"ArraySet");Ht.fromArray=o(function(t,r){for(var n=new Ht,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n},"ArraySet_fromArray");Ht.prototype.size=o(function(){return Jr?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");Ht.prototype.add=o(function(t,r){var n=Jr?t:Of.toSetString(t),i=Jr?this.has(t):xf.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(Jr?this._set.set(t,s):this._set[n]=s)},"ArraySet_add");Ht.prototype.has=o(function(t){if(Jr)return this._set.has(t);var r=Of.toSetString(t);return xf.call(this._set,r)},"ArraySet_has");Ht.prototype.indexOf=o(function(t){if(Jr){var r=this._set.get(t);if(r>=0)return r}else{var n=Of.toSetString(t);if(xf.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");Ht.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");Ht.prototype.toArray=o(function(){return this._array.slice()},"ArraySet_toArray");rS.ArraySet=Ht});var oS=h(iS=>{var nS=Wn();function XN(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||nS.compareByGeneratedPositionsInflated(e,t)<=0}o(XN,"generatedPositionAfter");function ya(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(ya,"MappingList");ya.prototype.unsortedForEach=o(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");ya.prototype.add=o(function(t){XN(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");ya.prototype.toArray=o(function(){return this._sorted||(this._array.sort(nS.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");iS.MappingList=ya});var Af=h(sS=>{var go=Pf(),te=Wn(),va=wf().ArraySet,e3=oS().MappingList;function Ze(e){e||(e={}),this._file=te.getArg(e,"file",null),this._sourceRoot=te.getArg(e,"sourceRoot",null),this._skipValidation=te.getArg(e,"skipValidation",!1),this._sources=new va,this._names=new va,this._mappings=new e3,this._sourcesContents=null}o(Ze,"SourceMapGenerator");Ze.prototype._version=3;Ze.fromSourceMap=o(function(t){var r=t.sourceRoot,n=new Ze({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=te.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s)}),t.sources.forEach(function(i){var s=i;r!==null&&(s=te.relative(r,i)),n._sources.has(s)||n._sources.add(s);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");Ze.prototype.addMapping=o(function(t){var r=te.getArg(t,"generated"),n=te.getArg(t,"original",null),i=te.getArg(t,"source",null),s=te.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})},"SourceMapGenerator_addMapping");Ze.prototype.setSourceContent=o(function(t,r){var n=t;this._sourceRoot!=null&&(n=te.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[te.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[te.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");Ze.prototype.applySourceMap=o(function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var s=this._sourceRoot;s!=null&&(i=te.relative(s,i));var a=new va,c=new va;this._mappings.unsortedForEach(function(u){if(u.source===i&&u.originalLine!=null){var l=t.originalPositionFor({line:u.originalLine,column:u.originalColumn});l.source!=null&&(u.source=l.source,n!=null&&(u.source=te.join(n,u.source)),s!=null&&(u.source=te.relative(s,u.source)),u.originalLine=l.line,u.originalColumn=l.column,l.name!=null&&(u.name=l.name))}var f=u.source;f!=null&&!a.has(f)&&a.add(f);var p=u.name;p!=null&&!c.has(p)&&c.add(p)},this),this._sources=a,this._names=c,t.sources.forEach(function(u){var l=t.sourceContentFor(u);l!=null&&(n!=null&&(u=te.join(n,u)),s!=null&&(u=te.relative(s,u)),this.setSourceContent(u,l))},this)},"SourceMapGenerator_applySourceMap");Ze.prototype._validateMapping=o(function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}},"SourceMapGenerator_validateMapping");Ze.prototype._serializeMappings=o(function(){for(var t=0,r=1,n=0,i=0,s=0,a=0,c="",u,l,f,p,d=this._mappings.toArray(),m=0,g=d.length;m<g;m++){if(l=d[m],u="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)u+=";",r++;else if(m>0){if(!te.compareByGeneratedPositionsInflated(l,d[m-1]))continue;u+=","}u+=go.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(p=this._sources.indexOf(l.source),u+=go.encode(p-a),a=p,u+=go.encode(l.originalLine-1-i),i=l.originalLine-1,u+=go.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(f=this._names.indexOf(l.name),u+=go.encode(f-s),s=f)),c+=u}return c},"SourceMapGenerator_serializeMappings");Ze.prototype._generateSourcesContent=o(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=te.relative(r,n));var i=te.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");Ze.prototype.toJSON=o(function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},"SourceMapGenerator_toJSON");Ze.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");sS.SourceMapGenerator=Ze});var aS=h(Xr=>{Xr.GREATEST_LOWER_BOUND=1;Xr.LEAST_UPPER_BOUND=2;function If(e,t,r,n,i,s){var a=Math.floor((t-e)/2)+e,c=i(r,n[a],!0);return c===0?a:c>0?t-a>1?If(a,t,r,n,i,s):s==Xr.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?If(e,a,r,n,i,s):s==Xr.LEAST_UPPER_BOUND?a:e<0?-1:e}o(If,"recursiveSearch");Xr.search=o(function(t,r,n,i){if(r.length===0)return-1;var s=If(-1,r.length,t,r,n,i||Xr.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s},"search")});var uS=h(cS=>{function Tf(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}o(Tf,"swap");function t3(e,t){return Math.round(e+Math.random()*(t-e))}o(t3,"randomIntInRange");function kf(e,t,r,n){if(r<n){var i=t3(r,n),s=r-1;Tf(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(s+=1,Tf(e,s,c));Tf(e,s+1,c);var u=s+1;kf(e,t,r,u-1),kf(e,t,u+1,n)}}o(kf,"doQuickSort");cS.quickSort=function(e,t){kf(e,t,0,e.length-1)}});var pS=h(ba=>{var P=Wn(),Cf=aS(),Yn=wf().ArraySet,r3=Pf(),yo=uS().quickSort;function U(e,t){var r=e;return typeof e=="string"&&(r=P.parseSourceMapInput(e)),r.sections!=null?new at(r,t):new le(r,t)}o(U,"SourceMapConsumer");U.fromSourceMap=function(e,t){return le.fromSourceMap(e,t)};U.prototype._version=3;U.prototype.__generatedMappings=null;Object.defineProperty(U.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});U.prototype.__originalMappings=null;Object.defineProperty(U.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});U.prototype._charIsMappingSeparator=o(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");U.prototype._parseMappings=o(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");U.GENERATED_ORDER=1;U.ORIGINAL_ORDER=2;U.GREATEST_LOWER_BOUND=1;U.LEAST_UPPER_BOUND=2;U.prototype.eachMapping=o(function(t,r,n){var i=r||null,s=n||U.GENERATED_ORDER,a;switch(s){case U.GENERATED_ORDER:a=this._generatedMappings;break;case U.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(u){var l=u.source===null?null:this._sources.at(u.source);return l=P.computeSourceURL(c,l,this._sourceMapURL),{source:l,generatedLine:u.generatedLine,generatedColumn:u.generatedColumn,originalLine:u.originalLine,originalColumn:u.originalColumn,name:u.name===null?null:this._names.at(u.name)}},this).forEach(t,i)},"SourceMapConsumer_eachMapping");U.prototype.allGeneratedPositionsFor=o(function(t){var r=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,Cf.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)i.push({line:P.getArg(a,"generatedLine",null),column:P.getArg(a,"generatedColumn",null),lastColumn:P.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var u=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==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]}return i},"SourceMapConsumer_allGeneratedPositionsFor");ba.SourceMapConsumer=U;function le(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),c=P.getArg(r,"sourcesContent",null),u=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(f){return a&&P.isAbsolute(a)&&P.isAbsolute(f)?P.relative(a,f):f}),this._names=Yn.fromArray(s.map(String),!0),this._sources=Yn.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(f){return P.computeSourceURL(a,f,t)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=t,this.file=l}o(le,"BasicSourceMapConsumer");le.prototype=Object.create(U.prototype);le.prototype.consumer=U;le.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=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};le.fromSourceMap=o(function(t,r){var n=Object.create(le.prototype),i=n._names=Yn.fromArray(t._names.toArray(),!0),s=n._sources=Yn.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(m){return P.computeSourceURL(n.sourceRoot,m,r)});for(var a=t._mappings.toArray().slice(),c=n.__generatedMappings=[],u=n.__originalMappings=[],l=0,f=a.length;l<f;l++){var p=a[l],d=new lS;d.generatedLine=p.generatedLine,d.generatedColumn=p.generatedColumn,p.source&&(d.source=s.indexOf(p.source),d.originalLine=p.originalLine,d.originalColumn=p.originalColumn,p.name&&(d.name=i.indexOf(p.name)),u.push(d)),c.push(d)}return yo(n.__originalMappings,P.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");le.prototype._version=3;Object.defineProperty(le.prototype,"sources",{get:o(function(){return this._absoluteSources.slice()},"get")});function lS(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o(lS,"Mapping");le.prototype._parseMappings=o(function(t,r){for(var n=1,i=0,s=0,a=0,c=0,u=0,l=t.length,f=0,p={},d={},m=[],g=[],y,v,b,_,E;f<l;)if(t.charAt(f)===";")n++,f++,i=0;else if(t.charAt(f)===",")f++;else{for(y=new lS,y.generatedLine=n,_=f;_<l&&!this._charIsMappingSeparator(t,_);_++);if(v=t.slice(f,_),b=p[v],b)f+=v.length;else{for(b=[];f<_;)r3.decode(t,f,d),E=d.value,f=d.rest,b.push(E);if(b.length===2)throw new Error("Found a source, but no line and column");if(b.length===3)throw new Error("Found a source and line, but no column");p[v]=b}y.generatedColumn=i+b[0],i=y.generatedColumn,b.length>1&&(y.source=c+b[1],c+=b[1],y.originalLine=s+b[2],s=y.originalLine,y.originalLine+=1,y.originalColumn=a+b[3],a=y.originalColumn,b.length>4&&(y.name=u+b[4],u+=b[4])),g.push(y),typeof y.originalLine=="number"&&m.push(y)}yo(g,P.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,yo(m,P.compareByOriginalPositions),this.__originalMappings=m},"SourceMapConsumer_parseMappings");le.prototype._findMapping=o(function(t,r,n,i,s,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return Cf.search(t,r,s,a)},"SourceMapConsumer_findMapping");le.prototype.computeColumnSpans=o(function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}},"SourceMapConsumer_computeColumnSpans");le.prototype.originalPositionFor=o(function(t){var r={generatedLine: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");le.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");le.prototype.sourceContentFor=o(function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=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");le.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");ba.BasicSourceMapConsumer=le;function at(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 c=P.getArg(a,"offset"),u=P.getArg(c,"line"),l=P.getArg(c,"column");if(u<s.line||u===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=c,{generatedOffset:{generatedLine:u+1,generatedColumn:l+1},consumer:new U(P.getArg(a,"map"),t)}})}o(at,"IndexedSourceMapConsumer");at.prototype=Object.create(U.prototype);at.prototype.constructor=U;at.prototype._version=3;Object.defineProperty(at.prototype,"sources",{get:o(function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e},"get")});at.prototype.originalPositionFor=o(function(t){var r={generatedLine:P.getArg(t,"line"),generatedColumn:P.getArg(t,"column")},n=Cf.search(r,this._sections,function(s,a){var c=s.generatedLine-a.generatedOffset.generatedLine;return c||s.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}},"IndexedSourceMapConsumer_originalPositionFor");at.prototype.hasContentsOfAllSources=o(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");at.prototype.sourceContentFor=o(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");at.prototype.generatedPositionFor=o(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(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");at.prototype._parseMappings=o(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var c=s[a],u=i.consumer._sources.at(c.source);u=P.computeSourceURL(i.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var l=null;c.name&&(l=i.consumer._names.at(c.name),this._names.add(l),l=this._names.indexOf(l));var f={source:u,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:l};this.__generatedMappings.push(f),typeof f.originalLine=="number"&&this.__originalMappings.push(f)}yo(this.__generatedMappings,P.compareByGeneratedPositionsDeflated),yo(this.__originalMappings,P.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");ba.IndexedSourceMapConsumer=at});var dS=h(fS=>{var n3=Af().SourceMapGenerator,_a=Wn(),i3=/(\r?\n)/,o3=10,Qn="$$$isSourceNode$$$";function qe(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=i??null,this[Qn]=!0,n!=null&&this.add(n)}o(qe,"SourceNode");qe.fromStringWithSourceMap=o(function(t,r,n){var i=new qe,s=t.split(i3),a=0,c=o(function(){var d=g(),m=g()||"";return d+m;function g(){return a<s.length?s[a++]:void 0}},"shiftNextLine"),u=1,l=0,f=null;return r.eachMapping(function(d){if(f!==null)if(u<d.generatedLine)p(f,c()),u++,l=0;else{var m=s[a]||"",g=m.substr(0,d.generatedColumn-l);s[a]=m.substr(d.generatedColumn-l),l=d.generatedColumn,p(f,g),f=d;return}for(;u<d.generatedLine;)i.add(c()),u++;if(l<d.generatedColumn){var m=s[a]||"";i.add(m.substr(0,d.generatedColumn)),s[a]=m.substr(d.generatedColumn),l=d.generatedColumn}f=d},this),a<s.length&&(f&&p(f,c()),i.add(s.splice(a).join(""))),r.sources.forEach(function(d){var m=r.sourceContentFor(d);m!=null&&(n!=null&&(d=_a.join(n,d)),i.setSourceContent(d,m))}),i;function p(d,m){if(d===null||d.source===void 0)i.add(m);else{var g=n?_a.join(n,d.source):d.source;i.add(new qe(d.originalLine,d.originalColumn,g,m,d.name))}}o(p,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");qe.prototype.add=o(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[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");qe.prototype.prepend=o(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[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");qe.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");qe.prototype.join=o(function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this},"SourceNode_join");qe.prototype.replaceRight=o(function(t,r){var n=this.children[this.children.length-1];return n[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");qe.prototype.setSourceContent=o(function(t,r){this.sourceContents[_a.toSetString(t)]=r},"SourceNode_setSourceContent");qe.prototype.walkSourceContents=o(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][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");qe.prototype.toString=o(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");qe.prototype.toStringWithSourceMap=o(function(t){var r={code:"",line:1,column:0},n=new n3(t),i=!1,s=null,a=null,c=null,u=null;return this.walk(function(l,f){r.code+=l,f.source!==null&&f.line!==null&&f.column!==null?((s!==f.source||a!==f.line||c!==f.column||u!==f.name)&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name}),s=f.source,a=f.line,c=f.column,u=f.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var p=0,d=l.length;p<d;p++)l.charCodeAt(p)===o3?(r.line++,r.column=0,p+1===d?(s=null,i=!1):i&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name})):r.column++}),this.walkSourceContents(function(l,f){n.setSourceContent(l,f)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");fS.SourceNode=qe});var mS=h(Sa=>{Sa.SourceMapGenerator=Af().SourceMapGenerator;Sa.SourceMapConsumer=pS().SourceMapConsumer;Sa.SourceNode=dS().SourceNode});var vS=h(($a,yS)=>{"use strict";$a.__esModule=!0;var Nf=Oe(),en=void 0;try{(typeof define!="function"||!define.amd)&&(hS=mS(),en=hS.SourceNode)}catch{}var hS;en||(en=o(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),en.prototype={add:o(function(t){Nf.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:o(function(t){Nf.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 Rf(e,t,r){if(Nf.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(Rf,"castChunk");function gS(e){this.srcFile=e,this.source=[]}o(gS,"CodeGen");gS.prototype={isEmpty:o(function(){return!this.source.length},"isEmpty"),prepend:o(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:o(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:o(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
59
- `])}),t},"merge"),each:o(function(t){for(var r=0,n=this.source.length;r<n;r++)t(this.source[r])},"each"),empty:o(function(){var t=this.currentLocation||{start:{}};return new en(t.start.line,t.start.column,this.srcFile)},"empty"),wrap:o(function(t){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return t instanceof en?t:(t=Rf(t,this,r),new en(r.start.line,r.start.column,this.srcFile,t))},"wrap"),functionCall:o(function(t,r,n){return n=this.generateList(n),this.wrap([t,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(t){var r=this,n=[];Object.keys(t).forEach(function(s){var a=Rf(t[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:o(function(t){for(var r=this.empty(),n=0,i=t.length;n<i;n++)n&&r.add(","),r.add(Rf(t[n],this));return r},"generateList"),generateArray:o(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};$a.default=gS;yS.exports=$a.default});var PS=h((Pa,$S)=>{"use strict";Pa.__esModule=!0;function SS(e){return e&&e.__esModule?e:{default:e}}o(SS,"_interopRequireDefault");var bS=ia(),s3=ze(),jf=SS(s3),a3=Oe(),c3=vS(),_S=SS(c3);function Jn(e){this.value=e}o(Jn,"Literal");function Xn(){}o(Xn,"JavaScriptCompiler");Xn.prototype={nameLookup:o(function(t,r){return this.internalNameLookup(t,r)},"nameLookup"),depthedLookup:o(function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},"depthedLookup"),compilerInfo:o(function(){var t=bS.COMPILER_REVISION,r=bS.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:o(function(t,r,n){return a3.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(t,r,n,i){this.environment=t,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,r),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var s=t.opcodes,a=void 0,c=void 0,u=void 0,l=void 0;for(u=0,l=s.length;u<l;u++)a=s[u],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new jf.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(),`;
58
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=o(function(s,a,c,u){function l(p,d){return a.yytext=a.yytext.substring(p,a.yyleng-d+p)}o(l,"strip");var f=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();e.lexer=t;function r(){this.yy={}}return o(r,"Parser"),r.prototype=e,e.Parser=r,new r}();ma.default=hN;jS.exports=ma.default});var va=h((ya,LS)=>{"use strict";ya.__esModule=!0;function gN(e){return e&&e.__esModule?e:{default:e}}o(gN,"_interopRequireDefault");var yN=Ge(),hf=gN(yN);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 hf.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 hf.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 hf.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:ga,Decorator:ga,BlockStatement:MS,DecoratorBlock:MS,PartialStatement:DS,PartialBlockStatement:o(function(t){DS.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:ga,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 ga(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(ga,"visitSubExpression");function MS(e){ga.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}o(MS,"visitBlock");function DS(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(DS,"visitPartial");ya.default=ha;LS.exports=ya.default});var VS=h((ba,FS)=>{"use strict";ba.__esModule=!0;function vN(e){return e&&e.__esModule?e:{default:e}}o(vN,"_interopRequireDefault");var bN=va(),SN=vN(bN);function It(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}o(It,"WhitespaceControl");It.prototype=new SN.default;It.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,s=n.length;i<s;i++){var a=n[i],c=this.accept(a);if(c){var u=gf(n,i,r),l=yf(n,i,r),f=c.openStandalone&&u,p=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&Qr(n,i,!0),c.open&&br(n,i,!0),t&&d&&(Qr(n,i),br(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&f&&(Qr((a.program||a.inverse).body),br(n,i)),t&&p&&(Qr(n,i),br((a.inverse||a.program).body))}}return e};It.prototype.BlockStatement=It.prototype.DecoratorBlock=It.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:yf(t.body),closeStandalone:gf((n||t).body)};if(e.openStrip.close&&Qr(t.body,null,!0),r){var a=e.inverseStrip;a.open&&br(t.body,null,!0),a.close&&Qr(n.body,null,!0),e.closeStrip.open&&br(i.body,null,!0),!this.options.ignoreStandalone&&gf(t.body)&&yf(n.body)&&(br(t.body),Qr(n.body))}else e.closeStrip.open&&br(t.body,null,!0);return s};It.prototype.Decorator=It.prototype.MustacheStatement=function(e){return e.strip};It.prototype.PartialStatement=It.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function gf(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(gf,"isPrevWhitespace");function yf(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(yf,"isNextWhitespace");function Qr(e,t,r){var n=e[t==null?0:t+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}o(Qr,"omitRight");function br(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(br,"omitLeft");ba.default=It;FS.exports=ba.default});var HS=h(Ze=>{"use strict";Ze.__esModule=!0;Ze.SourceLocation=$N;Ze.id=ON;Ze.stripFlags=EN;Ze.stripComment=xN;Ze.preparePath=wN;Ze.prepareMustache=AN;Ze.prepareRawBlock=IN;Ze.prepareBlock=TN;Ze.prepareProgram=kN;Ze.preparePartialBlock=CN;function _N(e){return e&&e.__esModule?e:{default:e}}o(_N,"_interopRequireDefault");var PN=Ge(),vf=_N(PN);function bf(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new vf.default(e.path.original+" doesn't match "+t,r)}}o(bf,"validateClose");function $N(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($N,"SourceLocation");function ON(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}o(ON,"id");function EN(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}o(EN,"stripFlags");function xN(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(xN,"stripComment");function wN(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],s=0,a=0,c=t.length;a<c;a++){var u=t[a].part,l=t[a].original!==u;if(n+=(t[a].separator||"")+u,!l&&(u===".."||u==="."||u==="this")){if(i.length>0)throw new vf.default("Invalid path: "+n,{loc:r});u===".."&&s++}else i.push(u)}return{type:"PathExpression",data:e,depth:s,parts:i,original:n,loc:r}}o(wN,"preparePath");function AN(e,t,r,n,i,s){var a=n.charAt(3)||n.charAt(2),c=a!=="{"&&a!=="&",u=/\*/.test(n);return{type:u?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:c,strip:i,loc:this.locInfo(s)}}o(AN,"prepareMustache");function IN(e,t,r,n){bf(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(IN,"prepareRawBlock");function TN(e,t,r,n,i,s){n&&n.path&&bf(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new vf.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),u=r.strip,c=r.program}return i&&(i=c,c=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:u,closeStrip:n&&n.strip,loc:this.locInfo(s)}}o(TN,"prepareBlock");function kN(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(kN,"prepareProgram");function CN(e,t,r,n){return bf(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(CN,"preparePartialBlock")});var zS=h(fo=>{"use strict";fo.__esModule=!0;fo.parseWithoutProcessing=US;fo.parse=FN;function RN(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(RN,"_interopRequireWildcard");function BS(e){return e&&e.__esModule?e:{default:e}}o(BS,"_interopRequireDefault");var NN=qS(),Sf=BS(NN),jN=VS(),qN=BS(jN),MN=HS(),DN=RN(MN),LN=xe();fo.parser=Sf.default;var Sa={};LN.extend(Sa,DN);function US(e,t){if(e.type==="Program")return e;Sf.default.yy=Sa,Sa.locInfo=function(n){return new Sa.SourceLocation(t&&t.srcName,n)};var r=Sf.default.parse(e);return r}o(US,"parseWithoutProcessing");function FN(e,t){var r=US(e,t),n=new qN.default(t);return n.accept(r)}o(FN,"parse")});var WS=h(yo=>{"use strict";yo.__esModule=!0;yo.Compiler=_f;yo.precompile=UN;yo.compile=zN;function ZS(e){return e&&e.__esModule?e:{default:e}}o(ZS,"_interopRequireDefault");var VN=Ge(),ho=ZS(VN),go=xe(),HN=mf(),mo=ZS(HN),BN=[].slice;function _f(){}o(_f,"Compiler");_f.prototype={compiler:_f,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||!KS(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=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: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 ho.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){GS(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 ho.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){GS(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 ho.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:BN.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],c=this.options;c.knownHelpers[a]?i=!0:c.knownHelpersOnly&&(s=!1)}return i?"helper":s?"ambiguous":"simple"},"classifySexpr"),pushParams:o(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:o(function(t){var r=t.value!=null?t.value:t.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",r,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var n=void 0;if(t.parts&&!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&&go.indexOf(i,t);if(i&&s>=0)return[r,s]}},"blockParamIndex")};function UN(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new ho.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(UN,"precompile");function zN(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new ho.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),c=new r.Compiler().compile(a,t),u=new r.JavaScriptCompiler().compile(c,t,void 0,!0);return r.template(u)}o(i,"compileInput");function s(a,c){return n||(n=i()),n.call(this,a,c)}return o(s,"ret"),s._setup=function(a){return n||(n=i()),n._setup(a)},s._child=function(a,c,u,l){return n||(n=i()),n._child(a,c,u,l)},s}o(zN,"compile");function KS(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(!KS(e[r],t[r]))return!1;return!0}}o(KS,"argEquals");function GS(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(GS,"transformLiteralToPath")});var JS=h(Pf=>{var YS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Pf.encode=function(e){if(0<=e&&e<YS.length)return YS[e];throw new TypeError("Must be between 0 and 63: "+e)};Pf.decode=function(e){var t=65,r=90,n=97,i=122,s=48,a=57,c=43,u=47,l=26,f=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:s<=e&&e<=a?e-s+f:e==c?62:e==u?63:-1}});var Ef=h(Of=>{var QS=JS(),$f=5,XS=1<<$f,e_=XS-1,t_=XS;function GN(e){return e<0?(-e<<1)+1:(e<<1)+0}o(GN,"toVLQSigned");function ZN(e){var t=(e&1)===1,r=e>>1;return t?-r:r}o(ZN,"fromVLQSigned");Of.encode=o(function(t){var r="",n,i=GN(t);do n=i&e_,i>>>=$f,i>0&&(n|=t_),r+=QS.encode(n);while(i>0);return r},"base64VLQ_encode");Of.decode=o(function(t,r,n){var i=t.length,s=0,a=0,c,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=QS.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&t_),u&=e_,s=s+(u<<a),a+=$f}while(c);n.value=ZN(s),n.rest=r},"base64VLQ_decode")});var Jn=h(ye=>{function KN(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(KN,"getArg");ye.getArg=KN;var r_=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,WN=/^data:.+\,.+$/;function vo(e){var t=e.match(r_);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}o(vo,"urlParse");ye.urlParse=vo;function Wn(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(Wn,"urlGenerate");ye.urlGenerate=Wn;function xf(e){var t=e,r=vo(e);if(r){if(!r.path)return e;t=r.path}for(var n=ye.isAbsolute(t),i=t.split(/\/+/),s,a=0,c=i.length-1;c>=0;c--)s=i[c],s==="."?i.splice(c,1):s===".."?a++:a>0&&(s===""?(i.splice(c+1,a),a=0):(i.splice(c,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Wn(r)):t}o(xf,"normalize");ye.normalize=xf;function n_(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),Wn(r);if(r||t.match(WN))return t;if(n&&!n.host&&!n.path)return n.host=t,Wn(n);var i=t.charAt(0)==="/"?t:xf(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Wn(n)):i}o(n_,"join");ye.join=n_;ye.isAbsolute=function(e){return e.charAt(0)==="/"||r_.test(e)};function YN(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(YN,"relative");ye.relative=YN;var i_=function(){var e=Object.create(null);return!("__proto__"in e)}();function o_(e){return e}o(o_,"identity");function JN(e){return s_(e)?"$"+e:e}o(JN,"toSetString");ye.toSetString=i_?o_:JN;function QN(e){return s_(e)?e.slice(1):e}o(QN,"fromSetString");ye.fromSetString=i_?o_:QN;function s_(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(s_,"isProtoString");function XN(e,t,r){var n=Yn(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:Yn(e.name,t.name)}o(XN,"compareByOriginalPositions");ye.compareByOriginalPositions=XN;function e3(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=Yn(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Yn(e.name,t.name)}o(e3,"compareByGeneratedPositionsDeflated");ye.compareByGeneratedPositionsDeflated=e3;function Yn(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}o(Yn,"strcmp");function t3(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Yn(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Yn(e.name,t.name)}o(t3,"compareByGeneratedPositionsInflated");ye.compareByGeneratedPositionsInflated=t3;function r3(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}o(r3,"parseSourceMapInput");ye.parseSourceMapInput=r3;function n3(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=n_(Wn(n),t)}return xf(t)}o(n3,"computeSourceURL");ye.computeSourceURL=n3});var If=h(a_=>{var wf=Jn(),Af=Object.prototype.hasOwnProperty,Xr=typeof Map<"u";function Ut(){this._array=[],this._set=Xr?new Map:Object.create(null)}o(Ut,"ArraySet");Ut.fromArray=o(function(t,r){for(var n=new Ut,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n},"ArraySet_fromArray");Ut.prototype.size=o(function(){return Xr?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");Ut.prototype.add=o(function(t,r){var n=Xr?t:wf.toSetString(t),i=Xr?this.has(t):Af.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(Xr?this._set.set(t,s):this._set[n]=s)},"ArraySet_add");Ut.prototype.has=o(function(t){if(Xr)return this._set.has(t);var r=wf.toSetString(t);return Af.call(this._set,r)},"ArraySet_has");Ut.prototype.indexOf=o(function(t){if(Xr){var r=this._set.get(t);if(r>=0)return r}else{var n=wf.toSetString(t);if(Af.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");Ut.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");Ut.prototype.toArray=o(function(){return this._array.slice()},"ArraySet_toArray");a_.ArraySet=Ut});var l_=h(u_=>{var c_=Jn();function i3(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||c_.compareByGeneratedPositionsInflated(e,t)<=0}o(i3,"generatedPositionAfter");function _a(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(_a,"MappingList");_a.prototype.unsortedForEach=o(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");_a.prototype.add=o(function(t){i3(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");_a.prototype.toArray=o(function(){return this._sorted||(this._array.sort(c_.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");u_.MappingList=_a});var Tf=h(p_=>{var bo=Ef(),te=Jn(),Pa=If().ArraySet,o3=l_().MappingList;function Ke(e){e||(e={}),this._file=te.getArg(e,"file",null),this._sourceRoot=te.getArg(e,"sourceRoot",null),this._skipValidation=te.getArg(e,"skipValidation",!1),this._sources=new Pa,this._names=new Pa,this._mappings=new o3,this._sourcesContents=null}o(Ke,"SourceMapGenerator");Ke.prototype._version=3;Ke.fromSourceMap=o(function(t){var r=t.sourceRoot,n=new Ke({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=te.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s)}),t.sources.forEach(function(i){var s=i;r!==null&&(s=te.relative(r,i)),n._sources.has(s)||n._sources.add(s);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");Ke.prototype.addMapping=o(function(t){var r=te.getArg(t,"generated"),n=te.getArg(t,"original",null),i=te.getArg(t,"source",null),s=te.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})},"SourceMapGenerator_addMapping");Ke.prototype.setSourceContent=o(function(t,r){var n=t;this._sourceRoot!=null&&(n=te.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[te.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[te.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");Ke.prototype.applySourceMap=o(function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var s=this._sourceRoot;s!=null&&(i=te.relative(s,i));var a=new Pa,c=new Pa;this._mappings.unsortedForEach(function(u){if(u.source===i&&u.originalLine!=null){var l=t.originalPositionFor({line:u.originalLine,column:u.originalColumn});l.source!=null&&(u.source=l.source,n!=null&&(u.source=te.join(n,u.source)),s!=null&&(u.source=te.relative(s,u.source)),u.originalLine=l.line,u.originalColumn=l.column,l.name!=null&&(u.name=l.name))}var f=u.source;f!=null&&!a.has(f)&&a.add(f);var p=u.name;p!=null&&!c.has(p)&&c.add(p)},this),this._sources=a,this._names=c,t.sources.forEach(function(u){var l=t.sourceContentFor(u);l!=null&&(n!=null&&(u=te.join(n,u)),s!=null&&(u=te.relative(s,u)),this.setSourceContent(u,l))},this)},"SourceMapGenerator_applySourceMap");Ke.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");Ke.prototype._serializeMappings=o(function(){for(var t=0,r=1,n=0,i=0,s=0,a=0,c="",u,l,f,p,d=this._mappings.toArray(),m=0,g=d.length;m<g;m++){if(l=d[m],u="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)u+=";",r++;else if(m>0){if(!te.compareByGeneratedPositionsInflated(l,d[m-1]))continue;u+=","}u+=bo.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(p=this._sources.indexOf(l.source),u+=bo.encode(p-a),a=p,u+=bo.encode(l.originalLine-1-i),i=l.originalLine-1,u+=bo.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(f=this._names.indexOf(l.name),u+=bo.encode(f-s),s=f)),c+=u}return c},"SourceMapGenerator_serializeMappings");Ke.prototype._generateSourcesContent=o(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=te.relative(r,n));var i=te.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");Ke.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");Ke.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");p_.SourceMapGenerator=Ke});var f_=h(en=>{en.GREATEST_LOWER_BOUND=1;en.LEAST_UPPER_BOUND=2;function kf(e,t,r,n,i,s){var a=Math.floor((t-e)/2)+e,c=i(r,n[a],!0);return c===0?a:c>0?t-a>1?kf(a,t,r,n,i,s):s==en.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?kf(e,a,r,n,i,s):s==en.LEAST_UPPER_BOUND?a:e<0?-1:e}o(kf,"recursiveSearch");en.search=o(function(t,r,n,i){if(r.length===0)return-1;var s=kf(-1,r.length,t,r,n,i||en.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 m_=h(d_=>{function Cf(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}o(Cf,"swap");function s3(e,t){return Math.round(e+Math.random()*(t-e))}o(s3,"randomIntInRange");function Rf(e,t,r,n){if(r<n){var i=s3(r,n),s=r-1;Cf(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(s+=1,Cf(e,s,c));Cf(e,s+1,c);var u=s+1;Rf(e,t,r,u-1),Rf(e,t,u+1,n)}}o(Rf,"doQuickSort");d_.quickSort=function(e,t){Rf(e,t,0,e.length-1)}});var g_=h($a=>{var $=Jn(),Nf=f_(),Qn=If().ArraySet,a3=Ef(),So=m_().quickSort;function U(e,t){var r=e;return typeof e=="string"&&(r=$.parseSourceMapInput(e)),r.sections!=null?new at(r,t):new le(r,t)}o(U,"SourceMapConsumer");U.fromSourceMap=function(e,t){return le.fromSourceMap(e,t)};U.prototype._version=3;U.prototype.__generatedMappings=null;Object.defineProperty(U.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});U.prototype.__originalMappings=null;Object.defineProperty(U.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});U.prototype._charIsMappingSeparator=o(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");U.prototype._parseMappings=o(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");U.GENERATED_ORDER=1;U.ORIGINAL_ORDER=2;U.GREATEST_LOWER_BOUND=1;U.LEAST_UPPER_BOUND=2;U.prototype.eachMapping=o(function(t,r,n){var i=r||null,s=n||U.GENERATED_ORDER,a;switch(s){case U.GENERATED_ORDER:a=this._generatedMappings;break;case U.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(u){var l=u.source===null?null:this._sources.at(u.source);return l=$.computeSourceURL(c,l,this._sourceMapURL),{source:l,generatedLine:u.generatedLine,generatedColumn:u.generatedColumn,originalLine:u.originalLine,originalColumn:u.originalColumn,name:u.name===null?null:this._names.at(u.name)}},this).forEach(t,i)},"SourceMapConsumer_eachMapping");U.prototype.allGeneratedPositionsFor=o(function(t){var r=$.getArg(t,"line"),n={source:$.getArg(t,"source"),originalLine:r,originalColumn:$.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",$.compareByOriginalPositions,Nf.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)i.push({line:$.getArg(a,"generatedLine",null),column:$.getArg(a,"generatedColumn",null),lastColumn:$.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var u=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==u;)i.push({line:$.getArg(a,"generatedLine",null),column:$.getArg(a,"generatedColumn",null),lastColumn:$.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i},"SourceMapConsumer_allGeneratedPositionsFor");$a.SourceMapConsumer=U;function le(e,t){var r=e;typeof e=="string"&&(r=$.parseSourceMapInput(e));var n=$.getArg(r,"version"),i=$.getArg(r,"sources"),s=$.getArg(r,"names",[]),a=$.getArg(r,"sourceRoot",null),c=$.getArg(r,"sourcesContent",null),u=$.getArg(r,"mappings"),l=$.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=$.normalize(a)),i=i.map(String).map($.normalize).map(function(f){return a&&$.isAbsolute(a)&&$.isAbsolute(f)?$.relative(a,f):f}),this._names=Qn.fromArray(s.map(String),!0),this._sources=Qn.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(f){return $.computeSourceURL(a,f,t)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=t,this.file=l}o(le,"BasicSourceMapConsumer");le.prototype=Object.create(U.prototype);le.prototype.consumer=U;le.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=$.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};le.fromSourceMap=o(function(t,r){var n=Object.create(le.prototype),i=n._names=Qn.fromArray(t._names.toArray(),!0),s=n._sources=Qn.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(m){return $.computeSourceURL(n.sourceRoot,m,r)});for(var a=t._mappings.toArray().slice(),c=n.__generatedMappings=[],u=n.__originalMappings=[],l=0,f=a.length;l<f;l++){var p=a[l],d=new h_;d.generatedLine=p.generatedLine,d.generatedColumn=p.generatedColumn,p.source&&(d.source=s.indexOf(p.source),d.originalLine=p.originalLine,d.originalColumn=p.originalColumn,p.name&&(d.name=i.indexOf(p.name)),u.push(d)),c.push(d)}return So(n.__originalMappings,$.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");le.prototype._version=3;Object.defineProperty(le.prototype,"sources",{get:o(function(){return this._absoluteSources.slice()},"get")});function h_(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o(h_,"Mapping");le.prototype._parseMappings=o(function(t,r){for(var n=1,i=0,s=0,a=0,c=0,u=0,l=t.length,f=0,p={},d={},m=[],g=[],y,v,b,S,O;f<l;)if(t.charAt(f)===";")n++,f++,i=0;else if(t.charAt(f)===",")f++;else{for(y=new h_,y.generatedLine=n,S=f;S<l&&!this._charIsMappingSeparator(t,S);S++);if(v=t.slice(f,S),b=p[v],b)f+=v.length;else{for(b=[];f<S;)a3.decode(t,f,d),O=d.value,f=d.rest,b.push(O);if(b.length===2)throw new Error("Found a source, but no line and column");if(b.length===3)throw new Error("Found a source and line, but no column");p[v]=b}y.generatedColumn=i+b[0],i=y.generatedColumn,b.length>1&&(y.source=c+b[1],c+=b[1],y.originalLine=s+b[2],s=y.originalLine,y.originalLine+=1,y.originalColumn=a+b[3],a=y.originalColumn,b.length>4&&(y.name=u+b[4],u+=b[4])),g.push(y),typeof y.originalLine=="number"&&m.push(y)}So(g,$.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,So(m,$.compareByOriginalPositions),this.__originalMappings=m},"SourceMapConsumer_parseMappings");le.prototype._findMapping=o(function(t,r,n,i,s,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return Nf.search(t,r,s,a)},"SourceMapConsumer_findMapping");le.prototype.computeColumnSpans=o(function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}},"SourceMapConsumer_computeColumnSpans");le.prototype.originalPositionFor=o(function(t){var r={generatedLine:$.getArg(t,"line"),generatedColumn:$.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",$.compareByGeneratedPositionsDeflated,$.getArg(t,"bias",U.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=$.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=$.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=$.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:$.getArg(i,"originalLine",null),column:$.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");le.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");le.prototype.sourceContentFor=o(function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=$.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=$.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");le.prototype.generatedPositionFor=o(function(t){var r=$.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:$.getArg(t,"line"),originalColumn:$.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",$.compareByOriginalPositions,$.getArg(t,"bias",U.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:$.getArg(s,"generatedLine",null),column:$.getArg(s,"generatedColumn",null),lastColumn:$.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");$a.BasicSourceMapConsumer=le;function at(e,t){var r=e;typeof e=="string"&&(r=$.parseSourceMapInput(e));var n=$.getArg(r,"version"),i=$.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Qn,this._names=new Qn;var s={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=$.getArg(a,"offset"),u=$.getArg(c,"line"),l=$.getArg(c,"column");if(u<s.line||u===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=c,{generatedOffset:{generatedLine:u+1,generatedColumn:l+1},consumer:new U($.getArg(a,"map"),t)}})}o(at,"IndexedSourceMapConsumer");at.prototype=Object.create(U.prototype);at.prototype.constructor=U;at.prototype._version=3;Object.defineProperty(at.prototype,"sources",{get:o(function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e},"get")});at.prototype.originalPositionFor=o(function(t){var r={generatedLine:$.getArg(t,"line"),generatedColumn:$.getArg(t,"column")},n=Nf.search(r,this._sections,function(s,a){var c=s.generatedLine-a.generatedOffset.generatedLine;return c||s.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}},"IndexedSourceMapConsumer_originalPositionFor");at.prototype.hasContentsOfAllSources=o(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");at.prototype.sourceContentFor=o(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");at.prototype.generatedPositionFor=o(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex($.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");at.prototype._parseMappings=o(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var c=s[a],u=i.consumer._sources.at(c.source);u=$.computeSourceURL(i.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var l=null;c.name&&(l=i.consumer._names.at(c.name),this._names.add(l),l=this._names.indexOf(l));var f={source:u,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:l};this.__generatedMappings.push(f),typeof f.originalLine=="number"&&this.__originalMappings.push(f)}So(this.__generatedMappings,$.compareByGeneratedPositionsDeflated),So(this.__originalMappings,$.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");$a.IndexedSourceMapConsumer=at});var v_=h(y_=>{var c3=Tf().SourceMapGenerator,Oa=Jn(),u3=/(\r?\n)/,l3=10,Xn="$$$isSourceNode$$$";function Me(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[Xn]=!0,n!=null&&this.add(n)}o(Me,"SourceNode");Me.fromStringWithSourceMap=o(function(t,r,n){var i=new Me,s=t.split(u3),a=0,c=o(function(){var d=g(),m=g()||"";return d+m;function g(){return a<s.length?s[a++]:void 0}},"shiftNextLine"),u=1,l=0,f=null;return r.eachMapping(function(d){if(f!==null)if(u<d.generatedLine)p(f,c()),u++,l=0;else{var m=s[a]||"",g=m.substr(0,d.generatedColumn-l);s[a]=m.substr(d.generatedColumn-l),l=d.generatedColumn,p(f,g),f=d;return}for(;u<d.generatedLine;)i.add(c()),u++;if(l<d.generatedColumn){var m=s[a]||"";i.add(m.substr(0,d.generatedColumn)),s[a]=m.substr(d.generatedColumn),l=d.generatedColumn}f=d},this),a<s.length&&(f&&p(f,c()),i.add(s.splice(a).join(""))),r.sources.forEach(function(d){var m=r.sourceContentFor(d);m!=null&&(n!=null&&(d=Oa.join(n,d)),i.setSourceContent(d,m))}),i;function p(d,m){if(d===null||d.source===void 0)i.add(m);else{var g=n?Oa.join(n,d.source):d.source;i.add(new Me(d.originalLine,d.originalColumn,g,m,d.name))}}o(p,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Me.prototype.add=o(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Xn]||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");Me.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[Xn]||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");Me.prototype.walk=o(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Xn]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Me.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");Me.prototype.replaceRight=o(function(t,r){var n=this.children[this.children.length-1];return n[Xn]?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");Me.prototype.setSourceContent=o(function(t,r){this.sourceContents[Oa.toSetString(t)]=r},"SourceNode_setSourceContent");Me.prototype.walkSourceContents=o(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Xn]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(Oa.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Me.prototype.toString=o(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Me.prototype.toStringWithSourceMap=o(function(t){var r={code:"",line:1,column:0},n=new c3(t),i=!1,s=null,a=null,c=null,u=null;return this.walk(function(l,f){r.code+=l,f.source!==null&&f.line!==null&&f.column!==null?((s!==f.source||a!==f.line||c!==f.column||u!==f.name)&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name}),s=f.source,a=f.line,c=f.column,u=f.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var p=0,d=l.length;p<d;p++)l.charCodeAt(p)===l3?(r.line++,r.column=0,p+1===d?(s=null,i=!1):i&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name})):r.column++}),this.walkSourceContents(function(l,f){n.setSourceContent(l,f)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");y_.SourceNode=Me});var b_=h(Ea=>{Ea.SourceMapGenerator=Tf().SourceMapGenerator;Ea.SourceMapConsumer=g_().SourceMapConsumer;Ea.SourceNode=v_().SourceNode});var $_=h((xa,P_)=>{"use strict";xa.__esModule=!0;var qf=xe(),tn=void 0;try{(typeof define!="function"||!define.amd)&&(S_=b_(),tn=S_.SourceNode)}catch{}var S_;tn||(tn=o(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),tn.prototype={add:o(function(t){qf.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:o(function(t){qf.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 jf(e,t,r){if(qf.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(jf,"castChunk");function __(e){this.srcFile=e,this.source=[]}o(__,"CodeGen");__.prototype={isEmpty:o(function(){return!this.source.length},"isEmpty"),prepend:o(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:o(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:o(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
59
+ `])}),t},"merge"),each:o(function(t){for(var r=0,n=this.source.length;r<n;r++)t(this.source[r])},"each"),empty:o(function(){var t=this.currentLocation||{start:{}};return new tn(t.start.line,t.start.column,this.srcFile)},"empty"),wrap:o(function(t){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return t instanceof tn?t:(t=jf(t,this,r),new tn(r.start.line,r.start.column,this.srcFile,t))},"wrap"),functionCall:o(function(t,r,n){return n=this.generateList(n),this.wrap([t,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(t){var r=this,n=[];Object.keys(t).forEach(function(s){var a=jf(t[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:o(function(t){for(var r=this.empty(),n=0,i=t.length;n<i;n++)n&&r.add(","),r.add(jf(t[n],this));return r},"generateList"),generateArray:o(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};xa.default=__;P_.exports=xa.default});var A_=h((wa,w_)=>{"use strict";wa.__esModule=!0;function x_(e){return e&&e.__esModule?e:{default:e}}o(x_,"_interopRequireDefault");var O_=ca(),p3=Ge(),Mf=x_(p3),f3=xe(),d3=$_(),E_=x_(d3);function ei(e){this.value=e}o(ei,"Literal");function ti(){}o(ti,"JavaScriptCompiler");ti.prototype={nameLookup:o(function(t,r){return this.internalNameLookup(t,r)},"nameLookup"),depthedLookup:o(function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},"depthedLookup"),compilerInfo:o(function(){var t=O_.COMPILER_REVISION,r=O_.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:o(function(t,r,n){return f3.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(t,r,n,i){this.environment=t,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,r),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var s=t.opcodes,a=void 0,c=void 0,u=void 0,l=void 0;for(u=0,l=s.length;u<l;u++)a=s[u],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new Mf.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
60
60
  `]),this.decorators.push("return fn;"),i?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
61
61
  `),this.decorators.push(`}
62
- `),this.decorators=this.decorators.merge()));var f=this.createFunctionContext(i);if(this.isChild)return f;var p={compiler:this.compilerInfo(),main:f};this.decorators&&(p.main_d=this.decorators,p.useDecorators=!0);var d=this.context,m=d.programs,g=d.decorators;for(u=0,l=m.length;u<l;u++)m[u]&&(p[u]=m[u],g[u]&&(p[u+"_d"]=g[u],p.useDecorators=!0));return this.environment.usePartial&&(p.usePartial=!0),this.options.data&&(p.useData=!0),this.useDepths&&(p.useDepths=!0),this.useBlockParams&&(p.useBlockParams=!0),this.options.compat&&(p.compat=!0),i?p.compilerOptions=this.options:(p.compiler=JSON.stringify(p.compiler),this.source.currentLocation={start:{line:1,column:0}},p=this.objectLiteral(p),r.srcName?(p=p.toStringWithSourceMap({file:r.destName}),p.map=p.map&&p.map.toString()):p=p.toString()),p},"compile"),preamble:o(function(){this.lastContext=0,this.source=new _S.default(this.options.srcName),this.decorators=new _S.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(t){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var s=0;Object.keys(this.aliases).forEach(function(u){var l=r.aliases[u];l.children&&l.referenceCount>1&&(n+=", alias"+ ++s+"="+u,l.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return t?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
62
+ `),this.decorators=this.decorators.merge()));var f=this.createFunctionContext(i);if(this.isChild)return f;var p={compiler:this.compilerInfo(),main:f};this.decorators&&(p.main_d=this.decorators,p.useDecorators=!0);var d=this.context,m=d.programs,g=d.decorators;for(u=0,l=m.length;u<l;u++)m[u]&&(p[u]=m[u],g[u]&&(p[u+"_d"]=g[u],p.useDecorators=!0));return this.environment.usePartial&&(p.usePartial=!0),this.options.data&&(p.useData=!0),this.useDepths&&(p.useDepths=!0),this.useBlockParams&&(p.useBlockParams=!0),this.options.compat&&(p.compat=!0),i?p.compilerOptions=this.options:(p.compiler=JSON.stringify(p.compiler),this.source.currentLocation={start:{line:1,column:0}},p=this.objectLiteral(p),r.srcName?(p=p.toStringWithSourceMap({file:r.destName}),p.map=p.map&&p.map.toString()):p=p.toString()),p},"compile"),preamble:o(function(){this.lastContext=0,this.source=new E_.default(this.options.srcName),this.decorators=new E_.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(t){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var s=0;Object.keys(this.aliases).forEach(function(u){var l=r.aliases[u];l.children&&l.referenceCount>1&&(n+=", alias"+ ++s+"="+u,l.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return t?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
63
63
  `,c,"}"])},"createFunctionContext"),mergeSource:o(function(t){var r=this.environment.isSimple,n=!this.forceBuffer,i=void 0,s=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(s?a.prepend("buffer += "):i=!0,c.add(";"),a=c=void 0),s=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):s||this.source.push('return "";'):(t+=", buffer = "+(i?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(i?"":`;
64
64
  `)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
65
65
  lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -68,10 +68,10 @@ Expecting `+tn.join(", ")+", got '"+(this.terminals_[$]||$)+"'":Ia="Parse error
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(u3(this.options.strict&&s,this,r,n,t));return}for(var c=r.length;n<c;n++)this.replaceStack(function(u){var l=a.nameLookup(u,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",u]})},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:o(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},"popHash"),pushString:o(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:o(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:o(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(t,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,t);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:o(function(t,r,n){var i=this.popStack(),s=this.setupHelper(t,r),a=[];n&&a.push(s.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],u=this.source.functionCall(c,"call",s.callParams);this.push(u)},"invokeHelper"),itemsSeparatedBy:o(function(t,r){var n=[];n.push(t[0]);for(var i=1;i<t.length;i++)n.push(r,t[i]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),s=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",s," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:o(function(t,r,n){var i=[],s=this.setupParams(r,1,i);t&&(r=this.popStack(),delete s.name),n&&(s.indent=JSON.stringify(n)),s.helpers="helpers",s.partials="partials",s.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(s.depths="depths"),s=this.objectLiteral(s),i.push(s),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:o(function(t){var r=this.popStack(),n=void 0,i=void 0,s=void 0;this.trackIds&&(s=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),s&&(a.ids[t]=s),a.values[t]=r},"assignToHash"),pushId:o(function(t,r,n){t==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):t==="PathExpression"?this.pushString(r):t==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:Xn,compileChildren:o(function(t,r){for(var n=t.children,i=void 0,s=void 0,a=0,c=n.length;a<c;a++){i=n[a],s=new this.compiler;var u=this.matchExistingProgram(i);if(u==null){this.context.programs.push("");var l=this.context.programs.length;i.index=l,i.name="program"+l,this.context.programs[l]=s.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=s.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=u.index,i.name="program"+u.index,this.useDepths=this.useDepths||u.useDepths,this.useBlockParams=this.useBlockParams||u.useBlockParams}},"compileChildren"),matchExistingProgram:o(function(t){for(var r=0,n=this.context.environments.length;r<n;r++){var i=this.context.environments[r];if(i&&i.equals(t))return i}},"matchExistingProgram"),programExpression:o(function(t){var r=this.environment.children[t],n=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},"programExpression"),useRegister:o(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:o(function(t){return t instanceof 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 jf.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 c=this.incrStack();r=["((",this.push(c)," = ",a,")"],n=this.topStack()}var u=t.call(this,n);s||this.popStack(),i&&this.stackSlot--,this.push(r.concat(u,")"))},"replaceStack"),incrStack:o(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:o(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:o(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof 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 jf.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"),c=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:s,name:a,callParams:[c].concat(i)}},"setupHelper"),setupParams:o(function(t,r,n){var i={},s=[],a=[],c=[],u=!n,l=void 0;u&&(n=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var f=this.popStack(),p=this.popStack();(p||f)&&(i.fn=p||"container.noop",i.inverse=f||"container.noop");for(var d=r;d--;)l=this.popStack(),n[d]=l,this.trackIds&&(c[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),s[d]=this.popStack());return u&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(c)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(s)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:o(function(t,r,n,i){var s=this.setupParams(t,r,n);return s.loc=JSON.stringify(this.source.currentLocation),s=this.objectLiteral(s),i?(this.useRegister("options"),n.push("options"),["options=",s]):n?(n.push(s),""):s},"setupHelperArgs")};(function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=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 u3(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(u3,"strictLookup");Pa.default=Xn;$S.exports=Pa.default});var xS=h((Ea,OS)=>{"use strict";Ea.__esModule=!0;function vo(e){return e&&e.__esModule?e:{default:e}}o(vo,"_interopRequireDefault");var l3=w_(),p3=vo(l3),f3=ff(),d3=vo(f3),qf=F_(),Mf=U_(),m3=PS(),h3=vo(m3),g3=ma(),y3=vo(g3),v3=cf(),b3=vo(v3),_3=p3.default.create;function ES(){var e=_3();return e.compile=function(t,r){return Mf.compile(t,r,e)},e.precompile=function(t,r){return Mf.precompile(t,r,e)},e.AST=d3.default,e.Compiler=Mf.Compiler,e.JavaScriptCompiler=h3.default,e.Parser=qf.parser,e.parse=qf.parse,e.parseWithoutProcessing=qf.parseWithoutProcessing,e}o(ES,"create");var ei=ES();ei.create=ES;b3.default(ei);ei.Visitor=y3.default;ei.default=ei;Ea.default=ei;OS.exports=Ea.default});var wS=h(Oa=>{"use strict";Oa.__esModule=!0;Oa.print=E3;Oa.PrintVisitor=Q;function S3(e){return e&&e.__esModule?e:{default:e}}o(S3,"_interopRequireDefault");var $3=ma(),P3=S3($3);function E3(e){return new Q().accept(e)}o(E3,"print");function Q(){this.padding=0}o(Q,"PrintVisitor");Q.prototype=new P3.default;Q.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
72
- `,t};Q.prototype.Program=function(e){var t="",r=e.body,n=void 0,i=void 0;if(e.blockParams){var s="BLOCK PARAMS: [";for(n=0,i=e.blockParams.length;n<i;n++)s+=" "+e.blockParams[n];s+=" ]",t+=this.pad(s)}for(n=0,i=r.length;n<i;n++)t+=this.accept(r[n]);return this.padding--,t};Q.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};Q.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};Q.prototype.BlockStatement=Q.prototype.DecoratorBlock=function(e){var t="";return t+=this.pad((e.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,t+=this.pad(this.SubExpression(e)),e.program&&(t+=this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--),e.inverse&&(e.program&&this.padding++,t+=this.pad("{{^}}"),this.padding++,t+=this.accept(e.inverse),this.padding--,e.program&&this.padding--),this.padding--,t};Q.prototype.PartialStatement=function(e){var t="PARTIAL:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),this.pad("{{> "+t+" }}")};Q.prototype.PartialBlockStatement=function(e){var t="PARTIAL BLOCK:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),t+=" "+this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--,this.pad("{{> "+t+" }}")};Q.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};Q.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};Q.prototype.SubExpression=function(e){for(var t=e.params,r=[],n=void 0,i=0,s=t.length;i<s;i++)r.push(this.accept(t[i]));return t="["+r.join(", ")+"]",n=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+n};Q.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};Q.prototype.StringLiteral=function(e){return'"'+e.value+'"'};Q.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};Q.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};Q.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Q.prototype.NullLiteral=function(){return"NULL"};Q.prototype.Hash=function(e){for(var t=e.pairs,r=[],n=0,i=t.length;n<i;n++)r.push(this.accept(t[n]));return"HASH{"+r.join(", ")+"}"};Q.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var br=h((YF,TS)=>{var xa=xS().default,IS=wS();xa.PrintVisitor=IS.PrintVisitor;xa.print=IS.print;TS.exports=xa;function AS(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=xa.compile(n)}o(AS,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=AS,require.extensions[".hbs"]=AS)});var oj={};t2(oj,{getGenerateFilesData:()=>ij,getGenerateMetadata:()=>nj});module.exports=r2(oj);var Hf=lt(vv());var bv="Schema",_v="Enum",Sv="Body",$v="Param",Pv="Response",Ev="ErrorResponse",Gi="z.void()",Os="z.enum",xs={bindings:["z"],from:"zod"};var Zi={input:"input.yaml",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,importPath:"ts",extractEnums:!0,configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"},acl:{outputFileNameSuffix:"acl",namespaceSuffix:"Acl"}},standalone:!1,baseUrl:"",schemaSuffix:bv,enumSuffix:_v,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var W=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Hr=o(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),Ov=o(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),ue=o(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),xv=o(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),bp=o((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),wv=o((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),Qk=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"),_p=o(e=>{let t=e.map(W).map(Av).map(r=>Jk(r)).flat();return Qk(t)},"getMostCommonAdjacentCombinationSplit"),Av=o(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),Iv=o(e=>Av(e).join(" "),"camelToSpaceSeparated"),Jk=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 ws=o(e=>`use${W(ue(e.operationName))}`,"getQueryName");var Ki="AppRestClient",Sp={query:"AppQueryOptions",mutation:"AppMutationOptions"},$p="src/data",Pp="@/data",Tv="@/util/rest/clients/app-rest-client",kv="@/types/react-query";var As={reactQueryTypes:{fileName:"react-query.types",extension:"ts"},restClient:{fileName:"rest-client",extension:"ts"},restInterceptor:{fileName:"rest-interceptor",extension:"ts"}},Is={fileName:"app-rest-client",extension:"ts"};var Re=o((...e)=>[...new Set(e.flat())],"getUniqueArray");var Ep={"Content-Type":"application/json",Accept:"application/json"},Cv="data";var Rv=o(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),St=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 qt=Symbol.for("@ts-pattern/matcher"),Xk=Symbol.for("@ts-pattern/isVariadic"),ks="@ts-pattern/anonymous-select-key",Op=o(e=>!!(e&&typeof e=="object"),"r"),Ts=o(e=>e&&!!e[qt],"i"),Et=o((e,t,r)=>{if(Ts(e)){let n=e[qt](),{matched:i,selections:s}=n.match(t);return i&&s&&Object.keys(s).forEach(a=>r(a,s[a])),i}if(Op(e)){if(!Op(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],s=[];for(let a of e.keys()){let c=e[a];Ts(c)&&c[Xk]?s.push(c):s.length?i.push(c):n.push(c)}if(s.length){if(s.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let a=t.slice(0,n.length),c=i.length===0?[]:t.slice(-i.length),u=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,f)=>Et(l,a[f],r))&&i.every((l,f)=>Et(l,c[f],r))&&(s.length===0||Et(s[0],u,r))}return e.length===t.length&&e.every((a,c)=>Et(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||Ts(s=i)&&s[qt]().matcherType==="optional")&&Et(i,t[n],r);var s})}return Object.is(t,e)},"s"),dr=o(e=>{var t,r,n;return Op(e)?Ts(e)?(t=(r=(n=e[qt]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Yi(e,dr):Yi(Object.values(e),dr):[]},"o"),Yi=o((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function Be(e){return Object.assign(e,{optional:o(()=>eC(e),"optional"),and:o(t=>z(e,t),"and"),or:o(t=>tC(e,t),"or"),select:o(t=>t===void 0?Nv(e):Nv(t,e),"select")})}o(Be,"u");function eC(e){return Be({[qt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return t===void 0?(dr(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Et(e,t,n),selections:r}},"match"),getSelectionKeys:o(()=>dr(e),"getSelectionKeys"),matcherType:"optional"})})}o(eC,"h");function z(...e){return Be({[qt]:()=>({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(()=>Yi(e,dr),"getSelectionKeys"),matcherType:"and"})})}o(z,"m");function tC(...e){return Be({[qt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return Yi(e,dr).forEach(i=>n(i,void 0)),{matched:e.some(i=>Et(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Yi(e,dr),"getSelectionKeys"),matcherType:"or"})})}o(tC,"d");function M(e){return{[qt]:()=>({match:o(t=>({matched:!!e(t)}),"match")})}}o(M,"p");function Nv(...e){let t=typeof e[0]=="string"?e[0]:void 0,r=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return Be({[qt]:()=>({match:o(n=>{let i={[t??ks]:n};return{matched:r===void 0||Et(r,n,(s,a)=>{i[s]=a}),selections:i}},"match"),getSelectionKeys:o(()=>[t??ks].concat(r===void 0?[]:dr(r)),"getSelectionKeys")})})}o(Nv,"y");function $t(e){return typeof e=="number"}o($t,"v");function ur(e){return typeof e=="string"}o(ur,"b");function lr(e){return typeof e=="bigint"}o(lr,"w");var kD=Be(M(function(e){return!0}));var pr=o(e=>Object.assign(Be(e),{startsWith:o(t=>{return pr(z(e,(r=t,M(n=>ur(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:o(t=>{return pr(z(e,(r=t,M(n=>ur(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:o(t=>pr(z(e,(r=>M(n=>ur(n)&&n.length>=r))(t))),"minLength"),length:o(t=>pr(z(e,(r=>M(n=>ur(n)&&n.length===r))(t))),"length"),maxLength:o(t=>pr(z(e,(r=>M(n=>ur(n)&&n.length<=r))(t))),"maxLength"),includes:o(t=>{return pr(z(e,(r=t,M(n=>ur(n)&&n.includes(r)))));var r},"includes"),regex:o(t=>{return pr(z(e,(r=t,M(n=>ur(n)&&!!n.match(r)))));var r},"regex")}),"j"),CD=pr(M(ur)),Pt=o(e=>Object.assign(Be(e),{between:o((t,r)=>Pt(z(e,((n,i)=>M(s=>$t(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Pt(z(e,(r=>M(n=>$t(n)&&n<r))(t))),"lt"),gt:o(t=>Pt(z(e,(r=>M(n=>$t(n)&&n>r))(t))),"gt"),lte:o(t=>Pt(z(e,(r=>M(n=>$t(n)&&n<=r))(t))),"lte"),gte:o(t=>Pt(z(e,(r=>M(n=>$t(n)&&n>=r))(t))),"gte"),int:o(()=>Pt(z(e,M(t=>$t(t)&&Number.isInteger(t)))),"int"),finite:o(()=>Pt(z(e,M(t=>$t(t)&&Number.isFinite(t)))),"finite"),positive:o(()=>Pt(z(e,M(t=>$t(t)&&t>0))),"positive"),negative:o(()=>Pt(z(e,M(t=>$t(t)&&t<0))),"negative")}),"x"),RD=Pt(M($t)),fr=o(e=>Object.assign(Be(e),{between:o((t,r)=>fr(z(e,((n,i)=>M(s=>lr(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>fr(z(e,(r=>M(n=>lr(n)&&n<r))(t))),"lt"),gt:o(t=>fr(z(e,(r=>M(n=>lr(n)&&n>r))(t))),"gt"),lte:o(t=>fr(z(e,(r=>M(n=>lr(n)&&n<=r))(t))),"lte"),gte:o(t=>fr(z(e,(r=>M(n=>lr(n)&&n>=r))(t))),"gte"),positive:o(()=>fr(z(e,M(t=>lr(t)&&t>0))),"positive"),negative:o(()=>fr(z(e,M(t=>lr(t)&&t<0))),"negative")}),"A"),ND=fr(M(lr)),jD=Be(M(function(e){return typeof e=="boolean"})),qD=Be(M(function(e){return typeof e=="symbol"})),MD=Be(M(function(e){return e==null})),DD=Be(M(function(e){return e!=null}));var Ip=class Ip 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(Ip,"W");var xp=Ip,wp={matched:!1,value:void 0};function ge(e){return new Ap(e,wp)}o(ge,"z");var Wi=class Wi{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let s=!1,a={},c=o((l,f)=>{s=!0,a[l]=f},"a"),u=!n.some(l=>Et(l,this.input,c))||i&&!i(this.input)?wp:{matched:!0,value:r(s?ks in a?a[ks]:a:this.input,this.input)};return new Wi(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new Wi(this.input,n?{matched:!0,value:r(this.input,this.input)}:wp)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new xp(this.input)}run(){return this.exhaustive()}returnType(){return this}};o(Wi,"I");var Ap=Wi;var jv=["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 Tp=2,qv=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],Mv=["query","header","path"],mr=["get","put","post","delete","options","head","patch","trace"],Dv=["string","number","integer","boolean"],Cs=["allOf","anyOf","oneOf"];function hr(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}o(hr,"pick");function Ot(e){return xv(e)}o(Ot,"formatTag");function Br(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return Ot(r??t.defaultTag)}o(Br,"getOperationTag");function Lv(e,t){let r={};for(let n in e.paths){let i=e.paths[n],s=hr(i,mr);for(let a in s){let c=s[a];if(!c||c.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let u=t.splitByTags?Br(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}o(Lv,"getOperationsByTag");var Vv=o(e=>`#/components/schemas/${e}`,"getSchemaRef"),Ur=o(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),Vn=o(e=>Ur(e).split("/").at(-1),"getSchemaNameByRef");function F(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}o(F,"isReferenceObject");function Rp(e){let t=rC(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return ue(t)}o(Rp,"normalizeString");function Hv(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}o(Hv,"wrapWithQuotesIfNeeded");function Bv(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}o(Bv,"unwrapQuotesIfNeeded");function rC(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}o(rC,"prefixStringStartingWithNumberIfNeeded");function Np(e){let t=e.replaceAll("_","#");return ue(t.replaceAll("-","_")).replaceAll("#","_")}o(Np,"pathParamToVariableName");var Mt=o(e=>Dv.includes(e),"isPrimitiveType");function Uv(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(Uv,"escapeControlCharacters");function Ue(e){return e.includes("application/")&&e.includes("json")||qv.includes(e)||e.includes("text/")}o(Ue,"isParamMediaTypeAllowed");function Rs(e){return e>=200&&e<300}o(Rs,"isMainResponseStatus");function Ns(e){return!(e>=200&&e<300)}o(Ns,"isErrorStatus");function Hn(e){return e==="application/json"}o(Hn,"isMediaTypeAllowed");function kp({path:e,method:t,operation:r,options:n,keepOperationPrefixWithoutEnding:i}){let s=`${t}${iC(e)}`,a=r.operationId?St(r.operationId):s;if(n.removeOperationPrefixEndingWith&&i)return a.split(n.removeOperationPrefixEndingWith).map((u,l)=>l===0?u:W(u)).join("");if(n.removeOperationPrefixEndingWith&&!i){let c=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);a=a.replace(c,"")}return jv.includes(a)?s:a}o(kp,"getOperationName");function Qi({path:e,method:t,operation:r,operationsByTag:n,options:i}){let s=i.splitByTags?Br(r,i):i.defaultTag,a=kp({path:e,method:t,operation:r,options:i});return n[s].filter(u=>kp({path:e,method:t,operation:u,options:i})===a).length===1?a:kp({path:e,method:t,operation:r,options:i,keepOperationPrefixWithoutEnding:!0})}o(Qi,"getUniqueOperationName");function zv(e,t,r){let n=[];for(let i in e.paths){let s=e.paths[i],a=hr(s,mr);for(let c in a){let u=a[c];if(!u||u.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let l=Qi({path:i,method:c,operation:u,operationsByTag:t,options:r});n.push(l)}}return n}o(zv,"getUniqueOperationNamesWithoutSplitByTags");var Fv=/({\w+})/g,nC=/[^\w\-]+/g;function iC(e){e=W(Ov(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(Fv)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(Fv,"")}By${W(r.slice(1,-1))}`}return e.replace(nC,"_")}o(iC,"pathToVariableName");var Cp=/{(\b\w+(?:-\w+)*\b)}/g;function Gv(e){let t=e.match(Cp);return t===null?e.replaceAll(Cp,":$1"):(t.forEach(r=>{let n=Np(r.replaceAll(Cp,":$1"));e=e.replaceAll(r,n)}),e)}o(Gv,"replaceHyphenatedPath");function Ne(e){return!F(e)}o(Ne,"isSchemaObject");function Zv(e){return e.type==="array"}o(Zv,"isArraySchemaObject");function Kv(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(oC(s)){let a=s.required;i[0].push(...a??[])}else i[1].push(s);return i},[[],[]]),n={properties:t.reduce((i,s)=>(i[s]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:o((i,s)=>{if(F(i)){let a=s(i.$ref);a&&n.required.forEach(c=>{var u;n.properties[c]=((u=a==null?void 0:a.properties)==null?void 0:u[c])??{}})}else{let a=i.properties??{};n.required.forEach(c=>{a[c]&&(n.properties[c]=a[c]??{})})}},"patchRequiredSchemaInLoop")}}o(Kv,"inferRequiredSchema");var oC=o(e=>!F(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var Dt=o((e,t)=>bp(W(Rp(e)),t),"getZodSchemaName"),jp=o((e,t,r)=>bp(W(Rp(e)),`${t}${r}`),"getEnumZodSchemaName"),Pe=o(e=>!e.startsWith("z."),"isNamedZodSchema"),Wv=o(e=>e.startsWith(Os),"isEnumZodSchema"),zr=o((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),js=o(e=>ue(`${e}_${Sv}`),"getBodyZodSchemaName"),Yv=o((e,t)=>ue(`${e}_${t}${$v}`),"getParamZodSchemaName"),sC=o(e=>ue(`${e}${Pv}`),"getMainResponseZodSchemaName"),aC=o((e,t)=>ue(`${e}_${t}_${Ev}`),"getErrorResponseZodSchemaName");function qs({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),s=zr(t,r,n);return!Rs(i)&&e!=="default"&&Ns(i)?aC(s,e):sC(s)}o(qs,"getResponseZodSchemaName");var Ji=o((e,t)=>wv(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),Qv=o((e,t)=>Pe(t)?`${e.options.includeNamespaces?`${Z({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),Bn=o((e,t)=>Pe(t)?`${e.options.includeNamespaces?`${Z({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${Ji(t,e.options)}`:t===Gi?"void":t,"getImportedZodSchemaInferedTypeName");function Ms(e){return ge(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}o(Ms,"primitiveTypeToTsType");function Un({zodSchemaName:e,schema:t,resolver:r}){let n="void",i;e&&Pe(e)?(n=Bn(r,e),i=r.getTagByZodSchemaName(e)):t!=null&&t.type&&Mt(t==null?void 0:t.type)&&(n=Ms(t==null?void 0:t.type));let s=n.split(".");return{type:s[s.length-1],...s.length>1?{namespace:s[0]}:{},...i?{importPath:Zr({type:"models",tag:i,includeTagDir:!0,options:r.options})}:{}}}o(Un,"getTsTypeBase");function Gr({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(c=>{let u=n.resolveObject(c);return Gr({schema:u,parentTypes:r,resolver:n})});return a.every(({metaType:c})=>c==="object")?{metaType:"object",objectProperties:a.reduce((c,{objectProperties:u})=>{let l=u.map(({name:f})=>f);return[...c.filter(({name:f})=>!l.includes(f)),...u]},[])}:{metaType:"composite",[i]:a}}else e=n.resolveObject(s[0])}return e.type==="array"?{metaType:"array",arrayType:Jv({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:cC({schema:e,parentTypes:r,resolver:n})}:{metaType:"primitive"}}o(Gr,"getSchemaTsMetaType");function Jv({arraySchema:e,parentTypes:t,resolver:r}){let n,i;if(F(e.items)){let u=e.items.$ref;n=r.getZodSchemaNameByRef(u),i=r.getSchemaByRef(u)}else i=e.items;let s=Un({zodSchemaName:n,schema:i,resolver:r}),a=Xv(s,t),c=Gr({schema:i,isCircular:a,parentTypes:[...t,s],resolver:r});return{...s,...c}}o(Jv,"getArraySchemaTsType");function cC({schema:e,parentTypes:t,resolver:r}){return Object.entries((e==null?void 0:e.properties)??{}).map(([n,i])=>{var a;let s=((a=e==null?void 0:e.required)==null?void 0:a.includes(n))??!1;if(F(i)){let c=r.getZodSchemaNameByRef(i.$ref),u=r.getSchemaByRef(i.$ref),l=Un({zodSchemaName:c,schema:u,resolver:r}),f=Xv(l,t),p=Gr({schema:u,isCircular:f,parentTypes:[...t,l],resolver:r});return{name:n,isRequired:s,...l,...p}}else if(i.type==="array"){let c=Jv({arraySchema:i,parentTypes:t,resolver:r});return{name:n,isRequired:s,type:"array",metaType:"array",arrayType:c}}else if(Mt(i.type))return{name:n,isRequired:s,type:Ms(i.type),metaType:"primitive"};return{name:n,isRequired:s,type:"void",metaType:"primitive"}})}o(cC,"getSchemaTsProperties");function Xv(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}o(Xv,"getIsCircular");var Xi=o(e=>Hr(ue(e.operationName)),"getEndpointName");function eb(e,t){return`${t.includeNamespaces?`${Z({type:"endpoints",tag:eo(e,t),options:t})}.`:""}${Xi(e)}`}o(eb,"getImportedEndpointName");var tb=o(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function eo(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return Ot(r??t.defaultTag)}o(eo,"getEndpointTag");function qp(e,t){return t.parameters.map(r=>{var i,s,a,c;let n="string";if(Pe(r.zodSchema))n=Bn(e,r.zodSchema);else if((i=r.parameterObject)!=null&&i.schema&&Ne(r.parameterObject.schema)){let u=(a=(s=r.parameterObject)==null?void 0:s.schema)==null?void 0:a.type;u&&Mt(u)&&(n=Ms(u))}return{name:St(r.name),type:n,paramType:r.type,required:((c=r.parameterObject)==null?void 0:c.required)??!0,parameterObject:r.parameterObject,bodyObject:r.bodyObject}}).sort((r,n)=>{if(r.required===n.required){let i=["Path","Body","Query","Header"];return i.indexOf(r.paramType)-i.indexOf(n.paramType)}return r.required?-1:1})}o(qp,"mapEndpointParamsToFunctionParams");function rb(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let s=Rv(i.name)?i.name:`"${i.name}"`,a=St(i.name);return{...i,name:s,value:a}}),r={};return e.requestFormat!==Ep["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==Ep.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=St(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}o(rb,"getEndpointConfig");function gr({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",s=o(u=>e.getTagByZodSchemaName(u),"getTag"),a=Mp({type:i,tag:t,entities:r,getTag:s,getEntityName:o(u=>u,"getEntityName"),options:e.options}),c=Mp({type:i,tag:t,entities:n,getTag:s,getEntityName:o(u=>Ji(u,e.options),"getEntityName"),options:e.options});return uC(e.options,a,c)}o(gr,"getModelsImports");function nb({tag:e,endpoints:t,options:r}){return Mp({type:"endpoints",tag:e,entities:t,getTag:o(n=>eo(n,r),"getTag"),getEntityName:Xi,options:r})}o(nb,"getEndpointsImports");function ib({tags:e,entityName:t,getAliasEntityName:r,options:n}){let i=new Map;return e.forEach(s=>{let a=`${t}${r?` as ${r(s)}`:""}`;i.has(s)?n.includeNamespaces||i.get(s).bindings.push(a):i.set(s,{bindings:[n.includeNamespaces?Z({type:"acl",tag:s,options:n}):a],from:`${to(n)}${Zr({type:"acl",tag:s,includeTagDir:!0,options:n})}`})}),Array.from(i.values())}o(ib,"getAclImports");function to(e){let t=Pp;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${$p}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${$p}`,"g"),Pp)),`${t}/`.replace(/\/\//g,"/")}o(to,"getImportPath");function Mp({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:s}){let a=new Map;return r.forEach(c=>{let u=n(c);if(a.has(u))s.includeNamespaces||a.get(u).bindings.push(i(c));else{let l=t===u;a.set(u,{bindings:[s.includeNamespaces?Z({type:e,tag:u,options:s}):i(c)],from:`${l?"./":to(s)}${Zr({type:e,tag:u,includeTagDir:!l,options:s})}`})}}),Array.from(a.values())}o(Mp,"getImports");function uC(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:Re(n.bindings)}))}o(uC,"mergeImports");function Ds({fileName:e,extension:t}){return`${e}.${t}`}o(Ds,"getFileNameWithExtension");function ob({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Hr(t)}/`:""}${Hr(t)}.${i}`:i}o(ob,"getTagFileNameWithoutExtension");function Zr(...e){return ob(...e)}o(Zr,"getTagImportPath");function sb(...e){return`${ob(...e)}.ts`}o(sb,"getTagFileName");var Z=o(({type:e,tag:t,options:r})=>`${W(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");function ab(e){return e.standalone?`${to(e)}${Is.fileName}`:Tv}o(ab,"getAppRestClientImportPath");function cb(e){return e.standalone?`${to(e)}${As.reactQueryTypes.fileName}`:kv}o(cb,"getQueryTypesImportPath");var xt=o(e=>e.method==="get","isQuery"),Ls=o(e=>e.method!=="get","isMutation");function Fs(e){return{type:"invalid-schema",message:e}}o(Fs,"getInvalidSchemaError");function ub(e){return{type:"invalid-operation-id",message:`Operation ${e}`}}o(ub,"getInvalidOperationIdError");function lb(e,t){return{type:"missing-path-parameter",message:`Path ${t} is missing [${e.map(({name:r})=>r).join(", ")}]`}}o(lb,"getMissingPathParameterError");function pb(e){return{type:"not-allowed-inline-enum",message:e}}o(pb,"getNotAllowedInlineEnumError");function fb(e){return{type:"not-allowed-circular-schema",message:e}}o(fb,"getNotAllowedCircularSchemaError");function db(e,t,r){return{type:"missing-acl-condition-property",message:`Condition property ${e} is not found in parameters or body in operation ${mb(t,r)}`}}o(db,"getMissingAclConditionPropertyError");function Dp(e,t,r){return{type:"missing-status-code",message:`Missing status code ${e} in operation ${mb(t,r)}`}}o(Dp,"getMissingStatusCodeError");function mb(e,t){return e.operationId??`${t.method} ${t.path}`}o(mb,"getOperationDescriptor");function wt({schema:e,meta:t,options:r}){let n=[];ge(e.type).with("string",()=>n.push(fC(e))).with("number","integer",()=>n.push(mC(e))).with("array",()=>n.push(hC(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
71
+ `.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(t){this.lastContext=t},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(t,r,n,i){var s=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[s++])):this.pushContext(),this.resolvePath("context",t,s,r,n)},"lookupOnContext"),lookupBlockParam:o(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(t,r,n,i,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(m3(this.options.strict&&s,this,r,n,t));return}for(var c=r.length;n<c;n++)this.replaceStack(function(u){var l=a.nameLookup(u,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",u]})},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:o(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},"popHash"),pushString:o(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:o(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:o(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(t,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,t);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:o(function(t,r,n){var i=this.popStack(),s=this.setupHelper(t,r),a=[];n&&a.push(s.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],u=this.source.functionCall(c,"call",s.callParams);this.push(u)},"invokeHelper"),itemsSeparatedBy:o(function(t,r){var n=[];n.push(t[0]);for(var i=1;i<t.length;i++)n.push(r,t[i]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),s=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",s," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:o(function(t,r,n){var i=[],s=this.setupParams(r,1,i);t&&(r=this.popStack(),delete s.name),n&&(s.indent=JSON.stringify(n)),s.helpers="helpers",s.partials="partials",s.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(s.depths="depths"),s=this.objectLiteral(s),i.push(s),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:o(function(t){var r=this.popStack(),n=void 0,i=void 0,s=void 0;this.trackIds&&(s=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),s&&(a.ids[t]=s),a.values[t]=r},"assignToHash"),pushId:o(function(t,r,n){t==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):t==="PathExpression"?this.pushString(r):t==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:ti,compileChildren:o(function(t,r){for(var n=t.children,i=void 0,s=void 0,a=0,c=n.length;a<c;a++){i=n[a],s=new this.compiler;var u=this.matchExistingProgram(i);if(u==null){this.context.programs.push("");var l=this.context.programs.length;i.index=l,i.name="program"+l,this.context.programs[l]=s.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=s.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=u.index,i.name="program"+u.index,this.useDepths=this.useDepths||u.useDepths,this.useBlockParams=this.useBlockParams||u.useBlockParams}},"compileChildren"),matchExistingProgram:o(function(t){for(var r=0,n=this.context.environments.length;r<n;r++){var i=this.context.environments[r];if(i&&i.equals(t))return i}},"matchExistingProgram"),programExpression:o(function(t){var r=this.environment.children[t],n=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},"programExpression"),useRegister:o(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:o(function(t){return t instanceof ei||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:o(function(t){this.push(new ei(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 Mf.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof ei)n=[a.value],r=["(",n],s=!0;else{i=!0;var c=this.incrStack();r=["((",this.push(c)," = ",a,")"],n=this.topStack()}var u=t.call(this,n);s||this.popStack(),i&&this.stackSlot--,this.push(r.concat(u,")"))},"replaceStack"),incrStack:o(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:o(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:o(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof ei)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 ei)return n.value;if(!r){if(!this.stackSlot)throw new Mf.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 ei?r.value:r},"topStack"),contextName:o(function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},"contextName"),quotedString:o(function(t){return this.source.quotedString(t)},"quotedString"),objectLiteral:o(function(t){return this.source.objectLiteral(t)},"objectLiteral"),aliasable:o(function(t){var r=this.aliases[t];return r?(r.referenceCount++,r):(r=this.aliases[t]=this.source.wrap(t),r.aliasable=!0,r.referenceCount=1,r)},"aliasable"),setupHelper:o(function(t,r,n){var i=[],s=this.setupHelperArgs(r,t,i,n),a=this.nameLookup("helpers",r,"helper"),c=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:s,name:a,callParams:[c].concat(i)}},"setupHelper"),setupParams:o(function(t,r,n){var i={},s=[],a=[],c=[],u=!n,l=void 0;u&&(n=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var f=this.popStack(),p=this.popStack();(p||f)&&(i.fn=p||"container.noop",i.inverse=f||"container.noop");for(var d=r;d--;)l=this.popStack(),n[d]=l,this.trackIds&&(c[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),s[d]=this.popStack());return u&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(c)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(s)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:o(function(t,r,n,i){var s=this.setupParams(t,r,n);return s.loc=JSON.stringify(this.source.currentLocation),s=this.objectLiteral(s),i?(this.useRegister("options"),n.push("options"),["options=",s]):n?(n.push(s),""):s},"setupHelperArgs")};(function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=ti.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();ti.isValidJavaScriptVariableName=function(e){return!ti.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function m3(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(m3,"strictLookup");wa.default=ti;w_.exports=wa.default});var k_=h((Aa,T_)=>{"use strict";Aa.__esModule=!0;function _o(e){return e&&e.__esModule?e:{default:e}}o(_o,"_interopRequireDefault");var h3=CS(),g3=_o(h3),y3=mf(),v3=_o(y3),Df=zS(),Lf=WS(),b3=A_(),S3=_o(b3),_3=va(),P3=_o(_3),$3=lf(),O3=_o($3),E3=g3.default.create;function I_(){var e=E3();return e.compile=function(t,r){return Lf.compile(t,r,e)},e.precompile=function(t,r){return Lf.precompile(t,r,e)},e.AST=v3.default,e.Compiler=Lf.Compiler,e.JavaScriptCompiler=S3.default,e.Parser=Df.parser,e.parse=Df.parse,e.parseWithoutProcessing=Df.parseWithoutProcessing,e}o(I_,"create");var ri=I_();ri.create=I_;O3.default(ri);ri.Visitor=P3.default;ri.default=ri;Aa.default=ri;T_.exports=Aa.default});var C_=h(Ia=>{"use strict";Ia.__esModule=!0;Ia.print=I3;Ia.PrintVisitor=J;function x3(e){return e&&e.__esModule?e:{default:e}}o(x3,"_interopRequireDefault");var w3=va(),A3=x3(w3);function I3(e){return new J().accept(e)}o(I3,"print");function J(){this.padding=0}o(J,"PrintVisitor");J.prototype=new A3.default;J.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
72
+ `,t};J.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};J.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};J.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};J.prototype.BlockStatement=J.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};J.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+" }}")};J.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+" }}")};J.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};J.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};J.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};J.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};J.prototype.StringLiteral=function(e){return'"'+e.value+'"'};J.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};J.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};J.prototype.UndefinedLiteral=function(){return"UNDEFINED"};J.prototype.NullLiteral=function(){return"NULL"};J.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(", ")+"}"};J.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var Sr=h((vV,j_)=>{var Ta=k_().default,N_=C_();Ta.PrintVisitor=N_.PrintVisitor;Ta.print=N_.print;j_.exports=Ta;function R_(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=Ta.compile(n)}o(R_,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=R_,require.extensions[".hbs"]=R_)});var hj={};s2(hj,{getGenerateFilesData:()=>mj,getGenerateMetadata:()=>dj});module.exports=a2(hj);var Uf=lt(Sv());var _v="Schema",Pv="Enum",$v="Body",Ov="Param",Ev="Response",xv="ErrorResponse",Ki="z.void()",Is="z.enum",Ts={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"},acl:{outputFileNameSuffix:"acl",namespaceSuffix:"Acl"}},standalone:!1,baseUrl:"",schemaSuffix:_v,enumSuffix:Pv,withDefaultValues:!0,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var W=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Br=o(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),wv=o(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),ue=o(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),Av=o(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),_p=o((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),Iv=o((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),rC=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"),Pp=o(e=>{let t=e.map(W).map(Tv).map(r=>nC(r)).flat();return rC(t)},"getMostCommonAdjacentCombinationSplit"),Tv=o(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),kv=o(e=>Tv(e).join(" "),"camelToSpaceSeparated"),nC=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${W(ue(e.operationName))}`,"getQueryName");var Yi="AppRestClient",$p={query:"AppQueryOptions",mutation:"AppMutationOptions"},Op="src/data",Ep="@/data",Cv="@/util/rest/clients/app-rest-client",Rv="@/types/react-query";var Cs={reactQueryTypes:{fileName:"react-query.types",extension:"ts"},restClient:{fileName:"rest-client",extension:"ts"},restInterceptor:{fileName:"rest-interceptor",extension:"ts"}},Rs={fileName:"app-rest-client",extension:"ts"};var Ne=o((...e)=>[...new Set(e.flat())],"getUniqueArray");var xp={"Content-Type":"application/json",Accept:"application/json"},Nv="data";var jv=o(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),_t=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 Dt=Symbol.for("@ts-pattern/matcher"),iC=Symbol.for("@ts-pattern/isVariadic"),js="@ts-pattern/anonymous-select-key",wp=o(e=>!!(e&&typeof e=="object"),"r"),Ns=o(e=>e&&!!e[Dt],"i"),Ot=o((e,t,r)=>{if(Ns(e)){let n=e[Dt](),{matched:i,selections:s}=n.match(t);return i&&s&&Object.keys(s).forEach(a=>r(a,s[a])),i}if(wp(e)){if(!wp(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],s=[];for(let a of e.keys()){let c=e[a];Ns(c)&&c[iC]?s.push(c):s.length?i.push(c):n.push(c)}if(s.length){if(s.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let a=t.slice(0,n.length),c=i.length===0?[]:t.slice(-i.length),u=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,f)=>Ot(l,a[f],r))&&i.every((l,f)=>Ot(l,c[f],r))&&(s.length===0||Ot(s[0],u,r))}return e.length===t.length&&e.every((a,c)=>Ot(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||Ns(s=i)&&s[Dt]().matcherType==="optional")&&Ot(i,t[n],r);var s})}return Object.is(t,e)},"s"),dr=o(e=>{var t,r,n;return wp(e)?Ns(e)?(t=(r=(n=e[Dt]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Qi(e,dr):Qi(Object.values(e),dr):[]},"o"),Qi=o((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function Ue(e){return Object.assign(e,{optional:o(()=>oC(e),"optional"),and:o(t=>z(e,t),"and"),or:o(t=>sC(e,t),"or"),select:o(t=>t===void 0?qv(e):qv(t,e),"select")})}o(Ue,"u");function oC(e){return Ue({[Dt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return t===void 0?(dr(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Ot(e,t,n),selections:r}},"match"),getSelectionKeys:o(()=>dr(e),"getSelectionKeys"),matcherType:"optional"})})}o(oC,"h");function z(...e){return Ue({[Dt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return{matched:e.every(i=>Ot(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Qi(e,dr),"getSelectionKeys"),matcherType:"and"})})}o(z,"m");function sC(...e){return Ue({[Dt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return Qi(e,dr).forEach(i=>n(i,void 0)),{matched:e.some(i=>Ot(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Qi(e,dr),"getSelectionKeys"),matcherType:"or"})})}o(sC,"d");function D(e){return{[Dt]:()=>({match:o(t=>({matched:!!e(t)}),"match")})}}o(D,"p");function qv(...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({[Dt]:()=>({match:o(n=>{let i={[t??js]:n};return{matched:r===void 0||Ot(r,n,(s,a)=>{i[s]=a}),selections:i}},"match"),getSelectionKeys:o(()=>[t??js].concat(r===void 0?[]:dr(r)),"getSelectionKeys")})})}o(qv,"y");function Pt(e){return typeof e=="number"}o(Pt,"v");function ur(e){return typeof e=="string"}o(ur,"b");function lr(e){return typeof e=="bigint"}o(lr,"w");var V8=Ue(D(function(e){return!0}));var pr=o(e=>Object.assign(Ue(e),{startsWith:o(t=>{return pr(z(e,(r=t,D(n=>ur(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:o(t=>{return pr(z(e,(r=t,D(n=>ur(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:o(t=>pr(z(e,(r=>D(n=>ur(n)&&n.length>=r))(t))),"minLength"),length:o(t=>pr(z(e,(r=>D(n=>ur(n)&&n.length===r))(t))),"length"),maxLength:o(t=>pr(z(e,(r=>D(n=>ur(n)&&n.length<=r))(t))),"maxLength"),includes:o(t=>{return pr(z(e,(r=t,D(n=>ur(n)&&n.includes(r)))));var r},"includes"),regex:o(t=>{return pr(z(e,(r=t,D(n=>ur(n)&&!!n.match(r)))));var r},"regex")}),"j"),H8=pr(D(ur)),$t=o(e=>Object.assign(Ue(e),{between:o((t,r)=>$t(z(e,((n,i)=>D(s=>Pt(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>$t(z(e,(r=>D(n=>Pt(n)&&n<r))(t))),"lt"),gt:o(t=>$t(z(e,(r=>D(n=>Pt(n)&&n>r))(t))),"gt"),lte:o(t=>$t(z(e,(r=>D(n=>Pt(n)&&n<=r))(t))),"lte"),gte:o(t=>$t(z(e,(r=>D(n=>Pt(n)&&n>=r))(t))),"gte"),int:o(()=>$t(z(e,D(t=>Pt(t)&&Number.isInteger(t)))),"int"),finite:o(()=>$t(z(e,D(t=>Pt(t)&&Number.isFinite(t)))),"finite"),positive:o(()=>$t(z(e,D(t=>Pt(t)&&t>0))),"positive"),negative:o(()=>$t(z(e,D(t=>Pt(t)&&t<0))),"negative")}),"x"),B8=$t(D(Pt)),fr=o(e=>Object.assign(Ue(e),{between:o((t,r)=>fr(z(e,((n,i)=>D(s=>lr(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>fr(z(e,(r=>D(n=>lr(n)&&n<r))(t))),"lt"),gt:o(t=>fr(z(e,(r=>D(n=>lr(n)&&n>r))(t))),"gt"),lte:o(t=>fr(z(e,(r=>D(n=>lr(n)&&n<=r))(t))),"lte"),gte:o(t=>fr(z(e,(r=>D(n=>lr(n)&&n>=r))(t))),"gte"),positive:o(()=>fr(z(e,D(t=>lr(t)&&t>0))),"positive"),negative:o(()=>fr(z(e,D(t=>lr(t)&&t<0))),"negative")}),"A"),U8=fr(D(lr)),z8=Ue(D(function(e){return typeof e=="boolean"})),G8=Ue(D(function(e){return typeof e=="symbol"})),Z8=Ue(D(function(e){return e==null})),K8=Ue(D(function(e){return e!=null}));var kp=class kp 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(kp,"W");var Ap=kp,Ip={matched:!1,value:void 0};function ge(e){return new Tp(e,Ip)}o(ge,"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={},c=o((l,f)=>{s=!0,a[l]=f},"a"),u=!n.some(l=>Ot(l,this.input,c))||i&&!i(this.input)?Ip:{matched:!0,value:r(s?js in a?a[js]:a:this.input,this.input)};return new Ji(this.input,u)}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)}:Ip)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new Ap(this.input)}run(){return this.exhaustive()}returnType(){return this}};o(Ji,"I");var Tp=Ji;var Mv=["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 Cp=2,Dv=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],Lv=["query","header","path"],mr=["get","put","post","delete","options","head","patch","trace"],Fv=["string","number","integer","boolean"],Bn=["allOf","anyOf","oneOf"];function hr(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}o(hr,"pick");function Et(e){return Av(e)}o(Et,"formatTag");function Ur(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return Et(r??t.defaultTag)}o(Ur,"getOperationTag");function Vv(e,t){let r={};for(let n in e.paths){let i=e.paths[n],s=hr(i,mr);for(let a in s){let c=s[a];if(!c||c.deprecated&&!t.withDeprecatedEndpoints)continue;let u=t.splitByTags?Ur(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}o(Vv,"getOperationsByTag");var Bv=o(e=>`#/components/schemas/${e}`,"getSchemaRef"),zr=o(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),Un=o(e=>zr(e).split("/").at(-1),"getSchemaNameByRef");function M(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}o(M,"isReferenceObject");function jp(e){let t=aC(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return ue(t)}o(jp,"normalizeString");function Uv(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}o(Uv,"wrapWithQuotesIfNeeded");function zv(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}o(zv,"unwrapQuotesIfNeeded");function aC(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}o(aC,"prefixStringStartingWithNumberIfNeeded");function qp(e){let t=e.replaceAll("_","#");return ue(t.replaceAll("-","_")).replaceAll("#","_")}o(qp,"pathParamToVariableName");var Lt=o(e=>Fv.includes(e),"isPrimitiveType");function Gv(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(Gv,"escapeControlCharacters");function ze(e){return e.includes("application/")&&e.includes("json")||Dv.includes(e)||e.includes("text/")}o(ze,"isParamMediaTypeAllowed");function qs(e){return e>=200&&e<300}o(qs,"isMainResponseStatus");function Ms(e){return!(e>=200&&e<300)}o(Ms,"isErrorStatus");function zn(e){return e==="application/json"}o(zn,"isMediaTypeAllowed");function Rp({path:e,method:t,operation:r,options:n,keepOperationPrefixWithoutEnding:i}){let s=`${t}${uC(e)}`,a=r.operationId?_t(r.operationId):s;if(n.removeOperationPrefixEndingWith&&i)return a.split(n.removeOperationPrefixEndingWith).map((u,l)=>l===0?u:W(u)).join("");if(n.removeOperationPrefixEndingWith&&!i){let c=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);a=a.replace(c,"")}return Mv.includes(a)?s:a}o(Rp,"getOperationName");function Xi({path:e,method:t,operation:r,operationsByTag:n,options:i}){let s=i.splitByTags?Ur(r,i):i.defaultTag,a=Rp({path:e,method:t,operation:r,options:i});return n[s].filter(u=>Rp({path:e,method:t,operation:u,options:i})===a).length===1?a:Rp({path:e,method:t,operation:r,options:i,keepOperationPrefixWithoutEnding:!0})}o(Xi,"getUniqueOperationName");function Zv(e,t,r){let n=[];for(let i in e.paths){let s=e.paths[i],a=hr(s,mr);for(let c in a){let u=a[c];if(!u||u.deprecated&&!r.withDeprecatedEndpoints)continue;let l=Xi({path:i,method:c,operation:u,operationsByTag:t,options:r});n.push(l)}}return n}o(Zv,"getUniqueOperationNamesWithoutSplitByTags");var Hv=/({\w+})/g,cC=/[^\w\-]+/g;function uC(e){e=W(wv(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(Hv)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(Hv,"")}By${W(r.slice(1,-1))}`}return e.replace(cC,"_")}o(uC,"pathToVariableName");var Np=/{(\b\w+(?:-\w+)*\b)}/g;function Kv(e){let t=e.match(Np);return t===null?e.replaceAll(Np,":$1"):(t.forEach(r=>{let n=qp(r.replaceAll(Np,":$1"));e=e.replaceAll(r,n)}),e)}o(Kv,"replaceHyphenatedPath");function je(e){return!M(e)}o(je,"isSchemaObject");function Ds(e){return e.type==="array"}o(Ds,"isArraySchemaObject");function Wv(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(lC(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(M(i)){let a=s(i.$ref);a&&n.required.forEach(c=>{var u;n.properties[c]=((u=a==null?void 0:a.properties)==null?void 0:u[c])??{}})}else{let a=i.properties??{};n.required.forEach(c=>{a[c]&&(n.properties[c]=a[c]??{})})}},"patchRequiredSchemaInLoop")}}o(Wv,"inferRequiredSchema");var lC=o(e=>!M(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var Ft=o((e,t)=>_p(W(jp(e)),t),"getZodSchemaName"),Mp=o((e,t,r)=>_p(W(jp(e)),`${t}${r}`),"getEnumZodSchemaName"),$e=o(e=>!e.startsWith("z."),"isNamedZodSchema"),Yv=o(e=>e.startsWith(Is),"isEnumZodSchema"),Gr=o((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),Ls=o(e=>ue(`${e}_${$v}`),"getBodyZodSchemaName"),Jv=o((e,t)=>ue(`${e}_${t}${Ov}`),"getParamZodSchemaName"),pC=o(e=>ue(`${e}${Ev}`),"getMainResponseZodSchemaName"),fC=o((e,t)=>ue(`${e}_${t}_${xv}`),"getErrorResponseZodSchemaName");function Fs({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),s=Gr(t,r,n);return!qs(i)&&e!=="default"&&Ms(i)?fC(s,e):pC(s)}o(Fs,"getResponseZodSchemaName");function eo(e){return["minimum","exclusiveMinimum","maximum","exclusiveMaximum","minItems","minLength","minProperties","maxItems","maxLength","maxProperties","default","example"].filter(n=>e[n]).reduce((n,i)=>[...n,`${W(kv(i))}: \`${e[i]}\``],[])}o(eo,"getSchemaDescriptions");function Oe(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(M(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(Bn.some(s=>s in i&&i[s])){let s=i.allOf??i.anyOf??i.oneOf??[];for(let a of s)(n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))!==!0&&Oe(a,{data:r,onSchema:n})}if(i.properties)for(let[s,a]of Object.entries(i.properties))n({type:"property",parentSchema:e,schema:a,data:r,propertyName:s})!==!0&&Oe(a,t);if(i.additionalProperties)for(let[s,a]of Object.entries(i.additionalProperties))!(a instanceof Object)||n({type:"additionalProperty",parentSchema:e,schema:a,data:r,propertyName:s})===!0||Oe(a,t);if(i.type==="array"){let s=e.items;if(n({type:"array",parentSchema:e,schema:s,data:r})===!0)return;Oe(s,t)}}o(Oe,"iterateSchema");var to=o((e,t)=>Iv(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),Qv=o((e,t)=>$e(t)?`${e.options.includeNamespaces?`${Z({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),gr=o((e,t,r)=>{if(!$e(t))return t===Ki?"void":t;let n=e.getTagByZodSchemaName(t);return`${e.options.includeNamespaces&&n!==r?`${Z({type:"models",tag:n,options:e.options})}.`:""}${to(t,e.options)}`},"getImportedZodSchemaInferedTypeName");function Xv(e){var t;return e.isEnum?"enum":((t=e.schemaObj)==null?void 0:t.type)??"object"}o(Xv,"getZodSchemaType");function eb(e){if(e.schemaObj)return[e.schemaObj.description,...eo(e.schemaObj).join(". ")].filter(Boolean)}o(eb,"getZodSchemaDescription");function tb(e,t,r){var n;if(M(t)){let i=e.getZodSchemaNameByRef(t.$ref);return i?gr(e,i,r):void 0}if(Ds(t)){if(!M(t.items))return`${((n=t.items)==null?void 0:n.type)??"unknown"}[]`;let i=e.getZodSchemaNameByRef(t.items.$ref);return i?`${gr(e,i,r)}[]`:void 0}if(Bn.some(i=>i in t&&t[i])){let i=t.allOf??t.anyOf??t.oneOf??[];if(i.length>0)return tb(e,i[0],r)}return t.type}o(tb,"getType");function rb(e,t,r){if(!t.schemaObj)return[];let n="[0]",i={},s=o(a=>{var u;if(a.type==="reference")return!0;if(a.type==="composite")return;let c=[...((u=a.data)==null?void 0:u.pathSegments)??[]];if(a.type==="array"?c.push(n):(a.type==="property"||a.type==="additionalProperty")&&c.push(a.propertyName),a.schema&&c[c.length-1]!==n){let l=e.resolveObject(a.schema),f=[l.description,...eo(l)].filter(Boolean),p=c.join(".");i[p]&&"type"in a.schema&&a.schema.type==="object"||(delete i[p],i[p]={type:tb(e,a.schema,r)??"unknown",description:f.join(". ")})}return Oe(a.schema,{data:{pathSegments:[...c]},onSchema:s}),!0},"onSchema");return"allOf"in t.schemaObj&&t.schemaObj.allOf&&t.schemaObj.allOf.forEach(a=>{if(M(a)){let c=e.resolveObject(a);Oe(c,{data:{pathSegments:[]},onSchema:s})}}),Oe(t.schemaObj,{data:{pathSegments:[]},onSchema:s}),i}o(rb,"getZodSchemaPropertyDescriptions");function Vs(e){return ge(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}o(Vs,"primitiveTypeToTsType");function Gn({zodSchemaName:e,schema:t,resolver:r}){let n="void",i;e&&$e(e)?(n=gr(r,e),i=r.getTagByZodSchemaName(e)):t!=null&&t.type&&Lt(t==null?void 0:t.type)&&(n=Vs(t==null?void 0:t.type));let s=n.split(".");return{type:s[s.length-1],...s.length>1?{namespace:s[0]}:{},...i?{importPath:Kr({type:"models",tag:i,includeTagDir:!0,options:r.options})}:{}}}o(Gn,"getTsTypeBase");function Zr({schema:e,isCircular:t,parentTypes:r,resolver:n}){if(!e)return{metaType:"primitive"};for(let i of Bn){let s=e[i];if(s)if(s.length>1){let a=s.map(c=>{let u=n.resolveObject(c);return Zr({schema:u,parentTypes:r,resolver:n})});return a.every(({metaType:c})=>c==="object")?{metaType:"object",objectProperties:a.reduce((c,{objectProperties:u})=>{let l=u.map(({name:f})=>f);return[...c.filter(({name:f})=>!l.includes(f)),...u]},[])}:{metaType:"composite",[i]:a}}else e=n.resolveObject(s[0])}return e.type==="array"?{metaType:"array",arrayType:nb({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:dC({schema:e,parentTypes:r,resolver:n})}:{metaType:"primitive"}}o(Zr,"getSchemaTsMetaType");function nb({arraySchema:e,parentTypes:t,resolver:r}){let n,i;if(M(e.items)){let u=e.items.$ref;n=r.getZodSchemaNameByRef(u),i=r.getSchemaByRef(u)}else i=e.items;let s=Gn({zodSchemaName:n,schema:i,resolver:r}),a=ib(s,t),c=Zr({schema:i,isCircular:a,parentTypes:[...t,s],resolver:r});return{...s,...c}}o(nb,"getArraySchemaTsType");function dC({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(M(i)){let c=r.getZodSchemaNameByRef(i.$ref),u=r.getSchemaByRef(i.$ref),l=Gn({zodSchemaName:c,schema:u,resolver:r}),f=ib(l,t),p=Zr({schema:u,isCircular:f,parentTypes:[...t,l],resolver:r});return{name:n,isRequired:s,...l,...p}}else if(i.type==="array"){let c=nb({arraySchema:i,parentTypes:t,resolver:r});return{name:n,isRequired:s,type:"array",metaType:"array",arrayType:c}}else if(Lt(i.type))return{name:n,isRequired:s,type:Vs(i.type),metaType:"primitive"};return{name:n,isRequired:s,type:"void",metaType:"primitive"}})}o(dC,"getSchemaTsProperties");function ib(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}o(ib,"getIsCircular");var ro=o(e=>Br(ue(e.operationName)),"getEndpointName");function ob(e,t){return`${t.includeNamespaces?`${Z({type:"endpoints",tag:no(e,t),options:t})}.`:""}${ro(e)}`}o(ob,"getImportedEndpointName");var sb=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 Et(r??t.defaultTag)}o(no,"getEndpointTag");function Dp(e,t){return t.parameters.map(r=>{var i,s,a,c;let n="string";if($e(r.zodSchema))n=gr(e,r.zodSchema);else if((i=r.parameterObject)!=null&&i.schema&&je(r.parameterObject.schema)){let u=(a=(s=r.parameterObject)==null?void 0:s.schema)==null?void 0:a.type;u&&Lt(u)&&(n=Vs(u))}return{name:_t(r.name),type:n,paramType:r.type,required:((c=r.parameterObject)==null?void 0:c.required)??!0,parameterObject:r.parameterObject,bodyObject:r.bodyObject}}).sort((r,n)=>{if(r.required===n.required){let i=["Path","Body","Query","Header"];return i.indexOf(r.paramType)-i.indexOf(n.paramType)}return r.required?-1:1})}o(Dp,"mapEndpointParamsToFunctionParams");function ab(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let s=jv(i.name)?i.name:`"${i.name}"`,a=_t(i.name);return{...i,name:s,value:a}}),r={};return e.requestFormat!==xp["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==xp.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=_t(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}o(ab,"getEndpointConfig");function yr({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",s=o(u=>e.getTagByZodSchemaName(u),"getTag"),a=Lp({type:i,tag:t,entities:r,getTag:s,getEntityName:o(u=>u,"getEntityName"),options:e.options}),c=Lp({type:i,tag:t,entities:n,getTag:s,getEntityName:o(u=>to(u,e.options),"getEntityName"),options:e.options});return mC(e.options,a,c)}o(yr,"getModelsImports");function cb({tag:e,endpoints:t,options:r}){return Lp({type:"endpoints",tag:e,entities:t,getTag:o(n=>no(n,r),"getTag"),getEntityName:ro,options:r})}o(cb,"getEndpointsImports");function ub({tags:e,entityName:t,getAliasEntityName:r,options:n}){let i=new Map;return e.forEach(s=>{let a=`${t}${r?` as ${r(s)}`:""}`;i.has(s)?n.includeNamespaces||i.get(s).bindings.push(a):i.set(s,{bindings:[n.includeNamespaces?Z({type:"acl",tag:s,options:n}):a],from:`${io(n)}${Kr({type:"acl",tag:s,includeTagDir:!0,options:n})}`})}),Array.from(i.values())}o(ub,"getAclImports");function io(e){let t=Ep;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${Op}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${Op}`,"g"),Ep)),`${t}/`.replace(/\/\//g,"/")}o(io,"getImportPath");function Lp({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:s}){let a=new Map;return r.forEach(c=>{let u=n(c);if(a.has(u))s.includeNamespaces||a.get(u).bindings.push(i(c));else{let l=t===u;a.set(u,{bindings:[s.includeNamespaces?Z({type:e,tag:u,options:s}):i(c)],from:`${l?"./":io(s)}${Kr({type:e,tag:u,includeTagDir:!l,options:s})}`})}}),Array.from(a.values())}o(Lp,"getImports");function mC(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(mC,"mergeImports");function Hs({fileName:e,extension:t}){return`${e}.${t}`}o(Hs,"getFileNameWithExtension");function lb({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Br(t)}/`:""}${Br(t)}.${i}`:i}o(lb,"getTagFileNameWithoutExtension");function Kr(...e){return lb(...e)}o(Kr,"getTagImportPath");function pb(...e){return`${lb(...e)}.ts`}o(pb,"getTagFileName");var Z=o(({type:e,tag:t,options:r})=>`${W(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");function fb(e){return e.standalone?`${io(e)}${Rs.fileName}`:Cv}o(fb,"getAppRestClientImportPath");function db(e){return e.standalone?`${io(e)}${Cs.reactQueryTypes.fileName}`:Rv}o(db,"getQueryTypesImportPath");var xt=o(e=>e.method==="get","isQuery"),Bs=o(e=>e.method!=="get","isMutation");function Us(e){return{type:"invalid-schema",message:e}}o(Us,"getInvalidSchemaError");function mb(e){return{type:"invalid-operation-id",message:`Operation ${e}`}}o(mb,"getInvalidOperationIdError");function hb(e,t){return{type:"missing-path-parameter",message:`Path ${t} is missing [${e.map(({name:r})=>r).join(", ")}]`}}o(hb,"getMissingPathParameterError");function gb(e){return{type:"not-allowed-inline-enum",message:e}}o(gb,"getNotAllowedInlineEnumError");function yb(e){return{type:"not-allowed-circular-schema",message:e}}o(yb,"getNotAllowedCircularSchemaError");function vb(e,t,r){return{type:"missing-acl-condition-property",message:`Condition property ${e} is not found in parameters or body in operation ${bb(t,r)}`}}o(vb,"getMissingAclConditionPropertyError");function Fp(e,t,r){return{type:"missing-status-code",message:`Missing status code ${e} in operation ${bb(t,r)}`}}o(Fp,"getMissingStatusCodeError");function bb(e,t){return e.operationId??`${t.method} ${t.path}`}o(bb,"getOperationDescriptor");function wt({schema:e,meta:t,options:r}){let n=[];ge(e.type).with("string",()=>n.push(yC(e))).with("number","integer",()=>n.push(bC(e))).with("array",()=>n.push(SC(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&r.withDescription&&([`
73
73
  `,"\r",`\r
74
- `].some(s=>String.prototype.includes.call(e.description,s))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(lC(e,t),(r==null?void 0:r.withDefaultValues)!==!1?pC(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}o(wt,"getZodChain");function lC(e,t){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable?"nullable()":t!=null&&t.isRequired?"":"optional()"}o(lC,"getZodChainablePresence");function pC(e){return e.default!==void 0?`default(${ge(e.type).with("number","integer",()=>Bv(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}o(pC,"getZodChainableDefault");function fC(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(${dC(e.pattern)})`),e.format){let r=ge(e.format).with("email",()=>"email()").with("hostname","uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}o(fC,"getZodChainableStringValidations");function dC(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=Uv(e),`/${e}/`}o(dC,"formatPatternIfNeeded");function mC(e){let t=[];return e.enum?"":(e.type==="integer"&&t.push("int()"),e.minimum!==void 0?e.exclusiveMinimum===!0?t.push(`gt(${e.minimum})`):t.push(`gte(${e.minimum})`):typeof e.exclusiveMinimum=="number"&&t.push(`gt(${e.exclusiveMinimum})`),e.maximum!==void 0?e.exclusiveMaximum===!0?t.push(`lt(${e.maximum})`):t.push(`lte(${e.maximum})`):typeof e.exclusiveMaximum=="number"&&t.push(`lt(${e.exclusiveMaximum})`),e.multipleOf&&t.push(`multipleOf(${e.multipleOf})`),t.join("."))}o(mC,"getZodChainableNumberValidations");function hC(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}o(hC,"getZodChainableArrayValidations");var Kr=o(e=>e.reduce((t,r)=>t+r,0),"sum");function ie(e,t){if(!t)return e;if(F(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?Ee("oneOf")+ie(e,{...t,type:t.type[0]}):e+Ee("oneOf")+Kr(t.type.map(r=>ie(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?Ee("oneOf")+ie(e,t.oneOf[0]):e+Ee("oneOf")+Kr(t.oneOf.map(r=>ie(0,r)));if(t.anyOf)return t.anyOf.length===1?Ee("anyOf")+ie(e,t.anyOf[0]):e+Ee("anyOf")+Kr(t.anyOf.map(r=>ie(0,r)));if(t.allOf)return t.allOf.length===1?Ee("allOf")+ie(e,t.allOf[0]):e+Ee("allOf")+Kr(t.allOf.map(r=>ie(0,r)));if(!t.type)return e;if(Mt(t.type))return t.enum?e+hb(t)+Ee("enum")+Kr(t.enum.map(r=>ie(0,r))):e+hb(t);if(t.type==="array")return t.items?Ee("array")+ie(e,t.items):Ee("array")+ie(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.additionalProperties)return t.additionalProperties===!0?Ee("record")+ie(e):Ee("record")+ie(e,t.additionalProperties);if(t.properties){let r=Object.values(t.properties);return e+Ee("object")+Kr(r.map(n=>ie(0,n)))}return Ee("empty-object")+ie(e)}return e}o(ie,"getOpenAPISchemaComplexity");function hb(e){return ge(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}o(hb,"complexityByType");function Ee(e){return ge(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","record","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}o(Ee,"complexityByComposite");var Lp=class Lp{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;F(t)&&(this.ref=t.$ref),i&&(this.enumRef=i),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;enumRef;children=[];meta;getCodeString(t,r){var s,a;if(!this.ref&&this.code)return this.code;if(!this.ref)throw new Error("Zod schema is missing both ref and code");let n=(s=this.resolver)==null?void 0:s.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.includeNamespaces&&i&&i!==t?`${Z({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return ie(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};o(Lp,"ZodSchema");var ro=Lp;function Y({schema:e,resolver:t,meta:r,tag:n}){var g;let i=new ro(e,t,r),s={parent:i.inherit(r==null?void 0:r.parent),referencedBy:[...i.meta.referencedBy]},a={resolver:t,meta:s,tag:n};if(F(e))return gC({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});let c=vC({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(c)return c;let u=yC({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(u)return u;let l=bC({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(l)return l;let f=_C({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(f)return f;let p=SC({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(p)return p;let d=t.options.allReadonly?".readonly()":"";if(Zv(e))return e.items?i.assign(`z.array(${Y({...a,schema:e.items}).getCodeString(n,t.options)}${wt({schema:e.items,meta:{...s,isRequired:!0},options:t.options})})${d}`):i.assign(`z.array(z.any())${d}`);let m=e.type?e.type.toLowerCase():void 0;if(m==="object"||e.properties||e.additionalProperties){let y=t.options.additionalPropertiesDefaultValue!==void 0?t.options.additionalPropertiesDefaultValue:!0,b=(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(${Y({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+wt({schema:e.additionalProperties,meta:{...s,isRequired:!0},options:t.options})})`);let _=e.required&&e.required.length>0,E=t.options.withImplicitRequiredProps?!1:!((g=e.required)!=null&&g.length),$="{}";e.properties&&($="{ "+Object.entries(e.properties).map(([se,J])=>{var Gt;let G={...s,isRequired:E?!0:_?(Gt=e.required)==null?void 0:Gt.includes(se):t.options.withImplicitRequiredProps,name:se},ve=J;if(F(J)&&t&&(ve=t.getSchemaByRef(J.$ref),!ve))throw new Error(`Schema ${J.$ref} not found`);let be=Y({...a,schema:J,meta:G}).getCodeString(n,t.options)+wt({schema:ve,meta:G,options:t.options});return[se,be]}).map(([se,J])=>`${Hv(se)}: ${J}`).join(", ")+" }");let S=E?".partial()":"",D=t.options.strictObjects?".strict()":"";return i.assign(`z.object(${$})${S}${D}${b}${d}`)}if(!m)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${m}`)}o(Y,"getZodSchema");function gC({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!F(e))return;let s=t.meta.referencedBy.slice(0,-1).map(u=>u.ref?r.getZodSchemaNameByRef(u.ref)??u.ref:void 0).filter(Boolean),a=r.getZodSchemaNameByRef(e.$ref);if(s.length>1&&s.includes(a))return t.assign(r.getCodeByZodSchemaName(t.ref));let c=r.getCodeByZodSchemaName(e.$ref);if(!c){let u=r.getSchemaByRef(e.$ref);if(!u)throw new Error(`Schema ${e.$ref} not found`);c=Y({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,c,i),t}o(gC,"getReferenceZodSchema");function yC({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!Ne(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=Y({schema:e.oneOf[0],resolver:r,meta:n,tag:i});return t.assign(c.getCodeString(i,r.options))}let s=(a=e.oneOf)==null?void 0:a.some(c=>Ne(c)&&((c==null?void 0:c.allOf)||[]).length>1);if(e.discriminator&&!s){let c=e.discriminator.propertyName;return t.assign(`
74
+ `].some(s=>String.prototype.includes.call(e.description,s))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(hC(e,t),r.withDefaultValues!==!1?gC(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}o(wt,"getZodChain");function hC(e,t){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable?"nullable()":t!=null&&t.isRequired?"":"optional()"}o(hC,"getZodChainablePresence");function gC(e){return e.default!==void 0?`default(${ge(e.type).with("number","integer",()=>zv(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}o(gC,"getZodChainableDefault");function yC(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(${vC(e.pattern)})`),e.format){let r=ge(e.format).with("email",()=>"email()").with("hostname","uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}o(yC,"getZodChainableStringValidations");function vC(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=Gv(e),`/${e}/`}o(vC,"formatPatternIfNeeded");function bC(e){let t=[];return e.enum?"":(e.type==="integer"&&t.push("int()"),e.minimum!==void 0?e.exclusiveMinimum===!0?t.push(`gt(${e.minimum})`):t.push(`gte(${e.minimum})`):typeof e.exclusiveMinimum=="number"&&t.push(`gt(${e.exclusiveMinimum})`),e.maximum!==void 0?e.exclusiveMaximum===!0?t.push(`lt(${e.maximum})`):t.push(`lte(${e.maximum})`):typeof e.exclusiveMaximum=="number"&&t.push(`lt(${e.exclusiveMaximum})`),e.multipleOf&&t.push(`multipleOf(${e.multipleOf})`),t.join("."))}o(bC,"getZodChainableNumberValidations");function SC(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}o(SC,"getZodChainableArrayValidations");var Wr=o(e=>e.reduce((t,r)=>t+r,0),"sum");function ie(e,t){if(!t)return e;if(M(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?Ee("oneOf")+ie(e,{...t,type:t.type[0]}):e+Ee("oneOf")+Wr(t.type.map(r=>ie(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?Ee("oneOf")+ie(e,t.oneOf[0]):e+Ee("oneOf")+Wr(t.oneOf.map(r=>ie(0,r)));if(t.anyOf)return t.anyOf.length===1?Ee("anyOf")+ie(e,t.anyOf[0]):e+Ee("anyOf")+Wr(t.anyOf.map(r=>ie(0,r)));if(t.allOf)return t.allOf.length===1?Ee("allOf")+ie(e,t.allOf[0]):e+Ee("allOf")+Wr(t.allOf.map(r=>ie(0,r)));if(!t.type)return e;if(Lt(t.type))return t.enum?e+Sb(t)+Ee("enum")+Wr(t.enum.map(r=>ie(0,r))):e+Sb(t);if(t.type==="array")return t.items?Ee("array")+ie(e,t.items):Ee("array")+ie(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.additionalProperties)return t.additionalProperties===!0?Ee("record")+ie(e):Ee("record")+ie(e,t.additionalProperties);if(t.properties){let r=Object.values(t.properties);return e+Ee("object")+Wr(r.map(n=>ie(0,n)))}return Ee("empty-object")+ie(e)}return e}o(ie,"getOpenAPISchemaComplexity");function Sb(e){return ge(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}o(Sb,"complexityByType");function Ee(e){return ge(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","record","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}o(Ee,"complexityByComposite");var Vp=class Vp{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;M(t)&&(this.ref=t.$ref),i&&(this.enumRef=i),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;enumRef;children=[];meta;getCodeString(t,r){var s,a;if(!this.ref&&this.code)return this.code;if(!this.ref)throw new Error("Zod schema is missing both ref and code");let n=(s=this.resolver)==null?void 0:s.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.includeNamespaces&&i&&i!==t?`${Z({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return ie(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};o(Vp,"ZodSchema");var oo=Vp;function Y({schema:e,resolver:t,meta:r,tag:n}){var g;let i=new oo(e,t,r),s={parent:i.inherit(r==null?void 0:r.parent),referencedBy:[...i.meta.referencedBy]},a={resolver:t,meta:s,tag:n};if(M(e))return _C({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});let c=$C({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(c)return c;let u=PC({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(u)return u;let l=OC({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(l)return l;let f=EC({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(f)return f;let p=xC({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(p)return p;let d=t.options.allReadonly?".readonly()":"";if(Ds(e))return e.items?i.assign(`z.array(${Y({...a,schema:e.items}).getCodeString(n,t.options)}${wt({schema:e.items,meta:{...s,isRequired:!0},options:t.options})})${d}`):i.assign(`z.array(z.any())${d}`);let m=e.type?e.type.toLowerCase():void 0;if(m==="object"||e.properties||e.additionalProperties){let y=t.options.additionalPropertiesDefaultValue!==void 0?t.options.additionalPropertiesDefaultValue:!0,b=(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(${Y({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+wt({schema:e.additionalProperties,meta:{...s,isRequired:!0},options:t.options})})`);let S=e.required&&e.required.length>0,O=t.options.withImplicitRequiredProps?!1:!((g=e.required)!=null&&g.length),P="{}";e.properties&&(P="{ "+Object.entries(e.properties).map(([se,Q])=>{var Gt;let G={...s,isRequired:O?!0:S?(Gt=e.required)==null?void 0:Gt.includes(se):t.options.withImplicitRequiredProps,name:se},ve=Q;if(M(Q)&&t&&(ve=t.getSchemaByRef(Q.$ref),!ve))throw new Error(`Schema ${Q.$ref} not found`);let be=Y({...a,schema:Q,meta:G}).getCodeString(n,t.options)+wt({schema:ve,meta:G,options:t.options});return[se,be]}).map(([se,Q])=>`${Uv(se)}: ${Q}`).join(", ")+" }");let _=O?".partial()":"",V=t.options.strictObjects?".strict()":"";return i.assign(`z.object(${P})${_}${V}${b}${d}`)}if(!m)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${m}`)}o(Y,"getZodSchema");function _C({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!M(e))return;let s=t.meta.referencedBy.slice(0,-1).map(u=>u.ref?r.getZodSchemaNameByRef(u.ref)??u.ref:void 0).filter(Boolean),a=r.getZodSchemaNameByRef(e.$ref);if(s.length>1&&s.includes(a))return t.assign(r.getCodeByZodSchemaName(t.ref));let c=r.getCodeByZodSchemaName(e.$ref);if(!c){let u=r.getSchemaByRef(e.$ref);if(!u)throw new Error(`Schema ${e.$ref} not found`);c=Y({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,c,i),t}o(_C,"getReferenceZodSchema");function PC({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!je(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=Y({schema:e.oneOf[0],resolver:r,meta:n,tag:i});return t.assign(c.getCodeString(i,r.options))}let s=(a=e.oneOf)==null?void 0:a.some(c=>je(c)&&((c==null?void 0:c.allOf)||[]).length>1);if(e.discriminator&&!s){let c=e.discriminator.propertyName;return t.assign(`
75
75
  z.discriminatedUnion("${c}", [${e.oneOf.map(u=>Y({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])
76
- `)}return t.assign(`z.union([${e.oneOf.map(c=>Y({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(yC,"getOneOfZodSchema");function vC({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!Ne(e)||!Array.isArray(e.type)))return e.type.length===1?Y({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(s=>Y({schema:{...e,type:s},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(vC,"getArrayZodSchema");function bC({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Ne(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=Y({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let s=e.anyOf.map(a=>Y({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${s}])`)}o(bC,"getAnyOfZodSchema");function _C({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Ne(e)||!e.allOf)return;if(e.allOf.length===1){let p=Y({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(p.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:s,noRequiredOnlyAllof:a,composedRequiredSchema:c}=Kv(e),u=a.map(p=>{let d=Y({schema:p,resolver:r,meta:n,tag:i});return r&&s(p,r.getSchemaByRef.bind(r)),d});c.required.length&&u.push(Y({schema:c,resolver:r,meta:n,tag:i}));let l=u.at(0),f=u.slice(1).map(p=>`merge(${p.getCodeString(i,r.options)})`).join(".");return t.assign(`${l.getCodeString(i,r.options)}.${f}`)}o(_C,"getAllOfZodSchema");function SC({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Ne(e))return;let s=e.type?e.type.toLowerCase():void 0;if(s&&Mt(s)){if(e.enum){if(s==="string")return $C({schema:e,zodSchema:t,resolver:r,meta:n,tag:i});if(e.enum.some(a=>typeof a=="string"))return t.assign("z.never()");if(e.enum.length===1){let a=e.enum[0];return t.assign(`z.literal(${a===null?"null":a})`)}return t.assign(`z.union([${e.enum.map(a=>`z.literal(${a===null?"null":a})`).join(", ")}])`)}return t.assign(ge(s).with("integer",()=>"z.number()").with("string",()=>ge(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(a=>`z.${a}()`))}}o(SC,"getPrimitiveZodSchema");function $C({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){if(!Ne(t))return;let s=Fp(t),a=e.getEnumZodSchemaDataByCode(s);if(!e.options.extractEnums||!a)return r.assign(s);if(!a.zodSchemaName||!a.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${s}`);let c=e.options.includeNamespaces&&a.tag!==i?`${Z({type:"models",tag:a.tag,options:e.options})}.`:"";return new ro(t,e,n,a.zodSchemaName).inherit(r),r.assign(`${c}${a.zodSchemaName}`)}o($C,"getEnumZodSchema");function Fp(e){var t;return`${Os}([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}o(Fp,"getEnumZodSchemaCode");function zn({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var c;let s=t.getCodeString();if((!Pe(s)||t.ref===void 0)&&r){if(t.complexity<Tp)return s;let u=Dt(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(u);){if((c=n.getZodSchemaNamesByCompositeCode(s))!=null&&c.includes(u))return u;if(n.getCodeByZodSchemaName(u)===u)return u;throw new Error(`Can't uniquely resolve zod schema name: ${u}`)}return n.setZodSchema(u,s,i),n.addZodSchemaForCompositeCode(s,t,u,e),u}let a=n.getCodeByZodSchemaName(s);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return ie(0,n.getSchemaByRef(t.ref))<Tp?n.getCodeByZodSchemaName(s):s;throw new Error(`Invalid ref: ${t.ref}`)}o(zn,"resolveZodSchemaName");function gb({resolver:e,endpoint:t,operation:r}){let n=r["x-acl"];return n==null?void 0:n.map(i=>{let s=Object.keys(i.conditions??{}).reduce((a,c)=>{let u=PC({resolver:e,endpoint:t,acl:n,name:c});return u?[...a,u]:(e.validationErrors.push(db(c,r,t)),a)},[]);return{...i,conditionsTypes:s}})}o(gb,"getEndpointAcl");function PC({resolver:e,endpoint:t,acl:r,name:n}){var p,d,m,g,y,v,b,_,E,$;let i=(d=(p=r[0])==null?void 0:p.conditions)==null?void 0:d[n];if(!i)return;let s=i.replace(/^\$[^.]*\./,"").split("."),a,c,u,l=0,f=t.parameters.find(({name:S})=>S===s[l]);if(f)c=(m=f.parameterObject)==null?void 0:m.required,a=(g=f.parameterObject)==null?void 0:g.schema,u=`${f.name} ${Hr(f.type)} parameter`,l++;else{let S=t.parameters.find(({bodyObject:se})=>!!se),R=Object.keys(((y=S==null?void 0:S.bodyObject)==null?void 0:y.content)??{}).find(Ue);R&&(a=(_=(b=(v=S==null?void 0:S.bodyObject)==null?void 0:v.content)==null?void 0:b[R])==null?void 0:_.schema,u=`${xt(t)?"query":"mutation"} data`)}for(;a&&l<s.length;){let S=e.resolveObject(a);a=(E=Object.entries(S.properties??{}).find(([R])=>R===s[l]))==null?void 0:E[1],c=(($=S.required)==null?void 0:$.includes(s[l]))??!1,l++}if(a)return{name:n,type:F(a)?void 0:a.type,zodSchemaName:F(a)?e.getZodSchemaNameByRef(a.$ref):void 0,required:c,info:u}}o(PC,"getEndpointAclConditionPropertyType");function yb({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var m,g;let s=e.resolveObject(t.requestBody);if(!s)return;let c=Object.keys(s.content??{}).find(Ue);if(!c)return;let u=(g=(m=s.content)==null?void 0:m[c])==null?void 0:g.schema;if(!u)return;let l=Y({schema:u,resolver:e,meta:{isRequired:s.required??!0},tag:i}),f=e.resolveObject(u),p=zn({schema:f,zodSchema:l,fallbackName:js(zr(r,n,i)),resolver:e,tag:i}),d=wt({schema:f,meta:l.meta,options:e.options});return{endpointParameter:{name:Cv,type:"Body",description:s.description,zodSchema:p+d,bodyObject:s},requestFormat:c}}o(yb,"getEndpointBody");function vb({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let s=e.resolveObject(t);if(!Mv.includes(s.in))return;let a={};if(s.content){let p=Object.keys(s.content??{}),d=p.find(Ue);if(!d)throw new Error(`Unsupported media type for param ${s.name}: ${p.join(", ")}`);let m=s.content[d];if(!m)throw new Error(`No content with media type for param ${s.name}: ${d}`);a=(m==null?void 0:m.schema)??m}else s.schema&&(a=s.schema);e.options.withDescription&&a&&(a.description=(s.description??"").trim());let c=Y({schema:a,resolver:e,meta:{isRequired:s.in==="path"?!0:s.required??!1},tag:i}),u=e.resolveObject(a),l=wt({schema:u,meta:c.meta,options:e.options}),f=zn({schema:u,zodSchema:c.assign(c.getCodeString(i)+l),fallbackName:Yv(zr(r,n,i),s.name),resolver:e,tag:i});return{name:ge(s.in).with("path",()=>Np(s.name)).otherwise(()=>s.name),type:ge(s.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:f,parameterObject:s}}o(vb,"getEndpointParameter");function _b(e){var r,n,i,s,a;let t=[];for(let c in e.openApiDoc.paths){let u=e.openApiDoc.paths[c],l=hr(u,mr),f=bb(u.parameters??[]);for(let p in l){let d=l[p];if(!d||d.deprecated&&!e.options.withDeprecatedEndpoints)continue;let m=d.operationId&&d.operationId!==St(d.operationId);d.operationId&&m&&e.validationErrors.push(ub(d.operationId));let g=Object.entries({...f,...bb(d.parameters??[])}).map(([,$])=>$),y=Qi({path:c,method:p,operation:d,operationsByTag:e.operationsByTag,options:e.options}),v=e.operationNames.filter($=>$===y).length<=1,b=Br(d,e.options),_={method:p,path:Gv(c),operationName:y,description:d.description,summary:d.summary,tags:(r=d.tags)==null?void 0:r.map(Ot),requestFormat:"application/json",parameters:[],response:"",errors:[],responseStatusCodes:[]};if(d.requestBody){let $=yb({resolver:e,operation:d,operationName:y,isUniqueOperationName:v,tag:b});$&&(_.parameters.push($.endpointParameter),_.requestFormat=$.requestFormat)}for(let $ of g){let S=vb({resolver:e,param:$,operationName:y,isUniqueOperationName:v,tag:b});S&&_.parameters.push(S)}let E=EC(_);E.forEach($=>{_.parameters.push($)}),E.length>0&&e.validationErrors.push(lb(E,c));for(let $ in d.responses){_.responseStatusCodes.push($);let S=e.resolveObject(d.responses[$]),R=Object.keys(S.content??{}).find(Hn),se,J;if(R?(_.responseFormat=R,se=(i=(n=S.content)==null?void 0:n[R])==null?void 0:i.schema):J=Gi,se){let G=Y({schema:se,resolver:e,meta:{isRequired:!0},tag:b}),ve=e.resolveObject(se);J=zn({schema:ve,zodSchema:G,fallbackName:G.ref?void 0:qs({statusCode:$,operationName:y,isUniqueOperationName:v,tag:b}),resolver:e,tag:b})+wt({schema:ve,meta:G.meta,options:e.options})}if(J){let G=Number($);Rs(G)?(_.response=J,_.responseObject=S,_.responseDescription=S.description):$!=="default"&&Ns(G)&&_.errors.push({zodSchema:J,status:G,description:S.description})}}_.response||(_.response=Gi),_.acl=gb({resolver:e,endpoint:_,operation:d}),(s=d.security)!=null&&s[0].Authorization&&!_.responseStatusCodes.includes("401")&&e.validationErrors.push(Dp("401",d,_)),(a=_.acl)!=null&&a[0]&&!_.responseStatusCodes.includes("403")&&e.validationErrors.push(Dp("403",d,_)),t.push(_)}}return t}o(_b,"getEndpointsFromOpenAPIDoc");function bb(e){return Object.fromEntries((e??[]).map(t=>[F(t)?t.$ref:t.name,t]))}o(bb,"getParameters");function EC(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=>OC(r))}o(EC,"getMissingPathParameters");function OC(e){return{name:e,type:"Path",zodSchema:"z.string()",parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}o(OC,"getPathParameterFromName");function ot(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(F(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(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;ot(a,{data:r,onSchema:n})}}if(i.properties)for(let[s,a]of Object.entries(i.properties)){if(n({type:"property",parentSchema:e,schema:a,data:r,propertyName:s})===!0)return;ot(a,t)}if(i.additionalProperties)for(let[s,a]of Object.entries(i.additionalProperties)){if(!(a instanceof Object)||n({type:"additionalProperty",parentSchema:e,schema:a,data:r,propertyName:s})===!0)return;ot(a,t)}if(i.type==="array"){let s=e.items;if(n({type:"array",parentSchema:e,schema:s,data:r})===!0)return;ot(s,t)}}o(ot,"iterateSchema");function Sb(e,t){let r=xC(e,t),n=wC(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}o(Sb,"getOpenAPISchemaDependencyGraph");function xC(e,t){let r={},n={};return e.forEach(i=>AC({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}o(xC,"getRefsDependencyGraph");function wC(e,t){let r={},n={},i=o((s,a)=>{n[a].add(s),t[s]&&a!==s&&t[s].forEach(c=>{let u=`${a}__${c}`;r[u]||(r[u]=!0,i(c,a))})},"visit");return e.forEach(s=>{let a=t[s];a&&(n[s]||(n[s]=new Set),a.forEach(c=>i(c,s)))}),n}o(wC,"getDeepRefsDependencyGraph");function AC({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let s=o(a=>{if(a.type!=="reference"||!a.data)return;let{schema:c,data:u}=a;if(i[u.fromRef]||(i[u.fromRef]=new Set),i[u.fromRef].add(c.$ref),n[c.$ref])return!0;n[u.fromRef]=!0,ot(r(c.$ref),{data:{fromRef:c.$ref},onSchema:s})},"onSchema");return ot(e,{data:{fromRef:t},onSchema:s}),{visitedRefs:n,refsDependencyGraph:i}}o(AC,"getSchemaRefsDependencyGraph");function Vs(e,t,r){let n=[];return ot(t,{onSchema:o(i=>{i.type==="reference"?n.push(i.schema):F(i.parentSchema)&&(i.type==="property"||i.type==="additionalProperty"?e.validationErrors.push(Fs(`${r} has both reference and properties`)):i.type==="array"?e.validationErrors.push(Fs(`${r} is both reference and array schema`)):i.type==="composite"&&e.validationErrors.push(Fs(`${r} has both reference and composite keyword`)))},"onSchema")}),n}o(Vs,"getSchemaRefObjs");function $b(e,t){return t.map(i=>Ur(i.$ref)).reduce((i,s)=>{let a=e.dependencyGraph.deepDependencyGraph[s];return[...i,s,...Array.from(a??[])]},[])}o($b,"getDeepSchemaRefObjs");function no({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&Pb({schema:e,nameSegments:t,...n}),ot(e,{data:{nameSegments:t},onSchema:o(i=>{var a;if(i.type==="reference")return!0;let s=[...((a=i.data)==null?void 0:a.nameSegments)??[]];(i.type==="property"||i.type==="additionalProperty")&&s.push(i.propertyName),Pb({schema:i.schema,nameSegments:[...s],...n})},"onSchema")})}o(no,"updateEnumZodSchemaData");function Pb({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:s=[]}){if(!t||F(t)||!t.enum)return;let a=Fp(t),c=e.enumZodSchemaData.find(u=>u.code===a);c?(c.meta.zodSchemaNameSegments.push(s),c.meta.tags.push(...i),c.meta.schemaRefs.push(...r?[r]:[])):e.enumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[s],tags:[...i],schemaRefs:r?[r]:[]}}),e.validationErrors.push(pb(r?`schema ${Vn(r)} property ${s[s.length-1]}`:n??s.join("->")))}o(Pb,"handleEnumZodSchemaDataUpdate");function Eb(e){e.enumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(s=>s[s.length-1]).filter(Boolean),i=_p(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=jp(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!Vp(e);)IC(e,t+2),t++;if(Vp(e)||e.enumZodSchemaData.filter(n=>!xb(e,n)).forEach(n=>{n.zodSchemaName=jp(n.meta.zodSchemaNameSegments[0].map(i=>Hp(W(i))).join(""),e.options.enumSuffix,e.options.schemaSuffix)}),!Vp(e))throw new Error("Failed to resolve unique names for enum zod schemas")}o(Eb,"resolveEnumZodSchemaNames");function Vp(e){return e.enumZodSchemaData.every(t=>xb(e,t))}o(Vp,"allEnumZodSchemaNamesAreUnique");function IC(e,t){e.enumZodSchemaData.forEach(r=>{let n=e.enumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&TC(n,t)})}o(IC,"additionalResolveEnumZodSchemaName");function TC(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1){let i=[Hp(W(n[0])),r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=i}else{let i=_p(n),s=[i?Hp(W(i)):"",r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=s}})}o(TC,"suffixWithPreviousSegmentName");function Ob(e){e.enumZodSchemaData.forEach(t=>{let r=Re(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}o(Ob,"resolveEnumZodSchemaTags");function xb(e,t){return e.enumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length===1}o(xb,"isUnique");function Hp(e){return e.replace(/(Dto|DTO|Response|Request)/g,"")}o(Hp,"sanitizeName");var Bp=class Bp{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=Sb(this.schemaRefs,this.getSchemaByRef.bind(this)),this.operationsByTag=Lv(t,r),this.operationNames=zv(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(Vv)}getSchemaByRef(t){return this.docSchemas[Vn(t)]}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(Ur(t)))==null?void 0:n.zodSchemaName)??((i=this.enumZodSchemaData.find(s=>s.zodSchemaName===t))==null?void 0:i.zodSchemaName);if(!r)throw new Error(`Zod schema not found for ref: ${t}`);return r}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var u,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.enumZodSchemaData.find(f=>f.zodSchemaName===t);if(r)return Ot(r.tag??this.options.defaultTag);let n=this.getRefByZodSchemaName(t),i=n?((u=this.getSchemaDataByRef(n))==null?void 0:u.tags)??[]:[],s=((l=this.zodSchemaData.find(f=>f.zodSchemaName===t))==null?void 0:l.tags)??[],a=Re(i,s),c=a.length===1?a[0]:this.options.defaultTag;return Ot(c??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(s=>s.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let s={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(s):this.compositeZodSchemaData.push({code:t,zodSchemas:[s]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemaData.find(r=>r.code===t)}getEnumZodSchemaNamesReferencedBySchemaRef(t){return this.enumZodSchemaData.reduce((r,{zodSchemaName:n,meta:i})=>(n&&i.schemaRefs.includes(t)&&r.push(n),r),[])}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}getEnumZodSchemas(){return this.enumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return F(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}getCircularSchemaChain(t,r=t,n=[]){var i,s;return(i=this.dependencyGraph.refsDependencyGraph[r])!=null&&i.has(t)?[...n,r,t]:Array.from(((s=this.dependencyGraph.refsDependencyGraph[r])==null?void 0:s.values())??[]).map(a=>{let c=this.getCircularSchemaChain(t,a,n);return c.length>0?[r,...c]:c}).flat()}getBaseUrl(){var r;let t=(r=this.openApiDoc.servers)==null?void 0:r[0].url;return this.options.baseUrl===""&&t?t:this.options.baseUrl}initialize(){var t,r,n,i,s,a;this.schemaRefs.forEach(c=>{let u=Ur(c),l=Vn(u),f=Dt(l,this.options.schemaSuffix);this.schemaData.push({ref:u,name:l,zodSchemaName:f,tags:[]})});for(let c in this.openApiDoc.paths){let u=this.openApiDoc.paths[c],l=hr(u,mr);for(let f in l){let p=l[f];if(!p||p.deprecated&&!((t=this.options)!=null&&t.withDeprecatedEndpoints))continue;let d=Br(p,this.options),m=Qi({path:c,method:f,operation:p,operationsByTag:this.operationsByTag,options:this.options}),g=this.operationNames.filter(_=>_===m).length<=1,y=ue(zr(m,g,d)),v=[];if((r=p.parameters)==null||r.map(_=>{let E=_,$=E.schema,S=`operation ${p.operationId??c} parameter ${E.name}`;v.push(...Vs(this,$,S)),this.options.extractEnums&&no({resolver:this,schema:$,schemaInfo:S,tags:[d],nameSegments:[y,E.name],includeSelf:!0})}),p.requestBody){let _=this.resolveObject(p.requestBody),$=Object.keys(_.content??{}).find(Ue);if($){let S=(i=(n=_.content)==null?void 0:n[$])==null?void 0:i.schema,D=`operation ${p.operationId} request body`;v.push(...Vs(this,S,D)),this.options.extractEnums&&no({resolver:this,schema:S,schemaInfo:D,tags:[d],nameSegments:[js(y)]})}}for(let _ in p.responses){let E=this.resolveObject(p.responses[_]),S=Object.keys(E.content??{}).find(Hn);if(S){let D=(a=(s=E.content)==null?void 0:s[S])==null?void 0:a.schema,R=`operation ${p.operationId} response body`;v.push(...Vs(this,D,R)),this.options.extractEnums&&no({resolver:this,schema:D,schemaInfo:R,tags:[d],nameSegments:[qs({statusCode:_,operationName:m,isUniqueOperationName:g,tag:d})]})}}$b(this,v).forEach(_=>{let E=this.getSchemaDataByRef(_);E&&E.tags.push(d)})}}this.options.extractEnums&&(this.schemaRefs.forEach(c=>{var l;let u=Ur(c);no({resolver:this,schema:this.getSchemaByRef(u),schemaRef:u,tags:((l=this.getSchemaDataByRef(u))==null?void 0:l.tags)??[],nameSegments:[Vn(u)]})}),Eb(this),Ob(this))}};o(Bp,"SchemaResolver");var Hs=Bp;function wb(e){var r;let t={};return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let s=Dt(n,e.options.schemaSuffix);if(!t[s]){let a=e.getTagByZodSchemaName(s);t[s]=Y({schema:i,resolver:e,tag:a}).getCodeString(a)}}),t}o(wb,"getZodSchemasFromOpenAPIDoc");function Ab(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(Ab,"topologicalSort");function Ib(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(Ib,"sortObjKeysFromArray");function Tb(e,t){let r=Ab(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return Ib(t,r)}o(Tb,"sortZodSchemasByTopology");function kb(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let s=e.getRefByZodSchemaName(n);s&&e.isSchemaCircular(s)?(e.validationErrors.push(fb(e.getCircularSchemaChain(s).join(" -> "))),r[Dt(n,e.options.schemaSuffix)]=`z.lazy(() => ${i})`):r[Dt(n,e.options.schemaSuffix)]=i}),r}o(kb,"wrapCircularZodSchemas");function Bs(e,t){let r=new Hs(e,t),n=_b(r),s={...wb(r),...r.getZodSchemas()};return s=kb(r,s),s=Tb(r,s),s={...r.getEnumZodSchemas(),...s},{resolver:r,data:kC({resolver:r,endpoints:n,zodSchemas:s,options:t})}}o(Bs,"getDataFromOpenAPIDoc");function kC({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(s=>{let a=eo(s,n);Cb(a,i).endpoints.push(s)}),Object.entries(r).forEach(([s,a])=>{let c=e.getTagByZodSchemaName(s);c&&(Cb(c,i).zodSchemas[s]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}o(kC,"splitDataByTags");function Cb(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}o(Cb,"getTagElement");async function Rb(e,t){let{resolver:r,data:n}=await Bs(e,t),i=[],s=[];return n.forEach(({endpoints:c,zodSchemas:u},l)=>{var d;((d=t.excludeTags)==null?void 0:d.findIndex(m=>m.toLowerCase()===l.toLowerCase()))===-1&&(Object.keys(u).forEach(m=>{let g=r.getRefByZodSchemaName(m),y=g?r.getSchemaByRef(g):r.getSchemaByCompositeZodSchemaName(m),v=Un({zodSchemaName:m,schema:y,resolver:r}),b;y&&(b=Gr({schema:y,parentTypes:[v],resolver:r})),i.push({...v,metaType:"primitive",...b})}),c.forEach(m=>{let g="queries",y=Ot(l);s.push({name:ws(m),importPath:Zr({type:g,tag:y,includeTagDir:!0,options:t}),namespace:t.includeNamespaces?Z({type:g,tag:y,options:t}):void 0,isQuery:xt(m),isMutation:Ls(m),params:CC({resolver:r,endpoint:m}),response:RC({resolver:r,endpoint:m})})}))}),{openApiDoc:e,models:i,queries:s}}o(Rb,"getMetadataFromOpenAPIDoc");function CC({resolver:e,endpoint:t}){return t.parameters.map(r=>{var a,c,u,l;let n;if((a=r.parameterObject)!=null&&a.schema)n=e.resolveObject(r.parameterObject.schema);else if(r.bodyObject){let p=Object.keys(r.bodyObject.content??{}).find(Ue);p&&(n=e.resolveObject((u=(c=r.bodyObject.content)==null?void 0:c[p])==null?void 0:u.schema))}let i=Un({zodSchemaName:r.zodSchema,schema:n,resolver:e}),s;return n&&(s=Gr({schema:n,parentTypes:[i],resolver:e})),{name:St(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(CC,"getQueryMetadataParams");function RC({resolver:e,endpoint:t}){var a,c,u,l;let r,n=Object.keys(((a=t.responseObject)==null?void 0:a.content)??{}).find(Hn);n&&(r=e.resolveObject((l=(u=(c=t.responseObject)==null?void 0:c.content)==null?void 0:u[n])==null?void 0:l.schema));let i=Un({zodSchemaName:t.response,schema:r,resolver:e}),s;return r&&(s=Gr({schema:r,parentTypes:[i],resolver:e})),{...i,metaType:"primitive",...s}}o(RC,"getQueryMetadataResponse");var Nb={fileName:"acl/app.ability",extension:"ts"},io="AllAbilities",st={abilityTuple:"AbilityTuple",pureAbility:"PureAbility",forcedSubject:"ForcedSubject",subject:"subject"},Up={bindings:[st.abilityTuple,st.pureAbility,st.forcedSubject,st.subject],from:"@casl/ability"};var jb=o(e=>`Use${W(ue(e.operationName))}Ability`,"getAbilityTypeName"),qb=o(e=>`canUse${W(ue(e.operationName))}`,"getAbilityFunctionName"),Mb=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].action},"getAbilityAction"),Db=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].subject},"getAbilitySubject"),Lb=o(e=>{var t;return!!((t=zp(e))!=null&&t.length)},"hasAbilityConditions"),zp=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].conditionsTypes},"getAbilityConditionsTypes"),Fb=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].description},"getAbilityDescription"),Us=o(e=>`${W(e)}${io}`,"getTagAllAbilitiesName");var Vf=lt(br());var Df=lt(require("fs")),kS=lt(require("path"));function CS(e){return Df.default.readFileSync(kS.default.join(__dirname,`../${e}`),"utf-8")}o(CS,"readFileSync");function Lf(e){let t=`src/generators/templates/${e}.hbs`;return CS(t)}o(Lf,"readHbsTemplateSync");function RS(e){let t=`src/assets/${e}`;return CS(t)}o(RS,"readAssetSync");function bo({output:e,fileName:t}){return`${e}/${t}`}o(bo,"getOutputFileName");var Bt=lt(br());function NS(){O3(),x3(),w3(),A3(),I3(),T3(),k3(),C3()}o(NS,"registerAclHbsHelpers");function O3(){Bt.default.registerHelper("abilityTypeName",jb)}o(O3,"registerAbilityTypeNameHelper");function x3(){Bt.default.registerHelper("abilityFunctionName",qb)}o(x3,"registerAbilityFunctionNameHelper");function w3(){Bt.default.registerHelper("ablityAction",Mb)}o(w3,"registerAbilityActionHelper");function A3(){Bt.default.registerHelper("ablitySubject",Db)}o(A3,"registerAbilitySubjectHelper");function I3(){Bt.default.registerHelper("hasAbilityConditions",Lb)}o(I3,"registerHasAbilityConditionsHelper");function T3(){Bt.default.registerHelper("abilityConditionsTypes",zp)}o(T3,"registerAbilityConditionsTypesHelper");function k3(){Bt.default.registerHelper("abilityDescription",Fb)}o(k3,"registerAbilityDescriptionHelper");function C3(){Bt.default.registerHelper("tagAllAbilitiesName",Us)}o(C3,"registerTagAllAbilitiesNameHelper");var wa=lt(br());function jS(){R3(),N3(),j3()}o(jS,"registerCommonHbsHelpers");function R3(){wa.default.registerHelper("isEqual",(e,t)=>e===t)}o(R3,"registerIsEqualHelper");function N3(){wa.default.registerHelper("commaSeparated",e=>e.join(", "))}o(N3,"registerCommaSeparatedListHelper");function j3(){wa.default.registerHelper("addAsteriskAfterNewLine",e=>e.replace(/\n/g,`
77
- *`))}o(j3,"registerAddAsteriskAfterNewLineHelper");var _r=lt(br());function qS(e){q3(),M3(e.options),F3(e),D3(),L3(),V3(e),H3()}o(qS,"registerEndpointsHbsHelpers");function q3(){_r.default.registerHelper("endpointName",Xi)}o(q3,"registerEndpointNameHelper");function M3(e){_r.default.registerHelper("importedEndpointName",t=>eb(t,e))}o(M3,"registerImportedEndpointNameHelper");function D3(){_r.default.registerHelper("endpointPath",tb)}o(D3,"registerEndpointPathHelper");function L3(){_r.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}o(L3,"registerEndpointBodyHelper");function F3(e){_r.default.registerHelper("endpointParams",t=>qp(e,t))}o(F3,"registerEndpointParamsHelper");function V3(e){_r.default.registerHelper("endpointArgs",t=>qp(e,t).map(r=>r.name).join(", "))}o(V3,"registerEndpointArgsHelper");function H3(){_r.default.registerHelper("endpointParamDescription",e=>{var s,a,c,u,l;let t=[`${e.paramType} parameter`],r=((s=e.parameterObject)==null?void 0:s.description)||((a=e.bodyObject)==null?void 0:a.description);r&&t.push(r);let n,i;if((c=e.parameterObject)!=null&&c.schema&&Ne(e.parameterObject.schema)&&(n=(u=e.parameterObject)==null?void 0:u.schema),(l=e.bodyObject)!=null&&l.content){let p=Object.keys(e.bodyObject.content??{}).find(Ue);p&&(i=e.bodyObject.content[p],i.schema&&Ne(i.schema)&&(n=i.schema))}return n&&["description","minimum","exclusiveMinimum","maximum","exclusiveMaximum","minItems","minLength","minProperties","maxItems","maxLength","maxProperties","example"].filter(p=>n[p]).forEach(p=>{t.push(`${W(Iv(p))}: \`${n[p]}\``)}),i!=null&&i.example&&t.push(`Example: \`${i.example}\``),t.join(". ")})}o(H3,"registerEndpointParamDescriptionHelper");var Ut=lt(br());var Tt={query:"useQuery",mutation:"useMutation",queryClient:"useQueryClient"},MS={bindings:[Tt.query,Tt.mutation,Tt.queryClient],from:"@tanstack/react-query"};function DS(){B3(),U3(),z3(),G3(),Z3(),K3(),W3(),Y3()}o(DS,"registerPartialsHbsHelpers");function B3(){Ut.default.registerHelper("genImport",e=>zt("import")({import:e}))}o(B3,"registerImportHelper");function U3(){Ut.default.registerHelper("genEndpointParams",e=>zt("endpoint-params")({endpoint:e}))}o(U3,"registerGenerateEndpointParamsHelper");function z3(){Ut.default.registerHelper("genEndpointConfig",e=>{let t=rb(e);return Object.keys(t).length===0?"":zt("endpoint-config")({endpointConfig:t})})}o(z3,"registerGenerateEndpointConfigHelper");function G3(){Ut.default.registerHelper("genQueryKeys",(e,t)=>e.length===0?"":zt("query-keys")({queryEndpoints:e,namespace:t}))}o(G3,"registerGenerateQueryKeysHelper");function Z3(){Ut.default.registerHelper("genQuery",(e,t)=>{let r,n;return xt(e)?(r="query-use-query",n=Tt.query):(r="query-use-mutation",n=Tt.mutation),zt(r)({endpoint:e,queryEndpoints:t,queryHook:n})})}o(Z3,"registerGenerateQueryHelper");function K3(){Ut.default.registerHelper("genQueryJsDocs",e=>zt("query-js-docs")({endpoint:e}))}o(K3,"registerGenerateQueryJsDocsHelper");function W3(){Ut.default.registerHelper("genCaslAbilityType",e=>zt("casl-ability-type")({endpoint:e,abilityTupleType:st.abilityTuple}))}o(W3,"registerGenerateCaslAbilityTypeHelper");function Y3(){Ut.default.registerHelper("genCaslAbilityFunction",e=>zt("casl-ability-function")({endpoint:e}))}o(Y3,"registerGenerateCaslAbilityFunctionHelper");var Ff=lt(br());function LS(){Q3(),J3()}o(LS,"registerQueryHbsHelpers");function Q3(){Ff.default.registerHelper("queryName",ws)}o(Q3,"registerQueryNameHelper");function J3(){Ff.default.registerHelper("isQuery",xt)}o(J3,"registerIsQueryHelper");var Aa=lt(br());function FS(e){X3(e.options),ej(e),tj(e)}o(FS,"registerZodHbsHelpers");function X3(e){Aa.default.registerHelper("zodInferedType",t=>Ji(t,e))}o(X3,"registerInferedTypeHelper");function ej(e){Aa.default.registerHelper("importedZodSchemaName",t=>Qv(e,t))}o(ej,"registerImportedZodSchemaNameHelper");function tj(e){Aa.default.registerHelper("importedZodSchemaInferedType",t=>Bn(e,t))}o(tj,"registerImportedZodSchemaInferedTypeHelper");function ct(e,t){let r=Lf(t);return jS(),FS(e),qS(e),LS(),NS(),DS(),Vf.default.compile(r)}o(ct,"getHbsTemplateDelegate");function zt(e){let t=Lf(`partials/${e}`);return Vf.default.compile(t)}o(zt,"getHbsPartialTemplateDelegate");function VS({resolver:e,data:t,tag:r=""}){var l;let n=(l=t.get(r))==null?void 0:l.endpoints.filter(({acl:f})=>f&&f.length>0);if(!n||n.length===0)return;let i=n.some(({acl:f})=>(f==null?void 0:f[0].conditions)&&Object.keys(f[0].conditions).length>0),s={...Up,bindings:[st.abilityTuple,...i?[st.forcedSubject,st.subject]:[]]},a=n.reduce((f,p)=>{var m,g;let d=(g=(m=p.acl)==null?void 0:m[0].conditionsTypes)==null?void 0:g.reduce((y,v)=>[...y,...v!=null&&v.zodSchemaName?[v.zodSchemaName]:[]],[]);return[...f,...d??[]]},[]),c=gr({resolver:e,tag:r,zodSchemasAsTypes:Re(a)});return ct(e,"acl")({caslAbilityTupleImport:s,modelsImports:c,includeNamespace:e.options.includeNamespaces,namespace:Z({type:"acl",tag:r,options:e.options}),endpoints:n})}o(VS,"generateAcl");function HS(e,t){if(!t||t.length===0)return;let r={...Up,bindings:[st.pureAbility]},n=ib({tags:t,entityName:io,getAliasEntityName:Us,options:e.options}),i=t.map(a=>Z({type:"acl",tag:a,options:e.options}));return ct(e,"app-acl")({caslAbilityTupleImport:r,imports:n,allAbilities:io,includeNamespace:e.options.includeNamespaces,tags:t,namespaces:i})}o(HS,"generateAppAcl");function BS({resolver:e,data:t,tag:r=""}){var f;let n=(f=t.get(r))==null?void 0:f.endpoints;if(!n||n.length===0)return;let i={bindings:[Ki],from:ab(e.options)},s=n.map(p=>p.response),a=s.some(p=>!Pe(p)),c=n.reduce((p,d)=>[...p,...d.parameters],[]),u=gr({resolver:e,tag:r,zodSchemas:Re(s.filter(Pe)),zodSchemasAsTypes:Re(c.map(p=>p.zodSchema).filter(Pe))});return ct(e,"endpoints")({appRestClientImport:i,hasZodImport:a,zodImport:xs,modelsImports:u,includeNamespace:e.options.includeNamespaces,namespace:Z({type:"endpoints",tag:r,options:e.options}),restClientName:Ki,endpoints:n})}o(BS,"generateEndpoints");function US(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(zS(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}o(US,"getZodSchemaRefs");function zS(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&zS(n).forEach(s=>r.add(s)),r},new Set)}o(zS,"getSchemaRefs");function GS({resolver:e,data:t,tag:r=""}){var u;let n=(u=t.get(r))==null?void 0:u.zodSchemas;if(!n||Object.keys(n).length===0)return;let i=Object.keys(n).reduce((l,f)=>[...l,...US(e,f)],[]).filter(l=>!n[l]),s=gr({resolver:e,tag:r,zodSchemas:i}),a=Object.entries(n).reduce((l,[f,p])=>{let d=e.getRefByZodSchemaName(f);return{...l,[f]:{code:p,isCircular:!!d&&e.isSchemaCircular(d),isEnum:Wv(p)}}},{});return ct(e,"models")({zodImport:xs,modelsImports:s,includeNamespace:e.options.includeNamespaces,namespace:Z({type:"models",tag:r,options:e.options}),zodSchemasData:a})}o(GS,"generateModels");function ZS({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(xt),s=n.filter(Ls),a={...MS,bindings:[...i.length>0?[Tt.query]:[],...s.length>0?[Tt.mutation]:[],...i.length>0&&s.length>0?[Tt.queryClient]:[]]},c={bindings:[...i.length>0?[Sp.query]:[],...s.length>0?[Sp.mutation]:[]],from:cb(e.options)},u=n.reduce((m,g)=>[...m,...g.parameters],[]),l=gr({resolver:e,tag:r,zodSchemasAsTypes:Re(u.map(m=>m.zodSchema).filter(Pe))}),f=nb({tag:r,endpoints:n,options:e.options});return ct(e,"queries")({queryImport:a,queryTypesImport:c,modelsImports:l,endpointsImports:f,includeNamespace:e.options.includeNamespaces,namespace:Z({type:"queries",tag:r,options:e.options}),endpoints:n,queryEndpoints:i})}o(ZS,"generateQueries");function KS(e){return ct(e,"app-rest-client")({appRestClientName:Ki,baseUrl:e.getBaseUrl()})}o(KS,"generateAppRestClient");function WS(e,t){let r=t.standalone&&t.importPath==="ts"?"relative":t.importPath,n={...Zi,...t,importPath:r},{resolver:i,data:s}=Bs(e,n),a=[],c=[],u=["models","endpoints","queries","acl"],l={models:GS,endpoints:BS,queries:ZS,acl:VS};s.forEach((p,d)=>{n.excludeTags.find(g=>g.toLowerCase()===d.toLowerCase())||u.forEach(g=>{let y=l[g]({resolver:i,data:s,tag:d});if(y){let v=bo({output:n.output,fileName:sb({tag:d,type:g,options:n})});a.push({fileName:v,content:y}),g==="acl"&&c.push(d)}})});let f=HS(i,c);if(f){let p=bo({output:n.output,fileName:Ds(Nb)});a.push({fileName:p,content:f})}return n.standalone&&a.push(...rj(i)),a}o(WS,"generateCodeFromOpenAPIDoc");function rj(e){let t=[];return Object.values(As).forEach(r=>{let n=Ds(r);t.push({fileName:bo({output:e.options.output,fileName:n}),content:RS(n)})}),t.push({fileName:bo({output:e.options.output,fileName:Ds(Is)}),content:KS(e)}),t}o(rj,"getStandaloneFiles");async function nj({input:e,options:t}){let r={...Zi,...t},n=await Hf.default.bundle(e);return await Rb(n,r)}o(nj,"getGenerateMetadata");async function ij({input:e,options:t}){let r={...Zi,...t},n=await Hf.default.bundle(e);return WS(n,r)}o(ij,"getGenerateFilesData");0&&(module.exports={getGenerateFilesData,getGenerateMetadata});
76
+ `)}return t.assign(`z.union([${e.oneOf.map(c=>Y({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(PC,"getOneOfZodSchema");function $C({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!je(e)||!Array.isArray(e.type)))return e.type.length===1?Y({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(s=>Y({schema:{...e,type:s},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o($C,"getArrayZodSchema");function OC({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!je(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=Y({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let s=e.anyOf.map(a=>Y({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${s}])`)}o(OC,"getAnyOfZodSchema");function EC({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!je(e)||!e.allOf)return;if(e.allOf.length===1){let p=Y({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(p.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:s,noRequiredOnlyAllof:a,composedRequiredSchema:c}=Wv(e),u=a.map(p=>{let d=Y({schema:p,resolver:r,meta:n,tag:i});return r&&s(p,r.getSchemaByRef.bind(r)),d});c.required.length&&u.push(Y({schema:c,resolver:r,meta:n,tag:i}));let l=u.at(0),f=u.slice(1).map(p=>`merge(${p.getCodeString(i,r.options)})`).join(".");return t.assign(`${l.getCodeString(i,r.options)}.${f}`)}o(EC,"getAllOfZodSchema");function xC({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!je(e))return;let s=e.type?e.type.toLowerCase():void 0;if(s&&Lt(s)){if(e.enum){if(s==="string")return wC({schema:e,zodSchema:t,resolver:r,meta:n,tag:i});if(e.enum.some(a=>typeof a=="string"))return t.assign("z.never()");if(e.enum.length===1){let a=e.enum[0];return t.assign(`z.literal(${a===null?"null":a})`)}return t.assign(`z.union([${e.enum.map(a=>`z.literal(${a===null?"null":a})`).join(", ")}])`)}return t.assign(ge(s).with("integer",()=>"z.number()").with("string",()=>ge(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(a=>`z.${a}()`))}}o(xC,"getPrimitiveZodSchema");function wC({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){if(!je(t))return;let s=Hp(t),a=e.getEnumZodSchemaDataByCode(s);if(!e.options.extractEnums||!a)return r.assign(s);if(!a.zodSchemaName||!a.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${s}`);let c=e.options.includeNamespaces&&a.tag!==i?`${Z({type:"models",tag:a.tag,options:e.options})}.`:"";return new oo(t,e,n,a.zodSchemaName).inherit(r),r.assign(`${c}${a.zodSchemaName}`)}o(wC,"getEnumZodSchema");function Hp(e){var t;return`${Is}([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}o(Hp,"getEnumZodSchemaCode");function Zn({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var c;let s=t.getCodeString();if((!$e(s)||t.ref===void 0)&&r){if(t.complexity<Cp)return s;let u=Ft(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(u);){if((c=n.getZodSchemaNamesByCompositeCode(s))!=null&&c.includes(u))return u;if(n.getCodeByZodSchemaName(u)===u)return u;throw new Error(`Can't uniquely resolve zod schema name: ${u}`)}return n.setZodSchema(u,s,i),n.addZodSchemaForCompositeCode(s,t,u,e),u}let a=n.getCodeByZodSchemaName(s);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return ie(0,n.getSchemaByRef(t.ref))<Cp?n.getCodeByZodSchemaName(s):s;throw new Error(`Invalid ref: ${t.ref}`)}o(Zn,"resolveZodSchemaName");function _b({resolver:e,endpoint:t,operation:r}){let n=r["x-acl"];return n==null?void 0:n.map(i=>{let s=Object.keys(i.conditions??{}).reduce((a,c)=>{let u=AC({resolver:e,endpoint:t,acl:n,name:c});return u?[...a,u]:(e.validationErrors.push(vb(c,r,t)),a)},[]);return{...i,conditionsTypes:s}})}o(_b,"getEndpointAcl");function AC({resolver:e,endpoint:t,acl:r,name:n}){var p,d,m,g,y,v,b,S,O,P;let i=(d=(p=r[0])==null?void 0:p.conditions)==null?void 0:d[n];if(!i)return;let s=i.replace(/^\$[^.]*\./,"").split("."),a,c,u,l=0,f=t.parameters.find(({name:_})=>_===s[l]);if(f)c=(m=f.parameterObject)==null?void 0:m.required,a=(g=f.parameterObject)==null?void 0:g.schema,u=`${f.name} ${Br(f.type)} parameter`,l++;else{let _=t.parameters.find(({bodyObject:se})=>!!se),q=Object.keys(((y=_==null?void 0:_.bodyObject)==null?void 0:y.content)??{}).find(ze);q&&(a=(S=(b=(v=_==null?void 0:_.bodyObject)==null?void 0:v.content)==null?void 0:b[q])==null?void 0:S.schema,u=`${xt(t)?"query":"mutation"} data`)}for(;a&&l<s.length;){let _=e.resolveObject(a);a=(O=Object.entries(_.properties??{}).find(([q])=>q===s[l]))==null?void 0:O[1],c=((P=_.required)==null?void 0:P.includes(s[l]))??!1,l++}if(a)return{name:n,type:M(a)?void 0:a.type,zodSchemaName:M(a)?e.getZodSchemaNameByRef(a.$ref):void 0,required:c,info:u}}o(AC,"getEndpointAclConditionPropertyType");function Pb({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var m,g;let s=e.resolveObject(t.requestBody);if(!s)return;let c=Object.keys(s.content??{}).find(ze);if(!c)return;let u=(g=(m=s.content)==null?void 0:m[c])==null?void 0:g.schema;if(!u)return;let l=Y({schema:u,resolver:e,meta:{isRequired:s.required??!0},tag:i}),f=e.resolveObject(u),p=Zn({schema:f,zodSchema:l,fallbackName:Ls(Gr(r,n,i)),resolver:e,tag:i}),d=wt({schema:f,meta:l.meta,options:e.options});return{endpointParameter:{name:Nv,type:"Body",description:s.description,zodSchema:p+d,bodyObject:s},requestFormat:c}}o(Pb,"getEndpointBody");function $b({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let s=e.resolveObject(t);if(!Lv.includes(s.in))return;let a={};if(s.content){let p=Object.keys(s.content??{}),d=p.find(ze);if(!d)throw new Error(`Unsupported media type for param ${s.name}: ${p.join(", ")}`);let m=s.content[d];if(!m)throw new Error(`No content with media type for param ${s.name}: ${d}`);a=(m==null?void 0:m.schema)??m}else s.schema&&(a=s.schema);e.options.withDescription&&a&&(a.description=(s.description??"").trim());let c=Y({schema:a,resolver:e,meta:{isRequired:s.in==="path"?!0:s.required??!1},tag:i}),u=e.resolveObject(a),l=wt({schema:u,meta:c.meta,options:e.options}),f=Zn({schema:u,zodSchema:c.assign(c.getCodeString(i)+l),fallbackName:Jv(Gr(r,n,i),s.name),resolver:e,tag:i});return{name:ge(s.in).with("path",()=>qp(s.name)).otherwise(()=>s.name),type:ge(s.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:f,parameterObject:s}}o($b,"getEndpointParameter");function Eb(e){var r,n,i,s,a;let t=[];for(let c in e.openApiDoc.paths){let u=e.openApiDoc.paths[c],l=hr(u,mr),f=Ob(u.parameters??[]);for(let p in l){let d=l[p];if(!d||d.deprecated&&!e.options.withDeprecatedEndpoints)continue;let m=d.operationId&&d.operationId!==_t(d.operationId);d.operationId&&m&&e.validationErrors.push(mb(d.operationId));let g=Object.entries({...f,...Ob(d.parameters??[])}).map(([,P])=>P),y=Xi({path:c,method:p,operation:d,operationsByTag:e.operationsByTag,options:e.options}),v=e.operationNames.filter(P=>P===y).length<=1,b=Ur(d,e.options),S={method:p,path:Kv(c),operationName:y,description:d.description,summary:d.summary,tags:(r=d.tags)==null?void 0:r.map(Et),requestFormat:"application/json",parameters:[],response:"",errors:[],responseStatusCodes:[]};if(d.requestBody){let P=Pb({resolver:e,operation:d,operationName:y,isUniqueOperationName:v,tag:b});P&&(S.parameters.push(P.endpointParameter),S.requestFormat=P.requestFormat)}for(let P of g){let _=$b({resolver:e,param:P,operationName:y,isUniqueOperationName:v,tag:b});_&&S.parameters.push(_)}let O=IC(S);O.forEach(P=>{S.parameters.push(P)}),O.length>0&&e.validationErrors.push(hb(O,c));for(let P in d.responses){S.responseStatusCodes.push(P);let _=e.resolveObject(d.responses[P]),q=Object.keys(_.content??{}).find(zn),se,Q;if(q?(S.responseFormat=q,se=(i=(n=_.content)==null?void 0:n[q])==null?void 0:i.schema):Q=Ki,se){let G=Y({schema:se,resolver:e,meta:{isRequired:!0},tag:b}),ve=e.resolveObject(se);Q=Zn({schema:ve,zodSchema:G,fallbackName:G.ref?void 0:Fs({statusCode:P,operationName:y,isUniqueOperationName:v,tag:b}),resolver:e,tag:b})+wt({schema:ve,meta:G.meta,options:e.options})}if(Q){let G=Number(P);qs(G)?(S.response=Q,S.responseObject=_,S.responseDescription=_.description):P!=="default"&&Ms(G)&&S.errors.push({zodSchema:Q,status:G,description:_.description})}}S.response||(S.response=Ki),S.acl=_b({resolver:e,endpoint:S,operation:d}),(s=d.security)!=null&&s[0].Authorization&&!S.responseStatusCodes.includes("401")&&e.validationErrors.push(Fp("401",d,S)),(a=S.acl)!=null&&a[0]&&!S.responseStatusCodes.includes("403")&&e.validationErrors.push(Fp("403",d,S)),t.push(S)}}return t}o(Eb,"getEndpointsFromOpenAPIDoc");function Ob(e){return Object.fromEntries((e??[]).map(t=>[M(t)?t.$ref:t.name,t]))}o(Ob,"getParameters");function IC(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=>TC(r))}o(IC,"getMissingPathParameters");function TC(e){return{name:e,type:"Path",zodSchema:"z.string()",parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}o(TC,"getPathParameterFromName");function xb(e,t){let r=kC(e,t),n=CC(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}o(xb,"getOpenAPISchemaDependencyGraph");function kC(e,t){let r={},n={};return e.forEach(i=>RC({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}o(kC,"getRefsDependencyGraph");function CC(e,t){let r={},n={},i=o((s,a)=>{n[a].add(s),t[s]&&a!==s&&t[s].forEach(c=>{let u=`${a}__${c}`;r[u]||(r[u]=!0,i(c,a))})},"visit");return e.forEach(s=>{let a=t[s];a&&(n[s]||(n[s]=new Set),a.forEach(c=>i(c,s)))}),n}o(CC,"getDeepRefsDependencyGraph");function RC({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let s=o(a=>{if(a.type!=="reference"||!a.data)return;let{schema:c,data:u}=a;if(i[u.fromRef]||(i[u.fromRef]=new Set),i[u.fromRef].add(c.$ref),n[c.$ref])return!0;n[u.fromRef]=!0,Oe(r(c.$ref),{data:{fromRef:c.$ref},onSchema:s})},"onSchema");return Oe(e,{data:{fromRef:t},onSchema:s}),{visitedRefs:n,refsDependencyGraph:i}}o(RC,"getSchemaRefsDependencyGraph");function zs(e,t,r){let n=[];return Oe(t,{onSchema:o(s=>{s.type==="reference"?n.push(s.schema):M(s.parentSchema)&&(s.type==="property"||s.type==="additionalProperty"?e.validationErrors.push(Us(`${r} has both reference and properties`)):s.type==="array"?e.validationErrors.push(Us(`${r} is both reference and array schema`)):s.type==="composite"&&e.validationErrors.push(Us(`${r} has both reference and composite keyword`)))},"onSchema")}),n}o(zs,"getSchemaRefObjs");function wb(e,t){return t.map(i=>zr(i.$ref)).reduce((i,s)=>{let a=e.dependencyGraph.deepDependencyGraph[s];return[...i,s,...Array.from(a??[])]},[])}o(wb,"getDeepSchemaRefObjs");function so({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&Ab({schema:e,nameSegments:t,...n}),Oe(e,{data:{nameSegments:t},onSchema:o(s=>{var c;if(s.type==="reference")return!0;let a=[...((c=s.data)==null?void 0:c.nameSegments)??[]];(s.type==="property"||s.type==="additionalProperty")&&a.push(s.propertyName),Ab({schema:s.schema,nameSegments:[...a],...n})},"onSchema")})}o(so,"updateEnumZodSchemaData");function Ab({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:s=[]}){if(!t||M(t)||!t.enum)return;let a=Hp(t),c=e.enumZodSchemaData.find(u=>u.code===a);c?(c.meta.zodSchemaNameSegments.push(s),c.meta.tags.push(...i),c.meta.schemaRefs.push(...r?[r]:[]),c.meta.schemas.push(...t?[t]:[])):e.enumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[s],tags:[...i],schemaRefs:r?[r]:[],schemas:t?[t]:[]}}),e.validationErrors.push(gb(r?`schema ${Un(r)} property ${s[s.length-1]}`:n??s.join("->")))}o(Ab,"handleEnumZodSchemaDataUpdate");function Ib(e){e.enumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(s=>s[s.length-1]).filter(Boolean),i=Pp(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=Mp(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!Bp(e);)NC(e,t+2),t++;if(Bp(e)||e.enumZodSchemaData.filter(n=>!kb(e,n)).forEach(n=>{n.zodSchemaName=Mp(n.meta.zodSchemaNameSegments[0].map(i=>Up(W(i))).join(""),e.options.enumSuffix,e.options.schemaSuffix)}),!Bp(e))throw new Error("Failed to resolve unique names for enum zod schemas")}o(Ib,"resolveEnumZodSchemaNames");function Bp(e){return e.enumZodSchemaData.every(t=>kb(e,t))}o(Bp,"allEnumZodSchemaNamesAreUnique");function NC(e,t){e.enumZodSchemaData.forEach(r=>{let n=e.enumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&jC(n,t)})}o(NC,"additionalResolveEnumZodSchemaName");function jC(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1){let i=[Up(W(n[0])),r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=i}else{let i=Pp(n),s=[i?Up(W(i)):"",r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=s}})}o(jC,"suffixWithPreviousSegmentName");function Tb(e){e.enumZodSchemaData.forEach(t=>{let r=Ne(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}o(Tb,"resolveEnumZodSchemaTags");function kb(e,t){return e.enumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length===1}o(kb,"isUnique");function Up(e){return e.replace(/(Dto|DTO|Response|Request)/g,"")}o(Up,"sanitizeName");var zp=class zp{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=xb(this.schemaRefs,this.getSchemaByRef.bind(this)),this.operationsByTag=Vv(t,r),this.operationNames=Zv(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(Bv)}getSchemaByRef(t){return this.docSchemas[Un(t)]}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(zr(t)))==null?void 0:n.zodSchemaName)??((i=this.enumZodSchemaData.find(s=>s.zodSchemaName===t))==null?void 0:i.zodSchemaName);if(!r)throw new Error(`Zod schema not found for ref: ${t}`);return r}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var u,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.enumZodSchemaData.find(f=>f.zodSchemaName===t);if(r)return Et(r.tag??this.options.defaultTag);let n=this.getRefByZodSchemaName(t),i=n?((u=this.getSchemaDataByRef(n))==null?void 0:u.tags)??[]:[],s=((l=this.zodSchemaData.find(f=>f.zodSchemaName===t))==null?void 0:l.tags)??[],a=Ne(i,s),c=a.length===1?a[0]:this.options.defaultTag;return Et(c??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(s=>s.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let s={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(s):this.compositeZodSchemaData.push({code:t,zodSchemas:[s]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemaData.find(r=>r.code===t)}getEnumZodSchemaDataByName(t){return this.enumZodSchemaData.find(({zodSchemaName:r})=>r===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 M(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}getCircularSchemaChain(t,r=t,n=[]){var i,s;return(i=this.dependencyGraph.refsDependencyGraph[r])!=null&&i.has(t)?[...n,r,t]:Array.from(((s=this.dependencyGraph.refsDependencyGraph[r])==null?void 0:s.values())??[]).map(a=>{let c=this.getCircularSchemaChain(t,a,n);return c.length>0?[r,...c]:c}).flat()}getBaseUrl(){var r;let t=(r=this.openApiDoc.servers)==null?void 0:r[0].url;return this.options.baseUrl===""&&t?t:this.options.baseUrl}getZodSchemaObj(t){let r=this.getRefByZodSchemaName(t);if(r)return this.getSchemaByRef(r);let n=this.getSchemaByCompositeZodSchemaName(t);if(n)return n;let i=this.getEnumZodSchemaDataByName(t);if(i)return i.meta.schemas.reduce((s,a)=>({...s,...this.resolveObject(a)}),{})}initialize(){var t,r,n,i,s;this.schemaRefs.forEach(a=>{let c=zr(a),u=Un(c),l=Ft(u,this.options.schemaSuffix);this.schemaData.push({ref:c,name:u,zodSchemaName:l,tags:[]})});for(let a in this.openApiDoc.paths){let c=this.openApiDoc.paths[a],u=hr(c,mr);for(let l in u){let f=u[l];if(!f||f.deprecated&&!this.options.withDeprecatedEndpoints)continue;let p=Ur(f,this.options),d=Xi({path:a,method:l,operation:f,operationsByTag:this.operationsByTag,options:this.options}),m=this.operationNames.filter(b=>b===d).length<=1,g=ue(Gr(d,m,p)),y=[];if((t=f.parameters)==null||t.map(b=>{let S=b,O=S.schema,P=`operation ${f.operationId??a} parameter ${S.name}`;y.push(...zs(this,O,P)),this.options.extractEnums&&so({resolver:this,schema:O,schemaInfo:P,tags:[p],nameSegments:[g,S.name],includeSelf:!0})}),f.requestBody){let b=this.resolveObject(f.requestBody),O=Object.keys(b.content??{}).find(ze);if(O){let P=(n=(r=b.content)==null?void 0:r[O])==null?void 0:n.schema,_=`operation ${f.operationId} request body`;y.push(...zs(this,P,_)),this.options.extractEnums&&so({resolver:this,schema:P,schemaInfo:_,tags:[p],nameSegments:[Ls(g)]})}}for(let b in f.responses){let S=this.resolveObject(f.responses[b]),P=Object.keys(S.content??{}).find(zn);if(P){let _=(s=(i=S.content)==null?void 0:i[P])==null?void 0:s.schema,V=`operation ${f.operationId} response body`;y.push(...zs(this,_,V)),this.options.extractEnums&&so({resolver:this,schema:_,schemaInfo:V,tags:[p],nameSegments:[Fs({statusCode:b,operationName:d,isUniqueOperationName:m,tag:p})]})}}wb(this,y).forEach(b=>{let S=this.getSchemaDataByRef(b);S&&S.tags.push(p)})}}this.options.extractEnums&&(this.schemaRefs.forEach(a=>{var u;let c=zr(a);so({resolver:this,schema:this.getSchemaByRef(c),schemaRef:c,tags:((u=this.getSchemaDataByRef(c))==null?void 0:u.tags)??[],nameSegments:[Un(c)]})}),Ib(this),Tb(this))}};o(zp,"SchemaResolver");var Gs=zp;function Cb(e){var r;let t={};return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let s=Ft(n,e.options.schemaSuffix);if(!t[s]){let a=e.getTagByZodSchemaName(s);t[s]=Y({schema:i,resolver:e,tag:a}).getCodeString(a)}}),t}o(Cb,"getZodSchemasFromOpenAPIDoc");function Rb(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(Rb,"topologicalSort");function Nb(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(Nb,"sortObjKeysFromArray");function jb(e,t){let r=Rb(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return Nb(t,r)}o(jb,"sortZodSchemasByTopology");function qb(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let s=e.getRefByZodSchemaName(n);s&&e.isSchemaCircular(s)?(e.validationErrors.push(yb(e.getCircularSchemaChain(s).join(" -> "))),r[Ft(n,e.options.schemaSuffix)]=`z.lazy(() => ${i})`):r[Ft(n,e.options.schemaSuffix)]=i}),r}o(qb,"wrapCircularZodSchemas");function Zs(e,t){let r=new Gs(e,t),n=Eb(r),s={...Cb(r),...r.getZodSchemas()};return s=qb(r,s),s=jb(r,s),s={...r.getEnumZodSchemas(),...s},{resolver:r,data:qC({resolver:r,endpoints:n,zodSchemas:s,options:t})}}o(Zs,"getDataFromOpenAPIDoc");function qC({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(s=>{let a=no(s,n);Mb(a,i).endpoints.push(s)}),Object.entries(r).forEach(([s,a])=>{let c=e.getTagByZodSchemaName(s);c&&(Mb(c,i).zodSchemas[s]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}o(qC,"splitDataByTags");function Mb(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}o(Mb,"getTagElement");async function Db(e,t){let{resolver:r,data:n}=await Zs(e,t),i=[],s=[];return n.forEach(({endpoints:c,zodSchemas:u},l)=>{var d;((d=t.excludeTags)==null?void 0:d.findIndex(m=>m.toLowerCase()===l.toLowerCase()))===-1&&(Object.keys(u).forEach(m=>{let g=r.getRefByZodSchemaName(m),y=g?r.getSchemaByRef(g):r.getSchemaByCompositeZodSchemaName(m),v=Gn({zodSchemaName:m,schema:y,resolver:r}),b;y&&(b=Zr({schema:y,parentTypes:[v],resolver:r})),i.push({...v,metaType:"primitive",...b})}),c.forEach(m=>{let g="queries",y=Et(l);s.push({name:ks(m),importPath:Kr({type:g,tag:y,includeTagDir:!0,options:t}),namespace:t.includeNamespaces?Z({type:g,tag:y,options:t}):void 0,isQuery:xt(m),isMutation:Bs(m),params:MC({resolver:r,endpoint:m}),response:DC({resolver:r,endpoint:m})})}))}),{openApiDoc:e,models:i,queries:s}}o(Db,"getMetadataFromOpenAPIDoc");function MC({resolver:e,endpoint:t}){return t.parameters.map(r=>{var a,c,u,l;let n;if((a=r.parameterObject)!=null&&a.schema)n=e.resolveObject(r.parameterObject.schema);else if(r.bodyObject){let p=Object.keys(r.bodyObject.content??{}).find(ze);p&&(n=e.resolveObject((u=(c=r.bodyObject.content)==null?void 0:c[p])==null?void 0:u.schema))}let i=Gn({zodSchemaName:r.zodSchema,schema:n,resolver:e}),s;return n&&(s=Zr({schema:n,parentTypes:[i],resolver:e})),{name:_t(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(MC,"getQueryMetadataParams");function DC({resolver:e,endpoint:t}){var a,c,u,l;let r,n=Object.keys(((a=t.responseObject)==null?void 0:a.content)??{}).find(zn);n&&(r=e.resolveObject((l=(u=(c=t.responseObject)==null?void 0:c.content)==null?void 0:u[n])==null?void 0:l.schema));let i=Gn({zodSchemaName:t.response,schema:r,resolver:e}),s;return r&&(s=Zr({schema:r,parentTypes:[i],resolver:e})),{...i,metaType:"primitive",...s}}o(DC,"getQueryMetadataResponse");var Lb={fileName:"acl/app.ability",extension:"ts"},ao="AllAbilities",st={abilityTuple:"AbilityTuple",pureAbility:"PureAbility",forcedSubject:"ForcedSubject",subject:"subject"},Gp={bindings:[st.abilityTuple,st.pureAbility,st.forcedSubject,st.subject],from:"@casl/ability"};var Fb=o(e=>`Use${W(ue(e.operationName))}Ability`,"getAbilityTypeName"),Vb=o(e=>`canUse${W(ue(e.operationName))}`,"getAbilityFunctionName"),Hb=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].action},"getAbilityAction"),Bb=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].subject},"getAbilitySubject"),Ub=o(e=>{var t;return!!((t=Zp(e))!=null&&t.length)},"hasAbilityConditions"),Zp=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].conditionsTypes},"getAbilityConditionsTypes"),zb=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].description},"getAbilityDescription"),Ks=o(e=>`${W(e)}${ao}`,"getTagAllAbilitiesName");var Bf=lt(Sr());var Ff=lt(require("fs")),q_=lt(require("path"));function M_(e){return Ff.default.readFileSync(q_.default.join(__dirname,`../${e}`),"utf-8")}o(M_,"readFileSync");function Vf(e){let t=`src/generators/templates/${e}.hbs`;return M_(t)}o(Vf,"readHbsTemplateSync");function D_(e){let t=`src/assets/${e}`;return M_(t)}o(D_,"readAssetSync");function Po({output:e,fileName:t}){return`${e}/${t}`}o(Po,"getOutputFileName");var zt=lt(Sr());function L_(){T3(),k3(),C3(),R3(),N3(),j3(),q3(),M3()}o(L_,"registerAclHbsHelpers");function T3(){zt.default.registerHelper("abilityTypeName",Fb)}o(T3,"registerAbilityTypeNameHelper");function k3(){zt.default.registerHelper("abilityFunctionName",Vb)}o(k3,"registerAbilityFunctionNameHelper");function C3(){zt.default.registerHelper("ablityAction",Hb)}o(C3,"registerAbilityActionHelper");function R3(){zt.default.registerHelper("ablitySubject",Bb)}o(R3,"registerAbilitySubjectHelper");function N3(){zt.default.registerHelper("hasAbilityConditions",Ub)}o(N3,"registerHasAbilityConditionsHelper");function j3(){zt.default.registerHelper("abilityConditionsTypes",Zp)}o(j3,"registerAbilityConditionsTypesHelper");function q3(){zt.default.registerHelper("abilityDescription",zb)}o(q3,"registerAbilityDescriptionHelper");function M3(){zt.default.registerHelper("tagAllAbilitiesName",Ks)}o(M3,"registerTagAllAbilitiesNameHelper");var $o=lt(Sr());function F_(){D3(),L3(),F3(),V3()}o(F_,"registerCommonHbsHelpers");function D3(){$o.default.registerHelper("isEqual",(e,t)=>e===t)}o(D3,"registerIsEqualHelper");function L3(){$o.default.registerHelper("commaSeparated",e=>e.join(", "))}o(L3,"registerCommaSeparatedListHelper");function F3(){$o.default.registerHelper("addAsteriskAfterNewLine",e=>e.replace(/\n/g,`
77
+ *`))}o(F3,"registerAddAsteriskAfterNewLineHelper");function V3(){$o.default.registerHelper("jsonStringify",e=>JSON.stringify(e,null,2))}o(V3,"registerJsonStringifyHelper");var _r=lt(Sr());function V_(e){H3(),B3(e.options),G3(e),U3(),z3(),Z3(e),K3()}o(V_,"registerEndpointsHbsHelpers");function H3(){_r.default.registerHelper("endpointName",ro)}o(H3,"registerEndpointNameHelper");function B3(e){_r.default.registerHelper("importedEndpointName",t=>ob(t,e))}o(B3,"registerImportedEndpointNameHelper");function U3(){_r.default.registerHelper("endpointPath",sb)}o(U3,"registerEndpointPathHelper");function z3(){_r.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}o(z3,"registerEndpointBodyHelper");function G3(e){_r.default.registerHelper("endpointParams",t=>Dp(e,t))}o(G3,"registerEndpointParamsHelper");function Z3(e){_r.default.registerHelper("endpointArgs",t=>Dp(e,t).map(r=>r.name).join(", "))}o(Z3,"registerEndpointArgsHelper");function K3(){_r.default.registerHelper("endpointParamDescription",e=>{var s,a,c,u,l;let t=[`${e.paramType} parameter`],r=((s=e.parameterObject)==null?void 0:s.description)||((a=e.bodyObject)==null?void 0:a.description);r&&t.push(r);let n,i;if((c=e.parameterObject)!=null&&c.schema&&je(e.parameterObject.schema)&&(n=(u=e.parameterObject)==null?void 0:u.schema),(l=e.bodyObject)!=null&&l.content){let p=Object.keys(e.bodyObject.content??{}).find(ze);p&&(i=e.bodyObject.content[p],i.schema&&je(i.schema)&&(n=i.schema))}if(n){let f=eo(n);t.push(...f)}return i!=null&&i.example&&t.push(`Example: \`${i.example}\``),t.join(". ")})}o(K3,"registerEndpointParamDescriptionHelper");var kt=lt(Sr());var Tt={query:"useQuery",mutation:"useMutation",queryClient:"useQueryClient"},H_={bindings:[Tt.query,Tt.mutation,Tt.queryClient],from:"@tanstack/react-query"};function B_(){W3(),Y3(),J3(),Q3(),X3(),ej(),tj(),rj(),nj()}o(B_,"registerPartialsHbsHelpers");function W3(){kt.default.registerHelper("genModelJsDocs",(e,t,r)=>Ct("model-js-docs")({name:e,zodSchema:t,tag:r}))}o(W3,"registerGenerateModelJsDocsHelper");function Y3(){kt.default.registerHelper("genImport",e=>Ct("import")({import:e}))}o(Y3,"registerImportHelper");function J3(){kt.default.registerHelper("genEndpointParams",e=>Ct("endpoint-params")({endpoint:e}))}o(J3,"registerGenerateEndpointParamsHelper");function Q3(){kt.default.registerHelper("genEndpointConfig",e=>{let t=ab(e);return Object.keys(t).length===0?"":Ct("endpoint-config")({endpointConfig:t})})}o(Q3,"registerGenerateEndpointConfigHelper");function X3(){kt.default.registerHelper("genQueryKeys",(e,t)=>e.length===0?"":Ct("query-keys")({queryEndpoints:e,namespace:t}))}o(X3,"registerGenerateQueryKeysHelper");function ej(){kt.default.registerHelper("genQuery",(e,t)=>{let r,n;return xt(e)?(r="query-use-query",n=Tt.query):(r="query-use-mutation",n=Tt.mutation),Ct(r)({endpoint:e,queryEndpoints:t,queryHook:n})})}o(ej,"registerGenerateQueryHelper");function tj(){kt.default.registerHelper("genQueryJsDocs",e=>Ct("query-js-docs")({endpoint:e}))}o(tj,"registerGenerateQueryJsDocsHelper");function rj(){kt.default.registerHelper("genCaslAbilityType",e=>Ct("casl-ability-type")({endpoint:e,abilityTupleType:st.abilityTuple}))}o(rj,"registerGenerateCaslAbilityTypeHelper");function nj(){kt.default.registerHelper("genCaslAbilityFunction",e=>Ct("casl-ability-function")({endpoint:e}))}o(nj,"registerGenerateCaslAbilityFunctionHelper");var Hf=lt(Sr());function U_(){ij(),oj()}o(U_,"registerQueryHbsHelpers");function ij(){Hf.default.registerHelper("queryName",ks)}o(ij,"registerQueryNameHelper");function oj(){Hf.default.registerHelper("isQuery",xt)}o(oj,"registerIsQueryHelper");var rn=lt(Sr());function z_(e){sj(e.options),aj(e),cj(e),uj(),lj(),pj(e)}o(z_,"registerZodHbsHelpers");function sj(e){rn.default.registerHelper("zodInferedType",t=>to(t,e))}o(sj,"registerInferedTypeHelper");function aj(e){rn.default.registerHelper("importedZodSchemaName",t=>Qv(e,t))}o(aj,"registerImportedZodSchemaNameHelper");function cj(e){rn.default.registerHelper("importedZodSchemaInferedType",t=>gr(e,t))}o(cj,"registerImportedZodSchemaInferedTypeHelper");function uj(){rn.default.registerHelper("zodSchemaType",e=>Xv(e))}o(uj,"registerZodSchemaTypeHelper");function lj(){rn.default.registerHelper("zodSchemaDescription",e=>eb(e))}o(lj,"registerZodSchemaDescriptionHelper");function pj(e){rn.default.registerHelper("zodSchemaPropertyDescriptions",(t,r)=>rb(e,t,r))}o(pj,"registerZodSchemaPropertyDescriptionsHelper");function ct(e,t){let r=Vf(t);return F_(),z_(e),V_(e),U_(),L_(),B_(),Bf.default.compile(r)}o(ct,"getHbsTemplateDelegate");function Ct(e){let t=Vf(`partials/${e}`);return Bf.default.compile(t)}o(Ct,"getHbsPartialTemplateDelegate");function G_({resolver:e,data:t,tag:r=""}){var l;let n=(l=t.get(r))==null?void 0:l.endpoints.filter(({acl:f})=>f&&f.length>0);if(!n||n.length===0)return;let i=n.some(({acl:f})=>(f==null?void 0:f[0].conditions)&&Object.keys(f[0].conditions).length>0),s={...Gp,bindings:[st.abilityTuple,...i?[st.forcedSubject,st.subject]:[]]},a=n.reduce((f,p)=>{var m,g;let d=(g=(m=p.acl)==null?void 0:m[0].conditionsTypes)==null?void 0:g.reduce((y,v)=>[...y,...v!=null&&v.zodSchemaName?[v.zodSchemaName]:[]],[]);return[...f,...d??[]]},[]),c=yr({resolver:e,tag:r,zodSchemasAsTypes:Ne(a)});return ct(e,"acl")({caslAbilityTupleImport:s,modelsImports:c,includeNamespace:e.options.includeNamespaces,namespace:Z({type:"acl",tag:r,options:e.options}),endpoints:n})}o(G_,"generateAcl");function Z_(e,t){if(!t||t.length===0)return;let r={...Gp,bindings:[st.pureAbility]},n=ub({tags:t,entityName:ao,getAliasEntityName:Ks,options:e.options}),i=t.map(a=>Z({type:"acl",tag:a,options:e.options}));return ct(e,"app-acl")({caslAbilityTupleImport:r,imports:n,allAbilities:ao,includeNamespace:e.options.includeNamespaces,tags:t,namespaces:i})}o(Z_,"generateAppAcl");function K_({resolver:e,data:t,tag:r=""}){var f;let n=(f=t.get(r))==null?void 0:f.endpoints;if(!n||n.length===0)return;let i={bindings:[Yi],from:fb(e.options)},s=n.map(p=>p.response),a=s.some(p=>!$e(p)),c=n.reduce((p,d)=>[...p,...d.parameters],[]),u=yr({resolver:e,tag:r,zodSchemas:Ne(s.filter($e)),zodSchemasAsTypes:Ne(c.map(p=>p.zodSchema).filter($e))});return ct(e,"endpoints")({appRestClientImport:i,hasZodImport:a,zodImport:Ts,modelsImports:u,includeNamespace:e.options.includeNamespaces,namespace:Z({type:"endpoints",tag:r,options:e.options}),restClientName:Yi,endpoints:n})}o(K_,"generateEndpoints");function W_(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(Y_(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}o(W_,"getZodSchemaRefs");function Y_(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&Y_(n).forEach(s=>r.add(s)),r},new Set)}o(Y_,"getSchemaRefs");function J_({resolver:e,data:t,tag:r=""}){var u;let n=(u=t.get(r))==null?void 0:u.zodSchemas;if(!n||Object.keys(n).length===0)return;let i=Object.keys(n).reduce((l,f)=>[...l,...W_(e,f)],[]).filter(l=>!n[l]),s=yr({resolver:e,tag:r,zodSchemas:i}),a=Object.entries(n).reduce((l,[f,p])=>{let d=e.getRefByZodSchemaName(f);return{...l,[f]:{code:p,isCircular:!!d&&e.isSchemaCircular(d),isEnum:Yv(p),schemaObj:e.getZodSchemaObj(f)}}},{});return ct(e,"models")({zodImport:Ts,modelsImports:s,includeNamespace:e.options.includeNamespaces,namespace:Z({type:"models",tag:r,options:e.options}),tag:r,zodSchemasData:a})}o(J_,"generateModels");function Q_({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(xt),s=n.filter(Bs),a={...H_,bindings:[...i.length>0?[Tt.query]:[],...s.length>0?[Tt.mutation]:[],...i.length>0&&s.length>0?[Tt.queryClient]:[]]},c={bindings:[...i.length>0?[$p.query]:[],...s.length>0?[$p.mutation]:[]],from:db(e.options)},u=n.reduce((m,g)=>[...m,...g.parameters],[]),l=yr({resolver:e,tag:r,zodSchemasAsTypes:Ne(u.map(m=>m.zodSchema).filter($e))}),f=cb({tag:r,endpoints:n,options:e.options});return ct(e,"queries")({queryImport:a,queryTypesImport:c,modelsImports:l,endpointsImports:f,includeNamespace:e.options.includeNamespaces,namespace:Z({type:"queries",tag:r,options:e.options}),endpoints:n,queryEndpoints:i})}o(Q_,"generateQueries");function X_(e){return ct(e,"app-rest-client")({appRestClientName:Yi,baseUrl:e.getBaseUrl()})}o(X_,"generateAppRestClient");function e2(e,t){let r=t.standalone&&t.importPath==="ts"?"relative":t.importPath,n={...Wi,...t,importPath:r},{resolver:i,data:s}=Zs(e,n),a=[],c=[],u=["models","endpoints","queries","acl"],l={models:J_,endpoints:K_,queries:Q_,acl:G_};s.forEach((p,d)=>{n.excludeTags.find(g=>g.toLowerCase()===d.toLowerCase())||u.forEach(g=>{let y=l[g]({resolver:i,data:s,tag:d});if(y){let v=Po({output:n.output,fileName:pb({tag:d,type:g,options:n})});a.push({fileName:v,content:y}),g==="acl"&&c.push(d)}})});let f=Z_(i,c);if(f){let p=Po({output:n.output,fileName:Hs(Lb)});a.push({fileName:p,content:f})}return n.standalone&&a.push(...fj(i)),a}o(e2,"generateCodeFromOpenAPIDoc");function fj(e){let t=[];return Object.values(Cs).forEach(r=>{let n=Hs(r);t.push({fileName:Po({output:e.options.output,fileName:n}),content:D_(n)})}),t.push({fileName:Po({output:e.options.output,fileName:Hs(Rs)}),content:X_(e)}),t}o(fj,"getStandaloneFiles");async function dj({input:e,options:t}){let r={...Wi,...t},n=await Uf.default.bundle(e);return await Db(n,r)}o(dj,"getGenerateMetadata");async function mj({input:e,options:t}){let r={...Wi,...t},n=await Uf.default.bundle(e);return e2(n,r)}o(mj,"getGenerateFilesData");0&&(module.exports={getGenerateFilesData,getGenerateMetadata});