@povio/openapi-codegen-cli 0.11.0 → 0.12.0

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 ZP=Object.create;var yi=Object.defineProperty;var zP=Object.getOwnPropertyDescriptor;var KP=Object.getOwnPropertyNames;var QP=Object.getPrototypeOf,WP=Object.prototype.hasOwnProperty;var o=(e,t)=>yi(e,"name",{value:t,configurable:!0});var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),YP=(e,t)=>{for(var r in t)yi(e,r,{get:t[r],enumerable:!0})},hd=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of KP(t))!WP.call(e,i)&&i!==r&&yi(e,i,{get:()=>t[i],enumerable:!(n=zP(t,i))||n.enumerable});return e};var Xe=(e,t,r)=>(r=e!=null?ZP(QP(e)):{},hd(t||!e||!e.__esModule?yi(r,"default",{value:e,enumerable:!0}):r,e)),JP=e=>hd(yi({},"__esModule",{value:!0}),e);var Me=h((qe,yd)=>{"use strict";var Uo=/^win/.test(process.platform),XP=/\//g,e2=/^(\w{2,}):\/\//i,gd=yd.exports,t2=/~1/g,r2=/~0/g,ic=[/\?/g,"%3F",/\#/g,"%23"],oc=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];qe.parse=require("url").parse;qe.resolve=require("url").resolve;qe.cwd=o(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");qe.getProtocol=o(function(t){let r=e2.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");qe.getExtension=o(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");qe.getHash=o(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");qe.stripHash=o(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");qe.isHttp=o(function(t){let r=gd.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");qe.isFileSystemPath=o(function(t){if(process.browser)return!1;let r=gd.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");qe.fromFileSystemPath=o(function(t){Uo&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<ic.length;r+=2)t=t.replace(ic[r],ic[r+1]);return t},"fromFileSystemPath");qe.toFileSystemPath=o(function(t,r){t=decodeURI(t);for(let i=0;i<oc.length;i+=2)t=t.replace(oc[i],oc[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),Uo&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=Uo?t:"/"+t)),Uo&&!n&&(t=t.replace(XP,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");qe.safePointerToPath=o(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(t2,"/").replace(r2,"~"))},"safePointerToPath")});var Go=h(vi=>{"use strict";var vd=require("util"),n2=Me();vi.format=vd.format;vi.inherits=vd.inherits;vi.swaggerParamRegExp=/\{([^/}]+)}/g;var i2=["get","post","put","delete","patch","options","head","trace"];function sc(e,t){if(e.url&&e.url.startsWith("/")){let r=n2.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}o(sc,"fixServers");function o2(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>sc(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=>sc(a,t)):i2.includes(s)&&i[s].servers&&i[s].servers.map(a=>sc(a,t))})})}))}o(o2,"fixOasRelativeServers");vi.fixOasRelativeServers=o2});var Zo=h(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.getDeepKeys=fn.toJSON=void 0;var s2=["function","symbol","undefined"],a2=["constructor","prototype","__proto__"],c2=Object.getPrototypeOf({});function u2(){let e={},t=this;for(let r of Sd(t))if(typeof r=="string"){let n=t[r],i=typeof n;s2.includes(i)||(e[r]=n)}return e}o(u2,"toJSON");fn.toJSON=u2;function Sd(e,t=[]){let r=[];for(;e&&e!==c2;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(a2))n.delete(i);return n}o(Sd,"getDeepKeys");fn.getDeepKeys=Sd});var ac=h(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.addInspectMethod=dn.format=void 0;var bd=require("util"),l2=Zo(),_d=bd.inspect.custom||Symbol.for("nodejs.util.inspect.custom");dn.format=bd.format;function p2(e){e[_d]=f2}o(p2,"addInspectMethod");dn.addInspectMethod=p2;function f2(){let e={},t=this;for(let r of l2.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[_d],e}o(f2,"inspect")});var $d=h(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.lazyJoinStacks=ht.joinStacks=ht.isWritableStack=ht.isLazyStack=void 0;var d2=/\r?\n/,m2=/\bono[ @]/;function h2(e){return!!(e&&e.configurable&&typeof e.get=="function")}o(h2,"isLazyStack");ht.isLazyStack=h2;function g2(e){return!!(!e||e.writable||typeof e.set=="function")}o(g2,"isWritableStack");ht.isWritableStack=g2;function Pd(e,t){let r=Ed(e.stack),n=t?t.stack:void 0;return r&&n?r+`
1
+ "use strict";var GP=Object.create;var yi=Object.defineProperty;var ZP=Object.getOwnPropertyDescriptor;var zP=Object.getOwnPropertyNames;var KP=Object.getPrototypeOf,QP=Object.prototype.hasOwnProperty;var o=(e,t)=>yi(e,"name",{value:t,configurable:!0});var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),WP=(e,t)=>{for(var r in t)yi(e,r,{get:t[r],enumerable:!0})},hd=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zP(t))!QP.call(e,i)&&i!==r&&yi(e,i,{get:()=>t[i],enumerable:!(n=ZP(t,i))||n.enumerable});return e};var Xe=(e,t,r)=>(r=e!=null?GP(KP(e)):{},hd(t||!e||!e.__esModule?yi(r,"default",{value:e,enumerable:!0}):r,e)),YP=e=>hd(yi({},"__esModule",{value:!0}),e);var Me=h((qe,yd)=>{"use strict";var Uo=/^win/.test(process.platform),JP=/\//g,XP=/^(\w{2,}):\/\//i,gd=yd.exports,e2=/~1/g,t2=/~0/g,ic=[/\?/g,"%3F",/\#/g,"%23"],oc=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];qe.parse=require("url").parse;qe.resolve=require("url").resolve;qe.cwd=o(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");qe.getProtocol=o(function(t){let r=XP.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");qe.getExtension=o(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");qe.getHash=o(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");qe.stripHash=o(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");qe.isHttp=o(function(t){let r=gd.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");qe.isFileSystemPath=o(function(t){if(process.browser)return!1;let r=gd.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");qe.fromFileSystemPath=o(function(t){Uo&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<ic.length;r+=2)t=t.replace(ic[r],ic[r+1]);return t},"fromFileSystemPath");qe.toFileSystemPath=o(function(t,r){t=decodeURI(t);for(let i=0;i<oc.length;i+=2)t=t.replace(oc[i],oc[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),Uo&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=Uo?t:"/"+t)),Uo&&!n&&(t=t.replace(JP,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");qe.safePointerToPath=o(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(e2,"/").replace(t2,"~"))},"safePointerToPath")});var Go=h(vi=>{"use strict";var vd=require("util"),r2=Me();vi.format=vd.format;vi.inherits=vd.inherits;vi.swaggerParamRegExp=/\{([^/}]+)}/g;var n2=["get","post","put","delete","patch","options","head","trace"];function sc(e,t){if(e.url&&e.url.startsWith("/")){let r=r2.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}o(sc,"fixServers");function i2(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>sc(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=>sc(a,t)):n2.includes(s)&&i[s].servers&&i[s].servers.map(a=>sc(a,t))})})}))}o(i2,"fixOasRelativeServers");vi.fixOasRelativeServers=i2});var Zo=h(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.getDeepKeys=fn.toJSON=void 0;var o2=["function","symbol","undefined"],s2=["constructor","prototype","__proto__"],a2=Object.getPrototypeOf({});function c2(){let e={},t=this;for(let r of Sd(t))if(typeof r=="string"){let n=t[r],i=typeof n;o2.includes(i)||(e[r]=n)}return e}o(c2,"toJSON");fn.toJSON=c2;function Sd(e,t=[]){let r=[];for(;e&&e!==a2;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(s2))n.delete(i);return n}o(Sd,"getDeepKeys");fn.getDeepKeys=Sd});var ac=h(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.addInspectMethod=dn.format=void 0;var bd=require("util"),u2=Zo(),_d=bd.inspect.custom||Symbol.for("nodejs.util.inspect.custom");dn.format=bd.format;function l2(e){e[_d]=p2}o(l2,"addInspectMethod");dn.addInspectMethod=l2;function p2(){let e={},t=this;for(let r of u2.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[_d],e}o(p2,"inspect")});var $d=h(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.lazyJoinStacks=ht.joinStacks=ht.isWritableStack=ht.isLazyStack=void 0;var f2=/\r?\n/,d2=/\bono[ @]/;function m2(e){return!!(e&&e.configurable&&typeof e.get=="function")}o(m2,"isLazyStack");ht.isLazyStack=m2;function h2(e){return!!(!e||e.writable||typeof e.set=="function")}o(h2,"isWritableStack");ht.isWritableStack=h2;function Pd(e,t){let r=Ed(e.stack),n=t?t.stack:void 0;return r&&n?r+`
2
2
 
3
- `+n:r||n}o(Pd,"joinStacks");ht.joinStacks=Pd;function y2(e,t,r){r?Object.defineProperty(t,"stack",{get:o(()=>{let n=e.get.apply(t);return Pd({stack:n},r)},"get"),enumerable:!1,configurable:!0}):v2(t,e)}o(y2,"lazyJoinStacks");ht.lazyJoinStacks=y2;function Ed(e){if(e){let t=e.split(d2),r;for(let n=0;n<t.length;n++){let i=t[n];if(m2.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(Ed,"popStack");function v2(e,t){Object.defineProperty(e,"stack",{get:o(()=>Ed(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}o(v2,"lazyPopStack")});var wd=h(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.extendError=void 0;var Od=ac(),zo=$d(),xd=Zo(),S2=["name","message","stack"];function b2(e,t,r){let n=e;return _2(n,t),t&&typeof t=="object"&&P2(n,t),n.toJSON=xd.toJSON,Od.addInspectMethod&&Od.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}o(b2,"extendError");Ko.extendError=b2;function _2(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");zo.isLazyStack(r)?zo.lazyJoinStacks(r,e,t):zo.isWritableStack(r)&&(e.stack=zo.joinStacks(e,t))}o(_2,"extendStack");function P2(e,t){let r=xd.getDeepKeys(t,S2),n=e,i=t;for(let s of r)if(n[s]===void 0)try{n[s]=i[s]}catch{}}o(P2,"mergeErrors")});var Ad=h(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.normalizeArgs=mn.normalizeOptions=void 0;var E2=ac();function $2(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?E2.format:typeof e.format=="function"?e.format:!1}}o($2,"normalizeOptions");mn.normalizeOptions=$2;function O2(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(O2,"normalizeArgs");mn.normalizeArgs=O2});var uc=h(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.Ono=void 0;var Qo=wd(),Id=Ad(),x2=Zo(),w2=cc;Wo.Ono=w2;function cc(e,t){t=Id.normalizeOptions(t);function r(...n){let{originalError:i,props:s,message:a}=Id.normalizeArgs(n,t),c=new e(a);return Qo.extendError(c,i,s)}return o(r,"ono"),r[Symbol.species]=e,r}o(cc,"Ono");cc.toJSON=o(function(t){return x2.toJSON.call(t)},"toJSON");cc.extend=o(function(t,r,n){return n||r instanceof Error?Qo.extendError(t,r,n):r?Qo.extendError(t,void 0,r):Qo.extendError(t)},"extend")});var Td=h(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.ono=void 0;var wr=uc(),A2=gt;Yo.ono=A2;gt.error=new wr.Ono(Error);gt.eval=new wr.Ono(EvalError);gt.range=new wr.Ono(RangeError);gt.reference=new wr.Ono(ReferenceError);gt.syntax=new wr.Ono(SyntaxError);gt.type=new wr.Ono(TypeError);gt.uri=new wr.Ono(URIError);var I2=gt;function gt(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(I2))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 gt.error.apply(void 0,e)}o(gt,"ono")});var Nd=h(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});var Nq=require("util")});var tt=h((et,hn)=>{"use strict";var T2=et&&et.__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]}),R2=et&&et.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&T2(t,e,r)};Object.defineProperty(et,"__esModule",{value:!0});et.ono=void 0;var Cd=Td();Object.defineProperty(et,"ono",{enumerable:!0,get:o(function(){return Cd.ono},"get")});var N2=uc();Object.defineProperty(et,"Ono",{enumerable:!0,get:o(function(){return N2.Ono},"get")});R2(Nd(),et);et.default=Cd.ono;typeof hn=="object"&&typeof hn.exports=="object"&&(hn.exports=Object.assign(hn.exports.default,hn.exports))});var _i=h(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.regexpCode=M.getEsmExportName=M.getProperty=M.safeStringify=M.stringify=M.strConcat=M.addCodeArg=M.str=M._=M.nil=M._Code=M.Name=M.IDENTIFIER=M._CodeOrName=void 0;var fc=class fc{};o(fc,"_CodeOrName");var Si=fc;M._CodeOrName=Si;M.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var dc=class dc extends Si{constructor(t){if(super(),!M.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};o(dc,"Name");var Ar=dc;M.Name=Ar;var mc=class mc extends Si{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof Ar&&(r[n.str]=(r[n.str]||0)+1),r),{})}};o(mc,"_Code");var Be=mc;M._Code=Be;M.nil=new Be("");function kd(e,...t){let r=[e[0]],n=0;for(;n<t.length;)pc(r,t[n]),r.push(e[++n]);return new Be(r)}o(kd,"_");M._=kd;var lc=new Be("+");function jd(e,...t){let r=[bi(e[0])],n=0;for(;n<t.length;)r.push(lc),pc(r,t[n]),r.push(lc,bi(e[++n]));return C2(r),new Be(r)}o(jd,"str");M.str=jd;function pc(e,t){t instanceof Be?e.push(...t._items):t instanceof Ar?e.push(t):e.push(q2(t))}o(pc,"addCodeArg");M.addCodeArg=pc;function C2(e){let t=1;for(;t<e.length-1;){if(e[t]===lc){let r=k2(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}o(C2,"optimize");function k2(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Ar||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 Ar))return`"${e}${t.slice(1)}`}o(k2,"mergeExprItems");function j2(e,t){return t.emptyStr()?e:e.emptyStr()?t:jd`${e}${t}`}o(j2,"strConcat");M.strConcat=j2;function q2(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:bi(Array.isArray(e)?e.join(","):e)}o(q2,"interpolate");function M2(e){return new Be(bi(e))}o(M2,"stringify");M.stringify=M2;function bi(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(bi,"safeStringify");M.safeStringify=bi;function D2(e){return typeof e=="string"&&M.IDENTIFIER.test(e)?new Be(`.${e}`):kd`[${e}]`}o(D2,"getProperty");M.getProperty=D2;function L2(e){if(typeof e=="string"&&M.IDENTIFIER.test(e))return new Be(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}o(L2,"getEsmExportName");M.getEsmExportName=L2;function F2(e){return new Be(e.toString())}o(F2,"regexpCode");M.regexpCode=F2});var _c=h(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.ValueScope=Ie.ValueScopeName=Ie.Scope=Ie.varKinds=Ie.UsedValueState=void 0;var Ae=_i(),yc=class yc extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};o(yc,"ValueError");var hc=yc,Jo;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Jo||(Ie.UsedValueState=Jo={}));Ie.varKinds={const:new Ae.Name("const"),let:new Ae.Name("let"),var:new Ae.Name("var")};var vc=class vc{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Ae.Name?t:this.name(t)}name(t){return new Ae.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(vc,"Scope");var Xo=vc;Ie.Scope=Xo;var Sc=class Sc extends Ae.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Ae._)`.${new Ae.Name(r)}[${n}]`}};o(Sc,"ValueScopeName");var es=Sc;Ie.ValueScopeName=es;var H2=(0,Ae._)`\n`,bc=class bc extends Xo{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?H2:Ae.nil}}get(){return this._scope}name(t){return new es(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,Ae._)`${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=Ae.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,Jo.Started);let f=r(l);if(f){let p=this.opts.es5?Ie.varKinds.var:Ie.varKinds.const;s=(0,Ae._)`${s}${p} ${l} = ${f};${this.opts._n}`}else if(f=i==null?void 0:i(l))s=(0,Ae._)`${s}${f}${this.opts._n}`;else throw new hc(l);u.set(l,Jo.Completed)})}return s}};o(bc,"ValueScope");var gc=bc;Ie.ValueScope=gc});var I=h(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.or=R.and=R.not=R.CodeGen=R.operators=R.varKinds=R.ValueScopeName=R.ValueScope=R.Scope=R.Name=R.regexpCode=R.stringify=R.getProperty=R.nil=R.strConcat=R.str=R._=void 0;var j=_i(),rt=_c(),Wt=_i();Object.defineProperty(R,"_",{enumerable:!0,get:o(function(){return Wt._},"get")});Object.defineProperty(R,"str",{enumerable:!0,get:o(function(){return Wt.str},"get")});Object.defineProperty(R,"strConcat",{enumerable:!0,get:o(function(){return Wt.strConcat},"get")});Object.defineProperty(R,"nil",{enumerable:!0,get:o(function(){return Wt.nil},"get")});Object.defineProperty(R,"getProperty",{enumerable:!0,get:o(function(){return Wt.getProperty},"get")});Object.defineProperty(R,"stringify",{enumerable:!0,get:o(function(){return Wt.stringify},"get")});Object.defineProperty(R,"regexpCode",{enumerable:!0,get:o(function(){return Wt.regexpCode},"get")});Object.defineProperty(R,"Name",{enumerable:!0,get:o(function(){return Wt.Name},"get")});var is=_c();Object.defineProperty(R,"Scope",{enumerable:!0,get:o(function(){return is.Scope},"get")});Object.defineProperty(R,"ValueScope",{enumerable:!0,get:o(function(){return is.ValueScope},"get")});Object.defineProperty(R,"ValueScopeName",{enumerable:!0,get:o(function(){return is.ValueScopeName},"get")});Object.defineProperty(R,"varKinds",{enumerable:!0,get:o(function(){return is.varKinds},"get")});R.operators={GT:new j._Code(">"),GTE:new j._Code(">="),LT:new j._Code("<"),LTE:new j._Code("<="),EQ:new j._Code("==="),NEQ:new j._Code("!=="),NOT:new j._Code("!"),OR:new j._Code("||"),AND:new j._Code("&&"),ADD:new j._Code("+")};var kc=class kc{optimizeNodes(){return this}optimizeNames(t,r){return this}};o(kc,"Node");var Mt=kc,jc=class jc extends Mt{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?rt.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=vn(this.rhs,t,r)),this}get names(){return this.rhs instanceof j._CodeOrName?this.rhs.names:{}}};o(jc,"Def");var Pc=jc,qc=class qc extends Mt{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 j.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=vn(this.rhs,t,r),this}get names(){let t=this.lhs instanceof j.Name?{}:{...this.lhs.names};return ns(t,this.rhs)}};o(qc,"Assign");var ts=qc,Mc=class Mc extends ts{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};o(Mc,"AssignOp");var Ec=Mc,Dc=class Dc extends Mt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};o(Dc,"Label");var $c=Dc,Lc=class Lc extends Mt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};o(Lc,"Break");var Oc=Lc,Fc=class Fc extends Mt{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};o(Fc,"Throw");var xc=Fc,Hc=class Hc extends Mt{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=vn(this.code,t,r),this}get names(){return this.code instanceof j._CodeOrName?this.code.names:{}}};o(Hc,"AnyCode");var wc=Hc,Vc=class Vc extends Mt{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)||(V2(t,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Rr(t,r.names),{})}};o(Vc,"ParentNode");var Pi=Vc,Bc=class Bc extends Pi{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};o(Bc,"BlockNode");var Dt=Bc,Uc=class Uc extends Pi{};o(Uc,"Root");var Ac=Uc,Gc=class Gc extends Dt{};o(Gc,"Else");var yn=Gc;yn.kind="else";var gn=class gn extends Dt{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 yn(n):n}if(r)return t===!1?r instanceof gn?r:r.nodes:this.nodes.length?this:new gn(qd(t),r instanceof gn?[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=vn(this.condition,t,r),this}get names(){let t=super.names;return ns(t,this.condition),this.else&&Rr(t,this.else.names),t}};o(gn,"If");var Ir=gn;Ir.kind="if";var Zc=class Zc extends Dt{};o(Zc,"For");var Tr=Zc;Tr.kind="for";var zc=class zc extends Tr{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=vn(this.iteration,t,r),this}get names(){return Rr(super.names,this.iteration.names)}};o(zc,"ForLoop");var Ic=zc,Kc=class Kc extends Tr{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?rt.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=ns(super.names,this.from);return ns(t,this.to)}};o(Kc,"ForRange");var Tc=Kc,Qc=class Qc extends Tr{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=vn(this.iterable,t,r),this}get names(){return Rr(super.names,this.iterable.names)}};o(Qc,"ForIter");var rs=Qc,Wc=class Wc extends Dt{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(Wc,"Func");var Ei=Wc;Ei.kind="func";var Yc=class Yc extends Pi{render(t){return"return "+super.render(t)}};o(Yc,"Return");var $i=Yc;$i.kind="return";var Jc=class Jc extends Dt{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&&Rr(t,this.catch.names),this.finally&&Rr(t,this.finally.names),t}};o(Jc,"Try");var Rc=Jc,Xc=class Xc extends Dt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};o(Xc,"Catch");var Oi=Xc;Oi.kind="catch";var eu=class eu extends Dt{render(t){return"finally"+super.render(t)}};o(eu,"Finally");var xi=eu;xi.kind="finally";var tu=class tu{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
6
- `:""},this._extScope=t,this._scope=new rt.Scope({parent:t}),this._nodes=[new Ac]}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 Pc(t,s,n)),s}const(t,r,n){return this._def(rt.varKinds.const,t,r,n)}let(t,r,n){return this._def(rt.varKinds.let,t,r,n)}var(t,r,n){return this._def(rt.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new ts(t,r,n))}add(t,r){return this._leafNode(new Ec(t,R.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==j.nil&&this._leafNode(new wc(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,j.addCodeArg)(r,i));return r.push("}"),new j._Code(r)}if(t,r,n){if(this._blockNode(new Ir(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 Ir(t))}else(){return this._elseNode(new yn)}endIf(){return this._endBlockNode(Ir,yn)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Ic(t),r)}forRange(t,r,n,i,s=this.opts.es5?rt.varKinds.var:rt.varKinds.let){let a=this._scope.toName(t);return this._for(new Tc(s,a,r,n),()=>i(a))}forOf(t,r,n,i=rt.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let a=r instanceof j.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,j._)`${a}.length`,c=>{this.var(s,(0,j._)`${a}[${c}]`),n(s)})}return this._for(new rs("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?rt.varKinds.var:rt.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,j._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new rs("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(Tr)}label(t){return this._leafNode(new $c(t))}break(t){return this._leafNode(new Oc(t))}return(t){let r=new $i;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode($i)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Rc;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new Oi(s),r(s)}return n&&(this._currNode=i.finally=new xi,this.code(n)),this._endBlockNode(Oi,xi)}throw(t){return this._leafNode(new xc(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=j.nil,n,i){return this._blockNode(new Ei(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Ei)}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 Ir))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(tu,"CodeGen");var Nc=tu;R.CodeGen=Nc;function Rr(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}o(Rr,"addNames");function ns(e,t){return t instanceof j._CodeOrName?Rr(e,t.names):e}o(ns,"addExprNames");function vn(e,t,r){if(e instanceof j.Name)return n(e);if(!i(e))return e;return new j._Code(e._items.reduce((s,a)=>(a instanceof j.Name&&(a=n(a)),a instanceof j._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 j._Code&&s._items.some(a=>a instanceof j.Name&&t[a.str]===1&&r[a.str]!==void 0)}}o(vn,"optimizeExpr");function V2(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}o(V2,"subtractNames");function qd(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,j._)`!${Cc(e)}`}o(qd,"not");R.not=qd;var B2=Md(R.operators.AND);function U2(...e){return e.reduce(B2)}o(U2,"and");R.and=U2;var G2=Md(R.operators.OR);function Z2(...e){return e.reduce(G2)}o(Z2,"or");R.or=Z2;function Md(e){return(t,r)=>t===j.nil?r:r===j.nil?t:(0,j._)`${Cc(t)} ${e} ${Cc(r)}`}o(Md,"mappend");function Cc(e){return e instanceof j.Name?e:(0,j._)`(${e})`}o(Cc,"par")});var k=h(C=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});C.checkStrictMode=C.getErrorPath=C.Type=C.useFunc=C.setEvaluated=C.evaluatedPropsToName=C.mergeEvaluated=C.eachItem=C.unescapeJsonPointer=C.escapeJsonPointer=C.escapeFragment=C.unescapeFragment=C.schemaRefOrVal=C.schemaHasRulesButRef=C.schemaHasRules=C.checkUnknownRules=C.alwaysValidSchema=C.toHash=void 0;var H=I(),z2=_i();function K2(e){let t={};for(let r of e)t[r]=!0;return t}o(K2,"toHash");C.toHash=K2;function Q2(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Fd(e,t),!Hd(t,e.self.RULES.all))}o(Q2,"alwaysValidSchema");C.alwaysValidSchema=Q2;function Fd(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]||Ud(e,`unknown keyword: "${s}"`)}o(Fd,"checkUnknownRules");C.checkUnknownRules=Fd;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");C.schemaHasRules=Hd;function W2(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}o(W2,"schemaHasRulesButRef");C.schemaHasRulesButRef=W2;function Y2({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,H._)`${r}`}return(0,H._)`${e}${t}${(0,H.getProperty)(n)}`}o(Y2,"schemaRefOrVal");C.schemaRefOrVal=Y2;function J2(e){return Vd(decodeURIComponent(e))}o(J2,"unescapeFragment");C.unescapeFragment=J2;function X2(e){return encodeURIComponent(nu(e))}o(X2,"escapeFragment");C.escapeFragment=X2;function nu(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}o(nu,"escapeJsonPointer");C.escapeJsonPointer=nu;function Vd(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(Vd,"unescapeJsonPointer");C.unescapeJsonPointer=Vd;function eE(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}o(eE,"eachItem");C.eachItem=eE;function Dd({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,c)=>{let u=a===void 0?s:a instanceof H.Name?(s instanceof H.Name?e(i,s,a):t(i,s,a),a):s instanceof H.Name?(t(i,a,s),s):r(s,a);return c===H.Name&&!(u instanceof H.Name)?n(i,u):u}}o(Dd,"makeMergeEvaluated");C.mergeEvaluated={props:Dd({mergeNames:o((e,t,r)=>e.if((0,H._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,H._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,H._)`${r} || {}`).code((0,H._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,H._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,H._)`${r} || {}`),iu(e,r,t))}),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:Bd}),items:Dd({mergeNames:o((e,t,r)=>e.if((0,H._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,H._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,H._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,H._)`${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,H._)`{}`);return t!==void 0&&iu(e,r,t),r}o(Bd,"evaluatedPropsToName");C.evaluatedPropsToName=Bd;function iu(e,t,r){Object.keys(r).forEach(n=>e.assign((0,H._)`${t}${(0,H.getProperty)(n)}`,!0))}o(iu,"setEvaluated");C.setEvaluated=iu;var Ld={};function tE(e,t){return e.scopeValue("func",{ref:t,code:Ld[t.code]||(Ld[t.code]=new z2._Code(t.code))})}o(tE,"useFunc");C.useFunc=tE;var ru;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(ru||(C.Type=ru={}));function rE(e,t,r){if(e instanceof H.Name){let n=t===ru.Num;return r?n?(0,H._)`"[" + ${e} + "]"`:(0,H._)`"['" + ${e} + "']"`:n?(0,H._)`"/" + ${e}`:(0,H._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,H.getProperty)(e).toString():"/"+nu(e)}o(rE,"getErrorPath");C.getErrorPath=rE;function Ud(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(Ud,"checkStrictMode");C.checkStrictMode=Ud});var Ue=h(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});var pe=I(),nE={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")};ou.default=nE});var wi=h(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.extendErrors=fe.resetErrorsCount=fe.reportExtraError=fe.reportError=fe.keyword$DataError=fe.keywordError=void 0;var q=I(),os=k(),Se=Ue();fe.keywordError={message:o(({keyword:e})=>(0,q.str)`must pass "${e}" keyword validation`,"message")};fe.keyword$DataError={message:o(({keyword:e,schemaType:t})=>t?(0,q.str)`"${e}" keyword must be ${t} ($data)`:(0,q.str)`"${e}" keyword is invalid ($data)`,"message")};function iE(e,t=fe.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:c}=i,u=zd(e,t,r);n??(a||c)?Gd(s,u):Zd(i,(0,q._)`[${u}]`)}o(iE,"reportError");fe.reportError=iE;function oE(e,t=fe.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,c=zd(e,t,r);Gd(i,c),s||a||Zd(n,Se.default.vErrors)}o(oE,"reportExtraError");fe.reportExtraError=oE;function sE(e,t){e.assign(Se.default.errors,t),e.if((0,q._)`${Se.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,q._)`${Se.default.vErrors}.length`,t),()=>e.assign(Se.default.vErrors,null)))}o(sE,"resetErrorsCount");fe.resetErrorsCount=sE;function aE({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,q._)`${Se.default.vErrors}[${c}]`),e.if((0,q._)`${a}.instancePath === undefined`,()=>e.assign((0,q._)`${a}.instancePath`,(0,q.strConcat)(Se.default.instancePath,s.errorPath))),e.assign((0,q._)`${a}.schemaPath`,(0,q.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,q._)`${a}.schema`,r),e.assign((0,q._)`${a}.data`,n))})}o(aE,"extendErrors");fe.extendErrors=aE;function Gd(e,t){let r=e.const("err",t);e.if((0,q._)`${Se.default.vErrors} === null`,()=>e.assign(Se.default.vErrors,(0,q._)`[${r}]`),(0,q._)`${Se.default.vErrors}.push(${r})`),e.code((0,q._)`${Se.default.errors}++`)}o(Gd,"addError");function Zd(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,q._)`new ${e.ValidationError}(${t})`):(r.assign((0,q._)`${n}.errors`,t),r.return(!1))}o(Zd,"returnErrors");var Nr={keyword:new q.Name("keyword"),schemaPath:new q.Name("schemaPath"),params:new q.Name("params"),propertyName:new q.Name("propertyName"),message:new q.Name("message"),schema:new q.Name("schema"),parentSchema:new q.Name("parentSchema")};function zd(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,q._)`{}`:cE(e,t,r)}o(zd,"errorObjectCode");function cE(e,t,r={}){let{gen:n,it:i}=e,s=[uE(i,r),lE(e,r)];return pE(e,t,s),n.object(...s)}o(cE,"errorObject");function uE({errorPath:e},{instancePath:t}){let r=t?(0,q.str)`${e}${(0,os.getErrorPath)(t,os.Type.Str)}`:e;return[Se.default.instancePath,(0,q.strConcat)(Se.default.instancePath,r)]}o(uE,"errorInstancePath");function lE({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,q.str)`${t}/${e}`;return r&&(i=(0,q.str)`${i}${(0,os.getErrorPath)(r,os.Type.Str)}`),[Nr.schemaPath,i]}o(lE,"errorSchemaPath");function pE(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([Nr.keyword,i],[Nr.params,typeof t=="function"?t(e):t||(0,q._)`{}`]),u.messages&&n.push([Nr.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([Nr.schema,a],[Nr.parentSchema,(0,q._)`${f}${p}`],[Se.default.data,s]),l&&n.push([Nr.propertyName,l])}o(pE,"extraErrorProps")});var Qd=h(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.boolOrEmptySchema=Sn.topBoolOrEmptySchema=void 0;var fE=wi(),dE=I(),mE=Ue(),hE={message:"boolean schema is false"};function gE(e){let{gen:t,schema:r,validateName:n}=e;r===!1?Kd(e,!1):typeof r=="object"&&r.$async===!0?t.return(mE.default.data):(t.assign((0,dE._)`${n}.errors`,null),t.return(!0))}o(gE,"topBoolOrEmptySchema");Sn.topBoolOrEmptySchema=gE;function yE(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Kd(e)):r.var(t,!0)}o(yE,"boolOrEmptySchema");Sn.boolOrEmptySchema=yE;function Kd(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,fE.reportError)(i,hE,void 0,t)}o(Kd,"falseSchemaError")});var su=h(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.getRules=bn.isJSONType=void 0;var vE=["string","number","integer","boolean","null","object","array"],SE=new Set(vE);function bE(e){return typeof e=="string"&&SE.has(e)}o(bE,"isJSONType");bn.isJSONType=bE;function _E(){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(_E,"getRules");bn.getRules=_E});var au=h(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.shouldUseRule=Yt.shouldUseGroup=Yt.schemaHasRulesForType=void 0;function PE({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Wd(e,n)}o(PE,"schemaHasRulesForType");Yt.schemaHasRulesForType=PE;function Wd(e,t){return t.rules.some(r=>Yd(e,r))}o(Wd,"shouldUseGroup");Yt.shouldUseGroup=Wd;function Yd(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(Yd,"shouldUseRule");Yt.shouldUseRule=Yd});var Ai=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 EE=su(),$E=au(),OE=wi(),T=I(),Jd=k(),_n;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(_n||(de.DataType=_n={}));function xE(e){let t=Xd(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(xE,"getSchemaTypes");de.getSchemaTypes=xE;function Xd(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(EE.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}o(Xd,"getJSONTypes");de.getJSONTypes=Xd;function wE(e,t){let{gen:r,data:n,opts:i}=e,s=AE(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,$E.schemaHasRulesForType)(e,t[0]));if(a){let c=uu(t,n,i.strictNumbers,_n.Wrong);r.if(c,()=>{s.length?IE(e,t,s):lu(e)})}return a}o(wE,"coerceAndCheckDataType");de.coerceAndCheckDataType=wE;var em=new Set(["string","number","integer","boolean","null"]);function AE(e,t){return t?e.filter(r=>em.has(r)||t==="array"&&r==="array"):[]}o(AE,"coerceToTypes");function IE(e,t,r){let{gen:n,data:i,opts:s}=e,a=n.let("dataType",(0,T._)`typeof ${i}`),c=n.let("coerced",(0,T._)`undefined`);s.coerceTypes==="array"&&n.if((0,T._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,T._)`${i}[0]`).assign(a,(0,T._)`typeof ${i}`).if(uu(t,i,s.strictNumbers),()=>n.assign(c,i))),n.if((0,T._)`${c} !== undefined`);for(let l of r)(em.has(l)||l==="array"&&s.coerceTypes==="array")&&u(l);n.else(),lu(e),n.endIf(),n.if((0,T._)`${c} !== undefined`,()=>{n.assign(i,c),TE(e,c)});function u(l){switch(l){case"string":n.elseIf((0,T._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,T._)`"" + ${i}`).elseIf((0,T._)`${i} === null`).assign(c,(0,T._)`""`);return;case"number":n.elseIf((0,T._)`${a} == "boolean" || ${i} === null
3
+ `+n:r||n}o(Pd,"joinStacks");ht.joinStacks=Pd;function g2(e,t,r){r?Object.defineProperty(t,"stack",{get:o(()=>{let n=e.get.apply(t);return Pd({stack:n},r)},"get"),enumerable:!1,configurable:!0}):y2(t,e)}o(g2,"lazyJoinStacks");ht.lazyJoinStacks=g2;function Ed(e){if(e){let t=e.split(f2),r;for(let n=0;n<t.length;n++){let i=t[n];if(d2.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(Ed,"popStack");function y2(e,t){Object.defineProperty(e,"stack",{get:o(()=>Ed(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}o(y2,"lazyPopStack")});var wd=h(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.extendError=void 0;var Od=ac(),zo=$d(),xd=Zo(),v2=["name","message","stack"];function S2(e,t,r){let n=e;return b2(n,t),t&&typeof t=="object"&&_2(n,t),n.toJSON=xd.toJSON,Od.addInspectMethod&&Od.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}o(S2,"extendError");Ko.extendError=S2;function b2(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");zo.isLazyStack(r)?zo.lazyJoinStacks(r,e,t):zo.isWritableStack(r)&&(e.stack=zo.joinStacks(e,t))}o(b2,"extendStack");function _2(e,t){let r=xd.getDeepKeys(t,v2),n=e,i=t;for(let s of r)if(n[s]===void 0)try{n[s]=i[s]}catch{}}o(_2,"mergeErrors")});var Ad=h(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.normalizeArgs=mn.normalizeOptions=void 0;var P2=ac();function E2(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?P2.format:typeof e.format=="function"?e.format:!1}}o(E2,"normalizeOptions");mn.normalizeOptions=E2;function $2(e,t){let r,n,i,s="";return typeof e[0]=="string"?i=e:typeof e[1]=="string"?(e[0]instanceof Error?r=e[0]:n=e[0],i=e.slice(1)):(r=e[0],n=e[1],i=e.slice(2)),i.length>0&&(t.format?s=t.format.apply(void 0,i):s=i.join(" ")),t.concatMessages&&r&&r.message&&(s+=(s?`
5
+ `:"")+r.message),{originalError:r,props:n,message:s}}o($2,"normalizeArgs");mn.normalizeArgs=$2});var uc=h(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.Ono=void 0;var Qo=wd(),Id=Ad(),O2=Zo(),x2=cc;Wo.Ono=x2;function cc(e,t){t=Id.normalizeOptions(t);function r(...n){let{originalError:i,props:s,message:a}=Id.normalizeArgs(n,t),c=new e(a);return Qo.extendError(c,i,s)}return o(r,"ono"),r[Symbol.species]=e,r}o(cc,"Ono");cc.toJSON=o(function(t){return O2.toJSON.call(t)},"toJSON");cc.extend=o(function(t,r,n){return n||r instanceof Error?Qo.extendError(t,r,n):r?Qo.extendError(t,void 0,r):Qo.extendError(t)},"extend")});var Td=h(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.ono=void 0;var wr=uc(),w2=gt;Yo.ono=w2;gt.error=new wr.Ono(Error);gt.eval=new wr.Ono(EvalError);gt.range=new wr.Ono(RangeError);gt.reference=new wr.Ono(ReferenceError);gt.syntax=new wr.Ono(SyntaxError);gt.type=new wr.Ono(TypeError);gt.uri=new wr.Ono(URIError);var A2=gt;function gt(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(A2))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 gt.error.apply(void 0,e)}o(gt,"ono")});var Nd=h(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});var Rq=require("util")});var tt=h((et,hn)=>{"use strict";var I2=et&&et.__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]}),T2=et&&et.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&I2(t,e,r)};Object.defineProperty(et,"__esModule",{value:!0});et.ono=void 0;var Cd=Td();Object.defineProperty(et,"ono",{enumerable:!0,get:o(function(){return Cd.ono},"get")});var R2=uc();Object.defineProperty(et,"Ono",{enumerable:!0,get:o(function(){return R2.Ono},"get")});T2(Nd(),et);et.default=Cd.ono;typeof hn=="object"&&typeof hn.exports=="object"&&(hn.exports=Object.assign(hn.exports.default,hn.exports))});var _i=h(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.regexpCode=M.getEsmExportName=M.getProperty=M.safeStringify=M.stringify=M.strConcat=M.addCodeArg=M.str=M._=M.nil=M._Code=M.Name=M.IDENTIFIER=M._CodeOrName=void 0;var fc=class fc{};o(fc,"_CodeOrName");var Si=fc;M._CodeOrName=Si;M.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var dc=class dc extends Si{constructor(t){if(super(),!M.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};o(dc,"Name");var Ar=dc;M.Name=Ar;var mc=class mc extends Si{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof Ar&&(r[n.str]=(r[n.str]||0)+1),r),{})}};o(mc,"_Code");var Be=mc;M._Code=Be;M.nil=new Be("");function kd(e,...t){let r=[e[0]],n=0;for(;n<t.length;)pc(r,t[n]),r.push(e[++n]);return new Be(r)}o(kd,"_");M._=kd;var lc=new Be("+");function jd(e,...t){let r=[bi(e[0])],n=0;for(;n<t.length;)r.push(lc),pc(r,t[n]),r.push(lc,bi(e[++n]));return N2(r),new Be(r)}o(jd,"str");M.str=jd;function pc(e,t){t instanceof Be?e.push(...t._items):t instanceof Ar?e.push(t):e.push(j2(t))}o(pc,"addCodeArg");M.addCodeArg=pc;function N2(e){let t=1;for(;t<e.length-1;){if(e[t]===lc){let r=C2(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}o(N2,"optimize");function C2(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Ar||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 Ar))return`"${e}${t.slice(1)}`}o(C2,"mergeExprItems");function k2(e,t){return t.emptyStr()?e:e.emptyStr()?t:jd`${e}${t}`}o(k2,"strConcat");M.strConcat=k2;function j2(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:bi(Array.isArray(e)?e.join(","):e)}o(j2,"interpolate");function q2(e){return new Be(bi(e))}o(q2,"stringify");M.stringify=q2;function bi(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(bi,"safeStringify");M.safeStringify=bi;function M2(e){return typeof e=="string"&&M.IDENTIFIER.test(e)?new Be(`.${e}`):kd`[${e}]`}o(M2,"getProperty");M.getProperty=M2;function D2(e){if(typeof e=="string"&&M.IDENTIFIER.test(e))return new Be(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}o(D2,"getEsmExportName");M.getEsmExportName=D2;function L2(e){return new Be(e.toString())}o(L2,"regexpCode");M.regexpCode=L2});var _c=h(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.ValueScope=Ie.ValueScopeName=Ie.Scope=Ie.varKinds=Ie.UsedValueState=void 0;var Ae=_i(),yc=class yc extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};o(yc,"ValueError");var hc=yc,Jo;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Jo||(Ie.UsedValueState=Jo={}));Ie.varKinds={const:new Ae.Name("const"),let:new Ae.Name("let"),var:new Ae.Name("var")};var vc=class vc{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Ae.Name?t:this.name(t)}name(t){return new Ae.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(vc,"Scope");var Xo=vc;Ie.Scope=Xo;var Sc=class Sc extends Ae.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Ae._)`.${new Ae.Name(r)}[${n}]`}};o(Sc,"ValueScopeName");var es=Sc;Ie.ValueScopeName=es;var F2=(0,Ae._)`\n`,bc=class bc extends Xo{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?F2:Ae.nil}}get(){return this._scope}name(t){return new es(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,Ae._)`${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=Ae.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,Jo.Started);let f=r(l);if(f){let p=this.opts.es5?Ie.varKinds.var:Ie.varKinds.const;s=(0,Ae._)`${s}${p} ${l} = ${f};${this.opts._n}`}else if(f=i==null?void 0:i(l))s=(0,Ae._)`${s}${f}${this.opts._n}`;else throw new hc(l);u.set(l,Jo.Completed)})}return s}};o(bc,"ValueScope");var gc=bc;Ie.ValueScope=gc});var I=h(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.or=R.and=R.not=R.CodeGen=R.operators=R.varKinds=R.ValueScopeName=R.ValueScope=R.Scope=R.Name=R.regexpCode=R.stringify=R.getProperty=R.nil=R.strConcat=R.str=R._=void 0;var j=_i(),rt=_c(),Wt=_i();Object.defineProperty(R,"_",{enumerable:!0,get:o(function(){return Wt._},"get")});Object.defineProperty(R,"str",{enumerable:!0,get:o(function(){return Wt.str},"get")});Object.defineProperty(R,"strConcat",{enumerable:!0,get:o(function(){return Wt.strConcat},"get")});Object.defineProperty(R,"nil",{enumerable:!0,get:o(function(){return Wt.nil},"get")});Object.defineProperty(R,"getProperty",{enumerable:!0,get:o(function(){return Wt.getProperty},"get")});Object.defineProperty(R,"stringify",{enumerable:!0,get:o(function(){return Wt.stringify},"get")});Object.defineProperty(R,"regexpCode",{enumerable:!0,get:o(function(){return Wt.regexpCode},"get")});Object.defineProperty(R,"Name",{enumerable:!0,get:o(function(){return Wt.Name},"get")});var is=_c();Object.defineProperty(R,"Scope",{enumerable:!0,get:o(function(){return is.Scope},"get")});Object.defineProperty(R,"ValueScope",{enumerable:!0,get:o(function(){return is.ValueScope},"get")});Object.defineProperty(R,"ValueScopeName",{enumerable:!0,get:o(function(){return is.ValueScopeName},"get")});Object.defineProperty(R,"varKinds",{enumerable:!0,get:o(function(){return is.varKinds},"get")});R.operators={GT:new j._Code(">"),GTE:new j._Code(">="),LT:new j._Code("<"),LTE:new j._Code("<="),EQ:new j._Code("==="),NEQ:new j._Code("!=="),NOT:new j._Code("!"),OR:new j._Code("||"),AND:new j._Code("&&"),ADD:new j._Code("+")};var kc=class kc{optimizeNodes(){return this}optimizeNames(t,r){return this}};o(kc,"Node");var Mt=kc,jc=class jc extends Mt{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?rt.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=vn(this.rhs,t,r)),this}get names(){return this.rhs instanceof j._CodeOrName?this.rhs.names:{}}};o(jc,"Def");var Pc=jc,qc=class qc extends Mt{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 j.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=vn(this.rhs,t,r),this}get names(){let t=this.lhs instanceof j.Name?{}:{...this.lhs.names};return ns(t,this.rhs)}};o(qc,"Assign");var ts=qc,Mc=class Mc extends ts{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};o(Mc,"AssignOp");var Ec=Mc,Dc=class Dc extends Mt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};o(Dc,"Label");var $c=Dc,Lc=class Lc extends Mt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};o(Lc,"Break");var Oc=Lc,Fc=class Fc extends Mt{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};o(Fc,"Throw");var xc=Fc,Hc=class Hc extends Mt{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=vn(this.code,t,r),this}get names(){return this.code instanceof j._CodeOrName?this.code.names:{}}};o(Hc,"AnyCode");var wc=Hc,Vc=class Vc extends Mt{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)||(H2(t,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Rr(t,r.names),{})}};o(Vc,"ParentNode");var Pi=Vc,Bc=class Bc extends Pi{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};o(Bc,"BlockNode");var Dt=Bc,Uc=class Uc extends Pi{};o(Uc,"Root");var Ac=Uc,Gc=class Gc extends Dt{};o(Gc,"Else");var yn=Gc;yn.kind="else";var gn=class gn extends Dt{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 yn(n):n}if(r)return t===!1?r instanceof gn?r:r.nodes:this.nodes.length?this:new gn(qd(t),r instanceof gn?[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=vn(this.condition,t,r),this}get names(){let t=super.names;return ns(t,this.condition),this.else&&Rr(t,this.else.names),t}};o(gn,"If");var Ir=gn;Ir.kind="if";var Zc=class Zc extends Dt{};o(Zc,"For");var Tr=Zc;Tr.kind="for";var zc=class zc extends Tr{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=vn(this.iteration,t,r),this}get names(){return Rr(super.names,this.iteration.names)}};o(zc,"ForLoop");var Ic=zc,Kc=class Kc extends Tr{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?rt.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=ns(super.names,this.from);return ns(t,this.to)}};o(Kc,"ForRange");var Tc=Kc,Qc=class Qc extends Tr{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=vn(this.iterable,t,r),this}get names(){return Rr(super.names,this.iterable.names)}};o(Qc,"ForIter");var rs=Qc,Wc=class Wc extends Dt{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(Wc,"Func");var Ei=Wc;Ei.kind="func";var Yc=class Yc extends Pi{render(t){return"return "+super.render(t)}};o(Yc,"Return");var $i=Yc;$i.kind="return";var Jc=class Jc extends Dt{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&&Rr(t,this.catch.names),this.finally&&Rr(t,this.finally.names),t}};o(Jc,"Try");var Rc=Jc,Xc=class Xc extends Dt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};o(Xc,"Catch");var Oi=Xc;Oi.kind="catch";var eu=class eu extends Dt{render(t){return"finally"+super.render(t)}};o(eu,"Finally");var xi=eu;xi.kind="finally";var tu=class tu{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
6
+ `:""},this._extScope=t,this._scope=new rt.Scope({parent:t}),this._nodes=[new Ac]}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 Pc(t,s,n)),s}const(t,r,n){return this._def(rt.varKinds.const,t,r,n)}let(t,r,n){return this._def(rt.varKinds.let,t,r,n)}var(t,r,n){return this._def(rt.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new ts(t,r,n))}add(t,r){return this._leafNode(new Ec(t,R.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==j.nil&&this._leafNode(new wc(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,j.addCodeArg)(r,i));return r.push("}"),new j._Code(r)}if(t,r,n){if(this._blockNode(new Ir(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 Ir(t))}else(){return this._elseNode(new yn)}endIf(){return this._endBlockNode(Ir,yn)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Ic(t),r)}forRange(t,r,n,i,s=this.opts.es5?rt.varKinds.var:rt.varKinds.let){let a=this._scope.toName(t);return this._for(new Tc(s,a,r,n),()=>i(a))}forOf(t,r,n,i=rt.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let a=r instanceof j.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,j._)`${a}.length`,c=>{this.var(s,(0,j._)`${a}[${c}]`),n(s)})}return this._for(new rs("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?rt.varKinds.var:rt.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,j._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new rs("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(Tr)}label(t){return this._leafNode(new $c(t))}break(t){return this._leafNode(new Oc(t))}return(t){let r=new $i;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode($i)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Rc;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new Oi(s),r(s)}return n&&(this._currNode=i.finally=new xi,this.code(n)),this._endBlockNode(Oi,xi)}throw(t){return this._leafNode(new xc(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=j.nil,n,i){return this._blockNode(new Ei(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Ei)}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 Ir))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(tu,"CodeGen");var Nc=tu;R.CodeGen=Nc;function Rr(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}o(Rr,"addNames");function ns(e,t){return t instanceof j._CodeOrName?Rr(e,t.names):e}o(ns,"addExprNames");function vn(e,t,r){if(e instanceof j.Name)return n(e);if(!i(e))return e;return new j._Code(e._items.reduce((s,a)=>(a instanceof j.Name&&(a=n(a)),a instanceof j._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 j._Code&&s._items.some(a=>a instanceof j.Name&&t[a.str]===1&&r[a.str]!==void 0)}}o(vn,"optimizeExpr");function H2(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}o(H2,"subtractNames");function qd(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,j._)`!${Cc(e)}`}o(qd,"not");R.not=qd;var V2=Md(R.operators.AND);function B2(...e){return e.reduce(V2)}o(B2,"and");R.and=B2;var U2=Md(R.operators.OR);function G2(...e){return e.reduce(U2)}o(G2,"or");R.or=G2;function Md(e){return(t,r)=>t===j.nil?r:r===j.nil?t:(0,j._)`${Cc(t)} ${e} ${Cc(r)}`}o(Md,"mappend");function Cc(e){return e instanceof j.Name?e:(0,j._)`(${e})`}o(Cc,"par")});var k=h(C=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});C.checkStrictMode=C.getErrorPath=C.Type=C.useFunc=C.setEvaluated=C.evaluatedPropsToName=C.mergeEvaluated=C.eachItem=C.unescapeJsonPointer=C.escapeJsonPointer=C.escapeFragment=C.unescapeFragment=C.schemaRefOrVal=C.schemaHasRulesButRef=C.schemaHasRules=C.checkUnknownRules=C.alwaysValidSchema=C.toHash=void 0;var H=I(),Z2=_i();function z2(e){let t={};for(let r of e)t[r]=!0;return t}o(z2,"toHash");C.toHash=z2;function K2(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Fd(e,t),!Hd(t,e.self.RULES.all))}o(K2,"alwaysValidSchema");C.alwaysValidSchema=K2;function Fd(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]||Ud(e,`unknown keyword: "${s}"`)}o(Fd,"checkUnknownRules");C.checkUnknownRules=Fd;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");C.schemaHasRules=Hd;function Q2(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}o(Q2,"schemaHasRulesButRef");C.schemaHasRulesButRef=Q2;function W2({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,H._)`${r}`}return(0,H._)`${e}${t}${(0,H.getProperty)(n)}`}o(W2,"schemaRefOrVal");C.schemaRefOrVal=W2;function Y2(e){return Vd(decodeURIComponent(e))}o(Y2,"unescapeFragment");C.unescapeFragment=Y2;function J2(e){return encodeURIComponent(nu(e))}o(J2,"escapeFragment");C.escapeFragment=J2;function nu(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}o(nu,"escapeJsonPointer");C.escapeJsonPointer=nu;function Vd(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(Vd,"unescapeJsonPointer");C.unescapeJsonPointer=Vd;function X2(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}o(X2,"eachItem");C.eachItem=X2;function Dd({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,c)=>{let u=a===void 0?s:a instanceof H.Name?(s instanceof H.Name?e(i,s,a):t(i,s,a),a):s instanceof H.Name?(t(i,a,s),s):r(s,a);return c===H.Name&&!(u instanceof H.Name)?n(i,u):u}}o(Dd,"makeMergeEvaluated");C.mergeEvaluated={props:Dd({mergeNames:o((e,t,r)=>e.if((0,H._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,H._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,H._)`${r} || {}`).code((0,H._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,H._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,H._)`${r} || {}`),iu(e,r,t))}),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:Bd}),items:Dd({mergeNames:o((e,t,r)=>e.if((0,H._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,H._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,H._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,H._)`${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,H._)`{}`);return t!==void 0&&iu(e,r,t),r}o(Bd,"evaluatedPropsToName");C.evaluatedPropsToName=Bd;function iu(e,t,r){Object.keys(r).forEach(n=>e.assign((0,H._)`${t}${(0,H.getProperty)(n)}`,!0))}o(iu,"setEvaluated");C.setEvaluated=iu;var Ld={};function eE(e,t){return e.scopeValue("func",{ref:t,code:Ld[t.code]||(Ld[t.code]=new Z2._Code(t.code))})}o(eE,"useFunc");C.useFunc=eE;var ru;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(ru||(C.Type=ru={}));function tE(e,t,r){if(e instanceof H.Name){let n=t===ru.Num;return r?n?(0,H._)`"[" + ${e} + "]"`:(0,H._)`"['" + ${e} + "']"`:n?(0,H._)`"/" + ${e}`:(0,H._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,H.getProperty)(e).toString():"/"+nu(e)}o(tE,"getErrorPath");C.getErrorPath=tE;function Ud(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(Ud,"checkStrictMode");C.checkStrictMode=Ud});var Ue=h(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});var fe=I(),rE={data:new fe.Name("data"),valCxt:new fe.Name("valCxt"),instancePath:new fe.Name("instancePath"),parentData:new fe.Name("parentData"),parentDataProperty:new fe.Name("parentDataProperty"),rootData:new fe.Name("rootData"),dynamicAnchors:new fe.Name("dynamicAnchors"),vErrors:new fe.Name("vErrors"),errors:new fe.Name("errors"),this:new fe.Name("this"),self:new fe.Name("self"),scope:new fe.Name("scope"),json:new fe.Name("json"),jsonPos:new fe.Name("jsonPos"),jsonLen:new fe.Name("jsonLen"),jsonPart:new fe.Name("jsonPart")};ou.default=rE});var wi=h(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.extendErrors=de.resetErrorsCount=de.reportExtraError=de.reportError=de.keyword$DataError=de.keywordError=void 0;var q=I(),os=k(),be=Ue();de.keywordError={message:o(({keyword:e})=>(0,q.str)`must pass "${e}" keyword validation`,"message")};de.keyword$DataError={message:o(({keyword:e,schemaType:t})=>t?(0,q.str)`"${e}" keyword must be ${t} ($data)`:(0,q.str)`"${e}" keyword is invalid ($data)`,"message")};function nE(e,t=de.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:c}=i,u=zd(e,t,r);n??(a||c)?Gd(s,u):Zd(i,(0,q._)`[${u}]`)}o(nE,"reportError");de.reportError=nE;function iE(e,t=de.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,c=zd(e,t,r);Gd(i,c),s||a||Zd(n,be.default.vErrors)}o(iE,"reportExtraError");de.reportExtraError=iE;function oE(e,t){e.assign(be.default.errors,t),e.if((0,q._)`${be.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,q._)`${be.default.vErrors}.length`,t),()=>e.assign(be.default.vErrors,null)))}o(oE,"resetErrorsCount");de.resetErrorsCount=oE;function sE({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,be.default.errors,c=>{e.const(a,(0,q._)`${be.default.vErrors}[${c}]`),e.if((0,q._)`${a}.instancePath === undefined`,()=>e.assign((0,q._)`${a}.instancePath`,(0,q.strConcat)(be.default.instancePath,s.errorPath))),e.assign((0,q._)`${a}.schemaPath`,(0,q.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,q._)`${a}.schema`,r),e.assign((0,q._)`${a}.data`,n))})}o(sE,"extendErrors");de.extendErrors=sE;function Gd(e,t){let r=e.const("err",t);e.if((0,q._)`${be.default.vErrors} === null`,()=>e.assign(be.default.vErrors,(0,q._)`[${r}]`),(0,q._)`${be.default.vErrors}.push(${r})`),e.code((0,q._)`${be.default.errors}++`)}o(Gd,"addError");function Zd(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,q._)`new ${e.ValidationError}(${t})`):(r.assign((0,q._)`${n}.errors`,t),r.return(!1))}o(Zd,"returnErrors");var Nr={keyword:new q.Name("keyword"),schemaPath:new q.Name("schemaPath"),params:new q.Name("params"),propertyName:new q.Name("propertyName"),message:new q.Name("message"),schema:new q.Name("schema"),parentSchema:new q.Name("parentSchema")};function zd(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,q._)`{}`:aE(e,t,r)}o(zd,"errorObjectCode");function aE(e,t,r={}){let{gen:n,it:i}=e,s=[cE(i,r),uE(e,r)];return lE(e,t,s),n.object(...s)}o(aE,"errorObject");function cE({errorPath:e},{instancePath:t}){let r=t?(0,q.str)`${e}${(0,os.getErrorPath)(t,os.Type.Str)}`:e;return[be.default.instancePath,(0,q.strConcat)(be.default.instancePath,r)]}o(cE,"errorInstancePath");function uE({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,q.str)`${t}/${e}`;return r&&(i=(0,q.str)`${i}${(0,os.getErrorPath)(r,os.Type.Str)}`),[Nr.schemaPath,i]}o(uE,"errorSchemaPath");function lE(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([Nr.keyword,i],[Nr.params,typeof t=="function"?t(e):t||(0,q._)`{}`]),u.messages&&n.push([Nr.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([Nr.schema,a],[Nr.parentSchema,(0,q._)`${f}${p}`],[be.default.data,s]),l&&n.push([Nr.propertyName,l])}o(lE,"extraErrorProps")});var Qd=h(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.boolOrEmptySchema=Sn.topBoolOrEmptySchema=void 0;var pE=wi(),fE=I(),dE=Ue(),mE={message:"boolean schema is false"};function hE(e){let{gen:t,schema:r,validateName:n}=e;r===!1?Kd(e,!1):typeof r=="object"&&r.$async===!0?t.return(dE.default.data):(t.assign((0,fE._)`${n}.errors`,null),t.return(!0))}o(hE,"topBoolOrEmptySchema");Sn.topBoolOrEmptySchema=hE;function gE(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Kd(e)):r.var(t,!0)}o(gE,"boolOrEmptySchema");Sn.boolOrEmptySchema=gE;function Kd(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,pE.reportError)(i,mE,void 0,t)}o(Kd,"falseSchemaError")});var su=h(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.getRules=bn.isJSONType=void 0;var yE=["string","number","integer","boolean","null","object","array"],vE=new Set(yE);function SE(e){return typeof e=="string"&&vE.has(e)}o(SE,"isJSONType");bn.isJSONType=SE;function bE(){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(bE,"getRules");bn.getRules=bE});var au=h(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.shouldUseRule=Yt.shouldUseGroup=Yt.schemaHasRulesForType=void 0;function _E({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Wd(e,n)}o(_E,"schemaHasRulesForType");Yt.schemaHasRulesForType=_E;function Wd(e,t){return t.rules.some(r=>Yd(e,r))}o(Wd,"shouldUseGroup");Yt.shouldUseGroup=Wd;function Yd(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(Yd,"shouldUseRule");Yt.shouldUseRule=Yd});var Ai=h(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.reportTypeError=me.checkDataTypes=me.checkDataType=me.coerceAndCheckDataType=me.getJSONTypes=me.getSchemaTypes=me.DataType=void 0;var PE=su(),EE=au(),$E=wi(),T=I(),Jd=k(),_n;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(_n||(me.DataType=_n={}));function OE(e){let t=Xd(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(OE,"getSchemaTypes");me.getSchemaTypes=OE;function Xd(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(PE.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}o(Xd,"getJSONTypes");me.getJSONTypes=Xd;function xE(e,t){let{gen:r,data:n,opts:i}=e,s=wE(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,EE.schemaHasRulesForType)(e,t[0]));if(a){let c=uu(t,n,i.strictNumbers,_n.Wrong);r.if(c,()=>{s.length?AE(e,t,s):lu(e)})}return a}o(xE,"coerceAndCheckDataType");me.coerceAndCheckDataType=xE;var em=new Set(["string","number","integer","boolean","null"]);function wE(e,t){return t?e.filter(r=>em.has(r)||t==="array"&&r==="array"):[]}o(wE,"coerceToTypes");function AE(e,t,r){let{gen:n,data:i,opts:s}=e,a=n.let("dataType",(0,T._)`typeof ${i}`),c=n.let("coerced",(0,T._)`undefined`);s.coerceTypes==="array"&&n.if((0,T._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,T._)`${i}[0]`).assign(a,(0,T._)`typeof ${i}`).if(uu(t,i,s.strictNumbers),()=>n.assign(c,i))),n.if((0,T._)`${c} !== undefined`);for(let l of r)(em.has(l)||l==="array"&&s.coerceTypes==="array")&&u(l);n.else(),lu(e),n.endIf(),n.if((0,T._)`${c} !== undefined`,()=>{n.assign(i,c),IE(e,c)});function u(l){switch(l){case"string":n.elseIf((0,T._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,T._)`"" + ${i}`).elseIf((0,T._)`${i} === null`).assign(c,(0,T._)`""`);return;case"number":n.elseIf((0,T._)`${a} == "boolean" || ${i} === null
7
7
  || (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,(0,T._)`+${i}`);return;case"integer":n.elseIf((0,T._)`${a} === "boolean" || ${i} === null
8
8
  || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,(0,T._)`+${i}`);return;case"boolean":n.elseIf((0,T._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf((0,T._)`${i} === "true" || ${i} === 1`).assign(c,!0);return;case"null":n.elseIf((0,T._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(c,null);return;case"array":n.elseIf((0,T._)`${a} === "string" || ${a} === "number"
9
- || ${a} === "boolean" || ${i} === null`).assign(c,(0,T._)`[${i}]`)}}o(u,"coerceSpecificType")}o(IE,"coerceData");function TE({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,T._)`${t} !== undefined`,()=>e.assign((0,T._)`${t}[${r}]`,n))}o(TE,"assignParentData");function cu(e,t,r,n=_n.Correct){let i=n===_n.Correct?T.operators.EQ:T.operators.NEQ,s;switch(e){case"null":return(0,T._)`${t} ${i} null`;case"array":s=(0,T._)`Array.isArray(${t})`;break;case"object":s=(0,T._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a((0,T._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return(0,T._)`typeof ${t} ${i} ${e}`}return n===_n.Correct?s:(0,T.not)(s);function a(c=T.nil){return(0,T.and)((0,T._)`typeof ${t} == "number"`,c,r?(0,T._)`isFinite(${t})`:T.nil)}}o(cu,"checkDataType");de.checkDataType=cu;function uu(e,t,r,n){if(e.length===1)return cu(e[0],t,r,n);let i,s=(0,Jd.toHash)(e);if(s.array&&s.object){let a=(0,T._)`typeof ${t} != "object"`;i=s.null?a:(0,T._)`!${t} || ${a}`,delete s.null,delete s.array,delete s.object}else i=T.nil;s.number&&delete s.integer;for(let a in s)i=(0,T.and)(i,cu(a,t,r,n));return i}o(uu,"checkDataTypes");de.checkDataTypes=uu;var RE={message:o(({schema:e})=>`must be ${e}`,"message"),params:o(({schema:e,schemaValue:t})=>typeof e=="string"?(0,T._)`{type: ${e}}`:(0,T._)`{type: ${t}}`,"params")};function lu(e){let t=NE(e);(0,OE.reportError)(t,RE)}o(lu,"reportTypeError");de.reportTypeError=lu;function NE(e){let{gen:t,data:r,schema:n}=e,i=(0,Jd.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}o(NE,"getTypeErrorContext")});var rm=h(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.assignDefaults=void 0;var Pn=I(),CE=k();function kE(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)tm(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>tm(e,s,i.default))}o(kE,"assignDefaults");ss.assignDefaults=kE;function tm(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let c=(0,Pn._)`${s}${(0,Pn.getProperty)(t)}`;if(i){(0,CE.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,Pn._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,Pn._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,Pn._)`${c} = ${(0,Pn.stringify)(r)}`)}o(tm,"assignDefault")});var Ge=h(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.validateUnion=F.validateArray=F.usePattern=F.callValidateCode=F.schemaProperties=F.allSchemaProperties=F.noPropertyInData=F.propertyInData=F.isOwnProperty=F.hasPropFunc=F.reportMissingProp=F.checkMissingProp=F.checkReportMissingProp=void 0;var V=I(),pu=k(),Jt=Ue(),jE=k();function qE(e,t){let{gen:r,data:n,it:i}=e;r.if(du(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,V._)`${t}`},!0),e.error()})}o(qE,"checkReportMissingProp");F.checkReportMissingProp=qE;function ME({gen:e,data:t,it:{opts:r}},n,i){return(0,V.or)(...n.map(s=>(0,V.and)(du(e,t,s,r.ownProperties),(0,V._)`${i} = ${s}`)))}o(ME,"checkMissingProp");F.checkMissingProp=ME;function DE(e,t){e.setParams({missingProperty:t},!0),e.error()}o(DE,"reportMissingProp");F.reportMissingProp=DE;function nm(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,V._)`Object.prototype.hasOwnProperty`})}o(nm,"hasPropFunc");F.hasPropFunc=nm;function fu(e,t,r){return(0,V._)`${nm(e)}.call(${t}, ${r})`}o(fu,"isOwnProperty");F.isOwnProperty=fu;function LE(e,t,r,n){let i=(0,V._)`${t}${(0,V.getProperty)(r)} !== undefined`;return n?(0,V._)`${i} && ${fu(e,t,r)}`:i}o(LE,"propertyInData");F.propertyInData=LE;function du(e,t,r,n){let i=(0,V._)`${t}${(0,V.getProperty)(r)} === undefined`;return n?(0,V.or)(i,(0,V.not)(fu(e,t,r))):i}o(du,"noPropertyInData");F.noPropertyInData=du;function im(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}o(im,"allSchemaProperties");F.allSchemaProperties=im;function FE(e,t){return im(t).filter(r=>!(0,pu.alwaysValidSchema)(e,t[r]))}o(FE,"schemaProperties");F.schemaProperties=FE;function HE({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},c,u,l){let f=l?(0,V._)`${e}, ${t}, ${n}${i}`:t,p=[[Jt.default.instancePath,(0,V.strConcat)(Jt.default.instancePath,s)],[Jt.default.parentData,a.parentData],[Jt.default.parentDataProperty,a.parentDataProperty],[Jt.default.rootData,Jt.default.rootData]];a.opts.dynamicRef&&p.push([Jt.default.dynamicAnchors,Jt.default.dynamicAnchors]);let d=(0,V._)`${f}, ${r.object(...p)}`;return u!==V.nil?(0,V._)`${c}.call(${u}, ${d})`:(0,V._)`${c}(${d})`}o(HE,"callValidateCode");F.callValidateCode=HE;var VE=(0,V._)`new RegExp`;function BE({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,V._)`${i.code==="new RegExp"?VE:(0,jE.useFunc)(e,i)}(${r}, ${n})`})}o(BE,"usePattern");F.usePattern=BE;function UE(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,V._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:pu.Type.Num},s),t.if((0,V.not)(s),c)})}o(a,"validateItems")}o(UE,"validateArray");F.validateArray=UE;function GE(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,pu.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,V._)`${a} || ${c}`),e.mergeValidEvaluated(f,c)||t.if((0,V.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}o(GE,"validateUnion");F.validateUnion=GE});var am=h(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.validateKeywordUsage=yt.validSchemaType=yt.funcKeywordCode=yt.macroKeywordCode=void 0;var be=I(),Cr=Ue(),ZE=Ge(),zE=wi();function KE(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,c=t.macro.call(a.self,i,s,a),u=sm(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let l=r.name("valid");e.subschema({schema:c,schemaPath:be.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}o(KE,"macroKeywordCode");yt.macroKeywordCode=KE;function QE(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:c,it:u}=e;YE(u,t);let l=!c&&t.compile?t.compile.call(u.self,s,a,u):t.validate,f=sm(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&&om(e),v(()=>e.error());else{let S=t.async?m():g();t.modifying&&om(e),v(()=>WE(e,S))}}o(d,"validateKeyword");function m(){let S=n.let("ruleErrs",null);return n.try(()=>y((0,be._)`await `),_=>n.assign(p,!1).if((0,be._)`${_} instanceof ${u.ValidationError}`,()=>n.assign(S,(0,be._)`${_}.errors`),()=>n.throw(_))),S}o(m,"validateAsync");function g(){let S=(0,be._)`${f}.errors`;return n.assign(S,null),y(be.nil),S}o(g,"validateSync");function y(S=t.async?(0,be._)`await `:be.nil){let _=u.opts.passContext?Cr.default.this:Cr.default.self,$=!("compile"in t&&!c||t.schema===!1);n.assign(p,(0,be._)`${S}${(0,ZE.callValidateCode)(e,f,_,$)}`,t.modifying)}o(y,"assignValid");function v(S){var _;n.if((0,be.not)((_=t.valid)!==null&&_!==void 0?_:p),S)}o(v,"reportErrs")}o(QE,"funcKeywordCode");yt.funcKeywordCode=QE;function om(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,be._)`${n.parentData}[${n.parentDataProperty}]`))}o(om,"modifyData");function WE(e,t){let{gen:r}=e;r.if((0,be._)`Array.isArray(${t})`,()=>{r.assign(Cr.default.vErrors,(0,be._)`${Cr.default.vErrors} === null ? ${t} : ${Cr.default.vErrors}.concat(${t})`).assign(Cr.default.errors,(0,be._)`${Cr.default.vErrors}.length`),(0,zE.extendErrors)(e)},()=>e.error())}o(WE,"addErrs");function YE({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}o(YE,"checkAsyncKeyword");function sm(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,be.stringify)(r)})}o(sm,"useKeyword");function JE(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(JE,"validSchemaType");yt.validSchemaType=JE;function XE({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(XE,"validateKeywordUsage");yt.validateKeywordUsage=XE});var um=h(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.extendSubschemaMode=Xt.extendSubschemaData=Xt.getSubschema=void 0;var vt=I(),cm=k();function e$(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,vt._)`${e.schemaPath}${(0,vt.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,vt._)`${e.schemaPath}${(0,vt.getProperty)(t)}${(0,vt.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,cm.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(e$,"getSubschema");Xt.getSubschema=e$;function t$(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,vt._)`${t.data}${(0,vt.getProperty)(r)}`,!0);u(d),e.errorPath=(0,vt.str)`${l}${(0,cm.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,vt._)`${r}`,e.dataPathArr=[...f,e.parentDataProperty]}if(i!==void 0){let l=i instanceof vt.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(t$,"extendSubschemaData");Xt.extendSubschemaData=t$;function r$(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(r$,"extendSubschemaMode");Xt.extendSubschemaMode=r$});var mu=h((cM,lm)=>{"use strict";lm.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 fm=h((lM,pm)=>{"use strict";var er=pm.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(){};as(t,n,i,e,"",e)};er.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};er.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};er.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};er.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 as(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 er.arrayKeywords)for(var d=0;d<p.length;d++)as(e,t,r,p[d],i+"/"+f+"/"+d,s,i,f,n,d)}else if(f in er.propsKeywords){if(p&&typeof p=="object")for(var m in p)as(e,t,r,p[m],i+"/"+f+"/"+n$(m),s,i,f,n,m)}else(f in er.keywords||e.allKeys&&!(f in er.skipKeywords))&&as(e,t,r,p,i+"/"+f,s,i,f,n)}r(n,i,s,a,c,u,l)}}o(as,"_traverse");function n$(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(n$,"escapeJsonPtr")});var Ii=h(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.getSchemaRefs=Te.resolveUrl=Te.normalizeId=Te._getFullPath=Te.getFullPath=Te.inlineRef=void 0;var i$=k(),o$=mu(),s$=fm(),a$=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function c$(e,t=!0){return typeof e=="boolean"?!0:t===!0?!hu(e):t?dm(e)<=t:!1}o(c$,"inlineRef");Te.inlineRef=c$;var u$=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function hu(e){for(let t in e){if(u$.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(hu)||typeof r=="object"&&hu(r))return!0}return!1}o(hu,"hasRef");function dm(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!a$.has(r)&&(typeof e[r]=="object"&&(0,i$.eachItem)(e[r],n=>t+=dm(n)),t===1/0))return 1/0}return t}o(dm,"countKeys");function mm(e,t="",r){r!==!1&&(t=En(t));let n=e.parse(t);return hm(e,n)}o(mm,"getFullPath");Te.getFullPath=mm;function hm(e,t){return e.serialize(t).split("#")[0]+"#"}o(hm,"_getFullPath");Te._getFullPath=hm;var l$=/#\/?$/;function En(e){return e?e.replace(l$,""):""}o(En,"normalizeId");Te.normalizeId=En;function p$(e,t,r){return r=En(r),e.resolve(t,r)}o(p$,"resolveUrl");Te.resolveUrl=p$;var f$=/^[a-z_][-a-z0-9._]*$/i;function d$(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=En(e[r]||t),s={"":i},a=mm(n,i,!1),c={},u=new Set;return s$(e,{allKeys:!0},(p,d,m,g)=>{if(g===void 0)return;let y=a+d,v=s[g];typeof p[r]=="string"&&(v=S.call(this,p[r])),_.call(this,p.$anchor),_.call(this,p.$dynamicAnchor),s[d]=v;function S($){let E=this.opts.uriResolver.resolve;if($=En(v?E(v,$):$),u.has($))throw f($);u.add($);let b=this.refs[$];return typeof b=="string"&&(b=this.refs[b]),typeof b=="object"?l(p,b.schema,$):$!==En(y)&&($[0]==="#"?(l(p,c[$],$),c[$]=p):this.refs[$]=y),$}o(S,"addRef");function _($){if(typeof $=="string"){if(!f$.test($))throw new Error(`invalid anchor "${$}"`);S.call(this,`#${$}`)}}o(_,"addAnchor")}),c;function l(p,d,m){if(d!==void 0&&!o$(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(d$,"getSchemaRefs");Te.getSchemaRefs=d$});var Ni=h(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.getData=tr.KeywordCxt=tr.validateFunctionCode=void 0;var bm=Qd(),gm=Ai(),yu=au(),cs=Ai(),m$=rm(),Ri=am(),gu=um(),O=I(),A=Ue(),h$=Ii(),Lt=k(),Ti=wi();function g$(e){if(Em(e)&&($m(e),Pm(e))){S$(e);return}_m(e,()=>(0,bm.topBoolOrEmptySchema)(e))}o(g$,"validateFunctionCode");tr.validateFunctionCode=g$;function _m({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,O._)`${A.default.data}, ${A.default.valCxt}`,n.$async,()=>{e.code((0,O._)`"use strict"; ${ym(r,i)}`),v$(e,i),e.code(s)}):e.func(t,(0,O._)`${A.default.data}, ${y$(i)}`,n.$async,()=>e.code(ym(r,i)).code(s))}o(_m,"validateFunction");function y$(e){return(0,O._)`{${A.default.instancePath}="", ${A.default.parentData}, ${A.default.parentDataProperty}, ${A.default.rootData}=${A.default.data}${e.dynamicRef?(0,O._)`, ${A.default.dynamicAnchors}={}`:O.nil}}={}`}o(y$,"destructureValCxt");function v$(e,t){e.if(A.default.valCxt,()=>{e.var(A.default.instancePath,(0,O._)`${A.default.valCxt}.${A.default.instancePath}`),e.var(A.default.parentData,(0,O._)`${A.default.valCxt}.${A.default.parentData}`),e.var(A.default.parentDataProperty,(0,O._)`${A.default.valCxt}.${A.default.parentDataProperty}`),e.var(A.default.rootData,(0,O._)`${A.default.valCxt}.${A.default.rootData}`),t.dynamicRef&&e.var(A.default.dynamicAnchors,(0,O._)`${A.default.valCxt}.${A.default.dynamicAnchors}`)},()=>{e.var(A.default.instancePath,(0,O._)`""`),e.var(A.default.parentData,(0,O._)`undefined`),e.var(A.default.parentDataProperty,(0,O._)`undefined`),e.var(A.default.rootData,A.default.data),t.dynamicRef&&e.var(A.default.dynamicAnchors,(0,O._)`{}`)})}o(v$,"destructureValCxtES5");function S$(e){let{schema:t,opts:r,gen:n}=e;_m(e,()=>{r.$comment&&t.$comment&&xm(e),$$(e),n.let(A.default.vErrors,null),n.let(A.default.errors,0),r.unevaluated&&b$(e),Om(e),w$(e)})}o(S$,"topSchemaObjCode");function b$(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(b$,"resetEvaluated");function ym(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(ym,"funcSourceUrl");function _$(e,t){if(Em(e)&&($m(e),Pm(e))){P$(e,t);return}(0,bm.boolOrEmptySchema)(e,t)}o(_$,"subschemaCode");function Pm({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(Pm,"schemaCxtHasRules");function Em(e){return typeof e.schema!="boolean"}o(Em,"isSchemaObj");function P$(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&xm(e),O$(e),x$(e);let s=n.const("_errs",A.default.errors);Om(e,s),n.var(t,(0,O._)`${s} === ${A.default.errors}`)}o(P$,"subSchemaObjCode");function $m(e){(0,Lt.checkUnknownRules)(e),E$(e)}o($m,"checkKeywords");function Om(e,t){if(e.opts.jtd)return vm(e,[],!1,t);let r=(0,gm.getSchemaTypes)(e.schema),n=(0,gm.coerceAndCheckDataType)(e,r);vm(e,r,!n,t)}o(Om,"typeAndKeywords");function E$(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Lt.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}o(E$,"checkRefsAndKeywords");function $$(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Lt.checkStrictMode)(e,"default is ignored in the schema root")}o($$,"checkNoDefault");function O$(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,h$.resolveUrl)(e.opts.uriResolver,e.baseId,t))}o(O$,"updateContext");function x$(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}o(x$,"checkAsyncSchema");function xm({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)e.code((0,O._)`${A.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._)`${A.default.self}.opts.$comment(${s}, ${a}, ${c}.schema)`)}}o(xm,"commentKeyword");function w$(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,O._)`${A.default.errors} === 0`,()=>t.return(A.default.data),()=>t.throw((0,O._)`new ${i}(${A.default.vErrors})`)):(t.assign((0,O._)`${n}.errors`,A.default.vErrors),s.unevaluated&&A$(e),t.return((0,O._)`${A.default.errors} === 0`))}o(w$,"returnResults");function A$({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(A$,"assignEvaluated");function vm(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,Lt.schemaHasRulesButRef)(s,f))){i.block(()=>Am(e,"$ref",f.all.$ref.definition));return}u.jtd||I$(e,t),i.block(()=>{for(let d of f.rules)p(d);p(f.post)});function p(d){(0,yu.shouldUseGroup)(s,d)&&(d.type?(i.if((0,cs.checkDataType)(d.type,a,u.strictNumbers)),Sm(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,cs.reportTypeError)(e)),i.endIf()):Sm(e,d),c||i.if((0,O._)`${A.default.errors} === ${n||0}`))}o(p,"groupKeywords")}o(vm,"schemaKeywords");function Sm(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,m$.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,yu.shouldUseRule)(n,s)&&Am(e,s.keyword,s.definition,t.type)})}o(Sm,"iterateKeywords");function I$(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(T$(e,t),e.opts.allowUnionTypes||R$(e,t),N$(e,e.dataTypes))}o(I$,"checkStrictTypes");function T$(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{wm(e.dataTypes,r)||vu(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),k$(e,t)}}o(T$,"checkContextTypes");function R$(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&vu(e,"use allowUnionTypes to allow union type keyword")}o(R$,"checkMultipleTypes");function N$(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,yu.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>C$(t,a))&&vu(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}o(N$,"checkKeywordTypes");function C$(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}o(C$,"hasApplicableType");function wm(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}o(wm,"includesType");function k$(e,t){let r=[];for(let n of e.dataTypes)wm(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}o(k$,"narrowSchemaTypes");function vu(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Lt.checkStrictMode)(e,t,e.opts.strictTypes)}o(vu,"strictTypesError");var Su=class Su{constructor(t,r,n){if((0,Ri.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,Lt.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",Im(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Ri.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",A.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?Ti.reportExtraError:Ti.reportError)(this,this.def.error,r)}$dataError(){(0,Ti.reportError)(this,this.def.$dataError||Ti.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Ti.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,cs.checkDataTypes)(u,r,s.opts.strictNumbers,cs.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,gu.getSubschema)(this.it,t);(0,gu.extendSubschemaData)(n,this.it,t),(0,gu.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return _$(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Lt.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Lt.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(Su,"KeywordCxt");var us=Su;tr.KeywordCxt=us;function Am(e,t,r,n){let i=new us(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Ri.funcKeywordCode)(i,r):"macro"in r?(0,Ri.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Ri.funcKeywordCode)(i,r)}o(Am,"keywordCode");var j$=/^\/(?:[^~]|~0|~1)*$/,q$=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Im(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return A.default.rootData;if(e[0]==="/"){if(!j$.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=A.default.rootData}else{let l=q$.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,Lt.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(Im,"getData");tr.getData=Im});var ls=h(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});var Pu=class Pu extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};o(Pu,"ValidationError");var bu=Pu;_u.default=bu});var Ci=h(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});var Eu=Ii(),xu=class xu extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Eu.resolveUrl)(t,r,n),this.missingSchema=(0,Eu.normalizeId)((0,Eu.getFullPath)(t,this.missingRef))}};o(xu,"MissingRefError");var $u=xu;Ou.default=$u});var ki=h(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.resolveSchema=Ze.getCompilingSchema=Ze.resolveRef=Ze.compileSchema=Ze.SchemaEnv=void 0;var nt=I(),M$=ls(),kr=Ue(),it=Ii(),Tm=k(),D$=Ni(),Iu=class Iu{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,it.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(Iu,"SchemaEnv");var $n=Iu;Ze.SchemaEnv=$n;function Au(e){let t=Rm.call(this,e);if(t)return t;let r=(0,it.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new nt.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),c;e.$async&&(c=a.scopeValue("Error",{ref:M$.default,code:(0,nt._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:kr.default.data,parentData:kr.default.parentData,parentDataProperty:kr.default.parentDataProperty,dataNames:[kr.default.data],dataPathArr:[nt.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,nt.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:nt.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,nt._)`""`,opts:this.opts,self:this},f;try{this._compilations.add(e),(0,D$.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let p=a.toString();f=`${a.scopeRefs(kr.default.scope)}return ${p}`,this.opts.code.process&&(f=this.opts.code.process(f,e));let m=new Function(`${kr.default.self}`,`${kr.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 nt.Name?void 0:g,items:y instanceof nt.Name?void 0:y,dynamicProps:g instanceof nt.Name,dynamicItems:y instanceof nt.Name},m.source&&(m.source.evaluated=(0,nt.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(Au,"compileSchema");Ze.compileSchema=Au;function L$(e,t,r){var n;r=(0,it.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=V$.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 $n({schema:a,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=F$.call(this,s)}o(L$,"resolveRef");Ze.resolveRef=L$;function F$(e){return(0,it.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Au.call(this,e)}o(F$,"inlineOrCompile");function Rm(e){for(let t of this._compilations)if(H$(t,e))return t}o(Rm,"getCompilingSchema");Ze.getCompilingSchema=Rm;function H$(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}o(H$,"sameSchemaEnv");function V$(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||ps.call(this,e,t)}o(V$,"resolve");function ps(e,t){let r=this.opts.uriResolver.parse(t),n=(0,it._getFullPath)(this.opts.uriResolver,r),i=(0,it.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return wu.call(this,r,e);let s=(0,it.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let c=ps.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:wu.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Au.call(this,a),s===(0,it.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,it.resolveUrl)(this.opts.uriResolver,i,l)),new $n({schema:c,schemaId:u,root:e,baseId:i})}return wu.call(this,r,a)}}o(ps,"resolveSchema");Ze.resolveSchema=ps;var B$=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function wu(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,Tm.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!B$.has(c)&&l&&(t=(0,it.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,Tm.schemaHasRulesButRef)(r,this.RULES)){let c=(0,it.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=ps.call(this,n,c)}let{schemaId:a}=this.opts;if(s=s||new $n({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}o(wu,"getJsonPointer")});var Nm=h((PM,U$)=>{U$.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 km=h((EM,Cm)=>{"use strict";var G$={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};Cm.exports={HEX:G$}});var Vm=h(($M,Hm)=>{"use strict";var{HEX:Z$}=km();function Dm(e){if(Fm(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:K$(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}o(Dm,"normalizeIPv4");function Tu(e,t=!1){let r="",n=!0;for(let i of e){if(Z$[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}o(Tu,"stringArrayToHexStripped");function z$(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=Tu(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(Tu(i))),r.address=n.join(""),r}o(z$,"getIPV6");function Lm(e,t={}){if(Fm(e,":")<2)return{host:e,isIPV6:!1};let r=z$(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(Lm,"normalizeIPv6");function K$(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(K$,"stripLeadingZeros");function Fm(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}o(Fm,"findToken");var jm=/^\.\.?\//u,qm=/^\/\.(?:\/|$)/u,Mm=/^\/\.\.(?:\/|$)/u,Q$=/^\/?(?:.|\n)*?(?=\/|$)/u;function W$(e){let t=[];for(;e.length;)if(e.match(jm))e=e.replace(jm,"");else if(e.match(qm))e=e.replace(qm,"/");else if(e.match(Mm))e=e.replace(Mm,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(Q$);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(W$,"removeDotSegments");function Y$(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(Y$,"normalizeComponentEncoding");function J$(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=Dm(n);if(i.isIPV4)n=i.host;else{let s=Lm(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(J$,"recomposeAuthority");Hm.exports={recomposeAuthority:J$,normalizeComponentEncoding:Y$,removeDotSegments:W$,normalizeIPv4:Dm,normalizeIPv6:Lm,stringArrayToHexStripped:Tu}});var Km=h((xM,zm)=>{"use strict";var X$=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,e1=/([\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 Um(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}o(Um,"httpParse");function Gm(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(Gm,"httpSerialize");function t1(e){return e.secure=Bm(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}o(t1,"wsParse");function r1(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(r1,"wsSerialize");function n1(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(e1);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=Ru[i];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}o(n1,"urnParse");function i1(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=Ru[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(i1,"urnSerialize");function o1(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!X$.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}o(o1,"urnuuidParse");function s1(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}o(s1,"urnuuidSerialize");var Zm={scheme:"http",domainHost:!0,parse:Um,serialize:Gm},a1={scheme:"https",domainHost:Zm.domainHost,parse:Um,serialize:Gm},fs={scheme:"ws",domainHost:!0,parse:t1,serialize:r1},c1={scheme:"wss",domainHost:fs.domainHost,parse:fs.parse,serialize:fs.serialize},u1={scheme:"urn",parse:n1,serialize:i1,skipNormalize:!0},l1={scheme:"urn:uuid",parse:o1,serialize:s1,skipNormalize:!0},Ru={http:Zm,https:a1,ws:fs,wss:c1,urn:u1,"urn:uuid":l1};zm.exports=Ru});var Wm=h((AM,ms)=>{"use strict";var{normalizeIPv6:p1,normalizeIPv4:f1,removeDotSegments:ji,recomposeAuthority:d1,normalizeComponentEncoding:ds}=Vm(),Nu=Km();function m1(e,t){return typeof e=="string"?e=St(Ft(e,t),t):typeof e=="object"&&(e=Ft(St(e,t),t)),e}o(m1,"normalize");function h1(e,t,r){let n=Object.assign({scheme:"null"},r),i=Qm(Ft(e,n),Ft(t,n),n,!0);return St(i,{...n,skipEscape:!0})}o(h1,"resolve");function Qm(e,t,r,n){let i={};return n||(e=Ft(St(e,r),r),t=Ft(St(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=ji(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=ji(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=ji(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=ji(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(Qm,"resolveComponents");function g1(e,t,r){return typeof e=="string"?(e=unescape(e),e=St(ds(Ft(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=St(ds(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=St(ds(Ft(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=St(ds(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}o(g1,"equal");function St(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=Nu[(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=d1(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=ji(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(St,"serialize");var y1=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function v1(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||y1[t])return!0;return!1}o(v1,"nonSimpleDomain");var S1=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Ft(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(S1);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=f1(n.host);if(u.isIPV4===!1){let l=p1(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=Nu[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&s===!1&&v1(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(Ft,"parse");var Cu={SCHEMES:Nu,normalize:m1,resolve:h1,resolveComponents:Qm,equal:g1,serialize:St,parse:Ft};ms.exports=Cu;ms.exports.default=Cu;ms.exports.fastUri=Cu});var Jm=h(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});var Ym=Wm();Ym.code='require("ajv/dist/runtime/uri").default';ku.default=Ym});var xn=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 b1=Ni();Object.defineProperty(ae,"KeywordCxt",{enumerable:!0,get:o(function(){return b1.KeywordCxt},"get")});var On=I();Object.defineProperty(ae,"_",{enumerable:!0,get:o(function(){return On._},"get")});Object.defineProperty(ae,"str",{enumerable:!0,get:o(function(){return On.str},"get")});Object.defineProperty(ae,"stringify",{enumerable:!0,get:o(function(){return On.stringify},"get")});Object.defineProperty(ae,"nil",{enumerable:!0,get:o(function(){return On.nil},"get")});Object.defineProperty(ae,"Name",{enumerable:!0,get:o(function(){return On.Name},"get")});Object.defineProperty(ae,"CodeGen",{enumerable:!0,get:o(function(){return On.CodeGen},"get")});var _1=ls(),nh=Ci(),P1=su(),qi=ki(),E1=I(),Mi=Ii(),hs=Ai(),qu=k(),Xm=Nm(),$1=Jm(),ih=o((e,t)=>new RegExp(e,t),"defaultRegExp");ih.code="new RegExp";var O1=["removeAdditional","useDefaults","coerceTypes"],x1=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),w1={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."},A1={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},eh=200;function I1(e){var t,r,n,i,s,a,c,u,l,f,p,d,m,g,y,v,S,_,$,E,b,w,N,je,le;let J=e.strict,te=(t=e.code)===null||t===void 0?void 0:t.optimize,ve=te===!0||te===void 0?1:te||0,ln=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:ih,pn=(i=e.uriResolver)!==null&&i!==void 0?i:$1.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:J)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:J)!==null&&u!==void 0?u:!0,strictTypes:(f=(l=e.strictTypes)!==null&&l!==void 0?l:J)!==null&&f!==void 0?f:"log",strictTuples:(d=(p=e.strictTuples)!==null&&p!==void 0?p:J)!==null&&d!==void 0?d:"log",strictRequired:(g=(m=e.strictRequired)!==null&&m!==void 0?m:J)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:ve,regExp:ln}:{optimize:ve,regExp:ln},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:eh,loopEnum:(v=e.loopEnum)!==null&&v!==void 0?v:eh,meta:(S=e.meta)!==null&&S!==void 0?S:!0,messages:(_=e.messages)!==null&&_!==void 0?_:!0,inlineRefs:($=e.inlineRefs)!==null&&$!==void 0?$:!0,schemaId:(E=e.schemaId)!==null&&E!==void 0?E:"$id",addUsedSchema:(b=e.addUsedSchema)!==null&&b!==void 0?b:!0,validateSchema:(w=e.validateSchema)!==null&&w!==void 0?w:!0,validateFormats:(N=e.validateFormats)!==null&&N!==void 0?N:!0,unicodeRegExp:(je=e.unicodeRegExp)!==null&&je!==void 0?je:!0,int32range:(le=e.int32range)!==null&&le!==void 0?le:!0,uriResolver:pn}}o(I1,"requiredOptions");var Mu=class Mu{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...I1(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new E1.ValueScope({scope:{},prefixes:x1,es5:r,lines:n}),this.logger=j1(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,P1.getRules)(),th.call(this,w1,t,"NOT SUPPORTED"),th.call(this,A1,t,"DEPRECATED","warn"),this._metaOpts=C1.call(this),t.formats&&R1.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&N1.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),T1.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=Xm;n==="id"&&(i={...Xm},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 nh.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,Mi.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=rh.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new qi.SchemaEnv({schema:{},schemaId:n});if(r=qi.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=rh.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,Mi.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(M1.call(this,n,r),!r)return(0,qu.eachItem)(n,s=>ju.call(this,s)),this;L1.call(this,r);let i={...r,type:(0,hs.getJSONTypes)(r.type),schemaType:(0,hs.getJSONTypes)(r.schemaType)};return(0,qu.eachItem)(n,i.type.length===0?s=>ju.call(this,s,i):s=>i.type.forEach(a=>ju.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]=oh(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,Mi.normalizeId)(a||n);let l=Mi.getSchemaRefs.call(this,t,n);return u=new qi.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):qi.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{qi.compileSchema.call(this,t)}finally{this.opts=r}}};o(Mu,"Ajv");var Di=Mu;Di.ValidationError=_1.default;Di.MissingRefError=nh.default;ae.default=Di;function th(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(th,"checkOptions");function rh(e){return e=(0,Mi.normalizeId)(e),this.schemas[e]||this.refs[e]}o(rh,"getSchEnv");function T1(){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(T1,"addInitialSchemas");function R1(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}o(R1,"addInitialFormats");function N1(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(N1,"addInitialKeywords");function C1(){let e={...this.opts};for(let t of O1)delete e[t];return e}o(C1,"getMetaSchemaOptions");var k1={log(){},warn(){},error(){}};function j1(e){if(e===!1)return k1;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(j1,"getLogger");var q1=/^[a-z_$][a-z0-9_$:-]*$/i;function M1(e,t){let{RULES:r}=this;if((0,qu.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!q1.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(M1,"checkKeyword");function ju(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,hs.getJSONTypes)(t.type),schemaType:(0,hs.getJSONTypes)(t.schemaType)}};t.before?D1.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(ju,"addRule");function D1(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(D1,"addBeforeRule");function L1(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=oh(t)),e.validateSchema=this.compile(t,!0))}o(L1,"keywordMetaschema");var F1={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function oh(e){return{anyOf:[e,F1]}}o(oh,"schemaOrData")});var Li=h(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.callRef=jr.getValidate=void 0;var H1=Ci(),sh=Ge(),Re=I(),wn=Ue(),ah=ki(),gs=k(),V1={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=ah.resolveRef.call(u,l,i,r);if(f===void 0)throw new H1.default(n.opts.uriResolver,i,r);if(f instanceof ah.SchemaEnv)return d(f);return m(f);function p(){if(s===l)return ys(e,a,s,s.$async);let g=t.scopeValue("root",{ref:l});return ys(e,(0,Re._)`${g}.validate`,l,l.$async)}function d(g){let y=ch(e,g);ys(e,y,g,g.$async)}function m(g){let y=t.scopeValue("schema",c.code.source===!0?{ref:g,code:(0,Re.stringify)(g)}:{ref:g}),v=t.name("valid"),S=e.subschema({schema:g,dataTypes:[],schemaPath:Re.nil,topSchemaRef:y,errSchemaPath:r},v);e.mergeEvaluated(S),e.ok(v)}}};function ch(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Re._)`${r.scopeValue("wrapper",{ref:t})}.validate`}o(ch,"getValidate");jr.getValidate=ch;function ys(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:c,opts:u}=s,l=u.passContext?wn.default.this:Re.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,Re._)`await ${(0,sh.callValidateCode)(e,t,l)}`),m(t),a||i.assign(g,!0)},y=>{i.if((0,Re._)`!(${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,sh.callValidateCode)(e,t,l),()=>m(t),()=>d(t))}o(p,"callSyncRef");function d(g){let y=(0,Re._)`${g}.errors`;i.assign(wn.default.vErrors,(0,Re._)`${wn.default.vErrors} === null ? ${y} : ${wn.default.vErrors}.concat(${y})`),i.assign(wn.default.errors,(0,Re._)`${wn.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=gs.mergeEvaluated.props(i,v.props,s.props));else{let S=i.var("props",(0,Re._)`${g}.evaluated.props`);s.props=gs.mergeEvaluated.props(i,S,s.props,Re.Name)}if(s.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(s.items=gs.mergeEvaluated.items(i,v.items,s.items));else{let S=i.var("items",(0,Re._)`${g}.evaluated.items`);s.items=gs.mergeEvaluated.items(i,S,s.items,Re.Name)}}o(m,"addEvaluatedFrom")}o(ys,"callRef");jr.callRef=ys;jr.default=V1});var uh=h(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});var B1=Li(),U1=["$schema","id","$defs",{keyword:"$comment"},"definitions",B1.default];Du.default=U1});var lh=h(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});var Lu=xn(),G1=I(),rr=G1.operators,Fu={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:rr.LTE,fail:rr.GT},{okStr:"<",ok:rr.LT,fail:rr.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:rr.GTE,fail:rr.LT},{okStr:">",ok:rr.GT,fail:rr.LTE}]}},Z1={message:o(e=>Lu.str`must be ${Hu(e).okStr} ${e.schemaCode}`,"message"),params:o(e=>Lu._`{comparison: ${Hu(e).okStr}, limit: ${e.schemaCode}}`,"params")},z1={keyword:Object.keys(Fu),type:"number",schemaType:"number",$data:!0,error:Z1,code(e){let{data:t,schemaCode:r}=e;e.fail$data(Lu._`${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[Fu[r].exclusive]?1:0;return Fu[r].ops[n]}o(Hu,"kwdOp");Vu.default=z1});var fh=h(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});var ph={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},K1={keyword:Object.keys(ph),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=ph[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};Bu.default=K1});var Gu=h(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});var Fi=I(),Q1={message:o(({schemaCode:e})=>(0,Fi.str)`must be multiple of ${e}`,"message"),params:o(({schemaCode:e})=>(0,Fi._)`{multipleOf: ${e}}`,"params")},W1={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Q1,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),c=s?(0,Fi._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,Fi._)`${a} !== parseInt(${a})`;e.fail$data((0,Fi._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};Uu.default=W1});var mh=h(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});function dh(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(dh,"ucs2length");Zu.default=dh;dh.code='require("ajv/dist/runtime/ucs2length").default'});var Ku=h(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});var qr=I(),Y1=k(),J1=mh(),X1={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,qr.str)`must NOT have ${r} than ${t} characters`},params:o(({schemaCode:e})=>(0,qr._)`{limit: ${e}}`,"params")},eO={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:X1,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?qr.operators.GT:qr.operators.LT,a=i.opts.unicode===!1?(0,qr._)`${r}.length`:(0,qr._)`${(0,Y1.useFunc)(e.gen,J1.default)}(${r})`;e.fail$data((0,qr._)`${a} ${s} ${n}`)}};zu.default=eO});var Wu=h(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});var tO=Ge(),vs=I(),rO={message:o(({schemaCode:e})=>(0,vs.str)`must match pattern "${e}"`,"message"),params:o(({schemaCode:e})=>(0,vs._)`{pattern: ${e}}`,"params")},nO={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:rO,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",c=r?(0,vs._)`(new RegExp(${i}, ${a}))`:(0,tO.usePattern)(e,n);e.fail$data((0,vs._)`!${c}.test(${t})`)}};Qu.default=nO});var Ju=h(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});var Hi=I(),iO={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Hi.str)`must NOT have ${r} than ${t} properties`},params:o(({schemaCode:e})=>(0,Hi._)`{limit: ${e}}`,"params")},oO={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:iO,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Hi.operators.GT:Hi.operators.LT;e.fail$data((0,Hi._)`Object.keys(${r}).length ${i} ${n}`)}};Yu.default=oO});var el=h(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});var Vi=Ge(),Bi=I(),sO=k(),aO={message:o(({params:{missingProperty:e}})=>(0,Bi.str)`must have required property '${e}'`,"message"),params:o(({params:{missingProperty:e}})=>(0,Bi._)`{missingProperty: ${e}}`,"params")},cO={keyword:"required",type:"object",schemaType:"array",$data:!0,error:aO,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,S=`required property "${y}" is not defined at "${v}" (strictRequired)`;(0,sO.checkStrictMode)(a,S,a.opts.strictRequired)}}function l(){if(u||s)e.block$data(Bi.nil,p);else for(let m of r)(0,Vi.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,Vi.checkMissingProp)(e,r,m)),(0,Vi.reportMissingProp)(e,m),t.else()}o(f,"exitOnErrorMode");function p(){t.forOf("prop",n,m=>{e.setParams({missingProperty:m}),t.if((0,Vi.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,Vi.propertyInData)(t,i,m,c.ownProperties)),t.if((0,Bi.not)(g),()=>{e.error(),t.break()})},Bi.nil)}o(d,"loopUntilMissing")}};Xu.default=cO});var rl=h(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var Ui=I(),uO={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Ui.str)`must NOT have ${r} than ${t} items`},params:o(({schemaCode:e})=>(0,Ui._)`{limit: ${e}}`,"params")},lO={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:uO,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Ui.operators.GT:Ui.operators.LT;e.fail$data((0,Ui._)`${r}.length ${i} ${n}`)}};tl.default=lO});var Ss=h(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});var hh=mu();hh.code='require("ajv/dist/runtime/equal").default';nl.default=hh});var sl=h(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var il=Ai(),ce=I(),pO=k(),fO=Ss(),dO={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")},mO={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:dO,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,il.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"),S=(0,il.checkDataTypes)(l,v,c.opts.strictNumbers,il.DataType.Wrong),_=t.const("indices",(0,ce._)`{}`);t.for((0,ce._)`;${g}--;`,()=>{t.let(v,(0,ce._)`${r}[${g}]`),t.if(S,(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,pO.useFunc)(t,fO.default),S=t.name("outer");t.label(S).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(S)})))}o(m,"loopN2")}};ol.default=mO});var ul=h(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});var al=I(),hO=k(),gO=Ss(),yO={message:"must be equal to constant",params:o(({schemaCode:e})=>(0,al._)`{allowedValue: ${e}}`,"params")},vO={keyword:"const",$data:!0,error:yO,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,al._)`!${(0,hO.useFunc)(t,gO.default)}(${r}, ${i})`):e.fail((0,al._)`${s} !== ${r}`)}};cl.default=vO});var pl=h(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});var Gi=I(),SO=k(),bO=Ss(),_O={message:"must be equal to one of the allowed values",params:o(({schemaCode:e})=>(0,Gi._)`{allowedValues: ${e}}`,"params")},PO={keyword:"enum",schemaType:"array",$data:!0,error:_O,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:s,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let c=i.length>=a.opts.loopEnum,u,l=o(()=>u??(u=(0,SO.useFunc)(t,bO.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,Gi.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,Gi._)`${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,Gi._)`${l()}(${r}, ${m}[${g}])`:(0,Gi._)`${r} === ${y}`}o(d,"equalCode")}};ll.default=PO});var gh=h(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});var EO=lh(),$O=fh(),OO=Gu(),xO=Ku(),wO=Wu(),AO=Ju(),IO=el(),TO=rl(),RO=sl(),NO=ul(),CO=pl(),kO=[EO.default,$O.default,OO.default,xO.default,wO.default,AO.default,IO.default,TO.default,RO.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},NO.default,CO.default];fl.default=kO});var ml=h(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.validateAdditionalItems=void 0;var Mr=I(),dl=k(),jO={message:o(({params:{len:e}})=>(0,Mr.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Mr._)`{limit: ${e}}`,"params")},qO={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:jO,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,dl.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}yh(e,n)}};function yh(e,t){let{gen:r,schema:n,data:i,keyword:s,it:a}=e;a.items=!0;let c=r.const("len",(0,Mr._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Mr._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,dl.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,Mr._)`${c} <= ${t.length}`);r.if((0,Mr.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,c,f=>{e.subschema({keyword:s,dataProp:f,dataPropType:dl.Type.Num},l),a.allErrors||r.if((0,Mr.not)(l),()=>r.break())})}o(u,"validateItems")}o(yh,"validateAdditionalItems");Zi.validateAdditionalItems=yh;Zi.default=qO});var hl=h(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.validateTuple=void 0;var vh=I(),bs=k(),MO=Ge(),DO={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return Sh(e,"additionalItems",t);r.items=!0,!(0,bs.alwaysValidSchema)(r,t)&&e.ok((0,MO.validateArray)(e))}};function Sh(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=bs.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,vh._)`${s}.length`);r.forEach((p,d)=>{(0,bs.alwaysValidSchema)(c,p)||(n.if((0,vh._)`${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,bs.checkStrictMode)(c,v,d.strictTuples)}}o(f,"checkStrictTuple")}o(Sh,"validateTuple");zi.validateTuple=Sh;zi.default=DO});var bh=h(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var LO=hl(),FO={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o(e=>(0,LO.validateTuple)(e,"items"),"code")};gl.default=FO});var Ph=h(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var _h=I(),HO=k(),VO=Ge(),BO=ml(),UO={message:o(({params:{len:e}})=>(0,_h.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,_h._)`{limit: ${e}}`,"params")},GO={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:UO,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,HO.alwaysValidSchema)(n,t)&&(i?(0,BO.validateAdditionalItems)(e,i):e.ok((0,VO.validateArray)(e)))}};yl.default=GO});var Eh=h(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var ze=I(),_s=k(),ZO={message:o(({params:{min:e,max:t}})=>t===void 0?(0,ze.str)`must contain at least ${e} valid item(s)`:(0,ze.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,ze._)`{minContains: ${e}}`:(0,ze._)`{minContains: ${e}, maxContains: ${t}}`,"params")},zO={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:ZO,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,ze._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,_s.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,_s.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,_s.alwaysValidSchema)(s,r)){let y=(0,ze._)`${f} >= ${a}`;c!==void 0&&(y=(0,ze._)`${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,ze._)`${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,S=>{e.subschema({keyword:"contains",dataProp:S,dataPropType:_s.Type.Num,compositeRule:!0},y),v()})}o(m,"validateItems");function g(y){t.code((0,ze._)`${y}++`),c===void 0?t.if((0,ze._)`${y} >= ${a}`,()=>t.assign(p,!0).break()):(t.if((0,ze._)`${y} > ${c}`,()=>t.assign(p,!1).break()),a===1?t.assign(p,!0):t.if((0,ze._)`${y} >= ${a}`,()=>t.assign(p,!0)))}o(g,"checkLimits")}};vl.default=zO});var Ps=h(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.validateSchemaDeps=bt.validatePropertyDeps=bt.error=void 0;var Sl=I(),KO=k(),Ki=Ge();bt.error={message:o(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Sl.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:o(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Sl._)`{property: ${e},
9
+ || ${a} === "boolean" || ${i} === null`).assign(c,(0,T._)`[${i}]`)}}o(u,"coerceSpecificType")}o(AE,"coerceData");function IE({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,T._)`${t} !== undefined`,()=>e.assign((0,T._)`${t}[${r}]`,n))}o(IE,"assignParentData");function cu(e,t,r,n=_n.Correct){let i=n===_n.Correct?T.operators.EQ:T.operators.NEQ,s;switch(e){case"null":return(0,T._)`${t} ${i} null`;case"array":s=(0,T._)`Array.isArray(${t})`;break;case"object":s=(0,T._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a((0,T._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return(0,T._)`typeof ${t} ${i} ${e}`}return n===_n.Correct?s:(0,T.not)(s);function a(c=T.nil){return(0,T.and)((0,T._)`typeof ${t} == "number"`,c,r?(0,T._)`isFinite(${t})`:T.nil)}}o(cu,"checkDataType");me.checkDataType=cu;function uu(e,t,r,n){if(e.length===1)return cu(e[0],t,r,n);let i,s=(0,Jd.toHash)(e);if(s.array&&s.object){let a=(0,T._)`typeof ${t} != "object"`;i=s.null?a:(0,T._)`!${t} || ${a}`,delete s.null,delete s.array,delete s.object}else i=T.nil;s.number&&delete s.integer;for(let a in s)i=(0,T.and)(i,cu(a,t,r,n));return i}o(uu,"checkDataTypes");me.checkDataTypes=uu;var TE={message:o(({schema:e})=>`must be ${e}`,"message"),params:o(({schema:e,schemaValue:t})=>typeof e=="string"?(0,T._)`{type: ${e}}`:(0,T._)`{type: ${t}}`,"params")};function lu(e){let t=RE(e);(0,$E.reportError)(t,TE)}o(lu,"reportTypeError");me.reportTypeError=lu;function RE(e){let{gen:t,data:r,schema:n}=e,i=(0,Jd.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}o(RE,"getTypeErrorContext")});var rm=h(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.assignDefaults=void 0;var Pn=I(),NE=k();function CE(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)tm(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>tm(e,s,i.default))}o(CE,"assignDefaults");ss.assignDefaults=CE;function tm(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let c=(0,Pn._)`${s}${(0,Pn.getProperty)(t)}`;if(i){(0,NE.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,Pn._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,Pn._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,Pn._)`${c} = ${(0,Pn.stringify)(r)}`)}o(tm,"assignDefault")});var Ge=h(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.validateUnion=F.validateArray=F.usePattern=F.callValidateCode=F.schemaProperties=F.allSchemaProperties=F.noPropertyInData=F.propertyInData=F.isOwnProperty=F.hasPropFunc=F.reportMissingProp=F.checkMissingProp=F.checkReportMissingProp=void 0;var V=I(),pu=k(),Jt=Ue(),kE=k();function jE(e,t){let{gen:r,data:n,it:i}=e;r.if(du(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,V._)`${t}`},!0),e.error()})}o(jE,"checkReportMissingProp");F.checkReportMissingProp=jE;function qE({gen:e,data:t,it:{opts:r}},n,i){return(0,V.or)(...n.map(s=>(0,V.and)(du(e,t,s,r.ownProperties),(0,V._)`${i} = ${s}`)))}o(qE,"checkMissingProp");F.checkMissingProp=qE;function ME(e,t){e.setParams({missingProperty:t},!0),e.error()}o(ME,"reportMissingProp");F.reportMissingProp=ME;function nm(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,V._)`Object.prototype.hasOwnProperty`})}o(nm,"hasPropFunc");F.hasPropFunc=nm;function fu(e,t,r){return(0,V._)`${nm(e)}.call(${t}, ${r})`}o(fu,"isOwnProperty");F.isOwnProperty=fu;function DE(e,t,r,n){let i=(0,V._)`${t}${(0,V.getProperty)(r)} !== undefined`;return n?(0,V._)`${i} && ${fu(e,t,r)}`:i}o(DE,"propertyInData");F.propertyInData=DE;function du(e,t,r,n){let i=(0,V._)`${t}${(0,V.getProperty)(r)} === undefined`;return n?(0,V.or)(i,(0,V.not)(fu(e,t,r))):i}o(du,"noPropertyInData");F.noPropertyInData=du;function im(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}o(im,"allSchemaProperties");F.allSchemaProperties=im;function LE(e,t){return im(t).filter(r=>!(0,pu.alwaysValidSchema)(e,t[r]))}o(LE,"schemaProperties");F.schemaProperties=LE;function FE({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},c,u,l){let f=l?(0,V._)`${e}, ${t}, ${n}${i}`:t,p=[[Jt.default.instancePath,(0,V.strConcat)(Jt.default.instancePath,s)],[Jt.default.parentData,a.parentData],[Jt.default.parentDataProperty,a.parentDataProperty],[Jt.default.rootData,Jt.default.rootData]];a.opts.dynamicRef&&p.push([Jt.default.dynamicAnchors,Jt.default.dynamicAnchors]);let d=(0,V._)`${f}, ${r.object(...p)}`;return u!==V.nil?(0,V._)`${c}.call(${u}, ${d})`:(0,V._)`${c}(${d})`}o(FE,"callValidateCode");F.callValidateCode=FE;var HE=(0,V._)`new RegExp`;function VE({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,V._)`${i.code==="new RegExp"?HE:(0,kE.useFunc)(e,i)}(${r}, ${n})`})}o(VE,"usePattern");F.usePattern=VE;function BE(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,V._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:pu.Type.Num},s),t.if((0,V.not)(s),c)})}o(a,"validateItems")}o(BE,"validateArray");F.validateArray=BE;function UE(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,pu.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,V._)`${a} || ${c}`),e.mergeValidEvaluated(f,c)||t.if((0,V.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}o(UE,"validateUnion");F.validateUnion=UE});var am=h(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.validateKeywordUsage=yt.validSchemaType=yt.funcKeywordCode=yt.macroKeywordCode=void 0;var _e=I(),Cr=Ue(),GE=Ge(),ZE=wi();function zE(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,c=t.macro.call(a.self,i,s,a),u=sm(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(zE,"macroKeywordCode");yt.macroKeywordCode=zE;function KE(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:c,it:u}=e;WE(u,t);let l=!c&&t.compile?t.compile.call(u.self,s,a,u):t.validate,f=sm(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&&om(e),v(()=>e.error());else{let S=t.async?m():g();t.modifying&&om(e),v(()=>QE(e,S))}}o(d,"validateKeyword");function m(){let S=n.let("ruleErrs",null);return n.try(()=>y((0,_e._)`await `),b=>n.assign(p,!1).if((0,_e._)`${b} instanceof ${u.ValidationError}`,()=>n.assign(S,(0,_e._)`${b}.errors`),()=>n.throw(b))),S}o(m,"validateAsync");function g(){let S=(0,_e._)`${f}.errors`;return n.assign(S,null),y(_e.nil),S}o(g,"validateSync");function y(S=t.async?(0,_e._)`await `:_e.nil){let b=u.opts.passContext?Cr.default.this:Cr.default.self,P=!("compile"in t&&!c||t.schema===!1);n.assign(p,(0,_e._)`${S}${(0,GE.callValidateCode)(e,f,b,P)}`,t.modifying)}o(y,"assignValid");function v(S){var b;n.if((0,_e.not)((b=t.valid)!==null&&b!==void 0?b:p),S)}o(v,"reportErrs")}o(KE,"funcKeywordCode");yt.funcKeywordCode=KE;function om(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,_e._)`${n.parentData}[${n.parentDataProperty}]`))}o(om,"modifyData");function QE(e,t){let{gen:r}=e;r.if((0,_e._)`Array.isArray(${t})`,()=>{r.assign(Cr.default.vErrors,(0,_e._)`${Cr.default.vErrors} === null ? ${t} : ${Cr.default.vErrors}.concat(${t})`).assign(Cr.default.errors,(0,_e._)`${Cr.default.vErrors}.length`),(0,ZE.extendErrors)(e)},()=>e.error())}o(QE,"addErrs");function WE({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}o(WE,"checkAsyncKeyword");function sm(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(sm,"useKeyword");function YE(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(YE,"validSchemaType");yt.validSchemaType=YE;function JE({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(JE,"validateKeywordUsage");yt.validateKeywordUsage=JE});var um=h(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.extendSubschemaMode=Xt.extendSubschemaData=Xt.getSubschema=void 0;var vt=I(),cm=k();function XE(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,vt._)`${e.schemaPath}${(0,vt.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,vt._)`${e.schemaPath}${(0,vt.getProperty)(t)}${(0,vt.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,cm.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(XE,"getSubschema");Xt.getSubschema=XE;function e$(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,vt._)`${t.data}${(0,vt.getProperty)(r)}`,!0);u(d),e.errorPath=(0,vt.str)`${l}${(0,cm.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,vt._)`${r}`,e.dataPathArr=[...f,e.parentDataProperty]}if(i!==void 0){let l=i instanceof vt.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(e$,"extendSubschemaData");Xt.extendSubschemaData=e$;function t$(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(t$,"extendSubschemaMode");Xt.extendSubschemaMode=t$});var mu=h((aM,lm)=>{"use strict";lm.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 fm=h((uM,pm)=>{"use strict";var er=pm.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(){};as(t,n,i,e,"",e)};er.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};er.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};er.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};er.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 as(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 er.arrayKeywords)for(var d=0;d<p.length;d++)as(e,t,r,p[d],i+"/"+f+"/"+d,s,i,f,n,d)}else if(f in er.propsKeywords){if(p&&typeof p=="object")for(var m in p)as(e,t,r,p[m],i+"/"+f+"/"+r$(m),s,i,f,n,m)}else(f in er.keywords||e.allKeys&&!(f in er.skipKeywords))&&as(e,t,r,p,i+"/"+f,s,i,f,n)}r(n,i,s,a,c,u,l)}}o(as,"_traverse");function r$(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(r$,"escapeJsonPtr")});var Ii=h(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.getSchemaRefs=Te.resolveUrl=Te.normalizeId=Te._getFullPath=Te.getFullPath=Te.inlineRef=void 0;var n$=k(),i$=mu(),o$=fm(),s$=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function a$(e,t=!0){return typeof e=="boolean"?!0:t===!0?!hu(e):t?dm(e)<=t:!1}o(a$,"inlineRef");Te.inlineRef=a$;var c$=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function hu(e){for(let t in e){if(c$.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(hu)||typeof r=="object"&&hu(r))return!0}return!1}o(hu,"hasRef");function dm(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!s$.has(r)&&(typeof e[r]=="object"&&(0,n$.eachItem)(e[r],n=>t+=dm(n)),t===1/0))return 1/0}return t}o(dm,"countKeys");function mm(e,t="",r){r!==!1&&(t=En(t));let n=e.parse(t);return hm(e,n)}o(mm,"getFullPath");Te.getFullPath=mm;function hm(e,t){return e.serialize(t).split("#")[0]+"#"}o(hm,"_getFullPath");Te._getFullPath=hm;var u$=/#\/?$/;function En(e){return e?e.replace(u$,""):""}o(En,"normalizeId");Te.normalizeId=En;function l$(e,t,r){return r=En(r),e.resolve(t,r)}o(l$,"resolveUrl");Te.resolveUrl=l$;var p$=/^[a-z_][-a-z0-9._]*$/i;function f$(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=En(e[r]||t),s={"":i},a=mm(n,i,!1),c={},u=new Set;return o$(e,{allKeys:!0},(p,d,m,g)=>{if(g===void 0)return;let y=a+d,v=s[g];typeof p[r]=="string"&&(v=S.call(this,p[r])),b.call(this,p.$anchor),b.call(this,p.$dynamicAnchor),s[d]=v;function S(P){let $=this.opts.uriResolver.resolve;if(P=En(v?$(v,P):P),u.has(P))throw f(P);u.add(P);let _=this.refs[P];return typeof _=="string"&&(_=this.refs[_]),typeof _=="object"?l(p,_.schema,P):P!==En(y)&&(P[0]==="#"?(l(p,c[P],P),c[P]=p):this.refs[P]=y),P}o(S,"addRef");function b(P){if(typeof P=="string"){if(!p$.test(P))throw new Error(`invalid anchor "${P}"`);S.call(this,`#${P}`)}}o(b,"addAnchor")}),c;function l(p,d,m){if(d!==void 0&&!i$(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(f$,"getSchemaRefs");Te.getSchemaRefs=f$});var Ni=h(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.getData=tr.KeywordCxt=tr.validateFunctionCode=void 0;var bm=Qd(),gm=Ai(),yu=au(),cs=Ai(),d$=rm(),Ri=am(),gu=um(),O=I(),A=Ue(),m$=Ii(),Lt=k(),Ti=wi();function h$(e){if(Em(e)&&($m(e),Pm(e))){v$(e);return}_m(e,()=>(0,bm.topBoolOrEmptySchema)(e))}o(h$,"validateFunctionCode");tr.validateFunctionCode=h$;function _m({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,O._)`${A.default.data}, ${A.default.valCxt}`,n.$async,()=>{e.code((0,O._)`"use strict"; ${ym(r,i)}`),y$(e,i),e.code(s)}):e.func(t,(0,O._)`${A.default.data}, ${g$(i)}`,n.$async,()=>e.code(ym(r,i)).code(s))}o(_m,"validateFunction");function g$(e){return(0,O._)`{${A.default.instancePath}="", ${A.default.parentData}, ${A.default.parentDataProperty}, ${A.default.rootData}=${A.default.data}${e.dynamicRef?(0,O._)`, ${A.default.dynamicAnchors}={}`:O.nil}}={}`}o(g$,"destructureValCxt");function y$(e,t){e.if(A.default.valCxt,()=>{e.var(A.default.instancePath,(0,O._)`${A.default.valCxt}.${A.default.instancePath}`),e.var(A.default.parentData,(0,O._)`${A.default.valCxt}.${A.default.parentData}`),e.var(A.default.parentDataProperty,(0,O._)`${A.default.valCxt}.${A.default.parentDataProperty}`),e.var(A.default.rootData,(0,O._)`${A.default.valCxt}.${A.default.rootData}`),t.dynamicRef&&e.var(A.default.dynamicAnchors,(0,O._)`${A.default.valCxt}.${A.default.dynamicAnchors}`)},()=>{e.var(A.default.instancePath,(0,O._)`""`),e.var(A.default.parentData,(0,O._)`undefined`),e.var(A.default.parentDataProperty,(0,O._)`undefined`),e.var(A.default.rootData,A.default.data),t.dynamicRef&&e.var(A.default.dynamicAnchors,(0,O._)`{}`)})}o(y$,"destructureValCxtES5");function v$(e){let{schema:t,opts:r,gen:n}=e;_m(e,()=>{r.$comment&&t.$comment&&xm(e),E$(e),n.let(A.default.vErrors,null),n.let(A.default.errors,0),r.unevaluated&&S$(e),Om(e),x$(e)})}o(v$,"topSchemaObjCode");function S$(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(S$,"resetEvaluated");function ym(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(ym,"funcSourceUrl");function b$(e,t){if(Em(e)&&($m(e),Pm(e))){_$(e,t);return}(0,bm.boolOrEmptySchema)(e,t)}o(b$,"subschemaCode");function Pm({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(Pm,"schemaCxtHasRules");function Em(e){return typeof e.schema!="boolean"}o(Em,"isSchemaObj");function _$(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&xm(e),$$(e),O$(e);let s=n.const("_errs",A.default.errors);Om(e,s),n.var(t,(0,O._)`${s} === ${A.default.errors}`)}o(_$,"subSchemaObjCode");function $m(e){(0,Lt.checkUnknownRules)(e),P$(e)}o($m,"checkKeywords");function Om(e,t){if(e.opts.jtd)return vm(e,[],!1,t);let r=(0,gm.getSchemaTypes)(e.schema),n=(0,gm.coerceAndCheckDataType)(e,r);vm(e,r,!n,t)}o(Om,"typeAndKeywords");function P$(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Lt.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}o(P$,"checkRefsAndKeywords");function E$(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Lt.checkStrictMode)(e,"default is ignored in the schema root")}o(E$,"checkNoDefault");function $$(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,m$.resolveUrl)(e.opts.uriResolver,e.baseId,t))}o($$,"updateContext");function O$(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}o(O$,"checkAsyncSchema");function xm({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)e.code((0,O._)`${A.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._)`${A.default.self}.opts.$comment(${s}, ${a}, ${c}.schema)`)}}o(xm,"commentKeyword");function x$(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,O._)`${A.default.errors} === 0`,()=>t.return(A.default.data),()=>t.throw((0,O._)`new ${i}(${A.default.vErrors})`)):(t.assign((0,O._)`${n}.errors`,A.default.vErrors),s.unevaluated&&w$(e),t.return((0,O._)`${A.default.errors} === 0`))}o(x$,"returnResults");function w$({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(w$,"assignEvaluated");function vm(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,Lt.schemaHasRulesButRef)(s,f))){i.block(()=>Am(e,"$ref",f.all.$ref.definition));return}u.jtd||A$(e,t),i.block(()=>{for(let d of f.rules)p(d);p(f.post)});function p(d){(0,yu.shouldUseGroup)(s,d)&&(d.type?(i.if((0,cs.checkDataType)(d.type,a,u.strictNumbers)),Sm(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,cs.reportTypeError)(e)),i.endIf()):Sm(e,d),c||i.if((0,O._)`${A.default.errors} === ${n||0}`))}o(p,"groupKeywords")}o(vm,"schemaKeywords");function Sm(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,d$.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,yu.shouldUseRule)(n,s)&&Am(e,s.keyword,s.definition,t.type)})}o(Sm,"iterateKeywords");function A$(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(I$(e,t),e.opts.allowUnionTypes||T$(e,t),R$(e,e.dataTypes))}o(A$,"checkStrictTypes");function I$(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{wm(e.dataTypes,r)||vu(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),C$(e,t)}}o(I$,"checkContextTypes");function T$(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&vu(e,"use allowUnionTypes to allow union type keyword")}o(T$,"checkMultipleTypes");function R$(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,yu.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>N$(t,a))&&vu(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}o(R$,"checkKeywordTypes");function N$(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}o(N$,"hasApplicableType");function wm(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}o(wm,"includesType");function C$(e,t){let r=[];for(let n of e.dataTypes)wm(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}o(C$,"narrowSchemaTypes");function vu(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Lt.checkStrictMode)(e,t,e.opts.strictTypes)}o(vu,"strictTypesError");var Su=class Su{constructor(t,r,n){if((0,Ri.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,Lt.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",Im(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Ri.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",A.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?Ti.reportExtraError:Ti.reportError)(this,this.def.error,r)}$dataError(){(0,Ti.reportError)(this,this.def.$dataError||Ti.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Ti.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,cs.checkDataTypes)(u,r,s.opts.strictNumbers,cs.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,gu.getSubschema)(this.it,t);(0,gu.extendSubschemaData)(n,this.it,t),(0,gu.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return b$(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Lt.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Lt.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(Su,"KeywordCxt");var us=Su;tr.KeywordCxt=us;function Am(e,t,r,n){let i=new us(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Ri.funcKeywordCode)(i,r):"macro"in r?(0,Ri.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Ri.funcKeywordCode)(i,r)}o(Am,"keywordCode");var k$=/^\/(?:[^~]|~0|~1)*$/,j$=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Im(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return A.default.rootData;if(e[0]==="/"){if(!k$.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=A.default.rootData}else{let l=j$.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,Lt.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(Im,"getData");tr.getData=Im});var ls=h(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});var Pu=class Pu extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};o(Pu,"ValidationError");var bu=Pu;_u.default=bu});var Ci=h(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});var Eu=Ii(),xu=class xu extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Eu.resolveUrl)(t,r,n),this.missingSchema=(0,Eu.normalizeId)((0,Eu.getFullPath)(t,this.missingRef))}};o(xu,"MissingRefError");var $u=xu;Ou.default=$u});var ki=h(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.resolveSchema=Ze.getCompilingSchema=Ze.resolveRef=Ze.compileSchema=Ze.SchemaEnv=void 0;var nt=I(),q$=ls(),kr=Ue(),it=Ii(),Tm=k(),M$=Ni(),Iu=class Iu{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,it.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(Iu,"SchemaEnv");var $n=Iu;Ze.SchemaEnv=$n;function Au(e){let t=Rm.call(this,e);if(t)return t;let r=(0,it.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new nt.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),c;e.$async&&(c=a.scopeValue("Error",{ref:q$.default,code:(0,nt._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:kr.default.data,parentData:kr.default.parentData,parentDataProperty:kr.default.parentDataProperty,dataNames:[kr.default.data],dataPathArr:[nt.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,nt.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:nt.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,nt._)`""`,opts:this.opts,self:this},f;try{this._compilations.add(e),(0,M$.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let p=a.toString();f=`${a.scopeRefs(kr.default.scope)}return ${p}`,this.opts.code.process&&(f=this.opts.code.process(f,e));let m=new Function(`${kr.default.self}`,`${kr.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 nt.Name?void 0:g,items:y instanceof nt.Name?void 0:y,dynamicProps:g instanceof nt.Name,dynamicItems:y instanceof nt.Name},m.source&&(m.source.evaluated=(0,nt.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(Au,"compileSchema");Ze.compileSchema=Au;function D$(e,t,r){var n;r=(0,it.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=H$.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 $n({schema:a,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=L$.call(this,s)}o(D$,"resolveRef");Ze.resolveRef=D$;function L$(e){return(0,it.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Au.call(this,e)}o(L$,"inlineOrCompile");function Rm(e){for(let t of this._compilations)if(F$(t,e))return t}o(Rm,"getCompilingSchema");Ze.getCompilingSchema=Rm;function F$(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}o(F$,"sameSchemaEnv");function H$(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||ps.call(this,e,t)}o(H$,"resolve");function ps(e,t){let r=this.opts.uriResolver.parse(t),n=(0,it._getFullPath)(this.opts.uriResolver,r),i=(0,it.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return wu.call(this,r,e);let s=(0,it.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let c=ps.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:wu.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Au.call(this,a),s===(0,it.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,it.resolveUrl)(this.opts.uriResolver,i,l)),new $n({schema:c,schemaId:u,root:e,baseId:i})}return wu.call(this,r,a)}}o(ps,"resolveSchema");Ze.resolveSchema=ps;var V$=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function wu(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,Tm.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!V$.has(c)&&l&&(t=(0,it.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,Tm.schemaHasRulesButRef)(r,this.RULES)){let c=(0,it.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=ps.call(this,n,c)}let{schemaId:a}=this.opts;if(s=s||new $n({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}o(wu,"getJsonPointer")});var Nm=h((_M,B$)=>{B$.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 km=h((PM,Cm)=>{"use strict";var U$={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};Cm.exports={HEX:U$}});var Vm=h((EM,Hm)=>{"use strict";var{HEX:G$}=km();function Dm(e){if(Fm(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:z$(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}o(Dm,"normalizeIPv4");function Tu(e,t=!1){let r="",n=!0;for(let i of e){if(G$[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}o(Tu,"stringArrayToHexStripped");function Z$(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=Tu(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(Tu(i))),r.address=n.join(""),r}o(Z$,"getIPV6");function Lm(e,t={}){if(Fm(e,":")<2)return{host:e,isIPV6:!1};let r=Z$(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(Lm,"normalizeIPv6");function z$(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(z$,"stripLeadingZeros");function Fm(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}o(Fm,"findToken");var jm=/^\.\.?\//u,qm=/^\/\.(?:\/|$)/u,Mm=/^\/\.\.(?:\/|$)/u,K$=/^\/?(?:.|\n)*?(?=\/|$)/u;function Q$(e){let t=[];for(;e.length;)if(e.match(jm))e=e.replace(jm,"");else if(e.match(qm))e=e.replace(qm,"/");else if(e.match(Mm))e=e.replace(Mm,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(K$);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(Q$,"removeDotSegments");function W$(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(W$,"normalizeComponentEncoding");function Y$(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=Dm(n);if(i.isIPV4)n=i.host;else{let s=Lm(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(Y$,"recomposeAuthority");Hm.exports={recomposeAuthority:Y$,normalizeComponentEncoding:W$,removeDotSegments:Q$,normalizeIPv4:Dm,normalizeIPv6:Lm,stringArrayToHexStripped:Tu}});var Km=h((OM,zm)=>{"use strict";var J$=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,X$=/([\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 Um(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}o(Um,"httpParse");function Gm(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(Gm,"httpSerialize");function e1(e){return e.secure=Bm(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}o(e1,"wsParse");function t1(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(t1,"wsSerialize");function r1(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(X$);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=Ru[i];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}o(r1,"urnParse");function n1(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=Ru[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(n1,"urnSerialize");function i1(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!J$.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}o(i1,"urnuuidParse");function o1(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}o(o1,"urnuuidSerialize");var Zm={scheme:"http",domainHost:!0,parse:Um,serialize:Gm},s1={scheme:"https",domainHost:Zm.domainHost,parse:Um,serialize:Gm},fs={scheme:"ws",domainHost:!0,parse:e1,serialize:t1},a1={scheme:"wss",domainHost:fs.domainHost,parse:fs.parse,serialize:fs.serialize},c1={scheme:"urn",parse:r1,serialize:n1,skipNormalize:!0},u1={scheme:"urn:uuid",parse:i1,serialize:o1,skipNormalize:!0},Ru={http:Zm,https:s1,ws:fs,wss:a1,urn:c1,"urn:uuid":u1};zm.exports=Ru});var Wm=h((wM,ms)=>{"use strict";var{normalizeIPv6:l1,normalizeIPv4:p1,removeDotSegments:ji,recomposeAuthority:f1,normalizeComponentEncoding:ds}=Vm(),Nu=Km();function d1(e,t){return typeof e=="string"?e=St(Ft(e,t),t):typeof e=="object"&&(e=Ft(St(e,t),t)),e}o(d1,"normalize");function m1(e,t,r){let n=Object.assign({scheme:"null"},r),i=Qm(Ft(e,n),Ft(t,n),n,!0);return St(i,{...n,skipEscape:!0})}o(m1,"resolve");function Qm(e,t,r,n){let i={};return n||(e=Ft(St(e,r),r),t=Ft(St(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=ji(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=ji(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=ji(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=ji(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(Qm,"resolveComponents");function h1(e,t,r){return typeof e=="string"?(e=unescape(e),e=St(ds(Ft(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=St(ds(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=St(ds(Ft(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=St(ds(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}o(h1,"equal");function St(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=Nu[(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=f1(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=ji(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(St,"serialize");var g1=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function y1(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||g1[t])return!0;return!1}o(y1,"nonSimpleDomain");var v1=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Ft(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(v1);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=p1(n.host);if(u.isIPV4===!1){let l=l1(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=Nu[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&s===!1&&y1(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(Ft,"parse");var Cu={SCHEMES:Nu,normalize:d1,resolve:m1,resolveComponents:Qm,equal:h1,serialize:St,parse:Ft};ms.exports=Cu;ms.exports.default=Cu;ms.exports.fastUri=Cu});var Jm=h(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});var Ym=Wm();Ym.code='require("ajv/dist/runtime/uri").default';ku.default=Ym});var xn=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 S1=Ni();Object.defineProperty(ae,"KeywordCxt",{enumerable:!0,get:o(function(){return S1.KeywordCxt},"get")});var On=I();Object.defineProperty(ae,"_",{enumerable:!0,get:o(function(){return On._},"get")});Object.defineProperty(ae,"str",{enumerable:!0,get:o(function(){return On.str},"get")});Object.defineProperty(ae,"stringify",{enumerable:!0,get:o(function(){return On.stringify},"get")});Object.defineProperty(ae,"nil",{enumerable:!0,get:o(function(){return On.nil},"get")});Object.defineProperty(ae,"Name",{enumerable:!0,get:o(function(){return On.Name},"get")});Object.defineProperty(ae,"CodeGen",{enumerable:!0,get:o(function(){return On.CodeGen},"get")});var b1=ls(),nh=Ci(),_1=su(),qi=ki(),P1=I(),Mi=Ii(),hs=Ai(),qu=k(),Xm=Nm(),E1=Jm(),ih=o((e,t)=>new RegExp(e,t),"defaultRegExp");ih.code="new RegExp";var $1=["removeAdditional","useDefaults","coerceTypes"],O1=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),x1={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."},w1={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},eh=200;function A1(e){var t,r,n,i,s,a,c,u,l,f,p,d,m,g,y,v,S,b,P,$,_,w,N,je,pe;let J=e.strict,te=(t=e.code)===null||t===void 0?void 0:t.optimize,Se=te===!0||te===void 0?1:te||0,ln=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:ih,pn=(i=e.uriResolver)!==null&&i!==void 0?i:E1.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:J)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:J)!==null&&u!==void 0?u:!0,strictTypes:(f=(l=e.strictTypes)!==null&&l!==void 0?l:J)!==null&&f!==void 0?f:"log",strictTuples:(d=(p=e.strictTuples)!==null&&p!==void 0?p:J)!==null&&d!==void 0?d:"log",strictRequired:(g=(m=e.strictRequired)!==null&&m!==void 0?m:J)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:Se,regExp:ln}:{optimize:Se,regExp:ln},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:eh,loopEnum:(v=e.loopEnum)!==null&&v!==void 0?v:eh,meta:(S=e.meta)!==null&&S!==void 0?S:!0,messages:(b=e.messages)!==null&&b!==void 0?b:!0,inlineRefs:(P=e.inlineRefs)!==null&&P!==void 0?P:!0,schemaId:($=e.schemaId)!==null&&$!==void 0?$:"$id",addUsedSchema:(_=e.addUsedSchema)!==null&&_!==void 0?_:!0,validateSchema:(w=e.validateSchema)!==null&&w!==void 0?w:!0,validateFormats:(N=e.validateFormats)!==null&&N!==void 0?N:!0,unicodeRegExp:(je=e.unicodeRegExp)!==null&&je!==void 0?je:!0,int32range:(pe=e.int32range)!==null&&pe!==void 0?pe:!0,uriResolver:pn}}o(A1,"requiredOptions");var Mu=class Mu{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...A1(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new P1.ValueScope({scope:{},prefixes:O1,es5:r,lines:n}),this.logger=k1(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,_1.getRules)(),th.call(this,x1,t,"NOT SUPPORTED"),th.call(this,w1,t,"DEPRECATED","warn"),this._metaOpts=N1.call(this),t.formats&&T1.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&R1.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),I1.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=Xm;n==="id"&&(i={...Xm},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 nh.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,Mi.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=rh.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new qi.SchemaEnv({schema:{},schemaId:n});if(r=qi.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=rh.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,Mi.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(q1.call(this,n,r),!r)return(0,qu.eachItem)(n,s=>ju.call(this,s)),this;D1.call(this,r);let i={...r,type:(0,hs.getJSONTypes)(r.type),schemaType:(0,hs.getJSONTypes)(r.schemaType)};return(0,qu.eachItem)(n,i.type.length===0?s=>ju.call(this,s,i):s=>i.type.forEach(a=>ju.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]=oh(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,Mi.normalizeId)(a||n);let l=Mi.getSchemaRefs.call(this,t,n);return u=new qi.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):qi.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{qi.compileSchema.call(this,t)}finally{this.opts=r}}};o(Mu,"Ajv");var Di=Mu;Di.ValidationError=b1.default;Di.MissingRefError=nh.default;ae.default=Di;function th(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(th,"checkOptions");function rh(e){return e=(0,Mi.normalizeId)(e),this.schemas[e]||this.refs[e]}o(rh,"getSchEnv");function I1(){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(I1,"addInitialSchemas");function T1(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}o(T1,"addInitialFormats");function R1(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(R1,"addInitialKeywords");function N1(){let e={...this.opts};for(let t of $1)delete e[t];return e}o(N1,"getMetaSchemaOptions");var C1={log(){},warn(){},error(){}};function k1(e){if(e===!1)return C1;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(k1,"getLogger");var j1=/^[a-z_$][a-z0-9_$:-]*$/i;function q1(e,t){let{RULES:r}=this;if((0,qu.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!j1.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(q1,"checkKeyword");function ju(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,hs.getJSONTypes)(t.type),schemaType:(0,hs.getJSONTypes)(t.schemaType)}};t.before?M1.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(ju,"addRule");function M1(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(M1,"addBeforeRule");function D1(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=oh(t)),e.validateSchema=this.compile(t,!0))}o(D1,"keywordMetaschema");var L1={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function oh(e){return{anyOf:[e,L1]}}o(oh,"schemaOrData")});var Li=h(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.callRef=jr.getValidate=void 0;var F1=Ci(),sh=Ge(),Re=I(),wn=Ue(),ah=ki(),gs=k(),H1={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=ah.resolveRef.call(u,l,i,r);if(f===void 0)throw new F1.default(n.opts.uriResolver,i,r);if(f instanceof ah.SchemaEnv)return d(f);return m(f);function p(){if(s===l)return ys(e,a,s,s.$async);let g=t.scopeValue("root",{ref:l});return ys(e,(0,Re._)`${g}.validate`,l,l.$async)}function d(g){let y=ch(e,g);ys(e,y,g,g.$async)}function m(g){let y=t.scopeValue("schema",c.code.source===!0?{ref:g,code:(0,Re.stringify)(g)}:{ref:g}),v=t.name("valid"),S=e.subschema({schema:g,dataTypes:[],schemaPath:Re.nil,topSchemaRef:y,errSchemaPath:r},v);e.mergeEvaluated(S),e.ok(v)}}};function ch(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Re._)`${r.scopeValue("wrapper",{ref:t})}.validate`}o(ch,"getValidate");jr.getValidate=ch;function ys(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:c,opts:u}=s,l=u.passContext?wn.default.this:Re.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,Re._)`await ${(0,sh.callValidateCode)(e,t,l)}`),m(t),a||i.assign(g,!0)},y=>{i.if((0,Re._)`!(${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,sh.callValidateCode)(e,t,l),()=>m(t),()=>d(t))}o(p,"callSyncRef");function d(g){let y=(0,Re._)`${g}.errors`;i.assign(wn.default.vErrors,(0,Re._)`${wn.default.vErrors} === null ? ${y} : ${wn.default.vErrors}.concat(${y})`),i.assign(wn.default.errors,(0,Re._)`${wn.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=gs.mergeEvaluated.props(i,v.props,s.props));else{let S=i.var("props",(0,Re._)`${g}.evaluated.props`);s.props=gs.mergeEvaluated.props(i,S,s.props,Re.Name)}if(s.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(s.items=gs.mergeEvaluated.items(i,v.items,s.items));else{let S=i.var("items",(0,Re._)`${g}.evaluated.items`);s.items=gs.mergeEvaluated.items(i,S,s.items,Re.Name)}}o(m,"addEvaluatedFrom")}o(ys,"callRef");jr.callRef=ys;jr.default=H1});var uh=h(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});var V1=Li(),B1=["$schema","id","$defs",{keyword:"$comment"},"definitions",V1.default];Du.default=B1});var lh=h(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});var Lu=xn(),U1=I(),rr=U1.operators,Fu={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:rr.LTE,fail:rr.GT},{okStr:"<",ok:rr.LT,fail:rr.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:rr.GTE,fail:rr.LT},{okStr:">",ok:rr.GT,fail:rr.LTE}]}},G1={message:o(e=>Lu.str`must be ${Hu(e).okStr} ${e.schemaCode}`,"message"),params:o(e=>Lu._`{comparison: ${Hu(e).okStr}, limit: ${e.schemaCode}}`,"params")},Z1={keyword:Object.keys(Fu),type:"number",schemaType:"number",$data:!0,error:G1,code(e){let{data:t,schemaCode:r}=e;e.fail$data(Lu._`${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[Fu[r].exclusive]?1:0;return Fu[r].ops[n]}o(Hu,"kwdOp");Vu.default=Z1});var fh=h(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});var ph={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},z1={keyword:Object.keys(ph),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=ph[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};Bu.default=z1});var Gu=h(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});var Fi=I(),K1={message:o(({schemaCode:e})=>(0,Fi.str)`must be multiple of ${e}`,"message"),params:o(({schemaCode:e})=>(0,Fi._)`{multipleOf: ${e}}`,"params")},Q1={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:K1,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),c=s?(0,Fi._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,Fi._)`${a} !== parseInt(${a})`;e.fail$data((0,Fi._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};Uu.default=Q1});var mh=h(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});function dh(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(dh,"ucs2length");Zu.default=dh;dh.code='require("ajv/dist/runtime/ucs2length").default'});var Ku=h(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});var qr=I(),W1=k(),Y1=mh(),J1={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,qr.str)`must NOT have ${r} than ${t} characters`},params:o(({schemaCode:e})=>(0,qr._)`{limit: ${e}}`,"params")},X1={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:J1,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?qr.operators.GT:qr.operators.LT,a=i.opts.unicode===!1?(0,qr._)`${r}.length`:(0,qr._)`${(0,W1.useFunc)(e.gen,Y1.default)}(${r})`;e.fail$data((0,qr._)`${a} ${s} ${n}`)}};zu.default=X1});var Wu=h(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});var eO=Ge(),vs=I(),tO={message:o(({schemaCode:e})=>(0,vs.str)`must match pattern "${e}"`,"message"),params:o(({schemaCode:e})=>(0,vs._)`{pattern: ${e}}`,"params")},rO={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:tO,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",c=r?(0,vs._)`(new RegExp(${i}, ${a}))`:(0,eO.usePattern)(e,n);e.fail$data((0,vs._)`!${c}.test(${t})`)}};Qu.default=rO});var Ju=h(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});var Hi=I(),nO={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Hi.str)`must NOT have ${r} than ${t} properties`},params:o(({schemaCode:e})=>(0,Hi._)`{limit: ${e}}`,"params")},iO={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:nO,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Hi.operators.GT:Hi.operators.LT;e.fail$data((0,Hi._)`Object.keys(${r}).length ${i} ${n}`)}};Yu.default=iO});var el=h(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});var Vi=Ge(),Bi=I(),oO=k(),sO={message:o(({params:{missingProperty:e}})=>(0,Bi.str)`must have required property '${e}'`,"message"),params:o(({params:{missingProperty:e}})=>(0,Bi._)`{missingProperty: ${e}}`,"params")},aO={keyword:"required",type:"object",schemaType:"array",$data:!0,error:sO,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,S=`required property "${y}" is not defined at "${v}" (strictRequired)`;(0,oO.checkStrictMode)(a,S,a.opts.strictRequired)}}function l(){if(u||s)e.block$data(Bi.nil,p);else for(let m of r)(0,Vi.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,Vi.checkMissingProp)(e,r,m)),(0,Vi.reportMissingProp)(e,m),t.else()}o(f,"exitOnErrorMode");function p(){t.forOf("prop",n,m=>{e.setParams({missingProperty:m}),t.if((0,Vi.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,Vi.propertyInData)(t,i,m,c.ownProperties)),t.if((0,Bi.not)(g),()=>{e.error(),t.break()})},Bi.nil)}o(d,"loopUntilMissing")}};Xu.default=aO});var rl=h(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var Ui=I(),cO={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Ui.str)`must NOT have ${r} than ${t} items`},params:o(({schemaCode:e})=>(0,Ui._)`{limit: ${e}}`,"params")},uO={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:cO,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Ui.operators.GT:Ui.operators.LT;e.fail$data((0,Ui._)`${r}.length ${i} ${n}`)}};tl.default=uO});var Ss=h(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});var hh=mu();hh.code='require("ajv/dist/runtime/equal").default';nl.default=hh});var sl=h(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var il=Ai(),ce=I(),lO=k(),pO=Ss(),fO={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")},dO={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:fO,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:a,it:c}=e;if(!n&&!i)return;let u=t.let("valid"),l=s.items?(0,il.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"),S=(0,il.checkDataTypes)(l,v,c.opts.strictNumbers,il.DataType.Wrong),b=t.const("indices",(0,ce._)`{}`);t.for((0,ce._)`;${g}--;`,()=>{t.let(v,(0,ce._)`${r}[${g}]`),t.if(S,(0,ce._)`continue`),l.length>1&&t.if((0,ce._)`typeof ${v} == "string"`,(0,ce._)`${v} += "_"`),t.if((0,ce._)`typeof ${b}[${v}] == "number"`,()=>{t.assign(y,(0,ce._)`${b}[${v}]`),e.error(),t.assign(u,!1).break()}).code((0,ce._)`${b}[${v}] = ${g}`)})}o(d,"loopN");function m(g,y){let v=(0,lO.useFunc)(t,pO.default),S=t.name("outer");t.label(S).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(S)})))}o(m,"loopN2")}};ol.default=dO});var ul=h(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});var al=I(),mO=k(),hO=Ss(),gO={message:"must be equal to constant",params:o(({schemaCode:e})=>(0,al._)`{allowedValue: ${e}}`,"params")},yO={keyword:"const",$data:!0,error:gO,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,al._)`!${(0,mO.useFunc)(t,hO.default)}(${r}, ${i})`):e.fail((0,al._)`${s} !== ${r}`)}};cl.default=yO});var pl=h(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});var Gi=I(),vO=k(),SO=Ss(),bO={message:"must be equal to one of the allowed values",params:o(({schemaCode:e})=>(0,Gi._)`{allowedValues: ${e}}`,"params")},_O={keyword:"enum",schemaType:"array",$data:!0,error:bO,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,vO.useFunc)(t,SO.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,Gi.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,Gi._)`${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,Gi._)`${l()}(${r}, ${m}[${g}])`:(0,Gi._)`${r} === ${y}`}o(d,"equalCode")}};ll.default=_O});var gh=h(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});var PO=lh(),EO=fh(),$O=Gu(),OO=Ku(),xO=Wu(),wO=Ju(),AO=el(),IO=rl(),TO=sl(),RO=ul(),NO=pl(),CO=[PO.default,EO.default,$O.default,OO.default,xO.default,wO.default,AO.default,IO.default,TO.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},RO.default,NO.default];fl.default=CO});var ml=h(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.validateAdditionalItems=void 0;var Mr=I(),dl=k(),kO={message:o(({params:{len:e}})=>(0,Mr.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Mr._)`{limit: ${e}}`,"params")},jO={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:kO,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,dl.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}yh(e,n)}};function yh(e,t){let{gen:r,schema:n,data:i,keyword:s,it:a}=e;a.items=!0;let c=r.const("len",(0,Mr._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Mr._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,dl.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,Mr._)`${c} <= ${t.length}`);r.if((0,Mr.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,c,f=>{e.subschema({keyword:s,dataProp:f,dataPropType:dl.Type.Num},l),a.allErrors||r.if((0,Mr.not)(l),()=>r.break())})}o(u,"validateItems")}o(yh,"validateAdditionalItems");Zi.validateAdditionalItems=yh;Zi.default=jO});var hl=h(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.validateTuple=void 0;var vh=I(),bs=k(),qO=Ge(),MO={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return Sh(e,"additionalItems",t);r.items=!0,!(0,bs.alwaysValidSchema)(r,t)&&e.ok((0,qO.validateArray)(e))}};function Sh(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=bs.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,vh._)`${s}.length`);r.forEach((p,d)=>{(0,bs.alwaysValidSchema)(c,p)||(n.if((0,vh._)`${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,bs.checkStrictMode)(c,v,d.strictTuples)}}o(f,"checkStrictTuple")}o(Sh,"validateTuple");zi.validateTuple=Sh;zi.default=MO});var bh=h(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var DO=hl(),LO={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o(e=>(0,DO.validateTuple)(e,"items"),"code")};gl.default=LO});var Ph=h(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var _h=I(),FO=k(),HO=Ge(),VO=ml(),BO={message:o(({params:{len:e}})=>(0,_h.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,_h._)`{limit: ${e}}`,"params")},UO={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:BO,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,FO.alwaysValidSchema)(n,t)&&(i?(0,VO.validateAdditionalItems)(e,i):e.ok((0,HO.validateArray)(e)))}};yl.default=UO});var Eh=h(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var ze=I(),_s=k(),GO={message:o(({params:{min:e,max:t}})=>t===void 0?(0,ze.str)`must contain at least ${e} valid item(s)`:(0,ze.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,ze._)`{minContains: ${e}}`:(0,ze._)`{minContains: ${e}, maxContains: ${t}}`,"params")},ZO={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:GO,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,ze._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,_s.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,_s.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,_s.alwaysValidSchema)(s,r)){let y=(0,ze._)`${f} >= ${a}`;c!==void 0&&(y=(0,ze._)`${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,ze._)`${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,S=>{e.subschema({keyword:"contains",dataProp:S,dataPropType:_s.Type.Num,compositeRule:!0},y),v()})}o(m,"validateItems");function g(y){t.code((0,ze._)`${y}++`),c===void 0?t.if((0,ze._)`${y} >= ${a}`,()=>t.assign(p,!0).break()):(t.if((0,ze._)`${y} > ${c}`,()=>t.assign(p,!1).break()),a===1?t.assign(p,!0):t.if((0,ze._)`${y} >= ${a}`,()=>t.assign(p,!0)))}o(g,"checkLimits")}};vl.default=ZO});var Ps=h(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.validateSchemaDeps=bt.validatePropertyDeps=bt.error=void 0;var Sl=I(),zO=k(),Ki=Ge();bt.error={message:o(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Sl.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:o(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Sl._)`{property: ${e},
10
10
  missingProperty: ${n},
11
11
  depsCount: ${t},
12
- deps: ${r}}`,"params")};var QO={keyword:"dependencies",type:"object",schemaType:"object",error:bt.error,code(e){let[t,r]=WO(e);$h(e,t),Oh(e,r)}};function WO({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(WO,"splitDependencies");function $h(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let a in t){let c=t[a];if(c.length===0)continue;let u=(0,Ki.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:c.length,deps:c.join(", ")}),i.allErrors?r.if(u,()=>{for(let l of c)(0,Ki.checkReportMissingProp)(e,l)}):(r.if((0,Sl._)`${u} && (${(0,Ki.checkMissingProp)(e,c,s)})`),(0,Ki.reportMissingProp)(e,s),r.else())}}o($h,"validatePropertyDeps");bt.validatePropertyDeps=$h;function Oh(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let c in t)(0,KO.alwaysValidSchema)(s,t[c])||(r.if((0,Ki.propertyInData)(r,n,c,s.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:c},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}o(Oh,"validateSchemaDeps");bt.validateSchemaDeps=Oh;bt.default=QO});var wh=h(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});var xh=I(),YO=k(),JO={message:"property name must be valid",params:o(({params:e})=>(0,xh._)`{propertyName: ${e.propertyName}}`,"params")},XO={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:JO,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,YO.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,xh.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};bl.default=XO});var Pl=h(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});var Es=Ge(),ot=I(),ex=Ue(),$s=k(),tx={message:"must NOT have additional properties",params:o(({params:e})=>(0,ot._)`{additionalProperty: ${e.additionalProperty}}`,"params")},rx={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:tx,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,$s.alwaysValidSchema)(a,r))return;let l=(0,Es.allSchemaProperties)(n.properties),f=(0,Es.allSchemaProperties)(n.patternProperties);p(),e.ok((0,ot._)`${s} === ${ex.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 S;if(l.length>8){let _=(0,$s.schemaRefOrVal)(a,n.properties,"properties");S=(0,Es.isOwnProperty)(t,_,v)}else l.length?S=(0,ot.or)(...l.map(_=>(0,ot._)`${v} === ${_}`)):S=ot.nil;return f.length&&(S=(0,ot.or)(S,...f.map(_=>(0,ot._)`${(0,Es.usePattern)(e,_)}.test(${v})`))),(0,ot.not)(S)}o(d,"isAdditional");function m(v){t.code((0,ot._)`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,$s.alwaysValidSchema)(a,r)){let S=t.name("valid");u.removeAdditional==="failing"?(y(v,S,!1),t.if((0,ot.not)(S),()=>{e.reset(),m(v)})):(y(v,S),c||t.if((0,ot.not)(S),()=>t.break()))}}o(g,"additionalPropertyCode");function y(v,S,_){let $={keyword:"additionalProperties",dataProp:v,dataPropType:$s.Type.Str};_===!1&&Object.assign($,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema($,S)}o(y,"applyAdditionalSchema")}};_l.default=rx});var Th=h($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var nx=Ni(),Ah=Ge(),El=k(),Ih=Pl(),ix={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&&Ih.default.code(new nx.KeywordCxt(s,Ih.default,"additionalProperties"));let a=(0,Ah.allSchemaProperties)(r);for(let p of a)s.definedProperties.add(p);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=El.mergeEvaluated.props(t,(0,El.toHash)(a),s.props));let c=a.filter(p=>!(0,El.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,Ah.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")}};$l.default=ix});var kh=h(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var Rh=Ge(),Os=I(),Nh=k(),Ch=k(),ox={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,Rh.allSchemaProperties)(r),u=c.filter(y=>(0,Nh.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,Ch.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,Nh.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,Rh.usePattern)(e,y)}.test(${v})`,()=>{let S=u.includes(y);S||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:v,dataPropType:Ch.Type.Str},f),s.opts.unevaluated&&p!==!0?t.assign((0,Os._)`${p}[${v}]`,!0):!S&&!s.allErrors&&t.if((0,Os.not)(f),()=>t.break())})})}o(g,"validateProperties")}};Ol.default=ox});var jh=h(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var sx=k(),ax={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,sx.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"}};xl.default=ax});var qh=h(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});var cx=Ge(),ux={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:cx.validateUnion,error:{message:"must match a schema in anyOf"}};wl.default=ux});var Mh=h(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});var xs=I(),lx=k(),px={message:"must match exactly one schema in oneOf",params:o(({params:e})=>(0,xs._)`{passingSchemas: ${e.passing}}`,"params")},fx={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:px,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,lx.alwaysValidSchema)(i,f)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},u),p>0&&t.if((0,xs._)`${u} && ${a}`).assign(a,!1).assign(c,(0,xs._)`[${c}, ${p}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,p),d&&e.mergeEvaluated(d,xs.Name)})})}o(l,"validateOneOf")}};Al.default=fx});var Dh=h(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var dx=k(),mx={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,dx.alwaysValidSchema)(n,s))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};Il.default=mx});var Hh=h(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});var ws=I(),Fh=k(),hx={message:o(({params:e})=>(0,ws.str)`must match "${e.ifClause}" schema`,"message"),params:o(({params:e})=>(0,ws._)`{failingKeyword: ${e.ifClause}}`,"params")},gx={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:hx,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,Fh.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=Lh(n,"then"),s=Lh(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,ws.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,ws._)`${f}`):e.setParams({ifClause:f})}}o(l,"validateClause")}};function Lh(e,t){let r=e.schema[t];return r!==void 0&&!(0,Fh.alwaysValidSchema)(e,r)}o(Lh,"hasSchema");Tl.default=gx});var Vh=h(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});var yx=k(),vx={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,yx.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Rl.default=vx});var Cl=h(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});var Sx=ml(),bx=bh(),_x=hl(),Px=Ph(),Ex=Eh(),$x=Ps(),Ox=wh(),xx=Pl(),wx=Th(),Ax=kh(),Ix=jh(),Tx=qh(),Rx=Mh(),Nx=Dh(),Cx=Hh(),kx=Vh();function jx(e=!1){let t=[Ix.default,Tx.default,Rx.default,Nx.default,Cx.default,kx.default,Ox.default,xx.default,$x.default,wx.default,Ax.default];return e?t.push(bx.default,Px.default):t.push(Sx.default,_x.default),t.push(Ex.default),t}o(jx,"getApplicator");Nl.default=jx});var Bh=h(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});var Y=I(),qx={message:o(({schemaCode:e})=>(0,Y.str)`must match format "${e}"`,"message"),params:o(({schemaCode:e})=>(0,Y._)`{format: ${e}}`,"params")},Mx={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:qx,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,Y._)`${g}[${a}]`),v=r.let("fType"),S=r.let("format");r.if((0,Y._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(v,(0,Y._)`${y}.type || "string"`).assign(S,(0,Y._)`${y}.validate`),()=>r.assign(v,(0,Y._)`"string"`).assign(S,y)),e.fail$data((0,Y.or)(_(),$()));function _(){return u.strictSchema===!1?Y.nil:(0,Y._)`${a} && !${S}`}o(_,"unknownFmt");function $(){let E=f.$async?(0,Y._)`(${y}.async ? await ${S}(${n}) : ${S}(${n}))`:(0,Y._)`${S}(${n})`,b=(0,Y._)`(typeof ${S} == "function" ? ${E} : ${S}.test(${n}))`;return(0,Y._)`${S} && ${S} !== true && ${v} === ${t} && !${b}`}o($,"invalidFmt")}o(d,"validate$DataFormat");function m(){let g=p.formats[s];if(!g){_();return}if(g===!0)return;let[y,v,S]=$(g);y===t&&e.pass(E());function _(){if(u.strictSchema===!1){p.logger.warn(b());return}throw new Error(b());function b(){return`unknown format "${s}" ignored in schema at path "${l}"`}}o(_,"unknownFormat");function $(b){let w=b instanceof RegExp?(0,Y.regexpCode)(b):u.code.formats?(0,Y._)`${u.code.formats}${(0,Y.getProperty)(s)}`:void 0,N=r.scopeValue("formats",{key:s,ref:b,code:w});return typeof b=="object"&&!(b instanceof RegExp)?[b.type||"string",b.validate,(0,Y._)`${N}.validate`]:["string",b,N]}o($,"getFormat");function E(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!f.$async)throw new Error("async format in sync schema");return(0,Y._)`await ${S}(${n})`}return typeof v=="function"?(0,Y._)`${S}(${n})`:(0,Y._)`${S}.test(${n})`}o(E,"validCondition")}o(m,"validateFormat")}};kl.default=Mx});var ql=h(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});var Dx=Bh(),Lx=[Dx.default];jl.default=Lx});var Uh=h(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});var Fx=uh(),Hx=gh(),Vx=Cl(),Bx=ql(),Ux=["title","description","default"],Gx=[Fx.default,Hx.default,Vx.default(),Bx.default,Ux];Ml.default=Gx});var Zh=h(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.DiscrError=void 0;var Gh;(function(e){e.Tag="tag",e.Mapping="mapping"})(Gh||(As.DiscrError=Gh={}))});var Fl=h(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});var An=I(),Dl=Zh(),zh=ki(),Zx=Ci(),zx=k(),Kx={message:o(({params:{discrError:e,tagName:t}})=>e===Dl.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,An._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},Qx={keyword:"discriminator",type:"object",schemaType:"object",error:Kx,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,An._)`${r}${(0,An.getProperty)(c)}`);t.if((0,An._)`typeof ${l} == "string"`,()=>f(),()=>e.error(!1,{discrError:Dl.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,An._)`${l} === ${g}`),t.assign(u,p(m[g]));t.else(),e.error(!1,{discrError:Dl.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,An.Name),g}o(p,"applyTagSchema");function d(){var m;let g={},y=S(i),v=!0;for(let E=0;E<a.length;E++){let b=a[E];if(b!=null&&b.$ref&&!(0,zx.schemaHasRulesButRef)(b,s.self.RULES)){let N=b.$ref;if(b=zh.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,N),b instanceof zh.SchemaEnv&&(b=b.schema),b===void 0)throw new Zx.default(s.opts.uriResolver,s.baseId,N)}let w=(m=b==null?void 0:b.properties)===null||m===void 0?void 0:m[c];if(typeof w!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);v=v&&(y||S(b)),_(w,E)}if(!v)throw new Error(`discriminator: "${c}" must be required`);return g;function S({required:E}){return Array.isArray(E)&&E.includes(c)}function _(E,b){if(E.const)$(E.const,b);else if(E.enum)for(let w of E.enum)$(w,b);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function $(E,b){if(typeof E!="string"||E in g)throw new Error(`discriminator: "${c}" values must be unique strings`);g[E]=b}}o(d,"getMapping")}};Ll.default=Qx});var Kh=h((U4,Wx)=>{Wx.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 Yh=h((re,Wh)=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.CodeGen=re.Name=re.nil=re.stringify=re.str=re._=re.KeywordCxt=void 0;var Yx=xn(),Jx=Uh(),Xx=Fl(),Qh=Kh(),ew=["/properties"],Is="http://json-schema.org/draft-04/schema",Hl=class Hl extends Yx.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),Jx.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Xx.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(Qh,ew):Qh;this.addMetaSchema(t,Is,!1),this.refs["http://json-schema.org/schema"]=Is}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Is)?Is:void 0)}};o(Hl,"Ajv");var Ts=Hl;Wh.exports=re=Ts;Object.defineProperty(re,"__esModule",{value:!0});re.default=Ts;var tw=xn();Object.defineProperty(re,"KeywordCxt",{enumerable:!0,get:o(function(){return tw.KeywordCxt},"get")});var In=xn();Object.defineProperty(re,"_",{enumerable:!0,get:o(function(){return In._},"get")});Object.defineProperty(re,"str",{enumerable:!0,get:o(function(){return In.str},"get")});Object.defineProperty(re,"stringify",{enumerable:!0,get:o(function(){return In.stringify},"get")});Object.defineProperty(re,"nil",{enumerable:!0,get:o(function(){return In.nil},"get")});Object.defineProperty(re,"Name",{enumerable:!0,get:o(function(){return In.Name},"get")});Object.defineProperty(re,"CodeGen",{enumerable:!0,get:o(function(){return In.CodeGen},"get")})});var Jh=h(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});var rw={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Vl.default=rw});var Xh=h(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});var nw=Jh(),iw=Li(),ow=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",nw.default,iw.default];Bl.default=ow});var eg=h(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});var Rs=I(),nr=Rs.operators,Ns={maximum:{okStr:"<=",ok:nr.LTE,fail:nr.GT},minimum:{okStr:">=",ok:nr.GTE,fail:nr.LT},exclusiveMaximum:{okStr:"<",ok:nr.LT,fail:nr.GTE},exclusiveMinimum:{okStr:">",ok:nr.GT,fail:nr.LTE}},sw={message:o(({keyword:e,schemaCode:t})=>(0,Rs.str)`must be ${Ns[e].okStr} ${t}`,"message"),params:o(({keyword:e,schemaCode:t})=>(0,Rs._)`{comparison: ${Ns[e].okStr}, limit: ${t}}`,"params")},aw={keyword:Object.keys(Ns),type:"number",schemaType:"number",$data:!0,error:sw,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Rs._)`${r} ${Ns[t].fail} ${n} || isNaN(${r})`)}};Ul.default=aw});var tg=h(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});var cw=eg(),uw=Gu(),lw=Ku(),pw=Wu(),fw=Ju(),dw=el(),mw=rl(),hw=sl(),gw=ul(),yw=pl(),vw=[cw.default,uw.default,lw.default,pw.default,fw.default,dw.default,mw.default,hw.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},gw.default,yw.default];Gl.default=vw});var zl=h(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.dynamicAnchor=void 0;var Zl=I(),Sw=Ue(),rg=ki(),bw=Li(),_w={keyword:"$dynamicAnchor",schemaType:"string",code:o(e=>ng(e,e.schema),"code")};function ng(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,Zl._)`${Sw.default.dynamicAnchors}${(0,Zl.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:Pw(e);r.if((0,Zl._)`!${i}`,()=>r.assign(i,s))}o(ng,"dynamicAnchor");Qi.dynamicAnchor=ng;function Pw(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 rg.SchemaEnv({schema:r,schemaId:u,root:i,baseId:s,localRefs:a,meta:c});return rg.compileSchema.call(n,l),(0,bw.getValidate)(e,l)}o(Pw,"_getValidate");Qi.default=_w});var Kl=h(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.dynamicRef=void 0;var ig=I(),Ew=Ue(),og=Li(),$w={keyword:"$dynamicRef",schemaType:"string",code:o(e=>sg(e,e.schema),"code")};function sg(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,ig._)`${Ew.default.dynamicAnchors}${(0,ig.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,og.callRef)(e,u),r.let(l,!0)}):()=>(0,og.callRef)(e,u)}o(c,"_callRef")}o(sg,"dynamicRef");Wi.dynamicRef=sg;Wi.default=$w});var ag=h(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});var Ow=zl(),xw=k(),ww={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,Ow.dynamicAnchor)(e,""):(0,xw.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Ql.default=ww});var cg=h(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var Aw=Kl(),Iw={keyword:"$recursiveRef",schemaType:"string",code:o(e=>(0,Aw.dynamicRef)(e,e.schema),"code")};Wl.default=Iw});var ug=h(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});var Tw=zl(),Rw=Kl(),Nw=ag(),Cw=cg(),kw=[Tw.default,Rw.default,Nw.default,Cw.default];Yl.default=kw});var pg=h(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});var lg=Ps(),jw={keyword:"dependentRequired",type:"object",schemaType:"object",error:lg.error,code:o(e=>(0,lg.validatePropertyDeps)(e),"code")};Jl.default=jw});var fg=h(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var qw=Ps(),Mw={keyword:"dependentSchemas",type:"object",schemaType:"object",code:o(e=>(0,qw.validateSchemaDeps)(e),"code")};Xl.default=Mw});var dg=h(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});var Dw=k(),Lw={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,Dw.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};ep.default=Lw});var mg=h(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});var Fw=pg(),Hw=fg(),Vw=dg(),Bw=[Fw.default,Hw.default,Vw.default];tp.default=Bw});var gg=h(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});var ir=I(),hg=k(),Uw=Ue(),Gw={message:"must NOT have unevaluated properties",params:o(({params:e})=>(0,ir._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},Zw={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:Gw,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 ir.Name?t.if((0,ir._)`${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,ir._)`${i} === ${Uw.default.errors}`);function u(p){if(r===!1){e.setParams({unevaluatedProperty:p}),e.error(),a||t.break();return}if(!(0,hg.alwaysValidSchema)(s,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:p,dataPropType:hg.Type.Str},d),a||t.if((0,ir.not)(d),()=>t.break())}}o(u,"unevaluatedPropCode");function l(p,d){return(0,ir._)`!${p} || !${p}[${d}]`}o(l,"unevaluatedDynamic");function f(p,d){let m=[];for(let g in p)p[g]===!0&&m.push((0,ir._)`${d} !== ${g}`);return(0,ir.and)(...m)}o(f,"unevaluatedStatic")}};rp.default=Zw});var vg=h(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});var Dr=I(),yg=k(),zw={message:o(({params:{len:e}})=>(0,Dr.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Dr._)`{limit: ${e}}`,"params")},Kw={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:zw,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,Dr._)`${n}.length`);if(r===!1)e.setParams({len:s}),e.fail((0,Dr._)`${a} > ${s}`);else if(typeof r=="object"&&!(0,yg.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,Dr._)`${a} <= ${s}`);t.if((0,Dr.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:yg.Type.Num},u),i.allErrors||t.if((0,Dr.not)(u),()=>t.break())})}o(c,"validateItems")}};np.default=Kw});var Sg=h(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});var Qw=gg(),Ww=vg(),Yw=[Qw.default,Ww.default];ip.default=Yw});var bg=h(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.contentVocabulary=Tn.metadataVocabulary=void 0;Tn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Tn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Pg=h(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});var Jw=Xh(),Xw=tg(),eA=Cl(),tA=ug(),rA=mg(),nA=Sg(),iA=ql(),_g=bg(),oA=[tA.default,Jw.default,Xw.default,(0,eA.default)(!0),iA.default,_g.metadataVocabulary,_g.contentVocabulary,rA.default,nA.default];op.default=oA});var Eg=h((vD,sA)=>{sA.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 $g=h((SD,aA)=>{aA.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 Og=h((bD,cA)=>{cA.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 xg=h((_D,uA)=>{uA.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 wg=h((PD,lA)=>{lA.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 Ag=h((ED,pA)=>{pA.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 Ig=h(($D,fA)=>{fA.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 Tg=h((OD,dA)=>{dA.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 Rg=h(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});var mA=Eg(),hA=$g(),gA=Og(),yA=xg(),vA=wg(),SA=Ag(),bA=Ig(),_A=Tg(),PA=["/properties"];function EA(e){return[mA,hA,gA,yA,vA,t(this,SA),bA,t(this,_A)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,PA):n}o(t,"with$data")}o(EA,"addMetaSchema2020");sp.default=EA});var Ng=h((B,cp)=>{"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 $A=xn(),OA=Pg(),xA=Fl(),wA=Rg(),ap="https://json-schema.org/draft/2020-12/schema",up=class up extends $A.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),OA.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(xA.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(wA.default.call(this,t),this.refs["http://json-schema.org/schema"]=ap)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ap)?ap:void 0)}};o(up,"Ajv2020");var Rn=up;B.Ajv2020=Rn;cp.exports=B=Rn;cp.exports.Ajv2020=Rn;Object.defineProperty(B,"__esModule",{value:!0});B.default=Rn;var AA=Ni();Object.defineProperty(B,"KeywordCxt",{enumerable:!0,get:o(function(){return AA.KeywordCxt},"get")});var Nn=I();Object.defineProperty(B,"_",{enumerable:!0,get:o(function(){return Nn._},"get")});Object.defineProperty(B,"str",{enumerable:!0,get:o(function(){return Nn.str},"get")});Object.defineProperty(B,"stringify",{enumerable:!0,get:o(function(){return Nn.stringify},"get")});Object.defineProperty(B,"nil",{enumerable:!0,get:o(function(){return Nn.nil},"get")});Object.defineProperty(B,"Name",{enumerable:!0,get:o(function(){return Nn.Name},"get")});Object.defineProperty(B,"CodeGen",{enumerable:!0,get:o(function(){return Nn.CodeGen},"get")});var IA=ls();Object.defineProperty(B,"ValidationError",{enumerable:!0,get:o(function(){return IA.default},"get")});var TA=Ci();Object.defineProperty(B,"MissingRefError",{enumerable:!0,get:o(function(){return TA.default},"get")})});var Cg=h((ID,RA)=>{RA.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 kg=h((TD,NA)=>{NA.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 jg=h((RD,CA)=>{CA.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 qg=h((ND,kA)=>{kA.exports={$id:"https://spec.openapis.org/oas/3.1/schema/2021-04-15",$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{openapi:{type:"string",pattern:"^3\\.1\\.\\d+(-.+)?$"},info:{$ref:"#/$defs/info"},jsonSchemaDialect:{$ref:"#/$defs/uri",default:"https://spec.openapis.org/oas/3.1/dialect/base"},servers:{type:"array",items:{$ref:"#/$defs/server"}},paths:{$ref:"#/$defs/paths"},webhooks:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},components:{$ref:"#/$defs/components"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},tags:{type:"array",items:{$ref:"#/$defs/tag"}},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["openapi","info"],anyOf:[{required:["paths"]},{required:["components"]},{required:["webhooks"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{info:{type:"object",properties:{title:{type:"string"},summary:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:{$ref:"#/$defs/contact"},license:{$ref:"#/$defs/license"},version:{type:"string"}},required:["title","version"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},contact:{type:"object",properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},license:{type:"object",properties:{name:{type:"string"},identifier:{type:"string"},url:{$ref:"#/$defs/uri"}},required:["name"],oneOf:[{required:["identifier"]},{required:["url"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},server:{type:"object",properties:{url:{$ref:"#/$defs/uri"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/$defs/server-variable"}}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"server-variable":{type:"object",properties:{enum:{type:"array",items:{type:"string"},minItems:1},default:{type:"string"},descriptions:{type:"string"}},required:["default"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},components:{type:"object",properties:{schemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"}},responses:{type:"object",additionalProperties:{$ref:"#/$defs/response-or-reference"}},parameters:{type:"object",additionalProperties:{$ref:"#/$defs/parameter-or-reference"}},examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}},requestBodies:{type:"object",additionalProperties:{$ref:"#/$defs/request-body-or-reference"}},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},securitySchemes:{type:"object",additionalProperties:{$ref:"#/$defs/security-scheme-or-reference"}},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},pathItems:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}}},patternProperties:{"^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$":{$comment:"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected",propertyNames:{pattern:"^[a-zA-Z0-9._-]+$"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},paths:{type:"object",patternProperties:{"^/":{$ref:"#/$defs/path-item"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item":{type:"object",properties:{summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/$defs/server"}},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}}},patternProperties:{"^(get|put|post|delete|options|head|patch|trace)$":{$ref:"#/$defs/operation"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/path-item"}},operation:{type:"object",properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"},operationId:{type:"string"},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}},requestBody:{$ref:"#/$defs/request-body-or-reference"},responses:{$ref:"#/$defs/responses"},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},deprecated:{default:!1,type:"boolean"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},servers:{type:"array",items:{$ref:"#/$defs/server"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"external-documentation":{type:"object",properties:{description:{type:"string"},url:{$ref:"#/$defs/uri"}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},parameter:{type:"object",properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},allowEmptyValue:{default:!1,type:"boolean"},schema:{$dynamicRef:"#meta"},content:{$ref:"#/$defs/content"}},required:["in"],oneOf:[{required:["schema"]},{required:["content"]}],dependentSchemas:{schema:{properties:{style:{type:"string"},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/examples"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-form"}],$defs:{"styles-for-path":{if:{properties:{in:{const:"path"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["matrix","label","simple"]},required:{const:!0}},required:["required"]}},"styles-for-header":{if:{properties:{in:{const:"header"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["simple"]}}}},"styles-for-query":{if:{properties:{in:{const:"query"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]}}}},"styles-for-cookie":{if:{properties:{in:{const:"cookie"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form"]}}}},"styles-for-form":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"parameter-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/parameter"}},"request-body":{type:"object",properties:{description:{type:"string"},content:{$ref:"#/$defs/content"},required:{default:!1,type:"boolean"}},required:["content"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"request-body-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/request-body"}},content:{type:"object",additionalProperties:{$ref:"#/$defs/media-type"},propertyNames:{format:"media-range"}},"media-type":{type:"object",properties:{schema:{$dynamicRef:"#meta"},encoding:{type:"object",additionalProperties:{$ref:"#/$defs/encoding"}}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/examples"}],unevaluatedProperties:!1},encoding:{type:"object",properties:{contentType:{type:"string",format:"media-range"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/encoding/$defs/explode-default"}],unevaluatedProperties:!1,$defs:{"explode-default":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}},responses:{type:"object",properties:{default:{$ref:"#/$defs/response-or-reference"}},patternProperties:{"^[1-5][0-9X]{2}$":{$ref:"#/$defs/response-or-reference"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},response:{type:"object",properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},content:{$ref:"#/$defs/content"},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}}},required:["description"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"response-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/response"}},callbacks:{type:"object",$ref:"#/$defs/specification-extensions",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},"callbacks-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/callbacks"}},example:{type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:!0,externalValue:{$ref:"#/$defs/uri"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"example-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/example"}},link:{type:"object",properties:{operationRef:{$ref:"#/$defs/uri"},operationId:!0,parameters:{$ref:"#/$defs/map-of-strings"},requestBody:!0,description:{type:"string"},body:{$ref:"#/$defs/server"}},oneOf:[{required:["operationRef"]},{required:["operationId"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"link-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/link"}},header:{type:"object",properties:{description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},allowEmptyValue:{default:!1,type:"boolean"}},dependentSchemas:{schema:{properties:{style:{default:"simple",enum:["simple"]},explode:{default:!1,type:"boolean"},allowReserved:{default:!1,type:"boolean"},schema:{$dynamicRef:"#meta"}},$ref:"#/$defs/examples"},content:{properties:{content:{$ref:"#/$defs/content"}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"header-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/header"}},tag:{type:"object",properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["name"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},reference:{type:"object",properties:{$ref:{$ref:"#/$defs/uri"},summary:{type:"string"},description:{type:"string"}},unevaluatedProperties:!1},schema:{$dynamicAnchor:"meta",type:["object","boolean"]},"security-scheme":{type:"object",properties:{type:{enum:["apiKey","http","mutualTLS","oauth2","openIdConnect"]},description:{type:"string"}},required:["type"],allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/security-scheme/$defs/type-apikey"},{$ref:"#/$defs/security-scheme/$defs/type-http"},{$ref:"#/$defs/security-scheme/$defs/type-http-bearer"},{$ref:"#/$defs/security-scheme/$defs/type-oauth2"},{$ref:"#/$defs/security-scheme/$defs/type-oidc"}],unevaluatedProperties:!1,$defs:{"type-apikey":{if:{properties:{type:{const:"apiKey"}},required:["type"]},then:{properties:{name:{type:"string"},in:{enum:["query","header","cookie"]}},required:["name","in"]}},"type-http":{if:{properties:{type:{const:"http"}},required:["type"]},then:{properties:{scheme:{type:"string"}},required:["scheme"]}},"type-http-bearer":{if:{properties:{type:{const:"http"},scheme:{const:"bearer"}},required:["type","scheme"]},then:{properties:{bearerFormat:{type:"string"}},required:["scheme"]}},"type-oauth2":{if:{properties:{type:{const:"oauth2"}},required:["type"]},then:{properties:{flows:{$ref:"#/$defs/oauth-flows"}},required:["flows"]}},"type-oidc":{if:{properties:{type:{const:"openIdConnect"}},required:["type"]},then:{properties:{openIdConnectUrl:{$ref:"#/$defs/uri"}},required:["openIdConnectUrl"]}}}},"security-scheme-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/security-scheme"}},"oauth-flows":{type:"object",properties:{implicit:{$ref:"#/$defs/oauth-flows/$defs/implicit"},password:{$ref:"#/$defs/oauth-flows/$defs/password"},clientCredentials:{$ref:"#/$defs/oauth-flows/$defs/client-credentials"},authorizationCode:{$ref:"#/$defs/oauth-flows/$defs/authorization-code"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{implicit:{type:"object",properties:{authorizationUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},password:{type:"object",properties:{tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"client-credentials":{type:"object",properties:{tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"authorization-code":{type:"object",properties:{authorizationUrl:{type:"string"},tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}}},"security-requirement":{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},"specification-extensions":{patternProperties:{"^x-":!0}},examples:{properties:{example:!0,examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}}}},uri:{type:"string",format:"uri"},"map-of-strings":{type:"object",additionalProperties:{type:"string"}}}}});var Mg=h((ie,Cn)=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.openapi=ie.openapiV31=ie.openapiV3=ie.openapiV2=ie.openapiV1=void 0;ie.openapiV1=Cg();ie.openapiV2=kg();ie.openapiV3=jg();ie.openapiV31=qg();ie.openapi={v1:ie.openapiV1,v2:ie.openapiV2,v3:ie.openapiV3,v31:ie.openapiV31};ie.default=ie.openapi;typeof Cn=="object"&&typeof Cn.exports=="object"&&(Cn.exports=Object.assign(Cn.exports.default,Cn.exports))});var fp=h((CD,Dg)=>{"use strict";var jA=Go(),{ono:qA}=tt(),MA=Yh(),DA=Ng(),{openapi:lp}=Mg();Dg.exports=LA;function LA(e){let t,r;if(e.swagger)r=lp.v2,t=pp();else if(e.openapi.startsWith("3.1")){r=lp.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=pp(!1)}else r=lp.v3,t=pp();if(!t.validate(r,e)){let i=t.errors,s=`Swagger schema validation failed.
13
- `+FA(i);throw qA.syntax(i,{details:i},s)}}o(LA,"validateSchema");function pp(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new MA(t):new DA(t)}o(pp,"initializeAjv");function FA(e,t){t=t||" ";let r="";for(let n of e)r+=jA.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
14
- `);return r}o(FA,"formatAjvError")});var Fg=h((jD,Lg)=>{"use strict";Lg.exports=["get","put","post","delete","options","head","patch"]});var hp=h((qD,Ug)=>{"use strict";var HA=Go(),{ono:me}=tt(),VA=Fg(),dp=["array","boolean","integer","number","string"],Vg=["array","boolean","integer","number","string","object","null",void 0];Ug.exports=BA;function BA(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&&UA(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(BA,"validateSpec");function UA(e,t,r,n){for(let i of VA){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}'`);GA(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;QA(l,f||{},p)}}}}o(UA,"validatePath");function GA(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());ZA(c,i),zA(c,r,i),KA(c,e,n,i)}o(GA,"validateParameters");function ZA(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(ZA,"validateBodyParameters");function zA(e,t,r){let n=t.match(HA.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(zA,"validatePathParameters");function KA(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=dp.concat("file");break;default:a=i,c=dp}if(mp(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(KA,"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 QA(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;mp(s,a,dp)}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})`);mp(t.schema,r+"/schema",i)}}o(QA,"validateResponse");function mp(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(mp,"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 at=h(st=>{"use strict";var{Ono:Gg}=tt(),{stripHash:Zg,toFileSystemPath:WA}=Me(),kn,or=st.JSONParserError=(kn=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,Gg.extend(this)}},o(kn,"JSONParserError"),kn);sr(or);var Lr,zg=st.JSONParserErrorGroup=(Lr=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${WA(t.$refs._root$Ref.path)}'`,Gg.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 Lr.getParserErrors(this.files)}},o(Lr,"JSONParserErrorGroup"),Lr);sr(zg);var jn,YA=st.ParserError=(jn=class extends or{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},o(jn,"ParserError"),jn);sr(YA);var qn,JA=st.UnmatchedParserError=(qn=class extends or{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},o(qn,"UnmatchedParserError"),qn);sr(JA);var Mn,XA=st.ResolverError=(Mn=class extends or{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},o(Mn,"ResolverError"),Mn);sr(XA);var Dn,eI=st.UnmatchedResolverError=(Dn=class extends or{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},o(Dn,"UnmatchedResolverError"),Dn);sr(eI);var Ln,tI=st.MissingPointerError=(Ln=class extends or{constructor(t,r){super(`Token "${t}" does not exist.`,Zg(r)),this.code="EMISSINGPOINTER"}},o(Ln,"MissingPointerError"),Ln);sr(tI);var Fn,rI=st.InvalidPointerError=(Fn=class extends or{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,Zg(r)),this.code="EINVALIDPOINTER"}},o(Fn,"InvalidPointerError"),Fn);sr(rI);function sr(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}o(sr,"setErrorName");st.isHandledError=function(e){return e instanceof or||e instanceof zg};st.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var Qg=h((FD,Kg)=>{"use strict";var{ParserError:nI}=at();Kg.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 nI(r.message,e.url)}}else return t}}});var Hr=h((HD,Fr)=>{"use strict";function Wg(e){return typeof e>"u"||e===null}o(Wg,"isNothing");function iI(e){return typeof e=="object"&&e!==null}o(iI,"isObject");function oI(e){return Array.isArray(e)?e:Wg(e)?[]:[e]}o(oI,"toArray");function sI(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(sI,"extend");function aI(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}o(aI,"repeat");function cI(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}o(cI,"isNegativeZero");Fr.exports.isNothing=Wg;Fr.exports.isObject=iI;Fr.exports.toArray=oI;Fr.exports.repeat=aI;Fr.exports.isNegativeZero=cI;Fr.exports.extend=sI});var Hn=h((BD,Yg)=>{"use strict";function Yi(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(Yi,"YAMLException");Yi.prototype=Object.create(Error.prototype);Yi.prototype.constructor=Yi;Yi.prototype.toString=o(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");Yg.exports=Yi});var ey=h((GD,Xg)=>{"use strict";var Jg=Hr();function gp(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}o(gp,"Mark");gp.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 KO={keyword:"dependencies",type:"object",schemaType:"object",error:bt.error,code(e){let[t,r]=QO(e);$h(e,t),Oh(e,r)}};function QO({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(QO,"splitDependencies");function $h(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let a in t){let c=t[a];if(c.length===0)continue;let u=(0,Ki.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:c.length,deps:c.join(", ")}),i.allErrors?r.if(u,()=>{for(let l of c)(0,Ki.checkReportMissingProp)(e,l)}):(r.if((0,Sl._)`${u} && (${(0,Ki.checkMissingProp)(e,c,s)})`),(0,Ki.reportMissingProp)(e,s),r.else())}}o($h,"validatePropertyDeps");bt.validatePropertyDeps=$h;function Oh(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let c in t)(0,zO.alwaysValidSchema)(s,t[c])||(r.if((0,Ki.propertyInData)(r,n,c,s.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:c},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}o(Oh,"validateSchemaDeps");bt.validateSchemaDeps=Oh;bt.default=KO});var wh=h(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});var xh=I(),WO=k(),YO={message:"property name must be valid",params:o(({params:e})=>(0,xh._)`{propertyName: ${e.propertyName}}`,"params")},JO={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:YO,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,WO.alwaysValidSchema)(i,r))return;let s=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},s),t.if((0,xh.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};bl.default=JO});var Pl=h(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});var Es=Ge(),ot=I(),XO=Ue(),$s=k(),ex={message:"must NOT have additional properties",params:o(({params:e})=>(0,ot._)`{additionalProperty: ${e.additionalProperty}}`,"params")},tx={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:ex,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,$s.alwaysValidSchema)(a,r))return;let l=(0,Es.allSchemaProperties)(n.properties),f=(0,Es.allSchemaProperties)(n.patternProperties);p(),e.ok((0,ot._)`${s} === ${XO.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 S;if(l.length>8){let b=(0,$s.schemaRefOrVal)(a,n.properties,"properties");S=(0,Es.isOwnProperty)(t,b,v)}else l.length?S=(0,ot.or)(...l.map(b=>(0,ot._)`${v} === ${b}`)):S=ot.nil;return f.length&&(S=(0,ot.or)(S,...f.map(b=>(0,ot._)`${(0,Es.usePattern)(e,b)}.test(${v})`))),(0,ot.not)(S)}o(d,"isAdditional");function m(v){t.code((0,ot._)`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,$s.alwaysValidSchema)(a,r)){let S=t.name("valid");u.removeAdditional==="failing"?(y(v,S,!1),t.if((0,ot.not)(S),()=>{e.reset(),m(v)})):(y(v,S),c||t.if((0,ot.not)(S),()=>t.break()))}}o(g,"additionalPropertyCode");function y(v,S,b){let P={keyword:"additionalProperties",dataProp:v,dataPropType:$s.Type.Str};b===!1&&Object.assign(P,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(P,S)}o(y,"applyAdditionalSchema")}};_l.default=tx});var Th=h($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var rx=Ni(),Ah=Ge(),El=k(),Ih=Pl(),nx={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&&Ih.default.code(new rx.KeywordCxt(s,Ih.default,"additionalProperties"));let a=(0,Ah.allSchemaProperties)(r);for(let p of a)s.definedProperties.add(p);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=El.mergeEvaluated.props(t,(0,El.toHash)(a),s.props));let c=a.filter(p=>!(0,El.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,Ah.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")}};$l.default=nx});var kh=h(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var Rh=Ge(),Os=I(),Nh=k(),Ch=k(),ix={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,Rh.allSchemaProperties)(r),u=c.filter(y=>(0,Nh.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,Ch.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,Nh.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,Rh.usePattern)(e,y)}.test(${v})`,()=>{let S=u.includes(y);S||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:v,dataPropType:Ch.Type.Str},f),s.opts.unevaluated&&p!==!0?t.assign((0,Os._)`${p}[${v}]`,!0):!S&&!s.allErrors&&t.if((0,Os.not)(f),()=>t.break())})})}o(g,"validateProperties")}};Ol.default=ix});var jh=h(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var ox=k(),sx={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,ox.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"}};xl.default=sx});var qh=h(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});var ax=Ge(),cx={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:ax.validateUnion,error:{message:"must match a schema in anyOf"}};wl.default=cx});var Mh=h(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});var xs=I(),ux=k(),lx={message:"must match exactly one schema in oneOf",params:o(({params:e})=>(0,xs._)`{passingSchemas: ${e.passing}}`,"params")},px={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:lx,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,ux.alwaysValidSchema)(i,f)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},u),p>0&&t.if((0,xs._)`${u} && ${a}`).assign(a,!1).assign(c,(0,xs._)`[${c}, ${p}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,p),d&&e.mergeEvaluated(d,xs.Name)})})}o(l,"validateOneOf")}};Al.default=px});var Dh=h(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var fx=k(),dx={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,fx.alwaysValidSchema)(n,s))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};Il.default=dx});var Hh=h(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});var ws=I(),Fh=k(),mx={message:o(({params:e})=>(0,ws.str)`must match "${e.ifClause}" schema`,"message"),params:o(({params:e})=>(0,ws._)`{failingKeyword: ${e.ifClause}}`,"params")},hx={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:mx,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,Fh.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=Lh(n,"then"),s=Lh(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,ws.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,ws._)`${f}`):e.setParams({ifClause:f})}}o(l,"validateClause")}};function Lh(e,t){let r=e.schema[t];return r!==void 0&&!(0,Fh.alwaysValidSchema)(e,r)}o(Lh,"hasSchema");Tl.default=hx});var Vh=h(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});var gx=k(),yx={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,gx.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Rl.default=yx});var Cl=h(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});var vx=ml(),Sx=bh(),bx=hl(),_x=Ph(),Px=Eh(),Ex=Ps(),$x=wh(),Ox=Pl(),xx=Th(),wx=kh(),Ax=jh(),Ix=qh(),Tx=Mh(),Rx=Dh(),Nx=Hh(),Cx=Vh();function kx(e=!1){let t=[Ax.default,Ix.default,Tx.default,Rx.default,Nx.default,Cx.default,$x.default,Ox.default,Ex.default,xx.default,wx.default];return e?t.push(Sx.default,_x.default):t.push(vx.default,bx.default),t.push(Px.default),t}o(kx,"getApplicator");Nl.default=kx});var Bh=h(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});var Y=I(),jx={message:o(({schemaCode:e})=>(0,Y.str)`must match format "${e}"`,"message"),params:o(({schemaCode:e})=>(0,Y._)`{format: ${e}}`,"params")},qx={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:jx,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,Y._)`${g}[${a}]`),v=r.let("fType"),S=r.let("format");r.if((0,Y._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(v,(0,Y._)`${y}.type || "string"`).assign(S,(0,Y._)`${y}.validate`),()=>r.assign(v,(0,Y._)`"string"`).assign(S,y)),e.fail$data((0,Y.or)(b(),P()));function b(){return u.strictSchema===!1?Y.nil:(0,Y._)`${a} && !${S}`}o(b,"unknownFmt");function P(){let $=f.$async?(0,Y._)`(${y}.async ? await ${S}(${n}) : ${S}(${n}))`:(0,Y._)`${S}(${n})`,_=(0,Y._)`(typeof ${S} == "function" ? ${$} : ${S}.test(${n}))`;return(0,Y._)`${S} && ${S} !== true && ${v} === ${t} && !${_}`}o(P,"invalidFmt")}o(d,"validate$DataFormat");function m(){let g=p.formats[s];if(!g){b();return}if(g===!0)return;let[y,v,S]=P(g);y===t&&e.pass($());function b(){if(u.strictSchema===!1){p.logger.warn(_());return}throw new Error(_());function _(){return`unknown format "${s}" ignored in schema at path "${l}"`}}o(b,"unknownFormat");function P(_){let w=_ instanceof RegExp?(0,Y.regexpCode)(_):u.code.formats?(0,Y._)`${u.code.formats}${(0,Y.getProperty)(s)}`:void 0,N=r.scopeValue("formats",{key:s,ref:_,code:w});return typeof _=="object"&&!(_ instanceof RegExp)?[_.type||"string",_.validate,(0,Y._)`${N}.validate`]:["string",_,N]}o(P,"getFormat");function $(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!f.$async)throw new Error("async format in sync schema");return(0,Y._)`await ${S}(${n})`}return typeof v=="function"?(0,Y._)`${S}(${n})`:(0,Y._)`${S}.test(${n})`}o($,"validCondition")}o(m,"validateFormat")}};kl.default=qx});var ql=h(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});var Mx=Bh(),Dx=[Mx.default];jl.default=Dx});var Uh=h(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});var Lx=uh(),Fx=gh(),Hx=Cl(),Vx=ql(),Bx=["title","description","default"],Ux=[Lx.default,Fx.default,Hx.default(),Vx.default,Bx];Ml.default=Ux});var Zh=h(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.DiscrError=void 0;var Gh;(function(e){e.Tag="tag",e.Mapping="mapping"})(Gh||(As.DiscrError=Gh={}))});var Fl=h(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});var An=I(),Dl=Zh(),zh=ki(),Gx=Ci(),Zx=k(),zx={message:o(({params:{discrError:e,tagName:t}})=>e===Dl.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,An._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},Kx={keyword:"discriminator",type:"object",schemaType:"object",error:zx,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,An._)`${r}${(0,An.getProperty)(c)}`);t.if((0,An._)`typeof ${l} == "string"`,()=>f(),()=>e.error(!1,{discrError:Dl.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,An._)`${l} === ${g}`),t.assign(u,p(m[g]));t.else(),e.error(!1,{discrError:Dl.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,An.Name),g}o(p,"applyTagSchema");function d(){var m;let g={},y=S(i),v=!0;for(let $=0;$<a.length;$++){let _=a[$];if(_!=null&&_.$ref&&!(0,Zx.schemaHasRulesButRef)(_,s.self.RULES)){let N=_.$ref;if(_=zh.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,N),_ instanceof zh.SchemaEnv&&(_=_.schema),_===void 0)throw new Gx.default(s.opts.uriResolver,s.baseId,N)}let w=(m=_==null?void 0:_.properties)===null||m===void 0?void 0:m[c];if(typeof w!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);v=v&&(y||S(_)),b(w,$)}if(!v)throw new Error(`discriminator: "${c}" must be required`);return g;function S({required:$}){return Array.isArray($)&&$.includes(c)}function b($,_){if($.const)P($.const,_);else if($.enum)for(let w of $.enum)P(w,_);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function P($,_){if(typeof $!="string"||$ in g)throw new Error(`discriminator: "${c}" values must be unique strings`);g[$]=_}}o(d,"getMapping")}};Ll.default=Kx});var Kh=h((B4,Qx)=>{Qx.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 Yh=h((re,Wh)=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.CodeGen=re.Name=re.nil=re.stringify=re.str=re._=re.KeywordCxt=void 0;var Wx=xn(),Yx=Uh(),Jx=Fl(),Qh=Kh(),Xx=["/properties"],Is="http://json-schema.org/draft-04/schema",Hl=class Hl extends Wx.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),Yx.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Jx.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(Qh,Xx):Qh;this.addMetaSchema(t,Is,!1),this.refs["http://json-schema.org/schema"]=Is}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Is)?Is:void 0)}};o(Hl,"Ajv");var Ts=Hl;Wh.exports=re=Ts;Object.defineProperty(re,"__esModule",{value:!0});re.default=Ts;var ew=xn();Object.defineProperty(re,"KeywordCxt",{enumerable:!0,get:o(function(){return ew.KeywordCxt},"get")});var In=xn();Object.defineProperty(re,"_",{enumerable:!0,get:o(function(){return In._},"get")});Object.defineProperty(re,"str",{enumerable:!0,get:o(function(){return In.str},"get")});Object.defineProperty(re,"stringify",{enumerable:!0,get:o(function(){return In.stringify},"get")});Object.defineProperty(re,"nil",{enumerable:!0,get:o(function(){return In.nil},"get")});Object.defineProperty(re,"Name",{enumerable:!0,get:o(function(){return In.Name},"get")});Object.defineProperty(re,"CodeGen",{enumerable:!0,get:o(function(){return In.CodeGen},"get")})});var Jh=h(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});var tw={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Vl.default=tw});var Xh=h(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});var rw=Jh(),nw=Li(),iw=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",rw.default,nw.default];Bl.default=iw});var eg=h(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});var Rs=I(),nr=Rs.operators,Ns={maximum:{okStr:"<=",ok:nr.LTE,fail:nr.GT},minimum:{okStr:">=",ok:nr.GTE,fail:nr.LT},exclusiveMaximum:{okStr:"<",ok:nr.LT,fail:nr.GTE},exclusiveMinimum:{okStr:">",ok:nr.GT,fail:nr.LTE}},ow={message:o(({keyword:e,schemaCode:t})=>(0,Rs.str)`must be ${Ns[e].okStr} ${t}`,"message"),params:o(({keyword:e,schemaCode:t})=>(0,Rs._)`{comparison: ${Ns[e].okStr}, limit: ${t}}`,"params")},sw={keyword:Object.keys(Ns),type:"number",schemaType:"number",$data:!0,error:ow,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Rs._)`${r} ${Ns[t].fail} ${n} || isNaN(${r})`)}};Ul.default=sw});var tg=h(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});var aw=eg(),cw=Gu(),uw=Ku(),lw=Wu(),pw=Ju(),fw=el(),dw=rl(),mw=sl(),hw=ul(),gw=pl(),yw=[aw.default,cw.default,uw.default,lw.default,pw.default,fw.default,dw.default,mw.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},hw.default,gw.default];Gl.default=yw});var zl=h(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.dynamicAnchor=void 0;var Zl=I(),vw=Ue(),rg=ki(),Sw=Li(),bw={keyword:"$dynamicAnchor",schemaType:"string",code:o(e=>ng(e,e.schema),"code")};function ng(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,Zl._)`${vw.default.dynamicAnchors}${(0,Zl.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:_w(e);r.if((0,Zl._)`!${i}`,()=>r.assign(i,s))}o(ng,"dynamicAnchor");Qi.dynamicAnchor=ng;function _w(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 rg.SchemaEnv({schema:r,schemaId:u,root:i,baseId:s,localRefs:a,meta:c});return rg.compileSchema.call(n,l),(0,Sw.getValidate)(e,l)}o(_w,"_getValidate");Qi.default=bw});var Kl=h(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.dynamicRef=void 0;var ig=I(),Pw=Ue(),og=Li(),Ew={keyword:"$dynamicRef",schemaType:"string",code:o(e=>sg(e,e.schema),"code")};function sg(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,ig._)`${Pw.default.dynamicAnchors}${(0,ig.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,og.callRef)(e,u),r.let(l,!0)}):()=>(0,og.callRef)(e,u)}o(c,"_callRef")}o(sg,"dynamicRef");Wi.dynamicRef=sg;Wi.default=Ew});var ag=h(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});var $w=zl(),Ow=k(),xw={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,$w.dynamicAnchor)(e,""):(0,Ow.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Ql.default=xw});var cg=h(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var ww=Kl(),Aw={keyword:"$recursiveRef",schemaType:"string",code:o(e=>(0,ww.dynamicRef)(e,e.schema),"code")};Wl.default=Aw});var ug=h(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});var Iw=zl(),Tw=Kl(),Rw=ag(),Nw=cg(),Cw=[Iw.default,Tw.default,Rw.default,Nw.default];Yl.default=Cw});var pg=h(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});var lg=Ps(),kw={keyword:"dependentRequired",type:"object",schemaType:"object",error:lg.error,code:o(e=>(0,lg.validatePropertyDeps)(e),"code")};Jl.default=kw});var fg=h(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var jw=Ps(),qw={keyword:"dependentSchemas",type:"object",schemaType:"object",code:o(e=>(0,jw.validateSchemaDeps)(e),"code")};Xl.default=qw});var dg=h(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});var Mw=k(),Dw={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,Mw.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};ep.default=Dw});var mg=h(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});var Lw=pg(),Fw=fg(),Hw=dg(),Vw=[Lw.default,Fw.default,Hw.default];tp.default=Vw});var gg=h(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});var ir=I(),hg=k(),Bw=Ue(),Uw={message:"must NOT have unevaluated properties",params:o(({params:e})=>(0,ir._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},Gw={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:Uw,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 ir.Name?t.if((0,ir._)`${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,ir._)`${i} === ${Bw.default.errors}`);function u(p){if(r===!1){e.setParams({unevaluatedProperty:p}),e.error(),a||t.break();return}if(!(0,hg.alwaysValidSchema)(s,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:p,dataPropType:hg.Type.Str},d),a||t.if((0,ir.not)(d),()=>t.break())}}o(u,"unevaluatedPropCode");function l(p,d){return(0,ir._)`!${p} || !${p}[${d}]`}o(l,"unevaluatedDynamic");function f(p,d){let m=[];for(let g in p)p[g]===!0&&m.push((0,ir._)`${d} !== ${g}`);return(0,ir.and)(...m)}o(f,"unevaluatedStatic")}};rp.default=Gw});var vg=h(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});var Dr=I(),yg=k(),Zw={message:o(({params:{len:e}})=>(0,Dr.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Dr._)`{limit: ${e}}`,"params")},zw={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:Zw,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,Dr._)`${n}.length`);if(r===!1)e.setParams({len:s}),e.fail((0,Dr._)`${a} > ${s}`);else if(typeof r=="object"&&!(0,yg.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,Dr._)`${a} <= ${s}`);t.if((0,Dr.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:yg.Type.Num},u),i.allErrors||t.if((0,Dr.not)(u),()=>t.break())})}o(c,"validateItems")}};np.default=zw});var Sg=h(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});var Kw=gg(),Qw=vg(),Ww=[Kw.default,Qw.default];ip.default=Ww});var bg=h(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.contentVocabulary=Tn.metadataVocabulary=void 0;Tn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Tn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Pg=h(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});var Yw=Xh(),Jw=tg(),Xw=Cl(),eA=ug(),tA=mg(),rA=Sg(),nA=ql(),_g=bg(),iA=[eA.default,Yw.default,Jw.default,(0,Xw.default)(!0),nA.default,_g.metadataVocabulary,_g.contentVocabulary,tA.default,rA.default];op.default=iA});var Eg=h((yD,oA)=>{oA.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 $g=h((vD,sA)=>{sA.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 Og=h((SD,aA)=>{aA.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 xg=h((bD,cA)=>{cA.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 wg=h((_D,uA)=>{uA.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 Ag=h((PD,lA)=>{lA.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 Ig=h((ED,pA)=>{pA.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 Tg=h(($D,fA)=>{fA.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 Rg=h(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});var dA=Eg(),mA=$g(),hA=Og(),gA=xg(),yA=wg(),vA=Ag(),SA=Ig(),bA=Tg(),_A=["/properties"];function PA(e){return[dA,mA,hA,gA,yA,t(this,vA),SA,t(this,bA)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,_A):n}o(t,"with$data")}o(PA,"addMetaSchema2020");sp.default=PA});var Ng=h((B,cp)=>{"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 EA=xn(),$A=Pg(),OA=Fl(),xA=Rg(),ap="https://json-schema.org/draft/2020-12/schema",up=class up extends EA.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),$A.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(OA.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(xA.default.call(this,t),this.refs["http://json-schema.org/schema"]=ap)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ap)?ap:void 0)}};o(up,"Ajv2020");var Rn=up;B.Ajv2020=Rn;cp.exports=B=Rn;cp.exports.Ajv2020=Rn;Object.defineProperty(B,"__esModule",{value:!0});B.default=Rn;var wA=Ni();Object.defineProperty(B,"KeywordCxt",{enumerable:!0,get:o(function(){return wA.KeywordCxt},"get")});var Nn=I();Object.defineProperty(B,"_",{enumerable:!0,get:o(function(){return Nn._},"get")});Object.defineProperty(B,"str",{enumerable:!0,get:o(function(){return Nn.str},"get")});Object.defineProperty(B,"stringify",{enumerable:!0,get:o(function(){return Nn.stringify},"get")});Object.defineProperty(B,"nil",{enumerable:!0,get:o(function(){return Nn.nil},"get")});Object.defineProperty(B,"Name",{enumerable:!0,get:o(function(){return Nn.Name},"get")});Object.defineProperty(B,"CodeGen",{enumerable:!0,get:o(function(){return Nn.CodeGen},"get")});var AA=ls();Object.defineProperty(B,"ValidationError",{enumerable:!0,get:o(function(){return AA.default},"get")});var IA=Ci();Object.defineProperty(B,"MissingRefError",{enumerable:!0,get:o(function(){return IA.default},"get")})});var Cg=h((AD,TA)=>{TA.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 kg=h((ID,RA)=>{RA.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 jg=h((TD,NA)=>{NA.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 qg=h((RD,CA)=>{CA.exports={$id:"https://spec.openapis.org/oas/3.1/schema/2021-04-15",$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{openapi:{type:"string",pattern:"^3\\.1\\.\\d+(-.+)?$"},info:{$ref:"#/$defs/info"},jsonSchemaDialect:{$ref:"#/$defs/uri",default:"https://spec.openapis.org/oas/3.1/dialect/base"},servers:{type:"array",items:{$ref:"#/$defs/server"}},paths:{$ref:"#/$defs/paths"},webhooks:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},components:{$ref:"#/$defs/components"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},tags:{type:"array",items:{$ref:"#/$defs/tag"}},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["openapi","info"],anyOf:[{required:["paths"]},{required:["components"]},{required:["webhooks"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{info:{type:"object",properties:{title:{type:"string"},summary:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:{$ref:"#/$defs/contact"},license:{$ref:"#/$defs/license"},version:{type:"string"}},required:["title","version"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},contact:{type:"object",properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},license:{type:"object",properties:{name:{type:"string"},identifier:{type:"string"},url:{$ref:"#/$defs/uri"}},required:["name"],oneOf:[{required:["identifier"]},{required:["url"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},server:{type:"object",properties:{url:{$ref:"#/$defs/uri"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/$defs/server-variable"}}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"server-variable":{type:"object",properties:{enum:{type:"array",items:{type:"string"},minItems:1},default:{type:"string"},descriptions:{type:"string"}},required:["default"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},components:{type:"object",properties:{schemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"}},responses:{type:"object",additionalProperties:{$ref:"#/$defs/response-or-reference"}},parameters:{type:"object",additionalProperties:{$ref:"#/$defs/parameter-or-reference"}},examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}},requestBodies:{type:"object",additionalProperties:{$ref:"#/$defs/request-body-or-reference"}},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},securitySchemes:{type:"object",additionalProperties:{$ref:"#/$defs/security-scheme-or-reference"}},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},pathItems:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}}},patternProperties:{"^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$":{$comment:"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected",propertyNames:{pattern:"^[a-zA-Z0-9._-]+$"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},paths:{type:"object",patternProperties:{"^/":{$ref:"#/$defs/path-item"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item":{type:"object",properties:{summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/$defs/server"}},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}}},patternProperties:{"^(get|put|post|delete|options|head|patch|trace)$":{$ref:"#/$defs/operation"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/path-item"}},operation:{type:"object",properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"},operationId:{type:"string"},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}},requestBody:{$ref:"#/$defs/request-body-or-reference"},responses:{$ref:"#/$defs/responses"},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},deprecated:{default:!1,type:"boolean"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},servers:{type:"array",items:{$ref:"#/$defs/server"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"external-documentation":{type:"object",properties:{description:{type:"string"},url:{$ref:"#/$defs/uri"}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},parameter:{type:"object",properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},allowEmptyValue:{default:!1,type:"boolean"},schema:{$dynamicRef:"#meta"},content:{$ref:"#/$defs/content"}},required:["in"],oneOf:[{required:["schema"]},{required:["content"]}],dependentSchemas:{schema:{properties:{style:{type:"string"},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/examples"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-form"}],$defs:{"styles-for-path":{if:{properties:{in:{const:"path"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["matrix","label","simple"]},required:{const:!0}},required:["required"]}},"styles-for-header":{if:{properties:{in:{const:"header"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["simple"]}}}},"styles-for-query":{if:{properties:{in:{const:"query"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]}}}},"styles-for-cookie":{if:{properties:{in:{const:"cookie"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form"]}}}},"styles-for-form":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"parameter-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/parameter"}},"request-body":{type:"object",properties:{description:{type:"string"},content:{$ref:"#/$defs/content"},required:{default:!1,type:"boolean"}},required:["content"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"request-body-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/request-body"}},content:{type:"object",additionalProperties:{$ref:"#/$defs/media-type"},propertyNames:{format:"media-range"}},"media-type":{type:"object",properties:{schema:{$dynamicRef:"#meta"},encoding:{type:"object",additionalProperties:{$ref:"#/$defs/encoding"}}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/examples"}],unevaluatedProperties:!1},encoding:{type:"object",properties:{contentType:{type:"string",format:"media-range"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/encoding/$defs/explode-default"}],unevaluatedProperties:!1,$defs:{"explode-default":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}},responses:{type:"object",properties:{default:{$ref:"#/$defs/response-or-reference"}},patternProperties:{"^[1-5][0-9X]{2}$":{$ref:"#/$defs/response-or-reference"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},response:{type:"object",properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},content:{$ref:"#/$defs/content"},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}}},required:["description"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"response-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/response"}},callbacks:{type:"object",$ref:"#/$defs/specification-extensions",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},"callbacks-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/callbacks"}},example:{type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:!0,externalValue:{$ref:"#/$defs/uri"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"example-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/example"}},link:{type:"object",properties:{operationRef:{$ref:"#/$defs/uri"},operationId:!0,parameters:{$ref:"#/$defs/map-of-strings"},requestBody:!0,description:{type:"string"},body:{$ref:"#/$defs/server"}},oneOf:[{required:["operationRef"]},{required:["operationId"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"link-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/link"}},header:{type:"object",properties:{description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},allowEmptyValue:{default:!1,type:"boolean"}},dependentSchemas:{schema:{properties:{style:{default:"simple",enum:["simple"]},explode:{default:!1,type:"boolean"},allowReserved:{default:!1,type:"boolean"},schema:{$dynamicRef:"#meta"}},$ref:"#/$defs/examples"},content:{properties:{content:{$ref:"#/$defs/content"}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"header-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/header"}},tag:{type:"object",properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["name"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},reference:{type:"object",properties:{$ref:{$ref:"#/$defs/uri"},summary:{type:"string"},description:{type:"string"}},unevaluatedProperties:!1},schema:{$dynamicAnchor:"meta",type:["object","boolean"]},"security-scheme":{type:"object",properties:{type:{enum:["apiKey","http","mutualTLS","oauth2","openIdConnect"]},description:{type:"string"}},required:["type"],allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/security-scheme/$defs/type-apikey"},{$ref:"#/$defs/security-scheme/$defs/type-http"},{$ref:"#/$defs/security-scheme/$defs/type-http-bearer"},{$ref:"#/$defs/security-scheme/$defs/type-oauth2"},{$ref:"#/$defs/security-scheme/$defs/type-oidc"}],unevaluatedProperties:!1,$defs:{"type-apikey":{if:{properties:{type:{const:"apiKey"}},required:["type"]},then:{properties:{name:{type:"string"},in:{enum:["query","header","cookie"]}},required:["name","in"]}},"type-http":{if:{properties:{type:{const:"http"}},required:["type"]},then:{properties:{scheme:{type:"string"}},required:["scheme"]}},"type-http-bearer":{if:{properties:{type:{const:"http"},scheme:{const:"bearer"}},required:["type","scheme"]},then:{properties:{bearerFormat:{type:"string"}},required:["scheme"]}},"type-oauth2":{if:{properties:{type:{const:"oauth2"}},required:["type"]},then:{properties:{flows:{$ref:"#/$defs/oauth-flows"}},required:["flows"]}},"type-oidc":{if:{properties:{type:{const:"openIdConnect"}},required:["type"]},then:{properties:{openIdConnectUrl:{$ref:"#/$defs/uri"}},required:["openIdConnectUrl"]}}}},"security-scheme-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/security-scheme"}},"oauth-flows":{type:"object",properties:{implicit:{$ref:"#/$defs/oauth-flows/$defs/implicit"},password:{$ref:"#/$defs/oauth-flows/$defs/password"},clientCredentials:{$ref:"#/$defs/oauth-flows/$defs/client-credentials"},authorizationCode:{$ref:"#/$defs/oauth-flows/$defs/authorization-code"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{implicit:{type:"object",properties:{authorizationUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},password:{type:"object",properties:{tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"client-credentials":{type:"object",properties:{tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"authorization-code":{type:"object",properties:{authorizationUrl:{type:"string"},tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}}},"security-requirement":{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},"specification-extensions":{patternProperties:{"^x-":!0}},examples:{properties:{example:!0,examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}}}},uri:{type:"string",format:"uri"},"map-of-strings":{type:"object",additionalProperties:{type:"string"}}}}});var Mg=h((ie,Cn)=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.openapi=ie.openapiV31=ie.openapiV3=ie.openapiV2=ie.openapiV1=void 0;ie.openapiV1=Cg();ie.openapiV2=kg();ie.openapiV3=jg();ie.openapiV31=qg();ie.openapi={v1:ie.openapiV1,v2:ie.openapiV2,v3:ie.openapiV3,v31:ie.openapiV31};ie.default=ie.openapi;typeof Cn=="object"&&typeof Cn.exports=="object"&&(Cn.exports=Object.assign(Cn.exports.default,Cn.exports))});var fp=h((ND,Dg)=>{"use strict";var kA=Go(),{ono:jA}=tt(),qA=Yh(),MA=Ng(),{openapi:lp}=Mg();Dg.exports=DA;function DA(e){let t,r;if(e.swagger)r=lp.v2,t=pp();else if(e.openapi.startsWith("3.1")){r=lp.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=pp(!1)}else r=lp.v3,t=pp();if(!t.validate(r,e)){let i=t.errors,s=`Swagger schema validation failed.
13
+ `+LA(i);throw jA.syntax(i,{details:i},s)}}o(DA,"validateSchema");function pp(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new qA(t):new MA(t)}o(pp,"initializeAjv");function LA(e,t){t=t||" ";let r="";for(let n of e)r+=kA.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
14
+ `);return r}o(LA,"formatAjvError")});var Fg=h((kD,Lg)=>{"use strict";Lg.exports=["get","put","post","delete","options","head","patch"]});var hp=h((jD,Ug)=>{"use strict";var FA=Go(),{ono:he}=tt(),HA=Fg(),dp=["array","boolean","integer","number","string"],Vg=["array","boolean","integer","number","string","object","null",void 0];Ug.exports=VA;function VA(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&&BA(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(VA,"validateSpec");function BA(e,t,r,n){for(let i of HA){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 he.syntax(`Validation failed. Duplicate operation id '${c}'`);UA(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;KA(l,f||{},p)}}}}o(BA,"validatePath");function UA(e,t,r,n,i){let s=t.parameters||[],a=n.parameters||[];try{Hg(s)}catch(u){throw he.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{Hg(a)}catch(u){throw he.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());GA(c,i),ZA(c,r,i),zA(c,e,n,i)}o(UA,"validateParameters");function GA(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw he.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw he.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}o(GA,"validateBodyParameters");function ZA(e,t,r){let n=t.match(FA.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let s=i+1;s<n.length;s++)if(n[i]===n[s])throw he.syntax(`Validation failed. ${r} has multiple path placeholders named ${n[i]}`);e=e.filter(i=>i.in==="path");for(let i of e){if(i.required!==!0)throw he.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${r}`);let s=n.indexOf("{"+i.name+"}");if(s===-1)throw he.syntax(`Validation failed. ${r} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(s,1)}if(n.length>0)throw he.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}o(ZA,"validatePathParameters");function zA(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=dp.concat("file");break;default:a=i,c=dp}if(mp(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 he.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}o(zA,"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 he.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}o(Hg,"checkForDuplicates");function KA(e,t,r){if(e!=="default"&&(e<100||e>599))throw he.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let i of n){let s=t.headers[i],a=r+"/headers/"+i;mp(s,a,dp)}if(t.schema){let i=Vg.concat("file");if(i.indexOf(t.schema.type)===-1)throw he.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);mp(t.schema,r+"/schema",i)}}o(KA,"validateResponse");function mp(e,t,r){if(r.indexOf(e.type)===-1)throw he.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw he.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}o(mp,"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 he.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}o(Bg,"validateRequiredPropertiesExist")});var at=h(st=>{"use strict";var{Ono:Gg}=tt(),{stripHash:Zg,toFileSystemPath:QA}=Me(),kn,or=st.JSONParserError=(kn=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,Gg.extend(this)}},o(kn,"JSONParserError"),kn);sr(or);var Lr,zg=st.JSONParserErrorGroup=(Lr=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${QA(t.$refs._root$Ref.path)}'`,Gg.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 Lr.getParserErrors(this.files)}},o(Lr,"JSONParserErrorGroup"),Lr);sr(zg);var jn,WA=st.ParserError=(jn=class extends or{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},o(jn,"ParserError"),jn);sr(WA);var qn,YA=st.UnmatchedParserError=(qn=class extends or{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},o(qn,"UnmatchedParserError"),qn);sr(YA);var Mn,JA=st.ResolverError=(Mn=class extends or{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},o(Mn,"ResolverError"),Mn);sr(JA);var Dn,XA=st.UnmatchedResolverError=(Dn=class extends or{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},o(Dn,"UnmatchedResolverError"),Dn);sr(XA);var Ln,eI=st.MissingPointerError=(Ln=class extends or{constructor(t,r){super(`Token "${t}" does not exist.`,Zg(r)),this.code="EMISSINGPOINTER"}},o(Ln,"MissingPointerError"),Ln);sr(eI);var Fn,tI=st.InvalidPointerError=(Fn=class extends or{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,Zg(r)),this.code="EINVALIDPOINTER"}},o(Fn,"InvalidPointerError"),Fn);sr(tI);function sr(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}o(sr,"setErrorName");st.isHandledError=function(e){return e instanceof or||e instanceof zg};st.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var Qg=h((LD,Kg)=>{"use strict";var{ParserError:rI}=at();Kg.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 rI(r.message,e.url)}}else return t}}});var Hr=h((FD,Fr)=>{"use strict";function Wg(e){return typeof e>"u"||e===null}o(Wg,"isNothing");function nI(e){return typeof e=="object"&&e!==null}o(nI,"isObject");function iI(e){return Array.isArray(e)?e:Wg(e)?[]:[e]}o(iI,"toArray");function oI(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(oI,"extend");function sI(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}o(sI,"repeat");function aI(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}o(aI,"isNegativeZero");Fr.exports.isNothing=Wg;Fr.exports.isObject=nI;Fr.exports.toArray=iI;Fr.exports.repeat=sI;Fr.exports.isNegativeZero=aI;Fr.exports.extend=oI});var Hn=h((VD,Yg)=>{"use strict";function Yi(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(Yi,"YAMLException");Yi.prototype=Object.create(Error.prototype);Yi.prototype.constructor=Yi;Yi.prototype.toString=o(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");Yg.exports=Yi});var ey=h((UD,Xg)=>{"use strict";var Jg=Hr();function gp(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}o(gp,"Mark");gp.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
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),Jg.repeat(" ",t)+n+c+s+`
17
17
  `+Jg.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");gp.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");Xg.exports=gp});var ne=h((zD,ry)=>{"use strict";var ty=Hn(),uI=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],lI=["scalar","sequence","mapping"];function pI(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}o(pI,"compileStyleAliases");function fI(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(uI.indexOf(r)===-1)throw new ty('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=pI(t.styleAliases||null),lI.indexOf(this.kind)===-1)throw new ty('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}o(fI,"Type");ry.exports=fI});var Vr=h((QD,iy)=>{"use strict";var ny=Hr(),Cs=Hn(),dI=ne();function yp(e,t,r){var n=[];return e.include.forEach(function(i){r=yp(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(yp,"compileList");function mI(){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(mI,"compileMap");function Vn(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 Cs("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=yp(this,"implicit",[]),this.compiledExplicit=yp(this,"explicit",[]),this.compiledTypeMap=mI(this.compiledImplicit,this.compiledExplicit)}o(Vn,"Schema");Vn.DEFAULT=null;Vn.create=o(function(){var t,r;switch(arguments.length){case 1:t=Vn.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new Cs("Wrong number of arguments for Schema.create function")}if(t=ny.toArray(t),r=ny.toArray(r),!t.every(function(n){return n instanceof Vn}))throw new Cs("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof dI}))throw new Cs("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Vn({include:t,explicit:r})},"createSchema");iy.exports=Vn});var sy=h((YD,oy)=>{"use strict";var hI=ne();oy.exports=new hI("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")})});var cy=h((XD,ay)=>{"use strict";var gI=ne();ay.exports=new gI("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")})});var ly=h((t8,uy)=>{"use strict";var yI=ne();uy.exports=new yI("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")})});var ks=h((n8,py)=>{"use strict";var vI=Vr();py.exports=new vI({explicit:[sy(),cy(),ly()]})});var dy=h((i8,fy)=>{"use strict";var SI=ne();function bI(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}o(bI,"resolveYamlNull");function _I(){return null}o(_I,"constructYamlNull");function PI(e){return e===null}o(PI,"isNull");fy.exports=new SI("tag:yaml.org,2002:null",{kind:"scalar",resolve:bI,construct:_I,predicate:PI,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 hy=h((s8,my)=>{"use strict";var EI=ne();function $I(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($I,"resolveYamlBoolean");function OI(e){return e==="true"||e==="True"||e==="TRUE"}o(OI,"constructYamlBoolean");function xI(e){return Object.prototype.toString.call(e)==="[object Boolean]"}o(xI,"isBoolean");my.exports=new EI("tag:yaml.org,2002:bool",{kind:"scalar",resolve:$I,construct:OI,predicate:xI,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 yy=h((c8,gy)=>{"use strict";var wI=Hr(),AI=ne();function II(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}o(II,"isHexCode");function TI(e){return 48<=e&&e<=55}o(TI,"isOctCode");function RI(e){return 48<=e&&e<=57}o(RI,"isDecCode");function NI(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(!II(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!TI(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(!RI(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}o(NI,"resolveYamlInteger");function CI(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(CI,"constructYamlInteger");function kI(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!wI.isNegativeZero(e)}o(kI,"isInteger");gy.exports=new AI("tag:yaml.org,2002:int",{kind:"scalar",resolve:NI,construct:CI,predicate:kI,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 by=h((l8,Sy)=>{"use strict";var vy=Hr(),jI=ne(),qI=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 MI(e){return!(e===null||!qI.test(e)||e[e.length-1]==="_")}o(MI,"resolveYamlFloat");function DI(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(DI,"constructYamlFloat");var LI=/^[-+]?[0-9]+e/;function FI(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(vy.isNegativeZero(e))return"-0.0";return r=e.toString(10),LI.test(r)?r.replace("e",".e"):r}o(FI,"representYamlFloat");function HI(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||vy.isNegativeZero(e))}o(HI,"isFloat");Sy.exports=new jI("tag:yaml.org,2002:float",{kind:"scalar",resolve:MI,construct:DI,predicate:HI,represent:FI,defaultStyle:"lowercase"})});var vp=h((f8,_y)=>{"use strict";var VI=Vr();_y.exports=new VI({include:[ks()],implicit:[dy(),hy(),yy(),by()]})});var Sp=h((d8,Py)=>{"use strict";var BI=Vr();Py.exports=new BI({include:[vp()]})});var xy=h((m8,Oy)=>{"use strict";var UI=ne(),Ey=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),$y=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 GI(e){return e===null?!1:Ey.exec(e)!==null||$y.exec(e)!==null}o(GI,"resolveYamlTimestamp");function ZI(e){var t,r,n,i,s,a,c,u=0,l=null,f,p,d;if(t=Ey.exec(e),t===null&&(t=$y.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(ZI,"constructYamlTimestamp");function zI(e){return e.toISOString()}o(zI,"representYamlTimestamp");Oy.exports=new UI("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:GI,construct:ZI,instanceOf:Date,represent:zI})});var Ay=h((g8,wy)=>{"use strict";var KI=ne();function QI(e){return e==="<<"||e===null}o(QI,"resolveYamlMerge");wy.exports=new KI("tag:yaml.org,2002:merge",{kind:"scalar",resolve:QI})});var Ry=h((v8,Ty)=>{"use strict";var Br;try{Iy=require,Br=Iy("buffer").Buffer}catch{}var Iy,WI=ne(),bp=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
19
- \r`;function YI(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=bp;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(YI,"resolveYamlBinary");function JI(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=bp,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),Br?Br.from?Br.from(c):new Br(c):c}o(JI,"constructYamlBinary");function XI(e){var t="",r=0,n,i,s=e.length,a=bp;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(XI,"representYamlBinary");function eT(e){return Br&&Br.isBuffer(e)}o(eT,"isBinary");Ty.exports=new WI("tag:yaml.org,2002:binary",{kind:"scalar",resolve:YI,construct:JI,predicate:eT,represent:XI})});var Cy=h((b8,Ny)=>{"use strict";var tT=ne(),rT=Object.prototype.hasOwnProperty,nT=Object.prototype.toString;function iT(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,nT.call(i)!=="[object Object]")return!1;for(s in i)if(rT.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(iT,"resolveYamlOmap");function oT(e){return e!==null?e:[]}o(oT,"constructYamlOmap");Ny.exports=new tT("tag:yaml.org,2002:omap",{kind:"sequence",resolve:iT,construct:oT})});var jy=h((P8,ky)=>{"use strict";var sT=ne(),aT=Object.prototype.toString;function cT(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],aT.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}o(cT,"resolveYamlPairs");function uT(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(uT,"constructYamlPairs");ky.exports=new sT("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:cT,construct:uT})});var My=h(($8,qy)=>{"use strict";var lT=ne(),pT=Object.prototype.hasOwnProperty;function fT(e){if(e===null)return!0;var t,r=e;for(t in r)if(pT.call(r,t)&&r[t]!==null)return!1;return!0}o(fT,"resolveYamlSet");function dT(e){return e!==null?e:{}}o(dT,"constructYamlSet");qy.exports=new lT("tag:yaml.org,2002:set",{kind:"mapping",resolve:fT,construct:dT})});var Bn=h((x8,Dy)=>{"use strict";var mT=Vr();Dy.exports=new mT({include:[Sp()],implicit:[xy(),Ay()],explicit:[Ry(),Cy(),jy(),My()]})});var Fy=h((w8,Ly)=>{"use strict";var hT=ne();function gT(){return!0}o(gT,"resolveJavascriptUndefined");function yT(){}o(yT,"constructJavascriptUndefined");function vT(){return""}o(vT,"representJavascriptUndefined");function ST(e){return typeof e>"u"}o(ST,"isUndefined");Ly.exports=new hT("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:gT,construct:yT,predicate:ST,represent:vT})});var Vy=h((I8,Hy)=>{"use strict";var bT=ne();function _T(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(_T,"resolveJavascriptRegExp");function PT(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(PT,"constructJavascriptRegExp");function ET(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}o(ET,"representJavascriptRegExp");function $T(e){return Object.prototype.toString.call(e)==="[object RegExp]"}o($T,"isRegExp");Hy.exports=new bT("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:_T,construct:PT,predicate:$T,represent:ET})});var Gy=h((R8,Uy)=>{"use strict";var js;try{By=require,js=By("esprima")}catch{typeof window<"u"&&(js=window.esprima)}var By,OT=ne();function xT(e){if(e===null)return!1;try{var t="("+e+")",r=js.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(xT,"resolveJavascriptFunction");function wT(e){var t="("+e+")",r=js.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(wT,"constructJavascriptFunction");function AT(e){return e.toString()}o(AT,"representJavascriptFunction");function IT(e){return Object.prototype.toString.call(e)==="[object Function]"}o(IT,"isFunction");Uy.exports=new OT("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:xT,construct:wT,predicate:IT,represent:AT})});var Ji=h((C8,zy)=>{"use strict";var Zy=Vr();zy.exports=Zy.DEFAULT=new Zy({include:[Bn()],explicit:[Fy(),Vy(),Gy()]})});var f0=h((k8,Xi)=>{"use strict";var Ht=Hr(),e0=Hn(),TT=ey(),t0=Bn(),RT=Ji(),cr=Object.prototype.hasOwnProperty,qs=1,r0=2,n0=3,Ms=4,_p=1,NT=2,Ky=3,CT=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,kT=/[\x85\u2028\u2029]/,jT=/[,\[\]\{\}]/,i0=/^(?:!|!!|![a-z\-]+!)$/i,o0=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Qy(e){return Object.prototype.toString.call(e)}o(Qy,"_class");function _t(e){return e===10||e===13}o(_t,"is_EOL");function Gr(e){return e===9||e===32}o(Gr,"is_WHITE_SPACE");function Ne(e){return e===9||e===32||e===10||e===13}o(Ne,"is_WS_OR_EOL");function Un(e){return e===44||e===91||e===93||e===123||e===125}o(Un,"is_FLOW_INDICATOR");function qT(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}o(qT,"fromHexCode");function MT(e){return e===120?2:e===117?4:e===85?8:0}o(MT,"escapedHexLen");function DT(e){return 48<=e&&e<=57?e-48:-1}o(DT,"fromDecimalCode");function Wy(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
20
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}o(Wy,"simpleEscapeSequence");function LT(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}o(LT,"charFromCodepoint");var s0=new Array(256),a0=new Array(256);for(Ur=0;Ur<256;Ur++)s0[Ur]=Wy(Ur)?1:0,a0[Ur]=Wy(Ur);var Ur;function FT(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||RT,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(FT,"State");function c0(e,t){return new e0(t,new TT(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}o(c0,"generateError");function x(e,t){throw c0(e,t)}o(x,"throwError");function Ds(e,t){e.onWarning&&e.onWarning.call(null,c0(e,t))}o(Ds,"throwWarning");var Yy={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&&Ds(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],i0.test(i)||x(t,"ill-formed tag handle (first argument) of the TAG directive"),cr.call(t.tagMap,i)&&x(t,'there is a previously declared suffix for "'+i+'" tag handle'),o0.test(s)||x(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s},"handleTagDirective")};function ar(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 CT.test(c)&&x(e,"the stream contains non-printable characters");e.result+=c}}o(ar,"captureSegment");function Jy(e,t,r,n){var i,s,a,c;for(Ht.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],cr.call(t,s)||(t[s]=r[s],n[s]=!0)}o(Jy,"mergeMappings");function Gn(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"&&Qy(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&Qy(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)Jy(e,t,s[u],r);else Jy(e,t,s,r);else!e.json&&!cr.call(r,i)&&cr.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(Gn,"storeMappingPair");function Pp(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(Pp,"readLineBreak");function X(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Gr(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(_t(i))for(Pp(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&&Ds(e,"deficient indentation"),n}o(X,"skipSeparationSpace");function Ls(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||Ne(r)))}o(Ls,"testDocumentSeparator");function Ep(e,t){t===1?e.result+=" ":t>1&&(e.result+=Ht.repeat(`
21
- `,t-1))}o(Ep,"writeFoldedLines");function HT(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),Ne(m)||Un(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),Ne(i)||r&&Un(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),Ne(i)||r&&Un(i))break}else if(m===35){if(n=e.input.charCodeAt(e.position-1),Ne(n))break}else{if(e.position===e.lineStart&&Ls(e)||r&&Un(m))break;if(_t(m))if(u=e.line,l=e.lineStart,f=e.lineIndent,X(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&&(ar(e,s,a,!1),Ep(e,e.line-u),s=a=e.position,c=!1),Gr(m)||(a=e.position+1),m=e.input.charCodeAt(++e.position)}return ar(e,s,a,!1),e.result?!0:(e.kind=p,e.result=d,!1)}o(HT,"readPlainScalar");function VT(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(ar(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 _t(r)?(ar(e,n,i,!0),Ep(e,X(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Ls(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(VT,"readSingleQuotedScalar");function BT(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 ar(e,r,e.position,!0),e.position++,!0;if(c===92){if(ar(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),_t(c))X(e,!1,t);else if(c<256&&s0[c])e.result+=a0[c],e.position++;else if((a=MT(c))>0){for(i=a,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=qT(c))>=0?s=(s<<4)+a:x(e,"expected hexadecimal character");e.result+=LT(s),e.position++}else x(e,"unknown escape sequence");r=n=e.position}else _t(c)?(ar(e,r,n,!0),Ep(e,X(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Ls(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(BT,"readDoubleQuotedScalar");function UT(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(X(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),Ne(c)&&(l=f=!0,e.position++,X(e,!0,t))),n=e.line,Zn(e,t,qs,!1,!0),g=e.tag,m=e.result,X(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===n)&&v===58&&(l=!0,v=e.input.charCodeAt(++e.position),X(e,!0,t),Zn(e,t,qs,!1,!0),y=e.result),p?Gn(e,s,d,g,m,y):l?s.push(Gn(e,null,d,g,m,y)):s.push(m),X(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(UT,"readFlowCollection");function GT(e,t){var r,n,i=_p,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)_p===i?i=p===43?Ky:NT:x(e,"repeat of a chomping mode identifier");else if((f=DT(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(Gr(p)){do p=e.input.charCodeAt(++e.position);while(Gr(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!_t(p)&&p!==0)}for(;p!==0;){for(Pp(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),_t(p)){u++;continue}if(e.lineIndent<c){i===Ky?e.result+=Ht.repeat(`
18
+ `+r)),n},"toString");Xg.exports=gp});var ne=h((ZD,ry)=>{"use strict";var ty=Hn(),cI=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],uI=["scalar","sequence","mapping"];function lI(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}o(lI,"compileStyleAliases");function pI(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(cI.indexOf(r)===-1)throw new ty('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=lI(t.styleAliases||null),uI.indexOf(this.kind)===-1)throw new ty('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}o(pI,"Type");ry.exports=pI});var Vr=h((KD,iy)=>{"use strict";var ny=Hr(),Cs=Hn(),fI=ne();function yp(e,t,r){var n=[];return e.include.forEach(function(i){r=yp(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(yp,"compileList");function dI(){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(dI,"compileMap");function Vn(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 Cs("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=yp(this,"implicit",[]),this.compiledExplicit=yp(this,"explicit",[]),this.compiledTypeMap=dI(this.compiledImplicit,this.compiledExplicit)}o(Vn,"Schema");Vn.DEFAULT=null;Vn.create=o(function(){var t,r;switch(arguments.length){case 1:t=Vn.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new Cs("Wrong number of arguments for Schema.create function")}if(t=ny.toArray(t),r=ny.toArray(r),!t.every(function(n){return n instanceof Vn}))throw new Cs("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof fI}))throw new Cs("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Vn({include:t,explicit:r})},"createSchema");iy.exports=Vn});var sy=h((WD,oy)=>{"use strict";var mI=ne();oy.exports=new mI("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")})});var cy=h((JD,ay)=>{"use strict";var hI=ne();ay.exports=new hI("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")})});var ly=h((e8,uy)=>{"use strict";var gI=ne();uy.exports=new gI("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")})});var ks=h((r8,py)=>{"use strict";var yI=Vr();py.exports=new yI({explicit:[sy(),cy(),ly()]})});var dy=h((n8,fy)=>{"use strict";var vI=ne();function SI(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}o(SI,"resolveYamlNull");function bI(){return null}o(bI,"constructYamlNull");function _I(e){return e===null}o(_I,"isNull");fy.exports=new vI("tag:yaml.org,2002:null",{kind:"scalar",resolve:SI,construct:bI,predicate:_I,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 hy=h((o8,my)=>{"use strict";var PI=ne();function EI(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(EI,"resolveYamlBoolean");function $I(e){return e==="true"||e==="True"||e==="TRUE"}o($I,"constructYamlBoolean");function OI(e){return Object.prototype.toString.call(e)==="[object Boolean]"}o(OI,"isBoolean");my.exports=new PI("tag:yaml.org,2002:bool",{kind:"scalar",resolve:EI,construct:$I,predicate:OI,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 yy=h((a8,gy)=>{"use strict";var xI=Hr(),wI=ne();function AI(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}o(AI,"isHexCode");function II(e){return 48<=e&&e<=55}o(II,"isOctCode");function TI(e){return 48<=e&&e<=57}o(TI,"isDecCode");function RI(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(!AI(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!II(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(!TI(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}o(RI,"resolveYamlInteger");function NI(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(NI,"constructYamlInteger");function CI(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!xI.isNegativeZero(e)}o(CI,"isInteger");gy.exports=new wI("tag:yaml.org,2002:int",{kind:"scalar",resolve:RI,construct:NI,predicate:CI,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 by=h((u8,Sy)=>{"use strict";var vy=Hr(),kI=ne(),jI=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 qI(e){return!(e===null||!jI.test(e)||e[e.length-1]==="_")}o(qI,"resolveYamlFloat");function MI(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(MI,"constructYamlFloat");var DI=/^[-+]?[0-9]+e/;function LI(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(vy.isNegativeZero(e))return"-0.0";return r=e.toString(10),DI.test(r)?r.replace("e",".e"):r}o(LI,"representYamlFloat");function FI(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||vy.isNegativeZero(e))}o(FI,"isFloat");Sy.exports=new kI("tag:yaml.org,2002:float",{kind:"scalar",resolve:qI,construct:MI,predicate:FI,represent:LI,defaultStyle:"lowercase"})});var vp=h((p8,_y)=>{"use strict";var HI=Vr();_y.exports=new HI({include:[ks()],implicit:[dy(),hy(),yy(),by()]})});var Sp=h((f8,Py)=>{"use strict";var VI=Vr();Py.exports=new VI({include:[vp()]})});var xy=h((d8,Oy)=>{"use strict";var BI=ne(),Ey=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),$y=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 UI(e){return e===null?!1:Ey.exec(e)!==null||$y.exec(e)!==null}o(UI,"resolveYamlTimestamp");function GI(e){var t,r,n,i,s,a,c,u=0,l=null,f,p,d;if(t=Ey.exec(e),t===null&&(t=$y.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(GI,"constructYamlTimestamp");function ZI(e){return e.toISOString()}o(ZI,"representYamlTimestamp");Oy.exports=new BI("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:UI,construct:GI,instanceOf:Date,represent:ZI})});var Ay=h((h8,wy)=>{"use strict";var zI=ne();function KI(e){return e==="<<"||e===null}o(KI,"resolveYamlMerge");wy.exports=new zI("tag:yaml.org,2002:merge",{kind:"scalar",resolve:KI})});var Ry=h((y8,Ty)=>{"use strict";var Br;try{Iy=require,Br=Iy("buffer").Buffer}catch{}var Iy,QI=ne(),bp=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
19
+ \r`;function WI(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=bp;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(WI,"resolveYamlBinary");function YI(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=bp,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),Br?Br.from?Br.from(c):new Br(c):c}o(YI,"constructYamlBinary");function JI(e){var t="",r=0,n,i,s=e.length,a=bp;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(JI,"representYamlBinary");function XI(e){return Br&&Br.isBuffer(e)}o(XI,"isBinary");Ty.exports=new QI("tag:yaml.org,2002:binary",{kind:"scalar",resolve:WI,construct:YI,predicate:XI,represent:JI})});var Cy=h((S8,Ny)=>{"use strict";var eT=ne(),tT=Object.prototype.hasOwnProperty,rT=Object.prototype.toString;function nT(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,rT.call(i)!=="[object Object]")return!1;for(s in i)if(tT.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(nT,"resolveYamlOmap");function iT(e){return e!==null?e:[]}o(iT,"constructYamlOmap");Ny.exports=new eT("tag:yaml.org,2002:omap",{kind:"sequence",resolve:nT,construct:iT})});var jy=h((_8,ky)=>{"use strict";var oT=ne(),sT=Object.prototype.toString;function aT(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],sT.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}o(aT,"resolveYamlPairs");function cT(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(cT,"constructYamlPairs");ky.exports=new oT("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:aT,construct:cT})});var My=h((E8,qy)=>{"use strict";var uT=ne(),lT=Object.prototype.hasOwnProperty;function pT(e){if(e===null)return!0;var t,r=e;for(t in r)if(lT.call(r,t)&&r[t]!==null)return!1;return!0}o(pT,"resolveYamlSet");function fT(e){return e!==null?e:{}}o(fT,"constructYamlSet");qy.exports=new uT("tag:yaml.org,2002:set",{kind:"mapping",resolve:pT,construct:fT})});var Bn=h((O8,Dy)=>{"use strict";var dT=Vr();Dy.exports=new dT({include:[Sp()],implicit:[xy(),Ay()],explicit:[Ry(),Cy(),jy(),My()]})});var Fy=h((x8,Ly)=>{"use strict";var mT=ne();function hT(){return!0}o(hT,"resolveJavascriptUndefined");function gT(){}o(gT,"constructJavascriptUndefined");function yT(){return""}o(yT,"representJavascriptUndefined");function vT(e){return typeof e>"u"}o(vT,"isUndefined");Ly.exports=new mT("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:hT,construct:gT,predicate:vT,represent:yT})});var Vy=h((A8,Hy)=>{"use strict";var ST=ne();function bT(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(bT,"resolveJavascriptRegExp");function _T(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(_T,"constructJavascriptRegExp");function PT(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}o(PT,"representJavascriptRegExp");function ET(e){return Object.prototype.toString.call(e)==="[object RegExp]"}o(ET,"isRegExp");Hy.exports=new ST("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:bT,construct:_T,predicate:ET,represent:PT})});var Gy=h((T8,Uy)=>{"use strict";var js;try{By=require,js=By("esprima")}catch{typeof window<"u"&&(js=window.esprima)}var By,$T=ne();function OT(e){if(e===null)return!1;try{var t="("+e+")",r=js.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(OT,"resolveJavascriptFunction");function xT(e){var t="("+e+")",r=js.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(xT,"constructJavascriptFunction");function wT(e){return e.toString()}o(wT,"representJavascriptFunction");function AT(e){return Object.prototype.toString.call(e)==="[object Function]"}o(AT,"isFunction");Uy.exports=new $T("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:OT,construct:xT,predicate:AT,represent:wT})});var Ji=h((N8,zy)=>{"use strict";var Zy=Vr();zy.exports=Zy.DEFAULT=new Zy({include:[Bn()],explicit:[Fy(),Vy(),Gy()]})});var f0=h((C8,Xi)=>{"use strict";var Ht=Hr(),e0=Hn(),IT=ey(),t0=Bn(),TT=Ji(),cr=Object.prototype.hasOwnProperty,qs=1,r0=2,n0=3,Ms=4,_p=1,RT=2,Ky=3,NT=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,CT=/[\x85\u2028\u2029]/,kT=/[,\[\]\{\}]/,i0=/^(?:!|!!|![a-z\-]+!)$/i,o0=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Qy(e){return Object.prototype.toString.call(e)}o(Qy,"_class");function _t(e){return e===10||e===13}o(_t,"is_EOL");function Gr(e){return e===9||e===32}o(Gr,"is_WHITE_SPACE");function Ne(e){return e===9||e===32||e===10||e===13}o(Ne,"is_WS_OR_EOL");function Un(e){return e===44||e===91||e===93||e===123||e===125}o(Un,"is_FLOW_INDICATOR");function jT(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}o(jT,"fromHexCode");function qT(e){return e===120?2:e===117?4:e===85?8:0}o(qT,"escapedHexLen");function MT(e){return 48<=e&&e<=57?e-48:-1}o(MT,"fromDecimalCode");function Wy(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
20
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}o(Wy,"simpleEscapeSequence");function DT(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}o(DT,"charFromCodepoint");var s0=new Array(256),a0=new Array(256);for(Ur=0;Ur<256;Ur++)s0[Ur]=Wy(Ur)?1:0,a0[Ur]=Wy(Ur);var Ur;function LT(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||TT,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(LT,"State");function c0(e,t){return new e0(t,new IT(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}o(c0,"generateError");function x(e,t){throw c0(e,t)}o(x,"throwError");function Ds(e,t){e.onWarning&&e.onWarning.call(null,c0(e,t))}o(Ds,"throwWarning");var Yy={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&&Ds(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],i0.test(i)||x(t,"ill-formed tag handle (first argument) of the TAG directive"),cr.call(t.tagMap,i)&&x(t,'there is a previously declared suffix for "'+i+'" tag handle'),o0.test(s)||x(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s},"handleTagDirective")};function ar(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 NT.test(c)&&x(e,"the stream contains non-printable characters");e.result+=c}}o(ar,"captureSegment");function Jy(e,t,r,n){var i,s,a,c;for(Ht.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],cr.call(t,s)||(t[s]=r[s],n[s]=!0)}o(Jy,"mergeMappings");function Gn(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"&&Qy(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&Qy(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)Jy(e,t,s[u],r);else Jy(e,t,s,r);else!e.json&&!cr.call(r,i)&&cr.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(Gn,"storeMappingPair");function Pp(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(Pp,"readLineBreak");function X(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Gr(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(_t(i))for(Pp(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&&Ds(e,"deficient indentation"),n}o(X,"skipSeparationSpace");function Ls(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||Ne(r)))}o(Ls,"testDocumentSeparator");function Ep(e,t){t===1?e.result+=" ":t>1&&(e.result+=Ht.repeat(`
21
+ `,t-1))}o(Ep,"writeFoldedLines");function FT(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),Ne(m)||Un(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),Ne(i)||r&&Un(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),Ne(i)||r&&Un(i))break}else if(m===35){if(n=e.input.charCodeAt(e.position-1),Ne(n))break}else{if(e.position===e.lineStart&&Ls(e)||r&&Un(m))break;if(_t(m))if(u=e.line,l=e.lineStart,f=e.lineIndent,X(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&&(ar(e,s,a,!1),Ep(e,e.line-u),s=a=e.position,c=!1),Gr(m)||(a=e.position+1),m=e.input.charCodeAt(++e.position)}return ar(e,s,a,!1),e.result?!0:(e.kind=p,e.result=d,!1)}o(FT,"readPlainScalar");function HT(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(ar(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 _t(r)?(ar(e,n,i,!0),Ep(e,X(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Ls(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(HT,"readSingleQuotedScalar");function VT(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 ar(e,r,e.position,!0),e.position++,!0;if(c===92){if(ar(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),_t(c))X(e,!1,t);else if(c<256&&s0[c])e.result+=a0[c],e.position++;else if((a=qT(c))>0){for(i=a,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=jT(c))>=0?s=(s<<4)+a:x(e,"expected hexadecimal character");e.result+=DT(s),e.position++}else x(e,"unknown escape sequence");r=n=e.position}else _t(c)?(ar(e,r,n,!0),Ep(e,X(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Ls(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(VT,"readDoubleQuotedScalar");function BT(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(X(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),Ne(c)&&(l=f=!0,e.position++,X(e,!0,t))),n=e.line,Zn(e,t,qs,!1,!0),g=e.tag,m=e.result,X(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===n)&&v===58&&(l=!0,v=e.input.charCodeAt(++e.position),X(e,!0,t),Zn(e,t,qs,!1,!0),y=e.result),p?Gn(e,s,d,g,m,y):l?s.push(Gn(e,null,d,g,m,y)):s.push(m),X(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(BT,"readFlowCollection");function UT(e,t){var r,n,i=_p,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)_p===i?i=p===43?Ky:RT:x(e,"repeat of a chomping mode identifier");else if((f=MT(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(Gr(p)){do p=e.input.charCodeAt(++e.position);while(Gr(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!_t(p)&&p!==0)}for(;p!==0;){for(Pp(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),_t(p)){u++;continue}if(e.lineIndent<c){i===Ky?e.result+=Ht.repeat(`
22
22
  `,s?1+u:u):i===_p&&s&&(e.result+=`
23
23
  `);break}for(n?Gr(p)?(l=!0,e.result+=Ht.repeat(`
24
24
  `,s?1+u:u)):l?(l=!1,e.result+=Ht.repeat(`
25
25
  `,u+1)):u===0?s&&(e.result+=" "):e.result+=Ht.repeat(`
26
26
  `,u):e.result+=Ht.repeat(`
27
- `,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!_t(p)&&p!==0;)p=e.input.charCodeAt(++e.position);ar(e,r,e.position,!1)}return!0}o(GT,"readBlockScalar");function Xy(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),!Ne(a)));){if(c=!0,e.position++,X(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Zn(e,t,n0,!1,!0),s.push(e.result),X(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(Xy,"readBlockSequence");function ZT(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)&&Ne(n))v===63?(g&&(Gn(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(Zn(e,r,r0,!1,!0))if(e.line===s){for(v=e.input.charCodeAt(e.position);Gr(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),Ne(v)||x(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(Gn(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)&&(Zn(e,t,Ms,!0,i)&&(g?d=e.result:m=e.result),g||(Gn(e,l,f,p,d,m,s,a),p=d=m=null),X(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&&Gn(e,l,f,p,d,null),y&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=l),y}o(ZT,"readBlockMapping");function zT(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&&!Ne(a);)a===33&&(n?x(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),i0.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),jT.test(s)&&x(e,"tag suffix cannot contain flow indicator characters")}return s&&!o0.test(s)&&x(e,"tag name cannot contain such characters: "+s),r?e.tag=s:cr.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(zT,"readTagProperty");function KT(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&&!Ne(r)&&!Un(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(KT,"readAnchorProperty");function QT(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&&!Ne(n)&&!Un(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),cr.call(e.anchorMap,r)||x(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],X(e,!0,-1),!0}o(QT,"readAlias");function Zn(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=Ms===r||n0===r,n&&X(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;zT(e)||KT(e);)X(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||Ms===r)&&(qs===r||r0===r?g=t:g=t+1,y=e.position-e.lineStart,u===1?c&&(Xy(e,y)||ZT(e,y,g))||UT(e,g)?f=!0:(a&&GT(e,g)||VT(e,g)||BT(e,g)?f=!0:QT(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&x(e,"alias node should not have any properties")):HT(e,g,qs===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(f=c&&Xy(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 cr.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(Zn,"composeNode");function WT(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&&(X(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&&!Ne(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(;Gr(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!_t(a));break}if(_t(a))break;for(r=e.position;a!==0&&!Ne(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Pp(e),cr.call(Yy,n)?Yy[n](e,n,i):Ds(e,'unknown document directive "'+n+'"')}if(X(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,X(e,!0,-1)):s&&x(e,"directives end mark is expected"),Zn(e,e.lineIndent-1,Ms,!1,!0),X(e,!0,-1),e.checkLineBreaks&&kT.test(e.input.slice(t,e.position))&&Ds(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ls(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,X(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(WT,"readDocument");function u0(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 FT(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;)WT(r);return r.documents}o(u0,"loadDocuments");function l0(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=u0(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}o(l0,"loadAll");function p0(e,t){var r=u0(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new e0("expected a single document in the stream, but found more")}}o(p0,"load");function YT(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),l0(e,t,Ht.extend({schema:t0},r))}o(YT,"safeLoadAll");function JT(e,t){return p0(e,Ht.extend({schema:t0},t))}o(JT,"safeLoad");Xi.exports.loadAll=l0;Xi.exports.load=p0;Xi.exports.safeLoadAll=YT;Xi.exports.safeLoad=JT});var j0=h((q8,wp)=>{"use strict";var to=Hr(),ro=Hn(),XT=Ji(),eR=Bn(),b0=Object.prototype.toString,_0=Object.prototype.hasOwnProperty,tR=9,eo=10,rR=13,nR=32,iR=33,oR=34,P0=35,sR=37,aR=38,cR=39,uR=42,E0=44,lR=45,$0=58,pR=61,fR=62,dR=63,mR=64,O0=91,x0=93,hR=96,w0=123,gR=124,A0=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 yR=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function vR(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&&_0.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}o(vR,"compileStyleMap");function d0(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 ro("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+to.repeat("0",n-t.length)+t}o(d0,"encodeHex");function SR(e){this.schema=e.schema||XT,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=to.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=vR(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(SR,"State");function m0(e,t){for(var r=to.repeat(" ",t),n=0,i=-1,s="",a,c=e.length;n<c;)i=e.indexOf(`
27
+ `,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!_t(p)&&p!==0;)p=e.input.charCodeAt(++e.position);ar(e,r,e.position,!1)}return!0}o(UT,"readBlockScalar");function Xy(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),!Ne(a)));){if(c=!0,e.position++,X(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Zn(e,t,n0,!1,!0),s.push(e.result),X(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(Xy,"readBlockSequence");function GT(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)&&Ne(n))v===63?(g&&(Gn(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(Zn(e,r,r0,!1,!0))if(e.line===s){for(v=e.input.charCodeAt(e.position);Gr(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),Ne(v)||x(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(Gn(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)&&(Zn(e,t,Ms,!0,i)&&(g?d=e.result:m=e.result),g||(Gn(e,l,f,p,d,m,s,a),p=d=m=null),X(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&&Gn(e,l,f,p,d,null),y&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=l),y}o(GT,"readBlockMapping");function ZT(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&&!Ne(a);)a===33&&(n?x(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),i0.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),kT.test(s)&&x(e,"tag suffix cannot contain flow indicator characters")}return s&&!o0.test(s)&&x(e,"tag name cannot contain such characters: "+s),r?e.tag=s:cr.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(ZT,"readTagProperty");function zT(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&&!Ne(r)&&!Un(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(zT,"readAnchorProperty");function KT(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&&!Ne(n)&&!Un(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),cr.call(e.anchorMap,r)||x(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],X(e,!0,-1),!0}o(KT,"readAlias");function Zn(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=Ms===r||n0===r,n&&X(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;ZT(e)||zT(e);)X(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||Ms===r)&&(qs===r||r0===r?g=t:g=t+1,y=e.position-e.lineStart,u===1?c&&(Xy(e,y)||GT(e,y,g))||BT(e,g)?f=!0:(a&&UT(e,g)||HT(e,g)||VT(e,g)?f=!0:KT(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&x(e,"alias node should not have any properties")):FT(e,g,qs===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(f=c&&Xy(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 cr.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(Zn,"composeNode");function QT(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&&(X(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&&!Ne(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(;Gr(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!_t(a));break}if(_t(a))break;for(r=e.position;a!==0&&!Ne(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Pp(e),cr.call(Yy,n)?Yy[n](e,n,i):Ds(e,'unknown document directive "'+n+'"')}if(X(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,X(e,!0,-1)):s&&x(e,"directives end mark is expected"),Zn(e,e.lineIndent-1,Ms,!1,!0),X(e,!0,-1),e.checkLineBreaks&&CT.test(e.input.slice(t,e.position))&&Ds(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ls(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,X(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(QT,"readDocument");function u0(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 LT(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;)QT(r);return r.documents}o(u0,"loadDocuments");function l0(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=u0(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}o(l0,"loadAll");function p0(e,t){var r=u0(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new e0("expected a single document in the stream, but found more")}}o(p0,"load");function WT(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),l0(e,t,Ht.extend({schema:t0},r))}o(WT,"safeLoadAll");function YT(e,t){return p0(e,Ht.extend({schema:t0},t))}o(YT,"safeLoad");Xi.exports.loadAll=l0;Xi.exports.load=p0;Xi.exports.safeLoadAll=WT;Xi.exports.safeLoad=YT});var j0=h((j8,wp)=>{"use strict";var to=Hr(),ro=Hn(),JT=Ji(),XT=Bn(),b0=Object.prototype.toString,_0=Object.prototype.hasOwnProperty,eR=9,eo=10,tR=13,rR=32,nR=33,iR=34,P0=35,oR=37,sR=38,aR=39,cR=42,E0=44,uR=45,$0=58,lR=61,pR=62,fR=63,dR=64,O0=91,x0=93,mR=96,w0=123,hR=124,A0=125,ge={};ge[0]="\\0";ge[7]="\\a";ge[8]="\\b";ge[9]="\\t";ge[10]="\\n";ge[11]="\\v";ge[12]="\\f";ge[13]="\\r";ge[27]="\\e";ge[34]='\\"';ge[92]="\\\\";ge[133]="\\N";ge[160]="\\_";ge[8232]="\\L";ge[8233]="\\P";var gR=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function yR(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&&_0.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}o(yR,"compileStyleMap");function d0(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 ro("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+to.repeat("0",n-t.length)+t}o(d0,"encodeHex");function vR(e){this.schema=e.schema||JT,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=to.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=yR(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(vR,"State");function m0(e,t){for(var r=to.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
30
  `&&(s+=r),s+=a;return s}o(m0,"indentString");function $p(e,t){return`
31
- `+to.repeat(" ",e.indent*t)}o($p,"generateNextLine");function bR(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(bR,"testImplicitResolving");function xp(e){return e===nR||e===tR}o(xp,"isWhitespace");function zn(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(zn,"isPrintable");function _R(e){return zn(e)&&!xp(e)&&e!==65279&&e!==rR&&e!==eo}o(_R,"isNsChar");function h0(e,t){return zn(e)&&e!==65279&&e!==E0&&e!==O0&&e!==x0&&e!==w0&&e!==A0&&e!==$0&&(e!==P0||t&&_R(t))}o(h0,"isPlainSafe");function PR(e){return zn(e)&&e!==65279&&!xp(e)&&e!==lR&&e!==dR&&e!==$0&&e!==E0&&e!==O0&&e!==x0&&e!==w0&&e!==A0&&e!==P0&&e!==aR&&e!==uR&&e!==iR&&e!==gR&&e!==pR&&e!==fR&&e!==cR&&e!==oR&&e!==sR&&e!==mR&&e!==hR}o(PR,"isPlainSafeFirst");function I0(e){var t=/^\n* /;return t.test(e)}o(I0,"needIndentIndicator");var T0=1,R0=2,N0=3,C0=4,Fs=5;function ER(e,t,r,n,i){var s,a,c,u=!1,l=!1,f=n!==-1,p=-1,d=PR(e.charCodeAt(0))&&!xp(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),!zn(a))return Fs;c=s>0?e.charCodeAt(s-1):null,d=d&&h0(a,c)}else{for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),a===eo)u=!0,f&&(l=l||s-p-1>n&&e[p+1]!==" ",p=s);else if(!zn(a))return Fs;c=s>0?e.charCodeAt(s-1):null,d=d&&h0(a,c)}l=l||f&&s-p-1>n&&e[p+1]!==" "}return!u&&!l?d&&!i(e)?T0:R0:r>9&&I0(e)?Fs:l?C0:N0}o(ER,"chooseScalarStyle");function $R(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&yR.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 bR(e,u)}switch(o(c,"testAmbiguity"),ER(t,a,e.indent,s,c)){case T0:return t;case R0:return"'"+t.replace(/'/g,"''")+"'";case N0:return"|"+g0(t,e.indent)+y0(m0(t,i));case C0:return">"+g0(t,e.indent)+y0(m0(OR(t,s),i));case Fs:return'"'+xR(t,s)+'"';default:throw new ro("impossible error: invalid scalar style")}}()}o($R,"writeScalar");function g0(e,t){var r=I0(e)?String(t):"",n=e[e.length-1]===`
31
+ `+to.repeat(" ",e.indent*t)}o($p,"generateNextLine");function SR(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(SR,"testImplicitResolving");function xp(e){return e===rR||e===eR}o(xp,"isWhitespace");function zn(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(zn,"isPrintable");function bR(e){return zn(e)&&!xp(e)&&e!==65279&&e!==tR&&e!==eo}o(bR,"isNsChar");function h0(e,t){return zn(e)&&e!==65279&&e!==E0&&e!==O0&&e!==x0&&e!==w0&&e!==A0&&e!==$0&&(e!==P0||t&&bR(t))}o(h0,"isPlainSafe");function _R(e){return zn(e)&&e!==65279&&!xp(e)&&e!==uR&&e!==fR&&e!==$0&&e!==E0&&e!==O0&&e!==x0&&e!==w0&&e!==A0&&e!==P0&&e!==sR&&e!==cR&&e!==nR&&e!==hR&&e!==lR&&e!==pR&&e!==aR&&e!==iR&&e!==oR&&e!==dR&&e!==mR}o(_R,"isPlainSafeFirst");function I0(e){var t=/^\n* /;return t.test(e)}o(I0,"needIndentIndicator");var T0=1,R0=2,N0=3,C0=4,Fs=5;function PR(e,t,r,n,i){var s,a,c,u=!1,l=!1,f=n!==-1,p=-1,d=_R(e.charCodeAt(0))&&!xp(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),!zn(a))return Fs;c=s>0?e.charCodeAt(s-1):null,d=d&&h0(a,c)}else{for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),a===eo)u=!0,f&&(l=l||s-p-1>n&&e[p+1]!==" ",p=s);else if(!zn(a))return Fs;c=s>0?e.charCodeAt(s-1):null,d=d&&h0(a,c)}l=l||f&&s-p-1>n&&e[p+1]!==" "}return!u&&!l?d&&!i(e)?T0:R0:r>9&&I0(e)?Fs:l?C0:N0}o(PR,"chooseScalarStyle");function ER(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&gR.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 SR(e,u)}switch(o(c,"testAmbiguity"),PR(t,a,e.indent,s,c)){case T0:return t;case R0:return"'"+t.replace(/'/g,"''")+"'";case N0:return"|"+g0(t,e.indent)+y0(m0(t,i));case C0:return">"+g0(t,e.indent)+y0(m0($R(t,s),i));case Fs:return'"'+OR(t,s)+'"';default:throw new ro("impossible error: invalid scalar style")}}()}o(ER,"writeScalar");function g0(e,t){var r=I0(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
35
  `}o(g0,"blockHeader");function y0(e){return e[e.length-1]===`
36
- `?e.slice(0,-1):e}o(y0,"dropEndingNewline");function OR(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var l=e.indexOf(`
36
+ `?e.slice(0,-1):e}o(y0,"dropEndingNewline");function $R(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var l=e.indexOf(`
37
37
  `);return l=l!==-1?l:e.length,r.lastIndex=l,v0(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
- `:"")+v0(u,t),i=s}return n}o(OR,"foldString");function v0(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
+ `:"")+v0(u,t),i=s}return n}o($R,"foldString");function v0(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(v0,"foldLine");function xR(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+=d0((r-55296)*1024+n-56320+65536),s++;continue}i=he[r],t+=!i&&zn(r)?e[s]:i||d0(r)}return t}o(xR,"escapeString");function wR(e,t,r){var n="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Zr(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}o(wR,"writeFlowSequence");function AR(e,t,r,n){var i="",s=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)Zr(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=$p(e,t)),e.dump&&eo===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}o(AR,"writeBlockSequence");function IR(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],Zr(e,t,u,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Zr(e,t,l,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}o(IR,"writeFlowMapping");function TR(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 ro("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)d="",(!n||c!==0)&&(d+=$p(e,t)),l=a[c],f=r[l],Zr(e,t+1,l,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&eo===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,p&&(d+=$p(e,t)),Zr(e,t+1,f,!0,p)&&(e.dump&&eo===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=s,e.dump=i||"{}"}o(TR,"writeBlockMapping");function S0(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,b0.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(_0.call(c.represent,u))n=c.represent[u](t,u);else throw new ro("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}o(S0,"detectType");function Zr(e,t,r,n,i,s){e.tag=null,e.dump=r,S0(e,r,!1)||S0(e,r,!0);var a=b0.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?(TR(e,t,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(IR(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?(AR(e,f,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(wR(e,f,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&$R(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new ro("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}o(Zr,"writeNode");function RR(e,t){var r=[],n=[],i,s;for(Op(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}o(RR,"getDuplicateReferences");function Op(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)Op(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Op(e[n[i]],t,r)}o(Op,"inspectNode");function k0(e,t){t=t||{};var r=new SR(t);return r.noRefs||RR(e,r),Zr(r,0,e,!0,!0)?r.dump+`
43
- `:""}o(k0,"dump");function NR(e,t){return k0(e,to.extend({schema:eR},t))}o(NR,"safeDump");wp.exports.dump=k0;wp.exports.safeDump=NR});var M0=h((D8,K)=>{"use strict";var Hs=f0(),q0=j0();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=Vr();K.exports.FAILSAFE_SCHEMA=ks();K.exports.JSON_SCHEMA=vp();K.exports.CORE_SCHEMA=Sp();K.exports.DEFAULT_SAFE_SCHEMA=Bn();K.exports.DEFAULT_FULL_SCHEMA=Ji();K.exports.load=Hs.load;K.exports.loadAll=Hs.loadAll;K.exports.safeLoad=Hs.safeLoad;K.exports.safeLoadAll=Hs.safeLoadAll;K.exports.dump=q0.dump;K.exports.safeDump=q0.safeDump;K.exports.YAMLException=Hn();K.exports.MINIMAL_SCHEMA=ks();K.exports.SAFE_SCHEMA=Bn();K.exports.DEFAULT_SCHEMA=Ji();K.exports.scan=Vs("scan");K.exports.parse=Vs("parse");K.exports.compose=Vs("compose");K.exports.addConstructor=Vs("addConstructor")});var L0=h((F8,D0)=>{"use strict";var CR=M0();D0.exports=CR});var H0=h((H8,F0)=>{"use strict";var{ParserError:kR}=at(),jR=L0();F0.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 jR.safeLoad(t)}catch(r){throw new kR(r.message,e.url)}else return t}}});var B0=h((V8,V0)=>{"use strict";var{ParserError:qR}=at(),MR=/\.(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))&&MR.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 qR("data is not text",e.url)}}});var G0=h((B8,U0)=>{"use strict";var DR=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;U0.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&DR.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var K0=h((U8,z0)=>{"use strict";var LR=require("fs"),{ono:Ap}=tt(),Z0=Me(),{ResolverError:Ip}=at();z0.exports={order:100,canRead(e){return Z0.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=Z0.toFileSystemPath(e.url)}catch(i){r(new Ip(Ap.uri(i,`Malformed URI: ${e.url}`),e.url))}try{LR.readFile(n,(i,s)=>{i?r(new Ip(Ap(i,`Error opening file "${n}"`),n)):t(s)})}catch(i){r(new Ip(Ap(i,`Error opening file "${n}"`),n))}})}}});var J0=h((G8,Y0)=>{"use strict";var FR=require("http"),HR=require("https"),{ono:Bs}=tt(),no=Me(),{ResolverError:Q0}=at();Y0.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return no.isHttp(e.url)},read(e){let t=no.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=no.parse(location.href).protocol),W0(t,this)}};function W0(e,t,r){return new Promise((n,i)=>{e=no.parse(e),r=r||[],r.push(e.href),VR(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 Q0(Bs({status:s.statusCode},`Error downloading ${r[0]}.
42
+ `+e.slice(a+1):u+=e.slice(i),u.slice(1)}o(v0,"foldLine");function OR(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+=d0((r-55296)*1024+n-56320+65536),s++;continue}i=ge[r],t+=!i&&zn(r)?e[s]:i||d0(r)}return t}o(OR,"escapeString");function xR(e,t,r){var n="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Zr(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}o(xR,"writeFlowSequence");function wR(e,t,r,n){var i="",s=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)Zr(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=$p(e,t)),e.dump&&eo===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}o(wR,"writeBlockSequence");function AR(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],Zr(e,t,u,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Zr(e,t,l,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}o(AR,"writeFlowMapping");function IR(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 ro("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)d="",(!n||c!==0)&&(d+=$p(e,t)),l=a[c],f=r[l],Zr(e,t+1,l,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&eo===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,p&&(d+=$p(e,t)),Zr(e,t+1,f,!0,p)&&(e.dump&&eo===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=s,e.dump=i||"{}"}o(IR,"writeBlockMapping");function S0(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,b0.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(_0.call(c.represent,u))n=c.represent[u](t,u);else throw new ro("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}o(S0,"detectType");function Zr(e,t,r,n,i,s){e.tag=null,e.dump=r,S0(e,r,!1)||S0(e,r,!0);var a=b0.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?(IR(e,t,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(AR(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?(wR(e,f,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(xR(e,f,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&ER(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new ro("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}o(Zr,"writeNode");function TR(e,t){var r=[],n=[],i,s;for(Op(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}o(TR,"getDuplicateReferences");function Op(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)Op(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Op(e[n[i]],t,r)}o(Op,"inspectNode");function k0(e,t){t=t||{};var r=new vR(t);return r.noRefs||TR(e,r),Zr(r,0,e,!0,!0)?r.dump+`
43
+ `:""}o(k0,"dump");function RR(e,t){return k0(e,to.extend({schema:XT},t))}o(RR,"safeDump");wp.exports.dump=k0;wp.exports.safeDump=RR});var M0=h((M8,K)=>{"use strict";var Hs=f0(),q0=j0();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=Vr();K.exports.FAILSAFE_SCHEMA=ks();K.exports.JSON_SCHEMA=vp();K.exports.CORE_SCHEMA=Sp();K.exports.DEFAULT_SAFE_SCHEMA=Bn();K.exports.DEFAULT_FULL_SCHEMA=Ji();K.exports.load=Hs.load;K.exports.loadAll=Hs.loadAll;K.exports.safeLoad=Hs.safeLoad;K.exports.safeLoadAll=Hs.safeLoadAll;K.exports.dump=q0.dump;K.exports.safeDump=q0.safeDump;K.exports.YAMLException=Hn();K.exports.MINIMAL_SCHEMA=ks();K.exports.SAFE_SCHEMA=Bn();K.exports.DEFAULT_SCHEMA=Ji();K.exports.scan=Vs("scan");K.exports.parse=Vs("parse");K.exports.compose=Vs("compose");K.exports.addConstructor=Vs("addConstructor")});var L0=h((L8,D0)=>{"use strict";var NR=M0();D0.exports=NR});var H0=h((F8,F0)=>{"use strict";var{ParserError:CR}=at(),kR=L0();F0.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 kR.safeLoad(t)}catch(r){throw new CR(r.message,e.url)}else return t}}});var B0=h((H8,V0)=>{"use strict";var{ParserError:jR}=at(),qR=/\.(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))&&qR.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 jR("data is not text",e.url)}}});var G0=h((V8,U0)=>{"use strict";var MR=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;U0.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&MR.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var K0=h((B8,z0)=>{"use strict";var DR=require("fs"),{ono:Ap}=tt(),Z0=Me(),{ResolverError:Ip}=at();z0.exports={order:100,canRead(e){return Z0.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=Z0.toFileSystemPath(e.url)}catch(i){r(new Ip(Ap.uri(i,`Malformed URI: ${e.url}`),e.url))}try{DR.readFile(n,(i,s)=>{i?r(new Ip(Ap(i,`Error opening file "${n}"`),n)):t(s)})}catch(i){r(new Ip(Ap(i,`Error opening file "${n}"`),n))}})}}});var J0=h((U8,Y0)=>{"use strict";var LR=require("http"),FR=require("https"),{ono:Bs}=tt(),no=Me(),{ResolverError:Q0}=at();Y0.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return no.isHttp(e.url)},read(e){let t=no.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=no.parse(location.href).protocol),W0(t,this)}};function W0(e,t,r){return new Promise((n,i)=>{e=no.parse(e),r=r||[],r.push(e.href),HR(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 Q0(Bs({status:s.statusCode},`Error downloading ${r[0]}.
44
44
  Too many redirects:
45
45
  ${r.join(`
46
- `)}`)));else if(s.headers.location){let a=no.resolve(e,s.headers.location);W0(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 Q0(Bs(s,`Error downloading ${e.href}`),e.href))})})}o(W0,"download");function VR(e,t){return new Promise((r,n)=>{let s=(e.protocol==="https:"?HR:FR).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(VR,"get")});var Np=h((z8,ev)=>{"use strict";var BR=Qg(),UR=H0(),GR=B0(),ZR=G0(),zR=K0(),KR=J0();ev.exports=Rp;function Rp(e){Tp(this,Rp.defaults),Tp(this,e)}o(Rp,"$RefParserOptions");Rp.defaults={parse:{json:BR,yaml:UR,text:GR,binary:ZR},resolve:{file:zR,http:KR,external:!0},continueOnError:!1,dereference:{circular:!0}};function Tp(e,t){if(X0(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],s=t[i],a=e[i];X0(s)?e[i]=Tp(a||{},s):s!==void 0&&(e[i]=s)}}return e}o(Tp,"merge");function X0(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}o(X0,"isMergeable")});var Cp=h((Q8,rv)=>{"use strict";var tv=Np();rv.exports=QR;function QR(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 tv||(n=new tv(n)),{path:t,schema:r,options:n,callback:i}}o(QR,"normalizeArgs")});var iv=h((Y8,nv)=>{"use strict";var kp=Np(),WR=fp(),YR=hp(),JR=require("util");nv.exports=Us;function Us(e){kp.call(this,Us.defaults),kp.apply(this,arguments)}o(Us,"ParserOptions");Us.defaults={validate:{schema:WR,spec:YR}};JR.inherits(Us,kp)});var sv=h((X8,ov)=>{"use strict";function XR(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:o(function(t){setTimeout(t,0)},"next")}o(XR,"makeNext");ov.exports=XR()});var jp=h((tL,cv)=>{"use strict";var av=sv();cv.exports=o(function(t,r){if(t){r.then(function(n){av(function(){t(null,n)})},function(n){av(function(){t(n)})});return}else return r},"maybe")});var io=h((nL,pv)=>{"use strict";pv.exports=ur;var qp=Kn(),Mp=Me(),{JSONParserError:eN,InvalidPointerError:tN,MissingPointerError:rN,isHandledError:nN}=at(),iN=/\//g,oN=/~/g,sN=/~1/g,aN=/~0/g;function ur(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}o(ur,"Pointer");ur.prototype.resolve=function(e,t,r){let n=ur.parse(this.path,this.originalPath);this.value=lv(e);for(let i=0;i<n.length;i++){if(Gs(this,t)&&(this.path=ur.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 rN(s,this.originalPath);this.value=this.value[s]}return(!this.value||this.value.$ref&&Mp.resolve(this.path,this.value.$ref)!==r)&&Gs(this,t),this};ur.prototype.set=function(e,t,r){let n=ur.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=lv(e);for(let s=0;s<n.length-1;s++)Gs(this,r),i=n[s],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=uv(this,i,{});return Gs(this,r),i=n[n.length-1],uv(this,i,t),e};ur.parse=function(e,t){let r=Mp.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(sN,"/").replace(aN,"~"));if(r[0]!=="")throw new tN(r,t===void 0?e:t);return r.slice(1)};ur.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(oN,"~0").replace(iN,"~1"))}return e};function Gs(e,t){if(qp.isAllowed$Ref(e.value,t)){let r=Mp.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,qp.isExtended$Ref(e.value)?(e.value=qp.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}o(Gs,"resolveIf$Ref");function uv(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 eN(`Error assigning $ref pointer "${e.path}".
47
- Cannot set "${t}" of a non-object.`);return r}o(uv,"setValue");function lv(e){if(nN(e))throw e;return e}o(lv,"unwrapOrThrow")});var Kn=h((oL,mv)=>{"use strict";mv.exports=_e;var dv=io(),{InvalidPointerError:cN,isHandledError:uN,normalizeError:fv}=at(),{safePointerToPath:lN,stripHash:pN,getHash:fN}=Me();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(fv)):this.errors.push(fv(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 dv(this,e,r);try{return i.resolve(this.value,t,n)}catch(s){if(!t||!t.continueOnError||!uN(s))throw s;return s.path===null&&(s.path=lN(fN(n))),s instanceof cN&&(s.source=pN(n)),this.addError(s),null}};_e.prototype.set=function(e,t){let r=new dv(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 vv=h((aL,yv)=>{"use strict";var{ono:hv}=tt(),dN=Kn(),lr=Me();yv.exports=ct;function ct(){this.circular=!1,this._$refs={},this._root$Ref=null}o(ct,"$Refs");ct.prototype.paths=function(e){return gv(this._$refs,arguments).map(r=>r.decoded)};ct.prototype.values=function(e){let t=this._$refs;return gv(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};ct.prototype.toJSON=ct.prototype.values;ct.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};ct.prototype.get=function(e,t){return this._resolve(e,"",t).value};ct.prototype.set=function(e,t){let r=lr.resolve(this._root$Ref.path,e),n=lr.stripHash(r),i=this._$refs[n];if(!i)throw hv(`Error resolving $ref pointer "${e}".
48
- "${n}" not found.`);i.set(r,t)};ct.prototype._add=function(e){let t=lr.stripHash(e),r=new dN;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};ct.prototype._resolve=function(e,t,r){let n=lr.resolve(this._root$Ref.path,e),i=lr.stripHash(n),s=this._$refs[i];if(!s)throw hv(`Error resolving $ref pointer "${e}".
49
- "${i}" not found.`);return s.resolve(n,r,e,t)};ct.prototype._get$Ref=function(e){e=lr.resolve(this._root$Ref.path,e);let t=lr.stripHash(e);return this._$refs[t]};function gv(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"?lr.toFileSystemPath(n,!0):n}))}o(gv,"getPaths")});var bv=h(oo=>{"use strict";oo.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};oo.filter=function(e,t,r){return e.filter(n=>!!Sv(n,t,r))};oo.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)};oo.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=Sv(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 Sv(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(Sv,"getResult")});var Lp=h((pL,$v)=>{"use strict";var{ono:Dp}=tt(),_v=Me(),pr=bv(),{ResolverError:Pv,ParserError:Ev,UnmatchedParserError:mN,UnmatchedResolverError:hN,isHandledError:gN}=at();$v.exports=yN;async function yN(e,t,r){e=_v.stripHash(e);let n=t._add(e),i={url:e,extension:_v.getExtension(e)};try{let s=await vN(i,r,t);n.pathType=s.plugin.name,i.data=s.result;let a=await SN(i,r,t);return n.value=a.result,a.result}catch(s){throw gN(s)&&(n.value=s),s}}o(yN,"parse");function vN(e,t,r){return new Promise((n,i)=>{let s=pr.all(t.resolve);s=pr.filter(s,"canRead",e),pr.sort(s),pr.run(s,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new hN(e.url)):!c||!("error"in c)?i(Dp.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof Pv?i(c.error):i(new Pv(c,e.url))}o(a,"onError")})}o(vN,"readFile");function SN(e,t,r){return new Promise((n,i)=>{let s=pr.all(t.parse),a=pr.filter(s,"canParse",e),c=a.length>0?a:s;pr.sort(c),pr.run(c,"parse",e,r).then(u,l);function u(f){!f.plugin.allowEmpty&&bN(f.result)?i(Dp.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 mN(e.url)):!f||!("error"in f)?i(Dp.syntax(`Unable to parse ${e.url}`)):f.error instanceof Ev?i(f.error):i(new Ev(f.error.message,e.url))}o(l,"onError")})}o(SN,"parseFile");function bN(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(bN,"isEmpty")});var Av=h((dL,wv)=>{"use strict";var Ov=Kn(),_N=io(),PN=Lp(),so=Me(),{isHandledError:EN}=at();wv.exports=$N;function $N(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($N,"resolveExternal");function Fp(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(Ov.isExternal$Ref(e))i.push(xv(e,t,r,n));else for(let s of Object.keys(e)){let a=_N.join(t,s),c=e[s];Ov.isExternal$Ref(c)?i.push(xv(c,a,r,n)):i=i.concat(Fp(c,a,r,n))}return i}o(Fp,"crawl");async function xv(e,t,r,n){let i=so.resolve(t,e.$ref),s=so.stripHash(i);if(e=r._$refs[s],e)return Promise.resolve(e.value);try{let a=await PN(i,r,n),c=Fp(a,s+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!EN(a))throw a;return r._$refs[s]&&(a.source=so.stripHash(t),a.path=so.safePointerToPath(so.getHash(t))),[]}}o(xv,"resolve$Ref")});var Rv=h((hL,Tv)=>{"use strict";var Zs=Kn(),ao=io(),Hp=Me();Tv.exports=ON;function ON(e,t){let r=[];Vp(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),xN(r)}o(ON,"bundle");function Vp(e,t,r,n,i,s,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(Zs.isAllowed$Ref(u))Iv(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=ao.join(r,f),d=ao.join(n,f),m=u[f];Zs.isAllowed$Ref(m)?Iv(u,f,r,d,i,s,a,c):Vp(u,f,p,d,i,s,a,c)}}}o(Vp,"crawl");function Iv(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=ao.parse(n).length,d=Hp.stripHash(f.path),m=Hp.getHash(f.path),g=d!==a._root$Ref.path,y=Zs.isExtended$Ref(u);i+=f.indirections;let v=wN(s,e,t);if(v)if(p<v.depth||i<v.indirections)AN(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||Vp(f.value,null,f.path,n,i+1,s,a,c)}o(Iv,"inventory$Ref");function xN(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=ao.join(n,ao.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=Zs.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}o(xN,"remap");function wN(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(wN,"findInInventory");function AN(e,t){let r=e.indexOf(t);e.splice(r,1)}o(AN,"removeFromInventory")});var Gp=h((yL,jv)=>{"use strict";var Bp=Kn(),Nv=io(),{ono:IN}=tt(),TN=Me();jv.exports=RN;function RN(e,t){let r=Up(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}o(RN,"dereference");function Up(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),Bp.isAllowed$Ref(e,s))a=Cv(e,t,r,n,i,s),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let l=Nv.join(t,u),f=Nv.join(r,u),p=e[u],d=!1;Bp.isAllowed$Ref(p,s)?(a=Cv(p,l,f,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(p)===-1?(a=Up(p,l,f,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=kv(l,i,s),c.circular=c.circular||d}n.pop()}return c}o(Up,"crawl");function Cv(e,t,r,n,i,s){let a=TN.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&&kv(t,i,s);let f=Bp.dereference(e,c.value);if(!l){let p=Up(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(Cv,"dereference$Ref");function kv(e,t,r){if(t.circular=!0,!r.dereference.circular)throw IN.reference(`Circular $ref pointer found at ${e}`);return!0}o(kv,"foundCircularReference")});var Lv=h((SL,Et)=>{"use strict";var Dv=vv(),NN=Lp(),zs=Cp(),CN=Av(),kN=Rv(),jN=Gp(),Qn=Me(),{JSONParserError:qN,InvalidPointerError:MN,MissingPointerError:DN,ResolverError:LN,ParserError:FN,UnmatchedParserError:HN,UnmatchedResolverError:VN,isHandledError:BN,JSONParserErrorGroup:qv}=at(),ut=jp(),{ono:Mv}=tt();Et.exports=Pt;Et.exports.default=Pt;Et.exports.JSONParserError=qN;Et.exports.InvalidPointerError=MN;Et.exports.MissingPointerError=DN;Et.exports.ResolverError=LN;Et.exports.ParserError=FN;Et.exports.UnmatchedParserError=HN;Et.exports.UnmatchedResolverError=VN;function Pt(){this.schema=null,this.$refs=new Dv}o(Pt,"$RefParser");Pt.parse=o(function(t,r,n,i){let s=this,a=new s;return a.parse.apply(a,arguments)},"parse");Pt.prototype.parse=o(async function(t,r,n,i){let s=zs(arguments),a;if(!s.path&&!s.schema){let l=Mv(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return ut(s.callback,Promise.reject(l))}this.schema=null,this.$refs=new Dv;let c="http";if(Qn.isFileSystemPath(s.path)&&(s.path=Qn.fromFileSystemPath(s.path),c="file"),s.path=Qn.resolve(Qn.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=NN(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,ut(s.callback,Promise.resolve(u.schema));if(s.options.continueOnError)return u.schema=null,ut(s.callback,Promise.resolve(u.schema));throw Mv.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!s.options.continueOnError||!BN(l)?ut(s.callback,Promise.reject(l)):(this.$refs._$refs[Qn.stripHash(s.path)]&&this.$refs._$refs[Qn.stripHash(s.path)].addError(l),ut(s.callback,Promise.resolve(null)))}},"parse");Pt.resolve=o(function(t,r,n,i){let s=this,a=new s;return a.resolve.apply(a,arguments)},"resolve");Pt.prototype.resolve=o(async function(t,r,n,i){let s=this,a=zs(arguments);try{return await this.parse(a.path,a.schema,a.options),await CN(s,a.options),Zp(s),ut(a.callback,Promise.resolve(s.$refs))}catch(c){return ut(a.callback,Promise.reject(c))}},"resolve");Pt.bundle=o(function(t,r,n,i){let s=this,a=new s;return a.bundle.apply(a,arguments)},"bundle");Pt.prototype.bundle=o(async function(t,r,n,i){let s=this,a=zs(arguments);try{return await this.resolve(a.path,a.schema,a.options),kN(s,a.options),Zp(s),ut(a.callback,Promise.resolve(s.schema))}catch(c){return ut(a.callback,Promise.reject(c))}},"bundle");Pt.dereference=o(function(t,r,n,i){let s=this,a=new s;return a.dereference.apply(a,arguments)},"dereference");Pt.prototype.dereference=o(async function(t,r,n,i){let s=this,a=zs(arguments);try{return await this.resolve(a.path,a.schema,a.options),jN(s,a.options),Zp(s),ut(a.callback,Promise.resolve(s.schema))}catch(c){return ut(a.callback,Promise.reject(c))}},"dereference");function Zp(e){if(qv.getParserErrors(e).length>0)throw new qv(e)}o(Zp,"finalize")});var Uv=h((_L,Bv)=>{"use strict";var UN=fp(),GN=hp(),Fv=Cp(),Hv=Go(),Vv=iv(),Ks=jp(),{ono:lt}=tt(),zr=Lv(),ZN=Gp();Bv.exports=$t;function $t(){zr.apply(this,arguments)}o($t,"SwaggerParser");Hv.inherits($t,zr);$t.parse=zr.parse;$t.resolve=zr.resolve;$t.bundle=zr.bundle;$t.dereference=zr.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=Fv(arguments);i.options=new Vv(i.options);try{let s=await zr.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 lt.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof s.swagger=="number")throw lt.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof s.info.version=="number")throw lt.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(s.swagger!=="2.0")throw lt.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 lt.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 lt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw lt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof s.openapi=="number")throw lt.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof s.info.version=="number")throw lt.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(s.openapi)===-1)throw lt.syntax(`Unsupported OpenAPI version: ${s.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}Hv.fixOasRelativeServers(s,i.path)}return Ks(i.callback,Promise.resolve(s))}catch(s){return Ks(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=Fv(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&&(UN(i.api),i.$refs.circular)){if(a===!0)ZN(i,s.options);else if(a===!1)throw lt.reference("The API contains circular references")}return s.options.validate.spec&&GN(i.api),Ks(s.callback,Promise.resolve(i.schema))}catch(c){return Ks(s.callback,Promise.reject(c))}}});var xe=h(He=>{"use strict";He.__esModule=!0;He.extend=Ib;He.indexOf=CC;He.escapeExpression=kC;He.isEmpty=jC;He.createFrame=qC;He.blockParams=MC;He.appendContextPath=DC;var IC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},TC=/[&<>"'`=]/g,RC=/[&<>"'`=]/;function NC(e){return IC[e]}o(NC,"escapeChar");function Ib(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(Ib,"extend");var _f=Object.prototype.toString;He.toString=_f;var bf=o(function(t){return typeof t=="function"},"isFunction");bf(/x/)&&(He.isFunction=bf=o(function(e){return typeof e=="function"&&_f.call(e)==="[object Function]"},"isFunction"));He.isFunction=bf;var Tb=Array.isArray||function(e){return e&&typeof e=="object"?_f.call(e)==="[object Array]":!1};He.isArray=Tb;function CC(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}o(CC,"indexOf");function kC(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return RC.test(e)?e.replace(TC,NC):e}o(kC,"escapeExpression");function jC(e){return!e&&e!==0?!0:!!(Tb(e)&&e.length===0)}o(jC,"isEmpty");function qC(e){var t=Ib({},e);return t._parent=e,t}o(qC,"createFrame");function MC(e,t){return e.path=t,e}o(MC,"blockParams");function DC(e,t){return(e?e+".":"")+t}o(DC,"appendContextPath")});var We=h((_a,Rb)=>{"use strict";_a.__esModule=!0;var Pf=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Ef(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<Pf.length;u++)this[Pf[u]]=c[Pf[u]];Error.captureStackTrace&&Error.captureStackTrace(this,Ef);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(Ef,"Exception");Ef.prototype=new Error;_a.default=Ef;Rb.exports=_a.default});var Cb=h((Pa,Nb)=>{"use strict";Pa.__esModule=!0;var $f=xe();Pa.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($f.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=$f.createFrame(r.data);s.contextPath=$f.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(t,r)})};Nb.exports=Pa.default});var jb=h((Ea,kb)=>{"use strict";Ea.__esModule=!0;function LC(e){return e&&e.__esModule?e:{default:e}}o(LC,"_interopRequireDefault");var To=xe(),FC=We(),HC=LC(FC);Ea.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new HC.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=To.appendContextPath(r.data.contextPath,r.ids[0])+"."),To.isFunction(t)&&(t=t.call(this)),r.data&&(c=To.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:To.blockParams([t[g],g],[u+g,null])})}if(o(l,"execIteration"),t&&typeof t=="object")if(To.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})};kb.exports=Ea.default});var Mb=h(($a,qb)=>{"use strict";$a.__esModule=!0;function VC(e){return e&&e.__esModule?e:{default:e}}o(VC,"_interopRequireDefault");var BC=We(),UC=VC(BC);$a.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new UC.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};qb.exports=$a.default});var Hb=h((Oa,Fb)=>{"use strict";Oa.__esModule=!0;function GC(e){return e&&e.__esModule?e:{default:e}}o(GC,"_interopRequireDefault");var Db=xe(),ZC=We(),Lb=GC(ZC);Oa.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new Lb.default("#if requires exactly one argument");return Db.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||Db.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new Lb.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};Fb.exports=Oa.default});var Bb=h((xa,Vb)=>{"use strict";xa.__esModule=!0;xa.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)})};Vb.exports=xa.default});var Gb=h((wa,Ub)=>{"use strict";wa.__esModule=!0;wa.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};Ub.exports=wa.default});var zb=h((Aa,Zb)=>{"use strict";Aa.__esModule=!0;function zC(e){return e&&e.__esModule?e:{default:e}}o(zC,"_interopRequireDefault");var Ro=xe(),KC=We(),QC=zC(KC);Aa.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new QC.default("#with requires exactly one argument");Ro.isFunction(t)&&(t=t.call(this));var n=r.fn;if(Ro.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=Ro.createFrame(r.data),i.contextPath=Ro.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:Ro.blockParams([t],[i&&i.contextPath])})})};Zb.exports=Aa.default});var Of=h(Ia=>{"use strict";Ia.__esModule=!0;Ia.registerDefaultHelpers=lk;Ia.moveHelperToHooks=pk;function rn(e){return e&&e.__esModule?e:{default:e}}o(rn,"_interopRequireDefault");var WC=Cb(),YC=rn(WC),JC=jb(),XC=rn(JC),ek=Mb(),tk=rn(ek),rk=Hb(),nk=rn(rk),ik=Bb(),ok=rn(ik),sk=Gb(),ak=rn(sk),ck=zb(),uk=rn(ck);function lk(e){YC.default(e),XC.default(e),tk.default(e),nk.default(e),ok.default(e),ak.default(e),uk.default(e)}o(lk,"registerDefaultHelpers");function pk(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}o(pk,"moveHelperToHooks")});var Qb=h((Ta,Kb)=>{"use strict";Ta.__esModule=!0;var fk=xe();Ta.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=fk.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,s})};Kb.exports=Ta.default});var Wb=h(xf=>{"use strict";xf.__esModule=!0;xf.registerDefaultDecorators=gk;function dk(e){return e&&e.__esModule?e:{default:e}}o(dk,"_interopRequireDefault");var mk=Qb(),hk=dk(mk);function gk(e){hk.default(e)}o(gk,"registerDefaultDecorators")});var wf=h((Ra,Yb)=>{"use strict";Ra.__esModule=!0;var yk=xe(),ai={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(t){if(typeof t=="string"){var r=yk.indexOf(ai.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:o(function(t){if(t=ai.lookupLevel(t),typeof console<"u"&&ai.lookupLevel(ai.level)<=t){var r=ai.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")};Ra.default=ai;Yb.exports=Ra.default});var Jb=h(Af=>{"use strict";Af.__esModule=!0;Af.createNewLookupObject=Sk;var vk=xe();function Sk(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return vk.extend.apply(void 0,[Object.create(null)].concat(t))}o(Sk,"createNewLookupObject")});var If=h(No=>{"use strict";No.__esModule=!0;No.createProtoAccessControl=Ek;No.resultIsAllowed=$k;No.resetLoggedProperties=xk;function bk(e){return e&&e.__esModule?e:{default:e}}o(bk,"_interopRequireDefault");var Xb=Jb(),_k=wf(),Pk=bk(_k),Na=Object.create(null);function Ek(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:Xb.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:Xb.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}o(Ek,"createProtoAccessControl");function $k(e,t,r){return e_(typeof e=="function"?t.methods:t.properties,r)}o($k,"resultIsAllowed");function e_(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(Ok(t),!1)}o(e_,"checkWhiteList");function Ok(e){Na[e]!==!0&&(Na[e]=!0,Pk.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=no.resolve(e,s.headers.location);W0(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 Q0(Bs(s,`Error downloading ${e.href}`),e.href))})})}o(W0,"download");function HR(e,t){return new Promise((r,n)=>{let s=(e.protocol==="https:"?FR:LR).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(HR,"get")});var Np=h((Z8,ev)=>{"use strict";var VR=Qg(),BR=H0(),UR=B0(),GR=G0(),ZR=K0(),zR=J0();ev.exports=Rp;function Rp(e){Tp(this,Rp.defaults),Tp(this,e)}o(Rp,"$RefParserOptions");Rp.defaults={parse:{json:VR,yaml:BR,text:UR,binary:GR},resolve:{file:ZR,http:zR,external:!0},continueOnError:!1,dereference:{circular:!0}};function Tp(e,t){if(X0(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],s=t[i],a=e[i];X0(s)?e[i]=Tp(a||{},s):s!==void 0&&(e[i]=s)}}return e}o(Tp,"merge");function X0(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}o(X0,"isMergeable")});var Cp=h((K8,rv)=>{"use strict";var tv=Np();rv.exports=KR;function KR(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 tv||(n=new tv(n)),{path:t,schema:r,options:n,callback:i}}o(KR,"normalizeArgs")});var iv=h((W8,nv)=>{"use strict";var kp=Np(),QR=fp(),WR=hp(),YR=require("util");nv.exports=Us;function Us(e){kp.call(this,Us.defaults),kp.apply(this,arguments)}o(Us,"ParserOptions");Us.defaults={validate:{schema:QR,spec:WR}};YR.inherits(Us,kp)});var sv=h((J8,ov)=>{"use strict";function JR(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:o(function(t){setTimeout(t,0)},"next")}o(JR,"makeNext");ov.exports=JR()});var jp=h((eL,cv)=>{"use strict";var av=sv();cv.exports=o(function(t,r){if(t){r.then(function(n){av(function(){t(null,n)})},function(n){av(function(){t(n)})});return}else return r},"maybe")});var io=h((rL,pv)=>{"use strict";pv.exports=ur;var qp=Kn(),Mp=Me(),{JSONParserError:XR,InvalidPointerError:eN,MissingPointerError:tN,isHandledError:rN}=at(),nN=/\//g,iN=/~/g,oN=/~1/g,sN=/~0/g;function ur(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}o(ur,"Pointer");ur.prototype.resolve=function(e,t,r){let n=ur.parse(this.path,this.originalPath);this.value=lv(e);for(let i=0;i<n.length;i++){if(Gs(this,t)&&(this.path=ur.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 tN(s,this.originalPath);this.value=this.value[s]}return(!this.value||this.value.$ref&&Mp.resolve(this.path,this.value.$ref)!==r)&&Gs(this,t),this};ur.prototype.set=function(e,t,r){let n=ur.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=lv(e);for(let s=0;s<n.length-1;s++)Gs(this,r),i=n[s],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=uv(this,i,{});return Gs(this,r),i=n[n.length-1],uv(this,i,t),e};ur.parse=function(e,t){let r=Mp.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(oN,"/").replace(sN,"~"));if(r[0]!=="")throw new eN(r,t===void 0?e:t);return r.slice(1)};ur.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(iN,"~0").replace(nN,"~1"))}return e};function Gs(e,t){if(qp.isAllowed$Ref(e.value,t)){let r=Mp.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,qp.isExtended$Ref(e.value)?(e.value=qp.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}o(Gs,"resolveIf$Ref");function uv(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 XR(`Error assigning $ref pointer "${e.path}".
47
+ Cannot set "${t}" of a non-object.`);return r}o(uv,"setValue");function lv(e){if(rN(e))throw e;return e}o(lv,"unwrapOrThrow")});var Kn=h((iL,mv)=>{"use strict";mv.exports=Pe;var dv=io(),{InvalidPointerError:aN,isHandledError:cN,normalizeError:fv}=at(),{safePointerToPath:uN,stripHash:lN,getHash:pN}=Me();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(fv)):this.errors.push(fv(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 dv(this,e,r);try{return i.resolve(this.value,t,n)}catch(s){if(!t||!t.continueOnError||!cN(s))throw s;return s.path===null&&(s.path=uN(pN(n))),s instanceof aN&&(s.source=lN(n)),this.addError(s),null}};Pe.prototype.set=function(e,t){let r=new dv(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 vv=h((sL,yv)=>{"use strict";var{ono:hv}=tt(),fN=Kn(),lr=Me();yv.exports=ct;function ct(){this.circular=!1,this._$refs={},this._root$Ref=null}o(ct,"$Refs");ct.prototype.paths=function(e){return gv(this._$refs,arguments).map(r=>r.decoded)};ct.prototype.values=function(e){let t=this._$refs;return gv(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};ct.prototype.toJSON=ct.prototype.values;ct.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};ct.prototype.get=function(e,t){return this._resolve(e,"",t).value};ct.prototype.set=function(e,t){let r=lr.resolve(this._root$Ref.path,e),n=lr.stripHash(r),i=this._$refs[n];if(!i)throw hv(`Error resolving $ref pointer "${e}".
48
+ "${n}" not found.`);i.set(r,t)};ct.prototype._add=function(e){let t=lr.stripHash(e),r=new fN;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};ct.prototype._resolve=function(e,t,r){let n=lr.resolve(this._root$Ref.path,e),i=lr.stripHash(n),s=this._$refs[i];if(!s)throw hv(`Error resolving $ref pointer "${e}".
49
+ "${i}" not found.`);return s.resolve(n,r,e,t)};ct.prototype._get$Ref=function(e){e=lr.resolve(this._root$Ref.path,e);let t=lr.stripHash(e);return this._$refs[t]};function gv(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"?lr.toFileSystemPath(n,!0):n}))}o(gv,"getPaths")});var bv=h(oo=>{"use strict";oo.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};oo.filter=function(e,t,r){return e.filter(n=>!!Sv(n,t,r))};oo.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)};oo.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=Sv(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 Sv(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(Sv,"getResult")});var Lp=h((lL,$v)=>{"use strict";var{ono:Dp}=tt(),_v=Me(),pr=bv(),{ResolverError:Pv,ParserError:Ev,UnmatchedParserError:dN,UnmatchedResolverError:mN,isHandledError:hN}=at();$v.exports=gN;async function gN(e,t,r){e=_v.stripHash(e);let n=t._add(e),i={url:e,extension:_v.getExtension(e)};try{let s=await yN(i,r,t);n.pathType=s.plugin.name,i.data=s.result;let a=await vN(i,r,t);return n.value=a.result,a.result}catch(s){throw hN(s)&&(n.value=s),s}}o(gN,"parse");function yN(e,t,r){return new Promise((n,i)=>{let s=pr.all(t.resolve);s=pr.filter(s,"canRead",e),pr.sort(s),pr.run(s,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new mN(e.url)):!c||!("error"in c)?i(Dp.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof Pv?i(c.error):i(new Pv(c,e.url))}o(a,"onError")})}o(yN,"readFile");function vN(e,t,r){return new Promise((n,i)=>{let s=pr.all(t.parse),a=pr.filter(s,"canParse",e),c=a.length>0?a:s;pr.sort(c),pr.run(c,"parse",e,r).then(u,l);function u(f){!f.plugin.allowEmpty&&SN(f.result)?i(Dp.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 dN(e.url)):!f||!("error"in f)?i(Dp.syntax(`Unable to parse ${e.url}`)):f.error instanceof Ev?i(f.error):i(new Ev(f.error.message,e.url))}o(l,"onError")})}o(vN,"parseFile");function SN(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(SN,"isEmpty")});var Av=h((fL,wv)=>{"use strict";var Ov=Kn(),bN=io(),_N=Lp(),so=Me(),{isHandledError:PN}=at();wv.exports=EN;function EN(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(EN,"resolveExternal");function Fp(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(Ov.isExternal$Ref(e))i.push(xv(e,t,r,n));else for(let s of Object.keys(e)){let a=bN.join(t,s),c=e[s];Ov.isExternal$Ref(c)?i.push(xv(c,a,r,n)):i=i.concat(Fp(c,a,r,n))}return i}o(Fp,"crawl");async function xv(e,t,r,n){let i=so.resolve(t,e.$ref),s=so.stripHash(i);if(e=r._$refs[s],e)return Promise.resolve(e.value);try{let a=await _N(i,r,n),c=Fp(a,s+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!PN(a))throw a;return r._$refs[s]&&(a.source=so.stripHash(t),a.path=so.safePointerToPath(so.getHash(t))),[]}}o(xv,"resolve$Ref")});var Rv=h((mL,Tv)=>{"use strict";var Zs=Kn(),ao=io(),Hp=Me();Tv.exports=$N;function $N(e,t){let r=[];Vp(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),ON(r)}o($N,"bundle");function Vp(e,t,r,n,i,s,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(Zs.isAllowed$Ref(u))Iv(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=ao.join(r,f),d=ao.join(n,f),m=u[f];Zs.isAllowed$Ref(m)?Iv(u,f,r,d,i,s,a,c):Vp(u,f,p,d,i,s,a,c)}}}o(Vp,"crawl");function Iv(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=ao.parse(n).length,d=Hp.stripHash(f.path),m=Hp.getHash(f.path),g=d!==a._root$Ref.path,y=Zs.isExtended$Ref(u);i+=f.indirections;let v=xN(s,e,t);if(v)if(p<v.depth||i<v.indirections)wN(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||Vp(f.value,null,f.path,n,i+1,s,a,c)}o(Iv,"inventory$Ref");function ON(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=ao.join(n,ao.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=Zs.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}o(ON,"remap");function xN(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(xN,"findInInventory");function wN(e,t){let r=e.indexOf(t);e.splice(r,1)}o(wN,"removeFromInventory")});var Gp=h((gL,jv)=>{"use strict";var Bp=Kn(),Nv=io(),{ono:AN}=tt(),IN=Me();jv.exports=TN;function TN(e,t){let r=Up(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}o(TN,"dereference");function Up(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),Bp.isAllowed$Ref(e,s))a=Cv(e,t,r,n,i,s),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let l=Nv.join(t,u),f=Nv.join(r,u),p=e[u],d=!1;Bp.isAllowed$Ref(p,s)?(a=Cv(p,l,f,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(p)===-1?(a=Up(p,l,f,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=kv(l,i,s),c.circular=c.circular||d}n.pop()}return c}o(Up,"crawl");function Cv(e,t,r,n,i,s){let a=IN.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&&kv(t,i,s);let f=Bp.dereference(e,c.value);if(!l){let p=Up(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(Cv,"dereference$Ref");function kv(e,t,r){if(t.circular=!0,!r.dereference.circular)throw AN.reference(`Circular $ref pointer found at ${e}`);return!0}o(kv,"foundCircularReference")});var Lv=h((vL,Et)=>{"use strict";var Dv=vv(),RN=Lp(),zs=Cp(),NN=Av(),CN=Rv(),kN=Gp(),Qn=Me(),{JSONParserError:jN,InvalidPointerError:qN,MissingPointerError:MN,ResolverError:DN,ParserError:LN,UnmatchedParserError:FN,UnmatchedResolverError:HN,isHandledError:VN,JSONParserErrorGroup:qv}=at(),ut=jp(),{ono:Mv}=tt();Et.exports=Pt;Et.exports.default=Pt;Et.exports.JSONParserError=jN;Et.exports.InvalidPointerError=qN;Et.exports.MissingPointerError=MN;Et.exports.ResolverError=DN;Et.exports.ParserError=LN;Et.exports.UnmatchedParserError=FN;Et.exports.UnmatchedResolverError=HN;function Pt(){this.schema=null,this.$refs=new Dv}o(Pt,"$RefParser");Pt.parse=o(function(t,r,n,i){let s=this,a=new s;return a.parse.apply(a,arguments)},"parse");Pt.prototype.parse=o(async function(t,r,n,i){let s=zs(arguments),a;if(!s.path&&!s.schema){let l=Mv(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return ut(s.callback,Promise.reject(l))}this.schema=null,this.$refs=new Dv;let c="http";if(Qn.isFileSystemPath(s.path)&&(s.path=Qn.fromFileSystemPath(s.path),c="file"),s.path=Qn.resolve(Qn.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=RN(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,ut(s.callback,Promise.resolve(u.schema));if(s.options.continueOnError)return u.schema=null,ut(s.callback,Promise.resolve(u.schema));throw Mv.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!s.options.continueOnError||!VN(l)?ut(s.callback,Promise.reject(l)):(this.$refs._$refs[Qn.stripHash(s.path)]&&this.$refs._$refs[Qn.stripHash(s.path)].addError(l),ut(s.callback,Promise.resolve(null)))}},"parse");Pt.resolve=o(function(t,r,n,i){let s=this,a=new s;return a.resolve.apply(a,arguments)},"resolve");Pt.prototype.resolve=o(async function(t,r,n,i){let s=this,a=zs(arguments);try{return await this.parse(a.path,a.schema,a.options),await NN(s,a.options),Zp(s),ut(a.callback,Promise.resolve(s.$refs))}catch(c){return ut(a.callback,Promise.reject(c))}},"resolve");Pt.bundle=o(function(t,r,n,i){let s=this,a=new s;return a.bundle.apply(a,arguments)},"bundle");Pt.prototype.bundle=o(async function(t,r,n,i){let s=this,a=zs(arguments);try{return await this.resolve(a.path,a.schema,a.options),CN(s,a.options),Zp(s),ut(a.callback,Promise.resolve(s.schema))}catch(c){return ut(a.callback,Promise.reject(c))}},"bundle");Pt.dereference=o(function(t,r,n,i){let s=this,a=new s;return a.dereference.apply(a,arguments)},"dereference");Pt.prototype.dereference=o(async function(t,r,n,i){let s=this,a=zs(arguments);try{return await this.resolve(a.path,a.schema,a.options),kN(s,a.options),Zp(s),ut(a.callback,Promise.resolve(s.schema))}catch(c){return ut(a.callback,Promise.reject(c))}},"dereference");function Zp(e){if(qv.getParserErrors(e).length>0)throw new qv(e)}o(Zp,"finalize")});var Uv=h((bL,Bv)=>{"use strict";var BN=fp(),UN=hp(),Fv=Cp(),Hv=Go(),Vv=iv(),Ks=jp(),{ono:lt}=tt(),zr=Lv(),GN=Gp();Bv.exports=$t;function $t(){zr.apply(this,arguments)}o($t,"SwaggerParser");Hv.inherits($t,zr);$t.parse=zr.parse;$t.resolve=zr.resolve;$t.bundle=zr.bundle;$t.dereference=zr.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=Fv(arguments);i.options=new Vv(i.options);try{let s=await zr.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 lt.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof s.swagger=="number")throw lt.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof s.info.version=="number")throw lt.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(s.swagger!=="2.0")throw lt.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 lt.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 lt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw lt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof s.openapi=="number")throw lt.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof s.info.version=="number")throw lt.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(s.openapi)===-1)throw lt.syntax(`Unsupported OpenAPI version: ${s.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}Hv.fixOasRelativeServers(s,i.path)}return Ks(i.callback,Promise.resolve(s))}catch(s){return Ks(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=Fv(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&&(BN(i.api),i.$refs.circular)){if(a===!0)GN(i,s.options);else if(a===!1)throw lt.reference("The API contains circular references")}return s.options.validate.spec&&UN(i.api),Ks(s.callback,Promise.resolve(i.schema))}catch(c){return Ks(s.callback,Promise.reject(c))}}});var xe=h(He=>{"use strict";He.__esModule=!0;He.extend=Ab;He.indexOf=NC;He.escapeExpression=CC;He.isEmpty=kC;He.createFrame=jC;He.blockParams=qC;He.appendContextPath=MC;var AC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},IC=/[&<>"'`=]/g,TC=/[&<>"'`=]/;function RC(e){return AC[e]}o(RC,"escapeChar");function Ab(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(Ab,"extend");var _f=Object.prototype.toString;He.toString=_f;var bf=o(function(t){return typeof t=="function"},"isFunction");bf(/x/)&&(He.isFunction=bf=o(function(e){return typeof e=="function"&&_f.call(e)==="[object Function]"},"isFunction"));He.isFunction=bf;var Ib=Array.isArray||function(e){return e&&typeof e=="object"?_f.call(e)==="[object Array]":!1};He.isArray=Ib;function NC(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}o(NC,"indexOf");function CC(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return TC.test(e)?e.replace(IC,RC):e}o(CC,"escapeExpression");function kC(e){return!e&&e!==0?!0:!!(Ib(e)&&e.length===0)}o(kC,"isEmpty");function jC(e){var t=Ab({},e);return t._parent=e,t}o(jC,"createFrame");function qC(e,t){return e.path=t,e}o(qC,"blockParams");function MC(e,t){return(e?e+".":"")+t}o(MC,"appendContextPath")});var We=h((_a,Tb)=>{"use strict";_a.__esModule=!0;var Pf=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Ef(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<Pf.length;u++)this[Pf[u]]=c[Pf[u]];Error.captureStackTrace&&Error.captureStackTrace(this,Ef);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(Ef,"Exception");Ef.prototype=new Error;_a.default=Ef;Tb.exports=_a.default});var Nb=h((Pa,Rb)=>{"use strict";Pa.__esModule=!0;var $f=xe();Pa.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($f.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=$f.createFrame(r.data);s.contextPath=$f.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(t,r)})};Rb.exports=Pa.default});var kb=h((Ea,Cb)=>{"use strict";Ea.__esModule=!0;function DC(e){return e&&e.__esModule?e:{default:e}}o(DC,"_interopRequireDefault");var To=xe(),LC=We(),FC=DC(LC);Ea.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new FC.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=To.appendContextPath(r.data.contextPath,r.ids[0])+"."),To.isFunction(t)&&(t=t.call(this)),r.data&&(c=To.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:To.blockParams([t[g],g],[u+g,null])})}if(o(l,"execIteration"),t&&typeof t=="object")if(To.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})};Cb.exports=Ea.default});var qb=h(($a,jb)=>{"use strict";$a.__esModule=!0;function HC(e){return e&&e.__esModule?e:{default:e}}o(HC,"_interopRequireDefault");var VC=We(),BC=HC(VC);$a.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new BC.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};jb.exports=$a.default});var Fb=h((Oa,Lb)=>{"use strict";Oa.__esModule=!0;function UC(e){return e&&e.__esModule?e:{default:e}}o(UC,"_interopRequireDefault");var Mb=xe(),GC=We(),Db=UC(GC);Oa.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new Db.default("#if requires exactly one argument");return Mb.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||Mb.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new Db.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};Lb.exports=Oa.default});var Vb=h((xa,Hb)=>{"use strict";xa.__esModule=!0;xa.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)})};Hb.exports=xa.default});var Ub=h((wa,Bb)=>{"use strict";wa.__esModule=!0;wa.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};Bb.exports=wa.default});var Zb=h((Aa,Gb)=>{"use strict";Aa.__esModule=!0;function ZC(e){return e&&e.__esModule?e:{default:e}}o(ZC,"_interopRequireDefault");var Ro=xe(),zC=We(),KC=ZC(zC);Aa.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new KC.default("#with requires exactly one argument");Ro.isFunction(t)&&(t=t.call(this));var n=r.fn;if(Ro.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=Ro.createFrame(r.data),i.contextPath=Ro.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:Ro.blockParams([t],[i&&i.contextPath])})})};Gb.exports=Aa.default});var Of=h(Ia=>{"use strict";Ia.__esModule=!0;Ia.registerDefaultHelpers=uk;Ia.moveHelperToHooks=lk;function rn(e){return e&&e.__esModule?e:{default:e}}o(rn,"_interopRequireDefault");var QC=Nb(),WC=rn(QC),YC=kb(),JC=rn(YC),XC=qb(),ek=rn(XC),tk=Fb(),rk=rn(tk),nk=Vb(),ik=rn(nk),ok=Ub(),sk=rn(ok),ak=Zb(),ck=rn(ak);function uk(e){WC.default(e),JC.default(e),ek.default(e),rk.default(e),ik.default(e),sk.default(e),ck.default(e)}o(uk,"registerDefaultHelpers");function lk(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}o(lk,"moveHelperToHooks")});var Kb=h((Ta,zb)=>{"use strict";Ta.__esModule=!0;var pk=xe();Ta.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=pk.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,s})};zb.exports=Ta.default});var Qb=h(xf=>{"use strict";xf.__esModule=!0;xf.registerDefaultDecorators=hk;function fk(e){return e&&e.__esModule?e:{default:e}}o(fk,"_interopRequireDefault");var dk=Kb(),mk=fk(dk);function hk(e){mk.default(e)}o(hk,"registerDefaultDecorators")});var wf=h((Ra,Wb)=>{"use strict";Ra.__esModule=!0;var gk=xe(),ai={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(t){if(typeof t=="string"){var r=gk.indexOf(ai.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:o(function(t){if(t=ai.lookupLevel(t),typeof console<"u"&&ai.lookupLevel(ai.level)<=t){var r=ai.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")};Ra.default=ai;Wb.exports=Ra.default});var Yb=h(Af=>{"use strict";Af.__esModule=!0;Af.createNewLookupObject=vk;var yk=xe();function vk(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return yk.extend.apply(void 0,[Object.create(null)].concat(t))}o(vk,"createNewLookupObject")});var If=h(No=>{"use strict";No.__esModule=!0;No.createProtoAccessControl=Pk;No.resultIsAllowed=Ek;No.resetLoggedProperties=Ok;function Sk(e){return e&&e.__esModule?e:{default:e}}o(Sk,"_interopRequireDefault");var Jb=Yb(),bk=wf(),_k=Sk(bk),Na=Object.create(null);function Pk(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:Jb.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:Jb.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}o(Pk,"createProtoAccessControl");function Ek(e,t,r){return Xb(typeof e=="function"?t.methods:t.properties,r)}o(Ek,"resultIsAllowed");function Xb(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:($k(t),!1)}o(Xb,"checkWhiteList");function $k(e){Na[e]!==!0&&(Na[e]=!0,_k.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(Ok,"logUnexpecedPropertyAccessOnce");function xk(){Object.keys(Na).forEach(function(e){delete Na[e]})}o(xk,"resetLoggedProperties")});var ka=h(jt=>{"use strict";jt.__esModule=!0;jt.HandlebarsEnvironment=Nf;function t_(e){return e&&e.__esModule?e:{default:e}}o(t_,"_interopRequireDefault");var nn=xe(),wk=We(),Tf=t_(wk),Ak=Of(),Ik=Wb(),Tk=wf(),Ca=t_(Tk),Rk=If(),Nk="4.7.8";jt.VERSION=Nk;var Ck=8;jt.COMPILER_REVISION=Ck;var kk=7;jt.LAST_COMPATIBLE_COMPILER_REVISION=kk;var jk={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"};jt.REVISION_CHANGES=jk;var Rf="[object Object]";function Nf(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},Ak.registerDefaultHelpers(this),Ik.registerDefaultDecorators(this)}o(Nf,"HandlebarsEnvironment");Nf.prototype={constructor:Nf,logger:Ca.default,log:Ca.default.log,registerHelper:o(function(t,r){if(nn.toString.call(t)===Rf){if(r)throw new Tf.default("Arg not supported with multiple helpers");nn.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(nn.toString.call(t)===Rf)nn.extend(this.partials,t);else{if(typeof r>"u")throw new Tf.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(nn.toString.call(t)===Rf){if(r)throw new Tf.default("Arg not supported with multiple decorators");nn.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:o(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Rk.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var qk=Ca.default.log;jt.log=qk;jt.createFrame=nn.createFrame;jt.logger=Ca.default});var n_=h((ja,r_)=>{"use strict";ja.__esModule=!0;function Cf(e){this.string=e}o(Cf,"SafeString");Cf.prototype.toString=Cf.prototype.toHTML=function(){return""+this.string};ja.default=Cf;r_.exports=ja.default});var i_=h(kf=>{"use strict";kf.__esModule=!0;kf.wrapHelper=Mk;function Mk(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(Mk,"wrapHelper")});var u_=h(Er=>{"use strict";Er.__esModule=!0;Er.checkRevision=Bk;Er.template=Uk;Er.wrapProgram=qa;Er.resolvePartial=Gk;Er.invokePartial=Zk;Er.noop=a_;function Dk(e){return e&&e.__esModule?e:{default:e}}o(Dk,"_interopRequireDefault");function Lk(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(Lk,"_interopRequireWildcard");var Fk=xe(),Ut=Lk(Fk),Hk=We(),Gt=Dk(Hk),Zt=ka(),o_=Of(),Vk=i_(),s_=If();function Bk(e){var t=e&&e[0]||1,r=Zt.COMPILER_REVISION;if(!(t>=Zt.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Zt.COMPILER_REVISION))if(t<Zt.LAST_COMPATIBLE_COMPILER_REVISION){var n=Zt.REVISION_CHANGES[r],i=Zt.REVISION_CHANGES[t];throw new Gt.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 Gt.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(Bk,"checkRevision");function Uk(e,t){if(!t)throw new Gt.default("No environment passed to template");if(!e||!e.main)throw new Gt.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=Ut.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,c,u);var l=Ut.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($k,"logUnexpecedPropertyAccessOnce");function Ok(){Object.keys(Na).forEach(function(e){delete Na[e]})}o(Ok,"resetLoggedProperties")});var ka=h(jt=>{"use strict";jt.__esModule=!0;jt.HandlebarsEnvironment=Nf;function e_(e){return e&&e.__esModule?e:{default:e}}o(e_,"_interopRequireDefault");var nn=xe(),xk=We(),Tf=e_(xk),wk=Of(),Ak=Qb(),Ik=wf(),Ca=e_(Ik),Tk=If(),Rk="4.7.8";jt.VERSION=Rk;var Nk=8;jt.COMPILER_REVISION=Nk;var Ck=7;jt.LAST_COMPATIBLE_COMPILER_REVISION=Ck;var kk={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"};jt.REVISION_CHANGES=kk;var Rf="[object Object]";function Nf(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},wk.registerDefaultHelpers(this),Ak.registerDefaultDecorators(this)}o(Nf,"HandlebarsEnvironment");Nf.prototype={constructor:Nf,logger:Ca.default,log:Ca.default.log,registerHelper:o(function(t,r){if(nn.toString.call(t)===Rf){if(r)throw new Tf.default("Arg not supported with multiple helpers");nn.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(nn.toString.call(t)===Rf)nn.extend(this.partials,t);else{if(typeof r>"u")throw new Tf.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(nn.toString.call(t)===Rf){if(r)throw new Tf.default("Arg not supported with multiple decorators");nn.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:o(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Tk.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var jk=Ca.default.log;jt.log=jk;jt.createFrame=nn.createFrame;jt.logger=Ca.default});var r_=h((ja,t_)=>{"use strict";ja.__esModule=!0;function Cf(e){this.string=e}o(Cf,"SafeString");Cf.prototype.toString=Cf.prototype.toHTML=function(){return""+this.string};ja.default=Cf;t_.exports=ja.default});var n_=h(kf=>{"use strict";kf.__esModule=!0;kf.wrapHelper=qk;function qk(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(qk,"wrapHelper")});var c_=h(Er=>{"use strict";Er.__esModule=!0;Er.checkRevision=Vk;Er.template=Bk;Er.wrapProgram=qa;Er.resolvePartial=Uk;Er.invokePartial=Gk;Er.noop=s_;function Mk(e){return e&&e.__esModule?e:{default:e}}o(Mk,"_interopRequireDefault");function Dk(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(Dk,"_interopRequireWildcard");var Lk=xe(),Ut=Dk(Lk),Fk=We(),Gt=Mk(Fk),Zt=ka(),i_=Of(),Hk=n_(),o_=If();function Vk(e){var t=e&&e[0]||1,r=Zt.COMPILER_REVISION;if(!(t>=Zt.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Zt.COMPILER_REVISION))if(t<Zt.LAST_COMPATIBLE_COMPILER_REVISION){var n=Zt.REVISION_CHANGES[r],i=Zt.REVISION_CHANGES[t];throw new Gt.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 Gt.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(Vk,"checkRevision");function Bk(e,t){if(!t)throw new Gt.default("No environment passed to template");if(!e||!e.main)throw new Gt.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=Ut.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,c,u);var l=Ut.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 Gt.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 Gt.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:Ut.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=qa(this,c,m,u,l,f,p):d||(d=this.programs[c]=qa(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=Ut.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=zk(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=c_(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=Ut.extend({},t.helpers,a.helpers);Kk(c,i),i.helpers=c,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=Ut.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=s_.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;o_.moveHelperToHooks(i,"helperMissing",u),o_.moveHelperToHooks(i,"blockHelperMissing",u)}},s._child=function(a,c,u,l){if(e.useBlockParams&&!u)throw new Gt.default("must pass block params");if(e.useDepths&&!l)throw new Gt.default("must pass parent depths");return qa(i,a,e[a],c,0,u,l)},s}o(Uk,"template");function qa(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=c_(r,c,e,a,n,s),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}o(qa,"wrapProgram");function Gk(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(Gk,"resolvePartial");function Zk(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!==a_&&function(){r.data=Zt.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=Zt.createFrame(u.data),u.data["partial-block"]=n,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=Ut.extend({},r.partials,s.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new Gt.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}o(Zk,"invokePartial");function a_(){return""}o(a_,"noop");function zk(e,t){return(!t||!("root"in t))&&(t=t?Zt.createFrame(t):{},t.root=e),t}o(zk,"initData");function c_(e,t,r,n,i,s){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,s,n),Ut.extend(t,a)}return t}o(c_,"executeDecorators");function Kk(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=Qk(n,t)})}o(Kk,"wrapHelpersToPassLookupProperty");function Qk(e,t){var r=t.lookupProperty;return Vk.wrapHelper(e,function(n){return Ut.extend({lookupProperty:r},n)})}o(Qk,"passLookupPropertyOption")});var jf=h((Ma,l_)=>{"use strict";Ma.__esModule=!0;Ma.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}};l_.exports=Ma.default});var h_=h((Da,m_)=>{"use strict";Da.__esModule=!0;function Mf(e){return e&&e.__esModule?e:{default:e}}o(Mf,"_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 Wk=ka(),p_=Df(Wk),Yk=n_(),Jk=Mf(Yk),Xk=We(),ej=Mf(Xk),tj=xe(),qf=Df(tj),rj=u_(),f_=Df(rj),nj=jf(),ij=Mf(nj);function d_(){var e=new p_.HandlebarsEnvironment;return qf.extend(e,p_),e.SafeString=Jk.default,e.Exception=ej.default,e.Utils=qf,e.escapeExpression=qf.escapeExpression,e.VM=f_,e.template=function(t){return f_.template(t,e)},e}o(d_,"create");var Co=d_();Co.create=d_;ij.default(Co);Co.default=Co;Da.default=Co;m_.exports=Da.default});var Lf=h((La,y_)=>{"use strict";La.__esModule=!0;var g_={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&&!g_.helpers.scopedId(t)&&!t.depth},"simpleId")}};La.default=g_;y_.exports=La.default});var S_=h((Fa,v_)=>{"use strict";Fa.__esModule=!0;var oj=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 S=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function _(mt){a.length=a.length-2*mt,c.length=c.length-mt,u.length=u.length-mt}o(_,"popStack");function $(){var mt;return mt=s.lexer.lex()||1,typeof mt!="number"&&(mt=s.symbols_[mt]||mt),mt}o($,"lex");for(var E,b,w,N,je,le,J={},te,ve,ln,pn;;){if(w=a[a.length-1],this.defaultActions[w]?N=this.defaultActions[w]:((E===null||typeof E>"u")&&(E=$()),N=l[w]&&l[w][E]),typeof N>"u"||!N.length||!N[0]){var nc="";if(!m){pn=[];for(te in l[w])this.terminals_[te]&&te>2&&pn.push("'"+this.terminals_[te]+"'");this.lexer.showPosition?nc="Parse error on line "+(p+1)+`:
54
+ `)}return f}else throw new Gt.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 Gt.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)||o_.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:Ut.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=qa(this,c,m,u,l,f,p):d||(d=this.programs[c]=qa(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=Ut.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=Zk(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=a_(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=Ut.extend({},t.helpers,a.helpers);zk(c,i),i.helpers=c,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=Ut.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=o_.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;i_.moveHelperToHooks(i,"helperMissing",u),i_.moveHelperToHooks(i,"blockHelperMissing",u)}},s._child=function(a,c,u,l){if(e.useBlockParams&&!u)throw new Gt.default("must pass block params");if(e.useDepths&&!l)throw new Gt.default("must pass parent depths");return qa(i,a,e[a],c,0,u,l)},s}o(Bk,"template");function qa(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=a_(r,c,e,a,n,s),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}o(qa,"wrapProgram");function Uk(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(Uk,"resolvePartial");function Gk(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!==s_&&function(){r.data=Zt.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=Zt.createFrame(u.data),u.data["partial-block"]=n,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=Ut.extend({},r.partials,s.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new Gt.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}o(Gk,"invokePartial");function s_(){return""}o(s_,"noop");function Zk(e,t){return(!t||!("root"in t))&&(t=t?Zt.createFrame(t):{},t.root=e),t}o(Zk,"initData");function a_(e,t,r,n,i,s){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,s,n),Ut.extend(t,a)}return t}o(a_,"executeDecorators");function zk(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=Kk(n,t)})}o(zk,"wrapHelpersToPassLookupProperty");function Kk(e,t){var r=t.lookupProperty;return Hk.wrapHelper(e,function(n){return Ut.extend({lookupProperty:r},n)})}o(Kk,"passLookupPropertyOption")});var jf=h((Ma,u_)=>{"use strict";Ma.__esModule=!0;Ma.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}};u_.exports=Ma.default});var m_=h((Da,d_)=>{"use strict";Da.__esModule=!0;function Mf(e){return e&&e.__esModule?e:{default:e}}o(Mf,"_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 Qk=ka(),l_=Df(Qk),Wk=r_(),Yk=Mf(Wk),Jk=We(),Xk=Mf(Jk),ej=xe(),qf=Df(ej),tj=c_(),p_=Df(tj),rj=jf(),nj=Mf(rj);function f_(){var e=new l_.HandlebarsEnvironment;return qf.extend(e,l_),e.SafeString=Yk.default,e.Exception=Xk.default,e.Utils=qf,e.escapeExpression=qf.escapeExpression,e.VM=p_,e.template=function(t){return p_.template(t,e)},e}o(f_,"create");var Co=f_();Co.create=f_;nj.default(Co);Co.default=Co;Da.default=Co;d_.exports=Da.default});var Lf=h((La,g_)=>{"use strict";La.__esModule=!0;var h_={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&&!h_.helpers.scopedId(t)&&!t.depth},"simpleId")}};La.default=h_;g_.exports=La.default});var v_=h((Fa,y_)=>{"use strict";Fa.__esModule=!0;var ij=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 S=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function b(mt){a.length=a.length-2*mt,c.length=c.length-mt,u.length=u.length-mt}o(b,"popStack");function P(){var mt;return mt=s.lexer.lex()||1,typeof mt!="number"&&(mt=s.symbols_[mt]||mt),mt}o(P,"lex");for(var $,_,w,N,je,pe,J={},te,Se,ln,pn;;){if(w=a[a.length-1],this.defaultActions[w]?N=this.defaultActions[w]:(($===null||typeof $>"u")&&($=P()),N=l[w]&&l[w][$]),typeof N>"u"||!N.length||!N[0]){var nc="";if(!m){pn=[];for(te in l[w])this.terminals_[te]&&te>2&&pn.push("'"+this.terminals_[te]+"'");this.lexer.showPosition?nc="Parse error on line "+(p+1)+`:
55
55
  `+this.lexer.showPosition()+`
56
- Expecting `+pn.join(", ")+", got '"+(this.terminals_[E]||E)+"'":nc="Parse error on line "+(p+1)+": Unexpected "+(E==1?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(nc,{text:this.lexer.match,token:this.terminals_[E]||E,line:this.lexer.yylineno,loc:v,expected:pn})}}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+E);switch(N[0]){case 1:a.push(E),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(N[1]),E=null,b?(E=b,b=null):(d=this.lexer.yyleng,f=this.lexer.yytext,p=this.lexer.yylineno,v=this.lexer.yylloc,m>0&&m--);break;case 2:if(ve=this.productions_[N[1]][1],J.$=c[c.length-ve],J._$={first_line:u[u.length-(ve||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(ve||1)].first_column,last_column:u[u.length-1].last_column},S&&(J._$.range=[u[u.length-(ve||1)].range[0],u[u.length-1].range[1]]),le=this.performAction.call(J,f,d,p,this.yy,N[1],c,u),typeof le<"u")return le;ve&&(a=a.slice(0,-1*ve*2),c=c.slice(0,-1*ve),u=u.slice(0,-1*ve)),a.push(this.productions_[N[1]][0]),c.push(J.$),u.push(J._$),ln=l[a[a.length-2]][a[a.length-1]],a.push(ln);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 `+pn.join(", ")+", got '"+(this.terminals_[$]||$)+"'":nc="Parse error on line "+(p+1)+": Unexpected "+($==1?"end of input":"'"+(this.terminals_[$]||$)+"'"),this.parseError(nc,{text:this.lexer.match,token:this.terminals_[$]||$,line:this.lexer.yylineno,loc:v,expected:pn})}}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+$);switch(N[0]){case 1:a.push($),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(N[1]),$=null,_?($=_,_=null):(d=this.lexer.yyleng,f=this.lexer.yytext,p=this.lexer.yylineno,v=this.lexer.yylloc,m>0&&m--);break;case 2:if(Se=this.productions_[N[1]][1],J.$=c[c.length-Se],J._$={first_line:u[u.length-(Se||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(Se||1)].first_column,last_column:u[u.length-1].last_column},S&&(J._$.range=[u[u.length-(Se||1)].range[0],u[u.length-1].range[1]]),pe=this.performAction.call(J,f,d,p,this.yy,N[1],c,u),typeof pe<"u")return pe;Se&&(a=a.slice(0,-1*Se*2),c=c.slice(0,-1*Se),u=u.slice(0,-1*Se)),a.push(this.productions_[N[1]][0]),c.push(J.$),u.push(J._$),ln=l[a[a.length-2]][a[a.length-1]],a.push(ln);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}();Fa.default=oj;v_.exports=Fa.default});var Ua=h((Ba,P_)=>{"use strict";Ba.__esModule=!0;function sj(e){return e&&e.__esModule?e:{default:e}}o(sj,"_interopRequireDefault");var aj=We(),Ff=sj(aj);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 Ff.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 Ff.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 Ff.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:Va,Decorator:Va,BlockStatement:b_,DecoratorBlock:b_,PartialStatement:__,PartialBlockStatement:o(function(t){__.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:Va,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 Va(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(Va,"visitSubExpression");function b_(e){Va.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}o(b_,"visitBlock");function __(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(__,"visitPartial");Ba.default=Ha;P_.exports=Ba.default});var $_=h((Ga,E_)=>{"use strict";Ga.__esModule=!0;function cj(e){return e&&e.__esModule?e:{default:e}}o(cj,"_interopRequireDefault");var uj=Ua(),lj=cj(uj);function qt(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}o(qt,"WhitespaceControl");qt.prototype=new lj.default;qt.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=Hf(n,i,r),l=Vf(n,i,r),f=c.openStandalone&&u,p=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&on(n,i,!0),c.open&&$r(n,i,!0),t&&d&&(on(n,i),$r(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&f&&(on((a.program||a.inverse).body),$r(n,i)),t&&p&&(on(n,i),$r((a.inverse||a.program).body))}}return e};qt.prototype.BlockStatement=qt.prototype.DecoratorBlock=qt.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:Vf(t.body),closeStandalone:Hf((n||t).body)};if(e.openStrip.close&&on(t.body,null,!0),r){var a=e.inverseStrip;a.open&&$r(t.body,null,!0),a.close&&on(n.body,null,!0),e.closeStrip.open&&$r(i.body,null,!0),!this.options.ignoreStandalone&&Hf(t.body)&&Vf(n.body)&&($r(t.body),on(n.body))}else e.closeStrip.open&&$r(t.body,null,!0);return s};qt.prototype.Decorator=qt.prototype.MustacheStatement=function(e){return e.strip};qt.prototype.PartialStatement=qt.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function Hf(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(Hf,"isPrevWhitespace");function Vf(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(Vf,"isNextWhitespace");function on(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(on,"omitRight");function $r(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($r,"omitLeft");Ga.default=qt;E_.exports=Ga.default});var O_=h(Ye=>{"use strict";Ye.__esModule=!0;Ye.SourceLocation=dj;Ye.id=mj;Ye.stripFlags=hj;Ye.stripComment=gj;Ye.preparePath=yj;Ye.prepareMustache=vj;Ye.prepareRawBlock=Sj;Ye.prepareBlock=bj;Ye.prepareProgram=_j;Ye.preparePartialBlock=Pj;function pj(e){return e&&e.__esModule?e:{default:e}}o(pj,"_interopRequireDefault");var fj=We(),Bf=pj(fj);function Uf(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new Bf.default(e.path.original+" doesn't match "+t,r)}}o(Uf,"validateClose");function dj(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(dj,"SourceLocation");function mj(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}o(mj,"id");function hj(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}o(hj,"stripFlags");function gj(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(gj,"stripComment");function yj(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 Bf.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(yj,"preparePath");function vj(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(vj,"prepareMustache");function Sj(e,t,r,n){Uf(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(Sj,"prepareRawBlock");function bj(e,t,r,n,i,s){n&&n.path&&Uf(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new Bf.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(bj,"prepareBlock");function _j(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(_j,"prepareProgram");function Pj(e,t,r,n){return Uf(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(Pj,"preparePartialBlock")});var A_=h(ko=>{"use strict";ko.__esModule=!0;ko.parseWithoutProcessing=w_;ko.parse=Tj;function Ej(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(Ej,"_interopRequireWildcard");function x_(e){return e&&e.__esModule?e:{default:e}}o(x_,"_interopRequireDefault");var $j=S_(),Gf=x_($j),Oj=$_(),xj=x_(Oj),wj=O_(),Aj=Ej(wj),Ij=xe();ko.parser=Gf.default;var Za={};Ij.extend(Za,Aj);function w_(e,t){if(e.type==="Program")return e;Gf.default.yy=Za,Za.locInfo=function(n){return new Za.SourceLocation(t&&t.srcName,n)};var r=Gf.default.parse(e);return r}o(w_,"parseWithoutProcessing");function Tj(e,t){var r=w_(e,t),n=new xj.default(t);return n.accept(r)}o(Tj,"parse")});var N_=h(Do=>{"use strict";Do.__esModule=!0;Do.Compiler=Zf;Do.precompile=kj;Do.compile=jj;function T_(e){return e&&e.__esModule?e:{default:e}}o(T_,"_interopRequireDefault");var Rj=We(),qo=T_(Rj),Mo=xe(),Nj=Lf(),jo=T_(Nj),Cj=[].slice;function Zf(){}o(Zf,"Compiler");Zf.prototype={compiler:Zf,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||!R_(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=Mo.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 qo.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){I_(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 qo.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){I_(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 qo.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,jo.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=jo.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:Cj.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:o(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:o(function(t){var r=jo.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&jo.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&&!jo.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&&Mo.indexOf(i,t);if(i&&s>=0)return[r,s]}},"blockParamIndex")};function kj(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new qo.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(kj,"precompile");function jj(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new qo.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=Mo.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(jj,"compile");function R_(e,t){if(e===t)return!0;if(Mo.isArray(e)&&Mo.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!R_(e[r],t[r]))return!1;return!0}}o(R_,"argEquals");function I_(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(I_,"transformLiteralToPath")});var k_=h(zf=>{var C_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");zf.encode=function(e){if(0<=e&&e<C_.length)return C_[e];throw new TypeError("Must be between 0 and 63: "+e)};zf.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 Wf=h(Qf=>{var j_=k_(),Kf=5,q_=1<<Kf,M_=q_-1,D_=q_;function qj(e){return e<0?(-e<<1)+1:(e<<1)+0}o(qj,"toVLQSigned");function Mj(e){var t=(e&1)===1,r=e>>1;return t?-r:r}o(Mj,"fromVLQSigned");Qf.encode=o(function(t){var r="",n,i=qj(t);do n=i&M_,i>>>=Kf,i>0&&(n|=D_),r+=j_.encode(n);while(i>0);return r},"base64VLQ_encode");Qf.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=j_.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&D_),u&=M_,s=s+(u<<a),a+=Kf}while(c);n.value=Mj(s),n.rest=r},"base64VLQ_decode")});var li=h(ye=>{function Dj(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(Dj,"getArg");ye.getArg=Dj;var L_=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Lj=/^data:.+\,.+$/;function Lo(e){var t=e.match(L_);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}o(Lo,"urlParse");ye.urlParse=Lo;function ci(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(ci,"urlGenerate");ye.urlGenerate=ci;function Yf(e){var t=e,r=Lo(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,ci(r)):t}o(Yf,"normalize");ye.normalize=Yf;function F_(e,t){e===""&&(e="."),t===""&&(t=".");var r=Lo(t),n=Lo(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),ci(r);if(r||t.match(Lj))return t;if(n&&!n.host&&!n.path)return n.host=t,ci(n);var i=t.charAt(0)==="/"?t:Yf(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,ci(n)):i}o(F_,"join");ye.join=F_;ye.isAbsolute=function(e){return e.charAt(0)==="/"||L_.test(e)};function Fj(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(Fj,"relative");ye.relative=Fj;var H_=function(){var e=Object.create(null);return!("__proto__"in e)}();function V_(e){return e}o(V_,"identity");function Hj(e){return B_(e)?"$"+e:e}o(Hj,"toSetString");ye.toSetString=H_?V_:Hj;function Vj(e){return B_(e)?e.slice(1):e}o(Vj,"fromSetString");ye.fromSetString=H_?V_:Vj;function B_(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(B_,"isProtoString");function Bj(e,t,r){var n=ui(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:ui(e.name,t.name)}o(Bj,"compareByOriginalPositions");ye.compareByOriginalPositions=Bj;function Uj(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=ui(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:ui(e.name,t.name)}o(Uj,"compareByGeneratedPositionsDeflated");ye.compareByGeneratedPositionsDeflated=Uj;function ui(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}o(ui,"strcmp");function Gj(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=ui(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:ui(e.name,t.name)}o(Gj,"compareByGeneratedPositionsInflated");ye.compareByGeneratedPositionsInflated=Gj;function Zj(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}o(Zj,"parseSourceMapInput");ye.parseSourceMapInput=Zj;function zj(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=Lo(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=F_(ci(n),t)}return Yf(t)}o(zj,"computeSourceURL");ye.computeSourceURL=zj});var ed=h(U_=>{var Jf=li(),Xf=Object.prototype.hasOwnProperty,sn=typeof Map<"u";function zt(){this._array=[],this._set=sn?new Map:Object.create(null)}o(zt,"ArraySet");zt.fromArray=o(function(t,r){for(var n=new zt,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n},"ArraySet_fromArray");zt.prototype.size=o(function(){return sn?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");zt.prototype.add=o(function(t,r){var n=sn?t:Jf.toSetString(t),i=sn?this.has(t):Xf.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(sn?this._set.set(t,s):this._set[n]=s)},"ArraySet_add");zt.prototype.has=o(function(t){if(sn)return this._set.has(t);var r=Jf.toSetString(t);return Xf.call(this._set,r)},"ArraySet_has");zt.prototype.indexOf=o(function(t){if(sn){var r=this._set.get(t);if(r>=0)return r}else{var n=Jf.toSetString(t);if(Xf.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");zt.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");zt.prototype.toArray=o(function(){return this._array.slice()},"ArraySet_toArray");U_.ArraySet=zt});var z_=h(Z_=>{var G_=li();function Kj(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||G_.compareByGeneratedPositionsInflated(e,t)<=0}o(Kj,"generatedPositionAfter");function za(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(za,"MappingList");za.prototype.unsortedForEach=o(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");za.prototype.add=o(function(t){Kj(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");za.prototype.toArray=o(function(){return this._sorted||(this._array.sort(G_.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");Z_.MappingList=za});var td=h(K_=>{var Fo=Wf(),ee=li(),Ka=ed().ArraySet,Qj=z_().MappingList;function Je(e){e||(e={}),this._file=ee.getArg(e,"file",null),this._sourceRoot=ee.getArg(e,"sourceRoot",null),this._skipValidation=ee.getArg(e,"skipValidation",!1),this._sources=new Ka,this._names=new Ka,this._mappings=new Qj,this._sourcesContents=null}o(Je,"SourceMapGenerator");Je.prototype._version=3;Je.fromSourceMap=o(function(t){var r=t.sourceRoot,n=new Je({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=ee.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=ee.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");Je.prototype.addMapping=o(function(t){var r=ee.getArg(t,"generated"),n=ee.getArg(t,"original",null),i=ee.getArg(t,"source",null),s=ee.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");Je.prototype.setSourceContent=o(function(t,r){var n=t;this._sourceRoot!=null&&(n=ee.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[ee.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[ee.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");Je.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=ee.relative(s,i));var a=new Ka,c=new Ka;this._mappings.unsortedForEach(function(u){if(u.source===i&&u.originalLine!=null){var l=t.originalPositionFor({line:u.originalLine,column:u.originalColumn});l.source!=null&&(u.source=l.source,n!=null&&(u.source=ee.join(n,u.source)),s!=null&&(u.source=ee.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=ee.join(n,u)),s!=null&&(u=ee.relative(s,u)),this.setSourceContent(u,l))},this)},"SourceMapGenerator_applySourceMap");Je.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");Je.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(!ee.compareByGeneratedPositionsInflated(l,d[m-1]))continue;u+=","}u+=Fo.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(p=this._sources.indexOf(l.source),u+=Fo.encode(p-a),a=p,u+=Fo.encode(l.originalLine-1-i),i=l.originalLine-1,u+=Fo.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(f=this._names.indexOf(l.name),u+=Fo.encode(f-s),s=f)),c+=u}return c},"SourceMapGenerator_serializeMappings");Je.prototype._generateSourcesContent=o(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=ee.relative(r,n));var i=ee.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");Je.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");Je.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");K_.SourceMapGenerator=Je});var Q_=h(an=>{an.GREATEST_LOWER_BOUND=1;an.LEAST_UPPER_BOUND=2;function rd(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?rd(a,t,r,n,i,s):s==an.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?rd(e,a,r,n,i,s):s==an.LEAST_UPPER_BOUND?a:e<0?-1:e}o(rd,"recursiveSearch");an.search=o(function(t,r,n,i){if(r.length===0)return-1;var s=rd(-1,r.length,t,r,n,i||an.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 Y_=h(W_=>{function nd(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}o(nd,"swap");function Wj(e,t){return Math.round(e+Math.random()*(t-e))}o(Wj,"randomIntInRange");function id(e,t,r,n){if(r<n){var i=Wj(r,n),s=r-1;nd(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(s+=1,nd(e,s,c));nd(e,s+1,c);var u=s+1;id(e,t,r,u-1),id(e,t,u+1,n)}}o(id,"doQuickSort");W_.quickSort=function(e,t){id(e,t,0,e.length-1)}});var X_=h(Qa=>{var P=li(),od=Q_(),pi=ed().ArraySet,Yj=Wf(),Ho=Y_().quickSort;function Z(e,t){var r=e;return typeof e=="string"&&(r=P.parseSourceMapInput(e)),r.sections!=null?new dt(r,t):new ue(r,t)}o(Z,"SourceMapConsumer");Z.fromSourceMap=function(e,t){return ue.fromSourceMap(e,t)};Z.prototype._version=3;Z.prototype.__generatedMappings=null;Object.defineProperty(Z.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});Z.prototype.__originalMappings=null;Object.defineProperty(Z.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});Z.prototype._charIsMappingSeparator=o(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");Z.prototype._parseMappings=o(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");Z.GENERATED_ORDER=1;Z.ORIGINAL_ORDER=2;Z.GREATEST_LOWER_BOUND=1;Z.LEAST_UPPER_BOUND=2;Z.prototype.eachMapping=o(function(t,r,n){var i=r||null,s=n||Z.GENERATED_ORDER,a;switch(s){case Z.GENERATED_ORDER:a=this._generatedMappings;break;case Z.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");Z.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,od.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");Qa.SourceMapConsumer=Z;function ue(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=pi.fromArray(s.map(String),!0),this._sources=pi.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(ue,"BasicSourceMapConsumer");ue.prototype=Object.create(Z.prototype);ue.prototype.consumer=Z;ue.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};ue.fromSourceMap=o(function(t,r){var n=Object.create(ue.prototype),i=n._names=pi.fromArray(t._names.toArray(),!0),s=n._sources=pi.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 J_;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 Ho(n.__originalMappings,P.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");ue.prototype._version=3;Object.defineProperty(ue.prototype,"sources",{get:o(function(){return this._absoluteSources.slice()},"get")});function J_(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o(J_,"Mapping");ue.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,S,_,$;f<l;)if(t.charAt(f)===";")n++,f++,i=0;else if(t.charAt(f)===",")f++;else{for(y=new J_,y.generatedLine=n,_=f;_<l&&!this._charIsMappingSeparator(t,_);_++);if(v=t.slice(f,_),S=p[v],S)f+=v.length;else{for(S=[];f<_;)Yj.decode(t,f,d),$=d.value,f=d.rest,S.push($);if(S.length===2)throw new Error("Found a source, but no line and column");if(S.length===3)throw new Error("Found a source and line, but no column");p[v]=S}y.generatedColumn=i+S[0],i=y.generatedColumn,S.length>1&&(y.source=c+S[1],c+=S[1],y.originalLine=s+S[2],s=y.originalLine,y.originalLine+=1,y.originalColumn=a+S[3],a=y.originalColumn,S.length>4&&(y.name=u+S[4],u+=S[4])),g.push(y),typeof y.originalLine=="number"&&m.push(y)}Ho(g,P.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,Ho(m,P.compareByOriginalPositions),this.__originalMappings=m},"SourceMapConsumer_parseMappings");ue.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 od.search(t,r,s,a)},"SourceMapConsumer_findMapping");ue.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");ue.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",Z.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");ue.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");ue.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");ue.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",Z.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");Qa.BasicSourceMapConsumer=ue;function dt(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 pi,this._names=new pi;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 Z(P.getArg(a,"map"),t)}})}o(dt,"IndexedSourceMapConsumer");dt.prototype=Object.create(Z.prototype);dt.prototype.constructor=Z;dt.prototype._version=3;Object.defineProperty(dt.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")});dt.prototype.originalPositionFor=o(function(t){var r={generatedLine:P.getArg(t,"line"),generatedColumn:P.getArg(t,"column")},n=od.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");dt.prototype.hasContentsOfAllSources=o(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");dt.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");dt.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");dt.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)}Ho(this.__generatedMappings,P.compareByGeneratedPositionsDeflated),Ho(this.__originalMappings,P.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");Qa.IndexedSourceMapConsumer=dt});var tP=h(eP=>{var Jj=td().SourceMapGenerator,Wa=li(),Xj=/(\r?\n)/,e3=10,fi="$$$isSourceNode$$$";function Ve(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[fi]=!0,n!=null&&this.add(n)}o(Ve,"SourceNode");Ve.fromStringWithSourceMap=o(function(t,r,n){var i=new Ve,s=t.split(Xj),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=Wa.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?Wa.join(n,d.source):d.source;i.add(new Ve(d.originalLine,d.originalColumn,g,m,d.name))}}o(p,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Ve.prototype.add=o(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[fi]||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");Ve.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[fi]||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");Ve.prototype.walk=o(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[fi]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Ve.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");Ve.prototype.replaceRight=o(function(t,r){var n=this.children[this.children.length-1];return n[fi]?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");Ve.prototype.setSourceContent=o(function(t,r){this.sourceContents[Wa.toSetString(t)]=r},"SourceNode_setSourceContent");Ve.prototype.walkSourceContents=o(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][fi]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(Wa.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Ve.prototype.toString=o(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Ve.prototype.toStringWithSourceMap=o(function(t){var r={code:"",line:1,column:0},n=new Jj(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)===e3?(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");eP.SourceNode=Ve});var rP=h(Ya=>{Ya.SourceMapGenerator=td().SourceMapGenerator;Ya.SourceMapConsumer=X_().SourceMapConsumer;Ya.SourceNode=tP().SourceNode});var sP=h((Ja,oP)=>{"use strict";Ja.__esModule=!0;var ad=xe(),cn=void 0;try{(typeof define!="function"||!define.amd)&&(nP=rP(),cn=nP.SourceNode)}catch{}var nP;cn||(cn=o(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),cn.prototype={add:o(function(t){ad.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:o(function(t){ad.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 sd(e,t,r){if(ad.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(sd,"castChunk");function iP(e){this.srcFile=e,this.source=[]}o(iP,"CodeGen");iP.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 cn(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 cn?t:(t=sd(t,this,r),new cn(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=sd(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(sd(t[n],this));return r},"generateList"),generateArray:o(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};Ja.default=iP;oP.exports=Ja.default});var pP=h((Xa,lP)=>{"use strict";Xa.__esModule=!0;function uP(e){return e&&e.__esModule?e:{default:e}}o(uP,"_interopRequireDefault");var aP=ka(),t3=We(),cd=uP(t3),r3=xe(),n3=sP(),cP=uP(n3);function di(e){this.value=e}o(di,"Literal");function mi(){}o(mi,"JavaScriptCompiler");mi.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=aP.COMPILER_REVISION,r=aP.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:o(function(t,r,n){return r3.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 cd.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}();Fa.default=ij;y_.exports=Fa.default});var Ua=h((Ba,__)=>{"use strict";Ba.__esModule=!0;function oj(e){return e&&e.__esModule?e:{default:e}}o(oj,"_interopRequireDefault");var sj=We(),Ff=oj(sj);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 Ff.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 Ff.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 Ff.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:Va,Decorator:Va,BlockStatement:S_,DecoratorBlock:S_,PartialStatement:b_,PartialBlockStatement:o(function(t){b_.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:Va,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 Va(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(Va,"visitSubExpression");function S_(e){Va.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}o(S_,"visitBlock");function b_(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(b_,"visitPartial");Ba.default=Ha;__.exports=Ba.default});var E_=h((Ga,P_)=>{"use strict";Ga.__esModule=!0;function aj(e){return e&&e.__esModule?e:{default:e}}o(aj,"_interopRequireDefault");var cj=Ua(),uj=aj(cj);function qt(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}o(qt,"WhitespaceControl");qt.prototype=new uj.default;qt.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=Hf(n,i,r),l=Vf(n,i,r),f=c.openStandalone&&u,p=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&on(n,i,!0),c.open&&$r(n,i,!0),t&&d&&(on(n,i),$r(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&f&&(on((a.program||a.inverse).body),$r(n,i)),t&&p&&(on(n,i),$r((a.inverse||a.program).body))}}return e};qt.prototype.BlockStatement=qt.prototype.DecoratorBlock=qt.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:Vf(t.body),closeStandalone:Hf((n||t).body)};if(e.openStrip.close&&on(t.body,null,!0),r){var a=e.inverseStrip;a.open&&$r(t.body,null,!0),a.close&&on(n.body,null,!0),e.closeStrip.open&&$r(i.body,null,!0),!this.options.ignoreStandalone&&Hf(t.body)&&Vf(n.body)&&($r(t.body),on(n.body))}else e.closeStrip.open&&$r(t.body,null,!0);return s};qt.prototype.Decorator=qt.prototype.MustacheStatement=function(e){return e.strip};qt.prototype.PartialStatement=qt.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function Hf(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(Hf,"isPrevWhitespace");function Vf(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(Vf,"isNextWhitespace");function on(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(on,"omitRight");function $r(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($r,"omitLeft");Ga.default=qt;P_.exports=Ga.default});var $_=h(Ye=>{"use strict";Ye.__esModule=!0;Ye.SourceLocation=fj;Ye.id=dj;Ye.stripFlags=mj;Ye.stripComment=hj;Ye.preparePath=gj;Ye.prepareMustache=yj;Ye.prepareRawBlock=vj;Ye.prepareBlock=Sj;Ye.prepareProgram=bj;Ye.preparePartialBlock=_j;function lj(e){return e&&e.__esModule?e:{default:e}}o(lj,"_interopRequireDefault");var pj=We(),Bf=lj(pj);function Uf(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new Bf.default(e.path.original+" doesn't match "+t,r)}}o(Uf,"validateClose");function fj(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(fj,"SourceLocation");function dj(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}o(dj,"id");function mj(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}o(mj,"stripFlags");function hj(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(hj,"stripComment");function gj(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 Bf.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(gj,"preparePath");function yj(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(yj,"prepareMustache");function vj(e,t,r,n){Uf(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(vj,"prepareRawBlock");function Sj(e,t,r,n,i,s){n&&n.path&&Uf(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new Bf.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(Sj,"prepareBlock");function bj(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(bj,"prepareProgram");function _j(e,t,r,n){return Uf(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(_j,"preparePartialBlock")});var w_=h(ko=>{"use strict";ko.__esModule=!0;ko.parseWithoutProcessing=x_;ko.parse=Ij;function Pj(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(Pj,"_interopRequireWildcard");function O_(e){return e&&e.__esModule?e:{default:e}}o(O_,"_interopRequireDefault");var Ej=v_(),Gf=O_(Ej),$j=E_(),Oj=O_($j),xj=$_(),wj=Pj(xj),Aj=xe();ko.parser=Gf.default;var Za={};Aj.extend(Za,wj);function x_(e,t){if(e.type==="Program")return e;Gf.default.yy=Za,Za.locInfo=function(n){return new Za.SourceLocation(t&&t.srcName,n)};var r=Gf.default.parse(e);return r}o(x_,"parseWithoutProcessing");function Ij(e,t){var r=x_(e,t),n=new Oj.default(t);return n.accept(r)}o(Ij,"parse")});var R_=h(Do=>{"use strict";Do.__esModule=!0;Do.Compiler=Zf;Do.precompile=Cj;Do.compile=kj;function I_(e){return e&&e.__esModule?e:{default:e}}o(I_,"_interopRequireDefault");var Tj=We(),qo=I_(Tj),Mo=xe(),Rj=Lf(),jo=I_(Rj),Nj=[].slice;function Zf(){}o(Zf,"Compiler");Zf.prototype={compiler:Zf,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||!T_(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=Mo.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 qo.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){A_(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 qo.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){A_(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 qo.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,jo.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=jo.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:Nj.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:o(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:o(function(t){var r=jo.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&jo.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&&!jo.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&&Mo.indexOf(i,t);if(i&&s>=0)return[r,s]}},"blockParamIndex")};function Cj(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new qo.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(Cj,"precompile");function kj(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new qo.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=Mo.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(kj,"compile");function T_(e,t){if(e===t)return!0;if(Mo.isArray(e)&&Mo.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!T_(e[r],t[r]))return!1;return!0}}o(T_,"argEquals");function A_(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(A_,"transformLiteralToPath")});var C_=h(zf=>{var N_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");zf.encode=function(e){if(0<=e&&e<N_.length)return N_[e];throw new TypeError("Must be between 0 and 63: "+e)};zf.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 Wf=h(Qf=>{var k_=C_(),Kf=5,j_=1<<Kf,q_=j_-1,M_=j_;function jj(e){return e<0?(-e<<1)+1:(e<<1)+0}o(jj,"toVLQSigned");function qj(e){var t=(e&1)===1,r=e>>1;return t?-r:r}o(qj,"fromVLQSigned");Qf.encode=o(function(t){var r="",n,i=jj(t);do n=i&q_,i>>>=Kf,i>0&&(n|=M_),r+=k_.encode(n);while(i>0);return r},"base64VLQ_encode");Qf.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=k_.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&M_),u&=q_,s=s+(u<<a),a+=Kf}while(c);n.value=qj(s),n.rest=r},"base64VLQ_decode")});var li=h(ve=>{function Mj(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(Mj,"getArg");ve.getArg=Mj;var D_=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Dj=/^data:.+\,.+$/;function Lo(e){var t=e.match(D_);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}o(Lo,"urlParse");ve.urlParse=Lo;function ci(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(ci,"urlGenerate");ve.urlGenerate=ci;function Yf(e){var t=e,r=Lo(e);if(r){if(!r.path)return e;t=r.path}for(var n=ve.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,ci(r)):t}o(Yf,"normalize");ve.normalize=Yf;function L_(e,t){e===""&&(e="."),t===""&&(t=".");var r=Lo(t),n=Lo(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),ci(r);if(r||t.match(Dj))return t;if(n&&!n.host&&!n.path)return n.host=t,ci(n);var i=t.charAt(0)==="/"?t:Yf(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,ci(n)):i}o(L_,"join");ve.join=L_;ve.isAbsolute=function(e){return e.charAt(0)==="/"||D_.test(e)};function Lj(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(Lj,"relative");ve.relative=Lj;var F_=function(){var e=Object.create(null);return!("__proto__"in e)}();function H_(e){return e}o(H_,"identity");function Fj(e){return V_(e)?"$"+e:e}o(Fj,"toSetString");ve.toSetString=F_?H_:Fj;function Hj(e){return V_(e)?e.slice(1):e}o(Hj,"fromSetString");ve.fromSetString=F_?H_:Hj;function V_(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(V_,"isProtoString");function Vj(e,t,r){var n=ui(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:ui(e.name,t.name)}o(Vj,"compareByOriginalPositions");ve.compareByOriginalPositions=Vj;function Bj(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=ui(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:ui(e.name,t.name)}o(Bj,"compareByGeneratedPositionsDeflated");ve.compareByGeneratedPositionsDeflated=Bj;function ui(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}o(ui,"strcmp");function Uj(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=ui(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:ui(e.name,t.name)}o(Uj,"compareByGeneratedPositionsInflated");ve.compareByGeneratedPositionsInflated=Uj;function Gj(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}o(Gj,"parseSourceMapInput");ve.parseSourceMapInput=Gj;function Zj(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=Lo(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=L_(ci(n),t)}return Yf(t)}o(Zj,"computeSourceURL");ve.computeSourceURL=Zj});var ed=h(B_=>{var Jf=li(),Xf=Object.prototype.hasOwnProperty,sn=typeof Map<"u";function zt(){this._array=[],this._set=sn?new Map:Object.create(null)}o(zt,"ArraySet");zt.fromArray=o(function(t,r){for(var n=new zt,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n},"ArraySet_fromArray");zt.prototype.size=o(function(){return sn?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");zt.prototype.add=o(function(t,r){var n=sn?t:Jf.toSetString(t),i=sn?this.has(t):Xf.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(sn?this._set.set(t,s):this._set[n]=s)},"ArraySet_add");zt.prototype.has=o(function(t){if(sn)return this._set.has(t);var r=Jf.toSetString(t);return Xf.call(this._set,r)},"ArraySet_has");zt.prototype.indexOf=o(function(t){if(sn){var r=this._set.get(t);if(r>=0)return r}else{var n=Jf.toSetString(t);if(Xf.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");zt.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");zt.prototype.toArray=o(function(){return this._array.slice()},"ArraySet_toArray");B_.ArraySet=zt});var Z_=h(G_=>{var U_=li();function zj(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||U_.compareByGeneratedPositionsInflated(e,t)<=0}o(zj,"generatedPositionAfter");function za(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(za,"MappingList");za.prototype.unsortedForEach=o(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");za.prototype.add=o(function(t){zj(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");za.prototype.toArray=o(function(){return this._sorted||(this._array.sort(U_.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");G_.MappingList=za});var td=h(z_=>{var Fo=Wf(),ee=li(),Ka=ed().ArraySet,Kj=Z_().MappingList;function Je(e){e||(e={}),this._file=ee.getArg(e,"file",null),this._sourceRoot=ee.getArg(e,"sourceRoot",null),this._skipValidation=ee.getArg(e,"skipValidation",!1),this._sources=new Ka,this._names=new Ka,this._mappings=new Kj,this._sourcesContents=null}o(Je,"SourceMapGenerator");Je.prototype._version=3;Je.fromSourceMap=o(function(t){var r=t.sourceRoot,n=new Je({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=ee.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=ee.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");Je.prototype.addMapping=o(function(t){var r=ee.getArg(t,"generated"),n=ee.getArg(t,"original",null),i=ee.getArg(t,"source",null),s=ee.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");Je.prototype.setSourceContent=o(function(t,r){var n=t;this._sourceRoot!=null&&(n=ee.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[ee.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[ee.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");Je.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=ee.relative(s,i));var a=new Ka,c=new Ka;this._mappings.unsortedForEach(function(u){if(u.source===i&&u.originalLine!=null){var l=t.originalPositionFor({line:u.originalLine,column:u.originalColumn});l.source!=null&&(u.source=l.source,n!=null&&(u.source=ee.join(n,u.source)),s!=null&&(u.source=ee.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=ee.join(n,u)),s!=null&&(u=ee.relative(s,u)),this.setSourceContent(u,l))},this)},"SourceMapGenerator_applySourceMap");Je.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");Je.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(!ee.compareByGeneratedPositionsInflated(l,d[m-1]))continue;u+=","}u+=Fo.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(p=this._sources.indexOf(l.source),u+=Fo.encode(p-a),a=p,u+=Fo.encode(l.originalLine-1-i),i=l.originalLine-1,u+=Fo.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(f=this._names.indexOf(l.name),u+=Fo.encode(f-s),s=f)),c+=u}return c},"SourceMapGenerator_serializeMappings");Je.prototype._generateSourcesContent=o(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=ee.relative(r,n));var i=ee.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");Je.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");Je.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");z_.SourceMapGenerator=Je});var K_=h(an=>{an.GREATEST_LOWER_BOUND=1;an.LEAST_UPPER_BOUND=2;function rd(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?rd(a,t,r,n,i,s):s==an.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?rd(e,a,r,n,i,s):s==an.LEAST_UPPER_BOUND?a:e<0?-1:e}o(rd,"recursiveSearch");an.search=o(function(t,r,n,i){if(r.length===0)return-1;var s=rd(-1,r.length,t,r,n,i||an.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 W_=h(Q_=>{function nd(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}o(nd,"swap");function Qj(e,t){return Math.round(e+Math.random()*(t-e))}o(Qj,"randomIntInRange");function id(e,t,r,n){if(r<n){var i=Qj(r,n),s=r-1;nd(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(s+=1,nd(e,s,c));nd(e,s+1,c);var u=s+1;id(e,t,r,u-1),id(e,t,u+1,n)}}o(id,"doQuickSort");Q_.quickSort=function(e,t){id(e,t,0,e.length-1)}});var J_=h(Qa=>{var E=li(),od=K_(),pi=ed().ArraySet,Wj=Wf(),Ho=W_().quickSort;function Z(e,t){var r=e;return typeof e=="string"&&(r=E.parseSourceMapInput(e)),r.sections!=null?new dt(r,t):new le(r,t)}o(Z,"SourceMapConsumer");Z.fromSourceMap=function(e,t){return le.fromSourceMap(e,t)};Z.prototype._version=3;Z.prototype.__generatedMappings=null;Object.defineProperty(Z.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});Z.prototype.__originalMappings=null;Object.defineProperty(Z.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});Z.prototype._charIsMappingSeparator=o(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");Z.prototype._parseMappings=o(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");Z.GENERATED_ORDER=1;Z.ORIGINAL_ORDER=2;Z.GREATEST_LOWER_BOUND=1;Z.LEAST_UPPER_BOUND=2;Z.prototype.eachMapping=o(function(t,r,n){var i=r||null,s=n||Z.GENERATED_ORDER,a;switch(s){case Z.GENERATED_ORDER:a=this._generatedMappings;break;case Z.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=E.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");Z.prototype.allGeneratedPositionsFor=o(function(t){var r=E.getArg(t,"line"),n={source:E.getArg(t,"source"),originalLine:r,originalColumn:E.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",E.compareByOriginalPositions,od.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:E.getArg(a,"generatedLine",null),column:E.getArg(a,"generatedColumn",null),lastColumn:E.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var u=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==u;)i.push({line:E.getArg(a,"generatedLine",null),column:E.getArg(a,"generatedColumn",null),lastColumn:E.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i},"SourceMapConsumer_allGeneratedPositionsFor");Qa.SourceMapConsumer=Z;function le(e,t){var r=e;typeof e=="string"&&(r=E.parseSourceMapInput(e));var n=E.getArg(r,"version"),i=E.getArg(r,"sources"),s=E.getArg(r,"names",[]),a=E.getArg(r,"sourceRoot",null),c=E.getArg(r,"sourcesContent",null),u=E.getArg(r,"mappings"),l=E.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=E.normalize(a)),i=i.map(String).map(E.normalize).map(function(f){return a&&E.isAbsolute(a)&&E.isAbsolute(f)?E.relative(a,f):f}),this._names=pi.fromArray(s.map(String),!0),this._sources=pi.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(f){return E.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(Z.prototype);le.prototype.consumer=Z;le.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=E.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=pi.fromArray(t._names.toArray(),!0),s=n._sources=pi.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 E.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 Y_;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 Ho(n.__originalMappings,E.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");le.prototype._version=3;Object.defineProperty(le.prototype,"sources",{get:o(function(){return this._absoluteSources.slice()},"get")});function Y_(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o(Y_,"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,S,b,P;f<l;)if(t.charAt(f)===";")n++,f++,i=0;else if(t.charAt(f)===",")f++;else{for(y=new Y_,y.generatedLine=n,b=f;b<l&&!this._charIsMappingSeparator(t,b);b++);if(v=t.slice(f,b),S=p[v],S)f+=v.length;else{for(S=[];f<b;)Wj.decode(t,f,d),P=d.value,f=d.rest,S.push(P);if(S.length===2)throw new Error("Found a source, but no line and column");if(S.length===3)throw new Error("Found a source and line, but no column");p[v]=S}y.generatedColumn=i+S[0],i=y.generatedColumn,S.length>1&&(y.source=c+S[1],c+=S[1],y.originalLine=s+S[2],s=y.originalLine,y.originalLine+=1,y.originalColumn=a+S[3],a=y.originalColumn,S.length>4&&(y.name=u+S[4],u+=S[4])),g.push(y),typeof y.originalLine=="number"&&m.push(y)}Ho(g,E.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,Ho(m,E.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 od.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:E.getArg(t,"line"),generatedColumn:E.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",E.compareByGeneratedPositionsDeflated,E.getArg(t,"bias",Z.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=E.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=E.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=E.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:E.getArg(i,"originalLine",null),column:E.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=E.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=E.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=E.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:E.getArg(t,"line"),originalColumn:E.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",E.compareByOriginalPositions,E.getArg(t,"bias",Z.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:E.getArg(s,"generatedLine",null),column:E.getArg(s,"generatedColumn",null),lastColumn:E.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");Qa.BasicSourceMapConsumer=le;function dt(e,t){var r=e;typeof e=="string"&&(r=E.parseSourceMapInput(e));var n=E.getArg(r,"version"),i=E.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new pi,this._names=new pi;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=E.getArg(a,"offset"),u=E.getArg(c,"line"),l=E.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 Z(E.getArg(a,"map"),t)}})}o(dt,"IndexedSourceMapConsumer");dt.prototype=Object.create(Z.prototype);dt.prototype.constructor=Z;dt.prototype._version=3;Object.defineProperty(dt.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")});dt.prototype.originalPositionFor=o(function(t){var r={generatedLine:E.getArg(t,"line"),generatedColumn:E.getArg(t,"column")},n=od.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");dt.prototype.hasContentsOfAllSources=o(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");dt.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");dt.prototype.generatedPositionFor=o(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(E.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");dt.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=E.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)}Ho(this.__generatedMappings,E.compareByGeneratedPositionsDeflated),Ho(this.__originalMappings,E.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");Qa.IndexedSourceMapConsumer=dt});var eP=h(X_=>{var Yj=td().SourceMapGenerator,Wa=li(),Jj=/(\r?\n)/,Xj=10,fi="$$$isSourceNode$$$";function Ve(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[fi]=!0,n!=null&&this.add(n)}o(Ve,"SourceNode");Ve.fromStringWithSourceMap=o(function(t,r,n){var i=new Ve,s=t.split(Jj),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=Wa.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?Wa.join(n,d.source):d.source;i.add(new Ve(d.originalLine,d.originalColumn,g,m,d.name))}}o(p,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Ve.prototype.add=o(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[fi]||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");Ve.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[fi]||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");Ve.prototype.walk=o(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[fi]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Ve.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");Ve.prototype.replaceRight=o(function(t,r){var n=this.children[this.children.length-1];return n[fi]?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");Ve.prototype.setSourceContent=o(function(t,r){this.sourceContents[Wa.toSetString(t)]=r},"SourceNode_setSourceContent");Ve.prototype.walkSourceContents=o(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][fi]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(Wa.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Ve.prototype.toString=o(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Ve.prototype.toStringWithSourceMap=o(function(t){var r={code:"",line:1,column:0},n=new Yj(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)===Xj?(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");X_.SourceNode=Ve});var tP=h(Ya=>{Ya.SourceMapGenerator=td().SourceMapGenerator;Ya.SourceMapConsumer=J_().SourceMapConsumer;Ya.SourceNode=eP().SourceNode});var oP=h((Ja,iP)=>{"use strict";Ja.__esModule=!0;var ad=xe(),cn=void 0;try{(typeof define!="function"||!define.amd)&&(rP=tP(),cn=rP.SourceNode)}catch{}var rP;cn||(cn=o(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),cn.prototype={add:o(function(t){ad.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:o(function(t){ad.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 sd(e,t,r){if(ad.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(sd,"castChunk");function nP(e){this.srcFile=e,this.source=[]}o(nP,"CodeGen");nP.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 cn(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 cn?t:(t=sd(t,this,r),new cn(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=sd(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(sd(t[n],this));return r},"generateList"),generateArray:o(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};Ja.default=nP;iP.exports=Ja.default});var lP=h((Xa,uP)=>{"use strict";Xa.__esModule=!0;function cP(e){return e&&e.__esModule?e:{default:e}}o(cP,"_interopRequireDefault");var sP=ka(),e3=We(),cd=cP(e3),t3=xe(),r3=oP(),aP=cP(r3);function di(e){this.value=e}o(di,"Literal");function mi(){}o(mi,"JavaScriptCompiler");mi.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=sP.COMPILER_REVISION,r=sP.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:o(function(t,r,n){return t3.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 cd.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 cP.default(this.options.srcName),this.decorators=new cP.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 aP.default(this.options.srcName),this.decorators=new aP.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 `+pn.join(", ")+", got '"+(this.terminals_[E]||E)+"'":nc="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(i3(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:mi,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 di||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:o(function(t){this.push(new di(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 cd.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof di)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 di)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 di)return n.value;if(!r){if(!this.stackSlot)throw new cd.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 di?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=mi.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();mi.isValidJavaScriptVariableName=function(e){return!mi.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function i3(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(i3,"strictLookup");Xa.default=mi;lP.exports=Xa.default});var mP=h((ec,dP)=>{"use strict";ec.__esModule=!0;function Vo(e){return e&&e.__esModule?e:{default:e}}o(Vo,"_interopRequireDefault");var o3=h_(),s3=Vo(o3),a3=Lf(),c3=Vo(a3),ud=A_(),ld=N_(),u3=pP(),l3=Vo(u3),p3=Ua(),f3=Vo(p3),d3=jf(),m3=Vo(d3),h3=s3.default.create;function fP(){var e=h3();return e.compile=function(t,r){return ld.compile(t,r,e)},e.precompile=function(t,r){return ld.precompile(t,r,e)},e.AST=c3.default,e.Compiler=ld.Compiler,e.JavaScriptCompiler=l3.default,e.Parser=ud.parser,e.parse=ud.parse,e.parseWithoutProcessing=ud.parseWithoutProcessing,e}o(fP,"create");var hi=fP();hi.create=fP;m3.default(hi);hi.Visitor=f3.default;hi.default=hi;ec.default=hi;dP.exports=ec.default});var hP=h(tc=>{"use strict";tc.__esModule=!0;tc.print=S3;tc.PrintVisitor=W;function g3(e){return e&&e.__esModule?e:{default:e}}o(g3,"_interopRequireDefault");var y3=Ua(),v3=g3(y3);function S3(e){return new W().accept(e)}o(S3,"print");function W(){this.padding=0}o(W,"PrintVisitor");W.prototype=new v3.default;W.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
72
- `,t};W.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};W.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};W.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};W.prototype.BlockStatement=W.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};W.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+" }}")};W.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+" }}")};W.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};W.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};W.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};W.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};W.prototype.StringLiteral=function(e){return'"'+e.value+'"'};W.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};W.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};W.prototype.UndefinedLiteral=function(){return"UNDEFINED"};W.prototype.NullLiteral=function(){return"NULL"};W.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(", ")+"}"};W.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var Kt=h((UV,vP)=>{var rc=mP().default,yP=hP();rc.PrintVisitor=yP.PrintVisitor;rc.print=yP.print;vP.exports=rc;function gP(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=rc.compile(n)}o(gP,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=gP,require.extensions[".hbs"]=gP)});var dq={};YP(dq,{getGenerateFilesData:()=>fq,getGenerateMetadata:()=>pq});module.exports=JP(dq);var md=Xe(Uv());var uo="AppRestClient",Qs={query:"AppQueryOptions",infiniteQuery:"AppInfiniteQueryOptions",mutation:"AppMutationOptions"},zp="src/data",Kp="@/data",Ws={appRestClient:{template:"@/util/rest/clients/app-rest-client",monorepoTemplate:"@/clients/app-rest-client"},queryTypes:{template:"@/types/react-query",monorepoTemplate:"@povio/utils/types/react-query"},errorHandling:{template:"@/util/vendor/error-handling",monorepoTemplate:"@povio/utils/vendor/error-handling"}},co={ErrorHandler:"ErrorHandler",SharedErrorHandler:"SharedErrorHandler"},Gv={bindings:[co.ErrorHandler,co.SharedErrorHandler],from:"@/util/vendor/error-handling"};var Ys={reactQueryTypes:{fileName:"react-query.types",extension:"ts"},restClient:{fileName:"rest-client",extension:"ts"},restInterceptor:{fileName:"rest-interceptor",extension:"ts"}},Js={fileName:"app-rest-client",extension:"ts"},Qp="QueryModule",Xs={fileName:"queryModules",extension:"ts"},Zv={fileName:"queryConfig.context",extension:"tsx"},Wn={optionsType:"MutationEffectsOptions",hookName:"useMutationEffects",runFunctionName:"runMutationEffects"},ea={fileName:"useMutationEffects",extension:"ts"},Ot={name:"zod",properties:{sortingString:"sortingString",parse:"parse"}},ta={fileName:"zod",extension:"ts"};var zv="Schema",Kv="Enum",Qv="Body",Wv="Param",Yv="Response",Jv="ErrorResponse",lo="z.void()",ra="z.instanceof(Blob)",po="z.enum",na="z.string()",Yn={bindings:["z"],from:"zod"};var fo={input:"",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],excludePathRegex:"",excludeRedundantZodSchemas:!0,tsNamespaces:!0,importPath:"ts",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:zv,enumSuffix:Kv,withDefaultValues:!0,extractEnums:!0,replaceOptionalWithNullish:!1,restClientImportPath:Ws.appRestClient.template,errorHandlingImportPath:Ws.errorHandling.template,removeOperationPrefixEndingWith:"Controller_",queryTypesImportPath:Ws.queryTypes.template,axiosRequestConfig:!1,infiniteQueries:!1,mutationEffects:!0};var pt={query:"useQuery",infiniteQuery:"useInfiniteQuery",mutation:"useMutation"},Xv={bindings:[pt.query,pt.infiniteQuery,pt.mutation],from:"@tanstack/react-query"},mo={pageParamName:"page"},ia={pageParamName:"page",totalItemsName:"totalItems",limitParamName:"limit"},ho="moduleName";var Pe=o(e=>e.method==="get","isQuery"),xt=o(e=>e.method!=="get"||!!e.mediaDownload,"isMutation"),Jn=o((e,t)=>Pe(e)&&(t??Object.values(mo)).every(r=>e.parameters.some(n=>n.name===r&&n.type==="Query")),"isInfiniteQuery");var U=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),fr=o(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),eS=o(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),oe=o(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),tS=o(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),Wp=o((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),rS=o((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),zN=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"),Yp=o(e=>{let t=e.map(U).map(nS).map(r=>KN(r)).flat();return zN(t)},"getMostCommonAdjacentCombinationSplit"),nS=o(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),iS=o(e=>nS(e).join(" "),"camelToSpaceSeparated"),KN=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"),oS=o((e,t)=>{let r=t.replace(/es$|s$/g,""),n=new RegExp(`(${fr(r)}|${U(r)})[a-z]*(?=$|[A-Z])`,"g");return e.replace(n,"")},"removeWord"),sS=o(e=>e!==void 0,"isString");var oa=o((e,t)=>{let r=Pe(e)&&xt(e)&&t;return`use${U(oe(e.operationName))}${r?"Mutation":""}`},"getQueryName"),aS=o(e=>`use${U(oe(e.operationName))}Infinite`,"getInfiniteQueryName");var Le=o((...e)=>[...new Set(e.flat())],"getUniqueArray");var Jp={"Content-Type":"application/json",Accept:"application/json"},sa="data",Xp="axios",dr="config",wt="AxiosRequestConfig",aa={defaultImport:Xp,bindings:[wt],from:"axios"};var cS=o(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),At=o(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");function D(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}o(D,"isReferenceObject");function Ee(e){return!D(e)}o(Ee,"isSchemaObject");function ca(e){return e.type==="array"}o(ca,"isArraySchemaObject");function uS(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(QN(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(D(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(uS,"inferRequiredSchema");var QN=o(e=>!D(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var Vt=Symbol.for("@ts-pattern/matcher"),WN=Symbol.for("@ts-pattern/isVariadic"),la="@ts-pattern/anonymous-select-key",ef=o(e=>!!(e&&typeof e=="object"),"r"),ua=o(e=>e&&!!e[Vt],"i"),Rt=o((e,t,r)=>{if(ua(e)){let n=e[Vt](),{matched:i,selections:s}=n.match(t);return i&&s&&Object.keys(s).forEach(a=>r(a,s[a])),i}if(ef(e)){if(!ef(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];ua(c)&&c[WN]?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)=>Rt(l,a[f],r))&&i.every((l,f)=>Rt(l,c[f],r))&&(s.length===0||Rt(s[0],u,r))}return e.length===t.length&&e.every((a,c)=>Rt(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||ua(s=i)&&s[Vt]().matcherType==="optional")&&Rt(i,t[n],r);var s})}return Object.is(t,e)},"s"),vr=o(e=>{var t,r,n;return ef(e)?ua(e)?(t=(r=(n=e[Vt]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?yo(e,vr):yo(Object.values(e),vr):[]},"o"),yo=o((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function Ke(e){return Object.assign(e,{optional:o(()=>YN(e),"optional"),and:o(t=>z(e,t),"and"),or:o(t=>JN(e,t),"or"),select:o(t=>t===void 0?lS(e):lS(t,e),"select")})}o(Ke,"u");function YN(e){return Ke({[Vt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return t===void 0?(vr(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Rt(e,t,n),selections:r}},"match"),getSelectionKeys:o(()=>vr(e),"getSelectionKeys"),matcherType:"optional"})})}o(YN,"h");function z(...e){return Ke({[Vt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return{matched:e.every(i=>Rt(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>yo(e,vr),"getSelectionKeys"),matcherType:"and"})})}o(z,"m");function JN(...e){return Ke({[Vt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return yo(e,vr).forEach(i=>n(i,void 0)),{matched:e.some(i=>Rt(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>yo(e,vr),"getSelectionKeys"),matcherType:"or"})})}o(JN,"d");function L(e){return{[Vt]:()=>({match:o(t=>({matched:!!e(t)}),"match")})}}o(L,"p");function lS(...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 Ke({[Vt]:()=>({match:o(n=>{let i={[t??la]:n};return{matched:r===void 0||Rt(r,n,(s,a)=>{i[s]=a}),selections:i}},"match"),getSelectionKeys:o(()=>[t??la].concat(r===void 0?[]:vr(r)),"getSelectionKeys")})})}o(lS,"y");function It(e){return typeof e=="number"}o(It,"v");function mr(e){return typeof e=="string"}o(mr,"b");function hr(e){return typeof e=="bigint"}o(hr,"w");var zL=Ke(L(function(e){return!0}));var gr=o(e=>Object.assign(Ke(e),{startsWith:o(t=>{return gr(z(e,(r=t,L(n=>mr(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:o(t=>{return gr(z(e,(r=t,L(n=>mr(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:o(t=>gr(z(e,(r=>L(n=>mr(n)&&n.length>=r))(t))),"minLength"),length:o(t=>gr(z(e,(r=>L(n=>mr(n)&&n.length===r))(t))),"length"),maxLength:o(t=>gr(z(e,(r=>L(n=>mr(n)&&n.length<=r))(t))),"maxLength"),includes:o(t=>{return gr(z(e,(r=t,L(n=>mr(n)&&n.includes(r)))));var r},"includes"),regex:o(t=>{return gr(z(e,(r=t,L(n=>mr(n)&&!!n.match(r)))));var r},"regex")}),"j"),KL=gr(L(mr)),Tt=o(e=>Object.assign(Ke(e),{between:o((t,r)=>Tt(z(e,((n,i)=>L(s=>It(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Tt(z(e,(r=>L(n=>It(n)&&n<r))(t))),"lt"),gt:o(t=>Tt(z(e,(r=>L(n=>It(n)&&n>r))(t))),"gt"),lte:o(t=>Tt(z(e,(r=>L(n=>It(n)&&n<=r))(t))),"lte"),gte:o(t=>Tt(z(e,(r=>L(n=>It(n)&&n>=r))(t))),"gte"),int:o(()=>Tt(z(e,L(t=>It(t)&&Number.isInteger(t)))),"int"),finite:o(()=>Tt(z(e,L(t=>It(t)&&Number.isFinite(t)))),"finite"),positive:o(()=>Tt(z(e,L(t=>It(t)&&t>0))),"positive"),negative:o(()=>Tt(z(e,L(t=>It(t)&&t<0))),"negative")}),"x"),QL=Tt(L(It)),yr=o(e=>Object.assign(Ke(e),{between:o((t,r)=>yr(z(e,((n,i)=>L(s=>hr(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>yr(z(e,(r=>L(n=>hr(n)&&n<r))(t))),"lt"),gt:o(t=>yr(z(e,(r=>L(n=>hr(n)&&n>r))(t))),"gt"),lte:o(t=>yr(z(e,(r=>L(n=>hr(n)&&n<=r))(t))),"lte"),gte:o(t=>yr(z(e,(r=>L(n=>hr(n)&&n>=r))(t))),"gte"),positive:o(()=>yr(z(e,L(t=>hr(t)&&t>0))),"positive"),negative:o(()=>yr(z(e,L(t=>hr(t)&&t<0))),"negative")}),"A"),WL=yr(L(hr)),YL=Ke(L(function(e){return typeof e=="boolean"})),JL=Ke(L(function(e){return typeof e=="symbol"})),XL=Ke(L(function(e){return e==null})),e5=Ke(L(function(e){return e!=null}));var of=class of 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(of,"W");var tf=of,rf={matched:!1,value:void 0};function ge(e){return new nf(e,rf)}o(ge,"z");var go=class go{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=>Rt(l,this.input,c))||i&&!i(this.input)?rf:{matched:!0,value:r(s?la in a?a[la]:a:this.input,this.input)};return new go(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new go(this.input,n?{matched:!0,value:r(this.input,this.input)}:rf)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new tf(this.input)}run(){return this.exhaustive()}returnType(){return this}};o(go,"I");var nf=go;var sf=2,pS=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],fS=["query","header","path"],Kr=["get","put","post","delete","options","head","patch","trace"],dS=["string","number","integer","boolean"],Xn=["allOf","anyOf","oneOf"];var hS=o(e=>`#/components/schemas/${e}`,"getSchemaRef"),Qr=o(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),ei=o(e=>Qr(e).split("/").at(-1),"getSchemaNameByRef");function cf(e){let t=XN(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return oe(t)}o(cf,"normalizeString");function gS(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}o(gS,"wrapWithQuotesIfNeeded");function yS(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}o(yS,"unwrapQuotesIfNeeded");function XN(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}o(XN,"prefixStringStartingWithNumberIfNeeded");function uf(e){let t=e.replaceAll("_","#");return oe(t.replaceAll("-","_")).replaceAll("#","_")}o(uf,"pathParamToVariableName");var Bt=o(e=>dS.includes(e),"isPrimitiveType");function vS(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(vS,"escapeControlCharacters");function Qe(e){return e.includes("application/")&&e.includes("json")||pS.includes(e)||e.includes("text/")}o(Qe,"isParamMediaTypeAllowed");function vo(e){return e>=200&&e<300}o(vo,"isMainResponseStatus");function pa(e){return!(e>=200&&e<300)}o(pa,"isErrorStatus");function ti(e){return e.startsWith("application/")}o(ti,"isMediaTypeAllowed");var mS=/({\w+})/g,eC=/[^\w\-]+/g;function SS(e){e=U(eS(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(mS)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(mS,"")}By${U(r.slice(1,-1))}`}return e.replace(eC,"_")}o(SS,"pathToVariableName");var af=/{(\b\w+(?:-\w+)*\b)}/g;function bS(e){let t=e.match(af);return t===null?e.replaceAll(af,":$1"):(t.forEach(r=>{let n=uf(r.replaceAll(af,":$1"));e=e.replaceAll(r,n)}),e)}o(bS,"replaceHyphenatedPath");var _S=o(e=>{let t=e["x-enumNames"],r=Array.isArray(t)&&t.length>0,n=!!e.schema&&Ee(e.schema)&&e.schema.type==="string";return r&&n},"isSortingParameterObject"),Wr=o((e,t)=>t.excludePathRegex?new RegExp(t.excludePathRegex).test(e):!1,"isPathExcluded");function Nt(e){return tS(e)}o(Nt,"formatTag");function Sr(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return Nt(r??t.defaultTag)}o(Sr,"getOperationTag");function PS(e,t){return t.excludeTags.some(r=>r.toLowerCase()===e.toLowerCase())}o(PS,"isTagExcluded");function $e(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(D(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(Xn.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&&$e(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&&$e(a,t);if(i.additionalProperties&&typeof i.additionalProperties=="object"){if(n({type:"additionalProperties",parentSchema:e,schema:i.additionalProperties,data:r})===!0)return;$e(i.additionalProperties,t)}if(i.type==="array"){let s=e.items;if(n({type:"array",parentSchema:e,schema:s,data:r})===!0)return;$e(s,t)}}o($e,"iterateSchema");var Ct=o((e,t)=>Wp(U(cf(e)),t),"getZodSchemaName"),So=o((e,t,r)=>Wp(U(cf(e)),`${t}${r}`),"getEnumZodSchemaName"),Oe=o(e=>!e.startsWith("z."),"isNamedZodSchema"),ES=o(e=>e.startsWith(po),"isEnumZodSchema"),Yr=o((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),fa=o(e=>oe(`${e}_${Qv}`),"getBodyZodSchemaName"),$S=o((e,t)=>oe(`${e}_${t}${Wv}`),"getParamZodSchemaName"),tC=o(e=>oe(`${e}${Yv}`),"getMainResponseZodSchemaName"),rC=o((e,t)=>oe(`${e}_${t}_${Jv}`),"getErrorResponseZodSchemaName");function da({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),s=Yr(t,r,n);return!vo(i)&&e!=="default"&&pa(i)?rC(s,e):tC(s)}o(da,"getResponseZodSchemaName");function bo(e){return["minimum","exclusiveMinimum","maximum","exclusiveMaximum","minItems","minLength","minProperties","maxItems","maxLength","maxProperties","default","example"].filter(n=>e[n]).reduce((n,i)=>[...n,`${U(iS(i))}: \`${e[i]}\``],[])}o(bo,"getSchemaDescriptions");var _o=o((e,t)=>rS(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),OS=o((e,t)=>Oe(t)?`${e.options.tsNamespaces?`${G({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),br=o((e,t,r)=>{if(!Oe(t))return t===lo?"void":t;let n=e.getTagByZodSchemaName(t);return`${e.options.tsNamespaces&&n!==r?`${G({type:"models",tag:n,options:e.options})}.`:""}${_o(t,e.options)}`},"getImportedZodSchemaInferedTypeName");function xS(e){var t;return e.isEnum?"enum":((t=e.schemaObj)==null?void 0:t.type)??"object"}o(xS,"getZodSchemaType");function wS(e){if(e.schemaObj)return[e.schemaObj.description,...bo(e.schemaObj).join(". ")].filter(Boolean)}o(wS,"getZodSchemaDescription");function AS(e,t,r){var n;if(D(t)){let i=e.getZodSchemaNameByRef(t.$ref);return i?br(e,i,r):void 0}if(ca(t)){if(!D(t.items))return`${((n=t.items)==null?void 0:n.type)??"unknown"}[]`;let i=e.getZodSchemaNameByRef(t.items.$ref);return i?`${br(e,i,r)}[]`:void 0}if(Xn.some(i=>i in t&&t[i])){let i=t.allOf??t.anyOf??t.oneOf??[];if(i.length>0)return AS(e,i[0],r)}return t.type}o(AS,"getType");function IS(e,t,r){if(!t.schemaObj)return[];let n="[0]",i="[key]",s={},a=o(c=>{var l;if(c.type==="reference")return!0;if(c.type==="composite")return;let u=[...((l=c.data)==null?void 0:l.pathSegments)??[]];if(c.type==="array"?u.push(n):c.type==="property"?u.push(c.propertyName):c.type==="additionalProperties"&&u.push(i),c.schema&&u[u.length-1]!==n){let f=e.resolveObject(c.schema),p=[f.description,...bo(f)].filter(Boolean),d=u.join(".");s[d]&&"type"in c.schema&&c.schema.type==="object"||(delete s[d],s[d]={type:AS(e,c.schema,r)??"unknown",description:p.join(". ")})}return $e(c.schema,{data:{pathSegments:[...u]},onSchema:a}),!0},"onSchema");return"allOf"in t.schemaObj&&t.schemaObj.allOf&&t.schemaObj.allOf.forEach(c=>{if(D(c)){let u=e.resolveObject(c);$e(u,{data:{pathSegments:[]},onSchema:a})}}),$e(t.schemaObj,{data:{pathSegments:[]},onSchema:a}),s}o(IS,"getZodSchemaPropertyDescriptions");function ma(e){return ge(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}o(ma,"primitiveTypeToTsType");function ri({zodSchemaName:e,schema:t,resolver:r}){let n="void",i;e&&Oe(e)?(n=br(r,e),i=r.getTagByZodSchemaName(e)):t!=null&&t.type&&Bt(t==null?void 0:t.type)&&(n=ma(t==null?void 0:t.type));let s=n.split(".");return{type:s[s.length-1],...s.length>1?{namespace:s[0]}:{},...i?{importPath:Xr({type:"models",tag:i,includeTagDir:!0,options:r.options})}:{}}}o(ri,"getTsTypeBase");function Jr({schema:e,isCircular:t,parentTypes:r,resolver:n}){if(!e)return{metaType:"primitive"};for(let i of Xn){let s=e[i];if(s)if(s.length>1){let a=s.map(c=>{let u=n.resolveObject(c);return Jr({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:TS({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:nC({schema:e,parentTypes:r,resolver:n})}:{metaType:"primitive"}}o(Jr,"getSchemaTsMetaType");function TS({arraySchema:e,parentTypes:t,resolver:r}){let n,i;if(D(e.items)){let u=e.items.$ref;n=r.getZodSchemaNameByRef(u),i=r.getSchemaByRef(u)}else i=e.items;let s=ri({zodSchemaName:n,schema:i,resolver:r}),a=RS(s,t),c=Jr({schema:i,isCircular:a,parentTypes:[...t,s],resolver:r});return{...s,...c}}o(TS,"getArraySchemaTsType");function nC({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(D(i)){let c=r.getZodSchemaNameByRef(i.$ref),u=r.getSchemaByRef(i.$ref),l=ri({zodSchemaName:c,schema:u,resolver:r}),f=RS(l,t),p=Jr({schema:u,isCircular:f,parentTypes:[...t,l],resolver:r});return{name:n,isRequired:s,...l,...p}}else if(i.type==="array"){let c=TS({arraySchema:i,parentTypes:t,resolver:r});return{name:n,isRequired:s,type:"array",metaType:"array",arrayType:c}}else if(Bt(i.type))return{name:n,isRequired:s,type:ma(i.type),metaType:"primitive"};return{name:n,isRequired:s,type:"void",metaType:"primitive"}})}o(nC,"getSchemaTsProperties");function RS(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}o(RS,"getIsCircular");var Po=o(e=>fr(oe(e.operationName)),"getEndpointName");function NS(e,t){return`${t.tsNamespaces?`${G({type:"endpoints",tag:Eo(e,t),options:t})}.`:""}${Po(e)}`}o(NS,"getImportedEndpointName");var CS=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 Nt(r??t.defaultTag)}o(Eo,"getEndpointTag");function $o(e,t,r){let n=t.parameters.map(i=>{var a,c,u,l;let s="string";if(Oe(i.zodSchema))s=br(e,i.zodSchema);else if((a=i.parameterObject)!=null&&a.schema&&Ee(i.parameterObject.schema)){let f=(u=(c=i.parameterObject)==null?void 0:c.schema)==null?void 0:u.type;f&&Bt(f)&&(s=ma(f))}return{name:At(i.name),type:s,paramType:i.type,required:((l=i.parameterObject)==null?void 0:l.required)??!0,parameterObject:i.parameterObject,bodyObject:i.bodyObject}});return r!=null&&r.includeFileParam&&t.mediaUpload&&n.push({name:"file",type:"File",paramType:"Body",required:!0,parameterObject:void 0,bodyObject:void 0}),n.sort((i,s)=>{if(i.required===s.required){let a=["Path","Body","Query","Header"];return a.indexOf(i.paramType)-a.indexOf(s.paramType)}return i.required?-1:1}).filter(i=>(!(r!=null&&r.excludeBodyParam)||i.name!==sa)&&(!(r!=null&&r.excludePageParam)||i.name!==mo.pageParamName)&&(!(r!=null&&r.includeOnlyRequiredParams)||i.required)).map(i=>({...i,name:r!=null&&r.replacePageParam&&i.name===mo.pageParamName?"pageParam":i.name}))}o($o,"mapEndpointParamsToFunctionParams");function kS(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let s=cS(i.name)?i.name:`"${i.name}"`,a=At(i.name);return{...i,name:s,value:a}}),r={};return e.requestFormat!==Jp["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==Jp.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=At(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}o(kS,"getEndpointConfig");function jS(e,t){return t.filter(r=>Pe(r)&&r.parameters.filter(n=>{var i;return(i=n.parameterObject)==null?void 0:i.required}).every(n=>e.parameters.some(i=>i.name===n.name))&&r.response===e.response)}o(jS,"getUpdateQueryEndpoints");function _r({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",s=o(u=>e.getTagByZodSchemaName(u),"getTag"),a=lf({type:i,tag:t,entities:r,getTag:s,getEntityName:o(u=>u,"getEntityName"),options:e.options}),c=lf({type:i,tag:t,entities:n,getTag:s,getEntityName:o(u=>_o(u,e.options),"getEntityName"),options:e.options});return iC(e.options,a,c)}o(_r,"getModelsImports");function qS({tag:e,endpoints:t,options:r}){return lf({type:"endpoints",tag:e,entities:t,getTag:o(n=>Eo(n,r),"getTag"),getEntityName:Po,options:r})}o(qS,"getEndpointsImports");function MS({tags:e,entityName:t,getAliasEntityName:r,type:n,options:i}){let s=new Map;return e.forEach(a=>{let c=`${t}${r?` as ${r(a)}`:""}`;s.has(a)?i.tsNamespaces||s.get(a).bindings.push(c):s.set(a,{bindings:[i.tsNamespaces?G({type:n,tag:a,options:i}):c],from:`${Pr(i)}${Xr({type:n,tag:a,includeTagDir:!0,options:i})}`})}),Array.from(s.values())}o(MS,"getEntityImports");function Pr(e){let t=Kp;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${zp}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${zp}`,"g"),Kp)),`${t}/`.replace(/\/\//g,"/")}o(Pr,"getImportPath");function lf({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.tsNamespaces||a.get(u).bindings.push(i(c));else{let l=t===u;a.set(u,{bindings:[s.tsNamespaces?G({type:e,tag:u,options:s}):i(c)],from:`${l?"./":Pr(s)}${Xr({type:e,tag:u,includeTagDir:!l,options:s})}`})}}),Array.from(a.values())}o(lf,"getImports");function iC(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.tsNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:Le(n.bindings)}))}o(iC,"mergeImports");function ni({fileName:e,extension:t}){return`${e}.${t}`}o(ni,"getFileNameWithExtension");function DS({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${fr(t)}/`:""}${fr(t)}.${i}`:i}o(DS,"getTagFileNameWithoutExtension");function Xr(...e){return DS(...e)}o(Xr,"getTagImportPath");function LS(...e){return`${DS(...e)}.ts`}o(LS,"getTagFileName");var G=o(({type:e,tag:t,options:r})=>`${U(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");function FS(e){return e.standalone?`${Pr(e)}${Js.fileName}`:e.restClientImportPath}o(FS,"getAppRestClientImportPath");function HS(e){return e.standalone?`${Pr(e)}${Ys.reactQueryTypes.fileName}`:e.queryTypesImportPath}o(HS,"getQueryTypesImportPath");function VS(e){return`${Pr(e)}${Xs.fileName}`}o(VS,"getQueryModulesImportPath");function BS(e){return`${Pr(e)}${ea.fileName}`}o(BS,"getMutationEffectsImportPath");function US(e){return`${Pr(e)}${ta.fileName}`}o(US,"getZodExtendedImportPath");var pf=["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"];function en(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}o(en,"pick");function ii(e,t){let r=e.deprecated&&!t.withDeprecatedEndpoints,n=Sr(e,t),i=PS(n,t);return r||i}o(ii,"isOperationExcluded");function ff({path:e,method:t,operation:r,options:n,tag:i,keepOperationTag:s,keepOperationPrefix:a}){let c=`${t}${SS(e)}`,u=r.operationId?At(r.operationId):c;if(n.removeOperationPrefixEndingWith&&a)u=u.split(n.removeOperationPrefixEndingWith).map((f,p)=>p===0?f:U(f)).join("");else if(n.removeOperationPrefixEndingWith&&!a){let l=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);u=u.replace(l,"")}if(n.tsNamespaces&&!s){let l=oS(u,i);pf.includes(l)||(u=l)}return pf.includes(u)?c:u}o(ff,"getOperationName");function Oo({operationsByTag:e,...t}){let{operation:r,options:n}=t,i=n.splitByTags?Sr(r,n):n.defaultTag,s=o(a=>{let c=ff({...t,tag:i,keepOperationTag:a});if(e[i].filter(l=>ff({...t,operation:l,tag:i,keepOperationTag:a})===c).length===1)return c},"operationName");return s()??s(!0)??ff({...t,tag:i,keepOperationTag:!0,keepOperationPrefix:!0})}o(Oo,"getUniqueOperationName");function GS(e,t,r){let n=[];for(let i in e.paths){if(Wr(i,r))continue;let s=e.paths[i],a=en(s,Kr);for(let c in a){let u=a[c];if(!u||ii(u,r))continue;let l=Oo({path:i,method:c,operation:u,operationsByTag:t,options:r});n.push(l)}}return n}o(GS,"getUniqueOperationNamesWithoutSplitByTags");function ZS(e,t){let r={};for(let n in e.paths){if(Wr(n,t))continue;let i=e.paths[n],s=en(i,Kr);for(let a in s){let c=s[a];if(!c||ii(c,t))continue;let u=t.splitByTags?Sr(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}o(ZS,"getOperationsByTag");var zS={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Ambiguous",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I Am a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",424:"Failed Dependency",428:"Precondition Required",429:"Too Many Requests",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function xo(e){return{type:"invalid-schema",message:e}}o(xo,"getInvalidSchemaError");function KS(e){return{type:"invalid-operation-id",message:`Operation ${e}`}}o(KS,"getInvalidOperationIdError");function QS(e,t){return{type:"missing-path-parameter",message:`Path ${t} is missing [${e.map(({name:r})=>r).join(", ")}]`}}o(QS,"getMissingPathParameterError");function WS(e){return{type:"not-allowed-inline-enum",message:`${e} is missing @IsEnum() and @ApiProperty(enum:, enumName:)`}}o(WS,"getNotAllowedInlineEnumError");function YS(e){return{type:"not-allowed-circular-schema",message:e}}o(YS,"getNotAllowedCircularSchemaError");function JS(e,t,r){return{type:"missing-acl-condition-property",message:`Condition property ${e} is not found in parameters or body in operation ${ga(t,r)}`}}o(JS,"getMissingAclConditionPropertyError");function df(e,t,r){return{type:"missing-status-code",message:`Missing HTTP status code ${ha(e)} in operation ${ga(t,r)}`}}o(df,"getMissingStatusCodeError");function XS(e,t,r){return{type:"invalid-status-code",message:`Operation ${ga(t,r)} expected HTTP status code ${ha(e.expected)} but received ${ha(e.received)}`}}o(XS,"getInvalidStatusCodeError");function eb(e,t,r){return{type:"multiple-success-status-codes",message:`Operation ${ga(t,r)} has multiple success HTTP status codes: ${e.map(ha).join(", ")}`}}o(eb,"getMultipleSuccessStatusCodesError");function ga(e,t){return e.operationId??`${t.method} ${t.path}`}o(ga,"getOperationDescriptor");function ha(e){return`${e} (${zS[e]})`}o(ha,"getStatusCodeDescription");function kt({schema:e,meta:t,options:r}){let n=[];ge(e.type).with("string",()=>n.push(aC(e))).with("number","integer",()=>n.push(uC(e))).with("array",()=>n.push(lC(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&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(n3(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:mi,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 di||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:o(function(t){this.push(new di(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 cd.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof di)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 di)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 di)return n.value;if(!r){if(!this.stackSlot)throw new cd.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 di?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=mi.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();mi.isValidJavaScriptVariableName=function(e){return!mi.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function n3(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(n3,"strictLookup");Xa.default=mi;uP.exports=Xa.default});var dP=h((ec,fP)=>{"use strict";ec.__esModule=!0;function Vo(e){return e&&e.__esModule?e:{default:e}}o(Vo,"_interopRequireDefault");var i3=m_(),o3=Vo(i3),s3=Lf(),a3=Vo(s3),ud=w_(),ld=R_(),c3=lP(),u3=Vo(c3),l3=Ua(),p3=Vo(l3),f3=jf(),d3=Vo(f3),m3=o3.default.create;function pP(){var e=m3();return e.compile=function(t,r){return ld.compile(t,r,e)},e.precompile=function(t,r){return ld.precompile(t,r,e)},e.AST=a3.default,e.Compiler=ld.Compiler,e.JavaScriptCompiler=u3.default,e.Parser=ud.parser,e.parse=ud.parse,e.parseWithoutProcessing=ud.parseWithoutProcessing,e}o(pP,"create");var hi=pP();hi.create=pP;d3.default(hi);hi.Visitor=p3.default;hi.default=hi;ec.default=hi;fP.exports=ec.default});var mP=h(tc=>{"use strict";tc.__esModule=!0;tc.print=v3;tc.PrintVisitor=W;function h3(e){return e&&e.__esModule?e:{default:e}}o(h3,"_interopRequireDefault");var g3=Ua(),y3=h3(g3);function v3(e){return new W().accept(e)}o(v3,"print");function W(){this.padding=0}o(W,"PrintVisitor");W.prototype=new y3.default;W.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
72
+ `,t};W.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};W.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};W.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};W.prototype.BlockStatement=W.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};W.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+" }}")};W.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+" }}")};W.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};W.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};W.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};W.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};W.prototype.StringLiteral=function(e){return'"'+e.value+'"'};W.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};W.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};W.prototype.UndefinedLiteral=function(){return"UNDEFINED"};W.prototype.NullLiteral=function(){return"NULL"};W.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(", ")+"}"};W.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var Kt=h((BV,yP)=>{var rc=dP().default,gP=mP();rc.PrintVisitor=gP.PrintVisitor;rc.print=gP.print;yP.exports=rc;function hP(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=rc.compile(n)}o(hP,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=hP,require.extensions[".hbs"]=hP)});var fq={};WP(fq,{getGenerateFilesData:()=>pq,getGenerateMetadata:()=>lq});module.exports=YP(fq);var md=Xe(Uv());var uo="AppRestClient",Qs={query:"AppQueryOptions",infiniteQuery:"AppInfiniteQueryOptions",mutation:"AppMutationOptions"},zp="src/data",Kp="@/data",Ws={appRestClient:{template:"@/util/rest/clients/app-rest-client",monorepoTemplate:"@/clients/app-rest-client"},queryTypes:{template:"@/types/react-query",monorepoTemplate:"@povio/utils/types/react-query"},errorHandling:{template:"@/util/vendor/error-handling",monorepoTemplate:"@povio/utils/vendor/error-handling"}},co={ErrorHandler:"ErrorHandler",SharedErrorHandler:"SharedErrorHandler"},Gv={bindings:[co.ErrorHandler,co.SharedErrorHandler],from:"@/util/vendor/error-handling"};var Ys={reactQueryTypes:{fileName:"react-query.types",extension:"ts"},restClient:{fileName:"rest-client",extension:"ts"},restInterceptor:{fileName:"rest-interceptor",extension:"ts"}},Js={fileName:"app-rest-client",extension:"ts"},Qp="QueryModule",Xs={fileName:"queryModules",extension:"ts"},Zv={fileName:"queryConfig.context",extension:"tsx"},Wn={optionsType:"MutationEffectsOptions",hookName:"useMutationEffects",runFunctionName:"runMutationEffects"},ea={fileName:"useMutationEffects",extension:"ts"},Ot={name:"zod",properties:{sortingString:"sortingString",parse:"parse"}},ta={fileName:"zod",extension:"ts"};var zv="Schema",Kv="Enum",Qv="Body",Wv="Param",Yv="Response",Jv="ErrorResponse",lo="z.void()",ra="z.instanceof(Blob)",po="z.enum",na="z.string()",Yn={bindings:["z"],from:"zod"};var fo={input:"",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],excludePathRegex:"",excludeRedundantZodSchemas:!0,tsNamespaces:!0,importPath:"ts",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:zv,enumSuffix:Kv,withDefaultValues:!0,extractEnums:!0,replaceOptionalWithNullish:!1,restClientImportPath:Ws.appRestClient.template,errorHandlingImportPath:Ws.errorHandling.template,removeOperationPrefixEndingWith:"Controller_",parseRequestParams:!1,queryTypesImportPath:Ws.queryTypes.template,axiosRequestConfig:!1,infiniteQueries:!1,mutationEffects:!0};var pt={query:"useQuery",infiniteQuery:"useInfiniteQuery",mutation:"useMutation"},Xv={bindings:[pt.query,pt.infiniteQuery,pt.mutation],from:"@tanstack/react-query"},mo={pageParamName:"page"},ia={pageParamName:"page",totalItemsName:"totalItems",limitParamName:"limit"},ho="moduleName";var Ee=o(e=>e.method==="get","isQuery"),xt=o(e=>e.method!=="get"||!!e.mediaDownload,"isMutation"),Jn=o((e,t)=>Ee(e)&&(t??Object.values(mo)).every(r=>e.parameters.some(n=>n.name===r&&n.type==="Query")),"isInfiniteQuery");var U=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),fr=o(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),eS=o(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),oe=o(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),tS=o(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),Wp=o((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),rS=o((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),ZN=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"),Yp=o(e=>{let t=e.map(U).map(nS).map(r=>zN(r)).flat();return ZN(t)},"getMostCommonAdjacentCombinationSplit"),nS=o(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),iS=o(e=>nS(e).join(" "),"camelToSpaceSeparated"),zN=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"),oS=o((e,t)=>{let r=t.replace(/es$|s$/g,""),n=new RegExp(`(${fr(r)}|${U(r)})[a-z]*(?=$|[A-Z])`,"g");return e.replace(n,"")},"removeWord");var oa=o((e,t)=>{let r=Ee(e)&&xt(e)&&t;return`use${U(oe(e.operationName))}${r?"Mutation":""}`},"getQueryName"),sS=o(e=>`use${U(oe(e.operationName))}Infinite`,"getInfiniteQueryName");var Le=o((...e)=>[...new Set(e.flat())],"getUniqueArray");var Jp={"Content-Type":"application/json",Accept:"application/json"},sa="data",Xp="axios",dr="config",wt="AxiosRequestConfig",aa={defaultImport:Xp,bindings:[wt],from:"axios"};var aS=o(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),At=o(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");function D(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}o(D,"isReferenceObject");function $e(e){return!D(e)}o($e,"isSchemaObject");function ca(e){return e.type==="array"}o(ca,"isArraySchemaObject");function cS(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(KN(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(D(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(cS,"inferRequiredSchema");var KN=o(e=>!D(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var Vt=Symbol.for("@ts-pattern/matcher"),QN=Symbol.for("@ts-pattern/isVariadic"),la="@ts-pattern/anonymous-select-key",ef=o(e=>!!(e&&typeof e=="object"),"r"),ua=o(e=>e&&!!e[Vt],"i"),Rt=o((e,t,r)=>{if(ua(e)){let n=e[Vt](),{matched:i,selections:s}=n.match(t);return i&&s&&Object.keys(s).forEach(a=>r(a,s[a])),i}if(ef(e)){if(!ef(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];ua(c)&&c[QN]?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)=>Rt(l,a[f],r))&&i.every((l,f)=>Rt(l,c[f],r))&&(s.length===0||Rt(s[0],u,r))}return e.length===t.length&&e.every((a,c)=>Rt(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||ua(s=i)&&s[Vt]().matcherType==="optional")&&Rt(i,t[n],r);var s})}return Object.is(t,e)},"s"),vr=o(e=>{var t,r,n;return ef(e)?ua(e)?(t=(r=(n=e[Vt]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?yo(e,vr):yo(Object.values(e),vr):[]},"o"),yo=o((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function Ke(e){return Object.assign(e,{optional:o(()=>WN(e),"optional"),and:o(t=>z(e,t),"and"),or:o(t=>YN(e,t),"or"),select:o(t=>t===void 0?uS(e):uS(t,e),"select")})}o(Ke,"u");function WN(e){return Ke({[Vt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return t===void 0?(vr(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Rt(e,t,n),selections:r}},"match"),getSelectionKeys:o(()=>vr(e),"getSelectionKeys"),matcherType:"optional"})})}o(WN,"h");function z(...e){return Ke({[Vt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return{matched:e.every(i=>Rt(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>yo(e,vr),"getSelectionKeys"),matcherType:"and"})})}o(z,"m");function YN(...e){return Ke({[Vt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return yo(e,vr).forEach(i=>n(i,void 0)),{matched:e.some(i=>Rt(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>yo(e,vr),"getSelectionKeys"),matcherType:"or"})})}o(YN,"d");function L(e){return{[Vt]:()=>({match:o(t=>({matched:!!e(t)}),"match")})}}o(L,"p");function uS(...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 Ke({[Vt]:()=>({match:o(n=>{let i={[t??la]:n};return{matched:r===void 0||Rt(r,n,(s,a)=>{i[s]=a}),selections:i}},"match"),getSelectionKeys:o(()=>[t??la].concat(r===void 0?[]:vr(r)),"getSelectionKeys")})})}o(uS,"y");function It(e){return typeof e=="number"}o(It,"v");function mr(e){return typeof e=="string"}o(mr,"b");function hr(e){return typeof e=="bigint"}o(hr,"w");var ZL=Ke(L(function(e){return!0}));var gr=o(e=>Object.assign(Ke(e),{startsWith:o(t=>{return gr(z(e,(r=t,L(n=>mr(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:o(t=>{return gr(z(e,(r=t,L(n=>mr(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:o(t=>gr(z(e,(r=>L(n=>mr(n)&&n.length>=r))(t))),"minLength"),length:o(t=>gr(z(e,(r=>L(n=>mr(n)&&n.length===r))(t))),"length"),maxLength:o(t=>gr(z(e,(r=>L(n=>mr(n)&&n.length<=r))(t))),"maxLength"),includes:o(t=>{return gr(z(e,(r=t,L(n=>mr(n)&&n.includes(r)))));var r},"includes"),regex:o(t=>{return gr(z(e,(r=t,L(n=>mr(n)&&!!n.match(r)))));var r},"regex")}),"j"),zL=gr(L(mr)),Tt=o(e=>Object.assign(Ke(e),{between:o((t,r)=>Tt(z(e,((n,i)=>L(s=>It(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Tt(z(e,(r=>L(n=>It(n)&&n<r))(t))),"lt"),gt:o(t=>Tt(z(e,(r=>L(n=>It(n)&&n>r))(t))),"gt"),lte:o(t=>Tt(z(e,(r=>L(n=>It(n)&&n<=r))(t))),"lte"),gte:o(t=>Tt(z(e,(r=>L(n=>It(n)&&n>=r))(t))),"gte"),int:o(()=>Tt(z(e,L(t=>It(t)&&Number.isInteger(t)))),"int"),finite:o(()=>Tt(z(e,L(t=>It(t)&&Number.isFinite(t)))),"finite"),positive:o(()=>Tt(z(e,L(t=>It(t)&&t>0))),"positive"),negative:o(()=>Tt(z(e,L(t=>It(t)&&t<0))),"negative")}),"x"),KL=Tt(L(It)),yr=o(e=>Object.assign(Ke(e),{between:o((t,r)=>yr(z(e,((n,i)=>L(s=>hr(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>yr(z(e,(r=>L(n=>hr(n)&&n<r))(t))),"lt"),gt:o(t=>yr(z(e,(r=>L(n=>hr(n)&&n>r))(t))),"gt"),lte:o(t=>yr(z(e,(r=>L(n=>hr(n)&&n<=r))(t))),"lte"),gte:o(t=>yr(z(e,(r=>L(n=>hr(n)&&n>=r))(t))),"gte"),positive:o(()=>yr(z(e,L(t=>hr(t)&&t>0))),"positive"),negative:o(()=>yr(z(e,L(t=>hr(t)&&t<0))),"negative")}),"A"),QL=yr(L(hr)),WL=Ke(L(function(e){return typeof e=="boolean"})),YL=Ke(L(function(e){return typeof e=="symbol"})),JL=Ke(L(function(e){return e==null})),XL=Ke(L(function(e){return e!=null}));var of=class of 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(of,"W");var tf=of,rf={matched:!1,value:void 0};function ye(e){return new nf(e,rf)}o(ye,"z");var go=class go{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=>Rt(l,this.input,c))||i&&!i(this.input)?rf:{matched:!0,value:r(s?la in a?a[la]:a:this.input,this.input)};return new go(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new go(this.input,n?{matched:!0,value:r(this.input,this.input)}:rf)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new tf(this.input)}run(){return this.exhaustive()}returnType(){return this}};o(go,"I");var nf=go;var sf=2,lS=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],pS=["query","header","path"],Kr=["get","put","post","delete","options","head","patch","trace"],fS=["string","number","integer","boolean"],Xn=["allOf","anyOf","oneOf"];var mS=o(e=>`#/components/schemas/${e}`,"getSchemaRef"),Qr=o(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),ei=o(e=>Qr(e).split("/").at(-1),"getSchemaNameByRef");function cf(e){let t=JN(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return oe(t)}o(cf,"normalizeString");function hS(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}o(hS,"wrapWithQuotesIfNeeded");function gS(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}o(gS,"unwrapQuotesIfNeeded");function JN(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}o(JN,"prefixStringStartingWithNumberIfNeeded");function uf(e){let t=e.replaceAll("_","#");return oe(t.replaceAll("-","_")).replaceAll("#","_")}o(uf,"pathParamToVariableName");var Bt=o(e=>fS.includes(e),"isPrimitiveType");function yS(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(yS,"escapeControlCharacters");function Qe(e){return e.includes("application/")&&e.includes("json")||lS.includes(e)||e.includes("text/")}o(Qe,"isParamMediaTypeAllowed");function vo(e){return e>=200&&e<300}o(vo,"isMainResponseStatus");function pa(e){return!(e>=200&&e<300)}o(pa,"isErrorStatus");function ti(e){return e.startsWith("application/")}o(ti,"isMediaTypeAllowed");var dS=/({\w+})/g,XN=/[^\w\-]+/g;function vS(e){e=U(eS(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(dS)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(dS,"")}By${U(r.slice(1,-1))}`}return e.replace(XN,"_")}o(vS,"pathToVariableName");var af=/{(\b\w+(?:-\w+)*\b)}/g;function SS(e){let t=e.match(af);return t===null?e.replaceAll(af,":$1"):(t.forEach(r=>{let n=uf(r.replaceAll(af,":$1"));e=e.replaceAll(r,n)}),e)}o(SS,"replaceHyphenatedPath");var bS=o(e=>{let t=e["x-enumNames"],r=Array.isArray(t)&&t.length>0,n=!!e.schema&&$e(e.schema)&&e.schema.type==="string";return r&&n},"isSortingParameterObject"),Wr=o((e,t)=>t.excludePathRegex?new RegExp(t.excludePathRegex).test(e):!1,"isPathExcluded");function Nt(e){return tS(e)}o(Nt,"formatTag");function Sr(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return Nt(r??t.defaultTag)}o(Sr,"getOperationTag");function _S(e,t){return t.excludeTags.some(r=>r.toLowerCase()===e.toLowerCase())}o(_S,"isTagExcluded");function Oe(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(D(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(Xn.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&&typeof i.additionalProperties=="object"){if(n({type:"additionalProperties",parentSchema:e,schema:i.additionalProperties,data:r})===!0)return;Oe(i.additionalProperties,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 Ct=o((e,t)=>Wp(U(cf(e)),t),"getZodSchemaName"),So=o((e,t,r)=>Wp(U(cf(e)),`${t}${r}`),"getEnumZodSchemaName"),ue=o(e=>!e.startsWith("z."),"isNamedZodSchema"),PS=o(e=>e.startsWith(po),"isEnumZodSchema"),Yr=o((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),fa=o(e=>oe(`${e}_${Qv}`),"getBodyZodSchemaName"),ES=o((e,t)=>oe(`${e}_${t}${Wv}`),"getParamZodSchemaName"),eC=o(e=>oe(`${e}${Yv}`),"getMainResponseZodSchemaName"),tC=o((e,t)=>oe(`${e}_${t}_${Jv}`),"getErrorResponseZodSchemaName");function da({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),s=Yr(t,r,n);return!vo(i)&&e!=="default"&&pa(i)?tC(s,e):eC(s)}o(da,"getResponseZodSchemaName");function bo(e){return["minimum","exclusiveMinimum","maximum","exclusiveMaximum","minItems","minLength","minProperties","maxItems","maxLength","maxProperties","default","example"].filter(n=>e[n]).reduce((n,i)=>[...n,`${U(iS(i))}: \`${e[i]}\``],[])}o(bo,"getSchemaDescriptions");var _o=o((e,t)=>rS(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),$S=o((e,t)=>ue(t)?`${e.options.tsNamespaces?`${G({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),br=o((e,t,r)=>{if(!ue(t))return t===lo?"void":t;let n=e.getTagByZodSchemaName(t);return`${e.options.tsNamespaces&&n!==r?`${G({type:"models",tag:n,options:e.options})}.`:""}${_o(t,e.options)}`},"getImportedZodSchemaInferedTypeName");function OS(e){var t;return e.isEnum?"enum":((t=e.schemaObj)==null?void 0:t.type)??"object"}o(OS,"getZodSchemaType");function xS(e){if(e.schemaObj)return[e.schemaObj.description,...bo(e.schemaObj).join(". ")].filter(Boolean)}o(xS,"getZodSchemaDescription");function wS(e,t,r){var n;if(D(t)){let i=e.getZodSchemaNameByRef(t.$ref);return i?br(e,i,r):void 0}if(ca(t)){if(!D(t.items))return`${((n=t.items)==null?void 0:n.type)??"unknown"}[]`;let i=e.getZodSchemaNameByRef(t.items.$ref);return i?`${br(e,i,r)}[]`:void 0}if(Xn.some(i=>i in t&&t[i])){let i=t.allOf??t.anyOf??t.oneOf??[];if(i.length>0)return wS(e,i[0],r)}return t.type}o(wS,"getType");function AS(e,t,r){if(!t.schemaObj)return[];let n="[0]",i="[key]",s={},a=o(c=>{var l;if(c.type==="reference")return!0;if(c.type==="composite")return;let u=[...((l=c.data)==null?void 0:l.pathSegments)??[]];if(c.type==="array"?u.push(n):c.type==="property"?u.push(c.propertyName):c.type==="additionalProperties"&&u.push(i),c.schema&&u[u.length-1]!==n){let f=e.resolveObject(c.schema),p=[f.description,...bo(f)].filter(Boolean),d=u.join(".");s[d]&&"type"in c.schema&&c.schema.type==="object"||(delete s[d],s[d]={type:wS(e,c.schema,r)??"unknown",description:p.join(". ")})}return Oe(c.schema,{data:{pathSegments:[...u]},onSchema:a}),!0},"onSchema");return"allOf"in t.schemaObj&&t.schemaObj.allOf&&t.schemaObj.allOf.forEach(c=>{if(D(c)){let u=e.resolveObject(c);Oe(u,{data:{pathSegments:[]},onSchema:a})}}),Oe(t.schemaObj,{data:{pathSegments:[]},onSchema:a}),s}o(AS,"getZodSchemaPropertyDescriptions");function ma(e){return ye(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}o(ma,"primitiveTypeToTsType");function ri({zodSchemaName:e,schema:t,resolver:r}){let n="void",i;e&&ue(e)?(n=br(r,e),i=r.getTagByZodSchemaName(e)):t!=null&&t.type&&Bt(t==null?void 0:t.type)&&(n=ma(t==null?void 0:t.type));let s=n.split(".");return{type:s[s.length-1],...s.length>1?{namespace:s[0]}:{},...i?{importPath:Xr({type:"models",tag:i,includeTagDir:!0,options:r.options})}:{}}}o(ri,"getTsTypeBase");function Jr({schema:e,isCircular:t,parentTypes:r,resolver:n}){if(!e)return{metaType:"primitive"};for(let i of Xn){let s=e[i];if(s)if(s.length>1){let a=s.map(c=>{let u=n.resolveObject(c);return Jr({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:IS({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:rC({schema:e,parentTypes:r,resolver:n})}:{metaType:"primitive"}}o(Jr,"getSchemaTsMetaType");function IS({arraySchema:e,parentTypes:t,resolver:r}){let n,i;if(D(e.items)){let u=e.items.$ref;n=r.getZodSchemaNameByRef(u),i=r.getSchemaByRef(u)}else i=e.items;let s=ri({zodSchemaName:n,schema:i,resolver:r}),a=TS(s,t),c=Jr({schema:i,isCircular:a,parentTypes:[...t,s],resolver:r});return{...s,...c}}o(IS,"getArraySchemaTsType");function rC({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(D(i)){let c=r.getZodSchemaNameByRef(i.$ref),u=r.getSchemaByRef(i.$ref),l=ri({zodSchemaName:c,schema:u,resolver:r}),f=TS(l,t),p=Jr({schema:u,isCircular:f,parentTypes:[...t,l],resolver:r});return{name:n,isRequired:s,...l,...p}}else if(i.type==="array"){let c=IS({arraySchema:i,parentTypes:t,resolver:r});return{name:n,isRequired:s,type:"array",metaType:"array",arrayType:c}}else if(Bt(i.type))return{name:n,isRequired:s,type:ma(i.type),metaType:"primitive"};return{name:n,isRequired:s,type:"void",metaType:"primitive"}})}o(rC,"getSchemaTsProperties");function TS(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}o(TS,"getIsCircular");var Po=o(e=>fr(oe(e.operationName)),"getEndpointName");function RS(e,t){return`${t.tsNamespaces?`${G({type:"endpoints",tag:Eo(e,t),options:t})}.`:""}${Po(e)}`}o(RS,"getImportedEndpointName");var NS=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 Nt(r??t.defaultTag)}o(Eo,"getEndpointTag");function $o(e,t,r){let n=t.parameters.map(i=>{var a,c,u,l;let s="string";if(ue(i.zodSchema))s=br(e,i.zodSchema);else if((a=i.parameterObject)!=null&&a.schema&&$e(i.parameterObject.schema)){let f=(u=(c=i.parameterObject)==null?void 0:c.schema)==null?void 0:u.type;f&&Bt(f)&&(s=ma(f))}return{name:At(i.name),type:s,paramType:i.type,required:((l=i.parameterObject)==null?void 0:l.required)??!0,parameterObject:i.parameterObject,bodyObject:i.bodyObject}});return r!=null&&r.includeFileParam&&t.mediaUpload&&n.push({name:"file",type:"File",paramType:"Body",required:!0,parameterObject:void 0,bodyObject:void 0}),n.sort((i,s)=>{if(i.required===s.required){let a=["Path","Body","Query","Header"];return a.indexOf(i.paramType)-a.indexOf(s.paramType)}return i.required?-1:1}).filter(i=>(!(r!=null&&r.excludeBodyParam)||i.name!==sa)&&(!(r!=null&&r.excludePageParam)||i.name!==mo.pageParamName)&&(!(r!=null&&r.includeOnlyRequiredParams)||i.required)).map(i=>({...i,name:r!=null&&r.replacePageParam&&i.name===mo.pageParamName?"pageParam":i.name}))}o($o,"mapEndpointParamsToFunctionParams");function CS(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let s=aS(i.name)?i.name:`"${i.name}"`,a=At(i.name);return{...i,name:s,value:a}}),r={};return e.requestFormat!==Jp["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==Jp.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=At(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}o(CS,"getEndpointConfig");function kS(e,t){return t.filter(r=>Ee(r)&&r.parameters.filter(n=>{var i;return(i=n.parameterObject)==null?void 0:i.required}).every(n=>e.parameters.some(i=>i.name===n.name))&&r.response===e.response)}o(kS,"getUpdateQueryEndpoints");function _r({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",s=o(u=>e.getTagByZodSchemaName(u),"getTag"),a=lf({type:i,tag:t,entities:r,getTag:s,getEntityName:o(u=>u,"getEntityName"),options:e.options}),c=lf({type:i,tag:t,entities:n,getTag:s,getEntityName:o(u=>_o(u,e.options),"getEntityName"),options:e.options});return nC(e.options,a,c)}o(_r,"getModelsImports");function jS({tag:e,endpoints:t,options:r}){return lf({type:"endpoints",tag:e,entities:t,getTag:o(n=>Eo(n,r),"getTag"),getEntityName:Po,options:r})}o(jS,"getEndpointsImports");function qS({tags:e,entityName:t,getAliasEntityName:r,type:n,options:i}){let s=new Map;return e.forEach(a=>{let c=`${t}${r?` as ${r(a)}`:""}`;s.has(a)?i.tsNamespaces||s.get(a).bindings.push(c):s.set(a,{bindings:[i.tsNamespaces?G({type:n,tag:a,options:i}):c],from:`${Pr(i)}${Xr({type:n,tag:a,includeTagDir:!0,options:i})}`})}),Array.from(s.values())}o(qS,"getEntityImports");function Pr(e){let t=Kp;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${zp}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${zp}`,"g"),Kp)),`${t}/`.replace(/\/\//g,"/")}o(Pr,"getImportPath");function lf({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.tsNamespaces||a.get(u).bindings.push(i(c));else{let l=t===u;a.set(u,{bindings:[s.tsNamespaces?G({type:e,tag:u,options:s}):i(c)],from:`${l?"./":Pr(s)}${Xr({type:e,tag:u,includeTagDir:!l,options:s})}`})}}),Array.from(a.values())}o(lf,"getImports");function nC(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.tsNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:Le(n.bindings)}))}o(nC,"mergeImports");function ni({fileName:e,extension:t}){return`${e}.${t}`}o(ni,"getFileNameWithExtension");function MS({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${fr(t)}/`:""}${fr(t)}.${i}`:i}o(MS,"getTagFileNameWithoutExtension");function Xr(...e){return MS(...e)}o(Xr,"getTagImportPath");function DS(...e){return`${MS(...e)}.ts`}o(DS,"getTagFileName");var G=o(({type:e,tag:t,options:r})=>`${U(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");function LS(e){return e.standalone?`${Pr(e)}${Js.fileName}`:e.restClientImportPath}o(LS,"getAppRestClientImportPath");function FS(e){return e.standalone?`${Pr(e)}${Ys.reactQueryTypes.fileName}`:e.queryTypesImportPath}o(FS,"getQueryTypesImportPath");function HS(e){return`${Pr(e)}${Xs.fileName}`}o(HS,"getQueryModulesImportPath");function VS(e){return`${Pr(e)}${ea.fileName}`}o(VS,"getMutationEffectsImportPath");function BS(e){return`${Pr(e)}${ta.fileName}`}o(BS,"getZodExtendedImportPath");var pf=["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"];function en(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}o(en,"pick");function ii(e,t){let r=e.deprecated&&!t.withDeprecatedEndpoints,n=Sr(e,t),i=_S(n,t);return r||i}o(ii,"isOperationExcluded");function ff({path:e,method:t,operation:r,options:n,tag:i,keepOperationTag:s,keepOperationPrefix:a}){let c=`${t}${vS(e)}`,u=r.operationId?At(r.operationId):c;if(n.removeOperationPrefixEndingWith&&a)u=u.split(n.removeOperationPrefixEndingWith).map((f,p)=>p===0?f:U(f)).join("");else if(n.removeOperationPrefixEndingWith&&!a){let l=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);u=u.replace(l,"")}if(n.tsNamespaces&&!s){let l=oS(u,i);pf.includes(l)||(u=l)}return pf.includes(u)?c:u}o(ff,"getOperationName");function Oo({operationsByTag:e,...t}){let{operation:r,options:n}=t,i=n.splitByTags?Sr(r,n):n.defaultTag,s=o(a=>{let c=ff({...t,tag:i,keepOperationTag:a});if(e[i].filter(l=>ff({...t,operation:l,tag:i,keepOperationTag:a})===c).length===1)return c},"operationName");return s()??s(!0)??ff({...t,tag:i,keepOperationTag:!0,keepOperationPrefix:!0})}o(Oo,"getUniqueOperationName");function US(e,t,r){let n=[];for(let i in e.paths){if(Wr(i,r))continue;let s=e.paths[i],a=en(s,Kr);for(let c in a){let u=a[c];if(!u||ii(u,r))continue;let l=Oo({path:i,method:c,operation:u,operationsByTag:t,options:r});n.push(l)}}return n}o(US,"getUniqueOperationNamesWithoutSplitByTags");function GS(e,t){let r={};for(let n in e.paths){if(Wr(n,t))continue;let i=e.paths[n],s=en(i,Kr);for(let a in s){let c=s[a];if(!c||ii(c,t))continue;let u=t.splitByTags?Sr(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}o(GS,"getOperationsByTag");var ZS={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Ambiguous",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I Am a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",424:"Failed Dependency",428:"Precondition Required",429:"Too Many Requests",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function xo(e){return{type:"invalid-schema",message:e}}o(xo,"getInvalidSchemaError");function zS(e){return{type:"invalid-operation-id",message:`Operation ${e}`}}o(zS,"getInvalidOperationIdError");function KS(e,t){return{type:"missing-path-parameter",message:`Path ${t} is missing [${e.map(({name:r})=>r).join(", ")}]`}}o(KS,"getMissingPathParameterError");function QS(e){return{type:"not-allowed-inline-enum",message:`${e} is missing @IsEnum() and @ApiProperty(enum:, enumName:)`}}o(QS,"getNotAllowedInlineEnumError");function WS(e){return{type:"not-allowed-circular-schema",message:e}}o(WS,"getNotAllowedCircularSchemaError");function YS(e,t,r){return{type:"missing-acl-condition-property",message:`Condition property ${e} is not found in parameters or body in operation ${ga(t,r)}`}}o(YS,"getMissingAclConditionPropertyError");function df(e,t,r){return{type:"missing-status-code",message:`Missing HTTP status code ${ha(e)} in operation ${ga(t,r)}`}}o(df,"getMissingStatusCodeError");function JS(e,t,r){return{type:"invalid-status-code",message:`Operation ${ga(t,r)} expected HTTP status code ${ha(e.expected)} but received ${ha(e.received)}`}}o(JS,"getInvalidStatusCodeError");function XS(e,t,r){return{type:"multiple-success-status-codes",message:`Operation ${ga(t,r)} has multiple success HTTP status codes: ${e.map(ha).join(", ")}`}}o(XS,"getMultipleSuccessStatusCodesError");function ga(e,t){return e.operationId??`${t.method} ${t.path}`}o(ga,"getOperationDescriptor");function ha(e){return`${e} (${ZS[e]})`}o(ha,"getStatusCodeDescription");function kt({schema:e,meta:t,options:r}){let n=[];ye(e.type).with("string",()=>n.push(sC(e))).with("number","integer",()=>n.push(cC(e))).with("array",()=>n.push(uC(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(oC({schema:e,meta:t,options:r}),r.withDefaultValues!==!1?sC(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}o(kt,"getZodChain");function oC({schema:e,meta:t,options:r}){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable||r.replaceOptionalWithNullish&&(t!=null&&t.isParentPartial)?"nullable()":t!=null&&t.isRequired?"":r.replaceOptionalWithNullish?"nullish()":"optional()"}o(oC,"getZodChainablePresence");function sC(e){return e.default!==void 0?`default(${ge(e.type).with("number","integer",()=>yS(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}o(sC,"getZodChainableDefault");function aC(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(${cC(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(aC,"getZodChainableStringValidations");function cC(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=vS(e),`/${e}/`}o(cC,"formatPatternIfNeeded");function uC(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(uC,"getZodChainableNumberValidations");function lC(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}o(lC,"getZodChainableArrayValidations");var tn=o(e=>e.reduce((t,r)=>t+r,0),"sum");function se(e,t){if(!t)return e;if(D(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?Fe("oneOf")+se(e,{...t,type:t.type[0]}):e+Fe("oneOf")+tn(t.type.map(r=>se(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?Fe("oneOf")+se(e,t.oneOf[0]):e+Fe("oneOf")+tn(t.oneOf.map(r=>se(0,r)));if(t.anyOf)return t.anyOf.length===1?Fe("anyOf")+se(e,t.anyOf[0]):e+Fe("anyOf")+tn(t.anyOf.map(r=>se(0,r)));if(t.allOf)return t.allOf.length===1?Fe("allOf")+se(e,t.allOf[0]):e+Fe("allOf")+tn(t.allOf.map(r=>se(0,r)));if(!t.type)return e;if(Bt(t.type))return t.enum?e+tb(t)+Fe("enum")+tn(t.enum.map(r=>se(0,r))):e+tb(t);if(t.type==="array")return t.items?Fe("array")+se(e,t.items):Fe("array")+se(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.properties){let r=Object.values(t.properties);e+=Fe("object")+tn(r.map(n=>se(0,n)))}else e+=Fe("empty-object");t.additionalProperties&&(typeof t.additionalProperties=="object"?e+=se(0,t.additionalProperties):e+=se(1))}return e}o(se,"getOpenAPISchemaComplexity");function tb(e){return ge(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}o(tb,"complexityByType");function Fe(e){return ge(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}o(Fe,"complexityByComposite");var mf=class mf{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;D(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.tsNamespaces&&i&&i!==t?`${G({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return se(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};o(mf,"ZodSchema");var wo=mf;function Q({schema:e,resolver:t,meta:r,tag:n}){var g;let i=new wo(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(D(e))return pC({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});let c=dC({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(c)return c;let u=fC({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(u)return u;let l=mC({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(l)return l;let f=hC({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(f)return f;let p=gC({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(p)return p;let d=t.options.allReadonly?".readonly()":"";if(ca(e))return e.items?i.assign(`z.array(${Q({...a,schema:e.items}).getCodeString(n,t.options)}${kt({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=e.required&&e.required.length>0,v=t.options.withImplicitRequiredProps?!1:e.properties&&!((g=e.required)!=null&&g.length),S="{}";e.properties&&(S="{ "+Object.entries(e.properties).map(([w,N])=>{var te;let je={...s,isRequired:v?!0:y?(te=e.required)==null?void 0:te.includes(w):t.options.withImplicitRequiredProps,name:w,isParentPartial:v},le=N;if(D(N)&&t&&(le=t.getSchemaByRef(N.$ref),!le))throw new Error(`Schema ${N.$ref} not found`);let J=Q({...a,schema:N,meta:je}).getCodeString(n,t.options)+kt({schema:le,meta:je,options:t.options});return[w,J]}).map(([w,N])=>`${gS(w)}: ${N}`).join(", ")+" }");let _="";e.additionalProperties&&(_=`.catchall(${typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0?Q({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+kt({schema:e.additionalProperties,meta:{...s,isRequired:!0},options:t.options}):"z.any()"})`);let $=v?".partial()":"",E=t.options.strictObjects?".strict()":"";return i.assign(`z.object(${S})${$}${E}${_}${d}`)}if(m==="any")return i.assign("z.any()");if(!m)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${m}`)}o(Q,"getZodSchema");function pC({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!D(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=Q({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,c,i),t}o(pC,"getReferenceZodSchema");function fC({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!Ee(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=Q({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=>Ee(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(iC({schema:e,meta:t,options:r}),r.withDefaultValues!==!1?oC(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}o(kt,"getZodChain");function iC({schema:e,meta:t,options:r}){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable||r.replaceOptionalWithNullish&&(t!=null&&t.isParentPartial)?"nullable()":t!=null&&t.isRequired?"":r.replaceOptionalWithNullish?"nullish()":"optional()"}o(iC,"getZodChainablePresence");function oC(e){return e.default!==void 0?`default(${ye(e.type).with("number","integer",()=>gS(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}o(oC,"getZodChainableDefault");function sC(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(${aC(e.pattern)})`),e.format){let r=ye(e.format).with("email",()=>"email()").with("hostname","uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}o(sC,"getZodChainableStringValidations");function aC(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=yS(e),`/${e}/`}o(aC,"formatPatternIfNeeded");function cC(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(cC,"getZodChainableNumberValidations");function uC(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}o(uC,"getZodChainableArrayValidations");var tn=o(e=>e.reduce((t,r)=>t+r,0),"sum");function se(e,t){if(!t)return e;if(D(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?Fe("oneOf")+se(e,{...t,type:t.type[0]}):e+Fe("oneOf")+tn(t.type.map(r=>se(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?Fe("oneOf")+se(e,t.oneOf[0]):e+Fe("oneOf")+tn(t.oneOf.map(r=>se(0,r)));if(t.anyOf)return t.anyOf.length===1?Fe("anyOf")+se(e,t.anyOf[0]):e+Fe("anyOf")+tn(t.anyOf.map(r=>se(0,r)));if(t.allOf)return t.allOf.length===1?Fe("allOf")+se(e,t.allOf[0]):e+Fe("allOf")+tn(t.allOf.map(r=>se(0,r)));if(!t.type)return e;if(Bt(t.type))return t.enum?e+eb(t)+Fe("enum")+tn(t.enum.map(r=>se(0,r))):e+eb(t);if(t.type==="array")return t.items?Fe("array")+se(e,t.items):Fe("array")+se(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.properties){let r=Object.values(t.properties);e+=Fe("object")+tn(r.map(n=>se(0,n)))}else e+=Fe("empty-object");t.additionalProperties&&(typeof t.additionalProperties=="object"?e+=se(0,t.additionalProperties):e+=se(1))}return e}o(se,"getOpenAPISchemaComplexity");function eb(e){return ye(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}o(eb,"complexityByType");function Fe(e){return ye(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}o(Fe,"complexityByComposite");var mf=class mf{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;D(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.tsNamespaces&&i&&i!==t?`${G({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return se(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};o(mf,"ZodSchema");var wo=mf;function Q({schema:e,resolver:t,meta:r,tag:n}){var g;let i=new wo(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(D(e))return lC({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});let c=fC({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=dC({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(l)return l;let f=mC({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(f)return f;let p=hC({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(p)return p;let d=t.options.allReadonly?".readonly()":"";if(ca(e))return e.items?i.assign(`z.array(${Q({...a,schema:e.items}).getCodeString(n,t.options)}${kt({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=e.required&&e.required.length>0,v=t.options.withImplicitRequiredProps?!1:e.properties&&!((g=e.required)!=null&&g.length),S="{}";e.properties&&(S="{ "+Object.entries(e.properties).map(([w,N])=>{var te;let je={...s,isRequired:v?!0:y?(te=e.required)==null?void 0:te.includes(w):t.options.withImplicitRequiredProps,name:w,isParentPartial:v},pe=N;if(D(N)&&t&&(pe=t.getSchemaByRef(N.$ref),!pe))throw new Error(`Schema ${N.$ref} not found`);let J=Q({...a,schema:N,meta:je}).getCodeString(n,t.options)+kt({schema:pe,meta:je,options:t.options});return[w,J]}).map(([w,N])=>`${hS(w)}: ${N}`).join(", ")+" }");let b="";e.additionalProperties&&(b=`.catchall(${typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0?Q({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+kt({schema:e.additionalProperties,meta:{...s,isRequired:!0},options:t.options}):"z.any()"})`);let P=v?".partial()":"",$=t.options.strictObjects?".strict()":"";return i.assign(`z.object(${S})${P}${$}${b}${d}`)}if(m==="any")return i.assign("z.any()");if(!m)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${m}`)}o(Q,"getZodSchema");function lC({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!D(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=Q({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,c,i),t}o(lC,"getReferenceZodSchema");function pC({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!$e(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=Q({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=>$e(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=>Q({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])
76
- `)}return t.assign(`z.union([${e.oneOf.map(c=>Q({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(fC,"getOneOfZodSchema");function dC({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!Ee(e)||!Array.isArray(e.type)))return e.type.length===1?Q({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(s=>Q({schema:{...e,type:s},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(dC,"getArrayZodSchema");function mC({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Ee(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=Q({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let s=e.anyOf.map(a=>Q({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${s}])`)}o(mC,"getAnyOfZodSchema");function hC({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Ee(e)||!e.allOf)return;if(e.allOf.length===1){let p=Q({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}=uS(e),u=a.map(p=>{let d=Q({schema:p,resolver:r,meta:n,tag:i});return r&&s(p,r.getSchemaByRef.bind(r)),d});c.required.length&&u.push(Q({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(hC,"getAllOfZodSchema");function gC({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Ee(e))return;let s=e.type?e.type.toLowerCase():void 0;if(s&&Bt(s)){if(e.enum){if(s==="string")return yC({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",()=>ra).otherwise(()=>na)).otherwise(a=>`z.${a}()`))}}o(gC,"getPrimitiveZodSchema");function yC({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){var l;if(!Ee(t))return;let s=oi(t);if(!e.options.extractEnums)return r.assign(s);let a=e.getEnumZodSchemaDataByCode(s);if(a)return((l=r.meta.parent)==null?void 0:l.ref)===e.getRefByZodSchemaName(a.zodSchemaName)?r.assign(a.code):new wo({$ref:e.getRefByZodSchemaName(a.zodSchemaName)},e,n).inherit(r).assign(s);let c=e.getExtractedEnumZodSchemaDataByCode(s);if(!c)return r.assign(s);if(!c.zodSchemaName||!c.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${s}`);let u=e.options.tsNamespaces&&c.tag!==i?`${G({type:"models",tag:c.tag,options:e.options})}.`:"";return r.assign(`${u}${c.zodSchemaName}`)}o(yC,"getEnumZodSchema");function oi(e){var t;return`${po}([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}o(oi,"getEnumZodSchemaCode");function rb(e){return`${po}([${e.map(t=>`"${t}"`).join(", ")}])`}o(rb,"getEnumZodSchemaCodeFromEnumNames");function si({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var c;let s=t.getCodeString();if((!Oe(s)||t.ref===void 0)&&r){if(t.complexity<sf)return s;let u=Ct(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 se(0,n.getSchemaByRef(t.ref))<sf?n.getCodeByZodSchemaName(s):s;if(t.ref)return n.getZodSchemaNameByRef(t.ref);throw new Error(`Invalid ref: ${t.ref}`)}o(si,"resolveZodSchemaName");function nb({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=vC({resolver:e,endpoint:t,acl:n,name:c});return u?[...a,u]:(e.validationErrors.push(JS(c,r,t)),a)},[]);return{...i,conditionsTypes:s}})}o(nb,"getEndpointAcl");function vC({resolver:e,endpoint:t,acl:r,name:n}){var p,d,m,g,y,v,S,_,$,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:b})=>b===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} ${fr(f.type)} parameter`,l++;else{let b=t.parameters.find(({bodyObject:je})=>!!je),N=Object.keys(((y=b==null?void 0:b.bodyObject)==null?void 0:y.content)??{}).find(Qe);N&&(a=(_=(S=(v=b==null?void 0:b.bodyObject)==null?void 0:v.content)==null?void 0:S[N])==null?void 0:_.schema,u=`${Pe(t)?"query":"mutation"} data`)}for(;a&&l<s.length;){let b=e.resolveObject(a);a=($=Object.entries(b.properties??{}).find(([N])=>N===s[l]))==null?void 0:$[1],c=((E=b.required)==null?void 0:E.includes(s[l]))??!1,l++}if(a)return{name:n,type:D(a)?void 0:a.type,zodSchemaName:D(a)?e.getZodSchemaNameByRef(a.$ref):void 0,required:c,info:u}}o(vC,"getEndpointAclConditionPropertyType");function ib({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(Qe);if(!c)return;let u=(g=(m=s.content)==null?void 0:m[c])==null?void 0:g.schema;if(!u)return;let l=Q({schema:u,resolver:e,meta:{isRequired:s.required??!0},tag:i}),f=e.resolveObject(u),p=si({schema:f,zodSchema:l,fallbackName:fa(Yr(r,n,i)),resolver:e,tag:i}),d=kt({schema:f,meta:l.meta,options:e.options});return{endpointParameter:{name:sa,type:"Body",description:s.description,zodSchema:p+d,bodyObject:s},requestFormat:c}}o(ib,"getEndpointBody");function ob({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let s=e.resolveObject(t);if(!fS.includes(s.in))return;let a={};if(s.content){let m=Object.keys(s.content??{}),g=m.find(Qe);if(!g)throw new Error(`Unsupported media type for param ${s.name}: ${m.join(", ")}`);let y=s.content[g];if(!y)throw new Error(`No content with media type for param ${s.name}: ${g}`);a=(y==null?void 0:y.schema)??y}else s.schema&&(a=s.schema);e.options.withDescription&&a&&(a.description=(s.description??"").trim());let c=$S(Yr(r,n,i),s.name),u;if(_S(s)){let m=So(c,e.options.enumSuffix,e.options.schemaSuffix),g=rb(s["x-enumNames"]);e.setZodSchema(m,g,i),u=m}let l=Q({schema:a,resolver:e,meta:{isRequired:s.in==="path"?!0:s.required??!1},tag:i}),f=e.resolveObject(a),p=kt({schema:f,meta:l.meta,options:e.options}),d=si({schema:f,zodSchema:l.assign(l.getCodeString(i)+p),fallbackName:c,resolver:e,tag:i});return{name:ge(s.in).with("path",()=>uf(s.name)).otherwise(()=>s.name),type:ge(s.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:d,parameterObject:s,parameterSortingEnumSchemaName:u}}o(ob,"getEndpointParameter");function ab(e){var r,n,i,s,a;let t=[];for(let c in e.openApiDoc.paths){if(Wr(c,e.options))continue;let u=e.openApiDoc.paths[c],l=en(u,Kr),f=sb(u.parameters??[]);for(let p in l){let d=l[p];if(!d||ii(d,e.options))continue;let m=d.operationId&&d.operationId!==At(d.operationId);d.operationId&&m&&e.validationErrors.push(KS(d.operationId));let g=Object.entries({...f,...sb(d.parameters??[])}).map(([,b])=>b),y=Oo({path:c,method:p,operation:d,operationsByTag:e.operationsByTag,options:e.options}),v=e.operationNames.filter(b=>b===y).length<=1,S=Sr(d,e.options),_={method:p,path:bS(c),operationName:y,description:d.description,summary:d.summary,tags:(r=d.tags)==null?void 0:r.map(Nt),requestFormat:"application/json",parameters:[],response:"",errors:[],responseStatusCodes:[],mediaUpload:!!d["x-media-upload"],mediaDownload:!!d["x-media-download"]};if(d.requestBody){let b=ib({resolver:e,operation:d,operationName:y,isUniqueOperationName:v,tag:S});b&&(_.parameters.push(b.endpointParameter),_.requestFormat=b.requestFormat)}for(let b of g){let w=ob({resolver:e,param:b,operationName:y,isUniqueOperationName:v,tag:S});w&&_.parameters.push(w)}let $=SC(_);$.forEach(b=>{_.parameters.push(b)}),$.length>0&&e.validationErrors.push(QS($,c));for(let b in d.responses){_.responseStatusCodes.push(b);let w=e.resolveObject(d.responses[b]),je=Object.keys(w.content??{}).find(ti),le,J;if(je?(_.responseFormat=je,le=(i=(n=w.content)==null?void 0:n[je])==null?void 0:i.schema):(J=lo,b==="200"&&e.validationErrors.push(XS({received:"200",expected:"204"},d,_))),le){let te=Q({schema:le,resolver:e,meta:{isRequired:!0},tag:S}),ve=e.resolveObject(le);J=si({schema:ve,zodSchema:te,fallbackName:te.ref?void 0:da({statusCode:b,operationName:y,isUniqueOperationName:v,tag:S}),resolver:e,tag:S})+kt({schema:ve,meta:te.meta,options:e.options})}if(J){let te=Number(b);vo(te)&&!_.response?(_.response=J,_.responseObject=w,_.responseDescription=w.description):b!=="default"&&pa(te)&&_.errors.push({zodSchema:J,status:te,description:w.description})}}_.response||(_.response=lo);let E=Object.keys(d.responses).map(Number).filter(vo);E.length>1&&e.validationErrors.push(eb(E.map(String),d,_)),_.acl=nb({resolver:e,endpoint:_,operation:d}),(s=d.security)!=null&&s[0].Authorization&&!_.responseStatusCodes.includes("401")&&e.validationErrors.push(df("401",d,_)),(a=_.acl)!=null&&a[0]&&!_.responseStatusCodes.includes("403")&&e.validationErrors.push(df("403",d,_)),t.push(_)}}return t}o(ab,"getEndpointsFromOpenAPIDoc");function sb(e){return Object.fromEntries((e??[]).map(t=>[D(t)?t.$ref:t.name,t]))}o(sb,"getParameters");function SC(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=>bC(r))}o(SC,"getMissingPathParameters");function bC(e){return{name:e,type:"Path",zodSchema:na,parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}o(bC,"getPathParameterFromName");function cb(e,t){let r=_C(e,t),n=PC(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}o(cb,"getOpenAPISchemaDependencyGraph");function _C(e,t){let r={},n={};return e.forEach(i=>EC({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}o(_C,"getRefsDependencyGraph");function PC(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(PC,"getDeepRefsDependencyGraph");function EC({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,$e(r(c.$ref),{data:{fromRef:c.$ref},onSchema:s})},"onSchema");return $e(e,{data:{fromRef:t},onSchema:s}),{visitedRefs:n,refsDependencyGraph:i}}o(EC,"getSchemaRefsDependencyGraph");function ya(e,t,r){let n=[];return $e(t,{onSchema:o(s=>{s.type==="reference"?n.push(s.schema):D(s.parentSchema)&&(s.type==="property"?e.validationErrors.push(xo(`${r} has both reference and properties`)):s.type==="additionalProperties"?e.validationErrors.push(xo(`${r} has both reference and additionalProperties`)):s.type==="array"?e.validationErrors.push(xo(`${r} is both reference and array schema`)):s.type==="composite"&&e.validationErrors.push(xo(`${r} has both reference and composite keyword`)))},"onSchema")}),n}o(ya,"getSchemaRefObjs");function ub(e,t){return t.map(i=>Qr(i.$ref)).reduce((i,s)=>{let a=e.dependencyGraph.deepDependencyGraph[s];return[...i,s,...Array.from(a??[])]},[])}o(ub,"getDeepSchemaRefObjs");function lb(e){e.extractedEnumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(s=>s[s.length-1]).filter(Boolean),i=Yp(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=So(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!hf(e);)$C(e,t+2),t++;if(hf(e)||e.extractedEnumZodSchemaData.filter(n=>!pb(e,n)).forEach(n=>{n.zodSchemaName=So(n.meta.zodSchemaNameSegments[0].map(i=>gf(U(i))).join(""),e.options.enumSuffix,e.options.schemaSuffix)}),!hf(e))throw new Error("Failed to resolve unique names for enum zod schemas")}o(lb,"resolveExtractedEnumZodSchemaNames");function hf(e){return e.extractedEnumZodSchemaData.every(t=>pb(e,t))}o(hf,"allExtractedEnumZodSchemaNamesAreUnique");function $C(e,t){e.extractedEnumZodSchemaData.forEach(r=>{let n=e.extractedEnumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&OC(n,t)})}o($C,"additionalResolveExtractedEnumZodSchemaName");function OC(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=[gf(U(n[0])),r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=i}else{let i=Yp(n),s=[i?gf(U(i)):"",r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=s}})}o(OC,"suffixWithPreviousSegmentName");function pb(e,t){return e.extractedEnumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length===1}o(pb,"isUnique");function gf(e){return e.replace(/(Dto|DTO|Response|Request)/g,"")}o(gf,"sanitizeName");function fb(e){e.extractedEnumZodSchemaData.forEach(t=>{let r=Le(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}o(fb,"resolveExtractedEnumZodSchemaTags");function Ao({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&db({schema:e,nameSegments:t,...n}),$e(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"&&a.push(s.propertyName),db({schema:s.schema,nameSegments:[...a],...n})},"onSchema")})}o(Ao,"updateExtractedEnumZodSchemaData");function db({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:s=[]}){if(!t||D(t)||!t.enum)return;let a=oi(t),c=e.extractedEnumZodSchemaData.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.extractedEnumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[s],tags:[...i],schemaRefs:r?[r]:[],schemas:t?[t]:[]}}),e.validationErrors.push(WS(r?`${ei(r)}.${s[s.length-1]}`:n??s.join(".")))}o(db,"handleExtractedEnumZodSchemaDataUpdate");function mb(e){var n;let t={},r={};return Object.entries(((n=e.openApiDoc.components)==null?void 0:n.schemas)??{}).forEach(([i,s])=>{let a=e.getSchemaDataByName(i);if(e.options.excludeRedundantZodSchemas&&(!a||a.deepRefOperations.length===0&&a.tags.length===0))return;let c=Ct(i,e.options.schemaSuffix);if(t[c])return;let u=e.getTagByZodSchemaName(c),l=e.resolveObject(s);l.enum?r[c]=oi(l):t[c]=Q({schema:s,resolver:e,tag:u}).getCodeString(u)}),{zodSchemas:t,enumZodSchemas:r}}o(mb,"getZodSchemasFromOpenAPIDoc");function hb(e){var r;let t=[];return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let s=Ct(n,e.options.schemaSuffix),a=e.resolveObject(i);!t.find(c=>c.zodSchemaName===s)&&a.enum&&t.push({zodSchemaName:s,code:oi(a)})}),t}o(hb,"getEnumZodSchemasFromOpenAPIDoc");var yf=class yf{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=cb(this.schemaRefs,this.getSchemaByRef.bind(this)),this.enumZodSchemas=hb(this),this.operationsByTag=ZS(t,r),this.operationNames=GS(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];dependencyGraph;enumZodSchemas=[];extractedEnumZodSchemaData=[];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(hS)}getSchemaByRef(t){return this.docSchemas[ei(t)]}getSchemaDataByName(t){return this.schemaData.find(r=>r.name===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(Qr(t)))==null?void 0:n.zodSchemaName)??((i=this.extractedEnumZodSchemaData.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.extractedEnumZodSchemaData.find(f=>f.zodSchemaName===t);if(r)return Nt(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=Le(i,s),c=a.length===1?a[0]:this.options.defaultTag;return Nt(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.enumZodSchemas.find(r=>r.code===t)}getExtractedEnumZodSchemaDataByCode(t){return this.extractedEnumZodSchemaData.find(r=>r.code===t)}getExtractedEnumZodSchemaNamesReferencedBySchemaRef(t){return this.extractedEnumZodSchemaData.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}),{})}getExtractedEnumZodSchemas(){return this.extractedEnumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return D(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=[],i=[]){var s,a;return i.includes(r)?[]:(i.push(r),(s=this.dependencyGraph.refsDependencyGraph[r])!=null&&s.has(t)?[...n,r,t]:Array.from(((a=this.dependencyGraph.refsDependencyGraph[r])==null?void 0:a.values())??[]).map(c=>{let u=this.getCircularSchemaChain(t,c,n,i);return u.length>0?[r,...u]:u}).flat())}getBaseUrl(){var r,n;let t=(n=(r=this.openApiDoc.servers)==null?void 0:r[0])==null?void 0:n.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.getExtractedEnumZodSchemaDataByName(t);if(i)return i.meta.schemas.reduce((s,a)=>({...s,...this.resolveObject(a)}),{})}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getExtractedEnumZodSchemaDataByName(t){return this.extractedEnumZodSchemaData.find(({zodSchemaName:r})=>r===t)}initialize(){var t,r,n,i,s;this.schemaRefs.forEach(a=>{let c=Qr(a),u=ei(c),l=Ct(u,this.options.schemaSuffix);this.schemaData.push({ref:c,name:u,zodSchemaName:l,tags:[],deepRefOperations:[]})});for(let a in this.openApiDoc.paths){if(Wr(a,this.options))continue;let c=this.openApiDoc.paths[a],u=en(c,Kr);for(let l in u){let f=u[l];if(!f||ii(f,this.options))continue;let p=Sr(f,this.options),d=Oo({path:a,method:l,operation:f,operationsByTag:this.operationsByTag,options:this.options}),m=this.operationNames.filter(S=>S===d).length<=1,g=oe(Yr(d,m,p)),y=[];if((t=f.parameters)==null||t.map(S=>{let _=S,$=_.schema,E=`Operation ${f.operationId??a} parameter ${_.name}`;y.push(...ya(this,$,E)),this.options.extractEnums&&Ao({resolver:this,schema:$,schemaInfo:E,tags:[p],nameSegments:[g,_.name],includeSelf:!0})}),f.requestBody){let S=this.resolveObject(f.requestBody),$=Object.keys(S.content??{}).find(Qe);if($){let E=(n=(r=S.content)==null?void 0:r[$])==null?void 0:n.schema,b=`Operation ${f.operationId} request body`;y.push(...ya(this,E,b)),this.options.extractEnums&&Ao({resolver:this,schema:E,schemaInfo:b,tags:[p],nameSegments:[fa(g)]})}}for(let S in f.responses){let _=this.resolveObject(f.responses[S]),E=Object.keys(_.content??{}).find(ti);if(E){let b=(s=(i=_.content)==null?void 0:i[E])==null?void 0:s.schema,w=`Operation ${f.operationId} response body`;y.push(...ya(this,b,w)),this.options.extractEnums&&Ao({resolver:this,schema:b,schemaInfo:w,tags:[p],nameSegments:[da({statusCode:S,operationName:d,isUniqueOperationName:m,tag:p})]})}}ub(this,y).forEach(S=>{let _=this.getSchemaDataByRef(S);_&&(_.tags.push(p),_.deepRefOperations.push(f))})}}this.options.extractEnums&&(this.schemaRefs.forEach(a=>{var u;let c=Qr(a);Ao({resolver:this,schema:this.getSchemaByRef(c),schemaRef:c,tags:((u=this.getSchemaDataByRef(c))==null?void 0:u.tags)??[],nameSegments:[ei(c)]})}),fb(this),this.handleDuplicateEnumZodSchemas(),lb(this))}handleDuplicateEnumZodSchemas(){let t=this.enumZodSchemas.map(({code:n})=>n),r=this.enumZodSchemas.filter(({code:n})=>t.includes(n));this.schemaData.forEach(n=>{var a,c;let i=(a=r.find(({zodSchemaName:u})=>u===n.zodSchemaName))==null?void 0:a.code;if(!i)return;let s=this.extractedEnumZodSchemaData.find(({code:u})=>u===i);!s||((c=this.getEnumZodSchemaDataByCode(s.code))==null?void 0:c.zodSchemaName)!==n.zodSchemaName||(n.tags.push(...s.meta.tags??[]),s.meta.schemaRefs.forEach(u=>{this.dependencyGraph.refsDependencyGraph[u]||(this.dependencyGraph.refsDependencyGraph[u]=new Set),this.dependencyGraph.refsDependencyGraph[u].add(n.ref),this.dependencyGraph.deepDependencyGraph[u]||(this.dependencyGraph.deepDependencyGraph[u]=new Set),this.dependencyGraph.deepDependencyGraph[u].add(n.ref)}))}),this.extractedEnumZodSchemaData.splice(0,this.extractedEnumZodSchemaData.length,...this.extractedEnumZodSchemaData.filter(({code:n})=>!t.includes(n)))}};o(yf,"SchemaResolver");var va=yf;function gb(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(gb,"topologicalSort");function yb(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(yb,"sortObjKeysFromArray");function vb(e,t){let r=gb(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return yb(t,r)}o(vb,"sortZodSchemasByTopology");function Sb(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let s=e.getRefByZodSchemaName(n);s&&e.isSchemaCircular(s)?(e.validationErrors.push(YS(e.getCircularSchemaChain(s).join(" -> "))),r[Ct(n,e.options.schemaSuffix)]=`z.lazy(() => ${i})`):r[Ct(n,e.options.schemaSuffix)]=i}),r}o(Sb,"wrapCircularZodSchemas");function Sa(e,t){let r=new va(e,t),n=ab(r),i=mb(r),s={...i.zodSchemas,...r.getZodSchemas(),...i.enumZodSchemas};return s=Sb(r,s),s=vb(r,s),s={...r.getExtractedEnumZodSchemas(),...s},{resolver:r,data:xC({resolver:r,endpoints:n,zodSchemas:s,options:t})}}o(Sa,"getDataFromOpenAPIDoc");function xC({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(s=>{let a=Eo(s,n);bb(a,i).endpoints.push(s)}),Object.entries(r).forEach(([s,a])=>{let c=e.getTagByZodSchemaName(s);c&&(bb(c,i).zodSchemas[s]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}o(xC,"splitDataByTags");function bb(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}o(bb,"getTagElement");async function _b(e,t){let{resolver:r,data:n}=await Sa(e,t),i=[],s=[];return n.forEach(({endpoints:c,zodSchemas:u},l)=>{Object.keys(u).forEach(f=>{let p=r.getRefByZodSchemaName(f),d=p?r.getSchemaByRef(p):r.getSchemaByCompositeZodSchemaName(f),m=ri({zodSchemaName:f,schema:d,resolver:r}),g;d&&(g=Jr({schema:d,parentTypes:[m],resolver:r})),i.push({...m,metaType:"primitive",...g})}),c.forEach(f=>{let p="queries",d=Nt(l);s.push({name:oa(f),importPath:Xr({type:p,tag:d,includeTagDir:!0,options:t}),namespace:t.tsNamespaces?G({type:p,tag:d,options:t}):void 0,isQuery:Pe(f),isMutation:xt(f),params:wC({resolver:r,endpoint:f}),response:AC({resolver:r,endpoint:f})})})}),{openApiDoc:e,models:i,queries:s}}o(_b,"getMetadataFromOpenAPIDoc");function wC({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(Qe);p&&(n=e.resolveObject((u=(c=r.bodyObject.content)==null?void 0:c[p])==null?void 0:u.schema))}let i=ri({zodSchemaName:r.zodSchema,schema:n,resolver:e}),s;return n&&(s=Jr({schema:n,parentTypes:[i],resolver:e})),{name:At(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(wC,"getQueryMetadataParams");function AC({resolver:e,endpoint:t}){var a,c,u,l;let r,n=Object.keys(((a=t.responseObject)==null?void 0:a.content)??{}).find(ti);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=ri({zodSchemaName:t.response,schema:r,resolver:e}),s;return r&&(s=Jr({schema:r,parentTypes:[i],resolver:e})),{...i,metaType:"primitive",...s}}o(AC,"getQueryMetadataResponse");var Pb={fileName:"acl/app.ability",extension:"ts"},Io="AllAbilities",ft={abilityTuple:"AbilityTuple",pureAbility:"PureAbility",forcedSubject:"ForcedSubject",subject:"subject"},vf={bindings:[ft.abilityTuple,ft.pureAbility,ft.forcedSubject,ft.subject],from:"@casl/ability"};var Eb=o(e=>`Use${U(oe(e.operationName))}Ability`,"getAbilityTypeName"),$b=o(e=>`canUse${U(oe(e.operationName))}`,"getAbilityFunctionName"),Ob=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].action},"getAbilityAction"),xb=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].subject},"getAbilitySubject"),wb=o(e=>{var t;return!!((t=Sf(e))!=null&&t.length)},"hasAbilityConditions"),Sf=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].conditionsTypes},"getAbilityConditionsTypes"),Ab=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].description},"getAbilityDescription"),ba=o(e=>`${U(e)}${Io}`,"getTagAllAbilitiesName");var dd=Xe(Kt());var pd=Xe(require("fs")),SP=Xe(require("path"));function bP(e){return pd.default.readFileSync(SP.default.join(__dirname,`../${e}`),"utf-8")}o(bP,"readFileSync");function fd(e){let t=`src/generators/templates/${e}.hbs`;return bP(t)}o(fd,"readHbsTemplateSync");function _P(e){let t=`src/assets/${e}`;return bP(t)}o(_P,"readAssetSync");function Or({output:e,fileName:t}){return`${e}/${t}`}o(Or,"getOutputFileName");var Qt=Xe(Kt());function PP(){b3(),_3(),P3(),E3(),$3(),O3(),x3(),w3()}o(PP,"registerAclHbsHelpers");function b3(){Qt.default.registerHelper("abilityTypeName",Eb)}o(b3,"registerAbilityTypeNameHelper");function _3(){Qt.default.registerHelper("abilityFunctionName",$b)}o(_3,"registerAbilityFunctionNameHelper");function P3(){Qt.default.registerHelper("ablityAction",Ob)}o(P3,"registerAbilityActionHelper");function E3(){Qt.default.registerHelper("ablitySubject",xb)}o(E3,"registerAbilitySubjectHelper");function $3(){Qt.default.registerHelper("hasAbilityConditions",wb)}o($3,"registerHasAbilityConditionsHelper");function O3(){Qt.default.registerHelper("abilityConditionsTypes",Sf)}o(O3,"registerAbilityConditionsTypesHelper");function x3(){Qt.default.registerHelper("abilityDescription",Ab)}o(x3,"registerAbilityDescriptionHelper");function w3(){Qt.default.registerHelper("tagAllAbilitiesName",ba)}o(w3,"registerTagAllAbilitiesNameHelper");var Bo=Xe(Kt());function EP(){A3(),I3(),T3(),R3()}o(EP,"registerCommonHbsHelpers");function A3(){Bo.default.registerHelper("isEqual",(e,t)=>e===t)}o(A3,"registerIsEqualHelper");function I3(){Bo.default.registerHelper("commaSeparated",e=>e.join(", "))}o(I3,"registerCommaSeparatedListHelper");function T3(){Bo.default.registerHelper("addAsteriskAfterNewLine",e=>e.replace(/\n/g,`
77
- *`))}o(T3,"registerAddAsteriskAfterNewLineHelper");function R3(){Bo.default.registerHelper("jsonStringify",e=>JSON.stringify(e,null,2))}o(R3,"registerJsonStringifyHelper");var xr=Xe(Kt());function $P(e){N3(),C3(e.options),q3(e),k3(),j3(),M3(e),D3()}o($P,"registerEndpointsHbsHelpers");function N3(){xr.default.registerHelper("endpointName",Po)}o(N3,"registerEndpointNameHelper");function C3(e){xr.default.registerHelper("importedEndpointName",t=>NS(t,e))}o(C3,"registerImportedEndpointNameHelper");function k3(){xr.default.registerHelper("endpointPath",CS)}o(k3,"registerEndpointPathHelper");function j3(){xr.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}o(j3,"registerEndpointBodyHelper");function q3(e){xr.default.registerHelper("endpointParams",(t,r)=>$o(e,t,r.hash))}o(q3,"registerEndpointParamsHelper");function M3(e){xr.default.registerHelper("endpointArgs",(t,r)=>$o(e,t,r.hash).map(n=>n.name).join(", "))}o(M3,"registerEndpointArgsHelper");function D3(){xr.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&&Ee(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(Qe);p&&(i=e.bodyObject.content[p],i.schema&&Ee(i.schema)&&(n=i.schema))}if(n){let f=bo(n);t.push(...f)}return i!=null&&i.example&&t.push(`Example: \`${i.example}\``),t.join(". ")})}o(D3,"registerEndpointParamDescriptionHelper");var Ce=Xe(Kt());function OP(e){L3(),F3(),H3(),V3(e),B3(),U3(e),G3(e),Z3(e),z3(e),K3(e),Q3(),W3(),Y3()}o(OP,"registerPartialsHbsHelpers");function L3(){Ce.default.registerHelper("genModelJsDocs",(e,t,r)=>ke("model-js-docs")({name:e,zodSchema:t,tag:r}))}o(L3,"registerGenerateModelJsDocsHelper");function F3(){Ce.default.registerHelper("genImport",e=>ke("import")({import:e}))}o(F3,"registerImportHelper");function H3(){Ce.default.registerHelper("genEndpointParams",(e,t)=>ke("endpoint-params")({endpoint:e,options:t}))}o(H3,"registerGenerateEndpointParamsHelper");function V3(e){Ce.default.registerHelper("genEndpointConfig",t=>{let r=kS(t),n=e.options.axiosRequestConfig;return Object.keys(r).length===0?n?dr:"":ke("endpoint-config")({endpointConfig:r,hasAxiosRequestConfig:n,hasBlobResponse:t.response===ra,hasFileDownload:t.mediaDownload,axiosRequestConfigName:dr})})}o(V3,"registerGenerateEndpointConfigHelper");function B3(){Ce.default.registerHelper("genEndpointParamSorting",(e,t)=>ke("endpoint-param-sorting")({enumSchemaName:e,paramName:t,zodExtended:Ot.name,sortingString:Ot.properties.sortingString,parse:Ot.properties.parse}))}o(B3,"registerGenerateEndpointParamSortingHelper");function U3(e){Ce.default.registerHelper("genQueryKeys",t=>t.length===0?"":ke("query-keys")({queryEndpoints:t,queriesModuleName:ho,generateInfiniteQueries:e.options.infiniteQueries}))}o(U3,"registerGenerateQueryKeysHelper");function G3(e){Ce.default.registerHelper("genQuery",t=>{if(!Pe(t))return;let r=e.options.axiosRequestConfig;return ke("query-use-query")({endpoint:t,queryHook:pt.query,hasQueryFn:$o(e,t).length>0||r,hasAxiosRequestConfig:r,axiosRequestConfigName:dr,axiosRequestConfigType:wt})})}o(G3,"registerGenerateQueryHelper");function Z3(e){Ce.default.registerHelper("genMutation",(t,r)=>{if(!xt(t))return;let n=jS(t,r);return ke("query-use-mutation")({endpoint:t,queryHook:pt.mutation,queriesModuleName:ho,hasAxiosRequestConfig:e.options.axiosRequestConfig,axiosRequestConfigName:dr,axiosRequestConfigType:wt,hasMutationEffects:e.options.mutationEffects,mutationEffectsType:Wn.optionsType,updateQueryEndpoints:n})})}o(Z3,"registerGenerateMutationHelper");function z3(e){Ce.default.registerHelper("genInfiniteQuery",t=>{if(!(!e.options.infiniteQueries||!Jn(t)))return ke("query-use-infinite-query")({endpoint:t,infiniteQueryHook:pt.infiniteQuery,pageParamName:ia.pageParamName,totalItemsName:ia.totalItemsName,limitParamName:ia.limitParamName,hasAxiosRequestConfig:e.options.axiosRequestConfig,axiosRequestConfigName:dr,axiosRequestConfigType:wt})})}o(z3,"registerGenerateInfiniteQueryHelper");function K3(e){Ce.default.registerHelper("genQueryJsDocs",(t,r)=>ke("query-js-docs")({endpoint:t,query:r.hash.query,mutation:r.hash.mutation,infiniteQuery:r.hash.infiniteQuery,hasMutationEffects:e.options.mutationEffects,mutationEffectsType:Wn.optionsType}))}o(K3,"registerGenerateQueryJsDocsHelper");function Q3(){Ce.default.registerHelper("genCaslAbilityType",e=>ke("casl-ability-type")({endpoint:e,abilityTupleType:ft.abilityTuple}))}o(Q3,"registerGenerateCaslAbilityTypeHelper");function W3(){Ce.default.registerHelper("genCaslAbilityFunction",e=>ke("casl-ability-function")({endpoint:e}))}o(W3,"registerGenerateCaslAbilityFunctionHelper");function Y3(){Ce.default.registerHelper("genCaslAbilityQuery",e=>ke("casl-ability-query")({endpoint:e}))}o(Y3,"registerGenerateCaslAbilityQueryHelper");var gi=Xe(Kt());function xP(){J3(),eq(),tq(),X3(),rq()}o(xP,"registerQueryHbsHelpers");function J3(){gi.default.registerHelper("queryName",(e,t)=>oa(e,t.hash.mutation))}o(J3,"registerQueryNameHelper");function X3(){gi.default.registerHelper("infiniteQueryName",aS)}o(X3,"registerInfiniteQueryNameHelper");function eq(){gi.default.registerHelper("isQuery",Pe)}o(eq,"registerIsQueryHelper");function tq(){gi.default.registerHelper("isMutation",xt)}o(tq,"registerIsMutationHelper");function rq(){gi.default.registerHelper("isInfiniteQuery",e=>Jn(e))}o(rq,"registerIsInfiniteQueryHelper");var un=Xe(Kt());function wP(e){nq(e.options),iq(e),oq(e),sq(),aq(),cq(e)}o(wP,"registerZodHbsHelpers");function nq(e){un.default.registerHelper("zodInferedType",t=>_o(t,e))}o(nq,"registerInferedTypeHelper");function iq(e){un.default.registerHelper("importedZodSchemaName",t=>OS(e,t))}o(iq,"registerImportedZodSchemaNameHelper");function oq(e){un.default.registerHelper("importedZodSchemaInferedType",t=>br(e,t))}o(oq,"registerImportedZodSchemaInferedTypeHelper");function sq(){un.default.registerHelper("zodSchemaType",e=>xS(e))}o(sq,"registerZodSchemaTypeHelper");function aq(){un.default.registerHelper("zodSchemaDescription",e=>wS(e))}o(aq,"registerZodSchemaDescriptionHelper");function cq(e){un.default.registerHelper("zodSchemaPropertyDescriptions",(t,r)=>IS(e,t,r))}o(cq,"registerZodSchemaPropertyDescriptionsHelper");var AP=Xe(Kt());function IP(){uq()}o(IP,"registerImportsHbsHelpers");function uq(){AP.default.registerHelper("importNames",(e,t)=>[...t?[t]:[],...e?[`{ ${e.join(", ")} }`]:[]].join(", "))}o(uq,"registerBindingsHelper");function we(e,t){let r=fd(t);return EP(),IP(),wP(e),$P(e),xP(),PP(),OP(e),dd.default.compile(r)}o(we,"getHbsTemplateDelegate");function ke(e){let t=fd(`partials/${e}`);return dd.default.compile(t)}o(ke,"getHbsPartialTemplateDelegate");function TP({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={bindings:[ft.abilityTuple,...i?[ft.forcedSubject,ft.subject]:[]],from:vf.from},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=_r({resolver:e,tag:r,zodSchemasAsTypes:Le(a)});return we(e,"acl")({caslAbilityTupleImport:s,modelsImports:c,includeNamespace:e.options.tsNamespaces,namespace:G({type:"acl",tag:r,options:e.options}),endpoints:n})}o(TP,"generateAcl");function RP(e,t){if(!t||t.length===0)return;let r={bindings:[ft.pureAbility],from:vf.from},n=MS({tags:t,entityName:Io,getAliasEntityName:ba,type:"acl",options:e.options}),i=t.map(a=>G({type:"acl",tag:a,options:e.options}));return we(e,"app-acl")({caslAbilityTupleImport:r,imports:n,allAbilities:Io,includeNamespace:e.options.tsNamespaces,tags:t,namespaces:i})}o(RP,"generateAppAcl");function NP({resolver:e,data:t,tag:r=""}){var y;let n=(y=t.get(r))==null?void 0:y.endpoints;if(!n||n.length===0)return;let i={bindings:[uo],from:FS(e.options)},s=n.some(v=>v.parameters.some(S=>S.parameterSortingEnumSchemaName)),a={bindings:[Ot.name],from:US(e.options)},c=e.options.axiosRequestConfig,u=c,l={bindings:c?[wt]:[],from:aa.from},f=n.map(v=>v.response),p=f.some(v=>!Oe(v)),d=n.reduce((v,S)=>[...v,...S.parameters],[]),m=_r({resolver:e,tag:r,zodSchemas:Le([...f.filter(Oe),...d.map(v=>v.parameterSortingEnumSchemaName).filter(sS)]),zodSchemasAsTypes:Le(d.map(v=>v.zodSchema).filter(Oe))});return we(e,"endpoints")({appRestClientImport:i,hasAxiosImport:u,axiosImport:l,hasZodImport:p,zodImport:Yn,hasZodExtendedImport:s,zodExtendedImport:a,modelsImports:m,includeNamespace:e.options.tsNamespaces,namespace:G({type:"endpoints",tag:r,options:e.options}),restClientName:uo,hasAxiosRequestConfig:c,axiosRequestConfigName:dr,axiosRequestConfigType:wt,endpoints:n})}o(NP,"generateEndpoints");function CP(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),s=e.getExtractedEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...s]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(kP(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}o(CP,"getZodSchemaRefs");function kP(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&kP(n).forEach(s=>r.add(s)),r},new Set)}o(kP,"getSchemaRefs");function jP({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,...CP(e,f)],[]).filter(l=>!n[l]),s=_r({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:ES(p),schemaObj:e.getZodSchemaObj(f)}}},{});return we(e,"models")({zodImport:Yn,modelsImports:s,includeNamespace:e.options.tsNamespaces,namespace:G({type:"models",tag:r,options:e.options}),tag:r,zodSchemasData:a})}o(jP,"generateModels");function qP({resolver:e,data:t,tag:r=""}){var b;let n=(b=t.get(r))==null?void 0:b.endpoints;if(!n||n.length===0)return;let i=e.options.axiosRequestConfig,s=n.some(({mediaUpload:w})=>w),a=i||s,c={defaultImport:s?Xp:void 0,bindings:i?[wt]:[],from:aa.from},u=n.filter(Pe),l=u.filter(w=>Jn(w)),f=n.filter(xt),p={bindings:[...u.length>0?[pt.query]:[],...e.options.infiniteQueries&&l.length>0?[pt.infiniteQuery]:[],...f.length>0?[pt.mutation]:[]],from:Xv.from},d=e.options.mutationEffects,m={bindings:[Qp],from:VS(e.options)},g=d&&f.length>0,y={bindings:[...f.length>0?[Wn.optionsType,Wn.hookName]:[]],from:BS(e.options)},v={bindings:[...u.length>0?[Qs.query]:[],...e.options.infiniteQueries&&l.length>0?[Qs.infiniteQuery]:[],...f.length>0?[Qs.mutation]:[]],from:HS(e.options)},S=n.reduce((w,N)=>[...w,...N.parameters],[]),_=_r({resolver:e,tag:r,zodSchemasAsTypes:Le(S.map(w=>w.zodSchema).filter(Oe))}),$=qS({tag:r,endpoints:n,options:e.options});return we(e,"queries")({hasAxiosImport:a,axiosImport:c,queryImport:p,hasMutationEffects:d,queryModulesImport:m,hasMutationEffectsImport:g,mutationEffectsImport:y,queryTypesImport:v,modelsImports:_,endpointsImports:$,includeNamespace:e.options.tsNamespaces,tag:r,namespace:G({type:"queries",tag:r,options:e.options}),queriesModuleName:ho,queryModuleEnum:Qp,endpoints:n,queryEndpoints:u})}o(qP,"generateQueries");function MP(e){return we(e,"app-rest-client")({appRestClientName:uo,baseUrl:e.getBaseUrl()})}o(MP,"generateAppRestClient");function DP({resolver:e,data:t}){let r=[];return t.forEach((i,s)=>{var c;let a=(c=t.get(s))==null?void 0:c.endpoints;!a||a.length===0||r.push({tag:s,namespace:G({type:"queries",tag:s,options:e.options})})}),we(e,"query-modules")({modules:r})}o(DP,"generateQueryModules");function LP(e){return we(e,"zod")({zodImport:Yn,zodExtension:Ot.name,sortingString:Ot.properties.sortingString,parse:Ot.properties.parse,errorHandler:co.ErrorHandler,sharedErrorHandler:co.SharedErrorHandler,errorHandlingImport:{...Gv,from:e.options.errorHandlingImportPath}})}o(LP,"generateZod");function FP(e,t){let r=RP(t,e);return r?[{fileName:Or({output:t.options.output,fileName:ni(Pb)}),content:r}]:[]}o(FP,"getAclFiles");function HP(e,t){return t.options.mutationEffects?[...UP([Zv,ea],t),{fileName:Or({output:t.options.output,fileName:ni(Xs)}),content:DP({resolver:t,data:e})}]:[]}o(HP,"getMutationEffectsFiles");function VP(e){return e.options.standalone?[...UP(Object.values(Ys),e),{fileName:Or({output:e.options.output,fileName:ni(Js)}),content:MP(e)}]:[]}o(VP,"getStandaloneFiles");function BP(e,t){if(!Array.from(e.values()).some(({endpoints:i})=>i.some(s=>s.parameters.some(a=>a.parameterSortingEnumSchemaName))))return[];let n=LP(t);return n?[{fileName:Or({output:t.options.output,fileName:ni(ta)}),content:n}]:[]}o(BP,"getZodExtendedFiles");function UP(e,t){return e.reduce((r,n)=>[...r,lq(n,t)],[])}o(UP,"getAssetFiles");function lq(e,t){let r=ni(e);return{fileName:Or({output:t.options.output,fileName:r}),content:_P(r)}}o(lq,"getAssetFile");function GP(e,t){let r=t.standalone&&t.importPath==="ts"?"relative":t.importPath,n={...fo,...t,importPath:r},{resolver:i,data:s}=Sa(e,n),a=[],c=[],u=["models","endpoints","queries","acl"],l={models:jP,endpoints:NP,queries:qP,acl:TP};return s.forEach((f,p)=>{u.forEach(d=>{let m=l[d]({resolver:i,data:s,tag:p});if(m){let g=Or({output:n.output,fileName:LS({tag:p,type:d,options:n})});a.push({fileName:g,content:m}),d==="acl"&&c.push(p)}})}),a.push(...FP(c,i),...HP(s,i),...BP(s,i),...VP(i)),a}o(GP,"generateCodeFromOpenAPIDoc");async function pq({input:e,options:t}){let r={...fo,...t},n=await md.default.bundle(e);return await _b(n,r)}o(pq,"getGenerateMetadata");async function fq({input:e,options:t}){let r={...fo,...t},n=await md.default.bundle(e);return GP(n,r)}o(fq,"getGenerateFilesData");0&&(module.exports={getGenerateFilesData,getGenerateMetadata});
76
+ `)}return t.assign(`z.union([${e.oneOf.map(c=>Q({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(pC,"getOneOfZodSchema");function fC({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!$e(e)||!Array.isArray(e.type)))return e.type.length===1?Q({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(s=>Q({schema:{...e,type:s},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(fC,"getArrayZodSchema");function dC({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!$e(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=Q({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let s=e.anyOf.map(a=>Q({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${s}])`)}o(dC,"getAnyOfZodSchema");function mC({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!$e(e)||!e.allOf)return;if(e.allOf.length===1){let p=Q({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}=cS(e),u=a.map(p=>{let d=Q({schema:p,resolver:r,meta:n,tag:i});return r&&s(p,r.getSchemaByRef.bind(r)),d});c.required.length&&u.push(Q({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(mC,"getAllOfZodSchema");function hC({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!$e(e))return;let s=e.type?e.type.toLowerCase():void 0;if(s&&Bt(s)){if(e.enum){if(s==="string")return gC({schema:e,zodSchema:t,resolver:r,meta:n,tag:i});if(e.enum.some(a=>typeof a=="string"))return t.assign("z.never()");if(e.enum.length===1){let a=e.enum[0];return t.assign(`z.literal(${a===null?"null":a})`)}return t.assign(`z.union([${e.enum.map(a=>`z.literal(${a===null?"null":a})`).join(", ")}])`)}return t.assign(ye(s).with("integer",()=>"z.number()").with("string",()=>ye(e.format).with("binary",()=>ra).otherwise(()=>na)).otherwise(a=>`z.${a}()`))}}o(hC,"getPrimitiveZodSchema");function gC({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){var l;if(!$e(t))return;let s=oi(t);if(!e.options.extractEnums)return r.assign(s);let a=e.getEnumZodSchemaDataByCode(s);if(a)return((l=r.meta.parent)==null?void 0:l.ref)===e.getRefByZodSchemaName(a.zodSchemaName)?r.assign(a.code):new wo({$ref:e.getRefByZodSchemaName(a.zodSchemaName)},e,n).inherit(r).assign(s);let c=e.getExtractedEnumZodSchemaDataByCode(s);if(!c)return r.assign(s);if(!c.zodSchemaName||!c.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${s}`);let u=e.options.tsNamespaces&&c.tag!==i?`${G({type:"models",tag:c.tag,options:e.options})}.`:"";return r.assign(`${u}${c.zodSchemaName}`)}o(gC,"getEnumZodSchema");function oi(e){var t;return`${po}([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}o(oi,"getEnumZodSchemaCode");function tb(e){return`${po}([${e.map(t=>`"${t}"`).join(", ")}])`}o(tb,"getEnumZodSchemaCodeFromEnumNames");function si({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var c;let s=t.getCodeString();if((!ue(s)||t.ref===void 0)&&r){if(t.complexity<sf)return s;let u=Ct(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 se(0,n.getSchemaByRef(t.ref))<sf?n.getCodeByZodSchemaName(s):s;if(t.ref)return n.getZodSchemaNameByRef(t.ref);throw new Error(`Invalid ref: ${t.ref}`)}o(si,"resolveZodSchemaName");function rb({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=yC({resolver:e,endpoint:t,acl:n,name:c});return u?[...a,u]:(e.validationErrors.push(YS(c,r,t)),a)},[]);return{...i,conditionsTypes:s}})}o(rb,"getEndpointAcl");function yC({resolver:e,endpoint:t,acl:r,name:n}){var p,d,m,g,y,v,S,b,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} ${fr(f.type)} parameter`,l++;else{let _=t.parameters.find(({bodyObject:je})=>!!je),N=Object.keys(((y=_==null?void 0:_.bodyObject)==null?void 0:y.content)??{}).find(Qe);N&&(a=(b=(S=(v=_==null?void 0:_.bodyObject)==null?void 0:v.content)==null?void 0:S[N])==null?void 0:b.schema,u=`${Ee(t)?"query":"mutation"} data`)}for(;a&&l<s.length;){let _=e.resolveObject(a);a=(P=Object.entries(_.properties??{}).find(([N])=>N===s[l]))==null?void 0:P[1],c=(($=_.required)==null?void 0:$.includes(s[l]))??!1,l++}if(a)return{name:n,type:D(a)?void 0:a.type,zodSchemaName:D(a)?e.getZodSchemaNameByRef(a.$ref):void 0,required:c,info:u}}o(yC,"getEndpointAclConditionPropertyType");function nb({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(Qe);if(!c)return;let u=(g=(m=s.content)==null?void 0:m[c])==null?void 0:g.schema;if(!u)return;let l=Q({schema:u,resolver:e,meta:{isRequired:s.required??!0},tag:i}),f=e.resolveObject(u),p=si({schema:f,zodSchema:l,fallbackName:fa(Yr(r,n,i)),resolver:e,tag:i}),d=kt({schema:f,meta:l.meta,options:e.options});return{endpointParameter:{name:sa,type:"Body",description:s.description,zodSchema:p+d,bodyObject:s},requestFormat:c}}o(nb,"getEndpointBody");function ib({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let s=e.resolveObject(t);if(!pS.includes(s.in))return;let a={};if(s.content){let m=Object.keys(s.content??{}),g=m.find(Qe);if(!g)throw new Error(`Unsupported media type for param ${s.name}: ${m.join(", ")}`);let y=s.content[g];if(!y)throw new Error(`No content with media type for param ${s.name}: ${g}`);a=(y==null?void 0:y.schema)??y}else s.schema&&(a=s.schema);e.options.withDescription&&a&&(a.description=(s.description??"").trim());let c=ES(Yr(r,n,i),s.name),u;if(bS(s)){let m=So(c,e.options.enumSuffix,e.options.schemaSuffix),g=tb(s["x-enumNames"]);e.setZodSchema(m,g,i),u=m}let l=Q({schema:a,resolver:e,meta:{isRequired:s.in==="path"?!0:s.required??!1},tag:i}),f=e.resolveObject(a),p=kt({schema:f,meta:l.meta,options:e.options}),d=si({schema:f,zodSchema:l.assign(l.getCodeString(i)+p),fallbackName:c,resolver:e,tag:i});return{name:ye(s.in).with("path",()=>uf(s.name)).otherwise(()=>s.name),type:ye(s.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:d,parameterObject:s,parameterSortingEnumSchemaName:u}}o(ib,"getEndpointParameter");function sb(e){var r,n,i,s,a;let t=[];for(let c in e.openApiDoc.paths){if(Wr(c,e.options))continue;let u=e.openApiDoc.paths[c],l=en(u,Kr),f=ob(u.parameters??[]);for(let p in l){let d=l[p];if(!d||ii(d,e.options))continue;let m=d.operationId&&d.operationId!==At(d.operationId);d.operationId&&m&&e.validationErrors.push(zS(d.operationId));let g=Object.entries({...f,...ob(d.parameters??[])}).map(([,_])=>_),y=Oo({path:c,method:p,operation:d,operationsByTag:e.operationsByTag,options:e.options}),v=e.operationNames.filter(_=>_===y).length<=1,S=Sr(d,e.options),b={method:p,path:SS(c),operationName:y,description:d.description,summary:d.summary,tags:(r=d.tags)==null?void 0:r.map(Nt),requestFormat:"application/json",parameters:[],response:"",errors:[],responseStatusCodes:[],mediaUpload:!!d["x-media-upload"],mediaDownload:!!d["x-media-download"]};if(d.requestBody){let _=nb({resolver:e,operation:d,operationName:y,isUniqueOperationName:v,tag:S});_&&(b.parameters.push(_.endpointParameter),b.requestFormat=_.requestFormat)}for(let _ of g){let w=ib({resolver:e,param:_,operationName:y,isUniqueOperationName:v,tag:S});w&&b.parameters.push(w)}let P=vC(b);P.forEach(_=>{b.parameters.push(_)}),P.length>0&&e.validationErrors.push(KS(P,c));for(let _ in d.responses){b.responseStatusCodes.push(_);let w=e.resolveObject(d.responses[_]),je=Object.keys(w.content??{}).find(ti),pe,J;if(je?(b.responseFormat=je,pe=(i=(n=w.content)==null?void 0:n[je])==null?void 0:i.schema):(J=lo,_==="200"&&e.validationErrors.push(JS({received:"200",expected:"204"},d,b))),pe){let te=Q({schema:pe,resolver:e,meta:{isRequired:!0},tag:S}),Se=e.resolveObject(pe);J=si({schema:Se,zodSchema:te,fallbackName:te.ref?void 0:da({statusCode:_,operationName:y,isUniqueOperationName:v,tag:S}),resolver:e,tag:S})+kt({schema:Se,meta:te.meta,options:e.options})}if(J){let te=Number(_);vo(te)&&!b.response?(b.response=J,b.responseObject=w,b.responseDescription=w.description):_!=="default"&&pa(te)&&b.errors.push({zodSchema:J,status:te,description:w.description})}}b.response||(b.response=lo);let $=Object.keys(d.responses).map(Number).filter(vo);$.length>1&&e.validationErrors.push(XS($.map(String),d,b)),b.acl=rb({resolver:e,endpoint:b,operation:d}),(s=d.security)!=null&&s[0].Authorization&&!b.responseStatusCodes.includes("401")&&e.validationErrors.push(df("401",d,b)),(a=b.acl)!=null&&a[0]&&!b.responseStatusCodes.includes("403")&&e.validationErrors.push(df("403",d,b)),t.push(b)}}return t}o(sb,"getEndpointsFromOpenAPIDoc");function ob(e){return Object.fromEntries((e??[]).map(t=>[D(t)?t.$ref:t.name,t]))}o(ob,"getParameters");function vC(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=>SC(r))}o(vC,"getMissingPathParameters");function SC(e){return{name:e,type:"Path",zodSchema:na,parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}o(SC,"getPathParameterFromName");function ab(e,t){let r=bC(e,t),n=_C(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}o(ab,"getOpenAPISchemaDependencyGraph");function bC(e,t){let r={},n={};return e.forEach(i=>PC({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}o(bC,"getRefsDependencyGraph");function _C(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(_C,"getDeepRefsDependencyGraph");function PC({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(PC,"getSchemaRefsDependencyGraph");function ya(e,t,r){let n=[];return Oe(t,{onSchema:o(s=>{s.type==="reference"?n.push(s.schema):D(s.parentSchema)&&(s.type==="property"?e.validationErrors.push(xo(`${r} has both reference and properties`)):s.type==="additionalProperties"?e.validationErrors.push(xo(`${r} has both reference and additionalProperties`)):s.type==="array"?e.validationErrors.push(xo(`${r} is both reference and array schema`)):s.type==="composite"&&e.validationErrors.push(xo(`${r} has both reference and composite keyword`)))},"onSchema")}),n}o(ya,"getSchemaRefObjs");function cb(e,t){return t.map(i=>Qr(i.$ref)).reduce((i,s)=>{let a=e.dependencyGraph.deepDependencyGraph[s];return[...i,s,...Array.from(a??[])]},[])}o(cb,"getDeepSchemaRefObjs");function ub(e){e.extractedEnumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(s=>s[s.length-1]).filter(Boolean),i=Yp(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=So(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!hf(e);)EC(e,t+2),t++;if(hf(e)||e.extractedEnumZodSchemaData.filter(n=>!lb(e,n)).forEach(n=>{n.zodSchemaName=So(n.meta.zodSchemaNameSegments[0].map(i=>gf(U(i))).join(""),e.options.enumSuffix,e.options.schemaSuffix)}),!hf(e))throw new Error("Failed to resolve unique names for enum zod schemas")}o(ub,"resolveExtractedEnumZodSchemaNames");function hf(e){return e.extractedEnumZodSchemaData.every(t=>lb(e,t))}o(hf,"allExtractedEnumZodSchemaNamesAreUnique");function EC(e,t){e.extractedEnumZodSchemaData.forEach(r=>{let n=e.extractedEnumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&$C(n,t)})}o(EC,"additionalResolveExtractedEnumZodSchemaName");function $C(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=[gf(U(n[0])),r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=i}else{let i=Yp(n),s=[i?gf(U(i)):"",r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=s}})}o($C,"suffixWithPreviousSegmentName");function lb(e,t){return e.extractedEnumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length===1}o(lb,"isUnique");function gf(e){return e.replace(/(Dto|DTO|Response|Request)/g,"")}o(gf,"sanitizeName");function pb(e){e.extractedEnumZodSchemaData.forEach(t=>{let r=Le(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}o(pb,"resolveExtractedEnumZodSchemaTags");function Ao({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&fb({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"&&a.push(s.propertyName),fb({schema:s.schema,nameSegments:[...a],...n})},"onSchema")})}o(Ao,"updateExtractedEnumZodSchemaData");function fb({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:s=[]}){if(!t||D(t)||!t.enum)return;let a=oi(t),c=e.extractedEnumZodSchemaData.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.extractedEnumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[s],tags:[...i],schemaRefs:r?[r]:[],schemas:t?[t]:[]}}),e.validationErrors.push(QS(r?`${ei(r)}.${s[s.length-1]}`:n??s.join(".")))}o(fb,"handleExtractedEnumZodSchemaDataUpdate");function db(e){var n;let t={},r={};return Object.entries(((n=e.openApiDoc.components)==null?void 0:n.schemas)??{}).forEach(([i,s])=>{let a=e.getSchemaDataByName(i);if(e.options.excludeRedundantZodSchemas&&(!a||a.deepRefOperations.length===0&&a.tags.length===0))return;let c=Ct(i,e.options.schemaSuffix);if(t[c])return;let u=e.getTagByZodSchemaName(c),l=e.resolveObject(s);l.enum?r[c]=oi(l):t[c]=Q({schema:s,resolver:e,tag:u}).getCodeString(u)}),{zodSchemas:t,enumZodSchemas:r}}o(db,"getZodSchemasFromOpenAPIDoc");function mb(e){var r;let t=[];return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let s=Ct(n,e.options.schemaSuffix),a=e.resolveObject(i);!t.find(c=>c.zodSchemaName===s)&&a.enum&&t.push({zodSchemaName:s,code:oi(a)})}),t}o(mb,"getEnumZodSchemasFromOpenAPIDoc");var yf=class yf{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=ab(this.schemaRefs,this.getSchemaByRef.bind(this)),this.enumZodSchemas=mb(this),this.operationsByTag=GS(t,r),this.operationNames=US(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];dependencyGraph;enumZodSchemas=[];extractedEnumZodSchemaData=[];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(mS)}getSchemaByRef(t){return this.docSchemas[ei(t)]}getSchemaDataByName(t){return this.schemaData.find(r=>r.name===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(Qr(t)))==null?void 0:n.zodSchemaName)??((i=this.extractedEnumZodSchemaData.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.extractedEnumZodSchemaData.find(f=>f.zodSchemaName===t);if(r)return Nt(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=Le(i,s),c=a.length===1?a[0]:this.options.defaultTag;return Nt(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.enumZodSchemas.find(r=>r.code===t)}getExtractedEnumZodSchemaDataByCode(t){return this.extractedEnumZodSchemaData.find(r=>r.code===t)}getExtractedEnumZodSchemaNamesReferencedBySchemaRef(t){return this.extractedEnumZodSchemaData.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}),{})}getExtractedEnumZodSchemas(){return this.extractedEnumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return D(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=[],i=[]){var s,a;return i.includes(r)?[]:(i.push(r),(s=this.dependencyGraph.refsDependencyGraph[r])!=null&&s.has(t)?[...n,r,t]:Array.from(((a=this.dependencyGraph.refsDependencyGraph[r])==null?void 0:a.values())??[]).map(c=>{let u=this.getCircularSchemaChain(t,c,n,i);return u.length>0?[r,...u]:u}).flat())}getBaseUrl(){var r,n;let t=(n=(r=this.openApiDoc.servers)==null?void 0:r[0])==null?void 0:n.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.getExtractedEnumZodSchemaDataByName(t);if(i)return i.meta.schemas.reduce((s,a)=>({...s,...this.resolveObject(a)}),{})}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getExtractedEnumZodSchemaDataByName(t){return this.extractedEnumZodSchemaData.find(({zodSchemaName:r})=>r===t)}initialize(){var t,r,n,i,s;this.schemaRefs.forEach(a=>{let c=Qr(a),u=ei(c),l=Ct(u,this.options.schemaSuffix);this.schemaData.push({ref:c,name:u,zodSchemaName:l,tags:[],deepRefOperations:[]})});for(let a in this.openApiDoc.paths){if(Wr(a,this.options))continue;let c=this.openApiDoc.paths[a],u=en(c,Kr);for(let l in u){let f=u[l];if(!f||ii(f,this.options))continue;let p=Sr(f,this.options),d=Oo({path:a,method:l,operation:f,operationsByTag:this.operationsByTag,options:this.options}),m=this.operationNames.filter(S=>S===d).length<=1,g=oe(Yr(d,m,p)),y=[];if((t=f.parameters)==null||t.map(S=>{let b=S,P=b.schema,$=`Operation ${f.operationId??a} parameter ${b.name}`;y.push(...ya(this,P,$)),this.options.extractEnums&&Ao({resolver:this,schema:P,schemaInfo:$,tags:[p],nameSegments:[g,b.name],includeSelf:!0})}),f.requestBody){let S=this.resolveObject(f.requestBody),P=Object.keys(S.content??{}).find(Qe);if(P){let $=(n=(r=S.content)==null?void 0:r[P])==null?void 0:n.schema,_=`Operation ${f.operationId} request body`;y.push(...ya(this,$,_)),this.options.extractEnums&&Ao({resolver:this,schema:$,schemaInfo:_,tags:[p],nameSegments:[fa(g)]})}}for(let S in f.responses){let b=this.resolveObject(f.responses[S]),$=Object.keys(b.content??{}).find(ti);if($){let _=(s=(i=b.content)==null?void 0:i[$])==null?void 0:s.schema,w=`Operation ${f.operationId} response body`;y.push(...ya(this,_,w)),this.options.extractEnums&&Ao({resolver:this,schema:_,schemaInfo:w,tags:[p],nameSegments:[da({statusCode:S,operationName:d,isUniqueOperationName:m,tag:p})]})}}cb(this,y).forEach(S=>{let b=this.getSchemaDataByRef(S);b&&(b.tags.push(p),b.deepRefOperations.push(f))})}}this.options.extractEnums&&(this.schemaRefs.forEach(a=>{var u;let c=Qr(a);Ao({resolver:this,schema:this.getSchemaByRef(c),schemaRef:c,tags:((u=this.getSchemaDataByRef(c))==null?void 0:u.tags)??[],nameSegments:[ei(c)]})}),pb(this),this.handleDuplicateEnumZodSchemas(),ub(this))}handleDuplicateEnumZodSchemas(){let t=this.enumZodSchemas.map(({code:n})=>n),r=this.enumZodSchemas.filter(({code:n})=>t.includes(n));this.schemaData.forEach(n=>{var a,c;let i=(a=r.find(({zodSchemaName:u})=>u===n.zodSchemaName))==null?void 0:a.code;if(!i)return;let s=this.extractedEnumZodSchemaData.find(({code:u})=>u===i);!s||((c=this.getEnumZodSchemaDataByCode(s.code))==null?void 0:c.zodSchemaName)!==n.zodSchemaName||(n.tags.push(...s.meta.tags??[]),s.meta.schemaRefs.forEach(u=>{this.dependencyGraph.refsDependencyGraph[u]||(this.dependencyGraph.refsDependencyGraph[u]=new Set),this.dependencyGraph.refsDependencyGraph[u].add(n.ref),this.dependencyGraph.deepDependencyGraph[u]||(this.dependencyGraph.deepDependencyGraph[u]=new Set),this.dependencyGraph.deepDependencyGraph[u].add(n.ref)}))}),this.extractedEnumZodSchemaData.splice(0,this.extractedEnumZodSchemaData.length,...this.extractedEnumZodSchemaData.filter(({code:n})=>!t.includes(n)))}};o(yf,"SchemaResolver");var va=yf;function hb(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(hb,"topologicalSort");function gb(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(gb,"sortObjKeysFromArray");function yb(e,t){let r=hb(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return gb(t,r)}o(yb,"sortZodSchemasByTopology");function vb(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let s=e.getRefByZodSchemaName(n);s&&e.isSchemaCircular(s)?(e.validationErrors.push(WS(e.getCircularSchemaChain(s).join(" -> "))),r[Ct(n,e.options.schemaSuffix)]=`z.lazy(() => ${i})`):r[Ct(n,e.options.schemaSuffix)]=i}),r}o(vb,"wrapCircularZodSchemas");function Sa(e,t){let r=new va(e,t),n=sb(r),i=db(r),s={...i.zodSchemas,...r.getZodSchemas(),...i.enumZodSchemas};return s=vb(r,s),s=yb(r,s),s={...r.getExtractedEnumZodSchemas(),...s},{resolver:r,data:OC({resolver:r,endpoints:n,zodSchemas:s,options:t})}}o(Sa,"getDataFromOpenAPIDoc");function OC({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(s=>{let a=Eo(s,n);Sb(a,i).endpoints.push(s)}),Object.entries(r).forEach(([s,a])=>{let c=e.getTagByZodSchemaName(s);c&&(Sb(c,i).zodSchemas[s]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}o(OC,"splitDataByTags");function Sb(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}o(Sb,"getTagElement");async function bb(e,t){let{resolver:r,data:n}=await Sa(e,t),i=[],s=[];return n.forEach(({endpoints:c,zodSchemas:u},l)=>{Object.keys(u).forEach(f=>{let p=r.getRefByZodSchemaName(f),d=p?r.getSchemaByRef(p):r.getSchemaByCompositeZodSchemaName(f),m=ri({zodSchemaName:f,schema:d,resolver:r}),g;d&&(g=Jr({schema:d,parentTypes:[m],resolver:r})),i.push({...m,metaType:"primitive",...g})}),c.forEach(f=>{let p="queries",d=Nt(l);s.push({name:oa(f),importPath:Xr({type:p,tag:d,includeTagDir:!0,options:t}),namespace:t.tsNamespaces?G({type:p,tag:d,options:t}):void 0,isQuery:Ee(f),isMutation:xt(f),params:xC({resolver:r,endpoint:f}),response:wC({resolver:r,endpoint:f})})})}),{openApiDoc:e,models:i,queries:s}}o(bb,"getMetadataFromOpenAPIDoc");function xC({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(Qe);p&&(n=e.resolveObject((u=(c=r.bodyObject.content)==null?void 0:c[p])==null?void 0:u.schema))}let i=ri({zodSchemaName:r.zodSchema,schema:n,resolver:e}),s;return n&&(s=Jr({schema:n,parentTypes:[i],resolver:e})),{name:At(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(xC,"getQueryMetadataParams");function wC({resolver:e,endpoint:t}){var a,c,u,l;let r,n=Object.keys(((a=t.responseObject)==null?void 0:a.content)??{}).find(ti);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=ri({zodSchemaName:t.response,schema:r,resolver:e}),s;return r&&(s=Jr({schema:r,parentTypes:[i],resolver:e})),{...i,metaType:"primitive",...s}}o(wC,"getQueryMetadataResponse");var _b={fileName:"acl/app.ability",extension:"ts"},Io="AllAbilities",ft={abilityTuple:"AbilityTuple",pureAbility:"PureAbility",forcedSubject:"ForcedSubject",subject:"subject"},vf={bindings:[ft.abilityTuple,ft.pureAbility,ft.forcedSubject,ft.subject],from:"@casl/ability"};var Pb=o(e=>`Use${U(oe(e.operationName))}Ability`,"getAbilityTypeName"),Eb=o(e=>`canUse${U(oe(e.operationName))}`,"getAbilityFunctionName"),$b=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].action},"getAbilityAction"),Ob=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].subject},"getAbilitySubject"),xb=o(e=>{var t;return!!((t=Sf(e))!=null&&t.length)},"hasAbilityConditions"),Sf=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].conditionsTypes},"getAbilityConditionsTypes"),wb=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].description},"getAbilityDescription"),ba=o(e=>`${U(e)}${Io}`,"getTagAllAbilitiesName");var dd=Xe(Kt());var pd=Xe(require("fs")),vP=Xe(require("path"));function SP(e){return pd.default.readFileSync(vP.default.join(__dirname,`../${e}`),"utf-8")}o(SP,"readFileSync");function fd(e){let t=`src/generators/templates/${e}.hbs`;return SP(t)}o(fd,"readHbsTemplateSync");function bP(e){let t=`src/assets/${e}`;return SP(t)}o(bP,"readAssetSync");function Or({output:e,fileName:t}){return`${e}/${t}`}o(Or,"getOutputFileName");var Qt=Xe(Kt());function _P(){S3(),b3(),_3(),P3(),E3(),$3(),O3(),x3()}o(_P,"registerAclHbsHelpers");function S3(){Qt.default.registerHelper("abilityTypeName",Pb)}o(S3,"registerAbilityTypeNameHelper");function b3(){Qt.default.registerHelper("abilityFunctionName",Eb)}o(b3,"registerAbilityFunctionNameHelper");function _3(){Qt.default.registerHelper("ablityAction",$b)}o(_3,"registerAbilityActionHelper");function P3(){Qt.default.registerHelper("ablitySubject",Ob)}o(P3,"registerAbilitySubjectHelper");function E3(){Qt.default.registerHelper("hasAbilityConditions",xb)}o(E3,"registerHasAbilityConditionsHelper");function $3(){Qt.default.registerHelper("abilityConditionsTypes",Sf)}o($3,"registerAbilityConditionsTypesHelper");function O3(){Qt.default.registerHelper("abilityDescription",wb)}o(O3,"registerAbilityDescriptionHelper");function x3(){Qt.default.registerHelper("tagAllAbilitiesName",ba)}o(x3,"registerTagAllAbilitiesNameHelper");var Bo=Xe(Kt());function PP(){w3(),A3(),I3(),T3()}o(PP,"registerCommonHbsHelpers");function w3(){Bo.default.registerHelper("isEqual",(e,t)=>e===t)}o(w3,"registerIsEqualHelper");function A3(){Bo.default.registerHelper("commaSeparated",e=>e.join(", "))}o(A3,"registerCommaSeparatedListHelper");function I3(){Bo.default.registerHelper("addAsteriskAfterNewLine",e=>e.replace(/\n/g,`
77
+ *`))}o(I3,"registerAddAsteriskAfterNewLineHelper");function T3(){Bo.default.registerHelper("jsonStringify",e=>JSON.stringify(e,null,2))}o(T3,"registerJsonStringifyHelper");var xr=Xe(Kt());function EP(e){R3(),N3(e.options),j3(e),C3(),k3(),q3(e),M3()}o(EP,"registerEndpointsHbsHelpers");function R3(){xr.default.registerHelper("endpointName",Po)}o(R3,"registerEndpointNameHelper");function N3(e){xr.default.registerHelper("importedEndpointName",t=>RS(t,e))}o(N3,"registerImportedEndpointNameHelper");function C3(){xr.default.registerHelper("endpointPath",NS)}o(C3,"registerEndpointPathHelper");function k3(){xr.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}o(k3,"registerEndpointBodyHelper");function j3(e){xr.default.registerHelper("endpointParams",(t,r)=>$o(e,t,r.hash))}o(j3,"registerEndpointParamsHelper");function q3(e){xr.default.registerHelper("endpointArgs",(t,r)=>$o(e,t,r.hash).map(n=>n.name).join(", "))}o(q3,"registerEndpointArgsHelper");function M3(){xr.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&&$e(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(Qe);p&&(i=e.bodyObject.content[p],i.schema&&$e(i.schema)&&(n=i.schema))}if(n){let f=bo(n);t.push(...f)}return i!=null&&i.example&&t.push(`Example: \`${i.example}\``),t.join(". ")})}o(M3,"registerEndpointParamDescriptionHelper");var Ce=Xe(Kt());function $P(e){D3(),L3(),F3(),H3(e),V3(),B3(e),U3(e),G3(e),Z3(e),z3(e),K3(),Q3(),W3()}o($P,"registerPartialsHbsHelpers");function D3(){Ce.default.registerHelper("genModelJsDocs",(e,t,r)=>ke("model-js-docs")({name:e,zodSchema:t,tag:r}))}o(D3,"registerGenerateModelJsDocsHelper");function L3(){Ce.default.registerHelper("genImport",e=>ke("import")({import:e}))}o(L3,"registerImportHelper");function F3(){Ce.default.registerHelper("genEndpointParams",(e,t)=>ke("endpoint-params")({endpoint:e,options:t}))}o(F3,"registerGenerateEndpointParamsHelper");function H3(e){Ce.default.registerHelper("genEndpointConfig",t=>{let r=CS(t),n=e.options.axiosRequestConfig;return Object.keys(r).length===0?n?dr:"":ke("endpoint-config")({endpointConfig:r,hasAxiosRequestConfig:n,hasBlobResponse:t.response===ra,hasFileDownload:t.mediaDownload,axiosRequestConfigName:dr,generateParse:e.options.parseRequestParams})})}o(H3,"registerGenerateEndpointConfigHelper");function V3(){Ce.default.registerHelper("genEndpointParamParse",(e,t)=>{var r;return ke("endpoint-param-parse")({param:e,paramName:t,zodExtended:Ot.name,sortingString:Ot.properties.sortingString,parse:Ot.properties.parse,addOptional:!((r=e.parameterObject??e.bodyObject)!=null&&r.required)&&(e.parameterSortingEnumSchemaName||ue(e.zodSchema))})})}o(V3,"registerGenerateEndpointParamParseHelper");function B3(e){Ce.default.registerHelper("genQueryKeys",t=>t.length===0?"":ke("query-keys")({queryEndpoints:t,queriesModuleName:ho,generateInfiniteQueries:e.options.infiniteQueries}))}o(B3,"registerGenerateQueryKeysHelper");function U3(e){Ce.default.registerHelper("genQuery",t=>{if(!Ee(t))return;let r=e.options.axiosRequestConfig;return ke("query-use-query")({endpoint:t,queryHook:pt.query,hasQueryFn:$o(e,t).length>0||r,hasAxiosRequestConfig:r,axiosRequestConfigName:dr,axiosRequestConfigType:wt})})}o(U3,"registerGenerateQueryHelper");function G3(e){Ce.default.registerHelper("genMutation",(t,r)=>{if(!xt(t))return;let n=kS(t,r);return ke("query-use-mutation")({endpoint:t,queryHook:pt.mutation,queriesModuleName:ho,hasAxiosRequestConfig:e.options.axiosRequestConfig,axiosRequestConfigName:dr,axiosRequestConfigType:wt,hasMutationEffects:e.options.mutationEffects,mutationEffectsType:Wn.optionsType,updateQueryEndpoints:n})})}o(G3,"registerGenerateMutationHelper");function Z3(e){Ce.default.registerHelper("genInfiniteQuery",t=>{if(!(!e.options.infiniteQueries||!Jn(t)))return ke("query-use-infinite-query")({endpoint:t,infiniteQueryHook:pt.infiniteQuery,pageParamName:ia.pageParamName,totalItemsName:ia.totalItemsName,limitParamName:ia.limitParamName,hasAxiosRequestConfig:e.options.axiosRequestConfig,axiosRequestConfigName:dr,axiosRequestConfigType:wt})})}o(Z3,"registerGenerateInfiniteQueryHelper");function z3(e){Ce.default.registerHelper("genQueryJsDocs",(t,r)=>ke("query-js-docs")({endpoint:t,query:r.hash.query,mutation:r.hash.mutation,infiniteQuery:r.hash.infiniteQuery,hasMutationEffects:e.options.mutationEffects,mutationEffectsType:Wn.optionsType}))}o(z3,"registerGenerateQueryJsDocsHelper");function K3(){Ce.default.registerHelper("genCaslAbilityType",e=>ke("casl-ability-type")({endpoint:e,abilityTupleType:ft.abilityTuple}))}o(K3,"registerGenerateCaslAbilityTypeHelper");function Q3(){Ce.default.registerHelper("genCaslAbilityFunction",e=>ke("casl-ability-function")({endpoint:e}))}o(Q3,"registerGenerateCaslAbilityFunctionHelper");function W3(){Ce.default.registerHelper("genCaslAbilityQuery",e=>ke("casl-ability-query")({endpoint:e}))}o(W3,"registerGenerateCaslAbilityQueryHelper");var gi=Xe(Kt());function OP(){Y3(),X3(),eq(),J3(),tq()}o(OP,"registerQueryHbsHelpers");function Y3(){gi.default.registerHelper("queryName",(e,t)=>oa(e,t.hash.mutation))}o(Y3,"registerQueryNameHelper");function J3(){gi.default.registerHelper("infiniteQueryName",sS)}o(J3,"registerInfiniteQueryNameHelper");function X3(){gi.default.registerHelper("isQuery",Ee)}o(X3,"registerIsQueryHelper");function eq(){gi.default.registerHelper("isMutation",xt)}o(eq,"registerIsMutationHelper");function tq(){gi.default.registerHelper("isInfiniteQuery",e=>Jn(e))}o(tq,"registerIsInfiniteQueryHelper");var un=Xe(Kt());function xP(e){rq(e.options),nq(e),iq(e),oq(),sq(),aq(e)}o(xP,"registerZodHbsHelpers");function rq(e){un.default.registerHelper("zodInferedType",t=>_o(t,e))}o(rq,"registerInferedTypeHelper");function nq(e){un.default.registerHelper("importedZodSchemaName",t=>$S(e,t))}o(nq,"registerImportedZodSchemaNameHelper");function iq(e){un.default.registerHelper("importedZodSchemaInferedType",t=>br(e,t))}o(iq,"registerImportedZodSchemaInferedTypeHelper");function oq(){un.default.registerHelper("zodSchemaType",e=>OS(e))}o(oq,"registerZodSchemaTypeHelper");function sq(){un.default.registerHelper("zodSchemaDescription",e=>xS(e))}o(sq,"registerZodSchemaDescriptionHelper");function aq(e){un.default.registerHelper("zodSchemaPropertyDescriptions",(t,r)=>AS(e,t,r))}o(aq,"registerZodSchemaPropertyDescriptionsHelper");var wP=Xe(Kt());function AP(){cq()}o(AP,"registerImportsHbsHelpers");function cq(){wP.default.registerHelper("importNames",(e,t)=>[...t?[t]:[],...e?[`{ ${e.join(", ")} }`]:[]].join(", "))}o(cq,"registerBindingsHelper");function we(e,t){let r=fd(t);return PP(),AP(),xP(e),EP(e),OP(),_P(),$P(e),dd.default.compile(r)}o(we,"getHbsTemplateDelegate");function ke(e){let t=fd(`partials/${e}`);return dd.default.compile(t)}o(ke,"getHbsPartialTemplateDelegate");function IP({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={bindings:[ft.abilityTuple,...i?[ft.forcedSubject,ft.subject]:[]],from:vf.from},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=_r({resolver:e,tag:r,zodSchemasAsTypes:Le(a)});return we(e,"acl")({caslAbilityTupleImport:s,modelsImports:c,includeNamespace:e.options.tsNamespaces,namespace:G({type:"acl",tag:r,options:e.options}),endpoints:n})}o(IP,"generateAcl");function TP(e,t){if(!t||t.length===0)return;let r={bindings:[ft.pureAbility],from:vf.from},n=qS({tags:t,entityName:Io,getAliasEntityName:ba,type:"acl",options:e.options}),i=t.map(a=>G({type:"acl",tag:a,options:e.options}));return we(e,"app-acl")({caslAbilityTupleImport:r,imports:n,allAbilities:Io,includeNamespace:e.options.tsNamespaces,tags:t,namespaces:i})}o(TP,"generateAppAcl");function RP({resolver:e,data:t,tag:r=""}){var b;let n=(b=t.get(r))==null?void 0:b.endpoints;if(!n||n.length===0)return;let i={bindings:[uo],from:LS(e.options)},s=e.options.axiosRequestConfig,a=s,c={bindings:s?[wt]:[],from:aa.from},u=e.options.parseRequestParams,l=n.reduce((P,$)=>[...P,...$.parameters],[]),f=l.filter(P=>!["Path","Header"].includes(P.type)).map(P=>P.parameterSortingEnumSchemaName??P.zodSchema),p=n.map(P=>P.response),d=Le([...p,...u?f:[]]),m=d.some(P=>!ue(P)),g=e.options.parseRequestParams&&f.length>0,y={bindings:[Ot.name],from:BS(e.options)},v=_r({resolver:e,tag:r,zodSchemas:d.filter(ue),zodSchemasAsTypes:Le(l.map(P=>P.zodSchema).filter(ue))});return we(e,"endpoints")({appRestClientImport:i,hasAxiosImport:a,axiosImport:c,hasZodImport:m,zodImport:Yn,hasZodExtendedImport:g,zodExtendedImport:y,modelsImports:v,includeNamespace:e.options.tsNamespaces,namespace:G({type:"endpoints",tag:r,options:e.options}),restClientName:uo,hasAxiosRequestConfig:s,axiosRequestConfigName:dr,axiosRequestConfigType:wt,endpoints:n,generateParse:u})}o(RP,"generateEndpoints");function NP(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),s=e.getExtractedEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...s]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(CP(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}o(NP,"getZodSchemaRefs");function CP(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&CP(n).forEach(s=>r.add(s)),r},new Set)}o(CP,"getSchemaRefs");function kP({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,...NP(e,f)],[]).filter(l=>!n[l]),s=_r({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:PS(p),schemaObj:e.getZodSchemaObj(f)}}},{});return we(e,"models")({zodImport:Yn,modelsImports:s,includeNamespace:e.options.tsNamespaces,namespace:G({type:"models",tag:r,options:e.options}),tag:r,zodSchemasData:a})}o(kP,"generateModels");function jP({resolver:e,data:t,tag:r=""}){var _;let n=(_=t.get(r))==null?void 0:_.endpoints;if(!n||n.length===0)return;let i=e.options.axiosRequestConfig,s=n.some(({mediaUpload:w})=>w),a=i||s,c={defaultImport:s?Xp:void 0,bindings:i?[wt]:[],from:aa.from},u=n.filter(Ee),l=u.filter(w=>Jn(w)),f=n.filter(xt),p={bindings:[...u.length>0?[pt.query]:[],...e.options.infiniteQueries&&l.length>0?[pt.infiniteQuery]:[],...f.length>0?[pt.mutation]:[]],from:Xv.from},d=e.options.mutationEffects,m={bindings:[Qp],from:HS(e.options)},g=d&&f.length>0,y={bindings:[...f.length>0?[Wn.optionsType,Wn.hookName]:[]],from:VS(e.options)},v={bindings:[...u.length>0?[Qs.query]:[],...e.options.infiniteQueries&&l.length>0?[Qs.infiniteQuery]:[],...f.length>0?[Qs.mutation]:[]],from:FS(e.options)},S=n.reduce((w,N)=>[...w,...N.parameters],[]),b=_r({resolver:e,tag:r,zodSchemasAsTypes:Le(S.map(w=>w.zodSchema).filter(ue))}),P=jS({tag:r,endpoints:n,options:e.options});return we(e,"queries")({hasAxiosImport:a,axiosImport:c,queryImport:p,hasMutationEffects:d,queryModulesImport:m,hasMutationEffectsImport:g,mutationEffectsImport:y,queryTypesImport:v,modelsImports:b,endpointsImports:P,includeNamespace:e.options.tsNamespaces,tag:r,namespace:G({type:"queries",tag:r,options:e.options}),queriesModuleName:ho,queryModuleEnum:Qp,endpoints:n,queryEndpoints:u})}o(jP,"generateQueries");function qP(e){return we(e,"app-rest-client")({appRestClientName:uo,baseUrl:e.getBaseUrl()})}o(qP,"generateAppRestClient");function MP({resolver:e,data:t}){let r=[];return t.forEach((i,s)=>{var c;let a=(c=t.get(s))==null?void 0:c.endpoints;!a||a.length===0||r.push({tag:s,namespace:G({type:"queries",tag:s,options:e.options})})}),we(e,"query-modules")({modules:r})}o(MP,"generateQueryModules");function DP(e){return we(e,"zod")({zodImport:Yn,zodExtension:Ot.name,sortingString:Ot.properties.sortingString,parse:Ot.properties.parse,errorHandler:co.ErrorHandler,sharedErrorHandler:co.SharedErrorHandler,errorHandlingImport:{...Gv,from:e.options.errorHandlingImportPath}})}o(DP,"generateZod");function LP(e,t){let r=TP(t,e);return r?[{fileName:Or({output:t.options.output,fileName:ni(_b)}),content:r}]:[]}o(LP,"getAclFiles");function FP(e,t){return t.options.mutationEffects?[...BP([Zv,ea],t),{fileName:Or({output:t.options.output,fileName:ni(Xs)}),content:MP({resolver:t,data:e})}]:[]}o(FP,"getMutationEffectsFiles");function HP(e){return e.options.standalone?[...BP(Object.values(Ys),e),{fileName:Or({output:e.options.output,fileName:ni(Js)}),content:qP(e)}]:[]}o(HP,"getStandaloneFiles");function VP(e,t){if(!Array.from(e.values()).some(({endpoints:i})=>i.some(s=>s.parameters.some(a=>a.parameterSortingEnumSchemaName))))return[];let n=DP(t);return n?[{fileName:Or({output:t.options.output,fileName:ni(ta)}),content:n}]:[]}o(VP,"getZodExtendedFiles");function BP(e,t){return e.reduce((r,n)=>[...r,uq(n,t)],[])}o(BP,"getAssetFiles");function uq(e,t){let r=ni(e);return{fileName:Or({output:t.options.output,fileName:r}),content:bP(r)}}o(uq,"getAssetFile");function UP(e,t){let r=t.standalone&&t.importPath==="ts"?"relative":t.importPath,n={...fo,...t,importPath:r},{resolver:i,data:s}=Sa(e,n),a=[],c=[],u=["models","endpoints","queries","acl"],l={models:kP,endpoints:RP,queries:jP,acl:IP};return s.forEach((f,p)=>{u.forEach(d=>{let m=l[d]({resolver:i,data:s,tag:p});if(m){let g=Or({output:n.output,fileName:DS({tag:p,type:d,options:n})});a.push({fileName:g,content:m}),d==="acl"&&c.push(p)}})}),a.push(...LP(c,i),...FP(s,i),...VP(s,i),...HP(i)),a}o(UP,"generateCodeFromOpenAPIDoc");async function lq({input:e,options:t}){let r={...fo,...t},n=await md.default.bundle(e);return await bb(n,r)}o(lq,"getGenerateMetadata");async function pq({input:e,options:t}){let r={...fo,...t},n=await md.default.bundle(e);return UP(n,r)}o(pq,"getGenerateFilesData");0&&(module.exports={getGenerateFilesData,getGenerateMetadata});