@povio/openapi-codegen-cli 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,58 +1,80 @@
1
- "use strict";var kg=Object.create;var cn=Object.defineProperty;var Mg=Object.getOwnPropertyDescriptor;var Dg=Object.getOwnPropertyNames;var Fg=Object.getPrototypeOf,Vg=Object.prototype.hasOwnProperty;var s=(e,t)=>cn(e,"name",{value:t,configurable:!0});var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Lg=(e,t)=>{for(var r in t)cn(e,r,{get:t[r],enumerable:!0})},zu=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Dg(t))!Vg.call(e,i)&&i!==r&&cn(e,i,{get:()=>t[i],enumerable:!(n=Mg(t,i))||n.enumerable});return e};var ci=(e,t,r)=>(r=e!=null?kg(Fg(e)):{},zu(t||!e||!e.__esModule?cn(r,"default",{value:e,enumerable:!0}):r,e)),Bg=e=>zu(cn({},"__esModule",{value:!0}),e);var Se=m((ve,Zu)=>{"use strict";var ui=/^win/.test(process.platform),zg=/\//g,Ug=/^(\w{2,}):\/\//i,Uu=Zu.exports,Zg=/~1/g,Hg=/~0/g,To=[/\?/g,"%3F",/\#/g,"%23"],Ro=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];ve.parse=require("url").parse;ve.resolve=require("url").resolve;ve.cwd=s(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");ve.getProtocol=s(function(t){let r=Ug.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");ve.getExtension=s(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");ve.getHash=s(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");ve.stripHash=s(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");ve.isHttp=s(function(t){let r=Uu.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");ve.isFileSystemPath=s(function(t){if(process.browser)return!1;let r=Uu.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");ve.fromFileSystemPath=s(function(t){ui&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<To.length;r+=2)t=t.replace(To[r],To[r+1]);return t},"fromFileSystemPath");ve.toFileSystemPath=s(function(t,r){t=decodeURI(t);for(let i=0;i<Ro.length;i+=2)t=t.replace(Ro[i],Ro[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),ui&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=ui?t:"/"+t)),ui&&!n&&(t=t.replace(zg,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");ve.safePointerToPath=s(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(Zg,"/").replace(Hg,"~"))},"safePointerToPath")});var fi=m(un=>{"use strict";var Hu=require("util"),Gg=Se();un.format=Hu.format;un.inherits=Hu.inherits;un.swaggerParamRegExp=/\{([^/}]+)}/g;var Kg=["get","post","put","delete","patch","options","head","trace"];function Io(e,t){if(e.url&&e.url.startsWith("/")){let r=Gg.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}s(Io,"fixServers");function Wg(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>Io(r,t)),["paths","webhooks"].forEach(r=>{Object.keys(e[r]||[]).forEach(n=>{let i=e[r][n];Object.keys(i).forEach(o=>{o==="servers"?i[o].map(a=>Io(a,t)):Kg.includes(o)&&i[o].servers&&i[o].servers.map(a=>Io(a,t))})})}))}s(Wg,"fixOasRelativeServers");un.fixOasRelativeServers=Wg});var li=m(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.getDeepKeys=hr.toJSON=void 0;var Yg=["function","symbol","undefined"],Jg=["constructor","prototype","__proto__"],Xg=Object.getPrototypeOf({});function Qg(){let e={},t=this;for(let r of Gu(t))if(typeof r=="string"){let n=t[r],i=typeof n;Yg.includes(i)||(e[r]=n)}return e}s(Qg,"toJSON");hr.toJSON=Qg;function Gu(e,t=[]){let r=[];for(;e&&e!==Xg;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(Jg))n.delete(i);return n}s(Gu,"getDeepKeys");hr.getDeepKeys=Gu});var qo=m(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.addInspectMethod=yr.format=void 0;var Ku=require("util"),e$=li(),Wu=Ku.inspect.custom||Symbol.for("nodejs.util.inspect.custom");yr.format=Ku.format;function t$(e){e[Wu]=r$}s(t$,"addInspectMethod");yr.addInspectMethod=t$;function r$(){let e={},t=this;for(let r of e$.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[Wu],e}s(r$,"inspect")});var Xu=m(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.lazyJoinStacks=Ue.joinStacks=Ue.isWritableStack=Ue.isLazyStack=void 0;var n$=/\r?\n/,i$=/\bono[ @]/;function o$(e){return!!(e&&e.configurable&&typeof e.get=="function")}s(o$,"isLazyStack");Ue.isLazyStack=o$;function s$(e){return!!(!e||e.writable||typeof e.set=="function")}s(s$,"isWritableStack");Ue.isWritableStack=s$;function Yu(e,t){let r=Ju(e.stack),n=t?t.stack:void 0;return r&&n?r+`
1
+ "use strict";var HS=Object.create;var ii=Object.defineProperty;var US=Object.getOwnPropertyDescriptor;var zS=Object.getOwnPropertyNames;var GS=Object.getPrototypeOf,ZS=Object.prototype.hasOwnProperty;var s=(e,t)=>ii(e,"name",{value:t,configurable:!0});var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),KS=(e,t)=>{for(var r in t)ii(e,r,{get:t[r],enumerable:!0})},Gp=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zS(t))!ZS.call(e,i)&&i!==r&&ii(e,i,{get:()=>t[i],enumerable:!(n=US(t,i))||n.enumerable});return e};var De=(e,t,r)=>(r=e!=null?HS(GS(e)):{},Gp(t||!e||!e.__esModule?ii(r,"default",{value:e,enumerable:!0}):r,e)),WS=e=>Gp(ii({},"__esModule",{value:!0}),e);var Ce=m((Te,Kp)=>{"use strict";var Po=/^win/.test(process.platform),YS=/\//g,QS=/^(\w{2,}):\/\//i,Zp=Kp.exports,JS=/~1/g,XS=/~0/g,Ra=[/\?/g,"%3F",/\#/g,"%23"],Ta=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];Te.parse=require("url").parse;Te.resolve=require("url").resolve;Te.cwd=s(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");Te.getProtocol=s(function(t){let r=QS.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");Te.getExtension=s(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");Te.getHash=s(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");Te.stripHash=s(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");Te.isHttp=s(function(t){let r=Zp.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");Te.isFileSystemPath=s(function(t){if(process.browser)return!1;let r=Zp.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");Te.fromFileSystemPath=s(function(t){Po&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<Ra.length;r+=2)t=t.replace(Ra[r],Ra[r+1]);return t},"fromFileSystemPath");Te.toFileSystemPath=s(function(t,r){t=decodeURI(t);for(let i=0;i<Ta.length;i+=2)t=t.replace(Ta[i],Ta[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),Po&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=Po?t:"/"+t)),Po&&!n&&(t=t.replace(YS,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");Te.safePointerToPath=s(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(JS,"/").replace(XS,"~"))},"safePointerToPath")});var $o=m(oi=>{"use strict";var Wp=require("util"),e2=Ce();oi.format=Wp.format;oi.inherits=Wp.inherits;oi.swaggerParamRegExp=/\{([^/}]+)}/g;var t2=["get","post","put","delete","patch","options","head","trace"];function Ca(e,t){if(e.url&&e.url.startsWith("/")){let r=e2.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}s(Ca,"fixServers");function r2(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>Ca(r,t)),["paths","webhooks"].forEach(r=>{Object.keys(e[r]||[]).forEach(n=>{let i=e[r][n];Object.keys(i).forEach(o=>{o==="servers"?i[o].map(a=>Ca(a,t)):t2.includes(o)&&i[o].servers&&i[o].servers.map(a=>Ca(a,t))})})}))}s(r2,"fixOasRelativeServers");oi.fixOasRelativeServers=r2});var Oo=m(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.getDeepKeys=Xr.toJSON=void 0;var n2=["function","symbol","undefined"],i2=["constructor","prototype","__proto__"],o2=Object.getPrototypeOf({});function s2(){let e={},t=this;for(let r of Yp(t))if(typeof r=="string"){let n=t[r],i=typeof n;n2.includes(i)||(e[r]=n)}return e}s(s2,"toJSON");Xr.toJSON=s2;function Yp(e,t=[]){let r=[];for(;e&&e!==o2;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(i2))n.delete(i);return n}s(Yp,"getDeepKeys");Xr.getDeepKeys=Yp});var Na=m(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.addInspectMethod=en.format=void 0;var Qp=require("util"),a2=Oo(),Jp=Qp.inspect.custom||Symbol.for("nodejs.util.inspect.custom");en.format=Qp.format;function u2(e){e[Jp]=c2}s(u2,"addInspectMethod");en.addInspectMethod=u2;function c2(){let e={},t=this;for(let r of a2.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[Jp],e}s(c2,"inspect")});var td=m(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.lazyJoinStacks=pt.joinStacks=pt.isWritableStack=pt.isLazyStack=void 0;var l2=/\r?\n/,f2=/\bono[ @]/;function p2(e){return!!(e&&e.configurable&&typeof e.get=="function")}s(p2,"isLazyStack");pt.isLazyStack=p2;function d2(e){return!!(!e||e.writable||typeof e.set=="function")}s(d2,"isWritableStack");pt.isWritableStack=d2;function Xp(e,t){let r=ed(e.stack),n=t?t.stack:void 0;return r&&n?r+`
2
2
 
3
- `+n:r||n}s(Yu,"joinStacks");Ue.joinStacks=Yu;function a$(e,t,r){r?Object.defineProperty(t,"stack",{get:s(()=>{let n=e.get.apply(t);return Yu({stack:n},r)},"get"),enumerable:!1,configurable:!0}):c$(t,e)}s(a$,"lazyJoinStacks");Ue.lazyJoinStacks=a$;function Ju(e){if(e){let t=e.split(n$),r;for(let n=0;n<t.length;n++){let i=t[n];if(i$.test(i))r===void 0&&(r=n);else if(r!==void 0){t.splice(r,n-r);break}}if(t.length>0)return t.join(`
4
- `)}return e}s(Ju,"popStack");function c$(e,t){Object.defineProperty(e,"stack",{get:s(()=>Ju(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}s(c$,"lazyPopStack")});var tf=m(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.extendError=void 0;var Qu=qo(),pi=Xu(),ef=li(),u$=["name","message","stack"];function f$(e,t,r){let n=e;return l$(n,t),t&&typeof t=="object"&&p$(n,t),n.toJSON=ef.toJSON,Qu.addInspectMethod&&Qu.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}s(f$,"extendError");di.extendError=f$;function l$(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");pi.isLazyStack(r)?pi.lazyJoinStacks(r,e,t):pi.isWritableStack(r)&&(e.stack=pi.joinStacks(e,t))}s(l$,"extendStack");function p$(e,t){let r=ef.getDeepKeys(t,u$),n=e,i=t;for(let o of r)if(n[o]===void 0)try{n[o]=i[o]}catch{}}s(p$,"mergeErrors")});var rf=m(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.normalizeArgs=gr.normalizeOptions=void 0;var d$=qo();function m$(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?d$.format:typeof e.format=="function"?e.format:!1}}s(m$,"normalizeOptions");gr.normalizeOptions=m$;function h$(e,t){let r,n,i,o="";return typeof e[0]=="string"?i=e:typeof e[1]=="string"?(e[0]instanceof Error?r=e[0]:n=e[0],i=e.slice(1)):(r=e[0],n=e[1],i=e.slice(2)),i.length>0&&(t.format?o=t.format.apply(void 0,i):o=i.join(" ")),t.concatMessages&&r&&r.message&&(o+=(o?`
5
- `:"")+r.message),{originalError:r,props:n,message:o}}s(h$,"normalizeArgs");gr.normalizeArgs=h$});var Co=m(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.Ono=void 0;var mi=tf(),nf=rf(),y$=li(),g$=No;hi.Ono=g$;function No(e,t){t=nf.normalizeOptions(t);function r(...n){let{originalError:i,props:o,message:a}=nf.normalizeArgs(n,t),c=new e(a);return mi.extendError(c,i,o)}return s(r,"ono"),r[Symbol.species]=e,r}s(No,"Ono");No.toJSON=s(function(t){return y$.toJSON.call(t)},"toJSON");No.extend=s(function(t,r,n){return n||r instanceof Error?mi.extendError(t,r,n):r?mi.extendError(t,void 0,r):mi.extendError(t)},"extend")});var of=m(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.ono=void 0;var Lt=Co(),$$=Ze;yi.ono=$$;Ze.error=new Lt.Ono(Error);Ze.eval=new Lt.Ono(EvalError);Ze.range=new Lt.Ono(RangeError);Ze.reference=new Lt.Ono(ReferenceError);Ze.syntax=new Lt.Ono(SyntaxError);Ze.type=new Lt.Ono(TypeError);Ze.uri=new Lt.Ono(URIError);var b$=Ze;function Ze(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(b$))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 Ze.error.apply(void 0,e)}s(Ze,"ono")});var af=m(sf=>{"use strict";Object.defineProperty(sf,"__esModule",{value:!0});var XA=require("util")});var Ie=m((Re,$r)=>{"use strict";var v$=Re&&Re.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:s(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),S$=Re&&Re.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&v$(t,e,r)};Object.defineProperty(Re,"__esModule",{value:!0});Re.ono=void 0;var cf=of();Object.defineProperty(Re,"ono",{enumerable:!0,get:s(function(){return cf.ono},"get")});var P$=Co();Object.defineProperty(Re,"Ono",{enumerable:!0,get:s(function(){return P$.Ono},"get")});S$(af(),Re);Re.default=cf.ono;typeof $r=="object"&&typeof $r.exports=="object"&&($r.exports=Object.assign($r.exports.default,$r.exports))});var pn=m(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.regexpCode=N.getEsmExportName=N.getProperty=N.safeStringify=N.stringify=N.strConcat=N.addCodeArg=N.str=N._=N.nil=N._Code=N.Name=N.IDENTIFIER=N._CodeOrName=void 0;var Do=class Do{};s(Do,"_CodeOrName");var fn=Do;N._CodeOrName=fn;N.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Fo=class Fo extends fn{constructor(t){if(super(),!N.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};s(Fo,"Name");var Bt=Fo;N.Name=Bt;var Vo=class Vo extends fn{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 Bt&&(r[n.str]=(r[n.str]||0)+1),r),{})}};s(Vo,"_Code");var _e=Vo;N._Code=_e;N.nil=new _e("");function uf(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Mo(r,t[n]),r.push(e[++n]);return new _e(r)}s(uf,"_");N._=uf;var ko=new _e("+");function ff(e,...t){let r=[ln(e[0])],n=0;for(;n<t.length;)r.push(ko),Mo(r,t[n]),r.push(ko,ln(e[++n]));return _$(r),new _e(r)}s(ff,"str");N.str=ff;function Mo(e,t){t instanceof _e?e.push(...t._items):t instanceof Bt?e.push(t):e.push(w$(t))}s(Mo,"addCodeArg");N.addCodeArg=Mo;function _$(e){let t=1;for(;t<e.length-1;){if(e[t]===ko){let r=O$(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}s(_$,"optimize");function O$(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Bt||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 Bt))return`"${e}${t.slice(1)}`}s(O$,"mergeExprItems");function x$(e,t){return t.emptyStr()?e:e.emptyStr()?t:ff`${e}${t}`}s(x$,"strConcat");N.strConcat=x$;function w$(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ln(Array.isArray(e)?e.join(","):e)}s(w$,"interpolate");function E$(e){return new _e(ln(e))}s(E$,"stringify");N.stringify=E$;function ln(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}s(ln,"safeStringify");N.safeStringify=ln;function j$(e){return typeof e=="string"&&N.IDENTIFIER.test(e)?new _e(`.${e}`):uf`[${e}]`}s(j$,"getProperty");N.getProperty=j$;function A$(e){if(typeof e=="string"&&N.IDENTIFIER.test(e))return new _e(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}s(A$,"getEsmExportName");N.getEsmExportName=A$;function T$(e){return new _e(e.toString())}s(T$,"regexpCode");N.regexpCode=T$});var Go=m(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.ValueScope=ye.ValueScopeName=ye.Scope=ye.varKinds=ye.UsedValueState=void 0;var he=pn(),zo=class zo extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};s(zo,"ValueError");var Lo=zo,gi;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(gi||(ye.UsedValueState=gi={}));ye.varKinds={const:new he.Name("const"),let:new he.Name("let"),var:new he.Name("var")};var Uo=class Uo{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof he.Name?t:this.name(t)}name(t){return new he.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};s(Uo,"Scope");var $i=Uo;ye.Scope=$i;var Zo=class Zo extends he.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,he._)`.${new he.Name(r)}[${n}]`}};s(Zo,"ValueScopeName");var bi=Zo;ye.ValueScopeName=bi;var R$=(0,he._)`\n`,Ho=class Ho extends $i{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?R$:he.nil}}get(){return this._scope}name(t){return new bi(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:o}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,c=this._values[o];if(c){let l=c.get(a);if(l)return l}else c=this._values[o]=new Map;c.set(a,i);let u=this._scope[o]||(this._scope[o]=[]),f=u.length;return u[f]=r.ref,i.setValue(r,{property:o,itemIndex:f}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,he._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let o=he.nil;for(let a in t){let c=t[a];if(!c)continue;let u=n[a]=n[a]||new Map;c.forEach(f=>{if(u.has(f))return;u.set(f,gi.Started);let l=r(f);if(l){let p=this.opts.es5?ye.varKinds.var:ye.varKinds.const;o=(0,he._)`${o}${p} ${f} = ${l};${this.opts._n}`}else if(l=i==null?void 0:i(f))o=(0,he._)`${o}${l}${this.opts._n}`;else throw new Lo(f);u.set(f,gi.Completed)})}return o}};s(Ho,"ValueScope");var Bo=Ho;ye.ValueScope=Bo});var w=m(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});j.or=j.and=j.not=j.CodeGen=j.operators=j.varKinds=j.ValueScopeName=j.ValueScope=j.Scope=j.Name=j.regexpCode=j.stringify=j.getProperty=j.nil=j.strConcat=j.str=j._=void 0;var I=pn(),qe=Go(),mt=pn();Object.defineProperty(j,"_",{enumerable:!0,get:s(function(){return mt._},"get")});Object.defineProperty(j,"str",{enumerable:!0,get:s(function(){return mt.str},"get")});Object.defineProperty(j,"strConcat",{enumerable:!0,get:s(function(){return mt.strConcat},"get")});Object.defineProperty(j,"nil",{enumerable:!0,get:s(function(){return mt.nil},"get")});Object.defineProperty(j,"getProperty",{enumerable:!0,get:s(function(){return mt.getProperty},"get")});Object.defineProperty(j,"stringify",{enumerable:!0,get:s(function(){return mt.stringify},"get")});Object.defineProperty(j,"regexpCode",{enumerable:!0,get:s(function(){return mt.regexpCode},"get")});Object.defineProperty(j,"Name",{enumerable:!0,get:s(function(){return mt.Name},"get")});var _i=Go();Object.defineProperty(j,"Scope",{enumerable:!0,get:s(function(){return _i.Scope},"get")});Object.defineProperty(j,"ValueScope",{enumerable:!0,get:s(function(){return _i.ValueScope},"get")});Object.defineProperty(j,"ValueScopeName",{enumerable:!0,get:s(function(){return _i.ValueScopeName},"get")});Object.defineProperty(j,"varKinds",{enumerable:!0,get:s(function(){return _i.varKinds},"get")});j.operators={GT:new I._Code(">"),GTE:new I._Code(">="),LT:new I._Code("<"),LTE:new I._Code("<="),EQ:new I._Code("==="),NEQ:new I._Code("!=="),NOT:new I._Code("!"),OR:new I._Code("||"),AND:new I._Code("&&"),ADD:new I._Code("+")};var ss=class ss{optimizeNodes(){return this}optimizeNames(t,r){return this}};s(ss,"Node");var st=ss,as=class as extends st{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?qe.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=Sr(this.rhs,t,r)),this}get names(){return this.rhs instanceof I._CodeOrName?this.rhs.names:{}}};s(as,"Def");var Ko=as,cs=class cs extends st{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof I.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Sr(this.rhs,t,r),this}get names(){let t=this.lhs instanceof I.Name?{}:{...this.lhs.names};return Pi(t,this.rhs)}};s(cs,"Assign");var vi=cs,us=class us extends vi{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};s(us,"AssignOp");var Wo=us,fs=class fs extends st{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};s(fs,"Label");var Yo=fs,ls=class ls extends st{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};s(ls,"Break");var Jo=ls,ps=class ps extends st{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};s(ps,"Throw");var Xo=ps,ds=class ds extends st{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=Sr(this.code,t,r),this}get names(){return this.code instanceof I._CodeOrName?this.code.names:{}}};s(ds,"AnyCode");var Qo=ds,ms=class ms extends st{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(t,r)||(I$(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Zt(t,r.names),{})}};s(ms,"ParentNode");var dn=ms,hs=class hs extends dn{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};s(hs,"BlockNode");var at=hs,ys=class ys extends dn{};s(ys,"Root");var es=ys,gs=class gs extends at{};s(gs,"Else");var vr=gs;vr.kind="else";var br=class br extends at{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 vr(n):n}if(r)return t===!1?r instanceof br?r:r.nodes:this.nodes.length?this:new br(lf(t),r instanceof br?[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=Sr(this.condition,t,r),this}get names(){let t=super.names;return Pi(t,this.condition),this.else&&Zt(t,this.else.names),t}};s(br,"If");var zt=br;zt.kind="if";var $s=class $s extends at{};s($s,"For");var Ut=$s;Ut.kind="for";var bs=class bs extends Ut{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=Sr(this.iteration,t,r),this}get names(){return Zt(super.names,this.iteration.names)}};s(bs,"ForLoop");var ts=bs,vs=class vs extends Ut{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?qe.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(t)}get names(){let t=Pi(super.names,this.from);return Pi(t,this.to)}};s(vs,"ForRange");var rs=vs,Ss=class Ss extends Ut{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=Sr(this.iterable,t,r),this}get names(){return Zt(super.names,this.iterable.names)}};s(Ss,"ForIter");var Si=Ss,Ps=class Ps extends at{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};s(Ps,"Func");var mn=Ps;mn.kind="func";var _s=class _s extends dn{render(t){return"return "+super.render(t)}};s(_s,"Return");var hn=_s;hn.kind="return";var Os=class Os extends at{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&&Zt(t,this.catch.names),this.finally&&Zt(t,this.finally.names),t}};s(Os,"Try");var ns=Os,xs=class xs extends at{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};s(xs,"Catch");var yn=xs;yn.kind="catch";var ws=class ws extends at{render(t){return"finally"+super.render(t)}};s(ws,"Finally");var gn=ws;gn.kind="finally";var Es=class Es{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
6
- `:""},this._extScope=t,this._scope=new qe.Scope({parent:t}),this._nodes=[new es]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let o=this._scope.toName(r);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new Ko(t,o,n)),o}const(t,r,n){return this._def(qe.varKinds.const,t,r,n)}let(t,r,n){return this._def(qe.varKinds.let,t,r,n)}var(t,r,n){return this._def(qe.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new vi(t,r,n))}add(t,r){return this._leafNode(new Wo(t,j.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==I.nil&&this._leafNode(new Qo(t)),this}object(...t){let r=["{"];for(let[n,i]of t)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,I.addCodeArg)(r,i));return r.push("}"),new I._Code(r)}if(t,r,n){if(this._blockNode(new zt(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 zt(t))}else(){return this._elseNode(new vr)}endIf(){return this._endBlockNode(zt,vr)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new ts(t),r)}forRange(t,r,n,i,o=this.opts.es5?qe.varKinds.var:qe.varKinds.let){let a=this._scope.toName(t);return this._for(new rs(o,a,r,n),()=>i(a))}forOf(t,r,n,i=qe.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let a=r instanceof I.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,I._)`${a}.length`,c=>{this.var(o,(0,I._)`${a}[${c}]`),n(o)})}return this._for(new Si("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?qe.varKinds.var:qe.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,I._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new Si("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(Ut)}label(t){return this._leafNode(new Yo(t))}break(t){return this._leafNode(new Jo(t))}return(t){let r=new hn;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(hn)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new ns;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new yn(o),r(o)}return n&&(this._currNode=i.finally=new gn,this.code(n)),this._endBlockNode(yn,gn)}throw(t){return this._leafNode(new Xo(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=I.nil,n,i){return this._blockNode(new mn(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(mn)}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 zt))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};s(Es,"CodeGen");var is=Es;j.CodeGen=is;function Zt(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}s(Zt,"addNames");function Pi(e,t){return t instanceof I._CodeOrName?Zt(e,t.names):e}s(Pi,"addExprNames");function Sr(e,t,r){if(e instanceof I.Name)return n(e);if(!i(e))return e;return new I._Code(e._items.reduce((o,a)=>(a instanceof I.Name&&(a=n(a)),a instanceof I._Code?o.push(...a._items):o.push(a),o),[]));function n(o){let a=r[o.str];return a===void 0||t[o.str]!==1?o:(delete t[o.str],a)}function i(o){return o instanceof I._Code&&o._items.some(a=>a instanceof I.Name&&t[a.str]===1&&r[a.str]!==void 0)}}s(Sr,"optimizeExpr");function I$(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}s(I$,"subtractNames");function lf(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,I._)`!${os(e)}`}s(lf,"not");j.not=lf;var q$=pf(j.operators.AND);function N$(...e){return e.reduce(q$)}s(N$,"and");j.and=N$;var C$=pf(j.operators.OR);function k$(...e){return e.reduce(C$)}s(k$,"or");j.or=k$;function pf(e){return(t,r)=>t===I.nil?r:r===I.nil?t:(0,I._)`${os(t)} ${e} ${os(r)}`}s(pf,"mappend");function os(e){return e instanceof I.Name?e:(0,I._)`(${e})`}s(os,"par")});var R=m(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.checkStrictMode=A.getErrorPath=A.Type=A.useFunc=A.setEvaluated=A.evaluatedPropsToName=A.mergeEvaluated=A.eachItem=A.unescapeJsonPointer=A.escapeJsonPointer=A.escapeFragment=A.unescapeFragment=A.schemaRefOrVal=A.schemaHasRulesButRef=A.schemaHasRules=A.checkUnknownRules=A.alwaysValidSchema=A.toHash=void 0;var M=w(),M$=pn();function D$(e){let t={};for(let r of e)t[r]=!0;return t}s(D$,"toHash");A.toHash=D$;function F$(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(hf(e,t),!yf(t,e.self.RULES.all))}s(F$,"alwaysValidSchema");A.alwaysValidSchema=F$;function hf(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let o in t)i[o]||bf(e,`unknown keyword: "${o}"`)}s(hf,"checkUnknownRules");A.checkUnknownRules=hf;function yf(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}s(yf,"schemaHasRules");A.schemaHasRules=yf;function V$(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}s(V$,"schemaHasRulesButRef");A.schemaHasRulesButRef=V$;function L$({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,M._)`${r}`}return(0,M._)`${e}${t}${(0,M.getProperty)(n)}`}s(L$,"schemaRefOrVal");A.schemaRefOrVal=L$;function B$(e){return gf(decodeURIComponent(e))}s(B$,"unescapeFragment");A.unescapeFragment=B$;function z$(e){return encodeURIComponent(As(e))}s(z$,"escapeFragment");A.escapeFragment=z$;function As(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}s(As,"escapeJsonPointer");A.escapeJsonPointer=As;function gf(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}s(gf,"unescapeJsonPointer");A.unescapeJsonPointer=gf;function U$(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}s(U$,"eachItem");A.eachItem=U$;function df({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,a,c)=>{let u=a===void 0?o:a instanceof M.Name?(o instanceof M.Name?e(i,o,a):t(i,o,a),a):o instanceof M.Name?(t(i,a,o),o):r(o,a);return c===M.Name&&!(u instanceof M.Name)?n(i,u):u}}s(df,"makeMergeEvaluated");A.mergeEvaluated={props:df({mergeNames:s((e,t,r)=>e.if((0,M._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,M._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,M._)`${r} || {}`).code((0,M._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,M._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,M._)`${r} || {}`),Ts(e,r,t))}),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:$f}),items:df({mergeNames:s((e,t,r)=>e.if((0,M._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,M._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,M._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,M._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:s((e,t)=>e.var("items",t),"resultToName")})};function $f(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,M._)`{}`);return t!==void 0&&Ts(e,r,t),r}s($f,"evaluatedPropsToName");A.evaluatedPropsToName=$f;function Ts(e,t,r){Object.keys(r).forEach(n=>e.assign((0,M._)`${t}${(0,M.getProperty)(n)}`,!0))}s(Ts,"setEvaluated");A.setEvaluated=Ts;var mf={};function Z$(e,t){return e.scopeValue("func",{ref:t,code:mf[t.code]||(mf[t.code]=new M$._Code(t.code))})}s(Z$,"useFunc");A.useFunc=Z$;var js;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(js||(A.Type=js={}));function H$(e,t,r){if(e instanceof M.Name){let n=t===js.Num;return r?n?(0,M._)`"[" + ${e} + "]"`:(0,M._)`"['" + ${e} + "']"`:n?(0,M._)`"/" + ${e}`:(0,M._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,M.getProperty)(e).toString():"/"+As(e)}s(H$,"getErrorPath");A.getErrorPath=H$;function bf(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}s(bf,"checkStrictMode");A.checkStrictMode=bf});var Oe=m(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});var ne=w(),G$={data:new ne.Name("data"),valCxt:new ne.Name("valCxt"),instancePath:new ne.Name("instancePath"),parentData:new ne.Name("parentData"),parentDataProperty:new ne.Name("parentDataProperty"),rootData:new ne.Name("rootData"),dynamicAnchors:new ne.Name("dynamicAnchors"),vErrors:new ne.Name("vErrors"),errors:new ne.Name("errors"),this:new ne.Name("this"),self:new ne.Name("self"),scope:new ne.Name("scope"),json:new ne.Name("json"),jsonPos:new ne.Name("jsonPos"),jsonLen:new ne.Name("jsonLen"),jsonPart:new ne.Name("jsonPart")};Rs.default=G$});var $n=m(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.extendErrors=ie.resetErrorsCount=ie.reportExtraError=ie.reportError=ie.keyword$DataError=ie.keywordError=void 0;var q=w(),Oi=R(),ue=Oe();ie.keywordError={message:s(({keyword:e})=>(0,q.str)`must pass "${e}" keyword validation`,"message")};ie.keyword$DataError={message:s(({keyword:e,schemaType:t})=>t?(0,q.str)`"${e}" keyword must be ${t} ($data)`:(0,q.str)`"${e}" keyword is invalid ($data)`,"message")};function K$(e,t=ie.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:a,allErrors:c}=i,u=Pf(e,t,r);n??(a||c)?vf(o,u):Sf(i,(0,q._)`[${u}]`)}s(K$,"reportError");ie.reportError=K$;function W$(e,t=ie.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:a}=n,c=Pf(e,t,r);vf(i,c),o||a||Sf(n,ue.default.vErrors)}s(W$,"reportExtraError");ie.reportExtraError=W$;function Y$(e,t){e.assign(ue.default.errors,t),e.if((0,q._)`${ue.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,q._)`${ue.default.vErrors}.length`,t),()=>e.assign(ue.default.vErrors,null)))}s(Y$,"resetErrorsCount");ie.resetErrorsCount=Y$;function J$({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,ue.default.errors,c=>{e.const(a,(0,q._)`${ue.default.vErrors}[${c}]`),e.if((0,q._)`${a}.instancePath === undefined`,()=>e.assign((0,q._)`${a}.instancePath`,(0,q.strConcat)(ue.default.instancePath,o.errorPath))),e.assign((0,q._)`${a}.schemaPath`,(0,q.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,q._)`${a}.schema`,r),e.assign((0,q._)`${a}.data`,n))})}s(J$,"extendErrors");ie.extendErrors=J$;function vf(e,t){let r=e.const("err",t);e.if((0,q._)`${ue.default.vErrors} === null`,()=>e.assign(ue.default.vErrors,(0,q._)`[${r}]`),(0,q._)`${ue.default.vErrors}.push(${r})`),e.code((0,q._)`${ue.default.errors}++`)}s(vf,"addError");function Sf(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,q._)`new ${e.ValidationError}(${t})`):(r.assign((0,q._)`${n}.errors`,t),r.return(!1))}s(Sf,"returnErrors");var Ht={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 Pf(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,q._)`{}`:X$(e,t,r)}s(Pf,"errorObjectCode");function X$(e,t,r={}){let{gen:n,it:i}=e,o=[Q$(i,r),e0(e,r)];return t0(e,t,o),n.object(...o)}s(X$,"errorObject");function Q$({errorPath:e},{instancePath:t}){let r=t?(0,q.str)`${e}${(0,Oi.getErrorPath)(t,Oi.Type.Str)}`:e;return[ue.default.instancePath,(0,q.strConcat)(ue.default.instancePath,r)]}s(Q$,"errorInstancePath");function e0({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,Oi.getErrorPath)(r,Oi.Type.Str)}`),[Ht.schemaPath,i]}s(e0,"errorSchemaPath");function t0(e,{params:t,message:r},n){let{keyword:i,data:o,schemaValue:a,it:c}=e,{opts:u,propertyName:f,topSchemaRef:l,schemaPath:p}=c;n.push([Ht.keyword,i],[Ht.params,typeof t=="function"?t(e):t||(0,q._)`{}`]),u.messages&&n.push([Ht.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([Ht.schema,a],[Ht.parentSchema,(0,q._)`${l}${p}`],[ue.default.data,o]),f&&n.push([Ht.propertyName,f])}s(t0,"extraErrorProps")});var Of=m(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.boolOrEmptySchema=Pr.topBoolOrEmptySchema=void 0;var r0=$n(),n0=w(),i0=Oe(),o0={message:"boolean schema is false"};function s0(e){let{gen:t,schema:r,validateName:n}=e;r===!1?_f(e,!1):typeof r=="object"&&r.$async===!0?t.return(i0.default.data):(t.assign((0,n0._)`${n}.errors`,null),t.return(!0))}s(s0,"topBoolOrEmptySchema");Pr.topBoolOrEmptySchema=s0;function a0(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),_f(e)):r.var(t,!0)}s(a0,"boolOrEmptySchema");Pr.boolOrEmptySchema=a0;function _f(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,r0.reportError)(i,o0,void 0,t)}s(_f,"falseSchemaError")});var Is=m(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.getRules=_r.isJSONType=void 0;var c0=["string","number","integer","boolean","null","object","array"],u0=new Set(c0);function f0(e){return typeof e=="string"&&u0.has(e)}s(f0,"isJSONType");_r.isJSONType=f0;function l0(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}s(l0,"getRules");_r.getRules=l0});var qs=m(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.shouldUseRule=ht.shouldUseGroup=ht.schemaHasRulesForType=void 0;function p0({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&xf(e,n)}s(p0,"schemaHasRulesForType");ht.schemaHasRulesForType=p0;function xf(e,t){return t.rules.some(r=>wf(e,r))}s(xf,"shouldUseGroup");ht.shouldUseGroup=xf;function wf(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}s(wf,"shouldUseRule");ht.shouldUseRule=wf});var bn=m(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.reportTypeError=oe.checkDataTypes=oe.checkDataType=oe.coerceAndCheckDataType=oe.getJSONTypes=oe.getSchemaTypes=oe.DataType=void 0;var d0=Is(),m0=qs(),h0=$n(),E=w(),Ef=R(),Or;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Or||(oe.DataType=Or={}));function y0(e){let t=jf(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}s(y0,"getSchemaTypes");oe.getSchemaTypes=y0;function jf(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(d0.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}s(jf,"getJSONTypes");oe.getJSONTypes=jf;function g0(e,t){let{gen:r,data:n,opts:i}=e,o=$0(t,i.coerceTypes),a=t.length>0&&!(o.length===0&&t.length===1&&(0,m0.schemaHasRulesForType)(e,t[0]));if(a){let c=Cs(t,n,i.strictNumbers,Or.Wrong);r.if(c,()=>{o.length?b0(e,t,o):ks(e)})}return a}s(g0,"coerceAndCheckDataType");oe.coerceAndCheckDataType=g0;var Af=new Set(["string","number","integer","boolean","null"]);function $0(e,t){return t?e.filter(r=>Af.has(r)||t==="array"&&r==="array"):[]}s($0,"coerceToTypes");function b0(e,t,r){let{gen:n,data:i,opts:o}=e,a=n.let("dataType",(0,E._)`typeof ${i}`),c=n.let("coerced",(0,E._)`undefined`);o.coerceTypes==="array"&&n.if((0,E._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,E._)`${i}[0]`).assign(a,(0,E._)`typeof ${i}`).if(Cs(t,i,o.strictNumbers),()=>n.assign(c,i))),n.if((0,E._)`${c} !== undefined`);for(let f of r)(Af.has(f)||f==="array"&&o.coerceTypes==="array")&&u(f);n.else(),ks(e),n.endIf(),n.if((0,E._)`${c} !== undefined`,()=>{n.assign(i,c),v0(e,c)});function u(f){switch(f){case"string":n.elseIf((0,E._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,E._)`"" + ${i}`).elseIf((0,E._)`${i} === null`).assign(c,(0,E._)`""`);return;case"number":n.elseIf((0,E._)`${a} == "boolean" || ${i} === null
7
- || (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,(0,E._)`+${i}`);return;case"integer":n.elseIf((0,E._)`${a} === "boolean" || ${i} === null
8
- || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,(0,E._)`+${i}`);return;case"boolean":n.elseIf((0,E._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf((0,E._)`${i} === "true" || ${i} === 1`).assign(c,!0);return;case"null":n.elseIf((0,E._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(c,null);return;case"array":n.elseIf((0,E._)`${a} === "string" || ${a} === "number"
9
- || ${a} === "boolean" || ${i} === null`).assign(c,(0,E._)`[${i}]`)}}s(u,"coerceSpecificType")}s(b0,"coerceData");function v0({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,E._)`${t} !== undefined`,()=>e.assign((0,E._)`${t}[${r}]`,n))}s(v0,"assignParentData");function Ns(e,t,r,n=Or.Correct){let i=n===Or.Correct?E.operators.EQ:E.operators.NEQ,o;switch(e){case"null":return(0,E._)`${t} ${i} null`;case"array":o=(0,E._)`Array.isArray(${t})`;break;case"object":o=(0,E._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a((0,E._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return(0,E._)`typeof ${t} ${i} ${e}`}return n===Or.Correct?o:(0,E.not)(o);function a(c=E.nil){return(0,E.and)((0,E._)`typeof ${t} == "number"`,c,r?(0,E._)`isFinite(${t})`:E.nil)}}s(Ns,"checkDataType");oe.checkDataType=Ns;function Cs(e,t,r,n){if(e.length===1)return Ns(e[0],t,r,n);let i,o=(0,Ef.toHash)(e);if(o.array&&o.object){let a=(0,E._)`typeof ${t} != "object"`;i=o.null?a:(0,E._)`!${t} || ${a}`,delete o.null,delete o.array,delete o.object}else i=E.nil;o.number&&delete o.integer;for(let a in o)i=(0,E.and)(i,Ns(a,t,r,n));return i}s(Cs,"checkDataTypes");oe.checkDataTypes=Cs;var S0={message:s(({schema:e})=>`must be ${e}`,"message"),params:s(({schema:e,schemaValue:t})=>typeof e=="string"?(0,E._)`{type: ${e}}`:(0,E._)`{type: ${t}}`,"params")};function ks(e){let t=P0(e);(0,h0.reportError)(t,S0)}s(ks,"reportTypeError");oe.reportTypeError=ks;function P0(e){let{gen:t,data:r,schema:n}=e,i=(0,Ef.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}s(P0,"getTypeErrorContext")});var Rf=m(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.assignDefaults=void 0;var xr=w(),_0=R();function O0(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)Tf(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>Tf(e,o,i.default))}s(O0,"assignDefaults");xi.assignDefaults=O0;function Tf(e,t,r){let{gen:n,compositeRule:i,data:o,opts:a}=e;if(r===void 0)return;let c=(0,xr._)`${o}${(0,xr.getProperty)(t)}`;if(i){(0,_0.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,xr._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,xr._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,xr._)`${c} = ${(0,xr.stringify)(r)}`)}s(Tf,"assignDefault")});var xe=m(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.validateUnion=k.validateArray=k.usePattern=k.callValidateCode=k.schemaProperties=k.allSchemaProperties=k.noPropertyInData=k.propertyInData=k.isOwnProperty=k.hasPropFunc=k.reportMissingProp=k.checkMissingProp=k.checkReportMissingProp=void 0;var D=w(),Ms=R(),yt=Oe(),x0=R();function w0(e,t){let{gen:r,data:n,it:i}=e;r.if(Fs(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,D._)`${t}`},!0),e.error()})}s(w0,"checkReportMissingProp");k.checkReportMissingProp=w0;function E0({gen:e,data:t,it:{opts:r}},n,i){return(0,D.or)(...n.map(o=>(0,D.and)(Fs(e,t,o,r.ownProperties),(0,D._)`${i} = ${o}`)))}s(E0,"checkMissingProp");k.checkMissingProp=E0;function j0(e,t){e.setParams({missingProperty:t},!0),e.error()}s(j0,"reportMissingProp");k.reportMissingProp=j0;function If(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,D._)`Object.prototype.hasOwnProperty`})}s(If,"hasPropFunc");k.hasPropFunc=If;function Ds(e,t,r){return(0,D._)`${If(e)}.call(${t}, ${r})`}s(Ds,"isOwnProperty");k.isOwnProperty=Ds;function A0(e,t,r,n){let i=(0,D._)`${t}${(0,D.getProperty)(r)} !== undefined`;return n?(0,D._)`${i} && ${Ds(e,t,r)}`:i}s(A0,"propertyInData");k.propertyInData=A0;function Fs(e,t,r,n){let i=(0,D._)`${t}${(0,D.getProperty)(r)} === undefined`;return n?(0,D.or)(i,(0,D.not)(Ds(e,t,r))):i}s(Fs,"noPropertyInData");k.noPropertyInData=Fs;function qf(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}s(qf,"allSchemaProperties");k.allSchemaProperties=qf;function T0(e,t){return qf(t).filter(r=>!(0,Ms.alwaysValidSchema)(e,t[r]))}s(T0,"schemaProperties");k.schemaProperties=T0;function R0({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},c,u,f){let l=f?(0,D._)`${e}, ${t}, ${n}${i}`:t,p=[[yt.default.instancePath,(0,D.strConcat)(yt.default.instancePath,o)],[yt.default.parentData,a.parentData],[yt.default.parentDataProperty,a.parentDataProperty],[yt.default.rootData,yt.default.rootData]];a.opts.dynamicRef&&p.push([yt.default.dynamicAnchors,yt.default.dynamicAnchors]);let h=(0,D._)`${l}, ${r.object(...p)}`;return u!==D.nil?(0,D._)`${c}.call(${u}, ${h})`:(0,D._)`${c}(${h})`}s(R0,"callValidateCode");k.callValidateCode=R0;var I0=(0,D._)`new RegExp`;function q0({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,D._)`${i.code==="new RegExp"?I0:(0,x0.useFunc)(e,i)}(${r}, ${n})`})}s(q0,"usePattern");k.usePattern=q0;function N0(e){let{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){let c=t.let("valid",!0);return a(()=>t.assign(c,!1)),c}return t.var(o,!0),a(()=>t.break()),o;function a(c){let u=t.const("len",(0,D._)`${r}.length`);t.forRange("i",0,u,f=>{e.subschema({keyword:n,dataProp:f,dataPropType:Ms.Type.Num},o),t.if((0,D.not)(o),c)})}s(a,"validateItems")}s(N0,"validateArray");k.validateArray=N0;function C0(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,Ms.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((u,f)=>{let l=e.subschema({keyword:n,schemaProp:f,compositeRule:!0},c);t.assign(a,(0,D._)`${a} || ${c}`),e.mergeValidEvaluated(l,c)||t.if((0,D.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}s(C0,"validateUnion");k.validateUnion=C0});var kf=m(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.validateKeywordUsage=He.validSchemaType=He.funcKeywordCode=He.macroKeywordCode=void 0;var fe=w(),Gt=Oe(),k0=xe(),M0=$n();function D0(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:a}=e,c=t.macro.call(a.self,i,o,a),u=Cf(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let f=r.name("valid");e.subschema({schema:c,schemaPath:fe.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},f),e.pass(f,()=>e.error(!0))}s(D0,"macroKeywordCode");He.macroKeywordCode=D0;function F0(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:c,it:u}=e;L0(u,t);let f=!c&&t.compile?t.compile.call(u.self,o,a,u):t.validate,l=Cf(n,i,f),p=n.let("valid");e.block$data(p,h),e.ok((r=t.valid)!==null&&r!==void 0?r:p);function h(){if(t.errors===!1)$(),t.modifying&&Nf(e),g(()=>e.error());else{let b=t.async?d():y();t.modifying&&Nf(e),g(()=>V0(e,b))}}s(h,"validateKeyword");function d(){let b=n.let("ruleErrs",null);return n.try(()=>$((0,fe._)`await `),v=>n.assign(p,!1).if((0,fe._)`${v} instanceof ${u.ValidationError}`,()=>n.assign(b,(0,fe._)`${v}.errors`),()=>n.throw(v))),b}s(d,"validateAsync");function y(){let b=(0,fe._)`${l}.errors`;return n.assign(b,null),$(fe.nil),b}s(y,"validateSync");function $(b=t.async?(0,fe._)`await `:fe.nil){let v=u.opts.passContext?Gt.default.this:Gt.default.self,S=!("compile"in t&&!c||t.schema===!1);n.assign(p,(0,fe._)`${b}${(0,k0.callValidateCode)(e,l,v,S)}`,t.modifying)}s($,"assignValid");function g(b){var v;n.if((0,fe.not)((v=t.valid)!==null&&v!==void 0?v:p),b)}s(g,"reportErrs")}s(F0,"funcKeywordCode");He.funcKeywordCode=F0;function Nf(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,fe._)`${n.parentData}[${n.parentDataProperty}]`))}s(Nf,"modifyData");function V0(e,t){let{gen:r}=e;r.if((0,fe._)`Array.isArray(${t})`,()=>{r.assign(Gt.default.vErrors,(0,fe._)`${Gt.default.vErrors} === null ? ${t} : ${Gt.default.vErrors}.concat(${t})`).assign(Gt.default.errors,(0,fe._)`${Gt.default.vErrors}.length`),(0,M0.extendErrors)(e)},()=>e.error())}s(V0,"addErrs");function L0({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}s(L0,"checkAsyncKeyword");function Cf(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,fe.stringify)(r)})}s(Cf,"useKeyword");function B0(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}s(B0,"validSchemaType");He.validSchemaType=B0;function z0({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(c=>!Object.prototype.hasOwnProperty.call(e,c)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){let u=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}s(z0,"validateKeywordUsage");He.validateKeywordUsage=z0});var Df=m(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.extendSubschemaMode=gt.extendSubschemaData=gt.getSubschema=void 0;var Ge=w(),Mf=R();function U0(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let c=e.schema[t];return r===void 0?{schema:c,schemaPath:(0,Ge._)`${e.schemaPath}${(0,Ge.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,Ge._)`${e.schemaPath}${(0,Ge.getProperty)(t)}${(0,Ge.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Mf.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}s(U0,"getSubschema");gt.getSubschema=U0;function Z0(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:c}=t;if(r!==void 0){let{errorPath:f,dataPathArr:l,opts:p}=t,h=c.let("data",(0,Ge._)`${t.data}${(0,Ge.getProperty)(r)}`,!0);u(h),e.errorPath=(0,Ge.str)`${f}${(0,Mf.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,Ge._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(i!==void 0){let f=i instanceof Ge.Name?i:c.let("data",i,!0);u(f),a!==void 0&&(e.propertyName=a)}o&&(e.dataTypes=o);function u(f){e.data=f,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,f]}s(u,"dataContextProps")}s(Z0,"extendSubschemaData");gt.extendSubschemaData=Z0;function H0(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}s(H0,"extendSubschemaMode");gt.extendSubschemaMode=H0});var Vs=m((jT,Ff)=>{"use strict";Ff.exports=s(function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var Lf=m((TT,Vf)=>{"use strict";var $t=Vf.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(){};wi(t,n,i,e,"",e)};$t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};$t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};$t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};$t.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 wi(e,t,r,n,i,o,a,c,u,f){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,a,c,u,f);for(var l in n){var p=n[l];if(Array.isArray(p)){if(l in $t.arrayKeywords)for(var h=0;h<p.length;h++)wi(e,t,r,p[h],i+"/"+l+"/"+h,o,i,l,n,h)}else if(l in $t.propsKeywords){if(p&&typeof p=="object")for(var d in p)wi(e,t,r,p[d],i+"/"+l+"/"+G0(d),o,i,l,n,d)}else(l in $t.keywords||e.allKeys&&!(l in $t.skipKeywords))&&wi(e,t,r,p,i+"/"+l,o,i,l,n)}r(n,i,o,a,c,u,f)}}s(wi,"_traverse");function G0(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}s(G0,"escapeJsonPtr")});var vn=m(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.getSchemaRefs=ge.resolveUrl=ge.normalizeId=ge._getFullPath=ge.getFullPath=ge.inlineRef=void 0;var K0=R(),W0=Vs(),Y0=Lf(),J0=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function X0(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Ls(e):t?Bf(e)<=t:!1}s(X0,"inlineRef");ge.inlineRef=X0;var Q0=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Ls(e){for(let t in e){if(Q0.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Ls)||typeof r=="object"&&Ls(r))return!0}return!1}s(Ls,"hasRef");function Bf(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!J0.has(r)&&(typeof e[r]=="object"&&(0,K0.eachItem)(e[r],n=>t+=Bf(n)),t===1/0))return 1/0}return t}s(Bf,"countKeys");function zf(e,t="",r){r!==!1&&(t=wr(t));let n=e.parse(t);return Uf(e,n)}s(zf,"getFullPath");ge.getFullPath=zf;function Uf(e,t){return e.serialize(t).split("#")[0]+"#"}s(Uf,"_getFullPath");ge._getFullPath=Uf;var eb=/#\/?$/;function wr(e){return e?e.replace(eb,""):""}s(wr,"normalizeId");ge.normalizeId=wr;function tb(e,t,r){return r=wr(r),e.resolve(t,r)}s(tb,"resolveUrl");ge.resolveUrl=tb;var rb=/^[a-z_][-a-z0-9._]*$/i;function nb(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=wr(e[r]||t),o={"":i},a=zf(n,i,!1),c={},u=new Set;return Y0(e,{allKeys:!0},(p,h,d,y)=>{if(y===void 0)return;let $=a+h,g=o[y];typeof p[r]=="string"&&(g=b.call(this,p[r])),v.call(this,p.$anchor),v.call(this,p.$dynamicAnchor),o[h]=g;function b(S){let T=this.opts.uriResolver.resolve;if(S=wr(g?T(g,S):S),u.has(S))throw l(S);u.add(S);let P=this.refs[S];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?f(p,P.schema,S):S!==wr($)&&(S[0]==="#"?(f(p,c[S],S),c[S]=p):this.refs[S]=$),S}s(b,"addRef");function v(S){if(typeof S=="string"){if(!rb.test(S))throw new Error(`invalid anchor "${S}"`);b.call(this,`#${S}`)}}s(v,"addAnchor")}),c;function f(p,h,d){if(h!==void 0&&!W0(p,h))throw l(d)}s(f,"checkAmbiguosRef");function l(p){return new Error(`reference "${p}" resolves to more than one schema`)}s(l,"ambiguos")}s(nb,"getSchemaRefs");ge.getSchemaRefs=nb});var _n=m(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.getData=bt.KeywordCxt=bt.validateFunctionCode=void 0;var Wf=Of(),Zf=bn(),zs=qs(),Ei=bn(),ib=Rf(),Pn=kf(),Bs=Df(),_=w(),x=Oe(),ob=vn(),ct=R(),Sn=$n();function sb(e){if(Xf(e)&&(Qf(e),Jf(e))){ub(e);return}Yf(e,()=>(0,Wf.topBoolOrEmptySchema)(e))}s(sb,"validateFunctionCode");bt.validateFunctionCode=sb;function Yf({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,_._)`${x.default.data}, ${x.default.valCxt}`,n.$async,()=>{e.code((0,_._)`"use strict"; ${Hf(r,i)}`),cb(e,i),e.code(o)}):e.func(t,(0,_._)`${x.default.data}, ${ab(i)}`,n.$async,()=>e.code(Hf(r,i)).code(o))}s(Yf,"validateFunction");function ab(e){return(0,_._)`{${x.default.instancePath}="", ${x.default.parentData}, ${x.default.parentDataProperty}, ${x.default.rootData}=${x.default.data}${e.dynamicRef?(0,_._)`, ${x.default.dynamicAnchors}={}`:_.nil}}={}`}s(ab,"destructureValCxt");function cb(e,t){e.if(x.default.valCxt,()=>{e.var(x.default.instancePath,(0,_._)`${x.default.valCxt}.${x.default.instancePath}`),e.var(x.default.parentData,(0,_._)`${x.default.valCxt}.${x.default.parentData}`),e.var(x.default.parentDataProperty,(0,_._)`${x.default.valCxt}.${x.default.parentDataProperty}`),e.var(x.default.rootData,(0,_._)`${x.default.valCxt}.${x.default.rootData}`),t.dynamicRef&&e.var(x.default.dynamicAnchors,(0,_._)`${x.default.valCxt}.${x.default.dynamicAnchors}`)},()=>{e.var(x.default.instancePath,(0,_._)`""`),e.var(x.default.parentData,(0,_._)`undefined`),e.var(x.default.parentDataProperty,(0,_._)`undefined`),e.var(x.default.rootData,x.default.data),t.dynamicRef&&e.var(x.default.dynamicAnchors,(0,_._)`{}`)})}s(cb,"destructureValCxtES5");function ub(e){let{schema:t,opts:r,gen:n}=e;Yf(e,()=>{r.$comment&&t.$comment&&tl(e),mb(e),n.let(x.default.vErrors,null),n.let(x.default.errors,0),r.unevaluated&&fb(e),el(e),gb(e)})}s(ub,"topSchemaObjCode");function fb(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,_._)`${r}.evaluated`),t.if((0,_._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,_._)`${e.evaluated}.props`,(0,_._)`undefined`)),t.if((0,_._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,_._)`${e.evaluated}.items`,(0,_._)`undefined`))}s(fb,"resetEvaluated");function Hf(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,_._)`/*# sourceURL=${r} */`:_.nil}s(Hf,"funcSourceUrl");function lb(e,t){if(Xf(e)&&(Qf(e),Jf(e))){pb(e,t);return}(0,Wf.boolOrEmptySchema)(e,t)}s(lb,"subschemaCode");function Jf({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}s(Jf,"schemaCxtHasRules");function Xf(e){return typeof e.schema!="boolean"}s(Xf,"isSchemaObj");function pb(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&tl(e),hb(e),yb(e);let o=n.const("_errs",x.default.errors);el(e,o),n.var(t,(0,_._)`${o} === ${x.default.errors}`)}s(pb,"subSchemaObjCode");function Qf(e){(0,ct.checkUnknownRules)(e),db(e)}s(Qf,"checkKeywords");function el(e,t){if(e.opts.jtd)return Gf(e,[],!1,t);let r=(0,Zf.getSchemaTypes)(e.schema),n=(0,Zf.coerceAndCheckDataType)(e,r);Gf(e,r,!n,t)}s(el,"typeAndKeywords");function db(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,ct.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}s(db,"checkRefsAndKeywords");function mb(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,ct.checkStrictMode)(e,"default is ignored in the schema root")}s(mb,"checkNoDefault");function hb(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,ob.resolveUrl)(e.opts.uriResolver,e.baseId,t))}s(hb,"updateContext");function yb(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}s(yb,"checkAsyncSchema");function tl({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,_._)`${x.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=(0,_.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,_._)`${x.default.self}.opts.$comment(${o}, ${a}, ${c}.schema)`)}}s(tl,"commentKeyword");function gb(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,_._)`${x.default.errors} === 0`,()=>t.return(x.default.data),()=>t.throw((0,_._)`new ${i}(${x.default.vErrors})`)):(t.assign((0,_._)`${n}.errors`,x.default.vErrors),o.unevaluated&&$b(e),t.return((0,_._)`${x.default.errors} === 0`))}s(gb,"returnResults");function $b({gen:e,evaluated:t,props:r,items:n}){r instanceof _.Name&&e.assign((0,_._)`${t}.props`,r),n instanceof _.Name&&e.assign((0,_._)`${t}.items`,n)}s($b,"assignEvaluated");function Gf(e,t,r,n){let{gen:i,schema:o,data:a,allErrors:c,opts:u,self:f}=e,{RULES:l}=f;if(o.$ref&&(u.ignoreKeywordsWithRef||!(0,ct.schemaHasRulesButRef)(o,l))){i.block(()=>nl(e,"$ref",l.all.$ref.definition));return}u.jtd||bb(e,t),i.block(()=>{for(let h of l.rules)p(h);p(l.post)});function p(h){(0,zs.shouldUseGroup)(o,h)&&(h.type?(i.if((0,Ei.checkDataType)(h.type,a,u.strictNumbers)),Kf(e,h),t.length===1&&t[0]===h.type&&r&&(i.else(),(0,Ei.reportTypeError)(e)),i.endIf()):Kf(e,h),c||i.if((0,_._)`${x.default.errors} === ${n||0}`))}s(p,"groupKeywords")}s(Gf,"schemaKeywords");function Kf(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,ib.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,zs.shouldUseRule)(n,o)&&nl(e,o.keyword,o.definition,t.type)})}s(Kf,"iterateKeywords");function bb(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(vb(e,t),e.opts.allowUnionTypes||Sb(e,t),Pb(e,e.dataTypes))}s(bb,"checkStrictTypes");function vb(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{rl(e.dataTypes,r)||Us(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),Ob(e,t)}}s(vb,"checkContextTypes");function Sb(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Us(e,"use allowUnionTypes to allow union type keyword")}s(Sb,"checkMultipleTypes");function Pb(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,zs.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>_b(t,a))&&Us(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}s(Pb,"checkKeywordTypes");function _b(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}s(_b,"hasApplicableType");function rl(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}s(rl,"includesType");function Ob(e,t){let r=[];for(let n of e.dataTypes)rl(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}s(Ob,"narrowSchemaTypes");function Us(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,ct.checkStrictMode)(e,t,e.opts.strictTypes)}s(Us,"strictTypesError");var Zs=class Zs{constructor(t,r,n){if((0,Pn.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,ct.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",il(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Pn.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",x.default.errors))}result(t,r,n){this.failResult((0,_.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,_.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,_._)`${r} !== undefined && (${(0,_.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Sn.reportExtraError:Sn.reportError)(this,this.def.error,r)}$dataError(){(0,Sn.reportError)(this,this.def.$dataError||Sn.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Sn.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=_.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=_.nil,r=_.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if((0,_.or)((0,_._)`${i} === undefined`,r)),t!==_.nil&&n.assign(t,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==_.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,_.or)(a(),c());function a(){if(n.length){if(!(r instanceof _.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,_._)`${(0,Ei.checkDataTypes)(u,r,o.opts.strictNumbers,Ei.DataType.Wrong)}`}return _.nil}function c(){if(i.validateSchema){let u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,_._)`!${u}(${r})`}return _.nil}}subschema(t,r){let n=(0,Bs.getSubschema)(this.it,t);(0,Bs.extendSubschemaData)(n,this.it,t),(0,Bs.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return lb(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=ct.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=ct.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,_.Name)),!0}};s(Zs,"KeywordCxt");var ji=Zs;bt.KeywordCxt=ji;function nl(e,t,r,n){let i=new ji(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Pn.funcKeywordCode)(i,r):"macro"in r?(0,Pn.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Pn.funcKeywordCode)(i,r)}s(nl,"keywordCode");var xb=/^\/(?:[^~]|~0|~1)*$/,wb=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function il(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return x.default.rootData;if(e[0]==="/"){if(!xb.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=x.default.rootData}else{let f=wb.exec(e);if(!f)throw new Error(`Invalid JSON-pointer: ${e}`);let l=+f[1];if(i=f[2],i==="#"){if(l>=t)throw new Error(u("property/index",l));return n[t-l]}if(l>t)throw new Error(u("data",l));if(o=r[t-l],!i)return o}let a=o,c=i.split("/");for(let f of c)f&&(o=(0,_._)`${o}${(0,_.getProperty)((0,ct.unescapeJsonPointer)(f))}`,a=(0,_._)`${a} && ${o}`);return a;function u(f,l){return`Cannot access ${f} ${l} levels up, current level is ${t}`}}s(il,"getData");bt.getData=il});var Ai=m(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});var Ks=class Ks extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};s(Ks,"ValidationError");var Hs=Ks;Gs.default=Hs});var On=m(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});var Ws=vn(),Xs=class Xs extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Ws.resolveUrl)(t,r,n),this.missingSchema=(0,Ws.normalizeId)((0,Ws.getFullPath)(t,this.missingRef))}};s(Xs,"MissingRefError");var Ys=Xs;Js.default=Ys});var xn=m(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.resolveSchema=we.getCompilingSchema=we.resolveRef=we.compileSchema=we.SchemaEnv=void 0;var Ne=w(),Eb=Ai(),Kt=Oe(),Ce=vn(),ol=R(),jb=_n(),ta=class ta{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,Ce.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};s(ta,"SchemaEnv");var Er=ta;we.SchemaEnv=Er;function ea(e){let t=sl.call(this,e);if(t)return t;let r=(0,Ce.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new Ne.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),c;e.$async&&(c=a.scopeValue("Error",{ref:Eb.default,code:(0,Ne._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let f={gen:a,allErrors:this.opts.allErrors,data:Kt.default.data,parentData:Kt.default.parentData,parentDataProperty:Kt.default.parentDataProperty,dataNames:[Kt.default.data],dataPathArr:[Ne.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ne.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Ne.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ne._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(e),(0,jb.validateFunctionCode)(f),a.optimize(this.opts.code.optimize);let p=a.toString();l=`${a.scopeRefs(Kt.default.scope)}return ${p}`,this.opts.code.process&&(l=this.opts.code.process(l,e));let d=new Function(`${Kt.default.self}`,`${Kt.default.scope}`,l)(this,this.scope.get());if(this.scope.value(u,{ref:d}),d.errors=null,d.schema=e.schema,d.schemaEnv=e,e.$async&&(d.$async=!0),this.opts.code.source===!0&&(d.source={validateName:u,validateCode:p,scopeValues:a._values}),this.opts.unevaluated){let{props:y,items:$}=f;d.evaluated={props:y instanceof Ne.Name?void 0:y,items:$ instanceof Ne.Name?void 0:$,dynamicProps:y instanceof Ne.Name,dynamicItems:$ instanceof Ne.Name},d.source&&(d.source.evaluated=(0,Ne.stringify)(d.evaluated))}return e.validate=d,e}catch(p){throw delete e.validate,delete e.validateName,l&&this.logger.error("Error compiling schema, function code:",l),p}finally{this._compilations.delete(e)}}s(ea,"compileSchema");we.compileSchema=ea;function Ab(e,t,r){var n;r=(0,Ce.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let o=Ib.call(this,e,r);if(o===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;a&&(o=new Er({schema:a,schemaId:c,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=Tb.call(this,o)}s(Ab,"resolveRef");we.resolveRef=Ab;function Tb(e){return(0,Ce.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:ea.call(this,e)}s(Tb,"inlineOrCompile");function sl(e){for(let t of this._compilations)if(Rb(t,e))return t}s(sl,"getCompilingSchema");we.getCompilingSchema=sl;function Rb(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}s(Rb,"sameSchemaEnv");function Ib(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Ti.call(this,e,t)}s(Ib,"resolve");function Ti(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Ce._getFullPath)(this.opts.uriResolver,r),i=(0,Ce.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Qs.call(this,r,e);let o=(0,Ce.normalizeId)(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let c=Ti.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:Qs.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||ea.call(this,a),o===(0,Ce.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,f=c[u];return f&&(i=(0,Ce.resolveUrl)(this.opts.uriResolver,i,f)),new Er({schema:c,schemaId:u,root:e,baseId:i})}return Qs.call(this,r,a)}}s(Ti,"resolveSchema");we.resolveSchema=Ti;var qb=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Qs(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,ol.unescapeFragment)(c)];if(u===void 0)return;r=u;let f=typeof r=="object"&&r[this.opts.schemaId];!qb.has(c)&&f&&(t=(0,Ce.resolveUrl)(this.opts.uriResolver,t,f))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,ol.schemaHasRulesButRef)(r,this.RULES)){let c=(0,Ce.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=Ti.call(this,n,c)}let{schemaId:a}=this.opts;if(o=o||new Er({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}s(Qs,"getJsonPointer")});var al=m((BT,Nb)=>{Nb.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 ul=m((zT,cl)=>{"use strict";var Cb={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};cl.exports={HEX:Cb}});var gl=m((UT,yl)=>{"use strict";var{HEX:kb}=ul();function dl(e){if(hl(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:Db(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}s(dl,"normalizeIPv4");function ra(e,t=!1){let r="",n=!0;for(let i of e){if(kb[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}s(ra,"stringArrayToHexStripped");function Mb(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],o=!1,a=!1,c=!1;function u(){if(i.length){if(o===!1){let f=ra(i);if(f!==void 0)n.push(f);else return r.error=!0,!1}i.length=0}return!0}s(u,"consume");for(let f=0;f<e.length;f++){let l=e[f];if(!(l==="["||l==="]"))if(l===":"){if(a===!0&&(c=!0),!u())break;if(t++,n.push(":"),t>7){r.error=!0;break}f-1>=0&&e[f-1]===":"&&(a=!0);continue}else if(l==="%"){if(!u())break;o=!0}else{i.push(l);continue}}return i.length&&(o?r.zone=i.join(""):c?n.push(i.join("")):n.push(ra(i))),r.address=n.join(""),r}s(Mb,"getIPV6");function ml(e,t={}){if(hl(e,":")<2)return{host:e,isIPV6:!1};let r=Mb(e);if(r.error)return{host:e,isIPV6:!1};{let n=r.address,i=r.address;return r.zone&&(n+="%"+r.zone,i+="%25"+r.zone),{host:n,escapedHost:i,isIPV6:!0}}}s(ml,"normalizeIPv6");function Db(e,t){let r="",n=!0,i=e.length;for(let o=0;o<i;o++){let a=e[o];a==="0"&&n?(o+1<=i&&e[o+1]===t||o+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}s(Db,"stripLeadingZeros");function hl(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}s(hl,"findToken");var fl=/^\.\.?\//u,ll=/^\/\.(?:\/|$)/u,pl=/^\/\.\.(?:\/|$)/u,Fb=/^\/?(?:.|\n)*?(?=\/|$)/u;function Vb(e){let t=[];for(;e.length;)if(e.match(fl))e=e.replace(fl,"");else if(e.match(ll))e=e.replace(ll,"/");else if(e.match(pl))e=e.replace(pl,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(Fb);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}s(Vb,"removeDotSegments");function Lb(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}s(Lb,"normalizeComponentEncoding");function Bb(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=dl(n);if(i.isIPV4)n=i.host;else{let o=ml(i.host,{isIPV4:!1});o.isIPV6===!0?n=`[${o.escapedHost}]`:n=e.host}r.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}s(Bb,"recomposeAuthority");yl.exports={recomposeAuthority:Bb,normalizeComponentEncoding:Lb,removeDotSegments:Vb,normalizeIPv4:dl,normalizeIPv6:ml,stringArrayToHexStripped:ra}});var _l=m((HT,Pl)=>{"use strict";var zb=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,Ub=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function $l(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}s($l,"isSecure");function bl(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}s(bl,"httpParse");function vl(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}s(vl,"httpSerialize");function Zb(e){return e.secure=$l(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}s(Zb,"wsParse");function Hb(e){if((e.port===($l(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}s(Hb,"wsSerialize");function Gb(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(Ub);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,o=na[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}s(Gb,"urnParse");function Kb(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,o=na[i];o&&(e=o.serialize(e,t));let a=e,c=e.nss;return a.path=`${n||t.nid}:${c}`,t.skipEscape=!0,a}s(Kb,"urnSerialize");function Wb(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!zb.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}s(Wb,"urnuuidParse");function Yb(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}s(Yb,"urnuuidSerialize");var Sl={scheme:"http",domainHost:!0,parse:bl,serialize:vl},Jb={scheme:"https",domainHost:Sl.domainHost,parse:bl,serialize:vl},Ri={scheme:"ws",domainHost:!0,parse:Zb,serialize:Hb},Xb={scheme:"wss",domainHost:Ri.domainHost,parse:Ri.parse,serialize:Ri.serialize},Qb={scheme:"urn",parse:Gb,serialize:Kb,skipNormalize:!0},ev={scheme:"urn:uuid",parse:Wb,serialize:Yb,skipNormalize:!0},na={http:Sl,https:Jb,ws:Ri,wss:Xb,urn:Qb,"urn:uuid":ev};Pl.exports=na});var xl=m((KT,qi)=>{"use strict";var{normalizeIPv6:tv,normalizeIPv4:rv,removeDotSegments:wn,recomposeAuthority:nv,normalizeComponentEncoding:Ii}=gl(),ia=_l();function iv(e,t){return typeof e=="string"?e=Ke(ut(e,t),t):typeof e=="object"&&(e=ut(Ke(e,t),t)),e}s(iv,"normalize");function ov(e,t,r){let n=Object.assign({scheme:"null"},r),i=Ol(ut(e,n),ut(t,n),n,!0);return Ke(i,{...n,skipEscape:!0})}s(ov,"resolve");function Ol(e,t,r,n){let i={};return n||(e=ut(Ke(e,r),r),t=ut(Ke(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=wn(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=wn(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=wn(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=wn(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}s(Ol,"resolveComponents");function sv(e,t,r){return typeof e=="string"?(e=unescape(e),e=Ke(Ii(ut(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Ke(Ii(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Ke(Ii(ut(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Ke(Ii(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}s(sv,"equal");function Ke(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],o=ia[(n.scheme||r.scheme||"").toLowerCase()];o&&o.serialize&&o.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&(i.push(r.scheme),i.push(":"));let a=nv(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let c=r.path;!n.absolutePath&&(!o||!o.absolutePath)&&(c=wn(c)),a===void 0&&(c=c.replace(/^\/\//u,"/%2F")),i.push(c)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}s(Ke,"serialize");var av=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function cv(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||av[t])return!0;return!1}s(cv,"nonSimpleDomain");var uv=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function ut(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,o=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(uv);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=rv(n.host);if(u.isIPV4===!1){let f=tv(u.host,{isIPV4:!1});n.host=f.host.toLowerCase(),o=f.isIPV6}else n.host=u.host,o=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let c=ia[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&o===!1&&cv(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}(!c||c&&!c.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),c&&c.parse&&c.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}s(ut,"parse");var oa={SCHEMES:ia,normalize:iv,resolve:ov,resolveComponents:Ol,equal:sv,serialize:Ke,parse:ut};qi.exports=oa;qi.exports.default=oa;qi.exports.fastUri=oa});var El=m(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});var wl=xl();wl.code='require("ajv/dist/runtime/uri").default';sa.default=wl});var Ar=m(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.CodeGen=te.Name=te.nil=te.stringify=te.str=te._=te.KeywordCxt=void 0;var fv=_n();Object.defineProperty(te,"KeywordCxt",{enumerable:!0,get:s(function(){return fv.KeywordCxt},"get")});var jr=w();Object.defineProperty(te,"_",{enumerable:!0,get:s(function(){return jr._},"get")});Object.defineProperty(te,"str",{enumerable:!0,get:s(function(){return jr.str},"get")});Object.defineProperty(te,"stringify",{enumerable:!0,get:s(function(){return jr.stringify},"get")});Object.defineProperty(te,"nil",{enumerable:!0,get:s(function(){return jr.nil},"get")});Object.defineProperty(te,"Name",{enumerable:!0,get:s(function(){return jr.Name},"get")});Object.defineProperty(te,"CodeGen",{enumerable:!0,get:s(function(){return jr.CodeGen},"get")});var lv=Ai(),Il=On(),pv=Is(),En=xn(),dv=w(),jn=vn(),Ni=bn(),ca=R(),jl=al(),mv=El(),ql=s((e,t)=>new RegExp(e,t),"defaultRegExp");ql.code="new RegExp";var hv=["removeAdditional","useDefaults","coerceTypes"],yv=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),gv={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."},$v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Al=200;function bv(e){var t,r,n,i,o,a,c,u,f,l,p,h,d,y,$,g,b,v,S,T,P,z,W,ee,me;let ot=e.strict,Vt=(t=e.code)===null||t===void 0?void 0:t.optimize,ai=Vt===!0||Vt===void 0?1:Vt||0,an=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:ql,Cg=(i=e.uriResolver)!==null&&i!==void 0?i:mv.default;return{strictSchema:(a=(o=e.strictSchema)!==null&&o!==void 0?o:ot)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:ot)!==null&&u!==void 0?u:!0,strictTypes:(l=(f=e.strictTypes)!==null&&f!==void 0?f:ot)!==null&&l!==void 0?l:"log",strictTuples:(h=(p=e.strictTuples)!==null&&p!==void 0?p:ot)!==null&&h!==void 0?h:"log",strictRequired:(y=(d=e.strictRequired)!==null&&d!==void 0?d:ot)!==null&&y!==void 0?y:!1,code:e.code?{...e.code,optimize:ai,regExp:an}:{optimize:ai,regExp:an},loopRequired:($=e.loopRequired)!==null&&$!==void 0?$:Al,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:Al,meta:(b=e.meta)!==null&&b!==void 0?b:!0,messages:(v=e.messages)!==null&&v!==void 0?v:!0,inlineRefs:(S=e.inlineRefs)!==null&&S!==void 0?S:!0,schemaId:(T=e.schemaId)!==null&&T!==void 0?T:"$id",addUsedSchema:(P=e.addUsedSchema)!==null&&P!==void 0?P:!0,validateSchema:(z=e.validateSchema)!==null&&z!==void 0?z:!0,validateFormats:(W=e.validateFormats)!==null&&W!==void 0?W:!0,unicodeRegExp:(ee=e.unicodeRegExp)!==null&&ee!==void 0?ee:!0,int32range:(me=e.int32range)!==null&&me!==void 0?me:!0,uriResolver:Cg}}s(bv,"requiredOptions");var ua=class ua{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...bv(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new dv.ValueScope({scope:{},prefixes:yv,es5:r,lines:n}),this.logger=xv(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,pv.getRules)(),Tl.call(this,gv,t,"NOT SUPPORTED"),Tl.call(this,$v,t,"DEPRECATED","warn"),this._metaOpts=_v.call(this),t.formats&&Sv.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&Pv.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),vv.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=jl;n==="id"&&(i={...jl},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(l,p){await o.call(this,l.$schema);let h=this._addSchema(l,p);return h.validate||a.call(this,h)}async function o(l){l&&!this.getSchema(l)&&await i.call(this,{$ref:l},!0)}async function a(l){try{return this._compileSchemaEnv(l)}catch(p){if(!(p instanceof Il.default))throw p;return c.call(this,p),await u.call(this,p.missingSchema),a.call(this,l)}}function c({missingSchema:l,missingRef:p}){if(this.refs[l])throw new Error(`AnySchema ${l} is loaded but ${p} cannot be resolved`)}async function u(l){let p=await f.call(this,l);this.refs[l]||await o.call(this,p.$schema),this.refs[l]||this.addSchema(p,l,r)}async function f(l){let p=this._loading[l];if(p)return p;try{return await(this._loading[l]=n(l))}finally{delete this._loading[l]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let o;if(typeof t=="object"){let{schemaId:a}=this.opts;if(o=t[a],o!==void 0&&typeof o!="string")throw new Error(`schema ${a} must be string`)}return r=(0,jn.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(t){let r;for(;typeof(r=Rl.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new En.SchemaEnv({schema:{},schemaId:n});if(r=En.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=Rl.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,jn.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(Ev.call(this,n,r),!r)return(0,ca.eachItem)(n,o=>aa.call(this,o)),this;Av.call(this,r);let i={...r,type:(0,Ni.getJSONTypes)(r.type),schemaType:(0,Ni.getJSONTypes)(r.schemaType)};return(0,ca.eachItem)(n,i.type.length===0?o=>aa.call(this,o,i):o=>i.type.forEach(a=>aa.call(this,o,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(o=>o.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,o)=>i+r+o)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let o=i.split("/").slice(1),a=t;for(let c of o)a=a[c];for(let c in n){let u=n[c];if(typeof u!="object")continue;let{$data:f}=u.definition,l=a[c];f&&l&&(a[c]=Nl(l))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,o=this.opts.addUsedSchema){let a,{schemaId:c}=this.opts;if(typeof t=="object")a=t[c];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let u=this._cache.get(t);if(u!==void 0)return u;n=(0,jn.normalizeId)(a||n);let f=jn.getSchemaRefs.call(this,t,n);return u=new En.SchemaEnv({schema:t,schemaId:c,meta:r,baseId:n,localRefs:f}),this._cache.set(u.schema,u),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),i&&this.validateSchema(t,!0),u}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):En.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{En.compileSchema.call(this,t)}finally{this.opts=r}}};s(ua,"Ajv");var An=ua;An.ValidationError=lv.default;An.MissingRefError=Il.default;te.default=An;function Tl(e,t,r,n="error"){for(let i in e){let o=i;o in t&&this.logger[n](`${r}: option ${i}. ${e[o]}`)}}s(Tl,"checkOptions");function Rl(e){return e=(0,jn.normalizeId)(e),this.schemas[e]||this.refs[e]}s(Rl,"getSchEnv");function vv(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}s(vv,"addInitialSchemas");function Sv(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}s(Sv,"addInitialFormats");function Pv(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}s(Pv,"addInitialKeywords");function _v(){let e={...this.opts};for(let t of hv)delete e[t];return e}s(_v,"getMetaSchemaOptions");var Ov={log(){},warn(){},error(){}};function xv(e){if(e===!1)return Ov;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}s(xv,"getLogger");var wv=/^[a-z_$][a-z0-9_$:-]*$/i;function Ev(e,t){let{RULES:r}=this;if((0,ca.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!wv.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}s(Ev,"checkKeyword");function aa(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,a=i?o.post:o.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;let c={keyword:e,definition:{...t,type:(0,Ni.getJSONTypes)(t.type),schemaType:(0,Ni.getJSONTypes)(t.schemaType)}};t.before?jv.call(this,a,c,t.before):a.rules.push(c),o.all[e]=c,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}s(aa,"addRule");function jv(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}s(jv,"addBeforeRule");function Av(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=Nl(t)),e.validateSchema=this.compile(t,!0))}s(Av,"keywordMetaschema");var Tv={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Nl(e){return{anyOf:[e,Tv]}}s(Nl,"schemaOrData")});var Tn=m(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.callRef=Wt.getValidate=void 0;var Rv=On(),Cl=xe(),$e=w(),Tr=Oe(),kl=xn(),Ci=R(),Iv={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:a,opts:c,self:u}=n,{root:f}=o;if((r==="#"||r==="#/")&&i===f.baseId)return p();let l=kl.resolveRef.call(u,f,i,r);if(l===void 0)throw new Rv.default(n.opts.uriResolver,i,r);if(l instanceof kl.SchemaEnv)return h(l);return d(l);function p(){if(o===f)return ki(e,a,o,o.$async);let y=t.scopeValue("root",{ref:f});return ki(e,(0,$e._)`${y}.validate`,f,f.$async)}function h(y){let $=Ml(e,y);ki(e,$,y,y.$async)}function d(y){let $=t.scopeValue("schema",c.code.source===!0?{ref:y,code:(0,$e.stringify)(y)}:{ref:y}),g=t.name("valid"),b=e.subschema({schema:y,dataTypes:[],schemaPath:$e.nil,topSchemaRef:$,errSchemaPath:r},g);e.mergeEvaluated(b),e.ok(g)}}};function Ml(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,$e._)`${r.scopeValue("wrapper",{ref:t})}.validate`}s(Ml,"getValidate");Wt.getValidate=Ml;function ki(e,t,r,n){let{gen:i,it:o}=e,{allErrors:a,schemaEnv:c,opts:u}=o,f=u.passContext?Tr.default.this:$e.nil;n?l():p();function l(){if(!c.$async)throw new Error("async schema referenced by sync schema");let y=i.let("valid");i.try(()=>{i.code((0,$e._)`await ${(0,Cl.callValidateCode)(e,t,f)}`),d(t),a||i.assign(y,!0)},$=>{i.if((0,$e._)`!(${$} instanceof ${o.ValidationError})`,()=>i.throw($)),h($),a||i.assign(y,!1)}),e.ok(y)}s(l,"callAsyncRef");function p(){e.result((0,Cl.callValidateCode)(e,t,f),()=>d(t),()=>h(t))}s(p,"callSyncRef");function h(y){let $=(0,$e._)`${y}.errors`;i.assign(Tr.default.vErrors,(0,$e._)`${Tr.default.vErrors} === null ? ${$} : ${Tr.default.vErrors}.concat(${$})`),i.assign(Tr.default.errors,(0,$e._)`${Tr.default.vErrors}.length`)}s(h,"addErrorsFrom");function d(y){var $;if(!o.opts.unevaluated)return;let g=($=r==null?void 0:r.validate)===null||$===void 0?void 0:$.evaluated;if(o.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(o.props=Ci.mergeEvaluated.props(i,g.props,o.props));else{let b=i.var("props",(0,$e._)`${y}.evaluated.props`);o.props=Ci.mergeEvaluated.props(i,b,o.props,$e.Name)}if(o.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(o.items=Ci.mergeEvaluated.items(i,g.items,o.items));else{let b=i.var("items",(0,$e._)`${y}.evaluated.items`);o.items=Ci.mergeEvaluated.items(i,b,o.items,$e.Name)}}s(d,"addEvaluatedFrom")}s(ki,"callRef");Wt.callRef=ki;Wt.default=Iv});var Dl=m(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});var qv=Tn(),Nv=["$schema","id","$defs",{keyword:"$comment"},"definitions",qv.default];fa.default=Nv});var Fl=m(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});var la=Ar(),Cv=w(),vt=Cv.operators,pa={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:vt.LTE,fail:vt.GT},{okStr:"<",ok:vt.LT,fail:vt.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:vt.GTE,fail:vt.LT},{okStr:">",ok:vt.GT,fail:vt.LTE}]}},kv={message:s(e=>la.str`must be ${da(e).okStr} ${e.schemaCode}`,"message"),params:s(e=>la._`{comparison: ${da(e).okStr}, limit: ${e.schemaCode}}`,"params")},Mv={keyword:Object.keys(pa),type:"number",schemaType:"number",$data:!0,error:kv,code(e){let{data:t,schemaCode:r}=e;e.fail$data(la._`${t} ${da(e).fail} ${r} || isNaN(${t})`)}};function da(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[pa[r].exclusive]?1:0;return pa[r].ops[n]}s(da,"kwdOp");ma.default=Mv});var Ll=m(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});var Vl={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},Dv={keyword:Object.keys(Vl),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=Vl[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};ha.default=Dv});var ga=m(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});var Rn=w(),Fv={message:s(({schemaCode:e})=>(0,Rn.str)`must be multiple of ${e}`,"message"),params:s(({schemaCode:e})=>(0,Rn._)`{multipleOf: ${e}}`,"params")},Vv={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Fv,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),c=o?(0,Rn._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,Rn._)`${a} !== parseInt(${a})`;e.fail$data((0,Rn._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};ya.default=Vv});var zl=m($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});function Bl(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}s(Bl,"ucs2length");$a.default=Bl;Bl.code='require("ajv/dist/runtime/ucs2length").default'});var va=m(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});var Yt=w(),Lv=R(),Bv=zl(),zv={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Yt.str)`must NOT have ${r} than ${t} characters`},params:s(({schemaCode:e})=>(0,Yt._)`{limit: ${e}}`,"params")},Uv={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:zv,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?Yt.operators.GT:Yt.operators.LT,a=i.opts.unicode===!1?(0,Yt._)`${r}.length`:(0,Yt._)`${(0,Lv.useFunc)(e.gen,Bv.default)}(${r})`;e.fail$data((0,Yt._)`${a} ${o} ${n}`)}};ba.default=Uv});var Pa=m(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});var Zv=xe(),Mi=w(),Hv={message:s(({schemaCode:e})=>(0,Mi.str)`must match pattern "${e}"`,"message"),params:s(({schemaCode:e})=>(0,Mi._)`{pattern: ${e}}`,"params")},Gv={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Hv,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,a=o.opts.unicodeRegExp?"u":"",c=r?(0,Mi._)`(new RegExp(${i}, ${a}))`:(0,Zv.usePattern)(e,n);e.fail$data((0,Mi._)`!${c}.test(${t})`)}};Sa.default=Gv});var Oa=m(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});var In=w(),Kv={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,In.str)`must NOT have ${r} than ${t} properties`},params:s(({schemaCode:e})=>(0,In._)`{limit: ${e}}`,"params")},Wv={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Kv,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?In.operators.GT:In.operators.LT;e.fail$data((0,In._)`Object.keys(${r}).length ${i} ${n}`)}};_a.default=Wv});var wa=m(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});var qn=xe(),Nn=w(),Yv=R(),Jv={message:s(({params:{missingProperty:e}})=>(0,Nn.str)`must have required property '${e}'`,"message"),params:s(({params:{missingProperty:e}})=>(0,Nn._)`{missingProperty: ${e}}`,"params")},Xv={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Jv,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:a}=e,{opts:c}=a;if(!o&&r.length===0)return;let u=r.length>=c.loopRequired;if(a.allErrors?f():l(),c.strictRequired){let d=e.parentSchema.properties,{definedProperties:y}=e.it;for(let $ of r)if((d==null?void 0:d[$])===void 0&&!y.has($)){let g=a.schemaEnv.baseId+a.errSchemaPath,b=`required property "${$}" is not defined at "${g}" (strictRequired)`;(0,Yv.checkStrictMode)(a,b,a.opts.strictRequired)}}function f(){if(u||o)e.block$data(Nn.nil,p);else for(let d of r)(0,qn.checkReportMissingProp)(e,d)}s(f,"allErrorsMode");function l(){let d=t.let("missing");if(u||o){let y=t.let("valid",!0);e.block$data(y,()=>h(d,y)),e.ok(y)}else t.if((0,qn.checkMissingProp)(e,r,d)),(0,qn.reportMissingProp)(e,d),t.else()}s(l,"exitOnErrorMode");function p(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,qn.noPropertyInData)(t,i,d,c.ownProperties),()=>e.error())})}s(p,"loopAllRequired");function h(d,y){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(y,(0,qn.propertyInData)(t,i,d,c.ownProperties)),t.if((0,Nn.not)(y),()=>{e.error(),t.break()})},Nn.nil)}s(h,"loopUntilMissing")}};xa.default=Xv});var ja=m(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});var Cn=w(),Qv={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Cn.str)`must NOT have ${r} than ${t} items`},params:s(({schemaCode:e})=>(0,Cn._)`{limit: ${e}}`,"params")},eS={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Qv,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Cn.operators.GT:Cn.operators.LT;e.fail$data((0,Cn._)`${r}.length ${i} ${n}`)}};Ea.default=eS});var Di=m(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});var Ul=Vs();Ul.code='require("ajv/dist/runtime/equal").default';Aa.default=Ul});var Ia=m(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});var Ta=bn(),re=w(),tS=R(),rS=Di(),nS={message:s(({params:{i:e,j:t}})=>(0,re.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:s(({params:{i:e,j:t}})=>(0,re._)`{i: ${e}, j: ${t}}`,"params")},iS={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:nS,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:a,it:c}=e;if(!n&&!i)return;let u=t.let("valid"),f=o.items?(0,Ta.getSchemaTypes)(o.items):[];e.block$data(u,l,(0,re._)`${a} === false`),e.ok(u);function l(){let y=t.let("i",(0,re._)`${r}.length`),$=t.let("j");e.setParams({i:y,j:$}),t.assign(u,!0),t.if((0,re._)`${y} > 1`,()=>(p()?h:d)(y,$))}s(l,"validateUniqueItems");function p(){return f.length>0&&!f.some(y=>y==="object"||y==="array")}s(p,"canOptimize");function h(y,$){let g=t.name("item"),b=(0,Ta.checkDataTypes)(f,g,c.opts.strictNumbers,Ta.DataType.Wrong),v=t.const("indices",(0,re._)`{}`);t.for((0,re._)`;${y}--;`,()=>{t.let(g,(0,re._)`${r}[${y}]`),t.if(b,(0,re._)`continue`),f.length>1&&t.if((0,re._)`typeof ${g} == "string"`,(0,re._)`${g} += "_"`),t.if((0,re._)`typeof ${v}[${g}] == "number"`,()=>{t.assign($,(0,re._)`${v}[${g}]`),e.error(),t.assign(u,!1).break()}).code((0,re._)`${v}[${g}] = ${y}`)})}s(h,"loopN");function d(y,$){let g=(0,tS.useFunc)(t,rS.default),b=t.name("outer");t.label(b).for((0,re._)`;${y}--;`,()=>t.for((0,re._)`${$} = ${y}; ${$}--;`,()=>t.if((0,re._)`${g}(${r}[${y}], ${r}[${$}])`,()=>{e.error(),t.assign(u,!1).break(b)})))}s(d,"loopN2")}};Ra.default=iS});var Ca=m(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});var qa=w(),oS=R(),sS=Di(),aS={message:"must be equal to constant",params:s(({schemaCode:e})=>(0,qa._)`{allowedValue: ${e}}`,"params")},cS={keyword:"const",$data:!0,error:aS,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,qa._)`!${(0,oS.useFunc)(t,sS.default)}(${r}, ${i})`):e.fail((0,qa._)`${o} !== ${r}`)}};Na.default=cS});var Ma=m(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});var kn=w(),uS=R(),fS=Di(),lS={message:"must be equal to one of the allowed values",params:s(({schemaCode:e})=>(0,kn._)`{allowedValues: ${e}}`,"params")},pS={keyword:"enum",schemaType:"array",$data:!0,error:lS,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let c=i.length>=a.opts.loopEnum,u,f=s(()=>u??(u=(0,uS.useFunc)(t,fS.default)),"getEql"),l;if(c||n)l=t.let("valid"),e.block$data(l,p);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let d=t.const("vSchema",o);l=(0,kn.or)(...i.map((y,$)=>h(d,$)))}e.pass(l);function p(){t.assign(l,!1),t.forOf("v",o,d=>t.if((0,kn._)`${f()}(${r}, ${d})`,()=>t.assign(l,!0).break()))}s(p,"loopEnum");function h(d,y){let $=i[y];return typeof $=="object"&&$!==null?(0,kn._)`${f()}(${r}, ${d}[${y}])`:(0,kn._)`${r} === ${$}`}s(h,"equalCode")}};ka.default=pS});var Zl=m(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});var dS=Fl(),mS=Ll(),hS=ga(),yS=va(),gS=Pa(),$S=Oa(),bS=wa(),vS=ja(),SS=Ia(),PS=Ca(),_S=Ma(),OS=[dS.default,mS.default,hS.default,yS.default,gS.default,$S.default,bS.default,vS.default,SS.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},PS.default,_S.default];Da.default=OS});var Va=m(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.validateAdditionalItems=void 0;var Jt=w(),Fa=R(),xS={message:s(({params:{len:e}})=>(0,Jt.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Jt._)`{limit: ${e}}`,"params")},wS={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:xS,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Fa.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Hl(e,n)}};function Hl(e,t){let{gen:r,schema:n,data:i,keyword:o,it:a}=e;a.items=!0;let c=r.const("len",(0,Jt._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Jt._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,Fa.alwaysValidSchema)(a,n)){let f=r.var("valid",(0,Jt._)`${c} <= ${t.length}`);r.if((0,Jt.not)(f),()=>u(f)),e.ok(f)}function u(f){r.forRange("i",t.length,c,l=>{e.subschema({keyword:o,dataProp:l,dataPropType:Fa.Type.Num},f),a.allErrors||r.if((0,Jt.not)(f),()=>r.break())})}s(u,"validateItems")}s(Hl,"validateAdditionalItems");Mn.validateAdditionalItems=Hl;Mn.default=wS});var La=m(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.validateTuple=void 0;var Gl=w(),Fi=R(),ES=xe(),jS={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return Kl(e,"additionalItems",t);r.items=!0,!(0,Fi.alwaysValidSchema)(r,t)&&e.ok((0,ES.validateArray)(e))}};function Kl(e,t,r=e.schema){let{gen:n,parentSchema:i,data:o,keyword:a,it:c}=e;l(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=Fi.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),f=n.const("len",(0,Gl._)`${o}.length`);r.forEach((p,h)=>{(0,Fi.alwaysValidSchema)(c,p)||(n.if((0,Gl._)`${f} > ${h}`,()=>e.subschema({keyword:a,schemaProp:h,dataProp:h},u)),e.ok(u))});function l(p){let{opts:h,errSchemaPath:d}=c,y=r.length,$=y===p.minItems&&(y===p.maxItems||p[t]===!1);if(h.strictTuples&&!$){let g=`"${a}" is ${y}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,Fi.checkStrictMode)(c,g,h.strictTuples)}}s(l,"checkStrictTuple")}s(Kl,"validateTuple");Dn.validateTuple=Kl;Dn.default=jS});var Wl=m(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});var AS=La(),TS={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:s(e=>(0,AS.validateTuple)(e,"items"),"code")};Ba.default=TS});var Jl=m(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});var Yl=w(),RS=R(),IS=xe(),qS=Va(),NS={message:s(({params:{len:e}})=>(0,Yl.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Yl._)`{limit: ${e}}`,"params")},CS={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:NS,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,RS.alwaysValidSchema)(n,t)&&(i?(0,qS.validateAdditionalItems)(e,i):e.ok((0,IS.validateArray)(e)))}};za.default=CS});var Xl=m(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});var Ee=w(),Vi=R(),kS={message:s(({params:{min:e,max:t}})=>t===void 0?(0,Ee.str)`must contain at least ${e} valid item(s)`:(0,Ee.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:s(({params:{min:e,max:t}})=>t===void 0?(0,Ee._)`{minContains: ${e}}`:(0,Ee._)`{minContains: ${e}, maxContains: ${t}}`,"params")},MS={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:kS,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e,a,c,{minContains:u,maxContains:f}=n;o.opts.next?(a=u===void 0?1:u,c=f):a=1;let l=t.const("len",(0,Ee._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,Vi.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,Vi.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Vi.alwaysValidSchema)(o,r)){let $=(0,Ee._)`${l} >= ${a}`;c!==void 0&&($=(0,Ee._)`${$} && ${l} <= ${c}`),e.pass($);return}o.items=!0;let p=t.name("valid");c===void 0&&a===1?d(p,()=>t.if(p,()=>t.break())):a===0?(t.let(p,!0),c!==void 0&&t.if((0,Ee._)`${i}.length > 0`,h)):(t.let(p,!1),h()),e.result(p,()=>e.reset());function h(){let $=t.name("_valid"),g=t.let("count",0);d($,()=>t.if($,()=>y(g)))}s(h,"validateItemsWithCount");function d($,g){t.forRange("i",0,l,b=>{e.subschema({keyword:"contains",dataProp:b,dataPropType:Vi.Type.Num,compositeRule:!0},$),g()})}s(d,"validateItems");function y($){t.code((0,Ee._)`${$}++`),c===void 0?t.if((0,Ee._)`${$} >= ${a}`,()=>t.assign(p,!0).break()):(t.if((0,Ee._)`${$} > ${c}`,()=>t.assign(p,!1).break()),a===1?t.assign(p,!0):t.if((0,Ee._)`${$} >= ${a}`,()=>t.assign(p,!0)))}s(y,"checkLimits")}};Ua.default=MS});var Li=m(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.validateSchemaDeps=We.validatePropertyDeps=We.error=void 0;var Za=w(),DS=R(),Fn=xe();We.error={message:s(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Za.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:s(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Za._)`{property: ${e},
3
+ `+n:r||n}s(Xp,"joinStacks");pt.joinStacks=Xp;function h2(e,t,r){r?Object.defineProperty(t,"stack",{get:s(()=>{let n=e.get.apply(t);return Xp({stack:n},r)},"get"),enumerable:!1,configurable:!0}):m2(t,e)}s(h2,"lazyJoinStacks");pt.lazyJoinStacks=h2;function ed(e){if(e){let t=e.split(l2),r;for(let n=0;n<t.length;n++){let i=t[n];if(f2.test(i))r===void 0&&(r=n);else if(r!==void 0){t.splice(r,n-r);break}}if(t.length>0)return t.join(`
4
+ `)}return e}s(ed,"popStack");function m2(e,t){Object.defineProperty(e,"stack",{get:s(()=>ed(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}s(m2,"lazyPopStack")});var id=m(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.extendError=void 0;var rd=Na(),Eo=td(),nd=Oo(),g2=["name","message","stack"];function y2(e,t,r){let n=e;return v2(n,t),t&&typeof t=="object"&&_2(n,t),n.toJSON=nd.toJSON,rd.addInspectMethod&&rd.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}s(y2,"extendError");xo.extendError=y2;function v2(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");Eo.isLazyStack(r)?Eo.lazyJoinStacks(r,e,t):Eo.isWritableStack(r)&&(e.stack=Eo.joinStacks(e,t))}s(v2,"extendStack");function _2(e,t){let r=nd.getDeepKeys(t,g2),n=e,i=t;for(let o of r)if(n[o]===void 0)try{n[o]=i[o]}catch{}}s(_2,"mergeErrors")});var od=m(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.normalizeArgs=tn.normalizeOptions=void 0;var b2=Na();function S2(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?b2.format:typeof e.format=="function"?e.format:!1}}s(S2,"normalizeOptions");tn.normalizeOptions=S2;function P2(e,t){let r,n,i,o="";return typeof e[0]=="string"?i=e:typeof e[1]=="string"?(e[0]instanceof Error?r=e[0]:n=e[0],i=e.slice(1)):(r=e[0],n=e[1],i=e.slice(2)),i.length>0&&(t.format?o=t.format.apply(void 0,i):o=i.join(" ")),t.concatMessages&&r&&r.message&&(o+=(o?`
5
+ `:"")+r.message),{originalError:r,props:n,message:o}}s(P2,"normalizeArgs");tn.normalizeArgs=P2});var ja=m(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.Ono=void 0;var wo=id(),sd=od(),$2=Oo(),O2=qa;Ao.Ono=O2;function qa(e,t){t=sd.normalizeOptions(t);function r(...n){let{originalError:i,props:o,message:a}=sd.normalizeArgs(n,t),u=new e(a);return wo.extendError(u,i,o)}return s(r,"ono"),r[Symbol.species]=e,r}s(qa,"Ono");qa.toJSON=s(function(t){return $2.toJSON.call(t)},"toJSON");qa.extend=s(function(t,r,n){return n||r instanceof Error?wo.extendError(t,r,n):r?wo.extendError(t,void 0,r):wo.extendError(t)},"extend")});var ad=m(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.ono=void 0;var vr=ja(),E2=dt;Io.ono=E2;dt.error=new vr.Ono(Error);dt.eval=new vr.Ono(EvalError);dt.range=new vr.Ono(RangeError);dt.reference=new vr.Ono(ReferenceError);dt.syntax=new vr.Ono(SyntaxError);dt.type=new vr.Ono(TypeError);dt.uri=new vr.Ono(URIError);var x2=dt;function dt(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(x2))if(typeof r=="function"&&r.name==="ono"){let n=r[Symbol.species];if(n&&n!==Error&&(t instanceof n||t.name===n.name))return r.apply(void 0,e)}}return dt.error.apply(void 0,e)}s(dt,"ono")});var cd=m(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});var gq=require("util")});var Qe=m((Ye,rn)=>{"use strict";var w2=Ye&&Ye.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:s(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),A2=Ye&&Ye.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&w2(t,e,r)};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.ono=void 0;var ld=ad();Object.defineProperty(Ye,"ono",{enumerable:!0,get:s(function(){return ld.ono},"get")});var I2=ja();Object.defineProperty(Ye,"Ono",{enumerable:!0,get:s(function(){return I2.Ono},"get")});A2(cd(),Ye);Ye.default=ld.ono;typeof rn=="object"&&typeof rn.exports=="object"&&(rn.exports=Object.assign(rn.exports.default,rn.exports))});var ui=m(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.regexpCode=q.getEsmExportName=q.getProperty=q.safeStringify=q.stringify=q.strConcat=q.addCodeArg=q.str=q._=q.nil=q._Code=q.Name=q.IDENTIFIER=q._CodeOrName=void 0;var La=class La{};s(La,"_CodeOrName");var si=La;q._CodeOrName=si;q.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Fa=class Fa extends si{constructor(t){if(super(),!q.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};s(Fa,"Name");var _r=Fa;q.Name=_r;var Va=class Va extends si{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof _r&&(r[n.str]=(r[n.str]||0)+1),r),{})}};s(Va,"_Code");var Le=Va;q._Code=Le;q.nil=new Le("");function fd(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Da(r,t[n]),r.push(e[++n]);return new Le(r)}s(fd,"_");q._=fd;var Ma=new Le("+");function pd(e,...t){let r=[ai(e[0])],n=0;for(;n<t.length;)r.push(Ma),Da(r,t[n]),r.push(Ma,ai(e[++n]));return k2(r),new Le(r)}s(pd,"str");q.str=pd;function Da(e,t){t instanceof Le?e.push(...t._items):t instanceof _r?e.push(t):e.push(C2(t))}s(Da,"addCodeArg");q.addCodeArg=Da;function k2(e){let t=1;for(;t<e.length-1;){if(e[t]===Ma){let r=R2(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}s(k2,"optimize");function R2(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof _r||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof _r))return`"${e}${t.slice(1)}`}s(R2,"mergeExprItems");function T2(e,t){return t.emptyStr()?e:e.emptyStr()?t:pd`${e}${t}`}s(T2,"strConcat");q.strConcat=T2;function C2(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ai(Array.isArray(e)?e.join(","):e)}s(C2,"interpolate");function N2(e){return new Le(ai(e))}s(N2,"stringify");q.stringify=N2;function ai(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}s(ai,"safeStringify");q.safeStringify=ai;function q2(e){return typeof e=="string"&&q.IDENTIFIER.test(e)?new Le(`.${e}`):fd`[${e}]`}s(q2,"getProperty");q.getProperty=q2;function j2(e){if(typeof e=="string"&&q.IDENTIFIER.test(e))return new Le(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}s(j2,"getEsmExportName");q.getEsmExportName=j2;function M2(e){return new Le(e.toString())}s(M2,"regexpCode");q.regexpCode=M2});var Ka=m(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.ValueScope=we.ValueScopeName=we.Scope=we.varKinds=we.UsedValueState=void 0;var xe=ui(),Ua=class Ua extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};s(Ua,"ValueError");var Ba=Ua,ko;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(ko||(we.UsedValueState=ko={}));we.varKinds={const:new xe.Name("const"),let:new xe.Name("let"),var:new xe.Name("var")};var za=class za{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof xe.Name?t:this.name(t)}name(t){return new xe.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};s(za,"Scope");var Ro=za;we.Scope=Ro;var Ga=class Ga extends xe.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,xe._)`.${new xe.Name(r)}[${n}]`}};s(Ga,"ValueScopeName");var To=Ga;we.ValueScopeName=To;var D2=(0,xe._)`\n`,Za=class Za extends Ro{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?D2:xe.nil}}get(){return this._scope}name(t){return new To(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:o}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,u=this._values[o];if(u){let p=u.get(a);if(p)return p}else u=this._values[o]=new Map;u.set(a,i);let c=this._scope[o]||(this._scope[o]=[]),l=c.length;return c[l]=r.ref,i.setValue(r,{property:o,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,xe._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let o=xe.nil;for(let a in t){let u=t[a];if(!u)continue;let c=n[a]=n[a]||new Map;u.forEach(l=>{if(c.has(l))return;c.set(l,ko.Started);let p=r(l);if(p){let f=this.opts.es5?we.varKinds.var:we.varKinds.const;o=(0,xe._)`${o}${f} ${l} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(l))o=(0,xe._)`${o}${p}${this.opts._n}`;else throw new Ba(l);c.set(l,ko.Completed)})}return o}};s(Za,"ValueScope");var Ha=Za;we.ValueScope=Ha});var A=m(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.or=k.and=k.not=k.CodeGen=k.operators=k.varKinds=k.ValueScopeName=k.ValueScope=k.Scope=k.Name=k.regexpCode=k.stringify=k.getProperty=k.nil=k.strConcat=k.str=k._=void 0;var C=ui(),Je=Ka(),Ht=ui();Object.defineProperty(k,"_",{enumerable:!0,get:s(function(){return Ht._},"get")});Object.defineProperty(k,"str",{enumerable:!0,get:s(function(){return Ht.str},"get")});Object.defineProperty(k,"strConcat",{enumerable:!0,get:s(function(){return Ht.strConcat},"get")});Object.defineProperty(k,"nil",{enumerable:!0,get:s(function(){return Ht.nil},"get")});Object.defineProperty(k,"getProperty",{enumerable:!0,get:s(function(){return Ht.getProperty},"get")});Object.defineProperty(k,"stringify",{enumerable:!0,get:s(function(){return Ht.stringify},"get")});Object.defineProperty(k,"regexpCode",{enumerable:!0,get:s(function(){return Ht.regexpCode},"get")});Object.defineProperty(k,"Name",{enumerable:!0,get:s(function(){return Ht.Name},"get")});var jo=Ka();Object.defineProperty(k,"Scope",{enumerable:!0,get:s(function(){return jo.Scope},"get")});Object.defineProperty(k,"ValueScope",{enumerable:!0,get:s(function(){return jo.ValueScope},"get")});Object.defineProperty(k,"ValueScopeName",{enumerable:!0,get:s(function(){return jo.ValueScopeName},"get")});Object.defineProperty(k,"varKinds",{enumerable:!0,get:s(function(){return jo.varKinds},"get")});k.operators={GT:new C._Code(">"),GTE:new C._Code(">="),LT:new C._Code("<"),LTE:new C._Code("<="),EQ:new C._Code("==="),NEQ:new C._Code("!=="),NOT:new C._Code("!"),OR:new C._Code("||"),AND:new C._Code("&&"),ADD:new C._Code("+")};var au=class au{optimizeNodes(){return this}optimizeNames(t,r){return this}};s(au,"Node");var Rt=au,uu=class uu extends Rt{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Je.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=sn(this.rhs,t,r)),this}get names(){return this.rhs instanceof C._CodeOrName?this.rhs.names:{}}};s(uu,"Def");var Wa=uu,cu=class cu extends Rt{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof C.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=sn(this.rhs,t,r),this}get names(){let t=this.lhs instanceof C.Name?{}:{...this.lhs.names};return qo(t,this.rhs)}};s(cu,"Assign");var Co=cu,lu=class lu extends Co{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};s(lu,"AssignOp");var Ya=lu,fu=class fu extends Rt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};s(fu,"Label");var Qa=fu,pu=class pu extends Rt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};s(pu,"Break");var Ja=pu,du=class du extends Rt{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};s(du,"Throw");var Xa=du,hu=class hu extends Rt{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=sn(this.code,t,r),this}get names(){return this.code instanceof C._CodeOrName?this.code.names:{}}};s(hu,"AnyCode");var eu=hu,mu=class mu extends Rt{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(t,r)||(L2(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Pr(t,r.names),{})}};s(mu,"ParentNode");var ci=mu,gu=class gu extends ci{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};s(gu,"BlockNode");var Tt=gu,yu=class yu extends ci{};s(yu,"Root");var tu=yu,vu=class vu extends Tt{};s(vu,"Else");var on=vu;on.kind="else";var nn=class nn extends Tt{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new on(n):n}if(r)return t===!1?r instanceof nn?r:r.nodes:this.nodes.length?this:new nn(dd(t),r instanceof nn?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=sn(this.condition,t,r),this}get names(){let t=super.names;return qo(t,this.condition),this.else&&Pr(t,this.else.names),t}};s(nn,"If");var br=nn;br.kind="if";var _u=class _u extends Tt{};s(_u,"For");var Sr=_u;Sr.kind="for";var bu=class bu extends Sr{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=sn(this.iteration,t,r),this}get names(){return Pr(super.names,this.iteration.names)}};s(bu,"ForLoop");var ru=bu,Su=class Su extends Sr{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?Je.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(t)}get names(){let t=qo(super.names,this.from);return qo(t,this.to)}};s(Su,"ForRange");var nu=Su,Pu=class Pu extends Sr{constructor(t,r,n,i){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=sn(this.iterable,t,r),this}get names(){return Pr(super.names,this.iterable.names)}};s(Pu,"ForIter");var No=Pu,$u=class $u extends Tt{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};s($u,"Func");var li=$u;li.kind="func";var Ou=class Ou extends ci{render(t){return"return "+super.render(t)}};s(Ou,"Return");var fi=Ou;fi.kind="return";var Eu=class Eu extends Tt{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,i;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(i=this.finally)===null||i===void 0||i.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&Pr(t,this.catch.names),this.finally&&Pr(t,this.finally.names),t}};s(Eu,"Try");var iu=Eu,xu=class xu extends Tt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};s(xu,"Catch");var pi=xu;pi.kind="catch";var wu=class wu extends Tt{render(t){return"finally"+super.render(t)}};s(wu,"Finally");var di=wu;di.kind="finally";var Au=class Au{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
6
+ `:""},this._extScope=t,this._scope=new Je.Scope({parent:t}),this._nodes=[new tu]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let o=this._scope.toName(r);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new Wa(t,o,n)),o}const(t,r,n){return this._def(Je.varKinds.const,t,r,n)}let(t,r,n){return this._def(Je.varKinds.let,t,r,n)}var(t,r,n){return this._def(Je.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Co(t,r,n))}add(t,r){return this._leafNode(new Ya(t,k.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==C.nil&&this._leafNode(new eu(t)),this}object(...t){let r=["{"];for(let[n,i]of t)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,C.addCodeArg)(r,i));return r.push("}"),new C._Code(r)}if(t,r,n){if(this._blockNode(new br(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new br(t))}else(){return this._elseNode(new on)}endIf(){return this._endBlockNode(br,on)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new ru(t),r)}forRange(t,r,n,i,o=this.opts.es5?Je.varKinds.var:Je.varKinds.let){let a=this._scope.toName(t);return this._for(new nu(o,a,r,n),()=>i(a))}forOf(t,r,n,i=Je.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let a=r instanceof C.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,C._)`${a}.length`,u=>{this.var(o,(0,C._)`${a}[${u}]`),n(o)})}return this._for(new No("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?Je.varKinds.var:Je.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,C._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new No("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(Sr)}label(t){return this._leafNode(new Qa(t))}break(t){return this._leafNode(new Ja(t))}return(t){let r=new fi;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(fi)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new iu;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new pi(o),r(o)}return n&&(this._currNode=i.finally=new di,this.code(n)),this._endBlockNode(pi,di)}throw(t){return this._leafNode(new Xa(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=C.nil,n,i){return this._blockNode(new li(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(li)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof br))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};s(Au,"CodeGen");var ou=Au;k.CodeGen=ou;function Pr(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}s(Pr,"addNames");function qo(e,t){return t instanceof C._CodeOrName?Pr(e,t.names):e}s(qo,"addExprNames");function sn(e,t,r){if(e instanceof C.Name)return n(e);if(!i(e))return e;return new C._Code(e._items.reduce((o,a)=>(a instanceof C.Name&&(a=n(a)),a instanceof C._Code?o.push(...a._items):o.push(a),o),[]));function n(o){let a=r[o.str];return a===void 0||t[o.str]!==1?o:(delete t[o.str],a)}function i(o){return o instanceof C._Code&&o._items.some(a=>a instanceof C.Name&&t[a.str]===1&&r[a.str]!==void 0)}}s(sn,"optimizeExpr");function L2(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}s(L2,"subtractNames");function dd(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,C._)`!${su(e)}`}s(dd,"not");k.not=dd;var F2=hd(k.operators.AND);function V2(...e){return e.reduce(F2)}s(V2,"and");k.and=V2;var B2=hd(k.operators.OR);function H2(...e){return e.reduce(B2)}s(H2,"or");k.or=H2;function hd(e){return(t,r)=>t===C.nil?r:r===C.nil?t:(0,C._)`${su(t)} ${e} ${su(r)}`}s(hd,"mappend");function su(e){return e instanceof C.Name?e:(0,C._)`(${e})`}s(su,"par")});var T=m(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.checkStrictMode=R.getErrorPath=R.Type=R.useFunc=R.setEvaluated=R.evaluatedPropsToName=R.mergeEvaluated=R.eachItem=R.unescapeJsonPointer=R.escapeJsonPointer=R.escapeFragment=R.unescapeFragment=R.schemaRefOrVal=R.schemaHasRulesButRef=R.schemaHasRules=R.checkUnknownRules=R.alwaysValidSchema=R.toHash=void 0;var F=A(),U2=ui();function z2(e){let t={};for(let r of e)t[r]=!0;return t}s(z2,"toHash");R.toHash=z2;function G2(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(yd(e,t),!vd(t,e.self.RULES.all))}s(G2,"alwaysValidSchema");R.alwaysValidSchema=G2;function yd(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let o in t)i[o]||Sd(e,`unknown keyword: "${o}"`)}s(yd,"checkUnknownRules");R.checkUnknownRules=yd;function vd(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}s(vd,"schemaHasRules");R.schemaHasRules=vd;function Z2(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}s(Z2,"schemaHasRulesButRef");R.schemaHasRulesButRef=Z2;function K2({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,F._)`${r}`}return(0,F._)`${e}${t}${(0,F.getProperty)(n)}`}s(K2,"schemaRefOrVal");R.schemaRefOrVal=K2;function W2(e){return _d(decodeURIComponent(e))}s(W2,"unescapeFragment");R.unescapeFragment=W2;function Y2(e){return encodeURIComponent(ku(e))}s(Y2,"escapeFragment");R.escapeFragment=Y2;function ku(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}s(ku,"escapeJsonPointer");R.escapeJsonPointer=ku;function _d(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}s(_d,"unescapeJsonPointer");R.unescapeJsonPointer=_d;function Q2(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}s(Q2,"eachItem");R.eachItem=Q2;function md({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,a,u)=>{let c=a===void 0?o:a instanceof F.Name?(o instanceof F.Name?e(i,o,a):t(i,o,a),a):o instanceof F.Name?(t(i,a,o),o):r(o,a);return u===F.Name&&!(c instanceof F.Name)?n(i,c):c}}s(md,"makeMergeEvaluated");R.mergeEvaluated={props:md({mergeNames:s((e,t,r)=>e.if((0,F._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,F._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,F._)`${r} || {}`).code((0,F._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,F._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,F._)`${r} || {}`),Ru(e,r,t))}),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:bd}),items:md({mergeNames:s((e,t,r)=>e.if((0,F._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,F._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,F._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,F._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:s((e,t)=>e.var("items",t),"resultToName")})};function bd(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,F._)`{}`);return t!==void 0&&Ru(e,r,t),r}s(bd,"evaluatedPropsToName");R.evaluatedPropsToName=bd;function Ru(e,t,r){Object.keys(r).forEach(n=>e.assign((0,F._)`${t}${(0,F.getProperty)(n)}`,!0))}s(Ru,"setEvaluated");R.setEvaluated=Ru;var gd={};function J2(e,t){return e.scopeValue("func",{ref:t,code:gd[t.code]||(gd[t.code]=new U2._Code(t.code))})}s(J2,"useFunc");R.useFunc=J2;var Iu;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Iu||(R.Type=Iu={}));function X2(e,t,r){if(e instanceof F.Name){let n=t===Iu.Num;return r?n?(0,F._)`"[" + ${e} + "]"`:(0,F._)`"['" + ${e} + "']"`:n?(0,F._)`"/" + ${e}`:(0,F._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,F.getProperty)(e).toString():"/"+ku(e)}s(X2,"getErrorPath");R.getErrorPath=X2;function Sd(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}s(Sd,"checkStrictMode");R.checkStrictMode=Sd});var Fe=m(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});var fe=A(),e1={data:new fe.Name("data"),valCxt:new fe.Name("valCxt"),instancePath:new fe.Name("instancePath"),parentData:new fe.Name("parentData"),parentDataProperty:new fe.Name("parentDataProperty"),rootData:new fe.Name("rootData"),dynamicAnchors:new fe.Name("dynamicAnchors"),vErrors:new fe.Name("vErrors"),errors:new fe.Name("errors"),this:new fe.Name("this"),self:new fe.Name("self"),scope:new fe.Name("scope"),json:new fe.Name("json"),jsonPos:new fe.Name("jsonPos"),jsonLen:new fe.Name("jsonLen"),jsonPart:new fe.Name("jsonPart")};Tu.default=e1});var hi=m(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.extendErrors=pe.resetErrorsCount=pe.reportExtraError=pe.reportError=pe.keyword$DataError=pe.keywordError=void 0;var N=A(),Mo=T(),_e=Fe();pe.keywordError={message:s(({keyword:e})=>(0,N.str)`must pass "${e}" keyword validation`,"message")};pe.keyword$DataError={message:s(({keyword:e,schemaType:t})=>t?(0,N.str)`"${e}" keyword must be ${t} ($data)`:(0,N.str)`"${e}" keyword is invalid ($data)`,"message")};function t1(e,t=pe.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:a,allErrors:u}=i,c=Od(e,t,r);n??(a||u)?Pd(o,c):$d(i,(0,N._)`[${c}]`)}s(t1,"reportError");pe.reportError=t1;function r1(e,t=pe.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:a}=n,u=Od(e,t,r);Pd(i,u),o||a||$d(n,_e.default.vErrors)}s(r1,"reportExtraError");pe.reportExtraError=r1;function n1(e,t){e.assign(_e.default.errors,t),e.if((0,N._)`${_e.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,N._)`${_e.default.vErrors}.length`,t),()=>e.assign(_e.default.vErrors,null)))}s(n1,"resetErrorsCount");pe.resetErrorsCount=n1;function i1({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,_e.default.errors,u=>{e.const(a,(0,N._)`${_e.default.vErrors}[${u}]`),e.if((0,N._)`${a}.instancePath === undefined`,()=>e.assign((0,N._)`${a}.instancePath`,(0,N.strConcat)(_e.default.instancePath,o.errorPath))),e.assign((0,N._)`${a}.schemaPath`,(0,N.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,N._)`${a}.schema`,r),e.assign((0,N._)`${a}.data`,n))})}s(i1,"extendErrors");pe.extendErrors=i1;function Pd(e,t){let r=e.const("err",t);e.if((0,N._)`${_e.default.vErrors} === null`,()=>e.assign(_e.default.vErrors,(0,N._)`[${r}]`),(0,N._)`${_e.default.vErrors}.push(${r})`),e.code((0,N._)`${_e.default.errors}++`)}s(Pd,"addError");function $d(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,N._)`new ${e.ValidationError}(${t})`):(r.assign((0,N._)`${n}.errors`,t),r.return(!1))}s($d,"returnErrors");var $r={keyword:new N.Name("keyword"),schemaPath:new N.Name("schemaPath"),params:new N.Name("params"),propertyName:new N.Name("propertyName"),message:new N.Name("message"),schema:new N.Name("schema"),parentSchema:new N.Name("parentSchema")};function Od(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,N._)`{}`:o1(e,t,r)}s(Od,"errorObjectCode");function o1(e,t,r={}){let{gen:n,it:i}=e,o=[s1(i,r),a1(e,r)];return u1(e,t,o),n.object(...o)}s(o1,"errorObject");function s1({errorPath:e},{instancePath:t}){let r=t?(0,N.str)`${e}${(0,Mo.getErrorPath)(t,Mo.Type.Str)}`:e;return[_e.default.instancePath,(0,N.strConcat)(_e.default.instancePath,r)]}s(s1,"errorInstancePath");function a1({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,N.str)`${t}/${e}`;return r&&(i=(0,N.str)`${i}${(0,Mo.getErrorPath)(r,Mo.Type.Str)}`),[$r.schemaPath,i]}s(a1,"errorSchemaPath");function u1(e,{params:t,message:r},n){let{keyword:i,data:o,schemaValue:a,it:u}=e,{opts:c,propertyName:l,topSchemaRef:p,schemaPath:f}=u;n.push([$r.keyword,i],[$r.params,typeof t=="function"?t(e):t||(0,N._)`{}`]),c.messages&&n.push([$r.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([$r.schema,a],[$r.parentSchema,(0,N._)`${p}${f}`],[_e.default.data,o]),l&&n.push([$r.propertyName,l])}s(u1,"extraErrorProps")});var xd=m(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.boolOrEmptySchema=an.topBoolOrEmptySchema=void 0;var c1=hi(),l1=A(),f1=Fe(),p1={message:"boolean schema is false"};function d1(e){let{gen:t,schema:r,validateName:n}=e;r===!1?Ed(e,!1):typeof r=="object"&&r.$async===!0?t.return(f1.default.data):(t.assign((0,l1._)`${n}.errors`,null),t.return(!0))}s(d1,"topBoolOrEmptySchema");an.topBoolOrEmptySchema=d1;function h1(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Ed(e)):r.var(t,!0)}s(h1,"boolOrEmptySchema");an.boolOrEmptySchema=h1;function Ed(e,t){let{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,c1.reportError)(i,p1,void 0,t)}s(Ed,"falseSchemaError")});var Cu=m(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.getRules=un.isJSONType=void 0;var m1=["string","number","integer","boolean","null","object","array"],g1=new Set(m1);function y1(e){return typeof e=="string"&&g1.has(e)}s(y1,"isJSONType");un.isJSONType=y1;function v1(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}s(v1,"getRules");un.getRules=v1});var Nu=m(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.shouldUseRule=Ut.shouldUseGroup=Ut.schemaHasRulesForType=void 0;function _1({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&wd(e,n)}s(_1,"schemaHasRulesForType");Ut.schemaHasRulesForType=_1;function wd(e,t){return t.rules.some(r=>Ad(e,r))}s(wd,"shouldUseGroup");Ut.shouldUseGroup=wd;function Ad(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}s(Ad,"shouldUseRule");Ut.shouldUseRule=Ad});var mi=m(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.reportTypeError=de.checkDataTypes=de.checkDataType=de.coerceAndCheckDataType=de.getJSONTypes=de.getSchemaTypes=de.DataType=void 0;var b1=Cu(),S1=Nu(),P1=hi(),I=A(),Id=T(),cn;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(cn||(de.DataType=cn={}));function $1(e){let t=kd(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}s($1,"getSchemaTypes");de.getSchemaTypes=$1;function kd(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(b1.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}s(kd,"getJSONTypes");de.getJSONTypes=kd;function O1(e,t){let{gen:r,data:n,opts:i}=e,o=E1(t,i.coerceTypes),a=t.length>0&&!(o.length===0&&t.length===1&&(0,S1.schemaHasRulesForType)(e,t[0]));if(a){let u=ju(t,n,i.strictNumbers,cn.Wrong);r.if(u,()=>{o.length?x1(e,t,o):Mu(e)})}return a}s(O1,"coerceAndCheckDataType");de.coerceAndCheckDataType=O1;var Rd=new Set(["string","number","integer","boolean","null"]);function E1(e,t){return t?e.filter(r=>Rd.has(r)||t==="array"&&r==="array"):[]}s(E1,"coerceToTypes");function x1(e,t,r){let{gen:n,data:i,opts:o}=e,a=n.let("dataType",(0,I._)`typeof ${i}`),u=n.let("coerced",(0,I._)`undefined`);o.coerceTypes==="array"&&n.if((0,I._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,I._)`${i}[0]`).assign(a,(0,I._)`typeof ${i}`).if(ju(t,i,o.strictNumbers),()=>n.assign(u,i))),n.if((0,I._)`${u} !== undefined`);for(let l of r)(Rd.has(l)||l==="array"&&o.coerceTypes==="array")&&c(l);n.else(),Mu(e),n.endIf(),n.if((0,I._)`${u} !== undefined`,()=>{n.assign(i,u),w1(e,u)});function c(l){switch(l){case"string":n.elseIf((0,I._)`${a} == "number" || ${a} == "boolean"`).assign(u,(0,I._)`"" + ${i}`).elseIf((0,I._)`${i} === null`).assign(u,(0,I._)`""`);return;case"number":n.elseIf((0,I._)`${a} == "boolean" || ${i} === null
7
+ || (${a} == "string" && ${i} && ${i} == +${i})`).assign(u,(0,I._)`+${i}`);return;case"integer":n.elseIf((0,I._)`${a} === "boolean" || ${i} === null
8
+ || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(u,(0,I._)`+${i}`);return;case"boolean":n.elseIf((0,I._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(u,!1).elseIf((0,I._)`${i} === "true" || ${i} === 1`).assign(u,!0);return;case"null":n.elseIf((0,I._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(u,null);return;case"array":n.elseIf((0,I._)`${a} === "string" || ${a} === "number"
9
+ || ${a} === "boolean" || ${i} === null`).assign(u,(0,I._)`[${i}]`)}}s(c,"coerceSpecificType")}s(x1,"coerceData");function w1({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,I._)`${t} !== undefined`,()=>e.assign((0,I._)`${t}[${r}]`,n))}s(w1,"assignParentData");function qu(e,t,r,n=cn.Correct){let i=n===cn.Correct?I.operators.EQ:I.operators.NEQ,o;switch(e){case"null":return(0,I._)`${t} ${i} null`;case"array":o=(0,I._)`Array.isArray(${t})`;break;case"object":o=(0,I._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a((0,I._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return(0,I._)`typeof ${t} ${i} ${e}`}return n===cn.Correct?o:(0,I.not)(o);function a(u=I.nil){return(0,I.and)((0,I._)`typeof ${t} == "number"`,u,r?(0,I._)`isFinite(${t})`:I.nil)}}s(qu,"checkDataType");de.checkDataType=qu;function ju(e,t,r,n){if(e.length===1)return qu(e[0],t,r,n);let i,o=(0,Id.toHash)(e);if(o.array&&o.object){let a=(0,I._)`typeof ${t} != "object"`;i=o.null?a:(0,I._)`!${t} || ${a}`,delete o.null,delete o.array,delete o.object}else i=I.nil;o.number&&delete o.integer;for(let a in o)i=(0,I.and)(i,qu(a,t,r,n));return i}s(ju,"checkDataTypes");de.checkDataTypes=ju;var A1={message:s(({schema:e})=>`must be ${e}`,"message"),params:s(({schema:e,schemaValue:t})=>typeof e=="string"?(0,I._)`{type: ${e}}`:(0,I._)`{type: ${t}}`,"params")};function Mu(e){let t=I1(e);(0,P1.reportError)(t,A1)}s(Mu,"reportTypeError");de.reportTypeError=Mu;function I1(e){let{gen:t,data:r,schema:n}=e,i=(0,Id.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}s(I1,"getTypeErrorContext")});var Cd=m(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.assignDefaults=void 0;var ln=A(),k1=T();function R1(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)Td(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>Td(e,o,i.default))}s(R1,"assignDefaults");Do.assignDefaults=R1;function Td(e,t,r){let{gen:n,compositeRule:i,data:o,opts:a}=e;if(r===void 0)return;let u=(0,ln._)`${o}${(0,ln.getProperty)(t)}`;if(i){(0,k1.checkStrictMode)(e,`default is ignored for: ${u}`);return}let c=(0,ln._)`${u} === undefined`;a.useDefaults==="empty"&&(c=(0,ln._)`${c} || ${u} === null || ${u} === ""`),n.if(c,(0,ln._)`${u} = ${(0,ln.stringify)(r)}`)}s(Td,"assignDefault")});var Ve=m(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.validateUnion=L.validateArray=L.usePattern=L.callValidateCode=L.schemaProperties=L.allSchemaProperties=L.noPropertyInData=L.propertyInData=L.isOwnProperty=L.hasPropFunc=L.reportMissingProp=L.checkMissingProp=L.checkReportMissingProp=void 0;var V=A(),Du=T(),zt=Fe(),T1=T();function C1(e,t){let{gen:r,data:n,it:i}=e;r.if(Fu(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,V._)`${t}`},!0),e.error()})}s(C1,"checkReportMissingProp");L.checkReportMissingProp=C1;function N1({gen:e,data:t,it:{opts:r}},n,i){return(0,V.or)(...n.map(o=>(0,V.and)(Fu(e,t,o,r.ownProperties),(0,V._)`${i} = ${o}`)))}s(N1,"checkMissingProp");L.checkMissingProp=N1;function q1(e,t){e.setParams({missingProperty:t},!0),e.error()}s(q1,"reportMissingProp");L.reportMissingProp=q1;function Nd(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,V._)`Object.prototype.hasOwnProperty`})}s(Nd,"hasPropFunc");L.hasPropFunc=Nd;function Lu(e,t,r){return(0,V._)`${Nd(e)}.call(${t}, ${r})`}s(Lu,"isOwnProperty");L.isOwnProperty=Lu;function j1(e,t,r,n){let i=(0,V._)`${t}${(0,V.getProperty)(r)} !== undefined`;return n?(0,V._)`${i} && ${Lu(e,t,r)}`:i}s(j1,"propertyInData");L.propertyInData=j1;function Fu(e,t,r,n){let i=(0,V._)`${t}${(0,V.getProperty)(r)} === undefined`;return n?(0,V.or)(i,(0,V.not)(Lu(e,t,r))):i}s(Fu,"noPropertyInData");L.noPropertyInData=Fu;function qd(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}s(qd,"allSchemaProperties");L.allSchemaProperties=qd;function M1(e,t){return qd(t).filter(r=>!(0,Du.alwaysValidSchema)(e,t[r]))}s(M1,"schemaProperties");L.schemaProperties=M1;function D1({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},u,c,l){let p=l?(0,V._)`${e}, ${t}, ${n}${i}`:t,f=[[zt.default.instancePath,(0,V.strConcat)(zt.default.instancePath,o)],[zt.default.parentData,a.parentData],[zt.default.parentDataProperty,a.parentDataProperty],[zt.default.rootData,zt.default.rootData]];a.opts.dynamicRef&&f.push([zt.default.dynamicAnchors,zt.default.dynamicAnchors]);let d=(0,V._)`${p}, ${r.object(...f)}`;return c!==V.nil?(0,V._)`${u}.call(${c}, ${d})`:(0,V._)`${u}(${d})`}s(D1,"callValidateCode");L.callValidateCode=D1;var L1=(0,V._)`new RegExp`;function F1({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,V._)`${i.code==="new RegExp"?L1:(0,T1.useFunc)(e,i)}(${r}, ${n})`})}s(F1,"usePattern");L.usePattern=F1;function V1(e){let{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){let u=t.let("valid",!0);return a(()=>t.assign(u,!1)),u}return t.var(o,!0),a(()=>t.break()),o;function a(u){let c=t.const("len",(0,V._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Du.Type.Num},o),t.if((0,V.not)(o),u)})}s(a,"validateItems")}s(V1,"validateArray");L.validateArray=V1;function B1(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,Du.alwaysValidSchema)(i,c))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),u=t.name("_valid");t.block(()=>r.forEach((c,l)=>{let p=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},u);t.assign(a,(0,V._)`${a} || ${u}`),e.mergeValidEvaluated(p,u)||t.if((0,V.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}s(B1,"validateUnion");L.validateUnion=B1});var Dd=m(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.validateKeywordUsage=ht.validSchemaType=ht.funcKeywordCode=ht.macroKeywordCode=void 0;var be=A(),Or=Fe(),H1=Ve(),U1=hi();function z1(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:a}=e,u=t.macro.call(a.self,i,o,a),c=Md(r,n,u);a.opts.validateSchema!==!1&&a.self.validateSchema(u,!0);let l=r.name("valid");e.subschema({schema:u,schemaPath:be.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}s(z1,"macroKeywordCode");ht.macroKeywordCode=z1;function G1(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:u,it:c}=e;K1(c,t);let l=!u&&t.compile?t.compile.call(c.self,o,a,c):t.validate,p=Md(n,i,l),f=n.let("valid");e.block$data(f,d),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function d(){if(t.errors===!1)y(),t.modifying&&jd(e),v(()=>e.error());else{let _=t.async?h():g();t.modifying&&jd(e),v(()=>Z1(e,_))}}s(d,"validateKeyword");function h(){let _=n.let("ruleErrs",null);return n.try(()=>y((0,be._)`await `),b=>n.assign(f,!1).if((0,be._)`${b} instanceof ${c.ValidationError}`,()=>n.assign(_,(0,be._)`${b}.errors`),()=>n.throw(b))),_}s(h,"validateAsync");function g(){let _=(0,be._)`${p}.errors`;return n.assign(_,null),y(be.nil),_}s(g,"validateSync");function y(_=t.async?(0,be._)`await `:be.nil){let b=c.opts.passContext?Or.default.this:Or.default.self,S=!("compile"in t&&!u||t.schema===!1);n.assign(f,(0,be._)`${_}${(0,H1.callValidateCode)(e,p,b,S)}`,t.modifying)}s(y,"assignValid");function v(_){var b;n.if((0,be.not)((b=t.valid)!==null&&b!==void 0?b:f),_)}s(v,"reportErrs")}s(G1,"funcKeywordCode");ht.funcKeywordCode=G1;function jd(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,be._)`${n.parentData}[${n.parentDataProperty}]`))}s(jd,"modifyData");function Z1(e,t){let{gen:r}=e;r.if((0,be._)`Array.isArray(${t})`,()=>{r.assign(Or.default.vErrors,(0,be._)`${Or.default.vErrors} === null ? ${t} : ${Or.default.vErrors}.concat(${t})`).assign(Or.default.errors,(0,be._)`${Or.default.vErrors}.length`),(0,U1.extendErrors)(e)},()=>e.error())}s(Z1,"addErrs");function K1({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}s(K1,"checkAsyncKeyword");function Md(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,be.stringify)(r)})}s(Md,"useKeyword");function W1(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}s(W1,"validSchemaType");ht.validSchemaType=W1;function Y1({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(u=>!Object.prototype.hasOwnProperty.call(e,u)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){let c=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}s(Y1,"validateKeywordUsage");ht.validateKeywordUsage=Y1});var Fd=m(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.extendSubschemaMode=Gt.extendSubschemaData=Gt.getSubschema=void 0;var mt=A(),Ld=T();function Q1(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let u=e.schema[t];return r===void 0?{schema:u,schemaPath:(0,mt._)`${e.schemaPath}${(0,mt.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:u[r],schemaPath:(0,mt._)`${e.schemaPath}${(0,mt.getProperty)(t)}${(0,mt.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Ld.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}s(Q1,"getSubschema");Gt.getSubschema=Q1;function J1(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:u}=t;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:f}=t,d=u.let("data",(0,mt._)`${t.data}${(0,mt.getProperty)(r)}`,!0);c(d),e.errorPath=(0,mt.str)`${l}${(0,Ld.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,mt._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof mt.Name?i:u.let("data",i,!0);c(l),a!==void 0&&(e.propertyName=a)}o&&(e.dataTypes=o);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}s(c,"dataContextProps")}s(J1,"extendSubschemaData");Gt.extendSubschemaData=J1;function X1(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}s(X1,"extendSubschemaMode");Gt.extendSubschemaMode=X1});var Vu=m((Gq,Vd)=>{"use strict";Vd.exports=s(function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var Hd=m((Kq,Bd)=>{"use strict";var Zt=Bd.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};Lo(t,n,i,e,"",e)};Zt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Zt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Zt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Zt.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Lo(e,t,r,n,i,o,a,u,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,a,u,c,l);for(var p in n){var f=n[p];if(Array.isArray(f)){if(p in Zt.arrayKeywords)for(var d=0;d<f.length;d++)Lo(e,t,r,f[d],i+"/"+p+"/"+d,o,i,p,n,d)}else if(p in Zt.propsKeywords){if(f&&typeof f=="object")for(var h in f)Lo(e,t,r,f[h],i+"/"+p+"/"+eP(h),o,i,p,n,h)}else(p in Zt.keywords||e.allKeys&&!(p in Zt.skipKeywords))&&Lo(e,t,r,f,i+"/"+p,o,i,p,n)}r(n,i,o,a,u,c,l)}}s(Lo,"_traverse");function eP(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}s(eP,"escapeJsonPtr")});var gi=m(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.getSchemaRefs=Ae.resolveUrl=Ae.normalizeId=Ae._getFullPath=Ae.getFullPath=Ae.inlineRef=void 0;var tP=T(),rP=Vu(),nP=Hd(),iP=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function oP(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Bu(e):t?Ud(e)<=t:!1}s(oP,"inlineRef");Ae.inlineRef=oP;var sP=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Bu(e){for(let t in e){if(sP.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Bu)||typeof r=="object"&&Bu(r))return!0}return!1}s(Bu,"hasRef");function Ud(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!iP.has(r)&&(typeof e[r]=="object"&&(0,tP.eachItem)(e[r],n=>t+=Ud(n)),t===1/0))return 1/0}return t}s(Ud,"countKeys");function zd(e,t="",r){r!==!1&&(t=fn(t));let n=e.parse(t);return Gd(e,n)}s(zd,"getFullPath");Ae.getFullPath=zd;function Gd(e,t){return e.serialize(t).split("#")[0]+"#"}s(Gd,"_getFullPath");Ae._getFullPath=Gd;var aP=/#\/?$/;function fn(e){return e?e.replace(aP,""):""}s(fn,"normalizeId");Ae.normalizeId=fn;function uP(e,t,r){return r=fn(r),e.resolve(t,r)}s(uP,"resolveUrl");Ae.resolveUrl=uP;var cP=/^[a-z_][-a-z0-9._]*$/i;function lP(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=fn(e[r]||t),o={"":i},a=zd(n,i,!1),u={},c=new Set;return nP(e,{allKeys:!0},(f,d,h,g)=>{if(g===void 0)return;let y=a+d,v=o[g];typeof f[r]=="string"&&(v=_.call(this,f[r])),b.call(this,f.$anchor),b.call(this,f.$dynamicAnchor),o[d]=v;function _(S){let E=this.opts.uriResolver.resolve;if(S=fn(v?E(v,S):S),c.has(S))throw p(S);c.add(S);let $=this.refs[S];return typeof $=="string"&&($=this.refs[$]),typeof $=="object"?l(f,$.schema,S):S!==fn(y)&&(S[0]==="#"?(l(f,u[S],S),u[S]=f):this.refs[S]=y),S}s(_,"addRef");function b(S){if(typeof S=="string"){if(!cP.test(S))throw new Error(`invalid anchor "${S}"`);_.call(this,`#${S}`)}}s(b,"addAnchor")}),u;function l(f,d,h){if(d!==void 0&&!rP(f,d))throw p(h)}s(l,"checkAmbiguosRef");function p(f){return new Error(`reference "${f}" resolves to more than one schema`)}s(p,"ambiguos")}s(lP,"getSchemaRefs");Ae.getSchemaRefs=lP});var _i=m(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.getData=Kt.KeywordCxt=Kt.validateFunctionCode=void 0;var Qd=xd(),Zd=mi(),Uu=Nu(),Fo=mi(),fP=Cd(),vi=Dd(),Hu=Fd(),O=A(),w=Fe(),pP=gi(),Ct=T(),yi=hi();function dP(e){if(eh(e)&&(th(e),Xd(e))){gP(e);return}Jd(e,()=>(0,Qd.topBoolOrEmptySchema)(e))}s(dP,"validateFunctionCode");Kt.validateFunctionCode=dP;function Jd({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,O._)`${w.default.data}, ${w.default.valCxt}`,n.$async,()=>{e.code((0,O._)`"use strict"; ${Kd(r,i)}`),mP(e,i),e.code(o)}):e.func(t,(0,O._)`${w.default.data}, ${hP(i)}`,n.$async,()=>e.code(Kd(r,i)).code(o))}s(Jd,"validateFunction");function hP(e){return(0,O._)`{${w.default.instancePath}="", ${w.default.parentData}, ${w.default.parentDataProperty}, ${w.default.rootData}=${w.default.data}${e.dynamicRef?(0,O._)`, ${w.default.dynamicAnchors}={}`:O.nil}}={}`}s(hP,"destructureValCxt");function mP(e,t){e.if(w.default.valCxt,()=>{e.var(w.default.instancePath,(0,O._)`${w.default.valCxt}.${w.default.instancePath}`),e.var(w.default.parentData,(0,O._)`${w.default.valCxt}.${w.default.parentData}`),e.var(w.default.parentDataProperty,(0,O._)`${w.default.valCxt}.${w.default.parentDataProperty}`),e.var(w.default.rootData,(0,O._)`${w.default.valCxt}.${w.default.rootData}`),t.dynamicRef&&e.var(w.default.dynamicAnchors,(0,O._)`${w.default.valCxt}.${w.default.dynamicAnchors}`)},()=>{e.var(w.default.instancePath,(0,O._)`""`),e.var(w.default.parentData,(0,O._)`undefined`),e.var(w.default.parentDataProperty,(0,O._)`undefined`),e.var(w.default.rootData,w.default.data),t.dynamicRef&&e.var(w.default.dynamicAnchors,(0,O._)`{}`)})}s(mP,"destructureValCxtES5");function gP(e){let{schema:t,opts:r,gen:n}=e;Jd(e,()=>{r.$comment&&t.$comment&&nh(e),SP(e),n.let(w.default.vErrors,null),n.let(w.default.errors,0),r.unevaluated&&yP(e),rh(e),OP(e)})}s(gP,"topSchemaObjCode");function yP(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,O._)`${r}.evaluated`),t.if((0,O._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,O._)`${e.evaluated}.props`,(0,O._)`undefined`)),t.if((0,O._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,O._)`${e.evaluated}.items`,(0,O._)`undefined`))}s(yP,"resetEvaluated");function Kd(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,O._)`/*# sourceURL=${r} */`:O.nil}s(Kd,"funcSourceUrl");function vP(e,t){if(eh(e)&&(th(e),Xd(e))){_P(e,t);return}(0,Qd.boolOrEmptySchema)(e,t)}s(vP,"subschemaCode");function Xd({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}s(Xd,"schemaCxtHasRules");function eh(e){return typeof e.schema!="boolean"}s(eh,"isSchemaObj");function _P(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&nh(e),PP(e),$P(e);let o=n.const("_errs",w.default.errors);rh(e,o),n.var(t,(0,O._)`${o} === ${w.default.errors}`)}s(_P,"subSchemaObjCode");function th(e){(0,Ct.checkUnknownRules)(e),bP(e)}s(th,"checkKeywords");function rh(e,t){if(e.opts.jtd)return Wd(e,[],!1,t);let r=(0,Zd.getSchemaTypes)(e.schema),n=(0,Zd.coerceAndCheckDataType)(e,r);Wd(e,r,!n,t)}s(rh,"typeAndKeywords");function bP(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Ct.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}s(bP,"checkRefsAndKeywords");function SP(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Ct.checkStrictMode)(e,"default is ignored in the schema root")}s(SP,"checkNoDefault");function PP(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,pP.resolveUrl)(e.opts.uriResolver,e.baseId,t))}s(PP,"updateContext");function $P(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}s($P,"checkAsyncSchema");function nh({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,O._)`${w.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=(0,O.str)`${n}/$comment`,u=e.scopeValue("root",{ref:t.root});e.code((0,O._)`${w.default.self}.opts.$comment(${o}, ${a}, ${u}.schema)`)}}s(nh,"commentKeyword");function OP(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,O._)`${w.default.errors} === 0`,()=>t.return(w.default.data),()=>t.throw((0,O._)`new ${i}(${w.default.vErrors})`)):(t.assign((0,O._)`${n}.errors`,w.default.vErrors),o.unevaluated&&EP(e),t.return((0,O._)`${w.default.errors} === 0`))}s(OP,"returnResults");function EP({gen:e,evaluated:t,props:r,items:n}){r instanceof O.Name&&e.assign((0,O._)`${t}.props`,r),n instanceof O.Name&&e.assign((0,O._)`${t}.items`,n)}s(EP,"assignEvaluated");function Wd(e,t,r,n){let{gen:i,schema:o,data:a,allErrors:u,opts:c,self:l}=e,{RULES:p}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,Ct.schemaHasRulesButRef)(o,p))){i.block(()=>oh(e,"$ref",p.all.$ref.definition));return}c.jtd||xP(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,Uu.shouldUseGroup)(o,d)&&(d.type?(i.if((0,Fo.checkDataType)(d.type,a,c.strictNumbers)),Yd(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,Fo.reportTypeError)(e)),i.endIf()):Yd(e,d),u||i.if((0,O._)`${w.default.errors} === ${n||0}`))}s(f,"groupKeywords")}s(Wd,"schemaKeywords");function Yd(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,fP.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,Uu.shouldUseRule)(n,o)&&oh(e,o.keyword,o.definition,t.type)})}s(Yd,"iterateKeywords");function xP(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(wP(e,t),e.opts.allowUnionTypes||AP(e,t),IP(e,e.dataTypes))}s(xP,"checkStrictTypes");function wP(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{ih(e.dataTypes,r)||zu(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),RP(e,t)}}s(wP,"checkContextTypes");function AP(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&zu(e,"use allowUnionTypes to allow union type keyword")}s(AP,"checkMultipleTypes");function IP(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Uu.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>kP(t,a))&&zu(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}s(IP,"checkKeywordTypes");function kP(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}s(kP,"hasApplicableType");function ih(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}s(ih,"includesType");function RP(e,t){let r=[];for(let n of e.dataTypes)ih(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}s(RP,"narrowSchemaTypes");function zu(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Ct.checkStrictMode)(e,t,e.opts.strictTypes)}s(zu,"strictTypesError");var Gu=class Gu{constructor(t,r,n){if((0,vi.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ct.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",sh(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,vi.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",w.default.errors))}result(t,r,n){this.failResult((0,O.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,O.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,O._)`${r} !== undefined && (${(0,O.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?yi.reportExtraError:yi.reportError)(this,this.def.error,r)}$dataError(){(0,yi.reportError)(this,this.def.$dataError||yi.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,yi.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=O.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=O.nil,r=O.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if((0,O.or)((0,O._)`${i} === undefined`,r)),t!==O.nil&&n.assign(t,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==O.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,O.or)(a(),u());function a(){if(n.length){if(!(r instanceof O.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,O._)`${(0,Fo.checkDataTypes)(c,r,o.opts.strictNumbers,Fo.DataType.Wrong)}`}return O.nil}function u(){if(i.validateSchema){let c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,O._)`!${c}(${r})`}return O.nil}}subschema(t,r){let n=(0,Hu.getSubschema)(this.it,t);(0,Hu.extendSubschemaData)(n,this.it,t),(0,Hu.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return vP(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Ct.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Ct.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,O.Name)),!0}};s(Gu,"KeywordCxt");var Vo=Gu;Kt.KeywordCxt=Vo;function oh(e,t,r,n){let i=new Vo(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,vi.funcKeywordCode)(i,r):"macro"in r?(0,vi.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,vi.funcKeywordCode)(i,r)}s(oh,"keywordCode");var TP=/^\/(?:[^~]|~0|~1)*$/,CP=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function sh(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return w.default.rootData;if(e[0]==="/"){if(!TP.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=w.default.rootData}else{let l=CP.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let p=+l[1];if(i=l[2],i==="#"){if(p>=t)throw new Error(c("property/index",p));return n[t-p]}if(p>t)throw new Error(c("data",p));if(o=r[t-p],!i)return o}let a=o,u=i.split("/");for(let l of u)l&&(o=(0,O._)`${o}${(0,O.getProperty)((0,Ct.unescapeJsonPointer)(l))}`,a=(0,O._)`${a} && ${o}`);return a;function c(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}s(sh,"getData");Kt.getData=sh});var Bo=m(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});var Wu=class Wu extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};s(Wu,"ValidationError");var Zu=Wu;Ku.default=Zu});var bi=m(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});var Yu=gi(),Xu=class Xu extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Yu.resolveUrl)(t,r,n),this.missingSchema=(0,Yu.normalizeId)((0,Yu.getFullPath)(t,this.missingRef))}};s(Xu,"MissingRefError");var Qu=Xu;Ju.default=Qu});var Si=m(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.resolveSchema=Be.getCompilingSchema=Be.resolveRef=Be.compileSchema=Be.SchemaEnv=void 0;var Xe=A(),NP=Bo(),Er=Fe(),et=gi(),ah=T(),qP=_i(),rc=class rc{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,et.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};s(rc,"SchemaEnv");var pn=rc;Be.SchemaEnv=pn;function tc(e){let t=uh.call(this,e);if(t)return t;let r=(0,et.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new Xe.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),u;e.$async&&(u=a.scopeValue("Error",{ref:NP.default,code:(0,Xe._)`require("ajv/dist/runtime/validation_error").default`}));let c=a.scopeName("validate");e.validateName=c;let l={gen:a,allErrors:this.opts.allErrors,data:Er.default.data,parentData:Er.default.parentData,parentDataProperty:Er.default.parentDataProperty,dataNames:[Er.default.data],dataPathArr:[Xe.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Xe.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:u,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Xe.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Xe._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,qP.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(Er.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${Er.default.self}`,`${Er.default.scope}`,p)(this,this.scope.get());if(this.scope.value(c,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:c,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:g,items:y}=l;h.evaluated={props:g instanceof Xe.Name?void 0:g,items:y instanceof Xe.Name?void 0:y,dynamicProps:g instanceof Xe.Name,dynamicItems:y instanceof Xe.Name},h.source&&(h.source.evaluated=(0,Xe.stringify)(h.evaluated))}return e.validate=h,e}catch(f){throw delete e.validate,delete e.validateName,p&&this.logger.error("Error compiling schema, function code:",p),f}finally{this._compilations.delete(e)}}s(tc,"compileSchema");Be.compileSchema=tc;function jP(e,t,r){var n;r=(0,et.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let o=LP.call(this,e,r);if(o===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:u}=this.opts;a&&(o=new pn({schema:a,schemaId:u,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=MP.call(this,o)}s(jP,"resolveRef");Be.resolveRef=jP;function MP(e){return(0,et.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:tc.call(this,e)}s(MP,"inlineOrCompile");function uh(e){for(let t of this._compilations)if(DP(t,e))return t}s(uh,"getCompilingSchema");Be.getCompilingSchema=uh;function DP(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}s(DP,"sameSchemaEnv");function LP(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Ho.call(this,e,t)}s(LP,"resolve");function Ho(e,t){let r=this.opts.uriResolver.parse(t),n=(0,et._getFullPath)(this.opts.uriResolver,r),i=(0,et.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return ec.call(this,r,e);let o=(0,et.normalizeId)(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let u=Ho.call(this,e,a);return typeof(u==null?void 0:u.schema)!="object"?void 0:ec.call(this,r,u)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||tc.call(this,a),o===(0,et.normalizeId)(t)){let{schema:u}=a,{schemaId:c}=this.opts,l=u[c];return l&&(i=(0,et.resolveUrl)(this.opts.uriResolver,i,l)),new pn({schema:u,schemaId:c,root:e,baseId:i})}return ec.call(this,r,a)}}s(Ho,"resolveSchema");Be.resolveSchema=Ho;var FP=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function ec(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let u of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,ah.unescapeFragment)(u)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!FP.has(u)&&l&&(t=(0,et.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,ah.schemaHasRulesButRef)(r,this.RULES)){let u=(0,et.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=Ho.call(this,n,u)}let{schemaId:a}=this.opts;if(o=o||new pn({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}s(ec,"getJsonPointer")});var ch=m((sj,VP)=>{VP.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var fh=m((aj,lh)=>{"use strict";var BP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};lh.exports={HEX:BP}});var _h=m((uj,vh)=>{"use strict";var{HEX:HP}=fh();function mh(e){if(yh(e,".")<3)return{host:e,isIPV4:!1};let t=e.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[r]=t;return r?{host:zP(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}s(mh,"normalizeIPv4");function nc(e,t=!1){let r="",n=!0;for(let i of e){if(HP[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}s(nc,"stringArrayToHexStripped");function UP(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],o=!1,a=!1,u=!1;function c(){if(i.length){if(o===!1){let l=nc(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}s(c,"consume");for(let l=0;l<e.length;l++){let p=e[l];if(!(p==="["||p==="]"))if(p===":"){if(a===!0&&(u=!0),!c())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(p==="%"){if(!c())break;o=!0}else{i.push(p);continue}}return i.length&&(o?r.zone=i.join(""):u?n.push(i.join("")):n.push(nc(i))),r.address=n.join(""),r}s(UP,"getIPV6");function gh(e,t={}){if(yh(e,":")<2)return{host:e,isIPV6:!1};let r=UP(e);if(r.error)return{host:e,isIPV6:!1};{let n=r.address,i=r.address;return r.zone&&(n+="%"+r.zone,i+="%25"+r.zone),{host:n,escapedHost:i,isIPV6:!0}}}s(gh,"normalizeIPv6");function zP(e,t){let r="",n=!0,i=e.length;for(let o=0;o<i;o++){let a=e[o];a==="0"&&n?(o+1<=i&&e[o+1]===t||o+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}s(zP,"stripLeadingZeros");function yh(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}s(yh,"findToken");var ph=/^\.\.?\//u,dh=/^\/\.(?:\/|$)/u,hh=/^\/\.\.(?:\/|$)/u,GP=/^\/?(?:.|\n)*?(?=\/|$)/u;function ZP(e){let t=[];for(;e.length;)if(e.match(ph))e=e.replace(ph,"");else if(e.match(dh))e=e.replace(dh,"/");else if(e.match(hh))e=e.replace(hh,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(GP);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}s(ZP,"removeDotSegments");function KP(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}s(KP,"normalizeComponentEncoding");function WP(e,t){let r=[];if(e.userinfo!==void 0&&(r.push(e.userinfo),r.push("@")),e.host!==void 0){let n=unescape(e.host),i=mh(n);if(i.isIPV4)n=i.host;else{let o=gh(i.host,{isIPV4:!1});o.isIPV6===!0?n=`[${o.escapedHost}]`:n=e.host}r.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}s(WP,"recomposeAuthority");vh.exports={recomposeAuthority:WP,normalizeComponentEncoding:KP,removeDotSegments:ZP,normalizeIPv4:mh,normalizeIPv6:gh,stringArrayToHexStripped:nc}});var Eh=m((lj,Oh)=>{"use strict";var YP=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,QP=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function bh(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}s(bh,"isSecure");function Sh(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}s(Sh,"httpParse");function Ph(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}s(Ph,"httpSerialize");function JP(e){return e.secure=bh(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}s(JP,"wsParse");function XP(e){if((e.port===(bh(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}s(XP,"wsSerialize");function e$(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(QP);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,o=ic[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}s(e$,"urnParse");function t$(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,o=ic[i];o&&(e=o.serialize(e,t));let a=e,u=e.nss;return a.path=`${n||t.nid}:${u}`,t.skipEscape=!0,a}s(t$,"urnSerialize");function r$(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!YP.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}s(r$,"urnuuidParse");function n$(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}s(n$,"urnuuidSerialize");var $h={scheme:"http",domainHost:!0,parse:Sh,serialize:Ph},i$={scheme:"https",domainHost:$h.domainHost,parse:Sh,serialize:Ph},Uo={scheme:"ws",domainHost:!0,parse:JP,serialize:XP},o$={scheme:"wss",domainHost:Uo.domainHost,parse:Uo.parse,serialize:Uo.serialize},s$={scheme:"urn",parse:e$,serialize:t$,skipNormalize:!0},a$={scheme:"urn:uuid",parse:r$,serialize:n$,skipNormalize:!0},ic={http:$h,https:i$,ws:Uo,wss:o$,urn:s$,"urn:uuid":a$};Oh.exports=ic});var wh=m((pj,Go)=>{"use strict";var{normalizeIPv6:u$,normalizeIPv4:c$,removeDotSegments:Pi,recomposeAuthority:l$,normalizeComponentEncoding:zo}=_h(),oc=Eh();function f$(e,t){return typeof e=="string"?e=gt(Nt(e,t),t):typeof e=="object"&&(e=Nt(gt(e,t),t)),e}s(f$,"normalize");function p$(e,t,r){let n=Object.assign({scheme:"null"},r),i=xh(Nt(e,n),Nt(t,n),n,!0);return gt(i,{...n,skipEscape:!0})}s(p$,"resolve");function xh(e,t,r,n){let i={};return n||(e=Nt(gt(e,r),r),t=Nt(gt(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=Pi(t.path||""),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=Pi(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=Pi(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path,i.path=Pi(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}s(xh,"resolveComponents");function d$(e,t,r){return typeof e=="string"?(e=unescape(e),e=gt(zo(Nt(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=gt(zo(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=gt(zo(Nt(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=gt(zo(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}s(d$,"equal");function gt(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],o=oc[(n.scheme||r.scheme||"").toLowerCase()];o&&o.serialize&&o.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&(i.push(r.scheme),i.push(":"));let a=l$(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let u=r.path;!n.absolutePath&&(!o||!o.absolutePath)&&(u=Pi(u)),a===void 0&&(u=u.replace(/^\/\//u,"/%2F")),i.push(u)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}s(gt,"serialize");var h$=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function m$(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||h$[t])return!0;return!1}s(m$,"nonSimpleDomain");var g$=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Nt(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,o=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(g$);if(a){if(n.scheme=a[1],n.userinfo=a[3],n.host=a[4],n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=a[7],n.fragment=a[8],isNaN(n.port)&&(n.port=a[5]),n.host){let c=c$(n.host);if(c.isIPV4===!1){let l=u$(c.host,{isIPV4:!1});n.host=l.host.toLowerCase(),o=l.isIPV6}else n.host=c.host,o=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let u=oc[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!u||!u.unicodeSupport)&&n.host&&(r.domainHost||u&&u.domainHost)&&o===!1&&m$(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(c){n.error=n.error||"Host's domain name can not be converted to ASCII: "+c}(!u||u&&!u.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),u&&u.parse&&u.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}s(Nt,"parse");var sc={SCHEMES:oc,normalize:f$,resolve:p$,resolveComponents:xh,equal:d$,serialize:gt,parse:Nt};Go.exports=sc;Go.exports.default=sc;Go.exports.fastUri=sc});var Ih=m(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var Ah=wh();Ah.code='require("ajv/dist/runtime/uri").default';ac.default=Ah});var hn=m(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.CodeGen=ae.Name=ae.nil=ae.stringify=ae.str=ae._=ae.KeywordCxt=void 0;var y$=_i();Object.defineProperty(ae,"KeywordCxt",{enumerable:!0,get:s(function(){return y$.KeywordCxt},"get")});var dn=A();Object.defineProperty(ae,"_",{enumerable:!0,get:s(function(){return dn._},"get")});Object.defineProperty(ae,"str",{enumerable:!0,get:s(function(){return dn.str},"get")});Object.defineProperty(ae,"stringify",{enumerable:!0,get:s(function(){return dn.stringify},"get")});Object.defineProperty(ae,"nil",{enumerable:!0,get:s(function(){return dn.nil},"get")});Object.defineProperty(ae,"Name",{enumerable:!0,get:s(function(){return dn.Name},"get")});Object.defineProperty(ae,"CodeGen",{enumerable:!0,get:s(function(){return dn.CodeGen},"get")});var v$=Bo(),Nh=bi(),_$=Cu(),$i=Si(),b$=A(),Oi=gi(),Zo=mi(),cc=T(),kh=ch(),S$=Ih(),qh=s((e,t)=>new RegExp(e,t),"defaultRegExp");qh.code="new RegExp";var P$=["removeAdditional","useDefaults","coerceTypes"],$$=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),O$={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},E$={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Rh=200;function x$(e){var t,r,n,i,o,a,u,c,l,p,f,d,h,g,y,v,_,b,S,E,$,M,j,ie,oe;let le=e.strict,Me=(t=e.code)===null||t===void 0?void 0:t.optimize,Ee=Me===!0||Me===void 0?1:Me||0,Bt=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:qh,Jr=(i=e.uriResolver)!==null&&i!==void 0?i:S$.default;return{strictSchema:(a=(o=e.strictSchema)!==null&&o!==void 0?o:le)!==null&&a!==void 0?a:!0,strictNumbers:(c=(u=e.strictNumbers)!==null&&u!==void 0?u:le)!==null&&c!==void 0?c:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:le)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:le)!==null&&d!==void 0?d:"log",strictRequired:(g=(h=e.strictRequired)!==null&&h!==void 0?h:le)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:Ee,regExp:Bt}:{optimize:Ee,regExp:Bt},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:Rh,loopEnum:(v=e.loopEnum)!==null&&v!==void 0?v:Rh,meta:(_=e.meta)!==null&&_!==void 0?_:!0,messages:(b=e.messages)!==null&&b!==void 0?b:!0,inlineRefs:(S=e.inlineRefs)!==null&&S!==void 0?S:!0,schemaId:(E=e.schemaId)!==null&&E!==void 0?E:"$id",addUsedSchema:($=e.addUsedSchema)!==null&&$!==void 0?$:!0,validateSchema:(M=e.validateSchema)!==null&&M!==void 0?M:!0,validateFormats:(j=e.validateFormats)!==null&&j!==void 0?j:!0,unicodeRegExp:(ie=e.unicodeRegExp)!==null&&ie!==void 0?ie:!0,int32range:(oe=e.int32range)!==null&&oe!==void 0?oe:!0,uriResolver:Jr}}s(x$,"requiredOptions");var lc=class lc{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...x$(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new b$.ValueScope({scope:{},prefixes:$$,es5:r,lines:n}),this.logger=T$(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,_$.getRules)(),Th.call(this,O$,t,"NOT SUPPORTED"),Th.call(this,E$,t,"DEPRECATED","warn"),this._metaOpts=k$.call(this),t.formats&&A$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&I$.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),w$.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=kh;n==="id"&&(i={...kh},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(p,f){await o.call(this,p.$schema);let d=this._addSchema(p,f);return d.validate||a.call(this,d)}async function o(p){p&&!this.getSchema(p)&&await i.call(this,{$ref:p},!0)}async function a(p){try{return this._compileSchemaEnv(p)}catch(f){if(!(f instanceof Nh.default))throw f;return u.call(this,f),await c.call(this,f.missingSchema),a.call(this,p)}}function u({missingSchema:p,missingRef:f}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${f} cannot be resolved`)}async function c(p){let f=await l.call(this,p);this.refs[p]||await o.call(this,f.$schema),this.refs[p]||this.addSchema(f,p,r)}async function l(p){let f=this._loading[p];if(f)return f;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let o;if(typeof t=="object"){let{schemaId:a}=this.opts;if(o=t[a],o!==void 0&&typeof o!="string")throw new Error(`schema ${a} must be string`)}return r=(0,Oi.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(t){let r;for(;typeof(r=Ch.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new $i.SchemaEnv({schema:{},schemaId:n});if(r=$i.resolveSchema.call(this,i,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=Ch.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,Oi.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(N$.call(this,n,r),!r)return(0,cc.eachItem)(n,o=>uc.call(this,o)),this;j$.call(this,r);let i={...r,type:(0,Zo.getJSONTypes)(r.type),schemaType:(0,Zo.getJSONTypes)(r.schemaType)};return(0,cc.eachItem)(n,i.type.length===0?o=>uc.call(this,o,i):o=>i.type.forEach(a=>uc.call(this,o,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(o=>o.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,o)=>i+r+o)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let o=i.split("/").slice(1),a=t;for(let u of o)a=a[u];for(let u in n){let c=n[u];if(typeof c!="object")continue;let{$data:l}=c.definition,p=a[u];l&&p&&(a[u]=jh(p))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,o=this.opts.addUsedSchema){let a,{schemaId:u}=this.opts;if(typeof t=="object")a=t[u];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,Oi.normalizeId)(a||n);let l=Oi.getSchemaRefs.call(this,t,n);return c=new $i.SchemaEnv({schema:t,schemaId:u,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),i&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):$i.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{$i.compileSchema.call(this,t)}finally{this.opts=r}}};s(lc,"Ajv");var Ei=lc;Ei.ValidationError=v$.default;Ei.MissingRefError=Nh.default;ae.default=Ei;function Th(e,t,r,n="error"){for(let i in e){let o=i;o in t&&this.logger[n](`${r}: option ${i}. ${e[o]}`)}}s(Th,"checkOptions");function Ch(e){return e=(0,Oi.normalizeId)(e),this.schemas[e]||this.refs[e]}s(Ch,"getSchEnv");function w$(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}s(w$,"addInitialSchemas");function A$(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}s(A$,"addInitialFormats");function I$(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}s(I$,"addInitialKeywords");function k$(){let e={...this.opts};for(let t of P$)delete e[t];return e}s(k$,"getMetaSchemaOptions");var R$={log(){},warn(){},error(){}};function T$(e){if(e===!1)return R$;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}s(T$,"getLogger");var C$=/^[a-z_$][a-z0-9_$:-]*$/i;function N$(e,t){let{RULES:r}=this;if((0,cc.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!C$.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}s(N$,"checkKeyword");function uc(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,a=i?o.post:o.rules.find(({type:c})=>c===r);if(a||(a={type:r,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;let u={keyword:e,definition:{...t,type:(0,Zo.getJSONTypes)(t.type),schemaType:(0,Zo.getJSONTypes)(t.schemaType)}};t.before?q$.call(this,a,u,t.before):a.rules.push(u),o.all[e]=u,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}s(uc,"addRule");function q$(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}s(q$,"addBeforeRule");function j$(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=jh(t)),e.validateSchema=this.compile(t,!0))}s(j$,"keywordMetaschema");var M$={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function jh(e){return{anyOf:[e,M$]}}s(jh,"schemaOrData")});var xi=m(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.callRef=xr.getValidate=void 0;var D$=bi(),Mh=Ve(),Ie=A(),mn=Fe(),Dh=Si(),Ko=T(),L$={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:a,opts:u,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return f();let p=Dh.resolveRef.call(c,l,i,r);if(p===void 0)throw new D$.default(n.opts.uriResolver,i,r);if(p instanceof Dh.SchemaEnv)return d(p);return h(p);function f(){if(o===l)return Wo(e,a,o,o.$async);let g=t.scopeValue("root",{ref:l});return Wo(e,(0,Ie._)`${g}.validate`,l,l.$async)}function d(g){let y=Lh(e,g);Wo(e,y,g,g.$async)}function h(g){let y=t.scopeValue("schema",u.code.source===!0?{ref:g,code:(0,Ie.stringify)(g)}:{ref:g}),v=t.name("valid"),_=e.subschema({schema:g,dataTypes:[],schemaPath:Ie.nil,topSchemaRef:y,errSchemaPath:r},v);e.mergeEvaluated(_),e.ok(v)}}};function Lh(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Ie._)`${r.scopeValue("wrapper",{ref:t})}.validate`}s(Lh,"getValidate");xr.getValidate=Lh;function Wo(e,t,r,n){let{gen:i,it:o}=e,{allErrors:a,schemaEnv:u,opts:c}=o,l=c.passContext?mn.default.this:Ie.nil;n?p():f();function p(){if(!u.$async)throw new Error("async schema referenced by sync schema");let g=i.let("valid");i.try(()=>{i.code((0,Ie._)`await ${(0,Mh.callValidateCode)(e,t,l)}`),h(t),a||i.assign(g,!0)},y=>{i.if((0,Ie._)`!(${y} instanceof ${o.ValidationError})`,()=>i.throw(y)),d(y),a||i.assign(g,!1)}),e.ok(g)}s(p,"callAsyncRef");function f(){e.result((0,Mh.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}s(f,"callSyncRef");function d(g){let y=(0,Ie._)`${g}.errors`;i.assign(mn.default.vErrors,(0,Ie._)`${mn.default.vErrors} === null ? ${y} : ${mn.default.vErrors}.concat(${y})`),i.assign(mn.default.errors,(0,Ie._)`${mn.default.vErrors}.length`)}s(d,"addErrorsFrom");function h(g){var y;if(!o.opts.unevaluated)return;let v=(y=r==null?void 0:r.validate)===null||y===void 0?void 0:y.evaluated;if(o.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(o.props=Ko.mergeEvaluated.props(i,v.props,o.props));else{let _=i.var("props",(0,Ie._)`${g}.evaluated.props`);o.props=Ko.mergeEvaluated.props(i,_,o.props,Ie.Name)}if(o.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(o.items=Ko.mergeEvaluated.items(i,v.items,o.items));else{let _=i.var("items",(0,Ie._)`${g}.evaluated.items`);o.items=Ko.mergeEvaluated.items(i,_,o.items,Ie.Name)}}s(h,"addEvaluatedFrom")}s(Wo,"callRef");xr.callRef=Wo;xr.default=L$});var Fh=m(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});var F$=xi(),V$=["$schema","id","$defs",{keyword:"$comment"},"definitions",F$.default];fc.default=V$});var Vh=m(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});var pc=hn(),B$=A(),Wt=B$.operators,dc={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:Wt.LTE,fail:Wt.GT},{okStr:"<",ok:Wt.LT,fail:Wt.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:Wt.GTE,fail:Wt.LT},{okStr:">",ok:Wt.GT,fail:Wt.LTE}]}},H$={message:s(e=>pc.str`must be ${hc(e).okStr} ${e.schemaCode}`,"message"),params:s(e=>pc._`{comparison: ${hc(e).okStr}, limit: ${e.schemaCode}}`,"params")},U$={keyword:Object.keys(dc),type:"number",schemaType:"number",$data:!0,error:H$,code(e){let{data:t,schemaCode:r}=e;e.fail$data(pc._`${t} ${hc(e).fail} ${r} || isNaN(${t})`)}};function hc(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[dc[r].exclusive]?1:0;return dc[r].ops[n]}s(hc,"kwdOp");mc.default=U$});var Hh=m(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});var Bh={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},z$={keyword:Object.keys(Bh),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=Bh[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};gc.default=z$});var vc=m(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});var wi=A(),G$={message:s(({schemaCode:e})=>(0,wi.str)`must be multiple of ${e}`,"message"),params:s(({schemaCode:e})=>(0,wi._)`{multipleOf: ${e}}`,"params")},Z$={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:G$,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),u=o?(0,wi._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,wi._)`${a} !== parseInt(${a})`;e.fail$data((0,wi._)`(${n} === 0 || (${a} = ${r}/${n}, ${u}))`)}};yc.default=Z$});var zh=m(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});function Uh(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}s(Uh,"ucs2length");_c.default=Uh;Uh.code='require("ajv/dist/runtime/ucs2length").default'});var Sc=m(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});var wr=A(),K$=T(),W$=zh(),Y$={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,wr.str)`must NOT have ${r} than ${t} characters`},params:s(({schemaCode:e})=>(0,wr._)`{limit: ${e}}`,"params")},Q$={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Y$,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?wr.operators.GT:wr.operators.LT,a=i.opts.unicode===!1?(0,wr._)`${r}.length`:(0,wr._)`${(0,K$.useFunc)(e.gen,W$.default)}(${r})`;e.fail$data((0,wr._)`${a} ${o} ${n}`)}};bc.default=Q$});var $c=m(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});var J$=Ve(),Yo=A(),X$={message:s(({schemaCode:e})=>(0,Yo.str)`must match pattern "${e}"`,"message"),params:s(({schemaCode:e})=>(0,Yo._)`{pattern: ${e}}`,"params")},eO={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:X$,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,a=o.opts.unicodeRegExp?"u":"",u=r?(0,Yo._)`(new RegExp(${i}, ${a}))`:(0,J$.usePattern)(e,n);e.fail$data((0,Yo._)`!${u}.test(${t})`)}};Pc.default=eO});var Ec=m(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});var Ai=A(),tO={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Ai.str)`must NOT have ${r} than ${t} properties`},params:s(({schemaCode:e})=>(0,Ai._)`{limit: ${e}}`,"params")},rO={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:tO,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Ai.operators.GT:Ai.operators.LT;e.fail$data((0,Ai._)`Object.keys(${r}).length ${i} ${n}`)}};Oc.default=rO});var wc=m(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});var Ii=Ve(),ki=A(),nO=T(),iO={message:s(({params:{missingProperty:e}})=>(0,ki.str)`must have required property '${e}'`,"message"),params:s(({params:{missingProperty:e}})=>(0,ki._)`{missingProperty: ${e}}`,"params")},oO={keyword:"required",type:"object",schemaType:"array",$data:!0,error:iO,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:a}=e,{opts:u}=a;if(!o&&r.length===0)return;let c=r.length>=u.loopRequired;if(a.allErrors?l():p(),u.strictRequired){let h=e.parentSchema.properties,{definedProperties:g}=e.it;for(let y of r)if((h==null?void 0:h[y])===void 0&&!g.has(y)){let v=a.schemaEnv.baseId+a.errSchemaPath,_=`required property "${y}" is not defined at "${v}" (strictRequired)`;(0,nO.checkStrictMode)(a,_,a.opts.strictRequired)}}function l(){if(c||o)e.block$data(ki.nil,f);else for(let h of r)(0,Ii.checkReportMissingProp)(e,h)}s(l,"allErrorsMode");function p(){let h=t.let("missing");if(c||o){let g=t.let("valid",!0);e.block$data(g,()=>d(h,g)),e.ok(g)}else t.if((0,Ii.checkMissingProp)(e,r,h)),(0,Ii.reportMissingProp)(e,h),t.else()}s(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,Ii.noPropertyInData)(t,i,h,u.ownProperties),()=>e.error())})}s(f,"loopAllRequired");function d(h,g){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(g,(0,Ii.propertyInData)(t,i,h,u.ownProperties)),t.if((0,ki.not)(g),()=>{e.error(),t.break()})},ki.nil)}s(d,"loopUntilMissing")}};xc.default=oO});var Ic=m(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});var Ri=A(),sO={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Ri.str)`must NOT have ${r} than ${t} items`},params:s(({schemaCode:e})=>(0,Ri._)`{limit: ${e}}`,"params")},aO={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:sO,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Ri.operators.GT:Ri.operators.LT;e.fail$data((0,Ri._)`${r}.length ${i} ${n}`)}};Ac.default=aO});var Qo=m(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});var Gh=Vu();Gh.code='require("ajv/dist/runtime/equal").default';kc.default=Gh});var Cc=m(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});var Rc=mi(),ue=A(),uO=T(),cO=Qo(),lO={message:s(({params:{i:e,j:t}})=>(0,ue.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:s(({params:{i:e,j:t}})=>(0,ue._)`{i: ${e}, j: ${t}}`,"params")},fO={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:lO,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:a,it:u}=e;if(!n&&!i)return;let c=t.let("valid"),l=o.items?(0,Rc.getSchemaTypes)(o.items):[];e.block$data(c,p,(0,ue._)`${a} === false`),e.ok(c);function p(){let g=t.let("i",(0,ue._)`${r}.length`),y=t.let("j");e.setParams({i:g,j:y}),t.assign(c,!0),t.if((0,ue._)`${g} > 1`,()=>(f()?d:h)(g,y))}s(p,"validateUniqueItems");function f(){return l.length>0&&!l.some(g=>g==="object"||g==="array")}s(f,"canOptimize");function d(g,y){let v=t.name("item"),_=(0,Rc.checkDataTypes)(l,v,u.opts.strictNumbers,Rc.DataType.Wrong),b=t.const("indices",(0,ue._)`{}`);t.for((0,ue._)`;${g}--;`,()=>{t.let(v,(0,ue._)`${r}[${g}]`),t.if(_,(0,ue._)`continue`),l.length>1&&t.if((0,ue._)`typeof ${v} == "string"`,(0,ue._)`${v} += "_"`),t.if((0,ue._)`typeof ${b}[${v}] == "number"`,()=>{t.assign(y,(0,ue._)`${b}[${v}]`),e.error(),t.assign(c,!1).break()}).code((0,ue._)`${b}[${v}] = ${g}`)})}s(d,"loopN");function h(g,y){let v=(0,uO.useFunc)(t,cO.default),_=t.name("outer");t.label(_).for((0,ue._)`;${g}--;`,()=>t.for((0,ue._)`${y} = ${g}; ${y}--;`,()=>t.if((0,ue._)`${v}(${r}[${g}], ${r}[${y}])`,()=>{e.error(),t.assign(c,!1).break(_)})))}s(h,"loopN2")}};Tc.default=fO});var jc=m(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});var Nc=A(),pO=T(),dO=Qo(),hO={message:"must be equal to constant",params:s(({schemaCode:e})=>(0,Nc._)`{allowedValue: ${e}}`,"params")},mO={keyword:"const",$data:!0,error:hO,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,Nc._)`!${(0,pO.useFunc)(t,dO.default)}(${r}, ${i})`):e.fail((0,Nc._)`${o} !== ${r}`)}};qc.default=mO});var Dc=m(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});var Ti=A(),gO=T(),yO=Qo(),vO={message:"must be equal to one of the allowed values",params:s(({schemaCode:e})=>(0,Ti._)`{allowedValues: ${e}}`,"params")},_O={keyword:"enum",schemaType:"array",$data:!0,error:vO,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let u=i.length>=a.opts.loopEnum,c,l=s(()=>c??(c=(0,gO.useFunc)(t,yO.default)),"getEql"),p;if(u||n)p=t.let("valid"),e.block$data(p,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let h=t.const("vSchema",o);p=(0,Ti.or)(...i.map((g,y)=>d(h,y)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",o,h=>t.if((0,Ti._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}s(f,"loopEnum");function d(h,g){let y=i[g];return typeof y=="object"&&y!==null?(0,Ti._)`${l()}(${r}, ${h}[${g}])`:(0,Ti._)`${r} === ${y}`}s(d,"equalCode")}};Mc.default=_O});var Zh=m(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});var bO=Vh(),SO=Hh(),PO=vc(),$O=Sc(),OO=$c(),EO=Ec(),xO=wc(),wO=Ic(),AO=Cc(),IO=jc(),kO=Dc(),RO=[bO.default,SO.default,PO.default,$O.default,OO.default,EO.default,xO.default,wO.default,AO.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},IO.default,kO.default];Lc.default=RO});var Vc=m(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.validateAdditionalItems=void 0;var Ar=A(),Fc=T(),TO={message:s(({params:{len:e}})=>(0,Ar.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Ar._)`{limit: ${e}}`,"params")},CO={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:TO,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Fc.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Kh(e,n)}};function Kh(e,t){let{gen:r,schema:n,data:i,keyword:o,it:a}=e;a.items=!0;let u=r.const("len",(0,Ar._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Ar._)`${u} <= ${t.length}`);else if(typeof n=="object"&&!(0,Fc.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,Ar._)`${u} <= ${t.length}`);r.if((0,Ar.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,u,p=>{e.subschema({keyword:o,dataProp:p,dataPropType:Fc.Type.Num},l),a.allErrors||r.if((0,Ar.not)(l),()=>r.break())})}s(c,"validateItems")}s(Kh,"validateAdditionalItems");Ci.validateAdditionalItems=Kh;Ci.default=CO});var Bc=m(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.validateTuple=void 0;var Wh=A(),Jo=T(),NO=Ve(),qO={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return Yh(e,"additionalItems",t);r.items=!0,!(0,Jo.alwaysValidSchema)(r,t)&&e.ok((0,NO.validateArray)(e))}};function Yh(e,t,r=e.schema){let{gen:n,parentSchema:i,data:o,keyword:a,it:u}=e;p(i),u.opts.unevaluated&&r.length&&u.items!==!0&&(u.items=Jo.mergeEvaluated.items(n,r.length,u.items));let c=n.name("valid"),l=n.const("len",(0,Wh._)`${o}.length`);r.forEach((f,d)=>{(0,Jo.alwaysValidSchema)(u,f)||(n.if((0,Wh._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},c)),e.ok(c))});function p(f){let{opts:d,errSchemaPath:h}=u,g=r.length,y=g===f.minItems&&(g===f.maxItems||f[t]===!1);if(d.strictTuples&&!y){let v=`"${a}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Jo.checkStrictMode)(u,v,d.strictTuples)}}s(p,"checkStrictTuple")}s(Yh,"validateTuple");Ni.validateTuple=Yh;Ni.default=qO});var Qh=m(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});var jO=Bc(),MO={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:s(e=>(0,jO.validateTuple)(e,"items"),"code")};Hc.default=MO});var Xh=m(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});var Jh=A(),DO=T(),LO=Ve(),FO=Vc(),VO={message:s(({params:{len:e}})=>(0,Jh.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Jh._)`{limit: ${e}}`,"params")},BO={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:VO,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,DO.alwaysValidSchema)(n,t)&&(i?(0,FO.validateAdditionalItems)(e,i):e.ok((0,LO.validateArray)(e)))}};Uc.default=BO});var em=m(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});var He=A(),Xo=T(),HO={message:s(({params:{min:e,max:t}})=>t===void 0?(0,He.str)`must contain at least ${e} valid item(s)`:(0,He.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:s(({params:{min:e,max:t}})=>t===void 0?(0,He._)`{minContains: ${e}}`:(0,He._)`{minContains: ${e}, maxContains: ${t}}`,"params")},UO={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:HO,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e,a,u,{minContains:c,maxContains:l}=n;o.opts.next?(a=c===void 0?1:c,u=l):a=1;let p=t.const("len",(0,He._)`${i}.length`);if(e.setParams({min:a,max:u}),u===void 0&&a===0){(0,Xo.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(u!==void 0&&a>u){(0,Xo.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Xo.alwaysValidSchema)(o,r)){let y=(0,He._)`${p} >= ${a}`;u!==void 0&&(y=(0,He._)`${y} && ${p} <= ${u}`),e.pass(y);return}o.items=!0;let f=t.name("valid");u===void 0&&a===1?h(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),u!==void 0&&t.if((0,He._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let y=t.name("_valid"),v=t.let("count",0);h(y,()=>t.if(y,()=>g(v)))}s(d,"validateItemsWithCount");function h(y,v){t.forRange("i",0,p,_=>{e.subschema({keyword:"contains",dataProp:_,dataPropType:Xo.Type.Num,compositeRule:!0},y),v()})}s(h,"validateItems");function g(y){t.code((0,He._)`${y}++`),u===void 0?t.if((0,He._)`${y} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,He._)`${y} > ${u}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,He._)`${y} >= ${a}`,()=>t.assign(f,!0)))}s(g,"checkLimits")}};zc.default=UO});var es=m(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.validateSchemaDeps=yt.validatePropertyDeps=yt.error=void 0;var Gc=A(),zO=T(),qi=Ve();yt.error={message:s(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Gc.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:s(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Gc._)`{property: ${e},
10
10
  missingProperty: ${n},
11
11
  depsCount: ${t},
12
- deps: ${r}}`,"params")};var FS={keyword:"dependencies",type:"object",schemaType:"object",error:We.error,code(e){let[t,r]=VS(e);Ql(e,t),ep(e,r)}};function VS({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}s(VS,"splitDependencies");function Ql(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let a in t){let c=t[a];if(c.length===0)continue;let u=(0,Fn.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:c.length,deps:c.join(", ")}),i.allErrors?r.if(u,()=>{for(let f of c)(0,Fn.checkReportMissingProp)(e,f)}):(r.if((0,Za._)`${u} && (${(0,Fn.checkMissingProp)(e,c,o)})`),(0,Fn.reportMissingProp)(e,o),r.else())}}s(Ql,"validatePropertyDeps");We.validatePropertyDeps=Ql;function ep(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,a=r.name("valid");for(let c in t)(0,DS.alwaysValidSchema)(o,t[c])||(r.if((0,Fn.propertyInData)(r,n,c,o.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:c},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}s(ep,"validateSchemaDeps");We.validateSchemaDeps=ep;We.default=FS});var rp=m(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var tp=w(),LS=R(),BS={message:"property name must be valid",params:s(({params:e})=>(0,tp._)`{propertyName: ${e.propertyName}}`,"params")},zS={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:BS,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,LS.alwaysValidSchema)(i,r))return;let o=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},o),t.if((0,tp.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};Ha.default=zS});var Ka=m(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var Bi=xe(),ke=w(),US=Oe(),zi=R(),ZS={message:"must NOT have additional properties",params:s(({params:e})=>(0,ke._)`{additionalProperty: ${e.additionalProperty}}`,"params")},HS={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:ZS,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:a}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:c,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,zi.alwaysValidSchema)(a,r))return;let f=(0,Bi.allSchemaProperties)(n.properties),l=(0,Bi.allSchemaProperties)(n.patternProperties);p(),e.ok((0,ke._)`${o} === ${US.default.errors}`);function p(){t.forIn("key",i,g=>{!f.length&&!l.length?y(g):t.if(h(g),()=>y(g))})}s(p,"checkAdditionalProperties");function h(g){let b;if(f.length>8){let v=(0,zi.schemaRefOrVal)(a,n.properties,"properties");b=(0,Bi.isOwnProperty)(t,v,g)}else f.length?b=(0,ke.or)(...f.map(v=>(0,ke._)`${g} === ${v}`)):b=ke.nil;return l.length&&(b=(0,ke.or)(b,...l.map(v=>(0,ke._)`${(0,Bi.usePattern)(e,v)}.test(${g})`))),(0,ke.not)(b)}s(h,"isAdditional");function d(g){t.code((0,ke._)`delete ${i}[${g}]`)}s(d,"deleteAdditional");function y(g){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){d(g);return}if(r===!1){e.setParams({additionalProperty:g}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,zi.alwaysValidSchema)(a,r)){let b=t.name("valid");u.removeAdditional==="failing"?($(g,b,!1),t.if((0,ke.not)(b),()=>{e.reset(),d(g)})):($(g,b),c||t.if((0,ke.not)(b),()=>t.break()))}}s(y,"additionalPropertyCode");function $(g,b,v){let S={keyword:"additionalProperties",dataProp:g,dataPropType:zi.Type.Str};v===!1&&Object.assign(S,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(S,b)}s($,"applyAdditionalSchema")}};Ga.default=HS});var op=m(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});var GS=_n(),np=xe(),Wa=R(),ip=Ka(),KS={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&ip.default.code(new GS.KeywordCxt(o,ip.default,"additionalProperties"));let a=(0,np.allSchemaProperties)(r);for(let p of a)o.definedProperties.add(p);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=Wa.mergeEvaluated.props(t,(0,Wa.toHash)(a),o.props));let c=a.filter(p=>!(0,Wa.alwaysValidSchema)(o,r[p]));if(c.length===0)return;let u=t.name("valid");for(let p of c)f(p)?l(p):(t.if((0,np.propertyInData)(t,i,p,o.opts.ownProperties)),l(p),o.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(u);function f(p){return o.opts.useDefaults&&!o.compositeRule&&r[p].default!==void 0}s(f,"hasDefault");function l(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},u)}s(l,"applyPropertySchema")}};Ya.default=KS});var up=m(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});var sp=xe(),Ui=w(),ap=R(),cp=R(),WS={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:a}=o,c=(0,sp.allSchemaProperties)(r),u=c.filter($=>(0,ap.alwaysValidSchema)(o,r[$]));if(c.length===0||u.length===c.length&&(!o.opts.unevaluated||o.props===!0))return;let f=a.strictSchema&&!a.allowMatchingProperties&&i.properties,l=t.name("valid");o.props!==!0&&!(o.props instanceof Ui.Name)&&(o.props=(0,cp.evaluatedPropsToName)(t,o.props));let{props:p}=o;h();function h(){for(let $ of c)f&&d($),o.allErrors?y($):(t.var(l,!0),y($),t.if(l))}s(h,"validatePatternProperties");function d($){for(let g in f)new RegExp($).test(g)&&(0,ap.checkStrictMode)(o,`property ${g} matches pattern ${$} (use allowMatchingProperties)`)}s(d,"checkMatchingProperties");function y($){t.forIn("key",n,g=>{t.if((0,Ui._)`${(0,sp.usePattern)(e,$)}.test(${g})`,()=>{let b=u.includes($);b||e.subschema({keyword:"patternProperties",schemaProp:$,dataProp:g,dataPropType:cp.Type.Str},l),o.opts.unevaluated&&p!==!0?t.assign((0,Ui._)`${p}[${g}]`,!0):!b&&!o.allErrors&&t.if((0,Ui.not)(l),()=>t.break())})})}s(y,"validateProperties")}};Ja.default=WS});var fp=m(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});var YS=R(),JS={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,YS.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"}};Xa.default=JS});var lp=m(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});var XS=xe(),QS={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:XS.validateUnion,error:{message:"must match a schema in anyOf"}};Qa.default=QS});var pp=m(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});var Zi=w(),eP=R(),tP={message:"must match exactly one schema in oneOf",params:s(({params:e})=>(0,Zi._)`{passingSchemas: ${e.passing}}`,"params")},rP={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:tP,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let o=r,a=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block(f),e.result(a,()=>e.reset(),()=>e.error(!0));function f(){o.forEach((l,p)=>{let h;(0,eP.alwaysValidSchema)(i,l)?t.var(u,!0):h=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},u),p>0&&t.if((0,Zi._)`${u} && ${a}`).assign(a,!1).assign(c,(0,Zi._)`[${c}, ${p}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,p),h&&e.mergeEvaluated(h,Zi.Name)})})}s(f,"validateOneOf")}};ec.default=rP});var dp=m(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});var nP=R(),iP={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((o,a)=>{if((0,nP.alwaysValidSchema)(n,o))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};tc.default=iP});var yp=m(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});var Hi=w(),hp=R(),oP={message:s(({params:e})=>(0,Hi.str)`must match "${e.ifClause}" schema`,"message"),params:s(({params:e})=>(0,Hi._)`{failingKeyword: ${e.ifClause}}`,"params")},sP={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:oP,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,hp.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=mp(n,"then"),o=mp(n,"else");if(!i&&!o)return;let a=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&o){let l=t.let("ifClause");e.setParams({ifClause:l}),t.if(c,f("then",l),f("else",l))}else i?t.if(c,f("then")):t.if((0,Hi.not)(c),f("else"));e.pass(a,()=>e.error(!0));function u(){let l=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(l)}s(u,"validateIf");function f(l,p){return()=>{let h=e.subschema({keyword:l},c);t.assign(a,c),e.mergeValidEvaluated(h,a),p?t.assign(p,(0,Hi._)`${l}`):e.setParams({ifClause:l})}}s(f,"validateClause")}};function mp(e,t){let r=e.schema[t];return r!==void 0&&!(0,hp.alwaysValidSchema)(e,r)}s(mp,"hasSchema");rc.default=sP});var gp=m(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});var aP=R(),cP={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,aP.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};nc.default=cP});var oc=m(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var uP=Va(),fP=Wl(),lP=La(),pP=Jl(),dP=Xl(),mP=Li(),hP=rp(),yP=Ka(),gP=op(),$P=up(),bP=fp(),vP=lp(),SP=pp(),PP=dp(),_P=yp(),OP=gp();function xP(e=!1){let t=[bP.default,vP.default,SP.default,PP.default,_P.default,OP.default,hP.default,yP.default,mP.default,gP.default,$P.default];return e?t.push(fP.default,pP.default):t.push(uP.default,lP.default),t.push(dP.default),t}s(xP,"getApplicator");ic.default=xP});var $p=m(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});var G=w(),wP={message:s(({schemaCode:e})=>(0,G.str)`must match format "${e}"`,"message"),params:s(({schemaCode:e})=>(0,G._)`{format: ${e}}`,"params")},EP={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:wP,code(e,t){let{gen:r,data:n,$data:i,schema:o,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:f,schemaEnv:l,self:p}=c;if(!u.validateFormats)return;i?h():d();function h(){let y=r.scopeValue("formats",{ref:p.formats,code:u.code.formats}),$=r.const("fDef",(0,G._)`${y}[${a}]`),g=r.let("fType"),b=r.let("format");r.if((0,G._)`typeof ${$} == "object" && !(${$} instanceof RegExp)`,()=>r.assign(g,(0,G._)`${$}.type || "string"`).assign(b,(0,G._)`${$}.validate`),()=>r.assign(g,(0,G._)`"string"`).assign(b,$)),e.fail$data((0,G.or)(v(),S()));function v(){return u.strictSchema===!1?G.nil:(0,G._)`${a} && !${b}`}s(v,"unknownFmt");function S(){let T=l.$async?(0,G._)`(${$}.async ? await ${b}(${n}) : ${b}(${n}))`:(0,G._)`${b}(${n})`,P=(0,G._)`(typeof ${b} == "function" ? ${T} : ${b}.test(${n}))`;return(0,G._)`${b} && ${b} !== true && ${g} === ${t} && !${P}`}s(S,"invalidFmt")}s(h,"validate$DataFormat");function d(){let y=p.formats[o];if(!y){v();return}if(y===!0)return;let[$,g,b]=S(y);$===t&&e.pass(T());function v(){if(u.strictSchema===!1){p.logger.warn(P());return}throw new Error(P());function P(){return`unknown format "${o}" ignored in schema at path "${f}"`}}s(v,"unknownFormat");function S(P){let z=P instanceof RegExp?(0,G.regexpCode)(P):u.code.formats?(0,G._)`${u.code.formats}${(0,G.getProperty)(o)}`:void 0,W=r.scopeValue("formats",{key:o,ref:P,code:z});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,G._)`${W}.validate`]:["string",P,W]}s(S,"getFormat");function T(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!l.$async)throw new Error("async format in sync schema");return(0,G._)`await ${b}(${n})`}return typeof g=="function"?(0,G._)`${b}(${n})`:(0,G._)`${b}.test(${n})`}s(T,"validCondition")}s(d,"validateFormat")}};sc.default=EP});var cc=m(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var jP=$p(),AP=[jP.default];ac.default=AP});var bp=m(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});var TP=Dl(),RP=Zl(),IP=oc(),qP=cc(),NP=["title","description","default"],CP=[TP.default,RP.default,IP.default(),qP.default,NP];uc.default=CP});var Sp=m(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.DiscrError=void 0;var vp;(function(e){e.Tag="tag",e.Mapping="mapping"})(vp||(Gi.DiscrError=vp={}))});var pc=m(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});var Rr=w(),fc=Sp(),Pp=xn(),kP=On(),MP=R(),DP={message:s(({params:{discrError:e,tagName:t}})=>e===fc.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:s(({params:{discrError:e,tag:t,tagName:r}})=>(0,Rr._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},FP={keyword:"discriminator",type:"object",schemaType:"object",error:DP,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:a}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let c=n.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=t.let("valid",!1),f=t.const("tag",(0,Rr._)`${r}${(0,Rr.getProperty)(c)}`);t.if((0,Rr._)`typeof ${f} == "string"`,()=>l(),()=>e.error(!1,{discrError:fc.DiscrError.Tag,tag:f,tagName:c})),e.ok(u);function l(){let d=h();t.if(!1);for(let y in d)t.elseIf((0,Rr._)`${f} === ${y}`),t.assign(u,p(d[y]));t.else(),e.error(!1,{discrError:fc.DiscrError.Mapping,tag:f,tagName:c}),t.endIf()}s(l,"validateMapping");function p(d){let y=t.name("valid"),$=e.subschema({keyword:"oneOf",schemaProp:d},y);return e.mergeEvaluated($,Rr.Name),y}s(p,"applyTagSchema");function h(){var d;let y={},$=b(i),g=!0;for(let T=0;T<a.length;T++){let P=a[T];if(P!=null&&P.$ref&&!(0,MP.schemaHasRulesButRef)(P,o.self.RULES)){let W=P.$ref;if(P=Pp.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,W),P instanceof Pp.SchemaEnv&&(P=P.schema),P===void 0)throw new kP.default(o.opts.uriResolver,o.baseId,W)}let z=(d=P==null?void 0:P.properties)===null||d===void 0?void 0:d[c];if(typeof z!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);g=g&&($||b(P)),v(z,T)}if(!g)throw new Error(`discriminator: "${c}" must be required`);return y;function b({required:T}){return Array.isArray(T)&&T.includes(c)}function v(T,P){if(T.const)S(T.const,P);else if(T.enum)for(let z of T.enum)S(z,P);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function S(T,P){if(typeof T!="string"||T in y)throw new Error(`discriminator: "${c}" values must be unique strings`);y[T]=P}}s(h,"getMapping")}};lc.default=FP});var _p=m((fI,VP)=>{VP.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 wp=m((Y,xp)=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});Y.CodeGen=Y.Name=Y.nil=Y.stringify=Y.str=Y._=Y.KeywordCxt=void 0;var LP=Ar(),BP=bp(),zP=pc(),Op=_p(),UP=["/properties"],Ki="http://json-schema.org/draft-04/schema",dc=class dc extends LP.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),BP.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(zP.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(Op,UP):Op;this.addMetaSchema(t,Ki,!1),this.refs["http://json-schema.org/schema"]=Ki}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Ki)?Ki:void 0)}};s(dc,"Ajv");var Wi=dc;xp.exports=Y=Wi;Object.defineProperty(Y,"__esModule",{value:!0});Y.default=Wi;var ZP=Ar();Object.defineProperty(Y,"KeywordCxt",{enumerable:!0,get:s(function(){return ZP.KeywordCxt},"get")});var Ir=Ar();Object.defineProperty(Y,"_",{enumerable:!0,get:s(function(){return Ir._},"get")});Object.defineProperty(Y,"str",{enumerable:!0,get:s(function(){return Ir.str},"get")});Object.defineProperty(Y,"stringify",{enumerable:!0,get:s(function(){return Ir.stringify},"get")});Object.defineProperty(Y,"nil",{enumerable:!0,get:s(function(){return Ir.nil},"get")});Object.defineProperty(Y,"Name",{enumerable:!0,get:s(function(){return Ir.Name},"get")});Object.defineProperty(Y,"CodeGen",{enumerable:!0,get:s(function(){return Ir.CodeGen},"get")})});var Ep=m(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});var HP={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};mc.default=HP});var jp=m(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});var GP=Ep(),KP=Tn(),WP=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",GP.default,KP.default];hc.default=WP});var Ap=m(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});var Yi=w(),St=Yi.operators,Ji={maximum:{okStr:"<=",ok:St.LTE,fail:St.GT},minimum:{okStr:">=",ok:St.GTE,fail:St.LT},exclusiveMaximum:{okStr:"<",ok:St.LT,fail:St.GTE},exclusiveMinimum:{okStr:">",ok:St.GT,fail:St.LTE}},YP={message:s(({keyword:e,schemaCode:t})=>(0,Yi.str)`must be ${Ji[e].okStr} ${t}`,"message"),params:s(({keyword:e,schemaCode:t})=>(0,Yi._)`{comparison: ${Ji[e].okStr}, limit: ${t}}`,"params")},JP={keyword:Object.keys(Ji),type:"number",schemaType:"number",$data:!0,error:YP,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Yi._)`${r} ${Ji[t].fail} ${n} || isNaN(${r})`)}};yc.default=JP});var Tp=m(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});var XP=Ap(),QP=ga(),e_=va(),t_=Pa(),r_=Oa(),n_=wa(),i_=ja(),o_=Ia(),s_=Ca(),a_=Ma(),c_=[XP.default,QP.default,e_.default,t_.default,r_.default,n_.default,i_.default,o_.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},s_.default,a_.default];gc.default=c_});var bc=m(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.dynamicAnchor=void 0;var $c=w(),u_=Oe(),Rp=xn(),f_=Tn(),l_={keyword:"$dynamicAnchor",schemaType:"string",code:s(e=>Ip(e,e.schema),"code")};function Ip(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,$c._)`${u_.default.dynamicAnchors}${(0,$c.getProperty)(t)}`,o=n.errSchemaPath==="#"?n.validateName:p_(e);r.if((0,$c._)`!${i}`,()=>r.assign(i,o))}s(Ip,"dynamicAnchor");Vn.dynamicAnchor=Ip;function p_(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:o,localRefs:a,meta:c}=t.root,{schemaId:u}=n.opts,f=new Rp.SchemaEnv({schema:r,schemaId:u,root:i,baseId:o,localRefs:a,meta:c});return Rp.compileSchema.call(n,f),(0,f_.getValidate)(e,f)}s(p_,"_getValidate");Vn.default=l_});var vc=m(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.dynamicRef=void 0;var qp=w(),d_=Oe(),Np=Tn(),m_={keyword:"$dynamicRef",schemaType:"string",code:s(e=>Cp(e,e.schema),"code")};function Cp(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let o=t.slice(1);if(i.allErrors)a();else{let u=r.let("valid",!1);a(u),e.ok(u)}function a(u){if(i.schemaEnv.root.dynamicAnchors[o]){let f=r.let("_v",(0,qp._)`${d_.default.dynamicAnchors}${(0,qp.getProperty)(o)}`);r.if(f,c(f,u),c(i.validateName,u))}else c(i.validateName,u)()}s(a,"_dynamicRef");function c(u,f){return f?()=>r.block(()=>{(0,Np.callRef)(e,u),r.let(f,!0)}):()=>(0,Np.callRef)(e,u)}s(c,"_callRef")}s(Cp,"dynamicRef");Ln.dynamicRef=Cp;Ln.default=m_});var kp=m(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});var h_=bc(),y_=R(),g_={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,h_.dynamicAnchor)(e,""):(0,y_.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Sc.default=g_});var Mp=m(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});var $_=vc(),b_={keyword:"$recursiveRef",schemaType:"string",code:s(e=>(0,$_.dynamicRef)(e,e.schema),"code")};Pc.default=b_});var Dp=m(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});var v_=bc(),S_=vc(),P_=kp(),__=Mp(),O_=[v_.default,S_.default,P_.default,__.default];_c.default=O_});var Vp=m(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});var Fp=Li(),x_={keyword:"dependentRequired",type:"object",schemaType:"object",error:Fp.error,code:s(e=>(0,Fp.validatePropertyDeps)(e),"code")};Oc.default=x_});var Lp=m(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});var w_=Li(),E_={keyword:"dependentSchemas",type:"object",schemaType:"object",code:s(e=>(0,w_.validateSchemaDeps)(e),"code")};xc.default=E_});var Bp=m(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});var j_=R(),A_={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,j_.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};wc.default=A_});var zp=m(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});var T_=Vp(),R_=Lp(),I_=Bp(),q_=[T_.default,R_.default,I_.default];Ec.default=q_});var Zp=m(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});var Pt=w(),Up=R(),N_=Oe(),C_={message:"must NOT have unevaluated properties",params:s(({params:e})=>(0,Pt._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},k_={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:C_,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:o}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:c}=o;c instanceof Pt.Name?t.if((0,Pt._)`${c} !== true`,()=>t.forIn("key",n,p=>t.if(f(c,p),()=>u(p)))):c!==!0&&t.forIn("key",n,p=>c===void 0?u(p):t.if(l(c,p),()=>u(p))),o.props=!0,e.ok((0,Pt._)`${i} === ${N_.default.errors}`);function u(p){if(r===!1){e.setParams({unevaluatedProperty:p}),e.error(),a||t.break();return}if(!(0,Up.alwaysValidSchema)(o,r)){let h=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:p,dataPropType:Up.Type.Str},h),a||t.if((0,Pt.not)(h),()=>t.break())}}s(u,"unevaluatedPropCode");function f(p,h){return(0,Pt._)`!${p} || !${p}[${h}]`}s(f,"unevaluatedDynamic");function l(p,h){let d=[];for(let y in p)p[y]===!0&&d.push((0,Pt._)`${h} !== ${y}`);return(0,Pt.and)(...d)}s(l,"unevaluatedStatic")}};jc.default=k_});var Gp=m(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});var Xt=w(),Hp=R(),M_={message:s(({params:{len:e}})=>(0,Xt.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Xt._)`{limit: ${e}}`,"params")},D_={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:M_,code(e){let{gen:t,schema:r,data:n,it:i}=e,o=i.items||0;if(o===!0)return;let a=t.const("len",(0,Xt._)`${n}.length`);if(r===!1)e.setParams({len:o}),e.fail((0,Xt._)`${a} > ${o}`);else if(typeof r=="object"&&!(0,Hp.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,Xt._)`${a} <= ${o}`);t.if((0,Xt.not)(u),()=>c(u,o)),e.ok(u)}i.items=!0;function c(u,f){t.forRange("i",f,a,l=>{e.subschema({keyword:"unevaluatedItems",dataProp:l,dataPropType:Hp.Type.Num},u),i.allErrors||t.if((0,Xt.not)(u),()=>t.break())})}s(c,"validateItems")}};Ac.default=D_});var Kp=m(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});var F_=Zp(),V_=Gp(),L_=[F_.default,V_.default];Tc.default=L_});var Wp=m(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.contentVocabulary=qr.metadataVocabulary=void 0;qr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];qr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Jp=m(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});var B_=jp(),z_=Tp(),U_=oc(),Z_=Dp(),H_=zp(),G_=Kp(),K_=cc(),Yp=Wp(),W_=[Z_.default,B_.default,z_.default,(0,U_.default)(!0),K_.default,Yp.metadataVocabulary,Yp.contentVocabulary,H_.default,G_.default];Rc.default=W_});var Xp=m((DI,Y_)=>{Y_.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 Qp=m((FI,J_)=>{J_.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 ed=m((VI,X_)=>{X_.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 td=m((LI,Q_)=>{Q_.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 rd=m((BI,eO)=>{eO.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 nd=m((zI,tO)=>{tO.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 id=m((UI,rO)=>{rO.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 od=m((ZI,nO)=>{nO.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 sd=m(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});var iO=Xp(),oO=Qp(),sO=ed(),aO=td(),cO=rd(),uO=nd(),fO=id(),lO=od(),pO=["/properties"];function dO(e){return[iO,oO,sO,aO,cO,t(this,uO),fO,t(this,lO)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,pO):n}s(t,"with$data")}s(dO,"addMetaSchema2020");Ic.default=dO});var ad=m((F,Nc)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.MissingRefError=F.ValidationError=F.CodeGen=F.Name=F.nil=F.stringify=F.str=F._=F.KeywordCxt=F.Ajv2020=void 0;var mO=Ar(),hO=Jp(),yO=pc(),gO=sd(),qc="https://json-schema.org/draft/2020-12/schema",Cc=class Cc extends mO.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),hO.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(yO.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(gO.default.call(this,t),this.refs["http://json-schema.org/schema"]=qc)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(qc)?qc:void 0)}};s(Cc,"Ajv2020");var Nr=Cc;F.Ajv2020=Nr;Nc.exports=F=Nr;Nc.exports.Ajv2020=Nr;Object.defineProperty(F,"__esModule",{value:!0});F.default=Nr;var $O=_n();Object.defineProperty(F,"KeywordCxt",{enumerable:!0,get:s(function(){return $O.KeywordCxt},"get")});var Cr=w();Object.defineProperty(F,"_",{enumerable:!0,get:s(function(){return Cr._},"get")});Object.defineProperty(F,"str",{enumerable:!0,get:s(function(){return Cr.str},"get")});Object.defineProperty(F,"stringify",{enumerable:!0,get:s(function(){return Cr.stringify},"get")});Object.defineProperty(F,"nil",{enumerable:!0,get:s(function(){return Cr.nil},"get")});Object.defineProperty(F,"Name",{enumerable:!0,get:s(function(){return Cr.Name},"get")});Object.defineProperty(F,"CodeGen",{enumerable:!0,get:s(function(){return Cr.CodeGen},"get")});var bO=Ai();Object.defineProperty(F,"ValidationError",{enumerable:!0,get:s(function(){return bO.default},"get")});var vO=On();Object.defineProperty(F,"MissingRefError",{enumerable:!0,get:s(function(){return vO.default},"get")})});var cd=m((WI,SO)=>{SO.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 ud=m((YI,PO)=>{PO.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 fd=m((JI,_O)=>{_O.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 ld=m((XI,OO)=>{OO.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 pd=m((Q,kr)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.openapi=Q.openapiV31=Q.openapiV3=Q.openapiV2=Q.openapiV1=void 0;Q.openapiV1=cd();Q.openapiV2=ud();Q.openapiV3=fd();Q.openapiV31=ld();Q.openapi={v1:Q.openapiV1,v2:Q.openapiV2,v3:Q.openapiV3,v31:Q.openapiV31};Q.default=Q.openapi;typeof kr=="object"&&typeof kr.exports=="object"&&(kr.exports=Object.assign(kr.exports.default,kr.exports))});var Dc=m((QI,dd)=>{"use strict";var xO=fi(),{ono:wO}=Ie(),EO=wp(),jO=ad(),{openapi:kc}=pd();dd.exports=AO;function AO(e){let t,r;if(e.swagger)r=kc.v2,t=Mc();else if(e.openapi.startsWith("3.1")){r=kc.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=Mc(!1)}else r=kc.v3,t=Mc();if(!t.validate(r,e)){let i=t.errors,o=`Swagger schema validation failed.
13
- `+TO(i);throw wO.syntax(i,{details:i},o)}}s(AO,"validateSchema");function Mc(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new EO(t):new jO(t)}s(Mc,"initializeAjv");function TO(e,t){t=t||" ";let r="";for(let n of e)r+=xO.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
14
- `);return r}s(TO,"formatAjvError")});var hd=m((t1,md)=>{"use strict";md.exports=["get","put","post","delete","options","head","patch"]});var Lc=m((r1,bd)=>{"use strict";var RO=fi(),{ono:se}=Ie(),IO=hd(),Fc=["array","boolean","integer","number","string"],gd=["array","boolean","integer","number","string","object","null",void 0];bd.exports=qO;function qO(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let i of t){let o=e.paths[i],a="/paths"+i;o&&i.indexOf("/")===0&&NO(e,o,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let o=e.definitions[i],a="/definitions/"+i;$d(o,a)}}s(qO,"validateSpec");function NO(e,t,r,n){for(let i of IO){let o=t[i],a=r+"/"+i;if(o){let c=o.operationId;if(c)if(n.indexOf(c)===-1)n.push(c);else throw se.syntax(`Validation failed. Duplicate operation id '${c}'`);CO(e,t,r,o,a);let u=Object.keys(o.responses||{});for(let f of u){let l=o.responses[f],p=a+"/responses/"+f;FO(f,l||{},p)}}}}s(NO,"validatePath");function CO(e,t,r,n,i){let o=t.parameters||[],a=n.parameters||[];try{yd(o)}catch(u){throw se.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{yd(a)}catch(u){throw se.syntax(u,`Validation failed. ${i} has duplicate parameters`)}let c=o.reduce((u,f)=>(u.some(p=>p.in===f.in&&p.name===f.name)||u.push(f),u),a.slice());kO(c,i),MO(c,r,i),DO(c,e,n,i)}s(CO,"validateParameters");function kO(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw se.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw se.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}s(kO,"validateBodyParameters");function MO(e,t,r){let n=t.match(RO.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let o=i+1;o<n.length;o++)if(n[i]===n[o])throw se.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 se.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${r}`);let o=n.indexOf("{"+i.name+"}");if(o===-1)throw se.syntax(`Validation failed. ${r} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(o,1)}if(n.length>0)throw se.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}s(MO,"validatePathParameters");function DO(e,t,r,n){for(let i of e){let o=n+"/parameters/"+i.name,a,c;switch(i.in){case"body":a=i.schema,c=gd;break;case"formData":a=i,c=Fc.concat("file");break;default:a=i,c=Fc}if(Vc(a,o,c),$d(a,o),a.type==="file"){let u=/multipart\/(.*\+)?form-data/,f=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some(h=>u.test(h)||f.test(h)))throw se.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}s(DO,"validateParameterTypes");function yd(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 se.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}s(yd,"checkForDuplicates");function FO(e,t,r){if(e!=="default"&&(e<100||e>599))throw se.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let i of n){let o=t.headers[i],a=r+"/headers/"+i;Vc(o,a,Fc)}if(t.schema){let i=gd.concat("file");if(i.indexOf(t.schema.type)===-1)throw se.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);Vc(t.schema,r+"/schema",i)}}s(FO,"validateResponse");function Vc(e,t,r){if(r.indexOf(e.type)===-1)throw se.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw se.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}s(Vc,"validateSchema");function $d(e,t){function r(n,i){if(n.properties)for(let o in n.properties)n.properties.hasOwnProperty(o)&&(i[o]=n.properties[o]);if(n.allOf)for(let o of n.allOf)r(o,i)}if(s(r,"collectProperties"),e.required&&Array.isArray(e.required)){let n={};r(e,n);for(let i of e.required)if(!n[i])throw se.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}s($d,"validateRequiredPropertiesExist")});var De=m(Me=>{"use strict";var{Ono:vd}=Ie(),{stripHash:Sd,toFileSystemPath:VO}=Se(),Mr,_t=Me.JSONParserError=(Mr=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,vd.extend(this)}},s(Mr,"JSONParserError"),Mr);Ot(_t);var Qt,Pd=Me.JSONParserErrorGroup=(Qt=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${VO(t.$refs._root$Ref.path)}'`,vd.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 Qt.getParserErrors(this.files)}},s(Qt,"JSONParserErrorGroup"),Qt);Ot(Pd);var Dr,LO=Me.ParserError=(Dr=class extends _t{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},s(Dr,"ParserError"),Dr);Ot(LO);var Fr,BO=Me.UnmatchedParserError=(Fr=class extends _t{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},s(Fr,"UnmatchedParserError"),Fr);Ot(BO);var Vr,zO=Me.ResolverError=(Vr=class extends _t{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},s(Vr,"ResolverError"),Vr);Ot(zO);var Lr,UO=Me.UnmatchedResolverError=(Lr=class extends _t{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},s(Lr,"UnmatchedResolverError"),Lr);Ot(UO);var Br,ZO=Me.MissingPointerError=(Br=class extends _t{constructor(t,r){super(`Token "${t}" does not exist.`,Sd(r)),this.code="EMISSINGPOINTER"}},s(Br,"MissingPointerError"),Br);Ot(ZO);var zr,HO=Me.InvalidPointerError=(zr=class extends _t{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,Sd(r)),this.code="EINVALIDPOINTER"}},s(zr,"InvalidPointerError"),zr);Ot(HO);function Ot(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}s(Ot,"setErrorName");Me.isHandledError=function(e){return e instanceof _t||e instanceof Pd};Me.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var Od=m((s1,_d)=>{"use strict";var{ParserError:GO}=De();_d.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 GO(r.message,e.url)}}else return t}}});var tr=m((a1,er)=>{"use strict";function xd(e){return typeof e>"u"||e===null}s(xd,"isNothing");function KO(e){return typeof e=="object"&&e!==null}s(KO,"isObject");function WO(e){return Array.isArray(e)?e:xd(e)?[]:[e]}s(WO,"toArray");function YO(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=t[i];return e}s(YO,"extend");function JO(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}s(JO,"repeat");function XO(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}s(XO,"isNegativeZero");er.exports.isNothing=xd;er.exports.isObject=KO;er.exports.toArray=WO;er.exports.repeat=JO;er.exports.isNegativeZero=XO;er.exports.extend=YO});var Ur=m((u1,wd)=>{"use strict";function Bn(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}s(Bn,"YAMLException");Bn.prototype=Object.create(Error.prototype);Bn.prototype.constructor=Bn;Bn.prototype.toString=s(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");wd.exports=Bn});var Ad=m((l1,jd)=>{"use strict";var Ed=tr();function Bc(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}s(Bc,"Mark");Bc.prototype.getSnippet=s(function(t,r){var n,i,o,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 GO={keyword:"dependencies",type:"object",schemaType:"object",error:yt.error,code(e){let[t,r]=ZO(e);tm(e,t),rm(e,r)}};function ZO({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}s(ZO,"splitDependencies");function tm(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let a in t){let u=t[a];if(u.length===0)continue;let c=(0,qi.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:u.length,deps:u.join(", ")}),i.allErrors?r.if(c,()=>{for(let l of u)(0,qi.checkReportMissingProp)(e,l)}):(r.if((0,Gc._)`${c} && (${(0,qi.checkMissingProp)(e,u,o)})`),(0,qi.reportMissingProp)(e,o),r.else())}}s(tm,"validatePropertyDeps");yt.validatePropertyDeps=tm;function rm(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,a=r.name("valid");for(let u in t)(0,zO.alwaysValidSchema)(o,t[u])||(r.if((0,qi.propertyInData)(r,n,u,o.opts.ownProperties),()=>{let c=e.subschema({keyword:i,schemaProp:u},a);e.mergeValidEvaluated(c,a)},()=>r.var(a,!0)),e.ok(a))}s(rm,"validateSchemaDeps");yt.validateSchemaDeps=rm;yt.default=GO});var im=m(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});var nm=A(),KO=T(),WO={message:"property name must be valid",params:s(({params:e})=>(0,nm._)`{propertyName: ${e.propertyName}}`,"params")},YO={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:WO,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,KO.alwaysValidSchema)(i,r))return;let o=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},o),t.if((0,nm.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};Zc.default=YO});var Wc=m(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});var ts=Ve(),tt=A(),QO=Fe(),rs=T(),JO={message:"must NOT have additional properties",params:s(({params:e})=>(0,tt._)`{additionalProperty: ${e.additionalProperty}}`,"params")},XO={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:JO,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:a}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:u,opts:c}=a;if(a.props=!0,c.removeAdditional!=="all"&&(0,rs.alwaysValidSchema)(a,r))return;let l=(0,ts.allSchemaProperties)(n.properties),p=(0,ts.allSchemaProperties)(n.patternProperties);f(),e.ok((0,tt._)`${o} === ${QO.default.errors}`);function f(){t.forIn("key",i,v=>{!l.length&&!p.length?g(v):t.if(d(v),()=>g(v))})}s(f,"checkAdditionalProperties");function d(v){let _;if(l.length>8){let b=(0,rs.schemaRefOrVal)(a,n.properties,"properties");_=(0,ts.isOwnProperty)(t,b,v)}else l.length?_=(0,tt.or)(...l.map(b=>(0,tt._)`${v} === ${b}`)):_=tt.nil;return p.length&&(_=(0,tt.or)(_,...p.map(b=>(0,tt._)`${(0,ts.usePattern)(e,b)}.test(${v})`))),(0,tt.not)(_)}s(d,"isAdditional");function h(v){t.code((0,tt._)`delete ${i}[${v}]`)}s(h,"deleteAdditional");function g(v){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){h(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),u||t.break();return}if(typeof r=="object"&&!(0,rs.alwaysValidSchema)(a,r)){let _=t.name("valid");c.removeAdditional==="failing"?(y(v,_,!1),t.if((0,tt.not)(_),()=>{e.reset(),h(v)})):(y(v,_),u||t.if((0,tt.not)(_),()=>t.break()))}}s(g,"additionalPropertyCode");function y(v,_,b){let S={keyword:"additionalProperties",dataProp:v,dataPropType:rs.Type.Str};b===!1&&Object.assign(S,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(S,_)}s(y,"applyAdditionalSchema")}};Kc.default=XO});var am=m(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});var eE=_i(),om=Ve(),Yc=T(),sm=Wc(),tE={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&sm.default.code(new eE.KeywordCxt(o,sm.default,"additionalProperties"));let a=(0,om.allSchemaProperties)(r);for(let f of a)o.definedProperties.add(f);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=Yc.mergeEvaluated.props(t,(0,Yc.toHash)(a),o.props));let u=a.filter(f=>!(0,Yc.alwaysValidSchema)(o,r[f]));if(u.length===0)return;let c=t.name("valid");for(let f of u)l(f)?p(f):(t.if((0,om.propertyInData)(t,i,f,o.opts.ownProperties)),p(f),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(c);function l(f){return o.opts.useDefaults&&!o.compositeRule&&r[f].default!==void 0}s(l,"hasDefault");function p(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}s(p,"applyPropertySchema")}};Qc.default=tE});var fm=m(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});var um=Ve(),ns=A(),cm=T(),lm=T(),rE={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:a}=o,u=(0,um.allSchemaProperties)(r),c=u.filter(y=>(0,cm.alwaysValidSchema)(o,r[y]));if(u.length===0||c.length===u.length&&(!o.opts.unevaluated||o.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,p=t.name("valid");o.props!==!0&&!(o.props instanceof ns.Name)&&(o.props=(0,lm.evaluatedPropsToName)(t,o.props));let{props:f}=o;d();function d(){for(let y of u)l&&h(y),o.allErrors?g(y):(t.var(p,!0),g(y),t.if(p))}s(d,"validatePatternProperties");function h(y){for(let v in l)new RegExp(y).test(v)&&(0,cm.checkStrictMode)(o,`property ${v} matches pattern ${y} (use allowMatchingProperties)`)}s(h,"checkMatchingProperties");function g(y){t.forIn("key",n,v=>{t.if((0,ns._)`${(0,um.usePattern)(e,y)}.test(${v})`,()=>{let _=c.includes(y);_||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:v,dataPropType:lm.Type.Str},p),o.opts.unevaluated&&f!==!0?t.assign((0,ns._)`${f}[${v}]`,!0):!_&&!o.allErrors&&t.if((0,ns.not)(p),()=>t.break())})})}s(g,"validateProperties")}};Jc.default=rE});var pm=m(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});var nE=T(),iE={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,nE.alwaysValidSchema)(n,r)){e.fail();return}let i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Xc.default=iE});var dm=m(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var oE=Ve(),sE={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:oE.validateUnion,error:{message:"must match a schema in anyOf"}};el.default=sE});var hm=m(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var is=A(),aE=T(),uE={message:"must match exactly one schema in oneOf",params:s(({params:e})=>(0,is._)`{passingSchemas: ${e.passing}}`,"params")},cE={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:uE,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let o=r,a=t.let("valid",!1),u=t.let("passing",null),c=t.name("_valid");e.setParams({passing:u}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((p,f)=>{let d;(0,aE.alwaysValidSchema)(i,p)?t.var(c,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&t.if((0,is._)`${c} && ${a}`).assign(a,!1).assign(u,(0,is._)`[${u}, ${f}]`).else(),t.if(c,()=>{t.assign(a,!0),t.assign(u,f),d&&e.mergeEvaluated(d,is.Name)})})}s(l,"validateOneOf")}};tl.default=cE});var mm=m(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var lE=T(),fE={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((o,a)=>{if((0,lE.alwaysValidSchema)(n,o))return;let u=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(u)})}};rl.default=fE});var vm=m(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});var os=A(),ym=T(),pE={message:s(({params:e})=>(0,os.str)`must match "${e.ifClause}" schema`,"message"),params:s(({params:e})=>(0,os._)`{failingKeyword: ${e.ifClause}}`,"params")},dE={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:pE,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,ym.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=gm(n,"then"),o=gm(n,"else");if(!i&&!o)return;let a=t.let("valid",!0),u=t.name("_valid");if(c(),e.reset(),i&&o){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(u,l("then",p),l("else",p))}else i?t.if(u,l("then")):t.if((0,os.not)(u),l("else"));e.pass(a,()=>e.error(!0));function c(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(p)}s(c,"validateIf");function l(p,f){return()=>{let d=e.subschema({keyword:p},u);t.assign(a,u),e.mergeValidEvaluated(d,a),f?t.assign(f,(0,os._)`${p}`):e.setParams({ifClause:p})}}s(l,"validateClause")}};function gm(e,t){let r=e.schema[t];return r!==void 0&&!(0,ym.alwaysValidSchema)(e,r)}s(gm,"hasSchema");nl.default=dE});var _m=m(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});var hE=T(),mE={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,hE.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};il.default=mE});var sl=m(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var gE=Vc(),yE=Qh(),vE=Bc(),_E=Xh(),bE=em(),SE=es(),PE=im(),$E=Wc(),OE=am(),EE=fm(),xE=pm(),wE=dm(),AE=hm(),IE=mm(),kE=vm(),RE=_m();function TE(e=!1){let t=[xE.default,wE.default,AE.default,IE.default,kE.default,RE.default,PE.default,$E.default,SE.default,OE.default,EE.default];return e?t.push(yE.default,_E.default):t.push(gE.default,vE.default),t.push(bE.default),t}s(TE,"getApplicator");ol.default=TE});var bm=m(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});var Q=A(),CE={message:s(({schemaCode:e})=>(0,Q.str)`must match format "${e}"`,"message"),params:s(({schemaCode:e})=>(0,Q._)`{format: ${e}}`,"params")},NE={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:CE,code(e,t){let{gen:r,data:n,$data:i,schema:o,schemaCode:a,it:u}=e,{opts:c,errSchemaPath:l,schemaEnv:p,self:f}=u;if(!c.validateFormats)return;i?d():h();function d(){let g=r.scopeValue("formats",{ref:f.formats,code:c.code.formats}),y=r.const("fDef",(0,Q._)`${g}[${a}]`),v=r.let("fType"),_=r.let("format");r.if((0,Q._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(v,(0,Q._)`${y}.type || "string"`).assign(_,(0,Q._)`${y}.validate`),()=>r.assign(v,(0,Q._)`"string"`).assign(_,y)),e.fail$data((0,Q.or)(b(),S()));function b(){return c.strictSchema===!1?Q.nil:(0,Q._)`${a} && !${_}`}s(b,"unknownFmt");function S(){let E=p.$async?(0,Q._)`(${y}.async ? await ${_}(${n}) : ${_}(${n}))`:(0,Q._)`${_}(${n})`,$=(0,Q._)`(typeof ${_} == "function" ? ${E} : ${_}.test(${n}))`;return(0,Q._)`${_} && ${_} !== true && ${v} === ${t} && !${$}`}s(S,"invalidFmt")}s(d,"validate$DataFormat");function h(){let g=f.formats[o];if(!g){b();return}if(g===!0)return;let[y,v,_]=S(g);y===t&&e.pass(E());function b(){if(c.strictSchema===!1){f.logger.warn($());return}throw new Error($());function $(){return`unknown format "${o}" ignored in schema at path "${l}"`}}s(b,"unknownFormat");function S($){let M=$ instanceof RegExp?(0,Q.regexpCode)($):c.code.formats?(0,Q._)`${c.code.formats}${(0,Q.getProperty)(o)}`:void 0,j=r.scopeValue("formats",{key:o,ref:$,code:M});return typeof $=="object"&&!($ instanceof RegExp)?[$.type||"string",$.validate,(0,Q._)`${j}.validate`]:["string",$,j]}s(S,"getFormat");function E(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!p.$async)throw new Error("async format in sync schema");return(0,Q._)`await ${_}(${n})`}return typeof v=="function"?(0,Q._)`${_}(${n})`:(0,Q._)`${_}.test(${n})`}s(E,"validCondition")}s(h,"validateFormat")}};al.default=NE});var cl=m(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var qE=bm(),jE=[qE.default];ul.default=jE});var Sm=m(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});var ME=Fh(),DE=Zh(),LE=sl(),FE=cl(),VE=["title","description","default"],BE=[ME.default,DE.default,LE.default(),FE.default,VE];ll.default=BE});var $m=m(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.DiscrError=void 0;var Pm;(function(e){e.Tag="tag",e.Mapping="mapping"})(Pm||(ss.DiscrError=Pm={}))});var dl=m(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});var gn=A(),fl=$m(),Om=Si(),HE=bi(),UE=T(),zE={message:s(({params:{discrError:e,tagName:t}})=>e===fl.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:s(({params:{discrError:e,tag:t,tagName:r}})=>(0,gn._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},GE={keyword:"discriminator",type:"object",schemaType:"object",error:zE,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:a}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let u=n.propertyName;if(typeof u!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let c=t.let("valid",!1),l=t.const("tag",(0,gn._)`${r}${(0,gn.getProperty)(u)}`);t.if((0,gn._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:fl.DiscrError.Tag,tag:l,tagName:u})),e.ok(c);function p(){let h=d();t.if(!1);for(let g in h)t.elseIf((0,gn._)`${l} === ${g}`),t.assign(c,f(h[g]));t.else(),e.error(!1,{discrError:fl.DiscrError.Mapping,tag:l,tagName:u}),t.endIf()}s(p,"validateMapping");function f(h){let g=t.name("valid"),y=e.subschema({keyword:"oneOf",schemaProp:h},g);return e.mergeEvaluated(y,gn.Name),g}s(f,"applyTagSchema");function d(){var h;let g={},y=_(i),v=!0;for(let E=0;E<a.length;E++){let $=a[E];if($!=null&&$.$ref&&!(0,UE.schemaHasRulesButRef)($,o.self.RULES)){let j=$.$ref;if($=Om.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,j),$ instanceof Om.SchemaEnv&&($=$.schema),$===void 0)throw new HE.default(o.opts.uriResolver,o.baseId,j)}let M=(h=$==null?void 0:$.properties)===null||h===void 0?void 0:h[u];if(typeof M!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${u}"`);v=v&&(y||_($)),b(M,E)}if(!v)throw new Error(`discriminator: "${u}" must be required`);return g;function _({required:E}){return Array.isArray(E)&&E.includes(u)}function b(E,$){if(E.const)S(E.const,$);else if(E.enum)for(let M of E.enum)S(M,$);else throw new Error(`discriminator: "properties/${u}" must have "const" or "enum"`)}function S(E,$){if(typeof E!="string"||E in g)throw new Error(`discriminator: "${u}" values must be unique strings`);g[E]=$}}s(d,"getMapping")}};pl.default=GE});var Em=m((A4,ZE)=>{ZE.exports={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}}});var Am=m((ee,wm)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.CodeGen=ee.Name=ee.nil=ee.stringify=ee.str=ee._=ee.KeywordCxt=void 0;var KE=hn(),WE=Sm(),YE=dl(),xm=Em(),QE=["/properties"],as="http://json-schema.org/draft-04/schema",hl=class hl extends KE.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),WE.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(YE.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(xm,QE):xm;this.addMetaSchema(t,as,!1),this.refs["http://json-schema.org/schema"]=as}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(as)?as:void 0)}};s(hl,"Ajv");var us=hl;wm.exports=ee=us;Object.defineProperty(ee,"__esModule",{value:!0});ee.default=us;var JE=hn();Object.defineProperty(ee,"KeywordCxt",{enumerable:!0,get:s(function(){return JE.KeywordCxt},"get")});var yn=hn();Object.defineProperty(ee,"_",{enumerable:!0,get:s(function(){return yn._},"get")});Object.defineProperty(ee,"str",{enumerable:!0,get:s(function(){return yn.str},"get")});Object.defineProperty(ee,"stringify",{enumerable:!0,get:s(function(){return yn.stringify},"get")});Object.defineProperty(ee,"nil",{enumerable:!0,get:s(function(){return yn.nil},"get")});Object.defineProperty(ee,"Name",{enumerable:!0,get:s(function(){return yn.Name},"get")});Object.defineProperty(ee,"CodeGen",{enumerable:!0,get:s(function(){return yn.CodeGen},"get")})});var Im=m(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});var XE={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};ml.default=XE});var km=m(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var ex=Im(),tx=xi(),rx=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",ex.default,tx.default];gl.default=rx});var Rm=m(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var cs=A(),Yt=cs.operators,ls={maximum:{okStr:"<=",ok:Yt.LTE,fail:Yt.GT},minimum:{okStr:">=",ok:Yt.GTE,fail:Yt.LT},exclusiveMaximum:{okStr:"<",ok:Yt.LT,fail:Yt.GTE},exclusiveMinimum:{okStr:">",ok:Yt.GT,fail:Yt.LTE}},nx={message:s(({keyword:e,schemaCode:t})=>(0,cs.str)`must be ${ls[e].okStr} ${t}`,"message"),params:s(({keyword:e,schemaCode:t})=>(0,cs._)`{comparison: ${ls[e].okStr}, limit: ${t}}`,"params")},ix={keyword:Object.keys(ls),type:"number",schemaType:"number",$data:!0,error:nx,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,cs._)`${r} ${ls[t].fail} ${n} || isNaN(${r})`)}};yl.default=ix});var Tm=m(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var ox=Rm(),sx=vc(),ax=Sc(),ux=$c(),cx=Ec(),lx=wc(),fx=Ic(),px=Cc(),dx=jc(),hx=Dc(),mx=[ox.default,sx.default,ax.default,ux.default,cx.default,lx.default,fx.default,px.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},dx.default,hx.default];vl.default=mx});var bl=m(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.dynamicAnchor=void 0;var _l=A(),gx=Fe(),Cm=Si(),yx=xi(),vx={keyword:"$dynamicAnchor",schemaType:"string",code:s(e=>Nm(e,e.schema),"code")};function Nm(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,_l._)`${gx.default.dynamicAnchors}${(0,_l.getProperty)(t)}`,o=n.errSchemaPath==="#"?n.validateName:_x(e);r.if((0,_l._)`!${i}`,()=>r.assign(i,o))}s(Nm,"dynamicAnchor");ji.dynamicAnchor=Nm;function _x(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:o,localRefs:a,meta:u}=t.root,{schemaId:c}=n.opts,l=new Cm.SchemaEnv({schema:r,schemaId:c,root:i,baseId:o,localRefs:a,meta:u});return Cm.compileSchema.call(n,l),(0,yx.getValidate)(e,l)}s(_x,"_getValidate");ji.default=vx});var Sl=m(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.dynamicRef=void 0;var qm=A(),bx=Fe(),jm=xi(),Sx={keyword:"$dynamicRef",schemaType:"string",code:s(e=>Mm(e,e.schema),"code")};function Mm(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let o=t.slice(1);if(i.allErrors)a();else{let c=r.let("valid",!1);a(c),e.ok(c)}function a(c){if(i.schemaEnv.root.dynamicAnchors[o]){let l=r.let("_v",(0,qm._)`${bx.default.dynamicAnchors}${(0,qm.getProperty)(o)}`);r.if(l,u(l,c),u(i.validateName,c))}else u(i.validateName,c)()}s(a,"_dynamicRef");function u(c,l){return l?()=>r.block(()=>{(0,jm.callRef)(e,c),r.let(l,!0)}):()=>(0,jm.callRef)(e,c)}s(u,"_callRef")}s(Mm,"dynamicRef");Mi.dynamicRef=Mm;Mi.default=Sx});var Dm=m(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});var Px=bl(),$x=T(),Ox={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,Px.dynamicAnchor)(e,""):(0,$x.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Pl.default=Ox});var Lm=m($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var Ex=Sl(),xx={keyword:"$recursiveRef",schemaType:"string",code:s(e=>(0,Ex.dynamicRef)(e,e.schema),"code")};$l.default=xx});var Fm=m(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var wx=bl(),Ax=Sl(),Ix=Dm(),kx=Lm(),Rx=[wx.default,Ax.default,Ix.default,kx.default];Ol.default=Rx});var Bm=m(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var Vm=es(),Tx={keyword:"dependentRequired",type:"object",schemaType:"object",error:Vm.error,code:s(e=>(0,Vm.validatePropertyDeps)(e),"code")};El.default=Tx});var Hm=m(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var Cx=es(),Nx={keyword:"dependentSchemas",type:"object",schemaType:"object",code:s(e=>(0,Cx.validateSchemaDeps)(e),"code")};xl.default=Nx});var Um=m(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});var qx=T(),jx={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,qx.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};wl.default=jx});var zm=m(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});var Mx=Bm(),Dx=Hm(),Lx=Um(),Fx=[Mx.default,Dx.default,Lx.default];Al.default=Fx});var Zm=m(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var Qt=A(),Gm=T(),Vx=Fe(),Bx={message:"must NOT have unevaluated properties",params:s(({params:e})=>(0,Qt._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},Hx={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:Bx,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:o}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:u}=o;u instanceof Qt.Name?t.if((0,Qt._)`${u} !== true`,()=>t.forIn("key",n,f=>t.if(l(u,f),()=>c(f)))):u!==!0&&t.forIn("key",n,f=>u===void 0?c(f):t.if(p(u,f),()=>c(f))),o.props=!0,e.ok((0,Qt._)`${i} === ${Vx.default.errors}`);function c(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,Gm.alwaysValidSchema)(o,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:Gm.Type.Str},d),a||t.if((0,Qt.not)(d),()=>t.break())}}s(c,"unevaluatedPropCode");function l(f,d){return(0,Qt._)`!${f} || !${f}[${d}]`}s(l,"unevaluatedDynamic");function p(f,d){let h=[];for(let g in f)f[g]===!0&&h.push((0,Qt._)`${d} !== ${g}`);return(0,Qt.and)(...h)}s(p,"unevaluatedStatic")}};Il.default=Hx});var Wm=m(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});var Ir=A(),Km=T(),Ux={message:s(({params:{len:e}})=>(0,Ir.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Ir._)`{limit: ${e}}`,"params")},zx={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:Ux,code(e){let{gen:t,schema:r,data:n,it:i}=e,o=i.items||0;if(o===!0)return;let a=t.const("len",(0,Ir._)`${n}.length`);if(r===!1)e.setParams({len:o}),e.fail((0,Ir._)`${a} > ${o}`);else if(typeof r=="object"&&!(0,Km.alwaysValidSchema)(i,r)){let c=t.var("valid",(0,Ir._)`${a} <= ${o}`);t.if((0,Ir.not)(c),()=>u(c,o)),e.ok(c)}i.items=!0;function u(c,l){t.forRange("i",l,a,p=>{e.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:Km.Type.Num},c),i.allErrors||t.if((0,Ir.not)(c),()=>t.break())})}s(u,"validateItems")}};kl.default=zx});var Ym=m(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});var Gx=Zm(),Zx=Wm(),Kx=[Gx.default,Zx.default];Rl.default=Kx});var Qm=m(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.contentVocabulary=vn.metadataVocabulary=void 0;vn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];vn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Xm=m(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});var Wx=km(),Yx=Tm(),Qx=sl(),Jx=Fm(),Xx=zm(),ew=Ym(),tw=cl(),Jm=Qm(),rw=[Jx.default,Wx.default,Yx.default,(0,Qx.default)(!0),tw.default,Jm.metadataVocabulary,Jm.contentVocabulary,Xx.default,ew.default];Tl.default=rw});var eg=m((rM,nw)=>{nw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var tg=m((nM,iw)=>{iw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var rg=m((iM,ow)=>{ow.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var ng=m((oM,sw)=>{sw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var ig=m((sM,aw)=>{aw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var og=m((aM,uw)=>{uw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var sg=m((uM,cw)=>{cw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var ag=m((cM,lw)=>{lw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var ug=m(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});var fw=eg(),pw=tg(),dw=rg(),hw=ng(),mw=ig(),gw=og(),yw=sg(),vw=ag(),_w=["/properties"];function bw(e){return[fw,pw,dw,hw,mw,t(this,gw),yw,t(this,vw)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,_w):n}s(t,"with$data")}s(bw,"addMetaSchema2020");Cl.default=bw});var cg=m((B,ql)=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.MissingRefError=B.ValidationError=B.CodeGen=B.Name=B.nil=B.stringify=B.str=B._=B.KeywordCxt=B.Ajv2020=void 0;var Sw=hn(),Pw=Xm(),$w=dl(),Ow=ug(),Nl="https://json-schema.org/draft/2020-12/schema",jl=class jl extends Sw.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),Pw.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword($w.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(Ow.default.call(this,t),this.refs["http://json-schema.org/schema"]=Nl)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Nl)?Nl:void 0)}};s(jl,"Ajv2020");var _n=jl;B.Ajv2020=_n;ql.exports=B=_n;ql.exports.Ajv2020=_n;Object.defineProperty(B,"__esModule",{value:!0});B.default=_n;var Ew=_i();Object.defineProperty(B,"KeywordCxt",{enumerable:!0,get:s(function(){return Ew.KeywordCxt},"get")});var bn=A();Object.defineProperty(B,"_",{enumerable:!0,get:s(function(){return bn._},"get")});Object.defineProperty(B,"str",{enumerable:!0,get:s(function(){return bn.str},"get")});Object.defineProperty(B,"stringify",{enumerable:!0,get:s(function(){return bn.stringify},"get")});Object.defineProperty(B,"nil",{enumerable:!0,get:s(function(){return bn.nil},"get")});Object.defineProperty(B,"Name",{enumerable:!0,get:s(function(){return bn.Name},"get")});Object.defineProperty(B,"CodeGen",{enumerable:!0,get:s(function(){return bn.CodeGen},"get")});var xw=Bo();Object.defineProperty(B,"ValidationError",{enumerable:!0,get:s(function(){return xw.default},"get")});var ww=bi();Object.defineProperty(B,"MissingRefError",{enumerable:!0,get:s(function(){return ww.default},"get")})});var lg=m((dM,Aw)=>{Aw.exports={id:"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v1.2/apiDeclaration.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swaggerVersion","basePath","apis"],properties:{swaggerVersion:{enum:["1.2"]},apiVersion:{type:"string"},basePath:{type:"string",format:"uri",pattern:"^https?://"},resourcePath:{type:"string",format:"uri",pattern:"^/"},apis:{type:"array",items:{$ref:"#/definitions/apiObject"}},models:{type:"object",additionalProperties:{$ref:"modelsObject.json#"}},produces:{$ref:"#/definitions/mimeTypeArray"},consumes:{$ref:"#/definitions/mimeTypeArray"},authorizations:{$ref:"authorizationObject.json#"}},additionalProperties:!1,definitions:{apiObject:{type:"object",required:["path","operations"],properties:{path:{type:"string",format:"uri-template",pattern:"^/"},description:{type:"string"},operations:{type:"array",items:{$ref:"operationObject.json#"}}},additionalProperties:!1},mimeTypeArray:{type:"array",items:{type:"string",format:"mime-type"},uniqueItems:!0}}}});var fg=m((hM,Iw)=>{Iw.exports={title:"A JSON Schema for Swagger 2.0 API.",id:"http://swagger.io/v2/schema.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swagger","info","paths"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{swagger:{type:"string",enum:["2.0"],description:"The Swagger version of this document."},info:{$ref:"#/definitions/info"},host:{type:"string",pattern:"^[^{}/ :\\\\]+(?::\\d+)?$",description:"The host (name or ip) of the API. Example: 'swagger.io'"},basePath:{type:"string",pattern:"^/",description:"The base path to the API. Example: '/api'."},schemes:{$ref:"#/definitions/schemesList"},consumes:{description:"A list of MIME types accepted by the API.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},paths:{$ref:"#/definitions/paths"},definitions:{$ref:"#/definitions/definitions"},parameters:{$ref:"#/definitions/parameterDefinitions"},responses:{$ref:"#/definitions/responseDefinitions"},security:{$ref:"#/definitions/security"},securityDefinitions:{$ref:"#/definitions/securityDefinitions"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:!0},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed."},termsOfService:{type:"string",description:"The terms of service for the API."},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:!1,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},license:{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},paths:{type:"object",description:"Relative paths to the individual endpoints. They must be relative to the 'basePath'.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"},"^/":{$ref:"#/definitions/pathItem"}},additionalProperties:!1},definitions:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"One or more JSON objects describing the schemas being consumed and produced by the API."},parameterDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"},description:"One or more JSON representations for parameters"},responseDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/response"},description:"One or more JSON representations for responses"},externalDocs:{type:"object",additionalProperties:!1,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},examples:{type:"object",additionalProperties:!0},mimeType:{type:"string",description:"The MIME type of the HTTP message."},operation:{type:"object",required:["responses"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{tags:{type:"array",items:{type:"string"},uniqueItems:!0},summary:{type:"string",description:"A brief summary of the operation."},description:{type:"string",description:"A longer description of the operation, GitHub Flavored Markdown is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string",description:"A unique identifier of the operation."},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},consumes:{description:"A list of MIME types the API can consume.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},parameters:{$ref:"#/definitions/parametersList"},responses:{$ref:"#/definitions/responses"},schemes:{$ref:"#/definitions/schemesList"},deprecated:{type:"boolean",default:!1},security:{$ref:"#/definitions/security"}}},pathItem:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},get:{$ref:"#/definitions/operation"},put:{$ref:"#/definitions/operation"},post:{$ref:"#/definitions/operation"},delete:{$ref:"#/definitions/operation"},options:{$ref:"#/definitions/operation"},head:{$ref:"#/definitions/operation"},patch:{$ref:"#/definitions/operation"},parameters:{$ref:"#/definitions/parametersList"}}},responses:{type:"object",description:"Response objects names can either be any valid HTTP status code or 'default'.",minProperties:1,additionalProperties:!1,patternProperties:{"^([0-9]{3})$|^(default)$":{$ref:"#/definitions/responseValue"},"^x-":{$ref:"#/definitions/vendorExtension"}},not:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}}},responseValue:{oneOf:[{$ref:"#/definitions/response"},{$ref:"#/definitions/jsonReference"}]},response:{type:"object",required:["description"],properties:{description:{type:"string"},schema:{oneOf:[{$ref:"#/definitions/schema"},{$ref:"#/definitions/fileSchema"}]},headers:{$ref:"#/definitions/headers"},examples:{$ref:"#/definitions/examples"}},additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},headers:{type:"object",additionalProperties:{$ref:"#/definitions/header"}},header:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},vendorExtension:{description:"Any property starting with x- is valid.",additionalProperties:!0,additionalItems:!0},bodyParameter:{type:"object",required:["name","in","schema"],patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},in:{type:"string",description:"Determines the location of the parameter.",enum:["body"]},required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},schema:{$ref:"#/definitions/schema"}},additionalProperties:!1},headerParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["header"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},queryParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["query"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},formDataParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["formData"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array","file"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},pathParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["required"],properties:{required:{type:"boolean",enum:[!0],description:"Determines whether or not this parameter is required or optional."},in:{type:"string",description:"Determines the location of the parameter.",enum:["path"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},nonBodyParameter:{type:"object",required:["name","in","type"],oneOf:[{$ref:"#/definitions/headerParameterSubSchema"},{$ref:"#/definitions/formDataParameterSubSchema"},{$ref:"#/definitions/queryParameterSubSchema"},{$ref:"#/definitions/pathParameterSubSchema"}]},parameter:{oneOf:[{$ref:"#/definitions/bodyParameter"},{$ref:"#/definitions/nonBodyParameter"}]},schema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},maxProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}],default:{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type"},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},discriminator:{type:"string"},readOnly:{type:"boolean",default:!1},xml:{$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},fileSchema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["type"],properties:{format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},type:{type:"string",enum:["file"]},readOnly:{type:"boolean",default:!1},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},primitivesItems:{type:"object",additionalProperties:!1,properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},security:{type:"array",items:{$ref:"#/definitions/securityRequirement"},uniqueItems:!0},securityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"},uniqueItems:!0}},xml:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},tag:{type:"object",additionalProperties:!1,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},securityDefinitions:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/basicAuthenticationSecurity"},{$ref:"#/definitions/apiKeySecurity"},{$ref:"#/definitions/oauth2ImplicitSecurity"},{$ref:"#/definitions/oauth2PasswordSecurity"},{$ref:"#/definitions/oauth2ApplicationSecurity"},{$ref:"#/definitions/oauth2AccessCodeSecurity"}]}},basicAuthenticationSecurity:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["basic"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},apiKeySecurity:{type:"object",additionalProperties:!1,required:["type","name","in"],properties:{type:{type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ImplicitSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["implicit"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2PasswordSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["password"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ApplicationSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["application"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2AccessCodeSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["accessCode"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2Scopes:{type:"object",additionalProperties:{type:"string"}},mediaTypeList:{type:"array",items:{$ref:"#/definitions/mimeType"},uniqueItems:!0},parametersList:{type:"array",description:"The parameters needed to send a valid API call.",additionalItems:!1,items:{oneOf:[{$ref:"#/definitions/parameter"},{$ref:"#/definitions/jsonReference"}]},uniqueItems:!0},schemesList:{type:"array",description:"The transfer protocol of the API.",items:{type:"string",enum:["http","https","ws","wss"]},uniqueItems:!0},collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes"],default:"csv"},collectionFormatWithMulti:{type:"string",enum:["csv","ssv","tsv","pipes","multi"],default:"csv"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},jsonReference:{type:"object",required:["$ref"],additionalProperties:!1,properties:{$ref:{type:"string"}}}}}});var pg=m((mM,kw)=>{kw.exports={id:"https://spec.openapis.org/oas/3.0/schema/2019-04-02",$schema:"http://json-schema.org/draft-04/schema#",description:"Validation schema for OpenAPI Specification 3.0.X.",type:"object",required:["openapi","info","paths"],properties:{openapi:{type:"string",pattern:"^3\\.0\\.\\d(-.+)?$"},info:{$ref:"#/definitions/Info"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},tags:{type:"array",items:{$ref:"#/definitions/Tag"},uniqueItems:!0},paths:{$ref:"#/definitions/Paths"},components:{$ref:"#/definitions/Components"}},patternProperties:{"^x-":{}},additionalProperties:!1,definitions:{Reference:{type:"object",required:["$ref"],patternProperties:{"^\\$ref$":{type:"string",format:"uri-reference"}}},Info:{type:"object",required:["title","version"],properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri-reference"},contact:{$ref:"#/definitions/Contact"},license:{$ref:"#/definitions/License"},version:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},Contact:{type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"},email:{type:"string",format:"email"}},patternProperties:{"^x-":{}},additionalProperties:!1},License:{type:"object",required:["name"],properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},Server:{type:"object",required:["url"],properties:{url:{type:"string"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/definitions/ServerVariable"}}},patternProperties:{"^x-":{}},additionalProperties:!1},ServerVariable:{type:"object",required:["default"],properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},Components:{type:"object",properties:{schemas:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}}},responses:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Response"}]}}},parameters:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Parameter"}]}}},examples:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Example"}]}}},requestBodies:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/RequestBody"}]}}},headers:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Header"}]}}},securitySchemes:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/SecurityScheme"}]}}},links:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Link"}]}}},callbacks:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Callback"}]}}}},patternProperties:{"^x-":{}},additionalProperties:!1},Schema:{type:"object",properties:{title:{type:"string"},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0,default:0},pattern:{type:"string",format:"regex"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0,default:0},uniqueItems:{type:"boolean",default:!1},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0,default:0},required:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},enum:{type:"array",items:{},minItems:1,uniqueItems:!1},type:{type:"string",enum:["array","boolean","integer","number","object","string"]},not:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},allOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},oneOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},anyOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},properties:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"},{type:"boolean"}],default:!0},description:{type:"string"},format:{type:"string"},default:{},nullable:{type:"boolean",default:!1},discriminator:{$ref:"#/definitions/Discriminator"},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},example:{},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},deprecated:{type:"boolean",default:!1},xml:{$ref:"#/definitions/XML"}},patternProperties:{"^x-":{}},additionalProperties:!1},Discriminator:{type:"object",required:["propertyName"],properties:{propertyName:{type:"string"},mapping:{type:"object",additionalProperties:{type:"string"}}}},XML:{type:"object",properties:{name:{type:"string"},namespace:{type:"string",format:"uri"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1},Response:{type:"object",required:["description"],properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Header"},{$ref:"#/definitions/Reference"}]}},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}},links:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Link"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1},MediaType:{type:"object",properties:{schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}},encoding:{type:"object",additionalProperties:{$ref:"#/definitions/Encoding"}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"}]},Example:{type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:{},externalValue:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},Header:{type:"object",properties:{description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string",enum:["simple"],default:"simple"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"}]},Paths:{type:"object",patternProperties:{"^\\/":{$ref:"#/definitions/PathItem"},"^x-":{}},additionalProperties:!1},PathItem:{type:"object",properties:{$ref:{type:"string"},summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},parameters:{type:"array",items:{oneOf:[{$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},uniqueItems:!0}},patternProperties:{"^(get|put|post|delete|options|head|patch|trace)$":{$ref:"#/definitions/Operation"},"^x-":{}},additionalProperties:!1},Operation:{type:"object",required:["responses"],properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},operationId:{type:"string"},parameters:{type:"array",items:{oneOf:[{$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},uniqueItems:!0},requestBody:{oneOf:[{$ref:"#/definitions/RequestBody"},{$ref:"#/definitions/Reference"}]},responses:{$ref:"#/definitions/Responses"},callbacks:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Callback"},{$ref:"#/definitions/Reference"}]}},deprecated:{type:"boolean",default:!1},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},servers:{type:"array",items:{$ref:"#/definitions/Server"}}},patternProperties:{"^x-":{}},additionalProperties:!1},Responses:{type:"object",properties:{default:{oneOf:[{$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]}},patternProperties:{"^[1-5](?:\\d{2}|XX)$":{oneOf:[{$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]},"^x-":{}},minProperties:1,additionalProperties:!1},SecurityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},Tag:{type:"object",required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"}},patternProperties:{"^x-":{}},additionalProperties:!1},ExternalDocumentation:{type:"object",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},ExampleXORExamples:{description:"Example and examples are mutually exclusive",not:{required:["example","examples"]}},SchemaXORContent:{description:"Schema and content are mutually exclusive, at least one is required",not:{required:["schema","content"]},oneOf:[{required:["schema"]},{required:["content"],description:"Some properties are not allowed if content is present",allOf:[{not:{required:["style"]}},{not:{required:["explode"]}},{not:{required:["allowReserved"]}},{not:{required:["example"]}},{not:{required:["examples"]}}]}]},Parameter:{type:"object",properties:{name:{type:"string"},in:{type:"string"},description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1,required:["name","in"],allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"},{$ref:"#/definitions/ParameterLocation"}]},ParameterLocation:{description:"Parameter location",oneOf:[{description:"Parameter in path",required:["required"],properties:{in:{enum:["path"]},style:{enum:["matrix","label","simple"],default:"simple"},required:{enum:[!0]}}},{description:"Parameter in query",properties:{in:{enum:["query"]},style:{enum:["form","spaceDelimited","pipeDelimited","deepObject"],default:"form"}}},{description:"Parameter in header",properties:{in:{enum:["header"]},style:{enum:["simple"],default:"simple"}}},{description:"Parameter in cookie",properties:{in:{enum:["cookie"]},style:{enum:["form"],default:"form"}}}]},RequestBody:{type:"object",required:["content"],properties:{description:{type:"string"},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}},required:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1},SecurityScheme:{oneOf:[{$ref:"#/definitions/APIKeySecurityScheme"},{$ref:"#/definitions/HTTPSecurityScheme"},{$ref:"#/definitions/OAuth2SecurityScheme"},{$ref:"#/definitions/OpenIdConnectSecurityScheme"}]},APIKeySecurityScheme:{type:"object",required:["type","name","in"],properties:{type:{type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query","cookie"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},HTTPSecurityScheme:{type:"object",required:["scheme","type"],properties:{scheme:{type:"string"},bearerFormat:{type:"string"},description:{type:"string"},type:{type:"string",enum:["http"]}},patternProperties:{"^x-":{}},additionalProperties:!1,oneOf:[{description:"Bearer",properties:{scheme:{enum:["bearer"]}}},{description:"Non Bearer",not:{required:["bearerFormat"]},properties:{scheme:{not:{enum:["bearer"]}}}}]},OAuth2SecurityScheme:{type:"object",required:["type","flows"],properties:{type:{type:"string",enum:["oauth2"]},flows:{$ref:"#/definitions/OAuthFlows"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},OpenIdConnectSecurityScheme:{type:"object",required:["type","openIdConnectUrl"],properties:{type:{type:"string",enum:["openIdConnect"]},openIdConnectUrl:{type:"string",format:"uri-reference"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},OAuthFlows:{type:"object",properties:{implicit:{$ref:"#/definitions/ImplicitOAuthFlow"},password:{$ref:"#/definitions/PasswordOAuthFlow"},clientCredentials:{$ref:"#/definitions/ClientCredentialsFlow"},authorizationCode:{$ref:"#/definitions/AuthorizationCodeOAuthFlow"}},patternProperties:{"^x-":{}},additionalProperties:!1},ImplicitOAuthFlow:{type:"object",required:["authorizationUrl","scopes"],properties:{authorizationUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},PasswordOAuthFlow:{type:"object",required:["tokenUrl"],properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},ClientCredentialsFlow:{type:"object",required:["tokenUrl"],properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},AuthorizationCodeOAuthFlow:{type:"object",required:["authorizationUrl","tokenUrl"],properties:{authorizationUrl:{type:"string",format:"uri-reference"},tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},Link:{type:"object",properties:{operationId:{type:"string"},operationRef:{type:"string",format:"uri-reference"},parameters:{type:"object",additionalProperties:{}},requestBody:{},description:{type:"string"},server:{$ref:"#/definitions/Server"}},patternProperties:{"^x-":{}},additionalProperties:!1,not:{description:"Operation Id and Operation Ref are mutually exclusive",required:["operationId","operationRef"]}},Callback:{type:"object",additionalProperties:{$ref:"#/definitions/PathItem"},patternProperties:{"^x-":{}}},Encoding:{type:"object",properties:{contentType:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/definitions/Header"}},style:{type:"string",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1}},additionalProperties:!1}}}});var dg=m((gM,Rw)=>{Rw.exports={$id:"https://spec.openapis.org/oas/3.1/schema/2021-04-15",$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{openapi:{type:"string",pattern:"^3\\.1\\.\\d+(-.+)?$"},info:{$ref:"#/$defs/info"},jsonSchemaDialect:{$ref:"#/$defs/uri",default:"https://spec.openapis.org/oas/3.1/dialect/base"},servers:{type:"array",items:{$ref:"#/$defs/server"}},paths:{$ref:"#/$defs/paths"},webhooks:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},components:{$ref:"#/$defs/components"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},tags:{type:"array",items:{$ref:"#/$defs/tag"}},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["openapi","info"],anyOf:[{required:["paths"]},{required:["components"]},{required:["webhooks"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{info:{type:"object",properties:{title:{type:"string"},summary:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:{$ref:"#/$defs/contact"},license:{$ref:"#/$defs/license"},version:{type:"string"}},required:["title","version"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},contact:{type:"object",properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},license:{type:"object",properties:{name:{type:"string"},identifier:{type:"string"},url:{$ref:"#/$defs/uri"}},required:["name"],oneOf:[{required:["identifier"]},{required:["url"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},server:{type:"object",properties:{url:{$ref:"#/$defs/uri"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/$defs/server-variable"}}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"server-variable":{type:"object",properties:{enum:{type:"array",items:{type:"string"},minItems:1},default:{type:"string"},descriptions:{type:"string"}},required:["default"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},components:{type:"object",properties:{schemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"}},responses:{type:"object",additionalProperties:{$ref:"#/$defs/response-or-reference"}},parameters:{type:"object",additionalProperties:{$ref:"#/$defs/parameter-or-reference"}},examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}},requestBodies:{type:"object",additionalProperties:{$ref:"#/$defs/request-body-or-reference"}},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},securitySchemes:{type:"object",additionalProperties:{$ref:"#/$defs/security-scheme-or-reference"}},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},pathItems:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}}},patternProperties:{"^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$":{$comment:"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected",propertyNames:{pattern:"^[a-zA-Z0-9._-]+$"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},paths:{type:"object",patternProperties:{"^/":{$ref:"#/$defs/path-item"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item":{type:"object",properties:{summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/$defs/server"}},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}}},patternProperties:{"^(get|put|post|delete|options|head|patch|trace)$":{$ref:"#/$defs/operation"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/path-item"}},operation:{type:"object",properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"},operationId:{type:"string"},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}},requestBody:{$ref:"#/$defs/request-body-or-reference"},responses:{$ref:"#/$defs/responses"},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},deprecated:{default:!1,type:"boolean"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},servers:{type:"array",items:{$ref:"#/$defs/server"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"external-documentation":{type:"object",properties:{description:{type:"string"},url:{$ref:"#/$defs/uri"}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},parameter:{type:"object",properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},allowEmptyValue:{default:!1,type:"boolean"},schema:{$dynamicRef:"#meta"},content:{$ref:"#/$defs/content"}},required:["in"],oneOf:[{required:["schema"]},{required:["content"]}],dependentSchemas:{schema:{properties:{style:{type:"string"},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/examples"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-form"}],$defs:{"styles-for-path":{if:{properties:{in:{const:"path"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["matrix","label","simple"]},required:{const:!0}},required:["required"]}},"styles-for-header":{if:{properties:{in:{const:"header"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["simple"]}}}},"styles-for-query":{if:{properties:{in:{const:"query"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]}}}},"styles-for-cookie":{if:{properties:{in:{const:"cookie"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form"]}}}},"styles-for-form":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"parameter-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/parameter"}},"request-body":{type:"object",properties:{description:{type:"string"},content:{$ref:"#/$defs/content"},required:{default:!1,type:"boolean"}},required:["content"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"request-body-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/request-body"}},content:{type:"object",additionalProperties:{$ref:"#/$defs/media-type"},propertyNames:{format:"media-range"}},"media-type":{type:"object",properties:{schema:{$dynamicRef:"#meta"},encoding:{type:"object",additionalProperties:{$ref:"#/$defs/encoding"}}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/examples"}],unevaluatedProperties:!1},encoding:{type:"object",properties:{contentType:{type:"string",format:"media-range"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/encoding/$defs/explode-default"}],unevaluatedProperties:!1,$defs:{"explode-default":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}},responses:{type:"object",properties:{default:{$ref:"#/$defs/response-or-reference"}},patternProperties:{"^[1-5][0-9X]{2}$":{$ref:"#/$defs/response-or-reference"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},response:{type:"object",properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},content:{$ref:"#/$defs/content"},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}}},required:["description"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"response-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/response"}},callbacks:{type:"object",$ref:"#/$defs/specification-extensions",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},"callbacks-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/callbacks"}},example:{type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:!0,externalValue:{$ref:"#/$defs/uri"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"example-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/example"}},link:{type:"object",properties:{operationRef:{$ref:"#/$defs/uri"},operationId:!0,parameters:{$ref:"#/$defs/map-of-strings"},requestBody:!0,description:{type:"string"},body:{$ref:"#/$defs/server"}},oneOf:[{required:["operationRef"]},{required:["operationId"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"link-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/link"}},header:{type:"object",properties:{description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},allowEmptyValue:{default:!1,type:"boolean"}},dependentSchemas:{schema:{properties:{style:{default:"simple",enum:["simple"]},explode:{default:!1,type:"boolean"},allowReserved:{default:!1,type:"boolean"},schema:{$dynamicRef:"#meta"}},$ref:"#/$defs/examples"},content:{properties:{content:{$ref:"#/$defs/content"}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"header-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/header"}},tag:{type:"object",properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["name"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},reference:{type:"object",properties:{$ref:{$ref:"#/$defs/uri"},summary:{type:"string"},description:{type:"string"}},unevaluatedProperties:!1},schema:{$dynamicAnchor:"meta",type:["object","boolean"]},"security-scheme":{type:"object",properties:{type:{enum:["apiKey","http","mutualTLS","oauth2","openIdConnect"]},description:{type:"string"}},required:["type"],allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/security-scheme/$defs/type-apikey"},{$ref:"#/$defs/security-scheme/$defs/type-http"},{$ref:"#/$defs/security-scheme/$defs/type-http-bearer"},{$ref:"#/$defs/security-scheme/$defs/type-oauth2"},{$ref:"#/$defs/security-scheme/$defs/type-oidc"}],unevaluatedProperties:!1,$defs:{"type-apikey":{if:{properties:{type:{const:"apiKey"}},required:["type"]},then:{properties:{name:{type:"string"},in:{enum:["query","header","cookie"]}},required:["name","in"]}},"type-http":{if:{properties:{type:{const:"http"}},required:["type"]},then:{properties:{scheme:{type:"string"}},required:["scheme"]}},"type-http-bearer":{if:{properties:{type:{const:"http"},scheme:{const:"bearer"}},required:["type","scheme"]},then:{properties:{bearerFormat:{type:"string"}},required:["scheme"]}},"type-oauth2":{if:{properties:{type:{const:"oauth2"}},required:["type"]},then:{properties:{flows:{$ref:"#/$defs/oauth-flows"}},required:["flows"]}},"type-oidc":{if:{properties:{type:{const:"openIdConnect"}},required:["type"]},then:{properties:{openIdConnectUrl:{$ref:"#/$defs/uri"}},required:["openIdConnectUrl"]}}}},"security-scheme-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/security-scheme"}},"oauth-flows":{type:"object",properties:{implicit:{$ref:"#/$defs/oauth-flows/$defs/implicit"},password:{$ref:"#/$defs/oauth-flows/$defs/password"},clientCredentials:{$ref:"#/$defs/oauth-flows/$defs/client-credentials"},authorizationCode:{$ref:"#/$defs/oauth-flows/$defs/authorization-code"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{implicit:{type:"object",properties:{authorizationUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},password:{type:"object",properties:{tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"client-credentials":{type:"object",properties:{tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"authorization-code":{type:"object",properties:{authorizationUrl:{type:"string"},tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}}},"security-requirement":{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},"specification-extensions":{patternProperties:{"^x-":!0}},examples:{properties:{example:!0,examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}}}},uri:{type:"string",format:"uri"},"map-of-strings":{type:"object",additionalProperties:{type:"string"}}}}});var hg=m((se,Sn)=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.openapi=se.openapiV31=se.openapiV3=se.openapiV2=se.openapiV1=void 0;se.openapiV1=lg();se.openapiV2=fg();se.openapiV3=pg();se.openapiV31=dg();se.openapi={v1:se.openapiV1,v2:se.openapiV2,v3:se.openapiV3,v31:se.openapiV31};se.default=se.openapi;typeof Sn=="object"&&typeof Sn.exports=="object"&&(Sn.exports=Object.assign(Sn.exports.default,Sn.exports))});var Ll=m((yM,mg)=>{"use strict";var Tw=$o(),{ono:Cw}=Qe(),Nw=Am(),qw=cg(),{openapi:Ml}=hg();mg.exports=jw;function jw(e){let t,r;if(e.swagger)r=Ml.v2,t=Dl();else if(e.openapi.startsWith("3.1")){r=Ml.v31;let i=r.$defs.schema;delete i.$dynamicAnchor,r.$defs.components.properties.schemas.additionalProperties=i,r.$defs.header.dependentSchemas.schema.properties.schema=i,r.$defs["media-type"].properties.schema=i,r.$defs.parameter.properties.schema=i,t=Dl(!1)}else r=Ml.v3,t=Dl();if(!t.validate(r,e)){let i=t.errors,o=`Swagger schema validation failed.
13
+ `+Mw(i);throw Cw.syntax(i,{details:i},o)}}s(jw,"validateSchema");function Dl(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new Nw(t):new qw(t)}s(Dl,"initializeAjv");function Mw(e,t){t=t||" ";let r="";for(let n of e)r+=Tw.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
14
+ `);return r}s(Mw,"formatAjvError")});var yg=m((_M,gg)=>{"use strict";gg.exports=["get","put","post","delete","options","head","patch"]});var Bl=m((bM,Sg)=>{"use strict";var Dw=$o(),{ono:he}=Qe(),Lw=yg(),Fl=["array","boolean","integer","number","string"],_g=["array","boolean","integer","number","string","object","null",void 0];Sg.exports=Fw;function Fw(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let i of t){let o=e.paths[i],a="/paths"+i;o&&i.indexOf("/")===0&&Vw(e,o,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let o=e.definitions[i],a="/definitions/"+i;bg(o,a)}}s(Fw,"validateSpec");function Vw(e,t,r,n){for(let i of Lw){let o=t[i],a=r+"/"+i;if(o){let u=o.operationId;if(u)if(n.indexOf(u)===-1)n.push(u);else throw he.syntax(`Validation failed. Duplicate operation id '${u}'`);Bw(e,t,r,o,a);let c=Object.keys(o.responses||{});for(let l of c){let p=o.responses[l],f=a+"/responses/"+l;Gw(l,p||{},f)}}}}s(Vw,"validatePath");function Bw(e,t,r,n,i){let o=t.parameters||[],a=n.parameters||[];try{vg(o)}catch(c){throw he.syntax(c,`Validation failed. ${r} has duplicate parameters`)}try{vg(a)}catch(c){throw he.syntax(c,`Validation failed. ${i} has duplicate parameters`)}let u=o.reduce((c,l)=>(c.some(f=>f.in===l.in&&f.name===l.name)||c.push(l),c),a.slice());Hw(u,i),Uw(u,r,i),zw(u,e,n,i)}s(Bw,"validateParameters");function Hw(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw he.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw he.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}s(Hw,"validateBodyParameters");function Uw(e,t,r){let n=t.match(Dw.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let o=i+1;o<n.length;o++)if(n[i]===n[o])throw he.syntax(`Validation failed. ${r} has multiple path placeholders named ${n[i]}`);e=e.filter(i=>i.in==="path");for(let i of e){if(i.required!==!0)throw he.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${r}`);let o=n.indexOf("{"+i.name+"}");if(o===-1)throw he.syntax(`Validation failed. ${r} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(o,1)}if(n.length>0)throw he.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}s(Uw,"validatePathParameters");function zw(e,t,r,n){for(let i of e){let o=n+"/parameters/"+i.name,a,u;switch(i.in){case"body":a=i.schema,u=_g;break;case"formData":a=i,u=Fl.concat("file");break;default:a=i,u=Fl}if(Vl(a,o,u),bg(a,o),a.type==="file"){let c=/multipart\/(.*\+)?form-data/,l=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some(d=>c.test(d)||l.test(d)))throw he.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}s(zw,"validateParameterTypes");function vg(e){for(let t=0;t<e.length-1;t++){let r=e[t];for(let n=t+1;n<e.length;n++){let i=e[n];if(r.name===i.name&&r.in===i.in)throw he.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}s(vg,"checkForDuplicates");function Gw(e,t,r){if(e!=="default"&&(e<100||e>599))throw he.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let i of n){let o=t.headers[i],a=r+"/headers/"+i;Vl(o,a,Fl)}if(t.schema){let i=_g.concat("file");if(i.indexOf(t.schema.type)===-1)throw he.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);Vl(t.schema,r+"/schema",i)}}s(Gw,"validateResponse");function Vl(e,t,r){if(r.indexOf(e.type)===-1)throw he.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw he.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}s(Vl,"validateSchema");function bg(e,t){function r(n,i){if(n.properties)for(let o in n.properties)n.properties.hasOwnProperty(o)&&(i[o]=n.properties[o]);if(n.allOf)for(let o of n.allOf)r(o,i)}if(s(r,"collectProperties"),e.required&&Array.isArray(e.required)){let n={};r(e,n);for(let i of e.required)if(!n[i])throw he.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}s(bg,"validateRequiredPropertiesExist")});var nt=m(rt=>{"use strict";var{Ono:Pg}=Qe(),{stripHash:$g,toFileSystemPath:Zw}=Ce(),Pn,Jt=rt.JSONParserError=(Pn=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,Pg.extend(this)}},s(Pn,"JSONParserError"),Pn);Xt(Jt);var kr,Og=rt.JSONParserErrorGroup=(kr=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${Zw(t.$refs._root$Ref.path)}'`,Pg.extend(this)}static getParserErrors(t){let r=[];for(let n of Object.values(t.$refs._$refs))n.errors&&r.push(...n.errors);return r}get errors(){return kr.getParserErrors(this.files)}},s(kr,"JSONParserErrorGroup"),kr);Xt(Og);var $n,Kw=rt.ParserError=($n=class extends Jt{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},s($n,"ParserError"),$n);Xt(Kw);var On,Ww=rt.UnmatchedParserError=(On=class extends Jt{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},s(On,"UnmatchedParserError"),On);Xt(Ww);var En,Yw=rt.ResolverError=(En=class extends Jt{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},s(En,"ResolverError"),En);Xt(Yw);var xn,Qw=rt.UnmatchedResolverError=(xn=class extends Jt{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},s(xn,"UnmatchedResolverError"),xn);Xt(Qw);var wn,Jw=rt.MissingPointerError=(wn=class extends Jt{constructor(t,r){super(`Token "${t}" does not exist.`,$g(r)),this.code="EMISSINGPOINTER"}},s(wn,"MissingPointerError"),wn);Xt(Jw);var An,Xw=rt.InvalidPointerError=(An=class extends Jt{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,$g(r)),this.code="EINVALIDPOINTER"}},s(An,"InvalidPointerError"),An);Xt(Xw);function Xt(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}s(Xt,"setErrorName");rt.isHandledError=function(e){return e instanceof Jt||e instanceof Og};rt.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var xg=m((OM,Eg)=>{"use strict";var{ParserError:eA}=nt();Eg.exports={order:100,allowEmpty:!0,canParse:".json",async parse(e){let t=e.data;if(Buffer.isBuffer(t)&&(t=t.toString()),typeof t=="string"){if(t.trim().length===0)return;try{return JSON.parse(t)}catch(r){throw new eA(r.message,e.url)}}else return t}}});var Tr=m((EM,Rr)=>{"use strict";function wg(e){return typeof e>"u"||e===null}s(wg,"isNothing");function tA(e){return typeof e=="object"&&e!==null}s(tA,"isObject");function rA(e){return Array.isArray(e)?e:wg(e)?[]:[e]}s(rA,"toArray");function nA(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=t[i];return e}s(nA,"extend");function iA(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}s(iA,"repeat");function oA(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}s(oA,"isNegativeZero");Rr.exports.isNothing=wg;Rr.exports.isObject=tA;Rr.exports.toArray=rA;Rr.exports.repeat=iA;Rr.exports.isNegativeZero=oA;Rr.exports.extend=nA});var In=m((wM,Ag)=>{"use strict";function Di(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}s(Di,"YAMLException");Di.prototype=Object.create(Error.prototype);Di.prototype.constructor=Di;Di.prototype.toString=s(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");Ag.exports=Di});var Rg=m((IM,kg)=>{"use strict";var Ig=Tr();function Hl(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}s(Hl,"Mark");Hl.prototype.getSnippet=s(function(t,r){var n,i,o,a,u;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
15
15
  \x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(o="",a=this.position;a<this.buffer.length&&`\0\r
16
- \x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){o=" ... ",a-=5;break}return c=this.buffer.slice(i,a),Ed.repeat(" ",t)+n+c+o+`
17
- `+Ed.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");Bc.prototype.toString=s(function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
18
- `+r)),n},"toString");jd.exports=Bc});var J=m((d1,Rd)=>{"use strict";var Td=Ur(),QO=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],ex=["scalar","sequence","mapping"];function tx(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}s(tx,"compileStyleAliases");function rx(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(QO.indexOf(r)===-1)throw new Td('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=tx(t.styleAliases||null),ex.indexOf(this.kind)===-1)throw new Td('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}s(rx,"Type");Rd.exports=rx});var rr=m((h1,qd)=>{"use strict";var Id=tr(),Xi=Ur(),nx=J();function zc(e,t,r){var n=[];return e.include.forEach(function(i){r=zc(i,t,r)}),e[t].forEach(function(i){r.forEach(function(o,a){o.tag===i.tag&&o.kind===i.kind&&n.push(a)}),r.push(i)}),r.filter(function(i,o){return n.indexOf(o)===-1})}s(zc,"compileList");function ix(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(s(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}s(ix,"compileMap");function Zr(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 Xi("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=zc(this,"implicit",[]),this.compiledExplicit=zc(this,"explicit",[]),this.compiledTypeMap=ix(this.compiledImplicit,this.compiledExplicit)}s(Zr,"Schema");Zr.DEFAULT=null;Zr.create=s(function(){var t,r;switch(arguments.length){case 1:t=Zr.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new Xi("Wrong number of arguments for Schema.create function")}if(t=Id.toArray(t),r=Id.toArray(r),!t.every(function(n){return n instanceof Zr}))throw new Xi("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof nx}))throw new Xi("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Zr({include:t,explicit:r})},"createSchema");qd.exports=Zr});var Cd=m((g1,Nd)=>{"use strict";var ox=J();Nd.exports=new ox("tag:yaml.org,2002:str",{kind:"scalar",construct:s(function(e){return e!==null?e:""},"construct")})});var Md=m((b1,kd)=>{"use strict";var sx=J();kd.exports=new sx("tag:yaml.org,2002:seq",{kind:"sequence",construct:s(function(e){return e!==null?e:[]},"construct")})});var Fd=m((S1,Dd)=>{"use strict";var ax=J();Dd.exports=new ax("tag:yaml.org,2002:map",{kind:"mapping",construct:s(function(e){return e!==null?e:{}},"construct")})});var Qi=m((_1,Vd)=>{"use strict";var cx=rr();Vd.exports=new cx({explicit:[Cd(),Md(),Fd()]})});var Bd=m((O1,Ld)=>{"use strict";var ux=J();function fx(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}s(fx,"resolveYamlNull");function lx(){return null}s(lx,"constructYamlNull");function px(e){return e===null}s(px,"isNull");Ld.exports=new ux("tag:yaml.org,2002:null",{kind:"scalar",resolve:fx,construct:lx,predicate:px,represent:{canonical:s(function(){return"~"},"canonical"),lowercase:s(function(){return"null"},"lowercase"),uppercase:s(function(){return"NULL"},"uppercase"),camelcase:s(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var Ud=m((w1,zd)=>{"use strict";var dx=J();function mx(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}s(mx,"resolveYamlBoolean");function hx(e){return e==="true"||e==="True"||e==="TRUE"}s(hx,"constructYamlBoolean");function yx(e){return Object.prototype.toString.call(e)==="[object Boolean]"}s(yx,"isBoolean");zd.exports=new dx("tag:yaml.org,2002:bool",{kind:"scalar",resolve:mx,construct:hx,predicate:yx,represent:{lowercase:s(function(e){return e?"true":"false"},"lowercase"),uppercase:s(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:s(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var Hd=m((j1,Zd)=>{"use strict";var gx=tr(),$x=J();function bx(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}s(bx,"isHexCode");function vx(e){return 48<=e&&e<=55}s(vx,"isOctCode");function Sx(e){return 48<=e&&e<=57}s(Sx,"isDecCode");function Px(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(!bx(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!vx(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(!Sx(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}s(Px,"resolveYamlInteger");function _x(e){var t=e,r=1,n,i,o=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(a){o.unshift(parseInt(a,10))}),t=0,i=1,o.forEach(function(a){t+=a*i,i*=60}),r*t):r*parseInt(t,10)}s(_x,"constructYamlInteger");function Ox(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!gx.isNegativeZero(e)}s(Ox,"isInteger");Zd.exports=new $x("tag:yaml.org,2002:int",{kind:"scalar",resolve:Px,construct:_x,predicate:Ox,represent:{binary:s(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:s(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:s(function(e){return e.toString(10)},"decimal"),hexadecimal:s(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var Wd=m((T1,Kd)=>{"use strict";var Gd=tr(),xx=J(),wx=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 Ex(e){return!(e===null||!wx.test(e)||e[e.length-1]==="_")}s(Ex,"resolveYamlFloat");function jx(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(o){i.unshift(parseFloat(o,10))}),t=0,n=1,i.forEach(function(o){t+=o*n,n*=60}),r*t):r*parseFloat(t,10)}s(jx,"constructYamlFloat");var Ax=/^[-+]?[0-9]+e/;function Tx(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(Gd.isNegativeZero(e))return"-0.0";return r=e.toString(10),Ax.test(r)?r.replace("e",".e"):r}s(Tx,"representYamlFloat");function Rx(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Gd.isNegativeZero(e))}s(Rx,"isFloat");Kd.exports=new xx("tag:yaml.org,2002:float",{kind:"scalar",resolve:Ex,construct:jx,predicate:Rx,represent:Tx,defaultStyle:"lowercase"})});var Uc=m((I1,Yd)=>{"use strict";var Ix=rr();Yd.exports=new Ix({include:[Qi()],implicit:[Bd(),Ud(),Hd(),Wd()]})});var Zc=m((q1,Jd)=>{"use strict";var qx=rr();Jd.exports=new qx({include:[Uc()]})});var tm=m((N1,em)=>{"use strict";var Nx=J(),Xd=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Qd=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 Cx(e){return e===null?!1:Xd.exec(e)!==null||Qd.exec(e)!==null}s(Cx,"resolveYamlTimestamp");function kx(e){var t,r,n,i,o,a,c,u=0,f=null,l,p,h;if(t=Xd.exec(e),t===null&&(t=Qd.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(o=+t[4],a=+t[5],c=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(l=+t[10],p=+(t[11]||0),f=(l*60+p)*6e4,t[9]==="-"&&(f=-f)),h=new Date(Date.UTC(r,n,i,o,a,c,u)),f&&h.setTime(h.getTime()-f),h}s(kx,"constructYamlTimestamp");function Mx(e){return e.toISOString()}s(Mx,"representYamlTimestamp");em.exports=new Nx("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Cx,construct:kx,instanceOf:Date,represent:Mx})});var nm=m((k1,rm)=>{"use strict";var Dx=J();function Fx(e){return e==="<<"||e===null}s(Fx,"resolveYamlMerge");rm.exports=new Dx("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Fx})});var sm=m((D1,om)=>{"use strict";var nr;try{im=require,nr=im("buffer").Buffer}catch{}var im,Vx=J(),Hc=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
19
- \r`;function Lx(e){if(e===null)return!1;var t,r,n=0,i=e.length,o=Hc;for(r=0;r<i;r++)if(t=o.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}s(Lx,"resolveYamlBinary");function Bx(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=Hc,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|o.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),nr?nr.from?nr.from(c):new nr(c):c}s(Bx,"constructYamlBinary");function zx(e){var t="",r=0,n,i,o=e.length,a=Hc;for(n=0;n<o;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=o%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}s(zx,"representYamlBinary");function Ux(e){return nr&&nr.isBuffer(e)}s(Ux,"isBinary");om.exports=new Vx("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Lx,construct:Bx,predicate:Ux,represent:zx})});var cm=m((V1,am)=>{"use strict";var Zx=J(),Hx=Object.prototype.hasOwnProperty,Gx=Object.prototype.toString;function Kx(e){if(e===null)return!0;var t=[],r,n,i,o,a,c=e;for(r=0,n=c.length;r<n;r+=1){if(i=c[r],a=!1,Gx.call(i)!=="[object Object]")return!1;for(o in i)if(Hx.call(i,o))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}s(Kx,"resolveYamlOmap");function Wx(e){return e!==null?e:[]}s(Wx,"constructYamlOmap");am.exports=new Zx("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Kx,construct:Wx})});var fm=m((B1,um)=>{"use strict";var Yx=J(),Jx=Object.prototype.toString;function Xx(e){if(e===null)return!0;var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],Jx.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[t]=[i[0],n[i[0]]]}return!0}s(Xx,"resolveYamlPairs");function Qx(e){if(e===null)return[];var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}s(Qx,"constructYamlPairs");um.exports=new Yx("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Xx,construct:Qx})});var pm=m((U1,lm)=>{"use strict";var ew=J(),tw=Object.prototype.hasOwnProperty;function rw(e){if(e===null)return!0;var t,r=e;for(t in r)if(tw.call(r,t)&&r[t]!==null)return!1;return!0}s(rw,"resolveYamlSet");function nw(e){return e!==null?e:{}}s(nw,"constructYamlSet");lm.exports=new ew("tag:yaml.org,2002:set",{kind:"mapping",resolve:rw,construct:nw})});var Hr=m((H1,dm)=>{"use strict";var iw=rr();dm.exports=new iw({include:[Zc()],implicit:[tm(),nm()],explicit:[sm(),cm(),fm(),pm()]})});var hm=m((G1,mm)=>{"use strict";var ow=J();function sw(){return!0}s(sw,"resolveJavascriptUndefined");function aw(){}s(aw,"constructJavascriptUndefined");function cw(){return""}s(cw,"representJavascriptUndefined");function uw(e){return typeof e>"u"}s(uw,"isUndefined");mm.exports=new ow("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:sw,construct:aw,predicate:uw,represent:cw})});var gm=m((W1,ym)=>{"use strict";var fw=J();function lw(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}s(lw,"resolveJavascriptRegExp");function pw(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}s(pw,"constructJavascriptRegExp");function dw(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}s(dw,"representJavascriptRegExp");function mw(e){return Object.prototype.toString.call(e)==="[object RegExp]"}s(mw,"isRegExp");ym.exports=new fw("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:lw,construct:pw,predicate:mw,represent:dw})});var vm=m((J1,bm)=>{"use strict";var eo;try{$m=require,eo=$m("esprima")}catch{typeof window<"u"&&(eo=window.esprima)}var $m,hw=J();function yw(e){if(e===null)return!1;try{var t="("+e+")",r=eo.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}s(yw,"resolveJavascriptFunction");function gw(e){var t="("+e+")",r=eo.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(o){n.push(o.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}s(gw,"constructJavascriptFunction");function $w(e){return e.toString()}s($w,"representJavascriptFunction");function bw(e){return Object.prototype.toString.call(e)==="[object Function]"}s(bw,"isFunction");bm.exports=new hw("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:yw,construct:gw,predicate:bw,represent:$w})});var zn=m((Q1,Pm)=>{"use strict";var Sm=rr();Pm.exports=Sm.DEFAULT=new Sm({include:[Hr()],explicit:[hm(),gm(),vm()]})});var Lm=m((eq,Un)=>{"use strict";var ft=tr(),Am=Ur(),vw=Ad(),Tm=Hr(),Sw=zn(),wt=Object.prototype.hasOwnProperty,to=1,Rm=2,Im=3,ro=4,Gc=1,Pw=2,_m=3,_w=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ow=/[\x85\u2028\u2029]/,xw=/[,\[\]\{\}]/,qm=/^(?:!|!!|![a-z\-]+!)$/i,Nm=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Om(e){return Object.prototype.toString.call(e)}s(Om,"_class");function Ye(e){return e===10||e===13}s(Ye,"is_EOL");function or(e){return e===9||e===32}s(or,"is_WHITE_SPACE");function be(e){return e===9||e===32||e===10||e===13}s(be,"is_WS_OR_EOL");function Gr(e){return e===44||e===91||e===93||e===123||e===125}s(Gr,"is_FLOW_INDICATOR");function ww(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}s(ww,"fromHexCode");function Ew(e){return e===120?2:e===117?4:e===85?8:0}s(Ew,"escapedHexLen");function jw(e){return 48<=e&&e<=57?e-48:-1}s(jw,"fromDecimalCode");function xm(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
20
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}s(xm,"simpleEscapeSequence");function Aw(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}s(Aw,"charFromCodepoint");var Cm=new Array(256),km=new Array(256);for(ir=0;ir<256;ir++)Cm[ir]=xm(ir)?1:0,km[ir]=xm(ir);var ir;function Tw(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Sw,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}s(Tw,"State");function Mm(e,t){return new Am(t,new vw(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}s(Mm,"generateError");function O(e,t){throw Mm(e,t)}s(O,"throwError");function no(e,t){e.onWarning&&e.onWarning.call(null,Mm(e,t))}s(no,"throwWarning");var wm={YAML:s(function(t,r,n){var i,o,a;t.version!==null&&O(t,"duplication of %YAML directive"),n.length!==1&&O(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&O(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),a=parseInt(i[2],10),o!==1&&O(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&no(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:s(function(t,r,n){var i,o;n.length!==2&&O(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],qm.test(i)||O(t,"ill-formed tag handle (first argument) of the TAG directive"),wt.call(t.tagMap,i)&&O(t,'there is a previously declared suffix for "'+i+'" tag handle'),Nm.test(o)||O(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o},"handleTagDirective")};function xt(e,t,r,n){var i,o,a,c;if(t<r){if(c=e.input.slice(t,r),n)for(i=0,o=c.length;i<o;i+=1)a=c.charCodeAt(i),a===9||32<=a&&a<=1114111||O(e,"expected valid JSON character");else _w.test(c)&&O(e,"the stream contains non-printable characters");e.result+=c}}s(xt,"captureSegment");function Em(e,t,r,n){var i,o,a,c;for(ft.isObject(r)||O(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,c=i.length;a<c;a+=1)o=i[a],wt.call(t,o)||(t[o]=r[o],n[o]=!0)}s(Em,"mergeMappings");function Kr(e,t,r,n,i,o,a,c){var u,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,f=i.length;u<f;u+=1)Array.isArray(i[u])&&O(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Om(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&Om(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(u=0,f=o.length;u<f;u+=1)Em(e,t,o[u],r);else Em(e,t,o,r);else!e.json&&!wt.call(r,i)&&wt.call(t,i)&&(e.line=a||e.line,e.position=c||e.position,O(e,"duplicated mapping key")),t[i]=o,delete r[i];return t}s(Kr,"storeMappingPair");function Kc(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++):O(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}s(Kc,"readLineBreak");function K(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;or(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(Ye(i))for(Kc(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&&no(e,"deficient indentation"),n}s(K,"skipSeparationSpace");function io(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||be(r)))}s(io,"testDocumentSeparator");function Wc(e,t){t===1?e.result+=" ":t>1&&(e.result+=ft.repeat(`
21
- `,t-1))}s(Wc,"writeFoldedLines");function Rw(e,t,r){var n,i,o,a,c,u,f,l,p=e.kind,h=e.result,d;if(d=e.input.charCodeAt(e.position),be(d)||Gr(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),be(i)||r&&Gr(i)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,c=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),be(i)||r&&Gr(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),be(n))break}else{if(e.position===e.lineStart&&io(e)||r&&Gr(d))break;if(Ye(d))if(u=e.line,f=e.lineStart,l=e.lineIndent,K(e,!1,-1),e.lineIndent>=t){c=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=f,e.lineIndent=l;break}}c&&(xt(e,o,a,!1),Wc(e,e.line-u),o=a=e.position,c=!1),or(d)||(a=e.position+1),d=e.input.charCodeAt(++e.position)}return xt(e,o,a,!1),e.result?!0:(e.kind=p,e.result=h,!1)}s(Rw,"readPlainScalar");function Iw(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(xt(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 Ye(r)?(xt(e,n,i,!0),Wc(e,K(e,!1,t)),n=i=e.position):e.position===e.lineStart&&io(e)?O(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);O(e,"unexpected end of the stream within a single quoted scalar")}s(Iw,"readSingleQuotedScalar");function qw(e,t){var r,n,i,o,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 xt(e,r,e.position,!0),e.position++,!0;if(c===92){if(xt(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),Ye(c))K(e,!1,t);else if(c<256&&Cm[c])e.result+=km[c],e.position++;else if((a=Ew(c))>0){for(i=a,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=ww(c))>=0?o=(o<<4)+a:O(e,"expected hexadecimal character");e.result+=Aw(o),e.position++}else O(e,"unknown escape sequence");r=n=e.position}else Ye(c)?(xt(e,r,n,!0),Wc(e,K(e,!1,t)),r=n=e.position):e.position===e.lineStart&&io(e)?O(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}O(e,"unexpected end of the stream within a double quoted scalar")}s(qw,"readDoubleQuotedScalar");function Nw(e,t){var r=!0,n,i=e.tag,o,a=e.anchor,c,u,f,l,p,h={},d,y,$,g;if(g=e.input.charCodeAt(e.position),g===91)u=93,p=!1,o=[];else if(g===123)u=125,p=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),g=e.input.charCodeAt(++e.position);g!==0;){if(K(e,!0,t),g=e.input.charCodeAt(e.position),g===u)return e.position++,e.tag=i,e.anchor=a,e.kind=p?"mapping":"sequence",e.result=o,!0;r||O(e,"missed comma between flow collection entries"),y=d=$=null,f=l=!1,g===63&&(c=e.input.charCodeAt(e.position+1),be(c)&&(f=l=!0,e.position++,K(e,!0,t))),n=e.line,Wr(e,t,to,!1,!0),y=e.tag,d=e.result,K(e,!0,t),g=e.input.charCodeAt(e.position),(l||e.line===n)&&g===58&&(f=!0,g=e.input.charCodeAt(++e.position),K(e,!0,t),Wr(e,t,to,!1,!0),$=e.result),p?Kr(e,o,h,y,d,$):f?o.push(Kr(e,null,h,y,d,$)):o.push(d),K(e,!0,t),g=e.input.charCodeAt(e.position),g===44?(r=!0,g=e.input.charCodeAt(++e.position)):r=!1}O(e,"unexpected end of the stream within a flow collection")}s(Nw,"readFlowCollection");function Cw(e,t){var r,n,i=Gc,o=!1,a=!1,c=t,u=0,f=!1,l,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)Gc===i?i=p===43?_m:Pw:O(e,"repeat of a chomping mode identifier");else if((l=jw(p))>=0)l===0?O(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?O(e,"repeat of an indentation width identifier"):(c=t+l-1,a=!0);else break;if(or(p)){do p=e.input.charCodeAt(++e.position);while(or(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!Ye(p)&&p!==0)}for(;p!==0;){for(Kc(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),Ye(p)){u++;continue}if(e.lineIndent<c){i===_m?e.result+=ft.repeat(`
22
- `,o?1+u:u):i===Gc&&o&&(e.result+=`
23
- `);break}for(n?or(p)?(f=!0,e.result+=ft.repeat(`
24
- `,o?1+u:u)):f?(f=!1,e.result+=ft.repeat(`
25
- `,u+1)):u===0?o&&(e.result+=" "):e.result+=ft.repeat(`
26
- `,u):e.result+=ft.repeat(`
27
- `,o?1+u:u),o=!0,a=!0,u=0,r=e.position;!Ye(p)&&p!==0;)p=e.input.charCodeAt(++e.position);xt(e,r,e.position,!1)}return!0}s(Cw,"readBlockScalar");function jm(e,t){var r,n=e.tag,i=e.anchor,o=[],a,c=!1,u;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),u=e.input.charCodeAt(e.position);u!==0&&!(u!==45||(a=e.input.charCodeAt(e.position+1),!be(a)));){if(c=!0,e.position++,K(e,!0,-1)&&e.lineIndent<=t){o.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Wr(e,t,Im,!1,!0),o.push(e.result),K(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)O(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=o,!0):!1}s(jm,"readBlockSequence");function kw(e,t,r){var n,i,o,a,c=e.tag,u=e.anchor,f={},l={},p=null,h=null,d=null,y=!1,$=!1,g;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),g=e.input.charCodeAt(e.position);g!==0;){if(n=e.input.charCodeAt(e.position+1),o=e.line,a=e.position,(g===63||g===58)&&be(n))g===63?(y&&(Kr(e,f,l,p,h,null),p=h=d=null),$=!0,y=!0,i=!0):y?(y=!1,i=!0):O(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=n;else if(Wr(e,r,Rm,!1,!0))if(e.line===o){for(g=e.input.charCodeAt(e.position);or(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),be(g)||O(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(Kr(e,f,l,p,h,null),p=h=d=null),$=!0,y=!1,i=!1,p=e.tag,h=e.result;else if($)O(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if($)O(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===o||e.lineIndent>t)&&(Wr(e,t,ro,!0,i)&&(y?h=e.result:d=e.result),y||(Kr(e,f,l,p,h,d,o,a),p=h=d=null),K(e,!0,-1),g=e.input.charCodeAt(e.position)),e.lineIndent>t&&g!==0)O(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&Kr(e,f,l,p,h,null),$&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=f),$}s(kw,"readBlockMapping");function Mw(e){var t,r=!1,n=!1,i,o,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&O(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(o=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):O(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!be(a);)a===33&&(n?O(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),qm.test(i)||O(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),xw.test(o)&&O(e,"tag suffix cannot contain flow indicator characters")}return o&&!Nm.test(o)&&O(e,"tag name cannot contain such characters: "+o),r?e.tag=o:wt.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:O(e,'undeclared tag handle "'+i+'"'),!0}s(Mw,"readTagProperty");function Dw(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&O(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!be(r)&&!Gr(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&O(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}s(Dw,"readAnchorProperty");function Fw(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&&!be(n)&&!Gr(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&O(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),wt.call(e.anchorMap,r)||O(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],K(e,!0,-1),!0}s(Fw,"readAlias");function Wr(e,t,r,n,i){var o,a,c,u=1,f=!1,l=!1,p,h,d,y,$;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=c=ro===r||Im===r,n&&K(e,!0,-1)&&(f=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;Mw(e)||Dw(e);)K(e,!0,-1)?(f=!0,c=o,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):c=!1;if(c&&(c=f||i),(u===1||ro===r)&&(to===r||Rm===r?y=t:y=t+1,$=e.position-e.lineStart,u===1?c&&(jm(e,$)||kw(e,$,y))||Nw(e,y)?l=!0:(a&&Cw(e,y)||Iw(e,y)||qw(e,y)?l=!0:Fw(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&O(e,"alias node should not have any properties")):Rw(e,y,to===r)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(l=c&&jm(e,$))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&O(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,h=e.implicitTypes.length;p<h;p+=1)if(d=e.implicitTypes[p],d.resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else wt.call(e.typeMap[e.kind||"fallback"],e.tag)?(d=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&d.kind!==e.kind&&O(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result)?(e.result=d.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):O(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):O(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||l}s(Wr,"composeNode");function Vw(e){var t=e.position,r,n,i,o=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(K(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(o=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!be(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&O(e,"directive name must not be less than one character in length");a!==0;){for(;or(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Ye(a));break}if(Ye(a))break;for(r=e.position;a!==0&&!be(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Kc(e),wt.call(wm,n)?wm[n](e,n,i):no(e,'unknown document directive "'+n+'"')}if(K(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,K(e,!0,-1)):o&&O(e,"directives end mark is expected"),Wr(e,e.lineIndent-1,ro,!1,!0),K(e,!0,-1),e.checkLineBreaks&&Ow.test(e.input.slice(t,e.position))&&no(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&io(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,K(e,!0,-1));return}if(e.position<e.length-1)O(e,"end of the stream or a document separator is expected");else return}s(Vw,"readDocument");function Dm(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 Tw(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,O(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;)Vw(r);return r.documents}s(Dm,"loadDocuments");function Fm(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=Dm(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}s(Fm,"loadAll");function Vm(e,t){var r=Dm(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Am("expected a single document in the stream, but found more")}}s(Vm,"load");function Lw(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),Fm(e,t,ft.extend({schema:Tm},r))}s(Lw,"safeLoadAll");function Bw(e,t){return Vm(e,ft.extend({schema:Tm},t))}s(Bw,"safeLoad");Un.exports.loadAll=Fm;Un.exports.load=Vm;Un.exports.safeLoadAll=Lw;Un.exports.safeLoad=Bw});var fh=m((rq,Qc)=>{"use strict";var Hn=tr(),Gn=Ur(),zw=zn(),Uw=Hr(),Wm=Object.prototype.toString,Ym=Object.prototype.hasOwnProperty,Zw=9,Zn=10,Hw=13,Gw=32,Kw=33,Ww=34,Jm=35,Yw=37,Jw=38,Xw=39,Qw=42,Xm=44,eE=45,Qm=58,tE=61,rE=62,nE=63,iE=64,eh=91,th=93,oE=96,rh=123,sE=124,nh=125,ae={};ae[0]="\\0";ae[7]="\\a";ae[8]="\\b";ae[9]="\\t";ae[10]="\\n";ae[11]="\\v";ae[12]="\\f";ae[13]="\\r";ae[27]="\\e";ae[34]='\\"';ae[92]="\\\\";ae[133]="\\N";ae[160]="\\_";ae[8232]="\\L";ae[8233]="\\P";var aE=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function cE(e,t){var r,n,i,o,a,c,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,o=n.length;i<o;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&&Ym.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}s(cE,"compileStyleMap");function Bm(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 Gn("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Hn.repeat("0",n-t.length)+t}s(Bm,"encodeHex");function uE(e){this.schema=e.schema||zw,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Hn.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=cE(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}s(uE,"State");function zm(e,t){for(var r=Hn.repeat(" ",t),n=0,i=-1,o="",a,c=e.length;n<c;)i=e.indexOf(`
29
- `,n),i===-1?(a=e.slice(n),n=c):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
30
- `&&(o+=r),o+=a;return o}s(zm,"indentString");function Yc(e,t){return`
31
- `+Hn.repeat(" ",e.indent*t)}s(Yc,"generateNextLine");function fE(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}s(fE,"testImplicitResolving");function Xc(e){return e===Gw||e===Zw}s(Xc,"isWhitespace");function Yr(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}s(Yr,"isPrintable");function lE(e){return Yr(e)&&!Xc(e)&&e!==65279&&e!==Hw&&e!==Zn}s(lE,"isNsChar");function Um(e,t){return Yr(e)&&e!==65279&&e!==Xm&&e!==eh&&e!==th&&e!==rh&&e!==nh&&e!==Qm&&(e!==Jm||t&&lE(t))}s(Um,"isPlainSafe");function pE(e){return Yr(e)&&e!==65279&&!Xc(e)&&e!==eE&&e!==nE&&e!==Qm&&e!==Xm&&e!==eh&&e!==th&&e!==rh&&e!==nh&&e!==Jm&&e!==Jw&&e!==Qw&&e!==Kw&&e!==sE&&e!==tE&&e!==rE&&e!==Xw&&e!==Ww&&e!==Yw&&e!==iE&&e!==oE}s(pE,"isPlainSafeFirst");function ih(e){var t=/^\n* /;return t.test(e)}s(ih,"needIndentIndicator");var oh=1,sh=2,ah=3,ch=4,oo=5;function dE(e,t,r,n,i){var o,a,c,u=!1,f=!1,l=n!==-1,p=-1,h=pE(e.charCodeAt(0))&&!Xc(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),!Yr(a))return oo;c=o>0?e.charCodeAt(o-1):null,h=h&&Um(a,c)}else{for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),a===Zn)u=!0,l&&(f=f||o-p-1>n&&e[p+1]!==" ",p=o);else if(!Yr(a))return oo;c=o>0?e.charCodeAt(o-1):null,h=h&&Um(a,c)}f=f||l&&o-p-1>n&&e[p+1]!==" "}return!u&&!f?h&&!i(e)?oh:sh:r>9&&ih(e)?oo:f?ch:ah}s(dE,"chooseScalarStyle");function mE(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&aE.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(u){return fE(e,u)}switch(s(c,"testAmbiguity"),dE(t,a,e.indent,o,c)){case oh:return t;case sh:return"'"+t.replace(/'/g,"''")+"'";case ah:return"|"+Zm(t,e.indent)+Hm(zm(t,i));case ch:return">"+Zm(t,e.indent)+Hm(zm(hE(t,o),i));case oo:return'"'+yE(t,o)+'"';default:throw new Gn("impossible error: invalid scalar style")}}()}s(mE,"writeScalar");function Zm(e,t){var r=ih(e)?String(t):"",n=e[e.length-1]===`
16
+ \x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){o=" ... ",a-=5;break}return u=this.buffer.slice(i,a),Ig.repeat(" ",t)+n+u+o+`
17
+ `+Ig.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");Hl.prototype.toString=s(function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
18
+ `+r)),n},"toString");kg.exports=Hl});var te=m((RM,Cg)=>{"use strict";var Tg=In(),sA=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],aA=["scalar","sequence","mapping"];function uA(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}s(uA,"compileStyleAliases");function cA(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(sA.indexOf(r)===-1)throw new Tg('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=uA(t.styleAliases||null),aA.indexOf(this.kind)===-1)throw new Tg('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}s(cA,"Type");Cg.exports=cA});var Cr=m((CM,qg)=>{"use strict";var Ng=Tr(),fs=In(),lA=te();function Ul(e,t,r){var n=[];return e.include.forEach(function(i){r=Ul(i,t,r)}),e[t].forEach(function(i){r.forEach(function(o,a){o.tag===i.tag&&o.kind===i.kind&&n.push(a)}),r.push(i)}),r.filter(function(i,o){return n.indexOf(o)===-1})}s(Ul,"compileList");function fA(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(s(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}s(fA,"compileMap");function kn(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new fs("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Ul(this,"implicit",[]),this.compiledExplicit=Ul(this,"explicit",[]),this.compiledTypeMap=fA(this.compiledImplicit,this.compiledExplicit)}s(kn,"Schema");kn.DEFAULT=null;kn.create=s(function(){var t,r;switch(arguments.length){case 1:t=kn.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new fs("Wrong number of arguments for Schema.create function")}if(t=Ng.toArray(t),r=Ng.toArray(r),!t.every(function(n){return n instanceof kn}))throw new fs("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof lA}))throw new fs("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new kn({include:t,explicit:r})},"createSchema");qg.exports=kn});var Mg=m((qM,jg)=>{"use strict";var pA=te();jg.exports=new pA("tag:yaml.org,2002:str",{kind:"scalar",construct:s(function(e){return e!==null?e:""},"construct")})});var Lg=m((MM,Dg)=>{"use strict";var dA=te();Dg.exports=new dA("tag:yaml.org,2002:seq",{kind:"sequence",construct:s(function(e){return e!==null?e:[]},"construct")})});var Vg=m((LM,Fg)=>{"use strict";var hA=te();Fg.exports=new hA("tag:yaml.org,2002:map",{kind:"mapping",construct:s(function(e){return e!==null?e:{}},"construct")})});var ps=m((VM,Bg)=>{"use strict";var mA=Cr();Bg.exports=new mA({explicit:[Mg(),Lg(),Vg()]})});var Ug=m((BM,Hg)=>{"use strict";var gA=te();function yA(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}s(yA,"resolveYamlNull");function vA(){return null}s(vA,"constructYamlNull");function _A(e){return e===null}s(_A,"isNull");Hg.exports=new gA("tag:yaml.org,2002:null",{kind:"scalar",resolve:yA,construct:vA,predicate:_A,represent:{canonical:s(function(){return"~"},"canonical"),lowercase:s(function(){return"null"},"lowercase"),uppercase:s(function(){return"NULL"},"uppercase"),camelcase:s(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var Gg=m((UM,zg)=>{"use strict";var bA=te();function SA(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}s(SA,"resolveYamlBoolean");function PA(e){return e==="true"||e==="True"||e==="TRUE"}s(PA,"constructYamlBoolean");function $A(e){return Object.prototype.toString.call(e)==="[object Boolean]"}s($A,"isBoolean");zg.exports=new bA("tag:yaml.org,2002:bool",{kind:"scalar",resolve:SA,construct:PA,predicate:$A,represent:{lowercase:s(function(e){return e?"true":"false"},"lowercase"),uppercase:s(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:s(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var Kg=m((GM,Zg)=>{"use strict";var OA=Tr(),EA=te();function xA(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}s(xA,"isHexCode");function wA(e){return 48<=e&&e<=55}s(wA,"isOctCode");function AA(e){return 48<=e&&e<=57}s(AA,"isDecCode");function IA(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!xA(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!wA(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(i===":")break;if(!AA(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}s(IA,"resolveYamlInteger");function kA(e){var t=e,r=1,n,i,o=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(a){o.unshift(parseInt(a,10))}),t=0,i=1,o.forEach(function(a){t+=a*i,i*=60}),r*t):r*parseInt(t,10)}s(kA,"constructYamlInteger");function RA(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!OA.isNegativeZero(e)}s(RA,"isInteger");Zg.exports=new EA("tag:yaml.org,2002:int",{kind:"scalar",resolve:IA,construct:kA,predicate:RA,represent:{binary:s(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:s(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:s(function(e){return e.toString(10)},"decimal"),hexadecimal:s(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var Qg=m((KM,Yg)=>{"use strict";var Wg=Tr(),TA=te(),CA=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function NA(e){return!(e===null||!CA.test(e)||e[e.length-1]==="_")}s(NA,"resolveYamlFloat");function qA(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(o){i.unshift(parseFloat(o,10))}),t=0,n=1,i.forEach(function(o){t+=o*n,n*=60}),r*t):r*parseFloat(t,10)}s(qA,"constructYamlFloat");var jA=/^[-+]?[0-9]+e/;function MA(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Wg.isNegativeZero(e))return"-0.0";return r=e.toString(10),jA.test(r)?r.replace("e",".e"):r}s(MA,"representYamlFloat");function DA(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Wg.isNegativeZero(e))}s(DA,"isFloat");Yg.exports=new TA("tag:yaml.org,2002:float",{kind:"scalar",resolve:NA,construct:qA,predicate:DA,represent:MA,defaultStyle:"lowercase"})});var zl=m((YM,Jg)=>{"use strict";var LA=Cr();Jg.exports=new LA({include:[ps()],implicit:[Ug(),Gg(),Kg(),Qg()]})});var Gl=m((QM,Xg)=>{"use strict";var FA=Cr();Xg.exports=new FA({include:[zl()]})});var ny=m((JM,ry)=>{"use strict";var VA=te(),ey=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ty=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function BA(e){return e===null?!1:ey.exec(e)!==null||ty.exec(e)!==null}s(BA,"resolveYamlTimestamp");function HA(e){var t,r,n,i,o,a,u,c=0,l=null,p,f,d;if(t=ey.exec(e),t===null&&(t=ty.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(o=+t[4],a=+t[5],u=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(p=+t[10],f=+(t[11]||0),l=(p*60+f)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,o,a,u,c)),l&&d.setTime(d.getTime()-l),d}s(HA,"constructYamlTimestamp");function UA(e){return e.toISOString()}s(UA,"representYamlTimestamp");ry.exports=new VA("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:BA,construct:HA,instanceOf:Date,represent:UA})});var oy=m((e8,iy)=>{"use strict";var zA=te();function GA(e){return e==="<<"||e===null}s(GA,"resolveYamlMerge");iy.exports=new zA("tag:yaml.org,2002:merge",{kind:"scalar",resolve:GA})});var uy=m((r8,ay)=>{"use strict";var Nr;try{sy=require,Nr=sy("buffer").Buffer}catch{}var sy,ZA=te(),Zl=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
19
+ \r`;function KA(e){if(e===null)return!1;var t,r,n=0,i=e.length,o=Zl;for(r=0;r<i;r++)if(t=o.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}s(KA,"resolveYamlBinary");function WA(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=Zl,a=0,u=[];for(t=0;t<i;t++)t%4===0&&t&&(u.push(a>>16&255),u.push(a>>8&255),u.push(a&255)),a=a<<6|o.indexOf(n.charAt(t));return r=i%4*6,r===0?(u.push(a>>16&255),u.push(a>>8&255),u.push(a&255)):r===18?(u.push(a>>10&255),u.push(a>>2&255)):r===12&&u.push(a>>4&255),Nr?Nr.from?Nr.from(u):new Nr(u):u}s(WA,"constructYamlBinary");function YA(e){var t="",r=0,n,i,o=e.length,a=Zl;for(n=0;n<o;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=o%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}s(YA,"representYamlBinary");function QA(e){return Nr&&Nr.isBuffer(e)}s(QA,"isBinary");ay.exports=new ZA("tag:yaml.org,2002:binary",{kind:"scalar",resolve:KA,construct:WA,predicate:QA,represent:YA})});var ly=m((i8,cy)=>{"use strict";var JA=te(),XA=Object.prototype.hasOwnProperty,eI=Object.prototype.toString;function tI(e){if(e===null)return!0;var t=[],r,n,i,o,a,u=e;for(r=0,n=u.length;r<n;r+=1){if(i=u[r],a=!1,eI.call(i)!=="[object Object]")return!1;for(o in i)if(XA.call(i,o))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}s(tI,"resolveYamlOmap");function rI(e){return e!==null?e:[]}s(rI,"constructYamlOmap");cy.exports=new JA("tag:yaml.org,2002:omap",{kind:"sequence",resolve:tI,construct:rI})});var py=m((s8,fy)=>{"use strict";var nI=te(),iI=Object.prototype.toString;function oI(e){if(e===null)return!0;var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],iI.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[t]=[i[0],n[i[0]]]}return!0}s(oI,"resolveYamlPairs");function sI(e){if(e===null)return[];var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}s(sI,"constructYamlPairs");fy.exports=new nI("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:oI,construct:sI})});var hy=m((u8,dy)=>{"use strict";var aI=te(),uI=Object.prototype.hasOwnProperty;function cI(e){if(e===null)return!0;var t,r=e;for(t in r)if(uI.call(r,t)&&r[t]!==null)return!1;return!0}s(cI,"resolveYamlSet");function lI(e){return e!==null?e:{}}s(lI,"constructYamlSet");dy.exports=new aI("tag:yaml.org,2002:set",{kind:"mapping",resolve:cI,construct:lI})});var Rn=m((l8,my)=>{"use strict";var fI=Cr();my.exports=new fI({include:[Gl()],implicit:[ny(),oy()],explicit:[uy(),ly(),py(),hy()]})});var yy=m((f8,gy)=>{"use strict";var pI=te();function dI(){return!0}s(dI,"resolveJavascriptUndefined");function hI(){}s(hI,"constructJavascriptUndefined");function mI(){return""}s(mI,"representJavascriptUndefined");function gI(e){return typeof e>"u"}s(gI,"isUndefined");gy.exports=new pI("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:dI,construct:hI,predicate:gI,represent:mI})});var _y=m((d8,vy)=>{"use strict";var yI=te();function vI(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}s(vI,"resolveJavascriptRegExp");function _I(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}s(_I,"constructJavascriptRegExp");function bI(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}s(bI,"representJavascriptRegExp");function SI(e){return Object.prototype.toString.call(e)==="[object RegExp]"}s(SI,"isRegExp");vy.exports=new yI("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:vI,construct:_I,predicate:SI,represent:bI})});var Py=m((m8,Sy)=>{"use strict";var ds;try{by=require,ds=by("esprima")}catch{typeof window<"u"&&(ds=window.esprima)}var by,PI=te();function $I(e){if(e===null)return!1;try{var t="("+e+")",r=ds.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}s($I,"resolveJavascriptFunction");function OI(e){var t="("+e+")",r=ds.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(o){n.push(o.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}s(OI,"constructJavascriptFunction");function EI(e){return e.toString()}s(EI,"representJavascriptFunction");function xI(e){return Object.prototype.toString.call(e)==="[object Function]"}s(xI,"isFunction");Sy.exports=new PI("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:$I,construct:OI,predicate:xI,represent:EI})});var Li=m((y8,Oy)=>{"use strict";var $y=Cr();Oy.exports=$y.DEFAULT=new $y({include:[Rn()],explicit:[yy(),_y(),Py()]})});var Hy=m((v8,Fi)=>{"use strict";var qt=Tr(),Ry=In(),wI=Rg(),Ty=Rn(),AI=Li(),tr=Object.prototype.hasOwnProperty,hs=1,Cy=2,Ny=3,ms=4,Kl=1,II=2,Ey=3,kI=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,RI=/[\x85\u2028\u2029]/,TI=/[,\[\]\{\}]/,qy=/^(?:!|!!|![a-z\-]+!)$/i,jy=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function xy(e){return Object.prototype.toString.call(e)}s(xy,"_class");function vt(e){return e===10||e===13}s(vt,"is_EOL");function jr(e){return e===9||e===32}s(jr,"is_WHITE_SPACE");function ke(e){return e===9||e===32||e===10||e===13}s(ke,"is_WS_OR_EOL");function Tn(e){return e===44||e===91||e===93||e===123||e===125}s(Tn,"is_FLOW_INDICATOR");function CI(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}s(CI,"fromHexCode");function NI(e){return e===120?2:e===117?4:e===85?8:0}s(NI,"escapedHexLen");function qI(e){return 48<=e&&e<=57?e-48:-1}s(qI,"fromDecimalCode");function wy(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
20
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}s(wy,"simpleEscapeSequence");function jI(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}s(jI,"charFromCodepoint");var My=new Array(256),Dy=new Array(256);for(qr=0;qr<256;qr++)My[qr]=wy(qr)?1:0,Dy[qr]=wy(qr);var qr;function MI(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||AI,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}s(MI,"State");function Ly(e,t){return new Ry(t,new wI(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}s(Ly,"generateError");function x(e,t){throw Ly(e,t)}s(x,"throwError");function gs(e,t){e.onWarning&&e.onWarning.call(null,Ly(e,t))}s(gs,"throwWarning");var Ay={YAML:s(function(t,r,n){var i,o,a;t.version!==null&&x(t,"duplication of %YAML directive"),n.length!==1&&x(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&x(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),a=parseInt(i[2],10),o!==1&&x(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&gs(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:s(function(t,r,n){var i,o;n.length!==2&&x(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],qy.test(i)||x(t,"ill-formed tag handle (first argument) of the TAG directive"),tr.call(t.tagMap,i)&&x(t,'there is a previously declared suffix for "'+i+'" tag handle'),jy.test(o)||x(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o},"handleTagDirective")};function er(e,t,r,n){var i,o,a,u;if(t<r){if(u=e.input.slice(t,r),n)for(i=0,o=u.length;i<o;i+=1)a=u.charCodeAt(i),a===9||32<=a&&a<=1114111||x(e,"expected valid JSON character");else kI.test(u)&&x(e,"the stream contains non-printable characters");e.result+=u}}s(er,"captureSegment");function Iy(e,t,r,n){var i,o,a,u;for(qt.isObject(r)||x(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,u=i.length;a<u;a+=1)o=i[a],tr.call(t,o)||(t[o]=r[o],n[o]=!0)}s(Iy,"mergeMappings");function Cn(e,t,r,n,i,o,a,u){var c,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,l=i.length;c<l;c+=1)Array.isArray(i[c])&&x(e,"nested arrays are not supported inside keys"),typeof i=="object"&&xy(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&xy(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,l=o.length;c<l;c+=1)Iy(e,t,o[c],r);else Iy(e,t,o,r);else!e.json&&!tr.call(r,i)&&tr.call(t,i)&&(e.line=a||e.line,e.position=u||e.position,x(e,"duplicated mapping key")),t[i]=o,delete r[i];return t}s(Cn,"storeMappingPair");function Wl(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):x(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}s(Wl,"readLineBreak");function J(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;jr(i);)i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(vt(i))for(Wl(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&gs(e,"deficient indentation"),n}s(J,"skipSeparationSpace");function ys(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||ke(r)))}s(ys,"testDocumentSeparator");function Yl(e,t){t===1?e.result+=" ":t>1&&(e.result+=qt.repeat(`
21
+ `,t-1))}s(Yl,"writeFoldedLines");function DI(e,t,r){var n,i,o,a,u,c,l,p,f=e.kind,d=e.result,h;if(h=e.input.charCodeAt(e.position),ke(h)||Tn(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),ke(i)||r&&Tn(i)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,u=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),ke(i)||r&&Tn(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),ke(n))break}else{if(e.position===e.lineStart&&ys(e)||r&&Tn(h))break;if(vt(h))if(c=e.line,l=e.lineStart,p=e.lineIndent,J(e,!1,-1),e.lineIndent>=t){u=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=c,e.lineStart=l,e.lineIndent=p;break}}u&&(er(e,o,a,!1),Yl(e,e.line-c),o=a=e.position,u=!1),jr(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return er(e,o,a,!1),e.result?!0:(e.kind=f,e.result=d,!1)}s(DI,"readPlainScalar");function LI(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(er(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else vt(r)?(er(e,n,i,!0),Yl(e,J(e,!1,t)),n=i=e.position):e.position===e.lineStart&&ys(e)?x(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);x(e,"unexpected end of the stream within a single quoted scalar")}s(LI,"readSingleQuotedScalar");function FI(e,t){var r,n,i,o,a,u;if(u=e.input.charCodeAt(e.position),u!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(u=e.input.charCodeAt(e.position))!==0;){if(u===34)return er(e,r,e.position,!0),e.position++,!0;if(u===92){if(er(e,r,e.position,!0),u=e.input.charCodeAt(++e.position),vt(u))J(e,!1,t);else if(u<256&&My[u])e.result+=Dy[u],e.position++;else if((a=NI(u))>0){for(i=a,o=0;i>0;i--)u=e.input.charCodeAt(++e.position),(a=CI(u))>=0?o=(o<<4)+a:x(e,"expected hexadecimal character");e.result+=jI(o),e.position++}else x(e,"unknown escape sequence");r=n=e.position}else vt(u)?(er(e,r,n,!0),Yl(e,J(e,!1,t)),r=n=e.position):e.position===e.lineStart&&ys(e)?x(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}x(e,"unexpected end of the stream within a double quoted scalar")}s(FI,"readDoubleQuotedScalar");function VI(e,t){var r=!0,n,i=e.tag,o,a=e.anchor,u,c,l,p,f,d={},h,g,y,v;if(v=e.input.charCodeAt(e.position),v===91)c=93,f=!1,o=[];else if(v===123)c=125,f=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),v=e.input.charCodeAt(++e.position);v!==0;){if(J(e,!0,t),v=e.input.charCodeAt(e.position),v===c)return e.position++,e.tag=i,e.anchor=a,e.kind=f?"mapping":"sequence",e.result=o,!0;r||x(e,"missed comma between flow collection entries"),g=h=y=null,l=p=!1,v===63&&(u=e.input.charCodeAt(e.position+1),ke(u)&&(l=p=!0,e.position++,J(e,!0,t))),n=e.line,Nn(e,t,hs,!1,!0),g=e.tag,h=e.result,J(e,!0,t),v=e.input.charCodeAt(e.position),(p||e.line===n)&&v===58&&(l=!0,v=e.input.charCodeAt(++e.position),J(e,!0,t),Nn(e,t,hs,!1,!0),y=e.result),f?Cn(e,o,d,g,h,y):l?o.push(Cn(e,null,d,g,h,y)):o.push(h),J(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(r=!0,v=e.input.charCodeAt(++e.position)):r=!1}x(e,"unexpected end of the stream within a flow collection")}s(VI,"readFlowCollection");function BI(e,t){var r,n,i=Kl,o=!1,a=!1,u=t,c=0,l=!1,p,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)Kl===i?i=f===43?Ey:II:x(e,"repeat of a chomping mode identifier");else if((p=qI(f))>=0)p===0?x(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?x(e,"repeat of an indentation width identifier"):(u=t+p-1,a=!0);else break;if(jr(f)){do f=e.input.charCodeAt(++e.position);while(jr(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!vt(f)&&f!==0)}for(;f!==0;){for(Wl(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!a||e.lineIndent<u)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>u&&(u=e.lineIndent),vt(f)){c++;continue}if(e.lineIndent<u){i===Ey?e.result+=qt.repeat(`
22
+ `,o?1+c:c):i===Kl&&o&&(e.result+=`
23
+ `);break}for(n?jr(f)?(l=!0,e.result+=qt.repeat(`
24
+ `,o?1+c:c)):l?(l=!1,e.result+=qt.repeat(`
25
+ `,c+1)):c===0?o&&(e.result+=" "):e.result+=qt.repeat(`
26
+ `,c):e.result+=qt.repeat(`
27
+ `,o?1+c:c),o=!0,a=!0,c=0,r=e.position;!vt(f)&&f!==0;)f=e.input.charCodeAt(++e.position);er(e,r,e.position,!1)}return!0}s(BI,"readBlockScalar");function ky(e,t){var r,n=e.tag,i=e.anchor,o=[],a,u=!1,c;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),c=e.input.charCodeAt(e.position);c!==0&&!(c!==45||(a=e.input.charCodeAt(e.position+1),!ke(a)));){if(u=!0,e.position++,J(e,!0,-1)&&e.lineIndent<=t){o.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,Nn(e,t,Ny,!1,!0),o.push(e.result),J(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)x(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return u?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}s(ky,"readBlockSequence");function HI(e,t,r){var n,i,o,a,u=e.tag,c=e.anchor,l={},p={},f=null,d=null,h=null,g=!1,y=!1,v;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),v=e.input.charCodeAt(e.position);v!==0;){if(n=e.input.charCodeAt(e.position+1),o=e.line,a=e.position,(v===63||v===58)&&ke(n))v===63?(g&&(Cn(e,l,p,f,d,null),f=d=h=null),y=!0,g=!0,i=!0):g?(g=!1,i=!0):x(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,v=n;else if(Nn(e,r,Cy,!1,!0))if(e.line===o){for(v=e.input.charCodeAt(e.position);jr(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),ke(v)||x(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(Cn(e,l,p,f,d,null),f=d=h=null),y=!0,g=!1,i=!1,f=e.tag,d=e.result;else if(y)x(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=c,!0}else if(y)x(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=c,!0;else break;if((e.line===o||e.lineIndent>t)&&(Nn(e,t,ms,!0,i)&&(g?d=e.result:h=e.result),g||(Cn(e,l,p,f,d,h,o,a),f=d=h=null),J(e,!0,-1),v=e.input.charCodeAt(e.position)),e.lineIndent>t&&v!==0)x(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&Cn(e,l,p,f,d,null),y&&(e.tag=u,e.anchor=c,e.kind="mapping",e.result=l),y}s(HI,"readBlockMapping");function UI(e){var t,r=!1,n=!1,i,o,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&x(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(o=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):x(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!ke(a);)a===33&&(n?x(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),qy.test(i)||x(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),TI.test(o)&&x(e,"tag suffix cannot contain flow indicator characters")}return o&&!jy.test(o)&&x(e,"tag name cannot contain such characters: "+o),r?e.tag=o:tr.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:x(e,'undeclared tag handle "'+i+'"'),!0}s(UI,"readTagProperty");function zI(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&x(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!ke(r)&&!Tn(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&x(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}s(zI,"readAnchorProperty");function GI(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!ke(n)&&!Tn(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&x(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),tr.call(e.anchorMap,r)||x(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],J(e,!0,-1),!0}s(GI,"readAlias");function Nn(e,t,r,n,i){var o,a,u,c=1,l=!1,p=!1,f,d,h,g,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=u=ms===r||Ny===r,n&&J(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;UI(e)||zI(e);)J(e,!0,-1)?(l=!0,u=o,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):u=!1;if(u&&(u=l||i),(c===1||ms===r)&&(hs===r||Cy===r?g=t:g=t+1,y=e.position-e.lineStart,c===1?u&&(ky(e,y)||HI(e,y,g))||VI(e,g)?p=!0:(a&&BI(e,g)||LI(e,g)||FI(e,g)?p=!0:GI(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&x(e,"alias node should not have any properties")):DI(e,g,hs===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(p=u&&ky(e,y))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&x(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,d=e.implicitTypes.length;f<d;f+=1)if(h=e.implicitTypes[f],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else tr.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&x(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result)?(e.result=h.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):x(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):x(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}s(Nn,"composeNode");function ZI(e){var t=e.position,r,n,i,o=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(J(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(o=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!ke(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&x(e,"directive name must not be less than one character in length");a!==0;){for(;jr(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!vt(a));break}if(vt(a))break;for(r=e.position;a!==0&&!ke(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Wl(e),tr.call(Ay,n)?Ay[n](e,n,i):gs(e,'unknown document directive "'+n+'"')}if(J(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,J(e,!0,-1)):o&&x(e,"directives end mark is expected"),Nn(e,e.lineIndent-1,ms,!1,!0),J(e,!0,-1),e.checkLineBreaks&&RI.test(e.input.slice(t,e.position))&&gs(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ys(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,J(e,!0,-1));return}if(e.position<e.length-1)x(e,"end of the stream or a document separator is expected");else return}s(ZI,"readDocument");function Fy(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
28
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new MI(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,x(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)ZI(r);return r.documents}s(Fy,"loadDocuments");function Vy(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=Fy(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}s(Vy,"loadAll");function By(e,t){var r=Fy(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Ry("expected a single document in the stream, but found more")}}s(By,"load");function KI(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),Vy(e,t,qt.extend({schema:Ty},r))}s(KI,"safeLoadAll");function WI(e,t){return By(e,qt.extend({schema:Ty},t))}s(WI,"safeLoad");Fi.exports.loadAll=Vy;Fi.exports.load=By;Fi.exports.safeLoadAll=KI;Fi.exports.safeLoad=WI});var p0=m((b8,ef)=>{"use strict";var Bi=Tr(),Hi=In(),YI=Li(),QI=Rn(),Qy=Object.prototype.toString,Jy=Object.prototype.hasOwnProperty,JI=9,Vi=10,XI=13,ek=32,tk=33,rk=34,Xy=35,nk=37,ik=38,ok=39,sk=42,e0=44,ak=45,t0=58,uk=61,ck=62,lk=63,fk=64,r0=91,n0=93,pk=96,i0=123,dk=124,o0=125,me={};me[0]="\\0";me[7]="\\a";me[8]="\\b";me[9]="\\t";me[10]="\\n";me[11]="\\v";me[12]="\\f";me[13]="\\r";me[27]="\\e";me[34]='\\"';me[92]="\\\\";me[133]="\\N";me[160]="\\_";me[8232]="\\L";me[8233]="\\P";var hk=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function mk(e,t){var r,n,i,o,a,u,c;if(t===null)return{};for(r={},n=Object.keys(t),i=0,o=n.length;i<o;i+=1)a=n[i],u=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),c=e.compiledTypeMap.fallback[a],c&&Jy.call(c.styleAliases,u)&&(u=c.styleAliases[u]),r[a]=u;return r}s(mk,"compileStyleMap");function Uy(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Hi("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Bi.repeat("0",n-t.length)+t}s(Uy,"encodeHex");function gk(e){this.schema=e.schema||YI,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Bi.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=mk(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}s(gk,"State");function zy(e,t){for(var r=Bi.repeat(" ",t),n=0,i=-1,o="",a,u=e.length;n<u;)i=e.indexOf(`
29
+ `,n),i===-1?(a=e.slice(n),n=u):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
30
+ `&&(o+=r),o+=a;return o}s(zy,"indentString");function Ql(e,t){return`
31
+ `+Bi.repeat(" ",e.indent*t)}s(Ql,"generateNextLine");function yk(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}s(yk,"testImplicitResolving");function Xl(e){return e===ek||e===JI}s(Xl,"isWhitespace");function qn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}s(qn,"isPrintable");function vk(e){return qn(e)&&!Xl(e)&&e!==65279&&e!==XI&&e!==Vi}s(vk,"isNsChar");function Gy(e,t){return qn(e)&&e!==65279&&e!==e0&&e!==r0&&e!==n0&&e!==i0&&e!==o0&&e!==t0&&(e!==Xy||t&&vk(t))}s(Gy,"isPlainSafe");function _k(e){return qn(e)&&e!==65279&&!Xl(e)&&e!==ak&&e!==lk&&e!==t0&&e!==e0&&e!==r0&&e!==n0&&e!==i0&&e!==o0&&e!==Xy&&e!==ik&&e!==sk&&e!==tk&&e!==dk&&e!==uk&&e!==ck&&e!==ok&&e!==rk&&e!==nk&&e!==fk&&e!==pk}s(_k,"isPlainSafeFirst");function s0(e){var t=/^\n* /;return t.test(e)}s(s0,"needIndentIndicator");var a0=1,u0=2,c0=3,l0=4,vs=5;function bk(e,t,r,n,i){var o,a,u,c=!1,l=!1,p=n!==-1,f=-1,d=_k(e.charCodeAt(0))&&!Xl(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),!qn(a))return vs;u=o>0?e.charCodeAt(o-1):null,d=d&&Gy(a,u)}else{for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),a===Vi)c=!0,p&&(l=l||o-f-1>n&&e[f+1]!==" ",f=o);else if(!qn(a))return vs;u=o>0?e.charCodeAt(o-1):null,d=d&&Gy(a,u)}l=l||p&&o-f-1>n&&e[f+1]!==" "}return!c&&!l?d&&!i(e)?a0:u0:r>9&&s0(e)?vs:l?l0:c0}s(bk,"chooseScalarStyle");function Sk(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&hk.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;function u(c){return yk(e,c)}switch(s(u,"testAmbiguity"),bk(t,a,e.indent,o,u)){case a0:return t;case u0:return"'"+t.replace(/'/g,"''")+"'";case c0:return"|"+Zy(t,e.indent)+Ky(zy(t,i));case l0:return">"+Zy(t,e.indent)+Ky(zy(Pk(t,o),i));case vs:return'"'+$k(t,o)+'"';default:throw new Hi("impossible error: invalid scalar style")}}()}s(Sk,"writeScalar");function Zy(e,t){var r=s0(e)?String(t):"",n=e[e.length-1]===`
32
32
  `,i=n&&(e[e.length-2]===`
33
33
  `||e===`
34
34
  `),o=i?"+":n?"":"-";return r+o+`
35
- `}s(Zm,"blockHeader");function Hm(e){return e[e.length-1]===`
36
- `?e.slice(0,-1):e}s(Hm,"dropEndingNewline");function hE(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var f=e.indexOf(`
37
- `);return f=f!==-1?f:e.length,r.lastIndex=f,Gm(e.slice(0,f),t)}(),i=e[0]===`
38
- `||e[0]===" ",o,a;a=r.exec(e);){var c=a[1],u=a[2];o=u[0]===" ",n+=c+(!i&&!o&&u!==""?`
39
- `:"")+Gm(u,t),i=o}return n}s(hE,"foldString");function Gm(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,o,a=0,c=0,u="";n=r.exec(e);)c=n.index,c-i>t&&(o=a>i?a:c,u+=`
40
- `+e.slice(i,o),i=o+1),a=c;return u+=`
41
- `,e.length-i>t&&a>i?u+=e.slice(i,a)+`
42
- `+e.slice(a+1):u+=e.slice(i),u.slice(1)}s(Gm,"foldLine");function yE(e){for(var t="",r,n,i,o=0;o<e.length;o++){if(r=e.charCodeAt(o),r>=55296&&r<=56319&&(n=e.charCodeAt(o+1),n>=56320&&n<=57343)){t+=Bm((r-55296)*1024+n-56320+65536),o++;continue}i=ae[r],t+=!i&&Yr(r)?e[o]:i||Bm(r)}return t}s(yE,"escapeString");function gE(e,t,r){var n="",i=e.tag,o,a;for(o=0,a=r.length;o<a;o+=1)sr(e,t,r[o],!1,!1)&&(o!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}s(gE,"writeFlowSequence");function $E(e,t,r,n){var i="",o=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)sr(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Yc(e,t)),e.dump&&Zn===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}s($E,"writeBlockSequence");function bE(e,t,r){var n="",i=e.tag,o=Object.keys(r),a,c,u,f,l;for(a=0,c=o.length;a<c;a+=1)l="",a!==0&&(l+=", "),e.condenseFlow&&(l+='"'),u=o[a],f=r[u],sr(e,t,u,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),sr(e,t,f,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}s(bE,"writeFlowMapping");function vE(e,t,r,n){var i="",o=e.tag,a=Object.keys(r),c,u,f,l,p,h;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new Gn("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)h="",(!n||c!==0)&&(h+=Yc(e,t)),f=a[c],l=r[f],sr(e,t+1,f,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&Zn===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,p&&(h+=Yc(e,t)),sr(e,t+1,l,!0,p)&&(e.dump&&Zn===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=o,e.dump=i||"{}"}s(vE,"writeBlockMapping");function Km(e,t,r){var n,i,o,a,c,u;for(i=r?e.explicitTypes:e.implicitTypes,o=0,a=i.length;o<a;o+=1)if(c=i[o],(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,Wm.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(Ym.call(c.represent,u))n=c.represent[u](t,u);else throw new Gn("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}s(Km,"detectType");function sr(e,t,r,n,i,o){e.tag=null,e.dump=r,Km(e,r,!1)||Km(e,r,!0);var a=Wm.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var c=a==="[object Object]"||a==="[object Array]",u,f;if(c&&(u=e.duplicates.indexOf(r),f=u!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0)&&(i=!1),f&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(c&&f&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(vE(e,t,e.dump,i),f&&(e.dump="&ref_"+u+e.dump)):(bE(e,t,e.dump),f&&(e.dump="&ref_"+u+" "+e.dump));else if(a==="[object Array]"){var l=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?($E(e,l,e.dump,i),f&&(e.dump="&ref_"+u+e.dump)):(gE(e,l,e.dump),f&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&mE(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new Gn("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}s(sr,"writeNode");function SE(e,t){var r=[],n=[],i,o;for(Jc(e,r,n),i=0,o=n.length;i<o;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(o)}s(SE,"getDuplicateReferences");function Jc(e,t,r){var n,i,o;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)Jc(e[i],t,r);else for(n=Object.keys(e),i=0,o=n.length;i<o;i+=1)Jc(e[n[i]],t,r)}s(Jc,"inspectNode");function uh(e,t){t=t||{};var r=new uE(t);return r.noRefs||SE(e,r),sr(r,0,e,!0,!0)?r.dump+`
43
- `:""}s(uh,"dump");function PE(e,t){return uh(e,Hn.extend({schema:Uw},t))}s(PE,"safeDump");Qc.exports.dump=uh;Qc.exports.safeDump=PE});var ph=m((iq,Z)=>{"use strict";var so=Lm(),lh=fh();function ao(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}s(ao,"deprecated");Z.exports.Type=J();Z.exports.Schema=rr();Z.exports.FAILSAFE_SCHEMA=Qi();Z.exports.JSON_SCHEMA=Uc();Z.exports.CORE_SCHEMA=Zc();Z.exports.DEFAULT_SAFE_SCHEMA=Hr();Z.exports.DEFAULT_FULL_SCHEMA=zn();Z.exports.load=so.load;Z.exports.loadAll=so.loadAll;Z.exports.safeLoad=so.safeLoad;Z.exports.safeLoadAll=so.safeLoadAll;Z.exports.dump=lh.dump;Z.exports.safeDump=lh.safeDump;Z.exports.YAMLException=Ur();Z.exports.MINIMAL_SCHEMA=Qi();Z.exports.SAFE_SCHEMA=Hr();Z.exports.DEFAULT_SCHEMA=zn();Z.exports.scan=ao("scan");Z.exports.parse=ao("parse");Z.exports.compose=ao("compose");Z.exports.addConstructor=ao("addConstructor")});var mh=m((sq,dh)=>{"use strict";var _E=ph();dh.exports=_E});var yh=m((aq,hh)=>{"use strict";var{ParserError:OE}=De(),xE=mh();hh.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 xE.safeLoad(t)}catch(r){throw new OE(r.message,e.url)}else return t}}});var $h=m((cq,gh)=>{"use strict";var{ParserError:wE}=De(),EE=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;gh.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&EE.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 wE("data is not text",e.url)}}});var vh=m((uq,bh)=>{"use strict";var jE=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;bh.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&jE.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var _h=m((fq,Ph)=>{"use strict";var AE=require("fs"),{ono:eu}=Ie(),Sh=Se(),{ResolverError:tu}=De();Ph.exports={order:100,canRead(e){return Sh.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=Sh.toFileSystemPath(e.url)}catch(i){r(new tu(eu.uri(i,`Malformed URI: ${e.url}`),e.url))}try{AE.readFile(n,(i,o)=>{i?r(new tu(eu(i,`Error opening file "${n}"`),n)):t(o)})}catch(i){r(new tu(eu(i,`Error opening file "${n}"`),n))}})}}});var Eh=m((lq,wh)=>{"use strict";var TE=require("http"),RE=require("https"),{ono:co}=Ie(),Kn=Se(),{ResolverError:Oh}=De();wh.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return Kn.isHttp(e.url)},read(e){let t=Kn.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=Kn.parse(location.href).protocol),xh(t,this)}};function xh(e,t,r){return new Promise((n,i)=>{e=Kn.parse(e),r=r||[],r.push(e.href),IE(e,t).then(o=>{if(o.statusCode>=400)throw co({status:o.statusCode},`HTTP ERROR ${o.statusCode}`);if(o.statusCode>=300)if(r.length>t.redirects)i(new Oh(co({status:o.statusCode},`Error downloading ${r[0]}.
35
+ `}s(Zy,"blockHeader");function Ky(e){return e[e.length-1]===`
36
+ `?e.slice(0,-1):e}s(Ky,"dropEndingNewline");function Pk(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var l=e.indexOf(`
37
+ `);return l=l!==-1?l:e.length,r.lastIndex=l,Wy(e.slice(0,l),t)}(),i=e[0]===`
38
+ `||e[0]===" ",o,a;a=r.exec(e);){var u=a[1],c=a[2];o=c[0]===" ",n+=u+(!i&&!o&&c!==""?`
39
+ `:"")+Wy(c,t),i=o}return n}s(Pk,"foldString");function Wy(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,o,a=0,u=0,c="";n=r.exec(e);)u=n.index,u-i>t&&(o=a>i?a:u,c+=`
40
+ `+e.slice(i,o),i=o+1),a=u;return c+=`
41
+ `,e.length-i>t&&a>i?c+=e.slice(i,a)+`
42
+ `+e.slice(a+1):c+=e.slice(i),c.slice(1)}s(Wy,"foldLine");function $k(e){for(var t="",r,n,i,o=0;o<e.length;o++){if(r=e.charCodeAt(o),r>=55296&&r<=56319&&(n=e.charCodeAt(o+1),n>=56320&&n<=57343)){t+=Uy((r-55296)*1024+n-56320+65536),o++;continue}i=me[r],t+=!i&&qn(r)?e[o]:i||Uy(r)}return t}s($k,"escapeString");function Ok(e,t,r){var n="",i=e.tag,o,a;for(o=0,a=r.length;o<a;o+=1)Mr(e,t,r[o],!1,!1)&&(o!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}s(Ok,"writeFlowSequence");function Ek(e,t,r,n){var i="",o=e.tag,a,u;for(a=0,u=r.length;a<u;a+=1)Mr(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Ql(e,t)),e.dump&&Vi===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}s(Ek,"writeBlockSequence");function xk(e,t,r){var n="",i=e.tag,o=Object.keys(r),a,u,c,l,p;for(a=0,u=o.length;a<u;a+=1)p="",a!==0&&(p+=", "),e.condenseFlow&&(p+='"'),c=o[a],l=r[c],Mr(e,t,c,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Mr(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}s(xk,"writeFlowMapping");function wk(e,t,r,n){var i="",o=e.tag,a=Object.keys(r),u,c,l,p,f,d;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new Hi("sortKeys must be a boolean or a function");for(u=0,c=a.length;u<c;u+=1)d="",(!n||u!==0)&&(d+=Ql(e,t)),l=a[u],p=r[l],Mr(e,t+1,l,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Vi===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=Ql(e,t)),Mr(e,t+1,p,!0,f)&&(e.dump&&Vi===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=o,e.dump=i||"{}"}s(wk,"writeBlockMapping");function Yy(e,t,r){var n,i,o,a,u,c;for(i=r?e.explicitTypes:e.implicitTypes,o=0,a=i.length;o<a;o+=1)if(u=i[o],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof t=="object"&&t instanceof u.instanceOf)&&(!u.predicate||u.predicate(t))){if(e.tag=r?u.tag:"?",u.represent){if(c=e.styleMap[u.tag]||u.defaultStyle,Qy.call(u.represent)==="[object Function]")n=u.represent(t,c);else if(Jy.call(u.represent,c))n=u.represent[c](t,c);else throw new Hi("!<"+u.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}s(Yy,"detectType");function Mr(e,t,r,n,i,o){e.tag=null,e.dump=r,Yy(e,r,!1)||Yy(e,r,!0);var a=Qy.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var u=a==="[object Object]"||a==="[object Array]",c,l;if(u&&(c=e.duplicates.indexOf(r),l=c!==-1),(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&t>0)&&(i=!1),l&&e.usedDuplicates[c])e.dump="*ref_"+c;else{if(u&&l&&!e.usedDuplicates[c]&&(e.usedDuplicates[c]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(wk(e,t,e.dump,i),l&&(e.dump="&ref_"+c+e.dump)):(xk(e,t,e.dump),l&&(e.dump="&ref_"+c+" "+e.dump));else if(a==="[object Array]"){var p=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(Ek(e,p,e.dump,i),l&&(e.dump="&ref_"+c+e.dump)):(Ok(e,p,e.dump),l&&(e.dump="&ref_"+c+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&Sk(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new Hi("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}s(Mr,"writeNode");function Ak(e,t){var r=[],n=[],i,o;for(Jl(e,r,n),i=0,o=n.length;i<o;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(o)}s(Ak,"getDuplicateReferences");function Jl(e,t,r){var n,i,o;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)Jl(e[i],t,r);else for(n=Object.keys(e),i=0,o=n.length;i<o;i+=1)Jl(e[n[i]],t,r)}s(Jl,"inspectNode");function f0(e,t){t=t||{};var r=new gk(t);return r.noRefs||Ak(e,r),Mr(r,0,e,!0,!0)?r.dump+`
43
+ `:""}s(f0,"dump");function Ik(e,t){return f0(e,Bi.extend({schema:QI},t))}s(Ik,"safeDump");ef.exports.dump=f0;ef.exports.safeDump=Ik});var h0=m((P8,K)=>{"use strict";var _s=Hy(),d0=p0();function bs(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}s(bs,"deprecated");K.exports.Type=te();K.exports.Schema=Cr();K.exports.FAILSAFE_SCHEMA=ps();K.exports.JSON_SCHEMA=zl();K.exports.CORE_SCHEMA=Gl();K.exports.DEFAULT_SAFE_SCHEMA=Rn();K.exports.DEFAULT_FULL_SCHEMA=Li();K.exports.load=_s.load;K.exports.loadAll=_s.loadAll;K.exports.safeLoad=_s.safeLoad;K.exports.safeLoadAll=_s.safeLoadAll;K.exports.dump=d0.dump;K.exports.safeDump=d0.safeDump;K.exports.YAMLException=In();K.exports.MINIMAL_SCHEMA=ps();K.exports.SAFE_SCHEMA=Rn();K.exports.DEFAULT_SCHEMA=Li();K.exports.scan=bs("scan");K.exports.parse=bs("parse");K.exports.compose=bs("compose");K.exports.addConstructor=bs("addConstructor")});var g0=m((O8,m0)=>{"use strict";var kk=h0();m0.exports=kk});var v0=m((E8,y0)=>{"use strict";var{ParserError:Rk}=nt(),Tk=g0();y0.exports={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(e){let t=e.data;if(Buffer.isBuffer(t)&&(t=t.toString()),typeof t=="string")try{return Tk.safeLoad(t)}catch(r){throw new Rk(r.message,e.url)}else return t}}});var b0=m((x8,_0)=>{"use strict";var{ParserError:Ck}=nt(),Nk=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;_0.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&Nk.test(e.url)},parse(e){if(typeof e.data=="string")return e.data;if(Buffer.isBuffer(e.data))return e.data.toString(this.encoding);throw new Ck("data is not text",e.url)}}});var P0=m((w8,S0)=>{"use strict";var qk=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;S0.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&qk.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var E0=m((A8,O0)=>{"use strict";var jk=require("fs"),{ono:tf}=Qe(),$0=Ce(),{ResolverError:rf}=nt();O0.exports={order:100,canRead(e){return $0.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=$0.toFileSystemPath(e.url)}catch(i){r(new rf(tf.uri(i,`Malformed URI: ${e.url}`),e.url))}try{jk.readFile(n,(i,o)=>{i?r(new rf(tf(i,`Error opening file "${n}"`),n)):t(o)})}catch(i){r(new rf(tf(i,`Error opening file "${n}"`),n))}})}}});var I0=m((I8,A0)=>{"use strict";var Mk=require("http"),Dk=require("https"),{ono:Ss}=Qe(),Ui=Ce(),{ResolverError:x0}=nt();A0.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return Ui.isHttp(e.url)},read(e){let t=Ui.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=Ui.parse(location.href).protocol),w0(t,this)}};function w0(e,t,r){return new Promise((n,i)=>{e=Ui.parse(e),r=r||[],r.push(e.href),Lk(e,t).then(o=>{if(o.statusCode>=400)throw Ss({status:o.statusCode},`HTTP ERROR ${o.statusCode}`);if(o.statusCode>=300)if(r.length>t.redirects)i(new x0(Ss({status:o.statusCode},`Error downloading ${r[0]}.
44
44
  Too many redirects:
45
45
  ${r.join(`
46
- `)}`)));else if(o.headers.location){let a=Kn.resolve(e,o.headers.location);xh(a,t,r).then(n,i)}else throw co({status:o.statusCode},`HTTP ${o.statusCode} redirect with no location header`);else n(o.body||Buffer.alloc(0))}).catch(o=>{i(new Oh(co(o,`Error downloading ${e.href}`),e.href))})})}s(xh,"download");function IE(e,t){return new Promise((r,n)=>{let o=(e.protocol==="https:"?RE:TE).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});typeof o.setTimeout=="function"&&o.setTimeout(t.timeout),o.on("timeout",()=>{o.abort()}),o.on("error",n),o.once("response",a=>{a.body=Buffer.alloc(0),a.on("data",c=>{a.body=Buffer.concat([a.body,Buffer.from(c)])}),a.on("error",n),a.on("end",()=>{r(a)})})})}s(IE,"get")});var iu=m((dq,Ah)=>{"use strict";var qE=Od(),NE=yh(),CE=$h(),kE=vh(),ME=_h(),DE=Eh();Ah.exports=nu;function nu(e){ru(this,nu.defaults),ru(this,e)}s(nu,"$RefParserOptions");nu.defaults={parse:{json:qE,yaml:NE,text:CE,binary:kE},resolve:{file:ME,http:DE,external:!0},continueOnError:!1,dereference:{circular:!0}};function ru(e,t){if(jh(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],o=t[i],a=e[i];jh(o)?e[i]=ru(a||{},o):o!==void 0&&(e[i]=o)}}return e}s(ru,"merge");function jh(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}s(jh,"isMergeable")});var ou=m((hq,Rh)=>{"use strict";var Th=iu();Rh.exports=FE;function FE(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 Th||(n=new Th(n)),{path:t,schema:r,options:n,callback:i}}s(FE,"normalizeArgs")});var qh=m((gq,Ih)=>{"use strict";var su=iu(),VE=Dc(),LE=Lc(),BE=require("util");Ih.exports=uo;function uo(e){su.call(this,uo.defaults),su.apply(this,arguments)}s(uo,"ParserOptions");uo.defaults={validate:{schema:VE,spec:LE}};BE.inherits(uo,su)});var Ch=m((bq,Nh)=>{"use strict";function zE(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:s(function(t){setTimeout(t,0)},"next")}s(zE,"makeNext");Nh.exports=zE()});var au=m((Sq,Mh)=>{"use strict";var kh=Ch();Mh.exports=s(function(t,r){if(t){r.then(function(n){kh(function(){t(null,n)})},function(n){kh(function(){t(n)})});return}else return r},"maybe")});var Wn=m((_q,Vh)=>{"use strict";Vh.exports=Et;var cu=Jr(),uu=Se(),{JSONParserError:UE,InvalidPointerError:ZE,MissingPointerError:HE,isHandledError:GE}=De(),KE=/\//g,WE=/~/g,YE=/~1/g,JE=/~0/g;function Et(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}s(Et,"Pointer");Et.prototype.resolve=function(e,t,r){let n=Et.parse(this.path,this.originalPath);this.value=Fh(e);for(let i=0;i<n.length;i++){if(fo(this,t)&&(this.path=Et.join(this.path,n.slice(i))),typeof this.value=="object"&&this.value!==null&&"$ref"in this.value)return this;let o=n[i];if(this.value[o]===void 0||this.value[o]===null)throw this.value=null,new HE(o,this.originalPath);this.value=this.value[o]}return(!this.value||this.value.$ref&&uu.resolve(this.path,this.value.$ref)!==r)&&fo(this,t),this};Et.prototype.set=function(e,t,r){let n=Et.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=Fh(e);for(let o=0;o<n.length-1;o++)fo(this,r),i=n[o],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=Dh(this,i,{});return fo(this,r),i=n[n.length-1],Dh(this,i,t),e};Et.parse=function(e,t){let r=uu.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(YE,"/").replace(JE,"~"));if(r[0]!=="")throw new ZE(r,t===void 0?e:t);return r.slice(1)};Et.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(WE,"~0").replace(KE,"~1"))}return e};function fo(e,t){if(cu.isAllowed$Ref(e.value,t)){let r=uu.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,cu.isExtended$Ref(e.value)?(e.value=cu.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}s(fo,"resolveIf$Ref");function Dh(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 UE(`Error assigning $ref pointer "${e.path}".
47
- Cannot set "${t}" of a non-object.`);return r}s(Dh,"setValue");function Fh(e){if(GE(e))throw e;return e}s(Fh,"unwrapOrThrow")});var Jr=m((xq,zh)=>{"use strict";zh.exports=le;var Bh=Wn(),{InvalidPointerError:XE,isHandledError:QE,normalizeError:Lh}=De(),{safePointerToPath:ej,stripHash:tj,getHash:rj}=Se();function le(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}s(le,"$Ref");le.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(Lh)):this.errors.push(Lh(e))};le.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};le.prototype.get=function(e,t){return this.resolve(e,t).value};le.prototype.resolve=function(e,t,r,n){let i=new Bh(this,e,r);try{return i.resolve(this.value,t,n)}catch(o){if(!t||!t.continueOnError||!QE(o))throw o;return o.path===null&&(o.path=ej(rj(n))),o instanceof XE&&(o.source=tj(n)),this.addError(o),null}};le.prototype.set=function(e,t){let r=new Bh(this,e);this.value=r.set(this.value,t)};le.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};le.isExternal$Ref=function(e){return le.is$Ref(e)&&e.$ref[0]!=="#"};le.isAllowed$Ref=function(e,t){if(le.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};le.isExtended$Ref=function(e){return le.is$Ref(e)&&Object.keys(e).length>1};le.dereference=function(e,t){if(t&&typeof t=="object"&&le.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 Gh=m((Eq,Hh)=>{"use strict";var{ono:Uh}=Ie(),nj=Jr(),jt=Se();Hh.exports=Fe;function Fe(){this.circular=!1,this._$refs={},this._root$Ref=null}s(Fe,"$Refs");Fe.prototype.paths=function(e){return Zh(this._$refs,arguments).map(r=>r.decoded)};Fe.prototype.values=function(e){let t=this._$refs;return Zh(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};Fe.prototype.toJSON=Fe.prototype.values;Fe.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};Fe.prototype.get=function(e,t){return this._resolve(e,"",t).value};Fe.prototype.set=function(e,t){let r=jt.resolve(this._root$Ref.path,e),n=jt.stripHash(r),i=this._$refs[n];if(!i)throw Uh(`Error resolving $ref pointer "${e}".
48
- "${n}" not found.`);i.set(r,t)};Fe.prototype._add=function(e){let t=jt.stripHash(e),r=new nj;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};Fe.prototype._resolve=function(e,t,r){let n=jt.resolve(this._root$Ref.path,e),i=jt.stripHash(n),o=this._$refs[i];if(!o)throw Uh(`Error resolving $ref pointer "${e}".
49
- "${i}" not found.`);return o.resolve(n,r,e,t)};Fe.prototype._get$Ref=function(e){e=jt.resolve(this._root$Ref.path,e);let t=jt.stripHash(e);return this._$refs[t]};function Zh(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"?jt.toFileSystemPath(n,!0):n}))}s(Zh,"getPaths")});var Wh=m(Yn=>{"use strict";Yn.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};Yn.filter=function(e,t,r){return e.filter(n=>!!Kh(n,t,r))};Yn.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)};Yn.run=function(e,t,r,n){let i,o,a=0;return new Promise((c,u)=>{f();function f(){if(i=e[a++],!i)return u(o);try{let d=Kh(i,t,r,l,n);if(d&&typeof d.then=="function")d.then(p,h);else if(d!==void 0)p(d);else if(a===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(d){h(d)}}s(f,"runNextPlugin");function l(d,y){d?h(d):p(y)}s(l,"callback");function p(d){c({plugin:i,result:d})}s(p,"onSuccess");function h(d){o={plugin:i,error:d},f()}s(h,"onError")})};function Kh(e,t,r,n,i){let o=e[t];if(typeof o=="function")return o.apply(e,[r,n,i]);if(!n){if(o instanceof RegExp)return o.test(r.url);if(typeof o=="string")return o===r.extension;if(Array.isArray(o))return o.indexOf(r.extension)!==-1}return o}s(Kh,"getResult")});var lu=m((Rq,Qh)=>{"use strict";var{ono:fu}=Ie(),Yh=Se(),At=Wh(),{ResolverError:Jh,ParserError:Xh,UnmatchedParserError:ij,UnmatchedResolverError:oj,isHandledError:sj}=De();Qh.exports=aj;async function aj(e,t,r){e=Yh.stripHash(e);let n=t._add(e),i={url:e,extension:Yh.getExtension(e)};try{let o=await cj(i,r,t);n.pathType=o.plugin.name,i.data=o.result;let a=await uj(i,r,t);return n.value=a.result,a.result}catch(o){throw sj(o)&&(n.value=o),o}}s(aj,"parse");function cj(e,t,r){return new Promise((n,i)=>{let o=At.all(t.resolve);o=At.filter(o,"canRead",e),At.sort(o),At.run(o,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new oj(e.url)):!c||!("error"in c)?i(fu.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof Jh?i(c.error):i(new Jh(c,e.url))}s(a,"onError")})}s(cj,"readFile");function uj(e,t,r){return new Promise((n,i)=>{let o=At.all(t.parse),a=At.filter(o,"canParse",e),c=a.length>0?a:o;At.sort(c),At.run(c,"parse",e,r).then(u,f);function u(l){!l.plugin.allowEmpty&&fj(l.result)?i(fu.syntax(`Error parsing "${e.url}" as ${l.plugin.name}.
50
- Parsed value is empty`)):n(l)}s(u,"onParsed");function f(l){!l&&t.continueOnError?i(new ij(e.url)):!l||!("error"in l)?i(fu.syntax(`Unable to parse ${e.url}`)):l.error instanceof Xh?i(l.error):i(new Xh(l.error.message,e.url))}s(f,"onError")})}s(uj,"parseFile");function fj(e){return e===void 0||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0||Buffer.isBuffer(e)&&e.length===0}s(fj,"isEmpty")});var ny=m((qq,ry)=>{"use strict";var ey=Jr(),lj=Wn(),pj=lu(),Jn=Se(),{isHandledError:dj}=De();ry.exports=mj;function mj(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=pu(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}s(mj,"resolveExternal");function pu(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(ey.isExternal$Ref(e))i.push(ty(e,t,r,n));else for(let o of Object.keys(e)){let a=lj.join(t,o),c=e[o];ey.isExternal$Ref(c)?i.push(ty(c,a,r,n)):i=i.concat(pu(c,a,r,n))}return i}s(pu,"crawl");async function ty(e,t,r,n){let i=Jn.resolve(t,e.$ref),o=Jn.stripHash(i);if(e=r._$refs[o],e)return Promise.resolve(e.value);try{let a=await pj(i,r,n),c=pu(a,o+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!dj(a))throw a;return r._$refs[o]&&(a.source=Jn.stripHash(t),a.path=Jn.safePointerToPath(Jn.getHash(t))),[]}}s(ty,"resolve$Ref")});var sy=m((Cq,oy)=>{"use strict";var lo=Jr(),Xn=Wn(),du=Se();oy.exports=hj;function hj(e,t){let r=[];mu(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),yj(r)}s(hj,"bundle");function mu(e,t,r,n,i,o,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(lo.isAllowed$Ref(u))iy(e,t,r,n,i,o,a,c);else{let f=Object.keys(u).sort((l,p)=>l==="definitions"?-1:p==="definitions"?1:l.length-p.length);for(let l of f){let p=Xn.join(r,l),h=Xn.join(n,l),d=u[l];lo.isAllowed$Ref(d)?iy(u,l,r,h,i,o,a,c):mu(u,l,p,h,i,o,a,c)}}}s(mu,"crawl");function iy(e,t,r,n,i,o,a,c){let u=t===null?e:e[t],f=du.resolve(r,u.$ref),l=a._resolve(f,n,c);if(l===null)return;let p=Xn.parse(n).length,h=du.stripHash(l.path),d=du.getHash(l.path),y=h!==a._root$Ref.path,$=lo.isExtended$Ref(u);i+=l.indirections;let g=gj(o,e,t);if(g)if(p<g.depth||i<g.indirections)$j(o,g);else return;o.push({$ref:u,parent:e,key:t,pathFromRoot:n,depth:p,file:h,hash:d,value:l.value,circular:l.circular,extended:$,external:y,indirections:i}),g||mu(l.value,null,l.path,n,i+1,o,a,c)}s(iy,"inventory$Ref");function yj(e){e.sort((i,o)=>{if(i.file!==o.file)return i.file<o.file?-1:1;if(i.hash!==o.hash)return i.hash<o.hash?-1:1;if(i.circular!==o.circular)return i.circular?-1:1;if(i.extended!==o.extended)return i.extended?1:-1;if(i.indirections!==o.indirections)return i.indirections-o.indirections;if(i.depth!==o.depth)return i.depth-o.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),c=o.pathFromRoot.lastIndexOf("/definitions");return a!==c?c-a:i.pathFromRoot.length-o.pathFromRoot.length}});let t,r,n;for(let i of e)i.external?i.file===t&&i.hash===r?i.$ref.$ref=n:i.file===t&&i.hash.indexOf(r+"/")===0?i.$ref.$ref=Xn.join(n,Xn.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=lo.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}s(yj,"remap");function gj(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}s(gj,"findInInventory");function $j(e,t){let r=e.indexOf(t);e.splice(r,1)}s($j,"removeFromInventory")});var gu=m((Mq,fy)=>{"use strict";var hu=Jr(),ay=Wn(),{ono:bj}=Ie(),vj=Se();fy.exports=Sj;function Sj(e,t){let r=yu(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}s(Sj,"dereference");function yu(e,t,r,n,i,o){let a,c={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),hu.isAllowed$Ref(e,o))a=cy(e,t,r,n,i,o),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let f=ay.join(t,u),l=ay.join(r,u),p=e[u],h=!1;hu.isAllowed$Ref(p,o)?(a=cy(p,f,l,n,i,o),h=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(p)===-1?(a=yu(p,f,l,n,i,o),h=a.circular,e[u]!==a.value&&(e[u]=a.value)):h=uy(f,i,o),c.circular=c.circular||h}n.pop()}return c}s(yu,"crawl");function cy(e,t,r,n,i,o){let a=vj.resolve(t,e.$ref),c=i._resolve(a,t,o);if(c===null)return{circular:!1,value:null};let u=c.circular,f=u||n.indexOf(c.value)!==-1;f&&uy(t,i,o);let l=hu.dereference(e,c.value);if(!f){let p=yu(l,c.path,r,n,i,o);f=p.circular,l=p.value}return f&&!u&&o.dereference.circular==="ignore"&&(l=e),u&&(l.$ref=r),{circular:f,value:l}}s(cy,"dereference$Ref");function uy(e,t,r){if(t.circular=!0,!r.dereference.circular)throw bj.reference(`Circular $ref pointer found at ${e}`);return!0}s(uy,"foundCircularReference")});var my=m((Fq,Xe)=>{"use strict";var dy=Gh(),Pj=lu(),po=ou(),_j=ny(),Oj=sy(),xj=gu(),Xr=Se(),{JSONParserError:wj,InvalidPointerError:Ej,MissingPointerError:jj,ResolverError:Aj,ParserError:Tj,UnmatchedParserError:Rj,UnmatchedResolverError:Ij,isHandledError:qj,JSONParserErrorGroup:ly}=De(),Ve=au(),{ono:py}=Ie();Xe.exports=Je;Xe.exports.default=Je;Xe.exports.JSONParserError=wj;Xe.exports.InvalidPointerError=Ej;Xe.exports.MissingPointerError=jj;Xe.exports.ResolverError=Aj;Xe.exports.ParserError=Tj;Xe.exports.UnmatchedParserError=Rj;Xe.exports.UnmatchedResolverError=Ij;function Je(){this.schema=null,this.$refs=new dy}s(Je,"$RefParser");Je.parse=s(function(t,r,n,i){let o=this,a=new o;return a.parse.apply(a,arguments)},"parse");Je.prototype.parse=s(async function(t,r,n,i){let o=po(arguments),a;if(!o.path&&!o.schema){let f=py(`Expected a file path, URL, or object. Got ${o.path||o.schema}`);return Ve(o.callback,Promise.reject(f))}this.schema=null,this.$refs=new dy;let c="http";if(Xr.isFileSystemPath(o.path)&&(o.path=Xr.fromFileSystemPath(o.path),c="file"),o.path=Xr.resolve(Xr.cwd(),o.path),o.schema&&typeof o.schema=="object"){let f=this.$refs._add(o.path);f.value=o.schema,f.pathType=c,a=Promise.resolve(o.schema)}else a=Pj(o.path,this.$refs,o.options);let u=this;try{let f=await a;if(f!==null&&typeof f=="object"&&!Buffer.isBuffer(f))return u.schema=f,Ve(o.callback,Promise.resolve(u.schema));if(o.options.continueOnError)return u.schema=null,Ve(o.callback,Promise.resolve(u.schema));throw py.syntax(`"${u.$refs._root$Ref.path||f}" is not a valid JSON Schema`)}catch(f){return!o.options.continueOnError||!qj(f)?Ve(o.callback,Promise.reject(f)):(this.$refs._$refs[Xr.stripHash(o.path)]&&this.$refs._$refs[Xr.stripHash(o.path)].addError(f),Ve(o.callback,Promise.resolve(null)))}},"parse");Je.resolve=s(function(t,r,n,i){let o=this,a=new o;return a.resolve.apply(a,arguments)},"resolve");Je.prototype.resolve=s(async function(t,r,n,i){let o=this,a=po(arguments);try{return await this.parse(a.path,a.schema,a.options),await _j(o,a.options),$u(o),Ve(a.callback,Promise.resolve(o.$refs))}catch(c){return Ve(a.callback,Promise.reject(c))}},"resolve");Je.bundle=s(function(t,r,n,i){let o=this,a=new o;return a.bundle.apply(a,arguments)},"bundle");Je.prototype.bundle=s(async function(t,r,n,i){let o=this,a=po(arguments);try{return await this.resolve(a.path,a.schema,a.options),Oj(o,a.options),$u(o),Ve(a.callback,Promise.resolve(o.schema))}catch(c){return Ve(a.callback,Promise.reject(c))}},"bundle");Je.dereference=s(function(t,r,n,i){let o=this,a=new o;return a.dereference.apply(a,arguments)},"dereference");Je.prototype.dereference=s(async function(t,r,n,i){let o=this,a=po(arguments);try{return await this.resolve(a.path,a.schema,a.options),xj(o,a.options),$u(o),Ve(a.callback,Promise.resolve(o.schema))}catch(c){return Ve(a.callback,Promise.reject(c))}},"dereference");function $u(e){if(ly.getParserErrors(e).length>0)throw new ly(e)}s($u,"finalize")});var by=m((Lq,$y)=>{"use strict";var Nj=Dc(),Cj=Lc(),hy=ou(),yy=fi(),gy=qh(),mo=au(),{ono:Le}=Ie(),ar=my(),kj=gu();$y.exports=Qe;function Qe(){ar.apply(this,arguments)}s(Qe,"SwaggerParser");yy.inherits(Qe,ar);Qe.parse=ar.parse;Qe.resolve=ar.resolve;Qe.bundle=ar.bundle;Qe.dereference=ar.dereference;Object.defineProperty(Qe.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});Qe.prototype.parse=async function(e,t,r,n){let i=hy(arguments);i.options=new gy(i.options);try{let o=await ar.prototype.parse.call(this,i.path,i.schema,i.options);if(o.swagger){if(o.swagger===void 0||o.info===void 0||o.paths===void 0)throw Le.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof o.swagger=="number")throw Le.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof o.info.version=="number")throw Le.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(o.swagger!=="2.0")throw Le.syntax(`Unrecognized Swagger version: ${o.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(o.openapi===void 0||o.info===void 0)throw Le.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(o.paths===void 0)if(o.openapi==="3.1.0"){if(o.webhooks===void 0)throw Le.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw Le.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof o.openapi=="number")throw Le.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof o.info.version=="number")throw Le.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(o.openapi)===-1)throw Le.syntax(`Unsupported OpenAPI version: ${o.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}yy.fixOasRelativeServers(o,i.path)}return mo(i.callback,Promise.resolve(o))}catch(o){return mo(i.callback,Promise.reject(o))}};Qe.validate=function(e,t,r,n){let i=this,o=new i;return o.validate.apply(o,arguments)};Qe.prototype.validate=async function(e,t,r,n){let i=this,o=hy(arguments);o.options=new gy(o.options);let a=o.options.dereference.circular;o.options.validate.schema&&(o.options.dereference.circular="ignore");try{if(await this.dereference(o.path,o.schema,o.options),o.options.dereference.circular=a,o.options.validate.schema&&(Nj(i.api),i.$refs.circular)){if(a===!0)kj(i,o.options);else if(a===!1)throw Le.reference("The API contains circular references")}return o.options.validate.spec&&Cj(i.api),mo(o.callback,Promise.resolve(i.schema))}catch(c){return mo(o.callback,Promise.reject(c))}}});var qA={};Lg(qA,{getGenerateMetadata:()=>IA});module.exports=Bg(qA);var Ng=ci(by());var vy="Schema",Sy="Enum",Py="Body",_y="Param",Oy="Response",xy="ErrorResponse",bu="z.void()";var wy={input:"input.yaml",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,importPath:"ts",extractEnums:!0,configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"}},schemaSuffix:vy,enumSuffix:Sy,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var Qn=s((...e)=>[...new Set(e.flat())],"getUniqueArray");var pe=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),ho=s(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),vu=s(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),Pe=s(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),Ey=s(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),Su=s((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),jy=s((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),Mj=s(e=>{var n;let t=e.reduce((i,o)=>({...i,[o]:(i[o]??0)+1}),{});return(n=Object.entries(t).sort((i,o)=>i[1]===o[1]?o[0].length-i[0].length:o[1]-i[1])[0])==null?void 0:n[0]},"getLongestMostCommon"),Pu=s(e=>{let t=e.map(pe).map(Dj).map(r=>Fj(r)).flat();return Mj(t)},"getMostCommonAdjacentCombinationSplit"),Dj=s(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),Fj=s((e,t=["dto","by","for","of","in","to","and","with"])=>{var n;let r=[];for(let i=0;i<e.length;i++)if(!t.includes(e[i].toLowerCase()))for(let o=i+1;o<=e.length;o++)t.includes((n=e[o-1])==null?void 0:n.toLowerCase())||r.push(e.slice(i,o).join(""));return r},"getAdjacentStringCombinations");var Ay=s(e=>`use${pe(Pe(e.operationName))}`,"getQueryName");function yo({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${ho(t)}/`:""}${ho(t)}.${i}`:i}s(yo,"getTagFileName");var lt=s(({type:e,tag:t,options:r})=>`${pe(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var cr=s(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");var pt=Symbol.for("@ts-pattern/matcher"),Vj=Symbol.for("@ts-pattern/isVariadic"),$o="@ts-pattern/anonymous-select-key",_u=s(e=>!!(e&&typeof e=="object"),"r"),go=s(e=>e&&!!e[pt],"i"),rt=s((e,t,r)=>{if(go(e)){let n=e[pt](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(a=>r(a,o[a])),i}if(_u(e)){if(!_u(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],o=[];for(let a of e.keys()){let c=e[a];go(c)&&c[Vj]?o.push(c):o.length?i.push(c):n.push(c)}if(o.length){if(o.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let a=t.slice(0,n.length),c=i.length===0?[]:t.slice(-i.length),u=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((f,l)=>rt(f,a[l],r))&&i.every((f,l)=>rt(f,c[l],r))&&(o.length===0||rt(o[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||go(o=i)&&o[pt]().matcherType==="optional")&&rt(i,t[n],r);var o})}return Object.is(t,e)},"s"),Nt=s(e=>{var t,r,n;return _u(e)?go(e)?(t=(r=(n=e[pt]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?ti(e,Nt):ti(Object.values(e),Nt):[]},"o"),ti=s((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function je(e){return Object.assign(e,{optional:s(()=>Lj(e),"optional"),and:s(t=>L(e,t),"and"),or:s(t=>Bj(e,t),"or"),select:s(t=>t===void 0?Ty(e):Ty(t,e),"select")})}s(je,"u");function Lj(e){return je({[pt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return t===void 0?(Nt(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:rt(e,t,n),selections:r}},"match"),getSelectionKeys:s(()=>Nt(e),"getSelectionKeys"),matcherType:"optional"})})}s(Lj,"h");function L(...e){return je({[pt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return{matched:e.every(i=>rt(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>ti(e,Nt),"getSelectionKeys"),matcherType:"and"})})}s(L,"m");function Bj(...e){return je({[pt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return ti(e,Nt).forEach(i=>n(i,void 0)),{matched:e.some(i=>rt(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>ti(e,Nt),"getSelectionKeys"),matcherType:"or"})})}s(Bj,"d");function C(e){return{[pt]:()=>({match:s(t=>({matched:!!e(t)}),"match")})}}s(C,"p");function Ty(...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 je({[pt]:()=>({match:s(n=>{let i={[t??$o]:n};return{matched:r===void 0||rt(r,n,(o,a)=>{i[o]=a}),selections:i}},"match"),getSelectionKeys:s(()=>[t??$o].concat(r===void 0?[]:Nt(r)),"getSelectionKeys")})})}s(Ty,"y");function et(e){return typeof e=="number"}s(et,"v");function Tt(e){return typeof e=="string"}s(Tt,"b");function Rt(e){return typeof e=="bigint"}s(Rt,"w");var aN=je(C(function(e){return!0}));var It=s(e=>Object.assign(je(e),{startsWith:s(t=>{return It(L(e,(r=t,C(n=>Tt(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:s(t=>{return It(L(e,(r=t,C(n=>Tt(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:s(t=>It(L(e,(r=>C(n=>Tt(n)&&n.length>=r))(t))),"minLength"),length:s(t=>It(L(e,(r=>C(n=>Tt(n)&&n.length===r))(t))),"length"),maxLength:s(t=>It(L(e,(r=>C(n=>Tt(n)&&n.length<=r))(t))),"maxLength"),includes:s(t=>{return It(L(e,(r=t,C(n=>Tt(n)&&n.includes(r)))));var r},"includes"),regex:s(t=>{return It(L(e,(r=t,C(n=>Tt(n)&&!!n.match(r)))));var r},"regex")}),"j"),cN=It(C(Tt)),tt=s(e=>Object.assign(je(e),{between:s((t,r)=>tt(L(e,((n,i)=>C(o=>et(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>tt(L(e,(r=>C(n=>et(n)&&n<r))(t))),"lt"),gt:s(t=>tt(L(e,(r=>C(n=>et(n)&&n>r))(t))),"gt"),lte:s(t=>tt(L(e,(r=>C(n=>et(n)&&n<=r))(t))),"lte"),gte:s(t=>tt(L(e,(r=>C(n=>et(n)&&n>=r))(t))),"gte"),int:s(()=>tt(L(e,C(t=>et(t)&&Number.isInteger(t)))),"int"),finite:s(()=>tt(L(e,C(t=>et(t)&&Number.isFinite(t)))),"finite"),positive:s(()=>tt(L(e,C(t=>et(t)&&t>0))),"positive"),negative:s(()=>tt(L(e,C(t=>et(t)&&t<0))),"negative")}),"x"),uN=tt(C(et)),qt=s(e=>Object.assign(je(e),{between:s((t,r)=>qt(L(e,((n,i)=>C(o=>Rt(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>qt(L(e,(r=>C(n=>Rt(n)&&n<r))(t))),"lt"),gt:s(t=>qt(L(e,(r=>C(n=>Rt(n)&&n>r))(t))),"gt"),lte:s(t=>qt(L(e,(r=>C(n=>Rt(n)&&n<=r))(t))),"lte"),gte:s(t=>qt(L(e,(r=>C(n=>Rt(n)&&n>=r))(t))),"gte"),positive:s(()=>qt(L(e,C(t=>Rt(t)&&t>0))),"positive"),negative:s(()=>qt(L(e,C(t=>Rt(t)&&t<0))),"negative")}),"A"),fN=qt(C(Rt)),lN=je(C(function(e){return typeof e=="boolean"})),pN=je(C(function(e){return typeof e=="symbol"})),dN=je(C(function(e){return e==null})),mN=je(C(function(e){return e!=null}));var Eu=class Eu extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}};s(Eu,"W");var Ou=Eu,xu={matched:!1,value:void 0};function ce(e){return new wu(e,xu)}s(ce,"z");var ei=class ei{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let o=!1,a={},c=s((f,l)=>{o=!0,a[f]=l},"a"),u=!n.some(f=>rt(f,this.input,c))||i&&!i(this.input)?xu:{matched:!0,value:r(o?$o in a?a[$o]:a:this.input,this.input)};return new ei(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new ei(this.input,n?{matched:!0,value:r(this.input,this.input)}:xu)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new Ou(this.input)}run(){return this.exhaustive()}returnType(){return this}};s(ei,"I");var wu=ei;var Ry=["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"];var ju=2,Iy=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],qy=["query","header","path"],Ct=["get","put","post","delete","options","head","patch","trace"],Ny=["string","number","integer","boolean"],bo=["allOf","anyOf","oneOf"];function kt(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}s(kt,"pick");function nt(e){return Ey(e)}s(nt,"formatTag");function ur(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return nt(r??t.defaultTag)}s(ur,"getOperationTag");function Cy(e,t){let r={};for(let n in e.paths){let i=e.paths[n],o=kt(i,Ct);for(let a in o){let c=o[a];if(!c||c.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let u=t.splitByTags?ur(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}s(Cy,"getOperationsByTag");var My=s(e=>`#/components/schemas/${e}`,"getSchemaRef"),fr=s(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),en=s(e=>fr(e).split("/").at(-1),"getSchemaNameByRef");function V(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}s(V,"isReferenceObject");function Ru(e){let t=zj(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return Pe(t)}s(Ru,"normalizeString");function Dy(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}s(Dy,"wrapWithQuotesIfNeeded");function Fy(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}s(Fy,"unwrapQuotesIfNeeded");function zj(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}s(zj,"prefixStringStartingWithNumberIfNeeded");function Iu(e){let t=e.replaceAll("_","#");return Pe(t.replaceAll("-","_")).replaceAll("#","_")}s(Iu,"pathParamToVariableName");var Mt=s(e=>Ny.includes(e),"isPrimitiveType");function Vy(e){return e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/([\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\uFFFE\uFFFF])/g,(t,r)=>{let n=r.codePointAt(),i=n.toString(16);return n<=255?`\\x${`00${i}`.slice(-2)}`:`\\u${`0000${i}`.slice(-4)}`}).replace(/\//g,"\\/")}s(Vy,"escapeControlCharacters");function Dt(e){return e.includes("application/")&&e.includes("json")||Iy.includes(e)||e.includes("text/")}s(Dt,"isParamMediaTypeAllowed");function vo(e){return e>=200&&e<300}s(vo,"isMainResponseStatus");function So(e){return!(e>=200&&e<300)}s(So,"isErrorStatus");function tn(e){return e==="application/json"}s(tn,"isMediaTypeAllowed");function Au({path:e,method:t,operation:r,options:n,keepOperationPrefixWithoutEnding:i}){let o=`${t}${Zj(e)}`,a=r.operationId?cr(r.operationId):o;if(n.removeOperationPrefixEndingWith&&i)return a.split(n.removeOperationPrefixEndingWith).map((u,f)=>f===0?u:pe(u)).join("");if(n.removeOperationPrefixEndingWith&&!i){let c=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);a=a.replace(c,"")}return Ry.includes(a)?o:a}s(Au,"getOperationName");function ri({path:e,method:t,operation:r,operationsByTag:n,options:i}){let o=i.splitByTags?ur(r,i):i.defaultTag,a=Au({path:e,method:t,operation:r,options:i});return n[o].filter(u=>Au({path:e,method:t,operation:u,options:i})===a).length===1?a:Au({path:e,method:t,operation:r,options:i,keepOperationPrefixWithoutEnding:!0})}s(ri,"getUniqueOperationName");function Ly(e,t,r){let n=[];for(let i in e.paths){let o=e.paths[i],a=kt(o,Ct);for(let c in a){let u=a[c];if(!u||u.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let f=ri({path:i,method:c,operation:u,operationsByTag:t,options:r});n.push(f)}}return n}s(Ly,"getUniqueOperationNamesWithoutSplitByTags");var ky=/({\w+})/g,Uj=/[^\w\-]+/g;function Zj(e){e=pe(vu(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(ky)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(ky,"")}By${pe(r.slice(1,-1))}`}return e.replace(Uj,"_")}s(Zj,"pathToVariableName");var Tu=/{(\b\w+(?:-\w+)*\b)}/g;function By(e){let t=e.match(Tu);return t===null?e.replaceAll(Tu,":$1"):(t.forEach(r=>{let n=Iu(r.replaceAll(Tu,":$1"));e=e.replaceAll(r,n)}),e)}s(By,"replaceHyphenatedPath");var zy=s(e=>e.method==="get","isQuery"),Uy=s(e=>e.method!=="get","isMutation");var Ft=s((e,t)=>Su(pe(Ru(e)),t),"getZodSchemaName"),Zy=s((e,t,r)=>Su(pe(Ru(e)),`${t}${r}`),"getEnumZodSchemaName"),lr=s(e=>!e.startsWith("z."),"isNamedZodSchema"),pr=s((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),Po=s(e=>Pe(`${e}_${Py}`),"getBodyZodSchemaName"),Hy=s((e,t)=>Pe(`${e}_${t}${_y}`),"getParamZodSchemaName"),Hj=s(e=>Pe(`${e}${Oy}`),"getMainResponseZodSchemaName"),Gj=s((e,t)=>Pe(`${e}_${t}_${xy}`),"getErrorResponseZodSchemaName");function _o({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),o=pr(t,r,n);return!vo(i)&&e!=="default"&&So(i)?Gj(o,e):Hj(o)}s(_o,"getResponseZodSchemaName");var Kj=s((e,t)=>jy(e,t.schemaSuffix),"getZodSchemaInferedTypeName");var qu=s((e,t)=>lr(t)?`${e.options.includeNamespaces?`${lt({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${Kj(t,e.options)}`:t,"getImportedZodSchemaInferedTypeName");function Nu(e){return ce(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}s(Nu,"primitiveTypeToTsType");function rn({zodSchemaName:e,schema:t,resolver:r}){let n="void",i;e&&lr(e)?(n=qu(r,e),i=r.getTagByZodSchemaName(e)):t!=null&&t.type&&Mt(t==null?void 0:t.type)&&(n=Nu(t==null?void 0:t.type));let o=n.split(".");return{type:o[o.length-1],...o.length>1?{namespace:o[0]}:{},...i?{filePath:yo({type:"models",tag:i,includeTagDir:!0,options:r.options})}:{}}}s(rn,"getTsTypeBase");function dr({schema:e,isCircular:t,parentTypes:r,resolver:n}){if(!e)return{metaType:"primitive"};for(let i of bo){let o=e[i];if(o)if(o.length>1){let a=o.map(c=>{let u=n.resolveObject(c);return dr({schema:u,parentTypes:r,resolver:n})});return a.every(({metaType:c})=>c==="object")?{metaType:"object",objectProperties:a.reduce((c,{objectProperties:u})=>{let f=u.map(({name:l})=>l);return[...c.filter(({name:l})=>!f.includes(l)),...u]},[])}:{metaType:"composite",[i]:a}}else e=n.resolveObject(o[0])}return e.type==="array"?{metaType:"array",arrayType:Gy({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:Wj({schema:e,parentTypes:r,resolver:n})}:{metaType:"primitive"}}s(dr,"getSchemaTsMetaType");function Gy({arraySchema:e,parentTypes:t,resolver:r}){let n,i;if(V(e.items)){let u=e.items.$ref;n=r.getZodSchemaNameByRef(u),i=r.getSchemaByRef(u)}else i=e.items;let o=rn({zodSchemaName:n,schema:i,resolver:r}),a=Ky(o,t),c=dr({schema:i,isCircular:a,parentTypes:[...t,o],resolver:r});return{...o,...c}}s(Gy,"getArraySchemaTsType");function Wj({schema:e,parentTypes:t,resolver:r}){return Object.entries((e==null?void 0:e.properties)??{}).map(([n,i])=>{var a;let o=((a=e==null?void 0:e.required)==null?void 0:a.includes(n))??!1;if(V(i)){let c=r.getZodSchemaNameByRef(i.$ref),u=r.getSchemaByRef(i.$ref),f=rn({zodSchemaName:c,schema:u,resolver:r}),l=Ky(f,t),p=dr({schema:u,isCircular:l,parentTypes:[...t,f],resolver:r});return{name:n,isRequired:o,...f,...p}}else if(i.type==="array"){let c=Gy({arraySchema:i,parentTypes:t,resolver:r});return{name:n,isRequired:o,type:"array",metaType:"array",arrayType:c}}else if(Mt(i.type))return{name:n,isRequired:o,type:Nu(i.type),metaType:"primitive"};return{name:n,isRequired:o,type:"void",metaType:"primitive"}})}s(Wj,"getSchemaTsProperties");function Ky(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}s(Ky,"getIsCircular");var Wy="data";function dt(e){return!V(e)}s(dt,"isSchemaObject");function Yy(e){return e.type==="array"}s(Yy,"isArraySchemaObject");function Jy(e){if(!e.allOf)throw new Error("Function inferRequiredSchema is specialized to handle item with required only in an allOf array.");let[t,r]=e.allOf.reduce((i,o)=>{if(Yj(o)){let a=o.required;i[0].push(...a??[])}else i[1].push(o);return i},[[],[]]),n={properties:t.reduce((i,o)=>(i[o]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:s((i,o)=>{if(V(i)){let a=o(i.$ref);a&&n.required.forEach(c=>{var u;n.properties[c]=((u=a==null?void 0:a.properties)==null?void 0:u[c])??{}})}else{let a=i.properties??{};n.required.forEach(c=>{a[c]&&(n.properties[c]=a[c]??{})})}},"patchRequiredSchemaInLoop")}}s(Jy,"inferRequiredSchema");var Yj=s(e=>!V(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");function Xy(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return nt(r??t.defaultTag)}s(Xy,"getEndpointTag");var Qy=s((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),eg=s((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),tg=s((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),B={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},_C=Object.keys(B.modifier),Jj=Object.keys(B.color),Xj=Object.keys(B.bgColor),OC=[...Jj,...Xj];function Qj(){let e=new Map;for(let[t,r]of Object.entries(B)){for(let[n,i]of Object.entries(r))B[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=B[n],e.set(i[0],i[1]);Object.defineProperty(B,t,{value:r,enumerable:!1})}return Object.defineProperty(B,"codes",{value:e,enumerable:!1}),B.color.close="\x1B[39m",B.bgColor.close="\x1B[49m",B.color.ansi=Qy(),B.color.ansi256=eg(),B.color.ansi16m=tg(),B.bgColor.ansi=Qy(10),B.bgColor.ansi256=eg(10),B.bgColor.ansi16m=tg(10),Object.defineProperties(B,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(o=>o+o).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:s(t=>B.rgbToAnsi256(...B.hexToRgb(t)),"value"),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let c=t%36;r=Math.floor(t/36)/5,n=Math.floor(c/6)/5,i=c%6/5}let o=Math.max(r,n,i)*2;if(o===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return o===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:s((t,r,n)=>B.ansi256ToAnsi(B.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:s(t=>B.ansi256ToAnsi(B.hexToAnsi256(t)),"value"),enumerable:!1}}),B}s(Qj,"assembleStyles");var eA=Qj(),Be=eA;var xo=ci(require("process"),1),ng=ci(require("os"),1),Cu=ci(require("tty"),1);function Ae(e,t=globalThis.Deno?globalThis.Deno.args:xo.default.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}s(Ae,"hasFlag");var{env:U}=xo.default,Oo;Ae("no-color")||Ae("no-colors")||Ae("color=false")||Ae("color=never")?Oo=0:(Ae("color")||Ae("colors")||Ae("color=true")||Ae("color=always"))&&(Oo=1);function tA(){if("FORCE_COLOR"in U)return U.FORCE_COLOR==="true"?1:U.FORCE_COLOR==="false"?0:U.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(U.FORCE_COLOR,10),3)}s(tA,"envForceColor");function rA(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}s(rA,"translateLevel");function nA(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=tA();n!==void 0&&(Oo=n);let i=r?Oo:n;if(i===0)return 0;if(r){if(Ae("color=16m")||Ae("color=full")||Ae("color=truecolor"))return 3;if(Ae("color=256"))return 2}if("TF_BUILD"in U&&"AGENT_NAME"in U)return 1;if(e&&!t&&i===void 0)return 0;let o=i||0;if(U.TERM==="dumb")return o;if(xo.default.platform==="win32"){let a=ng.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in U)return"GITHUB_ACTIONS"in U||"GITEA_ACTIONS"in U?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in U)||U.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in U)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(U.TEAMCITY_VERSION)?1:0;if(U.COLORTERM==="truecolor"||U.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in U){let a=Number.parseInt((U.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(U.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(U.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(U.TERM)||"COLORTERM"in U?1:o}s(nA,"_supportsColor");function rg(e,t={}){let r=nA(e,{streamIsTTY:e&&e.isTTY,...t});return rA(r)}s(rg,"createSupportsColor");var iA={stdout:rg({isTTY:Cu.default.isatty(1)}),stderr:rg({isTTY:Cu.default.isatty(2)})},ig=iA;function og(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,o=0,a="";do a+=e.slice(o,n)+t+r,o=n+i,n=e.indexOf(t,o);while(n!==-1);return a+=e.slice(o),a}s(og,"stringReplaceAll");function sg(e,t,r,n){let i=0,o="";do{let a=e[n-1]==="\r";o+=e.slice(i,a?n-1:n)+t+(a?`\r
46
+ `)}`)));else if(o.headers.location){let a=Ui.resolve(e,o.headers.location);w0(a,t,r).then(n,i)}else throw Ss({status:o.statusCode},`HTTP ${o.statusCode} redirect with no location header`);else n(o.body||Buffer.alloc(0))}).catch(o=>{i(new x0(Ss(o,`Error downloading ${e.href}`),e.href))})})}s(w0,"download");function Lk(e,t){return new Promise((r,n)=>{let o=(e.protocol==="https:"?Dk:Mk).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});typeof o.setTimeout=="function"&&o.setTimeout(t.timeout),o.on("timeout",()=>{o.abort()}),o.on("error",n),o.once("response",a=>{a.body=Buffer.alloc(0),a.on("data",u=>{a.body=Buffer.concat([a.body,Buffer.from(u)])}),a.on("error",n),a.on("end",()=>{r(a)})})})}s(Lk,"get")});var sf=m((R8,R0)=>{"use strict";var Fk=xg(),Vk=v0(),Bk=b0(),Hk=P0(),Uk=E0(),zk=I0();R0.exports=of;function of(e){nf(this,of.defaults),nf(this,e)}s(of,"$RefParserOptions");of.defaults={parse:{json:Fk,yaml:Vk,text:Bk,binary:Hk},resolve:{file:Uk,http:zk,external:!0},continueOnError:!1,dereference:{circular:!0}};function nf(e,t){if(k0(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],o=t[i],a=e[i];k0(o)?e[i]=nf(a||{},o):o!==void 0&&(e[i]=o)}}return e}s(nf,"merge");function k0(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}s(k0,"isMergeable")});var af=m((C8,C0)=>{"use strict";var T0=sf();C0.exports=Gk;function Gk(e){let t,r,n,i;return e=Array.prototype.slice.call(e),typeof e[e.length-1]=="function"&&(i=e.pop()),typeof e[0]=="string"?(t=e[0],typeof e[2]=="object"?(r=e[1],n=e[2]):(r=void 0,n=e[1])):(t="",r=e[0],n=e[1]),n instanceof T0||(n=new T0(n)),{path:t,schema:r,options:n,callback:i}}s(Gk,"normalizeArgs")});var q0=m((q8,N0)=>{"use strict";var uf=sf(),Zk=Ll(),Kk=Bl(),Wk=require("util");N0.exports=Ps;function Ps(e){uf.call(this,Ps.defaults),uf.apply(this,arguments)}s(Ps,"ParserOptions");Ps.defaults={validate:{schema:Zk,spec:Kk}};Wk.inherits(Ps,uf)});var M0=m((M8,j0)=>{"use strict";function Yk(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:s(function(t){setTimeout(t,0)},"next")}s(Yk,"makeNext");j0.exports=Yk()});var cf=m((L8,L0)=>{"use strict";var D0=M0();L0.exports=s(function(t,r){if(t){r.then(function(n){D0(function(){t(null,n)})},function(n){D0(function(){t(n)})});return}else return r},"maybe")});var zi=m((V8,B0)=>{"use strict";B0.exports=rr;var lf=jn(),ff=Ce(),{JSONParserError:Qk,InvalidPointerError:Jk,MissingPointerError:Xk,isHandledError:eR}=nt(),tR=/\//g,rR=/~/g,nR=/~1/g,iR=/~0/g;function rr(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}s(rr,"Pointer");rr.prototype.resolve=function(e,t,r){let n=rr.parse(this.path,this.originalPath);this.value=V0(e);for(let i=0;i<n.length;i++){if($s(this,t)&&(this.path=rr.join(this.path,n.slice(i))),typeof this.value=="object"&&this.value!==null&&"$ref"in this.value)return this;let o=n[i];if(this.value[o]===void 0||this.value[o]===null)throw this.value=null,new Xk(o,this.originalPath);this.value=this.value[o]}return(!this.value||this.value.$ref&&ff.resolve(this.path,this.value.$ref)!==r)&&$s(this,t),this};rr.prototype.set=function(e,t,r){let n=rr.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=V0(e);for(let o=0;o<n.length-1;o++)$s(this,r),i=n[o],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=F0(this,i,{});return $s(this,r),i=n[n.length-1],F0(this,i,t),e};rr.parse=function(e,t){let r=ff.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(nR,"/").replace(iR,"~"));if(r[0]!=="")throw new Jk(r,t===void 0?e:t);return r.slice(1)};rr.join=function(e,t){e.indexOf("#")===-1&&(e+="#"),t=Array.isArray(t)?t:[t];for(let r=0;r<t.length;r++){let n=t[r];e+="/"+encodeURIComponent(n.replace(rR,"~0").replace(tR,"~1"))}return e};function $s(e,t){if(lf.isAllowed$Ref(e.value,t)){let r=ff.resolve(e.path,e.value.$ref);if(r===e.path)e.circular=!0;else{let n=e.$ref.$refs._resolve(r,e.path,t);return e.indirections+=n.indirections+1,lf.isExtended$Ref(e.value)?(e.value=lf.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}s($s,"resolveIf$Ref");function F0(e,t,r){if(e.value&&typeof e.value=="object")t==="-"&&Array.isArray(e.value)?e.value.push(r):e.value[t]=r;else throw new Qk(`Error assigning $ref pointer "${e.path}".
47
+ Cannot set "${t}" of a non-object.`);return r}s(F0,"setValue");function V0(e){if(eR(e))throw e;return e}s(V0,"unwrapOrThrow")});var jn=m((H8,z0)=>{"use strict";z0.exports=Se;var U0=zi(),{InvalidPointerError:oR,isHandledError:sR,normalizeError:H0}=nt(),{safePointerToPath:aR,stripHash:uR,getHash:cR}=Ce();function Se(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}s(Se,"$Ref");Se.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(H0)):this.errors.push(H0(e))};Se.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};Se.prototype.get=function(e,t){return this.resolve(e,t).value};Se.prototype.resolve=function(e,t,r,n){let i=new U0(this,e,r);try{return i.resolve(this.value,t,n)}catch(o){if(!t||!t.continueOnError||!sR(o))throw o;return o.path===null&&(o.path=aR(cR(n))),o instanceof oR&&(o.source=uR(n)),this.addError(o),null}};Se.prototype.set=function(e,t){let r=new U0(this,e);this.value=r.set(this.value,t)};Se.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};Se.isExternal$Ref=function(e){return Se.is$Ref(e)&&e.$ref[0]!=="#"};Se.isAllowed$Ref=function(e,t){if(Se.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};Se.isExtended$Ref=function(e){return Se.is$Ref(e)&&Object.keys(e).length>1};Se.dereference=function(e,t){if(t&&typeof t=="object"&&Se.isExtended$Ref(e)){let r={};for(let n of Object.keys(e))n!=="$ref"&&(r[n]=e[n]);for(let n of Object.keys(t))n in r||(r[n]=t[n]);return r}else return t}});var W0=m((z8,K0)=>{"use strict";var{ono:G0}=Qe(),lR=jn(),nr=Ce();K0.exports=it;function it(){this.circular=!1,this._$refs={},this._root$Ref=null}s(it,"$Refs");it.prototype.paths=function(e){return Z0(this._$refs,arguments).map(r=>r.decoded)};it.prototype.values=function(e){let t=this._$refs;return Z0(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};it.prototype.toJSON=it.prototype.values;it.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};it.prototype.get=function(e,t){return this._resolve(e,"",t).value};it.prototype.set=function(e,t){let r=nr.resolve(this._root$Ref.path,e),n=nr.stripHash(r),i=this._$refs[n];if(!i)throw G0(`Error resolving $ref pointer "${e}".
48
+ "${n}" not found.`);i.set(r,t)};it.prototype._add=function(e){let t=nr.stripHash(e),r=new lR;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};it.prototype._resolve=function(e,t,r){let n=nr.resolve(this._root$Ref.path,e),i=nr.stripHash(n),o=this._$refs[i];if(!o)throw G0(`Error resolving $ref pointer "${e}".
49
+ "${i}" not found.`);return o.resolve(n,r,e,t)};it.prototype._get$Ref=function(e){e=nr.resolve(this._root$Ref.path,e);let t=nr.stripHash(e);return this._$refs[t]};function Z0(e,t){let r=Object.keys(e);return t=Array.isArray(t[0])?t[0]:Array.prototype.slice.call(t),t.length>0&&t[0]&&(r=r.filter(n=>t.indexOf(e[n].pathType)!==-1)),r.map(n=>({encoded:n,decoded:e[n].pathType==="file"?nr.toFileSystemPath(n,!0):n}))}s(Z0,"getPaths")});var Q0=m(Gi=>{"use strict";Gi.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};Gi.filter=function(e,t,r){return e.filter(n=>!!Y0(n,t,r))};Gi.sort=function(e){for(let t of e)t.order=t.order||Number.MAX_SAFE_INTEGER;return e.sort((t,r)=>t.order-r.order)};Gi.run=function(e,t,r,n){let i,o,a=0;return new Promise((u,c)=>{l();function l(){if(i=e[a++],!i)return c(o);try{let h=Y0(i,t,r,p,n);if(h&&typeof h.then=="function")h.then(f,d);else if(h!==void 0)f(h);else if(a===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(h){d(h)}}s(l,"runNextPlugin");function p(h,g){h?d(h):f(g)}s(p,"callback");function f(h){u({plugin:i,result:h})}s(f,"onSuccess");function d(h){o={plugin:i,error:h},l()}s(d,"onError")})};function Y0(e,t,r,n,i){let o=e[t];if(typeof o=="function")return o.apply(e,[r,n,i]);if(!n){if(o instanceof RegExp)return o.test(r.url);if(typeof o=="string")return o===r.extension;if(Array.isArray(o))return o.indexOf(r.extension)!==-1}return o}s(Y0,"getResult")});var df=m((W8,tv)=>{"use strict";var{ono:pf}=Qe(),J0=Ce(),ir=Q0(),{ResolverError:X0,ParserError:ev,UnmatchedParserError:fR,UnmatchedResolverError:pR,isHandledError:dR}=nt();tv.exports=hR;async function hR(e,t,r){e=J0.stripHash(e);let n=t._add(e),i={url:e,extension:J0.getExtension(e)};try{let o=await mR(i,r,t);n.pathType=o.plugin.name,i.data=o.result;let a=await gR(i,r,t);return n.value=a.result,a.result}catch(o){throw dR(o)&&(n.value=o),o}}s(hR,"parse");function mR(e,t,r){return new Promise((n,i)=>{let o=ir.all(t.resolve);o=ir.filter(o,"canRead",e),ir.sort(o),ir.run(o,"read",e,r).then(n,a);function a(u){!u&&t.continueOnError?i(new pR(e.url)):!u||!("error"in u)?i(pf.syntax(`Unable to resolve $ref pointer "${e.url}"`)):u.error instanceof X0?i(u.error):i(new X0(u,e.url))}s(a,"onError")})}s(mR,"readFile");function gR(e,t,r){return new Promise((n,i)=>{let o=ir.all(t.parse),a=ir.filter(o,"canParse",e),u=a.length>0?a:o;ir.sort(u),ir.run(u,"parse",e,r).then(c,l);function c(p){!p.plugin.allowEmpty&&yR(p.result)?i(pf.syntax(`Error parsing "${e.url}" as ${p.plugin.name}.
50
+ Parsed value is empty`)):n(p)}s(c,"onParsed");function l(p){!p&&t.continueOnError?i(new fR(e.url)):!p||!("error"in p)?i(pf.syntax(`Unable to parse ${e.url}`)):p.error instanceof ev?i(p.error):i(new ev(p.error.message,e.url))}s(l,"onError")})}s(gR,"parseFile");function yR(e){return e===void 0||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0||Buffer.isBuffer(e)&&e.length===0}s(yR,"isEmpty")});var ov=m((Q8,iv)=>{"use strict";var rv=jn(),vR=zi(),_R=df(),Zi=Ce(),{isHandledError:bR}=nt();iv.exports=SR;function SR(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=hf(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}s(SR,"resolveExternal");function hf(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(rv.isExternal$Ref(e))i.push(nv(e,t,r,n));else for(let o of Object.keys(e)){let a=vR.join(t,o),u=e[o];rv.isExternal$Ref(u)?i.push(nv(u,a,r,n)):i=i.concat(hf(u,a,r,n))}return i}s(hf,"crawl");async function nv(e,t,r,n){let i=Zi.resolve(t,e.$ref),o=Zi.stripHash(i);if(e=r._$refs[o],e)return Promise.resolve(e.value);try{let a=await _R(i,r,n),u=hf(a,o+"#",r,n);return Promise.all(u)}catch(a){if(!n.continueOnError||!bR(a))throw a;return r._$refs[o]&&(a.source=Zi.stripHash(t),a.path=Zi.safePointerToPath(Zi.getHash(t))),[]}}s(nv,"resolve$Ref")});var uv=m((X8,av)=>{"use strict";var Os=jn(),Ki=zi(),mf=Ce();av.exports=PR;function PR(e,t){let r=[];gf(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),$R(r)}s(PR,"bundle");function gf(e,t,r,n,i,o,a,u){let c=t===null?e:e[t];if(c&&typeof c=="object"&&!ArrayBuffer.isView(c))if(Os.isAllowed$Ref(c))sv(e,t,r,n,i,o,a,u);else{let l=Object.keys(c).sort((p,f)=>p==="definitions"?-1:f==="definitions"?1:p.length-f.length);for(let p of l){let f=Ki.join(r,p),d=Ki.join(n,p),h=c[p];Os.isAllowed$Ref(h)?sv(c,p,r,d,i,o,a,u):gf(c,p,f,d,i,o,a,u)}}}s(gf,"crawl");function sv(e,t,r,n,i,o,a,u){let c=t===null?e:e[t],l=mf.resolve(r,c.$ref),p=a._resolve(l,n,u);if(p===null)return;let f=Ki.parse(n).length,d=mf.stripHash(p.path),h=mf.getHash(p.path),g=d!==a._root$Ref.path,y=Os.isExtended$Ref(c);i+=p.indirections;let v=OR(o,e,t);if(v)if(f<v.depth||i<v.indirections)ER(o,v);else return;o.push({$ref:c,parent:e,key:t,pathFromRoot:n,depth:f,file:d,hash:h,value:p.value,circular:p.circular,extended:y,external:g,indirections:i}),v||gf(p.value,null,p.path,n,i+1,o,a,u)}s(sv,"inventory$Ref");function $R(e){e.sort((i,o)=>{if(i.file!==o.file)return i.file<o.file?-1:1;if(i.hash!==o.hash)return i.hash<o.hash?-1:1;if(i.circular!==o.circular)return i.circular?-1:1;if(i.extended!==o.extended)return i.extended?1:-1;if(i.indirections!==o.indirections)return i.indirections-o.indirections;if(i.depth!==o.depth)return i.depth-o.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),u=o.pathFromRoot.lastIndexOf("/definitions");return a!==u?u-a:i.pathFromRoot.length-o.pathFromRoot.length}});let t,r,n;for(let i of e)i.external?i.file===t&&i.hash===r?i.$ref.$ref=n:i.file===t&&i.hash.indexOf(r+"/")===0?i.$ref.$ref=Ki.join(n,Ki.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=Os.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}s($R,"remap");function OR(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}s(OR,"findInInventory");function ER(e,t){let r=e.indexOf(t);e.splice(r,1)}s(ER,"removeFromInventory")});var _f=m((tD,pv)=>{"use strict";var yf=jn(),cv=zi(),{ono:xR}=Qe(),wR=Ce();pv.exports=AR;function AR(e,t){let r=vf(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}s(AR,"dereference");function vf(e,t,r,n,i,o){let a,u={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),yf.isAllowed$Ref(e,o))a=lv(e,t,r,n,i,o),u.circular=a.circular,u.value=a.value;else for(let c of Object.keys(e)){let l=cv.join(t,c),p=cv.join(r,c),f=e[c],d=!1;yf.isAllowed$Ref(f,o)?(a=lv(f,l,p,n,i,o),d=a.circular,e[c]!==a.value&&(e[c]=a.value)):n.indexOf(f)===-1?(a=vf(f,l,p,n,i,o),d=a.circular,e[c]!==a.value&&(e[c]=a.value)):d=fv(l,i,o),u.circular=u.circular||d}n.pop()}return u}s(vf,"crawl");function lv(e,t,r,n,i,o){let a=wR.resolve(t,e.$ref),u=i._resolve(a,t,o);if(u===null)return{circular:!1,value:null};let c=u.circular,l=c||n.indexOf(u.value)!==-1;l&&fv(t,i,o);let p=yf.dereference(e,u.value);if(!l){let f=vf(p,u.path,r,n,i,o);l=f.circular,p=f.value}return l&&!c&&o.dereference.circular==="ignore"&&(p=e),c&&(p.$ref=r),{circular:l,value:p}}s(lv,"dereference$Ref");function fv(e,t,r){if(t.circular=!0,!r.dereference.circular)throw xR.reference(`Circular $ref pointer found at ${e}`);return!0}s(fv,"foundCircularReference")});var gv=m((nD,bt)=>{"use strict";var mv=W0(),IR=df(),Es=af(),kR=ov(),RR=uv(),TR=_f(),Mn=Ce(),{JSONParserError:CR,InvalidPointerError:NR,MissingPointerError:qR,ResolverError:jR,ParserError:MR,UnmatchedParserError:DR,UnmatchedResolverError:LR,isHandledError:FR,JSONParserErrorGroup:dv}=nt(),ot=cf(),{ono:hv}=Qe();bt.exports=_t;bt.exports.default=_t;bt.exports.JSONParserError=CR;bt.exports.InvalidPointerError=NR;bt.exports.MissingPointerError=qR;bt.exports.ResolverError=jR;bt.exports.ParserError=MR;bt.exports.UnmatchedParserError=DR;bt.exports.UnmatchedResolverError=LR;function _t(){this.schema=null,this.$refs=new mv}s(_t,"$RefParser");_t.parse=s(function(t,r,n,i){let o=this,a=new o;return a.parse.apply(a,arguments)},"parse");_t.prototype.parse=s(async function(t,r,n,i){let o=Es(arguments),a;if(!o.path&&!o.schema){let l=hv(`Expected a file path, URL, or object. Got ${o.path||o.schema}`);return ot(o.callback,Promise.reject(l))}this.schema=null,this.$refs=new mv;let u="http";if(Mn.isFileSystemPath(o.path)&&(o.path=Mn.fromFileSystemPath(o.path),u="file"),o.path=Mn.resolve(Mn.cwd(),o.path),o.schema&&typeof o.schema=="object"){let l=this.$refs._add(o.path);l.value=o.schema,l.pathType=u,a=Promise.resolve(o.schema)}else a=IR(o.path,this.$refs,o.options);let c=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return c.schema=l,ot(o.callback,Promise.resolve(c.schema));if(o.options.continueOnError)return c.schema=null,ot(o.callback,Promise.resolve(c.schema));throw hv.syntax(`"${c.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!o.options.continueOnError||!FR(l)?ot(o.callback,Promise.reject(l)):(this.$refs._$refs[Mn.stripHash(o.path)]&&this.$refs._$refs[Mn.stripHash(o.path)].addError(l),ot(o.callback,Promise.resolve(null)))}},"parse");_t.resolve=s(function(t,r,n,i){let o=this,a=new o;return a.resolve.apply(a,arguments)},"resolve");_t.prototype.resolve=s(async function(t,r,n,i){let o=this,a=Es(arguments);try{return await this.parse(a.path,a.schema,a.options),await kR(o,a.options),bf(o),ot(a.callback,Promise.resolve(o.$refs))}catch(u){return ot(a.callback,Promise.reject(u))}},"resolve");_t.bundle=s(function(t,r,n,i){let o=this,a=new o;return a.bundle.apply(a,arguments)},"bundle");_t.prototype.bundle=s(async function(t,r,n,i){let o=this,a=Es(arguments);try{return await this.resolve(a.path,a.schema,a.options),RR(o,a.options),bf(o),ot(a.callback,Promise.resolve(o.schema))}catch(u){return ot(a.callback,Promise.reject(u))}},"bundle");_t.dereference=s(function(t,r,n,i){let o=this,a=new o;return a.dereference.apply(a,arguments)},"dereference");_t.prototype.dereference=s(async function(t,r,n,i){let o=this,a=Es(arguments);try{return await this.resolve(a.path,a.schema,a.options),TR(o,a.options),bf(o),ot(a.callback,Promise.resolve(o.schema))}catch(u){return ot(a.callback,Promise.reject(u))}},"dereference");function bf(e){if(dv.getParserErrors(e).length>0)throw new dv(e)}s(bf,"finalize")});var Sv=m((oD,bv)=>{"use strict";var VR=Ll(),BR=Bl(),yv=af(),vv=$o(),_v=q0(),xs=cf(),{ono:st}=Qe(),Dr=gv(),HR=_f();bv.exports=St;function St(){Dr.apply(this,arguments)}s(St,"SwaggerParser");vv.inherits(St,Dr);St.parse=Dr.parse;St.resolve=Dr.resolve;St.bundle=Dr.bundle;St.dereference=Dr.dereference;Object.defineProperty(St.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});St.prototype.parse=async function(e,t,r,n){let i=yv(arguments);i.options=new _v(i.options);try{let o=await Dr.prototype.parse.call(this,i.path,i.schema,i.options);if(o.swagger){if(o.swagger===void 0||o.info===void 0||o.paths===void 0)throw st.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof o.swagger=="number")throw st.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof o.info.version=="number")throw st.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(o.swagger!=="2.0")throw st.syntax(`Unrecognized Swagger version: ${o.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(o.openapi===void 0||o.info===void 0)throw st.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(o.paths===void 0)if(o.openapi==="3.1.0"){if(o.webhooks===void 0)throw st.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw st.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof o.openapi=="number")throw st.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof o.info.version=="number")throw st.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(o.openapi)===-1)throw st.syntax(`Unsupported OpenAPI version: ${o.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}vv.fixOasRelativeServers(o,i.path)}return xs(i.callback,Promise.resolve(o))}catch(o){return xs(i.callback,Promise.reject(o))}};St.validate=function(e,t,r,n){let i=this,o=new i;return o.validate.apply(o,arguments)};St.prototype.validate=async function(e,t,r,n){let i=this,o=yv(arguments);o.options=new _v(o.options);let a=o.options.dereference.circular;o.options.validate.schema&&(o.options.dereference.circular="ignore");try{if(await this.dereference(o.path,o.schema,o.options),o.options.dereference.circular=a,o.options.validate.schema&&(VR(i.api),i.$refs.circular)){if(a===!0)HR(i,o.options);else if(a===!1)throw st.reference("The API contains circular references")}return o.options.validate.spec&&BR(i.api),xs(o.callback,Promise.resolve(i.schema))}catch(u){return xs(o.callback,Promise.reject(u))}}});var Oe=m(qe=>{"use strict";qe.__esModule=!0;qe.extend=L_;qe.indexOf=UT;qe.escapeExpression=zT;qe.isEmpty=GT;qe.createFrame=ZT;qe.blockParams=KT;qe.appendContextPath=WT;var FT={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},VT=/[&<>"'`=]/g,BT=/[&<>"'`=]/;function HT(e){return FT[e]}s(HT,"escapeChar");function L_(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}s(L_,"extend");var Yf=Object.prototype.toString;qe.toString=Yf;var Wf=s(function(t){return typeof t=="function"},"isFunction");Wf(/x/)&&(qe.isFunction=Wf=s(function(e){return typeof e=="function"&&Yf.call(e)==="[object Function]"},"isFunction"));qe.isFunction=Wf;var F_=Array.isArray||function(e){return e&&typeof e=="object"?Yf.call(e)==="[object Array]":!1};qe.isArray=F_;function UT(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}s(UT,"indexOf");function zT(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return BT.test(e)?e.replace(VT,HT):e}s(zT,"escapeExpression");function GT(e){return!e&&e!==0?!0:!!(F_(e)&&e.length===0)}s(GT,"isEmpty");function ZT(e){var t=L_({},e);return t._parent=e,t}s(ZT,"createFrame");function KT(e,t){return e.path=t,e}s(KT,"blockParams");function WT(e,t){return(e?e+".":"")+t}s(WT,"appendContextPath")});var Ze=m((Zs,V_)=>{"use strict";Zs.__esModule=!0;var Qf=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Jf(e,t){var r=t&&t.loc,n=void 0,i=void 0,o=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,o=r.start.column,a=r.end.column,e+=" - "+n+":"+o);for(var u=Error.prototype.constructor.call(this,e),c=0;c<Qf.length;c++)this[Qf[c]]=u[Qf[c]];Error.captureStackTrace&&Error.captureStackTrace(this,Jf);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:o,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=o,this.endColumn=a))}catch{}}s(Jf,"Exception");Jf.prototype=new Error;Zs.default=Jf;V_.exports=Zs.default});var H_=m((Ks,B_)=>{"use strict";Ks.__esModule=!0;var Xf=Oe();Ks.default=function(e){e.registerHelper("blockHelperMissing",function(t,r){var n=r.inverse,i=r.fn;if(t===!0)return i(this);if(t===!1||t==null)return n(this);if(Xf.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):n(this);if(r.data&&r.ids){var o=Xf.createFrame(r.data);o.contextPath=Xf.appendContextPath(r.data.contextPath,r.name),r={data:o}}return i(t,r)})};B_.exports=Ks.default});var z_=m((Ws,U_)=>{"use strict";Ws.__esModule=!0;function YT(e){return e&&e.__esModule?e:{default:e}}s(YT,"_interopRequireDefault");var uo=Oe(),QT=Ze(),JT=YT(QT);Ws.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new JT.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,o=0,a="",u=void 0,c=void 0;r.data&&r.ids&&(c=uo.appendContextPath(r.data.contextPath,r.ids[0])+"."),uo.isFunction(t)&&(t=t.call(this)),r.data&&(u=uo.createFrame(r.data));function l(g,y,v){u&&(u.key=g,u.index=y,u.first=y===0,u.last=!!v,c&&(u.contextPath=c+g)),a=a+n(t[g],{data:u,blockParams:uo.blockParams([t[g],g],[c+g,null])})}if(s(l,"execIteration"),t&&typeof t=="object")if(uo.isArray(t))for(var p=t.length;o<p;o++)o in t&&l(o,o,o===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var f=[],d=t[Symbol.iterator](),h=d.next();!h.done;h=d.next())f.push(h.value);t=f;for(var p=t.length;o<p;o++)l(o,o,o===t.length-1)}else(function(){var g=void 0;Object.keys(t).forEach(function(y){g!==void 0&&l(g,o-1),g=y,o++}),g!==void 0&&l(g,o-1,!0)})();return o===0&&(a=i(this)),a})};U_.exports=Ws.default});var Z_=m((Ys,G_)=>{"use strict";Ys.__esModule=!0;function XT(e){return e&&e.__esModule?e:{default:e}}s(XT,"_interopRequireDefault");var e3=Ze(),t3=XT(e3);Ys.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new t3.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};G_.exports=Ys.default});var Q_=m((Qs,Y_)=>{"use strict";Qs.__esModule=!0;function r3(e){return e&&e.__esModule?e:{default:e}}s(r3,"_interopRequireDefault");var K_=Oe(),n3=Ze(),W_=r3(n3);Qs.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new W_.default("#if requires exactly one argument");return K_.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||K_.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new W_.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};Y_.exports=Qs.default});var X_=m((Js,J_)=>{"use strict";Js.__esModule=!0;Js.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],r=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var i=1;r.hash.level!=null?i=r.hash.level:r.data&&r.data.level!=null&&(i=r.data.level),t[0]=i,e.log.apply(e,t)})};J_.exports=Js.default});var tb=m((Xs,eb)=>{"use strict";Xs.__esModule=!0;Xs.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};eb.exports=Xs.default});var nb=m((ea,rb)=>{"use strict";ea.__esModule=!0;function i3(e){return e&&e.__esModule?e:{default:e}}s(i3,"_interopRequireDefault");var co=Oe(),o3=Ze(),s3=i3(o3);ea.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new s3.default("#with requires exactly one argument");co.isFunction(t)&&(t=t.call(this));var n=r.fn;if(co.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=co.createFrame(r.data),i.contextPath=co.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:co.blockParams([t],[i&&i.contextPath])})})};rb.exports=ea.default});var ep=m(ta=>{"use strict";ta.__esModule=!0;ta.registerDefaultHelpers=S3;ta.moveHelperToHooks=P3;function Ur(e){return e&&e.__esModule?e:{default:e}}s(Ur,"_interopRequireDefault");var a3=H_(),u3=Ur(a3),c3=z_(),l3=Ur(c3),f3=Z_(),p3=Ur(f3),d3=Q_(),h3=Ur(d3),m3=X_(),g3=Ur(m3),y3=tb(),v3=Ur(y3),_3=nb(),b3=Ur(_3);function S3(e){u3.default(e),l3.default(e),p3.default(e),h3.default(e),g3.default(e),v3.default(e),b3.default(e)}s(S3,"registerDefaultHelpers");function P3(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}s(P3,"moveHelperToHooks")});var ob=m((ra,ib)=>{"use strict";ra.__esModule=!0;var $3=Oe();ra.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var o=t;return r.partials||(r.partials={},o=s(function(a,u){var c=n.partials;n.partials=$3.extend({},c,r.partials);var l=t(a,u);return n.partials=c,l},"ret")),r.partials[i.args[0]]=i.fn,o})};ib.exports=ra.default});var sb=m(tp=>{"use strict";tp.__esModule=!0;tp.registerDefaultDecorators=w3;function O3(e){return e&&e.__esModule?e:{default:e}}s(O3,"_interopRequireDefault");var E3=ob(),x3=O3(E3);function w3(e){x3.default(e)}s(w3,"registerDefaultDecorators")});var rp=m((na,ab)=>{"use strict";na.__esModule=!0;var A3=Oe(),Gn={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:s(function(t){if(typeof t=="string"){var r=A3.indexOf(Gn.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:s(function(t){if(t=Gn.lookupLevel(t),typeof console<"u"&&Gn.lookupLevel(Gn.level)<=t){var r=Gn.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];console[r].apply(console,i)}},"log")};na.default=Gn;ab.exports=na.default});var ub=m(np=>{"use strict";np.__esModule=!0;np.createNewLookupObject=k3;var I3=Oe();function k3(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return I3.extend.apply(void 0,[Object.create(null)].concat(t))}s(k3,"createNewLookupObject")});var ip=m(lo=>{"use strict";lo.__esModule=!0;lo.createProtoAccessControl=N3;lo.resultIsAllowed=q3;lo.resetLoggedProperties=M3;function R3(e){return e&&e.__esModule?e:{default:e}}s(R3,"_interopRequireDefault");var cb=ub(),T3=rp(),C3=R3(T3),ia=Object.create(null);function N3(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var r=Object.create(null);return r.__proto__=!1,{properties:{whitelist:cb.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:cb.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}s(N3,"createProtoAccessControl");function q3(e,t,r){return lb(typeof e=="function"?t.methods:t.properties,r)}s(q3,"resultIsAllowed");function lb(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(j3(t),!1)}s(lb,"checkWhiteList");function j3(e){ia[e]!==!0&&(ia[e]=!0,C3.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
51
+ 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`))}s(j3,"logUnexpecedPropertyAccessOnce");function M3(){Object.keys(ia).forEach(function(e){delete ia[e]})}s(M3,"resetLoggedProperties")});var sa=m(It=>{"use strict";It.__esModule=!0;It.HandlebarsEnvironment=ap;function fb(e){return e&&e.__esModule?e:{default:e}}s(fb,"_interopRequireDefault");var zr=Oe(),D3=Ze(),op=fb(D3),L3=ep(),F3=sb(),V3=rp(),oa=fb(V3),B3=ip(),H3="4.7.8";It.VERSION=H3;var U3=8;It.COMPILER_REVISION=U3;var z3=7;It.LAST_COMPATIBLE_COMPILER_REVISION=z3;var G3={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};It.REVISION_CHANGES=G3;var sp="[object Object]";function ap(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},L3.registerDefaultHelpers(this),F3.registerDefaultDecorators(this)}s(ap,"HandlebarsEnvironment");ap.prototype={constructor:ap,logger:oa.default,log:oa.default.log,registerHelper:s(function(t,r){if(zr.toString.call(t)===sp){if(r)throw new op.default("Arg not supported with multiple helpers");zr.extend(this.helpers,t)}else this.helpers[t]=r},"registerHelper"),unregisterHelper:s(function(t){delete this.helpers[t]},"unregisterHelper"),registerPartial:s(function(t,r){if(zr.toString.call(t)===sp)zr.extend(this.partials,t);else{if(typeof r>"u")throw new op.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},"registerPartial"),unregisterPartial:s(function(t){delete this.partials[t]},"unregisterPartial"),registerDecorator:s(function(t,r){if(zr.toString.call(t)===sp){if(r)throw new op.default("Arg not supported with multiple decorators");zr.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:s(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:s(function(){B3.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Z3=oa.default.log;It.log=Z3;It.createFrame=zr.createFrame;It.logger=oa.default});var db=m((aa,pb)=>{"use strict";aa.__esModule=!0;function up(e){this.string=e}s(up,"SafeString");up.prototype.toString=up.prototype.toHTML=function(){return""+this.string};aa.default=up;pb.exports=aa.default});var hb=m(cp=>{"use strict";cp.__esModule=!0;cp.wrapHelper=K3;function K3(e,t){if(typeof e!="function")return e;var r=s(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=t(i),e.apply(this,arguments)},"wrapper");return r}s(K3,"wrapHelper")});var _b=m(mr=>{"use strict";mr.__esModule=!0;mr.checkRevision=eC;mr.template=tC;mr.wrapProgram=ua;mr.resolvePartial=rC;mr.invokePartial=nC;mr.noop=yb;function W3(e){return e&&e.__esModule?e:{default:e}}s(W3,"_interopRequireDefault");function Y3(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}s(Y3,"_interopRequireWildcard");var Q3=Oe(),Dt=Y3(Q3),J3=Ze(),Lt=W3(J3),Ft=sa(),mb=ep(),X3=hb(),gb=ip();function eC(e){var t=e&&e[0]||1,r=Ft.COMPILER_REVISION;if(!(t>=Ft.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Ft.COMPILER_REVISION))if(t<Ft.LAST_COMPATIBLE_COMPILER_REVISION){var n=Ft.REVISION_CHANGES[r],i=Ft.REVISION_CHANGES[t];throw new Lt.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+i+").")}else throw new Lt.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}s(eC,"checkRevision");function tC(e,t){if(!t)throw new Lt.default("No environment passed to template");if(!e||!e.main)throw new Lt.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&e.compiler[0]===7;function n(a,u,c){c.hash&&(u=Dt.extend({},u,c.hash),c.ids&&(c.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,u,c);var l=Dt.extend({},c,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),p=t.VM.invokePartial.call(this,a,u,l);if(p==null&&t.compile&&(c.partials[c.name]=t.compile(a,e.compilerOptions,t),p=c.partials[c.name](u,l)),p!=null){if(c.indent){for(var f=p.split(`
53
+ `),d=0,h=f.length;d<h&&!(!f[d]&&d+1===h);d++)f[d]=c.indent+f[d];p=f.join(`
54
+ `)}return p}else throw new Lt.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}s(n,"invokePartialWrapper");var i={strict:s(function(u,c,l){if(!u||!(c in u))throw new Lt.default('"'+c+'" not defined in '+u,{loc:l});return i.lookupProperty(u,c)},"strict"),lookupProperty:s(function(u,c){var l=u[c];if(l==null||Object.prototype.hasOwnProperty.call(u,c)||gb.resultIsAllowed(l,i.protoAccessControl,c))return l},"lookupProperty"),lookup:s(function(u,c){for(var l=u.length,p=0;p<l;p++){var f=u[p]&&i.lookupProperty(u[p],c);if(f!=null)return u[p][c]}},"lookup"),lambda:s(function(u,c){return typeof u=="function"?u.call(c):u},"lambda"),escapeExpression:Dt.escapeExpression,invokePartial:n,fn:s(function(u){var c=e[u];return c.decorator=e[u+"_d"],c},"fn"),programs:[],program:s(function(u,c,l,p,f){var d=this.programs[u],h=this.fn(u);return c||f||p||l?d=ua(this,u,h,c,l,p,f):d||(d=this.programs[u]=ua(this,u,h)),d},"program"),data:s(function(u,c){for(;u&&c--;)u=u._parent;return u},"data"),mergeIfNeeded:s(function(u,c){var l=u||c;return u&&c&&u!==c&&(l=Dt.extend({},c,u)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function o(a){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=u.data;o._setup(u),!u.partial&&e.useData&&(c=iC(a,c));var l=void 0,p=e.useBlockParams?[]:void 0;e.useDepths&&(u.depths?l=a!=u.depths[0]?[a].concat(u.depths):u.depths:l=[a]);function f(d){return""+e.main(i,d,i.helpers,i.partials,c,p,l)}return s(f,"main"),f=vb(e.main,f,i,u.depths||[],c,p),f(a,u)}return s(o,"ret"),o.isTop=!0,o._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var u=Dt.extend({},t.helpers,a.helpers);oC(u,i),i.helpers=u,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=Dt.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=gb.createProtoAccessControl(a);var c=a.allowCallsToHelperMissing||r;mb.moveHelperToHooks(i,"helperMissing",c),mb.moveHelperToHooks(i,"blockHelperMissing",c)}},o._child=function(a,u,c,l){if(e.useBlockParams&&!c)throw new Lt.default("must pass block params");if(e.useDepths&&!l)throw new Lt.default("must pass parent depths");return ua(i,a,e[a],u,0,c,l)},o}s(tC,"template");function ua(e,t,r,n,i,o,a){function u(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=a;return a&&c!=a[0]&&!(c===e.nullContext&&a[0]===null)&&(p=[c].concat(a)),r(e,c,e.helpers,e.partials,l.data||n,o&&[l.blockParams].concat(o),p)}return s(u,"prog"),u=vb(r,u,e,a,n,o),u.program=t,u.depth=a?a.length:0,u.blockParams=i||0,u}s(ua,"wrapProgram");function rC(e,t,r){return e?!e.call&&!r.name&&(r.name=e,e=r.partials[e]):r.name==="@partial-block"?e=r.data["partial-block"]:e=r.partials[r.name],e}s(rC,"resolvePartial");function nC(e,t,r){var n=r.data&&r.data["partial-block"];r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var i=void 0;if(r.fn&&r.fn!==yb&&function(){r.data=Ft.createFrame(r.data);var o=r.fn;i=r.data["partial-block"]=s(function(u){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=Ft.createFrame(c.data),c.data["partial-block"]=n,o(u,c)},"partialBlockWrapper"),o.partials&&(r.partials=Dt.extend({},r.partials,o.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new Lt.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}s(nC,"invokePartial");function yb(){return""}s(yb,"noop");function iC(e,t){return(!t||!("root"in t))&&(t=t?Ft.createFrame(t):{},t.root=e),t}s(iC,"initData");function vb(e,t,r,n,i,o){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,o,n),Dt.extend(t,a)}return t}s(vb,"executeDecorators");function oC(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=sC(n,t)})}s(oC,"wrapHelpersToPassLookupProperty");function sC(e,t){var r=t.lookupProperty;return X3.wrapHelper(e,function(n){return Dt.extend({lookupProperty:r},n)})}s(sC,"passLookupPropertyOption")});var lp=m((ca,bb)=>{"use strict";ca.__esModule=!0;ca.default=function(e){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var t=globalThis.Handlebars;e.noConflict=function(){return globalThis.Handlebars===e&&(globalThis.Handlebars=t),e}};bb.exports=ca.default});var Eb=m((la,Ob)=>{"use strict";la.__esModule=!0;function pp(e){return e&&e.__esModule?e:{default:e}}s(pp,"_interopRequireDefault");function dp(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}s(dp,"_interopRequireWildcard");var aC=sa(),Sb=dp(aC),uC=db(),cC=pp(uC),lC=Ze(),fC=pp(lC),pC=Oe(),fp=dp(pC),dC=_b(),Pb=dp(dC),hC=lp(),mC=pp(hC);function $b(){var e=new Sb.HandlebarsEnvironment;return fp.extend(e,Sb),e.SafeString=cC.default,e.Exception=fC.default,e.Utils=fp,e.escapeExpression=fp.escapeExpression,e.VM=Pb,e.template=function(t){return Pb.template(t,e)},e}s($b,"create");var fo=$b();fo.create=$b;mC.default(fo);fo.default=fo;la.default=fo;Ob.exports=la.default});var hp=m((fa,wb)=>{"use strict";fa.__esModule=!0;var xb={helpers:{helperExpression:s(function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},"helperExpression"),scopedId:s(function(t){return/^\.|this\b/.test(t.original)},"scopedId"),simpleId:s(function(t){return t.parts.length===1&&!xb.helpers.scopedId(t)&&!t.depth},"simpleId")}};fa.default=xb;wb.exports=fa.default});var Ib=m((pa,Ab)=>{"use strict";pa.__esModule=!0;var gC=function(){var e={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:s(function(i,o,a,u,c,l,p){var f=l.length-1;switch(c){case 1:return l[f-1];case 2:this.$=u.prepareProgram(l[f]);break;case 3:this.$=l[f];break;case 4:this.$=l[f];break;case 5:this.$=l[f];break;case 6:this.$=l[f];break;case 7:this.$=l[f];break;case 8:this.$=l[f];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(l[f]),strip:u.stripFlags(l[f],l[f]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[f],value:l[f],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(l[f-2],l[f-1],l[f],this._$);break;case 12:this.$={path:l[f-3],params:l[f-2],hash:l[f-1]};break;case 13:this.$=u.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!1,this._$);break;case 14:this.$=u.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!0,this._$);break;case 15:this.$={open:l[f-5],path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 16:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 17:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 18:this.$={strip:u.stripFlags(l[f-1],l[f-1]),program:l[f]};break;case 19:var d=u.prepareBlock(l[f-2],l[f-1],l[f],l[f],!1,this._$),h=u.prepareProgram([d],l[f-1].loc);h.chained=!0,this.$={strip:l[f-2].strip,program:h,chain:!0};break;case 20:this.$=l[f];break;case 21:this.$={path:l[f-1],strip:u.stripFlags(l[f-2],l[f])};break;case 22:this.$=u.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],u.stripFlags(l[f-4],l[f]),this._$);break;case 23:this.$=u.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],u.stripFlags(l[f-4],l[f]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[f-3],params:l[f-2],hash:l[f-1],indent:"",strip:u.stripFlags(l[f-4],l[f]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(l[f-2],l[f-1],l[f],this._$);break;case 26:this.$={path:l[f-3],params:l[f-2],hash:l[f-1],strip:u.stripFlags(l[f-4],l[f])};break;case 27:this.$=l[f];break;case 28:this.$=l[f];break;case 29:this.$={type:"SubExpression",path:l[f-3],params:l[f-2],hash:l[f-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[f],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(l[f-2]),value:l[f],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(l[f-1]);break;case 33:this.$=l[f];break;case 34:this.$=l[f];break;case 35:this.$={type:"StringLiteral",value:l[f],original:l[f],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[f]),original:Number(l[f]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[f]==="true",original:l[f]==="true",loc:u.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:u.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:u.locInfo(this._$)};break;case 40:this.$=l[f];break;case 41:this.$=l[f];break;case 42:this.$=u.preparePath(!0,l[f],this._$);break;case 43:this.$=u.preparePath(!1,l[f],this._$);break;case 44:l[f-2].push({part:u.id(l[f]),original:l[f],separator:l[f-1]}),this.$=l[f-2];break;case 45:this.$=[{part:u.id(l[f]),original:l[f]}];break;case 46:this.$=[];break;case 47:l[f-1].push(l[f]);break;case 48:this.$=[];break;case 49:l[f-1].push(l[f]);break;case 50:this.$=[];break;case 51:l[f-1].push(l[f]);break;case 58:this.$=[];break;case 59:l[f-1].push(l[f]);break;case 64:this.$=[];break;case 65:l[f-1].push(l[f]);break;case 70:this.$=[];break;case 71:l[f-1].push(l[f]);break;case 78:this.$=[];break;case 79:l[f-1].push(l[f]);break;case 82:this.$=[];break;case 83:l[f-1].push(l[f]);break;case 86:this.$=[];break;case 87:l[f-1].push(l[f]);break;case 90:this.$=[];break;case 91:l[f-1].push(l[f]);break;case 94:this.$=[];break;case 95:l[f-1].push(l[f]);break;case 98:this.$=[l[f]];break;case 99:l[f-1].push(l[f]);break;case 100:this.$=[l[f]];break;case 101:l[f-1].push(l[f]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:s(function(i,o){throw new Error(i)},"parseError"),parse:s(function(i){var o=this,a=[0],u=[null],c=[],l=this.table,p="",f=0,d=0,h=0,g=2,y=1;this.lexer.setInput(i),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var v=this.lexer.yylloc;c.push(v);var _=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function b(ft){a.length=a.length-2*ft,u.length=u.length-ft,c.length=c.length-ft}s(b,"popStack");function S(){var ft;return ft=o.lexer.lex()||1,typeof ft!="number"&&(ft=o.symbols_[ft]||ft),ft}s(S,"lex");for(var E,$,M,j,ie,oe,le={},Me,Ee,Bt,Jr;;){if(M=a[a.length-1],this.defaultActions[M]?j=this.defaultActions[M]:((E===null||typeof E>"u")&&(E=S()),j=l[M]&&l[M][E]),typeof j>"u"||!j.length||!j[0]){var ka="";if(!h){Jr=[];for(Me in l[M])this.terminals_[Me]&&Me>2&&Jr.push("'"+this.terminals_[Me]+"'");this.lexer.showPosition?ka="Parse error on line "+(f+1)+`:
55
+ `+this.lexer.showPosition()+`
56
+ Expecting `+Jr.join(", ")+", got '"+(this.terminals_[E]||E)+"'":ka="Parse error on line "+(f+1)+": Unexpected "+(E==1?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(ka,{text:this.lexer.match,token:this.terminals_[E]||E,line:this.lexer.yylineno,loc:v,expected:Jr})}}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+E);switch(j[0]){case 1:a.push(E),u.push(this.lexer.yytext),c.push(this.lexer.yylloc),a.push(j[1]),E=null,$?(E=$,$=null):(d=this.lexer.yyleng,p=this.lexer.yytext,f=this.lexer.yylineno,v=this.lexer.yylloc,h>0&&h--);break;case 2:if(Ee=this.productions_[j[1]][1],le.$=u[u.length-Ee],le._$={first_line:c[c.length-(Ee||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Ee||1)].first_column,last_column:c[c.length-1].last_column},_&&(le._$.range=[c[c.length-(Ee||1)].range[0],c[c.length-1].range[1]]),oe=this.performAction.call(le,p,d,f,this.yy,j[1],u,c),typeof oe<"u")return oe;Ee&&(a=a.slice(0,-1*Ee*2),u=u.slice(0,-1*Ee),c=c.slice(0,-1*Ee)),a.push(this.productions_[j[1]][0]),u.push(le.$),c.push(le._$),Bt=l[a[a.length-2]][a[a.length-1]],a.push(Bt);break;case 3:return!0}}return!0},"parse")},t=function(){var n={EOF:1,parseError:s(function(o,a){if(this.yy.parser)this.yy.parser.parseError(o,a);else throw new Error(o)},"parseError"),setInput:s(function(o){return this._input=o,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var a=o.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:s(function(o){var a=o.length,u=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===c.length?this.yylloc.first_column:0)+c[c.length-u.length].length-u[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-a]),this},"unput"),more:s(function(){return this._more=!0,this},"more"),less:s(function(o){this.unput(this.match.slice(o))},"less"),pastInput:s(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var o=this.pastInput(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
57
+ `+a+"^"},"showPosition"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,a,u,c,l,p;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),d=0;d<f.length&&(u=this._input.match(this.rules[f[d]]),!(u&&(!a||u[0].length>a[0].length)&&(a=u,c=d,!this.options.flex)));d++);return a?(p=a[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],o=this.performAction.call(this,this.yy,this,f[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
58
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var o=this.next();return typeof o<"u"?o:this.lex()},"lex"),begin:s(function(o){this.conditionStack.push(o)},"begin"),popState:s(function(){return this.conditionStack.pop()},"popState"),_currentRules:s(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:s(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:s(function(o){this.begin(o)},"begin")};return n.options={},n.performAction=s(function(o,a,u,c){function l(f,d){return a.yytext=a.yytext.substring(f,a.yyleng-d+f)}s(l,"strip");var p=c;switch(u){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();e.lexer=t;function r(){this.yy={}}return s(r,"Parser"),r.prototype=e,e.Parser=r,new r}();pa.default=gC;Ab.exports=pa.default});var ga=m((ma,Tb)=>{"use strict";ma.__esModule=!0;function yC(e){return e&&e.__esModule?e:{default:e}}s(yC,"_interopRequireDefault");var vC=Ze(),mp=yC(vC);function da(){this.parents=[]}s(da,"Visitor");da.prototype={constructor:da,mutating:!1,acceptKey:s(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!da.prototype[n.type])throw new mp.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+t.type);t[r]=n}},"acceptKey"),acceptRequired:s(function(t,r){if(this.acceptKey(t,r),!t[r])throw new mp.default(t.type+" requires "+r)},"acceptRequired"),acceptArray:s(function(t){for(var r=0,n=t.length;r<n;r++)this.acceptKey(t,r),t[r]||(t.splice(r,1),r--,n--)},"acceptArray"),accept:s(function(t){if(t){if(!this[t.type])throw new mp.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var r=this[t.type](t);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return t}},"accept"),Program:s(function(t){this.acceptArray(t.body)},"Program"),MustacheStatement:ha,Decorator:ha,BlockStatement:kb,DecoratorBlock:kb,PartialStatement:Rb,PartialBlockStatement:s(function(t){Rb.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:s(function(){},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:ha,PathExpression:s(function(){},"PathExpression"),StringLiteral:s(function(){},"StringLiteral"),NumberLiteral:s(function(){},"NumberLiteral"),BooleanLiteral:s(function(){},"BooleanLiteral"),UndefinedLiteral:s(function(){},"UndefinedLiteral"),NullLiteral:s(function(){},"NullLiteral"),Hash:s(function(t){this.acceptArray(t.pairs)},"Hash"),HashPair:s(function(t){this.acceptRequired(t,"value")},"HashPair")};function ha(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(ha,"visitSubExpression");function kb(e){ha.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}s(kb,"visitBlock");function Rb(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(Rb,"visitPartial");ma.default=da;Tb.exports=ma.default});var Nb=m((ya,Cb)=>{"use strict";ya.__esModule=!0;function _C(e){return e&&e.__esModule?e:{default:e}}s(_C,"_interopRequireDefault");var bC=ga(),SC=_C(bC);function kt(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}s(kt,"WhitespaceControl");kt.prototype=new SC.default;kt.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,o=n.length;i<o;i++){var a=n[i],u=this.accept(a);if(u){var c=gp(n,i,r),l=yp(n,i,r),p=u.openStandalone&&c,f=u.closeStandalone&&l,d=u.inlineStandalone&&c&&l;u.close&&Gr(n,i,!0),u.open&&gr(n,i,!0),t&&d&&(Gr(n,i),gr(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(Gr((a.program||a.inverse).body),gr(n,i)),t&&f&&(Gr(n,i),gr((a.inverse||a.program).body))}}return e};kt.prototype.BlockStatement=kt.prototype.DecoratorBlock=kt.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var o={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:yp(t.body),closeStandalone:gp((n||t).body)};if(e.openStrip.close&&Gr(t.body,null,!0),r){var a=e.inverseStrip;a.open&&gr(t.body,null,!0),a.close&&Gr(n.body,null,!0),e.closeStrip.open&&gr(i.body,null,!0),!this.options.ignoreStandalone&&gp(t.body)&&yp(n.body)&&(gr(t.body),Gr(n.body))}else e.closeStrip.open&&gr(t.body,null,!0);return o};kt.prototype.Decorator=kt.prototype.MustacheStatement=function(e){return e.strip};kt.prototype.PartialStatement=kt.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function gp(e,t,r){t===void 0&&(t=e.length);var n=e[t-1],i=e[t-2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}s(gp,"isPrevWhitespace");function yp(e,t,r){t===void 0&&(t=-1);var n=e[t+1],i=e[t+2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}s(yp,"isNextWhitespace");function Gr(e,t,r){var n=e[t==null?0:t+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}s(Gr,"omitRight");function gr(e,t,r){var n=e[t==null?e.length-1:t-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}s(gr,"omitLeft");ya.default=kt;Cb.exports=ya.default});var qb=m(Ke=>{"use strict";Ke.__esModule=!0;Ke.SourceLocation=OC;Ke.id=EC;Ke.stripFlags=xC;Ke.stripComment=wC;Ke.preparePath=AC;Ke.prepareMustache=IC;Ke.prepareRawBlock=kC;Ke.prepareBlock=RC;Ke.prepareProgram=TC;Ke.preparePartialBlock=CC;function PC(e){return e&&e.__esModule?e:{default:e}}s(PC,"_interopRequireDefault");var $C=Ze(),vp=PC($C);function _p(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new vp.default(e.path.original+" doesn't match "+t,r)}}s(_p,"validateClose");function OC(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}s(OC,"SourceLocation");function EC(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}s(EC,"id");function xC(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}s(xC,"stripFlags");function wC(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}s(wC,"stripComment");function AC(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],o=0,a=0,u=t.length;a<u;a++){var c=t[a].part,l=t[a].original!==c;if(n+=(t[a].separator||"")+c,!l&&(c===".."||c==="."||c==="this")){if(i.length>0)throw new vp.default("Invalid path: "+n,{loc:r});c===".."&&o++}else i.push(c)}return{type:"PathExpression",data:e,depth:o,parts:i,original:n,loc:r}}s(AC,"preparePath");function IC(e,t,r,n,i,o){var a=n.charAt(3)||n.charAt(2),u=a!=="{"&&a!=="&",c=/\*/.test(n);return{type:c?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:u,strip:i,loc:this.locInfo(o)}}s(IC,"prepareMustache");function kC(e,t,r,n){_p(e,r),n=this.locInfo(n);var i={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}s(kC,"prepareRawBlock");function RC(e,t,r,n,i,o){n&&n.path&&_p(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var u=void 0,c=void 0;if(r){if(a)throw new vp.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),c=r.strip,u=r.program}return i&&(i=u,u=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:u,openStrip:e.strip,inverseStrip:c,closeStrip:n&&n.strip,loc:this.locInfo(o)}}s(RC,"prepareBlock");function TC(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}s(TC,"prepareProgram");function CC(e,t,r,n){return _p(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}s(CC,"preparePartialBlock")});var Db=m(po=>{"use strict";po.__esModule=!0;po.parseWithoutProcessing=Mb;po.parse=VC;function NC(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}s(NC,"_interopRequireWildcard");function jb(e){return e&&e.__esModule?e:{default:e}}s(jb,"_interopRequireDefault");var qC=Ib(),bp=jb(qC),jC=Nb(),MC=jb(jC),DC=qb(),LC=NC(DC),FC=Oe();po.parser=bp.default;var va={};FC.extend(va,LC);function Mb(e,t){if(e.type==="Program")return e;bp.default.yy=va,va.locInfo=function(n){return new va.SourceLocation(t&&t.srcName,n)};var r=bp.default.parse(e);return r}s(Mb,"parseWithoutProcessing");function VC(e,t){var r=Mb(e,t),n=new MC.default(t);return n.accept(r)}s(VC,"parse")});var Bb=m(yo=>{"use strict";yo.__esModule=!0;yo.Compiler=Sp;yo.precompile=zC;yo.compile=GC;function Fb(e){return e&&e.__esModule?e:{default:e}}s(Fb,"_interopRequireDefault");var BC=Ze(),mo=Fb(BC),go=Oe(),HC=hp(),ho=Fb(HC),UC=[].slice;function Sp(){}s(Sp,"Compiler");Sp.prototype={compiler:Sp,equals:s(function(t){var r=this.opcodes.length;if(t.opcodes.length!==r)return!1;for(var n=0;n<r;n++){var i=this.opcodes[n],o=t.opcodes[n];if(i.opcode!==o.opcode||!Vb(i.args,o.args))return!1}r=this.children.length;for(var n=0;n<r;n++)if(!this.children[n].equals(t.children[n]))return!1;return!0},"equals"),guid:0,compile:s(function(t,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=go.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(t)},"compile"),compileProgram:s(function(t){var r=new this.compiler,n=r.compile(t,this.options),i=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[i]=n,this.useDepths=this.useDepths||n.useDepths,i},"compileProgram"),accept:s(function(t){if(!this[t.type])throw new mo.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},"accept"),Program:s(function(t){this.options.blockParams.unshift(t.blockParams);for(var r=t.body,n=r.length,i=0;i<n;i++)this.accept(r[i]);return this.options.blockParams.shift(),this.isSimple=n===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},"Program"),BlockStatement:s(function(t){Lb(t);var r=t.program,n=t.inverse;r=r&&this.compileProgram(r),n=n&&this.compileProgram(n);var i=this.classifySexpr(t);i==="helper"?this.helperSexpr(t,r,n):i==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,r,n),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},"BlockStatement"),DecoratorBlock:s(function(t){var r=t.program&&this.compileProgram(t.program),n=this.setupFullMustacheParams(t,r,void 0),i=t.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,i.original)},"DecoratorBlock"),PartialStatement:s(function(t){this.usePartial=!0;var r=t.program;r&&(r=this.compileProgram(t.program));var n=t.params;if(n.length>1)throw new mo.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=t.name.original,o=t.name.type==="SubExpression";o&&this.accept(t.name),this.setupFullMustacheParams(t,r,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",o,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:s(function(t){this.PartialStatement(t)},"PartialBlockStatement"),MustacheStatement:s(function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:s(function(t){this.DecoratorBlock(t)},"Decorator"),ContentStatement:s(function(t){t.value&&this.opcode("appendContent",t.value)},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:s(function(t){Lb(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},"SubExpression"),ambiguousSexpr:s(function(t,r,n){var i=t.path,o=i.parts[0],a=r!=null||n!=null;this.opcode("getContext",i.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",o,a)},"ambiguousSexpr"),simpleSexpr:s(function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:s(function(t,r,n){var i=this.setupFullMustacheParams(t,r,n),o=t.path,a=o.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new mo.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",i.length,o.original,ho.default.helpers.simpleId(o))}},"helperSexpr"),PathExpression:s(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=ho.default.helpers.scopedId(t),i=!t.depth&&!n&&this.blockParamIndex(r);i?this.opcode("lookupBlockParam",i,t.parts):r?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},"PathExpression"),StringLiteral:s(function(t){this.opcode("pushString",t.value)},"StringLiteral"),NumberLiteral:s(function(t){this.opcode("pushLiteral",t.value)},"NumberLiteral"),BooleanLiteral:s(function(t){this.opcode("pushLiteral",t.value)},"BooleanLiteral"),UndefinedLiteral:s(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:s(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:s(function(t){var r=t.pairs,n=0,i=r.length;for(this.opcode("pushHash");n<i;n++)this.pushParam(r[n].value);for(;n--;)this.opcode("assignToHash",r[n].key);this.opcode("popHash")},"Hash"),opcode:s(function(t){this.opcodes.push({opcode:t,args:UC.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:s(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:s(function(t){var r=ho.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&ho.default.helpers.helperExpression(t),o=!n&&(i||r);if(o&&!i){var a=t.path.parts[0],u=this.options;u.knownHelpers[a]?i=!0:u.knownHelpersOnly&&(o=!1)}return i?"helper":o?"ambiguous":"simple"},"classifySexpr"),pushParams:s(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:s(function(t){var r=t.value!=null?t.value:t.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",r,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var n=void 0;if(t.parts&&!ho.default.helpers.scopedId(t)&&!t.depth&&(n=this.blockParamIndex(t.parts[0])),n){var i=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,i)}else r=t.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,r)}this.accept(t)}},"pushParam"),setupFullMustacheParams:s(function(t,r,n,i){var o=t.params;return this.pushParams(o),this.opcode("pushProgram",r),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),o},"setupFullMustacheParams"),blockParamIndex:s(function(t){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],o=i&&go.indexOf(i,t);if(i&&o>=0)return[r,o]}},"blockParamIndex")};function zC(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new mo.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=r.parse(e,t),i=new r.Compiler().compile(n,t);return new r.JavaScriptCompiler().compile(i,t)}s(zC,"precompile");function GC(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new mo.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=go.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function i(){var a=r.parse(e,t),u=new r.Compiler().compile(a,t),c=new r.JavaScriptCompiler().compile(u,t,void 0,!0);return r.template(c)}s(i,"compileInput");function o(a,u){return n||(n=i()),n.call(this,a,u)}return s(o,"ret"),o._setup=function(a){return n||(n=i()),n._setup(a)},o._child=function(a,u,c,l){return n||(n=i()),n._child(a,u,c,l)},o}s(GC,"compile");function Vb(e,t){if(e===t)return!0;if(go.isArray(e)&&go.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!Vb(e[r],t[r]))return!1;return!0}}s(Vb,"argEquals");function Lb(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}s(Lb,"transformLiteralToPath")});var Ub=m(Pp=>{var Hb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Pp.encode=function(e){if(0<=e&&e<Hb.length)return Hb[e];throw new TypeError("Must be between 0 and 63: "+e)};Pp.decode=function(e){var t=65,r=90,n=97,i=122,o=48,a=57,u=43,c=47,l=26,p=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:o<=e&&e<=a?e-o+p:e==u?62:e==c?63:-1}});var Ep=m(Op=>{var zb=Ub(),$p=5,Gb=1<<$p,Zb=Gb-1,Kb=Gb;function ZC(e){return e<0?(-e<<1)+1:(e<<1)+0}s(ZC,"toVLQSigned");function KC(e){var t=(e&1)===1,r=e>>1;return t?-r:r}s(KC,"fromVLQSigned");Op.encode=s(function(t){var r="",n,i=ZC(t);do n=i&Zb,i>>>=$p,i>0&&(n|=Kb),r+=zb.encode(n);while(i>0);return r},"base64VLQ_encode");Op.decode=s(function(t,r,n){var i=t.length,o=0,a=0,u,c;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=zb.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));u=!!(c&Kb),c&=Zb,o=o+(c<<a),a+=$p}while(u);n.value=KC(o),n.rest=r},"base64VLQ_decode")});var Wn=m(ve=>{function WC(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}s(WC,"getArg");ve.getArg=WC;var Wb=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,YC=/^data:.+\,.+$/;function vo(e){var t=e.match(Wb);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}s(vo,"urlParse");ve.urlParse=vo;function Zn(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}s(Zn,"urlGenerate");ve.urlGenerate=Zn;function xp(e){var t=e,r=vo(e);if(r){if(!r.path)return e;t=r.path}for(var n=ve.isAbsolute(t),i=t.split(/\/+/),o,a=0,u=i.length-1;u>=0;u--)o=i[u],o==="."?i.splice(u,1):o===".."?a++:a>0&&(o===""?(i.splice(u+1,a),a=0):(i.splice(u,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Zn(r)):t}s(xp,"normalize");ve.normalize=xp;function Yb(e,t){e===""&&(e="."),t===""&&(t=".");var r=vo(t),n=vo(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Zn(r);if(r||t.match(YC))return t;if(n&&!n.host&&!n.path)return n.host=t,Zn(n);var i=t.charAt(0)==="/"?t:xp(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Zn(n)):i}s(Yb,"join");ve.join=Yb;ve.isAbsolute=function(e){return e.charAt(0)==="/"||Wb.test(e)};function QC(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}s(QC,"relative");ve.relative=QC;var Qb=function(){var e=Object.create(null);return!("__proto__"in e)}();function Jb(e){return e}s(Jb,"identity");function JC(e){return Xb(e)?"$"+e:e}s(JC,"toSetString");ve.toSetString=Qb?Jb:JC;function XC(e){return Xb(e)?e.slice(1):e}s(XC,"fromSetString");ve.fromSetString=Qb?Jb:XC;function Xb(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}s(Xb,"isProtoString");function eN(e,t,r){var n=Kn(e.source,t.source);return n!==0||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0||r)||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=e.generatedLine-t.generatedLine,n!==0)?n:Kn(e.name,t.name)}s(eN,"compareByOriginalPositions");ve.compareByOriginalPositions=eN;function tN(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=Kn(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Kn(e.name,t.name)}s(tN,"compareByGeneratedPositionsDeflated");ve.compareByGeneratedPositionsDeflated=tN;function Kn(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}s(Kn,"strcmp");function rN(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Kn(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Kn(e.name,t.name)}s(rN,"compareByGeneratedPositionsInflated");ve.compareByGeneratedPositionsInflated=rN;function nN(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}s(nN,"parseSourceMapInput");ve.parseSourceMapInput=nN;function iN(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=vo(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}t=Yb(Zn(n),t)}return xp(t)}s(iN,"computeSourceURL");ve.computeSourceURL=iN});var Ip=m(eS=>{var wp=Wn(),Ap=Object.prototype.hasOwnProperty,Zr=typeof Map<"u";function Vt(){this._array=[],this._set=Zr?new Map:Object.create(null)}s(Vt,"ArraySet");Vt.fromArray=s(function(t,r){for(var n=new Vt,i=0,o=t.length;i<o;i++)n.add(t[i],r);return n},"ArraySet_fromArray");Vt.prototype.size=s(function(){return Zr?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");Vt.prototype.add=s(function(t,r){var n=Zr?t:wp.toSetString(t),i=Zr?this.has(t):Ap.call(this._set,n),o=this._array.length;(!i||r)&&this._array.push(t),i||(Zr?this._set.set(t,o):this._set[n]=o)},"ArraySet_add");Vt.prototype.has=s(function(t){if(Zr)return this._set.has(t);var r=wp.toSetString(t);return Ap.call(this._set,r)},"ArraySet_has");Vt.prototype.indexOf=s(function(t){if(Zr){var r=this._set.get(t);if(r>=0)return r}else{var n=wp.toSetString(t);if(Ap.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");Vt.prototype.at=s(function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)},"ArraySet_at");Vt.prototype.toArray=s(function(){return this._array.slice()},"ArraySet_toArray");eS.ArraySet=Vt});var nS=m(rS=>{var tS=Wn();function oN(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,o=t.generatedColumn;return n>r||n==r&&o>=i||tS.compareByGeneratedPositionsInflated(e,t)<=0}s(oN,"generatedPositionAfter");function _a(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}s(_a,"MappingList");_a.prototype.unsortedForEach=s(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");_a.prototype.add=s(function(t){oN(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");_a.prototype.toArray=s(function(){return this._sorted||(this._array.sort(tS.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");rS.MappingList=_a});var kp=m(iS=>{var _o=Ep(),X=Wn(),ba=Ip().ArraySet,sN=nS().MappingList;function We(e){e||(e={}),this._file=X.getArg(e,"file",null),this._sourceRoot=X.getArg(e,"sourceRoot",null),this._skipValidation=X.getArg(e,"skipValidation",!1),this._sources=new ba,this._names=new ba,this._mappings=new sN,this._sourcesContents=null}s(We,"SourceMapGenerator");We.prototype._version=3;We.fromSourceMap=s(function(t){var r=t.sourceRoot,n=new We({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var o={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(o.source=i.source,r!=null&&(o.source=X.relative(r,o.source)),o.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(o.name=i.name)),n.addMapping(o)}),t.sources.forEach(function(i){var o=i;r!==null&&(o=X.relative(r,i)),n._sources.has(o)||n._sources.add(o);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");We.prototype.addMapping=s(function(t){var r=X.getArg(t,"generated"),n=X.getArg(t,"original",null),i=X.getArg(t,"source",null),o=X.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,o),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:o})},"SourceMapGenerator_addMapping");We.prototype.setSourceContent=s(function(t,r){var n=t;this._sourceRoot!=null&&(n=X.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[X.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[X.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");We.prototype.applySourceMap=s(function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var o=this._sourceRoot;o!=null&&(i=X.relative(o,i));var a=new ba,u=new ba;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var l=t.originalPositionFor({line:c.originalLine,column:c.originalColumn});l.source!=null&&(c.source=l.source,n!=null&&(c.source=X.join(n,c.source)),o!=null&&(c.source=X.relative(o,c.source)),c.originalLine=l.line,c.originalColumn=l.column,l.name!=null&&(c.name=l.name))}var p=c.source;p!=null&&!a.has(p)&&a.add(p);var f=c.name;f!=null&&!u.has(f)&&u.add(f)},this),this._sources=a,this._names=u,t.sources.forEach(function(c){var l=t.sourceContentFor(c);l!=null&&(n!=null&&(c=X.join(n,c)),o!=null&&(c=X.relative(o,c)),this.setSourceContent(c,l))},this)},"SourceMapGenerator_applySourceMap");We.prototype._validateMapping=s(function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}},"SourceMapGenerator_validateMapping");We.prototype._serializeMappings=s(function(){for(var t=0,r=1,n=0,i=0,o=0,a=0,u="",c,l,p,f,d=this._mappings.toArray(),h=0,g=d.length;h<g;h++){if(l=d[h],c="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)c+=";",r++;else if(h>0){if(!X.compareByGeneratedPositionsInflated(l,d[h-1]))continue;c+=","}c+=_o.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),c+=_o.encode(f-a),a=f,c+=_o.encode(l.originalLine-1-i),i=l.originalLine-1,c+=_o.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),c+=_o.encode(p-o),o=p)),u+=c}return u},"SourceMapGenerator_serializeMappings");We.prototype._generateSourcesContent=s(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=X.relative(r,n));var i=X.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");We.prototype.toJSON=s(function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},"SourceMapGenerator_toJSON");We.prototype.toString=s(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");iS.SourceMapGenerator=We});var oS=m(Kr=>{Kr.GREATEST_LOWER_BOUND=1;Kr.LEAST_UPPER_BOUND=2;function Rp(e,t,r,n,i,o){var a=Math.floor((t-e)/2)+e,u=i(r,n[a],!0);return u===0?a:u>0?t-a>1?Rp(a,t,r,n,i,o):o==Kr.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?Rp(e,a,r,n,i,o):o==Kr.LEAST_UPPER_BOUND?a:e<0?-1:e}s(Rp,"recursiveSearch");Kr.search=s(function(t,r,n,i){if(r.length===0)return-1;var o=Rp(-1,r.length,t,r,n,i||Kr.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&n(r[o],r[o-1],!0)===0;)--o;return o},"search")});var aS=m(sS=>{function Tp(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}s(Tp,"swap");function aN(e,t){return Math.round(e+Math.random()*(t-e))}s(aN,"randomIntInRange");function Cp(e,t,r,n){if(r<n){var i=aN(r,n),o=r-1;Tp(e,i,n);for(var a=e[n],u=r;u<n;u++)t(e[u],a)<=0&&(o+=1,Tp(e,o,u));Tp(e,o+1,u);var c=o+1;Cp(e,t,r,c-1),Cp(e,t,c+1,n)}}s(Cp,"doQuickSort");sS.quickSort=function(e,t){Cp(e,t,0,e.length-1)}});var cS=m(Sa=>{var P=Wn(),Np=oS(),Yn=Ip().ArraySet,uN=Ep(),bo=aS().quickSort;function U(e,t){var r=e;return typeof e=="string"&&(r=P.parseSourceMapInput(e)),r.sections!=null?new lt(r,t):new ce(r,t)}s(U,"SourceMapConsumer");U.fromSourceMap=function(e,t){return ce.fromSourceMap(e,t)};U.prototype._version=3;U.prototype.__generatedMappings=null;Object.defineProperty(U.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:s(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});U.prototype.__originalMappings=null;Object.defineProperty(U.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:s(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});U.prototype._charIsMappingSeparator=s(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");U.prototype._parseMappings=s(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");U.GENERATED_ORDER=1;U.ORIGINAL_ORDER=2;U.GREATEST_LOWER_BOUND=1;U.LEAST_UPPER_BOUND=2;U.prototype.eachMapping=s(function(t,r,n){var i=r||null,o=n||U.GENERATED_ORDER,a;switch(o){case U.GENERATED_ORDER:a=this._generatedMappings;break;case U.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var u=this.sourceRoot;a.map(function(c){var l=c.source===null?null:this._sources.at(c.source);return l=P.computeSourceURL(u,l,this._sourceMapURL),{source:l,generatedLine:c.generatedLine,generatedColumn:c.generatedColumn,originalLine:c.originalLine,originalColumn:c.originalColumn,name:c.name===null?null:this._names.at(c.name)}},this).forEach(t,i)},"SourceMapConsumer_eachMapping");U.prototype.allGeneratedPositionsFor=s(function(t){var r=P.getArg(t,"line"),n={source:P.getArg(t,"source"),originalLine:r,originalColumn:P.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",P.compareByOriginalPositions,Np.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(t.column===void 0)for(var u=a.originalLine;a&&a.originalLine===u;)i.push({line:P.getArg(a,"generatedLine",null),column:P.getArg(a,"generatedColumn",null),lastColumn:P.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o];else for(var c=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==c;)i.push({line:P.getArg(a,"generatedLine",null),column:P.getArg(a,"generatedColumn",null),lastColumn:P.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o]}return i},"SourceMapConsumer_allGeneratedPositionsFor");Sa.SourceMapConsumer=U;function ce(e,t){var r=e;typeof e=="string"&&(r=P.parseSourceMapInput(e));var n=P.getArg(r,"version"),i=P.getArg(r,"sources"),o=P.getArg(r,"names",[]),a=P.getArg(r,"sourceRoot",null),u=P.getArg(r,"sourcesContent",null),c=P.getArg(r,"mappings"),l=P.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=P.normalize(a)),i=i.map(String).map(P.normalize).map(function(p){return a&&P.isAbsolute(a)&&P.isAbsolute(p)?P.relative(a,p):p}),this._names=Yn.fromArray(o.map(String),!0),this._sources=Yn.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(p){return P.computeSourceURL(a,p,t)}),this.sourceRoot=a,this.sourcesContent=u,this._mappings=c,this._sourceMapURL=t,this.file=l}s(ce,"BasicSourceMapConsumer");ce.prototype=Object.create(U.prototype);ce.prototype.consumer=U;ce.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=P.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};ce.fromSourceMap=s(function(t,r){var n=Object.create(ce.prototype),i=n._names=Yn.fromArray(t._names.toArray(),!0),o=n._sources=Yn.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(h){return P.computeSourceURL(n.sourceRoot,h,r)});for(var a=t._mappings.toArray().slice(),u=n.__generatedMappings=[],c=n.__originalMappings=[],l=0,p=a.length;l<p;l++){var f=a[l],d=new uS;d.generatedLine=f.generatedLine,d.generatedColumn=f.generatedColumn,f.source&&(d.source=o.indexOf(f.source),d.originalLine=f.originalLine,d.originalColumn=f.originalColumn,f.name&&(d.name=i.indexOf(f.name)),c.push(d)),u.push(d)}return bo(n.__originalMappings,P.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");ce.prototype._version=3;Object.defineProperty(ce.prototype,"sources",{get:s(function(){return this._absoluteSources.slice()},"get")});function uS(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s(uS,"Mapping");ce.prototype._parseMappings=s(function(t,r){for(var n=1,i=0,o=0,a=0,u=0,c=0,l=t.length,p=0,f={},d={},h=[],g=[],y,v,_,b,S;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(y=new uS,y.generatedLine=n,b=p;b<l&&!this._charIsMappingSeparator(t,b);b++);if(v=t.slice(p,b),_=f[v],_)p+=v.length;else{for(_=[];p<b;)uN.decode(t,p,d),S=d.value,p=d.rest,_.push(S);if(_.length===2)throw new Error("Found a source, but no line and column");if(_.length===3)throw new Error("Found a source and line, but no column");f[v]=_}y.generatedColumn=i+_[0],i=y.generatedColumn,_.length>1&&(y.source=u+_[1],u+=_[1],y.originalLine=o+_[2],o=y.originalLine,y.originalLine+=1,y.originalColumn=a+_[3],a=y.originalColumn,_.length>4&&(y.name=c+_[4],c+=_[4])),g.push(y),typeof y.originalLine=="number"&&h.push(y)}bo(g,P.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,bo(h,P.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");ce.prototype._findMapping=s(function(t,r,n,i,o,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return Np.search(t,r,o,a)},"SourceMapConsumer_findMapping");ce.prototype.computeColumnSpans=s(function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}},"SourceMapConsumer_computeColumnSpans");ce.prototype.originalPositionFor=s(function(t){var r={generatedLine:P.getArg(t,"line"),generatedColumn:P.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",P.compareByGeneratedPositionsDeflated,P.getArg(t,"bias",U.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var o=P.getArg(i,"source",null);o!==null&&(o=this._sources.at(o),o=P.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var a=P.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:o,line:P.getArg(i,"originalLine",null),column:P.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");ce.prototype.hasContentsOfAllSources=s(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");ce.prototype.sourceContentFor=s(function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=P.relative(this.sourceRoot,i));var o;if(this.sourceRoot!=null&&(o=P.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!o.path||o.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");ce.prototype.generatedPositionFor=s(function(t){var r=P.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:P.getArg(t,"line"),originalColumn:P.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",P.compareByOriginalPositions,P.getArg(t,"bias",U.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:P.getArg(o,"generatedLine",null),column:P.getArg(o,"generatedColumn",null),lastColumn:P.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");Sa.BasicSourceMapConsumer=ce;function lt(e,t){var r=e;typeof e=="string"&&(r=P.parseSourceMapInput(e));var n=P.getArg(r,"version"),i=P.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Yn,this._names=new Yn;var o={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var u=P.getArg(a,"offset"),c=P.getArg(u,"line"),l=P.getArg(u,"column");if(c<o.line||c===o.line&&l<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=u,{generatedOffset:{generatedLine:c+1,generatedColumn:l+1},consumer:new U(P.getArg(a,"map"),t)}})}s(lt,"IndexedSourceMapConsumer");lt.prototype=Object.create(U.prototype);lt.prototype.constructor=U;lt.prototype._version=3;Object.defineProperty(lt.prototype,"sources",{get:s(function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e},"get")});lt.prototype.originalPositionFor=s(function(t){var r={generatedLine:P.getArg(t,"line"),generatedColumn:P.getArg(t,"column")},n=Np.search(r,this._sections,function(o,a){var u=o.generatedLine-a.generatedOffset.generatedLine;return u||o.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}},"IndexedSourceMapConsumer_originalPositionFor");lt.prototype.hasContentsOfAllSources=s(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");lt.prototype.sourceContentFor=s(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],o=i.consumer.sourceContentFor(t,!0);if(o)return o}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");lt.prototype.generatedPositionFor=s(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(P.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var o={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return o}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");lt.prototype._parseMappings=s(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],o=i.consumer._generatedMappings,a=0;a<o.length;a++){var u=o[a],c=i.consumer._sources.at(u.source);c=P.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var l=null;u.name&&(l=i.consumer._names.at(u.name),this._names.add(l),l=this._names.indexOf(l));var p={source:c,generatedLine:u.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(i.generatedOffset.generatedLine===u.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:l};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}bo(this.__generatedMappings,P.compareByGeneratedPositionsDeflated),bo(this.__originalMappings,P.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");Sa.IndexedSourceMapConsumer=lt});var fS=m(lS=>{var cN=kp().SourceMapGenerator,Pa=Wn(),lN=/(\r?\n)/,fN=10,Qn="$$$isSourceNode$$$";function je(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=i??null,this[Qn]=!0,n!=null&&this.add(n)}s(je,"SourceNode");je.fromStringWithSourceMap=s(function(t,r,n){var i=new je,o=t.split(lN),a=0,u=s(function(){var d=g(),h=g()||"";return d+h;function g(){return a<o.length?o[a++]:void 0}},"shiftNextLine"),c=1,l=0,p=null;return r.eachMapping(function(d){if(p!==null)if(c<d.generatedLine)f(p,u()),c++,l=0;else{var h=o[a]||"",g=h.substr(0,d.generatedColumn-l);o[a]=h.substr(d.generatedColumn-l),l=d.generatedColumn,f(p,g),p=d;return}for(;c<d.generatedLine;)i.add(u()),c++;if(l<d.generatedColumn){var h=o[a]||"";i.add(h.substr(0,d.generatedColumn)),o[a]=h.substr(d.generatedColumn),l=d.generatedColumn}p=d},this),a<o.length&&(p&&f(p,u()),i.add(o.splice(a).join(""))),r.sources.forEach(function(d){var h=r.sourceContentFor(d);h!=null&&(n!=null&&(d=Pa.join(n,d)),i.setSourceContent(d,h))}),i;function f(d,h){if(d===null||d.source===void 0)i.add(h);else{var g=n?Pa.join(n,d.source):d.source;i.add(new je(d.originalLine,d.originalColumn,g,h,d.name))}}s(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");je.prototype.add=s(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Qn]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},"SourceNode_add");je.prototype.prepend=s(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Qn]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},"SourceNode_prepend");je.prototype.walk=s(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Qn]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");je.prototype.join=s(function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this},"SourceNode_join");je.prototype.replaceRight=s(function(t,r){var n=this.children[this.children.length-1];return n[Qn]?n.replaceRight(t,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(t,r):this.children.push("".replace(t,r)),this},"SourceNode_replaceRight");je.prototype.setSourceContent=s(function(t,r){this.sourceContents[Pa.toSetString(t)]=r},"SourceNode_setSourceContent");je.prototype.walkSourceContents=s(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Qn]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(Pa.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");je.prototype.toString=s(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");je.prototype.toStringWithSourceMap=s(function(t){var r={code:"",line:1,column:0},n=new cN(t),i=!1,o=null,a=null,u=null,c=null;return this.walk(function(l,p){r.code+=l,p.source!==null&&p.line!==null&&p.column!==null?((o!==p.source||a!==p.line||u!==p.column||c!==p.name)&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name}),o=p.source,a=p.line,u=p.column,c=p.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),o=null,i=!1);for(var f=0,d=l.length;f<d;f++)l.charCodeAt(f)===fN?(r.line++,r.column=0,f+1===d?(o=null,i=!1):i&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name})):r.column++}),this.walkSourceContents(function(l,p){n.setSourceContent(l,p)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");lS.SourceNode=je});var pS=m($a=>{$a.SourceMapGenerator=kp().SourceMapGenerator;$a.SourceMapConsumer=cS().SourceMapConsumer;$a.SourceNode=fS().SourceNode});var gS=m((Oa,mS)=>{"use strict";Oa.__esModule=!0;var jp=Oe(),Wr=void 0;try{(typeof define!="function"||!define.amd)&&(dS=pS(),Wr=dS.SourceNode)}catch{}var dS;Wr||(Wr=s(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),Wr.prototype={add:s(function(t){jp.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:s(function(t){jp.isArray(t)&&(t=t.join("")),this.src=t+this.src},"prepend"),toStringWithSourceMap:s(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:s(function(){return this.src},"toString")});function qp(e,t,r){if(jp.isArray(e)){for(var n=[],i=0,o=e.length;i<o;i++)n.push(t.wrap(e[i],r));return n}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}s(qp,"castChunk");function hS(e){this.srcFile=e,this.source=[]}s(hS,"CodeGen");hS.prototype={isEmpty:s(function(){return!this.source.length},"isEmpty"),prepend:s(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:s(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:s(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
59
+ `])}),t},"merge"),each:s(function(t){for(var r=0,n=this.source.length;r<n;r++)t(this.source[r])},"each"),empty:s(function(){var t=this.currentLocation||{start:{}};return new Wr(t.start.line,t.start.column,this.srcFile)},"empty"),wrap:s(function(t){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return t instanceof Wr?t:(t=qp(t,this,r),new Wr(r.start.line,r.start.column,this.srcFile,t))},"wrap"),functionCall:s(function(t,r,n){return n=this.generateList(n),this.wrap([t,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:s(function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:s(function(t){var r=this,n=[];Object.keys(t).forEach(function(o){var a=qp(t[o],r);a!=="undefined"&&n.push([r.quotedString(o),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:s(function(t){for(var r=this.empty(),n=0,i=t.length;n<i;n++)n&&r.add(","),r.add(qp(t[n],this));return r},"generateList"),generateArray:s(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};Oa.default=hS;mS.exports=Oa.default});var SS=m((Ea,bS)=>{"use strict";Ea.__esModule=!0;function _S(e){return e&&e.__esModule?e:{default:e}}s(_S,"_interopRequireDefault");var yS=sa(),pN=Ze(),Mp=_S(pN),dN=Oe(),hN=gS(),vS=_S(hN);function Jn(e){this.value=e}s(Jn,"Literal");function Xn(){}s(Xn,"JavaScriptCompiler");Xn.prototype={nameLookup:s(function(t,r){return this.internalNameLookup(t,r)},"nameLookup"),depthedLookup:s(function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},"depthedLookup"),compilerInfo:s(function(){var t=yS.COMPILER_REVISION,r=yS.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:s(function(t,r,n){return dN.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},"appendToBuffer"),initializeBuffer:s(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:s(function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:s(function(t,r,n,i){this.environment=t,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,r),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var o=t.opcodes,a=void 0,u=void 0,c=void 0,l=void 0;for(c=0,l=o.length;c<l;c++)a=o[c],this.source.currentLocation=a.loc,u=u||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=u,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new Mp.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
60
+ `]),this.decorators.push("return fn;"),i?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
61
+ `),this.decorators.push(`}
62
+ `),this.decorators=this.decorators.merge()));var p=this.createFunctionContext(i);if(this.isChild)return p;var f={compiler:this.compilerInfo(),main:p};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var d=this.context,h=d.programs,g=d.decorators;for(c=0,l=h.length;c<l;c++)h[c]&&(f[c]=h[c],g[c]&&(f[c+"_d"]=g[c],f.useDecorators=!0));return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),i?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},"compile"),preamble:s(function(){this.lastContext=0,this.source=new vS.default(this.options.srcName),this.decorators=new vS.default(this.options.srcName)},"preamble"),createFunctionContext:s(function(t){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var o=0;Object.keys(this.aliases).forEach(function(c){var l=r.aliases[c];l.children&&l.referenceCount>1&&(n+=", alias"+ ++o+"="+c,l.children[0]="alias"+o)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var u=this.mergeSource(n);return t?(a.push(u),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
63
+ `,u,"}"])},"createFunctionContext"),mergeSource:s(function(t){var r=this.environment.isSimple,n=!this.forceBuffer,i=void 0,o=void 0,a=void 0,u=void 0;return this.source.each(function(c){c.appendToBuffer?(a?c.prepend(" + "):a=c,u=c):(a&&(o?a.prepend("buffer += "):i=!0,u.add(";"),a=u=void 0),o=!0,r||(n=!1))}),n?a?(a.prepend("return "),u.add(";")):o||this.source.push('return "";'):(t+=", buffer = "+(i?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),u.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(i?"":`;
64
+ `)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:s(function(){return`
65
+ lookupProperty = container.lookupProperty || function(parent, propertyName) {
66
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
67
+ return parent[propertyName];
68
+ }
69
+ return undefined
70
+ }
71
+ `.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:s(function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:s(function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",r),"}"])},"ambiguousBlockValue"),appendContent:s(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:s(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:s(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:s(function(t){this.lastContext=t},"getContext"),pushContext:s(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:s(function(t,r,n,i){var o=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[o++])):this.pushContext(),this.resolvePath("context",t,o,r,n)},"lookupOnContext"),lookupBlockParam:s(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:s(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:s(function(t,r,n,i,o){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(mN(this.options.strict&&o,this,r,n,t));return}for(var u=r.length;n<u;n++)this.replaceStack(function(c){var l=a.nameLookup(c,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",c]})},"resolvePath"),resolvePossibleLambda:s(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:s(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:s(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:s(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:s(function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},"popHash"),pushString:s(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:s(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:s(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:s(function(t,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,t);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:s(function(t,r,n){var i=this.popStack(),o=this.setupHelper(t,r),a=[];n&&a.push(o.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var u=["(",this.itemsSeparatedBy(a,"||"),")"],c=this.source.functionCall(u,"call",o.callParams);this.push(c)},"invokeHelper"),itemsSeparatedBy:s(function(t,r){var n=[];n.push(t[0]);for(var i=1;i<t.length;i++)n.push(r,t[i]);return n},"itemsSeparatedBy"),invokeKnownHelper:s(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:s(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),o=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",o," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:s(function(t,r,n){var i=[],o=this.setupParams(r,1,i);t&&(r=this.popStack(),delete o.name),n&&(o.indent=JSON.stringify(n)),o.helpers="helpers",o.partials="partials",o.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(o.depths="depths"),o=this.objectLiteral(o),i.push(o),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:s(function(t){var r=this.popStack(),n=void 0,i=void 0,o=void 0;this.trackIds&&(o=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),o&&(a.ids[t]=o),a.values[t]=r},"assignToHash"),pushId:s(function(t,r,n){t==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):t==="PathExpression"?this.pushString(r):t==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:Xn,compileChildren:s(function(t,r){for(var n=t.children,i=void 0,o=void 0,a=0,u=n.length;a<u;a++){i=n[a],o=new this.compiler;var c=this.matchExistingProgram(i);if(c==null){this.context.programs.push("");var l=this.context.programs.length;i.index=l,i.name="program"+l,this.context.programs[l]=o.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=o.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=c.index,i.name="program"+c.index,this.useDepths=this.useDepths||c.useDepths,this.useBlockParams=this.useBlockParams||c.useBlockParams}},"compileChildren"),matchExistingProgram:s(function(t){for(var r=0,n=this.context.environments.length;r<n;r++){var i=this.context.environments[r];if(i&&i.equals(t))return i}},"matchExistingProgram"),programExpression:s(function(t){var r=this.environment.children[t],n=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},"programExpression"),useRegister:s(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:s(function(t){return t instanceof Jn||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:s(function(t){this.push(new Jn(t))},"pushStackLiteral"),pushSource:s(function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},"pushSource"),replaceStack:s(function(t){var r=["("],n=void 0,i=void 0,o=void 0;if(!this.isInline())throw new Mp.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof Jn)n=[a.value],r=["(",n],o=!0;else{i=!0;var u=this.incrStack();r=["((",this.push(u)," = ",a,")"],n=this.topStack()}var c=t.call(this,n);o||this.popStack(),i&&this.stackSlot--,this.push(r.concat(c,")"))},"replaceStack"),incrStack:s(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:s(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:s(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof Jn)this.compileStack.push(i);else{var o=this.incrStack();this.pushSource([o," = ",i,";"]),this.compileStack.push(o)}}},"flushInline"),isInline:s(function(){return this.inlineStack.length},"isInline"),popStack:s(function(t){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof Jn)return n.value;if(!r){if(!this.stackSlot)throw new Mp.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:s(function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof Jn?r.value:r},"topStack"),contextName:s(function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},"contextName"),quotedString:s(function(t){return this.source.quotedString(t)},"quotedString"),objectLiteral:s(function(t){return this.source.objectLiteral(t)},"objectLiteral"),aliasable:s(function(t){var r=this.aliases[t];return r?(r.referenceCount++,r):(r=this.aliases[t]=this.source.wrap(t),r.aliasable=!0,r.referenceCount=1,r)},"aliasable"),setupHelper:s(function(t,r,n){var i=[],o=this.setupHelperArgs(r,t,i,n),a=this.nameLookup("helpers",r,"helper"),u=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:o,name:a,callParams:[u].concat(i)}},"setupHelper"),setupParams:s(function(t,r,n){var i={},o=[],a=[],u=[],c=!n,l=void 0;c&&(n=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var p=this.popStack(),f=this.popStack();(f||p)&&(i.fn=f||"container.noop",i.inverse=p||"container.noop");for(var d=r;d--;)l=this.popStack(),n[d]=l,this.trackIds&&(u[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),o[d]=this.popStack());return c&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(u)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(o)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:s(function(t,r,n,i){var o=this.setupParams(t,r,n);return o.loc=JSON.stringify(this.source.currentLocation),o=this.objectLiteral(o),i?(this.useRegister("options"),n.push("options"),["options=",o]):n?(n.push(o),""):o},"setupHelperArgs")};(function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=Xn.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();Xn.isValidJavaScriptVariableName=function(e){return!Xn.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function mN(e,t,r,n,i){var o=t.popStack(),a=r.length;for(e&&a--;n<a;n++)o=t.nameLookup(o,r[n],i);return e?[t.aliasable("container.strict"),"(",o,", ",t.quotedString(r[n]),", ",JSON.stringify(t.source.currentLocation)," )"]:o}s(mN,"strictLookup");Ea.default=Xn;bS.exports=Ea.default});var OS=m((xa,$S)=>{"use strict";xa.__esModule=!0;function So(e){return e&&e.__esModule?e:{default:e}}s(So,"_interopRequireDefault");var gN=Eb(),yN=So(gN),vN=hp(),_N=So(vN),Dp=Db(),Lp=Bb(),bN=SS(),SN=So(bN),PN=ga(),$N=So(PN),ON=lp(),EN=So(ON),xN=yN.default.create;function PS(){var e=xN();return e.compile=function(t,r){return Lp.compile(t,r,e)},e.precompile=function(t,r){return Lp.precompile(t,r,e)},e.AST=_N.default,e.Compiler=Lp.Compiler,e.JavaScriptCompiler=SN.default,e.Parser=Dp.parser,e.parse=Dp.parse,e.parseWithoutProcessing=Dp.parseWithoutProcessing,e}s(PS,"create");var ei=PS();ei.create=PS;EN.default(ei);ei.Visitor=$N.default;ei.default=ei;xa.default=ei;$S.exports=xa.default});var ES=m(wa=>{"use strict";wa.__esModule=!0;wa.print=kN;wa.PrintVisitor=Y;function wN(e){return e&&e.__esModule?e:{default:e}}s(wN,"_interopRequireDefault");var AN=ga(),IN=wN(AN);function kN(e){return new Y().accept(e)}s(kN,"print");function Y(){this.padding=0}s(Y,"PrintVisitor");Y.prototype=new IN.default;Y.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
72
+ `,t};Y.prototype.Program=function(e){var t="",r=e.body,n=void 0,i=void 0;if(e.blockParams){var o="BLOCK PARAMS: [";for(n=0,i=e.blockParams.length;n<i;n++)o+=" "+e.blockParams[n];o+=" ]",t+=this.pad(o)}for(n=0,i=r.length;n<i;n++)t+=this.accept(r[n]);return this.padding--,t};Y.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};Y.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};Y.prototype.BlockStatement=Y.prototype.DecoratorBlock=function(e){var t="";return t+=this.pad((e.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,t+=this.pad(this.SubExpression(e)),e.program&&(t+=this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--),e.inverse&&(e.program&&this.padding++,t+=this.pad("{{^}}"),this.padding++,t+=this.accept(e.inverse),this.padding--,e.program&&this.padding--),this.padding--,t};Y.prototype.PartialStatement=function(e){var t="PARTIAL:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),this.pad("{{> "+t+" }}")};Y.prototype.PartialBlockStatement=function(e){var t="PARTIAL BLOCK:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),t+=" "+this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--,this.pad("{{> "+t+" }}")};Y.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};Y.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};Y.prototype.SubExpression=function(e){for(var t=e.params,r=[],n=void 0,i=0,o=t.length;i<o;i++)r.push(this.accept(t[i]));return t="["+r.join(", ")+"]",n=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+n};Y.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};Y.prototype.StringLiteral=function(e){return'"'+e.value+'"'};Y.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};Y.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};Y.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Y.prototype.NullLiteral=function(){return"NULL"};Y.prototype.Hash=function(e){for(var t=e.pairs,r=[],n=0,i=t.length;n<i;n++)r.push(this.accept(t[n]));return"HASH{"+r.join(", ")+"}"};Y.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var Yr=m((zF,AS)=>{var Aa=OS().default,wS=ES();Aa.PrintVisitor=wS.PrintVisitor;Aa.print=wS.print;AS.exports=Aa;function xS(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=Aa.compile(n)}s(xS,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=xS,require.extensions[".hbs"]=xS)});var QN={};KS(QN,{getGenerateFilesData:()=>YN,getGenerateMetadata:()=>WN});module.exports=WS(QN);var zp=De(Sv());var Pv="Schema",$v="Enum",Ov="Body",Ev="Param",xv="Response",wv="ErrorResponse",Sf="z.void()",ws={bindings:["z"],from:"zod"};var Wi={input:"input.yaml",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,importPath:"ts",extractEnums:!0,configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"}},schemaSuffix:Pv,enumSuffix:$v,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var Ne=s((...e)=>[...new Set(e.flat())],"getUniqueArray");var ge=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Yi=s(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),As=s(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),Re=s(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),Av=s(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),Pf=s((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),Iv=s((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),UR=s(e=>{var n;let t=e.reduce((i,o)=>({...i,[o]:(i[o]??0)+1}),{});return(n=Object.entries(t).sort((i,o)=>i[1]===o[1]?o[0].length-i[0].length:o[1]-i[1])[0])==null?void 0:n[0]},"getLongestMostCommon"),$f=s(e=>{let t=e.map(ge).map(zR).map(r=>GR(r)).flat();return UR(t)},"getMostCommonAdjacentCombinationSplit"),zR=s(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),GR=s((e,t=["dto","by","for","of","in","to","and","with"])=>{var n;let r=[];for(let i=0;i<e.length;i++)if(!t.includes(e[i].toLowerCase()))for(let o=i+1;o<=e.length;o++)t.includes((n=e[o-1])==null?void 0:n.toLowerCase())||r.push(e.slice(i,o).join(""));return r},"getAdjacentStringCombinations");var Is=s(e=>`use${ge(Re(e.operationName))}`,"getQueryName"),Of=s(e=>{let t=e.map(({path:o})=>o),r=/^\/[^\/]*/g,n=Ne(t.map(o=>o.match(r)).flat()),i=s(o=>n.length===1?"all":`all${ge(As(o.replace(/\//g,"")??""))}`,"getQueryKeyName");return n.filter(o=>o!==null).map(o=>({path:o,name:i(o??"")}))},"getAllQueryKeys"),kv=s((e,t)=>{let n=Of(t).find(({path:o})=>e.path.startsWith(o));if(!n)return[e.path];let i=e.path.substring(n.path.length);return[`...keys.${n.name}`,...i?[`"${i}"`]:[]]},"getEndpointPathQueryKeys");function or({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Yi(t)}/`:""}${Yi(t)}.${i}`:i}s(or,"getTagFileName");var re=s(({type:e,tag:t,options:r})=>`${ge(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var Rv=s(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),Pt=s(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");var jt=Symbol.for("@ts-pattern/matcher"),ZR=Symbol.for("@ts-pattern/isVariadic"),Rs="@ts-pattern/anonymous-select-key",Ef=s(e=>!!(e&&typeof e=="object"),"r"),ks=s(e=>e&&!!e[jt],"i"),Et=s((e,t,r)=>{if(ks(e)){let n=e[jt](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(a=>r(a,o[a])),i}if(Ef(e)){if(!Ef(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],o=[];for(let a of e.keys()){let u=e[a];ks(u)&&u[ZR]?o.push(u):o.length?i.push(u):n.push(u)}if(o.length){if(o.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let a=t.slice(0,n.length),u=i.length===0?[]:t.slice(-i.length),c=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,p)=>Et(l,a[p],r))&&i.every((l,p)=>Et(l,u[p],r))&&(o.length===0||Et(o[0],c,r))}return e.length===t.length&&e.every((a,u)=>Et(a,t[u],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||ks(o=i)&&o[jt]().matcherType==="optional")&&Et(i,t[n],r);var o})}return Object.is(t,e)},"s"),lr=s(e=>{var t,r,n;return Ef(e)?ks(e)?(t=(r=(n=e[jt]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Ji(e,lr):Ji(Object.values(e),lr):[]},"o"),Ji=s((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function Ue(e){return Object.assign(e,{optional:s(()=>KR(e),"optional"),and:s(t=>z(e,t),"and"),or:s(t=>WR(e,t),"or"),select:s(t=>t===void 0?Tv(e):Tv(t,e),"select")})}s(Ue,"u");function KR(e){return Ue({[jt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return t===void 0?(lr(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Et(e,t,n),selections:r}},"match"),getSelectionKeys:s(()=>lr(e),"getSelectionKeys"),matcherType:"optional"})})}s(KR,"h");function z(...e){return Ue({[jt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return{matched:e.every(i=>Et(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>Ji(e,lr),"getSelectionKeys"),matcherType:"and"})})}s(z,"m");function WR(...e){return Ue({[jt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return Ji(e,lr).forEach(i=>n(i,void 0)),{matched:e.some(i=>Et(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>Ji(e,lr),"getSelectionKeys"),matcherType:"or"})})}s(WR,"d");function D(e){return{[jt]:()=>({match:s(t=>({matched:!!e(t)}),"match")})}}s(D,"p");function Tv(...e){let t=typeof e[0]=="string"?e[0]:void 0,r=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return Ue({[jt]:()=>({match:s(n=>{let i={[t??Rs]:n};return{matched:r===void 0||Et(r,n,(o,a)=>{i[o]=a}),selections:i}},"match"),getSelectionKeys:s(()=>[t??Rs].concat(r===void 0?[]:lr(r)),"getSelectionKeys")})})}s(Tv,"y");function $t(e){return typeof e=="number"}s($t,"v");function sr(e){return typeof e=="string"}s(sr,"b");function ar(e){return typeof e=="bigint"}s(ar,"w");var ED=Ue(D(function(e){return!0}));var ur=s(e=>Object.assign(Ue(e),{startsWith:s(t=>{return ur(z(e,(r=t,D(n=>sr(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:s(t=>{return ur(z(e,(r=t,D(n=>sr(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:s(t=>ur(z(e,(r=>D(n=>sr(n)&&n.length>=r))(t))),"minLength"),length:s(t=>ur(z(e,(r=>D(n=>sr(n)&&n.length===r))(t))),"length"),maxLength:s(t=>ur(z(e,(r=>D(n=>sr(n)&&n.length<=r))(t))),"maxLength"),includes:s(t=>{return ur(z(e,(r=t,D(n=>sr(n)&&n.includes(r)))));var r},"includes"),regex:s(t=>{return ur(z(e,(r=t,D(n=>sr(n)&&!!n.match(r)))));var r},"regex")}),"j"),xD=ur(D(sr)),Ot=s(e=>Object.assign(Ue(e),{between:s((t,r)=>Ot(z(e,((n,i)=>D(o=>$t(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>Ot(z(e,(r=>D(n=>$t(n)&&n<r))(t))),"lt"),gt:s(t=>Ot(z(e,(r=>D(n=>$t(n)&&n>r))(t))),"gt"),lte:s(t=>Ot(z(e,(r=>D(n=>$t(n)&&n<=r))(t))),"lte"),gte:s(t=>Ot(z(e,(r=>D(n=>$t(n)&&n>=r))(t))),"gte"),int:s(()=>Ot(z(e,D(t=>$t(t)&&Number.isInteger(t)))),"int"),finite:s(()=>Ot(z(e,D(t=>$t(t)&&Number.isFinite(t)))),"finite"),positive:s(()=>Ot(z(e,D(t=>$t(t)&&t>0))),"positive"),negative:s(()=>Ot(z(e,D(t=>$t(t)&&t<0))),"negative")}),"x"),wD=Ot(D($t)),cr=s(e=>Object.assign(Ue(e),{between:s((t,r)=>cr(z(e,((n,i)=>D(o=>ar(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>cr(z(e,(r=>D(n=>ar(n)&&n<r))(t))),"lt"),gt:s(t=>cr(z(e,(r=>D(n=>ar(n)&&n>r))(t))),"gt"),lte:s(t=>cr(z(e,(r=>D(n=>ar(n)&&n<=r))(t))),"lte"),gte:s(t=>cr(z(e,(r=>D(n=>ar(n)&&n>=r))(t))),"gte"),positive:s(()=>cr(z(e,D(t=>ar(t)&&t>0))),"positive"),negative:s(()=>cr(z(e,D(t=>ar(t)&&t<0))),"negative")}),"A"),AD=cr(D(ar)),ID=Ue(D(function(e){return typeof e=="boolean"})),kD=Ue(D(function(e){return typeof e=="symbol"})),RD=Ue(D(function(e){return e==null})),TD=Ue(D(function(e){return e!=null}));var If=class If extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}};s(If,"W");var xf=If,wf={matched:!1,value:void 0};function ye(e){return new Af(e,wf)}s(ye,"z");var Qi=class Qi{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let o=!1,a={},u=s((l,p)=>{o=!0,a[l]=p},"a"),c=!n.some(l=>Et(l,this.input,u))||i&&!i(this.input)?wf:{matched:!0,value:r(o?Rs in a?a[Rs]:a:this.input,this.input)};return new Qi(this.input,c)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new Qi(this.input,n?{matched:!0,value:r(this.input,this.input)}:wf)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new xf(this.input)}run(){return this.exhaustive()}returnType(){return this}};s(Qi,"I");var Af=Qi;var Cv=["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"];var kf=2,Nv=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],qv=["query","header","path"],fr=["get","put","post","delete","options","head","patch","trace"],jv=["string","number","integer","boolean"],Ts=["allOf","anyOf","oneOf"];function pr(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}s(pr,"pick");function xt(e){return Av(e)}s(xt,"formatTag");function Lr(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return xt(r??t.defaultTag)}s(Lr,"getOperationTag");function Mv(e,t){let r={};for(let n in e.paths){let i=e.paths[n],o=pr(i,fr);for(let a in o){let u=o[a];if(!u||u.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let c=t.splitByTags?Lr(u,t):t.defaultTag;r[c]||(r[c]=[]),r[c].push(u)}}return r}s(Mv,"getOperationsByTag");var Lv=s(e=>`#/components/schemas/${e}`,"getSchemaRef"),Fr=s(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),Dn=s(e=>Fr(e).split("/").at(-1),"getSchemaNameByRef");function H(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}s(H,"isReferenceObject");function Cf(e){let t=YR(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return Re(t)}s(Cf,"normalizeString");function Fv(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}s(Fv,"wrapWithQuotesIfNeeded");function Vv(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}s(Vv,"unwrapQuotesIfNeeded");function YR(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}s(YR,"prefixStringStartingWithNumberIfNeeded");function Nf(e){let t=e.replaceAll("_","#");return Re(t.replaceAll("-","_")).replaceAll("#","_")}s(Nf,"pathParamToVariableName");var Mt=s(e=>jv.includes(e),"isPrimitiveType");function Bv(e){return e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/([\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\uFFFE\uFFFF])/g,(t,r)=>{let n=r.codePointAt(),i=n.toString(16);return n<=255?`\\x${`00${i}`.slice(-2)}`:`\\u${`0000${i}`.slice(-4)}`}).replace(/\//g,"\\/")}s(Bv,"escapeControlCharacters");function dr(e){return e.includes("application/")&&e.includes("json")||Nv.includes(e)||e.includes("text/")}s(dr,"isParamMediaTypeAllowed");function Cs(e){return e>=200&&e<300}s(Cs,"isMainResponseStatus");function Ns(e){return!(e>=200&&e<300)}s(Ns,"isErrorStatus");function Ln(e){return e==="application/json"}s(Ln,"isMediaTypeAllowed");function Rf({path:e,method:t,operation:r,options:n,keepOperationPrefixWithoutEnding:i}){let o=`${t}${JR(e)}`,a=r.operationId?Pt(r.operationId):o;if(n.removeOperationPrefixEndingWith&&i)return a.split(n.removeOperationPrefixEndingWith).map((c,l)=>l===0?c:ge(c)).join("");if(n.removeOperationPrefixEndingWith&&!i){let u=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);a=a.replace(u,"")}return Cv.includes(a)?o:a}s(Rf,"getOperationName");function Xi({path:e,method:t,operation:r,operationsByTag:n,options:i}){let o=i.splitByTags?Lr(r,i):i.defaultTag,a=Rf({path:e,method:t,operation:r,options:i});return n[o].filter(c=>Rf({path:e,method:t,operation:c,options:i})===a).length===1?a:Rf({path:e,method:t,operation:r,options:i,keepOperationPrefixWithoutEnding:!0})}s(Xi,"getUniqueOperationName");function Hv(e,t,r){let n=[];for(let i in e.paths){let o=e.paths[i],a=pr(o,fr);for(let u in a){let c=a[u];if(!c||c.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let l=Xi({path:i,method:u,operation:c,operationsByTag:t,options:r});n.push(l)}}return n}s(Hv,"getUniqueOperationNamesWithoutSplitByTags");var Dv=/({\w+})/g,QR=/[^\w\-]+/g;function JR(e){e=ge(As(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(Dv)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(Dv,"")}By${ge(r.slice(1,-1))}`}return e.replace(QR,"_")}s(JR,"pathToVariableName");var Tf=/{(\b\w+(?:-\w+)*\b)}/g;function Uv(e){let t=e.match(Tf);return t===null?e.replaceAll(Tf,":$1"):(t.forEach(r=>{let n=Nf(r.replaceAll(Tf,":$1"));e=e.replaceAll(r,n)}),e)}s(Uv,"replaceHyphenatedPath");var Fn=s(e=>e.method==="get","isQuery"),qs=s(e=>e.method!=="get","isMutation");var hr=s((e,t)=>Pf(ge(Cf(e)),t),"getZodSchemaName"),zv=s((e,t,r)=>Pf(ge(Cf(e)),`${t}${r}`),"getEnumZodSchemaName"),Pe=s(e=>!e.startsWith("z."),"isNamedZodSchema"),Vr=s((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),js=s(e=>Re(`${e}_${Ov}`),"getBodyZodSchemaName"),Gv=s((e,t)=>Re(`${e}_${t}${Ev}`),"getParamZodSchemaName"),XR=s(e=>Re(`${e}${xv}`),"getMainResponseZodSchemaName"),eT=s((e,t)=>Re(`${e}_${t}_${wv}`),"getErrorResponseZodSchemaName");function Ms({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),o=Vr(t,r,n);return!Cs(i)&&e!=="default"&&Ns(i)?eT(o,e):XR(o)}s(Ms,"getResponseZodSchemaName");var eo=s((e,t)=>Iv(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),Zv=s((e,t)=>Pe(t)?`${e.options.includeNamespaces?`${re({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),Ds=s((e,t)=>Pe(t)?`${e.options.includeNamespaces?`${re({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${eo(t,e.options)}`:t,"getImportedZodSchemaInferedTypeName");function Ls(e){return ye(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}s(Ls,"primitiveTypeToTsType");function Vn({zodSchemaName:e,schema:t,resolver:r}){let n="void",i;e&&Pe(e)?(n=Ds(r,e),i=r.getTagByZodSchemaName(e)):t!=null&&t.type&&Mt(t==null?void 0:t.type)&&(n=Ls(t==null?void 0:t.type));let o=n.split(".");return{type:o[o.length-1],...o.length>1?{namespace:o[0]}:{},...i?{filePath:or({type:"models",tag:i,includeTagDir:!0,options:r.options})}:{}}}s(Vn,"getTsTypeBase");function Br({schema:e,isCircular:t,parentTypes:r,resolver:n}){if(!e)return{metaType:"primitive"};for(let i of Ts){let o=e[i];if(o)if(o.length>1){let a=o.map(u=>{let c=n.resolveObject(u);return Br({schema:c,parentTypes:r,resolver:n})});return a.every(({metaType:u})=>u==="object")?{metaType:"object",objectProperties:a.reduce((u,{objectProperties:c})=>{let l=c.map(({name:p})=>p);return[...u.filter(({name:p})=>!l.includes(p)),...c]},[])}:{metaType:"composite",[i]:a}}else e=n.resolveObject(o[0])}return e.type==="array"?{metaType:"array",arrayType:Kv({arraySchema:e,resolver:n,parentTypes:r})}:(e.type==="object"||e.properties)&&t?{metaType:"object",objectProperties:[],isCircular:!0}:e.type==="object"||e.properties?{metaType:"object",objectProperties:tT({schema:e,parentTypes:r,resolver:n})}:{metaType:"primitive"}}s(Br,"getSchemaTsMetaType");function Kv({arraySchema:e,parentTypes:t,resolver:r}){let n,i;if(H(e.items)){let c=e.items.$ref;n=r.getZodSchemaNameByRef(c),i=r.getSchemaByRef(c)}else i=e.items;let o=Vn({zodSchemaName:n,schema:i,resolver:r}),a=Wv(o,t),u=Br({schema:i,isCircular:a,parentTypes:[...t,o],resolver:r});return{...o,...u}}s(Kv,"getArraySchemaTsType");function tT({schema:e,parentTypes:t,resolver:r}){return Object.entries((e==null?void 0:e.properties)??{}).map(([n,i])=>{var a;let o=((a=e==null?void 0:e.required)==null?void 0:a.includes(n))??!1;if(H(i)){let u=r.getZodSchemaNameByRef(i.$ref),c=r.getSchemaByRef(i.$ref),l=Vn({zodSchemaName:u,schema:c,resolver:r}),p=Wv(l,t),f=Br({schema:c,isCircular:p,parentTypes:[...t,l],resolver:r});return{name:n,isRequired:o,...l,...f}}else if(i.type==="array"){let u=Kv({arraySchema:i,parentTypes:t,resolver:r});return{name:n,isRequired:o,type:"array",metaType:"array",arrayType:u}}else if(Mt(i.type))return{name:n,isRequired:o,type:Ls(i.type),metaType:"primitive"};return{name:n,isRequired:o,type:"void",metaType:"primitive"}})}s(tT,"getSchemaTsProperties");function Wv(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}s(Wv,"getIsCircular");var qf={"Content-Type":"application/json",Accept:"application/json"},Yv="data";function wt(e){return!H(e)}s(wt,"isSchemaObject");function Qv(e){return e.type==="array"}s(Qv,"isArraySchemaObject");function Jv(e){if(!e.allOf)throw new Error("Function inferRequiredSchema is specialized to handle item with required only in an allOf array.");let[t,r]=e.allOf.reduce((i,o)=>{if(rT(o)){let a=o.required;i[0].push(...a??[])}else i[1].push(o);return i},[[],[]]),n={properties:t.reduce((i,o)=>(i[o]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:s((i,o)=>{if(H(i)){let a=o(i.$ref);a&&n.required.forEach(u=>{var c;n.properties[u]=((c=a==null?void 0:a.properties)==null?void 0:c[u])??{}})}else{let a=i.properties??{};n.required.forEach(u=>{a[u]&&(n.properties[u]=a[u]??{})})}},"patchRequiredSchemaInLoop")}}s(Jv,"inferRequiredSchema");var rT=s(e=>!H(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var to=s(e=>Yi(Re(e.operationName)),"getEndpointName");function Xv(e,t){return`${t.includeNamespaces?`${re({type:"endpoints",tag:ro(e,t),options:t})}.`:""}${to(e)}`}s(Xv,"getImportedEndpointName");var e_=s(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function ro(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return xt(r??t.defaultTag)}s(ro,"getEndpointTag");function jf(e,t){return t.parameters.map(r=>{var i,o,a,u;let n="string";if(Pe(r.zodSchema))n=Ds(e,r.zodSchema);else if((i=r.parameterObject)!=null&&i.schema&&wt(r.parameterObject.schema)){let c=(a=(o=r.parameterObject)==null?void 0:o.schema)==null?void 0:a.type;c&&Mt(c)&&(n=Ls(c))}return{name:Pt(r.name),type:n,paramType:r.type,required:((u=r.parameterObject)==null?void 0:u.required)??!0}}).sort((r,n)=>{if(r.required===n.required){let i=["Path","Body","Query","Header"];return i.indexOf(r.paramType)-i.indexOf(n.paramType)}return r.required?-1:1})}s(jf,"mapEndpointParamsToFunctionParams");function t_(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let o=Rv(i.name)?i.name:`"${i.name}"`,a=Pt(i.name);return{...i,name:o,value:a}}),r={};return e.requestFormat!==qf["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==qf.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=Pt(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}s(t_,"getEndpointConfig");var r_=s((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),n_=s((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),i_=s((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),G={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},L5=Object.keys(G.modifier),nT=Object.keys(G.color),iT=Object.keys(G.bgColor),F5=[...nT,...iT];function oT(){let e=new Map;for(let[t,r]of Object.entries(G)){for(let[n,i]of Object.entries(r))G[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=G[n],e.set(i[0],i[1]);Object.defineProperty(G,t,{value:r,enumerable:!1})}return Object.defineProperty(G,"codes",{value:e,enumerable:!1}),G.color.close="\x1B[39m",G.bgColor.close="\x1B[49m",G.color.ansi=r_(),G.color.ansi256=n_(),G.color.ansi16m=i_(),G.bgColor.ansi=r_(10),G.bgColor.ansi256=n_(10),G.bgColor.ansi16m=i_(10),Object.defineProperties(G,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(o=>o+o).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:s(t=>G.rgbToAnsi256(...G.hexToRgb(t)),"value"),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let u=t%36;r=Math.floor(t/36)/5,n=Math.floor(u/6)/5,i=u%6/5}let o=Math.max(r,n,i)*2;if(o===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return o===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:s((t,r,n)=>G.ansi256ToAnsi(G.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:s(t=>G.ansi256ToAnsi(G.hexToAnsi256(t)),"value"),enumerable:!1}}),G}s(oT,"assembleStyles");var sT=oT(),ut=sT;var Vs=De(require("process"),1),s_=De(require("os"),1),Mf=De(require("tty"),1);function ze(e,t=globalThis.Deno?globalThis.Deno.args:Vs.default.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}s(ze,"hasFlag");var{env:Z}=Vs.default,Fs;ze("no-color")||ze("no-colors")||ze("color=false")||ze("color=never")?Fs=0:(ze("color")||ze("colors")||ze("color=true")||ze("color=always"))&&(Fs=1);function aT(){if("FORCE_COLOR"in Z)return Z.FORCE_COLOR==="true"?1:Z.FORCE_COLOR==="false"?0:Z.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Z.FORCE_COLOR,10),3)}s(aT,"envForceColor");function uT(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}s(uT,"translateLevel");function cT(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=aT();n!==void 0&&(Fs=n);let i=r?Fs:n;if(i===0)return 0;if(r){if(ze("color=16m")||ze("color=full")||ze("color=truecolor"))return 3;if(ze("color=256"))return 2}if("TF_BUILD"in Z&&"AGENT_NAME"in Z)return 1;if(e&&!t&&i===void 0)return 0;let o=i||0;if(Z.TERM==="dumb")return o;if(Vs.default.platform==="win32"){let a=s_.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Z)return"GITHUB_ACTIONS"in Z||"GITEA_ACTIONS"in Z?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in Z)||Z.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in Z)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Z.TEAMCITY_VERSION)?1:0;if(Z.COLORTERM==="truecolor"||Z.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Z){let a=Number.parseInt((Z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Z.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Z.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Z.TERM)||"COLORTERM"in Z?1:o}s(cT,"_supportsColor");function o_(e,t={}){let r=cT(e,{streamIsTTY:e&&e.isTTY,...t});return uT(r)}s(o_,"createSupportsColor");var lT={stdout:o_({isTTY:Mf.default.isatty(1)}),stderr:o_({isTTY:Mf.default.isatty(2)})},a_=lT;function u_(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,o=0,a="";do a+=e.slice(o,n)+t+r,o=n+i,n=e.indexOf(t,o);while(n!==-1);return a+=e.slice(o),a}s(u_,"stringReplaceAll");function c_(e,t,r,n){let i=0,o="";do{let a=e[n-1]==="\r";o+=e.slice(i,a?n-1:n)+t+(a?`\r
51
73
  `:`
52
74
  `)+r,i=n+1,n=e.indexOf(`
53
- `,i)}while(n!==-1);return o+=e.slice(i),o}s(sg,"stringEncaseCRLFWithFirstIndex");var{stdout:ag,stderr:cg}=ig,ku=Symbol("GENERATOR"),nn=Symbol("STYLER"),ni=Symbol("IS_EMPTY"),ug=["ansi","ansi","ansi256","ansi16m"],on=Object.create(null),oA=s((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=ag?ag.level:0;e.level=t.level===void 0?r:t.level},"applyOptions"),Fu=class Fu{constructor(t){return fg(t)}};s(Fu,"Chalk");var wo=Fu,fg=s(e=>{let t=s((...r)=>r.join(" "),"chalk");return oA(t,e),Object.setPrototypeOf(t,ii.prototype),t},"chalkFactory");function ii(e){return fg(e)}s(ii,"createChalk");Object.setPrototypeOf(ii.prototype,Function.prototype);for(let[e,t]of Object.entries(Be))on[e]={get(){let r=Eo(this,Du(t.open,t.close,this[nn]),this[ni]);return Object.defineProperty(this,e,{value:r}),r}};on.visible={get(){let e=Eo(this,this[nn],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Mu=s((e,t,r,...n)=>e==="rgb"?t==="ansi16m"?Be[r].ansi16m(...n):t==="ansi256"?Be[r].ansi256(Be.rgbToAnsi256(...n)):Be[r].ansi(Be.rgbToAnsi(...n)):e==="hex"?Mu("rgb",t,r,...Be.hexToRgb(...n)):Be[r][e](...n),"getModelAnsi"),sA=["rgb","hex","ansi256"];for(let e of sA){on[e]={get(){let{level:r}=this;return function(...n){let i=Du(Mu(e,ug[r],"color",...n),Be.color.close,this[nn]);return Eo(this,i,this[ni])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);on[t]={get(){let{level:r}=this;return function(...n){let i=Du(Mu(e,ug[r],"bgColor",...n),Be.bgColor.close,this[nn]);return Eo(this,i,this[ni])}}}}var aA=Object.defineProperties(()=>{},{...on,level:{enumerable:!0,get(){return this[ku].level},set(e){this[ku].level=e}}}),Du=s((e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},"createStyler"),Eo=s((e,t,r)=>{let n=s((...i)=>cA(n,i.length===1?""+i[0]:i.join(" ")),"builder");return Object.setPrototypeOf(n,aA),n[ku]=e,n[nn]=t,n[ni]=r,n},"createBuilder"),cA=s((e,t)=>{if(e.level<=0||!t)return e[ni]?"":t;let r=e[nn];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=og(t,r.close,r.open),r=r.parent;let o=t.indexOf(`
54
- `);return o!==-1&&(t=sg(t,i,n,o)),n+t+i},"applyStyle");Object.defineProperties(ii.prototype,on);var NC=ii(),CC=ii({level:cg?cg.level:0});var Te=new wo;function lg(e){return{type:"invalid-schema",message:`${e} has both reference and composite keyword`}}s(lg,"getInvalidSchemaError");function pg(e){return{type:"invalid-operation-id",message:`Operation ${Te.gray(e)}`}}s(pg,"getInvalidOperationIdError");function dg(e,t){return{type:"missing-path-parameter",message:`Path ${Te.gray(t)} is missing [${e.map(({name:r})=>Te.gray(r)).join(", ")}]`}}s(dg,"getMissingPathParameterError");function mg(e){return{type:"not-allowed-inline-enum",message:e}}s(mg,"getNotAllowedInlineEnumError");function it({schema:e,meta:t,options:r}){let n=[];ce(e.type).with("string",()=>n.push(lA(e))).with("number","integer",()=>n.push(dA(e))).with("array",()=>n.push(mA(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
75
+ `,i)}while(n!==-1);return o+=e.slice(i),o}s(c_,"stringEncaseCRLFWithFirstIndex");var{stdout:l_,stderr:f_}=a_,Df=Symbol("GENERATOR"),Bn=Symbol("STYLER"),no=Symbol("IS_EMPTY"),p_=["ansi","ansi","ansi256","ansi16m"],Hn=Object.create(null),fT=s((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=l_?l_.level:0;e.level=t.level===void 0?r:t.level},"applyOptions"),Vf=class Vf{constructor(t){return d_(t)}};s(Vf,"Chalk");var Bs=Vf,d_=s(e=>{let t=s((...r)=>r.join(" "),"chalk");return fT(t,e),Object.setPrototypeOf(t,io.prototype),t},"chalkFactory");function io(e){return d_(e)}s(io,"createChalk");Object.setPrototypeOf(io.prototype,Function.prototype);for(let[e,t]of Object.entries(ut))Hn[e]={get(){let r=Hs(this,Ff(t.open,t.close,this[Bn]),this[no]);return Object.defineProperty(this,e,{value:r}),r}};Hn.visible={get(){let e=Hs(this,this[Bn],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Lf=s((e,t,r,...n)=>e==="rgb"?t==="ansi16m"?ut[r].ansi16m(...n):t==="ansi256"?ut[r].ansi256(ut.rgbToAnsi256(...n)):ut[r].ansi(ut.rgbToAnsi(...n)):e==="hex"?Lf("rgb",t,r,...ut.hexToRgb(...n)):ut[r][e](...n),"getModelAnsi"),pT=["rgb","hex","ansi256"];for(let e of pT){Hn[e]={get(){let{level:r}=this;return function(...n){let i=Ff(Lf(e,p_[r],"color",...n),ut.color.close,this[Bn]);return Hs(this,i,this[no])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Hn[t]={get(){let{level:r}=this;return function(...n){let i=Ff(Lf(e,p_[r],"bgColor",...n),ut.bgColor.close,this[Bn]);return Hs(this,i,this[no])}}}}var dT=Object.defineProperties(()=>{},{...Hn,level:{enumerable:!0,get(){return this[Df].level},set(e){this[Df].level=e}}}),Ff=s((e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},"createStyler"),Hs=s((e,t,r)=>{let n=s((...i)=>hT(n,i.length===1?""+i[0]:i.join(" ")),"builder");return Object.setPrototypeOf(n,dT),n[Df]=e,n[Bn]=t,n[no]=r,n},"createBuilder"),hT=s((e,t)=>{if(e.level<=0||!t)return e[no]?"":t;let r=e[Bn];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=u_(t,r.close,r.open),r=r.parent;let o=t.indexOf(`
76
+ `);return o!==-1&&(t=c_(t,i,n,o)),n+t+i},"applyStyle");Object.defineProperties(io.prototype,Hn);var Y5=io(),Q5=io({level:f_?f_.level:0});var Ge=new Bs;function h_(e){return{type:"invalid-schema",message:`${e} has both reference and composite keyword`}}s(h_,"getInvalidSchemaError");function m_(e){return{type:"invalid-operation-id",message:`Operation ${Ge.gray(e)}`}}s(m_,"getInvalidOperationIdError");function g_(e,t){return{type:"missing-path-parameter",message:`Path ${Ge.gray(t)} is missing [${e.map(({name:r})=>Ge.gray(r)).join(", ")}]`}}s(g_,"getMissingPathParameterError");function y_(e){return{type:"not-allowed-inline-enum",message:e}}s(y_,"getNotAllowedInlineEnumError");function At({schema:e,meta:t,options:r}){let n=[];ye(e.type).with("string",()=>n.push(yT(e))).with("number","integer",()=>n.push(_T(e))).with("array",()=>n.push(bT(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
55
77
  `,"\r",`\r
56
- `].some(o=>String.prototype.includes.call(e.description,o))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(uA(e,t),(r==null?void 0:r.withDefaultValues)!==!1?fA(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}s(it,"getZodChain");function uA(e,t){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable?"nullable()":t!=null&&t.isRequired?"":"optional()"}s(uA,"getZodChainablePresence");function fA(e){return e.default!==void 0?`default(${ce(e.type).with("number","integer",()=>Fy(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}s(fA,"getZodChainableDefault");function lA(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(${pA(e.pattern)})`),e.format){let r=ce(e.format).with("email",()=>"email()").with("hostname","uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}s(lA,"getZodChainableStringValidations");function pA(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=Vy(e),`/${e}/`}s(pA,"formatPatternIfNeeded");function dA(e){let t=[];return e.enum?"":(e.type==="integer"&&t.push("int()"),e.minimum!==void 0?e.exclusiveMinimum===!0?t.push(`gt(${e.minimum})`):t.push(`gte(${e.minimum})`):typeof e.exclusiveMinimum=="number"&&t.push(`gt(${e.exclusiveMinimum})`),e.maximum!==void 0?e.exclusiveMaximum===!0?t.push(`lt(${e.maximum})`):t.push(`lte(${e.maximum})`):typeof e.exclusiveMaximum=="number"&&t.push(`lt(${e.exclusiveMaximum})`),e.multipleOf&&t.push(`multipleOf(${e.multipleOf})`),t.join("."))}s(dA,"getZodChainableNumberValidations");function mA(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}s(mA,"getZodChainableArrayValidations");var mr=s(e=>e.reduce((t,r)=>t+r,0),"sum");function X(e,t){if(!t)return e;if(V(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?de("oneOf")+X(e,{...t,type:t.type[0]}):e+de("oneOf")+mr(t.type.map(r=>X(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?de("oneOf")+X(e,t.oneOf[0]):e+de("oneOf")+mr(t.oneOf.map(r=>X(0,r)));if(t.anyOf)return t.anyOf.length===1?de("anyOf")+X(e,t.anyOf[0]):e+de("anyOf")+mr(t.anyOf.map(r=>X(0,r)));if(t.allOf)return t.allOf.length===1?de("allOf")+X(e,t.allOf[0]):e+de("allOf")+mr(t.allOf.map(r=>X(0,r)));if(!t.type)return e;if(Mt(t.type))return t.enum?e+hg(t)+de("enum")+mr(t.enum.map(r=>X(0,r))):e+hg(t);if(t.type==="array")return t.items?de("array")+X(e,t.items):de("array")+X(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.additionalProperties)return t.additionalProperties===!0?de("record")+X(e):de("record")+X(e,t.additionalProperties);if(t.properties){let r=Object.values(t.properties);return e+de("object")+mr(r.map(n=>X(0,n)))}return de("empty-object")+X(e)}return e}s(X,"getOpenAPISchemaComplexity");function hg(e){return ce(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}s(hg,"complexityByType");function de(e){return ce(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","record","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}s(de,"complexityByComposite");var Vu=class Vu{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;V(t)&&(this.ref=t.$ref),i&&(this.enumRef=i),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;enumRef;children=[];meta;getCodeString(t,r){var o,a;if(!this.ref&&this.code)return this.code;if(!this.ref)throw new Error("Zod schema is missing both ref and code");let n=(o=this.resolver)==null?void 0:o.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.includeNamespaces&&i&&i!==t?`${lt({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return X(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};s(Vu,"ZodSchema");var oi=Vu;function H({schema:e,resolver:t,meta:r,tag:n}){var y;let i=new oi(e,t,r),o={parent:i.inherit(r==null?void 0:r.parent),referencedBy:[...i.meta.referencedBy]},a={resolver:t,meta:o,tag:n};if(V(e))return hA({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});let c=gA({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(c)return c;let u=yA({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(u)return u;let f=$A({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(f)return f;let l=bA({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(l)return l;let p=vA({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(p)return p;let h=t.options.allReadonly?".readonly()":"";if(Yy(e))return e.items?i.assign(`z.array(${H({...a,schema:e.items}).getCodeString(n,t.options)}${it({schema:e.items,meta:{...o,isRequired:!0},options:t.options})})${h}`):i.assign(`z.array(z.any())${h}`);let d=e.type?e.type.toLowerCase():void 0;if(d==="object"||e.properties||e.additionalProperties){let $=t.options.additionalPropertiesDefaultValue!==void 0?t.options.additionalPropertiesDefaultValue:!0,b=(e.additionalProperties===null||e.additionalProperties===void 0?$:e.additionalProperties)===!1?"":".passthrough()";if(typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0)return i.assign(`z.record(${H({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+it({schema:e.additionalProperties,meta:{...o,isRequired:!0},options:t.options})})`);let v=e.required&&e.required.length>0,S=t.options.withImplicitRequiredProps?!1:!((y=e.required)!=null&&y.length),T="{}";e.properties&&(T="{ "+Object.entries(e.properties).map(([ee,me])=>{var an;let ot={...o,isRequired:S?!0:v?(an=e.required)==null?void 0:an.includes(ee):t.options.withImplicitRequiredProps,name:ee},Vt=me;if(V(me)&&t&&(Vt=t.getSchemaByRef(me.$ref),!Vt))throw new Error(`Schema ${me.$ref} not found`);let ai=H({...a,schema:me,meta:ot}).getCodeString(n,t.options)+it({schema:Vt,meta:ot,options:t.options});return[ee,ai]}).map(([ee,me])=>`${Dy(ee)}: ${me}`).join(", ")+" }");let P=S?".partial()":"",z=t.options.strictObjects?".strict()":"";return i.assign(`z.object(${T})${P}${z}${b}${h}`)}if(!d)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${d}`)}s(H,"getZodSchema");function hA({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!V(e))return;let o=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(o.length>1&&o.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=H({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,c,i),t}s(hA,"getReferenceZodSchema");function yA({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!dt(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=H({schema:e.oneOf[0],resolver:r,meta:n,tag:i});return t.assign(c.getCodeString(i,r.options))}let o=(a=e.oneOf)==null?void 0:a.some(c=>dt(c)&&((c==null?void 0:c.allOf)||[]).length>1);if(e.discriminator&&!o){let c=e.discriminator.propertyName;return t.assign(`
57
- z.discriminatedUnion("${c}", [${e.oneOf.map(u=>H({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])
58
- `)}return t.assign(`z.union([${e.oneOf.map(c=>H({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}s(yA,"getOneOfZodSchema");function gA({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!dt(e)||!Array.isArray(e.type)))return e.type.length===1?H({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(o=>H({schema:{...e,type:o},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}s(gA,"getArrayZodSchema");function $A({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!dt(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=H({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let o=e.anyOf.map(a=>H({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${o}])`)}s($A,"getAnyOfZodSchema");function bA({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!dt(e)||!e.allOf)return;if(e.allOf.length===1){let p=H({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(p.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:o,noRequiredOnlyAllof:a,composedRequiredSchema:c}=Jy(e),u=a.map(p=>{let h=H({schema:p,resolver:r,meta:n,tag:i});return r&&o(p,r.getSchemaByRef.bind(r)),h});c.required.length&&u.push(H({schema:c,resolver:r,meta:n,tag:i}));let f=u.at(0),l=u.slice(1).map(p=>`merge(${p.getCodeString(i,r.options)})`).join(".");return t.assign(`${f.getCodeString(i,r.options)}.${l}`)}s(bA,"getAllOfZodSchema");function vA({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!dt(e))return;let o=e.type?e.type.toLowerCase():void 0;if(o&&Mt(o)){if(e.enum){if(o==="string")return SA({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(ce(o).with("integer",()=>"z.number()").with("string",()=>ce(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(a=>`z.${a}()`))}}s(vA,"getPrimitiveZodSchema");function SA({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){if(!dt(t))return;let o=Lu(t),a=e.getEnumZodSchemaDataByCode(o);if(!e.options.extractEnums||!a)return r.assign(o);if(!a.zodSchemaName||!a.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${o}`);let c=e.options.includeNamespaces&&a.tag!==i?`${lt({type:"models",tag:a.tag,options:e.options})}.`:"";return new oi(t,e,n,a.zodSchemaName).inherit(r),r.assign(`${c}${a.zodSchemaName}`)}s(SA,"getEnumZodSchema");function Lu(e){var t;return`z.enum([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}s(Lu,"getEnumZodSchemaCode");function sn({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var c;let o=t.getCodeString();if((!lr(o)||t.ref===void 0)&&r){if(t.complexity<ju)return o;let u=Ft(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(u);){if((c=n.getZodSchemaNamesByCompositeCode(o))!=null&&c.includes(u))return u;if(n.getCodeByZodSchemaName(u)===u)return u;throw new Error(`Can't uniquely resolve zod schema name: ${u}`)}return n.setZodSchema(u,o,i),n.addZodSchemaForCompositeCode(o,t,u,e),u}let a=n.getCodeByZodSchemaName(o);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return X(0,n.getSchemaByRef(t.ref))<ju?n.getCodeByZodSchemaName(o):o;throw new Error(`Invalid ref: ${t.ref}`)}s(sn,"resolveZodSchemaName");function yg({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var d,y;let o=e.resolveObject(t.requestBody);if(!o)return;let c=Object.keys(o.content??{}).find(Dt);if(!c)return;let u=(y=(d=o.content)==null?void 0:d[c])==null?void 0:y.schema;if(!u)return;let f=H({schema:u,resolver:e,meta:{isRequired:o.required??!0},tag:i}),l=e.resolveObject(u),p=sn({schema:l,zodSchema:f,fallbackName:Po(pr(r,n,i)),resolver:e,tag:i}),h=it({schema:l,meta:f.meta,options:e.options});return{endpointParameter:{name:Wy,type:"Body",description:o.description,zodSchema:p+h,bodyObject:o},requestFormat:c}}s(yg,"getEndpointBody");function gg({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let o=e.resolveObject(t);if(!qy.includes(o.in))return;let a={};if(o.content){let p=Object.keys(o.content??{}),h=p.find(Dt);if(!h)throw new Error(`Unsupported media type for param ${o.name}: ${p.join(", ")}`);let d=o.content[h];if(!d)throw new Error(`No content with media type for param ${o.name}: ${h}`);a=(d==null?void 0:d.schema)??d}else o.schema&&(a=o.schema);e.options.withDescription&&a&&(a.description=(o.description??"").trim());let c=H({schema:a,resolver:e,meta:{isRequired:o.in==="path"?!0:o.required??!1},tag:i}),u=e.resolveObject(a),f=it({schema:u,meta:c.meta,options:e.options}),l=sn({schema:u,zodSchema:c.assign(c.getCodeString(i)+f),fallbackName:Hy(pr(r,n,i),o.name),resolver:e,tag:i});return{name:ce(o.in).with("path",()=>Iu(o.name)).otherwise(()=>o.name),type:ce(o.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:l,parameterObject:o}}s(gg,"getEndpointParameter");function bg(e){var r,n,i;let t=[];for(let o in e.openApiDoc.paths){let a=e.openApiDoc.paths[o],c=kt(a,Ct),u=$g(a.parameters??[]);for(let f in c){let l=c[f];if(!l||l.deprecated&&!e.options.withDeprecatedEndpoints)continue;let p=l.operationId&&l.operationId!==cr(l.operationId);l.operationId&&p&&e.validationErrors.push(pg(l.operationId));let h=Object.entries({...u,...$g(l.parameters??[])}).map(([,v])=>v),d=ri({path:o,method:f,operation:l,operationsByTag:e.operationsByTag,options:e.options}),y=e.operationNames.filter(v=>v===d).length<=1,$=ur(l,e.options),g={method:f,path:By(o),operationName:d,description:l.description,tags:(r=l.tags)==null?void 0:r.map(nt),requestFormat:"application/json",parameters:[],response:"",errors:[]};if(l.requestBody){let v=yg({resolver:e,operation:l,operationName:d,isUniqueOperationName:y,tag:$});v&&(g.parameters.push(v.endpointParameter),g.requestFormat=v.requestFormat)}for(let v of h){let S=gg({resolver:e,param:v,operationName:d,isUniqueOperationName:y,tag:$});S&&g.parameters.push(S)}let b=PA(g);b.forEach(v=>{g.parameters.push(v)}),b.length>0&&e.validationErrors.push(dg(b,o));for(let v in l.responses){let S=e.resolveObject(l.responses[v]),P=Object.keys(S.content??{}).find(tn),z,W;if(P?(g.responseFormat=P,z=(i=(n=S.content)==null?void 0:n[P])==null?void 0:i.schema):W=bu,z){let ee=H({schema:z,resolver:e,meta:{isRequired:!0},tag:$}),me=e.resolveObject(z);W=sn({schema:me,zodSchema:ee,fallbackName:ee.ref?void 0:_o({statusCode:v,operationName:d,isUniqueOperationName:y,tag:$}),resolver:e,tag:$})+it({schema:me,meta:ee.meta,options:e.options})}if(W){let ee=Number(v);vo(ee)?(g.response=W,g.responseObject=S):v!=="default"&&So(ee)&&g.errors.push({zodSchema:W,status:ee,description:S.description})}}g.response||(g.response=bu),t.push(g)}}return t}s(bg,"getEndpointsFromOpenAPIDoc");function $g(e){return Object.fromEntries((e??[]).map(t=>[V(t)?t.$ref:t.name,t]))}s($g,"getParameters");function PA(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=>_A(r))}s(PA,"getMissingPathParameters");function _A(e){return{name:e,type:"Path",zodSchema:"z.string()",parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}s(_A,"getPathParameterFromName");function ze(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(V(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(bo.some(o=>o in i&&i[o])){let o=i.allOf??i.anyOf??i.oneOf??[];for(let a of o){if((n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))===!0)return;ze(a,{data:r,onSchema:n})}}if(i.properties)for(let[o,a]of Object.entries(i.properties)){if(n({type:"property",parentSchema:e,schema:a,data:r,propertyName:o})===!0)return;ze(a,t)}if(i.additionalProperties)for(let[o,a]of Object.entries(i.additionalProperties)){if(!(a instanceof Object)||n({type:"additionalProperty",parentSchema:e,schema:a,data:r,propertyName:o})===!0)return;ze(a,t)}if(i.type==="array"){let o=e.items;if(n({type:"array",parentSchema:e,schema:o,data:r})===!0)return;ze(o,t)}}s(ze,"iterateSchema");function vg(e,t){let r=OA(e,t),n=xA(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}s(vg,"getOpenAPISchemaDependencyGraph");function OA(e,t){let r={},n={};return e.forEach(i=>wA({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}s(OA,"getRefsDependencyGraph");function xA(e,t){let r={},n={},i=s((o,a)=>{n[a].add(o),t[o]&&a!==o&&t[o].forEach(c=>{let u=`${a}__${c}`;r[u]||(r[u]=!0,i(c,a))})},"visit");return e.forEach(o=>{let a=t[o];a&&(n[o]||(n[o]=new Set),a.forEach(c=>i(c,o)))}),n}s(xA,"getDeepRefsDependencyGraph");function wA({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let o=s(a=>{if(a.type!=="reference"||!a.data)return;let{schema:c,data:u}=a;if(i[u.fromRef]||(i[u.fromRef]=new Set),i[u.fromRef].add(c.$ref),n[c.$ref])return!0;n[u.fromRef]=!0,ze(r(c.$ref),{data:{fromRef:c.$ref},onSchema:o})},"onSchema");return ze(e,{data:{fromRef:t},onSchema:o}),{visitedRefs:n,refsDependencyGraph:i}}s(wA,"getSchemaRefsDependencyGraph");function jo(e,t,r){let n=[];return ze(t,{onSchema:s(i=>{i.type==="reference"?n.push(i.schema):V(i.parentSchema)&&e.validationErrors.push(lg(r))},"onSchema")}),n}s(jo,"getSchemaRefObjs");function Sg(e,t){return t.map(i=>fr(i.$ref)).reduce((i,o)=>{let a=e.dependencyGraph.deepDependencyGraph[o];return[...i,o,...Array.from(a??[])]},[])}s(Sg,"getDeepSchemaRefObjs");function si({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&Pg({schema:e,nameSegments:t,...n}),ze(e,{data:{nameSegments:t},onSchema:s(i=>{var a;if(i.type==="reference")return!0;let o=[...((a=i.data)==null?void 0:a.nameSegments)??[]];(i.type==="property"||i.type==="additionalProperty")&&o.push(i.propertyName),Pg({schema:i.schema,nameSegments:[...o],...n})},"onSchema")})}s(si,"updateEnumZodSchemaData");function Pg({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:o=[]}){if(!t||V(t)||!t.enum)return;let a=Lu(t),c=e.enumZodSchemaData.find(u=>u.code===a);c?(c.meta.zodSchemaNameSegments.push(o),c.meta.tags.push(...i),c.meta.schemaRefs.push(...r?[r]:[])):e.enumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[o],tags:[...i],schemaRefs:r?[r]:[]}}),e.validationErrors.push(mg(r?`schema ${Te.gray(en(r))} property ${Te.gray(o[o.length-1])}`:n??o.join("->")))}s(Pg,"handleEnumZodSchemaDataUpdate");function Og(e){e.enumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(o=>o[o.length-1]).filter(Boolean),i=Pu(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=Zy(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!_g(e);)EA(e,t+2),t++;if(!_g(e))throw new Error("Failed to resolve unique names for enum zod schemas")}s(Og,"resolveEnumZodSchemaNames");function _g(e){return e.enumZodSchemaData.every(t=>e.enumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length==1)}s(_g,"allEnumZodSchemaNamesAreUnique");function EA(e,t){e.enumZodSchemaData.forEach(r=>{let n=e.enumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&jA(n,t)})}s(EA,"additionalResolveEnumZodSchemaName");function jA(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1)r.zodSchemaName=[pe(n[0]),r.zodSchemaName].filter(Boolean).join("");else{let i=Pu(n);r.zodSchemaName=[i?pe(i):"",r.zodSchemaName].filter(Boolean).join("")}})}s(jA,"suffixWithPreviousSegmentName");function xg(e){e.enumZodSchemaData.forEach(t=>{let r=Qn(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}s(xg,"resolveEnumZodSchemaTags");var Bu=class Bu{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=vg(this.schemaRefs,this.getSchemaByRef.bind(this)),this.operationsByTag=Cy(t,r),this.operationNames=Ly(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];enumZodSchemaData=[];dependencyGraph;operationsByTag={};operationNames=[];validationErrors=[];get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(My)}getSchemaByRef(t){return this.docSchemas[en(t)]}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(fr(t)))==null?void 0:n.zodSchemaName)??((i=this.enumZodSchemaData.find(o=>o.zodSchemaName===t))==null?void 0:i.zodSchemaName);if(!r)throw new Error(`Zod schema not found for ref: ${t}`);return r}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var u,f;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.enumZodSchemaData.find(l=>l.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)??[]:[],o=((f=this.zodSchemaData.find(l=>l.zodSchemaName===t))==null?void 0:f.tags)??[],a=Qn(i,o),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(o=>o.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let o={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(o):this.compositeZodSchemaData.push({code:t,zodSchemas:[o]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemaData.find(r=>r.code===t)}getEnumZodSchemaNamesReferencedBySchemaRef(t){return this.enumZodSchemaData.reduce((r,{zodSchemaName:n,meta:i})=>(n&&i.schemaRefs.includes(t)&&r.push(n),r),[])}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}getEnumZodSchemas(){return this.enumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return V(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}initialize(){var t,r,n,i,o,a;this.schemaRefs.forEach(c=>{let u=fr(c),f=en(u),l=Ft(f,this.options.schemaSuffix);this.schemaData.push({ref:u,name:f,zodSchemaName:l,tags:[]})});for(let c in this.openApiDoc.paths){let u=this.openApiDoc.paths[c],f=kt(u,Ct);for(let l in f){let p=f[l];if(!p||p.deprecated&&!((t=this.options)!=null&&t.withDeprecatedEndpoints))continue;let h=ur(p,this.options),d=ri({path:c,method:l,operation:p,operationsByTag:this.operationsByTag,options:this.options}),y=this.operationNames.filter(v=>v===d).length<=1,$=Pe(pr(d,y,h)),g=[];if((r=p.parameters)==null||r.map(v=>{let S=v,T=S.schema,P=`operation ${Te.gray(p.operationId??c)} parameter ${Te.gray(S.name)}`;g.push(...jo(this,T,P)),this.options.extractEnums&&si({resolver:this,schema:T,schemaInfo:P,tags:[h],nameSegments:[$,S.name],includeSelf:!0})}),p.requestBody){let v=this.resolveObject(p.requestBody),T=Object.keys(v.content??{}).find(Dt);if(T){let P=(i=(n=v.content)==null?void 0:n[T])==null?void 0:i.schema,z=`operation ${Te.gray(p.operationId)} request body`;g.push(...jo(this,P,z)),this.options.extractEnums&&si({resolver:this,schema:P,schemaInfo:z,tags:[h],nameSegments:[Po($)]})}}for(let v in p.responses){let S=this.resolveObject(p.responses[v]),P=Object.keys(S.content??{}).find(tn);if(P){let z=(a=(o=S.content)==null?void 0:o[P])==null?void 0:a.schema,W=`operation ${Te.gray(p.operationId)} response body`;g.push(...jo(this,z,W)),this.options.extractEnums&&si({resolver:this,schema:z,schemaInfo:W,tags:[h],nameSegments:[_o({statusCode:v,operationName:d,isUniqueOperationName:y,tag:h})]})}}Sg(this,g).forEach(v=>{let S=this.getSchemaDataByRef(v);S&&S.tags.push(h)})}}this.options.extractEnums&&(this.schemaRefs.forEach(c=>{var f;let u=fr(c);si({resolver:this,schema:this.getSchemaByRef(u),schemaRef:u,tags:((f=this.getSchemaDataByRef(u))==null?void 0:f.tags)??[],nameSegments:[en(u)]})}),Og(this),xg(this))}};s(Bu,"SchemaResolver");var Ao=Bu;function wg(e){var r;let t={};return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let o=Ft(n,e.options.schemaSuffix);if(!t[o]){let a=e.getTagByZodSchemaName(o);t[o]=H({schema:i,resolver:e,tag:a}).getCodeString(a)}}),t}s(wg,"getZodSchemasFromOpenAPIDoc");function Eg(e){let t=[],r={};function n(i,o){Array.isArray(o)||(o=[]),o.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{o.includes(a)||r[a]||n(a,o.slice(0))}),t.includes(i)||t.push(i)}return s(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}s(Eg,"topologicalSort");function jg(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[o])=>t.indexOf(i)-t.indexOf(o)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}s(jg,"sortObjKeysFromArray");function Ag(e,t){let r=Eg(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return jg(t,r)}s(Ag,"sortZodSchemasByTopology");function Tg(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let o=e.getRefByZodSchemaName(n),a=o&&e.isSchemaCircular(o);r[Ft(n,e.options.schemaSuffix)]=a?`z.lazy(() => ${i})`:i}),r}s(Tg,"wrapCircularZodSchemas");function Ig(e,t){let r=new Ao(e,t),n=bg(r),o={...wg(r),...r.getZodSchemas()};return o=Tg(r,o),o=Ag(r,o),o={...r.getEnumZodSchemas(),...o},{resolver:r,data:AA({resolver:r,endpoints:n,zodSchemas:o,options:t})}}s(Ig,"getDataFromOpenAPIDoc");function AA({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(o=>{let a=Xy(o,n);Rg(a,i).endpoints.push(o)}),Object.entries(r).forEach(([o,a])=>{let c=e.getTagByZodSchemaName(o);c&&(Rg(c,i).zodSchemas[o]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}s(AA,"splitDataByTags");function Rg(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}s(Rg,"getTagElement");async function qg(e,t){let{resolver:r,data:n}=await Ig(e,t),i=[],o=[];return n.forEach(({endpoints:c,zodSchemas:u},f)=>{var h;((h=t.excludeTags)==null?void 0:h.findIndex(d=>d.toLowerCase()===f.toLowerCase()))===-1&&(Object.keys(u).forEach(d=>{let y=r.getRefByZodSchemaName(d),$=y?r.getSchemaByRef(y):r.getSchemaByCompositeZodSchemaName(d),g=rn({zodSchemaName:d,schema:$,resolver:r}),b;$&&(b=dr({schema:$,parentTypes:[g],resolver:r})),i.push({...g,metaType:"primitive",...b})}),c.forEach(d=>{let y="queries",$=nt(f);o.push({name:Ay(d),filePath:yo({type:y,tag:$,includeTagDir:!0,options:t}),namespace:t.includeNamespaces?lt({type:y,tag:$,options:t}):void 0,isQuery:zy(d),isMutation:Uy(d),params:TA({resolver:r,endpoint:d}),response:RA({resolver:r,endpoint:d})})}))}),{openApiDoc:e,models:i,queries:o}}s(qg,"getMetadataFromOpenAPIDoc");function TA({resolver:e,endpoint:t}){return t.parameters.map(r=>{var a,c,u,f;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(Dt);p&&(n=e.resolveObject((u=(c=r.bodyObject.content)==null?void 0:c[p])==null?void 0:u.schema))}let i=rn({zodSchemaName:r.zodSchema,schema:n,resolver:e}),o;return n&&(o=dr({schema:n,parentTypes:[i],resolver:e})),{name:cr(r.name),isRequired:((f=r.parameterObject)==null?void 0:f.required)??!0,...i,...o,paramType:r.type}}).sort((r,n)=>{if(r.isRequired===n.isRequired){let i=["Path","Body","Query","Header"];return i.indexOf(r.paramType)-i.indexOf(n.paramType)}return r.isRequired?-1:1}).map(({paramType:r,...n})=>n)}s(TA,"getQueryMetadataParams");function RA({resolver:e,endpoint:t}){var a,c,u,f;let r,n=Object.keys(((a=t.responseObject)==null?void 0:a.content)??{}).find(tn);n&&(r=e.resolveObject((f=(u=(c=t.responseObject)==null?void 0:c.content)==null?void 0:u[n])==null?void 0:f.schema));let i=rn({zodSchemaName:t.response,schema:r,resolver:e}),o;return r&&(o=dr({schema:r,parentTypes:[i],resolver:e})),{...i,metaType:"primitive",...o}}s(RA,"getQueryMetadataResponse");async function IA({input:e,options:t}){let r={...wy,...t},n=await Ng.default.bundle(e);return await qg(n,r)}s(IA,"getGenerateMetadata");0&&(module.exports={getGenerateMetadata});
78
+ `].some(o=>String.prototype.includes.call(e.description,o))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(mT(e,t),(r==null?void 0:r.withDefaultValues)!==!1?gT(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}s(At,"getZodChain");function mT(e,t){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable?"nullable()":t!=null&&t.isRequired?"":"optional()"}s(mT,"getZodChainablePresence");function gT(e){return e.default!==void 0?`default(${ye(e.type).with("number","integer",()=>Vv(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}s(gT,"getZodChainableDefault");function yT(e){let t=[];if(e.enum||(e.minLength!==void 0&&t.push(`min(${e.minLength})`),e.maxLength!==void 0&&t.push(`max(${e.maxLength})`)),e.pattern&&t.push(`regex(${vT(e.pattern)})`),e.format){let r=ye(e.format).with("email",()=>"email()").with("hostname","uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}s(yT,"getZodChainableStringValidations");function vT(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=Bv(e),`/${e}/`}s(vT,"formatPatternIfNeeded");function _T(e){let t=[];return e.enum?"":(e.type==="integer"&&t.push("int()"),e.minimum!==void 0?e.exclusiveMinimum===!0?t.push(`gt(${e.minimum})`):t.push(`gte(${e.minimum})`):typeof e.exclusiveMinimum=="number"&&t.push(`gt(${e.exclusiveMinimum})`),e.maximum!==void 0?e.exclusiveMaximum===!0?t.push(`lt(${e.maximum})`):t.push(`lte(${e.maximum})`):typeof e.exclusiveMaximum=="number"&&t.push(`lt(${e.exclusiveMaximum})`),e.multipleOf&&t.push(`multipleOf(${e.multipleOf})`),t.join("."))}s(_T,"getZodChainableNumberValidations");function bT(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}s(bT,"getZodChainableArrayValidations");var Hr=s(e=>e.reduce((t,r)=>t+r,0),"sum");function ne(e,t){if(!t)return e;if(H(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?$e("oneOf")+ne(e,{...t,type:t.type[0]}):e+$e("oneOf")+Hr(t.type.map(r=>ne(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?$e("oneOf")+ne(e,t.oneOf[0]):e+$e("oneOf")+Hr(t.oneOf.map(r=>ne(0,r)));if(t.anyOf)return t.anyOf.length===1?$e("anyOf")+ne(e,t.anyOf[0]):e+$e("anyOf")+Hr(t.anyOf.map(r=>ne(0,r)));if(t.allOf)return t.allOf.length===1?$e("allOf")+ne(e,t.allOf[0]):e+$e("allOf")+Hr(t.allOf.map(r=>ne(0,r)));if(!t.type)return e;if(Mt(t.type))return t.enum?e+v_(t)+$e("enum")+Hr(t.enum.map(r=>ne(0,r))):e+v_(t);if(t.type==="array")return t.items?$e("array")+ne(e,t.items):$e("array")+ne(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.additionalProperties)return t.additionalProperties===!0?$e("record")+ne(e):$e("record")+ne(e,t.additionalProperties);if(t.properties){let r=Object.values(t.properties);return e+$e("object")+Hr(r.map(n=>ne(0,n)))}return $e("empty-object")+ne(e)}return e}s(ne,"getOpenAPISchemaComplexity");function v_(e){return ye(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}s(v_,"complexityByType");function $e(e){return ye(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","record","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}s($e,"complexityByComposite");var Bf=class Bf{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;H(t)&&(this.ref=t.$ref),i&&(this.enumRef=i),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;enumRef;children=[];meta;getCodeString(t,r){var o,a;if(!this.ref&&this.code)return this.code;if(!this.ref)throw new Error("Zod schema is missing both ref and code");let n=(o=this.resolver)==null?void 0:o.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.includeNamespaces&&i&&i!==t?`${re({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return ne(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};s(Bf,"ZodSchema");var oo=Bf;function W({schema:e,resolver:t,meta:r,tag:n}){var g;let i=new oo(e,t,r),o={parent:i.inherit(r==null?void 0:r.parent),referencedBy:[...i.meta.referencedBy]},a={resolver:t,meta:o,tag:n};if(H(e))return ST({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});let u=$T({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(u)return u;let c=PT({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(c)return c;let l=OT({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(l)return l;let p=ET({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(p)return p;let f=xT({schema:e,zodSchema:i,resolver:t,meta:o,tag:n});if(f)return f;let d=t.options.allReadonly?".readonly()":"";if(Qv(e))return e.items?i.assign(`z.array(${W({...a,schema:e.items}).getCodeString(n,t.options)}${At({schema:e.items,meta:{...o,isRequired:!0},options:t.options})})${d}`):i.assign(`z.array(z.any())${d}`);let h=e.type?e.type.toLowerCase():void 0;if(h==="object"||e.properties||e.additionalProperties){let y=t.options.additionalPropertiesDefaultValue!==void 0?t.options.additionalPropertiesDefaultValue:!0,_=(e.additionalProperties===null||e.additionalProperties===void 0?y:e.additionalProperties)===!1?"":".passthrough()";if(typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0)return i.assign(`z.record(${W({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+At({schema:e.additionalProperties,meta:{...o,isRequired:!0},options:t.options})})`);let b=e.required&&e.required.length>0,S=t.options.withImplicitRequiredProps?!1:!((g=e.required)!=null&&g.length),E="{}";e.properties&&(E="{ "+Object.entries(e.properties).map(([ie,oe])=>{var Bt;let le={...o,isRequired:S?!0:b?(Bt=e.required)==null?void 0:Bt.includes(ie):t.options.withImplicitRequiredProps,name:ie},Me=oe;if(H(oe)&&t&&(Me=t.getSchemaByRef(oe.$ref),!Me))throw new Error(`Schema ${oe.$ref} not found`);let Ee=W({...a,schema:oe,meta:le}).getCodeString(n,t.options)+At({schema:Me,meta:le,options:t.options});return[ie,Ee]}).map(([ie,oe])=>`${Fv(ie)}: ${oe}`).join(", ")+" }");let $=S?".partial()":"",M=t.options.strictObjects?".strict()":"";return i.assign(`z.object(${E})${$}${M}${_}${d}`)}if(!h)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${h}`)}s(W,"getZodSchema");function ST({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!H(e))return;let o=t.meta.referencedBy.slice(0,-1).map(c=>c.ref?r.getZodSchemaNameByRef(c.ref)??c.ref:void 0).filter(Boolean),a=r.getZodSchemaNameByRef(e.$ref);if(o.length>1&&o.includes(a))return t.assign(r.getCodeByZodSchemaName(t.ref));let u=r.getCodeByZodSchemaName(e.$ref);if(!u){let c=r.getSchemaByRef(e.$ref);if(!c)throw new Error(`Schema ${e.$ref} not found`);u=W({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,u,i),t}s(ST,"getReferenceZodSchema");function PT({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!wt(e)||!e.oneOf)return;if(e.oneOf.length===1){let u=W({schema:e.oneOf[0],resolver:r,meta:n,tag:i});return t.assign(u.getCodeString(i,r.options))}let o=(a=e.oneOf)==null?void 0:a.some(u=>wt(u)&&((u==null?void 0:u.allOf)||[]).length>1);if(e.discriminator&&!o){let u=e.discriminator.propertyName;return t.assign(`
79
+ z.discriminatedUnion("${u}", [${e.oneOf.map(c=>W({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])
80
+ `)}return t.assign(`z.union([${e.oneOf.map(u=>W({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}s(PT,"getOneOfZodSchema");function $T({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!wt(e)||!Array.isArray(e.type)))return e.type.length===1?W({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(o=>W({schema:{...e,type:o},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}s($T,"getArrayZodSchema");function OT({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!wt(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=W({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let o=e.anyOf.map(a=>W({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${o}])`)}s(OT,"getAnyOfZodSchema");function ET({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!wt(e)||!e.allOf)return;if(e.allOf.length===1){let f=W({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(f.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:o,noRequiredOnlyAllof:a,composedRequiredSchema:u}=Jv(e),c=a.map(f=>{let d=W({schema:f,resolver:r,meta:n,tag:i});return r&&o(f,r.getSchemaByRef.bind(r)),d});u.required.length&&c.push(W({schema:u,resolver:r,meta:n,tag:i}));let l=c.at(0),p=c.slice(1).map(f=>`merge(${f.getCodeString(i,r.options)})`).join(".");return t.assign(`${l.getCodeString(i,r.options)}.${p}`)}s(ET,"getAllOfZodSchema");function xT({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!wt(e))return;let o=e.type?e.type.toLowerCase():void 0;if(o&&Mt(o)){if(e.enum){if(o==="string")return wT({schema:e,zodSchema:t,resolver:r,meta:n,tag:i});if(e.enum.some(a=>typeof a=="string"))return t.assign("z.never()");if(e.enum.length===1){let a=e.enum[0];return t.assign(`z.literal(${a===null?"null":a})`)}return t.assign(`z.union([${e.enum.map(a=>`z.literal(${a===null?"null":a})`).join(", ")}])`)}return t.assign(ye(o).with("integer",()=>"z.number()").with("string",()=>ye(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(a=>`z.${a}()`))}}s(xT,"getPrimitiveZodSchema");function wT({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){if(!wt(t))return;let o=Hf(t),a=e.getEnumZodSchemaDataByCode(o);if(!e.options.extractEnums||!a)return r.assign(o);if(!a.zodSchemaName||!a.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${o}`);let u=e.options.includeNamespaces&&a.tag!==i?`${re({type:"models",tag:a.tag,options:e.options})}.`:"";return new oo(t,e,n,a.zodSchemaName).inherit(r),r.assign(`${u}${a.zodSchemaName}`)}s(wT,"getEnumZodSchema");function Hf(e){var t;return`z.enum([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}s(Hf,"getEnumZodSchemaCode");function Un({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var u;let o=t.getCodeString();if((!Pe(o)||t.ref===void 0)&&r){if(t.complexity<kf)return o;let c=hr(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(c);){if((u=n.getZodSchemaNamesByCompositeCode(o))!=null&&u.includes(c))return c;if(n.getCodeByZodSchemaName(c)===c)return c;throw new Error(`Can't uniquely resolve zod schema name: ${c}`)}return n.setZodSchema(c,o,i),n.addZodSchemaForCompositeCode(o,t,c,e),c}let a=n.getCodeByZodSchemaName(o);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return ne(0,n.getSchemaByRef(t.ref))<kf?n.getCodeByZodSchemaName(o):o;throw new Error(`Invalid ref: ${t.ref}`)}s(Un,"resolveZodSchemaName");function __({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var h,g;let o=e.resolveObject(t.requestBody);if(!o)return;let u=Object.keys(o.content??{}).find(dr);if(!u)return;let c=(g=(h=o.content)==null?void 0:h[u])==null?void 0:g.schema;if(!c)return;let l=W({schema:c,resolver:e,meta:{isRequired:o.required??!0},tag:i}),p=e.resolveObject(c),f=Un({schema:p,zodSchema:l,fallbackName:js(Vr(r,n,i)),resolver:e,tag:i}),d=At({schema:p,meta:l.meta,options:e.options});return{endpointParameter:{name:Yv,type:"Body",description:o.description,zodSchema:f+d,bodyObject:o},requestFormat:u}}s(__,"getEndpointBody");function b_({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let o=e.resolveObject(t);if(!qv.includes(o.in))return;let a={};if(o.content){let f=Object.keys(o.content??{}),d=f.find(dr);if(!d)throw new Error(`Unsupported media type for param ${o.name}: ${f.join(", ")}`);let h=o.content[d];if(!h)throw new Error(`No content with media type for param ${o.name}: ${d}`);a=(h==null?void 0:h.schema)??h}else o.schema&&(a=o.schema);e.options.withDescription&&a&&(a.description=(o.description??"").trim());let u=W({schema:a,resolver:e,meta:{isRequired:o.in==="path"?!0:o.required??!1},tag:i}),c=e.resolveObject(a),l=At({schema:c,meta:u.meta,options:e.options}),p=Un({schema:c,zodSchema:u.assign(u.getCodeString(i)+l),fallbackName:Gv(Vr(r,n,i),o.name),resolver:e,tag:i});return{name:ye(o.in).with("path",()=>Nf(o.name)).otherwise(()=>o.name),type:ye(o.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:p,parameterObject:o}}s(b_,"getEndpointParameter");function P_(e){var r,n,i;let t=[];for(let o in e.openApiDoc.paths){let a=e.openApiDoc.paths[o],u=pr(a,fr),c=S_(a.parameters??[]);for(let l in u){let p=u[l];if(!p||p.deprecated&&!e.options.withDeprecatedEndpoints)continue;let f=p.operationId&&p.operationId!==Pt(p.operationId);p.operationId&&f&&e.validationErrors.push(m_(p.operationId));let d=Object.entries({...c,...S_(p.parameters??[])}).map(([,b])=>b),h=Xi({path:o,method:l,operation:p,operationsByTag:e.operationsByTag,options:e.options}),g=e.operationNames.filter(b=>b===h).length<=1,y=Lr(p,e.options),v={method:l,path:Uv(o),operationName:h,description:p.description,tags:(r=p.tags)==null?void 0:r.map(xt),requestFormat:"application/json",parameters:[],response:"",errors:[]};if(p.requestBody){let b=__({resolver:e,operation:p,operationName:h,isUniqueOperationName:g,tag:y});b&&(v.parameters.push(b.endpointParameter),v.requestFormat=b.requestFormat)}for(let b of d){let S=b_({resolver:e,param:b,operationName:h,isUniqueOperationName:g,tag:y});S&&v.parameters.push(S)}let _=AT(v);_.forEach(b=>{v.parameters.push(b)}),_.length>0&&e.validationErrors.push(g_(_,o));for(let b in p.responses){let S=e.resolveObject(p.responses[b]),$=Object.keys(S.content??{}).find(Ln),M,j;if($?(v.responseFormat=$,M=(i=(n=S.content)==null?void 0:n[$])==null?void 0:i.schema):j=Sf,M){let ie=W({schema:M,resolver:e,meta:{isRequired:!0},tag:y}),oe=e.resolveObject(M);j=Un({schema:oe,zodSchema:ie,fallbackName:ie.ref?void 0:Ms({statusCode:b,operationName:h,isUniqueOperationName:g,tag:y}),resolver:e,tag:y})+At({schema:oe,meta:ie.meta,options:e.options})}if(j){let ie=Number(b);Cs(ie)?(v.response=j,v.responseObject=S):b!=="default"&&Ns(ie)&&v.errors.push({zodSchema:j,status:ie,description:S.description})}}v.response||(v.response=Sf),t.push(v)}}return t}s(P_,"getEndpointsFromOpenAPIDoc");function S_(e){return Object.fromEntries((e??[]).map(t=>[H(t)?t.$ref:t.name,t]))}s(S_,"getParameters");function AT(e){return[...e.path.matchAll(/:([a-zA-Z0-9_]+)/g)].map(r=>r[1]).filter(r=>e.parameters.findIndex(({name:n})=>n===r)===-1).map(r=>IT(r))}s(AT,"getMissingPathParameters");function IT(e){return{name:e,type:"Path",zodSchema:"z.string()",parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}s(IT,"getPathParameterFromName");function ct(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(H(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(Ts.some(o=>o in i&&i[o])){let o=i.allOf??i.anyOf??i.oneOf??[];for(let a of o){if((n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))===!0)return;ct(a,{data:r,onSchema:n})}}if(i.properties)for(let[o,a]of Object.entries(i.properties)){if(n({type:"property",parentSchema:e,schema:a,data:r,propertyName:o})===!0)return;ct(a,t)}if(i.additionalProperties)for(let[o,a]of Object.entries(i.additionalProperties)){if(!(a instanceof Object)||n({type:"additionalProperty",parentSchema:e,schema:a,data:r,propertyName:o})===!0)return;ct(a,t)}if(i.type==="array"){let o=e.items;if(n({type:"array",parentSchema:e,schema:o,data:r})===!0)return;ct(o,t)}}s(ct,"iterateSchema");function $_(e,t){let r=kT(e,t),n=RT(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}s($_,"getOpenAPISchemaDependencyGraph");function kT(e,t){let r={},n={};return e.forEach(i=>TT({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}s(kT,"getRefsDependencyGraph");function RT(e,t){let r={},n={},i=s((o,a)=>{n[a].add(o),t[o]&&a!==o&&t[o].forEach(u=>{let c=`${a}__${u}`;r[c]||(r[c]=!0,i(u,a))})},"visit");return e.forEach(o=>{let a=t[o];a&&(n[o]||(n[o]=new Set),a.forEach(u=>i(u,o)))}),n}s(RT,"getDeepRefsDependencyGraph");function TT({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let o=s(a=>{if(a.type!=="reference"||!a.data)return;let{schema:u,data:c}=a;if(i[c.fromRef]||(i[c.fromRef]=new Set),i[c.fromRef].add(u.$ref),n[u.$ref])return!0;n[c.fromRef]=!0,ct(r(u.$ref),{data:{fromRef:u.$ref},onSchema:o})},"onSchema");return ct(e,{data:{fromRef:t},onSchema:o}),{visitedRefs:n,refsDependencyGraph:i}}s(TT,"getSchemaRefsDependencyGraph");function Us(e,t,r){let n=[];return ct(t,{onSchema:s(i=>{i.type==="reference"?n.push(i.schema):H(i.parentSchema)&&e.validationErrors.push(h_(r))},"onSchema")}),n}s(Us,"getSchemaRefObjs");function O_(e,t){return t.map(i=>Fr(i.$ref)).reduce((i,o)=>{let a=e.dependencyGraph.deepDependencyGraph[o];return[...i,o,...Array.from(a??[])]},[])}s(O_,"getDeepSchemaRefObjs");function so({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&E_({schema:e,nameSegments:t,...n}),ct(e,{data:{nameSegments:t},onSchema:s(i=>{var a;if(i.type==="reference")return!0;let o=[...((a=i.data)==null?void 0:a.nameSegments)??[]];(i.type==="property"||i.type==="additionalProperty")&&o.push(i.propertyName),E_({schema:i.schema,nameSegments:[...o],...n})},"onSchema")})}s(so,"updateEnumZodSchemaData");function E_({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:o=[]}){if(!t||H(t)||!t.enum)return;let a=Hf(t),u=e.enumZodSchemaData.find(c=>c.code===a);u?(u.meta.zodSchemaNameSegments.push(o),u.meta.tags.push(...i),u.meta.schemaRefs.push(...r?[r]:[])):e.enumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[o],tags:[...i],schemaRefs:r?[r]:[]}}),e.validationErrors.push(y_(r?`schema ${Ge.gray(Dn(r))} property ${Ge.gray(o[o.length-1])}`:n??o.join("->")))}s(E_,"handleEnumZodSchemaDataUpdate");function w_(e){e.enumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(o=>o[o.length-1]).filter(Boolean),i=$f(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=zv(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!x_(e);)CT(e,t+2),t++;if(!x_(e))throw new Error("Failed to resolve unique names for enum zod schemas")}s(w_,"resolveEnumZodSchemaNames");function x_(e){return e.enumZodSchemaData.every(t=>e.enumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length==1)}s(x_,"allEnumZodSchemaNamesAreUnique");function CT(e,t){e.enumZodSchemaData.forEach(r=>{let n=e.enumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&NT(n,t)})}s(CT,"additionalResolveEnumZodSchemaName");function NT(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1)r.zodSchemaName=[ge(n[0]),r.zodSchemaName].filter(Boolean).join("");else{let i=$f(n);r.zodSchemaName=[i?ge(i):"",r.zodSchemaName].filter(Boolean).join("")}})}s(NT,"suffixWithPreviousSegmentName");function A_(e){e.enumZodSchemaData.forEach(t=>{let r=Ne(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}s(A_,"resolveEnumZodSchemaTags");var Uf=class Uf{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=$_(this.schemaRefs,this.getSchemaByRef.bind(this)),this.operationsByTag=Mv(t,r),this.operationNames=Hv(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];enumZodSchemaData=[];dependencyGraph;operationsByTag={};operationNames=[];validationErrors=[];get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(Lv)}getSchemaByRef(t){return this.docSchemas[Dn(t)]}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(Fr(t)))==null?void 0:n.zodSchemaName)??((i=this.enumZodSchemaData.find(o=>o.zodSchemaName===t))==null?void 0:i.zodSchemaName);if(!r)throw new Error(`Zod schema not found for ref: ${t}`);return r}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var c,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.enumZodSchemaData.find(p=>p.zodSchemaName===t);if(r)return xt(r.tag??this.options.defaultTag);let n=this.getRefByZodSchemaName(t),i=n?((c=this.getSchemaDataByRef(n))==null?void 0:c.tags)??[]:[],o=((l=this.zodSchemaData.find(p=>p.zodSchemaName===t))==null?void 0:l.tags)??[],a=Ne(i,o),u=a.length===1?a[0]:this.options.defaultTag;return xt(u??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(o=>o.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let o={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(u=>u.code===t);a?a.zodSchemas.push(o):this.compositeZodSchemaData.push({code:t,zodSchemas:[o]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemaData.find(r=>r.code===t)}getEnumZodSchemaNamesReferencedBySchemaRef(t){return this.enumZodSchemaData.reduce((r,{zodSchemaName:n,meta:i})=>(n&&i.schemaRefs.includes(t)&&r.push(n),r),[])}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}getEnumZodSchemas(){return this.enumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return H(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}initialize(){var t,r,n,i,o,a;this.schemaRefs.forEach(u=>{let c=Fr(u),l=Dn(c),p=hr(l,this.options.schemaSuffix);this.schemaData.push({ref:c,name:l,zodSchemaName:p,tags:[]})});for(let u in this.openApiDoc.paths){let c=this.openApiDoc.paths[u],l=pr(c,fr);for(let p in l){let f=l[p];if(!f||f.deprecated&&!((t=this.options)!=null&&t.withDeprecatedEndpoints))continue;let d=Lr(f,this.options),h=Xi({path:u,method:p,operation:f,operationsByTag:this.operationsByTag,options:this.options}),g=this.operationNames.filter(b=>b===h).length<=1,y=Re(Vr(h,g,d)),v=[];if((r=f.parameters)==null||r.map(b=>{let S=b,E=S.schema,$=`operation ${Ge.gray(f.operationId??u)} parameter ${Ge.gray(S.name)}`;v.push(...Us(this,E,$)),this.options.extractEnums&&so({resolver:this,schema:E,schemaInfo:$,tags:[d],nameSegments:[y,S.name],includeSelf:!0})}),f.requestBody){let b=this.resolveObject(f.requestBody),E=Object.keys(b.content??{}).find(dr);if(E){let $=(i=(n=b.content)==null?void 0:n[E])==null?void 0:i.schema,M=`operation ${Ge.gray(f.operationId)} request body`;v.push(...Us(this,$,M)),this.options.extractEnums&&so({resolver:this,schema:$,schemaInfo:M,tags:[d],nameSegments:[js(y)]})}}for(let b in f.responses){let S=this.resolveObject(f.responses[b]),$=Object.keys(S.content??{}).find(Ln);if($){let M=(a=(o=S.content)==null?void 0:o[$])==null?void 0:a.schema,j=`operation ${Ge.gray(f.operationId)} response body`;v.push(...Us(this,M,j)),this.options.extractEnums&&so({resolver:this,schema:M,schemaInfo:j,tags:[d],nameSegments:[Ms({statusCode:b,operationName:h,isUniqueOperationName:g,tag:d})]})}}O_(this,v).forEach(b=>{let S=this.getSchemaDataByRef(b);S&&S.tags.push(d)})}}this.options.extractEnums&&(this.schemaRefs.forEach(u=>{var l;let c=Fr(u);so({resolver:this,schema:this.getSchemaByRef(c),schemaRef:c,tags:((l=this.getSchemaDataByRef(c))==null?void 0:l.tags)??[],nameSegments:[Dn(c)]})}),w_(this),A_(this))}};s(Uf,"SchemaResolver");var zs=Uf;function I_(e){var r;let t={};return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let o=hr(n,e.options.schemaSuffix);if(!t[o]){let a=e.getTagByZodSchemaName(o);t[o]=W({schema:i,resolver:e,tag:a}).getCodeString(a)}}),t}s(I_,"getZodSchemasFromOpenAPIDoc");function k_(e){let t=[],r={};function n(i,o){Array.isArray(o)||(o=[]),o.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{o.includes(a)||r[a]||n(a,o.slice(0))}),t.includes(i)||t.push(i)}return s(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}s(k_,"topologicalSort");function R_(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[o])=>t.indexOf(i)-t.indexOf(o)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}s(R_,"sortObjKeysFromArray");function T_(e,t){let r=k_(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return R_(t,r)}s(T_,"sortZodSchemasByTopology");function C_(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let o=e.getRefByZodSchemaName(n),a=o&&e.isSchemaCircular(o);r[hr(n,e.options.schemaSuffix)]=a?`z.lazy(() => ${i})`:i}),r}s(C_,"wrapCircularZodSchemas");function Gs(e,t){let r=new zs(e,t),n=P_(r),o={...I_(r),...r.getZodSchemas()};return o=C_(r,o),o=T_(r,o),o={...r.getEnumZodSchemas(),...o},{resolver:r,data:qT({resolver:r,endpoints:n,zodSchemas:o,options:t})}}s(Gs,"getDataFromOpenAPIDoc");function qT({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(o=>{let a=ro(o,n);N_(a,i).endpoints.push(o)}),Object.entries(r).forEach(([o,a])=>{let u=e.getTagByZodSchemaName(o);u&&(N_(u,i).zodSchemas[o]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}s(qT,"splitDataByTags");function N_(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}s(N_,"getTagElement");async function q_(e,t){let{resolver:r,data:n}=await Gs(e,t),i=[],o=[];return n.forEach(({endpoints:u,zodSchemas:c},l)=>{var d;((d=t.excludeTags)==null?void 0:d.findIndex(h=>h.toLowerCase()===l.toLowerCase()))===-1&&(Object.keys(c).forEach(h=>{let g=r.getRefByZodSchemaName(h),y=g?r.getSchemaByRef(g):r.getSchemaByCompositeZodSchemaName(h),v=Vn({zodSchemaName:h,schema:y,resolver:r}),_;y&&(_=Br({schema:y,parentTypes:[v],resolver:r})),i.push({...v,metaType:"primitive",..._})}),u.forEach(h=>{let g="queries",y=xt(l);o.push({name:Is(h),filePath:or({type:g,tag:y,includeTagDir:!0,options:t}),namespace:t.includeNamespaces?re({type:g,tag:y,options:t}):void 0,isQuery:Fn(h),isMutation:qs(h),params:jT({resolver:r,endpoint:h}),response:MT({resolver:r,endpoint:h})})}))}),{openApiDoc:e,models:i,queries:o}}s(q_,"getMetadataFromOpenAPIDoc");function jT({resolver:e,endpoint:t}){return t.parameters.map(r=>{var a,u,c,l;let n;if((a=r.parameterObject)!=null&&a.schema)n=e.resolveObject(r.parameterObject.schema);else if(r.bodyObject){let f=Object.keys(r.bodyObject.content??{}).find(dr);f&&(n=e.resolveObject((c=(u=r.bodyObject.content)==null?void 0:u[f])==null?void 0:c.schema))}let i=Vn({zodSchemaName:r.zodSchema,schema:n,resolver:e}),o;return n&&(o=Br({schema:n,parentTypes:[i],resolver:e})),{name:Pt(r.name),isRequired:((l=r.parameterObject)==null?void 0:l.required)??!0,...i,...o,paramType:r.type}}).sort((r,n)=>{if(r.isRequired===n.isRequired){let i=["Path","Body","Query","Header"];return i.indexOf(r.paramType)-i.indexOf(n.paramType)}return r.isRequired?-1:1}).map(({paramType:r,...n})=>n)}s(jT,"getQueryMetadataParams");function MT({resolver:e,endpoint:t}){var a,u,c,l;let r,n=Object.keys(((a=t.responseObject)==null?void 0:a.content)??{}).find(Ln);n&&(r=e.resolveObject((l=(c=(u=t.responseObject)==null?void 0:u.content)==null?void 0:c[n])==null?void 0:l.schema));let i=Vn({zodSchemaName:t.response,schema:r,resolver:e}),o;return r&&(o=Br({schema:r,parentTypes:[i],resolver:e})),{...i,metaType:"primitive",...o}}s(MT,"getQueryMetadataResponse");var zf="src/data",Gf="@/data",Zf="AppRestClient",j_={bindings:[Zf],from:"@/util/rest/clients/app-rest-client"},ao={query:"AppQueryOptions",mutation:"AppMutationOptions"},M_={bindings:[ao.query,ao.mutation],from:"@/types/react-query"};function zn({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",o=s(c=>e.getTagByZodSchemaName(c),"getTag"),a=Kf({type:i,tag:t,entities:r,getTag:o,getEntityName:s(c=>c,"getEntityName"),options:e.options}),u=Kf({type:i,tag:t,entities:n,getTag:o,getEntityName:s(c=>eo(c,e.options),"getEntityName"),options:e.options});return LT(e.options,a,u)}s(zn,"getModelsImports");function D_({tag:e,endpoints:t,options:r}){return Kf({type:"endpoints",tag:e,entities:t,getTag:s(n=>ro(n,r),"getTag"),getEntityName:to,options:r})}s(D_,"getEndpointsImports");function DT(e){let t=Gf;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${zf}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${zf}`,"g"),Gf)),`${t}/`.replace(/\/\//g,"/")}s(DT,"getImportPath");function Kf({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:o}){let a=new Map;return r.forEach(u=>{let c=n(u);if(a.has(c))o.includeNamespaces||a.get(c).bindings.push(i(u));else{let l=t===c;a.set(c,{bindings:[o.includeNamespaces?re({type:e,tag:c,options:o}):i(u)],from:`${l?"./":DT(o)}${or({type:e,tag:c,includeTagDir:!l,options:o})}`})}}),Array.from(a.values())}s(Kf,"getImports");function LT(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.includeNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:Ne(n.bindings)}))}s(LT,"mergeImports");var Up=De(Yr());var Fp=De(require("fs")),IS=De(require("path"));function Vp(e){let t=`src/generators/templates/${e}.hbs`;return Fp.default.readFileSync(IS.default.join(__dirname,`../${t}`),"utf-8")}s(Vp,"readHbsTemplateSync");function kS({output:e,fileName:t}){return`${e}/${t}.ts`}s(kS,"getOutputFileName");var Bp=De(Yr());function RS(){RN(),TN()}s(RS,"registerCommonHbsHelpers");function RN(){Bp.default.registerHelper("isEqual",(e,t)=>e===t)}s(RN,"registerIsEqualHelper");function TN(){Bp.default.registerHelper("commaSeparated",e=>e.join(", "))}s(TN,"registerCommaSeparatedListHelper");var Qr=De(Yr());function TS(e){CN(),NN(e.options),MN(e),qN(),jN(),DN(e)}s(TS,"registerEndpointsHbsHelpers");function CN(){Qr.default.registerHelper("endpointName",to)}s(CN,"registerEndpointNameHelper");function NN(e){Qr.default.registerHelper("importedEndpointName",t=>Xv(t,e))}s(NN,"registerImportedEndpointNameHelper");function qN(){Qr.default.registerHelper("endpointPath",e_)}s(qN,"registerEndpointPathHelper");function jN(){Qr.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}s(jN,"registerEndpointBodyHelper");function MN(e){Qr.default.registerHelper("endpointParams",t=>jf(e,t))}s(MN,"registerEndpointParamsHelper");function DN(e){Qr.default.registerHelper("endpointArgs",t=>jf(e,t).map(r=>r.name).join(", "))}s(DN,"registerEndpointArgsHelper");var ti=De(Yr());var yr={query:"useQuery",mutation:"useMutation"},CS={bindings:[yr.query,yr.mutation],from:"@tanstack/react-query"};function NS(){LN(),FN(),VN(),BN(),HN()}s(NS,"registerPartialsHbsHelpers");function LN(){ti.default.registerHelper("genImport",e=>ri("import")({import:e}))}s(LN,"registerImportHelper");function FN(){ti.default.registerHelper("genEndpointParams",e=>ri("endpoint-params")({endpoint:e}))}s(FN,"registerGenerateEndpointParamsHelper");function VN(){ti.default.registerHelper("genEndpointConfig",e=>{let t=t_(e);return Object.keys(t).length===0?"":ri("endpoint-config")({endpointConfig:t})})}s(VN,"registerGenerateEndpointConfigHelper");function BN(){ti.default.registerHelper("genQueryKeys",e=>e.length===0?"":ri("query-keys")({endpoints:e}))}s(BN,"registerGenerateQueryKeysHelper");function HN(){ti.default.registerHelper("genQuery",e=>{let t,r;return Fn(e)?(t="query-use-query",r=yr.query):(t="query-use-mutation",r=yr.mutation),ri(t)({endpoint:e,queryHook:r})})}s(HN,"registerGenerateQueryHelper");var Ia=De(Yr());function qS(){UN(),zN(),GN()}s(qS,"registerQueryHbsHelpers");function UN(){Ia.default.registerHelper("queryName",Is)}s(UN,"registerQueryNameHelper");function zN(){Ia.default.registerHelper("allQueryKeys",Of)}s(zN,"registerQueryKeysHelper");function GN(){Ia.default.registerHelper("endpointPathQueryKeys",kv)}s(GN,"registerEndpointPathQueryKeysHelper");var Hp=De(Yr());function jS(e){ZN(e.options),KN(e)}s(jS,"registerZodHbsHelpers");function ZN(e){Hp.default.registerHelper("zodInferedType",t=>eo(t,e))}s(ZN,"registerInferedTypeHelper");function KN(e){Hp.default.registerHelper("importedZodSchemaName",t=>Zv(e,t))}s(KN,"registerImportedZodSchemaNameHelper");function ni(e,t){let r=Vp(t);return RS(),jS(e),TS(e),qS(),NS(),Up.default.compile(r)}s(ni,"getHbsTemplateDelegate");function ri(e){let t=Vp(`partials/${e}`);return Up.default.compile(t)}s(ri,"getHbsPartialTemplateDelegate");function MS({resolver:e,data:t,tag:r=""}){var l;let n=(l=t.get(r))==null?void 0:l.endpoints;if(!n||n.length===0)return;let i=n.map(p=>p.response),o=i.some(p=>!Pe(p)),a=n.reduce((p,f)=>[...p,...f.parameters],[]),u=zn({resolver:e,tag:r,zodSchemas:Ne(i.filter(Pe)),zodSchemasAsTypes:Ne(a.map(p=>p.zodSchema).filter(Pe))});return ni(e,"endpoints")({restClientImport:j_,hasZodImport:o,zodImport:ws,modelsImports:u,includeNamespace:e.options.includeNamespaces,namespace:re({type:"endpoints",tag:r,options:e.options}),restClientName:Zf,endpoints:n})}s(MS,"generateEndpoints");function DS(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),o=e.getEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...o]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(LS(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}s(DS,"getZodSchemaRefs");function LS(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&LS(n).forEach(o=>r.add(o)),r},new Set)}s(LS,"getSchemaRefs");function FS({resolver:e,data:t,tag:r=""}){var c;let n=(c=t.get(r))==null?void 0:c.zodSchemas;if(!n||Object.keys(n).length===0)return;let i=Object.keys(n).reduce((l,p)=>[...l,...DS(e,p)],[]).filter(l=>!n[l]),o=zn({resolver:e,tag:r,zodSchemas:i}),a=Object.entries(n).reduce((l,[p,f])=>{let d=e.getRefByZodSchemaName(p);return{...l,[p]:{code:f,isCircular:!!d&&e.isSchemaCircular(d)}}},{});return ni(e,"models")({zodImport:ws,modelsImports:o,includeNamespace:e.options.includeNamespaces,namespace:re({type:"models",tag:r,options:e.options}),zodSchemasData:a})}s(FS,"generateModels");function VS({resolver:e,data:t,tag:r=""}){var d;let n=(d=t.get(r))==null?void 0:d.endpoints;if(!n||n.length===0)return;let i=n.filter(Fn),o=n.filter(qs),a={...CS,bindings:[...i.length>0?[yr.query]:[],...o.length>0?[yr.mutation]:[]]},u={...M_,bindings:[...i.length>0?[ao.query]:[],...o.length>0?[ao.mutation]:[]]},c=[...i,...o].reduce((h,g)=>[...h,...g.parameters],[]),l=zn({resolver:e,tag:r,zodSchemasAsTypes:Ne(c.map(h=>h.zodSchema).filter(Pe))}),p=D_({tag:r,endpoints:n,options:e.options});return ni(e,"queries")({queryImport:a,queryTypesImport:u,modelsImports:l,endpointsImports:p,includeNamespace:e.options.includeNamespaces,namespace:re({type:"queries",tag:r,options:e.options}),endpoints:n,queryEndpoints:i})}s(VS,"generateQueries");function BS(e,t){let r={...Wi,...t},{resolver:n,data:i}=Gs(e,r),o=[],a=["models","endpoints","queries"],u={models:FS,endpoints:MS,queries:VS};return i.forEach((c,l)=>{r.excludeTags.find(f=>f.toLowerCase()===l.toLowerCase())||a.forEach(f=>{let d=u[f]({resolver:n,data:i,tag:l});if(d){let h=kS({output:r.output,fileName:or({tag:l,type:f,options:r})});o.push({fileName:h,content:d})}})}),o}s(BS,"generateCodeFromOpenAPIDoc");async function WN({input:e,options:t}){let r={...Wi,...t},n=await zp.default.bundle(e);return await q_(n,r)}s(WN,"getGenerateMetadata");async function YN({input:e,options:t}){let r={...Wi,...t},n=await zp.default.bundle(e);return BS(n,r)}s(YN,"getGenerateFilesData");0&&(module.exports={getGenerateFilesData,getGenerateMetadata});