@povio/openapi-codegen-cli 0.12.1 → 0.13.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/sh.js CHANGED
@@ -1,66 +1,66 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var e$=Object.create;var tc=Object.defineProperty;var Gg=Object.getOwnPropertyDescriptor;var t$=Object.getOwnPropertyNames;var r$=Object.getPrototypeOf,n$=Object.prototype.hasOwnProperty;var o=(e,t)=>tc(e,"name",{value:t,configurable:!0});var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var i$=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of t$(t))!n$.call(e,i)&&i!==r&&tc(e,i,{get:()=>t[i],enumerable:!(n=Gg(t,i))||n.enumerable});return e};var mt=(e,t,r)=>(r=e!=null?e$(r$(e)):{},i$(t||!e||!e.__esModule?tc(r,"default",{value:e,enumerable:!0}):r,e));var Oe=(e,t,r,n)=>{for(var i=n>1?void 0:n?Gg(t,r):t,s=e.length-1,a;s>=0;s--)(a=e[s])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&tc(t,r,i),i};var bb=v(()=>{var yb;(function(e){(function(t){var r=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:c(),n=i(e);typeof r.Reflect<"u"&&(n=i(r.Reflect,n)),t(n,r),typeof r.Reflect>"u"&&(r.Reflect=e);function i(u,l){return function(p,f){Object.defineProperty(u,p,{configurable:!0,writable:!0,value:f}),l&&l(p,f)}}o(i,"makeExporter");function s(){try{return Function("return this;")()}catch{}}o(s,"functionThis");function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}o(a,"indirectEvalThis");function c(){return s()||a()}o(c,"sloppyModeThis")})(function(t,r){var n=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",s=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",u={__proto__:[]}instanceof Array,l=!c&&!u,p={create:c?function(){return Bl(Object.create(null))}:u?function(){return Bl({__proto__:null})}:function(){return Bl({})},has:l?function(S,x){return n.call(S,x)}:function(S,x){return x in S},get:l?function(S,x){return n.call(S,x)?S[x]:void 0}:function(S,x){return S[x]}},f=Object.getPrototypeOf(Function),d=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:K2(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Y2(),y=typeof WeakMap=="function"?WeakMap:Q2(),b=i?Symbol.for("@reflect-metadata:registry"):void 0,g=nt(),P=ht(g);function $(S,x,I,j){if(Y(I)){if(!He(S))throw new TypeError;if(!kt(x))throw new TypeError;return R(S,x)}else{if(!He(S))throw new TypeError;if(!Re(x))throw new TypeError;if(!Re(j)&&!Y(j)&&!Mt(j))throw new TypeError;return Mt(j)&&(j=void 0),I=_e(I),q(S,x,I,j)}}o($,"decorate"),t("decorate",$);function C(S,x){function I(j,J){if(!Re(j))throw new TypeError;if(!Y(J)&&!io(J))throw new TypeError;We(S,x,j,J)}return o(I,"decorator"),I}o(C,"metadata"),t("metadata",C);function T(S,x,I,j){if(!Re(I))throw new TypeError;return Y(j)||(j=_e(j)),We(S,x,I,j)}o(T,"defineMetadata"),t("defineMetadata",T);function A(S,x,I){if(!Re(x))throw new TypeError;return Y(I)||(I=_e(I)),Q(S,x,I)}o(A,"hasMetadata"),t("hasMetadata",A);function K(S,x,I){if(!Re(x))throw new TypeError;return Y(I)||(I=_e(I)),ue(S,x,I)}o(K,"hasOwnMetadata"),t("hasOwnMetadata",K);function X(S,x,I){if(!Re(x))throw new TypeError;return Y(I)||(I=_e(I)),ve(S,x,I)}o(X,"getMetadata"),t("getMetadata",X);function Ze(S,x,I){if(!Re(x))throw new TypeError;return Y(I)||(I=_e(I)),ge(S,x,I)}o(Ze,"getOwnMetadata"),t("getOwnMetadata",Ze);function Ie(S,x){if(!Re(S))throw new TypeError;return Y(x)||(x=_e(x)),qr(S,x)}o(Ie,"getMetadataKeys"),t("getMetadataKeys",Ie);function re(S,x){if(!Re(S))throw new TypeError;return Y(x)||(x=_e(x)),Ce(S,x)}o(re,"getOwnMetadataKeys"),t("getOwnMetadataKeys",re);function M(S,x,I){if(!Re(x))throw new TypeError;if(Y(I)||(I=_e(I)),!Re(x))throw new TypeError;Y(I)||(I=_e(I));var j=vs(x,I,!1);return Y(j)?!1:j.OrdinaryDeleteMetadata(S,x,I)}o(M,"deleteMetadata"),t("deleteMetadata",M);function R(S,x){for(var I=S.length-1;I>=0;--I){var j=S[I],J=j(x);if(!Y(J)&&!Mt(J)){if(!kt(J))throw new TypeError;x=J}}return x}o(R,"DecorateConstructor");function q(S,x,I,j){for(var J=S.length-1;J>=0;--J){var Xe=S[J],st=Xe(x,I,j);if(!Y(st)&&!Mt(st)){if(!Re(st))throw new TypeError;j=st}}return j}o(q,"DecorateProperty");function Q(S,x,I){var j=ue(S,x,I);if(j)return!0;var J=k(x);return Mt(J)?!1:Q(S,J,I)}o(Q,"OrdinaryHasMetadata");function ue(S,x,I){var j=vs(x,I,!1);return Y(j)?!1:Ne(j.OrdinaryHasOwnMetadata(S,x,I))}o(ue,"OrdinaryHasOwnMetadata");function ve(S,x,I){var j=ue(S,x,I);if(j)return ge(S,x,I);var J=k(x);if(!Mt(J))return ve(S,J,I)}o(ve,"OrdinaryGetMetadata");function ge(S,x,I){var j=vs(x,I,!1);if(!Y(j))return j.OrdinaryGetOwnMetadata(S,x,I)}o(ge,"OrdinaryGetOwnMetadata");function We(S,x,I,j){var J=vs(I,j,!0);J.OrdinaryDefineOwnMetadata(S,x,I,j)}o(We,"OrdinaryDefineOwnMetadata");function qr(S,x){var I=Ce(S,x),j=k(S);if(j===null)return I;var J=qr(j,x);if(J.length<=0)return I;if(I.length<=0)return J;for(var Xe=new h,st=[],de=0,D=I;de<D.length;de++){var L=D[de],V=Xe.has(L);V||(Xe.add(L),st.push(L))}for(var G=0,me=J;G<me.length;G++){var L=me[G],V=Xe.has(L);V||(Xe.add(L),st.push(L))}return st}o(qr,"OrdinaryMetadataKeys");function Ce(S,x){var I=vs(S,x,!1);return I?I.OrdinaryOwnMetadataKeys(S,x):[]}o(Ce,"OrdinaryOwnMetadataKeys");function rr(S){if(S===null)return 1;switch(typeof S){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return S===null?1:6;default:return 6}}o(rr,"Type");function Y(S){return S===void 0}o(Y,"IsUndefined");function Mt(S){return S===null}o(Mt,"IsNull");function ne(S){return typeof S=="symbol"}o(ne,"IsSymbol");function Re(S){return typeof S=="object"?S!==null:typeof S=="function"}o(Re,"IsObject");function ee(S,x){switch(rr(S)){case 0:return S;case 1:return S;case 2:return S;case 3:return S;case 4:return S;case 5:return S}var I=x===3?"string":x===5?"number":"default",j=O(S,s);if(j!==void 0){var J=j.call(S,I);if(Re(J))throw new TypeError;return J}return Te(S,I==="default"?"number":I)}o(ee,"ToPrimitive");function Te(S,x){if(x==="string"){var I=S.toString;if(ut(I)){var j=I.call(S);if(!Re(j))return j}var J=S.valueOf;if(ut(J)){var j=J.call(S);if(!Re(j))return j}}else{var J=S.valueOf;if(ut(J)){var j=J.call(S);if(!Re(j))return j}var Xe=S.toString;if(ut(Xe)){var j=Xe.call(S);if(!Re(j))return j}}throw new TypeError}o(Te,"OrdinaryToPrimitive");function Ne(S){return!!S}o(Ne,"ToBoolean");function pe(S){return""+S}o(pe,"ToString");function _e(S){var x=ee(S,3);return ne(x)?x:pe(x)}o(_e,"ToPropertyKey");function He(S){return Array.isArray?Array.isArray(S):S instanceof Object?S instanceof Array:Object.prototype.toString.call(S)==="[object Array]"}o(He,"IsArray");function ut(S){return typeof S=="function"}o(ut,"IsCallable");function kt(S){return typeof S=="function"}o(kt,"IsConstructor");function io(S){switch(rr(S)){case 3:return!0;case 4:return!0;default:return!1}}o(io,"IsPropertyKey");function _(S,x){return S===x||S!==S&&x!==x}o(_,"SameValueZero");function O(S,x){var I=S[x];if(I!=null){if(!ut(I))throw new TypeError;return I}}o(O,"GetMethod");function N(S){var x=O(S,a);if(!ut(x))throw new TypeError;var I=x.call(S);if(!Re(I))throw new TypeError;return I}o(N,"GetIterator");function w(S){return S.value}o(w,"IteratorValue");function E(S){var x=S.next();return x.done?!1:x}o(E,"IteratorStep");function H(S){var x=S.return;x&&x.call(S)}o(H,"IteratorClose");function k(S){var x=Object.getPrototypeOf(S);if(typeof S!="function"||S===f||x!==f)return x;var I=S.prototype,j=I&&Object.getPrototypeOf(I);if(j==null||j===Object.prototype)return x;var J=j.constructor;return typeof J!="function"||J===S?x:J}o(k,"OrdinaryGetPrototypeOf");function z(){var S;!Y(b)&&typeof r.Reflect<"u"&&!(b in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(S=W2(r.Reflect));var x,I,j,J=new y,Xe={registerProvider:st,getProvider:D,setProvider:V};return Xe;function st(G){if(!Object.isExtensible(Xe))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case S===G:break;case Y(x):x=G;break;case x===G:break;case Y(I):I=G;break;case I===G:break;default:j===void 0&&(j=new h),j.add(G);break}}function de(G,me){if(!Y(x)){if(x.isProviderFor(G,me))return x;if(!Y(I)){if(I.isProviderFor(G,me))return x;if(!Y(j))for(var je=N(j);;){var et=E(je);if(!et)return;var vr=w(et);if(vr.isProviderFor(G,me))return H(je),vr}}}if(!Y(S)&&S.isProviderFor(G,me))return S}function D(G,me){var je=J.get(G),et;return Y(je)||(et=je.get(me)),Y(et)&&(et=de(G,me),Y(et)||(Y(je)&&(je=new d,J.set(G,je)),je.set(me,et))),et}function L(G){if(Y(G))throw new TypeError;return x===G||I===G||!Y(j)&&j.has(G)}function V(G,me,je){if(!L(je))throw new Error("Metadata provider not registered.");var et=D(G,me);if(et!==je){if(!Y(et))return!1;var vr=J.get(G);Y(vr)&&(vr=new d,J.set(G,vr)),vr.set(me,je)}return!0}}o(z,"CreateMetadataRegistry");function nt(){var S;return!Y(b)&&Re(r.Reflect)&&Object.isExtensible(r.Reflect)&&(S=r.Reflect[b]),Y(S)&&(S=z()),!Y(b)&&Re(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,b,{enumerable:!1,configurable:!1,writable:!1,value:S}),S}o(nt,"GetOrCreateMetadataRegistry");function ht(S){var x=new y,I={isProviderFor:o(function(L,V){var G=x.get(L);return Y(G)?!1:G.has(V)},"isProviderFor"),OrdinaryDefineOwnMetadata:st,OrdinaryHasOwnMetadata:J,OrdinaryGetOwnMetadata:Xe,OrdinaryOwnMetadataKeys:de,OrdinaryDeleteMetadata:D};return g.registerProvider(I),I;function j(L,V,G){var me=x.get(L),je=!1;if(Y(me)){if(!G)return;me=new d,x.set(L,me),je=!0}var et=me.get(V);if(Y(et)){if(!G)return;if(et=new d,me.set(V,et),!S.setProvider(L,V,I))throw me.delete(V),je&&x.delete(L),new Error("Wrong provider for target.")}return et}o(j,"GetOrCreateMetadataMap");function J(L,V,G){var me=j(V,G,!1);return Y(me)?!1:Ne(me.has(L))}o(J,"OrdinaryHasOwnMetadata");function Xe(L,V,G){var me=j(V,G,!1);if(!Y(me))return me.get(L)}o(Xe,"OrdinaryGetOwnMetadata");function st(L,V,G,me){var je=j(G,me,!0);je.set(L,V)}o(st,"OrdinaryDefineOwnMetadata");function de(L,V){var G=[],me=j(L,V,!1);if(Y(me))return G;for(var je=me.keys(),et=N(je),vr=0;;){var Ug=E(et);if(!Ug)return G.length=vr,G;var J2=w(Ug);try{G[vr]=J2}catch(X2){try{H(et)}finally{throw X2}}vr++}}o(de,"OrdinaryOwnMetadataKeys");function D(L,V,G){var me=j(V,G,!1);if(Y(me)||!me.delete(L))return!1;if(me.size===0){var je=x.get(V);Y(je)||(je.delete(G),je.size===0&&x.delete(je))}return!0}o(D,"OrdinaryDeleteMetadata")}o(ht,"CreateMetadataProvider");function W2(S){var x=S.defineMetadata,I=S.hasOwnMetadata,j=S.getOwnMetadata,J=S.getOwnMetadataKeys,Xe=S.deleteMetadata,st=new y,de={isProviderFor:o(function(D,L){var V=st.get(D);return!Y(V)&&V.has(L)?!0:J(D,L).length?(Y(V)&&(V=new h,st.set(D,V)),V.add(L),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:x,OrdinaryHasOwnMetadata:I,OrdinaryGetOwnMetadata:j,OrdinaryOwnMetadataKeys:J,OrdinaryDeleteMetadata:Xe};return de}o(W2,"CreateFallbackProvider");function vs(S,x,I){var j=g.getProvider(S,x);if(!Y(j))return j;if(I){if(g.setProvider(S,x,P))return P;throw new Error("Illegal state.")}}o(vs,"GetMetadataProvider");function K2(){var S={},x=[],I=function(){function de(D,L,V){this._index=0,this._keys=D,this._values=L,this._selector=V}return o(de,"MapIterator"),de.prototype["@@iterator"]=function(){return this},de.prototype[a]=function(){return this},de.prototype.next=function(){var D=this._index;if(D>=0&&D<this._keys.length){var L=this._selector(this._keys[D],this._values[D]);return D+1>=this._keys.length?(this._index=-1,this._keys=x,this._values=x):this._index++,{value:L,done:!1}}return{value:void 0,done:!0}},de.prototype.throw=function(D){throw this._index>=0&&(this._index=-1,this._keys=x,this._values=x),D},de.prototype.return=function(D){return this._index>=0&&(this._index=-1,this._keys=x,this._values=x),{value:D,done:!0}},de}(),j=function(){function de(){this._keys=[],this._values=[],this._cacheKey=S,this._cacheIndex=-2}return o(de,"Map"),Object.defineProperty(de.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),de.prototype.has=function(D){return this._find(D,!1)>=0},de.prototype.get=function(D){var L=this._find(D,!1);return L>=0?this._values[L]:void 0},de.prototype.set=function(D,L){var V=this._find(D,!0);return this._values[V]=L,this},de.prototype.delete=function(D){var L=this._find(D,!1);if(L>=0){for(var V=this._keys.length,G=L+1;G<V;G++)this._keys[G-1]=this._keys[G],this._values[G-1]=this._values[G];return this._keys.length--,this._values.length--,_(D,this._cacheKey)&&(this._cacheKey=S,this._cacheIndex=-2),!0}return!1},de.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=S,this._cacheIndex=-2},de.prototype.keys=function(){return new I(this._keys,this._values,J)},de.prototype.values=function(){return new I(this._keys,this._values,Xe)},de.prototype.entries=function(){return new I(this._keys,this._values,st)},de.prototype["@@iterator"]=function(){return this.entries()},de.prototype[a]=function(){return this.entries()},de.prototype._find=function(D,L){if(!_(this._cacheKey,D)){this._cacheIndex=-1;for(var V=0;V<this._keys.length;V++)if(_(this._keys[V],D)){this._cacheIndex=V;break}}return this._cacheIndex<0&&L&&(this._cacheIndex=this._keys.length,this._keys.push(D),this._values.push(void 0)),this._cacheIndex},de}();return j;function J(de,D){return de}function Xe(de,D){return D}function st(de,D){return[de,D]}}o(K2,"CreateMapPolyfill");function Y2(){var S=function(){function x(){this._map=new d}return o(x,"Set"),Object.defineProperty(x.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),x.prototype.has=function(I){return this._map.has(I)},x.prototype.add=function(I){return this._map.set(I,I),this},x.prototype.delete=function(I){return this._map.delete(I)},x.prototype.clear=function(){this._map.clear()},x.prototype.keys=function(){return this._map.keys()},x.prototype.values=function(){return this._map.keys()},x.prototype.entries=function(){return this._map.entries()},x.prototype["@@iterator"]=function(){return this.keys()},x.prototype[a]=function(){return this.keys()},x}();return S}o(Y2,"CreateSetPolyfill");function Q2(){var S=16,x=p.create(),I=j();return function(){function D(){this._key=j()}return o(D,"WeakMap"),D.prototype.has=function(L){var V=J(L,!1);return V!==void 0?p.has(V,this._key):!1},D.prototype.get=function(L){var V=J(L,!1);return V!==void 0?p.get(V,this._key):void 0},D.prototype.set=function(L,V){var G=J(L,!0);return G[this._key]=V,this},D.prototype.delete=function(L){var V=J(L,!1);return V!==void 0?delete V[this._key]:!1},D.prototype.clear=function(){this._key=j()},D}();function j(){var D;do D="@@WeakMap@@"+de();while(p.has(x,D));return x[D]=!0,D}function J(D,L){if(!n.call(D,I)){if(!L)return;Object.defineProperty(D,I,{value:p.create()})}return D[I]}function Xe(D,L){for(var V=0;V<L;++V)D[V]=Math.random()*255|0;return D}function st(D){if(typeof Uint8Array=="function"){var L=new Uint8Array(D);return typeof crypto<"u"?crypto.getRandomValues(L):typeof msCrypto<"u"?msCrypto.getRandomValues(L):Xe(L,D),L}return Xe(new Array(D),D)}function de(){var D=st(S);D[6]=D[6]&79|64,D[8]=D[8]&191|128;for(var L="",V=0;V<S;++V){var G=D[V];(V===4||V===6||V===8)&&(L+="-"),G<16&&(L+="0"),L+=G.toString(16).toLowerCase()}return L}}o(Q2,"CreateWeakMapPolyfill");function Bl(S){return S.__=void 0,delete S.__,S}o(Bl,"MakeDictionary")})})(yb||(yb={}))});var Yt=v((Kt,Sb)=>{"use strict";var qc=/^win/.test(process.platform),W$=/\//g,K$=/^(\w{2,}):\/\//i,_b=Sb.exports,Y$=/~1/g,Q$=/~0/g,Mf=[/\?/g,"%3F",/\#/g,"%23"],kf=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];Kt.parse=require("url").parse;Kt.resolve=require("url").resolve;Kt.cwd=o(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");Kt.getProtocol=o(function(t){let r=K$.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");Kt.getExtension=o(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");Kt.getHash=o(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");Kt.stripHash=o(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");Kt.isHttp=o(function(t){let r=_b.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");Kt.isFileSystemPath=o(function(t){if(process.browser)return!1;let r=_b.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");Kt.fromFileSystemPath=o(function(t){qc&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<Mf.length;r+=2)t=t.replace(Mf[r],Mf[r+1]);return t},"fromFileSystemPath");Kt.toFileSystemPath=o(function(t,r){t=decodeURI(t);for(let i=0;i<kf.length;i+=2)t=t.replace(kf[i],kf[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),qc&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=qc?t:"/"+t)),qc&&!n&&(t=t.replace(W$,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");Kt.safePointerToPath=o(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(Y$,"/").replace(Q$,"~"))},"safePointerToPath")});var Dc=v(js=>{"use strict";var Eb=require("util"),J$=Yt();js.format=Eb.format;js.inherits=Eb.inherits;js.swaggerParamRegExp=/\{([^/}]+)}/g;var X$=["get","post","put","delete","patch","options","head","trace"];function qf(e,t){if(e.url&&e.url.startsWith("/")){let r=J$.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}o(qf,"fixServers");function ew(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>qf(r,t)),["paths","webhooks"].forEach(r=>{Object.keys(e[r]||[]).forEach(n=>{let i=e[r][n];Object.keys(i).forEach(s=>{s==="servers"?i[s].map(a=>qf(a,t)):X$.includes(s)&&i[s].servers&&i[s].servers.map(a=>qf(a,t))})})}))}o(ew,"fixOasRelativeServers");js.fixOasRelativeServers=ew});var Lc=v(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.getDeepKeys=bo.toJSON=void 0;var tw=["function","symbol","undefined"],rw=["constructor","prototype","__proto__"],nw=Object.getPrototypeOf({});function iw(){let e={},t=this;for(let r of Ob(t))if(typeof r=="string"){let n=t[r],i=typeof n;tw.includes(i)||(e[r]=n)}return e}o(iw,"toJSON");bo.toJSON=iw;function Ob(e,t=[]){let r=[];for(;e&&e!==nw;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(rw))n.delete(i);return n}o(Ob,"getDeepKeys");bo.getDeepKeys=Ob});var Df=v(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.addInspectMethod=vo.format=void 0;var Pb=require("util"),ow=Lc(),xb=Pb.inspect.custom||Symbol.for("nodejs.util.inspect.custom");vo.format=Pb.format;function sw(e){e[xb]=aw}o(sw,"addInspectMethod");vo.addInspectMethod=sw;function aw(){let e={},t=this;for(let r of ow.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[xb],e}o(aw,"inspect")});var Ab=v(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.lazyJoinStacks=Br.joinStacks=Br.isWritableStack=Br.isLazyStack=void 0;var cw=/\r?\n/,uw=/\bono[ @]/;function lw(e){return!!(e&&e.configurable&&typeof e.get=="function")}o(lw,"isLazyStack");Br.isLazyStack=lw;function fw(e){return!!(!e||e.writable||typeof e.set=="function")}o(fw,"isWritableStack");Br.isWritableStack=fw;function $b(e,t){let r=wb(e.stack),n=t?t.stack:void 0;return r&&n?r+`
2
+ "use strict";var u$=Object.create;var ic=Object.defineProperty;var Jg=Object.getOwnPropertyDescriptor;var l$=Object.getOwnPropertyNames;var f$=Object.getPrototypeOf,p$=Object.prototype.hasOwnProperty;var o=(e,t)=>ic(e,"name",{value:t,configurable:!0});var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var d$=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of l$(t))!p$.call(e,i)&&i!==r&&ic(e,i,{get:()=>t[i],enumerable:!(n=Jg(t,i))||n.enumerable});return e};var mt=(e,t,r)=>(r=e!=null?u$(f$(e)):{},d$(t||!e||!e.__esModule?ic(r,"default",{value:e,enumerable:!0}):r,e));var Oe=(e,t,r,n)=>{for(var i=n>1?void 0:n?Jg(t,r):t,s=e.length-1,a;s>=0;s--)(a=e[s])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&ic(t,r,i),i};var xb=v(()=>{var Pb;(function(e){(function(t){var r=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:c(),n=i(e);typeof r.Reflect<"u"&&(n=i(r.Reflect,n)),t(n,r),typeof r.Reflect>"u"&&(r.Reflect=e);function i(u,l){return function(p,f){Object.defineProperty(u,p,{configurable:!0,writable:!0,value:f}),l&&l(p,f)}}o(i,"makeExporter");function s(){try{return Function("return this;")()}catch{}}o(s,"functionThis");function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}o(a,"indirectEvalThis");function c(){return s()||a()}o(c,"sloppyModeThis")})(function(t,r){var n=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",s=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",u={__proto__:[]}instanceof Array,l=!c&&!u,p={create:c?function(){return Kl(Object.create(null))}:u?function(){return Kl({__proto__:null})}:function(){return Kl({})},has:l?function(S,x){return n.call(S,x)}:function(S,x){return x in S},get:l?function(S,x){return n.call(S,x)?S[x]:void 0}:function(S,x){return S[x]}},f=Object.getPrototypeOf(Function),d=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:i$(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:o$(),y=typeof WeakMap=="function"?WeakMap:s$(),b=i?Symbol.for("@reflect-metadata:registry"):void 0,g=nt(),P=ht(g);function $(S,x,I,j){if(K(I)){if(!Ve(S))throw new TypeError;if(!Lt(x))throw new TypeError;return R(S,x)}else{if(!Ve(S))throw new TypeError;if(!Ne(x))throw new TypeError;if(!Ne(j)&&!K(j)&&!Dt(j))throw new TypeError;return Dt(j)&&(j=void 0),I=_e(I),q(S,x,I,j)}}o($,"decorate"),t("decorate",$);function C(S,x){function I(j,Q){if(!Ne(j))throw new TypeError;if(!K(Q)&&!co(Q))throw new TypeError;We(S,x,j,Q)}return o(I,"decorator"),I}o(C,"metadata"),t("metadata",C);function T(S,x,I,j){if(!Ne(I))throw new TypeError;return K(j)||(j=_e(j)),We(S,x,I,j)}o(T,"defineMetadata"),t("defineMetadata",T);function A(S,x,I){if(!Ne(x))throw new TypeError;return K(I)||(I=_e(I)),Y(S,x,I)}o(A,"hasMetadata"),t("hasMetadata",A);function te(S,x,I){if(!Ne(x))throw new TypeError;return K(I)||(I=_e(I)),ue(S,x,I)}o(te,"hasOwnMetadata"),t("hasOwnMetadata",te);function J(S,x,I){if(!Ne(x))throw new TypeError;return K(I)||(I=_e(I)),ve(S,x,I)}o(J,"getMetadata"),t("getMetadata",J);function Ee(S,x,I){if(!Ne(x))throw new TypeError;return K(I)||(I=_e(I)),ge(S,x,I)}o(Ee,"getOwnMetadata"),t("getOwnMetadata",Ee);function Ae(S,x){if(!Ne(S))throw new TypeError;return K(x)||(x=_e(x)),Lr(S,x)}o(Ae,"getMetadataKeys"),t("getMetadataKeys",Ae);function re(S,x){if(!Ne(S))throw new TypeError;return K(x)||(x=_e(x)),Te(S,x)}o(re,"getOwnMetadataKeys"),t("getOwnMetadataKeys",re);function M(S,x,I){if(!Ne(x))throw new TypeError;if(K(I)||(I=_e(I)),!Ne(x))throw new TypeError;K(I)||(I=_e(I));var j=Es(x,I,!1);return K(j)?!1:j.OrdinaryDeleteMetadata(S,x,I)}o(M,"deleteMetadata"),t("deleteMetadata",M);function R(S,x){for(var I=S.length-1;I>=0;--I){var j=S[I],Q=j(x);if(!K(Q)&&!Dt(Q)){if(!Lt(Q))throw new TypeError;x=Q}}return x}o(R,"DecorateConstructor");function q(S,x,I,j){for(var Q=S.length-1;Q>=0;--Q){var Xe=S[Q],st=Xe(x,I,j);if(!K(st)&&!Dt(st)){if(!Ne(st))throw new TypeError;j=st}}return j}o(q,"DecorateProperty");function Y(S,x,I){var j=ue(S,x,I);if(j)return!0;var Q=k(x);return Dt(Q)?!1:Y(S,Q,I)}o(Y,"OrdinaryHasMetadata");function ue(S,x,I){var j=Es(x,I,!1);return K(j)?!1:je(j.OrdinaryHasOwnMetadata(S,x,I))}o(ue,"OrdinaryHasOwnMetadata");function ve(S,x,I){var j=ue(S,x,I);if(j)return ge(S,x,I);var Q=k(x);if(!Dt(Q))return ve(S,Q,I)}o(ve,"OrdinaryGetMetadata");function ge(S,x,I){var j=Es(x,I,!1);if(!K(j))return j.OrdinaryGetOwnMetadata(S,x,I)}o(ge,"OrdinaryGetOwnMetadata");function We(S,x,I,j){var Q=Es(I,j,!0);Q.OrdinaryDefineOwnMetadata(S,x,I,j)}o(We,"OrdinaryDefineOwnMetadata");function Lr(S,x){var I=Te(S,x),j=k(S);if(j===null)return I;var Q=Lr(j,x);if(Q.length<=0)return I;if(I.length<=0)return Q;for(var Xe=new h,st=[],de=0,D=I;de<D.length;de++){var L=D[de],V=Xe.has(L);V||(Xe.add(L),st.push(L))}for(var G=0,me=Q;G<me.length;G++){var L=me[G],V=Xe.has(L);V||(Xe.add(L),st.push(L))}return st}o(Lr,"OrdinaryMetadataKeys");function Te(S,x){var I=Es(S,x,!1);return I?I.OrdinaryOwnMetadataKeys(S,x):[]}o(Te,"OrdinaryOwnMetadataKeys");function nr(S){if(S===null)return 1;switch(typeof S){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return S===null?1:6;default:return 6}}o(nr,"Type");function K(S){return S===void 0}o(K,"IsUndefined");function Dt(S){return S===null}o(Dt,"IsNull");function ne(S){return typeof S=="symbol"}o(ne,"IsSymbol");function Ne(S){return typeof S=="object"?S!==null:typeof S=="function"}o(Ne,"IsObject");function X(S,x){switch(nr(S)){case 0:return S;case 1:return S;case 2:return S;case 3:return S;case 4:return S;case 5:return S}var I=x===3?"string":x===5?"number":"default",j=O(S,s);if(j!==void 0){var Q=j.call(S,I);if(Ne(Q))throw new TypeError;return Q}return Re(S,I==="default"?"number":I)}o(X,"ToPrimitive");function Re(S,x){if(x==="string"){var I=S.toString;if(ut(I)){var j=I.call(S);if(!Ne(j))return j}var Q=S.valueOf;if(ut(Q)){var j=Q.call(S);if(!Ne(j))return j}}else{var Q=S.valueOf;if(ut(Q)){var j=Q.call(S);if(!Ne(j))return j}var Xe=S.toString;if(ut(Xe)){var j=Xe.call(S);if(!Ne(j))return j}}throw new TypeError}o(Re,"OrdinaryToPrimitive");function je(S){return!!S}o(je,"ToBoolean");function pe(S){return""+S}o(pe,"ToString");function _e(S){var x=X(S,3);return ne(x)?x:pe(x)}o(_e,"ToPropertyKey");function Ve(S){return Array.isArray?Array.isArray(S):S instanceof Object?S instanceof Array:Object.prototype.toString.call(S)==="[object Array]"}o(Ve,"IsArray");function ut(S){return typeof S=="function"}o(ut,"IsCallable");function Lt(S){return typeof S=="function"}o(Lt,"IsConstructor");function co(S){switch(nr(S)){case 3:return!0;case 4:return!0;default:return!1}}o(co,"IsPropertyKey");function _(S,x){return S===x||S!==S&&x!==x}o(_,"SameValueZero");function O(S,x){var I=S[x];if(I!=null){if(!ut(I))throw new TypeError;return I}}o(O,"GetMethod");function N(S){var x=O(S,a);if(!ut(x))throw new TypeError;var I=x.call(S);if(!Ne(I))throw new TypeError;return I}o(N,"GetIterator");function w(S){return S.value}o(w,"IteratorValue");function E(S){var x=S.next();return x.done?!1:x}o(E,"IteratorStep");function H(S){var x=S.return;x&&x.call(S)}o(H,"IteratorClose");function k(S){var x=Object.getPrototypeOf(S);if(typeof S!="function"||S===f||x!==f)return x;var I=S.prototype,j=I&&Object.getPrototypeOf(I);if(j==null||j===Object.prototype)return x;var Q=j.constructor;return typeof Q!="function"||Q===S?x:Q}o(k,"OrdinaryGetPrototypeOf");function z(){var S;!K(b)&&typeof r.Reflect<"u"&&!(b in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(S=n$(r.Reflect));var x,I,j,Q=new y,Xe={registerProvider:st,getProvider:D,setProvider:V};return Xe;function st(G){if(!Object.isExtensible(Xe))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case S===G:break;case K(x):x=G;break;case x===G:break;case K(I):I=G;break;case I===G:break;default:j===void 0&&(j=new h),j.add(G);break}}function de(G,me){if(!K(x)){if(x.isProviderFor(G,me))return x;if(!K(I)){if(I.isProviderFor(G,me))return x;if(!K(j))for(var Me=N(j);;){var et=E(Me);if(!et)return;var Sr=w(et);if(Sr.isProviderFor(G,me))return H(Me),Sr}}}if(!K(S)&&S.isProviderFor(G,me))return S}function D(G,me){var Me=Q.get(G),et;return K(Me)||(et=Me.get(me)),K(et)&&(et=de(G,me),K(et)||(K(Me)&&(Me=new d,Q.set(G,Me)),Me.set(me,et))),et}function L(G){if(K(G))throw new TypeError;return x===G||I===G||!K(j)&&j.has(G)}function V(G,me,Me){if(!L(Me))throw new Error("Metadata provider not registered.");var et=D(G,me);if(et!==Me){if(!K(et))return!1;var Sr=Q.get(G);K(Sr)&&(Sr=new d,Q.set(G,Sr)),Sr.set(me,Me)}return!0}}o(z,"CreateMetadataRegistry");function nt(){var S;return!K(b)&&Ne(r.Reflect)&&Object.isExtensible(r.Reflect)&&(S=r.Reflect[b]),K(S)&&(S=z()),!K(b)&&Ne(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,b,{enumerable:!1,configurable:!1,writable:!1,value:S}),S}o(nt,"GetOrCreateMetadataRegistry");function ht(S){var x=new y,I={isProviderFor:o(function(L,V){var G=x.get(L);return K(G)?!1:G.has(V)},"isProviderFor"),OrdinaryDefineOwnMetadata:st,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:Xe,OrdinaryOwnMetadataKeys:de,OrdinaryDeleteMetadata:D};return g.registerProvider(I),I;function j(L,V,G){var me=x.get(L),Me=!1;if(K(me)){if(!G)return;me=new d,x.set(L,me),Me=!0}var et=me.get(V);if(K(et)){if(!G)return;if(et=new d,me.set(V,et),!S.setProvider(L,V,I))throw me.delete(V),Me&&x.delete(L),new Error("Wrong provider for target.")}return et}o(j,"GetOrCreateMetadataMap");function Q(L,V,G){var me=j(V,G,!1);return K(me)?!1:je(me.has(L))}o(Q,"OrdinaryHasOwnMetadata");function Xe(L,V,G){var me=j(V,G,!1);if(!K(me))return me.get(L)}o(Xe,"OrdinaryGetOwnMetadata");function st(L,V,G,me){var Me=j(G,me,!0);Me.set(L,V)}o(st,"OrdinaryDefineOwnMetadata");function de(L,V){var G=[],me=j(L,V,!1);if(K(me))return G;for(var Me=me.keys(),et=N(Me),Sr=0;;){var Qg=E(et);if(!Qg)return G.length=Sr,G;var a$=w(Qg);try{G[Sr]=a$}catch(c$){try{H(et)}finally{throw c$}}Sr++}}o(de,"OrdinaryOwnMetadataKeys");function D(L,V,G){var me=j(V,G,!1);if(K(me)||!me.delete(L))return!1;if(me.size===0){var Me=x.get(V);K(Me)||(Me.delete(G),Me.size===0&&x.delete(Me))}return!0}o(D,"OrdinaryDeleteMetadata")}o(ht,"CreateMetadataProvider");function n$(S){var x=S.defineMetadata,I=S.hasOwnMetadata,j=S.getOwnMetadata,Q=S.getOwnMetadataKeys,Xe=S.deleteMetadata,st=new y,de={isProviderFor:o(function(D,L){var V=st.get(D);return!K(V)&&V.has(L)?!0:Q(D,L).length?(K(V)&&(V=new h,st.set(D,V)),V.add(L),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:x,OrdinaryHasOwnMetadata:I,OrdinaryGetOwnMetadata:j,OrdinaryOwnMetadataKeys:Q,OrdinaryDeleteMetadata:Xe};return de}o(n$,"CreateFallbackProvider");function Es(S,x,I){var j=g.getProvider(S,x);if(!K(j))return j;if(I){if(g.setProvider(S,x,P))return P;throw new Error("Illegal state.")}}o(Es,"GetMetadataProvider");function i$(){var S={},x=[],I=function(){function de(D,L,V){this._index=0,this._keys=D,this._values=L,this._selector=V}return o(de,"MapIterator"),de.prototype["@@iterator"]=function(){return this},de.prototype[a]=function(){return this},de.prototype.next=function(){var D=this._index;if(D>=0&&D<this._keys.length){var L=this._selector(this._keys[D],this._values[D]);return D+1>=this._keys.length?(this._index=-1,this._keys=x,this._values=x):this._index++,{value:L,done:!1}}return{value:void 0,done:!0}},de.prototype.throw=function(D){throw this._index>=0&&(this._index=-1,this._keys=x,this._values=x),D},de.prototype.return=function(D){return this._index>=0&&(this._index=-1,this._keys=x,this._values=x),{value:D,done:!0}},de}(),j=function(){function de(){this._keys=[],this._values=[],this._cacheKey=S,this._cacheIndex=-2}return o(de,"Map"),Object.defineProperty(de.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),de.prototype.has=function(D){return this._find(D,!1)>=0},de.prototype.get=function(D){var L=this._find(D,!1);return L>=0?this._values[L]:void 0},de.prototype.set=function(D,L){var V=this._find(D,!0);return this._values[V]=L,this},de.prototype.delete=function(D){var L=this._find(D,!1);if(L>=0){for(var V=this._keys.length,G=L+1;G<V;G++)this._keys[G-1]=this._keys[G],this._values[G-1]=this._values[G];return this._keys.length--,this._values.length--,_(D,this._cacheKey)&&(this._cacheKey=S,this._cacheIndex=-2),!0}return!1},de.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=S,this._cacheIndex=-2},de.prototype.keys=function(){return new I(this._keys,this._values,Q)},de.prototype.values=function(){return new I(this._keys,this._values,Xe)},de.prototype.entries=function(){return new I(this._keys,this._values,st)},de.prototype["@@iterator"]=function(){return this.entries()},de.prototype[a]=function(){return this.entries()},de.prototype._find=function(D,L){if(!_(this._cacheKey,D)){this._cacheIndex=-1;for(var V=0;V<this._keys.length;V++)if(_(this._keys[V],D)){this._cacheIndex=V;break}}return this._cacheIndex<0&&L&&(this._cacheIndex=this._keys.length,this._keys.push(D),this._values.push(void 0)),this._cacheIndex},de}();return j;function Q(de,D){return de}function Xe(de,D){return D}function st(de,D){return[de,D]}}o(i$,"CreateMapPolyfill");function o$(){var S=function(){function x(){this._map=new d}return o(x,"Set"),Object.defineProperty(x.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),x.prototype.has=function(I){return this._map.has(I)},x.prototype.add=function(I){return this._map.set(I,I),this},x.prototype.delete=function(I){return this._map.delete(I)},x.prototype.clear=function(){this._map.clear()},x.prototype.keys=function(){return this._map.keys()},x.prototype.values=function(){return this._map.keys()},x.prototype.entries=function(){return this._map.entries()},x.prototype["@@iterator"]=function(){return this.keys()},x.prototype[a]=function(){return this.keys()},x}();return S}o(o$,"CreateSetPolyfill");function s$(){var S=16,x=p.create(),I=j();return function(){function D(){this._key=j()}return o(D,"WeakMap"),D.prototype.has=function(L){var V=Q(L,!1);return V!==void 0?p.has(V,this._key):!1},D.prototype.get=function(L){var V=Q(L,!1);return V!==void 0?p.get(V,this._key):void 0},D.prototype.set=function(L,V){var G=Q(L,!0);return G[this._key]=V,this},D.prototype.delete=function(L){var V=Q(L,!1);return V!==void 0?delete V[this._key]:!1},D.prototype.clear=function(){this._key=j()},D}();function j(){var D;do D="@@WeakMap@@"+de();while(p.has(x,D));return x[D]=!0,D}function Q(D,L){if(!n.call(D,I)){if(!L)return;Object.defineProperty(D,I,{value:p.create()})}return D[I]}function Xe(D,L){for(var V=0;V<L;++V)D[V]=Math.random()*255|0;return D}function st(D){if(typeof Uint8Array=="function"){var L=new Uint8Array(D);return typeof crypto<"u"?crypto.getRandomValues(L):typeof msCrypto<"u"?msCrypto.getRandomValues(L):Xe(L,D),L}return Xe(new Array(D),D)}function de(){var D=st(S);D[6]=D[6]&79|64,D[8]=D[8]&191|128;for(var L="",V=0;V<S;++V){var G=D[V];(V===4||V===6||V===8)&&(L+="-"),G<16&&(L+="0"),L+=G.toString(16).toLowerCase()}return L}}o(s$,"CreateWeakMapPolyfill");function Kl(S){return S.__=void 0,delete S.__,S}o(Kl,"MakeDictionary")})})(Pb||(Pb={}))});var Qt=v((Yt,Ab)=>{"use strict";var Hc=/^win/.test(process.platform),nw=/\//g,iw=/^(\w{2,}):\/\//i,wb=Ab.exports,ow=/~1/g,sw=/~0/g,Vf=[/\?/g,"%3F",/\#/g,"%23"],Uf=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];Yt.parse=require("url").parse;Yt.resolve=require("url").resolve;Yt.cwd=o(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");Yt.getProtocol=o(function(t){let r=iw.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");Yt.getExtension=o(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");Yt.getHash=o(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");Yt.stripHash=o(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");Yt.isHttp=o(function(t){let r=wb.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");Yt.isFileSystemPath=o(function(t){if(process.browser)return!1;let r=wb.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");Yt.fromFileSystemPath=o(function(t){Hc&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<Vf.length;r+=2)t=t.replace(Vf[r],Vf[r+1]);return t},"fromFileSystemPath");Yt.toFileSystemPath=o(function(t,r){t=decodeURI(t);for(let i=0;i<Uf.length;i+=2)t=t.replace(Uf[i],Uf[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),Hc&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=Hc?t:"/"+t)),Hc&&!n&&(t=t.replace(nw,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");Yt.safePointerToPath=o(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(ow,"/").replace(sw,"~"))},"safePointerToPath")});var Bc=v(ks=>{"use strict";var Ib=require("util"),aw=Qt();ks.format=Ib.format;ks.inherits=Ib.inherits;ks.swaggerParamRegExp=/\{([^/}]+)}/g;var cw=["get","post","put","delete","patch","options","head","trace"];function Gf(e,t){if(e.url&&e.url.startsWith("/")){let r=aw.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}o(Gf,"fixServers");function uw(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>Gf(r,t)),["paths","webhooks"].forEach(r=>{Object.keys(e[r]||[]).forEach(n=>{let i=e[r][n];Object.keys(i).forEach(s=>{s==="servers"?i[s].map(a=>Gf(a,t)):cw.includes(s)&&i[s].servers&&i[s].servers.map(a=>Gf(a,t))})})}))}o(uw,"fixOasRelativeServers");ks.fixOasRelativeServers=uw});var Vc=v(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.getDeepKeys=Eo.toJSON=void 0;var lw=["function","symbol","undefined"],fw=["constructor","prototype","__proto__"],pw=Object.getPrototypeOf({});function dw(){let e={},t=this;for(let r of Cb(t))if(typeof r=="string"){let n=t[r],i=typeof n;lw.includes(i)||(e[r]=n)}return e}o(dw,"toJSON");Eo.toJSON=dw;function Cb(e,t=[]){let r=[];for(;e&&e!==pw;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(fw))n.delete(i);return n}o(Cb,"getDeepKeys");Eo.getDeepKeys=Cb});var zf=v(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.addInspectMethod=Oo.format=void 0;var Tb=require("util"),hw=Vc(),Rb=Tb.inspect.custom||Symbol.for("nodejs.util.inspect.custom");Oo.format=Tb.format;function mw(e){e[Rb]=gw}o(mw,"addInspectMethod");Oo.addInspectMethod=mw;function gw(){let e={},t=this;for(let r of hw.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[Rb],e}o(gw,"inspect")});var Mb=v(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.lazyJoinStacks=Ur.joinStacks=Ur.isWritableStack=Ur.isLazyStack=void 0;var yw=/\r?\n/,bw=/\bono[ @]/;function vw(e){return!!(e&&e.configurable&&typeof e.get=="function")}o(vw,"isLazyStack");Ur.isLazyStack=vw;function _w(e){return!!(!e||e.writable||typeof e.set=="function")}o(_w,"isWritableStack");Ur.isWritableStack=_w;function Nb(e,t){let r=jb(e.stack),n=t?t.stack:void 0;return r&&n?r+`
3
3
 
4
- `+n:r||n}o($b,"joinStacks");Br.joinStacks=$b;function pw(e,t,r){r?Object.defineProperty(t,"stack",{get:o(()=>{let n=e.get.apply(t);return $b({stack:n},r)},"get"),enumerable:!1,configurable:!0}):dw(t,e)}o(pw,"lazyJoinStacks");Br.lazyJoinStacks=pw;function wb(e){if(e){let t=e.split(cw),r;for(let n=0;n<t.length;n++){let i=t[n];if(uw.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(`
5
- `)}return e}o(wb,"popStack");function dw(e,t){Object.defineProperty(e,"stack",{get:o(()=>wb(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}o(dw,"lazyPopStack")});var Tb=v(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.extendError=void 0;var Ib=Df(),Fc=Ab(),Cb=Lc(),hw=["name","message","stack"];function mw(e,t,r){let n=e;return gw(n,t),t&&typeof t=="object"&&yw(n,t),n.toJSON=Cb.toJSON,Ib.addInspectMethod&&Ib.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}o(mw,"extendError");Hc.extendError=mw;function gw(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");Fc.isLazyStack(r)?Fc.lazyJoinStacks(r,e,t):Fc.isWritableStack(r)&&(e.stack=Fc.joinStacks(e,t))}o(gw,"extendStack");function yw(e,t){let r=Cb.getDeepKeys(t,hw),n=e,i=t;for(let s of r)if(n[s]===void 0)try{n[s]=i[s]}catch{}}o(yw,"mergeErrors")});var Rb=v(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.normalizeArgs=_o.normalizeOptions=void 0;var bw=Df();function vw(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?bw.format:typeof e.format=="function"?e.format:!1}}o(vw,"normalizeOptions");_o.normalizeOptions=vw;function _w(e,t){let r,n,i,s="";return typeof e[0]=="string"?i=e:typeof e[1]=="string"?(e[0]instanceof Error?r=e[0]:n=e[0],i=e.slice(1)):(r=e[0],n=e[1],i=e.slice(2)),i.length>0&&(t.format?s=t.format.apply(void 0,i):s=i.join(" ")),t.concatMessages&&r&&r.message&&(s+=(s?`
6
- `:"")+r.message),{originalError:r,props:n,message:s}}o(_w,"normalizeArgs");_o.normalizeArgs=_w});var Ff=v(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.Ono=void 0;var Bc=Tb(),Nb=Rb(),Sw=Lc(),Ew=Lf;Vc.Ono=Ew;function Lf(e,t){t=Nb.normalizeOptions(t);function r(...n){let{originalError:i,props:s,message:a}=Nb.normalizeArgs(n,t),c=new e(a);return Bc.extendError(c,i,s)}return o(r,"ono"),r[Symbol.species]=e,r}o(Lf,"Ono");Lf.toJSON=o(function(t){return Sw.toJSON.call(t)},"toJSON");Lf.extend=o(function(t,r,n){return n||r instanceof Error?Bc.extendError(t,r,n):r?Bc.extendError(t,void 0,r):Bc.extendError(t)},"extend")});var jb=v(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.ono=void 0;var Ei=Ff(),Ow=Vr;Uc.ono=Ow;Vr.error=new Ei.Ono(Error);Vr.eval=new Ei.Ono(EvalError);Vr.range=new Ei.Ono(RangeError);Vr.reference=new Ei.Ono(ReferenceError);Vr.syntax=new Ei.Ono(SyntaxError);Vr.type=new Ei.Ono(TypeError);Vr.uri=new Ei.Ono(URIError);var Pw=Vr;function Vr(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(Pw))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 Vr.error.apply(void 0,e)}o(Vr,"ono")});var kb=v(Mb=>{"use strict";Object.defineProperty(Mb,"__esModule",{value:!0});var S7=require("util")});var Pr=v((Or,So)=>{"use strict";var xw=Or&&Or.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:o(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),$w=Or&&Or.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&xw(t,e,r)};Object.defineProperty(Or,"__esModule",{value:!0});Or.ono=void 0;var qb=jb();Object.defineProperty(Or,"ono",{enumerable:!0,get:o(function(){return qb.ono},"get")});var ww=Ff();Object.defineProperty(Or,"Ono",{enumerable:!0,get:o(function(){return ww.Ono},"get")});$w(kb(),Or);Or.default=qb.ono;typeof So=="object"&&typeof So.exports=="object"&&(So.exports=Object.assign(So.exports.default,So.exports))});var qs=v(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.regexpCode=Se.getEsmExportName=Se.getProperty=Se.safeStringify=Se.stringify=Se.strConcat=Se.addCodeArg=Se.str=Se._=Se.nil=Se._Code=Se.Name=Se.IDENTIFIER=Se._CodeOrName=void 0;var Vf=class Vf{};o(Vf,"_CodeOrName");var Ms=Vf;Se._CodeOrName=Ms;Se.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Uf=class Uf extends Ms{constructor(t){if(super(),!Se.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};o(Uf,"Name");var Oi=Uf;Se.Name=Oi;var Gf=class Gf extends Ms{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 Oi&&(r[n.str]=(r[n.str]||0)+1),r),{})}};o(Gf,"_Code");var lr=Gf;Se._Code=lr;Se.nil=new lr("");function Db(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Bf(r,t[n]),r.push(e[++n]);return new lr(r)}o(Db,"_");Se._=Db;var Hf=new lr("+");function Lb(e,...t){let r=[ks(e[0])],n=0;for(;n<t.length;)r.push(Hf),Bf(r,t[n]),r.push(Hf,ks(e[++n]));return Aw(r),new lr(r)}o(Lb,"str");Se.str=Lb;function Bf(e,t){t instanceof lr?e.push(...t._items):t instanceof Oi?e.push(t):e.push(Tw(t))}o(Bf,"addCodeArg");Se.addCodeArg=Bf;function Aw(e){let t=1;for(;t<e.length-1;){if(e[t]===Hf){let r=Iw(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}o(Aw,"optimize");function Iw(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Oi||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 Oi))return`"${e}${t.slice(1)}`}o(Iw,"mergeExprItems");function Cw(e,t){return t.emptyStr()?e:e.emptyStr()?t:Lb`${e}${t}`}o(Cw,"strConcat");Se.strConcat=Cw;function Tw(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ks(Array.isArray(e)?e.join(","):e)}o(Tw,"interpolate");function Rw(e){return new lr(ks(e))}o(Rw,"stringify");Se.stringify=Rw;function ks(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(ks,"safeStringify");Se.safeStringify=ks;function Nw(e){return typeof e=="string"&&Se.IDENTIFIER.test(e)?new lr(`.${e}`):Db`[${e}]`}o(Nw,"getProperty");Se.getProperty=Nw;function jw(e){if(typeof e=="string"&&Se.IDENTIFIER.test(e))return new lr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}o(jw,"getEsmExportName");Se.getEsmExportName=jw;function Mw(e){return new lr(e.toString())}o(Mw,"regexpCode");Se.regexpCode=Mw});var Jf=v(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.ValueScope=Dt.ValueScopeName=Dt.Scope=Dt.varKinds=Dt.UsedValueState=void 0;var qt=qs(),Wf=class Wf extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};o(Wf,"ValueError");var zf=Wf,Gc;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Gc||(Dt.UsedValueState=Gc={}));Dt.varKinds={const:new qt.Name("const"),let:new qt.Name("let"),var:new qt.Name("var")};var Kf=class Kf{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof qt.Name?t:this.name(t)}name(t){return new qt.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};o(Kf,"Scope");var zc=Kf;Dt.Scope=zc;var Yf=class Yf extends qt.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,qt._)`.${new qt.Name(r)}[${n}]`}};o(Yf,"ValueScopeName");var Zc=Yf;Dt.ValueScopeName=Zc;var kw=(0,qt._)`\n`,Qf=class Qf extends zc{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?kw:qt.nil}}get(){return this._scope}name(t){return new Zc(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:s}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,c=this._values[s];if(c){let p=c.get(a);if(p)return p}else c=this._values[s]=new Map;c.set(a,i);let u=this._scope[s]||(this._scope[s]=[]),l=u.length;return u[l]=r.ref,i.setValue(r,{property:s,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,qt._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let s=qt.nil;for(let a in t){let c=t[a];if(!c)continue;let u=n[a]=n[a]||new Map;c.forEach(l=>{if(u.has(l))return;u.set(l,Gc.Started);let p=r(l);if(p){let f=this.opts.es5?Dt.varKinds.var:Dt.varKinds.const;s=(0,qt._)`${s}${f} ${l} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(l))s=(0,qt._)`${s}${p}${this.opts._n}`;else throw new zf(l);u.set(l,Gc.Completed)})}return s}};o(Qf,"ValueScope");var Zf=Qf;Dt.ValueScope=Zf});var ae=v(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.or=le.and=le.not=le.CodeGen=le.operators=le.varKinds=le.ValueScopeName=le.ValueScope=le.Scope=le.Name=le.regexpCode=le.stringify=le.getProperty=le.nil=le.strConcat=le.str=le._=void 0;var ye=qs(),xr=Jf(),Tn=qs();Object.defineProperty(le,"_",{enumerable:!0,get:o(function(){return Tn._},"get")});Object.defineProperty(le,"str",{enumerable:!0,get:o(function(){return Tn.str},"get")});Object.defineProperty(le,"strConcat",{enumerable:!0,get:o(function(){return Tn.strConcat},"get")});Object.defineProperty(le,"nil",{enumerable:!0,get:o(function(){return Tn.nil},"get")});Object.defineProperty(le,"getProperty",{enumerable:!0,get:o(function(){return Tn.getProperty},"get")});Object.defineProperty(le,"stringify",{enumerable:!0,get:o(function(){return Tn.stringify},"get")});Object.defineProperty(le,"regexpCode",{enumerable:!0,get:o(function(){return Tn.regexpCode},"get")});Object.defineProperty(le,"Name",{enumerable:!0,get:o(function(){return Tn.Name},"get")});var Qc=Jf();Object.defineProperty(le,"Scope",{enumerable:!0,get:o(function(){return Qc.Scope},"get")});Object.defineProperty(le,"ValueScope",{enumerable:!0,get:o(function(){return Qc.ValueScope},"get")});Object.defineProperty(le,"ValueScopeName",{enumerable:!0,get:o(function(){return Qc.ValueScopeName},"get")});Object.defineProperty(le,"varKinds",{enumerable:!0,get:o(function(){return Qc.varKinds},"get")});le.operators={GT:new ye._Code(">"),GTE:new ye._Code(">="),LT:new ye._Code("<"),LTE:new ye._Code("<="),EQ:new ye._Code("==="),NEQ:new ye._Code("!=="),NOT:new ye._Code("!"),OR:new ye._Code("||"),AND:new ye._Code("&&"),ADD:new ye._Code("+")};var fp=class fp{optimizeNodes(){return this}optimizeNames(t,r){return this}};o(fp,"Node");var fn=fp,pp=class pp extends fn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?xr.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=Po(this.rhs,t,r)),this}get names(){return this.rhs instanceof ye._CodeOrName?this.rhs.names:{}}};o(pp,"Def");var Xf=pp,dp=class dp extends fn{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 ye.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Po(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ye.Name?{}:{...this.lhs.names};return Yc(t,this.rhs)}};o(dp,"Assign");var Wc=dp,hp=class hp extends Wc{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};o(hp,"AssignOp");var ep=hp,mp=class mp extends fn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};o(mp,"Label");var tp=mp,gp=class gp extends fn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};o(gp,"Break");var rp=gp,yp=class yp extends fn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};o(yp,"Throw");var np=yp,bp=class bp extends fn{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=Po(this.code,t,r),this}get names(){return this.code instanceof ye._CodeOrName?this.code.names:{}}};o(bp,"AnyCode");var ip=bp,vp=class vp extends fn{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let s=n[i];s.optimizeNames(t,r)||(qw(t,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>$i(t,r.names),{})}};o(vp,"ParentNode");var Ds=vp,_p=class _p extends Ds{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};o(_p,"BlockNode");var pn=_p,Sp=class Sp extends Ds{};o(Sp,"Root");var op=Sp,Ep=class Ep extends pn{};o(Ep,"Else");var Oo=Ep;Oo.kind="else";var Eo=class Eo extends pn{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 Oo(n):n}if(r)return t===!1?r instanceof Eo?r:r.nodes:this.nodes.length?this:new Eo(Fb(t),r instanceof Eo?[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=Po(this.condition,t,r),this}get names(){let t=super.names;return Yc(t,this.condition),this.else&&$i(t,this.else.names),t}};o(Eo,"If");var Pi=Eo;Pi.kind="if";var Op=class Op extends pn{};o(Op,"For");var xi=Op;xi.kind="for";var Pp=class Pp extends xi{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=Po(this.iteration,t,r),this}get names(){return $i(super.names,this.iteration.names)}};o(Pp,"ForLoop");var sp=Pp,xp=class xp extends xi{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?xr.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${r} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(t)}get names(){let t=Yc(super.names,this.from);return Yc(t,this.to)}};o(xp,"ForRange");var ap=xp,$p=class $p extends xi{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=Po(this.iterable,t,r),this}get names(){return $i(super.names,this.iterable.names)}};o($p,"ForIter");var Kc=$p,wp=class wp extends pn{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};o(wp,"Func");var Ls=wp;Ls.kind="func";var Ap=class Ap extends Ds{render(t){return"return "+super.render(t)}};o(Ap,"Return");var Fs=Ap;Fs.kind="return";var Ip=class Ip extends pn{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&&$i(t,this.catch.names),this.finally&&$i(t,this.finally.names),t}};o(Ip,"Try");var cp=Ip,Cp=class Cp extends pn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};o(Cp,"Catch");var Hs=Cp;Hs.kind="catch";var Tp=class Tp extends pn{render(t){return"finally"+super.render(t)}};o(Tp,"Finally");var Bs=Tp;Bs.kind="finally";var Rp=class Rp{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
7
- `:""},this._extScope=t,this._scope=new xr.Scope({parent:t}),this._nodes=[new op]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let s=this._scope.toName(r);return n!==void 0&&i&&(this._constants[s.str]=n),this._leafNode(new Xf(t,s,n)),s}const(t,r,n){return this._def(xr.varKinds.const,t,r,n)}let(t,r,n){return this._def(xr.varKinds.let,t,r,n)}var(t,r,n){return this._def(xr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Wc(t,r,n))}add(t,r){return this._leafNode(new ep(t,le.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ye.nil&&this._leafNode(new ip(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,ye.addCodeArg)(r,i));return r.push("}"),new ye._Code(r)}if(t,r,n){if(this._blockNode(new Pi(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 Pi(t))}else(){return this._elseNode(new Oo)}endIf(){return this._endBlockNode(Pi,Oo)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new sp(t),r)}forRange(t,r,n,i,s=this.opts.es5?xr.varKinds.var:xr.varKinds.let){let a=this._scope.toName(t);return this._for(new ap(s,a,r,n),()=>i(a))}forOf(t,r,n,i=xr.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let a=r instanceof ye.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ye._)`${a}.length`,c=>{this.var(s,(0,ye._)`${a}[${c}]`),n(s)})}return this._for(new Kc("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?xr.varKinds.var:xr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ye._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new Kc("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(xi)}label(t){return this._leafNode(new tp(t))}break(t){return this._leafNode(new rp(t))}return(t){let r=new Fs;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Fs)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new cp;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new Hs(s),r(s)}return n&&(this._currNode=i.finally=new Bs,this.code(n)),this._endBlockNode(Hs,Bs)}throw(t){return this._leafNode(new np(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=ye.nil,n,i){return this._blockNode(new Ls(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Ls)}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 Pi))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};o(Rp,"CodeGen");var up=Rp;le.CodeGen=up;function $i(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}o($i,"addNames");function Yc(e,t){return t instanceof ye._CodeOrName?$i(e,t.names):e}o(Yc,"addExprNames");function Po(e,t,r){if(e instanceof ye.Name)return n(e);if(!i(e))return e;return new ye._Code(e._items.reduce((s,a)=>(a instanceof ye.Name&&(a=n(a)),a instanceof ye._Code?s.push(...a._items):s.push(a),s),[]));function n(s){let a=r[s.str];return a===void 0||t[s.str]!==1?s:(delete t[s.str],a)}function i(s){return s instanceof ye._Code&&s._items.some(a=>a instanceof ye.Name&&t[a.str]===1&&r[a.str]!==void 0)}}o(Po,"optimizeExpr");function qw(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}o(qw,"subtractNames");function Fb(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ye._)`!${lp(e)}`}o(Fb,"not");le.not=Fb;var Dw=Hb(le.operators.AND);function Lw(...e){return e.reduce(Dw)}o(Lw,"and");le.and=Lw;var Fw=Hb(le.operators.OR);function Hw(...e){return e.reduce(Fw)}o(Hw,"or");le.or=Hw;function Hb(e){return(t,r)=>t===ye.nil?r:r===ye.nil?t:(0,ye._)`${lp(t)} ${e} ${lp(r)}`}o(Hb,"mappend");function lp(e){return e instanceof ye.Name?e:(0,ye._)`(${e})`}o(lp,"par")});var he=v(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.checkStrictMode=fe.getErrorPath=fe.Type=fe.useFunc=fe.setEvaluated=fe.evaluatedPropsToName=fe.mergeEvaluated=fe.eachItem=fe.unescapeJsonPointer=fe.escapeJsonPointer=fe.escapeFragment=fe.unescapeFragment=fe.schemaRefOrVal=fe.schemaHasRulesButRef=fe.schemaHasRules=fe.checkUnknownRules=fe.alwaysValidSchema=fe.toHash=void 0;var Ae=ae(),Bw=qs();function Vw(e){let t={};for(let r of e)t[r]=!0;return t}o(Vw,"toHash");fe.toHash=Vw;function Uw(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Ub(e,t),!Gb(t,e.self.RULES.all))}o(Uw,"alwaysValidSchema");fe.alwaysValidSchema=Uw;function Ub(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let s in t)i[s]||Wb(e,`unknown keyword: "${s}"`)}o(Ub,"checkUnknownRules");fe.checkUnknownRules=Ub;function Gb(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}o(Gb,"schemaHasRules");fe.schemaHasRules=Gb;function Gw(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}o(Gw,"schemaHasRulesButRef");fe.schemaHasRulesButRef=Gw;function zw({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Ae._)`${r}`}return(0,Ae._)`${e}${t}${(0,Ae.getProperty)(n)}`}o(zw,"schemaRefOrVal");fe.schemaRefOrVal=zw;function Zw(e){return zb(decodeURIComponent(e))}o(Zw,"unescapeFragment");fe.unescapeFragment=Zw;function Ww(e){return encodeURIComponent(jp(e))}o(Ww,"escapeFragment");fe.escapeFragment=Ww;function jp(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}o(jp,"escapeJsonPointer");fe.escapeJsonPointer=jp;function zb(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(zb,"unescapeJsonPointer");fe.unescapeJsonPointer=zb;function Kw(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}o(Kw,"eachItem");fe.eachItem=Kw;function Bb({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,c)=>{let u=a===void 0?s:a instanceof Ae.Name?(s instanceof Ae.Name?e(i,s,a):t(i,s,a),a):s instanceof Ae.Name?(t(i,a,s),s):r(s,a);return c===Ae.Name&&!(u instanceof Ae.Name)?n(i,u):u}}o(Bb,"makeMergeEvaluated");fe.mergeEvaluated={props:Bb({mergeNames:o((e,t,r)=>e.if((0,Ae._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Ae._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Ae._)`${r} || {}`).code((0,Ae._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,Ae._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Ae._)`${r} || {}`),Mp(e,r,t))}),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:Zb}),items:Bb({mergeNames:o((e,t,r)=>e.if((0,Ae._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Ae._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,Ae._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Ae._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:o((e,t)=>e.var("items",t),"resultToName")})};function Zb(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Ae._)`{}`);return t!==void 0&&Mp(e,r,t),r}o(Zb,"evaluatedPropsToName");fe.evaluatedPropsToName=Zb;function Mp(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Ae._)`${t}${(0,Ae.getProperty)(n)}`,!0))}o(Mp,"setEvaluated");fe.setEvaluated=Mp;var Vb={};function Yw(e,t){return e.scopeValue("func",{ref:t,code:Vb[t.code]||(Vb[t.code]=new Bw._Code(t.code))})}o(Yw,"useFunc");fe.useFunc=Yw;var Np;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Np||(fe.Type=Np={}));function Qw(e,t,r){if(e instanceof Ae.Name){let n=t===Np.Num;return r?n?(0,Ae._)`"[" + ${e} + "]"`:(0,Ae._)`"['" + ${e} + "']"`:n?(0,Ae._)`"/" + ${e}`:(0,Ae._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Ae.getProperty)(e).toString():"/"+jp(e)}o(Qw,"getErrorPath");fe.getErrorPath=Qw;function Wb(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}o(Wb,"checkStrictMode");fe.checkStrictMode=Wb});var fr=v(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});var vt=ae(),Jw={data:new vt.Name("data"),valCxt:new vt.Name("valCxt"),instancePath:new vt.Name("instancePath"),parentData:new vt.Name("parentData"),parentDataProperty:new vt.Name("parentDataProperty"),rootData:new vt.Name("rootData"),dynamicAnchors:new vt.Name("dynamicAnchors"),vErrors:new vt.Name("vErrors"),errors:new vt.Name("errors"),this:new vt.Name("this"),self:new vt.Name("self"),scope:new vt.Name("scope"),json:new vt.Name("json"),jsonPos:new vt.Name("jsonPos"),jsonLen:new vt.Name("jsonLen"),jsonPart:new vt.Name("jsonPart")};kp.default=Jw});var Vs=v(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.extendErrors=_t.resetErrorsCount=_t.reportExtraError=_t.reportError=_t.keyword$DataError=_t.keywordError=void 0;var be=ae(),Jc=he(),At=fr();_t.keywordError={message:o(({keyword:e})=>(0,be.str)`must pass "${e}" keyword validation`,"message")};_t.keyword$DataError={message:o(({keyword:e,schemaType:t})=>t?(0,be.str)`"${e}" keyword must be ${t} ($data)`:(0,be.str)`"${e}" keyword is invalid ($data)`,"message")};function Xw(e,t=_t.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:c}=i,u=Qb(e,t,r);n??(a||c)?Kb(s,u):Yb(i,(0,be._)`[${u}]`)}o(Xw,"reportError");_t.reportError=Xw;function eA(e,t=_t.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,c=Qb(e,t,r);Kb(i,c),s||a||Yb(n,At.default.vErrors)}o(eA,"reportExtraError");_t.reportExtraError=eA;function tA(e,t){e.assign(At.default.errors,t),e.if((0,be._)`${At.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,be._)`${At.default.vErrors}.length`,t),()=>e.assign(At.default.vErrors,null)))}o(tA,"resetErrorsCount");_t.resetErrorsCount=tA;function rA({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,At.default.errors,c=>{e.const(a,(0,be._)`${At.default.vErrors}[${c}]`),e.if((0,be._)`${a}.instancePath === undefined`,()=>e.assign((0,be._)`${a}.instancePath`,(0,be.strConcat)(At.default.instancePath,s.errorPath))),e.assign((0,be._)`${a}.schemaPath`,(0,be.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,be._)`${a}.schema`,r),e.assign((0,be._)`${a}.data`,n))})}o(rA,"extendErrors");_t.extendErrors=rA;function Kb(e,t){let r=e.const("err",t);e.if((0,be._)`${At.default.vErrors} === null`,()=>e.assign(At.default.vErrors,(0,be._)`[${r}]`),(0,be._)`${At.default.vErrors}.push(${r})`),e.code((0,be._)`${At.default.errors}++`)}o(Kb,"addError");function Yb(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,be._)`new ${e.ValidationError}(${t})`):(r.assign((0,be._)`${n}.errors`,t),r.return(!1))}o(Yb,"returnErrors");var wi={keyword:new be.Name("keyword"),schemaPath:new be.Name("schemaPath"),params:new be.Name("params"),propertyName:new be.Name("propertyName"),message:new be.Name("message"),schema:new be.Name("schema"),parentSchema:new be.Name("parentSchema")};function Qb(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,be._)`{}`:nA(e,t,r)}o(Qb,"errorObjectCode");function nA(e,t,r={}){let{gen:n,it:i}=e,s=[iA(i,r),oA(e,r)];return sA(e,t,s),n.object(...s)}o(nA,"errorObject");function iA({errorPath:e},{instancePath:t}){let r=t?(0,be.str)`${e}${(0,Jc.getErrorPath)(t,Jc.Type.Str)}`:e;return[At.default.instancePath,(0,be.strConcat)(At.default.instancePath,r)]}o(iA,"errorInstancePath");function oA({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,be.str)`${t}/${e}`;return r&&(i=(0,be.str)`${i}${(0,Jc.getErrorPath)(r,Jc.Type.Str)}`),[wi.schemaPath,i]}o(oA,"errorSchemaPath");function sA(e,{params:t,message:r},n){let{keyword:i,data:s,schemaValue:a,it:c}=e,{opts:u,propertyName:l,topSchemaRef:p,schemaPath:f}=c;n.push([wi.keyword,i],[wi.params,typeof t=="function"?t(e):t||(0,be._)`{}`]),u.messages&&n.push([wi.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([wi.schema,a],[wi.parentSchema,(0,be._)`${p}${f}`],[At.default.data,s]),l&&n.push([wi.propertyName,l])}o(sA,"extraErrorProps")});var Xb=v(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.boolOrEmptySchema=xo.topBoolOrEmptySchema=void 0;var aA=Vs(),cA=ae(),uA=fr(),lA={message:"boolean schema is false"};function fA(e){let{gen:t,schema:r,validateName:n}=e;r===!1?Jb(e,!1):typeof r=="object"&&r.$async===!0?t.return(uA.default.data):(t.assign((0,cA._)`${n}.errors`,null),t.return(!0))}o(fA,"topBoolOrEmptySchema");xo.topBoolOrEmptySchema=fA;function pA(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Jb(e)):r.var(t,!0)}o(pA,"boolOrEmptySchema");xo.boolOrEmptySchema=pA;function Jb(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,aA.reportError)(i,lA,void 0,t)}o(Jb,"falseSchemaError")});var qp=v($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.getRules=$o.isJSONType=void 0;var dA=["string","number","integer","boolean","null","object","array"],hA=new Set(dA);function mA(e){return typeof e=="string"&&hA.has(e)}o(mA,"isJSONType");$o.isJSONType=mA;function gA(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}o(gA,"getRules");$o.getRules=gA});var Dp=v(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.shouldUseRule=Rn.shouldUseGroup=Rn.schemaHasRulesForType=void 0;function yA({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&e0(e,n)}o(yA,"schemaHasRulesForType");Rn.schemaHasRulesForType=yA;function e0(e,t){return t.rules.some(r=>t0(e,r))}o(e0,"shouldUseGroup");Rn.shouldUseGroup=e0;function t0(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}o(t0,"shouldUseRule");Rn.shouldUseRule=t0});var Us=v(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.reportTypeError=St.checkDataTypes=St.checkDataType=St.coerceAndCheckDataType=St.getJSONTypes=St.getSchemaTypes=St.DataType=void 0;var bA=qp(),vA=Dp(),_A=Vs(),ce=ae(),r0=he(),wo;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(wo||(St.DataType=wo={}));function SA(e){let t=n0(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}o(SA,"getSchemaTypes");St.getSchemaTypes=SA;function n0(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(bA.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}o(n0,"getJSONTypes");St.getJSONTypes=n0;function EA(e,t){let{gen:r,data:n,opts:i}=e,s=OA(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,vA.schemaHasRulesForType)(e,t[0]));if(a){let c=Fp(t,n,i.strictNumbers,wo.Wrong);r.if(c,()=>{s.length?PA(e,t,s):Hp(e)})}return a}o(EA,"coerceAndCheckDataType");St.coerceAndCheckDataType=EA;var i0=new Set(["string","number","integer","boolean","null"]);function OA(e,t){return t?e.filter(r=>i0.has(r)||t==="array"&&r==="array"):[]}o(OA,"coerceToTypes");function PA(e,t,r){let{gen:n,data:i,opts:s}=e,a=n.let("dataType",(0,ce._)`typeof ${i}`),c=n.let("coerced",(0,ce._)`undefined`);s.coerceTypes==="array"&&n.if((0,ce._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,ce._)`${i}[0]`).assign(a,(0,ce._)`typeof ${i}`).if(Fp(t,i,s.strictNumbers),()=>n.assign(c,i))),n.if((0,ce._)`${c} !== undefined`);for(let l of r)(i0.has(l)||l==="array"&&s.coerceTypes==="array")&&u(l);n.else(),Hp(e),n.endIf(),n.if((0,ce._)`${c} !== undefined`,()=>{n.assign(i,c),xA(e,c)});function u(l){switch(l){case"string":n.elseIf((0,ce._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,ce._)`"" + ${i}`).elseIf((0,ce._)`${i} === null`).assign(c,(0,ce._)`""`);return;case"number":n.elseIf((0,ce._)`${a} == "boolean" || ${i} === null
4
+ `+n:r||n}o(Nb,"joinStacks");Ur.joinStacks=Nb;function Sw(e,t,r){r?Object.defineProperty(t,"stack",{get:o(()=>{let n=e.get.apply(t);return Nb({stack:n},r)},"get"),enumerable:!1,configurable:!0}):Ew(t,e)}o(Sw,"lazyJoinStacks");Ur.lazyJoinStacks=Sw;function jb(e){if(e){let t=e.split(yw),r;for(let n=0;n<t.length;n++){let i=t[n];if(bw.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(`
5
+ `)}return e}o(jb,"popStack");function Ew(e,t){Object.defineProperty(e,"stack",{get:o(()=>jb(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}o(Ew,"lazyPopStack")});var Db=v(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.extendError=void 0;var kb=zf(),Uc=Mb(),qb=Vc(),Ow=["name","message","stack"];function Pw(e,t,r){let n=e;return xw(n,t),t&&typeof t=="object"&&$w(n,t),n.toJSON=qb.toJSON,kb.addInspectMethod&&kb.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}o(Pw,"extendError");Gc.extendError=Pw;function xw(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");Uc.isLazyStack(r)?Uc.lazyJoinStacks(r,e,t):Uc.isWritableStack(r)&&(e.stack=Uc.joinStacks(e,t))}o(xw,"extendStack");function $w(e,t){let r=qb.getDeepKeys(t,Ow),n=e,i=t;for(let s of r)if(n[s]===void 0)try{n[s]=i[s]}catch{}}o($w,"mergeErrors")});var Lb=v(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.normalizeArgs=Po.normalizeOptions=void 0;var ww=zf();function Aw(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?ww.format:typeof e.format=="function"?e.format:!1}}o(Aw,"normalizeOptions");Po.normalizeOptions=Aw;function Iw(e,t){let r,n,i,s="";return typeof e[0]=="string"?i=e:typeof e[1]=="string"?(e[0]instanceof Error?r=e[0]:n=e[0],i=e.slice(1)):(r=e[0],n=e[1],i=e.slice(2)),i.length>0&&(t.format?s=t.format.apply(void 0,i):s=i.join(" ")),t.concatMessages&&r&&r.message&&(s+=(s?`
6
+ `:"")+r.message),{originalError:r,props:n,message:s}}o(Iw,"normalizeArgs");Po.normalizeArgs=Iw});var Wf=v(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.Ono=void 0;var zc=Db(),Fb=Lb(),Cw=Vc(),Tw=Zf;Zc.Ono=Tw;function Zf(e,t){t=Fb.normalizeOptions(t);function r(...n){let{originalError:i,props:s,message:a}=Fb.normalizeArgs(n,t),c=new e(a);return zc.extendError(c,i,s)}return o(r,"ono"),r[Symbol.species]=e,r}o(Zf,"Ono");Zf.toJSON=o(function(t){return Cw.toJSON.call(t)},"toJSON");Zf.extend=o(function(t,r,n){return n||r instanceof Error?zc.extendError(t,r,n):r?zc.extendError(t,void 0,r):zc.extendError(t)},"extend")});var Hb=v(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.ono=void 0;var xi=Wf(),Rw=Gr;Wc.ono=Rw;Gr.error=new xi.Ono(Error);Gr.eval=new xi.Ono(EvalError);Gr.range=new xi.Ono(RangeError);Gr.reference=new xi.Ono(ReferenceError);Gr.syntax=new xi.Ono(SyntaxError);Gr.type=new xi.Ono(TypeError);Gr.uri=new xi.Ono(URIError);var Nw=Gr;function Gr(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(Nw))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 Gr.error.apply(void 0,e)}o(Gr,"ono")});var Vb=v(Bb=>{"use strict";Object.defineProperty(Bb,"__esModule",{value:!0});var TH=require("util")});var $r=v((xr,xo)=>{"use strict";var jw=xr&&xr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:o(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Mw=xr&&xr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&jw(t,e,r)};Object.defineProperty(xr,"__esModule",{value:!0});xr.ono=void 0;var Ub=Hb();Object.defineProperty(xr,"ono",{enumerable:!0,get:o(function(){return Ub.ono},"get")});var kw=Wf();Object.defineProperty(xr,"Ono",{enumerable:!0,get:o(function(){return kw.Ono},"get")});Mw(Vb(),xr);xr.default=Ub.ono;typeof xo=="object"&&typeof xo.exports=="object"&&(xo.exports=Object.assign(xo.exports.default,xo.exports))});var Ls=v(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.regexpCode=Se.getEsmExportName=Se.getProperty=Se.safeStringify=Se.stringify=Se.strConcat=Se.addCodeArg=Se.str=Se._=Se.nil=Se._Code=Se.Name=Se.IDENTIFIER=Se._CodeOrName=void 0;var Qf=class Qf{};o(Qf,"_CodeOrName");var qs=Qf;Se._CodeOrName=qs;Se.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Jf=class Jf extends qs{constructor(t){if(super(),!Se.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};o(Jf,"Name");var $i=Jf;Se.Name=$i;var Xf=class Xf extends qs{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 $i&&(r[n.str]=(r[n.str]||0)+1),r),{})}};o(Xf,"_Code");var pr=Xf;Se._Code=pr;Se.nil=new pr("");function Gb(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Yf(r,t[n]),r.push(e[++n]);return new pr(r)}o(Gb,"_");Se._=Gb;var Kf=new pr("+");function zb(e,...t){let r=[Ds(e[0])],n=0;for(;n<t.length;)r.push(Kf),Yf(r,t[n]),r.push(Kf,Ds(e[++n]));return qw(r),new pr(r)}o(zb,"str");Se.str=zb;function Yf(e,t){t instanceof pr?e.push(...t._items):t instanceof $i?e.push(t):e.push(Fw(t))}o(Yf,"addCodeArg");Se.addCodeArg=Yf;function qw(e){let t=1;for(;t<e.length-1;){if(e[t]===Kf){let r=Dw(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}o(qw,"optimize");function Dw(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof $i||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 $i))return`"${e}${t.slice(1)}`}o(Dw,"mergeExprItems");function Lw(e,t){return t.emptyStr()?e:e.emptyStr()?t:zb`${e}${t}`}o(Lw,"strConcat");Se.strConcat=Lw;function Fw(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Ds(Array.isArray(e)?e.join(","):e)}o(Fw,"interpolate");function Hw(e){return new pr(Ds(e))}o(Hw,"stringify");Se.stringify=Hw;function Ds(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(Ds,"safeStringify");Se.safeStringify=Ds;function Bw(e){return typeof e=="string"&&Se.IDENTIFIER.test(e)?new pr(`.${e}`):Gb`[${e}]`}o(Bw,"getProperty");Se.getProperty=Bw;function Vw(e){if(typeof e=="string"&&Se.IDENTIFIER.test(e))return new pr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}o(Vw,"getEsmExportName");Se.getEsmExportName=Vw;function Uw(e){return new pr(e.toString())}o(Uw,"regexpCode");Se.regexpCode=Uw});var sp=v(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.ValueScope=Ht.ValueScopeName=Ht.Scope=Ht.varKinds=Ht.UsedValueState=void 0;var Ft=Ls(),rp=class rp extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};o(rp,"ValueError");var ep=rp,Kc;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Kc||(Ht.UsedValueState=Kc={}));Ht.varKinds={const:new Ft.Name("const"),let:new Ft.Name("let"),var:new Ft.Name("var")};var np=class np{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Ft.Name?t:this.name(t)}name(t){return new Ft.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};o(np,"Scope");var Yc=np;Ht.Scope=Yc;var ip=class ip extends Ft.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Ft._)`.${new Ft.Name(r)}[${n}]`}};o(ip,"ValueScopeName");var Qc=ip;Ht.ValueScopeName=Qc;var Gw=(0,Ft._)`\n`,op=class op extends Yc{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?Gw:Ft.nil}}get(){return this._scope}name(t){return new Qc(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:s}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,c=this._values[s];if(c){let p=c.get(a);if(p)return p}else c=this._values[s]=new Map;c.set(a,i);let u=this._scope[s]||(this._scope[s]=[]),l=u.length;return u[l]=r.ref,i.setValue(r,{property:s,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Ft._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let s=Ft.nil;for(let a in t){let c=t[a];if(!c)continue;let u=n[a]=n[a]||new Map;c.forEach(l=>{if(u.has(l))return;u.set(l,Kc.Started);let p=r(l);if(p){let f=this.opts.es5?Ht.varKinds.var:Ht.varKinds.const;s=(0,Ft._)`${s}${f} ${l} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(l))s=(0,Ft._)`${s}${p}${this.opts._n}`;else throw new ep(l);u.set(l,Kc.Completed)})}return s}};o(op,"ValueScope");var tp=op;Ht.ValueScope=tp});var ae=v(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.or=le.and=le.not=le.CodeGen=le.operators=le.varKinds=le.ValueScopeName=le.ValueScope=le.Scope=le.Name=le.regexpCode=le.stringify=le.getProperty=le.nil=le.strConcat=le.str=le._=void 0;var ye=Ls(),wr=sp(),Nn=Ls();Object.defineProperty(le,"_",{enumerable:!0,get:o(function(){return Nn._},"get")});Object.defineProperty(le,"str",{enumerable:!0,get:o(function(){return Nn.str},"get")});Object.defineProperty(le,"strConcat",{enumerable:!0,get:o(function(){return Nn.strConcat},"get")});Object.defineProperty(le,"nil",{enumerable:!0,get:o(function(){return Nn.nil},"get")});Object.defineProperty(le,"getProperty",{enumerable:!0,get:o(function(){return Nn.getProperty},"get")});Object.defineProperty(le,"stringify",{enumerable:!0,get:o(function(){return Nn.stringify},"get")});Object.defineProperty(le,"regexpCode",{enumerable:!0,get:o(function(){return Nn.regexpCode},"get")});Object.defineProperty(le,"Name",{enumerable:!0,get:o(function(){return Nn.Name},"get")});var tu=sp();Object.defineProperty(le,"Scope",{enumerable:!0,get:o(function(){return tu.Scope},"get")});Object.defineProperty(le,"ValueScope",{enumerable:!0,get:o(function(){return tu.ValueScope},"get")});Object.defineProperty(le,"ValueScopeName",{enumerable:!0,get:o(function(){return tu.ValueScopeName},"get")});Object.defineProperty(le,"varKinds",{enumerable:!0,get:o(function(){return tu.varKinds},"get")});le.operators={GT:new ye._Code(">"),GTE:new ye._Code(">="),LT:new ye._Code("<"),LTE:new ye._Code("<="),EQ:new ye._Code("==="),NEQ:new ye._Code("!=="),NOT:new ye._Code("!"),OR:new ye._Code("||"),AND:new ye._Code("&&"),ADD:new ye._Code("+")};var vp=class vp{optimizeNodes(){return this}optimizeNames(t,r){return this}};o(vp,"Node");var pn=vp,_p=class _p extends pn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?wr.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=Ao(this.rhs,t,r)),this}get names(){return this.rhs instanceof ye._CodeOrName?this.rhs.names:{}}};o(_p,"Def");var ap=_p,Sp=class Sp extends pn{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 ye.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Ao(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ye.Name?{}:{...this.lhs.names};return eu(t,this.rhs)}};o(Sp,"Assign");var Jc=Sp,Ep=class Ep extends Jc{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};o(Ep,"AssignOp");var cp=Ep,Op=class Op extends pn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};o(Op,"Label");var up=Op,Pp=class Pp extends pn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};o(Pp,"Break");var lp=Pp,xp=class xp extends pn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};o(xp,"Throw");var fp=xp,$p=class $p extends pn{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=Ao(this.code,t,r),this}get names(){return this.code instanceof ye._CodeOrName?this.code.names:{}}};o($p,"AnyCode");var pp=$p,wp=class wp extends pn{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let s=n[i];s.optimizeNames(t,r)||(zw(t,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Ii(t,r.names),{})}};o(wp,"ParentNode");var Fs=wp,Ap=class Ap extends Fs{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};o(Ap,"BlockNode");var dn=Ap,Ip=class Ip extends Fs{};o(Ip,"Root");var dp=Ip,Cp=class Cp extends dn{};o(Cp,"Else");var wo=Cp;wo.kind="else";var $o=class $o extends dn{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 wo(n):n}if(r)return t===!1?r instanceof $o?r:r.nodes:this.nodes.length?this:new $o(Zb(t),r instanceof $o?[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=Ao(this.condition,t,r),this}get names(){let t=super.names;return eu(t,this.condition),this.else&&Ii(t,this.else.names),t}};o($o,"If");var wi=$o;wi.kind="if";var Tp=class Tp extends dn{};o(Tp,"For");var Ai=Tp;Ai.kind="for";var Rp=class Rp extends Ai{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=Ao(this.iteration,t,r),this}get names(){return Ii(super.names,this.iteration.names)}};o(Rp,"ForLoop");var hp=Rp,Np=class Np extends Ai{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?wr.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${r} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(t)}get names(){let t=eu(super.names,this.from);return eu(t,this.to)}};o(Np,"ForRange");var mp=Np,jp=class jp extends Ai{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=Ao(this.iterable,t,r),this}get names(){return Ii(super.names,this.iterable.names)}};o(jp,"ForIter");var Xc=jp,Mp=class Mp extends dn{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};o(Mp,"Func");var Hs=Mp;Hs.kind="func";var kp=class kp extends Fs{render(t){return"return "+super.render(t)}};o(kp,"Return");var Bs=kp;Bs.kind="return";var qp=class qp extends dn{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&&Ii(t,this.catch.names),this.finally&&Ii(t,this.finally.names),t}};o(qp,"Try");var gp=qp,Dp=class Dp extends dn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};o(Dp,"Catch");var Vs=Dp;Vs.kind="catch";var Lp=class Lp extends dn{render(t){return"finally"+super.render(t)}};o(Lp,"Finally");var Us=Lp;Us.kind="finally";var Fp=class Fp{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
7
+ `:""},this._extScope=t,this._scope=new wr.Scope({parent:t}),this._nodes=[new dp]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let s=this._scope.toName(r);return n!==void 0&&i&&(this._constants[s.str]=n),this._leafNode(new ap(t,s,n)),s}const(t,r,n){return this._def(wr.varKinds.const,t,r,n)}let(t,r,n){return this._def(wr.varKinds.let,t,r,n)}var(t,r,n){return this._def(wr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Jc(t,r,n))}add(t,r){return this._leafNode(new cp(t,le.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ye.nil&&this._leafNode(new pp(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,ye.addCodeArg)(r,i));return r.push("}"),new ye._Code(r)}if(t,r,n){if(this._blockNode(new wi(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 wi(t))}else(){return this._elseNode(new wo)}endIf(){return this._endBlockNode(wi,wo)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new hp(t),r)}forRange(t,r,n,i,s=this.opts.es5?wr.varKinds.var:wr.varKinds.let){let a=this._scope.toName(t);return this._for(new mp(s,a,r,n),()=>i(a))}forOf(t,r,n,i=wr.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let a=r instanceof ye.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ye._)`${a}.length`,c=>{this.var(s,(0,ye._)`${a}[${c}]`),n(s)})}return this._for(new Xc("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?wr.varKinds.var:wr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ye._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new Xc("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(Ai)}label(t){return this._leafNode(new up(t))}break(t){return this._leafNode(new lp(t))}return(t){let r=new Bs;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Bs)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new gp;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new Vs(s),r(s)}return n&&(this._currNode=i.finally=new Us,this.code(n)),this._endBlockNode(Vs,Us)}throw(t){return this._leafNode(new fp(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=ye.nil,n,i){return this._blockNode(new Hs(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Hs)}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 wi))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};o(Fp,"CodeGen");var yp=Fp;le.CodeGen=yp;function Ii(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}o(Ii,"addNames");function eu(e,t){return t instanceof ye._CodeOrName?Ii(e,t.names):e}o(eu,"addExprNames");function Ao(e,t,r){if(e instanceof ye.Name)return n(e);if(!i(e))return e;return new ye._Code(e._items.reduce((s,a)=>(a instanceof ye.Name&&(a=n(a)),a instanceof ye._Code?s.push(...a._items):s.push(a),s),[]));function n(s){let a=r[s.str];return a===void 0||t[s.str]!==1?s:(delete t[s.str],a)}function i(s){return s instanceof ye._Code&&s._items.some(a=>a instanceof ye.Name&&t[a.str]===1&&r[a.str]!==void 0)}}o(Ao,"optimizeExpr");function zw(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}o(zw,"subtractNames");function Zb(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ye._)`!${bp(e)}`}o(Zb,"not");le.not=Zb;var Zw=Wb(le.operators.AND);function Ww(...e){return e.reduce(Zw)}o(Ww,"and");le.and=Ww;var Kw=Wb(le.operators.OR);function Yw(...e){return e.reduce(Kw)}o(Yw,"or");le.or=Yw;function Wb(e){return(t,r)=>t===ye.nil?r:r===ye.nil?t:(0,ye._)`${bp(t)} ${e} ${bp(r)}`}o(Wb,"mappend");function bp(e){return e instanceof ye.Name?e:(0,ye._)`(${e})`}o(bp,"par")});var he=v(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.checkStrictMode=fe.getErrorPath=fe.Type=fe.useFunc=fe.setEvaluated=fe.evaluatedPropsToName=fe.mergeEvaluated=fe.eachItem=fe.unescapeJsonPointer=fe.escapeJsonPointer=fe.escapeFragment=fe.unescapeFragment=fe.schemaRefOrVal=fe.schemaHasRulesButRef=fe.schemaHasRules=fe.checkUnknownRules=fe.alwaysValidSchema=fe.toHash=void 0;var Ce=ae(),Qw=Ls();function Jw(e){let t={};for(let r of e)t[r]=!0;return t}o(Jw,"toHash");fe.toHash=Jw;function Xw(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Qb(e,t),!Jb(t,e.self.RULES.all))}o(Xw,"alwaysValidSchema");fe.alwaysValidSchema=Xw;function Qb(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let s in t)i[s]||t0(e,`unknown keyword: "${s}"`)}o(Qb,"checkUnknownRules");fe.checkUnknownRules=Qb;function Jb(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}o(Jb,"schemaHasRules");fe.schemaHasRules=Jb;function eA(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}o(eA,"schemaHasRulesButRef");fe.schemaHasRulesButRef=eA;function tA({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Ce._)`${r}`}return(0,Ce._)`${e}${t}${(0,Ce.getProperty)(n)}`}o(tA,"schemaRefOrVal");fe.schemaRefOrVal=tA;function rA(e){return Xb(decodeURIComponent(e))}o(rA,"unescapeFragment");fe.unescapeFragment=rA;function nA(e){return encodeURIComponent(Bp(e))}o(nA,"escapeFragment");fe.escapeFragment=nA;function Bp(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}o(Bp,"escapeJsonPointer");fe.escapeJsonPointer=Bp;function Xb(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(Xb,"unescapeJsonPointer");fe.unescapeJsonPointer=Xb;function iA(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}o(iA,"eachItem");fe.eachItem=iA;function Kb({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,c)=>{let u=a===void 0?s:a instanceof Ce.Name?(s instanceof Ce.Name?e(i,s,a):t(i,s,a),a):s instanceof Ce.Name?(t(i,a,s),s):r(s,a);return c===Ce.Name&&!(u instanceof Ce.Name)?n(i,u):u}}o(Kb,"makeMergeEvaluated");fe.mergeEvaluated={props:Kb({mergeNames:o((e,t,r)=>e.if((0,Ce._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Ce._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Ce._)`${r} || {}`).code((0,Ce._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,Ce._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Ce._)`${r} || {}`),Vp(e,r,t))}),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:e0}),items:Kb({mergeNames:o((e,t,r)=>e.if((0,Ce._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Ce._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,Ce._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Ce._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:o((e,t)=>e.var("items",t),"resultToName")})};function e0(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Ce._)`{}`);return t!==void 0&&Vp(e,r,t),r}o(e0,"evaluatedPropsToName");fe.evaluatedPropsToName=e0;function Vp(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Ce._)`${t}${(0,Ce.getProperty)(n)}`,!0))}o(Vp,"setEvaluated");fe.setEvaluated=Vp;var Yb={};function oA(e,t){return e.scopeValue("func",{ref:t,code:Yb[t.code]||(Yb[t.code]=new Qw._Code(t.code))})}o(oA,"useFunc");fe.useFunc=oA;var Hp;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Hp||(fe.Type=Hp={}));function sA(e,t,r){if(e instanceof Ce.Name){let n=t===Hp.Num;return r?n?(0,Ce._)`"[" + ${e} + "]"`:(0,Ce._)`"['" + ${e} + "']"`:n?(0,Ce._)`"/" + ${e}`:(0,Ce._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Ce.getProperty)(e).toString():"/"+Bp(e)}o(sA,"getErrorPath");fe.getErrorPath=sA;function t0(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}o(t0,"checkStrictMode");fe.checkStrictMode=t0});var dr=v(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});var _t=ae(),aA={data:new _t.Name("data"),valCxt:new _t.Name("valCxt"),instancePath:new _t.Name("instancePath"),parentData:new _t.Name("parentData"),parentDataProperty:new _t.Name("parentDataProperty"),rootData:new _t.Name("rootData"),dynamicAnchors:new _t.Name("dynamicAnchors"),vErrors:new _t.Name("vErrors"),errors:new _t.Name("errors"),this:new _t.Name("this"),self:new _t.Name("self"),scope:new _t.Name("scope"),json:new _t.Name("json"),jsonPos:new _t.Name("jsonPos"),jsonLen:new _t.Name("jsonLen"),jsonPart:new _t.Name("jsonPart")};Up.default=aA});var Gs=v(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.extendErrors=St.resetErrorsCount=St.reportExtraError=St.reportError=St.keyword$DataError=St.keywordError=void 0;var be=ae(),ru=he(),It=dr();St.keywordError={message:o(({keyword:e})=>(0,be.str)`must pass "${e}" keyword validation`,"message")};St.keyword$DataError={message:o(({keyword:e,schemaType:t})=>t?(0,be.str)`"${e}" keyword must be ${t} ($data)`:(0,be.str)`"${e}" keyword is invalid ($data)`,"message")};function cA(e,t=St.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:c}=i,u=i0(e,t,r);n??(a||c)?r0(s,u):n0(i,(0,be._)`[${u}]`)}o(cA,"reportError");St.reportError=cA;function uA(e,t=St.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,c=i0(e,t,r);r0(i,c),s||a||n0(n,It.default.vErrors)}o(uA,"reportExtraError");St.reportExtraError=uA;function lA(e,t){e.assign(It.default.errors,t),e.if((0,be._)`${It.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,be._)`${It.default.vErrors}.length`,t),()=>e.assign(It.default.vErrors,null)))}o(lA,"resetErrorsCount");St.resetErrorsCount=lA;function fA({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,It.default.errors,c=>{e.const(a,(0,be._)`${It.default.vErrors}[${c}]`),e.if((0,be._)`${a}.instancePath === undefined`,()=>e.assign((0,be._)`${a}.instancePath`,(0,be.strConcat)(It.default.instancePath,s.errorPath))),e.assign((0,be._)`${a}.schemaPath`,(0,be.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,be._)`${a}.schema`,r),e.assign((0,be._)`${a}.data`,n))})}o(fA,"extendErrors");St.extendErrors=fA;function r0(e,t){let r=e.const("err",t);e.if((0,be._)`${It.default.vErrors} === null`,()=>e.assign(It.default.vErrors,(0,be._)`[${r}]`),(0,be._)`${It.default.vErrors}.push(${r})`),e.code((0,be._)`${It.default.errors}++`)}o(r0,"addError");function n0(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,be._)`new ${e.ValidationError}(${t})`):(r.assign((0,be._)`${n}.errors`,t),r.return(!1))}o(n0,"returnErrors");var Ci={keyword:new be.Name("keyword"),schemaPath:new be.Name("schemaPath"),params:new be.Name("params"),propertyName:new be.Name("propertyName"),message:new be.Name("message"),schema:new be.Name("schema"),parentSchema:new be.Name("parentSchema")};function i0(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,be._)`{}`:pA(e,t,r)}o(i0,"errorObjectCode");function pA(e,t,r={}){let{gen:n,it:i}=e,s=[dA(i,r),hA(e,r)];return mA(e,t,s),n.object(...s)}o(pA,"errorObject");function dA({errorPath:e},{instancePath:t}){let r=t?(0,be.str)`${e}${(0,ru.getErrorPath)(t,ru.Type.Str)}`:e;return[It.default.instancePath,(0,be.strConcat)(It.default.instancePath,r)]}o(dA,"errorInstancePath");function hA({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,be.str)`${t}/${e}`;return r&&(i=(0,be.str)`${i}${(0,ru.getErrorPath)(r,ru.Type.Str)}`),[Ci.schemaPath,i]}o(hA,"errorSchemaPath");function mA(e,{params:t,message:r},n){let{keyword:i,data:s,schemaValue:a,it:c}=e,{opts:u,propertyName:l,topSchemaRef:p,schemaPath:f}=c;n.push([Ci.keyword,i],[Ci.params,typeof t=="function"?t(e):t||(0,be._)`{}`]),u.messages&&n.push([Ci.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([Ci.schema,a],[Ci.parentSchema,(0,be._)`${p}${f}`],[It.default.data,s]),l&&n.push([Ci.propertyName,l])}o(mA,"extraErrorProps")});var s0=v(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.boolOrEmptySchema=Io.topBoolOrEmptySchema=void 0;var gA=Gs(),yA=ae(),bA=dr(),vA={message:"boolean schema is false"};function _A(e){let{gen:t,schema:r,validateName:n}=e;r===!1?o0(e,!1):typeof r=="object"&&r.$async===!0?t.return(bA.default.data):(t.assign((0,yA._)`${n}.errors`,null),t.return(!0))}o(_A,"topBoolOrEmptySchema");Io.topBoolOrEmptySchema=_A;function SA(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),o0(e)):r.var(t,!0)}o(SA,"boolOrEmptySchema");Io.boolOrEmptySchema=SA;function o0(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,gA.reportError)(i,vA,void 0,t)}o(o0,"falseSchemaError")});var Gp=v(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.getRules=Co.isJSONType=void 0;var EA=["string","number","integer","boolean","null","object","array"],OA=new Set(EA);function PA(e){return typeof e=="string"&&OA.has(e)}o(PA,"isJSONType");Co.isJSONType=PA;function xA(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}o(xA,"getRules");Co.getRules=xA});var zp=v(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.shouldUseRule=jn.shouldUseGroup=jn.schemaHasRulesForType=void 0;function $A({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&a0(e,n)}o($A,"schemaHasRulesForType");jn.schemaHasRulesForType=$A;function a0(e,t){return t.rules.some(r=>c0(e,r))}o(a0,"shouldUseGroup");jn.shouldUseGroup=a0;function c0(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}o(c0,"shouldUseRule");jn.shouldUseRule=c0});var zs=v(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.reportTypeError=Et.checkDataTypes=Et.checkDataType=Et.coerceAndCheckDataType=Et.getJSONTypes=Et.getSchemaTypes=Et.DataType=void 0;var wA=Gp(),AA=zp(),IA=Gs(),ce=ae(),u0=he(),To;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(To||(Et.DataType=To={}));function CA(e){let t=l0(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}o(CA,"getSchemaTypes");Et.getSchemaTypes=CA;function l0(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(wA.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}o(l0,"getJSONTypes");Et.getJSONTypes=l0;function TA(e,t){let{gen:r,data:n,opts:i}=e,s=RA(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,AA.schemaHasRulesForType)(e,t[0]));if(a){let c=Wp(t,n,i.strictNumbers,To.Wrong);r.if(c,()=>{s.length?NA(e,t,s):Kp(e)})}return a}o(TA,"coerceAndCheckDataType");Et.coerceAndCheckDataType=TA;var f0=new Set(["string","number","integer","boolean","null"]);function RA(e,t){return t?e.filter(r=>f0.has(r)||t==="array"&&r==="array"):[]}o(RA,"coerceToTypes");function NA(e,t,r){let{gen:n,data:i,opts:s}=e,a=n.let("dataType",(0,ce._)`typeof ${i}`),c=n.let("coerced",(0,ce._)`undefined`);s.coerceTypes==="array"&&n.if((0,ce._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,ce._)`${i}[0]`).assign(a,(0,ce._)`typeof ${i}`).if(Wp(t,i,s.strictNumbers),()=>n.assign(c,i))),n.if((0,ce._)`${c} !== undefined`);for(let l of r)(f0.has(l)||l==="array"&&s.coerceTypes==="array")&&u(l);n.else(),Kp(e),n.endIf(),n.if((0,ce._)`${c} !== undefined`,()=>{n.assign(i,c),jA(e,c)});function u(l){switch(l){case"string":n.elseIf((0,ce._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,ce._)`"" + ${i}`).elseIf((0,ce._)`${i} === null`).assign(c,(0,ce._)`""`);return;case"number":n.elseIf((0,ce._)`${a} == "boolean" || ${i} === null
8
8
  || (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,(0,ce._)`+${i}`);return;case"integer":n.elseIf((0,ce._)`${a} === "boolean" || ${i} === null
9
9
  || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,(0,ce._)`+${i}`);return;case"boolean":n.elseIf((0,ce._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf((0,ce._)`${i} === "true" || ${i} === 1`).assign(c,!0);return;case"null":n.elseIf((0,ce._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(c,null);return;case"array":n.elseIf((0,ce._)`${a} === "string" || ${a} === "number"
10
- || ${a} === "boolean" || ${i} === null`).assign(c,(0,ce._)`[${i}]`)}}o(u,"coerceSpecificType")}o(PA,"coerceData");function xA({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,ce._)`${t} !== undefined`,()=>e.assign((0,ce._)`${t}[${r}]`,n))}o(xA,"assignParentData");function Lp(e,t,r,n=wo.Correct){let i=n===wo.Correct?ce.operators.EQ:ce.operators.NEQ,s;switch(e){case"null":return(0,ce._)`${t} ${i} null`;case"array":s=(0,ce._)`Array.isArray(${t})`;break;case"object":s=(0,ce._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a((0,ce._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return(0,ce._)`typeof ${t} ${i} ${e}`}return n===wo.Correct?s:(0,ce.not)(s);function a(c=ce.nil){return(0,ce.and)((0,ce._)`typeof ${t} == "number"`,c,r?(0,ce._)`isFinite(${t})`:ce.nil)}}o(Lp,"checkDataType");St.checkDataType=Lp;function Fp(e,t,r,n){if(e.length===1)return Lp(e[0],t,r,n);let i,s=(0,r0.toHash)(e);if(s.array&&s.object){let a=(0,ce._)`typeof ${t} != "object"`;i=s.null?a:(0,ce._)`!${t} || ${a}`,delete s.null,delete s.array,delete s.object}else i=ce.nil;s.number&&delete s.integer;for(let a in s)i=(0,ce.and)(i,Lp(a,t,r,n));return i}o(Fp,"checkDataTypes");St.checkDataTypes=Fp;var $A={message:o(({schema:e})=>`must be ${e}`,"message"),params:o(({schema:e,schemaValue:t})=>typeof e=="string"?(0,ce._)`{type: ${e}}`:(0,ce._)`{type: ${t}}`,"params")};function Hp(e){let t=wA(e);(0,_A.reportError)(t,$A)}o(Hp,"reportTypeError");St.reportTypeError=Hp;function wA(e){let{gen:t,data:r,schema:n}=e,i=(0,r0.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}o(wA,"getTypeErrorContext")});var s0=v(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.assignDefaults=void 0;var Ao=ae(),AA=he();function IA(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)o0(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>o0(e,s,i.default))}o(IA,"assignDefaults");Xc.assignDefaults=IA;function o0(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let c=(0,Ao._)`${s}${(0,Ao.getProperty)(t)}`;if(i){(0,AA.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,Ao._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,Ao._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,Ao._)`${c} = ${(0,Ao.stringify)(r)}`)}o(o0,"assignDefault")});var pr=v(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.validateUnion=we.validateArray=we.usePattern=we.callValidateCode=we.schemaProperties=we.allSchemaProperties=we.noPropertyInData=we.propertyInData=we.isOwnProperty=we.hasPropFunc=we.reportMissingProp=we.checkMissingProp=we.checkReportMissingProp=void 0;var qe=ae(),Bp=he(),Nn=fr(),CA=he();function TA(e,t){let{gen:r,data:n,it:i}=e;r.if(Up(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,qe._)`${t}`},!0),e.error()})}o(TA,"checkReportMissingProp");we.checkReportMissingProp=TA;function RA({gen:e,data:t,it:{opts:r}},n,i){return(0,qe.or)(...n.map(s=>(0,qe.and)(Up(e,t,s,r.ownProperties),(0,qe._)`${i} = ${s}`)))}o(RA,"checkMissingProp");we.checkMissingProp=RA;function NA(e,t){e.setParams({missingProperty:t},!0),e.error()}o(NA,"reportMissingProp");we.reportMissingProp=NA;function a0(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,qe._)`Object.prototype.hasOwnProperty`})}o(a0,"hasPropFunc");we.hasPropFunc=a0;function Vp(e,t,r){return(0,qe._)`${a0(e)}.call(${t}, ${r})`}o(Vp,"isOwnProperty");we.isOwnProperty=Vp;function jA(e,t,r,n){let i=(0,qe._)`${t}${(0,qe.getProperty)(r)} !== undefined`;return n?(0,qe._)`${i} && ${Vp(e,t,r)}`:i}o(jA,"propertyInData");we.propertyInData=jA;function Up(e,t,r,n){let i=(0,qe._)`${t}${(0,qe.getProperty)(r)} === undefined`;return n?(0,qe.or)(i,(0,qe.not)(Vp(e,t,r))):i}o(Up,"noPropertyInData");we.noPropertyInData=Up;function c0(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}o(c0,"allSchemaProperties");we.allSchemaProperties=c0;function MA(e,t){return c0(t).filter(r=>!(0,Bp.alwaysValidSchema)(e,t[r]))}o(MA,"schemaProperties");we.schemaProperties=MA;function kA({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},c,u,l){let p=l?(0,qe._)`${e}, ${t}, ${n}${i}`:t,f=[[Nn.default.instancePath,(0,qe.strConcat)(Nn.default.instancePath,s)],[Nn.default.parentData,a.parentData],[Nn.default.parentDataProperty,a.parentDataProperty],[Nn.default.rootData,Nn.default.rootData]];a.opts.dynamicRef&&f.push([Nn.default.dynamicAnchors,Nn.default.dynamicAnchors]);let d=(0,qe._)`${p}, ${r.object(...f)}`;return u!==qe.nil?(0,qe._)`${c}.call(${u}, ${d})`:(0,qe._)`${c}(${d})`}o(kA,"callValidateCode");we.callValidateCode=kA;var qA=(0,qe._)`new RegExp`;function DA({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,qe._)`${i.code==="new RegExp"?qA:(0,CA.useFunc)(e,i)}(${r}, ${n})`})}o(DA,"usePattern");we.usePattern=DA;function LA(e){let{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){let c=t.let("valid",!0);return a(()=>t.assign(c,!1)),c}return t.var(s,!0),a(()=>t.break()),s;function a(c){let u=t.const("len",(0,qe._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Bp.Type.Num},s),t.if((0,qe.not)(s),c)})}o(a,"validateItems")}o(LA,"validateArray");we.validateArray=LA;function FA(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,Bp.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((u,l)=>{let p=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},c);t.assign(a,(0,qe._)`${a} || ${c}`),e.mergeValidEvaluated(p,c)||t.if((0,qe.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}o(FA,"validateUnion");we.validateUnion=FA});var f0=v(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.validateKeywordUsage=Ur.validSchemaType=Ur.funcKeywordCode=Ur.macroKeywordCode=void 0;var It=ae(),Ai=fr(),HA=pr(),BA=Vs();function VA(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,c=t.macro.call(a.self,i,s,a),u=l0(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let l=r.name("valid");e.subschema({schema:c,schemaPath:It.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}o(VA,"macroKeywordCode");Ur.macroKeywordCode=VA;function UA(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:c,it:u}=e;zA(u,t);let l=!c&&t.compile?t.compile.call(u.self,s,a,u):t.validate,p=l0(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)b(),t.modifying&&u0(e),g(()=>e.error());else{let P=t.async?h():y();t.modifying&&u0(e),g(()=>GA(e,P))}}o(d,"validateKeyword");function h(){let P=n.let("ruleErrs",null);return n.try(()=>b((0,It._)`await `),$=>n.assign(f,!1).if((0,It._)`${$} instanceof ${u.ValidationError}`,()=>n.assign(P,(0,It._)`${$}.errors`),()=>n.throw($))),P}o(h,"validateAsync");function y(){let P=(0,It._)`${p}.errors`;return n.assign(P,null),b(It.nil),P}o(y,"validateSync");function b(P=t.async?(0,It._)`await `:It.nil){let $=u.opts.passContext?Ai.default.this:Ai.default.self,C=!("compile"in t&&!c||t.schema===!1);n.assign(f,(0,It._)`${P}${(0,HA.callValidateCode)(e,p,$,C)}`,t.modifying)}o(b,"assignValid");function g(P){var $;n.if((0,It.not)(($=t.valid)!==null&&$!==void 0?$:f),P)}o(g,"reportErrs")}o(UA,"funcKeywordCode");Ur.funcKeywordCode=UA;function u0(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,It._)`${n.parentData}[${n.parentDataProperty}]`))}o(u0,"modifyData");function GA(e,t){let{gen:r}=e;r.if((0,It._)`Array.isArray(${t})`,()=>{r.assign(Ai.default.vErrors,(0,It._)`${Ai.default.vErrors} === null ? ${t} : ${Ai.default.vErrors}.concat(${t})`).assign(Ai.default.errors,(0,It._)`${Ai.default.vErrors}.length`),(0,BA.extendErrors)(e)},()=>e.error())}o(GA,"addErrs");function zA({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}o(zA,"checkAsyncKeyword");function l0(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,It.stringify)(r)})}o(l0,"useKeyword");function ZA(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}o(ZA,"validSchemaType");Ur.validSchemaType=ZA;function WA({schema:e,opts:t,self:r,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(c=>!Object.prototype.hasOwnProperty.call(e,c)))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){let u=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}o(WA,"validateKeywordUsage");Ur.validateKeywordUsage=WA});var d0=v(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.extendSubschemaMode=jn.extendSubschemaData=jn.getSubschema=void 0;var Gr=ae(),p0=he();function KA(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let c=e.schema[t];return r===void 0?{schema:c,schemaPath:(0,Gr._)`${e.schemaPath}${(0,Gr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,Gr._)`${e.schemaPath}${(0,Gr.getProperty)(t)}${(0,Gr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,p0.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||s===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}o(KA,"getSubschema");jn.getSubschema=KA;function YA(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:c}=t;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:f}=t,d=c.let("data",(0,Gr._)`${t.data}${(0,Gr.getProperty)(r)}`,!0);u(d),e.errorPath=(0,Gr.str)`${l}${(0,p0.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,Gr._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof Gr.Name?i:c.let("data",i,!0);u(l),a!==void 0&&(e.propertyName=a)}s&&(e.dataTypes=s);function u(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}o(u,"dataContextProps")}o(YA,"extendSubschemaData");jn.extendSubschemaData=YA;function QA(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}o(QA,"extendSubschemaMode");jn.extendSubschemaMode=QA});var Gp=v((Q7,h0)=>{"use strict";h0.exports=o(function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var a=s[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var g0=v((X7,m0)=>{"use strict";var Mn=m0.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(){};eu(t,n,i,e,"",e)};Mn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Mn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Mn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Mn.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 eu(e,t,r,n,i,s,a,c,u,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,a,c,u,l);for(var p in n){var f=n[p];if(Array.isArray(f)){if(p in Mn.arrayKeywords)for(var d=0;d<f.length;d++)eu(e,t,r,f[d],i+"/"+p+"/"+d,s,i,p,n,d)}else if(p in Mn.propsKeywords){if(f&&typeof f=="object")for(var h in f)eu(e,t,r,f[h],i+"/"+p+"/"+JA(h),s,i,p,n,h)}else(p in Mn.keywords||e.allKeys&&!(p in Mn.skipKeywords))&&eu(e,t,r,f,i+"/"+p,s,i,p,n)}r(n,i,s,a,c,u,l)}}o(eu,"_traverse");function JA(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(JA,"escapeJsonPtr")});var Gs=v(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.getSchemaRefs=Lt.resolveUrl=Lt.normalizeId=Lt._getFullPath=Lt.getFullPath=Lt.inlineRef=void 0;var XA=he(),eI=Gp(),tI=g0(),rI=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function nI(e,t=!0){return typeof e=="boolean"?!0:t===!0?!zp(e):t?y0(e)<=t:!1}o(nI,"inlineRef");Lt.inlineRef=nI;var iI=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function zp(e){for(let t in e){if(iI.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(zp)||typeof r=="object"&&zp(r))return!0}return!1}o(zp,"hasRef");function y0(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!rI.has(r)&&(typeof e[r]=="object"&&(0,XA.eachItem)(e[r],n=>t+=y0(n)),t===1/0))return 1/0}return t}o(y0,"countKeys");function b0(e,t="",r){r!==!1&&(t=Io(t));let n=e.parse(t);return v0(e,n)}o(b0,"getFullPath");Lt.getFullPath=b0;function v0(e,t){return e.serialize(t).split("#")[0]+"#"}o(v0,"_getFullPath");Lt._getFullPath=v0;var oI=/#\/?$/;function Io(e){return e?e.replace(oI,""):""}o(Io,"normalizeId");Lt.normalizeId=Io;function sI(e,t,r){return r=Io(r),e.resolve(t,r)}o(sI,"resolveUrl");Lt.resolveUrl=sI;var aI=/^[a-z_][-a-z0-9._]*$/i;function cI(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=Io(e[r]||t),s={"":i},a=b0(n,i,!1),c={},u=new Set;return tI(e,{allKeys:!0},(f,d,h,y)=>{if(y===void 0)return;let b=a+d,g=s[y];typeof f[r]=="string"&&(g=P.call(this,f[r])),$.call(this,f.$anchor),$.call(this,f.$dynamicAnchor),s[d]=g;function P(C){let T=this.opts.uriResolver.resolve;if(C=Io(g?T(g,C):C),u.has(C))throw p(C);u.add(C);let A=this.refs[C];return typeof A=="string"&&(A=this.refs[A]),typeof A=="object"?l(f,A.schema,C):C!==Io(b)&&(C[0]==="#"?(l(f,c[C],C),c[C]=f):this.refs[C]=b),C}o(P,"addRef");function $(C){if(typeof C=="string"){if(!aI.test(C))throw new Error(`invalid anchor "${C}"`);P.call(this,`#${C}`)}}o($,"addAnchor")}),c;function l(f,d,h){if(d!==void 0&&!eI(f,d))throw p(h)}o(l,"checkAmbiguosRef");function p(f){return new Error(`reference "${f}" resolves to more than one schema`)}o(p,"ambiguos")}o(cI,"getSchemaRefs");Lt.getSchemaRefs=cI});var Ws=v(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.getData=kn.KeywordCxt=kn.validateFunctionCode=void 0;var P0=Xb(),_0=Us(),Wp=Dp(),tu=Us(),uI=s0(),Zs=f0(),Zp=d0(),W=ae(),oe=fr(),lI=Gs(),dn=he(),zs=Vs();function fI(e){if(w0(e)&&(A0(e),$0(e))){hI(e);return}x0(e,()=>(0,P0.topBoolOrEmptySchema)(e))}o(fI,"validateFunctionCode");kn.validateFunctionCode=fI;function x0({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,W._)`${oe.default.data}, ${oe.default.valCxt}`,n.$async,()=>{e.code((0,W._)`"use strict"; ${S0(r,i)}`),dI(e,i),e.code(s)}):e.func(t,(0,W._)`${oe.default.data}, ${pI(i)}`,n.$async,()=>e.code(S0(r,i)).code(s))}o(x0,"validateFunction");function pI(e){return(0,W._)`{${oe.default.instancePath}="", ${oe.default.parentData}, ${oe.default.parentDataProperty}, ${oe.default.rootData}=${oe.default.data}${e.dynamicRef?(0,W._)`, ${oe.default.dynamicAnchors}={}`:W.nil}}={}`}o(pI,"destructureValCxt");function dI(e,t){e.if(oe.default.valCxt,()=>{e.var(oe.default.instancePath,(0,W._)`${oe.default.valCxt}.${oe.default.instancePath}`),e.var(oe.default.parentData,(0,W._)`${oe.default.valCxt}.${oe.default.parentData}`),e.var(oe.default.parentDataProperty,(0,W._)`${oe.default.valCxt}.${oe.default.parentDataProperty}`),e.var(oe.default.rootData,(0,W._)`${oe.default.valCxt}.${oe.default.rootData}`),t.dynamicRef&&e.var(oe.default.dynamicAnchors,(0,W._)`${oe.default.valCxt}.${oe.default.dynamicAnchors}`)},()=>{e.var(oe.default.instancePath,(0,W._)`""`),e.var(oe.default.parentData,(0,W._)`undefined`),e.var(oe.default.parentDataProperty,(0,W._)`undefined`),e.var(oe.default.rootData,oe.default.data),t.dynamicRef&&e.var(oe.default.dynamicAnchors,(0,W._)`{}`)})}o(dI,"destructureValCxtES5");function hI(e){let{schema:t,opts:r,gen:n}=e;x0(e,()=>{r.$comment&&t.$comment&&C0(e),vI(e),n.let(oe.default.vErrors,null),n.let(oe.default.errors,0),r.unevaluated&&mI(e),I0(e),EI(e)})}o(hI,"topSchemaObjCode");function mI(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,W._)`${r}.evaluated`),t.if((0,W._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,W._)`${e.evaluated}.props`,(0,W._)`undefined`)),t.if((0,W._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,W._)`${e.evaluated}.items`,(0,W._)`undefined`))}o(mI,"resetEvaluated");function S0(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,W._)`/*# sourceURL=${r} */`:W.nil}o(S0,"funcSourceUrl");function gI(e,t){if(w0(e)&&(A0(e),$0(e))){yI(e,t);return}(0,P0.boolOrEmptySchema)(e,t)}o(gI,"subschemaCode");function $0({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}o($0,"schemaCxtHasRules");function w0(e){return typeof e.schema!="boolean"}o(w0,"isSchemaObj");function yI(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&C0(e),_I(e),SI(e);let s=n.const("_errs",oe.default.errors);I0(e,s),n.var(t,(0,W._)`${s} === ${oe.default.errors}`)}o(yI,"subSchemaObjCode");function A0(e){(0,dn.checkUnknownRules)(e),bI(e)}o(A0,"checkKeywords");function I0(e,t){if(e.opts.jtd)return E0(e,[],!1,t);let r=(0,_0.getSchemaTypes)(e.schema),n=(0,_0.coerceAndCheckDataType)(e,r);E0(e,r,!n,t)}o(I0,"typeAndKeywords");function bI(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,dn.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}o(bI,"checkRefsAndKeywords");function vI(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,dn.checkStrictMode)(e,"default is ignored in the schema root")}o(vI,"checkNoDefault");function _I(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,lI.resolveUrl)(e.opts.uriResolver,e.baseId,t))}o(_I,"updateContext");function SI(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}o(SI,"checkAsyncSchema");function C0({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)e.code((0,W._)`${oe.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let a=(0,W.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,W._)`${oe.default.self}.opts.$comment(${s}, ${a}, ${c}.schema)`)}}o(C0,"commentKeyword");function EI(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,W._)`${oe.default.errors} === 0`,()=>t.return(oe.default.data),()=>t.throw((0,W._)`new ${i}(${oe.default.vErrors})`)):(t.assign((0,W._)`${n}.errors`,oe.default.vErrors),s.unevaluated&&OI(e),t.return((0,W._)`${oe.default.errors} === 0`))}o(EI,"returnResults");function OI({gen:e,evaluated:t,props:r,items:n}){r instanceof W.Name&&e.assign((0,W._)`${t}.props`,r),n instanceof W.Name&&e.assign((0,W._)`${t}.items`,n)}o(OI,"assignEvaluated");function E0(e,t,r,n){let{gen:i,schema:s,data:a,allErrors:c,opts:u,self:l}=e,{RULES:p}=l;if(s.$ref&&(u.ignoreKeywordsWithRef||!(0,dn.schemaHasRulesButRef)(s,p))){i.block(()=>R0(e,"$ref",p.all.$ref.definition));return}u.jtd||PI(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,Wp.shouldUseGroup)(s,d)&&(d.type?(i.if((0,tu.checkDataType)(d.type,a,u.strictNumbers)),O0(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,tu.reportTypeError)(e)),i.endIf()):O0(e,d),c||i.if((0,W._)`${oe.default.errors} === ${n||0}`))}o(f,"groupKeywords")}o(E0,"schemaKeywords");function O0(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,uI.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,Wp.shouldUseRule)(n,s)&&R0(e,s.keyword,s.definition,t.type)})}o(O0,"iterateKeywords");function PI(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(xI(e,t),e.opts.allowUnionTypes||$I(e,t),wI(e,e.dataTypes))}o(PI,"checkStrictTypes");function xI(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{T0(e.dataTypes,r)||Kp(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),II(e,t)}}o(xI,"checkContextTypes");function $I(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Kp(e,"use allowUnionTypes to allow union type keyword")}o($I,"checkMultipleTypes");function wI(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Wp.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>AI(t,a))&&Kp(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}o(wI,"checkKeywordTypes");function AI(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}o(AI,"hasApplicableType");function T0(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}o(T0,"includesType");function II(e,t){let r=[];for(let n of e.dataTypes)T0(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}o(II,"narrowSchemaTypes");function Kp(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,dn.checkStrictMode)(e,t,e.opts.strictTypes)}o(Kp,"strictTypesError");var Yp=class Yp{constructor(t,r,n){if((0,Zs.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,dn.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",N0(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Zs.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",oe.default.errors))}result(t,r,n){this.failResult((0,W.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,W.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,W._)`${r} !== undefined && (${(0,W.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?zs.reportExtraError:zs.reportError)(this,this.def.error,r)}$dataError(){(0,zs.reportError)(this,this.def.$dataError||zs.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,zs.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=W.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=W.nil,r=W.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:a}=this;n.if((0,W.or)((0,W._)`${i} === undefined`,r)),t!==W.nil&&n.assign(t,!0),(s.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==W.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,W.or)(a(),c());function a(){if(n.length){if(!(r instanceof W.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,W._)`${(0,tu.checkDataTypes)(u,r,s.opts.strictNumbers,tu.DataType.Wrong)}`}return W.nil}function c(){if(i.validateSchema){let u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,W._)`!${u}(${r})`}return W.nil}}subschema(t,r){let n=(0,Zp.getSubschema)(this.it,t);(0,Zp.extendSubschemaData)(n,this.it,t),(0,Zp.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return gI(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=dn.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=dn.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,W.Name)),!0}};o(Yp,"KeywordCxt");var ru=Yp;kn.KeywordCxt=ru;function R0(e,t,r,n){let i=new ru(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Zs.funcKeywordCode)(i,r):"macro"in r?(0,Zs.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Zs.funcKeywordCode)(i,r)}o(R0,"keywordCode");var CI=/^\/(?:[^~]|~0|~1)*$/,TI=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function N0(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return oe.default.rootData;if(e[0]==="/"){if(!CI.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=oe.default.rootData}else{let l=TI.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(u("property/index",p));return n[t-p]}if(p>t)throw new Error(u("data",p));if(s=r[t-p],!i)return s}let a=s,c=i.split("/");for(let l of c)l&&(s=(0,W._)`${s}${(0,W.getProperty)((0,dn.unescapeJsonPointer)(l))}`,a=(0,W._)`${a} && ${s}`);return a;function u(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}o(N0,"getData");kn.getData=N0});var nu=v(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});var Xp=class Xp extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};o(Xp,"ValidationError");var Qp=Xp;Jp.default=Qp});var Ks=v(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});var ed=Gs(),nd=class nd extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,ed.resolveUrl)(t,r,n),this.missingSchema=(0,ed.normalizeId)((0,ed.getFullPath)(t,this.missingRef))}};o(nd,"MissingRefError");var td=nd;rd.default=td});var Ys=v(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.resolveSchema=dr.getCompilingSchema=dr.resolveRef=dr.compileSchema=dr.SchemaEnv=void 0;var $r=ae(),RI=nu(),Ii=fr(),wr=Gs(),j0=he(),NI=Ws(),sd=class sd{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,wr.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};o(sd,"SchemaEnv");var Co=sd;dr.SchemaEnv=Co;function od(e){let t=M0.call(this,e);if(t)return t;let r=(0,wr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new $r.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),c;e.$async&&(c=a.scopeValue("Error",{ref:RI.default,code:(0,$r._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:Ii.default.data,parentData:Ii.default.parentData,parentDataProperty:Ii.default.parentDataProperty,dataNames:[Ii.default.data],dataPathArr:[$r.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,$r.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:$r.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,$r._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,NI.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(Ii.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${Ii.default.self}`,`${Ii.default.scope}`,p)(this,this.scope.get());if(this.scope.value(u,{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:u,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:y,items:b}=l;h.evaluated={props:y instanceof $r.Name?void 0:y,items:b instanceof $r.Name?void 0:b,dynamicProps:y instanceof $r.Name,dynamicItems:b instanceof $r.Name},h.source&&(h.source.evaluated=(0,$r.stringify)(h.evaluated))}return e.validate=h,e}catch(f){throw delete e.validate,delete e.validateName,p&&this.logger.error("Error compiling schema, function code:",p),f}finally{this._compilations.delete(e)}}o(od,"compileSchema");dr.compileSchema=od;function jI(e,t,r){var n;r=(0,wr.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=qI.call(this,e,r);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;a&&(s=new Co({schema:a,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=MI.call(this,s)}o(jI,"resolveRef");dr.resolveRef=jI;function MI(e){return(0,wr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:od.call(this,e)}o(MI,"inlineOrCompile");function M0(e){for(let t of this._compilations)if(kI(t,e))return t}o(M0,"getCompilingSchema");dr.getCompilingSchema=M0;function kI(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}o(kI,"sameSchemaEnv");function qI(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||iu.call(this,e,t)}o(qI,"resolve");function iu(e,t){let r=this.opts.uriResolver.parse(t),n=(0,wr._getFullPath)(this.opts.uriResolver,r),i=(0,wr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return id.call(this,r,e);let s=(0,wr.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let c=iu.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:id.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||od.call(this,a),s===(0,wr.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,wr.resolveUrl)(this.opts.uriResolver,i,l)),new Co({schema:c,schemaId:u,root:e,baseId:i})}return id.call(this,r,a)}}o(iu,"resolveSchema");dr.resolveSchema=iu;var DI=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function id(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,j0.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!DI.has(c)&&l&&(t=(0,wr.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,j0.schemaHasRulesButRef)(r,this.RULES)){let c=(0,wr.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=iu.call(this,n,c)}let{schemaId:a}=this.opts;if(s=s||new Co({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}o(id,"getJsonPointer")});var k0=v((fH,LI)=>{LI.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 D0=v((pH,q0)=>{"use strict";var FI={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};q0.exports={HEX:FI}});var z0=v((dH,G0)=>{"use strict";var{HEX:HI}=D0();function B0(e){if(U0(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:VI(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}o(B0,"normalizeIPv4");function ad(e,t=!1){let r="",n=!0;for(let i of e){if(HI[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}o(ad,"stringArrayToHexStripped");function BI(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,a=!1,c=!1;function u(){if(i.length){if(s===!1){let l=ad(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}o(u,"consume");for(let l=0;l<e.length;l++){let p=e[l];if(!(p==="["||p==="]"))if(p===":"){if(a===!0&&(c=!0),!u())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(p==="%"){if(!u())break;s=!0}else{i.push(p);continue}}return i.length&&(s?r.zone=i.join(""):c?n.push(i.join("")):n.push(ad(i))),r.address=n.join(""),r}o(BI,"getIPV6");function V0(e,t={}){if(U0(e,":")<2)return{host:e,isIPV6:!1};let r=BI(e);if(r.error)return{host:e,isIPV6:!1};{let n=r.address,i=r.address;return r.zone&&(n+="%"+r.zone,i+="%25"+r.zone),{host:n,escapedHost:i,isIPV6:!0}}}o(V0,"normalizeIPv6");function VI(e,t){let r="",n=!0,i=e.length;for(let s=0;s<i;s++){let a=e[s];a==="0"&&n?(s+1<=i&&e[s+1]===t||s+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}o(VI,"stripLeadingZeros");function U0(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}o(U0,"findToken");var L0=/^\.\.?\//u,F0=/^\/\.(?:\/|$)/u,H0=/^\/\.\.(?:\/|$)/u,UI=/^\/?(?:.|\n)*?(?=\/|$)/u;function GI(e){let t=[];for(;e.length;)if(e.match(L0))e=e.replace(L0,"");else if(e.match(F0))e=e.replace(F0,"/");else if(e.match(H0))e=e.replace(H0,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(UI);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}o(GI,"removeDotSegments");function zI(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}o(zI,"normalizeComponentEncoding");function ZI(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=B0(n);if(i.isIPV4)n=i.host;else{let s=V0(i.host,{isIPV4:!1});s.isIPV6===!0?n=`[${s.escapedHost}]`:n=e.host}r.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}o(ZI,"recomposeAuthority");G0.exports={recomposeAuthority:ZI,normalizeComponentEncoding:zI,removeDotSegments:GI,normalizeIPv4:B0,normalizeIPv6:V0,stringArrayToHexStripped:ad}});var J0=v((mH,Q0)=>{"use strict";var WI=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,KI=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function Z0(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}o(Z0,"isSecure");function W0(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}o(W0,"httpParse");function K0(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}o(K0,"httpSerialize");function YI(e){return e.secure=Z0(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}o(YI,"wsParse");function QI(e){if((e.port===(Z0(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}o(QI,"wsSerialize");function JI(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(KI);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,s=cd[i];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}o(JI,"urnParse");function XI(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=cd[i];s&&(e=s.serialize(e,t));let a=e,c=e.nss;return a.path=`${n||t.nid}:${c}`,t.skipEscape=!0,a}o(XI,"urnSerialize");function eC(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!WI.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}o(eC,"urnuuidParse");function tC(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}o(tC,"urnuuidSerialize");var Y0={scheme:"http",domainHost:!0,parse:W0,serialize:K0},rC={scheme:"https",domainHost:Y0.domainHost,parse:W0,serialize:K0},ou={scheme:"ws",domainHost:!0,parse:YI,serialize:QI},nC={scheme:"wss",domainHost:ou.domainHost,parse:ou.parse,serialize:ou.serialize},iC={scheme:"urn",parse:JI,serialize:XI,skipNormalize:!0},oC={scheme:"urn:uuid",parse:eC,serialize:tC,skipNormalize:!0},cd={http:Y0,https:rC,ws:ou,wss:nC,urn:iC,"urn:uuid":oC};Q0.exports=cd});var ev=v((yH,au)=>{"use strict";var{normalizeIPv6:sC,normalizeIPv4:aC,removeDotSegments:Qs,recomposeAuthority:cC,normalizeComponentEncoding:su}=z0(),ud=J0();function uC(e,t){return typeof e=="string"?e=zr(hn(e,t),t):typeof e=="object"&&(e=hn(zr(e,t),t)),e}o(uC,"normalize");function lC(e,t,r){let n=Object.assign({scheme:"null"},r),i=X0(hn(e,n),hn(t,n),n,!0);return zr(i,{...n,skipEscape:!0})}o(lC,"resolve");function X0(e,t,r,n){let i={};return n||(e=hn(zr(e,r),r),t=hn(zr(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=Qs(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=Qs(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=Qs(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=Qs(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}o(X0,"resolveComponents");function fC(e,t,r){return typeof e=="string"?(e=unescape(e),e=zr(su(hn(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=zr(su(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=zr(su(hn(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=zr(su(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}o(fC,"equal");function zr(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],s=ud[(n.scheme||r.scheme||"").toLowerCase()];s&&s.serialize&&s.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&(i.push(r.scheme),i.push(":"));let a=cC(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let c=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(c=Qs(c)),a===void 0&&(c=c.replace(/^\/\//u,"/%2F")),i.push(c)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}o(zr,"serialize");var pC=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function dC(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||pC[t])return!0;return!1}o(dC,"nonSimpleDomain");var hC=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function hn(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,s=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(hC);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=aC(n.host);if(u.isIPV4===!1){let l=sC(u.host,{isIPV4:!1});n.host=l.host.toLowerCase(),s=l.isIPV6}else n.host=u.host,s=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let c=ud[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&s===!1&&dC(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}(!c||c&&!c.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),c&&c.parse&&c.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}o(hn,"parse");var ld={SCHEMES:ud,normalize:uC,resolve:lC,resolveComponents:X0,equal:fC,serialize:zr,parse:hn};au.exports=ld;au.exports.default=ld;au.exports.fastUri=ld});var rv=v(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});var tv=ev();tv.code='require("ajv/dist/runtime/uri").default';fd.default=tv});var Ro=v(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.CodeGen=gt.Name=gt.nil=gt.stringify=gt.str=gt._=gt.KeywordCxt=void 0;var mC=Ws();Object.defineProperty(gt,"KeywordCxt",{enumerable:!0,get:o(function(){return mC.KeywordCxt},"get")});var To=ae();Object.defineProperty(gt,"_",{enumerable:!0,get:o(function(){return To._},"get")});Object.defineProperty(gt,"str",{enumerable:!0,get:o(function(){return To.str},"get")});Object.defineProperty(gt,"stringify",{enumerable:!0,get:o(function(){return To.stringify},"get")});Object.defineProperty(gt,"nil",{enumerable:!0,get:o(function(){return To.nil},"get")});Object.defineProperty(gt,"Name",{enumerable:!0,get:o(function(){return To.Name},"get")});Object.defineProperty(gt,"CodeGen",{enumerable:!0,get:o(function(){return To.CodeGen},"get")});var gC=nu(),av=Ks(),yC=qp(),Js=Ys(),bC=ae(),Xs=Gs(),cu=Us(),dd=he(),nv=k0(),vC=rv(),cv=o((e,t)=>new RegExp(e,t),"defaultRegExp");cv.code="new RegExp";var _C=["removeAdditional","useDefaults","coerceTypes"],SC=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),EC={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."},OC={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},iv=200;function PC(e){var t,r,n,i,s,a,c,u,l,p,f,d,h,y,b,g,P,$,C,T,A,K,X,Ze,Ie;let re=e.strict,M=(t=e.code)===null||t===void 0?void 0:t.optimize,R=M===!0||M===void 0?1:M||0,q=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:cv,Q=(i=e.uriResolver)!==null&&i!==void 0?i:vC.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:re)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:re)!==null&&u!==void 0?u:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:re)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:re)!==null&&d!==void 0?d:"log",strictRequired:(y=(h=e.strictRequired)!==null&&h!==void 0?h:re)!==null&&y!==void 0?y:!1,code:e.code?{...e.code,optimize:R,regExp:q}:{optimize:R,regExp:q},loopRequired:(b=e.loopRequired)!==null&&b!==void 0?b:iv,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:iv,meta:(P=e.meta)!==null&&P!==void 0?P:!0,messages:($=e.messages)!==null&&$!==void 0?$:!0,inlineRefs:(C=e.inlineRefs)!==null&&C!==void 0?C:!0,schemaId:(T=e.schemaId)!==null&&T!==void 0?T:"$id",addUsedSchema:(A=e.addUsedSchema)!==null&&A!==void 0?A:!0,validateSchema:(K=e.validateSchema)!==null&&K!==void 0?K:!0,validateFormats:(X=e.validateFormats)!==null&&X!==void 0?X:!0,unicodeRegExp:(Ze=e.unicodeRegExp)!==null&&Ze!==void 0?Ze:!0,int32range:(Ie=e.int32range)!==null&&Ie!==void 0?Ie:!0,uriResolver:Q}}o(PC,"requiredOptions");var hd=class hd{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...PC(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new bC.ValueScope({scope:{},prefixes:SC,es5:r,lines:n}),this.logger=CC(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,yC.getRules)(),ov.call(this,EC,t,"NOT SUPPORTED"),ov.call(this,OC,t,"DEPRECATED","warn"),this._metaOpts=AC.call(this),t.formats&&$C.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&wC.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),xC.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=nv;n==="id"&&(i={...nv},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(p,f){await s.call(this,p.$schema);let d=this._addSchema(p,f);return d.validate||a.call(this,d)}async function s(p){p&&!this.getSchema(p)&&await i.call(this,{$ref:p},!0)}async function a(p){try{return this._compileSchemaEnv(p)}catch(f){if(!(f instanceof av.default))throw f;return c.call(this,f),await u.call(this,f.missingSchema),a.call(this,p)}}function c({missingSchema:p,missingRef:f}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${f} cannot be resolved`)}async function u(p){let f=await l.call(this,p);this.refs[p]||await s.call(this,f.$schema),this.refs[p]||this.addSchema(f,p,r)}async function l(p){let f=this._loading[p];if(f)return f;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let s;if(typeof t=="object"){let{schemaId:a}=this.opts;if(s=t[a],s!==void 0&&typeof s!="string")throw new Error(`schema ${a} must be string`)}return r=(0,Xs.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return i}getSchema(t){let r;for(;typeof(r=sv.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new Js.SchemaEnv({schema:{},schemaId:n});if(r=Js.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=sv.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,Xs.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(RC.call(this,n,r),!r)return(0,dd.eachItem)(n,s=>pd.call(this,s)),this;jC.call(this,r);let i={...r,type:(0,cu.getJSONTypes)(r.type),schemaType:(0,cu.getJSONTypes)(r.schemaType)};return(0,dd.eachItem)(n,i.type.length===0?s=>pd.call(this,s,i):s=>i.type.forEach(a=>pd.call(this,s,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(s=>s.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,s)=>i+r+s)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let s=i.split("/").slice(1),a=t;for(let c of s)a=a[c];for(let c in n){let u=n[c];if(typeof u!="object")continue;let{$data:l}=u.definition,p=a[c];l&&p&&(a[c]=uv(p))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,s=this.opts.addUsedSchema){let a,{schemaId: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,Xs.normalizeId)(a||n);let l=Xs.getSchemaRefs.call(this,t,n);return u=new Js.SchemaEnv({schema:t,schemaId:c,meta:r,baseId:n,localRefs:l}),this._cache.set(u.schema,u),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),i&&this.validateSchema(t,!0),u}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):Js.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{Js.compileSchema.call(this,t)}finally{this.opts=r}}};o(hd,"Ajv");var ea=hd;ea.ValidationError=gC.default;ea.MissingRefError=av.default;gt.default=ea;function ov(e,t,r,n="error"){for(let i in e){let s=i;s in t&&this.logger[n](`${r}: option ${i}. ${e[s]}`)}}o(ov,"checkOptions");function sv(e){return e=(0,Xs.normalizeId)(e),this.schemas[e]||this.refs[e]}o(sv,"getSchEnv");function xC(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}o(xC,"addInitialSchemas");function $C(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}o($C,"addInitialFormats");function wC(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}o(wC,"addInitialKeywords");function AC(){let e={...this.opts};for(let t of _C)delete e[t];return e}o(AC,"getMetaSchemaOptions");var IC={log(){},warn(){},error(){}};function CC(e){if(e===!1)return IC;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}o(CC,"getLogger");var TC=/^[a-z_$][a-z0-9_$:-]*$/i;function RC(e,t){let{RULES:r}=this;if((0,dd.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!TC.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}o(RC,"checkKeyword");function pd(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,a=i?s.post:s.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},s.rules.push(a)),s.keywords[e]=!0,!t)return;let c={keyword:e,definition:{...t,type:(0,cu.getJSONTypes)(t.type),schemaType:(0,cu.getJSONTypes)(t.schemaType)}};t.before?NC.call(this,a,c,t.before):a.rules.push(c),s.all[e]=c,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}o(pd,"addRule");function NC(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}o(NC,"addBeforeRule");function jC(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=uv(t)),e.validateSchema=this.compile(t,!0))}o(jC,"keywordMetaschema");var MC={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function uv(e){return{anyOf:[e,MC]}}o(uv,"schemaOrData")});var ta=v(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.callRef=Ci.getValidate=void 0;var kC=Ks(),lv=pr(),Ft=ae(),No=fr(),fv=Ys(),uu=he(),qC={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:a,opts:c,self:u}=n,{root:l}=s;if((r==="#"||r==="#/")&&i===l.baseId)return f();let p=fv.resolveRef.call(u,l,i,r);if(p===void 0)throw new kC.default(n.opts.uriResolver,i,r);if(p instanceof fv.SchemaEnv)return d(p);return h(p);function f(){if(s===l)return lu(e,a,s,s.$async);let y=t.scopeValue("root",{ref:l});return lu(e,(0,Ft._)`${y}.validate`,l,l.$async)}function d(y){let b=pv(e,y);lu(e,b,y,y.$async)}function h(y){let b=t.scopeValue("schema",c.code.source===!0?{ref:y,code:(0,Ft.stringify)(y)}:{ref:y}),g=t.name("valid"),P=e.subschema({schema:y,dataTypes:[],schemaPath:Ft.nil,topSchemaRef:b,errSchemaPath:r},g);e.mergeEvaluated(P),e.ok(g)}}};function pv(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Ft._)`${r.scopeValue("wrapper",{ref:t})}.validate`}o(pv,"getValidate");Ci.getValidate=pv;function lu(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:c,opts:u}=s,l=u.passContext?No.default.this:Ft.nil;n?p():f();function p(){if(!c.$async)throw new Error("async schema referenced by sync schema");let y=i.let("valid");i.try(()=>{i.code((0,Ft._)`await ${(0,lv.callValidateCode)(e,t,l)}`),h(t),a||i.assign(y,!0)},b=>{i.if((0,Ft._)`!(${b} instanceof ${s.ValidationError})`,()=>i.throw(b)),d(b),a||i.assign(y,!1)}),e.ok(y)}o(p,"callAsyncRef");function f(){e.result((0,lv.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}o(f,"callSyncRef");function d(y){let b=(0,Ft._)`${y}.errors`;i.assign(No.default.vErrors,(0,Ft._)`${No.default.vErrors} === null ? ${b} : ${No.default.vErrors}.concat(${b})`),i.assign(No.default.errors,(0,Ft._)`${No.default.vErrors}.length`)}o(d,"addErrorsFrom");function h(y){var b;if(!s.opts.unevaluated)return;let g=(b=r==null?void 0:r.validate)===null||b===void 0?void 0:b.evaluated;if(s.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(s.props=uu.mergeEvaluated.props(i,g.props,s.props));else{let P=i.var("props",(0,Ft._)`${y}.evaluated.props`);s.props=uu.mergeEvaluated.props(i,P,s.props,Ft.Name)}if(s.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(s.items=uu.mergeEvaluated.items(i,g.items,s.items));else{let P=i.var("items",(0,Ft._)`${y}.evaluated.items`);s.items=uu.mergeEvaluated.items(i,P,s.items,Ft.Name)}}o(h,"addEvaluatedFrom")}o(lu,"callRef");Ci.callRef=lu;Ci.default=qC});var dv=v(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});var DC=ta(),LC=["$schema","id","$defs",{keyword:"$comment"},"definitions",DC.default];md.default=LC});var hv=v(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});var gd=Ro(),FC=ae(),qn=FC.operators,yd={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:qn.LTE,fail:qn.GT},{okStr:"<",ok:qn.LT,fail:qn.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:qn.GTE,fail:qn.LT},{okStr:">",ok:qn.GT,fail:qn.LTE}]}},HC={message:o(e=>gd.str`must be ${bd(e).okStr} ${e.schemaCode}`,"message"),params:o(e=>gd._`{comparison: ${bd(e).okStr}, limit: ${e.schemaCode}}`,"params")},BC={keyword:Object.keys(yd),type:"number",schemaType:"number",$data:!0,error:HC,code(e){let{data:t,schemaCode:r}=e;e.fail$data(gd._`${t} ${bd(e).fail} ${r} || isNaN(${t})`)}};function bd(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[yd[r].exclusive]?1:0;return yd[r].ops[n]}o(bd,"kwdOp");vd.default=BC});var gv=v(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});var mv={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},VC={keyword:Object.keys(mv),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=mv[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};_d.default=VC});var Ed=v(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});var ra=ae(),UC={message:o(({schemaCode:e})=>(0,ra.str)`must be multiple of ${e}`,"message"),params:o(({schemaCode:e})=>(0,ra._)`{multipleOf: ${e}}`,"params")},GC={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:UC,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),c=s?(0,ra._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,ra._)`${a} !== parseInt(${a})`;e.fail$data((0,ra._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};Sd.default=GC});var bv=v(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});function yv(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}o(yv,"ucs2length");Od.default=yv;yv.code='require("ajv/dist/runtime/ucs2length").default'});var xd=v(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});var Ti=ae(),zC=he(),ZC=bv(),WC={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Ti.str)`must NOT have ${r} than ${t} characters`},params:o(({schemaCode:e})=>(0,Ti._)`{limit: ${e}}`,"params")},KC={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:WC,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?Ti.operators.GT:Ti.operators.LT,a=i.opts.unicode===!1?(0,Ti._)`${r}.length`:(0,Ti._)`${(0,zC.useFunc)(e.gen,ZC.default)}(${r})`;e.fail$data((0,Ti._)`${a} ${s} ${n}`)}};Pd.default=KC});var wd=v($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});var YC=pr(),fu=ae(),QC={message:o(({schemaCode:e})=>(0,fu.str)`must match pattern "${e}"`,"message"),params:o(({schemaCode:e})=>(0,fu._)`{pattern: ${e}}`,"params")},JC={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:QC,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",c=r?(0,fu._)`(new RegExp(${i}, ${a}))`:(0,YC.usePattern)(e,n);e.fail$data((0,fu._)`!${c}.test(${t})`)}};$d.default=JC});var Id=v(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});var na=ae(),XC={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,na.str)`must NOT have ${r} than ${t} properties`},params:o(({schemaCode:e})=>(0,na._)`{limit: ${e}}`,"params")},eT={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:XC,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?na.operators.GT:na.operators.LT;e.fail$data((0,na._)`Object.keys(${r}).length ${i} ${n}`)}};Ad.default=eT});var Td=v(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});var ia=pr(),oa=ae(),tT=he(),rT={message:o(({params:{missingProperty:e}})=>(0,oa.str)`must have required property '${e}'`,"message"),params:o(({params:{missingProperty:e}})=>(0,oa._)`{missingProperty: ${e}}`,"params")},nT={keyword:"required",type:"object",schemaType:"array",$data:!0,error:rT,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:a}=e,{opts:c}=a;if(!s&&r.length===0)return;let u=r.length>=c.loopRequired;if(a.allErrors?l():p(),c.strictRequired){let h=e.parentSchema.properties,{definedProperties:y}=e.it;for(let b of r)if((h==null?void 0:h[b])===void 0&&!y.has(b)){let g=a.schemaEnv.baseId+a.errSchemaPath,P=`required property "${b}" is not defined at "${g}" (strictRequired)`;(0,tT.checkStrictMode)(a,P,a.opts.strictRequired)}}function l(){if(u||s)e.block$data(oa.nil,f);else for(let h of r)(0,ia.checkReportMissingProp)(e,h)}o(l,"allErrorsMode");function p(){let h=t.let("missing");if(u||s){let y=t.let("valid",!0);e.block$data(y,()=>d(h,y)),e.ok(y)}else t.if((0,ia.checkMissingProp)(e,r,h)),(0,ia.reportMissingProp)(e,h),t.else()}o(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,ia.noPropertyInData)(t,i,h,c.ownProperties),()=>e.error())})}o(f,"loopAllRequired");function d(h,y){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(y,(0,ia.propertyInData)(t,i,h,c.ownProperties)),t.if((0,oa.not)(y),()=>{e.error(),t.break()})},oa.nil)}o(d,"loopUntilMissing")}};Cd.default=nT});var Nd=v(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});var sa=ae(),iT={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,sa.str)`must NOT have ${r} than ${t} items`},params:o(({schemaCode:e})=>(0,sa._)`{limit: ${e}}`,"params")},oT={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:iT,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?sa.operators.GT:sa.operators.LT;e.fail$data((0,sa._)`${r}.length ${i} ${n}`)}};Rd.default=oT});var pu=v(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});var vv=Gp();vv.code='require("ajv/dist/runtime/equal").default';jd.default=vv});var qd=v(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});var Md=Us(),yt=ae(),sT=he(),aT=pu(),cT={message:o(({params:{i:e,j:t}})=>(0,yt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:o(({params:{i:e,j:t}})=>(0,yt._)`{i: ${e}, j: ${t}}`,"params")},uT={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:cT,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:a,it:c}=e;if(!n&&!i)return;let u=t.let("valid"),l=s.items?(0,Md.getSchemaTypes)(s.items):[];e.block$data(u,p,(0,yt._)`${a} === false`),e.ok(u);function p(){let y=t.let("i",(0,yt._)`${r}.length`),b=t.let("j");e.setParams({i:y,j:b}),t.assign(u,!0),t.if((0,yt._)`${y} > 1`,()=>(f()?d:h)(y,b))}o(p,"validateUniqueItems");function f(){return l.length>0&&!l.some(y=>y==="object"||y==="array")}o(f,"canOptimize");function d(y,b){let g=t.name("item"),P=(0,Md.checkDataTypes)(l,g,c.opts.strictNumbers,Md.DataType.Wrong),$=t.const("indices",(0,yt._)`{}`);t.for((0,yt._)`;${y}--;`,()=>{t.let(g,(0,yt._)`${r}[${y}]`),t.if(P,(0,yt._)`continue`),l.length>1&&t.if((0,yt._)`typeof ${g} == "string"`,(0,yt._)`${g} += "_"`),t.if((0,yt._)`typeof ${$}[${g}] == "number"`,()=>{t.assign(b,(0,yt._)`${$}[${g}]`),e.error(),t.assign(u,!1).break()}).code((0,yt._)`${$}[${g}] = ${y}`)})}o(d,"loopN");function h(y,b){let g=(0,sT.useFunc)(t,aT.default),P=t.name("outer");t.label(P).for((0,yt._)`;${y}--;`,()=>t.for((0,yt._)`${b} = ${y}; ${b}--;`,()=>t.if((0,yt._)`${g}(${r}[${y}], ${r}[${b}])`,()=>{e.error(),t.assign(u,!1).break(P)})))}o(h,"loopN2")}};kd.default=uT});var Fd=v(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});var Dd=ae(),lT=he(),fT=pu(),pT={message:"must be equal to constant",params:o(({schemaCode:e})=>(0,Dd._)`{allowedValue: ${e}}`,"params")},dT={keyword:"const",$data:!0,error:pT,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,Dd._)`!${(0,lT.useFunc)(t,fT.default)}(${r}, ${i})`):e.fail((0,Dd._)`${s} !== ${r}`)}};Ld.default=dT});var Bd=v(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});var aa=ae(),hT=he(),mT=pu(),gT={message:"must be equal to one of the allowed values",params:o(({schemaCode:e})=>(0,aa._)`{allowedValues: ${e}}`,"params")},yT={keyword:"enum",schemaType:"array",$data:!0,error:gT,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:s,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let c=i.length>=a.opts.loopEnum,u,l=o(()=>u??(u=(0,hT.useFunc)(t,mT.default)),"getEql"),p;if(c||n)p=t.let("valid"),e.block$data(p,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let h=t.const("vSchema",s);p=(0,aa.or)(...i.map((y,b)=>d(h,b)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",s,h=>t.if((0,aa._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}o(f,"loopEnum");function d(h,y){let b=i[y];return typeof b=="object"&&b!==null?(0,aa._)`${l()}(${r}, ${h}[${y}])`:(0,aa._)`${r} === ${b}`}o(d,"equalCode")}};Hd.default=yT});var _v=v(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});var bT=hv(),vT=gv(),_T=Ed(),ST=xd(),ET=wd(),OT=Id(),PT=Td(),xT=Nd(),$T=qd(),wT=Fd(),AT=Bd(),IT=[bT.default,vT.default,_T.default,ST.default,ET.default,OT.default,PT.default,xT.default,$T.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},wT.default,AT.default];Vd.default=IT});var Gd=v(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.validateAdditionalItems=void 0;var Ri=ae(),Ud=he(),CT={message:o(({params:{len:e}})=>(0,Ri.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Ri._)`{limit: ${e}}`,"params")},TT={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:CT,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Ud.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Sv(e,n)}};function Sv(e,t){let{gen:r,schema:n,data:i,keyword:s,it:a}=e;a.items=!0;let c=r.const("len",(0,Ri._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Ri._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,Ud.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,Ri._)`${c} <= ${t.length}`);r.if((0,Ri.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,c,p=>{e.subschema({keyword:s,dataProp:p,dataPropType:Ud.Type.Num},l),a.allErrors||r.if((0,Ri.not)(l),()=>r.break())})}o(u,"validateItems")}o(Sv,"validateAdditionalItems");ca.validateAdditionalItems=Sv;ca.default=TT});var zd=v(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.validateTuple=void 0;var Ev=ae(),du=he(),RT=pr(),NT={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return Ov(e,"additionalItems",t);r.items=!0,!(0,du.alwaysValidSchema)(r,t)&&e.ok((0,RT.validateArray)(e))}};function Ov(e,t,r=e.schema){let{gen:n,parentSchema:i,data:s,keyword:a,it:c}=e;p(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=du.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,Ev._)`${s}.length`);r.forEach((f,d)=>{(0,du.alwaysValidSchema)(c,f)||(n.if((0,Ev._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},u)),e.ok(u))});function p(f){let{opts:d,errSchemaPath:h}=c,y=r.length,b=y===f.minItems&&(y===f.maxItems||f[t]===!1);if(d.strictTuples&&!b){let g=`"${a}" is ${y}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,du.checkStrictMode)(c,g,d.strictTuples)}}o(p,"checkStrictTuple")}o(Ov,"validateTuple");ua.validateTuple=Ov;ua.default=NT});var Pv=v(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});var jT=zd(),MT={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o(e=>(0,jT.validateTuple)(e,"items"),"code")};Zd.default=MT});var $v=v(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});var xv=ae(),kT=he(),qT=pr(),DT=Gd(),LT={message:o(({params:{len:e}})=>(0,xv.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,xv._)`{limit: ${e}}`,"params")},FT={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:LT,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,kT.alwaysValidSchema)(n,t)&&(i?(0,DT.validateAdditionalItems)(e,i):e.ok((0,qT.validateArray)(e)))}};Wd.default=FT});var wv=v(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});var hr=ae(),hu=he(),HT={message:o(({params:{min:e,max:t}})=>t===void 0?(0,hr.str)`must contain at least ${e} valid item(s)`:(0,hr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:o(({params:{min:e,max:t}})=>t===void 0?(0,hr._)`{minContains: ${e}}`:(0,hr._)`{minContains: ${e}, maxContains: ${t}}`,"params")},BT={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:HT,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e,a,c,{minContains:u,maxContains:l}=n;s.opts.next?(a=u===void 0?1:u,c=l):a=1;let p=t.const("len",(0,hr._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,hu.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,hu.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,hu.alwaysValidSchema)(s,r)){let b=(0,hr._)`${p} >= ${a}`;c!==void 0&&(b=(0,hr._)`${b} && ${p} <= ${c}`),e.pass(b);return}s.items=!0;let f=t.name("valid");c===void 0&&a===1?h(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),c!==void 0&&t.if((0,hr._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let b=t.name("_valid"),g=t.let("count",0);h(b,()=>t.if(b,()=>y(g)))}o(d,"validateItemsWithCount");function h(b,g){t.forRange("i",0,p,P=>{e.subschema({keyword:"contains",dataProp:P,dataPropType:hu.Type.Num,compositeRule:!0},b),g()})}o(h,"validateItems");function y(b){t.code((0,hr._)`${b}++`),c===void 0?t.if((0,hr._)`${b} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,hr._)`${b} > ${c}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,hr._)`${b} >= ${a}`,()=>t.assign(f,!0)))}o(y,"checkLimits")}};Kd.default=BT});var mu=v(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.validateSchemaDeps=Zr.validatePropertyDeps=Zr.error=void 0;var Yd=ae(),VT=he(),la=pr();Zr.error={message:o(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Yd.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:o(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Yd._)`{property: ${e},
10
+ || ${a} === "boolean" || ${i} === null`).assign(c,(0,ce._)`[${i}]`)}}o(u,"coerceSpecificType")}o(NA,"coerceData");function jA({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,ce._)`${t} !== undefined`,()=>e.assign((0,ce._)`${t}[${r}]`,n))}o(jA,"assignParentData");function Zp(e,t,r,n=To.Correct){let i=n===To.Correct?ce.operators.EQ:ce.operators.NEQ,s;switch(e){case"null":return(0,ce._)`${t} ${i} null`;case"array":s=(0,ce._)`Array.isArray(${t})`;break;case"object":s=(0,ce._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a((0,ce._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return(0,ce._)`typeof ${t} ${i} ${e}`}return n===To.Correct?s:(0,ce.not)(s);function a(c=ce.nil){return(0,ce.and)((0,ce._)`typeof ${t} == "number"`,c,r?(0,ce._)`isFinite(${t})`:ce.nil)}}o(Zp,"checkDataType");Et.checkDataType=Zp;function Wp(e,t,r,n){if(e.length===1)return Zp(e[0],t,r,n);let i,s=(0,u0.toHash)(e);if(s.array&&s.object){let a=(0,ce._)`typeof ${t} != "object"`;i=s.null?a:(0,ce._)`!${t} || ${a}`,delete s.null,delete s.array,delete s.object}else i=ce.nil;s.number&&delete s.integer;for(let a in s)i=(0,ce.and)(i,Zp(a,t,r,n));return i}o(Wp,"checkDataTypes");Et.checkDataTypes=Wp;var MA={message:o(({schema:e})=>`must be ${e}`,"message"),params:o(({schema:e,schemaValue:t})=>typeof e=="string"?(0,ce._)`{type: ${e}}`:(0,ce._)`{type: ${t}}`,"params")};function Kp(e){let t=kA(e);(0,IA.reportError)(t,MA)}o(Kp,"reportTypeError");Et.reportTypeError=Kp;function kA(e){let{gen:t,data:r,schema:n}=e,i=(0,u0.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}o(kA,"getTypeErrorContext")});var d0=v(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.assignDefaults=void 0;var Ro=ae(),qA=he();function DA(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)p0(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>p0(e,s,i.default))}o(DA,"assignDefaults");nu.assignDefaults=DA;function p0(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let c=(0,Ro._)`${s}${(0,Ro.getProperty)(t)}`;if(i){(0,qA.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,Ro._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,Ro._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,Ro._)`${c} = ${(0,Ro.stringify)(r)}`)}o(p0,"assignDefault")});var hr=v(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.validateUnion=Ie.validateArray=Ie.usePattern=Ie.callValidateCode=Ie.schemaProperties=Ie.allSchemaProperties=Ie.noPropertyInData=Ie.propertyInData=Ie.isOwnProperty=Ie.hasPropFunc=Ie.reportMissingProp=Ie.checkMissingProp=Ie.checkReportMissingProp=void 0;var De=ae(),Yp=he(),Mn=dr(),LA=he();function FA(e,t){let{gen:r,data:n,it:i}=e;r.if(Jp(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,De._)`${t}`},!0),e.error()})}o(FA,"checkReportMissingProp");Ie.checkReportMissingProp=FA;function HA({gen:e,data:t,it:{opts:r}},n,i){return(0,De.or)(...n.map(s=>(0,De.and)(Jp(e,t,s,r.ownProperties),(0,De._)`${i} = ${s}`)))}o(HA,"checkMissingProp");Ie.checkMissingProp=HA;function BA(e,t){e.setParams({missingProperty:t},!0),e.error()}o(BA,"reportMissingProp");Ie.reportMissingProp=BA;function h0(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,De._)`Object.prototype.hasOwnProperty`})}o(h0,"hasPropFunc");Ie.hasPropFunc=h0;function Qp(e,t,r){return(0,De._)`${h0(e)}.call(${t}, ${r})`}o(Qp,"isOwnProperty");Ie.isOwnProperty=Qp;function VA(e,t,r,n){let i=(0,De._)`${t}${(0,De.getProperty)(r)} !== undefined`;return n?(0,De._)`${i} && ${Qp(e,t,r)}`:i}o(VA,"propertyInData");Ie.propertyInData=VA;function Jp(e,t,r,n){let i=(0,De._)`${t}${(0,De.getProperty)(r)} === undefined`;return n?(0,De.or)(i,(0,De.not)(Qp(e,t,r))):i}o(Jp,"noPropertyInData");Ie.noPropertyInData=Jp;function m0(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}o(m0,"allSchemaProperties");Ie.allSchemaProperties=m0;function UA(e,t){return m0(t).filter(r=>!(0,Yp.alwaysValidSchema)(e,t[r]))}o(UA,"schemaProperties");Ie.schemaProperties=UA;function GA({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},c,u,l){let p=l?(0,De._)`${e}, ${t}, ${n}${i}`:t,f=[[Mn.default.instancePath,(0,De.strConcat)(Mn.default.instancePath,s)],[Mn.default.parentData,a.parentData],[Mn.default.parentDataProperty,a.parentDataProperty],[Mn.default.rootData,Mn.default.rootData]];a.opts.dynamicRef&&f.push([Mn.default.dynamicAnchors,Mn.default.dynamicAnchors]);let d=(0,De._)`${p}, ${r.object(...f)}`;return u!==De.nil?(0,De._)`${c}.call(${u}, ${d})`:(0,De._)`${c}(${d})`}o(GA,"callValidateCode");Ie.callValidateCode=GA;var zA=(0,De._)`new RegExp`;function ZA({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,De._)`${i.code==="new RegExp"?zA:(0,LA.useFunc)(e,i)}(${r}, ${n})`})}o(ZA,"usePattern");Ie.usePattern=ZA;function WA(e){let{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){let c=t.let("valid",!0);return a(()=>t.assign(c,!1)),c}return t.var(s,!0),a(()=>t.break()),s;function a(c){let u=t.const("len",(0,De._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Yp.Type.Num},s),t.if((0,De.not)(s),c)})}o(a,"validateItems")}o(WA,"validateArray");Ie.validateArray=WA;function KA(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,Yp.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((u,l)=>{let p=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},c);t.assign(a,(0,De._)`${a} || ${c}`),e.mergeValidEvaluated(p,c)||t.if((0,De.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}o(KA,"validateUnion");Ie.validateUnion=KA});var b0=v(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.validateKeywordUsage=zr.validSchemaType=zr.funcKeywordCode=zr.macroKeywordCode=void 0;var Ct=ae(),Ti=dr(),YA=hr(),QA=Gs();function JA(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,c=t.macro.call(a.self,i,s,a),u=y0(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let l=r.name("valid");e.subschema({schema:c,schemaPath:Ct.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}o(JA,"macroKeywordCode");zr.macroKeywordCode=JA;function XA(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:c,it:u}=e;tI(u,t);let l=!c&&t.compile?t.compile.call(u.self,s,a,u):t.validate,p=y0(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)b(),t.modifying&&g0(e),g(()=>e.error());else{let P=t.async?h():y();t.modifying&&g0(e),g(()=>eI(e,P))}}o(d,"validateKeyword");function h(){let P=n.let("ruleErrs",null);return n.try(()=>b((0,Ct._)`await `),$=>n.assign(f,!1).if((0,Ct._)`${$} instanceof ${u.ValidationError}`,()=>n.assign(P,(0,Ct._)`${$}.errors`),()=>n.throw($))),P}o(h,"validateAsync");function y(){let P=(0,Ct._)`${p}.errors`;return n.assign(P,null),b(Ct.nil),P}o(y,"validateSync");function b(P=t.async?(0,Ct._)`await `:Ct.nil){let $=u.opts.passContext?Ti.default.this:Ti.default.self,C=!("compile"in t&&!c||t.schema===!1);n.assign(f,(0,Ct._)`${P}${(0,YA.callValidateCode)(e,p,$,C)}`,t.modifying)}o(b,"assignValid");function g(P){var $;n.if((0,Ct.not)(($=t.valid)!==null&&$!==void 0?$:f),P)}o(g,"reportErrs")}o(XA,"funcKeywordCode");zr.funcKeywordCode=XA;function g0(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Ct._)`${n.parentData}[${n.parentDataProperty}]`))}o(g0,"modifyData");function eI(e,t){let{gen:r}=e;r.if((0,Ct._)`Array.isArray(${t})`,()=>{r.assign(Ti.default.vErrors,(0,Ct._)`${Ti.default.vErrors} === null ? ${t} : ${Ti.default.vErrors}.concat(${t})`).assign(Ti.default.errors,(0,Ct._)`${Ti.default.vErrors}.length`),(0,QA.extendErrors)(e)},()=>e.error())}o(eI,"addErrs");function tI({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}o(tI,"checkAsyncKeyword");function y0(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,Ct.stringify)(r)})}o(y0,"useKeyword");function rI(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}o(rI,"validSchemaType");zr.validSchemaType=rI;function nI({schema:e,opts:t,self:r,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(c=>!Object.prototype.hasOwnProperty.call(e,c)))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){let u=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}o(nI,"validateKeywordUsage");zr.validateKeywordUsage=nI});var _0=v(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.extendSubschemaMode=kn.extendSubschemaData=kn.getSubschema=void 0;var Zr=ae(),v0=he();function iI(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let c=e.schema[t];return r===void 0?{schema:c,schemaPath:(0,Zr._)`${e.schemaPath}${(0,Zr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,Zr._)`${e.schemaPath}${(0,Zr.getProperty)(t)}${(0,Zr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,v0.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||s===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}o(iI,"getSubschema");kn.getSubschema=iI;function oI(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:c}=t;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:f}=t,d=c.let("data",(0,Zr._)`${t.data}${(0,Zr.getProperty)(r)}`,!0);u(d),e.errorPath=(0,Zr.str)`${l}${(0,v0.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,Zr._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof Zr.Name?i:c.let("data",i,!0);u(l),a!==void 0&&(e.propertyName=a)}s&&(e.dataTypes=s);function u(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}o(u,"dataContextProps")}o(oI,"extendSubschemaData");kn.extendSubschemaData=oI;function sI(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}o(sI,"extendSubschemaMode");kn.extendSubschemaMode=sI});var Xp=v((a7,S0)=>{"use strict";S0.exports=o(function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var a=s[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var O0=v((u7,E0)=>{"use strict";var qn=E0.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(){};iu(t,n,i,e,"",e)};qn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};qn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};qn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};qn.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 iu(e,t,r,n,i,s,a,c,u,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,a,c,u,l);for(var p in n){var f=n[p];if(Array.isArray(f)){if(p in qn.arrayKeywords)for(var d=0;d<f.length;d++)iu(e,t,r,f[d],i+"/"+p+"/"+d,s,i,p,n,d)}else if(p in qn.propsKeywords){if(f&&typeof f=="object")for(var h in f)iu(e,t,r,f[h],i+"/"+p+"/"+aI(h),s,i,p,n,h)}else(p in qn.keywords||e.allKeys&&!(p in qn.skipKeywords))&&iu(e,t,r,f,i+"/"+p,s,i,p,n)}r(n,i,s,a,c,u,l)}}o(iu,"_traverse");function aI(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(aI,"escapeJsonPtr")});var Zs=v(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.getSchemaRefs=Bt.resolveUrl=Bt.normalizeId=Bt._getFullPath=Bt.getFullPath=Bt.inlineRef=void 0;var cI=he(),uI=Xp(),lI=O0(),fI=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function pI(e,t=!0){return typeof e=="boolean"?!0:t===!0?!ed(e):t?P0(e)<=t:!1}o(pI,"inlineRef");Bt.inlineRef=pI;var dI=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function ed(e){for(let t in e){if(dI.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(ed)||typeof r=="object"&&ed(r))return!0}return!1}o(ed,"hasRef");function P0(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!fI.has(r)&&(typeof e[r]=="object"&&(0,cI.eachItem)(e[r],n=>t+=P0(n)),t===1/0))return 1/0}return t}o(P0,"countKeys");function x0(e,t="",r){r!==!1&&(t=No(t));let n=e.parse(t);return $0(e,n)}o(x0,"getFullPath");Bt.getFullPath=x0;function $0(e,t){return e.serialize(t).split("#")[0]+"#"}o($0,"_getFullPath");Bt._getFullPath=$0;var hI=/#\/?$/;function No(e){return e?e.replace(hI,""):""}o(No,"normalizeId");Bt.normalizeId=No;function mI(e,t,r){return r=No(r),e.resolve(t,r)}o(mI,"resolveUrl");Bt.resolveUrl=mI;var gI=/^[a-z_][-a-z0-9._]*$/i;function yI(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=No(e[r]||t),s={"":i},a=x0(n,i,!1),c={},u=new Set;return lI(e,{allKeys:!0},(f,d,h,y)=>{if(y===void 0)return;let b=a+d,g=s[y];typeof f[r]=="string"&&(g=P.call(this,f[r])),$.call(this,f.$anchor),$.call(this,f.$dynamicAnchor),s[d]=g;function P(C){let T=this.opts.uriResolver.resolve;if(C=No(g?T(g,C):C),u.has(C))throw p(C);u.add(C);let A=this.refs[C];return typeof A=="string"&&(A=this.refs[A]),typeof A=="object"?l(f,A.schema,C):C!==No(b)&&(C[0]==="#"?(l(f,c[C],C),c[C]=f):this.refs[C]=b),C}o(P,"addRef");function $(C){if(typeof C=="string"){if(!gI.test(C))throw new Error(`invalid anchor "${C}"`);P.call(this,`#${C}`)}}o($,"addAnchor")}),c;function l(f,d,h){if(d!==void 0&&!uI(f,d))throw p(h)}o(l,"checkAmbiguosRef");function p(f){return new Error(`reference "${f}" resolves to more than one schema`)}o(p,"ambiguos")}o(yI,"getSchemaRefs");Bt.getSchemaRefs=yI});var Ys=v(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.getData=Dn.KeywordCxt=Dn.validateFunctionCode=void 0;var T0=s0(),w0=zs(),rd=zp(),ou=zs(),bI=d0(),Ks=b0(),td=_0(),W=ae(),oe=dr(),vI=Zs(),hn=he(),Ws=Gs();function _I(e){if(j0(e)&&(M0(e),N0(e))){OI(e);return}R0(e,()=>(0,T0.topBoolOrEmptySchema)(e))}o(_I,"validateFunctionCode");Dn.validateFunctionCode=_I;function R0({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,W._)`${oe.default.data}, ${oe.default.valCxt}`,n.$async,()=>{e.code((0,W._)`"use strict"; ${A0(r,i)}`),EI(e,i),e.code(s)}):e.func(t,(0,W._)`${oe.default.data}, ${SI(i)}`,n.$async,()=>e.code(A0(r,i)).code(s))}o(R0,"validateFunction");function SI(e){return(0,W._)`{${oe.default.instancePath}="", ${oe.default.parentData}, ${oe.default.parentDataProperty}, ${oe.default.rootData}=${oe.default.data}${e.dynamicRef?(0,W._)`, ${oe.default.dynamicAnchors}={}`:W.nil}}={}`}o(SI,"destructureValCxt");function EI(e,t){e.if(oe.default.valCxt,()=>{e.var(oe.default.instancePath,(0,W._)`${oe.default.valCxt}.${oe.default.instancePath}`),e.var(oe.default.parentData,(0,W._)`${oe.default.valCxt}.${oe.default.parentData}`),e.var(oe.default.parentDataProperty,(0,W._)`${oe.default.valCxt}.${oe.default.parentDataProperty}`),e.var(oe.default.rootData,(0,W._)`${oe.default.valCxt}.${oe.default.rootData}`),t.dynamicRef&&e.var(oe.default.dynamicAnchors,(0,W._)`${oe.default.valCxt}.${oe.default.dynamicAnchors}`)},()=>{e.var(oe.default.instancePath,(0,W._)`""`),e.var(oe.default.parentData,(0,W._)`undefined`),e.var(oe.default.parentDataProperty,(0,W._)`undefined`),e.var(oe.default.rootData,oe.default.data),t.dynamicRef&&e.var(oe.default.dynamicAnchors,(0,W._)`{}`)})}o(EI,"destructureValCxtES5");function OI(e){let{schema:t,opts:r,gen:n}=e;R0(e,()=>{r.$comment&&t.$comment&&q0(e),AI(e),n.let(oe.default.vErrors,null),n.let(oe.default.errors,0),r.unevaluated&&PI(e),k0(e),TI(e)})}o(OI,"topSchemaObjCode");function PI(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,W._)`${r}.evaluated`),t.if((0,W._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,W._)`${e.evaluated}.props`,(0,W._)`undefined`)),t.if((0,W._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,W._)`${e.evaluated}.items`,(0,W._)`undefined`))}o(PI,"resetEvaluated");function A0(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,W._)`/*# sourceURL=${r} */`:W.nil}o(A0,"funcSourceUrl");function xI(e,t){if(j0(e)&&(M0(e),N0(e))){$I(e,t);return}(0,T0.boolOrEmptySchema)(e,t)}o(xI,"subschemaCode");function N0({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}o(N0,"schemaCxtHasRules");function j0(e){return typeof e.schema!="boolean"}o(j0,"isSchemaObj");function $I(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&q0(e),II(e),CI(e);let s=n.const("_errs",oe.default.errors);k0(e,s),n.var(t,(0,W._)`${s} === ${oe.default.errors}`)}o($I,"subSchemaObjCode");function M0(e){(0,hn.checkUnknownRules)(e),wI(e)}o(M0,"checkKeywords");function k0(e,t){if(e.opts.jtd)return I0(e,[],!1,t);let r=(0,w0.getSchemaTypes)(e.schema),n=(0,w0.coerceAndCheckDataType)(e,r);I0(e,r,!n,t)}o(k0,"typeAndKeywords");function wI(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,hn.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}o(wI,"checkRefsAndKeywords");function AI(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,hn.checkStrictMode)(e,"default is ignored in the schema root")}o(AI,"checkNoDefault");function II(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,vI.resolveUrl)(e.opts.uriResolver,e.baseId,t))}o(II,"updateContext");function CI(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}o(CI,"checkAsyncSchema");function q0({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)e.code((0,W._)`${oe.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let a=(0,W.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,W._)`${oe.default.self}.opts.$comment(${s}, ${a}, ${c}.schema)`)}}o(q0,"commentKeyword");function TI(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,W._)`${oe.default.errors} === 0`,()=>t.return(oe.default.data),()=>t.throw((0,W._)`new ${i}(${oe.default.vErrors})`)):(t.assign((0,W._)`${n}.errors`,oe.default.vErrors),s.unevaluated&&RI(e),t.return((0,W._)`${oe.default.errors} === 0`))}o(TI,"returnResults");function RI({gen:e,evaluated:t,props:r,items:n}){r instanceof W.Name&&e.assign((0,W._)`${t}.props`,r),n instanceof W.Name&&e.assign((0,W._)`${t}.items`,n)}o(RI,"assignEvaluated");function I0(e,t,r,n){let{gen:i,schema:s,data:a,allErrors:c,opts:u,self:l}=e,{RULES:p}=l;if(s.$ref&&(u.ignoreKeywordsWithRef||!(0,hn.schemaHasRulesButRef)(s,p))){i.block(()=>L0(e,"$ref",p.all.$ref.definition));return}u.jtd||NI(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,rd.shouldUseGroup)(s,d)&&(d.type?(i.if((0,ou.checkDataType)(d.type,a,u.strictNumbers)),C0(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,ou.reportTypeError)(e)),i.endIf()):C0(e,d),c||i.if((0,W._)`${oe.default.errors} === ${n||0}`))}o(f,"groupKeywords")}o(I0,"schemaKeywords");function C0(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,bI.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,rd.shouldUseRule)(n,s)&&L0(e,s.keyword,s.definition,t.type)})}o(C0,"iterateKeywords");function NI(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(jI(e,t),e.opts.allowUnionTypes||MI(e,t),kI(e,e.dataTypes))}o(NI,"checkStrictTypes");function jI(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{D0(e.dataTypes,r)||nd(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),DI(e,t)}}o(jI,"checkContextTypes");function MI(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&nd(e,"use allowUnionTypes to allow union type keyword")}o(MI,"checkMultipleTypes");function kI(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,rd.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>qI(t,a))&&nd(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}o(kI,"checkKeywordTypes");function qI(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}o(qI,"hasApplicableType");function D0(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}o(D0,"includesType");function DI(e,t){let r=[];for(let n of e.dataTypes)D0(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}o(DI,"narrowSchemaTypes");function nd(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,hn.checkStrictMode)(e,t,e.opts.strictTypes)}o(nd,"strictTypesError");var id=class id{constructor(t,r,n){if((0,Ks.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,hn.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",F0(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Ks.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",oe.default.errors))}result(t,r,n){this.failResult((0,W.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,W.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,W._)`${r} !== undefined && (${(0,W.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?Ws.reportExtraError:Ws.reportError)(this,this.def.error,r)}$dataError(){(0,Ws.reportError)(this,this.def.$dataError||Ws.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Ws.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=W.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=W.nil,r=W.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:a}=this;n.if((0,W.or)((0,W._)`${i} === undefined`,r)),t!==W.nil&&n.assign(t,!0),(s.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==W.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,W.or)(a(),c());function a(){if(n.length){if(!(r instanceof W.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,W._)`${(0,ou.checkDataTypes)(u,r,s.opts.strictNumbers,ou.DataType.Wrong)}`}return W.nil}function c(){if(i.validateSchema){let u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,W._)`!${u}(${r})`}return W.nil}}subschema(t,r){let n=(0,td.getSubschema)(this.it,t);(0,td.extendSubschemaData)(n,this.it,t),(0,td.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return xI(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=hn.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=hn.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,W.Name)),!0}};o(id,"KeywordCxt");var su=id;Dn.KeywordCxt=su;function L0(e,t,r,n){let i=new su(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Ks.funcKeywordCode)(i,r):"macro"in r?(0,Ks.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Ks.funcKeywordCode)(i,r)}o(L0,"keywordCode");var LI=/^\/(?:[^~]|~0|~1)*$/,FI=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function F0(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return oe.default.rootData;if(e[0]==="/"){if(!LI.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=oe.default.rootData}else{let l=FI.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(u("property/index",p));return n[t-p]}if(p>t)throw new Error(u("data",p));if(s=r[t-p],!i)return s}let a=s,c=i.split("/");for(let l of c)l&&(s=(0,W._)`${s}${(0,W.getProperty)((0,hn.unescapeJsonPointer)(l))}`,a=(0,W._)`${a} && ${s}`);return a;function u(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}o(F0,"getData");Dn.getData=F0});var au=v(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});var ad=class ad extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};o(ad,"ValidationError");var od=ad;sd.default=od});var Qs=v(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});var cd=Zs(),fd=class fd extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,cd.resolveUrl)(t,r,n),this.missingSchema=(0,cd.normalizeId)((0,cd.getFullPath)(t,this.missingRef))}};o(fd,"MissingRefError");var ud=fd;ld.default=ud});var Js=v(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.resolveSchema=mr.getCompilingSchema=mr.resolveRef=mr.compileSchema=mr.SchemaEnv=void 0;var Ar=ae(),HI=au(),Ri=dr(),Ir=Zs(),H0=he(),BI=Ys(),hd=class hd{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,Ir.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};o(hd,"SchemaEnv");var jo=hd;mr.SchemaEnv=jo;function dd(e){let t=B0.call(this,e);if(t)return t;let r=(0,Ir.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new Ar.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),c;e.$async&&(c=a.scopeValue("Error",{ref:HI.default,code:(0,Ar._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:Ri.default.data,parentData:Ri.default.parentData,parentDataProperty:Ri.default.parentDataProperty,dataNames:[Ri.default.data],dataPathArr:[Ar.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ar.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Ar.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ar._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,BI.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(Ri.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${Ri.default.self}`,`${Ri.default.scope}`,p)(this,this.scope.get());if(this.scope.value(u,{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:u,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:y,items:b}=l;h.evaluated={props:y instanceof Ar.Name?void 0:y,items:b instanceof Ar.Name?void 0:b,dynamicProps:y instanceof Ar.Name,dynamicItems:b instanceof Ar.Name},h.source&&(h.source.evaluated=(0,Ar.stringify)(h.evaluated))}return e.validate=h,e}catch(f){throw delete e.validate,delete e.validateName,p&&this.logger.error("Error compiling schema, function code:",p),f}finally{this._compilations.delete(e)}}o(dd,"compileSchema");mr.compileSchema=dd;function VI(e,t,r){var n;r=(0,Ir.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=zI.call(this,e,r);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;a&&(s=new jo({schema:a,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=UI.call(this,s)}o(VI,"resolveRef");mr.resolveRef=VI;function UI(e){return(0,Ir.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:dd.call(this,e)}o(UI,"inlineOrCompile");function B0(e){for(let t of this._compilations)if(GI(t,e))return t}o(B0,"getCompilingSchema");mr.getCompilingSchema=B0;function GI(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}o(GI,"sameSchemaEnv");function zI(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||cu.call(this,e,t)}o(zI,"resolve");function cu(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Ir._getFullPath)(this.opts.uriResolver,r),i=(0,Ir.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return pd.call(this,r,e);let s=(0,Ir.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let c=cu.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:pd.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||dd.call(this,a),s===(0,Ir.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,Ir.resolveUrl)(this.opts.uriResolver,i,l)),new jo({schema:c,schemaId:u,root:e,baseId:i})}return pd.call(this,r,a)}}o(cu,"resolveSchema");mr.resolveSchema=cu;var ZI=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function pd(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,H0.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!ZI.has(c)&&l&&(t=(0,Ir.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,H0.schemaHasRulesButRef)(r,this.RULES)){let c=(0,Ir.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=cu.call(this,n,c)}let{schemaId:a}=this.opts;if(s=s||new jo({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}o(pd,"getJsonPointer")});var V0=v((S7,WI)=>{WI.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 G0=v((E7,U0)=>{"use strict";var KI={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};U0.exports={HEX:KI}});var X0=v((O7,J0)=>{"use strict";var{HEX:YI}=G0();function K0(e){if(Q0(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:JI(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}o(K0,"normalizeIPv4");function md(e,t=!1){let r="",n=!0;for(let i of e){if(YI[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}o(md,"stringArrayToHexStripped");function QI(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,a=!1,c=!1;function u(){if(i.length){if(s===!1){let l=md(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}o(u,"consume");for(let l=0;l<e.length;l++){let p=e[l];if(!(p==="["||p==="]"))if(p===":"){if(a===!0&&(c=!0),!u())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(p==="%"){if(!u())break;s=!0}else{i.push(p);continue}}return i.length&&(s?r.zone=i.join(""):c?n.push(i.join("")):n.push(md(i))),r.address=n.join(""),r}o(QI,"getIPV6");function Y0(e,t={}){if(Q0(e,":")<2)return{host:e,isIPV6:!1};let r=QI(e);if(r.error)return{host:e,isIPV6:!1};{let n=r.address,i=r.address;return r.zone&&(n+="%"+r.zone,i+="%25"+r.zone),{host:n,escapedHost:i,isIPV6:!0}}}o(Y0,"normalizeIPv6");function JI(e,t){let r="",n=!0,i=e.length;for(let s=0;s<i;s++){let a=e[s];a==="0"&&n?(s+1<=i&&e[s+1]===t||s+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}o(JI,"stripLeadingZeros");function Q0(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}o(Q0,"findToken");var z0=/^\.\.?\//u,Z0=/^\/\.(?:\/|$)/u,W0=/^\/\.\.(?:\/|$)/u,XI=/^\/?(?:.|\n)*?(?=\/|$)/u;function eC(e){let t=[];for(;e.length;)if(e.match(z0))e=e.replace(z0,"");else if(e.match(Z0))e=e.replace(Z0,"/");else if(e.match(W0))e=e.replace(W0,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(XI);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}o(eC,"removeDotSegments");function tC(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}o(tC,"normalizeComponentEncoding");function rC(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=K0(n);if(i.isIPV4)n=i.host;else{let s=Y0(i.host,{isIPV4:!1});s.isIPV6===!0?n=`[${s.escapedHost}]`:n=e.host}r.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}o(rC,"recomposeAuthority");J0.exports={recomposeAuthority:rC,normalizeComponentEncoding:tC,removeDotSegments:eC,normalizeIPv4:K0,normalizeIPv6:Y0,stringArrayToHexStripped:md}});var ov=v((x7,iv)=>{"use strict";var nC=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,iC=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function ev(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}o(ev,"isSecure");function tv(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}o(tv,"httpParse");function rv(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}o(rv,"httpSerialize");function oC(e){return e.secure=ev(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}o(oC,"wsParse");function sC(e){if((e.port===(ev(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}o(sC,"wsSerialize");function aC(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(iC);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,s=gd[i];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}o(aC,"urnParse");function cC(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=gd[i];s&&(e=s.serialize(e,t));let a=e,c=e.nss;return a.path=`${n||t.nid}:${c}`,t.skipEscape=!0,a}o(cC,"urnSerialize");function uC(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!nC.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}o(uC,"urnuuidParse");function lC(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}o(lC,"urnuuidSerialize");var nv={scheme:"http",domainHost:!0,parse:tv,serialize:rv},fC={scheme:"https",domainHost:nv.domainHost,parse:tv,serialize:rv},uu={scheme:"ws",domainHost:!0,parse:oC,serialize:sC},pC={scheme:"wss",domainHost:uu.domainHost,parse:uu.parse,serialize:uu.serialize},dC={scheme:"urn",parse:aC,serialize:cC,skipNormalize:!0},hC={scheme:"urn:uuid",parse:uC,serialize:lC,skipNormalize:!0},gd={http:nv,https:fC,ws:uu,wss:pC,urn:dC,"urn:uuid":hC};iv.exports=gd});var av=v((w7,fu)=>{"use strict";var{normalizeIPv6:mC,normalizeIPv4:gC,removeDotSegments:Xs,recomposeAuthority:yC,normalizeComponentEncoding:lu}=X0(),yd=ov();function bC(e,t){return typeof e=="string"?e=Wr(mn(e,t),t):typeof e=="object"&&(e=mn(Wr(e,t),t)),e}o(bC,"normalize");function vC(e,t,r){let n=Object.assign({scheme:"null"},r),i=sv(mn(e,n),mn(t,n),n,!0);return Wr(i,{...n,skipEscape:!0})}o(vC,"resolve");function sv(e,t,r,n){let i={};return n||(e=mn(Wr(e,r),r),t=mn(Wr(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=Xs(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=Xs(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=Xs(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=Xs(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}o(sv,"resolveComponents");function _C(e,t,r){return typeof e=="string"?(e=unescape(e),e=Wr(lu(mn(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Wr(lu(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Wr(lu(mn(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Wr(lu(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}o(_C,"equal");function Wr(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],s=yd[(n.scheme||r.scheme||"").toLowerCase()];s&&s.serialize&&s.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&(i.push(r.scheme),i.push(":"));let a=yC(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let c=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(c=Xs(c)),a===void 0&&(c=c.replace(/^\/\//u,"/%2F")),i.push(c)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}o(Wr,"serialize");var SC=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function EC(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||SC[t])return!0;return!1}o(EC,"nonSimpleDomain");var OC=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function mn(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,s=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(OC);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=gC(n.host);if(u.isIPV4===!1){let l=mC(u.host,{isIPV4:!1});n.host=l.host.toLowerCase(),s=l.isIPV6}else n.host=u.host,s=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let c=yd[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&s===!1&&EC(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}(!c||c&&!c.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),c&&c.parse&&c.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}o(mn,"parse");var bd={SCHEMES:yd,normalize:bC,resolve:vC,resolveComponents:sv,equal:_C,serialize:Wr,parse:mn};fu.exports=bd;fu.exports.default=bd;fu.exports.fastUri=bd});var uv=v(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});var cv=av();cv.code='require("ajv/dist/runtime/uri").default';vd.default=cv});var ko=v(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.CodeGen=gt.Name=gt.nil=gt.stringify=gt.str=gt._=gt.KeywordCxt=void 0;var PC=Ys();Object.defineProperty(gt,"KeywordCxt",{enumerable:!0,get:o(function(){return PC.KeywordCxt},"get")});var Mo=ae();Object.defineProperty(gt,"_",{enumerable:!0,get:o(function(){return Mo._},"get")});Object.defineProperty(gt,"str",{enumerable:!0,get:o(function(){return Mo.str},"get")});Object.defineProperty(gt,"stringify",{enumerable:!0,get:o(function(){return Mo.stringify},"get")});Object.defineProperty(gt,"nil",{enumerable:!0,get:o(function(){return Mo.nil},"get")});Object.defineProperty(gt,"Name",{enumerable:!0,get:o(function(){return Mo.Name},"get")});Object.defineProperty(gt,"CodeGen",{enumerable:!0,get:o(function(){return Mo.CodeGen},"get")});var xC=au(),hv=Qs(),$C=Gp(),ea=Js(),wC=ae(),ta=Zs(),pu=zs(),Sd=he(),lv=V0(),AC=uv(),mv=o((e,t)=>new RegExp(e,t),"defaultRegExp");mv.code="new RegExp";var IC=["removeAdditional","useDefaults","coerceTypes"],CC=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),TC={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."},RC={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},fv=200;function NC(e){var t,r,n,i,s,a,c,u,l,p,f,d,h,y,b,g,P,$,C,T,A,te,J,Ee,Ae;let re=e.strict,M=(t=e.code)===null||t===void 0?void 0:t.optimize,R=M===!0||M===void 0?1:M||0,q=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:mv,Y=(i=e.uriResolver)!==null&&i!==void 0?i:AC.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:re)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:re)!==null&&u!==void 0?u:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:re)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:re)!==null&&d!==void 0?d:"log",strictRequired:(y=(h=e.strictRequired)!==null&&h!==void 0?h:re)!==null&&y!==void 0?y:!1,code:e.code?{...e.code,optimize:R,regExp:q}:{optimize:R,regExp:q},loopRequired:(b=e.loopRequired)!==null&&b!==void 0?b:fv,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:fv,meta:(P=e.meta)!==null&&P!==void 0?P:!0,messages:($=e.messages)!==null&&$!==void 0?$:!0,inlineRefs:(C=e.inlineRefs)!==null&&C!==void 0?C:!0,schemaId:(T=e.schemaId)!==null&&T!==void 0?T:"$id",addUsedSchema:(A=e.addUsedSchema)!==null&&A!==void 0?A:!0,validateSchema:(te=e.validateSchema)!==null&&te!==void 0?te:!0,validateFormats:(J=e.validateFormats)!==null&&J!==void 0?J:!0,unicodeRegExp:(Ee=e.unicodeRegExp)!==null&&Ee!==void 0?Ee:!0,int32range:(Ae=e.int32range)!==null&&Ae!==void 0?Ae:!0,uriResolver:Y}}o(NC,"requiredOptions");var Ed=class Ed{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...NC(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new wC.ValueScope({scope:{},prefixes:CC,es5:r,lines:n}),this.logger=LC(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,$C.getRules)(),pv.call(this,TC,t,"NOT SUPPORTED"),pv.call(this,RC,t,"DEPRECATED","warn"),this._metaOpts=qC.call(this),t.formats&&MC.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&kC.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),jC.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=lv;n==="id"&&(i={...lv},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(p,f){await s.call(this,p.$schema);let d=this._addSchema(p,f);return d.validate||a.call(this,d)}async function s(p){p&&!this.getSchema(p)&&await i.call(this,{$ref:p},!0)}async function a(p){try{return this._compileSchemaEnv(p)}catch(f){if(!(f instanceof hv.default))throw f;return c.call(this,f),await u.call(this,f.missingSchema),a.call(this,p)}}function c({missingSchema:p,missingRef:f}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${f} cannot be resolved`)}async function u(p){let f=await l.call(this,p);this.refs[p]||await s.call(this,f.$schema),this.refs[p]||this.addSchema(f,p,r)}async function l(p){let f=this._loading[p];if(f)return f;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let s;if(typeof t=="object"){let{schemaId:a}=this.opts;if(s=t[a],s!==void 0&&typeof s!="string")throw new Error(`schema ${a} must be string`)}return r=(0,ta.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return i}getSchema(t){let r;for(;typeof(r=dv.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new ea.SchemaEnv({schema:{},schemaId:n});if(r=ea.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=dv.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,ta.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(HC.call(this,n,r),!r)return(0,Sd.eachItem)(n,s=>_d.call(this,s)),this;VC.call(this,r);let i={...r,type:(0,pu.getJSONTypes)(r.type),schemaType:(0,pu.getJSONTypes)(r.schemaType)};return(0,Sd.eachItem)(n,i.type.length===0?s=>_d.call(this,s,i):s=>i.type.forEach(a=>_d.call(this,s,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(s=>s.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,s)=>i+r+s)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let s=i.split("/").slice(1),a=t;for(let c of s)a=a[c];for(let c in n){let u=n[c];if(typeof u!="object")continue;let{$data:l}=u.definition,p=a[c];l&&p&&(a[c]=gv(p))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,s=this.opts.addUsedSchema){let a,{schemaId: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,ta.normalizeId)(a||n);let l=ta.getSchemaRefs.call(this,t,n);return u=new ea.SchemaEnv({schema:t,schemaId:c,meta:r,baseId:n,localRefs:l}),this._cache.set(u.schema,u),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),i&&this.validateSchema(t,!0),u}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):ea.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{ea.compileSchema.call(this,t)}finally{this.opts=r}}};o(Ed,"Ajv");var ra=Ed;ra.ValidationError=xC.default;ra.MissingRefError=hv.default;gt.default=ra;function pv(e,t,r,n="error"){for(let i in e){let s=i;s in t&&this.logger[n](`${r}: option ${i}. ${e[s]}`)}}o(pv,"checkOptions");function dv(e){return e=(0,ta.normalizeId)(e),this.schemas[e]||this.refs[e]}o(dv,"getSchEnv");function jC(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}o(jC,"addInitialSchemas");function MC(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}o(MC,"addInitialFormats");function kC(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}o(kC,"addInitialKeywords");function qC(){let e={...this.opts};for(let t of IC)delete e[t];return e}o(qC,"getMetaSchemaOptions");var DC={log(){},warn(){},error(){}};function LC(e){if(e===!1)return DC;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}o(LC,"getLogger");var FC=/^[a-z_$][a-z0-9_$:-]*$/i;function HC(e,t){let{RULES:r}=this;if((0,Sd.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!FC.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}o(HC,"checkKeyword");function _d(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,a=i?s.post:s.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},s.rules.push(a)),s.keywords[e]=!0,!t)return;let c={keyword:e,definition:{...t,type:(0,pu.getJSONTypes)(t.type),schemaType:(0,pu.getJSONTypes)(t.schemaType)}};t.before?BC.call(this,a,c,t.before):a.rules.push(c),s.all[e]=c,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}o(_d,"addRule");function BC(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}o(BC,"addBeforeRule");function VC(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=gv(t)),e.validateSchema=this.compile(t,!0))}o(VC,"keywordMetaschema");var UC={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function gv(e){return{anyOf:[e,UC]}}o(gv,"schemaOrData")});var na=v(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.callRef=Ni.getValidate=void 0;var GC=Qs(),yv=hr(),Vt=ae(),qo=dr(),bv=Js(),du=he(),zC={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:a,opts:c,self:u}=n,{root:l}=s;if((r==="#"||r==="#/")&&i===l.baseId)return f();let p=bv.resolveRef.call(u,l,i,r);if(p===void 0)throw new GC.default(n.opts.uriResolver,i,r);if(p instanceof bv.SchemaEnv)return d(p);return h(p);function f(){if(s===l)return hu(e,a,s,s.$async);let y=t.scopeValue("root",{ref:l});return hu(e,(0,Vt._)`${y}.validate`,l,l.$async)}function d(y){let b=vv(e,y);hu(e,b,y,y.$async)}function h(y){let b=t.scopeValue("schema",c.code.source===!0?{ref:y,code:(0,Vt.stringify)(y)}:{ref:y}),g=t.name("valid"),P=e.subschema({schema:y,dataTypes:[],schemaPath:Vt.nil,topSchemaRef:b,errSchemaPath:r},g);e.mergeEvaluated(P),e.ok(g)}}};function vv(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Vt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}o(vv,"getValidate");Ni.getValidate=vv;function hu(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:c,opts:u}=s,l=u.passContext?qo.default.this:Vt.nil;n?p():f();function p(){if(!c.$async)throw new Error("async schema referenced by sync schema");let y=i.let("valid");i.try(()=>{i.code((0,Vt._)`await ${(0,yv.callValidateCode)(e,t,l)}`),h(t),a||i.assign(y,!0)},b=>{i.if((0,Vt._)`!(${b} instanceof ${s.ValidationError})`,()=>i.throw(b)),d(b),a||i.assign(y,!1)}),e.ok(y)}o(p,"callAsyncRef");function f(){e.result((0,yv.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}o(f,"callSyncRef");function d(y){let b=(0,Vt._)`${y}.errors`;i.assign(qo.default.vErrors,(0,Vt._)`${qo.default.vErrors} === null ? ${b} : ${qo.default.vErrors}.concat(${b})`),i.assign(qo.default.errors,(0,Vt._)`${qo.default.vErrors}.length`)}o(d,"addErrorsFrom");function h(y){var b;if(!s.opts.unevaluated)return;let g=(b=r==null?void 0:r.validate)===null||b===void 0?void 0:b.evaluated;if(s.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(s.props=du.mergeEvaluated.props(i,g.props,s.props));else{let P=i.var("props",(0,Vt._)`${y}.evaluated.props`);s.props=du.mergeEvaluated.props(i,P,s.props,Vt.Name)}if(s.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(s.items=du.mergeEvaluated.items(i,g.items,s.items));else{let P=i.var("items",(0,Vt._)`${y}.evaluated.items`);s.items=du.mergeEvaluated.items(i,P,s.items,Vt.Name)}}o(h,"addEvaluatedFrom")}o(hu,"callRef");Ni.callRef=hu;Ni.default=zC});var _v=v(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});var ZC=na(),WC=["$schema","id","$defs",{keyword:"$comment"},"definitions",ZC.default];Od.default=WC});var Sv=v(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});var Pd=ko(),KC=ae(),Ln=KC.operators,xd={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:Ln.LTE,fail:Ln.GT},{okStr:"<",ok:Ln.LT,fail:Ln.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:Ln.GTE,fail:Ln.LT},{okStr:">",ok:Ln.GT,fail:Ln.LTE}]}},YC={message:o(e=>Pd.str`must be ${$d(e).okStr} ${e.schemaCode}`,"message"),params:o(e=>Pd._`{comparison: ${$d(e).okStr}, limit: ${e.schemaCode}}`,"params")},QC={keyword:Object.keys(xd),type:"number",schemaType:"number",$data:!0,error:YC,code(e){let{data:t,schemaCode:r}=e;e.fail$data(Pd._`${t} ${$d(e).fail} ${r} || isNaN(${t})`)}};function $d(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[xd[r].exclusive]?1:0;return xd[r].ops[n]}o($d,"kwdOp");wd.default=QC});var Ov=v(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});var Ev={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},JC={keyword:Object.keys(Ev),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=Ev[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};Ad.default=JC});var Cd=v(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});var ia=ae(),XC={message:o(({schemaCode:e})=>(0,ia.str)`must be multiple of ${e}`,"message"),params:o(({schemaCode:e})=>(0,ia._)`{multipleOf: ${e}}`,"params")},eT={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:XC,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),c=s?(0,ia._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,ia._)`${a} !== parseInt(${a})`;e.fail$data((0,ia._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};Id.default=eT});var xv=v(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});function Pv(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}o(Pv,"ucs2length");Td.default=Pv;Pv.code='require("ajv/dist/runtime/ucs2length").default'});var Nd=v(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});var ji=ae(),tT=he(),rT=xv(),nT={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,ji.str)`must NOT have ${r} than ${t} characters`},params:o(({schemaCode:e})=>(0,ji._)`{limit: ${e}}`,"params")},iT={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:nT,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?ji.operators.GT:ji.operators.LT,a=i.opts.unicode===!1?(0,ji._)`${r}.length`:(0,ji._)`${(0,tT.useFunc)(e.gen,rT.default)}(${r})`;e.fail$data((0,ji._)`${a} ${s} ${n}`)}};Rd.default=iT});var Md=v(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});var oT=hr(),mu=ae(),sT={message:o(({schemaCode:e})=>(0,mu.str)`must match pattern "${e}"`,"message"),params:o(({schemaCode:e})=>(0,mu._)`{pattern: ${e}}`,"params")},aT={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:sT,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",c=r?(0,mu._)`(new RegExp(${i}, ${a}))`:(0,oT.usePattern)(e,n);e.fail$data((0,mu._)`!${c}.test(${t})`)}};jd.default=aT});var qd=v(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});var oa=ae(),cT={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,oa.str)`must NOT have ${r} than ${t} properties`},params:o(({schemaCode:e})=>(0,oa._)`{limit: ${e}}`,"params")},uT={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:cT,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?oa.operators.GT:oa.operators.LT;e.fail$data((0,oa._)`Object.keys(${r}).length ${i} ${n}`)}};kd.default=uT});var Ld=v(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});var sa=hr(),aa=ae(),lT=he(),fT={message:o(({params:{missingProperty:e}})=>(0,aa.str)`must have required property '${e}'`,"message"),params:o(({params:{missingProperty:e}})=>(0,aa._)`{missingProperty: ${e}}`,"params")},pT={keyword:"required",type:"object",schemaType:"array",$data:!0,error:fT,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:a}=e,{opts:c}=a;if(!s&&r.length===0)return;let u=r.length>=c.loopRequired;if(a.allErrors?l():p(),c.strictRequired){let h=e.parentSchema.properties,{definedProperties:y}=e.it;for(let b of r)if((h==null?void 0:h[b])===void 0&&!y.has(b)){let g=a.schemaEnv.baseId+a.errSchemaPath,P=`required property "${b}" is not defined at "${g}" (strictRequired)`;(0,lT.checkStrictMode)(a,P,a.opts.strictRequired)}}function l(){if(u||s)e.block$data(aa.nil,f);else for(let h of r)(0,sa.checkReportMissingProp)(e,h)}o(l,"allErrorsMode");function p(){let h=t.let("missing");if(u||s){let y=t.let("valid",!0);e.block$data(y,()=>d(h,y)),e.ok(y)}else t.if((0,sa.checkMissingProp)(e,r,h)),(0,sa.reportMissingProp)(e,h),t.else()}o(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,sa.noPropertyInData)(t,i,h,c.ownProperties),()=>e.error())})}o(f,"loopAllRequired");function d(h,y){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(y,(0,sa.propertyInData)(t,i,h,c.ownProperties)),t.if((0,aa.not)(y),()=>{e.error(),t.break()})},aa.nil)}o(d,"loopUntilMissing")}};Dd.default=pT});var Hd=v(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});var ca=ae(),dT={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,ca.str)`must NOT have ${r} than ${t} items`},params:o(({schemaCode:e})=>(0,ca._)`{limit: ${e}}`,"params")},hT={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:dT,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?ca.operators.GT:ca.operators.LT;e.fail$data((0,ca._)`${r}.length ${i} ${n}`)}};Fd.default=hT});var gu=v(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});var $v=Xp();$v.code='require("ajv/dist/runtime/equal").default';Bd.default=$v});var Gd=v(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});var Vd=zs(),yt=ae(),mT=he(),gT=gu(),yT={message:o(({params:{i:e,j:t}})=>(0,yt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:o(({params:{i:e,j:t}})=>(0,yt._)`{i: ${e}, j: ${t}}`,"params")},bT={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:yT,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:a,it:c}=e;if(!n&&!i)return;let u=t.let("valid"),l=s.items?(0,Vd.getSchemaTypes)(s.items):[];e.block$data(u,p,(0,yt._)`${a} === false`),e.ok(u);function p(){let y=t.let("i",(0,yt._)`${r}.length`),b=t.let("j");e.setParams({i:y,j:b}),t.assign(u,!0),t.if((0,yt._)`${y} > 1`,()=>(f()?d:h)(y,b))}o(p,"validateUniqueItems");function f(){return l.length>0&&!l.some(y=>y==="object"||y==="array")}o(f,"canOptimize");function d(y,b){let g=t.name("item"),P=(0,Vd.checkDataTypes)(l,g,c.opts.strictNumbers,Vd.DataType.Wrong),$=t.const("indices",(0,yt._)`{}`);t.for((0,yt._)`;${y}--;`,()=>{t.let(g,(0,yt._)`${r}[${y}]`),t.if(P,(0,yt._)`continue`),l.length>1&&t.if((0,yt._)`typeof ${g} == "string"`,(0,yt._)`${g} += "_"`),t.if((0,yt._)`typeof ${$}[${g}] == "number"`,()=>{t.assign(b,(0,yt._)`${$}[${g}]`),e.error(),t.assign(u,!1).break()}).code((0,yt._)`${$}[${g}] = ${y}`)})}o(d,"loopN");function h(y,b){let g=(0,mT.useFunc)(t,gT.default),P=t.name("outer");t.label(P).for((0,yt._)`;${y}--;`,()=>t.for((0,yt._)`${b} = ${y}; ${b}--;`,()=>t.if((0,yt._)`${g}(${r}[${y}], ${r}[${b}])`,()=>{e.error(),t.assign(u,!1).break(P)})))}o(h,"loopN2")}};Ud.default=bT});var Wd=v(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});var zd=ae(),vT=he(),_T=gu(),ST={message:"must be equal to constant",params:o(({schemaCode:e})=>(0,zd._)`{allowedValue: ${e}}`,"params")},ET={keyword:"const",$data:!0,error:ST,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,zd._)`!${(0,vT.useFunc)(t,_T.default)}(${r}, ${i})`):e.fail((0,zd._)`${s} !== ${r}`)}};Zd.default=ET});var Yd=v(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});var ua=ae(),OT=he(),PT=gu(),xT={message:"must be equal to one of the allowed values",params:o(({schemaCode:e})=>(0,ua._)`{allowedValues: ${e}}`,"params")},$T={keyword:"enum",schemaType:"array",$data:!0,error:xT,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:s,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let c=i.length>=a.opts.loopEnum,u,l=o(()=>u??(u=(0,OT.useFunc)(t,PT.default)),"getEql"),p;if(c||n)p=t.let("valid"),e.block$data(p,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let h=t.const("vSchema",s);p=(0,ua.or)(...i.map((y,b)=>d(h,b)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",s,h=>t.if((0,ua._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}o(f,"loopEnum");function d(h,y){let b=i[y];return typeof b=="object"&&b!==null?(0,ua._)`${l()}(${r}, ${h}[${y}])`:(0,ua._)`${r} === ${b}`}o(d,"equalCode")}};Kd.default=$T});var wv=v(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});var wT=Sv(),AT=Ov(),IT=Cd(),CT=Nd(),TT=Md(),RT=qd(),NT=Ld(),jT=Hd(),MT=Gd(),kT=Wd(),qT=Yd(),DT=[wT.default,AT.default,IT.default,CT.default,TT.default,RT.default,NT.default,jT.default,MT.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},kT.default,qT.default];Qd.default=DT});var Xd=v(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.validateAdditionalItems=void 0;var Mi=ae(),Jd=he(),LT={message:o(({params:{len:e}})=>(0,Mi.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Mi._)`{limit: ${e}}`,"params")},FT={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:LT,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Jd.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Av(e,n)}};function Av(e,t){let{gen:r,schema:n,data:i,keyword:s,it:a}=e;a.items=!0;let c=r.const("len",(0,Mi._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Mi._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,Jd.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,Mi._)`${c} <= ${t.length}`);r.if((0,Mi.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,c,p=>{e.subschema({keyword:s,dataProp:p,dataPropType:Jd.Type.Num},l),a.allErrors||r.if((0,Mi.not)(l),()=>r.break())})}o(u,"validateItems")}o(Av,"validateAdditionalItems");la.validateAdditionalItems=Av;la.default=FT});var eh=v(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.validateTuple=void 0;var Iv=ae(),yu=he(),HT=hr(),BT={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return Cv(e,"additionalItems",t);r.items=!0,!(0,yu.alwaysValidSchema)(r,t)&&e.ok((0,HT.validateArray)(e))}};function Cv(e,t,r=e.schema){let{gen:n,parentSchema:i,data:s,keyword:a,it:c}=e;p(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=yu.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,Iv._)`${s}.length`);r.forEach((f,d)=>{(0,yu.alwaysValidSchema)(c,f)||(n.if((0,Iv._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},u)),e.ok(u))});function p(f){let{opts:d,errSchemaPath:h}=c,y=r.length,b=y===f.minItems&&(y===f.maxItems||f[t]===!1);if(d.strictTuples&&!b){let g=`"${a}" is ${y}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,yu.checkStrictMode)(c,g,d.strictTuples)}}o(p,"checkStrictTuple")}o(Cv,"validateTuple");fa.validateTuple=Cv;fa.default=BT});var Tv=v(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});var VT=eh(),UT={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o(e=>(0,VT.validateTuple)(e,"items"),"code")};th.default=UT});var Nv=v(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});var Rv=ae(),GT=he(),zT=hr(),ZT=Xd(),WT={message:o(({params:{len:e}})=>(0,Rv.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Rv._)`{limit: ${e}}`,"params")},KT={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:WT,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,GT.alwaysValidSchema)(n,t)&&(i?(0,ZT.validateAdditionalItems)(e,i):e.ok((0,zT.validateArray)(e)))}};rh.default=KT});var jv=v(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});var gr=ae(),bu=he(),YT={message:o(({params:{min:e,max:t}})=>t===void 0?(0,gr.str)`must contain at least ${e} valid item(s)`:(0,gr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:o(({params:{min:e,max:t}})=>t===void 0?(0,gr._)`{minContains: ${e}}`:(0,gr._)`{minContains: ${e}, maxContains: ${t}}`,"params")},QT={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:YT,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e,a,c,{minContains:u,maxContains:l}=n;s.opts.next?(a=u===void 0?1:u,c=l):a=1;let p=t.const("len",(0,gr._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,bu.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,bu.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,bu.alwaysValidSchema)(s,r)){let b=(0,gr._)`${p} >= ${a}`;c!==void 0&&(b=(0,gr._)`${b} && ${p} <= ${c}`),e.pass(b);return}s.items=!0;let f=t.name("valid");c===void 0&&a===1?h(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),c!==void 0&&t.if((0,gr._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let b=t.name("_valid"),g=t.let("count",0);h(b,()=>t.if(b,()=>y(g)))}o(d,"validateItemsWithCount");function h(b,g){t.forRange("i",0,p,P=>{e.subschema({keyword:"contains",dataProp:P,dataPropType:bu.Type.Num,compositeRule:!0},b),g()})}o(h,"validateItems");function y(b){t.code((0,gr._)`${b}++`),c===void 0?t.if((0,gr._)`${b} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,gr._)`${b} > ${c}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,gr._)`${b} >= ${a}`,()=>t.assign(f,!0)))}o(y,"checkLimits")}};nh.default=QT});var vu=v(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.validateSchemaDeps=Kr.validatePropertyDeps=Kr.error=void 0;var ih=ae(),JT=he(),pa=hr();Kr.error={message:o(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,ih.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:o(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,ih._)`{property: ${e},
11
11
  missingProperty: ${n},
12
12
  depsCount: ${t},
13
- deps: ${r}}`,"params")};var UT={keyword:"dependencies",type:"object",schemaType:"object",error:Zr.error,code(e){let[t,r]=GT(e);Av(e,t),Iv(e,r)}};function GT({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}o(GT,"splitDependencies");function Av(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let a in t){let c=t[a];if(c.length===0)continue;let u=(0,la.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:c.length,deps:c.join(", ")}),i.allErrors?r.if(u,()=>{for(let l of c)(0,la.checkReportMissingProp)(e,l)}):(r.if((0,Yd._)`${u} && (${(0,la.checkMissingProp)(e,c,s)})`),(0,la.reportMissingProp)(e,s),r.else())}}o(Av,"validatePropertyDeps");Zr.validatePropertyDeps=Av;function Iv(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let c in t)(0,VT.alwaysValidSchema)(s,t[c])||(r.if((0,la.propertyInData)(r,n,c,s.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:c},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}o(Iv,"validateSchemaDeps");Zr.validateSchemaDeps=Iv;Zr.default=UT});var Tv=v(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});var Cv=ae(),zT=he(),ZT={message:"property name must be valid",params:o(({params:e})=>(0,Cv._)`{propertyName: ${e.propertyName}}`,"params")},WT={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:ZT,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,zT.alwaysValidSchema)(i,r))return;let s=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},s),t.if((0,Cv.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};Qd.default=WT});var Xd=v(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});var gu=pr(),Ar=ae(),KT=fr(),yu=he(),YT={message:"must NOT have additional properties",params:o(({params:e})=>(0,Ar._)`{additionalProperty: ${e.additionalProperty}}`,"params")},QT={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:YT,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:s,it:a}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:c,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,yu.alwaysValidSchema)(a,r))return;let l=(0,gu.allSchemaProperties)(n.properties),p=(0,gu.allSchemaProperties)(n.patternProperties);f(),e.ok((0,Ar._)`${s} === ${KT.default.errors}`);function f(){t.forIn("key",i,g=>{!l.length&&!p.length?y(g):t.if(d(g),()=>y(g))})}o(f,"checkAdditionalProperties");function d(g){let P;if(l.length>8){let $=(0,yu.schemaRefOrVal)(a,n.properties,"properties");P=(0,gu.isOwnProperty)(t,$,g)}else l.length?P=(0,Ar.or)(...l.map($=>(0,Ar._)`${g} === ${$}`)):P=Ar.nil;return p.length&&(P=(0,Ar.or)(P,...p.map($=>(0,Ar._)`${(0,gu.usePattern)(e,$)}.test(${g})`))),(0,Ar.not)(P)}o(d,"isAdditional");function h(g){t.code((0,Ar._)`delete ${i}[${g}]`)}o(h,"deleteAdditional");function y(g){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){h(g);return}if(r===!1){e.setParams({additionalProperty:g}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,yu.alwaysValidSchema)(a,r)){let P=t.name("valid");u.removeAdditional==="failing"?(b(g,P,!1),t.if((0,Ar.not)(P),()=>{e.reset(),h(g)})):(b(g,P),c||t.if((0,Ar.not)(P),()=>t.break()))}}o(y,"additionalPropertyCode");function b(g,P,$){let C={keyword:"additionalProperties",dataProp:g,dataPropType:yu.Type.Str};$===!1&&Object.assign(C,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(C,P)}o(b,"applyAdditionalSchema")}};Jd.default=QT});var jv=v(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});var JT=Ws(),Rv=pr(),eh=he(),Nv=Xd(),XT={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Nv.default.code(new JT.KeywordCxt(s,Nv.default,"additionalProperties"));let a=(0,Rv.allSchemaProperties)(r);for(let f of a)s.definedProperties.add(f);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=eh.mergeEvaluated.props(t,(0,eh.toHash)(a),s.props));let c=a.filter(f=>!(0,eh.alwaysValidSchema)(s,r[f]));if(c.length===0)return;let u=t.name("valid");for(let f of c)l(f)?p(f):(t.if((0,Rv.propertyInData)(t,i,f,s.opts.ownProperties)),p(f),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(u);function l(f){return s.opts.useDefaults&&!s.compositeRule&&r[f].default!==void 0}o(l,"hasDefault");function p(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},u)}o(p,"applyPropertySchema")}};th.default=XT});var Dv=v(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});var Mv=pr(),bu=ae(),kv=he(),qv=he(),eR={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:a}=s,c=(0,Mv.allSchemaProperties)(r),u=c.filter(b=>(0,kv.alwaysValidSchema)(s,r[b]));if(c.length===0||u.length===c.length&&(!s.opts.unevaluated||s.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,p=t.name("valid");s.props!==!0&&!(s.props instanceof bu.Name)&&(s.props=(0,qv.evaluatedPropsToName)(t,s.props));let{props:f}=s;d();function d(){for(let b of c)l&&h(b),s.allErrors?y(b):(t.var(p,!0),y(b),t.if(p))}o(d,"validatePatternProperties");function h(b){for(let g in l)new RegExp(b).test(g)&&(0,kv.checkStrictMode)(s,`property ${g} matches pattern ${b} (use allowMatchingProperties)`)}o(h,"checkMatchingProperties");function y(b){t.forIn("key",n,g=>{t.if((0,bu._)`${(0,Mv.usePattern)(e,b)}.test(${g})`,()=>{let P=u.includes(b);P||e.subschema({keyword:"patternProperties",schemaProp:b,dataProp:g,dataPropType:qv.Type.Str},p),s.opts.unevaluated&&f!==!0?t.assign((0,bu._)`${f}[${g}]`,!0):!P&&!s.allErrors&&t.if((0,bu.not)(p),()=>t.break())})})}o(y,"validateProperties")}};rh.default=eR});var Lv=v(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});var tR=he(),rR={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,tR.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"}};nh.default=rR});var Fv=v(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});var nR=pr(),iR={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:nR.validateUnion,error:{message:"must match a schema in anyOf"}};ih.default=iR});var Hv=v(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});var vu=ae(),oR=he(),sR={message:"must match exactly one schema in oneOf",params:o(({params:e})=>(0,vu._)`{passingSchemas: ${e.passing}}`,"params")},aR={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:sR,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let s=r,a=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){s.forEach((p,f)=>{let d;(0,oR.alwaysValidSchema)(i,p)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},u),f>0&&t.if((0,vu._)`${u} && ${a}`).assign(a,!1).assign(c,(0,vu._)`[${c}, ${f}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,f),d&&e.mergeEvaluated(d,vu.Name)})})}o(l,"validateOneOf")}};oh.default=aR});var Bv=v(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});var cR=he(),uR={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((s,a)=>{if((0,cR.alwaysValidSchema)(n,s))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};sh.default=uR});var Gv=v(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});var _u=ae(),Uv=he(),lR={message:o(({params:e})=>(0,_u.str)`must match "${e.ifClause}" schema`,"message"),params:o(({params:e})=>(0,_u._)`{failingKeyword: ${e.ifClause}}`,"params")},fR={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:lR,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,Uv.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=Vv(n,"then"),s=Vv(n,"else");if(!i&&!s)return;let a=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&s){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(c,l("then",p),l("else",p))}else i?t.if(c,l("then")):t.if((0,_u.not)(c),l("else"));e.pass(a,()=>e.error(!0));function u(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(p)}o(u,"validateIf");function l(p,f){return()=>{let d=e.subschema({keyword:p},c);t.assign(a,c),e.mergeValidEvaluated(d,a),f?t.assign(f,(0,_u._)`${p}`):e.setParams({ifClause:p})}}o(l,"validateClause")}};function Vv(e,t){let r=e.schema[t];return r!==void 0&&!(0,Uv.alwaysValidSchema)(e,r)}o(Vv,"hasSchema");ah.default=fR});var zv=v(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});var pR=he(),dR={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,pR.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};ch.default=dR});var lh=v(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});var hR=Gd(),mR=Pv(),gR=zd(),yR=$v(),bR=wv(),vR=mu(),_R=Tv(),SR=Xd(),ER=jv(),OR=Dv(),PR=Lv(),xR=Fv(),$R=Hv(),wR=Bv(),AR=Gv(),IR=zv();function CR(e=!1){let t=[PR.default,xR.default,$R.default,wR.default,AR.default,IR.default,_R.default,SR.default,vR.default,ER.default,OR.default];return e?t.push(mR.default,yR.default):t.push(hR.default,gR.default),t.push(bR.default),t}o(CR,"getApplicator");uh.default=CR});var Zv=v(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});var rt=ae(),TR={message:o(({schemaCode:e})=>(0,rt.str)`must match format "${e}"`,"message"),params:o(({schemaCode:e})=>(0,rt._)`{format: ${e}}`,"params")},RR={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:TR,code(e,t){let{gen:r,data:n,$data:i,schema:s,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:l,schemaEnv:p,self:f}=c;if(!u.validateFormats)return;i?d():h();function d(){let y=r.scopeValue("formats",{ref:f.formats,code:u.code.formats}),b=r.const("fDef",(0,rt._)`${y}[${a}]`),g=r.let("fType"),P=r.let("format");r.if((0,rt._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>r.assign(g,(0,rt._)`${b}.type || "string"`).assign(P,(0,rt._)`${b}.validate`),()=>r.assign(g,(0,rt._)`"string"`).assign(P,b)),e.fail$data((0,rt.or)($(),C()));function $(){return u.strictSchema===!1?rt.nil:(0,rt._)`${a} && !${P}`}o($,"unknownFmt");function C(){let T=p.$async?(0,rt._)`(${b}.async ? await ${P}(${n}) : ${P}(${n}))`:(0,rt._)`${P}(${n})`,A=(0,rt._)`(typeof ${P} == "function" ? ${T} : ${P}.test(${n}))`;return(0,rt._)`${P} && ${P} !== true && ${g} === ${t} && !${A}`}o(C,"invalidFmt")}o(d,"validate$DataFormat");function h(){let y=f.formats[s];if(!y){$();return}if(y===!0)return;let[b,g,P]=C(y);b===t&&e.pass(T());function $(){if(u.strictSchema===!1){f.logger.warn(A());return}throw new Error(A());function A(){return`unknown format "${s}" ignored in schema at path "${l}"`}}o($,"unknownFormat");function C(A){let K=A instanceof RegExp?(0,rt.regexpCode)(A):u.code.formats?(0,rt._)`${u.code.formats}${(0,rt.getProperty)(s)}`:void 0,X=r.scopeValue("formats",{key:s,ref:A,code:K});return typeof A=="object"&&!(A instanceof RegExp)?[A.type||"string",A.validate,(0,rt._)`${X}.validate`]:["string",A,X]}o(C,"getFormat");function T(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!p.$async)throw new Error("async format in sync schema");return(0,rt._)`await ${P}(${n})`}return typeof g=="function"?(0,rt._)`${P}(${n})`:(0,rt._)`${P}.test(${n})`}o(T,"validCondition")}o(h,"validateFormat")}};fh.default=RR});var dh=v(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});var NR=Zv(),jR=[NR.default];ph.default=jR});var Wv=v(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});var MR=dv(),kR=_v(),qR=lh(),DR=dh(),LR=["title","description","default"],FR=[MR.default,kR.default,qR.default(),DR.default,LR];hh.default=FR});var Yv=v(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.DiscrError=void 0;var Kv;(function(e){e.Tag="tag",e.Mapping="mapping"})(Kv||(Su.DiscrError=Kv={}))});var yh=v(gh=>{"use strict";Object.defineProperty(gh,"__esModule",{value:!0});var jo=ae(),mh=Yv(),Qv=Ys(),HR=Ks(),BR=he(),VR={message:o(({params:{discrError:e,tagName:t}})=>e===mh.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:o(({params:{discrError:e,tag:t,tagName:r}})=>(0,jo._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},UR={keyword:"discriminator",type:"object",schemaType:"object",error:VR,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:s}=e,{oneOf:a}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let c=n.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=t.let("valid",!1),l=t.const("tag",(0,jo._)`${r}${(0,jo.getProperty)(c)}`);t.if((0,jo._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:mh.DiscrError.Tag,tag:l,tagName:c})),e.ok(u);function p(){let h=d();t.if(!1);for(let y in h)t.elseIf((0,jo._)`${l} === ${y}`),t.assign(u,f(h[y]));t.else(),e.error(!1,{discrError:mh.DiscrError.Mapping,tag:l,tagName:c}),t.endIf()}o(p,"validateMapping");function f(h){let y=t.name("valid"),b=e.subschema({keyword:"oneOf",schemaProp:h},y);return e.mergeEvaluated(b,jo.Name),y}o(f,"applyTagSchema");function d(){var h;let y={},b=P(i),g=!0;for(let T=0;T<a.length;T++){let A=a[T];if(A!=null&&A.$ref&&!(0,BR.schemaHasRulesButRef)(A,s.self.RULES)){let X=A.$ref;if(A=Qv.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,X),A instanceof Qv.SchemaEnv&&(A=A.schema),A===void 0)throw new HR.default(s.opts.uriResolver,s.baseId,X)}let K=(h=A==null?void 0:A.properties)===null||h===void 0?void 0:h[c];if(typeof K!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);g=g&&(b||P(A)),$(K,T)}if(!g)throw new Error(`discriminator: "${c}" must be required`);return y;function P({required:T}){return Array.isArray(T)&&T.includes(c)}function $(T,A){if(T.const)C(T.const,A);else if(T.enum)for(let K of T.enum)C(K,A);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function C(T,A){if(typeof T!="string"||T in y)throw new Error(`discriminator: "${c}" values must be unique strings`);y[T]=A}}o(d,"getMapping")}};gh.default=UR});var Jv=v((NB,GR)=>{GR.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 t_=v((at,e_)=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.CodeGen=at.Name=at.nil=at.stringify=at.str=at._=at.KeywordCxt=void 0;var zR=Ro(),ZR=Wv(),WR=yh(),Xv=Jv(),KR=["/properties"],Eu="http://json-schema.org/draft-04/schema",bh=class bh extends zR.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),ZR.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(WR.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(Xv,KR):Xv;this.addMetaSchema(t,Eu,!1),this.refs["http://json-schema.org/schema"]=Eu}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Eu)?Eu:void 0)}};o(bh,"Ajv");var Ou=bh;e_.exports=at=Ou;Object.defineProperty(at,"__esModule",{value:!0});at.default=Ou;var YR=Ro();Object.defineProperty(at,"KeywordCxt",{enumerable:!0,get:o(function(){return YR.KeywordCxt},"get")});var Mo=Ro();Object.defineProperty(at,"_",{enumerable:!0,get:o(function(){return Mo._},"get")});Object.defineProperty(at,"str",{enumerable:!0,get:o(function(){return Mo.str},"get")});Object.defineProperty(at,"stringify",{enumerable:!0,get:o(function(){return Mo.stringify},"get")});Object.defineProperty(at,"nil",{enumerable:!0,get:o(function(){return Mo.nil},"get")});Object.defineProperty(at,"Name",{enumerable:!0,get:o(function(){return Mo.Name},"get")});Object.defineProperty(at,"CodeGen",{enumerable:!0,get:o(function(){return Mo.CodeGen},"get")})});var r_=v(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});var QR={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};vh.default=QR});var n_=v(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});var JR=r_(),XR=ta(),eN=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",JR.default,XR.default];_h.default=eN});var i_=v(Sh=>{"use strict";Object.defineProperty(Sh,"__esModule",{value:!0});var Pu=ae(),Dn=Pu.operators,xu={maximum:{okStr:"<=",ok:Dn.LTE,fail:Dn.GT},minimum:{okStr:">=",ok:Dn.GTE,fail:Dn.LT},exclusiveMaximum:{okStr:"<",ok:Dn.LT,fail:Dn.GTE},exclusiveMinimum:{okStr:">",ok:Dn.GT,fail:Dn.LTE}},tN={message:o(({keyword:e,schemaCode:t})=>(0,Pu.str)`must be ${xu[e].okStr} ${t}`,"message"),params:o(({keyword:e,schemaCode:t})=>(0,Pu._)`{comparison: ${xu[e].okStr}, limit: ${t}}`,"params")},rN={keyword:Object.keys(xu),type:"number",schemaType:"number",$data:!0,error:tN,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Pu._)`${r} ${xu[t].fail} ${n} || isNaN(${r})`)}};Sh.default=rN});var o_=v(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});var nN=i_(),iN=Ed(),oN=xd(),sN=wd(),aN=Id(),cN=Td(),uN=Nd(),lN=qd(),fN=Fd(),pN=Bd(),dN=[nN.default,iN.default,oN.default,sN.default,aN.default,cN.default,uN.default,lN.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},fN.default,pN.default];Eh.default=dN});var Ph=v(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.dynamicAnchor=void 0;var Oh=ae(),hN=fr(),s_=Ys(),mN=ta(),gN={keyword:"$dynamicAnchor",schemaType:"string",code:o(e=>a_(e,e.schema),"code")};function a_(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,Oh._)`${hN.default.dynamicAnchors}${(0,Oh.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:yN(e);r.if((0,Oh._)`!${i}`,()=>r.assign(i,s))}o(a_,"dynamicAnchor");fa.dynamicAnchor=a_;function yN(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:s,localRefs:a,meta:c}=t.root,{schemaId:u}=n.opts,l=new s_.SchemaEnv({schema:r,schemaId:u,root:i,baseId:s,localRefs:a,meta:c});return s_.compileSchema.call(n,l),(0,mN.getValidate)(e,l)}o(yN,"_getValidate");fa.default=gN});var xh=v(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.dynamicRef=void 0;var c_=ae(),bN=fr(),u_=ta(),vN={keyword:"$dynamicRef",schemaType:"string",code:o(e=>l_(e,e.schema),"code")};function l_(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let s=t.slice(1);if(i.allErrors)a();else{let u=r.let("valid",!1);a(u),e.ok(u)}function a(u){if(i.schemaEnv.root.dynamicAnchors[s]){let l=r.let("_v",(0,c_._)`${bN.default.dynamicAnchors}${(0,c_.getProperty)(s)}`);r.if(l,c(l,u),c(i.validateName,u))}else c(i.validateName,u)()}o(a,"_dynamicRef");function c(u,l){return l?()=>r.block(()=>{(0,u_.callRef)(e,u),r.let(l,!0)}):()=>(0,u_.callRef)(e,u)}o(c,"_callRef")}o(l_,"dynamicRef");pa.dynamicRef=l_;pa.default=vN});var f_=v($h=>{"use strict";Object.defineProperty($h,"__esModule",{value:!0});var _N=Ph(),SN=he(),EN={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,_N.dynamicAnchor)(e,""):(0,SN.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};$h.default=EN});var p_=v(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});var ON=xh(),PN={keyword:"$recursiveRef",schemaType:"string",code:o(e=>(0,ON.dynamicRef)(e,e.schema),"code")};wh.default=PN});var d_=v(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});var xN=Ph(),$N=xh(),wN=f_(),AN=p_(),IN=[xN.default,$N.default,wN.default,AN.default];Ah.default=IN});var m_=v(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});var h_=mu(),CN={keyword:"dependentRequired",type:"object",schemaType:"object",error:h_.error,code:o(e=>(0,h_.validatePropertyDeps)(e),"code")};Ih.default=CN});var g_=v(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});var TN=mu(),RN={keyword:"dependentSchemas",type:"object",schemaType:"object",code:o(e=>(0,TN.validateSchemaDeps)(e),"code")};Ch.default=RN});var y_=v(Th=>{"use strict";Object.defineProperty(Th,"__esModule",{value:!0});var NN=he(),jN={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,NN.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};Th.default=jN});var b_=v(Rh=>{"use strict";Object.defineProperty(Rh,"__esModule",{value:!0});var MN=m_(),kN=g_(),qN=y_(),DN=[MN.default,kN.default,qN.default];Rh.default=DN});var __=v(Nh=>{"use strict";Object.defineProperty(Nh,"__esModule",{value:!0});var Ln=ae(),v_=he(),LN=fr(),FN={message:"must NOT have unevaluated properties",params:o(({params:e})=>(0,Ln._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},HN={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:FN,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:s}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:c}=s;c instanceof Ln.Name?t.if((0,Ln._)`${c} !== true`,()=>t.forIn("key",n,f=>t.if(l(c,f),()=>u(f)))):c!==!0&&t.forIn("key",n,f=>c===void 0?u(f):t.if(p(c,f),()=>u(f))),s.props=!0,e.ok((0,Ln._)`${i} === ${LN.default.errors}`);function u(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,v_.alwaysValidSchema)(s,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:v_.Type.Str},d),a||t.if((0,Ln.not)(d),()=>t.break())}}o(u,"unevaluatedPropCode");function l(f,d){return(0,Ln._)`!${f} || !${f}[${d}]`}o(l,"unevaluatedDynamic");function p(f,d){let h=[];for(let y in f)f[y]===!0&&h.push((0,Ln._)`${d} !== ${y}`);return(0,Ln.and)(...h)}o(p,"unevaluatedStatic")}};Nh.default=HN});var E_=v(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});var Ni=ae(),S_=he(),BN={message:o(({params:{len:e}})=>(0,Ni.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Ni._)`{limit: ${e}}`,"params")},VN={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:BN,code(e){let{gen:t,schema:r,data:n,it:i}=e,s=i.items||0;if(s===!0)return;let a=t.const("len",(0,Ni._)`${n}.length`);if(r===!1)e.setParams({len:s}),e.fail((0,Ni._)`${a} > ${s}`);else if(typeof r=="object"&&!(0,S_.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,Ni._)`${a} <= ${s}`);t.if((0,Ni.not)(u),()=>c(u,s)),e.ok(u)}i.items=!0;function c(u,l){t.forRange("i",l,a,p=>{e.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:S_.Type.Num},u),i.allErrors||t.if((0,Ni.not)(u),()=>t.break())})}o(c,"validateItems")}};jh.default=VN});var O_=v(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});var UN=__(),GN=E_(),zN=[UN.default,GN.default];Mh.default=zN});var P_=v(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.contentVocabulary=ko.metadataVocabulary=void 0;ko.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];ko.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var $_=v(kh=>{"use strict";Object.defineProperty(kh,"__esModule",{value:!0});var ZN=n_(),WN=o_(),KN=lh(),YN=d_(),QN=b_(),JN=O_(),XN=dh(),x_=P_(),ej=[YN.default,ZN.default,WN.default,(0,KN.default)(!0),XN.default,x_.metadataVocabulary,x_.contentVocabulary,QN.default,JN.default];kh.default=ej});var w_=v((aV,tj)=>{tj.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 A_=v((cV,rj)=>{rj.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 I_=v((uV,nj)=>{nj.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 C_=v((lV,ij)=>{ij.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 T_=v((fV,oj)=>{oj.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 R_=v((pV,sj)=>{sj.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 N_=v((dV,aj)=>{aj.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 j_=v((hV,cj)=>{cj.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 M_=v(qh=>{"use strict";Object.defineProperty(qh,"__esModule",{value:!0});var uj=w_(),lj=A_(),fj=I_(),pj=C_(),dj=T_(),hj=R_(),mj=N_(),gj=j_(),yj=["/properties"];function bj(e){return[uj,lj,fj,pj,dj,t(this,hj),mj,t(this,gj)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,yj):n}o(t,"with$data")}o(bj,"addMetaSchema2020");qh.default=bj});var k_=v((De,Lh)=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.MissingRefError=De.ValidationError=De.CodeGen=De.Name=De.nil=De.stringify=De.str=De._=De.KeywordCxt=De.Ajv2020=void 0;var vj=Ro(),_j=$_(),Sj=yh(),Ej=M_(),Dh="https://json-schema.org/draft/2020-12/schema",Fh=class Fh extends vj.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),_j.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Sj.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(Ej.default.call(this,t),this.refs["http://json-schema.org/schema"]=Dh)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Dh)?Dh:void 0)}};o(Fh,"Ajv2020");var qo=Fh;De.Ajv2020=qo;Lh.exports=De=qo;Lh.exports.Ajv2020=qo;Object.defineProperty(De,"__esModule",{value:!0});De.default=qo;var Oj=Ws();Object.defineProperty(De,"KeywordCxt",{enumerable:!0,get:o(function(){return Oj.KeywordCxt},"get")});var Do=ae();Object.defineProperty(De,"_",{enumerable:!0,get:o(function(){return Do._},"get")});Object.defineProperty(De,"str",{enumerable:!0,get:o(function(){return Do.str},"get")});Object.defineProperty(De,"stringify",{enumerable:!0,get:o(function(){return Do.stringify},"get")});Object.defineProperty(De,"nil",{enumerable:!0,get:o(function(){return Do.nil},"get")});Object.defineProperty(De,"Name",{enumerable:!0,get:o(function(){return Do.Name},"get")});Object.defineProperty(De,"CodeGen",{enumerable:!0,get:o(function(){return Do.CodeGen},"get")});var Pj=nu();Object.defineProperty(De,"ValidationError",{enumerable:!0,get:o(function(){return Pj.default},"get")});var xj=Ks();Object.defineProperty(De,"MissingRefError",{enumerable:!0,get:o(function(){return xj.default},"get")})});var q_=v((bV,$j)=>{$j.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 D_=v((vV,wj)=>{wj.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 L_=v((_V,Aj)=>{Aj.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 F_=v((SV,Ij)=>{Ij.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 H_=v((ft,Lo)=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.openapi=ft.openapiV31=ft.openapiV3=ft.openapiV2=ft.openapiV1=void 0;ft.openapiV1=q_();ft.openapiV2=D_();ft.openapiV3=L_();ft.openapiV31=F_();ft.openapi={v1:ft.openapiV1,v2:ft.openapiV2,v3:ft.openapiV3,v31:ft.openapiV31};ft.default=ft.openapi;typeof Lo=="object"&&typeof Lo.exports=="object"&&(Lo.exports=Object.assign(Lo.exports.default,Lo.exports))});var Vh=v((EV,B_)=>{"use strict";var Cj=Dc(),{ono:Tj}=Pr(),Rj=t_(),Nj=k_(),{openapi:Hh}=H_();B_.exports=jj;function jj(e){let t,r;if(e.swagger)r=Hh.v2,t=Bh();else if(e.openapi.startsWith("3.1")){r=Hh.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=Bh(!1)}else r=Hh.v3,t=Bh();if(!t.validate(r,e)){let i=t.errors,s=`Swagger schema validation failed.
14
- `+Mj(i);throw Tj.syntax(i,{details:i},s)}}o(jj,"validateSchema");function Bh(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new Rj(t):new Nj(t)}o(Bh,"initializeAjv");function Mj(e,t){t=t||" ";let r="";for(let n of e)r+=Cj.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
15
- `);return r}o(Mj,"formatAjvError")});var U_=v((PV,V_)=>{"use strict";V_.exports=["get","put","post","delete","options","head","patch"]});var zh=v((xV,W_)=>{"use strict";var kj=Dc(),{ono:Et}=Pr(),qj=U_(),Uh=["array","boolean","integer","number","string"],z_=["array","boolean","integer","number","string","object","null",void 0];W_.exports=Dj;function Dj(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let i of t){let s=e.paths[i],a="/paths"+i;s&&i.indexOf("/")===0&&Lj(e,s,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let s=e.definitions[i],a="/definitions/"+i;Z_(s,a)}}o(Dj,"validateSpec");function Lj(e,t,r,n){for(let i of qj){let s=t[i],a=r+"/"+i;if(s){let c=s.operationId;if(c)if(n.indexOf(c)===-1)n.push(c);else throw Et.syntax(`Validation failed. Duplicate operation id '${c}'`);Fj(e,t,r,s,a);let u=Object.keys(s.responses||{});for(let l of u){let p=s.responses[l],f=a+"/responses/"+l;Uj(l,p||{},f)}}}}o(Lj,"validatePath");function Fj(e,t,r,n,i){let s=t.parameters||[],a=n.parameters||[];try{G_(s)}catch(u){throw Et.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{G_(a)}catch(u){throw Et.syntax(u,`Validation failed. ${i} has duplicate parameters`)}let c=s.reduce((u,l)=>(u.some(f=>f.in===l.in&&f.name===l.name)||u.push(l),u),a.slice());Hj(c,i),Bj(c,r,i),Vj(c,e,n,i)}o(Fj,"validateParameters");function Hj(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw Et.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw Et.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}o(Hj,"validateBodyParameters");function Bj(e,t,r){let n=t.match(kj.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let s=i+1;s<n.length;s++)if(n[i]===n[s])throw Et.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 Et.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${r}`);let s=n.indexOf("{"+i.name+"}");if(s===-1)throw Et.syntax(`Validation failed. ${r} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(s,1)}if(n.length>0)throw Et.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}o(Bj,"validatePathParameters");function Vj(e,t,r,n){for(let i of e){let s=n+"/parameters/"+i.name,a,c;switch(i.in){case"body":a=i.schema,c=z_;break;case"formData":a=i,c=Uh.concat("file");break;default:a=i,c=Uh}if(Gh(a,s,c),Z_(a,s),a.type==="file"){let u=/multipart\/(.*\+)?form-data/,l=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some(d=>u.test(d)||l.test(d)))throw Et.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}o(Vj,"validateParameterTypes");function G_(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 Et.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}o(G_,"checkForDuplicates");function Uj(e,t,r){if(e!=="default"&&(e<100||e>599))throw Et.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let i of n){let s=t.headers[i],a=r+"/headers/"+i;Gh(s,a,Uh)}if(t.schema){let i=z_.concat("file");if(i.indexOf(t.schema.type)===-1)throw Et.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);Gh(t.schema,r+"/schema",i)}}o(Uj,"validateResponse");function Gh(e,t,r){if(r.indexOf(e.type)===-1)throw Et.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw Et.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}o(Gh,"validateSchema");function Z_(e,t){function r(n,i){if(n.properties)for(let s in n.properties)n.properties.hasOwnProperty(s)&&(i[s]=n.properties[s]);if(n.allOf)for(let s of n.allOf)r(s,i)}if(o(r,"collectProperties"),e.required&&Array.isArray(e.required)){let n={};r(e,n);for(let i of e.required)if(!n[i])throw Et.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}o(Z_,"validateRequiredPropertiesExist")});var Cr=v(Ir=>{"use strict";var{Ono:K_}=Pr(),{stripHash:Y_,toFileSystemPath:Gj}=Yt(),Fo,Fn=Ir.JSONParserError=(Fo=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,K_.extend(this)}},o(Fo,"JSONParserError"),Fo);Hn(Fn);var ji,Q_=Ir.JSONParserErrorGroup=(ji=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${Gj(t.$refs._root$Ref.path)}'`,K_.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 ji.getParserErrors(this.files)}},o(ji,"JSONParserErrorGroup"),ji);Hn(Q_);var Ho,zj=Ir.ParserError=(Ho=class extends Fn{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},o(Ho,"ParserError"),Ho);Hn(zj);var Bo,Zj=Ir.UnmatchedParserError=(Bo=class extends Fn{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},o(Bo,"UnmatchedParserError"),Bo);Hn(Zj);var Vo,Wj=Ir.ResolverError=(Vo=class extends Fn{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},o(Vo,"ResolverError"),Vo);Hn(Wj);var Uo,Kj=Ir.UnmatchedResolverError=(Uo=class extends Fn{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},o(Uo,"UnmatchedResolverError"),Uo);Hn(Kj);var Go,Yj=Ir.MissingPointerError=(Go=class extends Fn{constructor(t,r){super(`Token "${t}" does not exist.`,Y_(r)),this.code="EMISSINGPOINTER"}},o(Go,"MissingPointerError"),Go);Hn(Yj);var zo,Qj=Ir.InvalidPointerError=(zo=class extends Fn{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,Y_(r)),this.code="EINVALIDPOINTER"}},o(zo,"InvalidPointerError"),zo);Hn(Qj);function Hn(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}o(Hn,"setErrorName");Ir.isHandledError=function(e){return e instanceof Fn||e instanceof Q_};Ir.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var X_=v((IV,J_)=>{"use strict";var{ParserError:Jj}=Cr();J_.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 Jj(r.message,e.url)}}else return t}}});var ki=v((CV,Mi)=>{"use strict";function eS(e){return typeof e>"u"||e===null}o(eS,"isNothing");function Xj(e){return typeof e=="object"&&e!==null}o(Xj,"isObject");function eM(e){return Array.isArray(e)?e:eS(e)?[]:[e]}o(eM,"toArray");function tM(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}o(tM,"extend");function rM(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}o(rM,"repeat");function nM(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}o(nM,"isNegativeZero");Mi.exports.isNothing=eS;Mi.exports.isObject=Xj;Mi.exports.toArray=eM;Mi.exports.repeat=rM;Mi.exports.isNegativeZero=nM;Mi.exports.extend=tM});var Zo=v((RV,tS)=>{"use strict";function da(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}o(da,"YAMLException");da.prototype=Object.create(Error.prototype);da.prototype.constructor=da;da.prototype.toString=o(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");tS.exports=da});var iS=v((jV,nS)=>{"use strict";var rS=ki();function Zh(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}o(Zh,"Mark");Zh.prototype.getSnippet=o(function(t,r){var n,i,s,a,c;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
13
+ deps: ${r}}`,"params")};var XT={keyword:"dependencies",type:"object",schemaType:"object",error:Kr.error,code(e){let[t,r]=eR(e);Mv(e,t),kv(e,r)}};function eR({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}o(eR,"splitDependencies");function Mv(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let a in t){let c=t[a];if(c.length===0)continue;let u=(0,pa.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:c.length,deps:c.join(", ")}),i.allErrors?r.if(u,()=>{for(let l of c)(0,pa.checkReportMissingProp)(e,l)}):(r.if((0,ih._)`${u} && (${(0,pa.checkMissingProp)(e,c,s)})`),(0,pa.reportMissingProp)(e,s),r.else())}}o(Mv,"validatePropertyDeps");Kr.validatePropertyDeps=Mv;function kv(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let c in t)(0,JT.alwaysValidSchema)(s,t[c])||(r.if((0,pa.propertyInData)(r,n,c,s.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:c},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}o(kv,"validateSchemaDeps");Kr.validateSchemaDeps=kv;Kr.default=XT});var Dv=v(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});var qv=ae(),tR=he(),rR={message:"property name must be valid",params:o(({params:e})=>(0,qv._)`{propertyName: ${e.propertyName}}`,"params")},nR={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:rR,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,tR.alwaysValidSchema)(i,r))return;let s=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},s),t.if((0,qv.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};oh.default=nR});var ah=v(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});var _u=hr(),Cr=ae(),iR=dr(),Su=he(),oR={message:"must NOT have additional properties",params:o(({params:e})=>(0,Cr._)`{additionalProperty: ${e.additionalProperty}}`,"params")},sR={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:oR,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:s,it:a}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:c,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,Su.alwaysValidSchema)(a,r))return;let l=(0,_u.allSchemaProperties)(n.properties),p=(0,_u.allSchemaProperties)(n.patternProperties);f(),e.ok((0,Cr._)`${s} === ${iR.default.errors}`);function f(){t.forIn("key",i,g=>{!l.length&&!p.length?y(g):t.if(d(g),()=>y(g))})}o(f,"checkAdditionalProperties");function d(g){let P;if(l.length>8){let $=(0,Su.schemaRefOrVal)(a,n.properties,"properties");P=(0,_u.isOwnProperty)(t,$,g)}else l.length?P=(0,Cr.or)(...l.map($=>(0,Cr._)`${g} === ${$}`)):P=Cr.nil;return p.length&&(P=(0,Cr.or)(P,...p.map($=>(0,Cr._)`${(0,_u.usePattern)(e,$)}.test(${g})`))),(0,Cr.not)(P)}o(d,"isAdditional");function h(g){t.code((0,Cr._)`delete ${i}[${g}]`)}o(h,"deleteAdditional");function y(g){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){h(g);return}if(r===!1){e.setParams({additionalProperty:g}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,Su.alwaysValidSchema)(a,r)){let P=t.name("valid");u.removeAdditional==="failing"?(b(g,P,!1),t.if((0,Cr.not)(P),()=>{e.reset(),h(g)})):(b(g,P),c||t.if((0,Cr.not)(P),()=>t.break()))}}o(y,"additionalPropertyCode");function b(g,P,$){let C={keyword:"additionalProperties",dataProp:g,dataPropType:Su.Type.Str};$===!1&&Object.assign(C,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(C,P)}o(b,"applyAdditionalSchema")}};sh.default=sR});var Hv=v(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});var aR=Ys(),Lv=hr(),ch=he(),Fv=ah(),cR={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Fv.default.code(new aR.KeywordCxt(s,Fv.default,"additionalProperties"));let a=(0,Lv.allSchemaProperties)(r);for(let f of a)s.definedProperties.add(f);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=ch.mergeEvaluated.props(t,(0,ch.toHash)(a),s.props));let c=a.filter(f=>!(0,ch.alwaysValidSchema)(s,r[f]));if(c.length===0)return;let u=t.name("valid");for(let f of c)l(f)?p(f):(t.if((0,Lv.propertyInData)(t,i,f,s.opts.ownProperties)),p(f),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(u);function l(f){return s.opts.useDefaults&&!s.compositeRule&&r[f].default!==void 0}o(l,"hasDefault");function p(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},u)}o(p,"applyPropertySchema")}};uh.default=cR});var Gv=v(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});var Bv=hr(),Eu=ae(),Vv=he(),Uv=he(),uR={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:a}=s,c=(0,Bv.allSchemaProperties)(r),u=c.filter(b=>(0,Vv.alwaysValidSchema)(s,r[b]));if(c.length===0||u.length===c.length&&(!s.opts.unevaluated||s.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,p=t.name("valid");s.props!==!0&&!(s.props instanceof Eu.Name)&&(s.props=(0,Uv.evaluatedPropsToName)(t,s.props));let{props:f}=s;d();function d(){for(let b of c)l&&h(b),s.allErrors?y(b):(t.var(p,!0),y(b),t.if(p))}o(d,"validatePatternProperties");function h(b){for(let g in l)new RegExp(b).test(g)&&(0,Vv.checkStrictMode)(s,`property ${g} matches pattern ${b} (use allowMatchingProperties)`)}o(h,"checkMatchingProperties");function y(b){t.forIn("key",n,g=>{t.if((0,Eu._)`${(0,Bv.usePattern)(e,b)}.test(${g})`,()=>{let P=u.includes(b);P||e.subschema({keyword:"patternProperties",schemaProp:b,dataProp:g,dataPropType:Uv.Type.Str},p),s.opts.unevaluated&&f!==!0?t.assign((0,Eu._)`${f}[${g}]`,!0):!P&&!s.allErrors&&t.if((0,Eu.not)(p),()=>t.break())})})}o(y,"validateProperties")}};lh.default=uR});var zv=v(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});var lR=he(),fR={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,lR.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"}};fh.default=fR});var Zv=v(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});var pR=hr(),dR={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:pR.validateUnion,error:{message:"must match a schema in anyOf"}};ph.default=dR});var Wv=v(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});var Ou=ae(),hR=he(),mR={message:"must match exactly one schema in oneOf",params:o(({params:e})=>(0,Ou._)`{passingSchemas: ${e.passing}}`,"params")},gR={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:mR,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let s=r,a=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){s.forEach((p,f)=>{let d;(0,hR.alwaysValidSchema)(i,p)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},u),f>0&&t.if((0,Ou._)`${u} && ${a}`).assign(a,!1).assign(c,(0,Ou._)`[${c}, ${f}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,f),d&&e.mergeEvaluated(d,Ou.Name)})})}o(l,"validateOneOf")}};dh.default=gR});var Kv=v(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});var yR=he(),bR={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((s,a)=>{if((0,yR.alwaysValidSchema)(n,s))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};hh.default=bR});var Jv=v(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});var Pu=ae(),Qv=he(),vR={message:o(({params:e})=>(0,Pu.str)`must match "${e.ifClause}" schema`,"message"),params:o(({params:e})=>(0,Pu._)`{failingKeyword: ${e.ifClause}}`,"params")},_R={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:vR,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,Qv.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=Yv(n,"then"),s=Yv(n,"else");if(!i&&!s)return;let a=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&s){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(c,l("then",p),l("else",p))}else i?t.if(c,l("then")):t.if((0,Pu.not)(c),l("else"));e.pass(a,()=>e.error(!0));function u(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(p)}o(u,"validateIf");function l(p,f){return()=>{let d=e.subschema({keyword:p},c);t.assign(a,c),e.mergeValidEvaluated(d,a),f?t.assign(f,(0,Pu._)`${p}`):e.setParams({ifClause:p})}}o(l,"validateClause")}};function Yv(e,t){let r=e.schema[t];return r!==void 0&&!(0,Qv.alwaysValidSchema)(e,r)}o(Yv,"hasSchema");mh.default=_R});var Xv=v(gh=>{"use strict";Object.defineProperty(gh,"__esModule",{value:!0});var SR=he(),ER={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,SR.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};gh.default=ER});var bh=v(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});var OR=Xd(),PR=Tv(),xR=eh(),$R=Nv(),wR=jv(),AR=vu(),IR=Dv(),CR=ah(),TR=Hv(),RR=Gv(),NR=zv(),jR=Zv(),MR=Wv(),kR=Kv(),qR=Jv(),DR=Xv();function LR(e=!1){let t=[NR.default,jR.default,MR.default,kR.default,qR.default,DR.default,IR.default,CR.default,AR.default,TR.default,RR.default];return e?t.push(PR.default,$R.default):t.push(OR.default,xR.default),t.push(wR.default),t}o(LR,"getApplicator");yh.default=LR});var e_=v(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});var rt=ae(),FR={message:o(({schemaCode:e})=>(0,rt.str)`must match format "${e}"`,"message"),params:o(({schemaCode:e})=>(0,rt._)`{format: ${e}}`,"params")},HR={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:FR,code(e,t){let{gen:r,data:n,$data:i,schema:s,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:l,schemaEnv:p,self:f}=c;if(!u.validateFormats)return;i?d():h();function d(){let y=r.scopeValue("formats",{ref:f.formats,code:u.code.formats}),b=r.const("fDef",(0,rt._)`${y}[${a}]`),g=r.let("fType"),P=r.let("format");r.if((0,rt._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>r.assign(g,(0,rt._)`${b}.type || "string"`).assign(P,(0,rt._)`${b}.validate`),()=>r.assign(g,(0,rt._)`"string"`).assign(P,b)),e.fail$data((0,rt.or)($(),C()));function $(){return u.strictSchema===!1?rt.nil:(0,rt._)`${a} && !${P}`}o($,"unknownFmt");function C(){let T=p.$async?(0,rt._)`(${b}.async ? await ${P}(${n}) : ${P}(${n}))`:(0,rt._)`${P}(${n})`,A=(0,rt._)`(typeof ${P} == "function" ? ${T} : ${P}.test(${n}))`;return(0,rt._)`${P} && ${P} !== true && ${g} === ${t} && !${A}`}o(C,"invalidFmt")}o(d,"validate$DataFormat");function h(){let y=f.formats[s];if(!y){$();return}if(y===!0)return;let[b,g,P]=C(y);b===t&&e.pass(T());function $(){if(u.strictSchema===!1){f.logger.warn(A());return}throw new Error(A());function A(){return`unknown format "${s}" ignored in schema at path "${l}"`}}o($,"unknownFormat");function C(A){let te=A instanceof RegExp?(0,rt.regexpCode)(A):u.code.formats?(0,rt._)`${u.code.formats}${(0,rt.getProperty)(s)}`:void 0,J=r.scopeValue("formats",{key:s,ref:A,code:te});return typeof A=="object"&&!(A instanceof RegExp)?[A.type||"string",A.validate,(0,rt._)`${J}.validate`]:["string",A,J]}o(C,"getFormat");function T(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!p.$async)throw new Error("async format in sync schema");return(0,rt._)`await ${P}(${n})`}return typeof g=="function"?(0,rt._)`${P}(${n})`:(0,rt._)`${P}.test(${n})`}o(T,"validCondition")}o(h,"validateFormat")}};vh.default=HR});var Sh=v(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});var BR=e_(),VR=[BR.default];_h.default=VR});var t_=v(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});var UR=_v(),GR=wv(),zR=bh(),ZR=Sh(),WR=["title","description","default"],KR=[UR.default,GR.default,zR.default(),ZR.default,WR];Eh.default=KR});var n_=v(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.DiscrError=void 0;var r_;(function(e){e.Tag="tag",e.Mapping="mapping"})(r_||(xu.DiscrError=r_={}))});var xh=v(Ph=>{"use strict";Object.defineProperty(Ph,"__esModule",{value:!0});var Do=ae(),Oh=n_(),i_=Js(),YR=Qs(),QR=he(),JR={message:o(({params:{discrError:e,tagName:t}})=>e===Oh.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:o(({params:{discrError:e,tag:t,tagName:r}})=>(0,Do._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},XR={keyword:"discriminator",type:"object",schemaType:"object",error:JR,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:s}=e,{oneOf:a}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let c=n.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=t.let("valid",!1),l=t.const("tag",(0,Do._)`${r}${(0,Do.getProperty)(c)}`);t.if((0,Do._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:Oh.DiscrError.Tag,tag:l,tagName:c})),e.ok(u);function p(){let h=d();t.if(!1);for(let y in h)t.elseIf((0,Do._)`${l} === ${y}`),t.assign(u,f(h[y]));t.else(),e.error(!1,{discrError:Oh.DiscrError.Mapping,tag:l,tagName:c}),t.endIf()}o(p,"validateMapping");function f(h){let y=t.name("valid"),b=e.subschema({keyword:"oneOf",schemaProp:h},y);return e.mergeEvaluated(b,Do.Name),y}o(f,"applyTagSchema");function d(){var h;let y={},b=P(i),g=!0;for(let T=0;T<a.length;T++){let A=a[T];if(A!=null&&A.$ref&&!(0,QR.schemaHasRulesButRef)(A,s.self.RULES)){let J=A.$ref;if(A=i_.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,J),A instanceof i_.SchemaEnv&&(A=A.schema),A===void 0)throw new YR.default(s.opts.uriResolver,s.baseId,J)}let te=(h=A==null?void 0:A.properties)===null||h===void 0?void 0:h[c];if(typeof te!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);g=g&&(b||P(A)),$(te,T)}if(!g)throw new Error(`discriminator: "${c}" must be required`);return y;function P({required:T}){return Array.isArray(T)&&T.includes(c)}function $(T,A){if(T.const)C(T.const,A);else if(T.enum)for(let te of T.enum)C(te,A);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function C(T,A){if(typeof T!="string"||T in y)throw new Error(`discriminator: "${c}" values must be unique strings`);y[T]=A}}o(d,"getMapping")}};Ph.default=XR});var o_=v((VB,eN)=>{eN.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 c_=v((at,a_)=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.CodeGen=at.Name=at.nil=at.stringify=at.str=at._=at.KeywordCxt=void 0;var tN=ko(),rN=t_(),nN=xh(),s_=o_(),iN=["/properties"],$u="http://json-schema.org/draft-04/schema",$h=class $h extends tN.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),rN.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(nN.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(s_,iN):s_;this.addMetaSchema(t,$u,!1),this.refs["http://json-schema.org/schema"]=$u}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema($u)?$u:void 0)}};o($h,"Ajv");var wu=$h;a_.exports=at=wu;Object.defineProperty(at,"__esModule",{value:!0});at.default=wu;var oN=ko();Object.defineProperty(at,"KeywordCxt",{enumerable:!0,get:o(function(){return oN.KeywordCxt},"get")});var Lo=ko();Object.defineProperty(at,"_",{enumerable:!0,get:o(function(){return Lo._},"get")});Object.defineProperty(at,"str",{enumerable:!0,get:o(function(){return Lo.str},"get")});Object.defineProperty(at,"stringify",{enumerable:!0,get:o(function(){return Lo.stringify},"get")});Object.defineProperty(at,"nil",{enumerable:!0,get:o(function(){return Lo.nil},"get")});Object.defineProperty(at,"Name",{enumerable:!0,get:o(function(){return Lo.Name},"get")});Object.defineProperty(at,"CodeGen",{enumerable:!0,get:o(function(){return Lo.CodeGen},"get")})});var u_=v(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});var sN={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};wh.default=sN});var l_=v(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});var aN=u_(),cN=na(),uN=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",aN.default,cN.default];Ah.default=uN});var f_=v(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});var Au=ae(),Fn=Au.operators,Iu={maximum:{okStr:"<=",ok:Fn.LTE,fail:Fn.GT},minimum:{okStr:">=",ok:Fn.GTE,fail:Fn.LT},exclusiveMaximum:{okStr:"<",ok:Fn.LT,fail:Fn.GTE},exclusiveMinimum:{okStr:">",ok:Fn.GT,fail:Fn.LTE}},lN={message:o(({keyword:e,schemaCode:t})=>(0,Au.str)`must be ${Iu[e].okStr} ${t}`,"message"),params:o(({keyword:e,schemaCode:t})=>(0,Au._)`{comparison: ${Iu[e].okStr}, limit: ${t}}`,"params")},fN={keyword:Object.keys(Iu),type:"number",schemaType:"number",$data:!0,error:lN,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Au._)`${r} ${Iu[t].fail} ${n} || isNaN(${r})`)}};Ih.default=fN});var p_=v(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});var pN=f_(),dN=Cd(),hN=Nd(),mN=Md(),gN=qd(),yN=Ld(),bN=Hd(),vN=Gd(),_N=Wd(),SN=Yd(),EN=[pN.default,dN.default,hN.default,mN.default,gN.default,yN.default,bN.default,vN.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},_N.default,SN.default];Ch.default=EN});var Rh=v(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.dynamicAnchor=void 0;var Th=ae(),ON=dr(),d_=Js(),PN=na(),xN={keyword:"$dynamicAnchor",schemaType:"string",code:o(e=>h_(e,e.schema),"code")};function h_(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,Th._)`${ON.default.dynamicAnchors}${(0,Th.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:$N(e);r.if((0,Th._)`!${i}`,()=>r.assign(i,s))}o(h_,"dynamicAnchor");da.dynamicAnchor=h_;function $N(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:s,localRefs:a,meta:c}=t.root,{schemaId:u}=n.opts,l=new d_.SchemaEnv({schema:r,schemaId:u,root:i,baseId:s,localRefs:a,meta:c});return d_.compileSchema.call(n,l),(0,PN.getValidate)(e,l)}o($N,"_getValidate");da.default=xN});var Nh=v(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.dynamicRef=void 0;var m_=ae(),wN=dr(),g_=na(),AN={keyword:"$dynamicRef",schemaType:"string",code:o(e=>y_(e,e.schema),"code")};function y_(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let s=t.slice(1);if(i.allErrors)a();else{let u=r.let("valid",!1);a(u),e.ok(u)}function a(u){if(i.schemaEnv.root.dynamicAnchors[s]){let l=r.let("_v",(0,m_._)`${wN.default.dynamicAnchors}${(0,m_.getProperty)(s)}`);r.if(l,c(l,u),c(i.validateName,u))}else c(i.validateName,u)()}o(a,"_dynamicRef");function c(u,l){return l?()=>r.block(()=>{(0,g_.callRef)(e,u),r.let(l,!0)}):()=>(0,g_.callRef)(e,u)}o(c,"_callRef")}o(y_,"dynamicRef");ha.dynamicRef=y_;ha.default=AN});var b_=v(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});var IN=Rh(),CN=he(),TN={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,IN.dynamicAnchor)(e,""):(0,CN.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};jh.default=TN});var v_=v(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});var RN=Nh(),NN={keyword:"$recursiveRef",schemaType:"string",code:o(e=>(0,RN.dynamicRef)(e,e.schema),"code")};Mh.default=NN});var __=v(kh=>{"use strict";Object.defineProperty(kh,"__esModule",{value:!0});var jN=Rh(),MN=Nh(),kN=b_(),qN=v_(),DN=[jN.default,MN.default,kN.default,qN.default];kh.default=DN});var E_=v(qh=>{"use strict";Object.defineProperty(qh,"__esModule",{value:!0});var S_=vu(),LN={keyword:"dependentRequired",type:"object",schemaType:"object",error:S_.error,code:o(e=>(0,S_.validatePropertyDeps)(e),"code")};qh.default=LN});var O_=v(Dh=>{"use strict";Object.defineProperty(Dh,"__esModule",{value:!0});var FN=vu(),HN={keyword:"dependentSchemas",type:"object",schemaType:"object",code:o(e=>(0,FN.validateSchemaDeps)(e),"code")};Dh.default=HN});var P_=v(Lh=>{"use strict";Object.defineProperty(Lh,"__esModule",{value:!0});var BN=he(),VN={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,BN.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};Lh.default=VN});var x_=v(Fh=>{"use strict";Object.defineProperty(Fh,"__esModule",{value:!0});var UN=E_(),GN=O_(),zN=P_(),ZN=[UN.default,GN.default,zN.default];Fh.default=ZN});var w_=v(Hh=>{"use strict";Object.defineProperty(Hh,"__esModule",{value:!0});var Hn=ae(),$_=he(),WN=dr(),KN={message:"must NOT have unevaluated properties",params:o(({params:e})=>(0,Hn._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},YN={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:KN,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:s}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:c}=s;c instanceof Hn.Name?t.if((0,Hn._)`${c} !== true`,()=>t.forIn("key",n,f=>t.if(l(c,f),()=>u(f)))):c!==!0&&t.forIn("key",n,f=>c===void 0?u(f):t.if(p(c,f),()=>u(f))),s.props=!0,e.ok((0,Hn._)`${i} === ${WN.default.errors}`);function u(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,$_.alwaysValidSchema)(s,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:$_.Type.Str},d),a||t.if((0,Hn.not)(d),()=>t.break())}}o(u,"unevaluatedPropCode");function l(f,d){return(0,Hn._)`!${f} || !${f}[${d}]`}o(l,"unevaluatedDynamic");function p(f,d){let h=[];for(let y in f)f[y]===!0&&h.push((0,Hn._)`${d} !== ${y}`);return(0,Hn.and)(...h)}o(p,"unevaluatedStatic")}};Hh.default=YN});var I_=v(Bh=>{"use strict";Object.defineProperty(Bh,"__esModule",{value:!0});var ki=ae(),A_=he(),QN={message:o(({params:{len:e}})=>(0,ki.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,ki._)`{limit: ${e}}`,"params")},JN={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:QN,code(e){let{gen:t,schema:r,data:n,it:i}=e,s=i.items||0;if(s===!0)return;let a=t.const("len",(0,ki._)`${n}.length`);if(r===!1)e.setParams({len:s}),e.fail((0,ki._)`${a} > ${s}`);else if(typeof r=="object"&&!(0,A_.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,ki._)`${a} <= ${s}`);t.if((0,ki.not)(u),()=>c(u,s)),e.ok(u)}i.items=!0;function c(u,l){t.forRange("i",l,a,p=>{e.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:A_.Type.Num},u),i.allErrors||t.if((0,ki.not)(u),()=>t.break())})}o(c,"validateItems")}};Bh.default=JN});var C_=v(Vh=>{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0});var XN=w_(),ej=I_(),tj=[XN.default,ej.default];Vh.default=tj});var T_=v(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.contentVocabulary=Fo.metadataVocabulary=void 0;Fo.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Fo.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var N_=v(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});var rj=l_(),nj=p_(),ij=bh(),oj=__(),sj=x_(),aj=C_(),cj=Sh(),R_=T_(),uj=[oj.default,rj.default,nj.default,(0,ij.default)(!0),cj.default,R_.metadataVocabulary,R_.contentVocabulary,sj.default,aj.default];Uh.default=uj});var j_=v((yV,lj)=>{lj.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 M_=v((bV,fj)=>{fj.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 k_=v((vV,pj)=>{pj.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 q_=v((_V,dj)=>{dj.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 D_=v((SV,hj)=>{hj.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 L_=v((EV,mj)=>{mj.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 F_=v((OV,gj)=>{gj.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 H_=v((PV,yj)=>{yj.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 B_=v(Gh=>{"use strict";Object.defineProperty(Gh,"__esModule",{value:!0});var bj=j_(),vj=M_(),_j=k_(),Sj=q_(),Ej=D_(),Oj=L_(),Pj=F_(),xj=H_(),$j=["/properties"];function wj(e){return[bj,vj,_j,Sj,Ej,t(this,Oj),Pj,t(this,xj)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,$j):n}o(t,"with$data")}o(wj,"addMetaSchema2020");Gh.default=wj});var V_=v((Le,Zh)=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.MissingRefError=Le.ValidationError=Le.CodeGen=Le.Name=Le.nil=Le.stringify=Le.str=Le._=Le.KeywordCxt=Le.Ajv2020=void 0;var Aj=ko(),Ij=N_(),Cj=xh(),Tj=B_(),zh="https://json-schema.org/draft/2020-12/schema",Wh=class Wh extends Aj.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),Ij.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Cj.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(Tj.default.call(this,t),this.refs["http://json-schema.org/schema"]=zh)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(zh)?zh:void 0)}};o(Wh,"Ajv2020");var Ho=Wh;Le.Ajv2020=Ho;Zh.exports=Le=Ho;Zh.exports.Ajv2020=Ho;Object.defineProperty(Le,"__esModule",{value:!0});Le.default=Ho;var Rj=Ys();Object.defineProperty(Le,"KeywordCxt",{enumerable:!0,get:o(function(){return Rj.KeywordCxt},"get")});var Bo=ae();Object.defineProperty(Le,"_",{enumerable:!0,get:o(function(){return Bo._},"get")});Object.defineProperty(Le,"str",{enumerable:!0,get:o(function(){return Bo.str},"get")});Object.defineProperty(Le,"stringify",{enumerable:!0,get:o(function(){return Bo.stringify},"get")});Object.defineProperty(Le,"nil",{enumerable:!0,get:o(function(){return Bo.nil},"get")});Object.defineProperty(Le,"Name",{enumerable:!0,get:o(function(){return Bo.Name},"get")});Object.defineProperty(Le,"CodeGen",{enumerable:!0,get:o(function(){return Bo.CodeGen},"get")});var Nj=au();Object.defineProperty(Le,"ValidationError",{enumerable:!0,get:o(function(){return Nj.default},"get")});var jj=Qs();Object.defineProperty(Le,"MissingRefError",{enumerable:!0,get:o(function(){return jj.default},"get")})});var U_=v((AV,Mj)=>{Mj.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 G_=v((IV,kj)=>{kj.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 z_=v((CV,qj)=>{qj.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 Z_=v((TV,Dj)=>{Dj.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 W_=v((ft,Vo)=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.openapi=ft.openapiV31=ft.openapiV3=ft.openapiV2=ft.openapiV1=void 0;ft.openapiV1=U_();ft.openapiV2=G_();ft.openapiV3=z_();ft.openapiV31=Z_();ft.openapi={v1:ft.openapiV1,v2:ft.openapiV2,v3:ft.openapiV3,v31:ft.openapiV31};ft.default=ft.openapi;typeof Vo=="object"&&typeof Vo.exports=="object"&&(Vo.exports=Object.assign(Vo.exports.default,Vo.exports))});var Qh=v((RV,K_)=>{"use strict";var Lj=Bc(),{ono:Fj}=$r(),Hj=c_(),Bj=V_(),{openapi:Kh}=W_();K_.exports=Vj;function Vj(e){let t,r;if(e.swagger)r=Kh.v2,t=Yh();else if(e.openapi.startsWith("3.1")){r=Kh.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=Yh(!1)}else r=Kh.v3,t=Yh();if(!t.validate(r,e)){let i=t.errors,s=`Swagger schema validation failed.
14
+ `+Uj(i);throw Fj.syntax(i,{details:i},s)}}o(Vj,"validateSchema");function Yh(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new Hj(t):new Bj(t)}o(Yh,"initializeAjv");function Uj(e,t){t=t||" ";let r="";for(let n of e)r+=Lj.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
15
+ `);return r}o(Uj,"formatAjvError")});var Q_=v((jV,Y_)=>{"use strict";Y_.exports=["get","put","post","delete","options","head","patch"]});var em=v((MV,tS)=>{"use strict";var Gj=Bc(),{ono:Ot}=$r(),zj=Q_(),Jh=["array","boolean","integer","number","string"],X_=["array","boolean","integer","number","string","object","null",void 0];tS.exports=Zj;function Zj(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let i of t){let s=e.paths[i],a="/paths"+i;s&&i.indexOf("/")===0&&Wj(e,s,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let s=e.definitions[i],a="/definitions/"+i;eS(s,a)}}o(Zj,"validateSpec");function Wj(e,t,r,n){for(let i of zj){let s=t[i],a=r+"/"+i;if(s){let c=s.operationId;if(c)if(n.indexOf(c)===-1)n.push(c);else throw Ot.syntax(`Validation failed. Duplicate operation id '${c}'`);Kj(e,t,r,s,a);let u=Object.keys(s.responses||{});for(let l of u){let p=s.responses[l],f=a+"/responses/"+l;Xj(l,p||{},f)}}}}o(Wj,"validatePath");function Kj(e,t,r,n,i){let s=t.parameters||[],a=n.parameters||[];try{J_(s)}catch(u){throw Ot.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{J_(a)}catch(u){throw Ot.syntax(u,`Validation failed. ${i} has duplicate parameters`)}let c=s.reduce((u,l)=>(u.some(f=>f.in===l.in&&f.name===l.name)||u.push(l),u),a.slice());Yj(c,i),Qj(c,r,i),Jj(c,e,n,i)}o(Kj,"validateParameters");function Yj(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw Ot.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw Ot.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}o(Yj,"validateBodyParameters");function Qj(e,t,r){let n=t.match(Gj.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let s=i+1;s<n.length;s++)if(n[i]===n[s])throw Ot.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 Ot.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${r}`);let s=n.indexOf("{"+i.name+"}");if(s===-1)throw Ot.syntax(`Validation failed. ${r} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(s,1)}if(n.length>0)throw Ot.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}o(Qj,"validatePathParameters");function Jj(e,t,r,n){for(let i of e){let s=n+"/parameters/"+i.name,a,c;switch(i.in){case"body":a=i.schema,c=X_;break;case"formData":a=i,c=Jh.concat("file");break;default:a=i,c=Jh}if(Xh(a,s,c),eS(a,s),a.type==="file"){let u=/multipart\/(.*\+)?form-data/,l=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some(d=>u.test(d)||l.test(d)))throw Ot.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}o(Jj,"validateParameterTypes");function J_(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 Ot.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}o(J_,"checkForDuplicates");function Xj(e,t,r){if(e!=="default"&&(e<100||e>599))throw Ot.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let i of n){let s=t.headers[i],a=r+"/headers/"+i;Xh(s,a,Jh)}if(t.schema){let i=X_.concat("file");if(i.indexOf(t.schema.type)===-1)throw Ot.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);Xh(t.schema,r+"/schema",i)}}o(Xj,"validateResponse");function Xh(e,t,r){if(r.indexOf(e.type)===-1)throw Ot.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw Ot.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}o(Xh,"validateSchema");function eS(e,t){function r(n,i){if(n.properties)for(let s in n.properties)n.properties.hasOwnProperty(s)&&(i[s]=n.properties[s]);if(n.allOf)for(let s of n.allOf)r(s,i)}if(o(r,"collectProperties"),e.required&&Array.isArray(e.required)){let n={};r(e,n);for(let i of e.required)if(!n[i])throw Ot.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}o(eS,"validateRequiredPropertiesExist")});var Rr=v(Tr=>{"use strict";var{Ono:rS}=$r(),{stripHash:nS,toFileSystemPath:eM}=Qt(),Uo,Bn=Tr.JSONParserError=(Uo=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,rS.extend(this)}},o(Uo,"JSONParserError"),Uo);Vn(Bn);var qi,iS=Tr.JSONParserErrorGroup=(qi=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${eM(t.$refs._root$Ref.path)}'`,rS.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 qi.getParserErrors(this.files)}},o(qi,"JSONParserErrorGroup"),qi);Vn(iS);var Go,tM=Tr.ParserError=(Go=class extends Bn{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},o(Go,"ParserError"),Go);Vn(tM);var zo,rM=Tr.UnmatchedParserError=(zo=class extends Bn{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},o(zo,"UnmatchedParserError"),zo);Vn(rM);var Zo,nM=Tr.ResolverError=(Zo=class extends Bn{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},o(Zo,"ResolverError"),Zo);Vn(nM);var Wo,iM=Tr.UnmatchedResolverError=(Wo=class extends Bn{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},o(Wo,"UnmatchedResolverError"),Wo);Vn(iM);var Ko,oM=Tr.MissingPointerError=(Ko=class extends Bn{constructor(t,r){super(`Token "${t}" does not exist.`,nS(r)),this.code="EMISSINGPOINTER"}},o(Ko,"MissingPointerError"),Ko);Vn(oM);var Yo,sM=Tr.InvalidPointerError=(Yo=class extends Bn{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,nS(r)),this.code="EINVALIDPOINTER"}},o(Yo,"InvalidPointerError"),Yo);Vn(sM);function Vn(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}o(Vn,"setErrorName");Tr.isHandledError=function(e){return e instanceof Bn||e instanceof iS};Tr.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var sS=v((LV,oS)=>{"use strict";var{ParserError:aM}=Rr();oS.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 aM(r.message,e.url)}}else return t}}});var Li=v((FV,Di)=>{"use strict";function aS(e){return typeof e>"u"||e===null}o(aS,"isNothing");function cM(e){return typeof e=="object"&&e!==null}o(cM,"isObject");function uM(e){return Array.isArray(e)?e:aS(e)?[]:[e]}o(uM,"toArray");function lM(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}o(lM,"extend");function fM(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}o(fM,"repeat");function pM(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}o(pM,"isNegativeZero");Di.exports.isNothing=aS;Di.exports.isObject=cM;Di.exports.toArray=uM;Di.exports.repeat=fM;Di.exports.isNegativeZero=pM;Di.exports.extend=lM});var Qo=v((BV,cS)=>{"use strict";function ma(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}o(ma,"YAMLException");ma.prototype=Object.create(Error.prototype);ma.prototype.constructor=ma;ma.prototype.toString=o(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");cS.exports=ma});var fS=v((UV,lS)=>{"use strict";var uS=Li();function tm(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}o(tm,"Mark");tm.prototype.getSnippet=o(function(t,r){var n,i,s,a,c;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
16
16
  \x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(s="",a=this.position;a<this.buffer.length&&`\0\r
17
- \x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){s=" ... ",a-=5;break}return c=this.buffer.slice(i,a),rS.repeat(" ",t)+n+c+s+`
18
- `+rS.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");Zh.prototype.toString=o(function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
19
- `+r)),n},"toString");nS.exports=Zh});var ct=v((kV,sS)=>{"use strict";var oS=Zo(),iM=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],oM=["scalar","sequence","mapping"];function sM(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}o(sM,"compileStyleAliases");function aM(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(iM.indexOf(r)===-1)throw new oS('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=sM(t.styleAliases||null),oM.indexOf(this.kind)===-1)throw new oS('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}o(aM,"Type");sS.exports=aM});var qi=v((DV,cS)=>{"use strict";var aS=ki(),$u=Zo(),cM=ct();function Wh(e,t,r){var n=[];return e.include.forEach(function(i){r=Wh(i,t,r)}),e[t].forEach(function(i){r.forEach(function(s,a){s.tag===i.tag&&s.kind===i.kind&&n.push(a)}),r.push(i)}),r.filter(function(i,s){return n.indexOf(s)===-1})}o(Wh,"compileList");function uM(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(o(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}o(uM,"compileMap");function Wo(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 $u("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Wh(this,"implicit",[]),this.compiledExplicit=Wh(this,"explicit",[]),this.compiledTypeMap=uM(this.compiledImplicit,this.compiledExplicit)}o(Wo,"Schema");Wo.DEFAULT=null;Wo.create=o(function(){var t,r;switch(arguments.length){case 1:t=Wo.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new $u("Wrong number of arguments for Schema.create function")}if(t=aS.toArray(t),r=aS.toArray(r),!t.every(function(n){return n instanceof Wo}))throw new $u("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof cM}))throw new $u("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Wo({include:t,explicit:r})},"createSchema");cS.exports=Wo});var lS=v((FV,uS)=>{"use strict";var lM=ct();uS.exports=new lM("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")})});var pS=v((BV,fS)=>{"use strict";var fM=ct();fS.exports=new fM("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")})});var hS=v((UV,dS)=>{"use strict";var pM=ct();dS.exports=new pM("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")})});var wu=v((zV,mS)=>{"use strict";var dM=qi();mS.exports=new dM({explicit:[lS(),pS(),hS()]})});var yS=v((ZV,gS)=>{"use strict";var hM=ct();function mM(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}o(mM,"resolveYamlNull");function gM(){return null}o(gM,"constructYamlNull");function yM(e){return e===null}o(yM,"isNull");gS.exports=new hM("tag:yaml.org,2002:null",{kind:"scalar",resolve:mM,construct:gM,predicate:yM,represent:{canonical:o(function(){return"~"},"canonical"),lowercase:o(function(){return"null"},"lowercase"),uppercase:o(function(){return"NULL"},"uppercase"),camelcase:o(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var vS=v((KV,bS)=>{"use strict";var bM=ct();function vM(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}o(vM,"resolveYamlBoolean");function _M(e){return e==="true"||e==="True"||e==="TRUE"}o(_M,"constructYamlBoolean");function SM(e){return Object.prototype.toString.call(e)==="[object Boolean]"}o(SM,"isBoolean");bS.exports=new bM("tag:yaml.org,2002:bool",{kind:"scalar",resolve:vM,construct:_M,predicate:SM,represent:{lowercase:o(function(e){return e?"true":"false"},"lowercase"),uppercase:o(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:o(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var SS=v((QV,_S)=>{"use strict";var EM=ki(),OM=ct();function PM(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}o(PM,"isHexCode");function xM(e){return 48<=e&&e<=55}o(xM,"isOctCode");function $M(e){return 48<=e&&e<=57}o($M,"isDecCode");function wM(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(!PM(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!xM(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(!$M(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}o(wM,"resolveYamlInteger");function AM(e){var t=e,r=1,n,i,s=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(a){s.unshift(parseInt(a,10))}),t=0,i=1,s.forEach(function(a){t+=a*i,i*=60}),r*t):r*parseInt(t,10)}o(AM,"constructYamlInteger");function IM(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!EM.isNegativeZero(e)}o(IM,"isInteger");_S.exports=new OM("tag:yaml.org,2002:int",{kind:"scalar",resolve:wM,construct:AM,predicate:IM,represent:{binary:o(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:o(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:o(function(e){return e.toString(10)},"decimal"),hexadecimal:o(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var PS=v((XV,OS)=>{"use strict";var ES=ki(),CM=ct(),TM=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 RM(e){return!(e===null||!TM.test(e)||e[e.length-1]==="_")}o(RM,"resolveYamlFloat");function NM(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(s){i.unshift(parseFloat(s,10))}),t=0,n=1,i.forEach(function(s){t+=s*n,n*=60}),r*t):r*parseFloat(t,10)}o(NM,"constructYamlFloat");var jM=/^[-+]?[0-9]+e/;function MM(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(ES.isNegativeZero(e))return"-0.0";return r=e.toString(10),jM.test(r)?r.replace("e",".e"):r}o(MM,"representYamlFloat");function kM(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||ES.isNegativeZero(e))}o(kM,"isFloat");OS.exports=new CM("tag:yaml.org,2002:float",{kind:"scalar",resolve:RM,construct:NM,predicate:kM,represent:MM,defaultStyle:"lowercase"})});var Kh=v((t9,xS)=>{"use strict";var qM=qi();xS.exports=new qM({include:[wu()],implicit:[yS(),vS(),SS(),PS()]})});var Yh=v((r9,$S)=>{"use strict";var DM=qi();$S.exports=new DM({include:[Kh()]})});var CS=v((n9,IS)=>{"use strict";var LM=ct(),wS=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),AS=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 FM(e){return e===null?!1:wS.exec(e)!==null||AS.exec(e)!==null}o(FM,"resolveYamlTimestamp");function HM(e){var t,r,n,i,s,a,c,u=0,l=null,p,f,d;if(t=wS.exec(e),t===null&&(t=AS.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],a=+t[5],c=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(p=+t[10],f=+(t[11]||0),l=(p*60+f)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,s,a,c,u)),l&&d.setTime(d.getTime()-l),d}o(HM,"constructYamlTimestamp");function BM(e){return e.toISOString()}o(BM,"representYamlTimestamp");IS.exports=new LM("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:FM,construct:HM,instanceOf:Date,represent:BM})});var RS=v((o9,TS)=>{"use strict";var VM=ct();function UM(e){return e==="<<"||e===null}o(UM,"resolveYamlMerge");TS.exports=new VM("tag:yaml.org,2002:merge",{kind:"scalar",resolve:UM})});var MS=v((a9,jS)=>{"use strict";var Di;try{NS=require,Di=NS("buffer").Buffer}catch{}var NS,GM=ct(),Qh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
20
- \r`;function zM(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Qh;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}o(zM,"resolveYamlBinary");function ZM(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Qh,a=0,c=[];for(t=0;t<i;t++)t%4===0&&t&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),Di?Di.from?Di.from(c):new Di(c):c}o(ZM,"constructYamlBinary");function WM(e){var t="",r=0,n,i,s=e.length,a=Qh;for(n=0;n<s;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}o(WM,"representYamlBinary");function KM(e){return Di&&Di.isBuffer(e)}o(KM,"isBinary");jS.exports=new GM("tag:yaml.org,2002:binary",{kind:"scalar",resolve:zM,construct:ZM,predicate:KM,represent:WM})});var qS=v((u9,kS)=>{"use strict";var YM=ct(),QM=Object.prototype.hasOwnProperty,JM=Object.prototype.toString;function XM(e){if(e===null)return!0;var t=[],r,n,i,s,a,c=e;for(r=0,n=c.length;r<n;r+=1){if(i=c[r],a=!1,JM.call(i)!=="[object Object]")return!1;for(s in i)if(QM.call(i,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}o(XM,"resolveYamlOmap");function ek(e){return e!==null?e:[]}o(ek,"constructYamlOmap");kS.exports=new YM("tag:yaml.org,2002:omap",{kind:"sequence",resolve:XM,construct:ek})});var LS=v((f9,DS)=>{"use strict";var tk=ct(),rk=Object.prototype.toString;function nk(e){if(e===null)return!0;var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],rk.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}o(nk,"resolveYamlPairs");function ik(e){if(e===null)return[];var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}o(ik,"constructYamlPairs");DS.exports=new tk("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:nk,construct:ik})});var HS=v((d9,FS)=>{"use strict";var ok=ct(),sk=Object.prototype.hasOwnProperty;function ak(e){if(e===null)return!0;var t,r=e;for(t in r)if(sk.call(r,t)&&r[t]!==null)return!1;return!0}o(ak,"resolveYamlSet");function ck(e){return e!==null?e:{}}o(ck,"constructYamlSet");FS.exports=new ok("tag:yaml.org,2002:set",{kind:"mapping",resolve:ak,construct:ck})});var Ko=v((m9,BS)=>{"use strict";var uk=qi();BS.exports=new uk({include:[Yh()],implicit:[CS(),RS()],explicit:[MS(),qS(),LS(),HS()]})});var US=v((g9,VS)=>{"use strict";var lk=ct();function fk(){return!0}o(fk,"resolveJavascriptUndefined");function pk(){}o(pk,"constructJavascriptUndefined");function dk(){return""}o(dk,"representJavascriptUndefined");function hk(e){return typeof e>"u"}o(hk,"isUndefined");VS.exports=new lk("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:fk,construct:pk,predicate:hk,represent:dk})});var zS=v((b9,GS)=>{"use strict";var mk=ct();function gk(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}o(gk,"resolveJavascriptRegExp");function yk(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}o(yk,"constructJavascriptRegExp");function bk(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}o(bk,"representJavascriptRegExp");function vk(e){return Object.prototype.toString.call(e)==="[object RegExp]"}o(vk,"isRegExp");GS.exports=new mk("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:gk,construct:yk,predicate:vk,represent:bk})});var KS=v((_9,WS)=>{"use strict";var Au;try{ZS=require,Au=ZS("esprima")}catch{typeof window<"u"&&(Au=window.esprima)}var ZS,_k=ct();function Sk(e){if(e===null)return!1;try{var t="("+e+")",r=Au.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}o(Sk,"resolveJavascriptFunction");function Ek(e){var t="("+e+")",r=Au.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(s){n.push(s.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}o(Ek,"constructJavascriptFunction");function Ok(e){return e.toString()}o(Ok,"representJavascriptFunction");function Pk(e){return Object.prototype.toString.call(e)==="[object Function]"}o(Pk,"isFunction");WS.exports=new _k("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:Sk,construct:Ek,predicate:Pk,represent:Ok})});var ha=v((E9,QS)=>{"use strict";var YS=qi();QS.exports=YS.DEFAULT=new YS({include:[Ko()],explicit:[US(),zS(),KS()]})});var gE=v((O9,ma)=>{"use strict";var mn=ki(),iE=Zo(),xk=iS(),oE=Ko(),$k=ha(),Vn=Object.prototype.hasOwnProperty,Iu=1,sE=2,aE=3,Cu=4,Jh=1,wk=2,JS=3,Ak=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ik=/[\x85\u2028\u2029]/,Ck=/[,\[\]\{\}]/,cE=/^(?:!|!!|![a-z\-]+!)$/i,uE=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function XS(e){return Object.prototype.toString.call(e)}o(XS,"_class");function Wr(e){return e===10||e===13}o(Wr,"is_EOL");function Fi(e){return e===9||e===32}o(Fi,"is_WHITE_SPACE");function Ht(e){return e===9||e===32||e===10||e===13}o(Ht,"is_WS_OR_EOL");function Yo(e){return e===44||e===91||e===93||e===123||e===125}o(Yo,"is_FLOW_INDICATOR");function Tk(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}o(Tk,"fromHexCode");function Rk(e){return e===120?2:e===117?4:e===85?8:0}o(Rk,"escapedHexLen");function Nk(e){return 48<=e&&e<=57?e-48:-1}o(Nk,"fromDecimalCode");function eE(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
21
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}o(eE,"simpleEscapeSequence");function jk(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}o(jk,"charFromCodepoint");var lE=new Array(256),fE=new Array(256);for(Li=0;Li<256;Li++)lE[Li]=eE(Li)?1:0,fE[Li]=eE(Li);var Li;function Mk(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||$k,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}o(Mk,"State");function pE(e,t){return new iE(t,new xk(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}o(pE,"generateError");function te(e,t){throw pE(e,t)}o(te,"throwError");function Tu(e,t){e.onWarning&&e.onWarning.call(null,pE(e,t))}o(Tu,"throwWarning");var tE={YAML:o(function(t,r,n){var i,s,a;t.version!==null&&te(t,"duplication of %YAML directive"),n.length!==1&&te(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&te(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&te(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Tu(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(t,r,n){var i,s;n.length!==2&&te(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],cE.test(i)||te(t,"ill-formed tag handle (first argument) of the TAG directive"),Vn.call(t.tagMap,i)&&te(t,'there is a previously declared suffix for "'+i+'" tag handle'),uE.test(s)||te(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s},"handleTagDirective")};function Bn(e,t,r,n){var i,s,a,c;if(t<r){if(c=e.input.slice(t,r),n)for(i=0,s=c.length;i<s;i+=1)a=c.charCodeAt(i),a===9||32<=a&&a<=1114111||te(e,"expected valid JSON character");else Ak.test(c)&&te(e,"the stream contains non-printable characters");e.result+=c}}o(Bn,"captureSegment");function rE(e,t,r,n){var i,s,a,c;for(mn.isObject(r)||te(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,c=i.length;a<c;a+=1)s=i[a],Vn.call(t,s)||(t[s]=r[s],n[s]=!0)}o(rE,"mergeMappings");function Qo(e,t,r,n,i,s,a,c){var u,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,l=i.length;u<l;u+=1)Array.isArray(i[u])&&te(e,"nested arrays are not supported inside keys"),typeof i=="object"&&XS(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&XS(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,l=s.length;u<l;u+=1)rE(e,t,s[u],r);else rE(e,t,s,r);else!e.json&&!Vn.call(r,i)&&Vn.call(t,i)&&(e.line=a||e.line,e.position=c||e.position,te(e,"duplicated mapping key")),t[i]=s,delete r[i];return t}o(Qo,"storeMappingPair");function Xh(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++):te(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}o(Xh,"readLineBreak");function it(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Fi(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(Wr(i))for(Xh(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&&Tu(e,"deficient indentation"),n}o(it,"skipSeparationSpace");function Ru(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||Ht(r)))}o(Ru,"testDocumentSeparator");function em(e,t){t===1?e.result+=" ":t>1&&(e.result+=mn.repeat(`
22
- `,t-1))}o(em,"writeFoldedLines");function kk(e,t,r){var n,i,s,a,c,u,l,p,f=e.kind,d=e.result,h;if(h=e.input.charCodeAt(e.position),Ht(h)||Yo(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),Ht(i)||r&&Yo(i)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,c=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),Ht(i)||r&&Yo(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),Ht(n))break}else{if(e.position===e.lineStart&&Ru(e)||r&&Yo(h))break;if(Wr(h))if(u=e.line,l=e.lineStart,p=e.lineIndent,it(e,!1,-1),e.lineIndent>=t){c=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=l,e.lineIndent=p;break}}c&&(Bn(e,s,a,!1),em(e,e.line-u),s=a=e.position,c=!1),Fi(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return Bn(e,s,a,!1),e.result?!0:(e.kind=f,e.result=d,!1)}o(kk,"readPlainScalar");function qk(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(Bn(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 Wr(r)?(Bn(e,n,i,!0),em(e,it(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Ru(e)?te(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);te(e,"unexpected end of the stream within a single quoted scalar")}o(qk,"readSingleQuotedScalar");function Dk(e,t){var r,n,i,s,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return Bn(e,r,e.position,!0),e.position++,!0;if(c===92){if(Bn(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),Wr(c))it(e,!1,t);else if(c<256&&lE[c])e.result+=fE[c],e.position++;else if((a=Rk(c))>0){for(i=a,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=Tk(c))>=0?s=(s<<4)+a:te(e,"expected hexadecimal character");e.result+=jk(s),e.position++}else te(e,"unknown escape sequence");r=n=e.position}else Wr(c)?(Bn(e,r,n,!0),em(e,it(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Ru(e)?te(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}te(e,"unexpected end of the stream within a double quoted scalar")}o(Dk,"readDoubleQuotedScalar");function Lk(e,t){var r=!0,n,i=e.tag,s,a=e.anchor,c,u,l,p,f,d={},h,y,b,g;if(g=e.input.charCodeAt(e.position),g===91)u=93,f=!1,s=[];else if(g===123)u=125,f=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),g=e.input.charCodeAt(++e.position);g!==0;){if(it(e,!0,t),g=e.input.charCodeAt(e.position),g===u)return e.position++,e.tag=i,e.anchor=a,e.kind=f?"mapping":"sequence",e.result=s,!0;r||te(e,"missed comma between flow collection entries"),y=h=b=null,l=p=!1,g===63&&(c=e.input.charCodeAt(e.position+1),Ht(c)&&(l=p=!0,e.position++,it(e,!0,t))),n=e.line,Jo(e,t,Iu,!1,!0),y=e.tag,h=e.result,it(e,!0,t),g=e.input.charCodeAt(e.position),(p||e.line===n)&&g===58&&(l=!0,g=e.input.charCodeAt(++e.position),it(e,!0,t),Jo(e,t,Iu,!1,!0),b=e.result),f?Qo(e,s,d,y,h,b):l?s.push(Qo(e,null,d,y,h,b)):s.push(h),it(e,!0,t),g=e.input.charCodeAt(e.position),g===44?(r=!0,g=e.input.charCodeAt(++e.position)):r=!1}te(e,"unexpected end of the stream within a flow collection")}o(Lk,"readFlowCollection");function Fk(e,t){var r,n,i=Jh,s=!1,a=!1,c=t,u=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)Jh===i?i=f===43?JS:wk:te(e,"repeat of a chomping mode identifier");else if((p=Nk(f))>=0)p===0?te(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?te(e,"repeat of an indentation width identifier"):(c=t+p-1,a=!0);else break;if(Fi(f)){do f=e.input.charCodeAt(++e.position);while(Fi(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Wr(f)&&f!==0)}for(;f!==0;){for(Xh(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!a||e.lineIndent<c)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>c&&(c=e.lineIndent),Wr(f)){u++;continue}if(e.lineIndent<c){i===JS?e.result+=mn.repeat(`
23
- `,s?1+u:u):i===Jh&&s&&(e.result+=`
24
- `);break}for(n?Fi(f)?(l=!0,e.result+=mn.repeat(`
25
- `,s?1+u:u)):l?(l=!1,e.result+=mn.repeat(`
26
- `,u+1)):u===0?s&&(e.result+=" "):e.result+=mn.repeat(`
27
- `,u):e.result+=mn.repeat(`
28
- `,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!Wr(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Bn(e,r,e.position,!1)}return!0}o(Fk,"readBlockScalar");function nE(e,t){var r,n=e.tag,i=e.anchor,s=[],a,c=!1,u;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&!(u!==45||(a=e.input.charCodeAt(e.position+1),!Ht(a)));){if(c=!0,e.position++,it(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Jo(e,t,aE,!1,!0),s.push(e.result),it(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)te(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}o(nE,"readBlockSequence");function Hk(e,t,r){var n,i,s,a,c=e.tag,u=e.anchor,l={},p={},f=null,d=null,h=null,y=!1,b=!1,g;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),g=e.input.charCodeAt(e.position);g!==0;){if(n=e.input.charCodeAt(e.position+1),s=e.line,a=e.position,(g===63||g===58)&&Ht(n))g===63?(y&&(Qo(e,l,p,f,d,null),f=d=h=null),b=!0,y=!0,i=!0):y?(y=!1,i=!0):te(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(Jo(e,r,sE,!1,!0))if(e.line===s){for(g=e.input.charCodeAt(e.position);Fi(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),Ht(g)||te(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(Qo(e,l,p,f,d,null),f=d=h=null),b=!0,y=!1,i=!1,f=e.tag,d=e.result;else if(b)te(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(b)te(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=u,!0;else break;if((e.line===s||e.lineIndent>t)&&(Jo(e,t,Cu,!0,i)&&(y?d=e.result:h=e.result),y||(Qo(e,l,p,f,d,h,s,a),f=d=h=null),it(e,!0,-1),g=e.input.charCodeAt(e.position)),e.lineIndent>t&&g!==0)te(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&Qo(e,l,p,f,d,null),b&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=l),b}o(Hk,"readBlockMapping");function Bk(e){var t,r=!1,n=!1,i,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&te(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):te(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Ht(a);)a===33&&(n?te(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),cE.test(i)||te(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Ck.test(s)&&te(e,"tag suffix cannot contain flow indicator characters")}return s&&!uE.test(s)&&te(e,"tag name cannot contain such characters: "+s),r?e.tag=s:Vn.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:te(e,'undeclared tag handle "'+i+'"'),!0}o(Bk,"readTagProperty");function Vk(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&te(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Ht(r)&&!Yo(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&te(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}o(Vk,"readAnchorProperty");function Uk(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&&!Ht(n)&&!Yo(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&te(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Vn.call(e.anchorMap,r)||te(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],it(e,!0,-1),!0}o(Uk,"readAlias");function Jo(e,t,r,n,i){var s,a,c,u=1,l=!1,p=!1,f,d,h,y,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=c=Cu===r||aE===r,n&&it(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;Bk(e)||Vk(e);)it(e,!0,-1)?(l=!0,c=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):c=!1;if(c&&(c=l||i),(u===1||Cu===r)&&(Iu===r||sE===r?y=t:y=t+1,b=e.position-e.lineStart,u===1?c&&(nE(e,b)||Hk(e,b,y))||Lk(e,y)?p=!0:(a&&Fk(e,y)||qk(e,y)||Dk(e,y)?p=!0:Uk(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&te(e,"alias node should not have any properties")):kk(e,y,Iu===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(p=c&&nE(e,b))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&te(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 Vn.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&te(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)):te(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):te(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}o(Jo,"composeNode");function Gk(e){var t=e.position,r,n,i,s=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(it(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!Ht(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&te(e,"directive name must not be less than one character in length");a!==0;){for(;Fi(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Wr(a));break}if(Wr(a))break;for(r=e.position;a!==0&&!Ht(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Xh(e),Vn.call(tE,n)?tE[n](e,n,i):Tu(e,'unknown document directive "'+n+'"')}if(it(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,it(e,!0,-1)):s&&te(e,"directives end mark is expected"),Jo(e,e.lineIndent-1,Cu,!1,!0),it(e,!0,-1),e.checkLineBreaks&&Ik.test(e.input.slice(t,e.position))&&Tu(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ru(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,it(e,!0,-1));return}if(e.position<e.length-1)te(e,"end of the stream or a document separator is expected");else return}o(Gk,"readDocument");function dE(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
29
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new Mk(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,te(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;)Gk(r);return r.documents}o(dE,"loadDocuments");function hE(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=dE(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}o(hE,"loadAll");function mE(e,t){var r=dE(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new iE("expected a single document in the stream, but found more")}}o(mE,"load");function zk(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),hE(e,t,mn.extend({schema:oE},r))}o(zk,"safeLoadAll");function Zk(e,t){return mE(e,mn.extend({schema:oE},t))}o(Zk,"safeLoad");ma.exports.loadAll=hE;ma.exports.load=mE;ma.exports.safeLoadAll=zk;ma.exports.safeLoad=Zk});var LE=v((x9,im)=>{"use strict";var ya=ki(),ba=Zo(),Wk=ha(),Kk=Ko(),PE=Object.prototype.toString,xE=Object.prototype.hasOwnProperty,Yk=9,ga=10,Qk=13,Jk=32,Xk=33,e3=34,$E=35,t3=37,r3=38,n3=39,i3=42,wE=44,o3=45,AE=58,s3=61,a3=62,c3=63,u3=64,IE=91,CE=93,l3=96,TE=123,f3=124,RE=125,Ot={};Ot[0]="\\0";Ot[7]="\\a";Ot[8]="\\b";Ot[9]="\\t";Ot[10]="\\n";Ot[11]="\\v";Ot[12]="\\f";Ot[13]="\\r";Ot[27]="\\e";Ot[34]='\\"';Ot[92]="\\\\";Ot[133]="\\N";Ot[160]="\\_";Ot[8232]="\\L";Ot[8233]="\\P";var p3=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function d3(e,t){var r,n,i,s,a,c,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)a=n[i],c=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),u=e.compiledTypeMap.fallback[a],u&&xE.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}o(d3,"compileStyleMap");function yE(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 ba("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ya.repeat("0",n-t.length)+t}o(yE,"encodeHex");function h3(e){this.schema=e.schema||Wk,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=ya.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=d3(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}o(h3,"State");function bE(e,t){for(var r=ya.repeat(" ",t),n=0,i=-1,s="",a,c=e.length;n<c;)i=e.indexOf(`
17
+ \x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){s=" ... ",a-=5;break}return c=this.buffer.slice(i,a),uS.repeat(" ",t)+n+c+s+`
18
+ `+uS.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");tm.prototype.toString=o(function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
19
+ `+r)),n},"toString");lS.exports=tm});var ct=v((zV,dS)=>{"use strict";var pS=Qo(),dM=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],hM=["scalar","sequence","mapping"];function mM(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}o(mM,"compileStyleAliases");function gM(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(dM.indexOf(r)===-1)throw new pS('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=mM(t.styleAliases||null),hM.indexOf(this.kind)===-1)throw new pS('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}o(gM,"Type");dS.exports=gM});var Fi=v((WV,mS)=>{"use strict";var hS=Li(),Cu=Qo(),yM=ct();function rm(e,t,r){var n=[];return e.include.forEach(function(i){r=rm(i,t,r)}),e[t].forEach(function(i){r.forEach(function(s,a){s.tag===i.tag&&s.kind===i.kind&&n.push(a)}),r.push(i)}),r.filter(function(i,s){return n.indexOf(s)===-1})}o(rm,"compileList");function bM(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(o(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}o(bM,"compileMap");function Jo(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 Cu("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=rm(this,"implicit",[]),this.compiledExplicit=rm(this,"explicit",[]),this.compiledTypeMap=bM(this.compiledImplicit,this.compiledExplicit)}o(Jo,"Schema");Jo.DEFAULT=null;Jo.create=o(function(){var t,r;switch(arguments.length){case 1:t=Jo.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new Cu("Wrong number of arguments for Schema.create function")}if(t=hS.toArray(t),r=hS.toArray(r),!t.every(function(n){return n instanceof Jo}))throw new Cu("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof yM}))throw new Cu("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Jo({include:t,explicit:r})},"createSchema");mS.exports=Jo});var yS=v((YV,gS)=>{"use strict";var vM=ct();gS.exports=new vM("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")})});var vS=v((JV,bS)=>{"use strict";var _M=ct();bS.exports=new _M("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")})});var SS=v((e9,_S)=>{"use strict";var SM=ct();_S.exports=new SM("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")})});var Tu=v((r9,ES)=>{"use strict";var EM=Fi();ES.exports=new EM({explicit:[yS(),vS(),SS()]})});var PS=v((n9,OS)=>{"use strict";var OM=ct();function PM(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}o(PM,"resolveYamlNull");function xM(){return null}o(xM,"constructYamlNull");function $M(e){return e===null}o($M,"isNull");OS.exports=new OM("tag:yaml.org,2002:null",{kind:"scalar",resolve:PM,construct:xM,predicate:$M,represent:{canonical:o(function(){return"~"},"canonical"),lowercase:o(function(){return"null"},"lowercase"),uppercase:o(function(){return"NULL"},"uppercase"),camelcase:o(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var $S=v((o9,xS)=>{"use strict";var wM=ct();function AM(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}o(AM,"resolveYamlBoolean");function IM(e){return e==="true"||e==="True"||e==="TRUE"}o(IM,"constructYamlBoolean");function CM(e){return Object.prototype.toString.call(e)==="[object Boolean]"}o(CM,"isBoolean");xS.exports=new wM("tag:yaml.org,2002:bool",{kind:"scalar",resolve:AM,construct:IM,predicate:CM,represent:{lowercase:o(function(e){return e?"true":"false"},"lowercase"),uppercase:o(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:o(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var AS=v((a9,wS)=>{"use strict";var TM=Li(),RM=ct();function NM(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}o(NM,"isHexCode");function jM(e){return 48<=e&&e<=55}o(jM,"isOctCode");function MM(e){return 48<=e&&e<=57}o(MM,"isDecCode");function kM(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(!NM(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!jM(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(!MM(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}o(kM,"resolveYamlInteger");function qM(e){var t=e,r=1,n,i,s=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(a){s.unshift(parseInt(a,10))}),t=0,i=1,s.forEach(function(a){t+=a*i,i*=60}),r*t):r*parseInt(t,10)}o(qM,"constructYamlInteger");function DM(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!TM.isNegativeZero(e)}o(DM,"isInteger");wS.exports=new RM("tag:yaml.org,2002:int",{kind:"scalar",resolve:kM,construct:qM,predicate:DM,represent:{binary:o(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:o(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:o(function(e){return e.toString(10)},"decimal"),hexadecimal:o(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var TS=v((u9,CS)=>{"use strict";var IS=Li(),LM=ct(),FM=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 HM(e){return!(e===null||!FM.test(e)||e[e.length-1]==="_")}o(HM,"resolveYamlFloat");function BM(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(s){i.unshift(parseFloat(s,10))}),t=0,n=1,i.forEach(function(s){t+=s*n,n*=60}),r*t):r*parseFloat(t,10)}o(BM,"constructYamlFloat");var VM=/^[-+]?[0-9]+e/;function UM(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(IS.isNegativeZero(e))return"-0.0";return r=e.toString(10),VM.test(r)?r.replace("e",".e"):r}o(UM,"representYamlFloat");function GM(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||IS.isNegativeZero(e))}o(GM,"isFloat");CS.exports=new LM("tag:yaml.org,2002:float",{kind:"scalar",resolve:HM,construct:BM,predicate:GM,represent:UM,defaultStyle:"lowercase"})});var nm=v((f9,RS)=>{"use strict";var zM=Fi();RS.exports=new zM({include:[Tu()],implicit:[PS(),$S(),AS(),TS()]})});var im=v((p9,NS)=>{"use strict";var ZM=Fi();NS.exports=new ZM({include:[nm()]})});var qS=v((d9,kS)=>{"use strict";var WM=ct(),jS=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),MS=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 KM(e){return e===null?!1:jS.exec(e)!==null||MS.exec(e)!==null}o(KM,"resolveYamlTimestamp");function YM(e){var t,r,n,i,s,a,c,u=0,l=null,p,f,d;if(t=jS.exec(e),t===null&&(t=MS.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],a=+t[5],c=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(p=+t[10],f=+(t[11]||0),l=(p*60+f)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,s,a,c,u)),l&&d.setTime(d.getTime()-l),d}o(YM,"constructYamlTimestamp");function QM(e){return e.toISOString()}o(QM,"representYamlTimestamp");kS.exports=new WM("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:KM,construct:YM,instanceOf:Date,represent:QM})});var LS=v((m9,DS)=>{"use strict";var JM=ct();function XM(e){return e==="<<"||e===null}o(XM,"resolveYamlMerge");DS.exports=new JM("tag:yaml.org,2002:merge",{kind:"scalar",resolve:XM})});var BS=v((y9,HS)=>{"use strict";var Hi;try{FS=require,Hi=FS("buffer").Buffer}catch{}var FS,ek=ct(),om=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
20
+ \r`;function tk(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=om;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}o(tk,"resolveYamlBinary");function rk(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=om,a=0,c=[];for(t=0;t<i;t++)t%4===0&&t&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),Hi?Hi.from?Hi.from(c):new Hi(c):c}o(rk,"constructYamlBinary");function nk(e){var t="",r=0,n,i,s=e.length,a=om;for(n=0;n<s;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}o(nk,"representYamlBinary");function ik(e){return Hi&&Hi.isBuffer(e)}o(ik,"isBinary");HS.exports=new ek("tag:yaml.org,2002:binary",{kind:"scalar",resolve:tk,construct:rk,predicate:ik,represent:nk})});var US=v((v9,VS)=>{"use strict";var ok=ct(),sk=Object.prototype.hasOwnProperty,ak=Object.prototype.toString;function ck(e){if(e===null)return!0;var t=[],r,n,i,s,a,c=e;for(r=0,n=c.length;r<n;r+=1){if(i=c[r],a=!1,ak.call(i)!=="[object Object]")return!1;for(s in i)if(sk.call(i,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}o(ck,"resolveYamlOmap");function uk(e){return e!==null?e:[]}o(uk,"constructYamlOmap");VS.exports=new ok("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ck,construct:uk})});var zS=v((S9,GS)=>{"use strict";var lk=ct(),fk=Object.prototype.toString;function pk(e){if(e===null)return!0;var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],fk.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}o(pk,"resolveYamlPairs");function dk(e){if(e===null)return[];var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}o(dk,"constructYamlPairs");GS.exports=new lk("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:pk,construct:dk})});var WS=v((O9,ZS)=>{"use strict";var hk=ct(),mk=Object.prototype.hasOwnProperty;function gk(e){if(e===null)return!0;var t,r=e;for(t in r)if(mk.call(r,t)&&r[t]!==null)return!1;return!0}o(gk,"resolveYamlSet");function yk(e){return e!==null?e:{}}o(yk,"constructYamlSet");ZS.exports=new hk("tag:yaml.org,2002:set",{kind:"mapping",resolve:gk,construct:yk})});var Xo=v((x9,KS)=>{"use strict";var bk=Fi();KS.exports=new bk({include:[im()],implicit:[qS(),LS()],explicit:[BS(),US(),zS(),WS()]})});var QS=v(($9,YS)=>{"use strict";var vk=ct();function _k(){return!0}o(_k,"resolveJavascriptUndefined");function Sk(){}o(Sk,"constructJavascriptUndefined");function Ek(){return""}o(Ek,"representJavascriptUndefined");function Ok(e){return typeof e>"u"}o(Ok,"isUndefined");YS.exports=new vk("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:_k,construct:Sk,predicate:Ok,represent:Ek})});var XS=v((A9,JS)=>{"use strict";var Pk=ct();function xk(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}o(xk,"resolveJavascriptRegExp");function $k(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}o($k,"constructJavascriptRegExp");function wk(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}o(wk,"representJavascriptRegExp");function Ak(e){return Object.prototype.toString.call(e)==="[object RegExp]"}o(Ak,"isRegExp");JS.exports=new Pk("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:xk,construct:$k,predicate:Ak,represent:wk})});var rE=v((C9,tE)=>{"use strict";var Ru;try{eE=require,Ru=eE("esprima")}catch{typeof window<"u"&&(Ru=window.esprima)}var eE,Ik=ct();function Ck(e){if(e===null)return!1;try{var t="("+e+")",r=Ru.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}o(Ck,"resolveJavascriptFunction");function Tk(e){var t="("+e+")",r=Ru.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(s){n.push(s.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}o(Tk,"constructJavascriptFunction");function Rk(e){return e.toString()}o(Rk,"representJavascriptFunction");function Nk(e){return Object.prototype.toString.call(e)==="[object Function]"}o(Nk,"isFunction");tE.exports=new Ik("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:Ck,construct:Tk,predicate:Nk,represent:Rk})});var ga=v((R9,iE)=>{"use strict";var nE=Fi();iE.exports=nE.DEFAULT=new nE({include:[Xo()],explicit:[QS(),XS(),rE()]})});var OE=v((N9,ya)=>{"use strict";var gn=Li(),fE=Qo(),jk=fS(),pE=Xo(),Mk=ga(),Gn=Object.prototype.hasOwnProperty,Nu=1,dE=2,hE=3,ju=4,sm=1,kk=2,oE=3,qk=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Dk=/[\x85\u2028\u2029]/,Lk=/[,\[\]\{\}]/,mE=/^(?:!|!!|![a-z\-]+!)$/i,gE=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function sE(e){return Object.prototype.toString.call(e)}o(sE,"_class");function Yr(e){return e===10||e===13}o(Yr,"is_EOL");function Vi(e){return e===9||e===32}o(Vi,"is_WHITE_SPACE");function Ut(e){return e===9||e===32||e===10||e===13}o(Ut,"is_WS_OR_EOL");function es(e){return e===44||e===91||e===93||e===123||e===125}o(es,"is_FLOW_INDICATOR");function Fk(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}o(Fk,"fromHexCode");function Hk(e){return e===120?2:e===117?4:e===85?8:0}o(Hk,"escapedHexLen");function Bk(e){return 48<=e&&e<=57?e-48:-1}o(Bk,"fromDecimalCode");function aE(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
21
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}o(aE,"simpleEscapeSequence");function Vk(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}o(Vk,"charFromCodepoint");var yE=new Array(256),bE=new Array(256);for(Bi=0;Bi<256;Bi++)yE[Bi]=aE(Bi)?1:0,bE[Bi]=aE(Bi);var Bi;function Uk(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Mk,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}o(Uk,"State");function vE(e,t){return new fE(t,new jk(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}o(vE,"generateError");function ee(e,t){throw vE(e,t)}o(ee,"throwError");function Mu(e,t){e.onWarning&&e.onWarning.call(null,vE(e,t))}o(Mu,"throwWarning");var cE={YAML:o(function(t,r,n){var i,s,a;t.version!==null&&ee(t,"duplication of %YAML directive"),n.length!==1&&ee(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&ee(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&ee(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Mu(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(t,r,n){var i,s;n.length!==2&&ee(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],mE.test(i)||ee(t,"ill-formed tag handle (first argument) of the TAG directive"),Gn.call(t.tagMap,i)&&ee(t,'there is a previously declared suffix for "'+i+'" tag handle'),gE.test(s)||ee(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s},"handleTagDirective")};function Un(e,t,r,n){var i,s,a,c;if(t<r){if(c=e.input.slice(t,r),n)for(i=0,s=c.length;i<s;i+=1)a=c.charCodeAt(i),a===9||32<=a&&a<=1114111||ee(e,"expected valid JSON character");else qk.test(c)&&ee(e,"the stream contains non-printable characters");e.result+=c}}o(Un,"captureSegment");function uE(e,t,r,n){var i,s,a,c;for(gn.isObject(r)||ee(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,c=i.length;a<c;a+=1)s=i[a],Gn.call(t,s)||(t[s]=r[s],n[s]=!0)}o(uE,"mergeMappings");function ts(e,t,r,n,i,s,a,c){var u,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,l=i.length;u<l;u+=1)Array.isArray(i[u])&&ee(e,"nested arrays are not supported inside keys"),typeof i=="object"&&sE(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&sE(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,l=s.length;u<l;u+=1)uE(e,t,s[u],r);else uE(e,t,s,r);else!e.json&&!Gn.call(r,i)&&Gn.call(t,i)&&(e.line=a||e.line,e.position=c||e.position,ee(e,"duplicated mapping key")),t[i]=s,delete r[i];return t}o(ts,"storeMappingPair");function am(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++):ee(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}o(am,"readLineBreak");function it(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Vi(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(Yr(i))for(am(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&&Mu(e,"deficient indentation"),n}o(it,"skipSeparationSpace");function ku(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||Ut(r)))}o(ku,"testDocumentSeparator");function cm(e,t){t===1?e.result+=" ":t>1&&(e.result+=gn.repeat(`
22
+ `,t-1))}o(cm,"writeFoldedLines");function Gk(e,t,r){var n,i,s,a,c,u,l,p,f=e.kind,d=e.result,h;if(h=e.input.charCodeAt(e.position),Ut(h)||es(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),Ut(i)||r&&es(i)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,c=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),Ut(i)||r&&es(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),Ut(n))break}else{if(e.position===e.lineStart&&ku(e)||r&&es(h))break;if(Yr(h))if(u=e.line,l=e.lineStart,p=e.lineIndent,it(e,!1,-1),e.lineIndent>=t){c=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=l,e.lineIndent=p;break}}c&&(Un(e,s,a,!1),cm(e,e.line-u),s=a=e.position,c=!1),Vi(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return Un(e,s,a,!1),e.result?!0:(e.kind=f,e.result=d,!1)}o(Gk,"readPlainScalar");function zk(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(Un(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 Yr(r)?(Un(e,n,i,!0),cm(e,it(e,!1,t)),n=i=e.position):e.position===e.lineStart&&ku(e)?ee(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);ee(e,"unexpected end of the stream within a single quoted scalar")}o(zk,"readSingleQuotedScalar");function Zk(e,t){var r,n,i,s,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return Un(e,r,e.position,!0),e.position++,!0;if(c===92){if(Un(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),Yr(c))it(e,!1,t);else if(c<256&&yE[c])e.result+=bE[c],e.position++;else if((a=Hk(c))>0){for(i=a,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=Fk(c))>=0?s=(s<<4)+a:ee(e,"expected hexadecimal character");e.result+=Vk(s),e.position++}else ee(e,"unknown escape sequence");r=n=e.position}else Yr(c)?(Un(e,r,n,!0),cm(e,it(e,!1,t)),r=n=e.position):e.position===e.lineStart&&ku(e)?ee(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}ee(e,"unexpected end of the stream within a double quoted scalar")}o(Zk,"readDoubleQuotedScalar");function Wk(e,t){var r=!0,n,i=e.tag,s,a=e.anchor,c,u,l,p,f,d={},h,y,b,g;if(g=e.input.charCodeAt(e.position),g===91)u=93,f=!1,s=[];else if(g===123)u=125,f=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),g=e.input.charCodeAt(++e.position);g!==0;){if(it(e,!0,t),g=e.input.charCodeAt(e.position),g===u)return e.position++,e.tag=i,e.anchor=a,e.kind=f?"mapping":"sequence",e.result=s,!0;r||ee(e,"missed comma between flow collection entries"),y=h=b=null,l=p=!1,g===63&&(c=e.input.charCodeAt(e.position+1),Ut(c)&&(l=p=!0,e.position++,it(e,!0,t))),n=e.line,rs(e,t,Nu,!1,!0),y=e.tag,h=e.result,it(e,!0,t),g=e.input.charCodeAt(e.position),(p||e.line===n)&&g===58&&(l=!0,g=e.input.charCodeAt(++e.position),it(e,!0,t),rs(e,t,Nu,!1,!0),b=e.result),f?ts(e,s,d,y,h,b):l?s.push(ts(e,null,d,y,h,b)):s.push(h),it(e,!0,t),g=e.input.charCodeAt(e.position),g===44?(r=!0,g=e.input.charCodeAt(++e.position)):r=!1}ee(e,"unexpected end of the stream within a flow collection")}o(Wk,"readFlowCollection");function Kk(e,t){var r,n,i=sm,s=!1,a=!1,c=t,u=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)sm===i?i=f===43?oE:kk:ee(e,"repeat of a chomping mode identifier");else if((p=Bk(f))>=0)p===0?ee(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?ee(e,"repeat of an indentation width identifier"):(c=t+p-1,a=!0);else break;if(Vi(f)){do f=e.input.charCodeAt(++e.position);while(Vi(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Yr(f)&&f!==0)}for(;f!==0;){for(am(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!a||e.lineIndent<c)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>c&&(c=e.lineIndent),Yr(f)){u++;continue}if(e.lineIndent<c){i===oE?e.result+=gn.repeat(`
23
+ `,s?1+u:u):i===sm&&s&&(e.result+=`
24
+ `);break}for(n?Vi(f)?(l=!0,e.result+=gn.repeat(`
25
+ `,s?1+u:u)):l?(l=!1,e.result+=gn.repeat(`
26
+ `,u+1)):u===0?s&&(e.result+=" "):e.result+=gn.repeat(`
27
+ `,u):e.result+=gn.repeat(`
28
+ `,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!Yr(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Un(e,r,e.position,!1)}return!0}o(Kk,"readBlockScalar");function lE(e,t){var r,n=e.tag,i=e.anchor,s=[],a,c=!1,u;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&!(u!==45||(a=e.input.charCodeAt(e.position+1),!Ut(a)));){if(c=!0,e.position++,it(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,rs(e,t,hE,!1,!0),s.push(e.result),it(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)ee(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}o(lE,"readBlockSequence");function Yk(e,t,r){var n,i,s,a,c=e.tag,u=e.anchor,l={},p={},f=null,d=null,h=null,y=!1,b=!1,g;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),g=e.input.charCodeAt(e.position);g!==0;){if(n=e.input.charCodeAt(e.position+1),s=e.line,a=e.position,(g===63||g===58)&&Ut(n))g===63?(y&&(ts(e,l,p,f,d,null),f=d=h=null),b=!0,y=!0,i=!0):y?(y=!1,i=!0):ee(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(rs(e,r,dE,!1,!0))if(e.line===s){for(g=e.input.charCodeAt(e.position);Vi(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),Ut(g)||ee(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(ts(e,l,p,f,d,null),f=d=h=null),b=!0,y=!1,i=!1,f=e.tag,d=e.result;else if(b)ee(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(b)ee(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=u,!0;else break;if((e.line===s||e.lineIndent>t)&&(rs(e,t,ju,!0,i)&&(y?d=e.result:h=e.result),y||(ts(e,l,p,f,d,h,s,a),f=d=h=null),it(e,!0,-1),g=e.input.charCodeAt(e.position)),e.lineIndent>t&&g!==0)ee(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&ts(e,l,p,f,d,null),b&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=l),b}o(Yk,"readBlockMapping");function Qk(e){var t,r=!1,n=!1,i,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&ee(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):ee(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Ut(a);)a===33&&(n?ee(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),mE.test(i)||ee(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Lk.test(s)&&ee(e,"tag suffix cannot contain flow indicator characters")}return s&&!gE.test(s)&&ee(e,"tag name cannot contain such characters: "+s),r?e.tag=s:Gn.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:ee(e,'undeclared tag handle "'+i+'"'),!0}o(Qk,"readTagProperty");function Jk(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&ee(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Ut(r)&&!es(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ee(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}o(Jk,"readAnchorProperty");function Xk(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&&!Ut(n)&&!es(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ee(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Gn.call(e.anchorMap,r)||ee(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],it(e,!0,-1),!0}o(Xk,"readAlias");function rs(e,t,r,n,i){var s,a,c,u=1,l=!1,p=!1,f,d,h,y,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=c=ju===r||hE===r,n&&it(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;Qk(e)||Jk(e);)it(e,!0,-1)?(l=!0,c=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):c=!1;if(c&&(c=l||i),(u===1||ju===r)&&(Nu===r||dE===r?y=t:y=t+1,b=e.position-e.lineStart,u===1?c&&(lE(e,b)||Yk(e,b,y))||Wk(e,y)?p=!0:(a&&Kk(e,y)||zk(e,y)||Zk(e,y)?p=!0:Xk(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&ee(e,"alias node should not have any properties")):Gk(e,y,Nu===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(p=c&&lE(e,b))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ee(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 Gn.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&ee(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)):ee(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):ee(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}o(rs,"composeNode");function e3(e){var t=e.position,r,n,i,s=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(it(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!Ut(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&ee(e,"directive name must not be less than one character in length");a!==0;){for(;Vi(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Yr(a));break}if(Yr(a))break;for(r=e.position;a!==0&&!Ut(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&am(e),Gn.call(cE,n)?cE[n](e,n,i):Mu(e,'unknown document directive "'+n+'"')}if(it(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,it(e,!0,-1)):s&&ee(e,"directives end mark is expected"),rs(e,e.lineIndent-1,ju,!1,!0),it(e,!0,-1),e.checkLineBreaks&&Dk.test(e.input.slice(t,e.position))&&Mu(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ku(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,it(e,!0,-1));return}if(e.position<e.length-1)ee(e,"end of the stream or a document separator is expected");else return}o(e3,"readDocument");function _E(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
29
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new Uk(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,ee(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;)e3(r);return r.documents}o(_E,"loadDocuments");function SE(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=_E(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}o(SE,"loadAll");function EE(e,t){var r=_E(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new fE("expected a single document in the stream, but found more")}}o(EE,"load");function t3(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),SE(e,t,gn.extend({schema:pE},r))}o(t3,"safeLoadAll");function r3(e,t){return EE(e,gn.extend({schema:pE},t))}o(r3,"safeLoad");ya.exports.loadAll=SE;ya.exports.load=EE;ya.exports.safeLoadAll=t3;ya.exports.safeLoad=r3});var zE=v((M9,pm)=>{"use strict";var va=Li(),_a=Qo(),n3=ga(),i3=Xo(),TE=Object.prototype.toString,RE=Object.prototype.hasOwnProperty,o3=9,ba=10,s3=13,a3=32,c3=33,u3=34,NE=35,l3=37,f3=38,p3=39,d3=42,jE=44,h3=45,ME=58,m3=61,g3=62,y3=63,b3=64,kE=91,qE=93,v3=96,DE=123,_3=124,LE=125,Pt={};Pt[0]="\\0";Pt[7]="\\a";Pt[8]="\\b";Pt[9]="\\t";Pt[10]="\\n";Pt[11]="\\v";Pt[12]="\\f";Pt[13]="\\r";Pt[27]="\\e";Pt[34]='\\"';Pt[92]="\\\\";Pt[133]="\\N";Pt[160]="\\_";Pt[8232]="\\L";Pt[8233]="\\P";var S3=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function E3(e,t){var r,n,i,s,a,c,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)a=n[i],c=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),u=e.compiledTypeMap.fallback[a],u&&RE.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}o(E3,"compileStyleMap");function PE(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 _a("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+va.repeat("0",n-t.length)+t}o(PE,"encodeHex");function O3(e){this.schema=e.schema||n3,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=va.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=E3(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}o(O3,"State");function xE(e,t){for(var r=va.repeat(" ",t),n=0,i=-1,s="",a,c=e.length;n<c;)i=e.indexOf(`
30
30
  `,n),i===-1?(a=e.slice(n),n=c):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
31
- `&&(s+=r),s+=a;return s}o(bE,"indentString");function tm(e,t){return`
32
- `+ya.repeat(" ",e.indent*t)}o(tm,"generateNextLine");function m3(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}o(m3,"testImplicitResolving");function nm(e){return e===Jk||e===Yk}o(nm,"isWhitespace");function Xo(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}o(Xo,"isPrintable");function g3(e){return Xo(e)&&!nm(e)&&e!==65279&&e!==Qk&&e!==ga}o(g3,"isNsChar");function vE(e,t){return Xo(e)&&e!==65279&&e!==wE&&e!==IE&&e!==CE&&e!==TE&&e!==RE&&e!==AE&&(e!==$E||t&&g3(t))}o(vE,"isPlainSafe");function y3(e){return Xo(e)&&e!==65279&&!nm(e)&&e!==o3&&e!==c3&&e!==AE&&e!==wE&&e!==IE&&e!==CE&&e!==TE&&e!==RE&&e!==$E&&e!==r3&&e!==i3&&e!==Xk&&e!==f3&&e!==s3&&e!==a3&&e!==n3&&e!==e3&&e!==t3&&e!==u3&&e!==l3}o(y3,"isPlainSafeFirst");function NE(e){var t=/^\n* /;return t.test(e)}o(NE,"needIndentIndicator");var jE=1,ME=2,kE=3,qE=4,Nu=5;function b3(e,t,r,n,i){var s,a,c,u=!1,l=!1,p=n!==-1,f=-1,d=y3(e.charCodeAt(0))&&!nm(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),!Xo(a))return Nu;c=s>0?e.charCodeAt(s-1):null,d=d&&vE(a,c)}else{for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),a===ga)u=!0,p&&(l=l||s-f-1>n&&e[f+1]!==" ",f=s);else if(!Xo(a))return Nu;c=s>0?e.charCodeAt(s-1):null,d=d&&vE(a,c)}l=l||p&&s-f-1>n&&e[f+1]!==" "}return!u&&!l?d&&!i(e)?jE:ME:r>9&&NE(e)?Nu:l?qE:kE}o(b3,"chooseScalarStyle");function v3(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&p3.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(u){return m3(e,u)}switch(o(c,"testAmbiguity"),b3(t,a,e.indent,s,c)){case jE:return t;case ME:return"'"+t.replace(/'/g,"''")+"'";case kE:return"|"+_E(t,e.indent)+SE(bE(t,i));case qE:return">"+_E(t,e.indent)+SE(bE(_3(t,s),i));case Nu:return'"'+S3(t,s)+'"';default:throw new ba("impossible error: invalid scalar style")}}()}o(v3,"writeScalar");function _E(e,t){var r=NE(e)?String(t):"",n=e[e.length-1]===`
31
+ `&&(s+=r),s+=a;return s}o(xE,"indentString");function um(e,t){return`
32
+ `+va.repeat(" ",e.indent*t)}o(um,"generateNextLine");function P3(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}o(P3,"testImplicitResolving");function fm(e){return e===a3||e===o3}o(fm,"isWhitespace");function ns(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}o(ns,"isPrintable");function x3(e){return ns(e)&&!fm(e)&&e!==65279&&e!==s3&&e!==ba}o(x3,"isNsChar");function $E(e,t){return ns(e)&&e!==65279&&e!==jE&&e!==kE&&e!==qE&&e!==DE&&e!==LE&&e!==ME&&(e!==NE||t&&x3(t))}o($E,"isPlainSafe");function $3(e){return ns(e)&&e!==65279&&!fm(e)&&e!==h3&&e!==y3&&e!==ME&&e!==jE&&e!==kE&&e!==qE&&e!==DE&&e!==LE&&e!==NE&&e!==f3&&e!==d3&&e!==c3&&e!==_3&&e!==m3&&e!==g3&&e!==p3&&e!==u3&&e!==l3&&e!==b3&&e!==v3}o($3,"isPlainSafeFirst");function FE(e){var t=/^\n* /;return t.test(e)}o(FE,"needIndentIndicator");var HE=1,BE=2,VE=3,UE=4,qu=5;function w3(e,t,r,n,i){var s,a,c,u=!1,l=!1,p=n!==-1,f=-1,d=$3(e.charCodeAt(0))&&!fm(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),!ns(a))return qu;c=s>0?e.charCodeAt(s-1):null,d=d&&$E(a,c)}else{for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),a===ba)u=!0,p&&(l=l||s-f-1>n&&e[f+1]!==" ",f=s);else if(!ns(a))return qu;c=s>0?e.charCodeAt(s-1):null,d=d&&$E(a,c)}l=l||p&&s-f-1>n&&e[f+1]!==" "}return!u&&!l?d&&!i(e)?HE:BE:r>9&&FE(e)?qu:l?UE:VE}o(w3,"chooseScalarStyle");function A3(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&S3.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(u){return P3(e,u)}switch(o(c,"testAmbiguity"),w3(t,a,e.indent,s,c)){case HE:return t;case BE:return"'"+t.replace(/'/g,"''")+"'";case VE:return"|"+wE(t,e.indent)+AE(xE(t,i));case UE:return">"+wE(t,e.indent)+AE(xE(I3(t,s),i));case qu:return'"'+C3(t,s)+'"';default:throw new _a("impossible error: invalid scalar style")}}()}o(A3,"writeScalar");function wE(e,t){var r=FE(e)?String(t):"",n=e[e.length-1]===`
33
33
  `,i=n&&(e[e.length-2]===`
34
34
  `||e===`
35
35
  `),s=i?"+":n?"":"-";return r+s+`
36
- `}o(_E,"blockHeader");function SE(e){return e[e.length-1]===`
37
- `?e.slice(0,-1):e}o(SE,"dropEndingNewline");function _3(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var l=e.indexOf(`
38
- `);return l=l!==-1?l:e.length,r.lastIndex=l,EE(e.slice(0,l),t)}(),i=e[0]===`
36
+ `}o(wE,"blockHeader");function AE(e){return e[e.length-1]===`
37
+ `?e.slice(0,-1):e}o(AE,"dropEndingNewline");function I3(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var l=e.indexOf(`
38
+ `);return l=l!==-1?l:e.length,r.lastIndex=l,IE(e.slice(0,l),t)}(),i=e[0]===`
39
39
  `||e[0]===" ",s,a;a=r.exec(e);){var c=a[1],u=a[2];s=u[0]===" ",n+=c+(!i&&!s&&u!==""?`
40
- `:"")+EE(u,t),i=s}return n}o(_3,"foldString");function EE(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,a=0,c=0,u="";n=r.exec(e);)c=n.index,c-i>t&&(s=a>i?a:c,u+=`
40
+ `:"")+IE(u,t),i=s}return n}o(I3,"foldString");function IE(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,a=0,c=0,u="";n=r.exec(e);)c=n.index,c-i>t&&(s=a>i?a:c,u+=`
41
41
  `+e.slice(i,s),i=s+1),a=c;return u+=`
42
42
  `,e.length-i>t&&a>i?u+=e.slice(i,a)+`
43
- `+e.slice(a+1):u+=e.slice(i),u.slice(1)}o(EE,"foldLine");function S3(e){for(var t="",r,n,i,s=0;s<e.length;s++){if(r=e.charCodeAt(s),r>=55296&&r<=56319&&(n=e.charCodeAt(s+1),n>=56320&&n<=57343)){t+=yE((r-55296)*1024+n-56320+65536),s++;continue}i=Ot[r],t+=!i&&Xo(r)?e[s]:i||yE(r)}return t}o(S3,"escapeString");function E3(e,t,r){var n="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Hi(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}o(E3,"writeFlowSequence");function O3(e,t,r,n){var i="",s=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)Hi(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=tm(e,t)),e.dump&&ga===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}o(O3,"writeBlockSequence");function P3(e,t,r){var n="",i=e.tag,s=Object.keys(r),a,c,u,l,p;for(a=0,c=s.length;a<c;a+=1)p="",a!==0&&(p+=", "),e.condenseFlow&&(p+='"'),u=s[a],l=r[u],Hi(e,t,u,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Hi(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}o(P3,"writeFlowMapping");function x3(e,t,r,n){var i="",s=e.tag,a=Object.keys(r),c,u,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 ba("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)d="",(!n||c!==0)&&(d+=tm(e,t)),l=a[c],p=r[l],Hi(e,t+1,l,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&ga===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=tm(e,t)),Hi(e,t+1,p,!0,f)&&(e.dump&&ga===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=s,e.dump=i||"{}"}o(x3,"writeBlockMapping");function OE(e,t,r){var n,i,s,a,c,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,a=i.length;s<a;s+=1)if(c=i[s],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(e.tag=r?c.tag:"?",c.represent){if(u=e.styleMap[c.tag]||c.defaultStyle,PE.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(xE.call(c.represent,u))n=c.represent[u](t,u);else throw new ba("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}o(OE,"detectType");function Hi(e,t,r,n,i,s){e.tag=null,e.dump=r,OE(e,r,!1)||OE(e,r,!0);var a=PE.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var c=a==="[object Object]"||a==="[object Array]",u,l;if(c&&(u=e.duplicates.indexOf(r),l=u!==-1),(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&t>0)&&(i=!1),l&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(c&&l&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(x3(e,t,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(P3(e,t,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump));else if(a==="[object Array]"){var p=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(O3(e,p,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(E3(e,p,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&v3(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new ba("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}o(Hi,"writeNode");function $3(e,t){var r=[],n=[],i,s;for(rm(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}o($3,"getDuplicateReferences");function rm(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)rm(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)rm(e[n[i]],t,r)}o(rm,"inspectNode");function DE(e,t){t=t||{};var r=new h3(t);return r.noRefs||$3(e,r),Hi(r,0,e,!0,!0)?r.dump+`
44
- `:""}o(DE,"dump");function w3(e,t){return DE(e,ya.extend({schema:Kk},t))}o(w3,"safeDump");im.exports.dump=DE;im.exports.safeDump=w3});var HE=v((w9,Ye)=>{"use strict";var ju=gE(),FE=LE();function Mu(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}o(Mu,"deprecated");Ye.exports.Type=ct();Ye.exports.Schema=qi();Ye.exports.FAILSAFE_SCHEMA=wu();Ye.exports.JSON_SCHEMA=Kh();Ye.exports.CORE_SCHEMA=Yh();Ye.exports.DEFAULT_SAFE_SCHEMA=Ko();Ye.exports.DEFAULT_FULL_SCHEMA=ha();Ye.exports.load=ju.load;Ye.exports.loadAll=ju.loadAll;Ye.exports.safeLoad=ju.safeLoad;Ye.exports.safeLoadAll=ju.safeLoadAll;Ye.exports.dump=FE.dump;Ye.exports.safeDump=FE.safeDump;Ye.exports.YAMLException=Zo();Ye.exports.MINIMAL_SCHEMA=wu();Ye.exports.SAFE_SCHEMA=Ko();Ye.exports.DEFAULT_SCHEMA=ha();Ye.exports.scan=Mu("scan");Ye.exports.parse=Mu("parse");Ye.exports.compose=Mu("compose");Ye.exports.addConstructor=Mu("addConstructor")});var VE=v((I9,BE)=>{"use strict";var A3=HE();BE.exports=A3});var GE=v((C9,UE)=>{"use strict";var{ParserError:I3}=Cr(),C3=VE();UE.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 C3.safeLoad(t)}catch(r){throw new I3(r.message,e.url)}else return t}}});var ZE=v((T9,zE)=>{"use strict";var{ParserError:T3}=Cr(),R3=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;zE.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&R3.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 T3("data is not text",e.url)}}});var KE=v((R9,WE)=>{"use strict";var N3=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;WE.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&N3.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var JE=v((N9,QE)=>{"use strict";var j3=require("fs"),{ono:om}=Pr(),YE=Yt(),{ResolverError:sm}=Cr();QE.exports={order:100,canRead(e){return YE.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=YE.toFileSystemPath(e.url)}catch(i){r(new sm(om.uri(i,`Malformed URI: ${e.url}`),e.url))}try{j3.readFile(n,(i,s)=>{i?r(new sm(om(i,`Error opening file "${n}"`),n)):t(s)})}catch(i){r(new sm(om(i,`Error opening file "${n}"`),n))}})}}});var rO=v((j9,tO)=>{"use strict";var M3=require("http"),k3=require("https"),{ono:ku}=Pr(),va=Yt(),{ResolverError:XE}=Cr();tO.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return va.isHttp(e.url)},read(e){let t=va.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=va.parse(location.href).protocol),eO(t,this)}};function eO(e,t,r){return new Promise((n,i)=>{e=va.parse(e),r=r||[],r.push(e.href),q3(e,t).then(s=>{if(s.statusCode>=400)throw ku({status:s.statusCode},`HTTP ERROR ${s.statusCode}`);if(s.statusCode>=300)if(r.length>t.redirects)i(new XE(ku({status:s.statusCode},`Error downloading ${r[0]}.
43
+ `+e.slice(a+1):u+=e.slice(i),u.slice(1)}o(IE,"foldLine");function C3(e){for(var t="",r,n,i,s=0;s<e.length;s++){if(r=e.charCodeAt(s),r>=55296&&r<=56319&&(n=e.charCodeAt(s+1),n>=56320&&n<=57343)){t+=PE((r-55296)*1024+n-56320+65536),s++;continue}i=Pt[r],t+=!i&&ns(r)?e[s]:i||PE(r)}return t}o(C3,"escapeString");function T3(e,t,r){var n="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Ui(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}o(T3,"writeFlowSequence");function R3(e,t,r,n){var i="",s=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)Ui(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=um(e,t)),e.dump&&ba===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}o(R3,"writeBlockSequence");function N3(e,t,r){var n="",i=e.tag,s=Object.keys(r),a,c,u,l,p;for(a=0,c=s.length;a<c;a+=1)p="",a!==0&&(p+=", "),e.condenseFlow&&(p+='"'),u=s[a],l=r[u],Ui(e,t,u,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ui(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}o(N3,"writeFlowMapping");function j3(e,t,r,n){var i="",s=e.tag,a=Object.keys(r),c,u,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 _a("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)d="",(!n||c!==0)&&(d+=um(e,t)),l=a[c],p=r[l],Ui(e,t+1,l,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&ba===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=um(e,t)),Ui(e,t+1,p,!0,f)&&(e.dump&&ba===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=s,e.dump=i||"{}"}o(j3,"writeBlockMapping");function CE(e,t,r){var n,i,s,a,c,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,a=i.length;s<a;s+=1)if(c=i[s],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(e.tag=r?c.tag:"?",c.represent){if(u=e.styleMap[c.tag]||c.defaultStyle,TE.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(RE.call(c.represent,u))n=c.represent[u](t,u);else throw new _a("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}o(CE,"detectType");function Ui(e,t,r,n,i,s){e.tag=null,e.dump=r,CE(e,r,!1)||CE(e,r,!0);var a=TE.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var c=a==="[object Object]"||a==="[object Array]",u,l;if(c&&(u=e.duplicates.indexOf(r),l=u!==-1),(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&t>0)&&(i=!1),l&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(c&&l&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(j3(e,t,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(N3(e,t,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump));else if(a==="[object Array]"){var p=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(R3(e,p,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(T3(e,p,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&A3(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new _a("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}o(Ui,"writeNode");function M3(e,t){var r=[],n=[],i,s;for(lm(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}o(M3,"getDuplicateReferences");function lm(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)lm(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)lm(e[n[i]],t,r)}o(lm,"inspectNode");function GE(e,t){t=t||{};var r=new O3(t);return r.noRefs||M3(e,r),Ui(r,0,e,!0,!0)?r.dump+`
44
+ `:""}o(GE,"dump");function k3(e,t){return GE(e,va.extend({schema:i3},t))}o(k3,"safeDump");pm.exports.dump=GE;pm.exports.safeDump=k3});var WE=v((q9,Ye)=>{"use strict";var Du=OE(),ZE=zE();function Lu(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}o(Lu,"deprecated");Ye.exports.Type=ct();Ye.exports.Schema=Fi();Ye.exports.FAILSAFE_SCHEMA=Tu();Ye.exports.JSON_SCHEMA=nm();Ye.exports.CORE_SCHEMA=im();Ye.exports.DEFAULT_SAFE_SCHEMA=Xo();Ye.exports.DEFAULT_FULL_SCHEMA=ga();Ye.exports.load=Du.load;Ye.exports.loadAll=Du.loadAll;Ye.exports.safeLoad=Du.safeLoad;Ye.exports.safeLoadAll=Du.safeLoadAll;Ye.exports.dump=ZE.dump;Ye.exports.safeDump=ZE.safeDump;Ye.exports.YAMLException=Qo();Ye.exports.MINIMAL_SCHEMA=Tu();Ye.exports.SAFE_SCHEMA=Xo();Ye.exports.DEFAULT_SCHEMA=ga();Ye.exports.scan=Lu("scan");Ye.exports.parse=Lu("parse");Ye.exports.compose=Lu("compose");Ye.exports.addConstructor=Lu("addConstructor")});var YE=v((L9,KE)=>{"use strict";var q3=WE();KE.exports=q3});var JE=v((F9,QE)=>{"use strict";var{ParserError:D3}=Rr(),L3=YE();QE.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 L3.safeLoad(t)}catch(r){throw new D3(r.message,e.url)}else return t}}});var eO=v((H9,XE)=>{"use strict";var{ParserError:F3}=Rr(),H3=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;XE.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&H3.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 F3("data is not text",e.url)}}});var rO=v((B9,tO)=>{"use strict";var B3=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;tO.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&B3.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var oO=v((V9,iO)=>{"use strict";var V3=require("fs"),{ono:dm}=$r(),nO=Qt(),{ResolverError:hm}=Rr();iO.exports={order:100,canRead(e){return nO.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=nO.toFileSystemPath(e.url)}catch(i){r(new hm(dm.uri(i,`Malformed URI: ${e.url}`),e.url))}try{V3.readFile(n,(i,s)=>{i?r(new hm(dm(i,`Error opening file "${n}"`),n)):t(s)})}catch(i){r(new hm(dm(i,`Error opening file "${n}"`),n))}})}}});var uO=v((U9,cO)=>{"use strict";var U3=require("http"),G3=require("https"),{ono:Fu}=$r(),Sa=Qt(),{ResolverError:sO}=Rr();cO.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return Sa.isHttp(e.url)},read(e){let t=Sa.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=Sa.parse(location.href).protocol),aO(t,this)}};function aO(e,t,r){return new Promise((n,i)=>{e=Sa.parse(e),r=r||[],r.push(e.href),z3(e,t).then(s=>{if(s.statusCode>=400)throw Fu({status:s.statusCode},`HTTP ERROR ${s.statusCode}`);if(s.statusCode>=300)if(r.length>t.redirects)i(new sO(Fu({status:s.statusCode},`Error downloading ${r[0]}.
45
45
  Too many redirects:
46
46
  ${r.join(`
47
- `)}`)));else if(s.headers.location){let a=va.resolve(e,s.headers.location);eO(a,t,r).then(n,i)}else throw ku({status:s.statusCode},`HTTP ${s.statusCode} redirect with no location header`);else n(s.body||Buffer.alloc(0))}).catch(s=>{i(new XE(ku(s,`Error downloading ${e.href}`),e.href))})})}o(eO,"download");function q3(e,t){return new Promise((r,n)=>{let s=(e.protocol==="https:"?k3:M3).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});typeof s.setTimeout=="function"&&s.setTimeout(t.timeout),s.on("timeout",()=>{s.abort()}),s.on("error",n),s.once("response",a=>{a.body=Buffer.alloc(0),a.on("data",c=>{a.body=Buffer.concat([a.body,Buffer.from(c)])}),a.on("error",n),a.on("end",()=>{r(a)})})})}o(q3,"get")});var um=v((k9,iO)=>{"use strict";var D3=X_(),L3=GE(),F3=ZE(),H3=KE(),B3=JE(),V3=rO();iO.exports=cm;function cm(e){am(this,cm.defaults),am(this,e)}o(cm,"$RefParserOptions");cm.defaults={parse:{json:D3,yaml:L3,text:F3,binary:H3},resolve:{file:B3,http:V3,external:!0},continueOnError:!1,dereference:{circular:!0}};function am(e,t){if(nO(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],s=t[i],a=e[i];nO(s)?e[i]=am(a||{},s):s!==void 0&&(e[i]=s)}}return e}o(am,"merge");function nO(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}o(nO,"isMergeable")});var lm=v((D9,sO)=>{"use strict";var oO=um();sO.exports=U3;function U3(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 oO||(n=new oO(n)),{path:t,schema:r,options:n,callback:i}}o(U3,"normalizeArgs")});var cO=v((F9,aO)=>{"use strict";var fm=um(),G3=Vh(),z3=zh(),Z3=require("util");aO.exports=qu;function qu(e){fm.call(this,qu.defaults),fm.apply(this,arguments)}o(qu,"ParserOptions");qu.defaults={validate:{schema:G3,spec:z3}};Z3.inherits(qu,fm)});var lO=v((B9,uO)=>{"use strict";function W3(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:o(function(t){setTimeout(t,0)},"next")}o(W3,"makeNext");uO.exports=W3()});var pm=v((U9,pO)=>{"use strict";var fO=lO();pO.exports=o(function(t,r){if(t){r.then(function(n){fO(function(){t(null,n)})},function(n){fO(function(){t(n)})});return}else return r},"maybe")});var _a=v((z9,mO)=>{"use strict";mO.exports=Un;var dm=es(),hm=Yt(),{JSONParserError:K3,InvalidPointerError:Y3,MissingPointerError:Q3,isHandledError:J3}=Cr(),X3=/\//g,eq=/~/g,tq=/~1/g,rq=/~0/g;function Un(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}o(Un,"Pointer");Un.prototype.resolve=function(e,t,r){let n=Un.parse(this.path,this.originalPath);this.value=hO(e);for(let i=0;i<n.length;i++){if(Du(this,t)&&(this.path=Un.join(this.path,n.slice(i))),typeof this.value=="object"&&this.value!==null&&"$ref"in this.value)return this;let s=n[i];if(this.value[s]===void 0||this.value[s]===null)throw this.value=null,new Q3(s,this.originalPath);this.value=this.value[s]}return(!this.value||this.value.$ref&&hm.resolve(this.path,this.value.$ref)!==r)&&Du(this,t),this};Un.prototype.set=function(e,t,r){let n=Un.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=hO(e);for(let s=0;s<n.length-1;s++)Du(this,r),i=n[s],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=dO(this,i,{});return Du(this,r),i=n[n.length-1],dO(this,i,t),e};Un.parse=function(e,t){let r=hm.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(tq,"/").replace(rq,"~"));if(r[0]!=="")throw new Y3(r,t===void 0?e:t);return r.slice(1)};Un.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(eq,"~0").replace(X3,"~1"))}return e};function Du(e,t){if(dm.isAllowed$Ref(e.value,t)){let r=hm.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,dm.isExtended$Ref(e.value)?(e.value=dm.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}o(Du,"resolveIf$Ref");function dO(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 K3(`Error assigning $ref pointer "${e.path}".
48
- Cannot set "${t}" of a non-object.`);return r}o(dO,"setValue");function hO(e){if(J3(e))throw e;return e}o(hO,"unwrapOrThrow")});var es=v((W9,bO)=>{"use strict";bO.exports=Ct;var yO=_a(),{InvalidPointerError:nq,isHandledError:iq,normalizeError:gO}=Cr(),{safePointerToPath:oq,stripHash:sq,getHash:aq}=Yt();function Ct(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}o(Ct,"$Ref");Ct.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(gO)):this.errors.push(gO(e))};Ct.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};Ct.prototype.get=function(e,t){return this.resolve(e,t).value};Ct.prototype.resolve=function(e,t,r,n){let i=new yO(this,e,r);try{return i.resolve(this.value,t,n)}catch(s){if(!t||!t.continueOnError||!iq(s))throw s;return s.path===null&&(s.path=oq(aq(n))),s instanceof nq&&(s.source=sq(n)),this.addError(s),null}};Ct.prototype.set=function(e,t){let r=new yO(this,e);this.value=r.set(this.value,t)};Ct.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};Ct.isExternal$Ref=function(e){return Ct.is$Ref(e)&&e.$ref[0]!=="#"};Ct.isAllowed$Ref=function(e,t){if(Ct.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};Ct.isExtended$Ref=function(e){return Ct.is$Ref(e)&&Object.keys(e).length>1};Ct.dereference=function(e,t){if(t&&typeof t=="object"&&Ct.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 EO=v((Y9,SO)=>{"use strict";var{ono:vO}=Pr(),cq=es(),Gn=Yt();SO.exports=Tr;function Tr(){this.circular=!1,this._$refs={},this._root$Ref=null}o(Tr,"$Refs");Tr.prototype.paths=function(e){return _O(this._$refs,arguments).map(r=>r.decoded)};Tr.prototype.values=function(e){let t=this._$refs;return _O(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};Tr.prototype.toJSON=Tr.prototype.values;Tr.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};Tr.prototype.get=function(e,t){return this._resolve(e,"",t).value};Tr.prototype.set=function(e,t){let r=Gn.resolve(this._root$Ref.path,e),n=Gn.stripHash(r),i=this._$refs[n];if(!i)throw vO(`Error resolving $ref pointer "${e}".
49
- "${n}" not found.`);i.set(r,t)};Tr.prototype._add=function(e){let t=Gn.stripHash(e),r=new cq;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};Tr.prototype._resolve=function(e,t,r){let n=Gn.resolve(this._root$Ref.path,e),i=Gn.stripHash(n),s=this._$refs[i];if(!s)throw vO(`Error resolving $ref pointer "${e}".
50
- "${i}" not found.`);return s.resolve(n,r,e,t)};Tr.prototype._get$Ref=function(e){e=Gn.resolve(this._root$Ref.path,e);let t=Gn.stripHash(e);return this._$refs[t]};function _O(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"?Gn.toFileSystemPath(n,!0):n}))}o(_O,"getPaths")});var PO=v(Sa=>{"use strict";Sa.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};Sa.filter=function(e,t,r){return e.filter(n=>!!OO(n,t,r))};Sa.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)};Sa.run=function(e,t,r,n){let i,s,a=0;return new Promise((c,u)=>{l();function l(){if(i=e[a++],!i)return u(s);try{let h=OO(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)}}o(l,"runNextPlugin");function p(h,y){h?d(h):f(y)}o(p,"callback");function f(h){c({plugin:i,result:h})}o(f,"onSuccess");function d(h){s={plugin:i,error:h},l()}o(d,"onError")})};function OO(e,t,r,n,i){let s=e[t];if(typeof s=="function")return s.apply(e,[r,n,i]);if(!n){if(s instanceof RegExp)return s.test(r.url);if(typeof s=="string")return s===r.extension;if(Array.isArray(s))return s.indexOf(r.extension)!==-1}return s}o(OO,"getResult")});var gm=v((eU,AO)=>{"use strict";var{ono:mm}=Pr(),xO=Yt(),zn=PO(),{ResolverError:$O,ParserError:wO,UnmatchedParserError:uq,UnmatchedResolverError:lq,isHandledError:fq}=Cr();AO.exports=pq;async function pq(e,t,r){e=xO.stripHash(e);let n=t._add(e),i={url:e,extension:xO.getExtension(e)};try{let s=await dq(i,r,t);n.pathType=s.plugin.name,i.data=s.result;let a=await hq(i,r,t);return n.value=a.result,a.result}catch(s){throw fq(s)&&(n.value=s),s}}o(pq,"parse");function dq(e,t,r){return new Promise((n,i)=>{let s=zn.all(t.resolve);s=zn.filter(s,"canRead",e),zn.sort(s),zn.run(s,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new lq(e.url)):!c||!("error"in c)?i(mm.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof $O?i(c.error):i(new $O(c,e.url))}o(a,"onError")})}o(dq,"readFile");function hq(e,t,r){return new Promise((n,i)=>{let s=zn.all(t.parse),a=zn.filter(s,"canParse",e),c=a.length>0?a:s;zn.sort(c),zn.run(c,"parse",e,r).then(u,l);function u(p){!p.plugin.allowEmpty&&mq(p.result)?i(mm.syntax(`Error parsing "${e.url}" as ${p.plugin.name}.
51
- Parsed value is empty`)):n(p)}o(u,"onParsed");function l(p){!p&&t.continueOnError?i(new uq(e.url)):!p||!("error"in p)?i(mm.syntax(`Unable to parse ${e.url}`)):p.error instanceof wO?i(p.error):i(new wO(p.error.message,e.url))}o(l,"onError")})}o(hq,"parseFile");function mq(e){return e===void 0||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0||Buffer.isBuffer(e)&&e.length===0}o(mq,"isEmpty")});var RO=v((rU,TO)=>{"use strict";var IO=es(),gq=_a(),yq=gm(),Ea=Yt(),{isHandledError:bq}=Cr();TO.exports=vq;function vq(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=ym(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}o(vq,"resolveExternal");function ym(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(IO.isExternal$Ref(e))i.push(CO(e,t,r,n));else for(let s of Object.keys(e)){let a=gq.join(t,s),c=e[s];IO.isExternal$Ref(c)?i.push(CO(c,a,r,n)):i=i.concat(ym(c,a,r,n))}return i}o(ym,"crawl");async function CO(e,t,r,n){let i=Ea.resolve(t,e.$ref),s=Ea.stripHash(i);if(e=r._$refs[s],e)return Promise.resolve(e.value);try{let a=await yq(i,r,n),c=ym(a,s+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!bq(a))throw a;return r._$refs[s]&&(a.source=Ea.stripHash(t),a.path=Ea.safePointerToPath(Ea.getHash(t))),[]}}o(CO,"resolve$Ref")});var MO=v((iU,jO)=>{"use strict";var Lu=es(),Oa=_a(),bm=Yt();jO.exports=_q;function _q(e,t){let r=[];vm(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),Sq(r)}o(_q,"bundle");function vm(e,t,r,n,i,s,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(Lu.isAllowed$Ref(u))NO(e,t,r,n,i,s,a,c);else{let l=Object.keys(u).sort((p,f)=>p==="definitions"?-1:f==="definitions"?1:p.length-f.length);for(let p of l){let f=Oa.join(r,p),d=Oa.join(n,p),h=u[p];Lu.isAllowed$Ref(h)?NO(u,p,r,d,i,s,a,c):vm(u,p,f,d,i,s,a,c)}}}o(vm,"crawl");function NO(e,t,r,n,i,s,a,c){let u=t===null?e:e[t],l=bm.resolve(r,u.$ref),p=a._resolve(l,n,c);if(p===null)return;let f=Oa.parse(n).length,d=bm.stripHash(p.path),h=bm.getHash(p.path),y=d!==a._root$Ref.path,b=Lu.isExtended$Ref(u);i+=p.indirections;let g=Eq(s,e,t);if(g)if(f<g.depth||i<g.indirections)Oq(s,g);else return;s.push({$ref:u,parent:e,key:t,pathFromRoot:n,depth:f,file:d,hash:h,value:p.value,circular:p.circular,extended:b,external:y,indirections:i}),g||vm(p.value,null,p.path,n,i+1,s,a,c)}o(NO,"inventory$Ref");function Sq(e){e.sort((i,s)=>{if(i.file!==s.file)return i.file<s.file?-1:1;if(i.hash!==s.hash)return i.hash<s.hash?-1:1;if(i.circular!==s.circular)return i.circular?-1:1;if(i.extended!==s.extended)return i.extended?1:-1;if(i.indirections!==s.indirections)return i.indirections-s.indirections;if(i.depth!==s.depth)return i.depth-s.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),c=s.pathFromRoot.lastIndexOf("/definitions");return a!==c?c-a:i.pathFromRoot.length-s.pathFromRoot.length}});let t,r,n;for(let i of e)i.external?i.file===t&&i.hash===r?i.$ref.$ref=n:i.file===t&&i.hash.indexOf(r+"/")===0?i.$ref.$ref=Oa.join(n,Oa.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=Lu.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}o(Sq,"remap");function Eq(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}o(Eq,"findInInventory");function Oq(e,t){let r=e.indexOf(t);e.splice(r,1)}o(Oq,"removeFromInventory")});var Em=v((sU,LO)=>{"use strict";var _m=es(),kO=_a(),{ono:Pq}=Pr(),xq=Yt();LO.exports=$q;function $q(e,t){let r=Sm(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}o($q,"dereference");function Sm(e,t,r,n,i,s){let a,c={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),_m.isAllowed$Ref(e,s))a=qO(e,t,r,n,i,s),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let l=kO.join(t,u),p=kO.join(r,u),f=e[u],d=!1;_m.isAllowed$Ref(f,s)?(a=qO(f,l,p,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(f)===-1?(a=Sm(f,l,p,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=DO(l,i,s),c.circular=c.circular||d}n.pop()}return c}o(Sm,"crawl");function qO(e,t,r,n,i,s){let a=xq.resolve(t,e.$ref),c=i._resolve(a,t,s);if(c===null)return{circular:!1,value:null};let u=c.circular,l=u||n.indexOf(c.value)!==-1;l&&DO(t,i,s);let p=_m.dereference(e,c.value);if(!l){let f=Sm(p,c.path,r,n,i,s);l=f.circular,p=f.value}return l&&!u&&s.dereference.circular==="ignore"&&(p=e),u&&(p.$ref=r),{circular:l,value:p}}o(qO,"dereference$Ref");function DO(e,t,r){if(t.circular=!0,!r.dereference.circular)throw Pq.reference(`Circular $ref pointer found at ${e}`);return!0}o(DO,"foundCircularReference")});var VO=v((cU,Yr)=>{"use strict";var BO=EO(),wq=gm(),Fu=lm(),Aq=RO(),Iq=MO(),Cq=Em(),ts=Yt(),{JSONParserError:Tq,InvalidPointerError:Rq,MissingPointerError:Nq,ResolverError:jq,ParserError:Mq,UnmatchedParserError:kq,UnmatchedResolverError:qq,isHandledError:Dq,JSONParserErrorGroup:FO}=Cr(),Rr=pm(),{ono:HO}=Pr();Yr.exports=Kr;Yr.exports.default=Kr;Yr.exports.JSONParserError=Tq;Yr.exports.InvalidPointerError=Rq;Yr.exports.MissingPointerError=Nq;Yr.exports.ResolverError=jq;Yr.exports.ParserError=Mq;Yr.exports.UnmatchedParserError=kq;Yr.exports.UnmatchedResolverError=qq;function Kr(){this.schema=null,this.$refs=new BO}o(Kr,"$RefParser");Kr.parse=o(function(t,r,n,i){let s=this,a=new s;return a.parse.apply(a,arguments)},"parse");Kr.prototype.parse=o(async function(t,r,n,i){let s=Fu(arguments),a;if(!s.path&&!s.schema){let l=HO(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return Rr(s.callback,Promise.reject(l))}this.schema=null,this.$refs=new BO;let c="http";if(ts.isFileSystemPath(s.path)&&(s.path=ts.fromFileSystemPath(s.path),c="file"),s.path=ts.resolve(ts.cwd(),s.path),s.schema&&typeof s.schema=="object"){let l=this.$refs._add(s.path);l.value=s.schema,l.pathType=c,a=Promise.resolve(s.schema)}else a=wq(s.path,this.$refs,s.options);let u=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return u.schema=l,Rr(s.callback,Promise.resolve(u.schema));if(s.options.continueOnError)return u.schema=null,Rr(s.callback,Promise.resolve(u.schema));throw HO.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!s.options.continueOnError||!Dq(l)?Rr(s.callback,Promise.reject(l)):(this.$refs._$refs[ts.stripHash(s.path)]&&this.$refs._$refs[ts.stripHash(s.path)].addError(l),Rr(s.callback,Promise.resolve(null)))}},"parse");Kr.resolve=o(function(t,r,n,i){let s=this,a=new s;return a.resolve.apply(a,arguments)},"resolve");Kr.prototype.resolve=o(async function(t,r,n,i){let s=this,a=Fu(arguments);try{return await this.parse(a.path,a.schema,a.options),await Aq(s,a.options),Om(s),Rr(a.callback,Promise.resolve(s.$refs))}catch(c){return Rr(a.callback,Promise.reject(c))}},"resolve");Kr.bundle=o(function(t,r,n,i){let s=this,a=new s;return a.bundle.apply(a,arguments)},"bundle");Kr.prototype.bundle=o(async function(t,r,n,i){let s=this,a=Fu(arguments);try{return await this.resolve(a.path,a.schema,a.options),Iq(s,a.options),Om(s),Rr(a.callback,Promise.resolve(s.schema))}catch(c){return Rr(a.callback,Promise.reject(c))}},"bundle");Kr.dereference=o(function(t,r,n,i){let s=this,a=new s;return a.dereference.apply(a,arguments)},"dereference");Kr.prototype.dereference=o(async function(t,r,n,i){let s=this,a=Fu(arguments);try{return await this.resolve(a.path,a.schema,a.options),Cq(s,a.options),Om(s),Rr(a.callback,Promise.resolve(s.schema))}catch(c){return Rr(a.callback,Promise.reject(c))}},"dereference");function Om(e){if(FO.getParserErrors(e).length>0)throw new FO(e)}o(Om,"finalize")});var Pm=v((lU,ZO)=>{"use strict";var Lq=Vh(),Fq=zh(),UO=lm(),GO=Dc(),zO=cO(),Hu=pm(),{ono:Nr}=Pr(),Bi=VO(),Hq=Em();ZO.exports=Qr;function Qr(){Bi.apply(this,arguments)}o(Qr,"SwaggerParser");GO.inherits(Qr,Bi);Qr.parse=Bi.parse;Qr.resolve=Bi.resolve;Qr.bundle=Bi.bundle;Qr.dereference=Bi.dereference;Object.defineProperty(Qr.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});Qr.prototype.parse=async function(e,t,r,n){let i=UO(arguments);i.options=new zO(i.options);try{let s=await Bi.prototype.parse.call(this,i.path,i.schema,i.options);if(s.swagger){if(s.swagger===void 0||s.info===void 0||s.paths===void 0)throw Nr.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof s.swagger=="number")throw Nr.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof s.info.version=="number")throw Nr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(s.swagger!=="2.0")throw Nr.syntax(`Unrecognized Swagger version: ${s.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(s.openapi===void 0||s.info===void 0)throw Nr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(s.paths===void 0)if(s.openapi==="3.1.0"){if(s.webhooks===void 0)throw Nr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw Nr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof s.openapi=="number")throw Nr.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof s.info.version=="number")throw Nr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(s.openapi)===-1)throw Nr.syntax(`Unsupported OpenAPI version: ${s.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}GO.fixOasRelativeServers(s,i.path)}return Hu(i.callback,Promise.resolve(s))}catch(s){return Hu(i.callback,Promise.reject(s))}};Qr.validate=function(e,t,r,n){let i=this,s=new i;return s.validate.apply(s,arguments)};Qr.prototype.validate=async function(e,t,r,n){let i=this,s=UO(arguments);s.options=new zO(s.options);let a=s.options.dereference.circular;s.options.validate.schema&&(s.options.dereference.circular="ignore");try{if(await this.dereference(s.path,s.schema,s.options),s.options.dereference.circular=a,s.options.validate.schema&&(Lq(i.api),i.$refs.circular)){if(a===!0)Hq(i,s.options);else if(a===!1)throw Nr.reference("The API contains circular references")}return s.options.validate.spec&&Fq(i.api),Hu(s.callback,Promise.resolve(i.schema))}catch(c){return Hu(s.callback,Promise.reject(c))}}});var Nt=v(er=>{"use strict";er.__esModule=!0;er.extend=Ax;er.indexOf=AD;er.escapeExpression=ID;er.isEmpty=CD;er.createFrame=TD;er.blockParams=RD;er.appendContextPath=ND;var PD={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},xD=/[&<>"'`=]/g,$D=/[&<>"'`=]/;function wD(e){return PD[e]}o(wD,"escapeChar");function Ax(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}o(Ax,"extend");var Jm=Object.prototype.toString;er.toString=Jm;var Qm=o(function(t){return typeof t=="function"},"isFunction");Qm(/x/)&&(er.isFunction=Qm=o(function(e){return typeof e=="function"&&Jm.call(e)==="[object Function]"},"isFunction"));er.isFunction=Qm;var Ix=Array.isArray||function(e){return e&&typeof e=="object"?Jm.call(e)==="[object Array]":!1};er.isArray=Ix;function AD(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}o(AD,"indexOf");function ID(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return $D.test(e)?e.replace(xD,wD):e}o(ID,"escapeExpression");function CD(e){return!e&&e!==0?!0:!!(Ix(e)&&e.length===0)}o(CD,"isEmpty");function TD(e){var t=Ax({},e);return t._parent=e,t}o(TD,"createFrame");function RD(e,t){return e.path=t,e}o(RD,"blockParams");function ND(e,t){return(e?e+".":"")+t}o(ND,"appendContextPath")});var gr=v((sl,Cx)=>{"use strict";sl.__esModule=!0;var Xm=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function eg(e,t){var r=t&&t.loc,n=void 0,i=void 0,s=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,s=r.start.column,a=r.end.column,e+=" - "+n+":"+s);for(var c=Error.prototype.constructor.call(this,e),u=0;u<Xm.length;u++)this[Xm[u]]=c[Xm[u]];Error.captureStackTrace&&Error.captureStackTrace(this,eg);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=s,this.endColumn=a))}catch{}}o(eg,"Exception");eg.prototype=new Error;sl.default=eg;Cx.exports=sl.default});var Rx=v((al,Tx)=>{"use strict";al.__esModule=!0;var tg=Nt();al.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(tg.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):n(this);if(r.data&&r.ids){var s=tg.createFrame(r.data);s.contextPath=tg.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(t,r)})};Tx.exports=al.default});var jx=v((cl,Nx)=>{"use strict";cl.__esModule=!0;function jD(e){return e&&e.__esModule?e:{default:e}}o(jD,"_interopRequireDefault");var Ha=Nt(),MD=gr(),kD=jD(MD);cl.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new kD.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,s=0,a="",c=void 0,u=void 0;r.data&&r.ids&&(u=Ha.appendContextPath(r.data.contextPath,r.ids[0])+"."),Ha.isFunction(t)&&(t=t.call(this)),r.data&&(c=Ha.createFrame(r.data));function l(y,b,g){c&&(c.key=y,c.index=b,c.first=b===0,c.last=!!g,u&&(c.contextPath=u+y)),a=a+n(t[y],{data:c,blockParams:Ha.blockParams([t[y],y],[u+y,null])})}if(o(l,"execIteration"),t&&typeof t=="object")if(Ha.isArray(t))for(var p=t.length;s<p;s++)s in t&&l(s,s,s===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var f=[],d=t[Symbol.iterator](),h=d.next();!h.done;h=d.next())f.push(h.value);t=f;for(var p=t.length;s<p;s++)l(s,s,s===t.length-1)}else(function(){var y=void 0;Object.keys(t).forEach(function(b){y!==void 0&&l(y,s-1),y=b,s++}),y!==void 0&&l(y,s-1,!0)})();return s===0&&(a=i(this)),a})};Nx.exports=cl.default});var kx=v((ul,Mx)=>{"use strict";ul.__esModule=!0;function qD(e){return e&&e.__esModule?e:{default:e}}o(qD,"_interopRequireDefault");var DD=gr(),LD=qD(DD);ul.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new LD.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};Mx.exports=ul.default});var Fx=v((ll,Lx)=>{"use strict";ll.__esModule=!0;function FD(e){return e&&e.__esModule?e:{default:e}}o(FD,"_interopRequireDefault");var qx=Nt(),HD=gr(),Dx=FD(HD);ll.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new Dx.default("#if requires exactly one argument");return qx.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||qx.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new Dx.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};Lx.exports=ll.default});var Bx=v((fl,Hx)=>{"use strict";fl.__esModule=!0;fl.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)})};Hx.exports=fl.default});var Ux=v((pl,Vx)=>{"use strict";pl.__esModule=!0;pl.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};Vx.exports=pl.default});var zx=v((dl,Gx)=>{"use strict";dl.__esModule=!0;function BD(e){return e&&e.__esModule?e:{default:e}}o(BD,"_interopRequireDefault");var Ba=Nt(),VD=gr(),UD=BD(VD);dl.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new UD.default("#with requires exactly one argument");Ba.isFunction(t)&&(t=t.call(this));var n=r.fn;if(Ba.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=Ba.createFrame(r.data),i.contextPath=Ba.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:Ba.blockParams([t],[i&&i.contextPath])})})};Gx.exports=dl.default});var rg=v(hl=>{"use strict";hl.__esModule=!0;hl.registerDefaultHelpers=o4;hl.moveHelperToHooks=s4;function Qi(e){return e&&e.__esModule?e:{default:e}}o(Qi,"_interopRequireDefault");var GD=Rx(),zD=Qi(GD),ZD=jx(),WD=Qi(ZD),KD=kx(),YD=Qi(KD),QD=Fx(),JD=Qi(QD),XD=Bx(),e4=Qi(XD),t4=Ux(),r4=Qi(t4),n4=zx(),i4=Qi(n4);function o4(e){zD.default(e),WD.default(e),YD.default(e),JD.default(e),e4.default(e),r4.default(e),i4.default(e)}o(o4,"registerDefaultHelpers");function s4(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}o(s4,"moveHelperToHooks")});var Wx=v((ml,Zx)=>{"use strict";ml.__esModule=!0;var a4=Nt();ml.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var s=t;return r.partials||(r.partials={},s=o(function(a,c){var u=n.partials;n.partials=a4.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,s})};Zx.exports=ml.default});var Kx=v(ng=>{"use strict";ng.__esModule=!0;ng.registerDefaultDecorators=f4;function c4(e){return e&&e.__esModule?e:{default:e}}o(c4,"_interopRequireDefault");var u4=Wx(),l4=c4(u4);function f4(e){l4.default(e)}o(f4,"registerDefaultDecorators")});var ig=v((gl,Yx)=>{"use strict";gl.__esModule=!0;var p4=Nt(),us={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(t){if(typeof t=="string"){var r=p4.indexOf(us.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:o(function(t){if(t=us.lookupLevel(t),typeof console<"u"&&us.lookupLevel(us.level)<=t){var r=us.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];console[r].apply(console,i)}},"log")};gl.default=us;Yx.exports=gl.default});var Qx=v(og=>{"use strict";og.__esModule=!0;og.createNewLookupObject=h4;var d4=Nt();function h4(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return d4.extend.apply(void 0,[Object.create(null)].concat(t))}o(h4,"createNewLookupObject")});var sg=v(Va=>{"use strict";Va.__esModule=!0;Va.createProtoAccessControl=b4;Va.resultIsAllowed=v4;Va.resetLoggedProperties=S4;function m4(e){return e&&e.__esModule?e:{default:e}}o(m4,"_interopRequireDefault");var Jx=Qx(),g4=ig(),y4=m4(g4),yl=Object.create(null);function b4(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:Jx.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:Jx.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}o(b4,"createProtoAccessControl");function v4(e,t,r){return Xx(typeof e=="function"?t.methods:t.properties,r)}o(v4,"resultIsAllowed");function Xx(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(_4(t),!1)}o(Xx,"checkWhiteList");function _4(e){yl[e]!==!0&&(yl[e]=!0,y4.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
47
+ `)}`)));else if(s.headers.location){let a=Sa.resolve(e,s.headers.location);aO(a,t,r).then(n,i)}else throw Fu({status:s.statusCode},`HTTP ${s.statusCode} redirect with no location header`);else n(s.body||Buffer.alloc(0))}).catch(s=>{i(new sO(Fu(s,`Error downloading ${e.href}`),e.href))})})}o(aO,"download");function z3(e,t){return new Promise((r,n)=>{let s=(e.protocol==="https:"?G3:U3).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});typeof s.setTimeout=="function"&&s.setTimeout(t.timeout),s.on("timeout",()=>{s.abort()}),s.on("error",n),s.once("response",a=>{a.body=Buffer.alloc(0),a.on("data",c=>{a.body=Buffer.concat([a.body,Buffer.from(c)])}),a.on("error",n),a.on("end",()=>{r(a)})})})}o(z3,"get")});var ym=v((z9,fO)=>{"use strict";var Z3=sS(),W3=JE(),K3=eO(),Y3=rO(),Q3=oO(),J3=uO();fO.exports=gm;function gm(e){mm(this,gm.defaults),mm(this,e)}o(gm,"$RefParserOptions");gm.defaults={parse:{json:Z3,yaml:W3,text:K3,binary:Y3},resolve:{file:Q3,http:J3,external:!0},continueOnError:!1,dereference:{circular:!0}};function mm(e,t){if(lO(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],s=t[i],a=e[i];lO(s)?e[i]=mm(a||{},s):s!==void 0&&(e[i]=s)}}return e}o(mm,"merge");function lO(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}o(lO,"isMergeable")});var bm=v((W9,dO)=>{"use strict";var pO=ym();dO.exports=X3;function X3(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 pO||(n=new pO(n)),{path:t,schema:r,options:n,callback:i}}o(X3,"normalizeArgs")});var mO=v((Y9,hO)=>{"use strict";var vm=ym(),eq=Qh(),tq=em(),rq=require("util");hO.exports=Hu;function Hu(e){vm.call(this,Hu.defaults),vm.apply(this,arguments)}o(Hu,"ParserOptions");Hu.defaults={validate:{schema:eq,spec:tq}};rq.inherits(Hu,vm)});var yO=v((J9,gO)=>{"use strict";function nq(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:o(function(t){setTimeout(t,0)},"next")}o(nq,"makeNext");gO.exports=nq()});var _m=v((eU,vO)=>{"use strict";var bO=yO();vO.exports=o(function(t,r){if(t){r.then(function(n){bO(function(){t(null,n)})},function(n){bO(function(){t(n)})});return}else return r},"maybe")});var Ea=v((rU,EO)=>{"use strict";EO.exports=zn;var Sm=is(),Em=Qt(),{JSONParserError:iq,InvalidPointerError:oq,MissingPointerError:sq,isHandledError:aq}=Rr(),cq=/\//g,uq=/~/g,lq=/~1/g,fq=/~0/g;function zn(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}o(zn,"Pointer");zn.prototype.resolve=function(e,t,r){let n=zn.parse(this.path,this.originalPath);this.value=SO(e);for(let i=0;i<n.length;i++){if(Bu(this,t)&&(this.path=zn.join(this.path,n.slice(i))),typeof this.value=="object"&&this.value!==null&&"$ref"in this.value)return this;let s=n[i];if(this.value[s]===void 0||this.value[s]===null)throw this.value=null,new sq(s,this.originalPath);this.value=this.value[s]}return(!this.value||this.value.$ref&&Em.resolve(this.path,this.value.$ref)!==r)&&Bu(this,t),this};zn.prototype.set=function(e,t,r){let n=zn.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=SO(e);for(let s=0;s<n.length-1;s++)Bu(this,r),i=n[s],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=_O(this,i,{});return Bu(this,r),i=n[n.length-1],_O(this,i,t),e};zn.parse=function(e,t){let r=Em.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(lq,"/").replace(fq,"~"));if(r[0]!=="")throw new oq(r,t===void 0?e:t);return r.slice(1)};zn.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(uq,"~0").replace(cq,"~1"))}return e};function Bu(e,t){if(Sm.isAllowed$Ref(e.value,t)){let r=Em.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,Sm.isExtended$Ref(e.value)?(e.value=Sm.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}o(Bu,"resolveIf$Ref");function _O(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 iq(`Error assigning $ref pointer "${e.path}".
48
+ Cannot set "${t}" of a non-object.`);return r}o(_O,"setValue");function SO(e){if(aq(e))throw e;return e}o(SO,"unwrapOrThrow")});var is=v((iU,xO)=>{"use strict";xO.exports=Tt;var PO=Ea(),{InvalidPointerError:pq,isHandledError:dq,normalizeError:OO}=Rr(),{safePointerToPath:hq,stripHash:mq,getHash:gq}=Qt();function Tt(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}o(Tt,"$Ref");Tt.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(OO)):this.errors.push(OO(e))};Tt.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};Tt.prototype.get=function(e,t){return this.resolve(e,t).value};Tt.prototype.resolve=function(e,t,r,n){let i=new PO(this,e,r);try{return i.resolve(this.value,t,n)}catch(s){if(!t||!t.continueOnError||!dq(s))throw s;return s.path===null&&(s.path=hq(gq(n))),s instanceof pq&&(s.source=mq(n)),this.addError(s),null}};Tt.prototype.set=function(e,t){let r=new PO(this,e);this.value=r.set(this.value,t)};Tt.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};Tt.isExternal$Ref=function(e){return Tt.is$Ref(e)&&e.$ref[0]!=="#"};Tt.isAllowed$Ref=function(e,t){if(Tt.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};Tt.isExtended$Ref=function(e){return Tt.is$Ref(e)&&Object.keys(e).length>1};Tt.dereference=function(e,t){if(t&&typeof t=="object"&&Tt.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 IO=v((sU,AO)=>{"use strict";var{ono:$O}=$r(),yq=is(),Zn=Qt();AO.exports=Nr;function Nr(){this.circular=!1,this._$refs={},this._root$Ref=null}o(Nr,"$Refs");Nr.prototype.paths=function(e){return wO(this._$refs,arguments).map(r=>r.decoded)};Nr.prototype.values=function(e){let t=this._$refs;return wO(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};Nr.prototype.toJSON=Nr.prototype.values;Nr.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};Nr.prototype.get=function(e,t){return this._resolve(e,"",t).value};Nr.prototype.set=function(e,t){let r=Zn.resolve(this._root$Ref.path,e),n=Zn.stripHash(r),i=this._$refs[n];if(!i)throw $O(`Error resolving $ref pointer "${e}".
49
+ "${n}" not found.`);i.set(r,t)};Nr.prototype._add=function(e){let t=Zn.stripHash(e),r=new yq;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};Nr.prototype._resolve=function(e,t,r){let n=Zn.resolve(this._root$Ref.path,e),i=Zn.stripHash(n),s=this._$refs[i];if(!s)throw $O(`Error resolving $ref pointer "${e}".
50
+ "${i}" not found.`);return s.resolve(n,r,e,t)};Nr.prototype._get$Ref=function(e){e=Zn.resolve(this._root$Ref.path,e);let t=Zn.stripHash(e);return this._$refs[t]};function wO(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"?Zn.toFileSystemPath(n,!0):n}))}o(wO,"getPaths")});var TO=v(Oa=>{"use strict";Oa.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};Oa.filter=function(e,t,r){return e.filter(n=>!!CO(n,t,r))};Oa.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)};Oa.run=function(e,t,r,n){let i,s,a=0;return new Promise((c,u)=>{l();function l(){if(i=e[a++],!i)return u(s);try{let h=CO(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)}}o(l,"runNextPlugin");function p(h,y){h?d(h):f(y)}o(p,"callback");function f(h){c({plugin:i,result:h})}o(f,"onSuccess");function d(h){s={plugin:i,error:h},l()}o(d,"onError")})};function CO(e,t,r,n,i){let s=e[t];if(typeof s=="function")return s.apply(e,[r,n,i]);if(!n){if(s instanceof RegExp)return s.test(r.url);if(typeof s=="string")return s===r.extension;if(Array.isArray(s))return s.indexOf(r.extension)!==-1}return s}o(CO,"getResult")});var Pm=v((lU,MO)=>{"use strict";var{ono:Om}=$r(),RO=Qt(),Wn=TO(),{ResolverError:NO,ParserError:jO,UnmatchedParserError:bq,UnmatchedResolverError:vq,isHandledError:_q}=Rr();MO.exports=Sq;async function Sq(e,t,r){e=RO.stripHash(e);let n=t._add(e),i={url:e,extension:RO.getExtension(e)};try{let s=await Eq(i,r,t);n.pathType=s.plugin.name,i.data=s.result;let a=await Oq(i,r,t);return n.value=a.result,a.result}catch(s){throw _q(s)&&(n.value=s),s}}o(Sq,"parse");function Eq(e,t,r){return new Promise((n,i)=>{let s=Wn.all(t.resolve);s=Wn.filter(s,"canRead",e),Wn.sort(s),Wn.run(s,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new vq(e.url)):!c||!("error"in c)?i(Om.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof NO?i(c.error):i(new NO(c,e.url))}o(a,"onError")})}o(Eq,"readFile");function Oq(e,t,r){return new Promise((n,i)=>{let s=Wn.all(t.parse),a=Wn.filter(s,"canParse",e),c=a.length>0?a:s;Wn.sort(c),Wn.run(c,"parse",e,r).then(u,l);function u(p){!p.plugin.allowEmpty&&Pq(p.result)?i(Om.syntax(`Error parsing "${e.url}" as ${p.plugin.name}.
51
+ Parsed value is empty`)):n(p)}o(u,"onParsed");function l(p){!p&&t.continueOnError?i(new bq(e.url)):!p||!("error"in p)?i(Om.syntax(`Unable to parse ${e.url}`)):p.error instanceof jO?i(p.error):i(new jO(p.error.message,e.url))}o(l,"onError")})}o(Oq,"parseFile");function Pq(e){return e===void 0||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0||Buffer.isBuffer(e)&&e.length===0}o(Pq,"isEmpty")});var LO=v((pU,DO)=>{"use strict";var kO=is(),xq=Ea(),$q=Pm(),Pa=Qt(),{isHandledError:wq}=Rr();DO.exports=Aq;function Aq(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=xm(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}o(Aq,"resolveExternal");function xm(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(kO.isExternal$Ref(e))i.push(qO(e,t,r,n));else for(let s of Object.keys(e)){let a=xq.join(t,s),c=e[s];kO.isExternal$Ref(c)?i.push(qO(c,a,r,n)):i=i.concat(xm(c,a,r,n))}return i}o(xm,"crawl");async function qO(e,t,r,n){let i=Pa.resolve(t,e.$ref),s=Pa.stripHash(i);if(e=r._$refs[s],e)return Promise.resolve(e.value);try{let a=await $q(i,r,n),c=xm(a,s+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!wq(a))throw a;return r._$refs[s]&&(a.source=Pa.stripHash(t),a.path=Pa.safePointerToPath(Pa.getHash(t))),[]}}o(qO,"resolve$Ref")});var BO=v((hU,HO)=>{"use strict";var Vu=is(),xa=Ea(),$m=Qt();HO.exports=Iq;function Iq(e,t){let r=[];wm(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),Cq(r)}o(Iq,"bundle");function wm(e,t,r,n,i,s,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(Vu.isAllowed$Ref(u))FO(e,t,r,n,i,s,a,c);else{let l=Object.keys(u).sort((p,f)=>p==="definitions"?-1:f==="definitions"?1:p.length-f.length);for(let p of l){let f=xa.join(r,p),d=xa.join(n,p),h=u[p];Vu.isAllowed$Ref(h)?FO(u,p,r,d,i,s,a,c):wm(u,p,f,d,i,s,a,c)}}}o(wm,"crawl");function FO(e,t,r,n,i,s,a,c){let u=t===null?e:e[t],l=$m.resolve(r,u.$ref),p=a._resolve(l,n,c);if(p===null)return;let f=xa.parse(n).length,d=$m.stripHash(p.path),h=$m.getHash(p.path),y=d!==a._root$Ref.path,b=Vu.isExtended$Ref(u);i+=p.indirections;let g=Tq(s,e,t);if(g)if(f<g.depth||i<g.indirections)Rq(s,g);else return;s.push({$ref:u,parent:e,key:t,pathFromRoot:n,depth:f,file:d,hash:h,value:p.value,circular:p.circular,extended:b,external:y,indirections:i}),g||wm(p.value,null,p.path,n,i+1,s,a,c)}o(FO,"inventory$Ref");function Cq(e){e.sort((i,s)=>{if(i.file!==s.file)return i.file<s.file?-1:1;if(i.hash!==s.hash)return i.hash<s.hash?-1:1;if(i.circular!==s.circular)return i.circular?-1:1;if(i.extended!==s.extended)return i.extended?1:-1;if(i.indirections!==s.indirections)return i.indirections-s.indirections;if(i.depth!==s.depth)return i.depth-s.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),c=s.pathFromRoot.lastIndexOf("/definitions");return a!==c?c-a:i.pathFromRoot.length-s.pathFromRoot.length}});let t,r,n;for(let i of e)i.external?i.file===t&&i.hash===r?i.$ref.$ref=n:i.file===t&&i.hash.indexOf(r+"/")===0?i.$ref.$ref=xa.join(n,xa.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=Vu.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}o(Cq,"remap");function Tq(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}o(Tq,"findInInventory");function Rq(e,t){let r=e.indexOf(t);e.splice(r,1)}o(Rq,"removeFromInventory")});var Cm=v((gU,zO)=>{"use strict";var Am=is(),VO=Ea(),{ono:Nq}=$r(),jq=Qt();zO.exports=Mq;function Mq(e,t){let r=Im(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}o(Mq,"dereference");function Im(e,t,r,n,i,s){let a,c={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),Am.isAllowed$Ref(e,s))a=UO(e,t,r,n,i,s),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let l=VO.join(t,u),p=VO.join(r,u),f=e[u],d=!1;Am.isAllowed$Ref(f,s)?(a=UO(f,l,p,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(f)===-1?(a=Im(f,l,p,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=GO(l,i,s),c.circular=c.circular||d}n.pop()}return c}o(Im,"crawl");function UO(e,t,r,n,i,s){let a=jq.resolve(t,e.$ref),c=i._resolve(a,t,s);if(c===null)return{circular:!1,value:null};let u=c.circular,l=u||n.indexOf(c.value)!==-1;l&&GO(t,i,s);let p=Am.dereference(e,c.value);if(!l){let f=Im(p,c.path,r,n,i,s);l=f.circular,p=f.value}return l&&!u&&s.dereference.circular==="ignore"&&(p=e),u&&(p.$ref=r),{circular:l,value:p}}o(UO,"dereference$Ref");function GO(e,t,r){if(t.circular=!0,!r.dereference.circular)throw Nq.reference(`Circular $ref pointer found at ${e}`);return!0}o(GO,"foundCircularReference")});var YO=v((bU,Jr)=>{"use strict";var KO=IO(),kq=Pm(),Uu=bm(),qq=LO(),Dq=BO(),Lq=Cm(),os=Qt(),{JSONParserError:Fq,InvalidPointerError:Hq,MissingPointerError:Bq,ResolverError:Vq,ParserError:Uq,UnmatchedParserError:Gq,UnmatchedResolverError:zq,isHandledError:Zq,JSONParserErrorGroup:ZO}=Rr(),jr=_m(),{ono:WO}=$r();Jr.exports=Qr;Jr.exports.default=Qr;Jr.exports.JSONParserError=Fq;Jr.exports.InvalidPointerError=Hq;Jr.exports.MissingPointerError=Bq;Jr.exports.ResolverError=Vq;Jr.exports.ParserError=Uq;Jr.exports.UnmatchedParserError=Gq;Jr.exports.UnmatchedResolverError=zq;function Qr(){this.schema=null,this.$refs=new KO}o(Qr,"$RefParser");Qr.parse=o(function(t,r,n,i){let s=this,a=new s;return a.parse.apply(a,arguments)},"parse");Qr.prototype.parse=o(async function(t,r,n,i){let s=Uu(arguments),a;if(!s.path&&!s.schema){let l=WO(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return jr(s.callback,Promise.reject(l))}this.schema=null,this.$refs=new KO;let c="http";if(os.isFileSystemPath(s.path)&&(s.path=os.fromFileSystemPath(s.path),c="file"),s.path=os.resolve(os.cwd(),s.path),s.schema&&typeof s.schema=="object"){let l=this.$refs._add(s.path);l.value=s.schema,l.pathType=c,a=Promise.resolve(s.schema)}else a=kq(s.path,this.$refs,s.options);let u=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return u.schema=l,jr(s.callback,Promise.resolve(u.schema));if(s.options.continueOnError)return u.schema=null,jr(s.callback,Promise.resolve(u.schema));throw WO.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!s.options.continueOnError||!Zq(l)?jr(s.callback,Promise.reject(l)):(this.$refs._$refs[os.stripHash(s.path)]&&this.$refs._$refs[os.stripHash(s.path)].addError(l),jr(s.callback,Promise.resolve(null)))}},"parse");Qr.resolve=o(function(t,r,n,i){let s=this,a=new s;return a.resolve.apply(a,arguments)},"resolve");Qr.prototype.resolve=o(async function(t,r,n,i){let s=this,a=Uu(arguments);try{return await this.parse(a.path,a.schema,a.options),await qq(s,a.options),Tm(s),jr(a.callback,Promise.resolve(s.$refs))}catch(c){return jr(a.callback,Promise.reject(c))}},"resolve");Qr.bundle=o(function(t,r,n,i){let s=this,a=new s;return a.bundle.apply(a,arguments)},"bundle");Qr.prototype.bundle=o(async function(t,r,n,i){let s=this,a=Uu(arguments);try{return await this.resolve(a.path,a.schema,a.options),Dq(s,a.options),Tm(s),jr(a.callback,Promise.resolve(s.schema))}catch(c){return jr(a.callback,Promise.reject(c))}},"bundle");Qr.dereference=o(function(t,r,n,i){let s=this,a=new s;return a.dereference.apply(a,arguments)},"dereference");Qr.prototype.dereference=o(async function(t,r,n,i){let s=this,a=Uu(arguments);try{return await this.resolve(a.path,a.schema,a.options),Lq(s,a.options),Tm(s),jr(a.callback,Promise.resolve(s.schema))}catch(c){return jr(a.callback,Promise.reject(c))}},"dereference");function Tm(e){if(ZO.getParserErrors(e).length>0)throw new ZO(e)}o(Tm,"finalize")});var Rm=v((_U,eP)=>{"use strict";var Wq=Qh(),Kq=em(),QO=bm(),JO=Bc(),XO=mO(),Gu=_m(),{ono:Mr}=$r(),Gi=YO(),Yq=Cm();eP.exports=Xr;function Xr(){Gi.apply(this,arguments)}o(Xr,"SwaggerParser");JO.inherits(Xr,Gi);Xr.parse=Gi.parse;Xr.resolve=Gi.resolve;Xr.bundle=Gi.bundle;Xr.dereference=Gi.dereference;Object.defineProperty(Xr.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});Xr.prototype.parse=async function(e,t,r,n){let i=QO(arguments);i.options=new XO(i.options);try{let s=await Gi.prototype.parse.call(this,i.path,i.schema,i.options);if(s.swagger){if(s.swagger===void 0||s.info===void 0||s.paths===void 0)throw Mr.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof s.swagger=="number")throw Mr.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof s.info.version=="number")throw Mr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(s.swagger!=="2.0")throw Mr.syntax(`Unrecognized Swagger version: ${s.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(s.openapi===void 0||s.info===void 0)throw Mr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(s.paths===void 0)if(s.openapi==="3.1.0"){if(s.webhooks===void 0)throw Mr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw Mr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof s.openapi=="number")throw Mr.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof s.info.version=="number")throw Mr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(s.openapi)===-1)throw Mr.syntax(`Unsupported OpenAPI version: ${s.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}JO.fixOasRelativeServers(s,i.path)}return Gu(i.callback,Promise.resolve(s))}catch(s){return Gu(i.callback,Promise.reject(s))}};Xr.validate=function(e,t,r,n){let i=this,s=new i;return s.validate.apply(s,arguments)};Xr.prototype.validate=async function(e,t,r,n){let i=this,s=QO(arguments);s.options=new XO(s.options);let a=s.options.dereference.circular;s.options.validate.schema&&(s.options.dereference.circular="ignore");try{if(await this.dereference(s.path,s.schema,s.options),s.options.dereference.circular=a,s.options.validate.schema&&(Wq(i.api),i.$refs.circular)){if(a===!0)Yq(i,s.options);else if(a===!1)throw Mr.reference("The API contains circular references")}return s.options.validate.spec&&Kq(i.api),Gu(s.callback,Promise.resolve(i.schema))}catch(c){return Gu(s.callback,Promise.reject(c))}}});var Mt=v(tr=>{"use strict";tr.__esModule=!0;tr.extend=kx;tr.indexOf=qD;tr.escapeExpression=DD;tr.isEmpty=LD;tr.createFrame=FD;tr.blockParams=HD;tr.appendContextPath=BD;var ND={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},jD=/[&<>"'`=]/g,MD=/[&<>"'`=]/;function kD(e){return ND[e]}o(kD,"escapeChar");function kx(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}o(kx,"extend");var og=Object.prototype.toString;tr.toString=og;var ig=o(function(t){return typeof t=="function"},"isFunction");ig(/x/)&&(tr.isFunction=ig=o(function(e){return typeof e=="function"&&og.call(e)==="[object Function]"},"isFunction"));tr.isFunction=ig;var qx=Array.isArray||function(e){return e&&typeof e=="object"?og.call(e)==="[object Array]":!1};tr.isArray=qx;function qD(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}o(qD,"indexOf");function DD(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return MD.test(e)?e.replace(jD,kD):e}o(DD,"escapeExpression");function LD(e){return!e&&e!==0?!0:!!(qx(e)&&e.length===0)}o(LD,"isEmpty");function FD(e){var t=kx({},e);return t._parent=e,t}o(FD,"createFrame");function HD(e,t){return e.path=t,e}o(HD,"blockParams");function BD(e,t){return(e?e+".":"")+t}o(BD,"appendContextPath")});var br=v((dl,Dx)=>{"use strict";dl.__esModule=!0;var sg=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function ag(e,t){var r=t&&t.loc,n=void 0,i=void 0,s=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,s=r.start.column,a=r.end.column,e+=" - "+n+":"+s);for(var c=Error.prototype.constructor.call(this,e),u=0;u<sg.length;u++)this[sg[u]]=c[sg[u]];Error.captureStackTrace&&Error.captureStackTrace(this,ag);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=s,this.endColumn=a))}catch{}}o(ag,"Exception");ag.prototype=new Error;dl.default=ag;Dx.exports=dl.default});var Fx=v((hl,Lx)=>{"use strict";hl.__esModule=!0;var cg=Mt();hl.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(cg.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):n(this);if(r.data&&r.ids){var s=cg.createFrame(r.data);s.contextPath=cg.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(t,r)})};Lx.exports=hl.default});var Bx=v((ml,Hx)=>{"use strict";ml.__esModule=!0;function VD(e){return e&&e.__esModule?e:{default:e}}o(VD,"_interopRequireDefault");var Ua=Mt(),UD=br(),GD=VD(UD);ml.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new GD.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,s=0,a="",c=void 0,u=void 0;r.data&&r.ids&&(u=Ua.appendContextPath(r.data.contextPath,r.ids[0])+"."),Ua.isFunction(t)&&(t=t.call(this)),r.data&&(c=Ua.createFrame(r.data));function l(y,b,g){c&&(c.key=y,c.index=b,c.first=b===0,c.last=!!g,u&&(c.contextPath=u+y)),a=a+n(t[y],{data:c,blockParams:Ua.blockParams([t[y],y],[u+y,null])})}if(o(l,"execIteration"),t&&typeof t=="object")if(Ua.isArray(t))for(var p=t.length;s<p;s++)s in t&&l(s,s,s===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var f=[],d=t[Symbol.iterator](),h=d.next();!h.done;h=d.next())f.push(h.value);t=f;for(var p=t.length;s<p;s++)l(s,s,s===t.length-1)}else(function(){var y=void 0;Object.keys(t).forEach(function(b){y!==void 0&&l(y,s-1),y=b,s++}),y!==void 0&&l(y,s-1,!0)})();return s===0&&(a=i(this)),a})};Hx.exports=ml.default});var Ux=v((gl,Vx)=>{"use strict";gl.__esModule=!0;function zD(e){return e&&e.__esModule?e:{default:e}}o(zD,"_interopRequireDefault");var ZD=br(),WD=zD(ZD);gl.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new WD.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};Vx.exports=gl.default});var Wx=v((yl,Zx)=>{"use strict";yl.__esModule=!0;function KD(e){return e&&e.__esModule?e:{default:e}}o(KD,"_interopRequireDefault");var Gx=Mt(),YD=br(),zx=KD(YD);yl.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new zx.default("#if requires exactly one argument");return Gx.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||Gx.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new zx.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};Zx.exports=yl.default});var Yx=v((bl,Kx)=>{"use strict";bl.__esModule=!0;bl.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)})};Kx.exports=bl.default});var Jx=v((vl,Qx)=>{"use strict";vl.__esModule=!0;vl.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};Qx.exports=vl.default});var e1=v((_l,Xx)=>{"use strict";_l.__esModule=!0;function QD(e){return e&&e.__esModule?e:{default:e}}o(QD,"_interopRequireDefault");var Ga=Mt(),JD=br(),XD=QD(JD);_l.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new XD.default("#with requires exactly one argument");Ga.isFunction(t)&&(t=t.call(this));var n=r.fn;if(Ga.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=Ga.createFrame(r.data),i.contextPath=Ga.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:Ga.blockParams([t],[i&&i.contextPath])})})};Xx.exports=_l.default});var ug=v(Sl=>{"use strict";Sl.__esModule=!0;Sl.registerDefaultHelpers=h4;Sl.moveHelperToHooks=m4;function to(e){return e&&e.__esModule?e:{default:e}}o(to,"_interopRequireDefault");var e4=Fx(),t4=to(e4),r4=Bx(),n4=to(r4),i4=Ux(),o4=to(i4),s4=Wx(),a4=to(s4),c4=Yx(),u4=to(c4),l4=Jx(),f4=to(l4),p4=e1(),d4=to(p4);function h4(e){t4.default(e),n4.default(e),o4.default(e),a4.default(e),u4.default(e),f4.default(e),d4.default(e)}o(h4,"registerDefaultHelpers");function m4(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}o(m4,"moveHelperToHooks")});var r1=v((El,t1)=>{"use strict";El.__esModule=!0;var g4=Mt();El.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var s=t;return r.partials||(r.partials={},s=o(function(a,c){var u=n.partials;n.partials=g4.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,s})};t1.exports=El.default});var n1=v(lg=>{"use strict";lg.__esModule=!0;lg.registerDefaultDecorators=_4;function y4(e){return e&&e.__esModule?e:{default:e}}o(y4,"_interopRequireDefault");var b4=r1(),v4=y4(b4);function _4(e){v4.default(e)}o(_4,"registerDefaultDecorators")});var fg=v((Ol,i1)=>{"use strict";Ol.__esModule=!0;var S4=Mt(),ps={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(t){if(typeof t=="string"){var r=S4.indexOf(ps.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:o(function(t){if(t=ps.lookupLevel(t),typeof console<"u"&&ps.lookupLevel(ps.level)<=t){var r=ps.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];console[r].apply(console,i)}},"log")};Ol.default=ps;i1.exports=Ol.default});var o1=v(pg=>{"use strict";pg.__esModule=!0;pg.createNewLookupObject=O4;var E4=Mt();function O4(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return E4.extend.apply(void 0,[Object.create(null)].concat(t))}o(O4,"createNewLookupObject")});var dg=v(za=>{"use strict";za.__esModule=!0;za.createProtoAccessControl=w4;za.resultIsAllowed=A4;za.resetLoggedProperties=C4;function P4(e){return e&&e.__esModule?e:{default:e}}o(P4,"_interopRequireDefault");var s1=o1(),x4=fg(),$4=P4(x4),Pl=Object.create(null);function w4(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:s1.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:s1.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}o(w4,"createProtoAccessControl");function A4(e,t,r){return a1(typeof e=="function"?t.methods:t.properties,r)}o(A4,"resultIsAllowed");function a1(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(I4(t),!1)}o(a1,"checkWhiteList");function I4(e){Pl[e]!==!0&&(Pl[e]=!0,$4.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
52
52
  You can add a runtime option to disable the check or this warning:
53
- See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(_4,"logUnexpecedPropertyAccessOnce");function S4(){Object.keys(yl).forEach(function(e){delete yl[e]})}o(S4,"resetLoggedProperties")});var vl=v(cn=>{"use strict";cn.__esModule=!0;cn.HandlebarsEnvironment=ug;function e1(e){return e&&e.__esModule?e:{default:e}}o(e1,"_interopRequireDefault");var Ji=Nt(),E4=gr(),ag=e1(E4),O4=rg(),P4=Kx(),x4=ig(),bl=e1(x4),$4=sg(),w4="4.7.8";cn.VERSION=w4;var A4=8;cn.COMPILER_REVISION=A4;var I4=7;cn.LAST_COMPATIBLE_COMPILER_REVISION=I4;var C4={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"};cn.REVISION_CHANGES=C4;var cg="[object Object]";function ug(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},O4.registerDefaultHelpers(this),P4.registerDefaultDecorators(this)}o(ug,"HandlebarsEnvironment");ug.prototype={constructor:ug,logger:bl.default,log:bl.default.log,registerHelper:o(function(t,r){if(Ji.toString.call(t)===cg){if(r)throw new ag.default("Arg not supported with multiple helpers");Ji.extend(this.helpers,t)}else this.helpers[t]=r},"registerHelper"),unregisterHelper:o(function(t){delete this.helpers[t]},"unregisterHelper"),registerPartial:o(function(t,r){if(Ji.toString.call(t)===cg)Ji.extend(this.partials,t);else{if(typeof r>"u")throw new ag.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},"registerPartial"),unregisterPartial:o(function(t){delete this.partials[t]},"unregisterPartial"),registerDecorator:o(function(t,r){if(Ji.toString.call(t)===cg){if(r)throw new ag.default("Arg not supported with multiple decorators");Ji.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:o(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){$4.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var T4=bl.default.log;cn.log=T4;cn.createFrame=Ji.createFrame;cn.logger=bl.default});var r1=v((_l,t1)=>{"use strict";_l.__esModule=!0;function lg(e){this.string=e}o(lg,"SafeString");lg.prototype.toString=lg.prototype.toHTML=function(){return""+this.string};_l.default=lg;t1.exports=_l.default});var n1=v(fg=>{"use strict";fg.__esModule=!0;fg.wrapHelper=R4;function R4(e,t){if(typeof e!="function")return e;var r=o(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=t(i),e.apply(this,arguments)},"wrapper");return r}o(R4,"wrapHelper")});var c1=v(si=>{"use strict";si.__esModule=!0;si.checkRevision=D4;si.template=L4;si.wrapProgram=Sl;si.resolvePartial=F4;si.invokePartial=H4;si.noop=s1;function N4(e){return e&&e.__esModule?e:{default:e}}o(N4,"_interopRequireDefault");function j4(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(j4,"_interopRequireWildcard");var M4=Nt(),yn=j4(M4),k4=gr(),bn=N4(k4),vn=vl(),i1=rg(),q4=n1(),o1=sg();function D4(e){var t=e&&e[0]||1,r=vn.COMPILER_REVISION;if(!(t>=vn.LAST_COMPATIBLE_COMPILER_REVISION&&t<=vn.COMPILER_REVISION))if(t<vn.LAST_COMPATIBLE_COMPILER_REVISION){var n=vn.REVISION_CHANGES[r],i=vn.REVISION_CHANGES[t];throw new bn.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 bn.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}o(D4,"checkRevision");function L4(e,t){if(!t)throw new bn.default("No environment passed to template");if(!e||!e.main)throw new bn.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&e.compiler[0]===7;function n(a,c,u){u.hash&&(c=yn.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,c,u);var l=yn.extend({},u,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),p=t.VM.invokePartial.call(this,a,c,l);if(p==null&&t.compile&&(u.partials[u.name]=t.compile(a,e.compilerOptions,t),p=u.partials[u.name](c,l)),p!=null){if(u.indent){for(var f=p.split(`
53
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(I4,"logUnexpecedPropertyAccessOnce");function C4(){Object.keys(Pl).forEach(function(e){delete Pl[e]})}o(C4,"resetLoggedProperties")});var $l=v(un=>{"use strict";un.__esModule=!0;un.HandlebarsEnvironment=gg;function c1(e){return e&&e.__esModule?e:{default:e}}o(c1,"_interopRequireDefault");var ro=Mt(),T4=br(),hg=c1(T4),R4=ug(),N4=n1(),j4=fg(),xl=c1(j4),M4=dg(),k4="4.7.8";un.VERSION=k4;var q4=8;un.COMPILER_REVISION=q4;var D4=7;un.LAST_COMPATIBLE_COMPILER_REVISION=D4;var L4={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"};un.REVISION_CHANGES=L4;var mg="[object Object]";function gg(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},R4.registerDefaultHelpers(this),N4.registerDefaultDecorators(this)}o(gg,"HandlebarsEnvironment");gg.prototype={constructor:gg,logger:xl.default,log:xl.default.log,registerHelper:o(function(t,r){if(ro.toString.call(t)===mg){if(r)throw new hg.default("Arg not supported with multiple helpers");ro.extend(this.helpers,t)}else this.helpers[t]=r},"registerHelper"),unregisterHelper:o(function(t){delete this.helpers[t]},"unregisterHelper"),registerPartial:o(function(t,r){if(ro.toString.call(t)===mg)ro.extend(this.partials,t);else{if(typeof r>"u")throw new hg.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},"registerPartial"),unregisterPartial:o(function(t){delete this.partials[t]},"unregisterPartial"),registerDecorator:o(function(t,r){if(ro.toString.call(t)===mg){if(r)throw new hg.default("Arg not supported with multiple decorators");ro.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:o(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){M4.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var F4=xl.default.log;un.log=F4;un.createFrame=ro.createFrame;un.logger=xl.default});var l1=v((wl,u1)=>{"use strict";wl.__esModule=!0;function yg(e){this.string=e}o(yg,"SafeString");yg.prototype.toString=yg.prototype.toHTML=function(){return""+this.string};wl.default=yg;u1.exports=wl.default});var f1=v(bg=>{"use strict";bg.__esModule=!0;bg.wrapHelper=H4;function H4(e,t){if(typeof e!="function")return e;var r=o(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=t(i),e.apply(this,arguments)},"wrapper");return r}o(H4,"wrapHelper")});var g1=v(ui=>{"use strict";ui.__esModule=!0;ui.checkRevision=Z4;ui.template=W4;ui.wrapProgram=Al;ui.resolvePartial=K4;ui.invokePartial=Y4;ui.noop=h1;function B4(e){return e&&e.__esModule?e:{default:e}}o(B4,"_interopRequireDefault");function V4(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(V4,"_interopRequireWildcard");var U4=Mt(),vn=V4(U4),G4=br(),_n=B4(G4),Sn=$l(),p1=ug(),z4=f1(),d1=dg();function Z4(e){var t=e&&e[0]||1,r=Sn.COMPILER_REVISION;if(!(t>=Sn.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Sn.COMPILER_REVISION))if(t<Sn.LAST_COMPATIBLE_COMPILER_REVISION){var n=Sn.REVISION_CHANGES[r],i=Sn.REVISION_CHANGES[t];throw new _n.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 _n.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}o(Z4,"checkRevision");function W4(e,t){if(!t)throw new _n.default("No environment passed to template");if(!e||!e.main)throw new _n.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&e.compiler[0]===7;function n(a,c,u){u.hash&&(c=vn.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,c,u);var l=vn.extend({},u,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),p=t.VM.invokePartial.call(this,a,c,l);if(p==null&&t.compile&&(u.partials[u.name]=t.compile(a,e.compilerOptions,t),p=u.partials[u.name](c,l)),p!=null){if(u.indent){for(var f=p.split(`
54
54
  `),d=0,h=f.length;d<h&&!(!f[d]&&d+1===h);d++)f[d]=u.indent+f[d];p=f.join(`
55
- `)}return p}else throw new bn.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var i={strict:o(function(c,u,l){if(!c||!(u in c))throw new bn.default('"'+u+'" not defined in '+c,{loc:l});return i.lookupProperty(c,u)},"strict"),lookupProperty:o(function(c,u){var l=c[u];if(l==null||Object.prototype.hasOwnProperty.call(c,u)||o1.resultIsAllowed(l,i.protoAccessControl,u))return l},"lookupProperty"),lookup:o(function(c,u){for(var l=c.length,p=0;p<l;p++){var f=c[p]&&i.lookupProperty(c[p],u);if(f!=null)return c[p][u]}},"lookup"),lambda:o(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:yn.escapeExpression,invokePartial:n,fn:o(function(c){var u=e[c];return u.decorator=e[c+"_d"],u},"fn"),programs:[],program:o(function(c,u,l,p,f){var d=this.programs[c],h=this.fn(c);return u||f||p||l?d=Sl(this,c,h,u,l,p,f):d||(d=this.programs[c]=Sl(this,c,h)),d},"program"),data:o(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,u){var l=c||u;return c&&u&&c!==u&&(l=yn.extend({},u,c)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;s._setup(c),!c.partial&&e.useData&&(u=B4(a,u));var l=void 0,p=e.useBlockParams?[]:void 0;e.useDepths&&(c.depths?l=a!=c.depths[0]?[a].concat(c.depths):c.depths:l=[a]);function f(d){return""+e.main(i,d,i.helpers,i.partials,u,p,l)}return o(f,"main"),f=a1(e.main,f,i,c.depths||[],u,p),f(a,c)}return o(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var c=yn.extend({},t.helpers,a.helpers);V4(c,i),i.helpers=c,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=yn.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=o1.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;i1.moveHelperToHooks(i,"helperMissing",u),i1.moveHelperToHooks(i,"blockHelperMissing",u)}},s._child=function(a,c,u,l){if(e.useBlockParams&&!u)throw new bn.default("must pass block params");if(e.useDepths&&!l)throw new bn.default("must pass parent depths");return Sl(i,a,e[a],c,0,u,l)},s}o(L4,"template");function Sl(e,t,r,n,i,s,a){function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=a;return a&&u!=a[0]&&!(u===e.nullContext&&a[0]===null)&&(p=[u].concat(a)),r(e,u,e.helpers,e.partials,l.data||n,s&&[l.blockParams].concat(s),p)}return o(c,"prog"),c=a1(r,c,e,a,n,s),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}o(Sl,"wrapProgram");function F4(e,t,r){return e?!e.call&&!r.name&&(r.name=e,e=r.partials[e]):r.name==="@partial-block"?e=r.data["partial-block"]:e=r.partials[r.name],e}o(F4,"resolvePartial");function H4(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!==s1&&function(){r.data=vn.createFrame(r.data);var s=r.fn;i=r.data["partial-block"]=o(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=vn.createFrame(u.data),u.data["partial-block"]=n,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=yn.extend({},r.partials,s.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new bn.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}o(H4,"invokePartial");function s1(){return""}o(s1,"noop");function B4(e,t){return(!t||!("root"in t))&&(t=t?vn.createFrame(t):{},t.root=e),t}o(B4,"initData");function a1(e,t,r,n,i,s){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,s,n),yn.extend(t,a)}return t}o(a1,"executeDecorators");function V4(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=U4(n,t)})}o(V4,"wrapHelpersToPassLookupProperty");function U4(e,t){var r=t.lookupProperty;return q4.wrapHelper(e,function(n){return yn.extend({lookupProperty:r},n)})}o(U4,"passLookupPropertyOption")});var pg=v((El,u1)=>{"use strict";El.__esModule=!0;El.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}};u1.exports=El.default});var h1=v((Ol,d1)=>{"use strict";Ol.__esModule=!0;function hg(e){return e&&e.__esModule?e:{default:e}}o(hg,"_interopRequireDefault");function mg(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(mg,"_interopRequireWildcard");var G4=vl(),l1=mg(G4),z4=r1(),Z4=hg(z4),W4=gr(),K4=hg(W4),Y4=Nt(),dg=mg(Y4),Q4=c1(),f1=mg(Q4),J4=pg(),X4=hg(J4);function p1(){var e=new l1.HandlebarsEnvironment;return dg.extend(e,l1),e.SafeString=Z4.default,e.Exception=K4.default,e.Utils=dg,e.escapeExpression=dg.escapeExpression,e.VM=f1,e.template=function(t){return f1.template(t,e)},e}o(p1,"create");var Ua=p1();Ua.create=p1;X4.default(Ua);Ua.default=Ua;Ol.default=Ua;d1.exports=Ol.default});var gg=v((Pl,g1)=>{"use strict";Pl.__esModule=!0;var m1={helpers:{helperExpression:o(function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},"helperExpression"),scopedId:o(function(t){return/^\.|this\b/.test(t.original)},"scopedId"),simpleId:o(function(t){return t.parts.length===1&&!m1.helpers.scopedId(t)&&!t.depth},"simpleId")}};Pl.default=m1;g1.exports=Pl.default});var b1=v((xl,y1)=>{"use strict";xl.__esModule=!0;var eL=function(){var e={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:o(function(i,s,a,c,u,l,p){var f=l.length-1;switch(u){case 1:return l[f-1];case 2:this.$=c.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:c.stripComment(l[f]),strip:c.stripFlags(l[f],l[f]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[f],value:l[f],loc:c.locInfo(this._$)};break;case 11:this.$=c.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.$=c.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!1,this._$);break;case 14:this.$=c.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:c.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:c.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:c.stripFlags(l[f-5],l[f])};break;case 18:this.$={strip:c.stripFlags(l[f-1],l[f-1]),program:l[f]};break;case 19:var d=c.prepareBlock(l[f-2],l[f-1],l[f],l[f],!1,this._$),h=c.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:c.stripFlags(l[f-2],l[f])};break;case 22:this.$=c.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],c.stripFlags(l[f-4],l[f]),this._$);break;case 23:this.$=c.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],c.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:c.stripFlags(l[f-4],l[f]),loc:c.locInfo(this._$)};break;case 25:this.$=c.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:c.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:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[f],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(l[f-2]),value:l[f],loc:c.locInfo(this._$)};break;case 32:this.$=c.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:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[f]),original:Number(l[f]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[f]==="true",original:l[f]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=l[f];break;case 41:this.$=l[f];break;case 42:this.$=c.preparePath(!0,l[f],this._$);break;case 43:this.$=c.preparePath(!1,l[f],this._$);break;case 44:l[f-2].push({part:c.id(l[f]),original:l[f],separator:l[f-1]}),this.$=l[f-2];break;case 45:this.$=[{part:c.id(l[f]),original:l[f]}];break;case 46:this.$=[];break;case 47:l[f-1].push(l[f]);break;case 48:this.$=[];break;case 49:l[f-1].push(l[f]);break;case 50:this.$=[];break;case 51:l[f-1].push(l[f]);break;case 58:this.$=[];break;case 59:l[f-1].push(l[f]);break;case 64:this.$=[];break;case 65:l[f-1].push(l[f]);break;case 70:this.$=[];break;case 71:l[f-1].push(l[f]);break;case 78:this.$=[];break;case 79:l[f-1].push(l[f]);break;case 82:this.$=[];break;case 83:l[f-1].push(l[f]);break;case 86:this.$=[];break;case 87:l[f-1].push(l[f]);break;case 90:this.$=[];break;case 91:l[f-1].push(l[f]);break;case 94:this.$=[];break;case 95:l[f-1].push(l[f]);break;case 98:this.$=[l[f]];break;case 99:l[f-1].push(l[f]);break;case 100:this.$=[l[f]];break;case 101:l[f-1].push(l[f]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:o(function(i,s){throw new Error(i)},"parseError"),parse:o(function(i){var s=this,a=[0],c=[null],u=[],l=this.table,p="",f=0,d=0,h=0,y=2,b=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 g=this.lexer.yylloc;u.push(g);var P=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function $(ve){a.length=a.length-2*ve,c.length=c.length-ve,u.length=u.length-ve}o($,"popStack");function C(){var ve;return ve=s.lexer.lex()||1,typeof ve!="number"&&(ve=s.symbols_[ve]||ve),ve}o(C,"lex");for(var T,A,K,X,Ze,Ie,re={},M,R,q,Q;;){if(K=a[a.length-1],this.defaultActions[K]?X=this.defaultActions[K]:((T===null||typeof T>"u")&&(T=C()),X=l[K]&&l[K][T]),typeof X>"u"||!X.length||!X[0]){var ue="";if(!h){Q=[];for(M in l[K])this.terminals_[M]&&M>2&&Q.push("'"+this.terminals_[M]+"'");this.lexer.showPosition?ue="Parse error on line "+(f+1)+`:
55
+ `)}return p}else throw new _n.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var i={strict:o(function(c,u,l){if(!c||!(u in c))throw new _n.default('"'+u+'" not defined in '+c,{loc:l});return i.lookupProperty(c,u)},"strict"),lookupProperty:o(function(c,u){var l=c[u];if(l==null||Object.prototype.hasOwnProperty.call(c,u)||d1.resultIsAllowed(l,i.protoAccessControl,u))return l},"lookupProperty"),lookup:o(function(c,u){for(var l=c.length,p=0;p<l;p++){var f=c[p]&&i.lookupProperty(c[p],u);if(f!=null)return c[p][u]}},"lookup"),lambda:o(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:vn.escapeExpression,invokePartial:n,fn:o(function(c){var u=e[c];return u.decorator=e[c+"_d"],u},"fn"),programs:[],program:o(function(c,u,l,p,f){var d=this.programs[c],h=this.fn(c);return u||f||p||l?d=Al(this,c,h,u,l,p,f):d||(d=this.programs[c]=Al(this,c,h)),d},"program"),data:o(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,u){var l=c||u;return c&&u&&c!==u&&(l=vn.extend({},u,c)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;s._setup(c),!c.partial&&e.useData&&(u=Q4(a,u));var l=void 0,p=e.useBlockParams?[]:void 0;e.useDepths&&(c.depths?l=a!=c.depths[0]?[a].concat(c.depths):c.depths:l=[a]);function f(d){return""+e.main(i,d,i.helpers,i.partials,u,p,l)}return o(f,"main"),f=m1(e.main,f,i,c.depths||[],u,p),f(a,c)}return o(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var c=vn.extend({},t.helpers,a.helpers);J4(c,i),i.helpers=c,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=vn.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=d1.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;p1.moveHelperToHooks(i,"helperMissing",u),p1.moveHelperToHooks(i,"blockHelperMissing",u)}},s._child=function(a,c,u,l){if(e.useBlockParams&&!u)throw new _n.default("must pass block params");if(e.useDepths&&!l)throw new _n.default("must pass parent depths");return Al(i,a,e[a],c,0,u,l)},s}o(W4,"template");function Al(e,t,r,n,i,s,a){function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=a;return a&&u!=a[0]&&!(u===e.nullContext&&a[0]===null)&&(p=[u].concat(a)),r(e,u,e.helpers,e.partials,l.data||n,s&&[l.blockParams].concat(s),p)}return o(c,"prog"),c=m1(r,c,e,a,n,s),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}o(Al,"wrapProgram");function K4(e,t,r){return e?!e.call&&!r.name&&(r.name=e,e=r.partials[e]):r.name==="@partial-block"?e=r.data["partial-block"]:e=r.partials[r.name],e}o(K4,"resolvePartial");function Y4(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!==h1&&function(){r.data=Sn.createFrame(r.data);var s=r.fn;i=r.data["partial-block"]=o(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=Sn.createFrame(u.data),u.data["partial-block"]=n,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=vn.extend({},r.partials,s.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new _n.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}o(Y4,"invokePartial");function h1(){return""}o(h1,"noop");function Q4(e,t){return(!t||!("root"in t))&&(t=t?Sn.createFrame(t):{},t.root=e),t}o(Q4,"initData");function m1(e,t,r,n,i,s){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,s,n),vn.extend(t,a)}return t}o(m1,"executeDecorators");function J4(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=X4(n,t)})}o(J4,"wrapHelpersToPassLookupProperty");function X4(e,t){var r=t.lookupProperty;return z4.wrapHelper(e,function(n){return vn.extend({lookupProperty:r},n)})}o(X4,"passLookupPropertyOption")});var vg=v((Il,y1)=>{"use strict";Il.__esModule=!0;Il.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}};y1.exports=Il.default});var E1=v((Cl,S1)=>{"use strict";Cl.__esModule=!0;function Sg(e){return e&&e.__esModule?e:{default:e}}o(Sg,"_interopRequireDefault");function Eg(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(Eg,"_interopRequireWildcard");var eL=$l(),b1=Eg(eL),tL=l1(),rL=Sg(tL),nL=br(),iL=Sg(nL),oL=Mt(),_g=Eg(oL),sL=g1(),v1=Eg(sL),aL=vg(),cL=Sg(aL);function _1(){var e=new b1.HandlebarsEnvironment;return _g.extend(e,b1),e.SafeString=rL.default,e.Exception=iL.default,e.Utils=_g,e.escapeExpression=_g.escapeExpression,e.VM=v1,e.template=function(t){return v1.template(t,e)},e}o(_1,"create");var Za=_1();Za.create=_1;cL.default(Za);Za.default=Za;Cl.default=Za;S1.exports=Cl.default});var Og=v((Tl,P1)=>{"use strict";Tl.__esModule=!0;var O1={helpers:{helperExpression:o(function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},"helperExpression"),scopedId:o(function(t){return/^\.|this\b/.test(t.original)},"scopedId"),simpleId:o(function(t){return t.parts.length===1&&!O1.helpers.scopedId(t)&&!t.depth},"simpleId")}};Tl.default=O1;P1.exports=Tl.default});var $1=v((Rl,x1)=>{"use strict";Rl.__esModule=!0;var uL=function(){var e={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:o(function(i,s,a,c,u,l,p){var f=l.length-1;switch(u){case 1:return l[f-1];case 2:this.$=c.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:c.stripComment(l[f]),strip:c.stripFlags(l[f],l[f]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[f],value:l[f],loc:c.locInfo(this._$)};break;case 11:this.$=c.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.$=c.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!1,this._$);break;case 14:this.$=c.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:c.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:c.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:c.stripFlags(l[f-5],l[f])};break;case 18:this.$={strip:c.stripFlags(l[f-1],l[f-1]),program:l[f]};break;case 19:var d=c.prepareBlock(l[f-2],l[f-1],l[f],l[f],!1,this._$),h=c.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:c.stripFlags(l[f-2],l[f])};break;case 22:this.$=c.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],c.stripFlags(l[f-4],l[f]),this._$);break;case 23:this.$=c.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],c.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:c.stripFlags(l[f-4],l[f]),loc:c.locInfo(this._$)};break;case 25:this.$=c.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:c.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:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[f],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(l[f-2]),value:l[f],loc:c.locInfo(this._$)};break;case 32:this.$=c.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:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[f]),original:Number(l[f]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[f]==="true",original:l[f]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=l[f];break;case 41:this.$=l[f];break;case 42:this.$=c.preparePath(!0,l[f],this._$);break;case 43:this.$=c.preparePath(!1,l[f],this._$);break;case 44:l[f-2].push({part:c.id(l[f]),original:l[f],separator:l[f-1]}),this.$=l[f-2];break;case 45:this.$=[{part:c.id(l[f]),original:l[f]}];break;case 46:this.$=[];break;case 47:l[f-1].push(l[f]);break;case 48:this.$=[];break;case 49:l[f-1].push(l[f]);break;case 50:this.$=[];break;case 51:l[f-1].push(l[f]);break;case 58:this.$=[];break;case 59:l[f-1].push(l[f]);break;case 64:this.$=[];break;case 65:l[f-1].push(l[f]);break;case 70:this.$=[];break;case 71:l[f-1].push(l[f]);break;case 78:this.$=[];break;case 79:l[f-1].push(l[f]);break;case 82:this.$=[];break;case 83:l[f-1].push(l[f]);break;case 86:this.$=[];break;case 87:l[f-1].push(l[f]);break;case 90:this.$=[];break;case 91:l[f-1].push(l[f]);break;case 94:this.$=[];break;case 95:l[f-1].push(l[f]);break;case 98:this.$=[l[f]];break;case 99:l[f-1].push(l[f]);break;case 100:this.$=[l[f]];break;case 101:l[f-1].push(l[f]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:o(function(i,s){throw new Error(i)},"parseError"),parse:o(function(i){var s=this,a=[0],c=[null],u=[],l=this.table,p="",f=0,d=0,h=0,y=2,b=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 g=this.lexer.yylloc;u.push(g);var P=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function $(ve){a.length=a.length-2*ve,c.length=c.length-ve,u.length=u.length-ve}o($,"popStack");function C(){var ve;return ve=s.lexer.lex()||1,typeof ve!="number"&&(ve=s.symbols_[ve]||ve),ve}o(C,"lex");for(var T,A,te,J,Ee,Ae,re={},M,R,q,Y;;){if(te=a[a.length-1],this.defaultActions[te]?J=this.defaultActions[te]:((T===null||typeof T>"u")&&(T=C()),J=l[te]&&l[te][T]),typeof J>"u"||!J.length||!J[0]){var ue="";if(!h){Y=[];for(M in l[te])this.terminals_[M]&&M>2&&Y.push("'"+this.terminals_[M]+"'");this.lexer.showPosition?ue="Parse error on line "+(f+1)+`:
56
56
  `+this.lexer.showPosition()+`
57
- Expecting `+Q.join(", ")+", got '"+(this.terminals_[T]||T)+"'":ue="Parse error on line "+(f+1)+": Unexpected "+(T==1?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(ue,{text:this.lexer.match,token:this.terminals_[T]||T,line:this.lexer.yylineno,loc:g,expected:Q})}}if(X[0]instanceof Array&&X.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+T);switch(X[0]){case 1:a.push(T),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(X[1]),T=null,A?(T=A,A=null):(d=this.lexer.yyleng,p=this.lexer.yytext,f=this.lexer.yylineno,g=this.lexer.yylloc,h>0&&h--);break;case 2:if(R=this.productions_[X[1]][1],re.$=c[c.length-R],re._$={first_line:u[u.length-(R||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(R||1)].first_column,last_column:u[u.length-1].last_column},P&&(re._$.range=[u[u.length-(R||1)].range[0],u[u.length-1].range[1]]),Ie=this.performAction.call(re,p,d,f,this.yy,X[1],c,u),typeof Ie<"u")return Ie;R&&(a=a.slice(0,-1*R*2),c=c.slice(0,-1*R),u=u.slice(0,-1*R)),a.push(this.productions_[X[1]][0]),c.push(re.$),u.push(re._$),q=l[a[a.length-2]][a[a.length-1]],a.push(q);break;case 3:return!0}}return!0},"parse")},t=function(){var n={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
57
+ Expecting `+Y.join(", ")+", got '"+(this.terminals_[T]||T)+"'":ue="Parse error on line "+(f+1)+": Unexpected "+(T==1?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(ue,{text:this.lexer.match,token:this.terminals_[T]||T,line:this.lexer.yylineno,loc:g,expected:Y})}}if(J[0]instanceof Array&&J.length>1)throw new Error("Parse Error: multiple actions possible at state: "+te+", token: "+T);switch(J[0]){case 1:a.push(T),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(J[1]),T=null,A?(T=A,A=null):(d=this.lexer.yyleng,p=this.lexer.yytext,f=this.lexer.yylineno,g=this.lexer.yylloc,h>0&&h--);break;case 2:if(R=this.productions_[J[1]][1],re.$=c[c.length-R],re._$={first_line:u[u.length-(R||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(R||1)].first_column,last_column:u[u.length-1].last_column},P&&(re._$.range=[u[u.length-(R||1)].range[0],u[u.length-1].range[1]]),Ae=this.performAction.call(re,p,d,f,this.yy,J[1],c,u),typeof Ae<"u")return Ae;R&&(a=a.slice(0,-1*R*2),c=c.slice(0,-1*R),u=u.slice(0,-1*R)),a.push(this.productions_[J[1]][0]),c.push(re.$),u.push(re._$),q=l[a[a.length-2]][a[a.length-1]],a.push(q);break;case 3:return!0}}return!0},"parse")},t=function(){var n={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
58
58
  `+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,c,u,l,p;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),d=0;d<f.length&&(c=this._input.match(this.rules[f[d]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,u=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],s=this.performAction.call(this,this.yy,this,f[u],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
59
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=o(function(s,a,c,u){function l(f,d){return a.yytext=a.yytext.substring(f,a.yyleng-d+f)}o(l,"strip");var p=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();e.lexer=t;function r(){this.yy={}}return o(r,"Parser"),r.prototype=e,e.Parser=r,new r}();xl.default=eL;y1.exports=xl.default});var Il=v((Al,S1)=>{"use strict";Al.__esModule=!0;function tL(e){return e&&e.__esModule?e:{default:e}}o(tL,"_interopRequireDefault");var rL=gr(),yg=tL(rL);function $l(){this.parents=[]}o($l,"Visitor");$l.prototype={constructor:$l,mutating:!1,acceptKey:o(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!$l.prototype[n.type])throw new yg.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+t.type);t[r]=n}},"acceptKey"),acceptRequired:o(function(t,r){if(this.acceptKey(t,r),!t[r])throw new yg.default(t.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(t){for(var r=0,n=t.length;r<n;r++)this.acceptKey(t,r),t[r]||(t.splice(r,1),r--,n--)},"acceptArray"),accept:o(function(t){if(t){if(!this[t.type])throw new yg.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var r=this[t.type](t);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return t}},"accept"),Program:o(function(t){this.acceptArray(t.body)},"Program"),MustacheStatement:wl,Decorator:wl,BlockStatement:v1,DecoratorBlock:v1,PartialStatement:_1,PartialBlockStatement:o(function(t){_1.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:wl,PathExpression:o(function(){},"PathExpression"),StringLiteral:o(function(){},"StringLiteral"),NumberLiteral:o(function(){},"NumberLiteral"),BooleanLiteral:o(function(){},"BooleanLiteral"),UndefinedLiteral:o(function(){},"UndefinedLiteral"),NullLiteral:o(function(){},"NullLiteral"),Hash:o(function(t){this.acceptArray(t.pairs)},"Hash"),HashPair:o(function(t){this.acceptRequired(t,"value")},"HashPair")};function wl(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(wl,"visitSubExpression");function v1(e){wl.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}o(v1,"visitBlock");function _1(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(_1,"visitPartial");Al.default=$l;S1.exports=Al.default});var O1=v((Cl,E1)=>{"use strict";Cl.__esModule=!0;function nL(e){return e&&e.__esModule?e:{default:e}}o(nL,"_interopRequireDefault");var iL=Il(),oL=nL(iL);function un(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}o(un,"WhitespaceControl");un.prototype=new oL.default;un.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,s=n.length;i<s;i++){var a=n[i],c=this.accept(a);if(c){var u=bg(n,i,r),l=vg(n,i,r),p=c.openStandalone&&u,f=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&Xi(n,i,!0),c.open&&ai(n,i,!0),t&&d&&(Xi(n,i),ai(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(Xi((a.program||a.inverse).body),ai(n,i)),t&&f&&(Xi(n,i),ai((a.inverse||a.program).body))}}return e};un.prototype.BlockStatement=un.prototype.DecoratorBlock=un.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var s={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:vg(t.body),closeStandalone:bg((n||t).body)};if(e.openStrip.close&&Xi(t.body,null,!0),r){var a=e.inverseStrip;a.open&&ai(t.body,null,!0),a.close&&Xi(n.body,null,!0),e.closeStrip.open&&ai(i.body,null,!0),!this.options.ignoreStandalone&&bg(t.body)&&vg(n.body)&&(ai(t.body),Xi(n.body))}else e.closeStrip.open&&ai(t.body,null,!0);return s};un.prototype.Decorator=un.prototype.MustacheStatement=function(e){return e.strip};un.prototype.PartialStatement=un.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function bg(e,t,r){t===void 0&&(t=e.length);var n=e[t-1],i=e[t-2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}o(bg,"isPrevWhitespace");function vg(e,t,r){t===void 0&&(t=-1);var n=e[t+1],i=e[t+2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}o(vg,"isNextWhitespace");function Xi(e,t,r){var n=e[t==null?0:t+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}o(Xi,"omitRight");function ai(e,t,r){var n=e[t==null?e.length-1:t-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}o(ai,"omitLeft");Cl.default=un;E1.exports=Cl.default});var P1=v(yr=>{"use strict";yr.__esModule=!0;yr.SourceLocation=cL;yr.id=uL;yr.stripFlags=lL;yr.stripComment=fL;yr.preparePath=pL;yr.prepareMustache=dL;yr.prepareRawBlock=hL;yr.prepareBlock=mL;yr.prepareProgram=gL;yr.preparePartialBlock=yL;function sL(e){return e&&e.__esModule?e:{default:e}}o(sL,"_interopRequireDefault");var aL=gr(),_g=sL(aL);function Sg(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new _g.default(e.path.original+" doesn't match "+t,r)}}o(Sg,"validateClose");function cL(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}o(cL,"SourceLocation");function uL(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}o(uL,"id");function lL(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}o(lL,"stripFlags");function fL(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(fL,"stripComment");function pL(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],s=0,a=0,c=t.length;a<c;a++){var u=t[a].part,l=t[a].original!==u;if(n+=(t[a].separator||"")+u,!l&&(u===".."||u==="."||u==="this")){if(i.length>0)throw new _g.default("Invalid path: "+n,{loc:r});u===".."&&s++}else i.push(u)}return{type:"PathExpression",data:e,depth:s,parts:i,original:n,loc:r}}o(pL,"preparePath");function dL(e,t,r,n,i,s){var a=n.charAt(3)||n.charAt(2),c=a!=="{"&&a!=="&",u=/\*/.test(n);return{type:u?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:c,strip:i,loc:this.locInfo(s)}}o(dL,"prepareMustache");function hL(e,t,r,n){Sg(e,r),n=this.locInfo(n);var i={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}o(hL,"prepareRawBlock");function mL(e,t,r,n,i,s){n&&n.path&&Sg(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new _g.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),u=r.strip,c=r.program}return i&&(i=c,c=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:u,closeStrip:n&&n.strip,loc:this.locInfo(s)}}o(mL,"prepareBlock");function gL(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}o(gL,"prepareProgram");function yL(e,t,r,n){return Sg(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}o(yL,"preparePartialBlock")});var w1=v(Ga=>{"use strict";Ga.__esModule=!0;Ga.parseWithoutProcessing=$1;Ga.parse=xL;function bL(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(bL,"_interopRequireWildcard");function x1(e){return e&&e.__esModule?e:{default:e}}o(x1,"_interopRequireDefault");var vL=b1(),Eg=x1(vL),_L=O1(),SL=x1(_L),EL=P1(),OL=bL(EL),PL=Nt();Ga.parser=Eg.default;var Tl={};PL.extend(Tl,OL);function $1(e,t){if(e.type==="Program")return e;Eg.default.yy=Tl,Tl.locInfo=function(n){return new Tl.SourceLocation(t&&t.srcName,n)};var r=Eg.default.parse(e);return r}o($1,"parseWithoutProcessing");function xL(e,t){var r=$1(e,t),n=new SL.default(t);return n.accept(r)}o(xL,"parse")});var T1=v(Ka=>{"use strict";Ka.__esModule=!0;Ka.Compiler=Og;Ka.precompile=IL;Ka.compile=CL;function I1(e){return e&&e.__esModule?e:{default:e}}o(I1,"_interopRequireDefault");var $L=gr(),Za=I1($L),Wa=Nt(),wL=gg(),za=I1(wL),AL=[].slice;function Og(){}o(Og,"Compiler");Og.prototype={compiler:Og,equals:o(function(t){var r=this.opcodes.length;if(t.opcodes.length!==r)return!1;for(var n=0;n<r;n++){var i=this.opcodes[n],s=t.opcodes[n];if(i.opcode!==s.opcode||!C1(i.args,s.args))return!1}r=this.children.length;for(var n=0;n<r;n++)if(!this.children[n].equals(t.children[n]))return!1;return!0},"equals"),guid:0,compile:o(function(t,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=Wa.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(t)},"compile"),compileProgram:o(function(t){var r=new this.compiler,n=r.compile(t,this.options),i=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[i]=n,this.useDepths=this.useDepths||n.useDepths,i},"compileProgram"),accept:o(function(t){if(!this[t.type])throw new Za.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},"accept"),Program:o(function(t){this.options.blockParams.unshift(t.blockParams);for(var r=t.body,n=r.length,i=0;i<n;i++)this.accept(r[i]);return this.options.blockParams.shift(),this.isSimple=n===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},"Program"),BlockStatement:o(function(t){A1(t);var r=t.program,n=t.inverse;r=r&&this.compileProgram(r),n=n&&this.compileProgram(n);var i=this.classifySexpr(t);i==="helper"?this.helperSexpr(t,r,n):i==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,r,n),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},"BlockStatement"),DecoratorBlock:o(function(t){var r=t.program&&this.compileProgram(t.program),n=this.setupFullMustacheParams(t,r,void 0),i=t.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,i.original)},"DecoratorBlock"),PartialStatement:o(function(t){this.usePartial=!0;var r=t.program;r&&(r=this.compileProgram(t.program));var n=t.params;if(n.length>1)throw new Za.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=t.name.original,s=t.name.type==="SubExpression";s&&this.accept(t.name),this.setupFullMustacheParams(t,r,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",s,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:o(function(t){this.PartialStatement(t)},"PartialBlockStatement"),MustacheStatement:o(function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:o(function(t){this.DecoratorBlock(t)},"Decorator"),ContentStatement:o(function(t){t.value&&this.opcode("appendContent",t.value)},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:o(function(t){A1(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},"SubExpression"),ambiguousSexpr:o(function(t,r,n){var i=t.path,s=i.parts[0],a=r!=null||n!=null;this.opcode("getContext",i.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",s,a)},"ambiguousSexpr"),simpleSexpr:o(function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:o(function(t,r,n){var i=this.setupFullMustacheParams(t,r,n),s=t.path,a=s.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new Za.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);s.strict=!0,s.falsy=!0,this.accept(s),this.opcode("invokeHelper",i.length,s.original,za.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=za.default.helpers.scopedId(t),i=!t.depth&&!n&&this.blockParamIndex(r);i?this.opcode("lookupBlockParam",i,t.parts):r?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},"PathExpression"),StringLiteral:o(function(t){this.opcode("pushString",t.value)},"StringLiteral"),NumberLiteral:o(function(t){this.opcode("pushLiteral",t.value)},"NumberLiteral"),BooleanLiteral:o(function(t){this.opcode("pushLiteral",t.value)},"BooleanLiteral"),UndefinedLiteral:o(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:o(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:o(function(t){var r=t.pairs,n=0,i=r.length;for(this.opcode("pushHash");n<i;n++)this.pushParam(r[n].value);for(;n--;)this.opcode("assignToHash",r[n].key);this.opcode("popHash")},"Hash"),opcode:o(function(t){this.opcodes.push({opcode:t,args:AL.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:o(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:o(function(t){var r=za.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&za.default.helpers.helperExpression(t),s=!n&&(i||r);if(s&&!i){var a=t.path.parts[0],c=this.options;c.knownHelpers[a]?i=!0:c.knownHelpersOnly&&(s=!1)}return i?"helper":s?"ambiguous":"simple"},"classifySexpr"),pushParams:o(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:o(function(t){var r=t.value!=null?t.value:t.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",r,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var n=void 0;if(t.parts&&!za.default.helpers.scopedId(t)&&!t.depth&&(n=this.blockParamIndex(t.parts[0])),n){var i=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,i)}else r=t.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,r)}this.accept(t)}},"pushParam"),setupFullMustacheParams:o(function(t,r,n,i){var s=t.params;return this.pushParams(s),this.opcode("pushProgram",r),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),s},"setupFullMustacheParams"),blockParamIndex:o(function(t){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],s=i&&Wa.indexOf(i,t);if(i&&s>=0)return[r,s]}},"blockParamIndex")};function IL(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Za.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=r.parse(e,t),i=new r.Compiler().compile(n,t);return new r.JavaScriptCompiler().compile(i,t)}o(IL,"precompile");function CL(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Za.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=Wa.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function i(){var a=r.parse(e,t),c=new r.Compiler().compile(a,t),u=new r.JavaScriptCompiler().compile(c,t,void 0,!0);return r.template(u)}o(i,"compileInput");function s(a,c){return n||(n=i()),n.call(this,a,c)}return o(s,"ret"),s._setup=function(a){return n||(n=i()),n._setup(a)},s._child=function(a,c,u,l){return n||(n=i()),n._child(a,c,u,l)},s}o(CL,"compile");function C1(e,t){if(e===t)return!0;if(Wa.isArray(e)&&Wa.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!C1(e[r],t[r]))return!1;return!0}}o(C1,"argEquals");function A1(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}o(A1,"transformLiteralToPath")});var N1=v(Pg=>{var R1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Pg.encode=function(e){if(0<=e&&e<R1.length)return R1[e];throw new TypeError("Must be between 0 and 63: "+e)};Pg.decode=function(e){var t=65,r=90,n=97,i=122,s=48,a=57,c=43,u=47,l=26,p=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:s<=e&&e<=a?e-s+p:e==c?62:e==u?63:-1}});var wg=v($g=>{var j1=N1(),xg=5,M1=1<<xg,k1=M1-1,q1=M1;function TL(e){return e<0?(-e<<1)+1:(e<<1)+0}o(TL,"toVLQSigned");function RL(e){var t=(e&1)===1,r=e>>1;return t?-r:r}o(RL,"fromVLQSigned");$g.encode=o(function(t){var r="",n,i=TL(t);do n=i&k1,i>>>=xg,i>0&&(n|=q1),r+=j1.encode(n);while(i>0);return r},"base64VLQ_encode");$g.decode=o(function(t,r,n){var i=t.length,s=0,a=0,c,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=j1.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&q1),u&=k1,s=s+(u<<a),a+=xg}while(c);n.value=RL(s),n.rest=r},"base64VLQ_decode")});var ps=v($t=>{function NL(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}o(NL,"getArg");$t.getArg=NL;var D1=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,jL=/^data:.+\,.+$/;function Ya(e){var t=e.match(D1);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}o(Ya,"urlParse");$t.urlParse=Ya;function ls(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}o(ls,"urlGenerate");$t.urlGenerate=ls;function Ag(e){var t=e,r=Ya(e);if(r){if(!r.path)return e;t=r.path}for(var n=$t.isAbsolute(t),i=t.split(/\/+/),s,a=0,c=i.length-1;c>=0;c--)s=i[c],s==="."?i.splice(c,1):s===".."?a++:a>0&&(s===""?(i.splice(c+1,a),a=0):(i.splice(c,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,ls(r)):t}o(Ag,"normalize");$t.normalize=Ag;function L1(e,t){e===""&&(e="."),t===""&&(t=".");var r=Ya(t),n=Ya(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),ls(r);if(r||t.match(jL))return t;if(n&&!n.host&&!n.path)return n.host=t,ls(n);var i=t.charAt(0)==="/"?t:Ag(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,ls(n)):i}o(L1,"join");$t.join=L1;$t.isAbsolute=function(e){return e.charAt(0)==="/"||D1.test(e)};function ML(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}o(ML,"relative");$t.relative=ML;var F1=function(){var e=Object.create(null);return!("__proto__"in e)}();function H1(e){return e}o(H1,"identity");function kL(e){return B1(e)?"$"+e:e}o(kL,"toSetString");$t.toSetString=F1?H1:kL;function qL(e){return B1(e)?e.slice(1):e}o(qL,"fromSetString");$t.fromSetString=F1?H1:qL;function B1(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}o(B1,"isProtoString");function DL(e,t,r){var n=fs(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:fs(e.name,t.name)}o(DL,"compareByOriginalPositions");$t.compareByOriginalPositions=DL;function LL(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=fs(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:fs(e.name,t.name)}o(LL,"compareByGeneratedPositionsDeflated");$t.compareByGeneratedPositionsDeflated=LL;function fs(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}o(fs,"strcmp");function FL(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=fs(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:fs(e.name,t.name)}o(FL,"compareByGeneratedPositionsInflated");$t.compareByGeneratedPositionsInflated=FL;function HL(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}o(HL,"parseSourceMapInput");$t.parseSourceMapInput=HL;function BL(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=Ya(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=L1(ls(n),t)}return Ag(t)}o(BL,"computeSourceURL");$t.computeSourceURL=BL});var Tg=v(V1=>{var Ig=ps(),Cg=Object.prototype.hasOwnProperty,eo=typeof Map<"u";function _n(){this._array=[],this._set=eo?new Map:Object.create(null)}o(_n,"ArraySet");_n.fromArray=o(function(t,r){for(var n=new _n,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n},"ArraySet_fromArray");_n.prototype.size=o(function(){return eo?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");_n.prototype.add=o(function(t,r){var n=eo?t:Ig.toSetString(t),i=eo?this.has(t):Cg.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(eo?this._set.set(t,s):this._set[n]=s)},"ArraySet_add");_n.prototype.has=o(function(t){if(eo)return this._set.has(t);var r=Ig.toSetString(t);return Cg.call(this._set,r)},"ArraySet_has");_n.prototype.indexOf=o(function(t){if(eo){var r=this._set.get(t);if(r>=0)return r}else{var n=Ig.toSetString(t);if(Cg.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");_n.prototype.at=o(function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)},"ArraySet_at");_n.prototype.toArray=o(function(){return this._array.slice()},"ArraySet_toArray");V1.ArraySet=_n});var z1=v(G1=>{var U1=ps();function VL(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||U1.compareByGeneratedPositionsInflated(e,t)<=0}o(VL,"generatedPositionAfter");function Rl(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(Rl,"MappingList");Rl.prototype.unsortedForEach=o(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");Rl.prototype.add=o(function(t){VL(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");Rl.prototype.toArray=o(function(){return this._sorted||(this._array.sort(U1.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");G1.MappingList=Rl});var Rg=v(Z1=>{var Qa=wg(),ot=ps(),Nl=Tg().ArraySet,UL=z1().MappingList;function br(e){e||(e={}),this._file=ot.getArg(e,"file",null),this._sourceRoot=ot.getArg(e,"sourceRoot",null),this._skipValidation=ot.getArg(e,"skipValidation",!1),this._sources=new Nl,this._names=new Nl,this._mappings=new UL,this._sourcesContents=null}o(br,"SourceMapGenerator");br.prototype._version=3;br.fromSourceMap=o(function(t){var r=t.sourceRoot,n=new br({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=ot.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s)}),t.sources.forEach(function(i){var s=i;r!==null&&(s=ot.relative(r,i)),n._sources.has(s)||n._sources.add(s);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");br.prototype.addMapping=o(function(t){var r=ot.getArg(t,"generated"),n=ot.getArg(t,"original",null),i=ot.getArg(t,"source",null),s=ot.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})},"SourceMapGenerator_addMapping");br.prototype.setSourceContent=o(function(t,r){var n=t;this._sourceRoot!=null&&(n=ot.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[ot.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[ot.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");br.prototype.applySourceMap=o(function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var s=this._sourceRoot;s!=null&&(i=ot.relative(s,i));var a=new Nl,c=new Nl;this._mappings.unsortedForEach(function(u){if(u.source===i&&u.originalLine!=null){var l=t.originalPositionFor({line:u.originalLine,column:u.originalColumn});l.source!=null&&(u.source=l.source,n!=null&&(u.source=ot.join(n,u.source)),s!=null&&(u.source=ot.relative(s,u.source)),u.originalLine=l.line,u.originalColumn=l.column,l.name!=null&&(u.name=l.name))}var p=u.source;p!=null&&!a.has(p)&&a.add(p);var f=u.name;f!=null&&!c.has(f)&&c.add(f)},this),this._sources=a,this._names=c,t.sources.forEach(function(u){var l=t.sourceContentFor(u);l!=null&&(n!=null&&(u=ot.join(n,u)),s!=null&&(u=ot.relative(s,u)),this.setSourceContent(u,l))},this)},"SourceMapGenerator_applySourceMap");br.prototype._validateMapping=o(function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}},"SourceMapGenerator_validateMapping");br.prototype._serializeMappings=o(function(){for(var t=0,r=1,n=0,i=0,s=0,a=0,c="",u,l,p,f,d=this._mappings.toArray(),h=0,y=d.length;h<y;h++){if(l=d[h],u="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)u+=";",r++;else if(h>0){if(!ot.compareByGeneratedPositionsInflated(l,d[h-1]))continue;u+=","}u+=Qa.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),u+=Qa.encode(f-a),a=f,u+=Qa.encode(l.originalLine-1-i),i=l.originalLine-1,u+=Qa.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),u+=Qa.encode(p-s),s=p)),c+=u}return c},"SourceMapGenerator_serializeMappings");br.prototype._generateSourcesContent=o(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=ot.relative(r,n));var i=ot.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");br.prototype.toJSON=o(function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},"SourceMapGenerator_toJSON");br.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");Z1.SourceMapGenerator=br});var W1=v(to=>{to.GREATEST_LOWER_BOUND=1;to.LEAST_UPPER_BOUND=2;function Ng(e,t,r,n,i,s){var a=Math.floor((t-e)/2)+e,c=i(r,n[a],!0);return c===0?a:c>0?t-a>1?Ng(a,t,r,n,i,s):s==to.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?Ng(e,a,r,n,i,s):s==to.LEAST_UPPER_BOUND?a:e<0?-1:e}o(Ng,"recursiveSearch");to.search=o(function(t,r,n,i){if(r.length===0)return-1;var s=Ng(-1,r.length,t,r,n,i||to.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s},"search")});var Y1=v(K1=>{function jg(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}o(jg,"swap");function GL(e,t){return Math.round(e+Math.random()*(t-e))}o(GL,"randomIntInRange");function Mg(e,t,r,n){if(r<n){var i=GL(r,n),s=r-1;jg(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(s+=1,jg(e,s,c));jg(e,s+1,c);var u=s+1;Mg(e,t,r,u-1),Mg(e,t,u+1,n)}}o(Mg,"doQuickSort");K1.quickSort=function(e,t){Mg(e,t,0,e.length-1)}});var J1=v(jl=>{var U=ps(),kg=W1(),ds=Tg().ArraySet,zL=wg(),Ja=Y1().quickSort;function Fe(e,t){var r=e;return typeof e=="string"&&(r=U.parseSourceMapInput(e)),r.sections!=null?new kr(r,t):new bt(r,t)}o(Fe,"SourceMapConsumer");Fe.fromSourceMap=function(e,t){return bt.fromSourceMap(e,t)};Fe.prototype._version=3;Fe.prototype.__generatedMappings=null;Object.defineProperty(Fe.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});Fe.prototype.__originalMappings=null;Object.defineProperty(Fe.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});Fe.prototype._charIsMappingSeparator=o(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");Fe.prototype._parseMappings=o(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");Fe.GENERATED_ORDER=1;Fe.ORIGINAL_ORDER=2;Fe.GREATEST_LOWER_BOUND=1;Fe.LEAST_UPPER_BOUND=2;Fe.prototype.eachMapping=o(function(t,r,n){var i=r||null,s=n||Fe.GENERATED_ORDER,a;switch(s){case Fe.GENERATED_ORDER:a=this._generatedMappings;break;case Fe.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(u){var l=u.source===null?null:this._sources.at(u.source);return l=U.computeSourceURL(c,l,this._sourceMapURL),{source:l,generatedLine:u.generatedLine,generatedColumn:u.generatedColumn,originalLine:u.originalLine,originalColumn:u.originalColumn,name:u.name===null?null:this._names.at(u.name)}},this).forEach(t,i)},"SourceMapConsumer_eachMapping");Fe.prototype.allGeneratedPositionsFor=o(function(t){var r=U.getArg(t,"line"),n={source:U.getArg(t,"source"),originalLine:r,originalColumn:U.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",U.compareByOriginalPositions,kg.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)i.push({line:U.getArg(a,"generatedLine",null),column:U.getArg(a,"generatedColumn",null),lastColumn:U.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var u=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==u;)i.push({line:U.getArg(a,"generatedLine",null),column:U.getArg(a,"generatedColumn",null),lastColumn:U.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i},"SourceMapConsumer_allGeneratedPositionsFor");jl.SourceMapConsumer=Fe;function bt(e,t){var r=e;typeof e=="string"&&(r=U.parseSourceMapInput(e));var n=U.getArg(r,"version"),i=U.getArg(r,"sources"),s=U.getArg(r,"names",[]),a=U.getArg(r,"sourceRoot",null),c=U.getArg(r,"sourcesContent",null),u=U.getArg(r,"mappings"),l=U.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=U.normalize(a)),i=i.map(String).map(U.normalize).map(function(p){return a&&U.isAbsolute(a)&&U.isAbsolute(p)?U.relative(a,p):p}),this._names=ds.fromArray(s.map(String),!0),this._sources=ds.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(p){return U.computeSourceURL(a,p,t)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=t,this.file=l}o(bt,"BasicSourceMapConsumer");bt.prototype=Object.create(Fe.prototype);bt.prototype.consumer=Fe;bt.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=U.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};bt.fromSourceMap=o(function(t,r){var n=Object.create(bt.prototype),i=n._names=ds.fromArray(t._names.toArray(),!0),s=n._sources=ds.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 U.computeSourceURL(n.sourceRoot,h,r)});for(var a=t._mappings.toArray().slice(),c=n.__generatedMappings=[],u=n.__originalMappings=[],l=0,p=a.length;l<p;l++){var f=a[l],d=new Q1;d.generatedLine=f.generatedLine,d.generatedColumn=f.generatedColumn,f.source&&(d.source=s.indexOf(f.source),d.originalLine=f.originalLine,d.originalColumn=f.originalColumn,f.name&&(d.name=i.indexOf(f.name)),u.push(d)),c.push(d)}return Ja(n.__originalMappings,U.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");bt.prototype._version=3;Object.defineProperty(bt.prototype,"sources",{get:o(function(){return this._absoluteSources.slice()},"get")});function Q1(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o(Q1,"Mapping");bt.prototype._parseMappings=o(function(t,r){for(var n=1,i=0,s=0,a=0,c=0,u=0,l=t.length,p=0,f={},d={},h=[],y=[],b,g,P,$,C;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(b=new Q1,b.generatedLine=n,$=p;$<l&&!this._charIsMappingSeparator(t,$);$++);if(g=t.slice(p,$),P=f[g],P)p+=g.length;else{for(P=[];p<$;)zL.decode(t,p,d),C=d.value,p=d.rest,P.push(C);if(P.length===2)throw new Error("Found a source, but no line and column");if(P.length===3)throw new Error("Found a source and line, but no column");f[g]=P}b.generatedColumn=i+P[0],i=b.generatedColumn,P.length>1&&(b.source=c+P[1],c+=P[1],b.originalLine=s+P[2],s=b.originalLine,b.originalLine+=1,b.originalColumn=a+P[3],a=b.originalColumn,P.length>4&&(b.name=u+P[4],u+=P[4])),y.push(b),typeof b.originalLine=="number"&&h.push(b)}Ja(y,U.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,Ja(h,U.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");bt.prototype._findMapping=o(function(t,r,n,i,s,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return kg.search(t,r,s,a)},"SourceMapConsumer_findMapping");bt.prototype.computeColumnSpans=o(function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}},"SourceMapConsumer_computeColumnSpans");bt.prototype.originalPositionFor=o(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",U.compareByGeneratedPositionsDeflated,U.getArg(t,"bias",Fe.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=U.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=U.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=U.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:U.getArg(i,"originalLine",null),column:U.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");bt.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");bt.prototype.sourceContentFor=o(function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=U.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=U.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");bt.prototype.generatedPositionFor=o(function(t){var r=U.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:U.getArg(t,"line"),originalColumn:U.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",U.compareByOriginalPositions,U.getArg(t,"bias",Fe.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:U.getArg(s,"generatedLine",null),column:U.getArg(s,"generatedColumn",null),lastColumn:U.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");jl.BasicSourceMapConsumer=bt;function kr(e,t){var r=e;typeof e=="string"&&(r=U.parseSourceMapInput(e));var n=U.getArg(r,"version"),i=U.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new ds,this._names=new ds;var s={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=U.getArg(a,"offset"),u=U.getArg(c,"line"),l=U.getArg(c,"column");if(u<s.line||u===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=c,{generatedOffset:{generatedLine:u+1,generatedColumn:l+1},consumer:new Fe(U.getArg(a,"map"),t)}})}o(kr,"IndexedSourceMapConsumer");kr.prototype=Object.create(Fe.prototype);kr.prototype.constructor=Fe;kr.prototype._version=3;Object.defineProperty(kr.prototype,"sources",{get:o(function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e},"get")});kr.prototype.originalPositionFor=o(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=kg.search(r,this._sections,function(s,a){var c=s.generatedLine-a.generatedOffset.generatedLine;return c||s.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}},"IndexedSourceMapConsumer_originalPositionFor");kr.prototype.hasContentsOfAllSources=o(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");kr.prototype.sourceContentFor=o(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");kr.prototype.generatedPositionFor=o(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(U.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");kr.prototype._parseMappings=o(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var c=s[a],u=i.consumer._sources.at(c.source);u=U.computeSourceURL(i.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var l=null;c.name&&(l=i.consumer._names.at(c.name),this._names.add(l),l=this._names.indexOf(l));var p={source:u,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:l};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}Ja(this.__generatedMappings,U.compareByGeneratedPositionsDeflated),Ja(this.__originalMappings,U.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");jl.IndexedSourceMapConsumer=kr});var e2=v(X1=>{var ZL=Rg().SourceMapGenerator,Ml=ps(),WL=/(\r?\n)/,KL=10,hs="$$$isSourceNode$$$";function tr(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[hs]=!0,n!=null&&this.add(n)}o(tr,"SourceNode");tr.fromStringWithSourceMap=o(function(t,r,n){var i=new tr,s=t.split(WL),a=0,c=o(function(){var d=y(),h=y()||"";return d+h;function y(){return a<s.length?s[a++]:void 0}},"shiftNextLine"),u=1,l=0,p=null;return r.eachMapping(function(d){if(p!==null)if(u<d.generatedLine)f(p,c()),u++,l=0;else{var h=s[a]||"",y=h.substr(0,d.generatedColumn-l);s[a]=h.substr(d.generatedColumn-l),l=d.generatedColumn,f(p,y),p=d;return}for(;u<d.generatedLine;)i.add(c()),u++;if(l<d.generatedColumn){var h=s[a]||"";i.add(h.substr(0,d.generatedColumn)),s[a]=h.substr(d.generatedColumn),l=d.generatedColumn}p=d},this),a<s.length&&(p&&f(p,c()),i.add(s.splice(a).join(""))),r.sources.forEach(function(d){var h=r.sourceContentFor(d);h!=null&&(n!=null&&(d=Ml.join(n,d)),i.setSourceContent(d,h))}),i;function f(d,h){if(d===null||d.source===void 0)i.add(h);else{var y=n?Ml.join(n,d.source):d.source;i.add(new tr(d.originalLine,d.originalColumn,y,h,d.name))}}o(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");tr.prototype.add=o(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[hs]||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");tr.prototype.prepend=o(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[hs]||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");tr.prototype.walk=o(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[hs]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");tr.prototype.join=o(function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this},"SourceNode_join");tr.prototype.replaceRight=o(function(t,r){var n=this.children[this.children.length-1];return n[hs]?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");tr.prototype.setSourceContent=o(function(t,r){this.sourceContents[Ml.toSetString(t)]=r},"SourceNode_setSourceContent");tr.prototype.walkSourceContents=o(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][hs]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(Ml.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");tr.prototype.toString=o(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");tr.prototype.toStringWithSourceMap=o(function(t){var r={code:"",line:1,column:0},n=new ZL(t),i=!1,s=null,a=null,c=null,u=null;return this.walk(function(l,p){r.code+=l,p.source!==null&&p.line!==null&&p.column!==null?((s!==p.source||a!==p.line||c!==p.column||u!==p.name)&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name}),s=p.source,a=p.line,c=p.column,u=p.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var f=0,d=l.length;f<d;f++)l.charCodeAt(f)===KL?(r.line++,r.column=0,f+1===d?(s=null,i=!1):i&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name})):r.column++}),this.walkSourceContents(function(l,p){n.setSourceContent(l,p)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");X1.SourceNode=tr});var t2=v(kl=>{kl.SourceMapGenerator=Rg().SourceMapGenerator;kl.SourceMapConsumer=J1().SourceMapConsumer;kl.SourceNode=e2().SourceNode});var o2=v((ql,i2)=>{"use strict";ql.__esModule=!0;var Dg=Nt(),ro=void 0;try{(typeof define!="function"||!define.amd)&&(r2=t2(),ro=r2.SourceNode)}catch{}var r2;ro||(ro=o(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),ro.prototype={add:o(function(t){Dg.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:o(function(t){Dg.isArray(t)&&(t=t.join("")),this.src=t+this.src},"prepend"),toStringWithSourceMap:o(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:o(function(){return this.src},"toString")});function qg(e,t,r){if(Dg.isArray(e)){for(var n=[],i=0,s=e.length;i<s;i++)n.push(t.wrap(e[i],r));return n}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}o(qg,"castChunk");function n2(e){this.srcFile=e,this.source=[]}o(n2,"CodeGen");n2.prototype={isEmpty:o(function(){return!this.source.length},"isEmpty"),prepend:o(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:o(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:o(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
60
- `])}),t},"merge"),each:o(function(t){for(var r=0,n=this.source.length;r<n;r++)t(this.source[r])},"each"),empty:o(function(){var t=this.currentLocation||{start:{}};return new ro(t.start.line,t.start.column,this.srcFile)},"empty"),wrap:o(function(t){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return t instanceof ro?t:(t=qg(t,this,r),new ro(r.start.line,r.start.column,this.srcFile,t))},"wrap"),functionCall:o(function(t,r,n){return n=this.generateList(n),this.wrap([t,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(t){var r=this,n=[];Object.keys(t).forEach(function(s){var a=qg(t[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:o(function(t){for(var r=this.empty(),n=0,i=t.length;n<i;n++)n&&r.add(","),r.add(qg(t[n],this));return r},"generateList"),generateArray:o(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};ql.default=n2;i2.exports=ql.default});var l2=v((Dl,u2)=>{"use strict";Dl.__esModule=!0;function c2(e){return e&&e.__esModule?e:{default:e}}o(c2,"_interopRequireDefault");var s2=vl(),YL=gr(),Lg=c2(YL),QL=Nt(),JL=o2(),a2=c2(JL);function ms(e){this.value=e}o(ms,"Literal");function gs(){}o(gs,"JavaScriptCompiler");gs.prototype={nameLookup:o(function(t,r){return this.internalNameLookup(t,r)},"nameLookup"),depthedLookup:o(function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},"depthedLookup"),compilerInfo:o(function(){var t=s2.COMPILER_REVISION,r=s2.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:o(function(t,r,n){return QL.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(t,r,n,i){this.environment=t,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,r),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var s=t.opcodes,a=void 0,c=void 0,u=void 0,l=void 0;for(u=0,l=s.length;u<l;u++)a=s[u],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new Lg.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(),`;
59
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=o(function(s,a,c,u){function l(f,d){return a.yytext=a.yytext.substring(f,a.yyleng-d+f)}o(l,"strip");var p=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();e.lexer=t;function r(){this.yy={}}return o(r,"Parser"),r.prototype=e,e.Parser=r,new r}();Rl.default=uL;x1.exports=Rl.default});var kl=v((Ml,I1)=>{"use strict";Ml.__esModule=!0;function lL(e){return e&&e.__esModule?e:{default:e}}o(lL,"_interopRequireDefault");var fL=br(),Pg=lL(fL);function Nl(){this.parents=[]}o(Nl,"Visitor");Nl.prototype={constructor:Nl,mutating:!1,acceptKey:o(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!Nl.prototype[n.type])throw new Pg.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+t.type);t[r]=n}},"acceptKey"),acceptRequired:o(function(t,r){if(this.acceptKey(t,r),!t[r])throw new Pg.default(t.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(t){for(var r=0,n=t.length;r<n;r++)this.acceptKey(t,r),t[r]||(t.splice(r,1),r--,n--)},"acceptArray"),accept:o(function(t){if(t){if(!this[t.type])throw new Pg.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var r=this[t.type](t);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return t}},"accept"),Program:o(function(t){this.acceptArray(t.body)},"Program"),MustacheStatement:jl,Decorator:jl,BlockStatement:w1,DecoratorBlock:w1,PartialStatement:A1,PartialBlockStatement:o(function(t){A1.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:jl,PathExpression:o(function(){},"PathExpression"),StringLiteral:o(function(){},"StringLiteral"),NumberLiteral:o(function(){},"NumberLiteral"),BooleanLiteral:o(function(){},"BooleanLiteral"),UndefinedLiteral:o(function(){},"UndefinedLiteral"),NullLiteral:o(function(){},"NullLiteral"),Hash:o(function(t){this.acceptArray(t.pairs)},"Hash"),HashPair:o(function(t){this.acceptRequired(t,"value")},"HashPair")};function jl(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(jl,"visitSubExpression");function w1(e){jl.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}o(w1,"visitBlock");function A1(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(A1,"visitPartial");Ml.default=Nl;I1.exports=Ml.default});var T1=v((ql,C1)=>{"use strict";ql.__esModule=!0;function pL(e){return e&&e.__esModule?e:{default:e}}o(pL,"_interopRequireDefault");var dL=kl(),hL=pL(dL);function ln(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}o(ln,"WhitespaceControl");ln.prototype=new hL.default;ln.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,s=n.length;i<s;i++){var a=n[i],c=this.accept(a);if(c){var u=xg(n,i,r),l=$g(n,i,r),p=c.openStandalone&&u,f=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&no(n,i,!0),c.open&&li(n,i,!0),t&&d&&(no(n,i),li(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(no((a.program||a.inverse).body),li(n,i)),t&&f&&(no(n,i),li((a.inverse||a.program).body))}}return e};ln.prototype.BlockStatement=ln.prototype.DecoratorBlock=ln.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var s={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:$g(t.body),closeStandalone:xg((n||t).body)};if(e.openStrip.close&&no(t.body,null,!0),r){var a=e.inverseStrip;a.open&&li(t.body,null,!0),a.close&&no(n.body,null,!0),e.closeStrip.open&&li(i.body,null,!0),!this.options.ignoreStandalone&&xg(t.body)&&$g(n.body)&&(li(t.body),no(n.body))}else e.closeStrip.open&&li(t.body,null,!0);return s};ln.prototype.Decorator=ln.prototype.MustacheStatement=function(e){return e.strip};ln.prototype.PartialStatement=ln.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function xg(e,t,r){t===void 0&&(t=e.length);var n=e[t-1],i=e[t-2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}o(xg,"isPrevWhitespace");function $g(e,t,r){t===void 0&&(t=-1);var n=e[t+1],i=e[t+2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}o($g,"isNextWhitespace");function no(e,t,r){var n=e[t==null?0:t+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}o(no,"omitRight");function li(e,t,r){var n=e[t==null?e.length-1:t-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}o(li,"omitLeft");ql.default=ln;C1.exports=ql.default});var R1=v(vr=>{"use strict";vr.__esModule=!0;vr.SourceLocation=yL;vr.id=bL;vr.stripFlags=vL;vr.stripComment=_L;vr.preparePath=SL;vr.prepareMustache=EL;vr.prepareRawBlock=OL;vr.prepareBlock=PL;vr.prepareProgram=xL;vr.preparePartialBlock=$L;function mL(e){return e&&e.__esModule?e:{default:e}}o(mL,"_interopRequireDefault");var gL=br(),wg=mL(gL);function Ag(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new wg.default(e.path.original+" doesn't match "+t,r)}}o(Ag,"validateClose");function yL(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}o(yL,"SourceLocation");function bL(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}o(bL,"id");function vL(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}o(vL,"stripFlags");function _L(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(_L,"stripComment");function SL(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],s=0,a=0,c=t.length;a<c;a++){var u=t[a].part,l=t[a].original!==u;if(n+=(t[a].separator||"")+u,!l&&(u===".."||u==="."||u==="this")){if(i.length>0)throw new wg.default("Invalid path: "+n,{loc:r});u===".."&&s++}else i.push(u)}return{type:"PathExpression",data:e,depth:s,parts:i,original:n,loc:r}}o(SL,"preparePath");function EL(e,t,r,n,i,s){var a=n.charAt(3)||n.charAt(2),c=a!=="{"&&a!=="&",u=/\*/.test(n);return{type:u?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:c,strip:i,loc:this.locInfo(s)}}o(EL,"prepareMustache");function OL(e,t,r,n){Ag(e,r),n=this.locInfo(n);var i={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}o(OL,"prepareRawBlock");function PL(e,t,r,n,i,s){n&&n.path&&Ag(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new wg.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),u=r.strip,c=r.program}return i&&(i=c,c=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:u,closeStrip:n&&n.strip,loc:this.locInfo(s)}}o(PL,"prepareBlock");function xL(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}o(xL,"prepareProgram");function $L(e,t,r,n){return Ag(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}o($L,"preparePartialBlock")});var M1=v(Wa=>{"use strict";Wa.__esModule=!0;Wa.parseWithoutProcessing=j1;Wa.parse=jL;function wL(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(wL,"_interopRequireWildcard");function N1(e){return e&&e.__esModule?e:{default:e}}o(N1,"_interopRequireDefault");var AL=$1(),Ig=N1(AL),IL=T1(),CL=N1(IL),TL=R1(),RL=wL(TL),NL=Mt();Wa.parser=Ig.default;var Dl={};NL.extend(Dl,RL);function j1(e,t){if(e.type==="Program")return e;Ig.default.yy=Dl,Dl.locInfo=function(n){return new Dl.SourceLocation(t&&t.srcName,n)};var r=Ig.default.parse(e);return r}o(j1,"parseWithoutProcessing");function jL(e,t){var r=j1(e,t),n=new CL.default(t);return n.accept(r)}o(jL,"parse")});var L1=v(Ja=>{"use strict";Ja.__esModule=!0;Ja.Compiler=Cg;Ja.precompile=DL;Ja.compile=LL;function q1(e){return e&&e.__esModule?e:{default:e}}o(q1,"_interopRequireDefault");var ML=br(),Ya=q1(ML),Qa=Mt(),kL=Og(),Ka=q1(kL),qL=[].slice;function Cg(){}o(Cg,"Compiler");Cg.prototype={compiler:Cg,equals:o(function(t){var r=this.opcodes.length;if(t.opcodes.length!==r)return!1;for(var n=0;n<r;n++){var i=this.opcodes[n],s=t.opcodes[n];if(i.opcode!==s.opcode||!D1(i.args,s.args))return!1}r=this.children.length;for(var n=0;n<r;n++)if(!this.children[n].equals(t.children[n]))return!1;return!0},"equals"),guid:0,compile:o(function(t,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=Qa.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(t)},"compile"),compileProgram:o(function(t){var r=new this.compiler,n=r.compile(t,this.options),i=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[i]=n,this.useDepths=this.useDepths||n.useDepths,i},"compileProgram"),accept:o(function(t){if(!this[t.type])throw new Ya.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},"accept"),Program:o(function(t){this.options.blockParams.unshift(t.blockParams);for(var r=t.body,n=r.length,i=0;i<n;i++)this.accept(r[i]);return this.options.blockParams.shift(),this.isSimple=n===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},"Program"),BlockStatement:o(function(t){k1(t);var r=t.program,n=t.inverse;r=r&&this.compileProgram(r),n=n&&this.compileProgram(n);var i=this.classifySexpr(t);i==="helper"?this.helperSexpr(t,r,n):i==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,r,n),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},"BlockStatement"),DecoratorBlock:o(function(t){var r=t.program&&this.compileProgram(t.program),n=this.setupFullMustacheParams(t,r,void 0),i=t.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,i.original)},"DecoratorBlock"),PartialStatement:o(function(t){this.usePartial=!0;var r=t.program;r&&(r=this.compileProgram(t.program));var n=t.params;if(n.length>1)throw new Ya.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=t.name.original,s=t.name.type==="SubExpression";s&&this.accept(t.name),this.setupFullMustacheParams(t,r,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",s,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:o(function(t){this.PartialStatement(t)},"PartialBlockStatement"),MustacheStatement:o(function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:o(function(t){this.DecoratorBlock(t)},"Decorator"),ContentStatement:o(function(t){t.value&&this.opcode("appendContent",t.value)},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:o(function(t){k1(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},"SubExpression"),ambiguousSexpr:o(function(t,r,n){var i=t.path,s=i.parts[0],a=r!=null||n!=null;this.opcode("getContext",i.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",s,a)},"ambiguousSexpr"),simpleSexpr:o(function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:o(function(t,r,n){var i=this.setupFullMustacheParams(t,r,n),s=t.path,a=s.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new Ya.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);s.strict=!0,s.falsy=!0,this.accept(s),this.opcode("invokeHelper",i.length,s.original,Ka.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=Ka.default.helpers.scopedId(t),i=!t.depth&&!n&&this.blockParamIndex(r);i?this.opcode("lookupBlockParam",i,t.parts):r?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},"PathExpression"),StringLiteral:o(function(t){this.opcode("pushString",t.value)},"StringLiteral"),NumberLiteral:o(function(t){this.opcode("pushLiteral",t.value)},"NumberLiteral"),BooleanLiteral:o(function(t){this.opcode("pushLiteral",t.value)},"BooleanLiteral"),UndefinedLiteral:o(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:o(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:o(function(t){var r=t.pairs,n=0,i=r.length;for(this.opcode("pushHash");n<i;n++)this.pushParam(r[n].value);for(;n--;)this.opcode("assignToHash",r[n].key);this.opcode("popHash")},"Hash"),opcode:o(function(t){this.opcodes.push({opcode:t,args:qL.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:o(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:o(function(t){var r=Ka.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&Ka.default.helpers.helperExpression(t),s=!n&&(i||r);if(s&&!i){var a=t.path.parts[0],c=this.options;c.knownHelpers[a]?i=!0:c.knownHelpersOnly&&(s=!1)}return i?"helper":s?"ambiguous":"simple"},"classifySexpr"),pushParams:o(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:o(function(t){var r=t.value!=null?t.value:t.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",r,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var n=void 0;if(t.parts&&!Ka.default.helpers.scopedId(t)&&!t.depth&&(n=this.blockParamIndex(t.parts[0])),n){var i=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,i)}else r=t.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,r)}this.accept(t)}},"pushParam"),setupFullMustacheParams:o(function(t,r,n,i){var s=t.params;return this.pushParams(s),this.opcode("pushProgram",r),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),s},"setupFullMustacheParams"),blockParamIndex:o(function(t){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],s=i&&Qa.indexOf(i,t);if(i&&s>=0)return[r,s]}},"blockParamIndex")};function DL(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Ya.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=r.parse(e,t),i=new r.Compiler().compile(n,t);return new r.JavaScriptCompiler().compile(i,t)}o(DL,"precompile");function LL(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Ya.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=Qa.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function i(){var a=r.parse(e,t),c=new r.Compiler().compile(a,t),u=new r.JavaScriptCompiler().compile(c,t,void 0,!0);return r.template(u)}o(i,"compileInput");function s(a,c){return n||(n=i()),n.call(this,a,c)}return o(s,"ret"),s._setup=function(a){return n||(n=i()),n._setup(a)},s._child=function(a,c,u,l){return n||(n=i()),n._child(a,c,u,l)},s}o(LL,"compile");function D1(e,t){if(e===t)return!0;if(Qa.isArray(e)&&Qa.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!D1(e[r],t[r]))return!1;return!0}}o(D1,"argEquals");function k1(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}o(k1,"transformLiteralToPath")});var H1=v(Tg=>{var F1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Tg.encode=function(e){if(0<=e&&e<F1.length)return F1[e];throw new TypeError("Must be between 0 and 63: "+e)};Tg.decode=function(e){var t=65,r=90,n=97,i=122,s=48,a=57,c=43,u=47,l=26,p=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:s<=e&&e<=a?e-s+p:e==c?62:e==u?63:-1}});var jg=v(Ng=>{var B1=H1(),Rg=5,V1=1<<Rg,U1=V1-1,G1=V1;function FL(e){return e<0?(-e<<1)+1:(e<<1)+0}o(FL,"toVLQSigned");function HL(e){var t=(e&1)===1,r=e>>1;return t?-r:r}o(HL,"fromVLQSigned");Ng.encode=o(function(t){var r="",n,i=FL(t);do n=i&U1,i>>>=Rg,i>0&&(n|=G1),r+=B1.encode(n);while(i>0);return r},"base64VLQ_encode");Ng.decode=o(function(t,r,n){var i=t.length,s=0,a=0,c,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=B1.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&G1),u&=U1,s=s+(u<<a),a+=Rg}while(c);n.value=HL(s),n.rest=r},"base64VLQ_decode")});var ms=v(wt=>{function BL(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}o(BL,"getArg");wt.getArg=BL;var z1=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,VL=/^data:.+\,.+$/;function Xa(e){var t=e.match(z1);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}o(Xa,"urlParse");wt.urlParse=Xa;function ds(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}o(ds,"urlGenerate");wt.urlGenerate=ds;function Mg(e){var t=e,r=Xa(e);if(r){if(!r.path)return e;t=r.path}for(var n=wt.isAbsolute(t),i=t.split(/\/+/),s,a=0,c=i.length-1;c>=0;c--)s=i[c],s==="."?i.splice(c,1):s===".."?a++:a>0&&(s===""?(i.splice(c+1,a),a=0):(i.splice(c,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,ds(r)):t}o(Mg,"normalize");wt.normalize=Mg;function Z1(e,t){e===""&&(e="."),t===""&&(t=".");var r=Xa(t),n=Xa(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),ds(r);if(r||t.match(VL))return t;if(n&&!n.host&&!n.path)return n.host=t,ds(n);var i=t.charAt(0)==="/"?t:Mg(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,ds(n)):i}o(Z1,"join");wt.join=Z1;wt.isAbsolute=function(e){return e.charAt(0)==="/"||z1.test(e)};function UL(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}o(UL,"relative");wt.relative=UL;var W1=function(){var e=Object.create(null);return!("__proto__"in e)}();function K1(e){return e}o(K1,"identity");function GL(e){return Y1(e)?"$"+e:e}o(GL,"toSetString");wt.toSetString=W1?K1:GL;function zL(e){return Y1(e)?e.slice(1):e}o(zL,"fromSetString");wt.fromSetString=W1?K1:zL;function Y1(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}o(Y1,"isProtoString");function ZL(e,t,r){var n=hs(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:hs(e.name,t.name)}o(ZL,"compareByOriginalPositions");wt.compareByOriginalPositions=ZL;function WL(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=hs(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:hs(e.name,t.name)}o(WL,"compareByGeneratedPositionsDeflated");wt.compareByGeneratedPositionsDeflated=WL;function hs(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}o(hs,"strcmp");function KL(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=hs(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:hs(e.name,t.name)}o(KL,"compareByGeneratedPositionsInflated");wt.compareByGeneratedPositionsInflated=KL;function YL(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}o(YL,"parseSourceMapInput");wt.parseSourceMapInput=YL;function QL(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=Xa(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=Z1(ds(n),t)}return Mg(t)}o(QL,"computeSourceURL");wt.computeSourceURL=QL});var Dg=v(Q1=>{var kg=ms(),qg=Object.prototype.hasOwnProperty,io=typeof Map<"u";function En(){this._array=[],this._set=io?new Map:Object.create(null)}o(En,"ArraySet");En.fromArray=o(function(t,r){for(var n=new En,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n},"ArraySet_fromArray");En.prototype.size=o(function(){return io?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");En.prototype.add=o(function(t,r){var n=io?t:kg.toSetString(t),i=io?this.has(t):qg.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(io?this._set.set(t,s):this._set[n]=s)},"ArraySet_add");En.prototype.has=o(function(t){if(io)return this._set.has(t);var r=kg.toSetString(t);return qg.call(this._set,r)},"ArraySet_has");En.prototype.indexOf=o(function(t){if(io){var r=this._set.get(t);if(r>=0)return r}else{var n=kg.toSetString(t);if(qg.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");En.prototype.at=o(function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)},"ArraySet_at");En.prototype.toArray=o(function(){return this._array.slice()},"ArraySet_toArray");Q1.ArraySet=En});var e2=v(X1=>{var J1=ms();function JL(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||J1.compareByGeneratedPositionsInflated(e,t)<=0}o(JL,"generatedPositionAfter");function Ll(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(Ll,"MappingList");Ll.prototype.unsortedForEach=o(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");Ll.prototype.add=o(function(t){JL(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");Ll.prototype.toArray=o(function(){return this._sorted||(this._array.sort(J1.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");X1.MappingList=Ll});var Lg=v(t2=>{var ec=jg(),ot=ms(),Fl=Dg().ArraySet,XL=e2().MappingList;function _r(e){e||(e={}),this._file=ot.getArg(e,"file",null),this._sourceRoot=ot.getArg(e,"sourceRoot",null),this._skipValidation=ot.getArg(e,"skipValidation",!1),this._sources=new Fl,this._names=new Fl,this._mappings=new XL,this._sourcesContents=null}o(_r,"SourceMapGenerator");_r.prototype._version=3;_r.fromSourceMap=o(function(t){var r=t.sourceRoot,n=new _r({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=ot.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s)}),t.sources.forEach(function(i){var s=i;r!==null&&(s=ot.relative(r,i)),n._sources.has(s)||n._sources.add(s);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");_r.prototype.addMapping=o(function(t){var r=ot.getArg(t,"generated"),n=ot.getArg(t,"original",null),i=ot.getArg(t,"source",null),s=ot.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})},"SourceMapGenerator_addMapping");_r.prototype.setSourceContent=o(function(t,r){var n=t;this._sourceRoot!=null&&(n=ot.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[ot.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[ot.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");_r.prototype.applySourceMap=o(function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var s=this._sourceRoot;s!=null&&(i=ot.relative(s,i));var a=new Fl,c=new Fl;this._mappings.unsortedForEach(function(u){if(u.source===i&&u.originalLine!=null){var l=t.originalPositionFor({line:u.originalLine,column:u.originalColumn});l.source!=null&&(u.source=l.source,n!=null&&(u.source=ot.join(n,u.source)),s!=null&&(u.source=ot.relative(s,u.source)),u.originalLine=l.line,u.originalColumn=l.column,l.name!=null&&(u.name=l.name))}var p=u.source;p!=null&&!a.has(p)&&a.add(p);var f=u.name;f!=null&&!c.has(f)&&c.add(f)},this),this._sources=a,this._names=c,t.sources.forEach(function(u){var l=t.sourceContentFor(u);l!=null&&(n!=null&&(u=ot.join(n,u)),s!=null&&(u=ot.relative(s,u)),this.setSourceContent(u,l))},this)},"SourceMapGenerator_applySourceMap");_r.prototype._validateMapping=o(function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}},"SourceMapGenerator_validateMapping");_r.prototype._serializeMappings=o(function(){for(var t=0,r=1,n=0,i=0,s=0,a=0,c="",u,l,p,f,d=this._mappings.toArray(),h=0,y=d.length;h<y;h++){if(l=d[h],u="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)u+=";",r++;else if(h>0){if(!ot.compareByGeneratedPositionsInflated(l,d[h-1]))continue;u+=","}u+=ec.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),u+=ec.encode(f-a),a=f,u+=ec.encode(l.originalLine-1-i),i=l.originalLine-1,u+=ec.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),u+=ec.encode(p-s),s=p)),c+=u}return c},"SourceMapGenerator_serializeMappings");_r.prototype._generateSourcesContent=o(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=ot.relative(r,n));var i=ot.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");_r.prototype.toJSON=o(function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},"SourceMapGenerator_toJSON");_r.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");t2.SourceMapGenerator=_r});var r2=v(oo=>{oo.GREATEST_LOWER_BOUND=1;oo.LEAST_UPPER_BOUND=2;function Fg(e,t,r,n,i,s){var a=Math.floor((t-e)/2)+e,c=i(r,n[a],!0);return c===0?a:c>0?t-a>1?Fg(a,t,r,n,i,s):s==oo.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?Fg(e,a,r,n,i,s):s==oo.LEAST_UPPER_BOUND?a:e<0?-1:e}o(Fg,"recursiveSearch");oo.search=o(function(t,r,n,i){if(r.length===0)return-1;var s=Fg(-1,r.length,t,r,n,i||oo.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s},"search")});var i2=v(n2=>{function Hg(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}o(Hg,"swap");function e8(e,t){return Math.round(e+Math.random()*(t-e))}o(e8,"randomIntInRange");function Bg(e,t,r,n){if(r<n){var i=e8(r,n),s=r-1;Hg(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(s+=1,Hg(e,s,c));Hg(e,s+1,c);var u=s+1;Bg(e,t,r,u-1),Bg(e,t,u+1,n)}}o(Bg,"doQuickSort");n2.quickSort=function(e,t){Bg(e,t,0,e.length-1)}});var s2=v(Hl=>{var U=ms(),Vg=r2(),gs=Dg().ArraySet,t8=jg(),tc=i2().quickSort;function He(e,t){var r=e;return typeof e=="string"&&(r=U.parseSourceMapInput(e)),r.sections!=null?new Dr(r,t):new bt(r,t)}o(He,"SourceMapConsumer");He.fromSourceMap=function(e,t){return bt.fromSourceMap(e,t)};He.prototype._version=3;He.prototype.__generatedMappings=null;Object.defineProperty(He.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});He.prototype.__originalMappings=null;Object.defineProperty(He.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});He.prototype._charIsMappingSeparator=o(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");He.prototype._parseMappings=o(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");He.GENERATED_ORDER=1;He.ORIGINAL_ORDER=2;He.GREATEST_LOWER_BOUND=1;He.LEAST_UPPER_BOUND=2;He.prototype.eachMapping=o(function(t,r,n){var i=r||null,s=n||He.GENERATED_ORDER,a;switch(s){case He.GENERATED_ORDER:a=this._generatedMappings;break;case He.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(u){var l=u.source===null?null:this._sources.at(u.source);return l=U.computeSourceURL(c,l,this._sourceMapURL),{source:l,generatedLine:u.generatedLine,generatedColumn:u.generatedColumn,originalLine:u.originalLine,originalColumn:u.originalColumn,name:u.name===null?null:this._names.at(u.name)}},this).forEach(t,i)},"SourceMapConsumer_eachMapping");He.prototype.allGeneratedPositionsFor=o(function(t){var r=U.getArg(t,"line"),n={source:U.getArg(t,"source"),originalLine:r,originalColumn:U.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",U.compareByOriginalPositions,Vg.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)i.push({line:U.getArg(a,"generatedLine",null),column:U.getArg(a,"generatedColumn",null),lastColumn:U.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var u=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==u;)i.push({line:U.getArg(a,"generatedLine",null),column:U.getArg(a,"generatedColumn",null),lastColumn:U.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i},"SourceMapConsumer_allGeneratedPositionsFor");Hl.SourceMapConsumer=He;function bt(e,t){var r=e;typeof e=="string"&&(r=U.parseSourceMapInput(e));var n=U.getArg(r,"version"),i=U.getArg(r,"sources"),s=U.getArg(r,"names",[]),a=U.getArg(r,"sourceRoot",null),c=U.getArg(r,"sourcesContent",null),u=U.getArg(r,"mappings"),l=U.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=U.normalize(a)),i=i.map(String).map(U.normalize).map(function(p){return a&&U.isAbsolute(a)&&U.isAbsolute(p)?U.relative(a,p):p}),this._names=gs.fromArray(s.map(String),!0),this._sources=gs.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(p){return U.computeSourceURL(a,p,t)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=t,this.file=l}o(bt,"BasicSourceMapConsumer");bt.prototype=Object.create(He.prototype);bt.prototype.consumer=He;bt.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=U.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};bt.fromSourceMap=o(function(t,r){var n=Object.create(bt.prototype),i=n._names=gs.fromArray(t._names.toArray(),!0),s=n._sources=gs.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 U.computeSourceURL(n.sourceRoot,h,r)});for(var a=t._mappings.toArray().slice(),c=n.__generatedMappings=[],u=n.__originalMappings=[],l=0,p=a.length;l<p;l++){var f=a[l],d=new o2;d.generatedLine=f.generatedLine,d.generatedColumn=f.generatedColumn,f.source&&(d.source=s.indexOf(f.source),d.originalLine=f.originalLine,d.originalColumn=f.originalColumn,f.name&&(d.name=i.indexOf(f.name)),u.push(d)),c.push(d)}return tc(n.__originalMappings,U.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");bt.prototype._version=3;Object.defineProperty(bt.prototype,"sources",{get:o(function(){return this._absoluteSources.slice()},"get")});function o2(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o(o2,"Mapping");bt.prototype._parseMappings=o(function(t,r){for(var n=1,i=0,s=0,a=0,c=0,u=0,l=t.length,p=0,f={},d={},h=[],y=[],b,g,P,$,C;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(b=new o2,b.generatedLine=n,$=p;$<l&&!this._charIsMappingSeparator(t,$);$++);if(g=t.slice(p,$),P=f[g],P)p+=g.length;else{for(P=[];p<$;)t8.decode(t,p,d),C=d.value,p=d.rest,P.push(C);if(P.length===2)throw new Error("Found a source, but no line and column");if(P.length===3)throw new Error("Found a source and line, but no column");f[g]=P}b.generatedColumn=i+P[0],i=b.generatedColumn,P.length>1&&(b.source=c+P[1],c+=P[1],b.originalLine=s+P[2],s=b.originalLine,b.originalLine+=1,b.originalColumn=a+P[3],a=b.originalColumn,P.length>4&&(b.name=u+P[4],u+=P[4])),y.push(b),typeof b.originalLine=="number"&&h.push(b)}tc(y,U.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,tc(h,U.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");bt.prototype._findMapping=o(function(t,r,n,i,s,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return Vg.search(t,r,s,a)},"SourceMapConsumer_findMapping");bt.prototype.computeColumnSpans=o(function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}},"SourceMapConsumer_computeColumnSpans");bt.prototype.originalPositionFor=o(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",U.compareByGeneratedPositionsDeflated,U.getArg(t,"bias",He.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=U.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=U.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=U.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:U.getArg(i,"originalLine",null),column:U.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");bt.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");bt.prototype.sourceContentFor=o(function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=U.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=U.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");bt.prototype.generatedPositionFor=o(function(t){var r=U.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:U.getArg(t,"line"),originalColumn:U.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",U.compareByOriginalPositions,U.getArg(t,"bias",He.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:U.getArg(s,"generatedLine",null),column:U.getArg(s,"generatedColumn",null),lastColumn:U.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");Hl.BasicSourceMapConsumer=bt;function Dr(e,t){var r=e;typeof e=="string"&&(r=U.parseSourceMapInput(e));var n=U.getArg(r,"version"),i=U.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new gs,this._names=new gs;var s={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=U.getArg(a,"offset"),u=U.getArg(c,"line"),l=U.getArg(c,"column");if(u<s.line||u===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=c,{generatedOffset:{generatedLine:u+1,generatedColumn:l+1},consumer:new He(U.getArg(a,"map"),t)}})}o(Dr,"IndexedSourceMapConsumer");Dr.prototype=Object.create(He.prototype);Dr.prototype.constructor=He;Dr.prototype._version=3;Object.defineProperty(Dr.prototype,"sources",{get:o(function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e},"get")});Dr.prototype.originalPositionFor=o(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=Vg.search(r,this._sections,function(s,a){var c=s.generatedLine-a.generatedOffset.generatedLine;return c||s.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}},"IndexedSourceMapConsumer_originalPositionFor");Dr.prototype.hasContentsOfAllSources=o(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");Dr.prototype.sourceContentFor=o(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");Dr.prototype.generatedPositionFor=o(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(U.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");Dr.prototype._parseMappings=o(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var c=s[a],u=i.consumer._sources.at(c.source);u=U.computeSourceURL(i.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var l=null;c.name&&(l=i.consumer._names.at(c.name),this._names.add(l),l=this._names.indexOf(l));var p={source:u,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:l};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}tc(this.__generatedMappings,U.compareByGeneratedPositionsDeflated),tc(this.__originalMappings,U.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");Hl.IndexedSourceMapConsumer=Dr});var c2=v(a2=>{var r8=Lg().SourceMapGenerator,Bl=ms(),n8=/(\r?\n)/,i8=10,ys="$$$isSourceNode$$$";function rr(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[ys]=!0,n!=null&&this.add(n)}o(rr,"SourceNode");rr.fromStringWithSourceMap=o(function(t,r,n){var i=new rr,s=t.split(n8),a=0,c=o(function(){var d=y(),h=y()||"";return d+h;function y(){return a<s.length?s[a++]:void 0}},"shiftNextLine"),u=1,l=0,p=null;return r.eachMapping(function(d){if(p!==null)if(u<d.generatedLine)f(p,c()),u++,l=0;else{var h=s[a]||"",y=h.substr(0,d.generatedColumn-l);s[a]=h.substr(d.generatedColumn-l),l=d.generatedColumn,f(p,y),p=d;return}for(;u<d.generatedLine;)i.add(c()),u++;if(l<d.generatedColumn){var h=s[a]||"";i.add(h.substr(0,d.generatedColumn)),s[a]=h.substr(d.generatedColumn),l=d.generatedColumn}p=d},this),a<s.length&&(p&&f(p,c()),i.add(s.splice(a).join(""))),r.sources.forEach(function(d){var h=r.sourceContentFor(d);h!=null&&(n!=null&&(d=Bl.join(n,d)),i.setSourceContent(d,h))}),i;function f(d,h){if(d===null||d.source===void 0)i.add(h);else{var y=n?Bl.join(n,d.source):d.source;i.add(new rr(d.originalLine,d.originalColumn,y,h,d.name))}}o(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");rr.prototype.add=o(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[ys]||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");rr.prototype.prepend=o(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[ys]||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");rr.prototype.walk=o(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[ys]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");rr.prototype.join=o(function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this},"SourceNode_join");rr.prototype.replaceRight=o(function(t,r){var n=this.children[this.children.length-1];return n[ys]?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");rr.prototype.setSourceContent=o(function(t,r){this.sourceContents[Bl.toSetString(t)]=r},"SourceNode_setSourceContent");rr.prototype.walkSourceContents=o(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][ys]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(Bl.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");rr.prototype.toString=o(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");rr.prototype.toStringWithSourceMap=o(function(t){var r={code:"",line:1,column:0},n=new r8(t),i=!1,s=null,a=null,c=null,u=null;return this.walk(function(l,p){r.code+=l,p.source!==null&&p.line!==null&&p.column!==null?((s!==p.source||a!==p.line||c!==p.column||u!==p.name)&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name}),s=p.source,a=p.line,c=p.column,u=p.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var f=0,d=l.length;f<d;f++)l.charCodeAt(f)===i8?(r.line++,r.column=0,f+1===d?(s=null,i=!1):i&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name})):r.column++}),this.walkSourceContents(function(l,p){n.setSourceContent(l,p)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");a2.SourceNode=rr});var u2=v(Vl=>{Vl.SourceMapGenerator=Lg().SourceMapGenerator;Vl.SourceMapConsumer=s2().SourceMapConsumer;Vl.SourceNode=c2().SourceNode});var d2=v((Ul,p2)=>{"use strict";Ul.__esModule=!0;var Gg=Mt(),so=void 0;try{(typeof define!="function"||!define.amd)&&(l2=u2(),so=l2.SourceNode)}catch{}var l2;so||(so=o(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),so.prototype={add:o(function(t){Gg.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:o(function(t){Gg.isArray(t)&&(t=t.join("")),this.src=t+this.src},"prepend"),toStringWithSourceMap:o(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:o(function(){return this.src},"toString")});function Ug(e,t,r){if(Gg.isArray(e)){for(var n=[],i=0,s=e.length;i<s;i++)n.push(t.wrap(e[i],r));return n}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}o(Ug,"castChunk");function f2(e){this.srcFile=e,this.source=[]}o(f2,"CodeGen");f2.prototype={isEmpty:o(function(){return!this.source.length},"isEmpty"),prepend:o(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:o(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:o(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
60
+ `])}),t},"merge"),each:o(function(t){for(var r=0,n=this.source.length;r<n;r++)t(this.source[r])},"each"),empty:o(function(){var t=this.currentLocation||{start:{}};return new so(t.start.line,t.start.column,this.srcFile)},"empty"),wrap:o(function(t){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return t instanceof so?t:(t=Ug(t,this,r),new so(r.start.line,r.start.column,this.srcFile,t))},"wrap"),functionCall:o(function(t,r,n){return n=this.generateList(n),this.wrap([t,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(t){var r=this,n=[];Object.keys(t).forEach(function(s){var a=Ug(t[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:o(function(t){for(var r=this.empty(),n=0,i=t.length;n<i;n++)n&&r.add(","),r.add(Ug(t[n],this));return r},"generateList"),generateArray:o(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};Ul.default=f2;p2.exports=Ul.default});var b2=v((Gl,y2)=>{"use strict";Gl.__esModule=!0;function g2(e){return e&&e.__esModule?e:{default:e}}o(g2,"_interopRequireDefault");var h2=$l(),o8=br(),zg=g2(o8),s8=Mt(),a8=d2(),m2=g2(a8);function bs(e){this.value=e}o(bs,"Literal");function vs(){}o(vs,"JavaScriptCompiler");vs.prototype={nameLookup:o(function(t,r){return this.internalNameLookup(t,r)},"nameLookup"),depthedLookup:o(function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},"depthedLookup"),compilerInfo:o(function(){var t=h2.COMPILER_REVISION,r=h2.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:o(function(t,r,n){return s8.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(t,r,n,i){this.environment=t,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,r),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var s=t.opcodes,a=void 0,c=void 0,u=void 0,l=void 0;for(u=0,l=s.length;u<l;u++)a=s[u],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new zg.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(),`;
61
61
  `]),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) {
62
62
  `),this.decorators.push(`}
63
- `),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,y=d.decorators;for(u=0,l=h.length;u<l;u++)h[u]&&(f[u]=h[u],y[u]&&(f[u+"_d"]=y[u],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:o(function(){this.lastContext=0,this.source=new a2.default(this.options.srcName),this.decorators=new a2.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(t){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var s=0;Object.keys(this.aliases).forEach(function(u){var l=r.aliases[u];l.children&&l.referenceCount>1&&(n+=", alias"+ ++s+"="+u,l.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return t?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
63
+ `),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,y=d.decorators;for(u=0,l=h.length;u<l;u++)h[u]&&(f[u]=h[u],y[u]&&(f[u+"_d"]=y[u],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:o(function(){this.lastContext=0,this.source=new m2.default(this.options.srcName),this.decorators=new m2.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(t){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var s=0;Object.keys(this.aliases).forEach(function(u){var l=r.aliases[u];l.children&&l.referenceCount>1&&(n+=", alias"+ ++s+"="+u,l.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return t?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
64
64
  `,c,"}"])},"createFunctionContext"),mergeSource:o(function(t){var r=this.environment.isSimple,n=!this.forceBuffer,i=void 0,s=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(s?a.prepend("buffer += "):i=!0,c.add(";"),a=c=void 0),s=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):s||this.source.push('return "";'):(t+=", buffer = "+(i?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(i?"":`;
65
65
  `)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
66
66
  lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -69,17 +69,17 @@ Expecting `+Q.join(", ")+", got '"+(this.terminals_[T]||T)+"'":ue="Parse error o
69
69
  }
70
70
  return undefined
71
71
  }
72
- `.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(t){this.lastContext=t},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(t,r,n,i){var s=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[s++])):this.pushContext(),this.resolvePath("context",t,s,r,n)},"lookupOnContext"),lookupBlockParam:o(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(t,r,n,i,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(XL(this.options.strict&&s,this,r,n,t));return}for(var c=r.length;n<c;n++)this.replaceStack(function(u){var l=a.nameLookup(u,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",u]})},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:o(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},"popHash"),pushString:o(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:o(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:o(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(t,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,t);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:o(function(t,r,n){var i=this.popStack(),s=this.setupHelper(t,r),a=[];n&&a.push(s.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],u=this.source.functionCall(c,"call",s.callParams);this.push(u)},"invokeHelper"),itemsSeparatedBy:o(function(t,r){var n=[];n.push(t[0]);for(var i=1;i<t.length;i++)n.push(r,t[i]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),s=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",s," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:o(function(t,r,n){var i=[],s=this.setupParams(r,1,i);t&&(r=this.popStack(),delete s.name),n&&(s.indent=JSON.stringify(n)),s.helpers="helpers",s.partials="partials",s.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(s.depths="depths"),s=this.objectLiteral(s),i.push(s),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:o(function(t){var r=this.popStack(),n=void 0,i=void 0,s=void 0;this.trackIds&&(s=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),s&&(a.ids[t]=s),a.values[t]=r},"assignToHash"),pushId:o(function(t,r,n){t==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):t==="PathExpression"?this.pushString(r):t==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:gs,compileChildren:o(function(t,r){for(var n=t.children,i=void 0,s=void 0,a=0,c=n.length;a<c;a++){i=n[a],s=new this.compiler;var u=this.matchExistingProgram(i);if(u==null){this.context.programs.push("");var l=this.context.programs.length;i.index=l,i.name="program"+l,this.context.programs[l]=s.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=s.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=u.index,i.name="program"+u.index,this.useDepths=this.useDepths||u.useDepths,this.useBlockParams=this.useBlockParams||u.useBlockParams}},"compileChildren"),matchExistingProgram:o(function(t){for(var r=0,n=this.context.environments.length;r<n;r++){var i=this.context.environments[r];if(i&&i.equals(t))return i}},"matchExistingProgram"),programExpression:o(function(t){var r=this.environment.children[t],n=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},"programExpression"),useRegister:o(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:o(function(t){return t instanceof ms||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:o(function(t){this.push(new ms(t))},"pushStackLiteral"),pushSource:o(function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},"pushSource"),replaceStack:o(function(t){var r=["("],n=void 0,i=void 0,s=void 0;if(!this.isInline())throw new Lg.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof ms)n=[a.value],r=["(",n],s=!0;else{i=!0;var c=this.incrStack();r=["((",this.push(c)," = ",a,")"],n=this.topStack()}var u=t.call(this,n);s||this.popStack(),i&&this.stackSlot--,this.push(r.concat(u,")"))},"replaceStack"),incrStack:o(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:o(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:o(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof ms)this.compileStack.push(i);else{var s=this.incrStack();this.pushSource([s," = ",i,";"]),this.compileStack.push(s)}}},"flushInline"),isInline:o(function(){return this.inlineStack.length},"isInline"),popStack:o(function(t){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof ms)return n.value;if(!r){if(!this.stackSlot)throw new Lg.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:o(function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof ms?r.value:r},"topStack"),contextName:o(function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},"contextName"),quotedString:o(function(t){return this.source.quotedString(t)},"quotedString"),objectLiteral:o(function(t){return this.source.objectLiteral(t)},"objectLiteral"),aliasable:o(function(t){var r=this.aliases[t];return r?(r.referenceCount++,r):(r=this.aliases[t]=this.source.wrap(t),r.aliasable=!0,r.referenceCount=1,r)},"aliasable"),setupHelper:o(function(t,r,n){var i=[],s=this.setupHelperArgs(r,t,i,n),a=this.nameLookup("helpers",r,"helper"),c=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:s,name:a,callParams:[c].concat(i)}},"setupHelper"),setupParams:o(function(t,r,n){var i={},s=[],a=[],c=[],u=!n,l=void 0;u&&(n=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var 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&&(c[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),s[d]=this.popStack());return u&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(c)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(s)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:o(function(t,r,n,i){var s=this.setupParams(t,r,n);return s.loc=JSON.stringify(this.source.currentLocation),s=this.objectLiteral(s),i?(this.useRegister("options"),n.push("options"),["options=",s]):n?(n.push(s),""):s},"setupHelperArgs")};(function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=gs.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();gs.isValidJavaScriptVariableName=function(e){return!gs.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function XL(e,t,r,n,i){var s=t.popStack(),a=r.length;for(e&&a--;n<a;n++)s=t.nameLookup(s,r[n],i);return e?[t.aliasable("container.strict"),"(",s,", ",t.quotedString(r[n]),", ",JSON.stringify(t.source.currentLocation)," )"]:s}o(XL,"strictLookup");Dl.default=gs;u2.exports=Dl.default});var d2=v((Ll,p2)=>{"use strict";Ll.__esModule=!0;function Xa(e){return e&&e.__esModule?e:{default:e}}o(Xa,"_interopRequireDefault");var e8=h1(),t8=Xa(e8),r8=gg(),n8=Xa(r8),Fg=w1(),Hg=T1(),i8=l2(),o8=Xa(i8),s8=Il(),a8=Xa(s8),c8=pg(),u8=Xa(c8),l8=t8.default.create;function f2(){var e=l8();return e.compile=function(t,r){return Hg.compile(t,r,e)},e.precompile=function(t,r){return Hg.precompile(t,r,e)},e.AST=n8.default,e.Compiler=Hg.Compiler,e.JavaScriptCompiler=o8.default,e.Parser=Fg.parser,e.parse=Fg.parse,e.parseWithoutProcessing=Fg.parseWithoutProcessing,e}o(f2,"create");var ys=f2();ys.create=f2;u8.default(ys);ys.Visitor=a8.default;ys.default=ys;Ll.default=ys;p2.exports=Ll.default});var h2=v(Fl=>{"use strict";Fl.__esModule=!0;Fl.print=h8;Fl.PrintVisitor=Je;function f8(e){return e&&e.__esModule?e:{default:e}}o(f8,"_interopRequireDefault");var p8=Il(),d8=f8(p8);function h8(e){return new Je().accept(e)}o(h8,"print");function Je(){this.padding=0}o(Je,"PrintVisitor");Je.prototype=new d8.default;Je.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
73
- `,t};Je.prototype.Program=function(e){var t="",r=e.body,n=void 0,i=void 0;if(e.blockParams){var s="BLOCK PARAMS: [";for(n=0,i=e.blockParams.length;n<i;n++)s+=" "+e.blockParams[n];s+=" ]",t+=this.pad(s)}for(n=0,i=r.length;n<i;n++)t+=this.accept(r[n]);return this.padding--,t};Je.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};Je.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};Je.prototype.BlockStatement=Je.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};Je.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+" }}")};Je.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+" }}")};Je.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};Je.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};Je.prototype.SubExpression=function(e){for(var t=e.params,r=[],n=void 0,i=0,s=t.length;i<s;i++)r.push(this.accept(t[i]));return t="["+r.join(", ")+"]",n=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+n};Je.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};Je.prototype.StringLiteral=function(e){return'"'+e.value+'"'};Je.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};Je.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};Je.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Je.prototype.NullLiteral=function(){return"NULL"};Je.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(", ")+"}"};Je.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var Sn=v((MY,y2)=>{var Hl=d2().default,g2=h2();Hl.PrintVisitor=g2.PrintVisitor;Hl.print=g2.print;y2.exports=Hl;function m2(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=Hl.compile(n)}o(m2,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=m2,require.extensions[".hbs"]=m2)});var lc=require("assert");var o$={right:l$,center:f$},s$=0,rc=1,a$=2,nc=3,Ul=class Ul{constructor(t){var r;this.width=t.width,this.wrap=(r=t.wrap)!==null&&r!==void 0?r:!0,this.rows=[]}span(...t){let r=this.div(...t);r.span=!0}resetOutput(){this.rows=[]}div(...t){if(t.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&typeof t[0]=="string")return this.applyLayoutDSL(t[0]);let r=t.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(r),r}shouldApplyLayoutDSL(...t){return t.length===1&&typeof t[0]=="string"&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){let r=t.split(`
74
- `).map(i=>i.split(" ")),n=0;return r.forEach(i=>{i.length>1&&Ut.stringWidth(i[0])>n&&(n=Math.min(Math.floor(this.width*.5),Ut.stringWidth(i[0])))}),r.forEach(i=>{this.div(...i.map((s,a)=>({text:s.trim(),padding:this.measurePadding(s),width:a===0&&i.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(t){return{text:t,padding:this.measurePadding(t)}}measurePadding(t){let r=Ut.stripAnsi(t);return[0,r.match(/\s*$/)[0].length,0,r.match(/^\s*/)[0].length]}toString(){let t=[];return this.rows.forEach(r=>{this.rowToString(r,t)}),t.filter(r=>!r.hidden).map(r=>r.text).join(`
75
- `)}rowToString(t,r){return this.rasterize(t).forEach((n,i)=>{let s="";n.forEach((a,c)=>{let{width:u}=t[c],l=this.negatePadding(t[c]),p=a;if(l>Ut.stringWidth(a)&&(p+=" ".repeat(l-Ut.stringWidth(a))),t[c].align&&t[c].align!=="left"&&this.wrap){let d=o$[t[c].align];p=d(p,l),Ut.stringWidth(p)<l&&(p+=" ".repeat((u||0)-Ut.stringWidth(p)-1))}let f=t[c].padding||[0,0,0,0];f[nc]&&(s+=" ".repeat(f[nc])),s+=zg(t[c],p,"| "),s+=p,s+=zg(t[c],p," |"),f[rc]&&(s+=" ".repeat(f[rc])),i===0&&r.length>0&&(s=this.renderInline(s,r[r.length-1]))}),r.push({text:s.replace(/ +$/,""),span:t.span})}),r}renderInline(t,r){let n=t.match(/^ */),i=n?n[0].length:0,s=r.text,a=Ut.stringWidth(s.trimRight());return r.span?this.wrap?i<a?t:(r.hidden=!0,s.trimRight()+" ".repeat(i-a)+t.trimLeft()):(r.hidden=!0,s+t):t}rasterize(t){let r=[],n=this.columnWidths(t),i;return t.forEach((s,a)=>{s.width=n[a],this.wrap?i=Ut.wrap(s.text,this.negatePadding(s),{hard:!0}).split(`
72
+ `.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(t){this.lastContext=t},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(t,r,n,i){var s=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[s++])):this.pushContext(),this.resolvePath("context",t,s,r,n)},"lookupOnContext"),lookupBlockParam:o(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(t,r,n,i,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(c8(this.options.strict&&s,this,r,n,t));return}for(var c=r.length;n<c;n++)this.replaceStack(function(u){var l=a.nameLookup(u,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",u]})},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:o(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},"popHash"),pushString:o(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:o(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:o(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(t,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,t);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:o(function(t,r,n){var i=this.popStack(),s=this.setupHelper(t,r),a=[];n&&a.push(s.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],u=this.source.functionCall(c,"call",s.callParams);this.push(u)},"invokeHelper"),itemsSeparatedBy:o(function(t,r){var n=[];n.push(t[0]);for(var i=1;i<t.length;i++)n.push(r,t[i]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),s=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",s," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:o(function(t,r,n){var i=[],s=this.setupParams(r,1,i);t&&(r=this.popStack(),delete s.name),n&&(s.indent=JSON.stringify(n)),s.helpers="helpers",s.partials="partials",s.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(s.depths="depths"),s=this.objectLiteral(s),i.push(s),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:o(function(t){var r=this.popStack(),n=void 0,i=void 0,s=void 0;this.trackIds&&(s=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),s&&(a.ids[t]=s),a.values[t]=r},"assignToHash"),pushId:o(function(t,r,n){t==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):t==="PathExpression"?this.pushString(r):t==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:vs,compileChildren:o(function(t,r){for(var n=t.children,i=void 0,s=void 0,a=0,c=n.length;a<c;a++){i=n[a],s=new this.compiler;var u=this.matchExistingProgram(i);if(u==null){this.context.programs.push("");var l=this.context.programs.length;i.index=l,i.name="program"+l,this.context.programs[l]=s.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=s.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=u.index,i.name="program"+u.index,this.useDepths=this.useDepths||u.useDepths,this.useBlockParams=this.useBlockParams||u.useBlockParams}},"compileChildren"),matchExistingProgram:o(function(t){for(var r=0,n=this.context.environments.length;r<n;r++){var i=this.context.environments[r];if(i&&i.equals(t))return i}},"matchExistingProgram"),programExpression:o(function(t){var r=this.environment.children[t],n=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},"programExpression"),useRegister:o(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:o(function(t){return t instanceof bs||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:o(function(t){this.push(new bs(t))},"pushStackLiteral"),pushSource:o(function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},"pushSource"),replaceStack:o(function(t){var r=["("],n=void 0,i=void 0,s=void 0;if(!this.isInline())throw new zg.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof bs)n=[a.value],r=["(",n],s=!0;else{i=!0;var c=this.incrStack();r=["((",this.push(c)," = ",a,")"],n=this.topStack()}var u=t.call(this,n);s||this.popStack(),i&&this.stackSlot--,this.push(r.concat(u,")"))},"replaceStack"),incrStack:o(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:o(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:o(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof bs)this.compileStack.push(i);else{var s=this.incrStack();this.pushSource([s," = ",i,";"]),this.compileStack.push(s)}}},"flushInline"),isInline:o(function(){return this.inlineStack.length},"isInline"),popStack:o(function(t){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof bs)return n.value;if(!r){if(!this.stackSlot)throw new zg.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:o(function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof bs?r.value:r},"topStack"),contextName:o(function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},"contextName"),quotedString:o(function(t){return this.source.quotedString(t)},"quotedString"),objectLiteral:o(function(t){return this.source.objectLiteral(t)},"objectLiteral"),aliasable:o(function(t){var r=this.aliases[t];return r?(r.referenceCount++,r):(r=this.aliases[t]=this.source.wrap(t),r.aliasable=!0,r.referenceCount=1,r)},"aliasable"),setupHelper:o(function(t,r,n){var i=[],s=this.setupHelperArgs(r,t,i,n),a=this.nameLookup("helpers",r,"helper"),c=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:s,name:a,callParams:[c].concat(i)}},"setupHelper"),setupParams:o(function(t,r,n){var i={},s=[],a=[],c=[],u=!n,l=void 0;u&&(n=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var 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&&(c[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),s[d]=this.popStack());return u&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(c)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(s)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:o(function(t,r,n,i){var s=this.setupParams(t,r,n);return s.loc=JSON.stringify(this.source.currentLocation),s=this.objectLiteral(s),i?(this.useRegister("options"),n.push("options"),["options=",s]):n?(n.push(s),""):s},"setupHelperArgs")};(function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=vs.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();vs.isValidJavaScriptVariableName=function(e){return!vs.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function c8(e,t,r,n,i){var s=t.popStack(),a=r.length;for(e&&a--;n<a;n++)s=t.nameLookup(s,r[n],i);return e?[t.aliasable("container.strict"),"(",s,", ",t.quotedString(r[n]),", ",JSON.stringify(t.source.currentLocation)," )"]:s}o(c8,"strictLookup");Gl.default=vs;y2.exports=Gl.default});var S2=v((zl,_2)=>{"use strict";zl.__esModule=!0;function rc(e){return e&&e.__esModule?e:{default:e}}o(rc,"_interopRequireDefault");var u8=E1(),l8=rc(u8),f8=Og(),p8=rc(f8),Zg=M1(),Wg=L1(),d8=b2(),h8=rc(d8),m8=kl(),g8=rc(m8),y8=vg(),b8=rc(y8),v8=l8.default.create;function v2(){var e=v8();return e.compile=function(t,r){return Wg.compile(t,r,e)},e.precompile=function(t,r){return Wg.precompile(t,r,e)},e.AST=p8.default,e.Compiler=Wg.Compiler,e.JavaScriptCompiler=h8.default,e.Parser=Zg.parser,e.parse=Zg.parse,e.parseWithoutProcessing=Zg.parseWithoutProcessing,e}o(v2,"create");var _s=v2();_s.create=v2;b8.default(_s);_s.Visitor=g8.default;_s.default=_s;zl.default=_s;_2.exports=zl.default});var E2=v(Zl=>{"use strict";Zl.__esModule=!0;Zl.print=O8;Zl.PrintVisitor=Je;function _8(e){return e&&e.__esModule?e:{default:e}}o(_8,"_interopRequireDefault");var S8=kl(),E8=_8(S8);function O8(e){return new Je().accept(e)}o(O8,"print");function Je(){this.padding=0}o(Je,"PrintVisitor");Je.prototype=new E8.default;Je.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
73
+ `,t};Je.prototype.Program=function(e){var t="",r=e.body,n=void 0,i=void 0;if(e.blockParams){var s="BLOCK PARAMS: [";for(n=0,i=e.blockParams.length;n<i;n++)s+=" "+e.blockParams[n];s+=" ]",t+=this.pad(s)}for(n=0,i=r.length;n<i;n++)t+=this.accept(r[n]);return this.padding--,t};Je.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};Je.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};Je.prototype.BlockStatement=Je.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};Je.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+" }}")};Je.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+" }}")};Je.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};Je.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};Je.prototype.SubExpression=function(e){for(var t=e.params,r=[],n=void 0,i=0,s=t.length;i<s;i++)r.push(this.accept(t[i]));return t="["+r.join(", ")+"]",n=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+n};Je.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};Je.prototype.StringLiteral=function(e){return'"'+e.value+'"'};Je.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};Je.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};Je.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Je.prototype.NullLiteral=function(){return"NULL"};Je.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(", ")+"}"};Je.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var On=v((ZY,x2)=>{var Wl=S2().default,P2=E2();Wl.PrintVisitor=P2.PrintVisitor;Wl.print=P2.print;x2.exports=Wl;function O2(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=Wl.compile(n)}o(O2,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=O2,require.extensions[".hbs"]=O2)});var dc=require("assert");var h$={right:v$,center:_$},m$=0,oc=1,g$=2,sc=3,Ql=class Ql{constructor(t){var r;this.width=t.width,this.wrap=(r=t.wrap)!==null&&r!==void 0?r:!0,this.rows=[]}span(...t){let r=this.div(...t);r.span=!0}resetOutput(){this.rows=[]}div(...t){if(t.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&typeof t[0]=="string")return this.applyLayoutDSL(t[0]);let r=t.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(r),r}shouldApplyLayoutDSL(...t){return t.length===1&&typeof t[0]=="string"&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){let r=t.split(`
74
+ `).map(i=>i.split(" ")),n=0;return r.forEach(i=>{i.length>1&&Gt.stringWidth(i[0])>n&&(n=Math.min(Math.floor(this.width*.5),Gt.stringWidth(i[0])))}),r.forEach(i=>{this.div(...i.map((s,a)=>({text:s.trim(),padding:this.measurePadding(s),width:a===0&&i.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(t){return{text:t,padding:this.measurePadding(t)}}measurePadding(t){let r=Gt.stripAnsi(t);return[0,r.match(/\s*$/)[0].length,0,r.match(/^\s*/)[0].length]}toString(){let t=[];return this.rows.forEach(r=>{this.rowToString(r,t)}),t.filter(r=>!r.hidden).map(r=>r.text).join(`
75
+ `)}rowToString(t,r){return this.rasterize(t).forEach((n,i)=>{let s="";n.forEach((a,c)=>{let{width:u}=t[c],l=this.negatePadding(t[c]),p=a;if(l>Gt.stringWidth(a)&&(p+=" ".repeat(l-Gt.stringWidth(a))),t[c].align&&t[c].align!=="left"&&this.wrap){let d=h$[t[c].align];p=d(p,l),Gt.stringWidth(p)<l&&(p+=" ".repeat((u||0)-Gt.stringWidth(p)-1))}let f=t[c].padding||[0,0,0,0];f[sc]&&(s+=" ".repeat(f[sc])),s+=Xg(t[c],p,"| "),s+=p,s+=Xg(t[c],p," |"),f[oc]&&(s+=" ".repeat(f[oc])),i===0&&r.length>0&&(s=this.renderInline(s,r[r.length-1]))}),r.push({text:s.replace(/ +$/,""),span:t.span})}),r}renderInline(t,r){let n=t.match(/^ */),i=n?n[0].length:0,s=r.text,a=Gt.stringWidth(s.trimRight());return r.span?this.wrap?i<a?t:(r.hidden=!0,s.trimRight()+" ".repeat(i-a)+t.trimLeft()):(r.hidden=!0,s+t):t}rasterize(t){let r=[],n=this.columnWidths(t),i;return t.forEach((s,a)=>{s.width=n[a],this.wrap?i=Gt.wrap(s.text,this.negatePadding(s),{hard:!0}).split(`
76
76
  `):i=s.text.split(`
77
- `),s.border&&(i.unshift("."+"-".repeat(this.negatePadding(s)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(s)+2)+"'")),s.padding&&(i.unshift(...new Array(s.padding[s$]||0).fill("")),i.push(...new Array(s.padding[a$]||0).fill(""))),i.forEach((c,u)=>{r[u]||r.push([]);let l=r[u];for(let p=0;p<a;p++)l[p]===void 0&&l.push("");l.push(c)})}),r}negatePadding(t){let r=t.width||0;return t.padding&&(r-=(t.padding[nc]||0)+(t.padding[rc]||0)),t.border&&(r-=4),r}columnWidths(t){if(!this.wrap)return t.map(a=>a.width||Ut.stringWidth(a.text));let r=t.length,n=this.width,i=t.map(a=>{if(a.width)return r--,n-=a.width,a.width}),s=r?Math.floor(n/r):0;return i.map((a,c)=>a===void 0?Math.max(s,c$(t[c])):a)}};o(Ul,"UI");var Vl=Ul;function zg(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?r:" ":""}o(zg,"addBorder");function c$(e){let t=e.padding||[],r=1+(t[nc]||0)+(t[rc]||0);return e.border?r+4:r}o(c$,"_minWidth");function u$(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}o(u$,"getWindowWidth");function l$(e,t){e=e.trim();let r=Ut.stringWidth(e);return r<t?" ".repeat(t-r)+e:e}o(l$,"alignRight");function f$(e,t){e=e.trim();let r=Ut.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}o(f$,"alignCenter");var Ut;function Zg(e,t){return Ut=t,new Vl({width:(e==null?void 0:e.width)||u$(),wrap:e==null?void 0:e.wrap})}o(Zg,"cliui");var Wg=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function Gl(e){return e.replace(Wg,"")}o(Gl,"stripAnsi");function Kg(e,t){let[r,n]=e.match(Wg)||["",""];e=Gl(e);let i="";for(let s=0;s<e.length;s++)s!==0&&s%t===0&&(i+=`
78
- `),i+=e.charAt(s);return r&&n&&(i=`${r}${i}${n}`),i}o(Kg,"wrap");function zl(e){return Zg(e,{stringWidth:o(t=>[...t].length,"stringWidth"),stripAnsi:Gl,wrap:Kg})}o(zl,"ui");var oo=require("path"),ic=require("fs");function Zl(e,t){let r=(0,oo.resolve)(".",e),n;for((0,ic.statSync)(r).isDirectory()||(r=(0,oo.dirname)(r));;){if(n=t(r,(0,ic.readdirSync)(r)),n)return(0,oo.resolve)(r,n);if(r=(0,oo.dirname)(n=r),n===r)break}}o(Zl,"default");var fy=require("util"),py=require("fs"),dy=require("url");var ey=require("util"),cc=require("path");function ui(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,i=e.match(/^-+/);for(let s=i?i[0].length:0;s<e.length;s++){let a=e.charAt(s);n&&(n=!1,a=a.toUpperCase()),s!==0&&(a==="-"||a==="_")?n=!0:a!=="-"&&a!=="_"&&(r+=a)}return r}}o(ui,"camelCase");function oc(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let s=r.charAt(i),a=e.charAt(i);s!==a&&i>0?n+=`${t}${r.charAt(i)}`:n+=a}return n}o(oc,"decamelize");function sc(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}o(sc,"looksLikeNumber");function Yg(e){if(Array.isArray(e))return e.map(a=>typeof a!="string"?a+"":a);e=e.trim();let t=0,r=null,n=null,i=null,s=[];for(let a=0;a<e.length;a++){if(r=n,n=e.charAt(a),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),s[t]||(s[t]=""),s[t]+=n}return s}o(Yg,"tokenizeArgString");var nr;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(nr||(nr={}));var ln,Kl=class Kl{constructor(t){ln=t}parse(t,r){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},r),i=Yg(t),s=typeof t=="string",a=p$(Object.assign(Object.create(null),n.alias)),c=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),u=Object.assign(Object.create(null),n.default),l=n.configObjects||[],p=n.envPrefix,f=c["populate--"],d=f?"--":"_",h=Object.create(null),y=Object.create(null),b=n.__||ln.format,g={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},P=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,$=new RegExp("^--"+c["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(_){let O=typeof _=="object"?_.key:_,N=Object.keys(_).map(function(w){return{boolean:"bools",string:"strings",number:"numbers"}[w]}).filter(Boolean).pop();N&&(g[N][O]=!0),g.arrays[O]=!0,g.keys.push(O)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(_){g.bools[_]=!0,g.keys.push(_)}),[].concat(n.string||[]).filter(Boolean).forEach(function(_){g.strings[_]=!0,g.keys.push(_)}),[].concat(n.number||[]).filter(Boolean).forEach(function(_){g.numbers[_]=!0,g.keys.push(_)}),[].concat(n.count||[]).filter(Boolean).forEach(function(_){g.counts[_]=!0,g.keys.push(_)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(_){g.normalize[_]=!0,g.keys.push(_)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([_,O])=>{typeof O=="number"&&(g.nargs[_]=O,g.keys.push(_))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([_,O])=>{typeof O=="function"&&(g.coercions[_]=O,g.keys.push(_))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(_){g.configs[_]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([_,O])=>{(typeof O=="boolean"||typeof O=="function")&&(g.configs[_]=O)})),Mt(n.key,a,n.default,g.arrays),Object.keys(u).forEach(function(_){(g.aliases[_]||[]).forEach(function(O){u[O]=u[_]})});let C=null;io();let T=[],A=Object.assign(Object.create(null),{_:[]}),K={};for(let _=0;_<i.length;_++){let O=i[_],N=O.replace(/^-{3,}/,"---"),w,E,H,k,z,nt;if(O!=="--"&&/^-/.test(O)&&Ne(O))X(O);else if(N.match(/^---+(=|$)/)){X(O);continue}else if(O.match(/^--.+=/)||!c["short-option-groups"]&&O.match(/^-.+=/))k=O.match(/^--?([^=]+)=([\s\S]*)$/),k!==null&&Array.isArray(k)&&k.length>=3&&(ne(k[1],g.arrays)?_=Ie(_,k[1],i,k[2]):ne(k[1],g.nargs)!==!1?_=Ze(_,k[1],i,k[2]):re(k[1],k[2],!0));else if(O.match($)&&c["boolean-negation"])k=O.match($),k!==null&&Array.isArray(k)&&k.length>=2&&(E=k[1],re(E,ne(E,g.arrays)?[!1]:!1));else if(O.match(/^--.+/)||!c["short-option-groups"]&&O.match(/^-[^-]+/))k=O.match(/^--?(.+)/),k!==null&&Array.isArray(k)&&k.length>=2&&(E=k[1],ne(E,g.arrays)?_=Ie(_,E,i):ne(E,g.nargs)!==!1?_=Ze(_,E,i):(z=i[_+1],z!==void 0&&(!z.match(/^-/)||z.match(P))&&!ne(E,g.bools)&&!ne(E,g.counts)||/^(true|false)$/.test(z)?(re(E,z),_++):re(E,_e(E))));else if(O.match(/^-.\..+=/))k=O.match(/^-([^=]+)=([\s\S]*)$/),k!==null&&Array.isArray(k)&&k.length>=3&&re(k[1],k[2]);else if(O.match(/^-.\..+/)&&!O.match(P))z=i[_+1],k=O.match(/^-(.\..+)/),k!==null&&Array.isArray(k)&&k.length>=2&&(E=k[1],z!==void 0&&!z.match(/^-/)&&!ne(E,g.bools)&&!ne(E,g.counts)?(re(E,z),_++):re(E,_e(E)));else if(O.match(/^-[^-]+/)&&!O.match(P)){H=O.slice(1,-1).split(""),w=!1;for(let ht=0;ht<H.length;ht++){if(z=O.slice(ht+2),H[ht+1]&&H[ht+1]==="="){nt=O.slice(ht+3),E=H[ht],ne(E,g.arrays)?_=Ie(_,E,i,nt):ne(E,g.nargs)!==!1?_=Ze(_,E,i,nt):re(E,nt),w=!0;break}if(z==="-"){re(H[ht],z);continue}if(/[A-Za-z]/.test(H[ht])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(z)&&ne(z,g.bools)===!1){re(H[ht],z),w=!0;break}if(H[ht+1]&&H[ht+1].match(/\W/)){re(H[ht],z),w=!0;break}else re(H[ht],_e(H[ht]))}E=O.slice(-1)[0],!w&&E!=="-"&&(ne(E,g.arrays)?_=Ie(_,E,i):ne(E,g.nargs)!==!1?_=Ze(_,E,i):(z=i[_+1],z!==void 0&&(!/^(-|--)[^-]/.test(z)||z.match(P))&&!ne(E,g.bools)&&!ne(E,g.counts)||/^(true|false)$/.test(z)?(re(E,z),_++):re(E,_e(E))))}else if(O.match(/^-[0-9]$/)&&O.match(P)&&ne(O.slice(1),g.bools))E=O.slice(1),re(E,_e(E));else if(O==="--"){T=i.slice(_+1);break}else if(c["halt-at-non-option"]){T=i.slice(_);break}else X(O)}ge(A,!0),ge(A,!1),Q(A),ve(),Ce(A,g.aliases,u,!0),We(A),c["set-placeholder-key"]&&qr(A),Object.keys(g.counts).forEach(function(_){rr(A,_.split("."))||re(_,0)}),f&&T.length&&(A[d]=[]),T.forEach(function(_){A[d].push(_)}),c["camel-case-expansion"]&&c["strip-dashed"]&&Object.keys(A).filter(_=>_!=="--"&&_.includes("-")).forEach(_=>{delete A[_]}),c["strip-aliased"]&&[].concat(...Object.keys(a).map(_=>a[_])).forEach(_=>{c["camel-case-expansion"]&&_.includes("-")&&delete A[_.split(".").map(O=>ui(O)).join(".")],delete A[_]});function X(_){let O=q("_",_);(typeof O=="string"||typeof O=="number")&&A._.push(O)}o(X,"pushPositional");function Ze(_,O,N,w){let E,H=ne(O,g.nargs);if(H=typeof H!="number"||isNaN(H)?1:H,H===0)return kt(w)||(C=Error(b("Argument unexpected for: %s",O))),re(O,_e(O)),_;let k=kt(w)?0:1;if(c["nargs-eats-options"])N.length-(_+1)+k<H&&(C=Error(b("Not enough arguments following: %s",O))),k=H;else{for(E=_+1;E<N.length&&(!N[E].match(/^-[^0-9]/)||N[E].match(P)||Ne(N[E]));E++)k++;k<H&&(C=Error(b("Not enough arguments following: %s",O)))}let z=Math.min(k,H);for(!kt(w)&&z>0&&(re(O,w),z--),E=_+1;E<z+_+1;E++)re(O,N[E]);return _+z}o(Ze,"eatNargs");function Ie(_,O,N,w){let E=[],H=w||N[_+1],k=ne(O,g.nargs);if(ne(O,g.bools)&&!/^(true|false)$/.test(H))E.push(!0);else if(kt(H)||kt(w)&&/^-/.test(H)&&!P.test(H)&&!Ne(H)){if(u[O]!==void 0){let z=u[O];E=Array.isArray(z)?z:[z]}}else{kt(w)||E.push(R(O,w,!0));for(let z=_+1;z<N.length&&!(!c["greedy-arrays"]&&E.length>0||k&&typeof k=="number"&&E.length>=k||(H=N[z],/^-/.test(H)&&!P.test(H)&&!Ne(H)));z++)_=z,E.push(R(O,H,s))}return typeof k=="number"&&(k&&E.length<k||isNaN(k)&&E.length===0)&&(C=Error(b("Not enough arguments following: %s",O))),re(O,E),_}o(Ie,"eatArray");function re(_,O,N=s){if(/-/.test(_)&&c["camel-case-expansion"]){let H=_.split(".").map(function(k){return ui(k)}).join(".");M(_,H)}let w=R(_,O,N),E=_.split(".");Y(A,E,w),g.aliases[_]&&g.aliases[_].forEach(function(H){let k=H.split(".");Y(A,k,w)}),E.length>1&&c["dot-notation"]&&(g.aliases[E[0]]||[]).forEach(function(H){let k=H.split("."),z=[].concat(E);z.shift(),k=k.concat(z),(g.aliases[_]||[]).includes(k.join("."))||Y(A,k,w)}),ne(_,g.normalize)&&!ne(_,g.arrays)&&[_].concat(g.aliases[_]||[]).forEach(function(k){Object.defineProperty(K,k,{enumerable:!0,get(){return O},set(z){O=typeof z=="string"?ln.normalize(z):z}})})}o(re,"setArg");function M(_,O){g.aliases[_]&&g.aliases[_].length||(g.aliases[_]=[O],h[O]=!0),g.aliases[O]&&g.aliases[O].length||M(O,_)}o(M,"addNewAlias");function R(_,O,N){N&&(O=d$(O)),(ne(_,g.bools)||ne(_,g.counts))&&typeof O=="string"&&(O=O==="true");let w=Array.isArray(O)?O.map(function(E){return q(_,E)}):q(_,O);return ne(_,g.counts)&&(kt(w)||typeof w=="boolean")&&(w=Wl()),ne(_,g.normalize)&&ne(_,g.arrays)&&(Array.isArray(O)?w=O.map(E=>ln.normalize(E)):w=ln.normalize(O)),w}o(R,"processValue");function q(_,O){return!c["parse-positional-numbers"]&&_==="_"||!ne(_,g.strings)&&!ne(_,g.bools)&&!Array.isArray(O)&&(sc(O)&&c["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${O}`)))||!kt(O)&&ne(_,g.numbers))&&(O=Number(O)),O}o(q,"maybeCoerceNumber");function Q(_){let O=Object.create(null);Ce(O,g.aliases,u),Object.keys(g.configs).forEach(function(N){let w=_[N]||O[N];if(w)try{let E=null,H=ln.resolve(ln.cwd(),w),k=g.configs[N];if(typeof k=="function"){try{E=k(H)}catch(z){E=z}if(E instanceof Error){C=E;return}}else E=ln.require(H);ue(E)}catch(E){E.name==="PermissionDenied"?C=E:_[N]&&(C=Error(b("Invalid JSON config file: %s",w)))}})}o(Q,"setConfig");function ue(_,O){Object.keys(_).forEach(function(N){let w=_[N],E=O?O+"."+N:N;typeof w=="object"&&w!==null&&!Array.isArray(w)&&c["dot-notation"]?ue(w,E):(!rr(A,E.split("."))||ne(E,g.arrays)&&c["combine-arrays"])&&re(E,w)})}o(ue,"setConfigObject");function ve(){typeof l<"u"&&l.forEach(function(_){ue(_)})}o(ve,"setConfigObjects");function ge(_,O){if(typeof p>"u")return;let N=typeof p=="string"?p:"",w=ln.env();Object.keys(w).forEach(function(E){if(N===""||E.lastIndexOf(N,0)===0){let H=E.split("__").map(function(k,z){return z===0&&(k=k.substring(N.length)),ui(k)});(O&&g.configs[H.join(".")]||!O)&&!rr(_,H)&&re(H.join("."),w[E])}})}o(ge,"applyEnvVars");function We(_){let O,N=new Set;Object.keys(_).forEach(function(w){if(!N.has(w)&&(O=ne(w,g.coercions),typeof O=="function"))try{let E=q(w,O(_[w]));[].concat(g.aliases[w]||[],w).forEach(H=>{N.add(H),_[H]=E})}catch(E){C=E}})}o(We,"applyCoercions");function qr(_){return g.keys.forEach(O=>{~O.indexOf(".")||typeof _[O]>"u"&&(_[O]=void 0)}),_}o(qr,"setPlaceholderKeys");function Ce(_,O,N,w=!1){Object.keys(N).forEach(function(E){rr(_,E.split("."))||(Y(_,E.split("."),N[E]),w&&(y[E]=!0),(O[E]||[]).forEach(function(H){rr(_,H.split("."))||Y(_,H.split("."),N[E])}))})}o(Ce,"applyDefaultsAndAliases");function rr(_,O){let N=_;c["dot-notation"]||(O=[O.join(".")]),O.slice(0,-1).forEach(function(E){N=N[E]||{}});let w=O[O.length-1];return typeof N!="object"?!1:w in N}o(rr,"hasKey");function Y(_,O,N){let w=_;c["dot-notation"]||(O=[O.join(".")]),O.slice(0,-1).forEach(function(nt){nt=Qg(nt),typeof w=="object"&&w[nt]===void 0&&(w[nt]={}),typeof w[nt]!="object"||Array.isArray(w[nt])?(Array.isArray(w[nt])?w[nt].push({}):w[nt]=[w[nt],{}],w=w[nt][w[nt].length-1]):w=w[nt]});let E=Qg(O[O.length-1]),H=ne(O.join("."),g.arrays),k=Array.isArray(N),z=c["duplicate-arguments-array"];!z&&ne(E,g.nargs)&&(z=!0,(!kt(w[E])&&g.nargs[E]===1||Array.isArray(w[E])&&w[E].length===g.nargs[E])&&(w[E]=void 0)),N===Wl()?w[E]=Wl(w[E]):Array.isArray(w[E])?z&&H&&k?w[E]=c["flatten-duplicate-arrays"]?w[E].concat(N):(Array.isArray(w[E][0])?w[E]:[w[E]]).concat([N]):!z&&!!H==!!k?w[E]=N:w[E]=w[E].concat([N]):w[E]===void 0&&H?w[E]=k?N:[N]:z&&!(w[E]===void 0||ne(E,g.counts)||ne(E,g.bools))?w[E]=[w[E],N]:w[E]=N}o(Y,"setKey");function Mt(..._){_.forEach(function(O){Object.keys(O||{}).forEach(function(N){g.aliases[N]||(g.aliases[N]=[].concat(a[N]||[]),g.aliases[N].concat(N).forEach(function(w){if(/-/.test(w)&&c["camel-case-expansion"]){let E=ui(w);E!==N&&g.aliases[N].indexOf(E)===-1&&(g.aliases[N].push(E),h[E]=!0)}}),g.aliases[N].concat(N).forEach(function(w){if(w.length>1&&/[A-Z]/.test(w)&&c["camel-case-expansion"]){let E=oc(w,"-");E!==N&&g.aliases[N].indexOf(E)===-1&&(g.aliases[N].push(E),h[E]=!0)}}),g.aliases[N].forEach(function(w){g.aliases[w]=[N].concat(g.aliases[N].filter(function(E){return w!==E}))}))})})}o(Mt,"extendAliases");function ne(_,O){let N=[].concat(g.aliases[_]||[],_),w=Object.keys(O),E=N.find(H=>w.includes(H));return E?O[E]:!1}o(ne,"checkAllAliases");function Re(_){let O=Object.keys(g);return[].concat(O.map(w=>g[w])).some(function(w){return Array.isArray(w)?w.includes(_):w[_]})}o(Re,"hasAnyFlag");function ee(_,...O){return[].concat(...O).some(function(w){let E=_.match(w);return E&&Re(E[1])})}o(ee,"hasFlagsMatching");function Te(_){if(_.match(P)||!_.match(/^-[^-]+/))return!1;let O=!0,N,w=_.slice(1).split("");for(let E=0;E<w.length;E++){if(N=_.slice(E+2),!Re(w[E])){O=!1;break}if(w[E+1]&&w[E+1]==="="||N==="-"||/[A-Za-z]/.test(w[E])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(N)||w[E+1]&&w[E+1].match(/\W/))break}return O}o(Te,"hasAllShortFlags");function Ne(_){return c["unknown-options-as-args"]&&pe(_)}o(Ne,"isUnknownOptionAsArg");function pe(_){return _=_.replace(/^-{3,}/,"--"),_.match(P)||Te(_)?!1:!ee(_,/^-+([^=]+?)=[\s\S]*$/,$,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}o(pe,"isUnknownOption");function _e(_){return!ne(_,g.bools)&&!ne(_,g.counts)&&`${_}`in u?u[_]:He(ut(_))}o(_e,"defaultValue");function He(_){return{[nr.BOOLEAN]:!0,[nr.STRING]:"",[nr.NUMBER]:void 0,[nr.ARRAY]:[]}[_]}o(He,"defaultForType");function ut(_){let O=nr.BOOLEAN;return ne(_,g.strings)?O=nr.STRING:ne(_,g.numbers)?O=nr.NUMBER:ne(_,g.bools)?O=nr.BOOLEAN:ne(_,g.arrays)&&(O=nr.ARRAY),O}o(ut,"guessType");function kt(_){return _===void 0}o(kt,"isUndefined");function io(){Object.keys(g.counts).find(_=>ne(_,g.arrays)?(C=Error(b("Invalid configuration: %s, opts.count excludes opts.array.",_)),!0):ne(_,g.nargs)?(C=Error(b("Invalid configuration: %s, opts.count excludes opts.narg.",_)),!0):!1)}return o(io,"checkConfiguration"),{aliases:Object.assign({},g.aliases),argv:Object.assign(K,A),configuration:c,defaulted:Object.assign({},y),error:C,newAliases:Object.assign({},h)}}};o(Kl,"YargsParser");var ac=Kl;function p$(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});n;){n=!1;for(let i=0;i<t.length;i++)for(let s=i+1;s<t.length;s++)if(t[i].filter(function(c){return t[s].indexOf(c)!==-1}).length){t[i]=t[i].concat(t[s]),t.splice(s,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(a,c,u){return u.indexOf(a)===c});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}o(p$,"combineAliases");function Wl(e){return e!==void 0?e+1:1}o(Wl,"increment");function Qg(e){return e==="__proto__"?"___proto___":e}o(Qg,"sanitizeKey");function d$(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}o(d$,"stripQuotes");var ty=require("fs");var Yl,Ql,Jl,Jg=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,Xg=(Ql=(Yl=process==null?void 0:process.versions)===null||Yl===void 0?void 0:Yl.node)!==null&&Ql!==void 0?Ql:(Jl=process==null?void 0:process.version)===null||Jl===void 0?void 0:Jl.slice(1);if(Xg&&Number(Xg.match(/^([^.]+)/)[1])<Jg)throw Error(`yargs parser supports a minimum Node.js version of ${Jg}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var h$=process?process.env:{},ry=new ac({cwd:process.cwd,env:o(()=>h$,"env"),format:ey.format,normalize:cc.normalize,resolve:cc.resolve,require:o(e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return JSON.parse((0,ty.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")},"require")}),_s=o(function(t,r){return ry.parse(t.slice(),r).argv},"Parser");_s.detailed=function(e,t){return ry.parse(e.slice(),t)};_s.camelCase=ui;_s.decamelize=oc;_s.looksLikeNumber=sc;var Xl=_s;var Sr=require("path");function ny(){return m$()?0:1}o(ny,"getProcessArgvBinIndex");function m$(){return g$()&&!process.defaultApp}o(m$,"isBundledElectronApp");function g$(){return!!process.versions.electron}o(g$,"isElectronApp");function ef(e){return e.slice(ny()+1)}o(ef,"hideBin");function iy(){return process.argv[ny()]}o(iy,"getProcessArgvBin");var uc=class uc extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,uc)}};o(uc,"YError");var Me=uc;var so=require("fs"),oy=require("util"),sy=require("path");var ay={fs:{readFileSync:so.readFileSync,writeFile:so.writeFile},format:oy.format,resolve:sy.resolve,exists:o(e=>{try{return(0,so.statSync)(e).isFile()}catch{return!1}},"exists")};var _r,rf=class rf{constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles=typeof t.updateFiles=="boolean"?t.updateFiles:!0,this.locale=t.locale||"en",this.fallbackToLanguage=typeof t.fallbackToLanguage=="boolean"?t.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...t){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let r=t.shift(),n=o(function(){},"cb");return typeof t[t.length-1]=="function"&&(n=t.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]=r,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),_r.format.apply(_r.format,[this.cache[this.locale][r]||r].concat(t))}__n(){let t=Array.prototype.slice.call(arguments),r=t.shift(),n=t.shift(),i=t.shift(),s=o(function(){},"cb");typeof t[t.length-1]=="function"&&(s=t.pop()),this.cache[this.locale]||this._readLocaleFile();let a=i===1?r:n;this.cache[this.locale][r]&&(a=this.cache[this.locale][r][i===1?"one":"other"]),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]={one:r,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:s})):s();let c=[a];return~a.indexOf("%d")&&c.push(i),_r.format.apply(_r.format,c.concat(t))}setLocale(t){this.locale=t}getLocale(){return this.locale}updateLocale(t){this.cache[this.locale]||this._readLocaleFile();for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this.cache[this.locale][r]=t[r])}_taggedLiteral(t,...r){let n="";return t.forEach(function(i,s){let a=r[s+1];n+=i,typeof a<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(r,1)))}_enqueueWrite(t){this.writeQueue.push(t),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let t=this,r=this.writeQueue[0],n=r.directory,i=r.locale,s=r.cb,a=this._resolveLocaleFile(n,i),c=JSON.stringify(this.cache[i],null,2);_r.fs.writeFile(a,c,"utf-8",function(u){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),s(u)})}_readLocaleFile(){let t={},r=this._resolveLocaleFile(this.directory,this.locale);try{_r.fs.readFileSync&&(t=JSON.parse(_r.fs.readFileSync(r,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+r),n.code==="ENOENT")t={};else throw n}this.cache[this.locale]=t}_resolveLocaleFile(t,r){let n=_r.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=_r.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return _r.exists(t)}};o(rf,"Y18N");var tf=rf;function cy(e,t){_r=t;let r=new tf(e);return{__:r.__.bind(r),__n:r.__n.bind(r),setLocale:r.setLocale.bind(r),getLocale:r.getLocale.bind(r),updateLocale:r.updateLocale.bind(r),locale:r.locale}}o(cy,"y18n");var y$=o(e=>cy(e,ay),"y18n"),uy=y$;var _$={};var b$="require is not supported by ESM",ly="loading a directory of commands is not supported yet for ESM",Ss;try{Ss=(0,dy.fileURLToPath)(_$.url)}catch{Ss=process.cwd()}var v$=Ss.substring(0,Ss.lastIndexOf("node_modules")),nf={assert:{notStrictEqual:lc.notStrictEqual,strictEqual:lc.strictEqual},cliui:zl,findUp:Zl,getEnv:o(e=>process.env[e],"getEnv"),inspect:fy.inspect,getCallerFile:o(()=>{throw new Me(ly)},"getCallerFile"),getProcessArgvBin:iy,mainFilename:v$||process.cwd(),Parser:Xl,path:{basename:Sr.basename,dirname:Sr.dirname,extname:Sr.extname,relative:Sr.relative,resolve:Sr.resolve},process:{argv:o(()=>process.argv,"argv"),cwd:process.cwd,emitWarning:o((e,t)=>process.emitWarning(e,t),"emitWarning"),execPath:o(()=>process.execPath,"execPath"),exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:py.readFileSync,require:o(()=>{throw new Me(b$)},"require"),requireDirectory:o(()=>{throw new Me(ly)},"requireDirectory"),stringWidth:o(e=>[...e].length,"stringWidth"),y18n:uy({directory:(0,Sr.resolve)(Ss,"../../../locales"),updateFiles:!1})};function wt(e,t,r,n){r.assert.notStrictEqual(e,t,n)}o(wt,"assertNotStrictEqual");function of(e,t){t.assert.strictEqual(typeof e,"string")}o(of,"assertSingleKey");function ao(e){return Object.keys(e)}o(ao,"objectKeys");function ke(e){return!!e&&!!e.then&&typeof e.then=="function"}o(ke,"isPromise");function On(e){let r=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,i=r.shift();if(!i)throw new Error(`No command found in: ${e}`);let s={cmd:i.replace(n,""),demanded:[],optional:[]};return r.forEach((a,c)=>{let u=!1;a=a.replace(/\s/g,""),/\.+[\]>]/.test(a)&&c===r.length-1&&(u=!0),/^\[/.test(a)?s.optional.push({cmd:a.replace(n,"").split("|"),variadic:u}):s.demanded.push({cmd:a.replace(n,"").split("|"),variadic:u})}),s}o(On,"parseCommand");var S$=["first","second","third","fourth","fifth","sixth"];function F(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[On(`cmd ${e}`),t,r]}o(n,"parseArgs");try{let i=0,[s,a,c]=n(),u=[].slice.call(a);for(;u.length&&u[u.length-1]===void 0;)u.pop();let l=c||u.length;if(l<s.demanded.length)throw new Me(`Not enough arguments provided. Expected ${s.demanded.length} but received ${u.length}.`);let p=s.demanded.length+s.optional.length;if(l>p)throw new Me(`Too many arguments provided. Expected max ${p} but received ${l}.`);s.demanded.forEach(f=>{let d=u.shift(),h=hy(d);f.cmd.filter(b=>b===h||b==="*").length===0&&my(h,f.cmd,i),i+=1}),s.optional.forEach(f=>{if(u.length===0)return;let d=u.shift(),h=hy(d);f.cmd.filter(b=>b===h||b==="*").length===0&&my(h,f.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}o(F,"argsert");function hy(e){return Array.isArray(e)?"array":e===null?"null":typeof e}o(hy,"guessType");function my(e,t,r){throw new Me(`Invalid ${S$[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}o(my,"argumentTypeError");var sf=class sf{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,r,n=!0,i=!1){if(F("<array|function> [boolean] [boolean] [boolean]",[t,r,n],arguments.length),Array.isArray(t)){for(let s=0;s<t.length;s++){if(typeof t[s]!="function")throw Error("middleware must be a function");let a=t[s];a.applyBeforeValidation=r,a.global=n}Array.prototype.push.apply(this.globalMiddleware,t)}else if(typeof t=="function"){let s=t;s.applyBeforeValidation=r,s.global=n,s.mutates=i,this.globalMiddleware.push(t)}return this.yargs}addCoerceMiddleware(t,r){let n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(i=>{let s=[...n[r]||[],r];return i.option?!s.includes(i.option):!0}),t.option=r,this.addMiddleware(t,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let t=this.frozens.pop();t!==void 0&&(this.globalMiddleware=t)}reset(){this.globalMiddleware=this.globalMiddleware.filter(t=>t.global)}};o(sf,"GlobalMiddleware");var fc=sf;function gy(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}o(gy,"commandMiddlewareFactory");function li(e,t,r,n){return r.reduce((i,s)=>{if(s.applyBeforeValidation!==n)return i;if(s.mutates){if(s.applied)return i;s.applied=!0}if(ke(i))return i.then(a=>Promise.all([a,s(a,t)])).then(([a,c])=>Object.assign(a,c));{let a=s(i,t);return ke(a)?a.then(c=>Object.assign(i,c)):Object.assign(i,a)}},e)}o(li,"applyMiddleware");function fi(e,t,r=n=>{throw n}){try{let n=E$(e)?e():e;return ke(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}o(fi,"maybeAsyncResult");function E$(e){return typeof e=="function"}o(E$,"isFunction");function af(e){if(typeof require>"u")return null;for(let t=0,r=Object.keys(require.cache),n;t<r.length;t++)if(n=require.cache[r[t]],n.exports===e)return n;return null}o(af,"whichModule");var co=/(^\*)|(^\$0)/,uf=class uf{constructor(t,r,n,i){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=i,this.usage=t,this.globalMiddleware=n,this.validation=r}addDirectory(t,r,n,i){i=i||{},typeof i.recurse!="boolean"&&(i.recurse=!1),Array.isArray(i.extensions)||(i.extensions=["js"]);let s=typeof i.visit=="function"?i.visit:a=>a;i.visit=(a,c,u)=>{let l=s(a,c,u);if(l){if(this.requireCache.has(c))return l;this.requireCache.add(c),this.addHandler(l)}return l},this.shim.requireDirectory({require:r,filename:n},t,i)}addHandler(t,r,n,i,s,a){let c=[],u=gy(s);if(i=i||(()=>{}),Array.isArray(t))if(O$(t))[t,...c]=t;else for(let l of t)this.addHandler(l);else if(x$(t)){let l=Array.isArray(t.command)||typeof t.command=="string"?t.command:this.moduleName(t);t.aliases&&(l=[].concat(l).concat(t.aliases)),this.addHandler(l,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated);return}else if(yy(n)){this.addHandler([t].concat(c),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let l=On(t);c=c.map(d=>On(d).cmd);let p=!1,f=[l.cmd].concat(c).filter(d=>co.test(d)?(p=!0,!1):!0);f.length===0&&p&&f.push("$0"),p&&(l.cmd=f[0],c=f.slice(1),t=t.replace(co,l.cmd)),c.forEach(d=>{this.aliasMap[d]=l.cmd}),r!==!1&&this.usage.command(t,r,p,c,a),this.handlers[l.cmd]={original:t,description:r,handler:i,builder:n||{},middlewares:u,deprecated:a,demanded:l.demanded,optional:l.optional},p&&(this.defaultCommand=this.handlers[l.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(t,r,n,i,s,a){let c=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,u=r.getInternalMethods().getContext(),l=u.commands.slice(),p=!t;t&&(u.commands.push(t),u.fullCommands.push(c.original));let f=this.applyBuilderUpdateUsageAndParse(p,c,r,n.aliases,l,i,s,a);return ke(f)?f.then(d=>this.applyMiddlewareAndGetResult(p,c,d.innerArgv,u,s,d.aliases,r)):this.applyMiddlewareAndGetResult(p,c,f.innerArgv,u,s,f.aliases,r)}applyBuilderUpdateUsageAndParse(t,r,n,i,s,a,c,u){let l=r.builder,p=n;if(pc(l)){n.getInternalMethods().getUsageInstance().freeze();let f=l(n.getInternalMethods().reset(i),u);if(ke(f))return f.then(d=>(p=vy(d)?d:n,this.parseAndUpdateUsage(t,r,p,s,a,c)))}else P$(l)&&(n.getInternalMethods().getUsageInstance().freeze(),p=n.getInternalMethods().reset(i),Object.keys(r.builder).forEach(f=>{p.option(f,l[f])}));return this.parseAndUpdateUsage(t,r,p,s,a,c)}parseAndUpdateUsage(t,r,n,i,s,a){t&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,r),r.description);let c=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,s,a);return ke(c)?c.then(u=>({aliases:n.parsed.aliases,innerArgv:u})):{aliases:n.parsed.aliases,innerArgv:c}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,r){let n=co.test(r.original)?r.original.replace(co,"").trim():r.original,i=t.filter(s=>!co.test(s));return i.push(n),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,r,n,i,s,a,c,u){if(!a.getInternalMethods().getHasOutput()){let l=a.getInternalMethods().runValidation(s,u,a.parsed.error,t);n=fi(n,p=>(l(p),p))}if(r.handler&&!a.getInternalMethods().getHasOutput()){a.getInternalMethods().setHasOutput();let l=!!a.getOptions().configuration["populate--"];a.getInternalMethods().postProcess(n,l,!1,!1),n=li(n,a,c,!1),n=fi(n,p=>{let f=r.handler(p);return ke(f)?f.then(()=>p):p}),t||a.getInternalMethods().getUsageInstance().cacheHelpMessage(),ke(n)&&!a.getInternalMethods().hasParseCallback()&&n.catch(p=>{try{a.getInternalMethods().getUsageInstance().fail(null,p)}catch{}})}return t||(i.commands.pop(),i.fullCommands.pop()),n}applyMiddlewareAndGetResult(t,r,n,i,s,a,c){let u={};if(s)return n;c.getInternalMethods().getHasOutput()||(u=this.populatePositionals(r,n,i,c));let l=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),p=li(n,c,l,!0);return ke(p)?p.then(f=>this.handleValidationAndGetResult(t,r,f,i,a,c,l,u)):this.handleValidationAndGetResult(t,r,p,i,a,c,l,u)}populatePositionals(t,r,n,i){r._=r._.slice(n.commands.length);let s=t.demanded.slice(0),a=t.optional.slice(0),c={};for(this.validation.positionalCount(s.length,r._.length);s.length;){let u=s.shift();this.populatePositional(u,r,c)}for(;a.length;){let u=a.shift();this.populatePositional(u,r,c)}return r._=n.commands.concat(r._.map(u=>""+u)),this.postProcessPositionals(r,c,this.cmdToParseOptions(t.original),i),c}populatePositional(t,r,n){let i=t.cmd[0];t.variadic?n[i]=r._.splice(0).map(String):r._.length&&(n[i]=[String(r._.shift())])}cmdToParseOptions(t){let r={array:[],default:{},alias:{},demand:{}},n=On(t);return n.demanded.forEach(i=>{let[s,...a]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=a,r.demand[s]=!0}),n.optional.forEach(i=>{let[s,...a]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=a}),r}postProcessPositionals(t,r,n,i){let s=Object.assign({},i.getOptions());s.default=Object.assign(n.default,s.default);for(let l of Object.keys(n.alias))s.alias[l]=(s.alias[l]||[]).concat(n.alias[l]);s.array=s.array.concat(n.array),s.config={};let a=[];if(Object.keys(r).forEach(l=>{r[l].map(p=>{s.configuration["unknown-options-as-args"]&&(s.key[l]=!0),a.push(`--${l}`),a.push(p)})}),!a.length)return;let c=Object.assign({},s.configuration,{"populate--":!1}),u=this.shim.Parser.detailed(a,Object.assign({},s,{configuration:c}));if(u.error)i.getInternalMethods().getUsageInstance().fail(u.error.message,u.error);else{let l=Object.keys(r);Object.keys(r).forEach(p=>{l.push(...u.aliases[p])}),Object.keys(u.argv).forEach(p=>{l.includes(p)&&(r[p]||(r[p]=u.argv[p]),!this.isInConfigs(i,p)&&!this.isDefaulted(i,p)&&Object.prototype.hasOwnProperty.call(t,p)&&Object.prototype.hasOwnProperty.call(u.argv,p)&&(Array.isArray(t[p])||Array.isArray(u.argv[p]))?t[p]=[].concat(t[p],u.argv[p]):t[p]=u.argv[p])})}}isDefaulted(t,r){let{default:n}=t.getOptions();return Object.prototype.hasOwnProperty.call(n,r)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(r))}isInConfigs(t,r){let{configObjects:n}=t.getOptions();return n.some(i=>Object.prototype.hasOwnProperty.call(i,r))||n.some(i=>Object.prototype.hasOwnProperty.call(i,this.shim.Parser.camelCase(r)))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){let n=co.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(n,this.defaultCommand.description)}let r=this.defaultCommand.builder;if(pc(r))return r(t,!0);yy(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=af(t);if(!r)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);return this.commandFromFilename(r.filename)}commandFromFilename(t){return this.shim.path.basename(t,this.shim.path.extname(t))}extractDesc({describe:t,description:r,desc:n}){for(let i of[t,r,n]){if(typeof i=="string"||i===!1)return i;wt(i,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){let t=this.frozens.pop();wt(t,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};o(uf,"CommandInstance");var cf=uf;function by(e,t,r,n){return new cf(e,t,r,n)}o(by,"command");function yy(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}o(yy,"isCommandBuilderDefinition");function O$(e){return e.every(t=>typeof t=="string")}o(O$,"isCommandAndAliases");function pc(e){return typeof e=="function"}o(pc,"isCommandBuilderCallback");function P$(e){return typeof e=="object"}o(P$,"isCommandBuilderOptionDefinitions");function x$(e){return typeof e=="object"&&!Array.isArray(e)}o(x$,"isCommandHandlerDefinition");function Pn(e={},t=()=>!0){let r={};return ao(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}o(Pn,"objFilter");function xn(e){typeof process>"u"||[process.stdout,process.stderr].forEach(t=>{let r=t;r._handle&&r.isTTY&&typeof r._handle.setBlocking=="function"&&r._handle.setBlocking(e)})}o(xn,"setBlocking");function $$(e){return typeof e=="boolean"}o($$,"isBoolean");function Sy(e,t){let r=t.y18n.__,n={},i=[];n.failFn=o(function(R){i.push(R)},"failFn");let s=null,a=null,c=!0;n.showHelpOnFail=o(function(R=!0,q){let[Q,ue]=typeof R=="string"?[!0,R]:[R,q];return e.getInternalMethods().isGlobalContext()&&(a=ue),s=ue,c=Q,n},"showHelpOnFailFn");let u=!1;n.fail=o(function(R,q){let Q=e.getInternalMethods().getLoggerInstance();if(i.length)for(let ue=i.length-1;ue>=0;--ue){let ve=i[ue];if($$(ve)){if(q)throw q;if(R)throw Error(R)}else ve(R,q,n)}else{if(e.getExitProcess()&&xn(!0),!u){u=!0,c&&(e.showHelp("error"),Q.error()),(R||q)&&Q.error(R||q);let ue=s||a;ue&&((R||q)&&Q.error(""),Q.error(ue))}if(q=q||new Me(R),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,q);throw q}},"fail");let l=[],p=!1;n.usage=(M,R)=>M===null?(p=!0,l=[],n):(p=!1,l.push([M,R||""]),n),n.getUsage=()=>l,n.getUsageDisabled=()=>p,n.getPositionalGroupName=()=>r("Positionals:");let f=[];n.example=(M,R)=>{f.push([M,R||""])};let d=[];n.command=o(function(R,q,Q,ue,ve=!1){Q&&(d=d.map(ge=>(ge[2]=!1,ge))),d.push([R,q||"",Q,ue,ve])},"command"),n.getCommands=()=>d;let h={};n.describe=o(function(R,q){Array.isArray(R)?R.forEach(Q=>{n.describe(Q,q)}):typeof R=="object"?Object.keys(R).forEach(Q=>{n.describe(Q,R[Q])}):h[R]=q},"describe"),n.getDescriptions=()=>h;let y=[];n.epilog=M=>{y.push(M)};let b=!1,g;n.wrap=M=>{b=!0,g=M},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(b||(g=Ze(),b=!0),g);let P="__yargsString__:";n.deferY18nLookup=M=>P+M,n.help=o(function(){if(T)return T;C();let R=e.customScriptName?e.$0:t.path.basename(e.$0),q=e.getDemandedOptions(),Q=e.getDemandedCommands(),ue=e.getDeprecatedOptions(),ve=e.getGroups(),ge=e.getOptions(),We=[];We=We.concat(Object.keys(h)),We=We.concat(Object.keys(q)),We=We.concat(Object.keys(Q)),We=We.concat(Object.keys(ge.default)),We=We.filter(K),We=Object.keys(We.reduce((ee,Te)=>(Te!=="_"&&(ee[Te]=!0),ee),{}));let qr=n.getWrap(),Ce=t.cliui({width:qr,wrap:!!qr});if(!p){if(l.length)l.forEach(ee=>{Ce.div({text:`${ee[0].replace(/\$0/g,R)}`}),ee[1]&&Ce.div({text:`${ee[1]}`,padding:[1,0,0,0]})}),Ce.div();else if(d.length){let ee=null;Q._?ee=`${R} <${r("command")}>
79
- `:ee=`${R} [${r("command")}]
80
- `,Ce.div(`${ee}`)}}if(d.length>1||d.length===1&&!d[0][2]){Ce.div(r("Commands:"));let ee=e.getInternalMethods().getContext(),Te=ee.commands.length?`${ee.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(d=d.sort((pe,_e)=>pe[0].localeCompare(_e[0])));let Ne=R?`${R} `:"";d.forEach(pe=>{let _e=`${Ne}${Te}${pe[0].replace(/^\$0 ?/,"")}`;Ce.span({text:_e,padding:[0,2,0,2],width:$(d,qr,`${R}${Te}`)+4},{text:pe[1]});let He=[];pe[2]&&He.push(`[${r("default")}]`),pe[3]&&pe[3].length&&He.push(`[${r("aliases:")} ${pe[3].join(", ")}]`),pe[4]&&(typeof pe[4]=="string"?He.push(`[${r("deprecated: %s",pe[4])}]`):He.push(`[${r("deprecated")}]`)),He.length?Ce.div({text:He.join(" "),padding:[0,0,0,2],align:"right"}):Ce.div()}),Ce.div()}let rr=(Object.keys(ge.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);We=We.filter(ee=>!e.parsed.newAliases[ee]&&rr.every(Te=>(ge.alias[Te]||[]).indexOf(ee)===-1));let Y=r("Options:");ve[Y]||(ve[Y]=[]),A(We,ge.alias,ve,Y);let Mt=o(ee=>/^--/.test(dc(ee)),"isLongSwitch"),ne=Object.keys(ve).filter(ee=>ve[ee].length>0).map(ee=>{let Te=ve[ee].filter(K).map(Ne=>{if(rr.includes(Ne))return Ne;for(let pe=0,_e;(_e=rr[pe])!==void 0;pe++)if((ge.alias[_e]||[]).includes(Ne))return _e;return Ne});return{groupName:ee,normalizedKeys:Te}}).filter(({normalizedKeys:ee})=>ee.length>0).map(({groupName:ee,normalizedKeys:Te})=>{let Ne=Te.reduce((pe,_e)=>(pe[_e]=[_e].concat(ge.alias[_e]||[]).map(He=>ee===n.getPositionalGroupName()?He:(/^[0-9]$/.test(He)?ge.boolean.includes(_e)?"-":"--":He.length>1?"--":"-")+He).sort((He,ut)=>Mt(He)===Mt(ut)?0:Mt(He)?1:-1).join(", "),pe),{});return{groupName:ee,normalizedKeys:Te,switches:Ne}});if(ne.filter(({groupName:ee})=>ee!==n.getPositionalGroupName()).some(({normalizedKeys:ee,switches:Te})=>!ee.every(Ne=>Mt(Te[Ne])))&&ne.filter(({groupName:ee})=>ee!==n.getPositionalGroupName()).forEach(({normalizedKeys:ee,switches:Te})=>{ee.forEach(Ne=>{Mt(Te[Ne])&&(Te[Ne]=w$(Te[Ne],4))})}),ne.forEach(({groupName:ee,normalizedKeys:Te,switches:Ne})=>{Ce.div(ee),Te.forEach(pe=>{let _e=Ne[pe],He=h[pe]||"",ut=null;He.includes(P)&&(He=r(He.substring(P.length))),ge.boolean.includes(pe)&&(ut=`[${r("boolean")}]`),ge.count.includes(pe)&&(ut=`[${r("count")}]`),ge.string.includes(pe)&&(ut=`[${r("string")}]`),ge.normalize.includes(pe)&&(ut=`[${r("string")}]`),ge.array.includes(pe)&&(ut=`[${r("array")}]`),ge.number.includes(pe)&&(ut=`[${r("number")}]`);let kt=o(O=>typeof O=="string"?`[${r("deprecated: %s",O)}]`:`[${r("deprecated")}]`,"deprecatedExtra"),io=[pe in ue?kt(ue[pe]):null,ut,pe in q?`[${r("required")}]`:null,ge.choices&&ge.choices[pe]?`[${r("choices:")} ${n.stringifiedValues(ge.choices[pe])}]`:null,X(ge.default[pe],ge.defaultDescription[pe])].filter(Boolean).join(" ");Ce.span({text:dc(_e),padding:[0,2,0,2+_y(_e)],width:$(Ne,qr)+4},He);let _=e.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;io&&!_?Ce.div({text:io,padding:[0,0,0,2],align:"right"}):Ce.div()}),Ce.div()}),f.length&&(Ce.div(r("Examples:")),f.forEach(ee=>{ee[0]=ee[0].replace(/\$0/g,R)}),f.forEach(ee=>{ee[1]===""?Ce.div({text:ee[0],padding:[0,2,0,2]}):Ce.div({text:ee[0],padding:[0,2,0,2],width:$(f,qr)+4},{text:ee[1]})}),Ce.div()),y.length>0){let ee=y.map(Te=>Te.replace(/\$0/g,R)).join(`
81
- `);Ce.div(`${ee}
82
- `)}return Ce.toString().replace(/\s*$/,"")},"help");function $(M,R,q){let Q=0;return Array.isArray(M)||(M=Object.values(M).map(ue=>[ue])),M.forEach(ue=>{Q=Math.max(t.stringWidth(q?`${q} ${dc(ue[0])}`:dc(ue[0]))+_y(ue[0]),Q)}),R&&(Q=Math.min(Q,parseInt((R*.5).toString(),10))),Q}o($,"maxWidth");function C(){let M=e.getDemandedOptions(),R=e.getOptions();(Object.keys(R.alias)||[]).forEach(q=>{R.alias[q].forEach(Q=>{h[Q]&&n.describe(q,h[Q]),Q in M&&e.demandOption(q,M[Q]),R.boolean.includes(Q)&&e.boolean(q),R.count.includes(Q)&&e.count(q),R.string.includes(Q)&&e.string(q),R.normalize.includes(Q)&&e.normalize(q),R.array.includes(Q)&&e.array(q),R.number.includes(Q)&&e.number(q)})})}o(C,"normalizeAliases");let T;n.cacheHelpMessage=function(){T=this.help()},n.clearCachedHelpMessage=function(){T=void 0},n.hasCachedHelpMessage=function(){return!!T};function A(M,R,q,Q){let ue=[],ve=null;return Object.keys(q).forEach(ge=>{ue=ue.concat(q[ge])}),M.forEach(ge=>{ve=[ge].concat(R[ge]),ve.some(We=>ue.indexOf(We)!==-1)||q[Q].push(ge)}),ue}o(A,"addUngroupedKeys");function K(M){return e.getOptions().hiddenOptions.indexOf(M)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}o(K,"filterHiddenOptions"),n.showHelp=M=>{let R=e.getInternalMethods().getLoggerInstance();M||(M="error"),(typeof M=="function"?M:R[M])(n.help())},n.functionDescription=M=>["(",M.name?t.Parser.decamelize(M.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=o(function(R,q){let Q="",ue=q||", ",ve=[].concat(R);return!R||!ve.length||ve.forEach(ge=>{Q.length&&(Q+=ue),Q+=JSON.stringify(ge)}),Q},"stringifiedValues");function X(M,R){let q=`[${r("default:")} `;if(M===void 0&&!R)return null;if(R)q+=R;else switch(typeof M){case"string":q+=`"${M}"`;break;case"object":q+=JSON.stringify(M);break;default:q+=M}return`${q}]`}o(X,"defaultString");function Ze(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}o(Ze,"windowWidth");let Ie=null;n.version=M=>{Ie=M},n.showVersion=M=>{let R=e.getInternalMethods().getLoggerInstance();M||(M="error"),(typeof M=="function"?M:R[M])(Ie)},n.reset=o(function(R){return s=null,u=!1,l=[],p=!1,y=[],f=[],d=[],h=Pn(h,q=>!R[q]),n},"reset");let re=[];return n.freeze=o(function(){re.push({failMessage:s,failureOutput:u,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h})},"freeze"),n.unfreeze=o(function(R=!1){let q=re.pop();q&&(R?(h={...q.descriptions,...h},d=[...q.commands,...d],l=[...q.usages,...l],f=[...q.examples,...f],y=[...q.epilogs,...y]):{failMessage:s,failureOutput:u,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h}=q)},"unfreeze"),n}o(Sy,"usage");function lf(e){return typeof e=="object"}o(lf,"isIndentedText");function w$(e,t){return lf(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}o(w$,"addIndentation");function _y(e){return lf(e)?e.indentation:0}o(_y,"getIndentation");function dc(e){return lf(e)?e.text:e}o(dc,"getText");var Ey=`###-begin-{{app_name}}-completions-###
77
+ `),s.border&&(i.unshift("."+"-".repeat(this.negatePadding(s)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(s)+2)+"'")),s.padding&&(i.unshift(...new Array(s.padding[m$]||0).fill("")),i.push(...new Array(s.padding[g$]||0).fill(""))),i.forEach((c,u)=>{r[u]||r.push([]);let l=r[u];for(let p=0;p<a;p++)l[p]===void 0&&l.push("");l.push(c)})}),r}negatePadding(t){let r=t.width||0;return t.padding&&(r-=(t.padding[sc]||0)+(t.padding[oc]||0)),t.border&&(r-=4),r}columnWidths(t){if(!this.wrap)return t.map(a=>a.width||Gt.stringWidth(a.text));let r=t.length,n=this.width,i=t.map(a=>{if(a.width)return r--,n-=a.width,a.width}),s=r?Math.floor(n/r):0;return i.map((a,c)=>a===void 0?Math.max(s,y$(t[c])):a)}};o(Ql,"UI");var Yl=Ql;function Xg(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?r:" ":""}o(Xg,"addBorder");function y$(e){let t=e.padding||[],r=1+(t[sc]||0)+(t[oc]||0);return e.border?r+4:r}o(y$,"_minWidth");function b$(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}o(b$,"getWindowWidth");function v$(e,t){e=e.trim();let r=Gt.stringWidth(e);return r<t?" ".repeat(t-r)+e:e}o(v$,"alignRight");function _$(e,t){e=e.trim();let r=Gt.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}o(_$,"alignCenter");var Gt;function ey(e,t){return Gt=t,new Yl({width:(e==null?void 0:e.width)||b$(),wrap:e==null?void 0:e.wrap})}o(ey,"cliui");var ty=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function Jl(e){return e.replace(ty,"")}o(Jl,"stripAnsi");function ry(e,t){let[r,n]=e.match(ty)||["",""];e=Jl(e);let i="";for(let s=0;s<e.length;s++)s!==0&&s%t===0&&(i+=`
78
+ `),i+=e.charAt(s);return r&&n&&(i=`${r}${i}${n}`),i}o(ry,"wrap");function Xl(e){return ey(e,{stringWidth:o(t=>[...t].length,"stringWidth"),stripAnsi:Jl,wrap:ry})}o(Xl,"ui");var uo=require("path"),ac=require("fs");function ef(e,t){let r=(0,uo.resolve)(".",e),n;for((0,ac.statSync)(r).isDirectory()||(r=(0,uo.dirname)(r));;){if(n=t(r,(0,ac.readdirSync)(r)),n)return(0,uo.resolve)(r,n);if(r=(0,uo.dirname)(n=r),n===r)break}}o(ef,"default");var by=require("util"),vy=require("fs"),_y=require("url");var ay=require("util"),fc=require("path");function pi(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,i=e.match(/^-+/);for(let s=i?i[0].length:0;s<e.length;s++){let a=e.charAt(s);n&&(n=!1,a=a.toUpperCase()),s!==0&&(a==="-"||a==="_")?n=!0:a!=="-"&&a!=="_"&&(r+=a)}return r}}o(pi,"camelCase");function cc(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let s=r.charAt(i),a=e.charAt(i);s!==a&&i>0?n+=`${t}${r.charAt(i)}`:n+=a}return n}o(cc,"decamelize");function uc(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}o(uc,"looksLikeNumber");function ny(e){if(Array.isArray(e))return e.map(a=>typeof a!="string"?a+"":a);e=e.trim();let t=0,r=null,n=null,i=null,s=[];for(let a=0;a<e.length;a++){if(r=n,n=e.charAt(a),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),s[t]||(s[t]=""),s[t]+=n}return s}o(ny,"tokenizeArgString");var ir;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(ir||(ir={}));var fn,rf=class rf{constructor(t){fn=t}parse(t,r){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},r),i=ny(t),s=typeof t=="string",a=S$(Object.assign(Object.create(null),n.alias)),c=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),u=Object.assign(Object.create(null),n.default),l=n.configObjects||[],p=n.envPrefix,f=c["populate--"],d=f?"--":"_",h=Object.create(null),y=Object.create(null),b=n.__||fn.format,g={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},P=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,$=new RegExp("^--"+c["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(_){let O=typeof _=="object"?_.key:_,N=Object.keys(_).map(function(w){return{boolean:"bools",string:"strings",number:"numbers"}[w]}).filter(Boolean).pop();N&&(g[N][O]=!0),g.arrays[O]=!0,g.keys.push(O)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(_){g.bools[_]=!0,g.keys.push(_)}),[].concat(n.string||[]).filter(Boolean).forEach(function(_){g.strings[_]=!0,g.keys.push(_)}),[].concat(n.number||[]).filter(Boolean).forEach(function(_){g.numbers[_]=!0,g.keys.push(_)}),[].concat(n.count||[]).filter(Boolean).forEach(function(_){g.counts[_]=!0,g.keys.push(_)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(_){g.normalize[_]=!0,g.keys.push(_)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([_,O])=>{typeof O=="number"&&(g.nargs[_]=O,g.keys.push(_))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([_,O])=>{typeof O=="function"&&(g.coercions[_]=O,g.keys.push(_))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(_){g.configs[_]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([_,O])=>{(typeof O=="boolean"||typeof O=="function")&&(g.configs[_]=O)})),Dt(n.key,a,n.default,g.arrays),Object.keys(u).forEach(function(_){(g.aliases[_]||[]).forEach(function(O){u[O]=u[_]})});let C=null;co();let T=[],A=Object.assign(Object.create(null),{_:[]}),te={};for(let _=0;_<i.length;_++){let O=i[_],N=O.replace(/^-{3,}/,"---"),w,E,H,k,z,nt;if(O!=="--"&&/^-/.test(O)&&je(O))J(O);else if(N.match(/^---+(=|$)/)){J(O);continue}else if(O.match(/^--.+=/)||!c["short-option-groups"]&&O.match(/^-.+=/))k=O.match(/^--?([^=]+)=([\s\S]*)$/),k!==null&&Array.isArray(k)&&k.length>=3&&(ne(k[1],g.arrays)?_=Ae(_,k[1],i,k[2]):ne(k[1],g.nargs)!==!1?_=Ee(_,k[1],i,k[2]):re(k[1],k[2],!0));else if(O.match($)&&c["boolean-negation"])k=O.match($),k!==null&&Array.isArray(k)&&k.length>=2&&(E=k[1],re(E,ne(E,g.arrays)?[!1]:!1));else if(O.match(/^--.+/)||!c["short-option-groups"]&&O.match(/^-[^-]+/))k=O.match(/^--?(.+)/),k!==null&&Array.isArray(k)&&k.length>=2&&(E=k[1],ne(E,g.arrays)?_=Ae(_,E,i):ne(E,g.nargs)!==!1?_=Ee(_,E,i):(z=i[_+1],z!==void 0&&(!z.match(/^-/)||z.match(P))&&!ne(E,g.bools)&&!ne(E,g.counts)||/^(true|false)$/.test(z)?(re(E,z),_++):re(E,_e(E))));else if(O.match(/^-.\..+=/))k=O.match(/^-([^=]+)=([\s\S]*)$/),k!==null&&Array.isArray(k)&&k.length>=3&&re(k[1],k[2]);else if(O.match(/^-.\..+/)&&!O.match(P))z=i[_+1],k=O.match(/^-(.\..+)/),k!==null&&Array.isArray(k)&&k.length>=2&&(E=k[1],z!==void 0&&!z.match(/^-/)&&!ne(E,g.bools)&&!ne(E,g.counts)?(re(E,z),_++):re(E,_e(E)));else if(O.match(/^-[^-]+/)&&!O.match(P)){H=O.slice(1,-1).split(""),w=!1;for(let ht=0;ht<H.length;ht++){if(z=O.slice(ht+2),H[ht+1]&&H[ht+1]==="="){nt=O.slice(ht+3),E=H[ht],ne(E,g.arrays)?_=Ae(_,E,i,nt):ne(E,g.nargs)!==!1?_=Ee(_,E,i,nt):re(E,nt),w=!0;break}if(z==="-"){re(H[ht],z);continue}if(/[A-Za-z]/.test(H[ht])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(z)&&ne(z,g.bools)===!1){re(H[ht],z),w=!0;break}if(H[ht+1]&&H[ht+1].match(/\W/)){re(H[ht],z),w=!0;break}else re(H[ht],_e(H[ht]))}E=O.slice(-1)[0],!w&&E!=="-"&&(ne(E,g.arrays)?_=Ae(_,E,i):ne(E,g.nargs)!==!1?_=Ee(_,E,i):(z=i[_+1],z!==void 0&&(!/^(-|--)[^-]/.test(z)||z.match(P))&&!ne(E,g.bools)&&!ne(E,g.counts)||/^(true|false)$/.test(z)?(re(E,z),_++):re(E,_e(E))))}else if(O.match(/^-[0-9]$/)&&O.match(P)&&ne(O.slice(1),g.bools))E=O.slice(1),re(E,_e(E));else if(O==="--"){T=i.slice(_+1);break}else if(c["halt-at-non-option"]){T=i.slice(_);break}else J(O)}ge(A,!0),ge(A,!1),Y(A),ve(),Te(A,g.aliases,u,!0),We(A),c["set-placeholder-key"]&&Lr(A),Object.keys(g.counts).forEach(function(_){nr(A,_.split("."))||re(_,0)}),f&&T.length&&(A[d]=[]),T.forEach(function(_){A[d].push(_)}),c["camel-case-expansion"]&&c["strip-dashed"]&&Object.keys(A).filter(_=>_!=="--"&&_.includes("-")).forEach(_=>{delete A[_]}),c["strip-aliased"]&&[].concat(...Object.keys(a).map(_=>a[_])).forEach(_=>{c["camel-case-expansion"]&&_.includes("-")&&delete A[_.split(".").map(O=>pi(O)).join(".")],delete A[_]});function J(_){let O=q("_",_);(typeof O=="string"||typeof O=="number")&&A._.push(O)}o(J,"pushPositional");function Ee(_,O,N,w){let E,H=ne(O,g.nargs);if(H=typeof H!="number"||isNaN(H)?1:H,H===0)return Lt(w)||(C=Error(b("Argument unexpected for: %s",O))),re(O,_e(O)),_;let k=Lt(w)?0:1;if(c["nargs-eats-options"])N.length-(_+1)+k<H&&(C=Error(b("Not enough arguments following: %s",O))),k=H;else{for(E=_+1;E<N.length&&(!N[E].match(/^-[^0-9]/)||N[E].match(P)||je(N[E]));E++)k++;k<H&&(C=Error(b("Not enough arguments following: %s",O)))}let z=Math.min(k,H);for(!Lt(w)&&z>0&&(re(O,w),z--),E=_+1;E<z+_+1;E++)re(O,N[E]);return _+z}o(Ee,"eatNargs");function Ae(_,O,N,w){let E=[],H=w||N[_+1],k=ne(O,g.nargs);if(ne(O,g.bools)&&!/^(true|false)$/.test(H))E.push(!0);else if(Lt(H)||Lt(w)&&/^-/.test(H)&&!P.test(H)&&!je(H)){if(u[O]!==void 0){let z=u[O];E=Array.isArray(z)?z:[z]}}else{Lt(w)||E.push(R(O,w,!0));for(let z=_+1;z<N.length&&!(!c["greedy-arrays"]&&E.length>0||k&&typeof k=="number"&&E.length>=k||(H=N[z],/^-/.test(H)&&!P.test(H)&&!je(H)));z++)_=z,E.push(R(O,H,s))}return typeof k=="number"&&(k&&E.length<k||isNaN(k)&&E.length===0)&&(C=Error(b("Not enough arguments following: %s",O))),re(O,E),_}o(Ae,"eatArray");function re(_,O,N=s){if(/-/.test(_)&&c["camel-case-expansion"]){let H=_.split(".").map(function(k){return pi(k)}).join(".");M(_,H)}let w=R(_,O,N),E=_.split(".");K(A,E,w),g.aliases[_]&&g.aliases[_].forEach(function(H){let k=H.split(".");K(A,k,w)}),E.length>1&&c["dot-notation"]&&(g.aliases[E[0]]||[]).forEach(function(H){let k=H.split("."),z=[].concat(E);z.shift(),k=k.concat(z),(g.aliases[_]||[]).includes(k.join("."))||K(A,k,w)}),ne(_,g.normalize)&&!ne(_,g.arrays)&&[_].concat(g.aliases[_]||[]).forEach(function(k){Object.defineProperty(te,k,{enumerable:!0,get(){return O},set(z){O=typeof z=="string"?fn.normalize(z):z}})})}o(re,"setArg");function M(_,O){g.aliases[_]&&g.aliases[_].length||(g.aliases[_]=[O],h[O]=!0),g.aliases[O]&&g.aliases[O].length||M(O,_)}o(M,"addNewAlias");function R(_,O,N){N&&(O=E$(O)),(ne(_,g.bools)||ne(_,g.counts))&&typeof O=="string"&&(O=O==="true");let w=Array.isArray(O)?O.map(function(E){return q(_,E)}):q(_,O);return ne(_,g.counts)&&(Lt(w)||typeof w=="boolean")&&(w=tf()),ne(_,g.normalize)&&ne(_,g.arrays)&&(Array.isArray(O)?w=O.map(E=>fn.normalize(E)):w=fn.normalize(O)),w}o(R,"processValue");function q(_,O){return!c["parse-positional-numbers"]&&_==="_"||!ne(_,g.strings)&&!ne(_,g.bools)&&!Array.isArray(O)&&(uc(O)&&c["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${O}`)))||!Lt(O)&&ne(_,g.numbers))&&(O=Number(O)),O}o(q,"maybeCoerceNumber");function Y(_){let O=Object.create(null);Te(O,g.aliases,u),Object.keys(g.configs).forEach(function(N){let w=_[N]||O[N];if(w)try{let E=null,H=fn.resolve(fn.cwd(),w),k=g.configs[N];if(typeof k=="function"){try{E=k(H)}catch(z){E=z}if(E instanceof Error){C=E;return}}else E=fn.require(H);ue(E)}catch(E){E.name==="PermissionDenied"?C=E:_[N]&&(C=Error(b("Invalid JSON config file: %s",w)))}})}o(Y,"setConfig");function ue(_,O){Object.keys(_).forEach(function(N){let w=_[N],E=O?O+"."+N:N;typeof w=="object"&&w!==null&&!Array.isArray(w)&&c["dot-notation"]?ue(w,E):(!nr(A,E.split("."))||ne(E,g.arrays)&&c["combine-arrays"])&&re(E,w)})}o(ue,"setConfigObject");function ve(){typeof l<"u"&&l.forEach(function(_){ue(_)})}o(ve,"setConfigObjects");function ge(_,O){if(typeof p>"u")return;let N=typeof p=="string"?p:"",w=fn.env();Object.keys(w).forEach(function(E){if(N===""||E.lastIndexOf(N,0)===0){let H=E.split("__").map(function(k,z){return z===0&&(k=k.substring(N.length)),pi(k)});(O&&g.configs[H.join(".")]||!O)&&!nr(_,H)&&re(H.join("."),w[E])}})}o(ge,"applyEnvVars");function We(_){let O,N=new Set;Object.keys(_).forEach(function(w){if(!N.has(w)&&(O=ne(w,g.coercions),typeof O=="function"))try{let E=q(w,O(_[w]));[].concat(g.aliases[w]||[],w).forEach(H=>{N.add(H),_[H]=E})}catch(E){C=E}})}o(We,"applyCoercions");function Lr(_){return g.keys.forEach(O=>{~O.indexOf(".")||typeof _[O]>"u"&&(_[O]=void 0)}),_}o(Lr,"setPlaceholderKeys");function Te(_,O,N,w=!1){Object.keys(N).forEach(function(E){nr(_,E.split("."))||(K(_,E.split("."),N[E]),w&&(y[E]=!0),(O[E]||[]).forEach(function(H){nr(_,H.split("."))||K(_,H.split("."),N[E])}))})}o(Te,"applyDefaultsAndAliases");function nr(_,O){let N=_;c["dot-notation"]||(O=[O.join(".")]),O.slice(0,-1).forEach(function(E){N=N[E]||{}});let w=O[O.length-1];return typeof N!="object"?!1:w in N}o(nr,"hasKey");function K(_,O,N){let w=_;c["dot-notation"]||(O=[O.join(".")]),O.slice(0,-1).forEach(function(nt){nt=iy(nt),typeof w=="object"&&w[nt]===void 0&&(w[nt]={}),typeof w[nt]!="object"||Array.isArray(w[nt])?(Array.isArray(w[nt])?w[nt].push({}):w[nt]=[w[nt],{}],w=w[nt][w[nt].length-1]):w=w[nt]});let E=iy(O[O.length-1]),H=ne(O.join("."),g.arrays),k=Array.isArray(N),z=c["duplicate-arguments-array"];!z&&ne(E,g.nargs)&&(z=!0,(!Lt(w[E])&&g.nargs[E]===1||Array.isArray(w[E])&&w[E].length===g.nargs[E])&&(w[E]=void 0)),N===tf()?w[E]=tf(w[E]):Array.isArray(w[E])?z&&H&&k?w[E]=c["flatten-duplicate-arrays"]?w[E].concat(N):(Array.isArray(w[E][0])?w[E]:[w[E]]).concat([N]):!z&&!!H==!!k?w[E]=N:w[E]=w[E].concat([N]):w[E]===void 0&&H?w[E]=k?N:[N]:z&&!(w[E]===void 0||ne(E,g.counts)||ne(E,g.bools))?w[E]=[w[E],N]:w[E]=N}o(K,"setKey");function Dt(..._){_.forEach(function(O){Object.keys(O||{}).forEach(function(N){g.aliases[N]||(g.aliases[N]=[].concat(a[N]||[]),g.aliases[N].concat(N).forEach(function(w){if(/-/.test(w)&&c["camel-case-expansion"]){let E=pi(w);E!==N&&g.aliases[N].indexOf(E)===-1&&(g.aliases[N].push(E),h[E]=!0)}}),g.aliases[N].concat(N).forEach(function(w){if(w.length>1&&/[A-Z]/.test(w)&&c["camel-case-expansion"]){let E=cc(w,"-");E!==N&&g.aliases[N].indexOf(E)===-1&&(g.aliases[N].push(E),h[E]=!0)}}),g.aliases[N].forEach(function(w){g.aliases[w]=[N].concat(g.aliases[N].filter(function(E){return w!==E}))}))})})}o(Dt,"extendAliases");function ne(_,O){let N=[].concat(g.aliases[_]||[],_),w=Object.keys(O),E=N.find(H=>w.includes(H));return E?O[E]:!1}o(ne,"checkAllAliases");function Ne(_){let O=Object.keys(g);return[].concat(O.map(w=>g[w])).some(function(w){return Array.isArray(w)?w.includes(_):w[_]})}o(Ne,"hasAnyFlag");function X(_,...O){return[].concat(...O).some(function(w){let E=_.match(w);return E&&Ne(E[1])})}o(X,"hasFlagsMatching");function Re(_){if(_.match(P)||!_.match(/^-[^-]+/))return!1;let O=!0,N,w=_.slice(1).split("");for(let E=0;E<w.length;E++){if(N=_.slice(E+2),!Ne(w[E])){O=!1;break}if(w[E+1]&&w[E+1]==="="||N==="-"||/[A-Za-z]/.test(w[E])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(N)||w[E+1]&&w[E+1].match(/\W/))break}return O}o(Re,"hasAllShortFlags");function je(_){return c["unknown-options-as-args"]&&pe(_)}o(je,"isUnknownOptionAsArg");function pe(_){return _=_.replace(/^-{3,}/,"--"),_.match(P)||Re(_)?!1:!X(_,/^-+([^=]+?)=[\s\S]*$/,$,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}o(pe,"isUnknownOption");function _e(_){return!ne(_,g.bools)&&!ne(_,g.counts)&&`${_}`in u?u[_]:Ve(ut(_))}o(_e,"defaultValue");function Ve(_){return{[ir.BOOLEAN]:!0,[ir.STRING]:"",[ir.NUMBER]:void 0,[ir.ARRAY]:[]}[_]}o(Ve,"defaultForType");function ut(_){let O=ir.BOOLEAN;return ne(_,g.strings)?O=ir.STRING:ne(_,g.numbers)?O=ir.NUMBER:ne(_,g.bools)?O=ir.BOOLEAN:ne(_,g.arrays)&&(O=ir.ARRAY),O}o(ut,"guessType");function Lt(_){return _===void 0}o(Lt,"isUndefined");function co(){Object.keys(g.counts).find(_=>ne(_,g.arrays)?(C=Error(b("Invalid configuration: %s, opts.count excludes opts.array.",_)),!0):ne(_,g.nargs)?(C=Error(b("Invalid configuration: %s, opts.count excludes opts.narg.",_)),!0):!1)}return o(co,"checkConfiguration"),{aliases:Object.assign({},g.aliases),argv:Object.assign(te,A),configuration:c,defaulted:Object.assign({},y),error:C,newAliases:Object.assign({},h)}}};o(rf,"YargsParser");var lc=rf;function S$(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});n;){n=!1;for(let i=0;i<t.length;i++)for(let s=i+1;s<t.length;s++)if(t[i].filter(function(c){return t[s].indexOf(c)!==-1}).length){t[i]=t[i].concat(t[s]),t.splice(s,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(a,c,u){return u.indexOf(a)===c});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}o(S$,"combineAliases");function tf(e){return e!==void 0?e+1:1}o(tf,"increment");function iy(e){return e==="__proto__"?"___proto___":e}o(iy,"sanitizeKey");function E$(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}o(E$,"stripQuotes");var cy=require("fs");var nf,of,sf,oy=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,sy=(of=(nf=process==null?void 0:process.versions)===null||nf===void 0?void 0:nf.node)!==null&&of!==void 0?of:(sf=process==null?void 0:process.version)===null||sf===void 0?void 0:sf.slice(1);if(sy&&Number(sy.match(/^([^.]+)/)[1])<oy)throw Error(`yargs parser supports a minimum Node.js version of ${oy}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var O$=process?process.env:{},uy=new lc({cwd:process.cwd,env:o(()=>O$,"env"),format:ay.format,normalize:fc.normalize,resolve:fc.resolve,require:o(e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return JSON.parse((0,cy.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")},"require")}),Os=o(function(t,r){return uy.parse(t.slice(),r).argv},"Parser");Os.detailed=function(e,t){return uy.parse(e.slice(),t)};Os.camelCase=pi;Os.decamelize=cc;Os.looksLikeNumber=uc;var af=Os;var Or=require("path");function ly(){return P$()?0:1}o(ly,"getProcessArgvBinIndex");function P$(){return x$()&&!process.defaultApp}o(P$,"isBundledElectronApp");function x$(){return!!process.versions.electron}o(x$,"isElectronApp");function cf(e){return e.slice(ly()+1)}o(cf,"hideBin");function fy(){return process.argv[ly()]}o(fy,"getProcessArgvBin");var pc=class pc extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,pc)}};o(pc,"YError");var ke=pc;var lo=require("fs"),py=require("util"),dy=require("path");var hy={fs:{readFileSync:lo.readFileSync,writeFile:lo.writeFile},format:py.format,resolve:dy.resolve,exists:o(e=>{try{return(0,lo.statSync)(e).isFile()}catch{return!1}},"exists")};var Er,lf=class lf{constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles=typeof t.updateFiles=="boolean"?t.updateFiles:!0,this.locale=t.locale||"en",this.fallbackToLanguage=typeof t.fallbackToLanguage=="boolean"?t.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...t){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let r=t.shift(),n=o(function(){},"cb");return typeof t[t.length-1]=="function"&&(n=t.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]=r,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),Er.format.apply(Er.format,[this.cache[this.locale][r]||r].concat(t))}__n(){let t=Array.prototype.slice.call(arguments),r=t.shift(),n=t.shift(),i=t.shift(),s=o(function(){},"cb");typeof t[t.length-1]=="function"&&(s=t.pop()),this.cache[this.locale]||this._readLocaleFile();let a=i===1?r:n;this.cache[this.locale][r]&&(a=this.cache[this.locale][r][i===1?"one":"other"]),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]={one:r,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:s})):s();let c=[a];return~a.indexOf("%d")&&c.push(i),Er.format.apply(Er.format,c.concat(t))}setLocale(t){this.locale=t}getLocale(){return this.locale}updateLocale(t){this.cache[this.locale]||this._readLocaleFile();for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this.cache[this.locale][r]=t[r])}_taggedLiteral(t,...r){let n="";return t.forEach(function(i,s){let a=r[s+1];n+=i,typeof a<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(r,1)))}_enqueueWrite(t){this.writeQueue.push(t),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let t=this,r=this.writeQueue[0],n=r.directory,i=r.locale,s=r.cb,a=this._resolveLocaleFile(n,i),c=JSON.stringify(this.cache[i],null,2);Er.fs.writeFile(a,c,"utf-8",function(u){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),s(u)})}_readLocaleFile(){let t={},r=this._resolveLocaleFile(this.directory,this.locale);try{Er.fs.readFileSync&&(t=JSON.parse(Er.fs.readFileSync(r,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+r),n.code==="ENOENT")t={};else throw n}this.cache[this.locale]=t}_resolveLocaleFile(t,r){let n=Er.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=Er.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return Er.exists(t)}};o(lf,"Y18N");var uf=lf;function my(e,t){Er=t;let r=new uf(e);return{__:r.__.bind(r),__n:r.__n.bind(r),setLocale:r.setLocale.bind(r),getLocale:r.getLocale.bind(r),updateLocale:r.updateLocale.bind(r),locale:r.locale}}o(my,"y18n");var $$=o(e=>my(e,hy),"y18n"),gy=$$;var I$={};var w$="require is not supported by ESM",yy="loading a directory of commands is not supported yet for ESM",Ps;try{Ps=(0,_y.fileURLToPath)(I$.url)}catch{Ps=process.cwd()}var A$=Ps.substring(0,Ps.lastIndexOf("node_modules")),ff={assert:{notStrictEqual:dc.notStrictEqual,strictEqual:dc.strictEqual},cliui:Xl,findUp:ef,getEnv:o(e=>process.env[e],"getEnv"),inspect:by.inspect,getCallerFile:o(()=>{throw new ke(yy)},"getCallerFile"),getProcessArgvBin:fy,mainFilename:A$||process.cwd(),Parser:af,path:{basename:Or.basename,dirname:Or.dirname,extname:Or.extname,relative:Or.relative,resolve:Or.resolve},process:{argv:o(()=>process.argv,"argv"),cwd:process.cwd,emitWarning:o((e,t)=>process.emitWarning(e,t),"emitWarning"),execPath:o(()=>process.execPath,"execPath"),exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:vy.readFileSync,require:o(()=>{throw new ke(w$)},"require"),requireDirectory:o(()=>{throw new ke(yy)},"requireDirectory"),stringWidth:o(e=>[...e].length,"stringWidth"),y18n:gy({directory:(0,Or.resolve)(Ps,"../../../locales"),updateFiles:!1})};function At(e,t,r,n){r.assert.notStrictEqual(e,t,n)}o(At,"assertNotStrictEqual");function pf(e,t){t.assert.strictEqual(typeof e,"string")}o(pf,"assertSingleKey");function fo(e){return Object.keys(e)}o(fo,"objectKeys");function qe(e){return!!e&&!!e.then&&typeof e.then=="function"}o(qe,"isPromise");function xn(e){let r=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,i=r.shift();if(!i)throw new Error(`No command found in: ${e}`);let s={cmd:i.replace(n,""),demanded:[],optional:[]};return r.forEach((a,c)=>{let u=!1;a=a.replace(/\s/g,""),/\.+[\]>]/.test(a)&&c===r.length-1&&(u=!0),/^\[/.test(a)?s.optional.push({cmd:a.replace(n,"").split("|"),variadic:u}):s.demanded.push({cmd:a.replace(n,"").split("|"),variadic:u})}),s}o(xn,"parseCommand");var C$=["first","second","third","fourth","fifth","sixth"];function F(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[xn(`cmd ${e}`),t,r]}o(n,"parseArgs");try{let i=0,[s,a,c]=n(),u=[].slice.call(a);for(;u.length&&u[u.length-1]===void 0;)u.pop();let l=c||u.length;if(l<s.demanded.length)throw new ke(`Not enough arguments provided. Expected ${s.demanded.length} but received ${u.length}.`);let p=s.demanded.length+s.optional.length;if(l>p)throw new ke(`Too many arguments provided. Expected max ${p} but received ${l}.`);s.demanded.forEach(f=>{let d=u.shift(),h=Sy(d);f.cmd.filter(b=>b===h||b==="*").length===0&&Ey(h,f.cmd,i),i+=1}),s.optional.forEach(f=>{if(u.length===0)return;let d=u.shift(),h=Sy(d);f.cmd.filter(b=>b===h||b==="*").length===0&&Ey(h,f.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}o(F,"argsert");function Sy(e){return Array.isArray(e)?"array":e===null?"null":typeof e}o(Sy,"guessType");function Ey(e,t,r){throw new ke(`Invalid ${C$[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}o(Ey,"argumentTypeError");var df=class df{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,r,n=!0,i=!1){if(F("<array|function> [boolean] [boolean] [boolean]",[t,r,n],arguments.length),Array.isArray(t)){for(let s=0;s<t.length;s++){if(typeof t[s]!="function")throw Error("middleware must be a function");let a=t[s];a.applyBeforeValidation=r,a.global=n}Array.prototype.push.apply(this.globalMiddleware,t)}else if(typeof t=="function"){let s=t;s.applyBeforeValidation=r,s.global=n,s.mutates=i,this.globalMiddleware.push(t)}return this.yargs}addCoerceMiddleware(t,r){let n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(i=>{let s=[...n[r]||[],r];return i.option?!s.includes(i.option):!0}),t.option=r,this.addMiddleware(t,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let t=this.frozens.pop();t!==void 0&&(this.globalMiddleware=t)}reset(){this.globalMiddleware=this.globalMiddleware.filter(t=>t.global)}};o(df,"GlobalMiddleware");var hc=df;function Oy(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}o(Oy,"commandMiddlewareFactory");function di(e,t,r,n){return r.reduce((i,s)=>{if(s.applyBeforeValidation!==n)return i;if(s.mutates){if(s.applied)return i;s.applied=!0}if(qe(i))return i.then(a=>Promise.all([a,s(a,t)])).then(([a,c])=>Object.assign(a,c));{let a=s(i,t);return qe(a)?a.then(c=>Object.assign(i,c)):Object.assign(i,a)}},e)}o(di,"applyMiddleware");function hi(e,t,r=n=>{throw n}){try{let n=T$(e)?e():e;return qe(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}o(hi,"maybeAsyncResult");function T$(e){return typeof e=="function"}o(T$,"isFunction");function hf(e){if(typeof require>"u")return null;for(let t=0,r=Object.keys(require.cache),n;t<r.length;t++)if(n=require.cache[r[t]],n.exports===e)return n;return null}o(hf,"whichModule");var po=/(^\*)|(^\$0)/,gf=class gf{constructor(t,r,n,i){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=i,this.usage=t,this.globalMiddleware=n,this.validation=r}addDirectory(t,r,n,i){i=i||{},typeof i.recurse!="boolean"&&(i.recurse=!1),Array.isArray(i.extensions)||(i.extensions=["js"]);let s=typeof i.visit=="function"?i.visit:a=>a;i.visit=(a,c,u)=>{let l=s(a,c,u);if(l){if(this.requireCache.has(c))return l;this.requireCache.add(c),this.addHandler(l)}return l},this.shim.requireDirectory({require:r,filename:n},t,i)}addHandler(t,r,n,i,s,a){let c=[],u=Oy(s);if(i=i||(()=>{}),Array.isArray(t))if(R$(t))[t,...c]=t;else for(let l of t)this.addHandler(l);else if(j$(t)){let l=Array.isArray(t.command)||typeof t.command=="string"?t.command:this.moduleName(t);t.aliases&&(l=[].concat(l).concat(t.aliases)),this.addHandler(l,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated);return}else if(Py(n)){this.addHandler([t].concat(c),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let l=xn(t);c=c.map(d=>xn(d).cmd);let p=!1,f=[l.cmd].concat(c).filter(d=>po.test(d)?(p=!0,!1):!0);f.length===0&&p&&f.push("$0"),p&&(l.cmd=f[0],c=f.slice(1),t=t.replace(po,l.cmd)),c.forEach(d=>{this.aliasMap[d]=l.cmd}),r!==!1&&this.usage.command(t,r,p,c,a),this.handlers[l.cmd]={original:t,description:r,handler:i,builder:n||{},middlewares:u,deprecated:a,demanded:l.demanded,optional:l.optional},p&&(this.defaultCommand=this.handlers[l.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(t,r,n,i,s,a){let c=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,u=r.getInternalMethods().getContext(),l=u.commands.slice(),p=!t;t&&(u.commands.push(t),u.fullCommands.push(c.original));let f=this.applyBuilderUpdateUsageAndParse(p,c,r,n.aliases,l,i,s,a);return qe(f)?f.then(d=>this.applyMiddlewareAndGetResult(p,c,d.innerArgv,u,s,d.aliases,r)):this.applyMiddlewareAndGetResult(p,c,f.innerArgv,u,s,f.aliases,r)}applyBuilderUpdateUsageAndParse(t,r,n,i,s,a,c,u){let l=r.builder,p=n;if(mc(l)){n.getInternalMethods().getUsageInstance().freeze();let f=l(n.getInternalMethods().reset(i),u);if(qe(f))return f.then(d=>(p=$y(d)?d:n,this.parseAndUpdateUsage(t,r,p,s,a,c)))}else N$(l)&&(n.getInternalMethods().getUsageInstance().freeze(),p=n.getInternalMethods().reset(i),Object.keys(r.builder).forEach(f=>{p.option(f,l[f])}));return this.parseAndUpdateUsage(t,r,p,s,a,c)}parseAndUpdateUsage(t,r,n,i,s,a){t&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,r),r.description);let c=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,s,a);return qe(c)?c.then(u=>({aliases:n.parsed.aliases,innerArgv:u})):{aliases:n.parsed.aliases,innerArgv:c}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,r){let n=po.test(r.original)?r.original.replace(po,"").trim():r.original,i=t.filter(s=>!po.test(s));return i.push(n),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,r,n,i,s,a,c,u){if(!a.getInternalMethods().getHasOutput()){let l=a.getInternalMethods().runValidation(s,u,a.parsed.error,t);n=hi(n,p=>(l(p),p))}if(r.handler&&!a.getInternalMethods().getHasOutput()){a.getInternalMethods().setHasOutput();let l=!!a.getOptions().configuration["populate--"];a.getInternalMethods().postProcess(n,l,!1,!1),n=di(n,a,c,!1),n=hi(n,p=>{let f=r.handler(p);return qe(f)?f.then(()=>p):p}),t||a.getInternalMethods().getUsageInstance().cacheHelpMessage(),qe(n)&&!a.getInternalMethods().hasParseCallback()&&n.catch(p=>{try{a.getInternalMethods().getUsageInstance().fail(null,p)}catch{}})}return t||(i.commands.pop(),i.fullCommands.pop()),n}applyMiddlewareAndGetResult(t,r,n,i,s,a,c){let u={};if(s)return n;c.getInternalMethods().getHasOutput()||(u=this.populatePositionals(r,n,i,c));let l=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),p=di(n,c,l,!0);return qe(p)?p.then(f=>this.handleValidationAndGetResult(t,r,f,i,a,c,l,u)):this.handleValidationAndGetResult(t,r,p,i,a,c,l,u)}populatePositionals(t,r,n,i){r._=r._.slice(n.commands.length);let s=t.demanded.slice(0),a=t.optional.slice(0),c={};for(this.validation.positionalCount(s.length,r._.length);s.length;){let u=s.shift();this.populatePositional(u,r,c)}for(;a.length;){let u=a.shift();this.populatePositional(u,r,c)}return r._=n.commands.concat(r._.map(u=>""+u)),this.postProcessPositionals(r,c,this.cmdToParseOptions(t.original),i),c}populatePositional(t,r,n){let i=t.cmd[0];t.variadic?n[i]=r._.splice(0).map(String):r._.length&&(n[i]=[String(r._.shift())])}cmdToParseOptions(t){let r={array:[],default:{},alias:{},demand:{}},n=xn(t);return n.demanded.forEach(i=>{let[s,...a]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=a,r.demand[s]=!0}),n.optional.forEach(i=>{let[s,...a]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=a}),r}postProcessPositionals(t,r,n,i){let s=Object.assign({},i.getOptions());s.default=Object.assign(n.default,s.default);for(let l of Object.keys(n.alias))s.alias[l]=(s.alias[l]||[]).concat(n.alias[l]);s.array=s.array.concat(n.array),s.config={};let a=[];if(Object.keys(r).forEach(l=>{r[l].map(p=>{s.configuration["unknown-options-as-args"]&&(s.key[l]=!0),a.push(`--${l}`),a.push(p)})}),!a.length)return;let c=Object.assign({},s.configuration,{"populate--":!1}),u=this.shim.Parser.detailed(a,Object.assign({},s,{configuration:c}));if(u.error)i.getInternalMethods().getUsageInstance().fail(u.error.message,u.error);else{let l=Object.keys(r);Object.keys(r).forEach(p=>{l.push(...u.aliases[p])}),Object.keys(u.argv).forEach(p=>{l.includes(p)&&(r[p]||(r[p]=u.argv[p]),!this.isInConfigs(i,p)&&!this.isDefaulted(i,p)&&Object.prototype.hasOwnProperty.call(t,p)&&Object.prototype.hasOwnProperty.call(u.argv,p)&&(Array.isArray(t[p])||Array.isArray(u.argv[p]))?t[p]=[].concat(t[p],u.argv[p]):t[p]=u.argv[p])})}}isDefaulted(t,r){let{default:n}=t.getOptions();return Object.prototype.hasOwnProperty.call(n,r)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(r))}isInConfigs(t,r){let{configObjects:n}=t.getOptions();return n.some(i=>Object.prototype.hasOwnProperty.call(i,r))||n.some(i=>Object.prototype.hasOwnProperty.call(i,this.shim.Parser.camelCase(r)))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){let n=po.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(n,this.defaultCommand.description)}let r=this.defaultCommand.builder;if(mc(r))return r(t,!0);Py(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=hf(t);if(!r)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);return this.commandFromFilename(r.filename)}commandFromFilename(t){return this.shim.path.basename(t,this.shim.path.extname(t))}extractDesc({describe:t,description:r,desc:n}){for(let i of[t,r,n]){if(typeof i=="string"||i===!1)return i;At(i,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){let t=this.frozens.pop();At(t,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};o(gf,"CommandInstance");var mf=gf;function xy(e,t,r,n){return new mf(e,t,r,n)}o(xy,"command");function Py(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}o(Py,"isCommandBuilderDefinition");function R$(e){return e.every(t=>typeof t=="string")}o(R$,"isCommandAndAliases");function mc(e){return typeof e=="function"}o(mc,"isCommandBuilderCallback");function N$(e){return typeof e=="object"}o(N$,"isCommandBuilderOptionDefinitions");function j$(e){return typeof e=="object"&&!Array.isArray(e)}o(j$,"isCommandHandlerDefinition");function $n(e={},t=()=>!0){let r={};return fo(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}o($n,"objFilter");function wn(e){typeof process>"u"||[process.stdout,process.stderr].forEach(t=>{let r=t;r._handle&&r.isTTY&&typeof r._handle.setBlocking=="function"&&r._handle.setBlocking(e)})}o(wn,"setBlocking");function M$(e){return typeof e=="boolean"}o(M$,"isBoolean");function Ay(e,t){let r=t.y18n.__,n={},i=[];n.failFn=o(function(R){i.push(R)},"failFn");let s=null,a=null,c=!0;n.showHelpOnFail=o(function(R=!0,q){let[Y,ue]=typeof R=="string"?[!0,R]:[R,q];return e.getInternalMethods().isGlobalContext()&&(a=ue),s=ue,c=Y,n},"showHelpOnFailFn");let u=!1;n.fail=o(function(R,q){let Y=e.getInternalMethods().getLoggerInstance();if(i.length)for(let ue=i.length-1;ue>=0;--ue){let ve=i[ue];if(M$(ve)){if(q)throw q;if(R)throw Error(R)}else ve(R,q,n)}else{if(e.getExitProcess()&&wn(!0),!u){u=!0,c&&(e.showHelp("error"),Y.error()),(R||q)&&Y.error(R||q);let ue=s||a;ue&&((R||q)&&Y.error(""),Y.error(ue))}if(q=q||new ke(R),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,q);throw q}},"fail");let l=[],p=!1;n.usage=(M,R)=>M===null?(p=!0,l=[],n):(p=!1,l.push([M,R||""]),n),n.getUsage=()=>l,n.getUsageDisabled=()=>p,n.getPositionalGroupName=()=>r("Positionals:");let f=[];n.example=(M,R)=>{f.push([M,R||""])};let d=[];n.command=o(function(R,q,Y,ue,ve=!1){Y&&(d=d.map(ge=>(ge[2]=!1,ge))),d.push([R,q||"",Y,ue,ve])},"command"),n.getCommands=()=>d;let h={};n.describe=o(function(R,q){Array.isArray(R)?R.forEach(Y=>{n.describe(Y,q)}):typeof R=="object"?Object.keys(R).forEach(Y=>{n.describe(Y,R[Y])}):h[R]=q},"describe"),n.getDescriptions=()=>h;let y=[];n.epilog=M=>{y.push(M)};let b=!1,g;n.wrap=M=>{b=!0,g=M},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(b||(g=Ee(),b=!0),g);let P="__yargsString__:";n.deferY18nLookup=M=>P+M,n.help=o(function(){if(T)return T;C();let R=e.customScriptName?e.$0:t.path.basename(e.$0),q=e.getDemandedOptions(),Y=e.getDemandedCommands(),ue=e.getDeprecatedOptions(),ve=e.getGroups(),ge=e.getOptions(),We=[];We=We.concat(Object.keys(h)),We=We.concat(Object.keys(q)),We=We.concat(Object.keys(Y)),We=We.concat(Object.keys(ge.default)),We=We.filter(te),We=Object.keys(We.reduce((X,Re)=>(Re!=="_"&&(X[Re]=!0),X),{}));let Lr=n.getWrap(),Te=t.cliui({width:Lr,wrap:!!Lr});if(!p){if(l.length)l.forEach(X=>{Te.div({text:`${X[0].replace(/\$0/g,R)}`}),X[1]&&Te.div({text:`${X[1]}`,padding:[1,0,0,0]})}),Te.div();else if(d.length){let X=null;Y._?X=`${R} <${r("command")}>
79
+ `:X=`${R} [${r("command")}]
80
+ `,Te.div(`${X}`)}}if(d.length>1||d.length===1&&!d[0][2]){Te.div(r("Commands:"));let X=e.getInternalMethods().getContext(),Re=X.commands.length?`${X.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(d=d.sort((pe,_e)=>pe[0].localeCompare(_e[0])));let je=R?`${R} `:"";d.forEach(pe=>{let _e=`${je}${Re}${pe[0].replace(/^\$0 ?/,"")}`;Te.span({text:_e,padding:[0,2,0,2],width:$(d,Lr,`${R}${Re}`)+4},{text:pe[1]});let Ve=[];pe[2]&&Ve.push(`[${r("default")}]`),pe[3]&&pe[3].length&&Ve.push(`[${r("aliases:")} ${pe[3].join(", ")}]`),pe[4]&&(typeof pe[4]=="string"?Ve.push(`[${r("deprecated: %s",pe[4])}]`):Ve.push(`[${r("deprecated")}]`)),Ve.length?Te.div({text:Ve.join(" "),padding:[0,0,0,2],align:"right"}):Te.div()}),Te.div()}let nr=(Object.keys(ge.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);We=We.filter(X=>!e.parsed.newAliases[X]&&nr.every(Re=>(ge.alias[Re]||[]).indexOf(X)===-1));let K=r("Options:");ve[K]||(ve[K]=[]),A(We,ge.alias,ve,K);let Dt=o(X=>/^--/.test(gc(X)),"isLongSwitch"),ne=Object.keys(ve).filter(X=>ve[X].length>0).map(X=>{let Re=ve[X].filter(te).map(je=>{if(nr.includes(je))return je;for(let pe=0,_e;(_e=nr[pe])!==void 0;pe++)if((ge.alias[_e]||[]).includes(je))return _e;return je});return{groupName:X,normalizedKeys:Re}}).filter(({normalizedKeys:X})=>X.length>0).map(({groupName:X,normalizedKeys:Re})=>{let je=Re.reduce((pe,_e)=>(pe[_e]=[_e].concat(ge.alias[_e]||[]).map(Ve=>X===n.getPositionalGroupName()?Ve:(/^[0-9]$/.test(Ve)?ge.boolean.includes(_e)?"-":"--":Ve.length>1?"--":"-")+Ve).sort((Ve,ut)=>Dt(Ve)===Dt(ut)?0:Dt(Ve)?1:-1).join(", "),pe),{});return{groupName:X,normalizedKeys:Re,switches:je}});if(ne.filter(({groupName:X})=>X!==n.getPositionalGroupName()).some(({normalizedKeys:X,switches:Re})=>!X.every(je=>Dt(Re[je])))&&ne.filter(({groupName:X})=>X!==n.getPositionalGroupName()).forEach(({normalizedKeys:X,switches:Re})=>{X.forEach(je=>{Dt(Re[je])&&(Re[je]=k$(Re[je],4))})}),ne.forEach(({groupName:X,normalizedKeys:Re,switches:je})=>{Te.div(X),Re.forEach(pe=>{let _e=je[pe],Ve=h[pe]||"",ut=null;Ve.includes(P)&&(Ve=r(Ve.substring(P.length))),ge.boolean.includes(pe)&&(ut=`[${r("boolean")}]`),ge.count.includes(pe)&&(ut=`[${r("count")}]`),ge.string.includes(pe)&&(ut=`[${r("string")}]`),ge.normalize.includes(pe)&&(ut=`[${r("string")}]`),ge.array.includes(pe)&&(ut=`[${r("array")}]`),ge.number.includes(pe)&&(ut=`[${r("number")}]`);let Lt=o(O=>typeof O=="string"?`[${r("deprecated: %s",O)}]`:`[${r("deprecated")}]`,"deprecatedExtra"),co=[pe in ue?Lt(ue[pe]):null,ut,pe in q?`[${r("required")}]`:null,ge.choices&&ge.choices[pe]?`[${r("choices:")} ${n.stringifiedValues(ge.choices[pe])}]`:null,J(ge.default[pe],ge.defaultDescription[pe])].filter(Boolean).join(" ");Te.span({text:gc(_e),padding:[0,2,0,2+wy(_e)],width:$(je,Lr)+4},Ve);let _=e.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;co&&!_?Te.div({text:co,padding:[0,0,0,2],align:"right"}):Te.div()}),Te.div()}),f.length&&(Te.div(r("Examples:")),f.forEach(X=>{X[0]=X[0].replace(/\$0/g,R)}),f.forEach(X=>{X[1]===""?Te.div({text:X[0],padding:[0,2,0,2]}):Te.div({text:X[0],padding:[0,2,0,2],width:$(f,Lr)+4},{text:X[1]})}),Te.div()),y.length>0){let X=y.map(Re=>Re.replace(/\$0/g,R)).join(`
81
+ `);Te.div(`${X}
82
+ `)}return Te.toString().replace(/\s*$/,"")},"help");function $(M,R,q){let Y=0;return Array.isArray(M)||(M=Object.values(M).map(ue=>[ue])),M.forEach(ue=>{Y=Math.max(t.stringWidth(q?`${q} ${gc(ue[0])}`:gc(ue[0]))+wy(ue[0]),Y)}),R&&(Y=Math.min(Y,parseInt((R*.5).toString(),10))),Y}o($,"maxWidth");function C(){let M=e.getDemandedOptions(),R=e.getOptions();(Object.keys(R.alias)||[]).forEach(q=>{R.alias[q].forEach(Y=>{h[Y]&&n.describe(q,h[Y]),Y in M&&e.demandOption(q,M[Y]),R.boolean.includes(Y)&&e.boolean(q),R.count.includes(Y)&&e.count(q),R.string.includes(Y)&&e.string(q),R.normalize.includes(Y)&&e.normalize(q),R.array.includes(Y)&&e.array(q),R.number.includes(Y)&&e.number(q)})})}o(C,"normalizeAliases");let T;n.cacheHelpMessage=function(){T=this.help()},n.clearCachedHelpMessage=function(){T=void 0},n.hasCachedHelpMessage=function(){return!!T};function A(M,R,q,Y){let ue=[],ve=null;return Object.keys(q).forEach(ge=>{ue=ue.concat(q[ge])}),M.forEach(ge=>{ve=[ge].concat(R[ge]),ve.some(We=>ue.indexOf(We)!==-1)||q[Y].push(ge)}),ue}o(A,"addUngroupedKeys");function te(M){return e.getOptions().hiddenOptions.indexOf(M)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}o(te,"filterHiddenOptions"),n.showHelp=M=>{let R=e.getInternalMethods().getLoggerInstance();M||(M="error"),(typeof M=="function"?M:R[M])(n.help())},n.functionDescription=M=>["(",M.name?t.Parser.decamelize(M.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=o(function(R,q){let Y="",ue=q||", ",ve=[].concat(R);return!R||!ve.length||ve.forEach(ge=>{Y.length&&(Y+=ue),Y+=JSON.stringify(ge)}),Y},"stringifiedValues");function J(M,R){let q=`[${r("default:")} `;if(M===void 0&&!R)return null;if(R)q+=R;else switch(typeof M){case"string":q+=`"${M}"`;break;case"object":q+=JSON.stringify(M);break;default:q+=M}return`${q}]`}o(J,"defaultString");function Ee(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}o(Ee,"windowWidth");let Ae=null;n.version=M=>{Ae=M},n.showVersion=M=>{let R=e.getInternalMethods().getLoggerInstance();M||(M="error"),(typeof M=="function"?M:R[M])(Ae)},n.reset=o(function(R){return s=null,u=!1,l=[],p=!1,y=[],f=[],d=[],h=$n(h,q=>!R[q]),n},"reset");let re=[];return n.freeze=o(function(){re.push({failMessage:s,failureOutput:u,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h})},"freeze"),n.unfreeze=o(function(R=!1){let q=re.pop();q&&(R?(h={...q.descriptions,...h},d=[...q.commands,...d],l=[...q.usages,...l],f=[...q.examples,...f],y=[...q.epilogs,...y]):{failMessage:s,failureOutput:u,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h}=q)},"unfreeze"),n}o(Ay,"usage");function yf(e){return typeof e=="object"}o(yf,"isIndentedText");function k$(e,t){return yf(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}o(k$,"addIndentation");function wy(e){return yf(e)?e.indentation:0}o(wy,"getIndentation");function gc(e){return yf(e)?e.text:e}o(gc,"getText");var Iy=`###-begin-{{app_name}}-completions-###
83
83
  #
84
84
  # yargs command completion script
85
85
  #
@@ -107,7 +107,7 @@ _{{app_name}}_yargs_completions()
107
107
  }
108
108
  complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}
109
109
  ###-end-{{app_name}}-completions-###
110
- `,Oy=`#compdef {{app_name}}
110
+ `,Cy=`#compdef {{app_name}}
111
111
  ###-begin-{{app_name}}-completions-###
112
112
  #
113
113
  # yargs command completion script
@@ -126,29 +126,29 @@ _{{app_name}}_yargs_completions()
126
126
  }
127
127
  compdef _{{app_name}}_yargs_completions {{app_name}}
128
128
  ###-end-{{app_name}}-completions-###
129
- `;var pf=class pf{constructor(t,r,n,i){var s,a,c;this.yargs=t,this.usage=r,this.command=n,this.shim=i,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(c=((s=this.shim.getEnv("SHELL"))===null||s===void 0?void 0:s.includes("zsh"))||((a=this.shim.getEnv("ZSH_NAME"))===null||a===void 0?void 0:a.includes("zsh")))!==null&&c!==void 0?c:!1}defaultCompletion(t,r,n,i){let s=this.command.getCommandHandlers();for(let c=0,u=t.length;c<u;++c)if(s[t[c]]&&s[t[c]].builder){let l=s[t[c]].builder;if(pc(l)){this.indexAfterLastReset=c+1;let p=this.yargs.getInternalMethods().reset();return l(p,!0),p.argv}}let a=[];this.commandCompletions(a,t,n),this.optionCompletions(a,t,r,n),this.choicesFromOptionsCompletions(a,t,r,n),this.choicesFromPositionalsCompletions(a,t,r,n),i(null,a)}commandCompletions(t,r,n){let i=this.yargs.getInternalMethods().getContext().commands;!n.match(/^-/)&&i[i.length-1]!==n&&!this.previousArgHasChoices(r)&&this.usage.getCommands().forEach(s=>{let a=On(s[0]).cmd;if(r.indexOf(a)===-1)if(!this.zshShell)t.push(a);else{let c=s[1]||"";t.push(a.replace(/:/g,"\\:")+":"+c)}})}optionCompletions(t,r,n,i){if((i.match(/^-/)||i===""&&t.length===0)&&!this.previousArgHasChoices(r)){let s=this.yargs.getOptions(),a=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(s.key).forEach(c=>{let u=!!s.configuration["boolean-negation"]&&s.boolean.includes(c);!a.includes(c)&&!s.hiddenOptions.includes(c)&&!this.argsContainKey(r,c,u)&&this.completeOptionKey(c,t,i,u&&!!s.default[c])})}}choicesFromOptionsCompletions(t,r,n,i){if(this.previousArgHasChoices(r)){let s=this.getPreviousArgChoices(r);s&&s.length>0&&t.push(...s.map(a=>a.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(t,r,n,i){if(i===""&&t.length>0&&this.previousArgHasChoices(r))return;let s=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],a=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),c=s[n._.length-a-1];if(!c)return;let u=this.yargs.getOptions().choices[c]||[];for(let l of u)l.startsWith(i)&&t.push(l.replace(/:/g,"\\:"))}getPreviousArgChoices(t){if(t.length<1)return;let r=t[t.length-1],n="";if(!r.startsWith("-")&&t.length>1&&(n=r,r=t[t.length-2]),!r.startsWith("-"))return;let i=r.replace(/^-+/,""),s=this.yargs.getOptions(),a=[i,...this.yargs.getAliases()[i]||[]],c;for(let u of a)if(Object.prototype.hasOwnProperty.call(s.key,u)&&Array.isArray(s.choices[u])){c=s.choices[u];break}if(c)return c.filter(u=>!n||u.startsWith(n))}previousArgHasChoices(t){let r=this.getPreviousArgChoices(t);return r!==void 0&&r.length>0}argsContainKey(t,r,n){let i=o(s=>t.indexOf((/^[^0-9]$/.test(s)?"-":"--")+s)!==-1,"argsContains");if(i(r)||n&&i(`no-${r}`))return!0;if(this.aliases){for(let s of this.aliases[r])if(i(s))return!0}return!1}completeOptionKey(t,r,n,i){var s,a,c,u;let l=t;if(this.zshShell){let h=this.usage.getDescriptions(),y=(a=(s=this===null||this===void 0?void 0:this.aliases)===null||s===void 0?void 0:s[t])===null||a===void 0?void 0:a.find(P=>{let $=h[P];return typeof $=="string"&&$.length>0}),b=y?h[y]:void 0,g=(u=(c=h[t])!==null&&c!==void 0?c:b)!==null&&u!==void 0?u:"";l=`${t.replace(/:/g,"\\:")}:${g.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let p=o(h=>/^--/.test(h),"startsByTwoDashes"),f=o(h=>/^[^0-9]$/.test(h),"isShortOption"),d=!p(n)&&f(t)?"-":"--";r.push(d+l),i&&r.push(d+"no-"+l)}customCompletion(t,r,n,i){if(wt(this.customCompletionFunction,null,this.shim),I$(this.customCompletionFunction)){let s=this.customCompletionFunction(n,r);return ke(s)?s.then(a=>{this.shim.process.nextTick(()=>{i(null,a)})}).catch(a=>{this.shim.process.nextTick(()=>{i(a,void 0)})}):i(null,s)}else return C$(this.customCompletionFunction)?this.customCompletionFunction(n,r,(s=i)=>this.defaultCompletion(t,r,n,s),s=>{i(null,s)}):this.customCompletionFunction(n,r,s=>{i(null,s)})}getCompletion(t,r){let n=t.length?t[t.length-1]:"",i=this.yargs.parse(t,!0),s=this.customCompletionFunction?a=>this.customCompletion(t,a,n,r):a=>this.defaultCompletion(t,a,n,r);return ke(i)?i.then(s):s(i)}generateCompletionScript(t,r){let n=this.zshShell?Oy:Ey,i=this.shim.path.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),n=n.replace(/{{app_name}}/g,i),n=n.replace(/{{completion_command}}/g,r),n.replace(/{{app_path}}/g,t)}registerFunction(t){this.customCompletionFunction=t}setParsed(t){this.aliases=t.aliases}};o(pf,"Completion");var ff=pf;function Py(e,t,r,n){return new ff(e,t,r,n)}o(Py,"completion");function I$(e){return e.length<3}o(I$,"isSyncCompletionFunction");function C$(e){return e.length>3}o(C$,"isFallbackCompletionFunction");function xy(e,t){if(e.length===0)return t.length;if(t.length===0)return e.length;let r=[],n;for(n=0;n<=t.length;n++)r[n]=[n];let i;for(i=0;i<=e.length;i++)r[0][i]=i;for(n=1;n<=t.length;n++)for(i=1;i<=e.length;i++)t.charAt(n-1)===e.charAt(i-1)?r[n][i]=r[n-1][i-1]:n>1&&i>1&&t.charAt(n-2)===e.charAt(i-1)&&t.charAt(n-1)===e.charAt(i-2)?r[n][i]=r[n-2][i-2]+1:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[t.length][e.length]}o(xy,"levenshtein");var $y=["$0","--","_"];function wy(e,t,r){let n=r.y18n.__,i=r.y18n.__n,s={};s.nonOptionCount=o(function(f){let d=e.getDemandedCommands(),y=f._.length+(f["--"]?f["--"].length:0)-e.getInternalMethods().getContext().commands.length;d._&&(y<d._.min||y>d._.max)&&(y<d._.min?d._.minMsg!==void 0?t.fail(d._.minMsg?d._.minMsg.replace(/\$0/g,y.toString()).replace(/\$1/,d._.min.toString()):null):t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",y,y.toString(),d._.min.toString())):y>d._.max&&(d._.maxMsg!==void 0?t.fail(d._.maxMsg?d._.maxMsg.replace(/\$0/g,y.toString()).replace(/\$1/,d._.max.toString()):null):t.fail(i("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",y,y.toString(),d._.max.toString()))))},"nonOptionCount"),s.positionalCount=o(function(f,d){d<f&&t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",d,d+"",f+""))},"positionalCount"),s.requiredArguments=o(function(f,d){let h=null;for(let y of Object.keys(d))(!Object.prototype.hasOwnProperty.call(f,y)||typeof f[y]>"u")&&(h=h||{},h[y]=d[y]);if(h){let y=[];for(let g of Object.keys(h)){let P=h[g];P&&y.indexOf(P)<0&&y.push(P)}let b=y.length?`
129
+ `;var vf=class vf{constructor(t,r,n,i){var s,a,c;this.yargs=t,this.usage=r,this.command=n,this.shim=i,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(c=((s=this.shim.getEnv("SHELL"))===null||s===void 0?void 0:s.includes("zsh"))||((a=this.shim.getEnv("ZSH_NAME"))===null||a===void 0?void 0:a.includes("zsh")))!==null&&c!==void 0?c:!1}defaultCompletion(t,r,n,i){let s=this.command.getCommandHandlers();for(let c=0,u=t.length;c<u;++c)if(s[t[c]]&&s[t[c]].builder){let l=s[t[c]].builder;if(mc(l)){this.indexAfterLastReset=c+1;let p=this.yargs.getInternalMethods().reset();return l(p,!0),p.argv}}let a=[];this.commandCompletions(a,t,n),this.optionCompletions(a,t,r,n),this.choicesFromOptionsCompletions(a,t,r,n),this.choicesFromPositionalsCompletions(a,t,r,n),i(null,a)}commandCompletions(t,r,n){let i=this.yargs.getInternalMethods().getContext().commands;!n.match(/^-/)&&i[i.length-1]!==n&&!this.previousArgHasChoices(r)&&this.usage.getCommands().forEach(s=>{let a=xn(s[0]).cmd;if(r.indexOf(a)===-1)if(!this.zshShell)t.push(a);else{let c=s[1]||"";t.push(a.replace(/:/g,"\\:")+":"+c)}})}optionCompletions(t,r,n,i){if((i.match(/^-/)||i===""&&t.length===0)&&!this.previousArgHasChoices(r)){let s=this.yargs.getOptions(),a=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(s.key).forEach(c=>{let u=!!s.configuration["boolean-negation"]&&s.boolean.includes(c);!a.includes(c)&&!s.hiddenOptions.includes(c)&&!this.argsContainKey(r,c,u)&&this.completeOptionKey(c,t,i,u&&!!s.default[c])})}}choicesFromOptionsCompletions(t,r,n,i){if(this.previousArgHasChoices(r)){let s=this.getPreviousArgChoices(r);s&&s.length>0&&t.push(...s.map(a=>a.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(t,r,n,i){if(i===""&&t.length>0&&this.previousArgHasChoices(r))return;let s=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],a=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),c=s[n._.length-a-1];if(!c)return;let u=this.yargs.getOptions().choices[c]||[];for(let l of u)l.startsWith(i)&&t.push(l.replace(/:/g,"\\:"))}getPreviousArgChoices(t){if(t.length<1)return;let r=t[t.length-1],n="";if(!r.startsWith("-")&&t.length>1&&(n=r,r=t[t.length-2]),!r.startsWith("-"))return;let i=r.replace(/^-+/,""),s=this.yargs.getOptions(),a=[i,...this.yargs.getAliases()[i]||[]],c;for(let u of a)if(Object.prototype.hasOwnProperty.call(s.key,u)&&Array.isArray(s.choices[u])){c=s.choices[u];break}if(c)return c.filter(u=>!n||u.startsWith(n))}previousArgHasChoices(t){let r=this.getPreviousArgChoices(t);return r!==void 0&&r.length>0}argsContainKey(t,r,n){let i=o(s=>t.indexOf((/^[^0-9]$/.test(s)?"-":"--")+s)!==-1,"argsContains");if(i(r)||n&&i(`no-${r}`))return!0;if(this.aliases){for(let s of this.aliases[r])if(i(s))return!0}return!1}completeOptionKey(t,r,n,i){var s,a,c,u;let l=t;if(this.zshShell){let h=this.usage.getDescriptions(),y=(a=(s=this===null||this===void 0?void 0:this.aliases)===null||s===void 0?void 0:s[t])===null||a===void 0?void 0:a.find(P=>{let $=h[P];return typeof $=="string"&&$.length>0}),b=y?h[y]:void 0,g=(u=(c=h[t])!==null&&c!==void 0?c:b)!==null&&u!==void 0?u:"";l=`${t.replace(/:/g,"\\:")}:${g.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let p=o(h=>/^--/.test(h),"startsByTwoDashes"),f=o(h=>/^[^0-9]$/.test(h),"isShortOption"),d=!p(n)&&f(t)?"-":"--";r.push(d+l),i&&r.push(d+"no-"+l)}customCompletion(t,r,n,i){if(At(this.customCompletionFunction,null,this.shim),D$(this.customCompletionFunction)){let s=this.customCompletionFunction(n,r);return qe(s)?s.then(a=>{this.shim.process.nextTick(()=>{i(null,a)})}).catch(a=>{this.shim.process.nextTick(()=>{i(a,void 0)})}):i(null,s)}else return L$(this.customCompletionFunction)?this.customCompletionFunction(n,r,(s=i)=>this.defaultCompletion(t,r,n,s),s=>{i(null,s)}):this.customCompletionFunction(n,r,s=>{i(null,s)})}getCompletion(t,r){let n=t.length?t[t.length-1]:"",i=this.yargs.parse(t,!0),s=this.customCompletionFunction?a=>this.customCompletion(t,a,n,r):a=>this.defaultCompletion(t,a,n,r);return qe(i)?i.then(s):s(i)}generateCompletionScript(t,r){let n=this.zshShell?Cy:Iy,i=this.shim.path.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),n=n.replace(/{{app_name}}/g,i),n=n.replace(/{{completion_command}}/g,r),n.replace(/{{app_path}}/g,t)}registerFunction(t){this.customCompletionFunction=t}setParsed(t){this.aliases=t.aliases}};o(vf,"Completion");var bf=vf;function Ty(e,t,r,n){return new bf(e,t,r,n)}o(Ty,"completion");function D$(e){return e.length<3}o(D$,"isSyncCompletionFunction");function L$(e){return e.length>3}o(L$,"isFallbackCompletionFunction");function Ry(e,t){if(e.length===0)return t.length;if(t.length===0)return e.length;let r=[],n;for(n=0;n<=t.length;n++)r[n]=[n];let i;for(i=0;i<=e.length;i++)r[0][i]=i;for(n=1;n<=t.length;n++)for(i=1;i<=e.length;i++)t.charAt(n-1)===e.charAt(i-1)?r[n][i]=r[n-1][i-1]:n>1&&i>1&&t.charAt(n-2)===e.charAt(i-1)&&t.charAt(n-1)===e.charAt(i-2)?r[n][i]=r[n-2][i-2]+1:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[t.length][e.length]}o(Ry,"levenshtein");var Ny=["$0","--","_"];function jy(e,t,r){let n=r.y18n.__,i=r.y18n.__n,s={};s.nonOptionCount=o(function(f){let d=e.getDemandedCommands(),y=f._.length+(f["--"]?f["--"].length:0)-e.getInternalMethods().getContext().commands.length;d._&&(y<d._.min||y>d._.max)&&(y<d._.min?d._.minMsg!==void 0?t.fail(d._.minMsg?d._.minMsg.replace(/\$0/g,y.toString()).replace(/\$1/,d._.min.toString()):null):t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",y,y.toString(),d._.min.toString())):y>d._.max&&(d._.maxMsg!==void 0?t.fail(d._.maxMsg?d._.maxMsg.replace(/\$0/g,y.toString()).replace(/\$1/,d._.max.toString()):null):t.fail(i("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",y,y.toString(),d._.max.toString()))))},"nonOptionCount"),s.positionalCount=o(function(f,d){d<f&&t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",d,d+"",f+""))},"positionalCount"),s.requiredArguments=o(function(f,d){let h=null;for(let y of Object.keys(d))(!Object.prototype.hasOwnProperty.call(f,y)||typeof f[y]>"u")&&(h=h||{},h[y]=d[y]);if(h){let y=[];for(let g of Object.keys(h)){let P=h[g];P&&y.indexOf(P)<0&&y.push(P)}let b=y.length?`
130
130
  ${y.join(`
131
- `)}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(h).length,Object.keys(h).join(", ")+b))}},"requiredArguments"),s.unknownArguments=o(function(f,d,h,y,b=!0){var g;let P=e.getInternalMethods().getCommandInstance().getCommands(),$=[],C=e.getInternalMethods().getContext();if(Object.keys(f).forEach(T=>{!$y.includes(T)&&!Object.prototype.hasOwnProperty.call(h,T)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),T)&&!s.isValidAndSomeAliasIsNotNew(T,d)&&$.push(T)}),b&&(C.commands.length>0||P.length>0||y)&&f._.slice(C.commands.length).forEach(T=>{P.includes(""+T)||$.push(""+T)}),b){let A=((g=e.getDemandedCommands()._)===null||g===void 0?void 0:g.max)||0,K=C.commands.length+A;K<f._.length&&f._.slice(K).forEach(X=>{X=String(X),!C.commands.includes(X)&&!$.includes(X)&&$.push(X)})}$.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",$.length,$.map(T=>T.trim()?T:`"${T}"`).join(", ")))},"unknownArguments"),s.unknownCommands=o(function(f){let d=e.getInternalMethods().getCommandInstance().getCommands(),h=[],y=e.getInternalMethods().getContext();return(y.commands.length>0||d.length>0)&&f._.slice(y.commands.length).forEach(b=>{d.includes(""+b)||h.push(""+b)}),h.length>0?(t.fail(i("Unknown command: %s","Unknown commands: %s",h.length,h.join(", "))),!0):!1},"unknownCommands"),s.isValidAndSomeAliasIsNotNew=o(function(f,d){if(!Object.prototype.hasOwnProperty.call(d,f))return!1;let h=e.parsed.newAliases;return[f,...d[f]].some(y=>!Object.prototype.hasOwnProperty.call(h,y)||!h[f])},"isValidAndSomeAliasIsNotNew"),s.limitedChoices=o(function(f){let d=e.getOptions(),h={};if(!Object.keys(d.choices).length)return;Object.keys(f).forEach(g=>{$y.indexOf(g)===-1&&Object.prototype.hasOwnProperty.call(d.choices,g)&&[].concat(f[g]).forEach(P=>{d.choices[g].indexOf(P)===-1&&P!==void 0&&(h[g]=(h[g]||[]).concat(P))})});let y=Object.keys(h);if(!y.length)return;let b=n("Invalid values:");y.forEach(g=>{b+=`
132
- ${n("Argument: %s, Given: %s, Choices: %s",g,t.stringifiedValues(h[g]),t.stringifiedValues(d.choices[g]))}`}),t.fail(b)},"limitedChoices");let a={};s.implies=o(function(f,d){F("<string|object> [array|number|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{s.implies(h,f[h])}):(e.global(f),a[f]||(a[f]=[]),Array.isArray(d)?d.forEach(h=>s.implies(f,h)):(wt(d,void 0,r),a[f].push(d)))},"implies"),s.getImplied=o(function(){return a},"getImplied");function c(p,f){let d=Number(f);return f=isNaN(d)?f:d,typeof f=="number"?f=p._.length>=f:f.match(/^--no-.+/)?(f=f.match(/^--no-(.+)/)[1],f=!Object.prototype.hasOwnProperty.call(p,f)):f=Object.prototype.hasOwnProperty.call(p,f),f}o(c,"keyExists"),s.implications=o(function(f){let d=[];if(Object.keys(a).forEach(h=>{let y=h;(a[h]||[]).forEach(b=>{let g=y,P=b;g=c(f,g),b=c(f,b),g&&!b&&d.push(` ${y} -> ${P}`)})}),d.length){let h=`${n("Implications failed:")}
133
- `;d.forEach(y=>{h+=y}),t.fail(h)}},"implications");let u={};s.conflicts=o(function(f,d){F("<string|object> [array|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{s.conflicts(h,f[h])}):(e.global(f),u[f]||(u[f]=[]),Array.isArray(d)?d.forEach(h=>s.conflicts(f,h)):u[f].push(d))},"conflicts"),s.getConflicting=()=>u,s.conflicting=o(function(f){Object.keys(f).forEach(d=>{u[d]&&u[d].forEach(h=>{h&&f[d]!==void 0&&f[h]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",d,h))})}),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(u).forEach(d=>{u[d].forEach(h=>{h&&f[r.Parser.camelCase(d)]!==void 0&&f[r.Parser.camelCase(h)]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",d,h))})})},"conflictingFn"),s.recommendCommands=o(function(f,d){d=d.sort((g,P)=>P.length-g.length);let y=null,b=1/0;for(let g=0,P;(P=d[g])!==void 0;g++){let $=xy(f,P);$<=3&&$<b&&(b=$,y=P)}y&&t.fail(n("Did you mean %s?",y))},"recommendCommands"),s.reset=o(function(f){return a=Pn(a,d=>!f[d]),u=Pn(u,d=>!f[d]),s},"reset");let l=[];return s.freeze=o(function(){l.push({implied:a,conflicting:u})},"freeze"),s.unfreeze=o(function(){let f=l.pop();wt(f,void 0,r),{implied:a,conflicting:u}=f},"unfreeze"),s}o(wy,"validation");var df=[],Es;function Os(e,t,r,n){Es=n;let i={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!="string")return i;let s=/\.json|\..*rc$/.test(e.extends),a=null;if(s)a=R$(t,e.extends);else try{a=require.resolve(e.extends)}catch{return e}T$(a),df.push(a),i=s?JSON.parse(Es.readFileSync(a,"utf8")):require(e.extends),delete e.extends,i=Os(i,Es.path.dirname(a),r,Es)}return df=[],r?Ay(i,e):Object.assign({},i,e)}o(Os,"applyExtends");function T$(e){if(df.indexOf(e)>-1)throw new Me(`Circular extended configurations: '${e}'.`)}o(T$,"checkForCircularExtends");function R$(e,t){return Es.path.resolve(e,t)}o(R$,"getPathToDefaultConfig");function Ay(e,t){let r={};function n(i){return i&&typeof i=="object"&&!Array.isArray(i)}o(n,"isObject"),Object.assign(r,e);for(let i of Object.keys(t))n(t[i])&&n(r[i])?r[i]=Ay(e[i],t[i]):r[i]=t[i];return r}o(Ay,"mergeDeep");var B=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},m=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},tt,pi,Ps,ir,Gt,hc,$n,di,mc,or,gc,sr,Dr,zt,ar,yc,uo,lt,Z,bc,vc,Zt,hi,lo,mi,wn,_c,ie,gi,yi,bi,se,Sc,Lr,Ke;function Wy(e){return(t=[],r=e.process.cwd(),n)=>{let i=new Pf(t,r,n,e);return Object.defineProperty(i,"argv",{get:o(()=>i.parse(),"get"),enumerable:!0}),i.help(),i.version(),i}}o(Wy,"YargsFactory");var Iy=Symbol("copyDoubleDash"),Cy=Symbol("copyDoubleDash"),hf=Symbol("deleteFromParserHintObject"),Ty=Symbol("emitWarning"),Ry=Symbol("freeze"),Ny=Symbol("getDollarZero"),vi=Symbol("getParserConfiguration"),jy=Symbol("getUsageConfiguration"),mf=Symbol("guessLocale"),My=Symbol("guessVersion"),ky=Symbol("parsePositionalNumbers"),gf=Symbol("pkgUp"),An=Symbol("populateParserHintArray"),fo=Symbol("populateParserHintSingleValueDictionary"),yf=Symbol("populateParserHintArrayDictionary"),bf=Symbol("populateParserHintDictionary"),vf=Symbol("sanitizeKey"),_f=Symbol("setKey"),Sf=Symbol("unfreeze"),qy=Symbol("validateAsync"),Dy=Symbol("getCommandInstance"),Ly=Symbol("getContext"),Fy=Symbol("getHasOutput"),Hy=Symbol("getLoggerInstance"),By=Symbol("getParseContext"),Vy=Symbol("getUsageInstance"),Uy=Symbol("getValidationInstance"),Ec=Symbol("hasParseCallback"),Gy=Symbol("isGlobalContext"),_i=Symbol("postProcess"),zy=Symbol("rebase"),Ef=Symbol("reset"),xs=Symbol("runYargsParserAndExecuteCommands"),Of=Symbol("runValidation"),Zy=Symbol("setHasOutput"),Si=Symbol("kTrackManuallySetKeys"),xf=class xf{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,tt.set(this,void 0),pi.set(this,void 0),Ps.set(this,{commands:[],fullCommands:[]}),ir.set(this,null),Gt.set(this,null),hc.set(this,"show-hidden"),$n.set(this,null),di.set(this,!0),mc.set(this,{}),or.set(this,!0),gc.set(this,[]),sr.set(this,void 0),Dr.set(this,{}),zt.set(this,!1),ar.set(this,null),yc.set(this,!0),uo.set(this,void 0),lt.set(this,""),Z.set(this,void 0),bc.set(this,void 0),vc.set(this,{}),Zt.set(this,null),hi.set(this,null),lo.set(this,{}),mi.set(this,{}),wn.set(this,void 0),_c.set(this,!1),ie.set(this,void 0),gi.set(this,!1),yi.set(this,!1),bi.set(this,!1),se.set(this,void 0),Sc.set(this,{}),Lr.set(this,null),Ke.set(this,void 0),B(this,ie,i,"f"),B(this,wn,t,"f"),B(this,pi,r,"f"),B(this,bc,n,"f"),B(this,sr,new fc(this),"f"),this.$0=this[Ny](),this[Ef](),B(this,tt,m(this,tt,"f"),"f"),B(this,se,m(this,se,"f"),"f"),B(this,Ke,m(this,Ke,"f"),"f"),B(this,Z,m(this,Z,"f"),"f"),m(this,Z,"f").showHiddenOpt=m(this,hc,"f"),B(this,uo,this[Cy](),"f")}addHelpOpt(t,r){let n="help";return F("[string|boolean] [string]",[t,r],arguments.length),m(this,ar,"f")&&(this[hf](m(this,ar,"f")),B(this,ar,null,"f")),t===!1&&r===void 0?this:(B(this,ar,typeof t=="string"?t:n,"f"),this.boolean(m(this,ar,"f")),this.describe(m(this,ar,"f"),r||m(this,se,"f").deferY18nLookup("Show help")),this)}help(t,r){return this.addHelpOpt(t,r)}addShowHiddenOpt(t,r){if(F("[string|boolean] [string]",[t,r],arguments.length),t===!1&&r===void 0)return this;let n=typeof t=="string"?t:m(this,hc,"f");return this.boolean(n),this.describe(n,r||m(this,se,"f").deferY18nLookup("Show hidden options")),m(this,Z,"f").showHiddenOpt=n,this}showHidden(t,r){return this.addShowHiddenOpt(t,r)}alias(t,r){return F("<object|string|array> [string|array]",[t,r],arguments.length),this[yf](this.alias.bind(this),"alias",t,r),this}array(t){return F("<array|string>",[t],arguments.length),this[An]("array",t),this[Si](t),this}boolean(t){return F("<array|string>",[t],arguments.length),this[An]("boolean",t),this[Si](t),this}check(t,r){return F("<function> [boolean]",[t,r],arguments.length),this.middleware((n,i)=>fi(()=>t(n,i.getOptions()),s=>(s?(typeof s=="string"||s instanceof Error)&&m(this,se,"f").fail(s.toString(),s):m(this,se,"f").fail(m(this,ie,"f").y18n.__("Argument check failed: %s",t.toString())),n),s=>(m(this,se,"f").fail(s.message?s.message:s.toString(),s),n)),!1,r),this}choices(t,r){return F("<object|string|array> [string|array]",[t,r],arguments.length),this[yf](this.choices.bind(this),"choices",t,r),this}coerce(t,r){if(F("<object|string|array> [function]",[t,r],arguments.length),Array.isArray(t)){if(!r)throw new Me("coerce callback must be provided");for(let n of t)this.coerce(n,r);return this}else if(typeof t=="object"){for(let n of Object.keys(t))this.coerce(n,t[n]);return this}if(!r)throw new Me("coerce callback must be provided");return m(this,Z,"f").key[t]=!0,m(this,sr,"f").addCoerceMiddleware((n,i)=>{let s;return Object.prototype.hasOwnProperty.call(n,t)?fi(()=>(s=i.getAliases(),r(n[t])),c=>{n[t]=c;let u=i.getInternalMethods().getParserConfiguration()["strip-aliased"];if(s[t]&&u!==!0)for(let l of s[t])n[l]=c;return n},c=>{throw new Me(c.message)}):n},t),this}conflicts(t,r){return F("<string|object> [string|array]",[t,r],arguments.length),m(this,Ke,"f").conflicts(t,r),this}config(t="config",r,n){return F("[object|string] [string|function] [function]",[t,r,n],arguments.length),typeof t=="object"&&!Array.isArray(t)?(t=Os(t,m(this,pi,"f"),this[vi]()["deep-merge-config"]||!1,m(this,ie,"f")),m(this,Z,"f").configObjects=(m(this,Z,"f").configObjects||[]).concat(t),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(t,r||m(this,se,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{m(this,Z,"f").config[i]=n||!0}),this)}completion(t,r,n){return F("[string] [string|boolean|function] [function]",[t,r,n],arguments.length),typeof r=="function"&&(n=r,r=void 0),B(this,Gt,t||m(this,Gt,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(m(this,Gt,"f"),r),n&&m(this,ir,"f").registerFunction(n),this}command(t,r,n,i,s,a){return F("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,r,n,i,s,a],arguments.length),m(this,tt,"f").addHandler(t,r,n,i,s,a),this}commands(t,r,n,i,s,a){return this.command(t,r,n,i,s,a)}commandDir(t,r){F("<string> [object]",[t,r],arguments.length);let n=m(this,bc,"f")||m(this,ie,"f").require;return m(this,tt,"f").addDirectory(t,n,m(this,ie,"f").getCallerFile(),r),this}count(t){return F("<array|string>",[t],arguments.length),this[An]("count",t),this[Si](t),this}default(t,r,n){return F("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(of(t,m(this,ie,"f")),m(this,Z,"f").defaultDescription[t]=n),typeof r=="function"&&(of(t,m(this,ie,"f")),m(this,Z,"f").defaultDescription[t]||(m(this,Z,"f").defaultDescription[t]=m(this,se,"f").functionDescription(r)),r=r.call()),this[fo](this.default.bind(this),"default",t,r),this}defaults(t,r,n){return this.default(t,r,n)}demandCommand(t=1,r,n,i){return F("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,r,n,i],arguments.length),typeof r!="number"&&(n=r,r=1/0),this.global("_",!1),m(this,Z,"f").demandedCommands._={min:t,max:r,minMsg:n,maxMsg:i},this}demand(t,r,n){return Array.isArray(r)?(r.forEach(i=>{wt(n,!0,m(this,ie,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof t=="number"?(wt(n,!0,m(this,ie,"f")),this.demandCommand(t,r,n,n)):Array.isArray(t)?t.forEach(i=>{wt(n,!0,m(this,ie,"f")),this.demandOption(i,n)}):typeof n=="string"?this.demandOption(t,n):(n===!0||typeof n>"u")&&this.demandOption(t),this}demandOption(t,r){return F("<object|string|array> [string]",[t,r],arguments.length),this[fo](this.demandOption.bind(this),"demandedOptions",t,r),this}deprecateOption(t,r){return F("<string> [string|boolean]",[t,r],arguments.length),m(this,Z,"f").deprecatedOptions[t]=r,this}describe(t,r){return F("<object|string|array> [string]",[t,r],arguments.length),this[_f](t,!0),m(this,se,"f").describe(t,r),this}detectLocale(t){return F("<boolean>",[t],arguments.length),B(this,di,t,"f"),this}env(t){return F("[string|boolean]",[t],arguments.length),t===!1?delete m(this,Z,"f").envPrefix:m(this,Z,"f").envPrefix=t||"",this}epilogue(t){return F("<string>",[t],arguments.length),m(this,se,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,r){return F("<string|array> [string]",[t,r],arguments.length),Array.isArray(t)?t.forEach(n=>this.example(...n)):m(this,se,"f").example(t,r),this}exit(t,r){B(this,zt,!0,"f"),B(this,$n,r,"f"),m(this,or,"f")&&m(this,ie,"f").process.exit(t)}exitProcess(t=!0){return F("[boolean]",[t],arguments.length),B(this,or,t,"f"),this}fail(t){if(F("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new Me("Invalid first argument. Expected function or boolean 'false'");return m(this,se,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,r){return F("<array> [function]",[t,r],arguments.length),r?m(this,ir,"f").getCompletion(t,r):new Promise((n,i)=>{m(this,ir,"f").getCompletion(t,(s,a)=>{s?i(s):n(a)})})}getDemandedOptions(){return F([],0),m(this,Z,"f").demandedOptions}getDemandedCommands(){return F([],0),m(this,Z,"f").demandedCommands}getDeprecatedOptions(){return F([],0),m(this,Z,"f").deprecatedOptions}getDetectLocale(){return m(this,di,"f")}getExitProcess(){return m(this,or,"f")}getGroups(){return Object.assign({},m(this,Dr,"f"),m(this,mi,"f"))}getHelp(){if(B(this,zt,!0,"f"),!m(this,se,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[xs](m(this,wn,"f"),void 0,void 0,0,!0);if(ke(r))return r.then(()=>m(this,se,"f").help())}let t=m(this,tt,"f").runDefaultBuilderOn(this);if(ke(t))return t.then(()=>m(this,se,"f").help())}return Promise.resolve(m(this,se,"f").help())}getOptions(){return m(this,Z,"f")}getStrict(){return m(this,gi,"f")}getStrictCommands(){return m(this,yi,"f")}getStrictOptions(){return m(this,bi,"f")}global(t,r){return F("<string|array> [boolean]",[t,r],arguments.length),t=[].concat(t),r!==!1?m(this,Z,"f").local=m(this,Z,"f").local.filter(n=>t.indexOf(n)===-1):t.forEach(n=>{m(this,Z,"f").local.includes(n)||m(this,Z,"f").local.push(n)}),this}group(t,r){F("<string|array> <string>",[t,r],arguments.length);let n=m(this,mi,"f")[r]||m(this,Dr,"f")[r];m(this,mi,"f")[r]&&delete m(this,mi,"f")[r];let i={};return m(this,Dr,"f")[r]=(n||[]).concat(t).filter(s=>i[s]?!1:i[s]=!0),this}hide(t){return F("<string>",[t],arguments.length),m(this,Z,"f").hiddenOptions.push(t),this}implies(t,r){return F("<string|object> [number|string|array]",[t,r],arguments.length),m(this,Ke,"f").implies(t,r),this}locale(t){return F("[string]",[t],arguments.length),t===void 0?(this[mf](),m(this,ie,"f").y18n.getLocale()):(B(this,di,!1,"f"),m(this,ie,"f").y18n.setLocale(t),this)}middleware(t,r,n){return m(this,sr,"f").addMiddleware(t,!!r,n)}nargs(t,r){return F("<string|object|array> [number]",[t,r],arguments.length),this[fo](this.nargs.bind(this),"narg",t,r),this}normalize(t){return F("<array|string>",[t],arguments.length),this[An]("normalize",t),this}number(t){return F("<array|string>",[t],arguments.length),this[An]("number",t),this[Si](t),this}option(t,r){if(F("<string|object> [object]",[t,r],arguments.length),typeof t=="object")Object.keys(t).forEach(n=>{this.options(n,t[n])});else{typeof r!="object"&&(r={}),this[Si](t),m(this,Lr,"f")&&(t==="version"||(r==null?void 0:r.alias)==="version")&&this[Ty](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
134
- `),void 0,"versionWarning"),m(this,Z,"f").key[t]=!0,r.alias&&this.alias(t,r.alias);let n=r.deprecate||r.deprecated;n&&this.deprecateOption(t,n);let i=r.demand||r.required||r.require;i&&this.demand(t,i),r.demandOption&&this.demandOption(t,typeof r.demandOption=="string"?r.demandOption:void 0),r.conflicts&&this.conflicts(t,r.conflicts),"default"in r&&this.default(t,r.default),r.implies!==void 0&&this.implies(t,r.implies),r.nargs!==void 0&&this.nargs(t,r.nargs),r.config&&this.config(t,r.configParser),r.normalize&&this.normalize(t),r.choices&&this.choices(t,r.choices),r.coerce&&this.coerce(t,r.coerce),r.group&&this.group(t,r.group),(r.boolean||r.type==="boolean")&&(this.boolean(t),r.alias&&this.boolean(r.alias)),(r.array||r.type==="array")&&(this.array(t),r.alias&&this.array(r.alias)),(r.number||r.type==="number")&&(this.number(t),r.alias&&this.number(r.alias)),(r.string||r.type==="string")&&(this.string(t),r.alias&&this.string(r.alias)),(r.count||r.type==="count")&&this.count(t),typeof r.global=="boolean"&&this.global(t,r.global),r.defaultDescription&&(m(this,Z,"f").defaultDescription[t]=r.defaultDescription),r.skipValidation&&this.skipValidation(t);let s=r.describe||r.description||r.desc,a=m(this,se,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(a,t)||typeof s=="string")&&this.describe(t,s),r.hidden&&this.hide(t),r.requiresArg&&this.requiresArg(t)}return this}options(t,r){return this.option(t,r)}parse(t,r,n){F("[string|array] [function|boolean|object] [function]",[t,r,n],arguments.length),this[Ry](),typeof t>"u"&&(t=m(this,wn,"f")),typeof r=="object"&&(B(this,hi,r,"f"),r=n),typeof r=="function"&&(B(this,Zt,r,"f"),r=!1),r||B(this,wn,t,"f"),m(this,Zt,"f")&&B(this,or,!1,"f");let i=this[xs](t,!!r),s=this.parsed;return m(this,ir,"f").setParsed(this.parsed),ke(i)?i.then(a=>(m(this,Zt,"f")&&m(this,Zt,"f").call(this,m(this,$n,"f"),a,m(this,lt,"f")),a)).catch(a=>{throw m(this,Zt,"f")&&m(this,Zt,"f")(a,this.parsed.argv,m(this,lt,"f")),a}).finally(()=>{this[Sf](),this.parsed=s}):(m(this,Zt,"f")&&m(this,Zt,"f").call(this,m(this,$n,"f"),i,m(this,lt,"f")),this[Sf](),this.parsed=s,i)}parseAsync(t,r,n){let i=this.parse(t,r,n);return ke(i)?i:Promise.resolve(i)}parseSync(t,r,n){let i=this.parse(t,r,n);if(ke(i))throw new Me(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return i}parserConfiguration(t){return F("<object>",[t],arguments.length),B(this,vc,t,"f"),this}pkgConf(t,r){F("<string> [string]",[t,r],arguments.length);let n=null,i=this[gf](r||m(this,pi,"f"));return i[t]&&typeof i[t]=="object"&&(n=Os(i[t],r||m(this,pi,"f"),this[vi]()["deep-merge-config"]||!1,m(this,ie,"f")),m(this,Z,"f").configObjects=(m(this,Z,"f").configObjects||[]).concat(n)),this}positional(t,r){F("<string> <object>",[t,r],arguments.length);let n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];r=Pn(r,(a,c)=>a==="type"&&!["string","number","boolean"].includes(c)?!1:n.includes(a));let i=m(this,Ps,"f").fullCommands[m(this,Ps,"f").fullCommands.length-1],s=i?m(this,tt,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return ao(s).forEach(a=>{let c=s[a];Array.isArray(c)?c.indexOf(t)!==-1&&(r[a]=!0):c[t]&&!(a in r)&&(r[a]=c[t])}),this.group(t,m(this,se,"f").getPositionalGroupName()),this.option(t,r)}recommendCommands(t=!0){return F("[boolean]",[t],arguments.length),B(this,_c,t,"f"),this}required(t,r,n){return this.demand(t,r,n)}require(t,r,n){return this.demand(t,r,n)}requiresArg(t){return F("<array|string|object> [number]",[t],arguments.length),typeof t=="string"&&m(this,Z,"f").narg[t]?this:(this[fo](this.requiresArg.bind(this),"narg",t,NaN),this)}showCompletionScript(t,r){return F("[string] [string]",[t,r],arguments.length),t=t||this.$0,m(this,uo,"f").log(m(this,ir,"f").generateCompletionScript(t,r||m(this,Gt,"f")||"completion")),this}showHelp(t){if(F("[string|function]",[t],arguments.length),B(this,zt,!0,"f"),!m(this,se,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[xs](m(this,wn,"f"),void 0,void 0,0,!0);if(ke(n))return n.then(()=>{m(this,se,"f").showHelp(t)}),this}let r=m(this,tt,"f").runDefaultBuilderOn(this);if(ke(r))return r.then(()=>{m(this,se,"f").showHelp(t)}),this}return m(this,se,"f").showHelp(t),this}scriptName(t){return this.customScriptName=!0,this.$0=t,this}showHelpOnFail(t,r){return F("[boolean|string] [string]",[t,r],arguments.length),m(this,se,"f").showHelpOnFail(t,r),this}showVersion(t){return F("[string|function]",[t],arguments.length),m(this,se,"f").showVersion(t),this}skipValidation(t){return F("<array|string>",[t],arguments.length),this[An]("skipValidation",t),this}strict(t){return F("[boolean]",[t],arguments.length),B(this,gi,t!==!1,"f"),this}strictCommands(t){return F("[boolean]",[t],arguments.length),B(this,yi,t!==!1,"f"),this}strictOptions(t){return F("[boolean]",[t],arguments.length),B(this,bi,t!==!1,"f"),this}string(t){return F("<array|string>",[t],arguments.length),this[An]("string",t),this[Si](t),this}terminalWidth(){return F([],0),m(this,ie,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return F("<object>",[t],arguments.length),B(this,di,!1,"f"),m(this,ie,"f").y18n.updateLocale(t),this}usage(t,r,n,i){if(F("<string|null|undefined> [string|boolean] [function|object] [function]",[t,r,n,i],arguments.length),r!==void 0){if(wt(t,null,m(this,ie,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,r,n,i);throw new Me(".usage() description must start with $0 if being used as alias for .command()")}else return m(this,se,"f").usage(t),this}usageConfiguration(t){return F("<object>",[t],arguments.length),B(this,Sc,t,"f"),this}version(t,r,n){let i="version";if(F("[boolean|string] [string] [string]",[t,r,n],arguments.length),m(this,Lr,"f")&&(this[hf](m(this,Lr,"f")),m(this,se,"f").version(void 0),B(this,Lr,null,"f")),arguments.length===0)n=this[My](),t=i;else if(arguments.length===1){if(t===!1)return this;n=t,t=i}else arguments.length===2&&(n=r,r=void 0);return B(this,Lr,typeof t=="string"?t:i,"f"),r=r||m(this,se,"f").deferY18nLookup("Show version number"),m(this,se,"f").version(n||void 0),this.boolean(m(this,Lr,"f")),this.describe(m(this,Lr,"f"),r),this}wrap(t){return F("<number|null|undefined>",[t],arguments.length),m(this,se,"f").wrap(t),this}[(tt=new WeakMap,pi=new WeakMap,Ps=new WeakMap,ir=new WeakMap,Gt=new WeakMap,hc=new WeakMap,$n=new WeakMap,di=new WeakMap,mc=new WeakMap,or=new WeakMap,gc=new WeakMap,sr=new WeakMap,Dr=new WeakMap,zt=new WeakMap,ar=new WeakMap,yc=new WeakMap,uo=new WeakMap,lt=new WeakMap,Z=new WeakMap,bc=new WeakMap,vc=new WeakMap,Zt=new WeakMap,hi=new WeakMap,lo=new WeakMap,mi=new WeakMap,wn=new WeakMap,_c=new WeakMap,ie=new WeakMap,gi=new WeakMap,yi=new WeakMap,bi=new WeakMap,se=new WeakMap,Sc=new WeakMap,Lr=new WeakMap,Ke=new WeakMap,Iy)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[Cy](){return{log:o((...t)=>{this[Ec]()||console.log(...t),B(this,zt,!0,"f"),m(this,lt,"f").length&&B(this,lt,m(this,lt,"f")+`
135
- `,"f"),B(this,lt,m(this,lt,"f")+t.join(" "),"f")},"log"),error:o((...t)=>{this[Ec]()||console.error(...t),B(this,zt,!0,"f"),m(this,lt,"f").length&&B(this,lt,m(this,lt,"f")+`
136
- `,"f"),B(this,lt,m(this,lt,"f")+t.join(" "),"f")},"error")}}[hf](t){ao(m(this,Z,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=m(this,Z,"f")[r];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete m(this,se,"f").getDescriptions()[t]}[Ty](t,r,n){m(this,mc,"f")[n]||(m(this,ie,"f").process.emitWarning(t,r),m(this,mc,"f")[n]=!0)}[Ry](){m(this,gc,"f").push({options:m(this,Z,"f"),configObjects:m(this,Z,"f").configObjects.slice(0),exitProcess:m(this,or,"f"),groups:m(this,Dr,"f"),strict:m(this,gi,"f"),strictCommands:m(this,yi,"f"),strictOptions:m(this,bi,"f"),completionCommand:m(this,Gt,"f"),output:m(this,lt,"f"),exitError:m(this,$n,"f"),hasOutput:m(this,zt,"f"),parsed:this.parsed,parseFn:m(this,Zt,"f"),parseContext:m(this,hi,"f")}),m(this,se,"f").freeze(),m(this,Ke,"f").freeze(),m(this,tt,"f").freeze(),m(this,sr,"f").freeze()}[Ny](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(m(this,ie,"f").process.argv()[0])?r=m(this,ie,"f").process.argv().slice(1,2):r=m(this,ie,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[zy](m(this,pi,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),m(this,ie,"f").getEnv("_")&&m(this,ie,"f").getProcessArgvBin()===m(this,ie,"f").getEnv("_")&&(t=m(this,ie,"f").getEnv("_").replace(`${m(this,ie,"f").path.dirname(m(this,ie,"f").process.execPath())}/`,"")),t}[vi](){return m(this,vc,"f")}[jy](){return m(this,Sc,"f")}[mf](){if(!m(this,di,"f"))return;let t=m(this,ie,"f").getEnv("LC_ALL")||m(this,ie,"f").getEnv("LC_MESSAGES")||m(this,ie,"f").getEnv("LANG")||m(this,ie,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[My](){return this[gf]().version||"unknown"}[ky](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)m(this,ie,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[gf](t){let r=t||"*";if(m(this,lo,"f")[r])return m(this,lo,"f")[r];let n={};try{let i=t||m(this,ie,"f").mainFilename;!t&&m(this,ie,"f").path.extname(i)&&(i=m(this,ie,"f").path.dirname(i));let s=m(this,ie,"f").findUp(i,(a,c)=>{if(c.includes("package.json"))return"package.json"});wt(s,void 0,m(this,ie,"f")),n=JSON.parse(m(this,ie,"f").readFileSync(s,"utf8"))}catch{}return m(this,lo,"f")[r]=n||{},m(this,lo,"f")[r]}[An](t,r){r=[].concat(r),r.forEach(n=>{n=this[vf](n),m(this,Z,"f")[t].push(n)})}[fo](t,r,n,i){this[bf](t,r,n,i,(s,a,c)=>{m(this,Z,"f")[s][a]=c})}[yf](t,r,n,i){this[bf](t,r,n,i,(s,a,c)=>{m(this,Z,"f")[s][a]=(m(this,Z,"f")[s][a]||[]).concat(c)})}[bf](t,r,n,i,s){if(Array.isArray(n))n.forEach(a=>{t(a,i)});else if((a=>typeof a=="object")(n))for(let a of ao(n))t(a,n[a]);else s(r,this[vf](n),i)}[vf](t){return t==="__proto__"?"___proto___":t}[_f](t,r){return this[fo](this[_f].bind(this),"key",t,r),this}[Sf](){var t,r,n,i,s,a,c,u,l,p,f,d;let h=m(this,gc,"f").pop();wt(h,void 0,m(this,ie,"f"));let y;t=this,r=this,n=this,i=this,s=this,a=this,c=this,u=this,l=this,p=this,f=this,d=this,{options:{set value(b){B(t,Z,b,"f")}}.value,configObjects:y,exitProcess:{set value(b){B(r,or,b,"f")}}.value,groups:{set value(b){B(n,Dr,b,"f")}}.value,output:{set value(b){B(i,lt,b,"f")}}.value,exitError:{set value(b){B(s,$n,b,"f")}}.value,hasOutput:{set value(b){B(a,zt,b,"f")}}.value,parsed:this.parsed,strict:{set value(b){B(c,gi,b,"f")}}.value,strictCommands:{set value(b){B(u,yi,b,"f")}}.value,strictOptions:{set value(b){B(l,bi,b,"f")}}.value,completionCommand:{set value(b){B(p,Gt,b,"f")}}.value,parseFn:{set value(b){B(f,Zt,b,"f")}}.value,parseContext:{set value(b){B(d,hi,b,"f")}}.value}=h,m(this,Z,"f").configObjects=y,m(this,se,"f").unfreeze(),m(this,Ke,"f").unfreeze(),m(this,tt,"f").unfreeze(),m(this,sr,"f").unfreeze()}[qy](t,r){return fi(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[Dy].bind(this),getContext:this[Ly].bind(this),getHasOutput:this[Fy].bind(this),getLoggerInstance:this[Hy].bind(this),getParseContext:this[By].bind(this),getParserConfiguration:this[vi].bind(this),getUsageConfiguration:this[jy].bind(this),getUsageInstance:this[Vy].bind(this),getValidationInstance:this[Uy].bind(this),hasParseCallback:this[Ec].bind(this),isGlobalContext:this[Gy].bind(this),postProcess:this[_i].bind(this),reset:this[Ef].bind(this),runValidation:this[Of].bind(this),runYargsParserAndExecuteCommands:this[xs].bind(this),setHasOutput:this[Zy].bind(this)}}[Dy](){return m(this,tt,"f")}[Ly](){return m(this,Ps,"f")}[Fy](){return m(this,zt,"f")}[Hy](){return m(this,uo,"f")}[By](){return m(this,hi,"f")||{}}[Vy](){return m(this,se,"f")}[Uy](){return m(this,Ke,"f")}[Ec](){return!!m(this,Zt,"f")}[Gy](){return m(this,yc,"f")}[_i](t,r,n,i){return n||ke(t)||(r||(t=this[Iy](t)),(this[vi]()["parse-positional-numbers"]||this[vi]()["parse-positional-numbers"]===void 0)&&(t=this[ky](t)),i&&(t=li(t,this,m(this,sr,"f").getMiddleware(),!1))),t}[Ef](t={}){B(this,Z,m(this,Z,"f")||{},"f");let r={};r.local=m(this,Z,"f").local||[],r.configObjects=m(this,Z,"f").configObjects||[];let n={};r.local.forEach(a=>{n[a]=!0,(t[a]||[]).forEach(c=>{n[c]=!0})}),Object.assign(m(this,mi,"f"),Object.keys(m(this,Dr,"f")).reduce((a,c)=>{let u=m(this,Dr,"f")[c].filter(l=>!(l in n));return u.length>0&&(a[c]=u),a},{})),B(this,Dr,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],s=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(a=>{r[a]=(m(this,Z,"f")[a]||[]).filter(c=>!n[c])}),s.forEach(a=>{r[a]=Pn(m(this,Z,"f")[a],c=>!n[c])}),r.envPrefix=m(this,Z,"f").envPrefix,B(this,Z,r,"f"),B(this,se,m(this,se,"f")?m(this,se,"f").reset(n):Sy(this,m(this,ie,"f")),"f"),B(this,Ke,m(this,Ke,"f")?m(this,Ke,"f").reset(n):wy(this,m(this,se,"f"),m(this,ie,"f")),"f"),B(this,tt,m(this,tt,"f")?m(this,tt,"f").reset():by(m(this,se,"f"),m(this,Ke,"f"),m(this,sr,"f"),m(this,ie,"f")),"f"),m(this,ir,"f")||B(this,ir,Py(this,m(this,se,"f"),m(this,tt,"f"),m(this,ie,"f")),"f"),m(this,sr,"f").reset(),B(this,Gt,null,"f"),B(this,lt,"","f"),B(this,$n,null,"f"),B(this,zt,!1,"f"),this.parsed=!1,this}[zy](t,r){return m(this,ie,"f").path.relative(t,r)}[xs](t,r,n,i=0,s=!1){let a=!!n||s;t=t||m(this,wn,"f"),m(this,Z,"f").__=m(this,ie,"f").y18n.__,m(this,Z,"f").configuration=this[vi]();let c=!!m(this,Z,"f").configuration["populate--"],u=Object.assign({},m(this,Z,"f").configuration,{"populate--":!0}),l=m(this,ie,"f").Parser.detailed(t,Object.assign({},m(this,Z,"f"),{configuration:{"parse-positional-numbers":!1,...u}})),p=Object.assign(l.argv,m(this,hi,"f")),f,d=l.aliases,h=!1,y=!1;Object.keys(p).forEach(b=>{b===m(this,ar,"f")&&p[b]?h=!0:b===m(this,Lr,"f")&&p[b]&&(y=!0)}),p.$0=this.$0,this.parsed=l,i===0&&m(this,se,"f").clearCachedHelpMessage();try{if(this[mf](),r)return this[_i](p,c,!!n,!1);m(this,ar,"f")&&[m(this,ar,"f")].concat(d[m(this,ar,"f")]||[]).filter(C=>C.length>1).includes(""+p._[p._.length-1])&&(p._.pop(),h=!0),B(this,yc,!1,"f");let b=m(this,tt,"f").getCommands(),g=m(this,ir,"f").completionKey in p,P=h||g||s;if(p._.length){if(b.length){let $;for(let C=i||0,T;p._[C]!==void 0;C++)if(T=String(p._[C]),b.includes(T)&&T!==m(this,Gt,"f")){let A=m(this,tt,"f").runCommand(T,this,l,C+1,s,h||y||s);return this[_i](A,c,!!n,!1)}else if(!$&&T!==m(this,Gt,"f")){$=T;break}!m(this,tt,"f").hasDefaultCommand()&&m(this,_c,"f")&&$&&!P&&m(this,Ke,"f").recommendCommands($,b)}m(this,Gt,"f")&&p._.includes(m(this,Gt,"f"))&&!g&&(m(this,or,"f")&&xn(!0),this.showCompletionScript(),this.exit(0))}if(m(this,tt,"f").hasDefaultCommand()&&!P){let $=m(this,tt,"f").runCommand(null,this,l,0,s,h||y||s);return this[_i]($,c,!!n,!1)}if(g){m(this,or,"f")&&xn(!0),t=[].concat(t);let $=t.slice(t.indexOf(`--${m(this,ir,"f").completionKey}`)+1);return m(this,ir,"f").getCompletion($,(C,T)=>{if(C)throw new Me(C.message);(T||[]).forEach(A=>{m(this,uo,"f").log(A)}),this.exit(0)}),this[_i](p,!c,!!n,!1)}if(m(this,zt,"f")||(h?(m(this,or,"f")&&xn(!0),a=!0,this.showHelp("log"),this.exit(0)):y&&(m(this,or,"f")&&xn(!0),a=!0,m(this,se,"f").showVersion("log"),this.exit(0))),!a&&m(this,Z,"f").skipValidation.length>0&&(a=Object.keys(p).some($=>m(this,Z,"f").skipValidation.indexOf($)>=0&&p[$]===!0)),!a){if(l.error)throw new Me(l.error.message);if(!g){let $=this[Of](d,{},l.error);n||(f=li(p,this,m(this,sr,"f").getMiddleware(),!0)),f=this[qy]($,f??p),ke(f)&&!n&&(f=f.then(()=>li(p,this,m(this,sr,"f").getMiddleware(),!1)))}}}catch(b){if(b instanceof Me)m(this,se,"f").fail(b.message,b);else throw b}return this[_i](f??p,c,!!n,!0)}[Of](t,r,n,i){let s={...this.getDemandedOptions()};return a=>{if(n)throw new Me(n.message);m(this,Ke,"f").nonOptionCount(a),m(this,Ke,"f").requiredArguments(a,s);let c=!1;m(this,yi,"f")&&(c=m(this,Ke,"f").unknownCommands(a)),m(this,gi,"f")&&!c?m(this,Ke,"f").unknownArguments(a,t,r,!!i):m(this,bi,"f")&&m(this,Ke,"f").unknownArguments(a,t,{},!1,!1),m(this,Ke,"f").limitedChoices(a),m(this,Ke,"f").implications(a),m(this,Ke,"f").conflicting(a)}}[Zy](){B(this,zt,!0,"f")}[Si](t){if(typeof t=="string")m(this,Z,"f").key[t]=!0;else for(let r of t)m(this,Z,"f").key[r]=!0}};o(xf,"YargsInstance");var Pf=xf;function vy(e){return!!e&&typeof e.getInternalMethods=="function"}o(vy,"isYargsInstance");var N$=Wy(nf),Ky=N$;var ws="AppRestClient",Oc={query:"AppQueryOptions",infiniteQuery:"AppInfiniteQueryOptions",mutation:"AppMutationOptions"},$f="src/data",wf="@/data",In={appRestClient:{template:"@/util/rest/clients/app-rest-client",monorepoTemplate:"@/clients/app-rest-client"},queryTypes:{template:"@/types/react-query",monorepoTemplate:"@povio/utils/types/react-query"},errorHandling:{template:"@/util/vendor/error-handling",monorepoTemplate:"@povio/utils/vendor/error-handling"}},$s={ErrorHandler:"ErrorHandler",SharedErrorHandler:"SharedErrorHandler"},Yy={bindings:[$s.ErrorHandler,$s.SharedErrorHandler],from:"@/util/vendor/error-handling"};var Pc={reactQueryTypes:{fileName:"react-query.types",extension:"ts"},restClient:{fileName:"rest-client",extension:"ts"},restInterceptor:{fileName:"rest-interceptor",extension:"ts"}},xc={fileName:"app-rest-client",extension:"ts"},Af="QueryModule",$c={fileName:"queryModules",extension:"ts"},Qy={fileName:"queryConfig.context",extension:"tsx"},po={optionsType:"MutationEffectsOptions",hookName:"useMutationEffects",runFunctionName:"runMutationEffects"},wc={fileName:"useMutationEffects",extension:"ts"},Fr={name:"zod",properties:{sortingString:"sortingString",parse:"parse"}},Ac={fileName:"zod",extension:"ts"};var Jy="Schema",Xy="Enum",eb="Body",tb="Param",rb="Response",nb="ErrorResponse",As="z.void()",Ic="z.instanceof(Blob)",Is="z.enum",Cc="z.string()",ho={bindings:["z"],from:"zod"};var $e={input:"",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],excludePathRegex:"",excludeRedundantZodSchemas:!0,tsNamespaces:!0,importPath:"ts",configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"},acl:{outputFileNameSuffix:"acl",namespaceSuffix:"Acl"}},standalone:!1,baseUrl:"",schemaSuffix:Jy,enumSuffix:Xy,withDefaultValues:!0,extractEnums:!0,replaceOptionalWithNullish:!1,restClientImportPath:In.appRestClient.template,errorHandlingImportPath:In.errorHandling.template,removeOperationPrefixEndingWith:"Controller_",parseRequestParams:!1,queryTypesImportPath:In.queryTypes.template,axiosRequestConfig:!1,infiniteQueries:!1,mutationEffects:!0};var ib=o((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),ob=o((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),sb=o((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),Be={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]}},C6=Object.keys(Be.modifier),j$=Object.keys(Be.color),M$=Object.keys(Be.bgColor),T6=[...j$,...M$];function k$(){let e=new Map;for(let[t,r]of Object.entries(Be)){for(let[n,i]of Object.entries(r))Be[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=Be[n],e.set(i[0],i[1]);Object.defineProperty(Be,t,{value:r,enumerable:!1})}return Object.defineProperty(Be,"codes",{value:e,enumerable:!1}),Be.color.close="\x1B[39m",Be.bgColor.close="\x1B[49m",Be.color.ansi=ib(),Be.color.ansi256=ob(),Be.color.ansi16m=sb(),Be.bgColor.ansi=ib(10),Be.bgColor.ansi256=ob(10),Be.bgColor.ansi16m=sb(10),Object.defineProperties(Be,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:o(t=>Be.rgbToAnsi256(...Be.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 s=Math.max(r,n,i)*2;if(s===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:o((t,r,n)=>Be.ansi256ToAnsi(Be.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:o(t=>Be.ansi256ToAnsi(Be.hexToAnsi256(t)),"value"),enumerable:!1}}),Be}o(k$,"assembleStyles");var q$=k$(),Er=q$;var Rc=mt(require("process"),1),cb=mt(require("os"),1),If=mt(require("tty"),1);function cr(e,t=globalThis.Deno?globalThis.Deno.args:Rc.default.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}o(cr,"hasFlag");var{env:Ge}=Rc.default,Tc;cr("no-color")||cr("no-colors")||cr("color=false")||cr("color=never")?Tc=0:(cr("color")||cr("colors")||cr("color=true")||cr("color=always"))&&(Tc=1);function D$(){if("FORCE_COLOR"in Ge)return Ge.FORCE_COLOR==="true"?1:Ge.FORCE_COLOR==="false"?0:Ge.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Ge.FORCE_COLOR,10),3)}o(D$,"envForceColor");function L$(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}o(L$,"translateLevel");function F$(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=D$();n!==void 0&&(Tc=n);let i=r?Tc:n;if(i===0)return 0;if(r){if(cr("color=16m")||cr("color=full")||cr("color=truecolor"))return 3;if(cr("color=256"))return 2}if("TF_BUILD"in Ge&&"AGENT_NAME"in Ge)return 1;if(e&&!t&&i===void 0)return 0;let s=i||0;if(Ge.TERM==="dumb")return s;if(Rc.default.platform==="win32"){let a=cb.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Ge)return"GITHUB_ACTIONS"in Ge||"GITEA_ACTIONS"in Ge?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in Ge)||Ge.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in Ge)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ge.TEAMCITY_VERSION)?1:0;if(Ge.COLORTERM==="truecolor"||Ge.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Ge){let a=Number.parseInt((Ge.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ge.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ge.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ge.TERM)||"COLORTERM"in Ge?1:s}o(F$,"_supportsColor");function ab(e,t={}){let r=F$(e,{streamIsTTY:e&&e.isTTY,...t});return L$(r)}o(ab,"createSupportsColor");var H$={stdout:ab({isTTY:If.default.isatty(1)}),stderr:ab({isTTY:If.default.isatty(2)})},ub=H$;function lb(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,a="";do a+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return a+=e.slice(s),a}o(lb,"stringReplaceAll");function fb(e,t,r,n){let i=0,s="";do{let a=e[n-1]==="\r";s+=e.slice(i,a?n-1:n)+t+(a?`\r
131
+ `)}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(h).length,Object.keys(h).join(", ")+b))}},"requiredArguments"),s.unknownArguments=o(function(f,d,h,y,b=!0){var g;let P=e.getInternalMethods().getCommandInstance().getCommands(),$=[],C=e.getInternalMethods().getContext();if(Object.keys(f).forEach(T=>{!Ny.includes(T)&&!Object.prototype.hasOwnProperty.call(h,T)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),T)&&!s.isValidAndSomeAliasIsNotNew(T,d)&&$.push(T)}),b&&(C.commands.length>0||P.length>0||y)&&f._.slice(C.commands.length).forEach(T=>{P.includes(""+T)||$.push(""+T)}),b){let A=((g=e.getDemandedCommands()._)===null||g===void 0?void 0:g.max)||0,te=C.commands.length+A;te<f._.length&&f._.slice(te).forEach(J=>{J=String(J),!C.commands.includes(J)&&!$.includes(J)&&$.push(J)})}$.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",$.length,$.map(T=>T.trim()?T:`"${T}"`).join(", ")))},"unknownArguments"),s.unknownCommands=o(function(f){let d=e.getInternalMethods().getCommandInstance().getCommands(),h=[],y=e.getInternalMethods().getContext();return(y.commands.length>0||d.length>0)&&f._.slice(y.commands.length).forEach(b=>{d.includes(""+b)||h.push(""+b)}),h.length>0?(t.fail(i("Unknown command: %s","Unknown commands: %s",h.length,h.join(", "))),!0):!1},"unknownCommands"),s.isValidAndSomeAliasIsNotNew=o(function(f,d){if(!Object.prototype.hasOwnProperty.call(d,f))return!1;let h=e.parsed.newAliases;return[f,...d[f]].some(y=>!Object.prototype.hasOwnProperty.call(h,y)||!h[f])},"isValidAndSomeAliasIsNotNew"),s.limitedChoices=o(function(f){let d=e.getOptions(),h={};if(!Object.keys(d.choices).length)return;Object.keys(f).forEach(g=>{Ny.indexOf(g)===-1&&Object.prototype.hasOwnProperty.call(d.choices,g)&&[].concat(f[g]).forEach(P=>{d.choices[g].indexOf(P)===-1&&P!==void 0&&(h[g]=(h[g]||[]).concat(P))})});let y=Object.keys(h);if(!y.length)return;let b=n("Invalid values:");y.forEach(g=>{b+=`
132
+ ${n("Argument: %s, Given: %s, Choices: %s",g,t.stringifiedValues(h[g]),t.stringifiedValues(d.choices[g]))}`}),t.fail(b)},"limitedChoices");let a={};s.implies=o(function(f,d){F("<string|object> [array|number|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{s.implies(h,f[h])}):(e.global(f),a[f]||(a[f]=[]),Array.isArray(d)?d.forEach(h=>s.implies(f,h)):(At(d,void 0,r),a[f].push(d)))},"implies"),s.getImplied=o(function(){return a},"getImplied");function c(p,f){let d=Number(f);return f=isNaN(d)?f:d,typeof f=="number"?f=p._.length>=f:f.match(/^--no-.+/)?(f=f.match(/^--no-(.+)/)[1],f=!Object.prototype.hasOwnProperty.call(p,f)):f=Object.prototype.hasOwnProperty.call(p,f),f}o(c,"keyExists"),s.implications=o(function(f){let d=[];if(Object.keys(a).forEach(h=>{let y=h;(a[h]||[]).forEach(b=>{let g=y,P=b;g=c(f,g),b=c(f,b),g&&!b&&d.push(` ${y} -> ${P}`)})}),d.length){let h=`${n("Implications failed:")}
133
+ `;d.forEach(y=>{h+=y}),t.fail(h)}},"implications");let u={};s.conflicts=o(function(f,d){F("<string|object> [array|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{s.conflicts(h,f[h])}):(e.global(f),u[f]||(u[f]=[]),Array.isArray(d)?d.forEach(h=>s.conflicts(f,h)):u[f].push(d))},"conflicts"),s.getConflicting=()=>u,s.conflicting=o(function(f){Object.keys(f).forEach(d=>{u[d]&&u[d].forEach(h=>{h&&f[d]!==void 0&&f[h]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",d,h))})}),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(u).forEach(d=>{u[d].forEach(h=>{h&&f[r.Parser.camelCase(d)]!==void 0&&f[r.Parser.camelCase(h)]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",d,h))})})},"conflictingFn"),s.recommendCommands=o(function(f,d){d=d.sort((g,P)=>P.length-g.length);let y=null,b=1/0;for(let g=0,P;(P=d[g])!==void 0;g++){let $=Ry(f,P);$<=3&&$<b&&(b=$,y=P)}y&&t.fail(n("Did you mean %s?",y))},"recommendCommands"),s.reset=o(function(f){return a=$n(a,d=>!f[d]),u=$n(u,d=>!f[d]),s},"reset");let l=[];return s.freeze=o(function(){l.push({implied:a,conflicting:u})},"freeze"),s.unfreeze=o(function(){let f=l.pop();At(f,void 0,r),{implied:a,conflicting:u}=f},"unfreeze"),s}o(jy,"validation");var _f=[],xs;function $s(e,t,r,n){xs=n;let i={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!="string")return i;let s=/\.json|\..*rc$/.test(e.extends),a=null;if(s)a=H$(t,e.extends);else try{a=require.resolve(e.extends)}catch{return e}F$(a),_f.push(a),i=s?JSON.parse(xs.readFileSync(a,"utf8")):require(e.extends),delete e.extends,i=$s(i,xs.path.dirname(a),r,xs)}return _f=[],r?My(i,e):Object.assign({},i,e)}o($s,"applyExtends");function F$(e){if(_f.indexOf(e)>-1)throw new ke(`Circular extended configurations: '${e}'.`)}o(F$,"checkForCircularExtends");function H$(e,t){return xs.path.resolve(e,t)}o(H$,"getPathToDefaultConfig");function My(e,t){let r={};function n(i){return i&&typeof i=="object"&&!Array.isArray(i)}o(n,"isObject"),Object.assign(r,e);for(let i of Object.keys(t))n(t[i])&&n(r[i])?r[i]=My(e[i],t[i]):r[i]=t[i];return r}o(My,"mergeDeep");var B=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},m=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},tt,mi,ws,or,zt,yc,An,gi,bc,sr,vc,ar,Fr,Zt,cr,_c,ho,lt,Z,Sc,Ec,Wt,yi,mo,bi,In,Oc,ie,vi,_i,Si,se,Pc,Hr,Ke;function tb(e){return(t=[],r=e.process.cwd(),n)=>{let i=new Tf(t,r,n,e);return Object.defineProperty(i,"argv",{get:o(()=>i.parse(),"get"),enumerable:!0}),i.help(),i.version(),i}}o(tb,"YargsFactory");var ky=Symbol("copyDoubleDash"),qy=Symbol("copyDoubleDash"),Sf=Symbol("deleteFromParserHintObject"),Dy=Symbol("emitWarning"),Ly=Symbol("freeze"),Fy=Symbol("getDollarZero"),Ei=Symbol("getParserConfiguration"),Hy=Symbol("getUsageConfiguration"),Ef=Symbol("guessLocale"),By=Symbol("guessVersion"),Vy=Symbol("parsePositionalNumbers"),Of=Symbol("pkgUp"),Cn=Symbol("populateParserHintArray"),go=Symbol("populateParserHintSingleValueDictionary"),Pf=Symbol("populateParserHintArrayDictionary"),xf=Symbol("populateParserHintDictionary"),$f=Symbol("sanitizeKey"),wf=Symbol("setKey"),Af=Symbol("unfreeze"),Uy=Symbol("validateAsync"),Gy=Symbol("getCommandInstance"),zy=Symbol("getContext"),Zy=Symbol("getHasOutput"),Wy=Symbol("getLoggerInstance"),Ky=Symbol("getParseContext"),Yy=Symbol("getUsageInstance"),Qy=Symbol("getValidationInstance"),xc=Symbol("hasParseCallback"),Jy=Symbol("isGlobalContext"),Oi=Symbol("postProcess"),Xy=Symbol("rebase"),If=Symbol("reset"),As=Symbol("runYargsParserAndExecuteCommands"),Cf=Symbol("runValidation"),eb=Symbol("setHasOutput"),Pi=Symbol("kTrackManuallySetKeys"),Rf=class Rf{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,tt.set(this,void 0),mi.set(this,void 0),ws.set(this,{commands:[],fullCommands:[]}),or.set(this,null),zt.set(this,null),yc.set(this,"show-hidden"),An.set(this,null),gi.set(this,!0),bc.set(this,{}),sr.set(this,!0),vc.set(this,[]),ar.set(this,void 0),Fr.set(this,{}),Zt.set(this,!1),cr.set(this,null),_c.set(this,!0),ho.set(this,void 0),lt.set(this,""),Z.set(this,void 0),Sc.set(this,void 0),Ec.set(this,{}),Wt.set(this,null),yi.set(this,null),mo.set(this,{}),bi.set(this,{}),In.set(this,void 0),Oc.set(this,!1),ie.set(this,void 0),vi.set(this,!1),_i.set(this,!1),Si.set(this,!1),se.set(this,void 0),Pc.set(this,{}),Hr.set(this,null),Ke.set(this,void 0),B(this,ie,i,"f"),B(this,In,t,"f"),B(this,mi,r,"f"),B(this,Sc,n,"f"),B(this,ar,new hc(this),"f"),this.$0=this[Fy](),this[If](),B(this,tt,m(this,tt,"f"),"f"),B(this,se,m(this,se,"f"),"f"),B(this,Ke,m(this,Ke,"f"),"f"),B(this,Z,m(this,Z,"f"),"f"),m(this,Z,"f").showHiddenOpt=m(this,yc,"f"),B(this,ho,this[qy](),"f")}addHelpOpt(t,r){let n="help";return F("[string|boolean] [string]",[t,r],arguments.length),m(this,cr,"f")&&(this[Sf](m(this,cr,"f")),B(this,cr,null,"f")),t===!1&&r===void 0?this:(B(this,cr,typeof t=="string"?t:n,"f"),this.boolean(m(this,cr,"f")),this.describe(m(this,cr,"f"),r||m(this,se,"f").deferY18nLookup("Show help")),this)}help(t,r){return this.addHelpOpt(t,r)}addShowHiddenOpt(t,r){if(F("[string|boolean] [string]",[t,r],arguments.length),t===!1&&r===void 0)return this;let n=typeof t=="string"?t:m(this,yc,"f");return this.boolean(n),this.describe(n,r||m(this,se,"f").deferY18nLookup("Show hidden options")),m(this,Z,"f").showHiddenOpt=n,this}showHidden(t,r){return this.addShowHiddenOpt(t,r)}alias(t,r){return F("<object|string|array> [string|array]",[t,r],arguments.length),this[Pf](this.alias.bind(this),"alias",t,r),this}array(t){return F("<array|string>",[t],arguments.length),this[Cn]("array",t),this[Pi](t),this}boolean(t){return F("<array|string>",[t],arguments.length),this[Cn]("boolean",t),this[Pi](t),this}check(t,r){return F("<function> [boolean]",[t,r],arguments.length),this.middleware((n,i)=>hi(()=>t(n,i.getOptions()),s=>(s?(typeof s=="string"||s instanceof Error)&&m(this,se,"f").fail(s.toString(),s):m(this,se,"f").fail(m(this,ie,"f").y18n.__("Argument check failed: %s",t.toString())),n),s=>(m(this,se,"f").fail(s.message?s.message:s.toString(),s),n)),!1,r),this}choices(t,r){return F("<object|string|array> [string|array]",[t,r],arguments.length),this[Pf](this.choices.bind(this),"choices",t,r),this}coerce(t,r){if(F("<object|string|array> [function]",[t,r],arguments.length),Array.isArray(t)){if(!r)throw new ke("coerce callback must be provided");for(let n of t)this.coerce(n,r);return this}else if(typeof t=="object"){for(let n of Object.keys(t))this.coerce(n,t[n]);return this}if(!r)throw new ke("coerce callback must be provided");return m(this,Z,"f").key[t]=!0,m(this,ar,"f").addCoerceMiddleware((n,i)=>{let s;return Object.prototype.hasOwnProperty.call(n,t)?hi(()=>(s=i.getAliases(),r(n[t])),c=>{n[t]=c;let u=i.getInternalMethods().getParserConfiguration()["strip-aliased"];if(s[t]&&u!==!0)for(let l of s[t])n[l]=c;return n},c=>{throw new ke(c.message)}):n},t),this}conflicts(t,r){return F("<string|object> [string|array]",[t,r],arguments.length),m(this,Ke,"f").conflicts(t,r),this}config(t="config",r,n){return F("[object|string] [string|function] [function]",[t,r,n],arguments.length),typeof t=="object"&&!Array.isArray(t)?(t=$s(t,m(this,mi,"f"),this[Ei]()["deep-merge-config"]||!1,m(this,ie,"f")),m(this,Z,"f").configObjects=(m(this,Z,"f").configObjects||[]).concat(t),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(t,r||m(this,se,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{m(this,Z,"f").config[i]=n||!0}),this)}completion(t,r,n){return F("[string] [string|boolean|function] [function]",[t,r,n],arguments.length),typeof r=="function"&&(n=r,r=void 0),B(this,zt,t||m(this,zt,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(m(this,zt,"f"),r),n&&m(this,or,"f").registerFunction(n),this}command(t,r,n,i,s,a){return F("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,r,n,i,s,a],arguments.length),m(this,tt,"f").addHandler(t,r,n,i,s,a),this}commands(t,r,n,i,s,a){return this.command(t,r,n,i,s,a)}commandDir(t,r){F("<string> [object]",[t,r],arguments.length);let n=m(this,Sc,"f")||m(this,ie,"f").require;return m(this,tt,"f").addDirectory(t,n,m(this,ie,"f").getCallerFile(),r),this}count(t){return F("<array|string>",[t],arguments.length),this[Cn]("count",t),this[Pi](t),this}default(t,r,n){return F("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(pf(t,m(this,ie,"f")),m(this,Z,"f").defaultDescription[t]=n),typeof r=="function"&&(pf(t,m(this,ie,"f")),m(this,Z,"f").defaultDescription[t]||(m(this,Z,"f").defaultDescription[t]=m(this,se,"f").functionDescription(r)),r=r.call()),this[go](this.default.bind(this),"default",t,r),this}defaults(t,r,n){return this.default(t,r,n)}demandCommand(t=1,r,n,i){return F("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,r,n,i],arguments.length),typeof r!="number"&&(n=r,r=1/0),this.global("_",!1),m(this,Z,"f").demandedCommands._={min:t,max:r,minMsg:n,maxMsg:i},this}demand(t,r,n){return Array.isArray(r)?(r.forEach(i=>{At(n,!0,m(this,ie,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof t=="number"?(At(n,!0,m(this,ie,"f")),this.demandCommand(t,r,n,n)):Array.isArray(t)?t.forEach(i=>{At(n,!0,m(this,ie,"f")),this.demandOption(i,n)}):typeof n=="string"?this.demandOption(t,n):(n===!0||typeof n>"u")&&this.demandOption(t),this}demandOption(t,r){return F("<object|string|array> [string]",[t,r],arguments.length),this[go](this.demandOption.bind(this),"demandedOptions",t,r),this}deprecateOption(t,r){return F("<string> [string|boolean]",[t,r],arguments.length),m(this,Z,"f").deprecatedOptions[t]=r,this}describe(t,r){return F("<object|string|array> [string]",[t,r],arguments.length),this[wf](t,!0),m(this,se,"f").describe(t,r),this}detectLocale(t){return F("<boolean>",[t],arguments.length),B(this,gi,t,"f"),this}env(t){return F("[string|boolean]",[t],arguments.length),t===!1?delete m(this,Z,"f").envPrefix:m(this,Z,"f").envPrefix=t||"",this}epilogue(t){return F("<string>",[t],arguments.length),m(this,se,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,r){return F("<string|array> [string]",[t,r],arguments.length),Array.isArray(t)?t.forEach(n=>this.example(...n)):m(this,se,"f").example(t,r),this}exit(t,r){B(this,Zt,!0,"f"),B(this,An,r,"f"),m(this,sr,"f")&&m(this,ie,"f").process.exit(t)}exitProcess(t=!0){return F("[boolean]",[t],arguments.length),B(this,sr,t,"f"),this}fail(t){if(F("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new ke("Invalid first argument. Expected function or boolean 'false'");return m(this,se,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,r){return F("<array> [function]",[t,r],arguments.length),r?m(this,or,"f").getCompletion(t,r):new Promise((n,i)=>{m(this,or,"f").getCompletion(t,(s,a)=>{s?i(s):n(a)})})}getDemandedOptions(){return F([],0),m(this,Z,"f").demandedOptions}getDemandedCommands(){return F([],0),m(this,Z,"f").demandedCommands}getDeprecatedOptions(){return F([],0),m(this,Z,"f").deprecatedOptions}getDetectLocale(){return m(this,gi,"f")}getExitProcess(){return m(this,sr,"f")}getGroups(){return Object.assign({},m(this,Fr,"f"),m(this,bi,"f"))}getHelp(){if(B(this,Zt,!0,"f"),!m(this,se,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[As](m(this,In,"f"),void 0,void 0,0,!0);if(qe(r))return r.then(()=>m(this,se,"f").help())}let t=m(this,tt,"f").runDefaultBuilderOn(this);if(qe(t))return t.then(()=>m(this,se,"f").help())}return Promise.resolve(m(this,se,"f").help())}getOptions(){return m(this,Z,"f")}getStrict(){return m(this,vi,"f")}getStrictCommands(){return m(this,_i,"f")}getStrictOptions(){return m(this,Si,"f")}global(t,r){return F("<string|array> [boolean]",[t,r],arguments.length),t=[].concat(t),r!==!1?m(this,Z,"f").local=m(this,Z,"f").local.filter(n=>t.indexOf(n)===-1):t.forEach(n=>{m(this,Z,"f").local.includes(n)||m(this,Z,"f").local.push(n)}),this}group(t,r){F("<string|array> <string>",[t,r],arguments.length);let n=m(this,bi,"f")[r]||m(this,Fr,"f")[r];m(this,bi,"f")[r]&&delete m(this,bi,"f")[r];let i={};return m(this,Fr,"f")[r]=(n||[]).concat(t).filter(s=>i[s]?!1:i[s]=!0),this}hide(t){return F("<string>",[t],arguments.length),m(this,Z,"f").hiddenOptions.push(t),this}implies(t,r){return F("<string|object> [number|string|array]",[t,r],arguments.length),m(this,Ke,"f").implies(t,r),this}locale(t){return F("[string]",[t],arguments.length),t===void 0?(this[Ef](),m(this,ie,"f").y18n.getLocale()):(B(this,gi,!1,"f"),m(this,ie,"f").y18n.setLocale(t),this)}middleware(t,r,n){return m(this,ar,"f").addMiddleware(t,!!r,n)}nargs(t,r){return F("<string|object|array> [number]",[t,r],arguments.length),this[go](this.nargs.bind(this),"narg",t,r),this}normalize(t){return F("<array|string>",[t],arguments.length),this[Cn]("normalize",t),this}number(t){return F("<array|string>",[t],arguments.length),this[Cn]("number",t),this[Pi](t),this}option(t,r){if(F("<string|object> [object]",[t,r],arguments.length),typeof t=="object")Object.keys(t).forEach(n=>{this.options(n,t[n])});else{typeof r!="object"&&(r={}),this[Pi](t),m(this,Hr,"f")&&(t==="version"||(r==null?void 0:r.alias)==="version")&&this[Dy](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
134
+ `),void 0,"versionWarning"),m(this,Z,"f").key[t]=!0,r.alias&&this.alias(t,r.alias);let n=r.deprecate||r.deprecated;n&&this.deprecateOption(t,n);let i=r.demand||r.required||r.require;i&&this.demand(t,i),r.demandOption&&this.demandOption(t,typeof r.demandOption=="string"?r.demandOption:void 0),r.conflicts&&this.conflicts(t,r.conflicts),"default"in r&&this.default(t,r.default),r.implies!==void 0&&this.implies(t,r.implies),r.nargs!==void 0&&this.nargs(t,r.nargs),r.config&&this.config(t,r.configParser),r.normalize&&this.normalize(t),r.choices&&this.choices(t,r.choices),r.coerce&&this.coerce(t,r.coerce),r.group&&this.group(t,r.group),(r.boolean||r.type==="boolean")&&(this.boolean(t),r.alias&&this.boolean(r.alias)),(r.array||r.type==="array")&&(this.array(t),r.alias&&this.array(r.alias)),(r.number||r.type==="number")&&(this.number(t),r.alias&&this.number(r.alias)),(r.string||r.type==="string")&&(this.string(t),r.alias&&this.string(r.alias)),(r.count||r.type==="count")&&this.count(t),typeof r.global=="boolean"&&this.global(t,r.global),r.defaultDescription&&(m(this,Z,"f").defaultDescription[t]=r.defaultDescription),r.skipValidation&&this.skipValidation(t);let s=r.describe||r.description||r.desc,a=m(this,se,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(a,t)||typeof s=="string")&&this.describe(t,s),r.hidden&&this.hide(t),r.requiresArg&&this.requiresArg(t)}return this}options(t,r){return this.option(t,r)}parse(t,r,n){F("[string|array] [function|boolean|object] [function]",[t,r,n],arguments.length),this[Ly](),typeof t>"u"&&(t=m(this,In,"f")),typeof r=="object"&&(B(this,yi,r,"f"),r=n),typeof r=="function"&&(B(this,Wt,r,"f"),r=!1),r||B(this,In,t,"f"),m(this,Wt,"f")&&B(this,sr,!1,"f");let i=this[As](t,!!r),s=this.parsed;return m(this,or,"f").setParsed(this.parsed),qe(i)?i.then(a=>(m(this,Wt,"f")&&m(this,Wt,"f").call(this,m(this,An,"f"),a,m(this,lt,"f")),a)).catch(a=>{throw m(this,Wt,"f")&&m(this,Wt,"f")(a,this.parsed.argv,m(this,lt,"f")),a}).finally(()=>{this[Af](),this.parsed=s}):(m(this,Wt,"f")&&m(this,Wt,"f").call(this,m(this,An,"f"),i,m(this,lt,"f")),this[Af](),this.parsed=s,i)}parseAsync(t,r,n){let i=this.parse(t,r,n);return qe(i)?i:Promise.resolve(i)}parseSync(t,r,n){let i=this.parse(t,r,n);if(qe(i))throw new ke(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return i}parserConfiguration(t){return F("<object>",[t],arguments.length),B(this,Ec,t,"f"),this}pkgConf(t,r){F("<string> [string]",[t,r],arguments.length);let n=null,i=this[Of](r||m(this,mi,"f"));return i[t]&&typeof i[t]=="object"&&(n=$s(i[t],r||m(this,mi,"f"),this[Ei]()["deep-merge-config"]||!1,m(this,ie,"f")),m(this,Z,"f").configObjects=(m(this,Z,"f").configObjects||[]).concat(n)),this}positional(t,r){F("<string> <object>",[t,r],arguments.length);let n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];r=$n(r,(a,c)=>a==="type"&&!["string","number","boolean"].includes(c)?!1:n.includes(a));let i=m(this,ws,"f").fullCommands[m(this,ws,"f").fullCommands.length-1],s=i?m(this,tt,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return fo(s).forEach(a=>{let c=s[a];Array.isArray(c)?c.indexOf(t)!==-1&&(r[a]=!0):c[t]&&!(a in r)&&(r[a]=c[t])}),this.group(t,m(this,se,"f").getPositionalGroupName()),this.option(t,r)}recommendCommands(t=!0){return F("[boolean]",[t],arguments.length),B(this,Oc,t,"f"),this}required(t,r,n){return this.demand(t,r,n)}require(t,r,n){return this.demand(t,r,n)}requiresArg(t){return F("<array|string|object> [number]",[t],arguments.length),typeof t=="string"&&m(this,Z,"f").narg[t]?this:(this[go](this.requiresArg.bind(this),"narg",t,NaN),this)}showCompletionScript(t,r){return F("[string] [string]",[t,r],arguments.length),t=t||this.$0,m(this,ho,"f").log(m(this,or,"f").generateCompletionScript(t,r||m(this,zt,"f")||"completion")),this}showHelp(t){if(F("[string|function]",[t],arguments.length),B(this,Zt,!0,"f"),!m(this,se,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[As](m(this,In,"f"),void 0,void 0,0,!0);if(qe(n))return n.then(()=>{m(this,se,"f").showHelp(t)}),this}let r=m(this,tt,"f").runDefaultBuilderOn(this);if(qe(r))return r.then(()=>{m(this,se,"f").showHelp(t)}),this}return m(this,se,"f").showHelp(t),this}scriptName(t){return this.customScriptName=!0,this.$0=t,this}showHelpOnFail(t,r){return F("[boolean|string] [string]",[t,r],arguments.length),m(this,se,"f").showHelpOnFail(t,r),this}showVersion(t){return F("[string|function]",[t],arguments.length),m(this,se,"f").showVersion(t),this}skipValidation(t){return F("<array|string>",[t],arguments.length),this[Cn]("skipValidation",t),this}strict(t){return F("[boolean]",[t],arguments.length),B(this,vi,t!==!1,"f"),this}strictCommands(t){return F("[boolean]",[t],arguments.length),B(this,_i,t!==!1,"f"),this}strictOptions(t){return F("[boolean]",[t],arguments.length),B(this,Si,t!==!1,"f"),this}string(t){return F("<array|string>",[t],arguments.length),this[Cn]("string",t),this[Pi](t),this}terminalWidth(){return F([],0),m(this,ie,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return F("<object>",[t],arguments.length),B(this,gi,!1,"f"),m(this,ie,"f").y18n.updateLocale(t),this}usage(t,r,n,i){if(F("<string|null|undefined> [string|boolean] [function|object] [function]",[t,r,n,i],arguments.length),r!==void 0){if(At(t,null,m(this,ie,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,r,n,i);throw new ke(".usage() description must start with $0 if being used as alias for .command()")}else return m(this,se,"f").usage(t),this}usageConfiguration(t){return F("<object>",[t],arguments.length),B(this,Pc,t,"f"),this}version(t,r,n){let i="version";if(F("[boolean|string] [string] [string]",[t,r,n],arguments.length),m(this,Hr,"f")&&(this[Sf](m(this,Hr,"f")),m(this,se,"f").version(void 0),B(this,Hr,null,"f")),arguments.length===0)n=this[By](),t=i;else if(arguments.length===1){if(t===!1)return this;n=t,t=i}else arguments.length===2&&(n=r,r=void 0);return B(this,Hr,typeof t=="string"?t:i,"f"),r=r||m(this,se,"f").deferY18nLookup("Show version number"),m(this,se,"f").version(n||void 0),this.boolean(m(this,Hr,"f")),this.describe(m(this,Hr,"f"),r),this}wrap(t){return F("<number|null|undefined>",[t],arguments.length),m(this,se,"f").wrap(t),this}[(tt=new WeakMap,mi=new WeakMap,ws=new WeakMap,or=new WeakMap,zt=new WeakMap,yc=new WeakMap,An=new WeakMap,gi=new WeakMap,bc=new WeakMap,sr=new WeakMap,vc=new WeakMap,ar=new WeakMap,Fr=new WeakMap,Zt=new WeakMap,cr=new WeakMap,_c=new WeakMap,ho=new WeakMap,lt=new WeakMap,Z=new WeakMap,Sc=new WeakMap,Ec=new WeakMap,Wt=new WeakMap,yi=new WeakMap,mo=new WeakMap,bi=new WeakMap,In=new WeakMap,Oc=new WeakMap,ie=new WeakMap,vi=new WeakMap,_i=new WeakMap,Si=new WeakMap,se=new WeakMap,Pc=new WeakMap,Hr=new WeakMap,Ke=new WeakMap,ky)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[qy](){return{log:o((...t)=>{this[xc]()||console.log(...t),B(this,Zt,!0,"f"),m(this,lt,"f").length&&B(this,lt,m(this,lt,"f")+`
135
+ `,"f"),B(this,lt,m(this,lt,"f")+t.join(" "),"f")},"log"),error:o((...t)=>{this[xc]()||console.error(...t),B(this,Zt,!0,"f"),m(this,lt,"f").length&&B(this,lt,m(this,lt,"f")+`
136
+ `,"f"),B(this,lt,m(this,lt,"f")+t.join(" "),"f")},"error")}}[Sf](t){fo(m(this,Z,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=m(this,Z,"f")[r];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete m(this,se,"f").getDescriptions()[t]}[Dy](t,r,n){m(this,bc,"f")[n]||(m(this,ie,"f").process.emitWarning(t,r),m(this,bc,"f")[n]=!0)}[Ly](){m(this,vc,"f").push({options:m(this,Z,"f"),configObjects:m(this,Z,"f").configObjects.slice(0),exitProcess:m(this,sr,"f"),groups:m(this,Fr,"f"),strict:m(this,vi,"f"),strictCommands:m(this,_i,"f"),strictOptions:m(this,Si,"f"),completionCommand:m(this,zt,"f"),output:m(this,lt,"f"),exitError:m(this,An,"f"),hasOutput:m(this,Zt,"f"),parsed:this.parsed,parseFn:m(this,Wt,"f"),parseContext:m(this,yi,"f")}),m(this,se,"f").freeze(),m(this,Ke,"f").freeze(),m(this,tt,"f").freeze(),m(this,ar,"f").freeze()}[Fy](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(m(this,ie,"f").process.argv()[0])?r=m(this,ie,"f").process.argv().slice(1,2):r=m(this,ie,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[Xy](m(this,mi,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),m(this,ie,"f").getEnv("_")&&m(this,ie,"f").getProcessArgvBin()===m(this,ie,"f").getEnv("_")&&(t=m(this,ie,"f").getEnv("_").replace(`${m(this,ie,"f").path.dirname(m(this,ie,"f").process.execPath())}/`,"")),t}[Ei](){return m(this,Ec,"f")}[Hy](){return m(this,Pc,"f")}[Ef](){if(!m(this,gi,"f"))return;let t=m(this,ie,"f").getEnv("LC_ALL")||m(this,ie,"f").getEnv("LC_MESSAGES")||m(this,ie,"f").getEnv("LANG")||m(this,ie,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[By](){return this[Of]().version||"unknown"}[Vy](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)m(this,ie,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[Of](t){let r=t||"*";if(m(this,mo,"f")[r])return m(this,mo,"f")[r];let n={};try{let i=t||m(this,ie,"f").mainFilename;!t&&m(this,ie,"f").path.extname(i)&&(i=m(this,ie,"f").path.dirname(i));let s=m(this,ie,"f").findUp(i,(a,c)=>{if(c.includes("package.json"))return"package.json"});At(s,void 0,m(this,ie,"f")),n=JSON.parse(m(this,ie,"f").readFileSync(s,"utf8"))}catch{}return m(this,mo,"f")[r]=n||{},m(this,mo,"f")[r]}[Cn](t,r){r=[].concat(r),r.forEach(n=>{n=this[$f](n),m(this,Z,"f")[t].push(n)})}[go](t,r,n,i){this[xf](t,r,n,i,(s,a,c)=>{m(this,Z,"f")[s][a]=c})}[Pf](t,r,n,i){this[xf](t,r,n,i,(s,a,c)=>{m(this,Z,"f")[s][a]=(m(this,Z,"f")[s][a]||[]).concat(c)})}[xf](t,r,n,i,s){if(Array.isArray(n))n.forEach(a=>{t(a,i)});else if((a=>typeof a=="object")(n))for(let a of fo(n))t(a,n[a]);else s(r,this[$f](n),i)}[$f](t){return t==="__proto__"?"___proto___":t}[wf](t,r){return this[go](this[wf].bind(this),"key",t,r),this}[Af](){var t,r,n,i,s,a,c,u,l,p,f,d;let h=m(this,vc,"f").pop();At(h,void 0,m(this,ie,"f"));let y;t=this,r=this,n=this,i=this,s=this,a=this,c=this,u=this,l=this,p=this,f=this,d=this,{options:{set value(b){B(t,Z,b,"f")}}.value,configObjects:y,exitProcess:{set value(b){B(r,sr,b,"f")}}.value,groups:{set value(b){B(n,Fr,b,"f")}}.value,output:{set value(b){B(i,lt,b,"f")}}.value,exitError:{set value(b){B(s,An,b,"f")}}.value,hasOutput:{set value(b){B(a,Zt,b,"f")}}.value,parsed:this.parsed,strict:{set value(b){B(c,vi,b,"f")}}.value,strictCommands:{set value(b){B(u,_i,b,"f")}}.value,strictOptions:{set value(b){B(l,Si,b,"f")}}.value,completionCommand:{set value(b){B(p,zt,b,"f")}}.value,parseFn:{set value(b){B(f,Wt,b,"f")}}.value,parseContext:{set value(b){B(d,yi,b,"f")}}.value}=h,m(this,Z,"f").configObjects=y,m(this,se,"f").unfreeze(),m(this,Ke,"f").unfreeze(),m(this,tt,"f").unfreeze(),m(this,ar,"f").unfreeze()}[Uy](t,r){return hi(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[Gy].bind(this),getContext:this[zy].bind(this),getHasOutput:this[Zy].bind(this),getLoggerInstance:this[Wy].bind(this),getParseContext:this[Ky].bind(this),getParserConfiguration:this[Ei].bind(this),getUsageConfiguration:this[Hy].bind(this),getUsageInstance:this[Yy].bind(this),getValidationInstance:this[Qy].bind(this),hasParseCallback:this[xc].bind(this),isGlobalContext:this[Jy].bind(this),postProcess:this[Oi].bind(this),reset:this[If].bind(this),runValidation:this[Cf].bind(this),runYargsParserAndExecuteCommands:this[As].bind(this),setHasOutput:this[eb].bind(this)}}[Gy](){return m(this,tt,"f")}[zy](){return m(this,ws,"f")}[Zy](){return m(this,Zt,"f")}[Wy](){return m(this,ho,"f")}[Ky](){return m(this,yi,"f")||{}}[Yy](){return m(this,se,"f")}[Qy](){return m(this,Ke,"f")}[xc](){return!!m(this,Wt,"f")}[Jy](){return m(this,_c,"f")}[Oi](t,r,n,i){return n||qe(t)||(r||(t=this[ky](t)),(this[Ei]()["parse-positional-numbers"]||this[Ei]()["parse-positional-numbers"]===void 0)&&(t=this[Vy](t)),i&&(t=di(t,this,m(this,ar,"f").getMiddleware(),!1))),t}[If](t={}){B(this,Z,m(this,Z,"f")||{},"f");let r={};r.local=m(this,Z,"f").local||[],r.configObjects=m(this,Z,"f").configObjects||[];let n={};r.local.forEach(a=>{n[a]=!0,(t[a]||[]).forEach(c=>{n[c]=!0})}),Object.assign(m(this,bi,"f"),Object.keys(m(this,Fr,"f")).reduce((a,c)=>{let u=m(this,Fr,"f")[c].filter(l=>!(l in n));return u.length>0&&(a[c]=u),a},{})),B(this,Fr,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],s=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(a=>{r[a]=(m(this,Z,"f")[a]||[]).filter(c=>!n[c])}),s.forEach(a=>{r[a]=$n(m(this,Z,"f")[a],c=>!n[c])}),r.envPrefix=m(this,Z,"f").envPrefix,B(this,Z,r,"f"),B(this,se,m(this,se,"f")?m(this,se,"f").reset(n):Ay(this,m(this,ie,"f")),"f"),B(this,Ke,m(this,Ke,"f")?m(this,Ke,"f").reset(n):jy(this,m(this,se,"f"),m(this,ie,"f")),"f"),B(this,tt,m(this,tt,"f")?m(this,tt,"f").reset():xy(m(this,se,"f"),m(this,Ke,"f"),m(this,ar,"f"),m(this,ie,"f")),"f"),m(this,or,"f")||B(this,or,Ty(this,m(this,se,"f"),m(this,tt,"f"),m(this,ie,"f")),"f"),m(this,ar,"f").reset(),B(this,zt,null,"f"),B(this,lt,"","f"),B(this,An,null,"f"),B(this,Zt,!1,"f"),this.parsed=!1,this}[Xy](t,r){return m(this,ie,"f").path.relative(t,r)}[As](t,r,n,i=0,s=!1){let a=!!n||s;t=t||m(this,In,"f"),m(this,Z,"f").__=m(this,ie,"f").y18n.__,m(this,Z,"f").configuration=this[Ei]();let c=!!m(this,Z,"f").configuration["populate--"],u=Object.assign({},m(this,Z,"f").configuration,{"populate--":!0}),l=m(this,ie,"f").Parser.detailed(t,Object.assign({},m(this,Z,"f"),{configuration:{"parse-positional-numbers":!1,...u}})),p=Object.assign(l.argv,m(this,yi,"f")),f,d=l.aliases,h=!1,y=!1;Object.keys(p).forEach(b=>{b===m(this,cr,"f")&&p[b]?h=!0:b===m(this,Hr,"f")&&p[b]&&(y=!0)}),p.$0=this.$0,this.parsed=l,i===0&&m(this,se,"f").clearCachedHelpMessage();try{if(this[Ef](),r)return this[Oi](p,c,!!n,!1);m(this,cr,"f")&&[m(this,cr,"f")].concat(d[m(this,cr,"f")]||[]).filter(C=>C.length>1).includes(""+p._[p._.length-1])&&(p._.pop(),h=!0),B(this,_c,!1,"f");let b=m(this,tt,"f").getCommands(),g=m(this,or,"f").completionKey in p,P=h||g||s;if(p._.length){if(b.length){let $;for(let C=i||0,T;p._[C]!==void 0;C++)if(T=String(p._[C]),b.includes(T)&&T!==m(this,zt,"f")){let A=m(this,tt,"f").runCommand(T,this,l,C+1,s,h||y||s);return this[Oi](A,c,!!n,!1)}else if(!$&&T!==m(this,zt,"f")){$=T;break}!m(this,tt,"f").hasDefaultCommand()&&m(this,Oc,"f")&&$&&!P&&m(this,Ke,"f").recommendCommands($,b)}m(this,zt,"f")&&p._.includes(m(this,zt,"f"))&&!g&&(m(this,sr,"f")&&wn(!0),this.showCompletionScript(),this.exit(0))}if(m(this,tt,"f").hasDefaultCommand()&&!P){let $=m(this,tt,"f").runCommand(null,this,l,0,s,h||y||s);return this[Oi]($,c,!!n,!1)}if(g){m(this,sr,"f")&&wn(!0),t=[].concat(t);let $=t.slice(t.indexOf(`--${m(this,or,"f").completionKey}`)+1);return m(this,or,"f").getCompletion($,(C,T)=>{if(C)throw new ke(C.message);(T||[]).forEach(A=>{m(this,ho,"f").log(A)}),this.exit(0)}),this[Oi](p,!c,!!n,!1)}if(m(this,Zt,"f")||(h?(m(this,sr,"f")&&wn(!0),a=!0,this.showHelp("log"),this.exit(0)):y&&(m(this,sr,"f")&&wn(!0),a=!0,m(this,se,"f").showVersion("log"),this.exit(0))),!a&&m(this,Z,"f").skipValidation.length>0&&(a=Object.keys(p).some($=>m(this,Z,"f").skipValidation.indexOf($)>=0&&p[$]===!0)),!a){if(l.error)throw new ke(l.error.message);if(!g){let $=this[Cf](d,{},l.error);n||(f=di(p,this,m(this,ar,"f").getMiddleware(),!0)),f=this[Uy]($,f??p),qe(f)&&!n&&(f=f.then(()=>di(p,this,m(this,ar,"f").getMiddleware(),!1)))}}}catch(b){if(b instanceof ke)m(this,se,"f").fail(b.message,b);else throw b}return this[Oi](f??p,c,!!n,!0)}[Cf](t,r,n,i){let s={...this.getDemandedOptions()};return a=>{if(n)throw new ke(n.message);m(this,Ke,"f").nonOptionCount(a),m(this,Ke,"f").requiredArguments(a,s);let c=!1;m(this,_i,"f")&&(c=m(this,Ke,"f").unknownCommands(a)),m(this,vi,"f")&&!c?m(this,Ke,"f").unknownArguments(a,t,r,!!i):m(this,Si,"f")&&m(this,Ke,"f").unknownArguments(a,t,{},!1,!1),m(this,Ke,"f").limitedChoices(a),m(this,Ke,"f").implications(a),m(this,Ke,"f").conflicting(a)}}[eb](){B(this,Zt,!0,"f")}[Pi](t){if(typeof t=="string")m(this,Z,"f").key[t]=!0;else for(let r of t)m(this,Z,"f").key[r]=!0}};o(Rf,"YargsInstance");var Tf=Rf;function $y(e){return!!e&&typeof e.getInternalMethods=="function"}o($y,"isYargsInstance");var B$=tb(ff),rb=B$;var Is="AppRestClient",$c={query:"AppQueryOptions",infiniteQuery:"AppInfiniteQueryOptions",mutation:"AppMutationOptions"},Nf="src/data",jf="@/data",ur={appRestClient:{template:"@/util/rest/clients/app-rest-client",monorepoTemplate:"@/clients/app-rest-client"},queryTypes:{template:"@/types/react-query",monorepoTemplate:"@povio/utils/types/react-query"},errorHandling:{template:"@/util/vendor/error-handling",monorepoTemplate:"@povio/utils/vendor/error-handling"},abilityContext:{template:"@/data/acl/ability.context",monorepoTemplate:"@povio/auth/acl/ability.context"}},Tn={ErrorHandler:"ErrorHandler",SharedErrorHandler:"SharedErrorHandler"},wc={bindings:[Tn.ErrorHandler,Tn.SharedErrorHandler],from:ur.errorHandling.template},Mf="AbilityContext",nb={bindings:[Mf],from:ur.abilityContext.template};var Ac={reactQueryTypes:{fileName:"react-query.types",extension:"ts"},restClient:{fileName:"rest-client",extension:"ts"},restInterceptor:{fileName:"rest-interceptor",extension:"ts"}},Ic={fileName:"app-rest-client",extension:"ts"},kf="QueryModule",Cc={fileName:"queryModules",extension:"ts"},ib={fileName:"queryConfig.context",extension:"tsx"},yo={optionsType:"MutationEffectsOptions",hookName:"useMutationEffects",runFunctionName:"runMutationEffects"},Tc={fileName:"useMutationEffects",extension:"ts"},Br={name:"zod",properties:{sortingString:"sortingString",parse:"parse"}},Rc={fileName:"zod",extension:"ts"};var ob="Schema",sb="Enum",ab="Body",cb="Param",ub="Response",lb="ErrorResponse",Cs="z.void()",Nc="z.instanceof(Blob)",Ts="z.enum",jc="z.string()",bo={bindings:["z"],from:"zod"};var $e={input:"",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],excludePathRegex:"",excludeRedundantZodSchemas:!0,tsNamespaces:!0,importPath:"ts",configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"},acl:{outputFileNameSuffix:"acl",namespaceSuffix:"Acl"}},standalone:!1,baseUrl:"",abilityContextImportPath:ur.abilityContext.template,schemaSuffix:ob,enumSuffix:sb,withDefaultValues:!0,extractEnums:!0,replaceOptionalWithNullish:!1,restClientImportPath:ur.appRestClient.template,errorHandlingImportPath:ur.errorHandling.template,removeOperationPrefixEndingWith:"Controller_",parseRequestParams:!1,checkAcl:!1,queryTypesImportPath:ur.queryTypes.template,axiosRequestConfig:!1,infiniteQueries:!1,mutationEffects:!0};var fb=o((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),pb=o((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),db=o((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),Ue={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]}},F6=Object.keys(Ue.modifier),V$=Object.keys(Ue.color),U$=Object.keys(Ue.bgColor),H6=[...V$,...U$];function G$(){let e=new Map;for(let[t,r]of Object.entries(Ue)){for(let[n,i]of Object.entries(r))Ue[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=Ue[n],e.set(i[0],i[1]);Object.defineProperty(Ue,t,{value:r,enumerable:!1})}return Object.defineProperty(Ue,"codes",{value:e,enumerable:!1}),Ue.color.close="\x1B[39m",Ue.bgColor.close="\x1B[49m",Ue.color.ansi=fb(),Ue.color.ansi256=pb(),Ue.color.ansi16m=db(),Ue.bgColor.ansi=fb(10),Ue.bgColor.ansi256=pb(10),Ue.bgColor.ansi16m=db(10),Object.defineProperties(Ue,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:o(t=>Ue.rgbToAnsi256(...Ue.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 s=Math.max(r,n,i)*2;if(s===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:o((t,r,n)=>Ue.ansi256ToAnsi(Ue.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:o(t=>Ue.ansi256ToAnsi(Ue.hexToAnsi256(t)),"value"),enumerable:!1}}),Ue}o(G$,"assembleStyles");var z$=G$(),Pr=z$;var kc=mt(require("process"),1),mb=mt(require("os"),1),qf=mt(require("tty"),1);function lr(e,t=globalThis.Deno?globalThis.Deno.args:kc.default.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}o(lr,"hasFlag");var{env:ze}=kc.default,Mc;lr("no-color")||lr("no-colors")||lr("color=false")||lr("color=never")?Mc=0:(lr("color")||lr("colors")||lr("color=true")||lr("color=always"))&&(Mc=1);function Z$(){if("FORCE_COLOR"in ze)return ze.FORCE_COLOR==="true"?1:ze.FORCE_COLOR==="false"?0:ze.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(ze.FORCE_COLOR,10),3)}o(Z$,"envForceColor");function W$(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}o(W$,"translateLevel");function K$(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=Z$();n!==void 0&&(Mc=n);let i=r?Mc:n;if(i===0)return 0;if(r){if(lr("color=16m")||lr("color=full")||lr("color=truecolor"))return 3;if(lr("color=256"))return 2}if("TF_BUILD"in ze&&"AGENT_NAME"in ze)return 1;if(e&&!t&&i===void 0)return 0;let s=i||0;if(ze.TERM==="dumb")return s;if(kc.default.platform==="win32"){let a=mb.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in ze)return"GITHUB_ACTIONS"in ze||"GITEA_ACTIONS"in ze?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in ze)||ze.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in ze)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ze.TEAMCITY_VERSION)?1:0;if(ze.COLORTERM==="truecolor"||ze.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in ze){let a=Number.parseInt((ze.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ze.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ze.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ze.TERM)||"COLORTERM"in ze?1:s}o(K$,"_supportsColor");function hb(e,t={}){let r=K$(e,{streamIsTTY:e&&e.isTTY,...t});return W$(r)}o(hb,"createSupportsColor");var Y$={stdout:hb({isTTY:qf.default.isatty(1)}),stderr:hb({isTTY:qf.default.isatty(2)})},gb=Y$;function yb(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,a="";do a+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return a+=e.slice(s),a}o(yb,"stringReplaceAll");function bb(e,t,r,n){let i=0,s="";do{let a=e[n-1]==="\r";s+=e.slice(i,a?n-1:n)+t+(a?`\r
137
137
  `:`
138
138
  `)+r,i=n+1,n=e.indexOf(`
139
- `,i)}while(n!==-1);return s+=e.slice(i),s}o(fb,"stringEncaseCRLFWithFirstIndex");var{stdout:pb,stderr:db}=ub,Cf=Symbol("GENERATOR"),mo=Symbol("STYLER"),Cs=Symbol("IS_EMPTY"),hb=["ansi","ansi","ansi256","ansi16m"],go=Object.create(null),B$=o((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=pb?pb.level:0;e.level=t.level===void 0?r:t.level},"applyOptions"),Nf=class Nf{constructor(t){return mb(t)}};o(Nf,"Chalk");var Nc=Nf,mb=o(e=>{let t=o((...r)=>r.join(" "),"chalk");return B$(t,e),Object.setPrototypeOf(t,Ts.prototype),t},"chalkFactory");function Ts(e){return mb(e)}o(Ts,"createChalk");Object.setPrototypeOf(Ts.prototype,Function.prototype);for(let[e,t]of Object.entries(Er))go[e]={get(){let r=jc(this,Rf(t.open,t.close,this[mo]),this[Cs]);return Object.defineProperty(this,e,{value:r}),r}};go.visible={get(){let e=jc(this,this[mo],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Tf=o((e,t,r,...n)=>e==="rgb"?t==="ansi16m"?Er[r].ansi16m(...n):t==="ansi256"?Er[r].ansi256(Er.rgbToAnsi256(...n)):Er[r].ansi(Er.rgbToAnsi(...n)):e==="hex"?Tf("rgb",t,r,...Er.hexToRgb(...n)):Er[r][e](...n),"getModelAnsi"),V$=["rgb","hex","ansi256"];for(let e of V$){go[e]={get(){let{level:r}=this;return function(...n){let i=Rf(Tf(e,hb[r],"color",...n),Er.color.close,this[mo]);return jc(this,i,this[Cs])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);go[t]={get(){let{level:r}=this;return function(...n){let i=Rf(Tf(e,hb[r],"bgColor",...n),Er.bgColor.close,this[mo]);return jc(this,i,this[Cs])}}}}var U$=Object.defineProperties(()=>{},{...go,level:{enumerable:!0,get(){return this[Cf].level},set(e){this[Cf].level=e}}}),Rf=o((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"),jc=o((e,t,r)=>{let n=o((...i)=>G$(n,i.length===1?""+i[0]:i.join(" ")),"builder");return Object.setPrototypeOf(n,U$),n[Cf]=e,n[mo]=t,n[Cs]=r,n},"createBuilder"),G$=o((e,t)=>{if(e.level<=0||!t)return e[Cs]?"":t;let r=e[mo];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=lb(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
140
- `);return s!==-1&&(t=fb(t,i,n,s)),n+t+i},"applyStyle");Object.defineProperties(Ts.prototype,go);var H6=Ts(),B6=Ts({level:db?db.level:0});var Hr=new Nc;function Rs(e,t,r){console.log(r!==void 0&&r!==t?`${Hr.yellow(`${e}:`.padEnd(20))}${Hr.magenta(t)}`:`${`${e}:`.padEnd(20)}${t}`)}o(Rs,"logVariable");function ur(e){console.log(`[INFO] ${e}`)}o(ur,"logInfo");function Cn(e){console.log(Hr.green(`[SUCCESS] ${e}`))}o(Cn,"logSuccess");function Ns(e,t){e instanceof Error?(console.log(Hr.red(`[ERROR] ${t||e.message}`)),process.env.VERBOSE&&console.error(e)):console.log(Hr.red(`[ERROR] ${e}`))}o(Ns,"logError");function Mc(e){console.log(Hr.bgYellow(`==== ${e} ====`))}o(Mc,"logBanner");var gb=mt(require("fs"));function yo(){return"0.12.1"}o(yo,"getVersion");var t7=mt(bb());var jf=Symbol("options_key");function Pe(e){return(t,r)=>{var n,i;if(e!=null){let s={...Reflect.getMetadata(jf,t)||{},[r]:{...e,describe:e.envAlias?`${e.describe||""} [${e.envAlias}]`:e.describe,type:e.type||((i=(n=Reflect.getMetadata("design:type",t,r))==null?void 0:n.name)==null?void 0:i.toLowerCase())}};Reflect.defineMetadata(jf,s,t)}}}o(Pe,"YargOption");function vb(e){let t=Reflect.getMetadata(jf,e.prototype);if(!t)throw new Error(`Options for ${e.name} were not defined`);return t}o(vb,"getYargsOption");function kc(e){return async t=>t.options(z$(e)).middleware(async r=>await Z$(e,r),!0)}o(kc,"getBuilder");function z$(e){return Object.entries(vb(e)).reduce((t,[r,n])=>(t[r]=Object.fromEntries(Object.entries(n).filter(([i])=>!["envAlias","default"].includes(i))),t),{})}o(z$,"getYargsOptions");async function Z$(e,t){let r=new e;for(let[n,i]of Object.entries(vb(e)))r[n]=t[n]??i.default;return r}o(Z$,"loadYargsConfig");var bx=mt(Pm());var WO={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Ambiguous",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I Am a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",424:"Failed Dependency",428:"Precondition Required",429:"Too Many Requests",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"},KO={"invalid-schema":"Invalid OpenAPI Schemas","invalid-operation-id":"Invalid Operation IDs","missing-path-parameter":"Missing Path Parameters","not-allowed-inline-enum":"Not Allowed Inline Enums","not-allowed-circular-schema":"Not Allowed Circular Schemas","missing-acl-condition-property":"Missing x-acl Condition Properties","missing-status-code":"Missing HTTP Status Codes","invalid-status-code":"Invalid HTTP Status Codes","multiple-success-status-codes":"Multiple Success HTTP Status Codes"};var jr={query:"useQuery",infiniteQuery:"useInfiniteQuery",mutation:"useMutation"},YO={bindings:[jr.query,jr.infiniteQuery,jr.mutation],from:"@tanstack/react-query"},Pa={pageParamName:"page"},Bu={pageParamName:"page",totalItemsName:"totalItems",limitParamName:"limit"},xa="moduleName";var xm={"Content-Type":"application/json",Accept:"application/json"},Vu="data",$m="axios",Zn="config",Jr="AxiosRequestConfig",Uu={defaultImport:$m,bindings:[Jr],from:"axios"};var QO=o(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),Wn=o(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");function xe(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}o(xe,"isReferenceObject");function Tt(e){return!xe(e)}o(Tt,"isSchemaObject");function Gu(e){return e.type==="array"}o(Gu,"isArraySchemaObject");function JO(e){if(!e.allOf)throw new Error("Function inferRequiredSchema is specialized to handle item with required only in an allOf array.");let[t,r]=e.allOf.reduce((i,s)=>{if(Bq(s)){let a=s.required;i[0].push(...a??[])}else i[1].push(s);return i},[[],[]]),n={properties:t.reduce((i,s)=>(i[s]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:o((i,s)=>{if(xe(i)){let a=s(i.$ref);a&&n.required.forEach(c=>{var u;n.properties[c]=((u=a==null?void 0:a.properties)==null?void 0:u[c])??{}})}else{let a=i.properties??{};n.required.forEach(c=>{a[c]&&(n.properties[c]=a[c]??{})})}},"patchRequiredSchemaInLoop")}}o(JO,"inferRequiredSchema");var Bq=o(e=>!xe(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var gn=Symbol.for("@ts-pattern/matcher"),Vq=Symbol.for("@ts-pattern/isVariadic"),Zu="@ts-pattern/anonymous-select-key",wm=o(e=>!!(e&&typeof e=="object"),"r"),zu=o(e=>e&&!!e[gn],"i"),tn=o((e,t,r)=>{if(zu(e)){let n=e[gn](),{matched:i,selections:s}=n.match(t);return i&&s&&Object.keys(s).forEach(a=>r(a,s[a])),i}if(wm(e)){if(!wm(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],s=[];for(let a of e.keys()){let c=e[a];zu(c)&&c[Vq]?s.push(c):s.length?i.push(c):n.push(c)}if(s.length){if(s.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let a=t.slice(0,n.length),c=i.length===0?[]:t.slice(-i.length),u=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,p)=>tn(l,a[p],r))&&i.every((l,p)=>tn(l,c[p],r))&&(s.length===0||tn(s[0],u,r))}return e.length===t.length&&e.every((a,c)=>tn(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||zu(s=i)&&s[gn]().matcherType==="optional")&&tn(i,t[n],r);var s})}return Object.is(t,e)},"s"),Xn=o(e=>{var t,r,n;return wm(e)?zu(e)?(t=(r=(n=e[gn]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?wa(e,Xn):wa(Object.values(e),Xn):[]},"o"),wa=o((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function mr(e){return Object.assign(e,{optional:o(()=>Uq(e),"optional"),and:o(t=>Ve(e,t),"and"),or:o(t=>Gq(e,t),"or"),select:o(t=>t===void 0?XO(e):XO(t,e),"select")})}o(mr,"u");function Uq(e){return mr({[gn]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return t===void 0?(Xn(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:tn(e,t,n),selections:r}},"match"),getSelectionKeys:o(()=>Xn(e),"getSelectionKeys"),matcherType:"optional"})})}o(Uq,"h");function Ve(...e){return mr({[gn]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return{matched:e.every(i=>tn(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>wa(e,Xn),"getSelectionKeys"),matcherType:"and"})})}o(Ve,"m");function Gq(...e){return mr({[gn]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return wa(e,Xn).forEach(i=>n(i,void 0)),{matched:e.some(i=>tn(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>wa(e,Xn),"getSelectionKeys"),matcherType:"or"})})}o(Gq,"d");function Ee(e){return{[gn]:()=>({match:o(t=>({matched:!!e(t)}),"match")})}}o(Ee,"p");function XO(...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 mr({[gn]:()=>({match:o(n=>{let i={[t??Zu]:n};return{matched:r===void 0||tn(r,n,(s,a)=>{i[s]=a}),selections:i}},"match"),getSelectionKeys:o(()=>[t??Zu].concat(r===void 0?[]:Xn(r)),"getSelectionKeys")})})}o(XO,"y");function Xr(e){return typeof e=="number"}o(Xr,"v");function Kn(e){return typeof e=="string"}o(Kn,"b");function Yn(e){return typeof e=="bigint"}o(Yn,"w");var vU=mr(Ee(function(e){return!0}));var Qn=o(e=>Object.assign(mr(e),{startsWith:o(t=>{return Qn(Ve(e,(r=t,Ee(n=>Kn(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:o(t=>{return Qn(Ve(e,(r=t,Ee(n=>Kn(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:o(t=>Qn(Ve(e,(r=>Ee(n=>Kn(n)&&n.length>=r))(t))),"minLength"),length:o(t=>Qn(Ve(e,(r=>Ee(n=>Kn(n)&&n.length===r))(t))),"length"),maxLength:o(t=>Qn(Ve(e,(r=>Ee(n=>Kn(n)&&n.length<=r))(t))),"maxLength"),includes:o(t=>{return Qn(Ve(e,(r=t,Ee(n=>Kn(n)&&n.includes(r)))));var r},"includes"),regex:o(t=>{return Qn(Ve(e,(r=t,Ee(n=>Kn(n)&&!!n.match(r)))));var r},"regex")}),"j"),_U=Qn(Ee(Kn)),en=o(e=>Object.assign(mr(e),{between:o((t,r)=>en(Ve(e,((n,i)=>Ee(s=>Xr(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>en(Ve(e,(r=>Ee(n=>Xr(n)&&n<r))(t))),"lt"),gt:o(t=>en(Ve(e,(r=>Ee(n=>Xr(n)&&n>r))(t))),"gt"),lte:o(t=>en(Ve(e,(r=>Ee(n=>Xr(n)&&n<=r))(t))),"lte"),gte:o(t=>en(Ve(e,(r=>Ee(n=>Xr(n)&&n>=r))(t))),"gte"),int:o(()=>en(Ve(e,Ee(t=>Xr(t)&&Number.isInteger(t)))),"int"),finite:o(()=>en(Ve(e,Ee(t=>Xr(t)&&Number.isFinite(t)))),"finite"),positive:o(()=>en(Ve(e,Ee(t=>Xr(t)&&t>0))),"positive"),negative:o(()=>en(Ve(e,Ee(t=>Xr(t)&&t<0))),"negative")}),"x"),SU=en(Ee(Xr)),Jn=o(e=>Object.assign(mr(e),{between:o((t,r)=>Jn(Ve(e,((n,i)=>Ee(s=>Yn(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Jn(Ve(e,(r=>Ee(n=>Yn(n)&&n<r))(t))),"lt"),gt:o(t=>Jn(Ve(e,(r=>Ee(n=>Yn(n)&&n>r))(t))),"gt"),lte:o(t=>Jn(Ve(e,(r=>Ee(n=>Yn(n)&&n<=r))(t))),"lte"),gte:o(t=>Jn(Ve(e,(r=>Ee(n=>Yn(n)&&n>=r))(t))),"gte"),positive:o(()=>Jn(Ve(e,Ee(t=>Yn(t)&&t>0))),"positive"),negative:o(()=>Jn(Ve(e,Ee(t=>Yn(t)&&t<0))),"negative")}),"A"),EU=Jn(Ee(Yn)),OU=mr(Ee(function(e){return typeof e=="boolean"})),PU=mr(Ee(function(e){return typeof e=="symbol"})),xU=mr(Ee(function(e){return e==null})),$U=mr(Ee(function(e){return e!=null}));var Tm=class Tm extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}};o(Tm,"W");var Am=Tm,Im={matched:!1,value:void 0};function Pt(e){return new Cm(e,Im)}o(Pt,"z");var $a=class $a{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let s=!1,a={},c=o((l,p)=>{s=!0,a[l]=p},"a"),u=!n.some(l=>tn(l,this.input,c))||i&&!i(this.input)?Im:{matched:!0,value:r(s?Zu in a?a[Zu]:a:this.input,this.input)};return new $a(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new $a(this.input,n?{matched:!0,value:r(this.input,this.input)}:Im)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new Am(this.input)}run(){return this.exhaustive()}returnType(){return this}};o($a,"I");var Cm=$a;var Rm=2,eP=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],tP=["query","header","path"],Vi=["get","put","post","delete","options","head","patch","trace"],rP=["string","number","integer","boolean"],Aa=["allOf","anyOf","oneOf"];var Le=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),ei=o(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),nP=o(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),pt=o(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),iP=o(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),Nm=o((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),oP=o((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),zq=o(e=>{var n;let t=e.reduce((i,s)=>({...i,[s]:(i[s]??0)+1}),{});return(n=Object.entries(t).sort((i,s)=>i[1]===s[1]?s[0].length-i[0].length:s[1]-i[1])[0])==null?void 0:n[0]},"getLongestMostCommon"),jm=o(e=>{let t=e.map(Le).map(sP).map(r=>Zq(r)).flat();return zq(t)},"getMostCommonAdjacentCombinationSplit"),sP=o(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),aP=o(e=>sP(e).join(" "),"camelToSpaceSeparated"),Zq=o((e,t=["dto","by","for","of","in","to","and","with"])=>{var n;let r=[];for(let i=0;i<e.length;i++)if(!t.includes(e[i].toLowerCase()))for(let s=i+1;s<=e.length;s++)t.includes((n=e[s-1])==null?void 0:n.toLowerCase())||r.push(e.slice(i,s).join(""));return r},"getAdjacentStringCombinations"),cP=o((e,t)=>{let r=t.replace(/es$|s$/g,""),n=new RegExp(`(${ei(r)}|${Le(r)})[a-z]*(?=$|[A-Z])`,"g");return e.replace(n,"")},"removeWord");var lP=o(e=>`#/components/schemas/${e}`,"getSchemaRef"),Ui=o(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),rs=o(e=>Ui(e).split("/").at(-1),"getSchemaNameByRef");function km(e){let t=Wq(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return pt(t)}o(km,"normalizeString");function fP(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}o(fP,"wrapWithQuotesIfNeeded");function pP(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}o(pP,"unwrapQuotesIfNeeded");function Wq(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}o(Wq,"prefixStringStartingWithNumberIfNeeded");function qm(e){let t=e.replaceAll("_","#");return pt(t.replaceAll("-","_")).replaceAll("#","_")}o(qm,"pathParamToVariableName");var Gi=o(e=>rP.includes(e),"isPrimitiveType");function dP(e){return e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/([\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\uFFFE\uFFFF])/g,(t,r)=>{let n=r.codePointAt(),i=n.toString(16);return n<=255?`\\x${`00${i}`.slice(-2)}`:`\\u${`0000${i}`.slice(-4)}`}).replace(/\//g,"\\/")}o(dP,"escapeControlCharacters");function rn(e){return e.includes("application/")&&e.includes("json")||eP.includes(e)||e.includes("text/")}o(rn,"isParamMediaTypeAllowed");function Ia(e){return e>=200&&e<300}o(Ia,"isMainResponseStatus");function Wu(e){return!(e>=200&&e<300)}o(Wu,"isErrorStatus");function Ku(e){return e.startsWith("application/")}o(Ku,"isMediaTypeAllowed");var uP=/({\w+})/g,Kq=/[^\w\-]+/g;function hP(e){e=Le(nP(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(uP)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(uP,"")}By${Le(r.slice(1,-1))}`}return e.replace(Kq,"_")}o(hP,"pathToVariableName");var Mm=/{(\b\w+(?:-\w+)*\b)}/g;function mP(e){let t=e.match(Mm);return t===null?e.replaceAll(Mm,":$1"):(t.forEach(r=>{let n=qm(r.replaceAll(Mm,":$1"));e=e.replaceAll(r,n)}),e)}o(mP,"replaceHyphenatedPath");var gP=o(e=>{let t=e["x-enumNames"],r=Array.isArray(t)&&t.length>0,n=!!e.schema&&Tt(e.schema)&&e.schema.type==="string";return r&&n},"isSortingParameterObject"),zi=o((e,t)=>t.excludePathRegex?new RegExp(t.excludePathRegex).test(e):!1,"isPathExcluded");var Qt=o(e=>e.method==="get","isQuery"),ti=o(e=>e.method!=="get"||!!e.mediaDownload,"isMutation"),ns=o((e,t)=>Qt(e)&&(t??Object.values(Pa)).every(r=>e.parameters.some(n=>n.name===r&&n.type==="Query")),"isInfiniteQuery");function ri(e){return iP(e)}o(ri,"formatTag");function ni(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return ri(r??t.defaultTag)}o(ni,"getOperationTag");function yP(e,t){return t.excludeTags.some(r=>r.toLowerCase()===e.toLowerCase())}o(yP,"isTagExcluded");var Jt=o((...e)=>[...new Set(e.flat())],"getUniqueArray");function Rt(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(xe(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(Aa.some(s=>s in i&&i[s])){let s=i.allOf??i.anyOf??i.oneOf??[];for(let a of s)(n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))!==!0&&Rt(a,{data:r,onSchema:n})}if(i.properties)for(let[s,a]of Object.entries(i.properties))n({type:"property",parentSchema:e,schema:a,data:r,propertyName:s})!==!0&&Rt(a,t);if(i.additionalProperties&&typeof i.additionalProperties=="object"){if(n({type:"additionalProperties",parentSchema:e,schema:i.additionalProperties,data:r})===!0)return;Rt(i.additionalProperties,t)}if(i.type==="array"){let s=e.items;if(n({type:"array",parentSchema:e,schema:s,data:r})===!0)return;Rt(s,t)}}o(Rt,"iterateSchema");var nn=o((e,t)=>Nm(Le(km(e)),t),"getZodSchemaName"),Ca=o((e,t,r)=>Nm(Le(km(e)),`${t}${r}`),"getEnumZodSchemaName"),xt=o(e=>!e.startsWith("z."),"isNamedZodSchema"),bP=o(e=>e.startsWith(Is),"isEnumZodSchema"),Zi=o((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),Yu=o(e=>pt(`${e}_${eb}`),"getBodyZodSchemaName"),vP=o((e,t)=>pt(`${e}_${t}${tb}`),"getParamZodSchemaName"),Yq=o(e=>pt(`${e}${rb}`),"getMainResponseZodSchemaName"),Qq=o((e,t)=>pt(`${e}_${t}_${nb}`),"getErrorResponseZodSchemaName");function Qu({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),s=Zi(t,r,n);return!Ia(i)&&e!=="default"&&Wu(i)?Qq(s,e):Yq(s)}o(Qu,"getResponseZodSchemaName");function Ta(e){return["minimum","exclusiveMinimum","maximum","exclusiveMaximum","minItems","minLength","minProperties","maxItems","maxLength","maxProperties","default","example"].filter(n=>e[n]).reduce((n,i)=>[...n,`${Le(aP(i))}: \`${e[i]}\``],[])}o(Ta,"getSchemaDescriptions");var Ra=o((e,t)=>oP(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),_P=o((e,t)=>xt(t)?`${e.options.tsNamespaces?`${ze({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),Wi=o((e,t,r)=>{if(!xt(t))return t===As?"void":t;let n=e.getTagByZodSchemaName(t);return`${e.options.tsNamespaces&&n!==r?`${ze({type:"models",tag:n,options:e.options})}.`:""}${Ra(t,e.options)}`},"getImportedZodSchemaInferedTypeName");function SP(e){var t;return e.isEnum?"enum":((t=e.schemaObj)==null?void 0:t.type)??"object"}o(SP,"getZodSchemaType");function EP(e){if(e.schemaObj)return[e.schemaObj.description,...Ta(e.schemaObj).join(". ")].filter(Boolean)}o(EP,"getZodSchemaDescription");function OP(e,t,r){var n;if(xe(t)){let i=e.getZodSchemaNameByRef(t.$ref);return i?Wi(e,i,r):void 0}if(Gu(t)){if(!xe(t.items))return`${((n=t.items)==null?void 0:n.type)??"unknown"}[]`;let i=e.getZodSchemaNameByRef(t.items.$ref);return i?`${Wi(e,i,r)}[]`:void 0}if(Aa.some(i=>i in t&&t[i])){let i=t.allOf??t.anyOf??t.oneOf??[];if(i.length>0)return OP(e,i[0],r)}return t.type}o(OP,"getType");function PP(e,t,r){if(!t.schemaObj)return[];let n="[0]",i="[key]",s={},a=o(c=>{var l;if(c.type==="reference")return!0;if(c.type==="composite")return;let u=[...((l=c.data)==null?void 0:l.pathSegments)??[]];if(c.type==="array"?u.push(n):c.type==="property"?u.push(c.propertyName):c.type==="additionalProperties"&&u.push(i),c.schema&&u[u.length-1]!==n){let p=e.resolveObject(c.schema),f=[p.description,...Ta(p)].filter(Boolean),d=u.join(".");s[d]&&"type"in c.schema&&c.schema.type==="object"||(delete s[d],s[d]={type:OP(e,c.schema,r)??"unknown",description:f.join(". ")})}return Rt(c.schema,{data:{pathSegments:[...u]},onSchema:a}),!0},"onSchema");return"allOf"in t.schemaObj&&t.schemaObj.allOf&&t.schemaObj.allOf.forEach(c=>{if(xe(c)){let u=e.resolveObject(c);Rt(u,{data:{pathSegments:[]},onSchema:a})}}),Rt(t.schemaObj,{data:{pathSegments:[]},onSchema:a}),s}o(PP,"getZodSchemaPropertyDescriptions");function ii({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",s=o(u=>e.getTagByZodSchemaName(u),"getTag"),a=Dm({type:i,tag:t,entities:r,getTag:s,getEntityName:o(u=>u,"getEntityName"),options:e.options}),c=Dm({type:i,tag:t,entities:n,getTag:s,getEntityName:o(u=>Ra(u,e.options),"getEntityName"),options:e.options});return Jq(e.options,a,c)}o(ii,"getModelsImports");function xP({tag:e,endpoints:t,options:r}){return Dm({type:"endpoints",tag:e,entities:t,getTag:o(n=>ja(n,r),"getTag"),getEntityName:Na,options:r})}o(xP,"getEndpointsImports");function $P({tags:e,entityName:t,getAliasEntityName:r,type:n,options:i}){let s=new Map;return e.forEach(a=>{let c=`${t}${r?` as ${r(a)}`:""}`;s.has(a)?i.tsNamespaces||s.get(a).bindings.push(c):s.set(a,{bindings:[i.tsNamespaces?ze({type:n,tag:a,options:i}):c],from:`${oi(i)}${Ju({type:n,tag:a,includeTagDir:!0,options:i})}`})}),Array.from(s.values())}o($P,"getEntityImports");function oi(e){let t=wf;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${$f}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${$f}`,"g"),wf)),`${t}/`.replace(/\/\//g,"/")}o(oi,"getImportPath");function Dm({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:s}){let a=new Map;return r.forEach(c=>{let u=n(c);if(a.has(u))s.tsNamespaces||a.get(u).bindings.push(i(c));else{let l=t===u;a.set(u,{bindings:[s.tsNamespaces?ze({type:e,tag:u,options:s}):i(c)],from:`${l?"./":oi(s)}${Ju({type:e,tag:u,includeTagDir:!l,options:s})}`})}}),Array.from(a.values())}o(Dm,"getImports");function Jq(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.tsNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:Jt(n.bindings)}))}o(Jq,"mergeImports");function is({fileName:e,extension:t}){return`${e}.${t}`}o(is,"getFileNameWithExtension");function wP({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${ei(t)}/`:""}${ei(t)}.${i}`:i}o(wP,"getTagFileNameWithoutExtension");function Ju(...e){return wP(...e)}o(Ju,"getTagImportPath");function Xu(...e){return`${wP(...e)}.ts`}o(Xu,"getTagFileName");var ze=o(({type:e,tag:t,options:r})=>`${Le(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");function AP(e){return e.standalone?`${oi(e)}${xc.fileName}`:e.restClientImportPath}o(AP,"getAppRestClientImportPath");function IP(e){return e.standalone?`${oi(e)}${Pc.reactQueryTypes.fileName}`:e.queryTypesImportPath}o(IP,"getQueryTypesImportPath");function CP(e){return`${oi(e)}${$c.fileName}`}o(CP,"getQueryModulesImportPath");function TP(e){return`${oi(e)}${wc.fileName}`}o(TP,"getMutationEffectsImportPath");function RP(e){return`${oi(e)}${Ac.fileName}`}o(RP,"getZodExtendedImportPath");function NP(e){return Pt(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}o(NP,"primitiveTypeToTsType");var Na=o(e=>ei(pt(e.operationName)),"getEndpointName");function jP(e,t){return`${t.tsNamespaces?`${ze({type:"endpoints",tag:ja(e,t),options:t})}.`:""}${Na(e)}`}o(jP,"getImportedEndpointName");var MP=o(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function ja(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return ri(r??t.defaultTag)}o(ja,"getEndpointTag");function Ma(e,t,r){let n=t.parameters.map(i=>{var a,c,u,l;let s="string";if(xt(i.zodSchema))s=Wi(e,i.zodSchema);else if((a=i.parameterObject)!=null&&a.schema&&Tt(i.parameterObject.schema)){let p=(u=(c=i.parameterObject)==null?void 0:c.schema)==null?void 0:u.type;p&&Gi(p)&&(s=NP(p))}return{name:Wn(i.name),type:s,paramType:i.type,required:((l=i.parameterObject)==null?void 0:l.required)??!0,parameterObject:i.parameterObject,bodyObject:i.bodyObject}});return r!=null&&r.includeFileParam&&t.mediaUpload&&n.push({name:"file",type:"File",paramType:"Body",required:!0,parameterObject:void 0,bodyObject:void 0}),n.sort((i,s)=>{if(i.required===s.required){let a=["Path","Body","Query","Header"];return a.indexOf(i.paramType)-a.indexOf(s.paramType)}return i.required?-1:1}).filter(i=>(!(r!=null&&r.excludeBodyParam)||i.name!==Vu)&&(!(r!=null&&r.excludePageParam)||i.name!==Pa.pageParamName)&&(!(r!=null&&r.includeOnlyRequiredParams)||i.required)).map(i=>({...i,name:r!=null&&r.replacePageParam&&i.name===Pa.pageParamName?"pageParam":i.name}))}o(Ma,"mapEndpointParamsToFunctionParams");function kP(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let s=QO(i.name)?i.name:`"${i.name}"`,a=Wn(i.name);return{...i,name:s,value:a}}),r={};return e.requestFormat!==xm["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==xm.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=Wn(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}o(kP,"getEndpointConfig");function qP(e,t){return t.filter(r=>Qt(r)&&r.parameters.filter(n=>{var i;return(i=n.parameterObject)==null?void 0:i.required}).every(n=>e.parameters.some(i=>i.name===n.name))&&r.response===e.response)}o(qP,"getUpdateQueryEndpoints");var Lm=["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"];function Ki(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}o(Ki,"pick");function os(e,t){let r=e.deprecated&&!t.withDeprecatedEndpoints,n=ni(e,t),i=yP(n,t);return r||i}o(os,"isOperationExcluded");function Fm({path:e,method:t,operation:r,options:n,tag:i,keepOperationTag:s,keepOperationPrefix:a}){let c=`${t}${hP(e)}`,u=r.operationId?Wn(r.operationId):c;if(n.removeOperationPrefixEndingWith&&a)u=u.split(n.removeOperationPrefixEndingWith).map((p,f)=>f===0?p:Le(p)).join("");else if(n.removeOperationPrefixEndingWith&&!a){let l=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);u=u.replace(l,"")}if(n.tsNamespaces&&!s){let l=cP(u,i);l===""?u=t.toLowerCase():Lm.includes(l)||(u=l)}return Lm.includes(u)?c:u}o(Fm,"getOperationName");function ka({operationsByTag:e,...t}){let{operation:r,options:n}=t,i=n.splitByTags?ni(r,n):n.defaultTag,s=o(a=>{let c=Fm({...t,tag:i,keepOperationTag:a});if(e[i].filter(l=>Fm({...t,operation:l,tag:i,keepOperationTag:a})===c).length===1)return c},"operationName");return s()??s(!0)??Fm({...t,tag:i,keepOperationTag:!0,keepOperationPrefix:!0})}o(ka,"getUniqueOperationName");function DP(e,t,r){let n=[];for(let i in e.paths){if(zi(i,r))continue;let s=e.paths[i],a=Ki(s,Vi);for(let c in a){let u=a[c];if(!u||os(u,r))continue;let l=ka({path:i,method:c,operation:u,operationsByTag:t,options:r});n.push(l)}}return n}o(DP,"getUniqueOperationNamesWithoutSplitByTags");function LP(e,t){let r={};for(let n in e.paths){if(zi(n,t))continue;let i=e.paths[n],s=Ki(i,Vi);for(let a in s){let c=s[a];if(!c||os(c,t))continue;let u=t.splitByTags?ni(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}o(LP,"getOperationsByTag");function qa(e){return{type:"invalid-schema",message:e}}o(qa,"getInvalidSchemaError");function FP(e){return{type:"invalid-operation-id",message:`Operation ${e}`}}o(FP,"getInvalidOperationIdError");function HP(e,t){return{type:"missing-path-parameter",message:`Path ${t} is missing [${e.map(({name:r})=>r).join(", ")}]`}}o(HP,"getMissingPathParameterError");function BP(e){return{type:"not-allowed-inline-enum",message:`${e} is missing @IsEnum() and @ApiProperty(enum:, enumName:)`}}o(BP,"getNotAllowedInlineEnumError");function VP(e){return{type:"not-allowed-circular-schema",message:e}}o(VP,"getNotAllowedCircularSchemaError");function UP(e,t,r){return{type:"missing-acl-condition-property",message:`Condition property ${e} is not found in parameters or body in operation ${tl(t,r)}`}}o(UP,"getMissingAclConditionPropertyError");function Hm(e,t,r){return{type:"missing-status-code",message:`Missing HTTP status code ${el(e)} in operation ${tl(t,r)}`}}o(Hm,"getMissingStatusCodeError");function GP(e,t,r){return{type:"invalid-status-code",message:`Operation ${tl(t,r)} expected HTTP status code ${el(e.expected)} but received ${el(e.received)}`}}o(GP,"getInvalidStatusCodeError");function zP(e,t,r){return{type:"multiple-success-status-codes",message:`Operation ${tl(t,r)} has multiple success HTTP status codes: ${e.map(el).join(", ")}`}}o(zP,"getMultipleSuccessStatusCodesError");function tl(e,t){return e.operationId??`${t.method} ${t.path}`}o(tl,"getOperationDescriptor");function el(e){return`${e} (${WO[e]})`}o(el,"getStatusCodeDescription");function ZP(e){return e.reduce((t,r)=>({...t,[r.type]:[...t[r.type]??[],r.message]}),{})}o(ZP,"groupByType");function on({schema:e,meta:t,options:r}){let n=[];Pt(e.type).with("string",()=>n.push(tD(e))).with("number","integer",()=>n.push(nD(e))).with("array",()=>n.push(iD(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&r.withDescription&&([`
139
+ `,i)}while(n!==-1);return s+=e.slice(i),s}o(bb,"stringEncaseCRLFWithFirstIndex");var{stdout:vb,stderr:_b}=gb,Df=Symbol("GENERATOR"),vo=Symbol("STYLER"),Rs=Symbol("IS_EMPTY"),Sb=["ansi","ansi","ansi256","ansi16m"],_o=Object.create(null),Q$=o((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=vb?vb.level:0;e.level=t.level===void 0?r:t.level},"applyOptions"),Hf=class Hf{constructor(t){return Eb(t)}};o(Hf,"Chalk");var qc=Hf,Eb=o(e=>{let t=o((...r)=>r.join(" "),"chalk");return Q$(t,e),Object.setPrototypeOf(t,Ns.prototype),t},"chalkFactory");function Ns(e){return Eb(e)}o(Ns,"createChalk");Object.setPrototypeOf(Ns.prototype,Function.prototype);for(let[e,t]of Object.entries(Pr))_o[e]={get(){let r=Dc(this,Ff(t.open,t.close,this[vo]),this[Rs]);return Object.defineProperty(this,e,{value:r}),r}};_o.visible={get(){let e=Dc(this,this[vo],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Lf=o((e,t,r,...n)=>e==="rgb"?t==="ansi16m"?Pr[r].ansi16m(...n):t==="ansi256"?Pr[r].ansi256(Pr.rgbToAnsi256(...n)):Pr[r].ansi(Pr.rgbToAnsi(...n)):e==="hex"?Lf("rgb",t,r,...Pr.hexToRgb(...n)):Pr[r][e](...n),"getModelAnsi"),J$=["rgb","hex","ansi256"];for(let e of J$){_o[e]={get(){let{level:r}=this;return function(...n){let i=Ff(Lf(e,Sb[r],"color",...n),Pr.color.close,this[vo]);return Dc(this,i,this[Rs])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);_o[t]={get(){let{level:r}=this;return function(...n){let i=Ff(Lf(e,Sb[r],"bgColor",...n),Pr.bgColor.close,this[vo]);return Dc(this,i,this[Rs])}}}}var X$=Object.defineProperties(()=>{},{..._o,level:{enumerable:!0,get(){return this[Df].level},set(e){this[Df].level=e}}}),Ff=o((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"),Dc=o((e,t,r)=>{let n=o((...i)=>ew(n,i.length===1?""+i[0]:i.join(" ")),"builder");return Object.setPrototypeOf(n,X$),n[Df]=e,n[vo]=t,n[Rs]=r,n},"createBuilder"),ew=o((e,t)=>{if(e.level<=0||!t)return e[Rs]?"":t;let r=e[vo];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=yb(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
140
+ `);return s!==-1&&(t=bb(t,i,n,s)),n+t+i},"applyStyle");Object.defineProperties(Ns.prototype,_o);var Q6=Ns(),J6=Ns({level:_b?_b.level:0});var Vr=new qc;function js(e,t,r){console.log(r!==void 0&&r!==t?`${Vr.yellow(`${e}:`.padEnd(20))}${Vr.magenta(t)}`:`${`${e}:`.padEnd(20)}${t}`)}o(js,"logVariable");function fr(e){console.log(`[INFO] ${e}`)}o(fr,"logInfo");function Rn(e){console.log(Vr.green(`[SUCCESS] ${e}`))}o(Rn,"logSuccess");function Ms(e,t){e instanceof Error?(console.log(Vr.red(`[ERROR] ${t||e.message}`)),process.env.VERBOSE&&console.error(e)):console.log(Vr.red(`[ERROR] ${e}`))}o(Ms,"logError");function Lc(e){console.log(Vr.bgYellow(`==== ${e} ====`))}o(Lc,"logBanner");var Ob=mt(require("fs"));function So(){return"0.13.2"}o(So,"getVersion");var fH=mt(xb());var Bf=Symbol("options_key");function Pe(e){return(t,r)=>{var n,i;if(e!=null){let s={...Reflect.getMetadata(Bf,t)||{},[r]:{...e,describe:e.envAlias?`${e.describe||""} [${e.envAlias}]`:e.describe,type:e.type||((i=(n=Reflect.getMetadata("design:type",t,r))==null?void 0:n.name)==null?void 0:i.toLowerCase())}};Reflect.defineMetadata(Bf,s,t)}}}o(Pe,"YargOption");function $b(e){let t=Reflect.getMetadata(Bf,e.prototype);if(!t)throw new Error(`Options for ${e.name} were not defined`);return t}o($b,"getYargsOption");function Fc(e){return async t=>t.options(tw(e)).middleware(async r=>await rw(e,r),!0)}o(Fc,"getBuilder");function tw(e){return Object.entries($b(e)).reduce((t,[r,n])=>(t[r]=Object.fromEntries(Object.entries(n).filter(([i])=>!["envAlias","default"].includes(i))),t),{})}o(tw,"getYargsOptions");async function rw(e,t){let r=new e;for(let[n,i]of Object.entries($b(e)))r[n]=t[n]??i.default;return r}o(rw,"loadYargsConfig");var Ax=mt(Rm());var tP={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Ambiguous",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I Am a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",424:"Failed Dependency",428:"Precondition Required",429:"Too Many Requests",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"},rP={"invalid-schema":"Invalid OpenAPI Schemas","invalid-operation-id":"Invalid Operation IDs","missing-path-parameter":"Missing Path Parameters","not-allowed-inline-enum":"Not Allowed Inline Enums","not-allowed-circular-schema":"Not Allowed Circular Schemas","missing-acl-condition-property":"Missing x-acl Condition Properties","missing-status-code":"Missing HTTP Status Codes","invalid-status-code":"Invalid HTTP Status Codes","multiple-success-status-codes":"Multiple Success HTTP Status Codes"};var kr={query:"useQuery",infiniteQuery:"useInfiniteQuery",mutation:"useMutation"},nP={bindings:[kr.query,kr.infiniteQuery,kr.mutation],from:"@tanstack/react-query"},$a={pageParamName:"page"},zu={pageParamName:"page",totalItemsName:"totalItems",limitParamName:"limit"},wa="moduleName";var Nm={"Content-Type":"application/json",Accept:"application/json"},Zu="data",jm="axios",Kn="config",en="AxiosRequestConfig",Wu={defaultImport:jm,bindings:[en],from:"axios"};var iP=o(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),Yn=o(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");function we(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}o(we,"isReferenceObject");function Rt(e){return!we(e)}o(Rt,"isSchemaObject");function Ku(e){return e.type==="array"}o(Ku,"isArraySchemaObject");function oP(e){if(!e.allOf)throw new Error("Function inferRequiredSchema is specialized to handle item with required only in an allOf array.");let[t,r]=e.allOf.reduce((i,s)=>{if(Qq(s)){let a=s.required;i[0].push(...a??[])}else i[1].push(s);return i},[[],[]]),n={properties:t.reduce((i,s)=>(i[s]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:o((i,s)=>{if(we(i)){let a=s(i.$ref);a&&n.required.forEach(c=>{var u;n.properties[c]=((u=a==null?void 0:a.properties)==null?void 0:u[c])??{}})}else{let a=i.properties??{};n.required.forEach(c=>{a[c]&&(n.properties[c]=a[c]??{})})}},"patchRequiredSchemaInLoop")}}o(oP,"inferRequiredSchema");var Qq=o(e=>!we(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var yn=Symbol.for("@ts-pattern/matcher"),Jq=Symbol.for("@ts-pattern/isVariadic"),Qu="@ts-pattern/anonymous-select-key",Mm=o(e=>!!(e&&typeof e=="object"),"r"),Yu=o(e=>e&&!!e[yn],"i"),nn=o((e,t,r)=>{if(Yu(e)){let n=e[yn](),{matched:i,selections:s}=n.match(t);return i&&s&&Object.keys(s).forEach(a=>r(a,s[a])),i}if(Mm(e)){if(!Mm(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],s=[];for(let a of e.keys()){let c=e[a];Yu(c)&&c[Jq]?s.push(c):s.length?i.push(c):n.push(c)}if(s.length){if(s.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let a=t.slice(0,n.length),c=i.length===0?[]:t.slice(-i.length),u=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,p)=>nn(l,a[p],r))&&i.every((l,p)=>nn(l,c[p],r))&&(s.length===0||nn(s[0],u,r))}return e.length===t.length&&e.every((a,c)=>nn(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||Yu(s=i)&&s[yn]().matcherType==="optional")&&nn(i,t[n],r);var s})}return Object.is(t,e)},"s"),ti=o(e=>{var t,r,n;return Mm(e)?Yu(e)?(t=(r=(n=e[yn]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Ia(e,ti):Ia(Object.values(e),ti):[]},"o"),Ia=o((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function yr(e){return Object.assign(e,{optional:o(()=>Xq(e),"optional"),and:o(t=>Ge(e,t),"and"),or:o(t=>eD(e,t),"or"),select:o(t=>t===void 0?sP(e):sP(t,e),"select")})}o(yr,"u");function Xq(e){return yr({[yn]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return t===void 0?(ti(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:nn(e,t,n),selections:r}},"match"),getSelectionKeys:o(()=>ti(e),"getSelectionKeys"),matcherType:"optional"})})}o(Xq,"h");function Ge(...e){return yr({[yn]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return{matched:e.every(i=>nn(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Ia(e,ti),"getSelectionKeys"),matcherType:"and"})})}o(Ge,"m");function eD(...e){return yr({[yn]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return Ia(e,ti).forEach(i=>n(i,void 0)),{matched:e.some(i=>nn(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Ia(e,ti),"getSelectionKeys"),matcherType:"or"})})}o(eD,"d");function xe(e){return{[yn]:()=>({match:o(t=>({matched:!!e(t)}),"match")})}}o(xe,"p");function sP(...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 yr({[yn]:()=>({match:o(n=>{let i={[t??Qu]:n};return{matched:r===void 0||nn(r,n,(s,a)=>{i[s]=a}),selections:i}},"match"),getSelectionKeys:o(()=>[t??Qu].concat(r===void 0?[]:ti(r)),"getSelectionKeys")})})}o(sP,"y");function tn(e){return typeof e=="number"}o(tn,"v");function Qn(e){return typeof e=="string"}o(Qn,"b");function Jn(e){return typeof e=="bigint"}o(Jn,"w");var IU=yr(xe(function(e){return!0}));var Xn=o(e=>Object.assign(yr(e),{startsWith:o(t=>{return Xn(Ge(e,(r=t,xe(n=>Qn(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:o(t=>{return Xn(Ge(e,(r=t,xe(n=>Qn(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:o(t=>Xn(Ge(e,(r=>xe(n=>Qn(n)&&n.length>=r))(t))),"minLength"),length:o(t=>Xn(Ge(e,(r=>xe(n=>Qn(n)&&n.length===r))(t))),"length"),maxLength:o(t=>Xn(Ge(e,(r=>xe(n=>Qn(n)&&n.length<=r))(t))),"maxLength"),includes:o(t=>{return Xn(Ge(e,(r=t,xe(n=>Qn(n)&&n.includes(r)))));var r},"includes"),regex:o(t=>{return Xn(Ge(e,(r=t,xe(n=>Qn(n)&&!!n.match(r)))));var r},"regex")}),"j"),CU=Xn(xe(Qn)),rn=o(e=>Object.assign(yr(e),{between:o((t,r)=>rn(Ge(e,((n,i)=>xe(s=>tn(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>rn(Ge(e,(r=>xe(n=>tn(n)&&n<r))(t))),"lt"),gt:o(t=>rn(Ge(e,(r=>xe(n=>tn(n)&&n>r))(t))),"gt"),lte:o(t=>rn(Ge(e,(r=>xe(n=>tn(n)&&n<=r))(t))),"lte"),gte:o(t=>rn(Ge(e,(r=>xe(n=>tn(n)&&n>=r))(t))),"gte"),int:o(()=>rn(Ge(e,xe(t=>tn(t)&&Number.isInteger(t)))),"int"),finite:o(()=>rn(Ge(e,xe(t=>tn(t)&&Number.isFinite(t)))),"finite"),positive:o(()=>rn(Ge(e,xe(t=>tn(t)&&t>0))),"positive"),negative:o(()=>rn(Ge(e,xe(t=>tn(t)&&t<0))),"negative")}),"x"),TU=rn(xe(tn)),ei=o(e=>Object.assign(yr(e),{between:o((t,r)=>ei(Ge(e,((n,i)=>xe(s=>Jn(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>ei(Ge(e,(r=>xe(n=>Jn(n)&&n<r))(t))),"lt"),gt:o(t=>ei(Ge(e,(r=>xe(n=>Jn(n)&&n>r))(t))),"gt"),lte:o(t=>ei(Ge(e,(r=>xe(n=>Jn(n)&&n<=r))(t))),"lte"),gte:o(t=>ei(Ge(e,(r=>xe(n=>Jn(n)&&n>=r))(t))),"gte"),positive:o(()=>ei(Ge(e,xe(t=>Jn(t)&&t>0))),"positive"),negative:o(()=>ei(Ge(e,xe(t=>Jn(t)&&t<0))),"negative")}),"A"),RU=ei(xe(Jn)),NU=yr(xe(function(e){return typeof e=="boolean"})),jU=yr(xe(function(e){return typeof e=="symbol"})),MU=yr(xe(function(e){return e==null})),kU=yr(xe(function(e){return e!=null}));var Lm=class Lm extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}};o(Lm,"W");var km=Lm,qm={matched:!1,value:void 0};function xt(e){return new Dm(e,qm)}o(xt,"z");var Aa=class Aa{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let s=!1,a={},c=o((l,p)=>{s=!0,a[l]=p},"a"),u=!n.some(l=>nn(l,this.input,c))||i&&!i(this.input)?qm:{matched:!0,value:r(s?Qu in a?a[Qu]:a:this.input,this.input)};return new Aa(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new Aa(this.input,n?{matched:!0,value:r(this.input,this.input)}:qm)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new km(this.input)}run(){return this.exhaustive()}returnType(){return this}};o(Aa,"I");var Dm=Aa;var Fm=2,aP=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],cP=["query","header","path"],zi=["get","put","post","delete","options","head","patch","trace"],uP=["string","number","integer","boolean"],Ca=["allOf","anyOf","oneOf"];var Fe=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),ri=o(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),lP=o(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),pt=o(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),fP=o(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),Hm=o((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),pP=o((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),tD=o(e=>{var n;let t=e.reduce((i,s)=>({...i,[s]:(i[s]??0)+1}),{});return(n=Object.entries(t).sort((i,s)=>i[1]===s[1]?s[0].length-i[0].length:s[1]-i[1])[0])==null?void 0:n[0]},"getLongestMostCommon"),Bm=o(e=>{let t=e.map(Fe).map(dP).map(r=>rD(r)).flat();return tD(t)},"getMostCommonAdjacentCombinationSplit"),dP=o(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),hP=o(e=>dP(e).join(" "),"camelToSpaceSeparated"),rD=o((e,t=["dto","by","for","of","in","to","and","with"])=>{var n;let r=[];for(let i=0;i<e.length;i++)if(!t.includes(e[i].toLowerCase()))for(let s=i+1;s<=e.length;s++)t.includes((n=e[s-1])==null?void 0:n.toLowerCase())||r.push(e.slice(i,s).join(""));return r},"getAdjacentStringCombinations"),mP=o((e,t)=>{let r=t.replace(/es$|s$/g,""),n=new RegExp(`(${ri(r)}|${Fe(r)})[a-z]*(?=$|[A-Z])`,"g");return e.replace(n,"")},"removeWord");var yP=o(e=>`#/components/schemas/${e}`,"getSchemaRef"),Zi=o(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),ss=o(e=>Zi(e).split("/").at(-1),"getSchemaNameByRef");function Um(e){let t=nD(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return pt(t)}o(Um,"normalizeString");function bP(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}o(bP,"wrapWithQuotesIfNeeded");function vP(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}o(vP,"unwrapQuotesIfNeeded");function nD(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}o(nD,"prefixStringStartingWithNumberIfNeeded");function Gm(e){let t=e.replaceAll("_","#");return pt(t.replaceAll("-","_")).replaceAll("#","_")}o(Gm,"pathParamToVariableName");var Wi=o(e=>uP.includes(e),"isPrimitiveType");function _P(e){return e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/([\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\uFFFE\uFFFF])/g,(t,r)=>{let n=r.codePointAt(),i=n.toString(16);return n<=255?`\\x${`00${i}`.slice(-2)}`:`\\u${`0000${i}`.slice(-4)}`}).replace(/\//g,"\\/")}o(_P,"escapeControlCharacters");function on(e){return e.includes("application/")&&e.includes("json")||aP.includes(e)||e.includes("text/")}o(on,"isParamMediaTypeAllowed");function Ta(e){return e>=200&&e<300}o(Ta,"isMainResponseStatus");function Ju(e){return!(e>=200&&e<300)}o(Ju,"isErrorStatus");function Xu(e){return e.startsWith("application/")}o(Xu,"isMediaTypeAllowed");var gP=/({\w+})/g,iD=/[^\w\-]+/g;function SP(e){e=Fe(lP(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(gP)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(gP,"")}By${Fe(r.slice(1,-1))}`}return e.replace(iD,"_")}o(SP,"pathToVariableName");var Vm=/{(\b\w+(?:-\w+)*\b)}/g;function EP(e){let t=e.match(Vm);return t===null?e.replaceAll(Vm,":$1"):(t.forEach(r=>{let n=Gm(r.replaceAll(Vm,":$1"));e=e.replaceAll(r,n)}),e)}o(EP,"replaceHyphenatedPath");var OP=o(e=>{let t=e["x-enumNames"],r=Array.isArray(t)&&t.length>0,n=!!e.schema&&Rt(e.schema)&&e.schema.type==="string";return r&&n},"isSortingParameterObject"),Ki=o((e,t)=>t.excludePathRegex?new RegExp(t.excludePathRegex).test(e):!1,"isPathExcluded");var Jt=o(e=>e.method==="get","isQuery"),ii=o(e=>e.method!=="get"||!!e.mediaDownload,"isMutation"),as=o((e,t)=>Jt(e)&&(t??Object.values($a)).every(r=>e.parameters.some(n=>n.name===r&&n.type==="Query")),"isInfiniteQuery"),PP=o((e,t,r)=>{let n=r.reduce((i,s)=>[...i,...ni(e,s,{includeOnlyRequiredParams:!0}).map(a=>a.name)],[]);return ni(e,t,{includeOnlyRequiredParams:!0,excludeBodyParam:!0}).filter(i=>n.includes(i.name)).map(i=>i.name)},"getDestructuredVariables");function oi(e){return fP(e)}o(oi,"formatTag");function si(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return oi(r??t.defaultTag)}o(si,"getOperationTag");function xP(e,t){return t.excludeTags.some(r=>r.toLowerCase()===e.toLowerCase())}o(xP,"isTagExcluded");var el={fileName:"acl/app.ability",extension:"ts"},Ra="AllAbilities",Na="AppAbilities",tl={fileName:"acl/useAclCheck",extension:"ts"},ai="useAclCheck",Nt={abilityTuple:"AbilityTuple",pureAbility:"PureAbility",forcedSubject:"ForcedSubject",subject:"Subject"},zm={bindings:[Nt.abilityTuple,Nt.pureAbility,Nt.forcedSubject,Nt.subject],from:"@casl/ability"};var Xt=o((...e)=>[...new Set(e.flat())],"getUniqueArray");function jt(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(we(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(Ca.some(s=>s in i&&i[s])){let s=i.allOf??i.anyOf??i.oneOf??[];for(let a of s)(n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))!==!0&&jt(a,{data:r,onSchema:n})}if(i.properties)for(let[s,a]of Object.entries(i.properties))n({type:"property",parentSchema:e,schema:a,data:r,propertyName:s})!==!0&&jt(a,t);if(i.additionalProperties&&typeof i.additionalProperties=="object"){if(n({type:"additionalProperties",parentSchema:e,schema:i.additionalProperties,data:r})===!0)return;jt(i.additionalProperties,t)}if(i.type==="array"){let s=e.items;if(n({type:"array",parentSchema:e,schema:s,data:r})===!0)return;jt(s,t)}}o(jt,"iterateSchema");var sn=o((e,t)=>Hm(Fe(Um(e)),t),"getZodSchemaName"),ja=o((e,t,r)=>Hm(Fe(Um(e)),`${t}${r}`),"getEnumZodSchemaName"),$t=o(e=>!e.startsWith("z."),"isNamedZodSchema"),$P=o(e=>e.startsWith(Ts),"isEnumZodSchema"),Yi=o((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),rl=o(e=>pt(`${e}_${ab}`),"getBodyZodSchemaName"),wP=o((e,t)=>pt(`${e}_${t}${cb}`),"getParamZodSchemaName"),oD=o(e=>pt(`${e}${ub}`),"getMainResponseZodSchemaName"),sD=o((e,t)=>pt(`${e}_${t}_${lb}`),"getErrorResponseZodSchemaName");function nl({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),s=Yi(t,r,n);return!Ta(i)&&e!=="default"&&Ju(i)?sD(s,e):oD(s)}o(nl,"getResponseZodSchemaName");function Ma(e){return["minimum","exclusiveMinimum","maximum","exclusiveMaximum","minItems","minLength","minProperties","maxItems","maxLength","maxProperties","default","example"].filter(n=>e[n]).reduce((n,i)=>[...n,`${Fe(hP(i))}: \`${e[i]}\``],[])}o(Ma,"getSchemaDescriptions");var ka=o((e,t)=>pP(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),AP=o((e,t)=>$t(t)?`${e.options.tsNamespaces?`${Ze({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),Qi=o((e,t,r)=>{if(!$t(t))return t===Cs?"void":t;let n=e.getTagByZodSchemaName(t);return`${e.options.tsNamespaces&&n!==r?`${Ze({type:"models",tag:n,options:e.options})}.`:""}${ka(t,e.options)}`},"getImportedZodSchemaInferedTypeName");function IP(e){var t;return e.isEnum?"enum":((t=e.schemaObj)==null?void 0:t.type)??"object"}o(IP,"getZodSchemaType");function CP(e){if(e.schemaObj)return[e.schemaObj.description,...Ma(e.schemaObj).join(". ")].filter(Boolean)}o(CP,"getZodSchemaDescription");function TP(e,t,r){var n;if(we(t)){let i=e.getZodSchemaNameByRef(t.$ref);return i?Qi(e,i,r):void 0}if(Ku(t)){if(!we(t.items))return`${((n=t.items)==null?void 0:n.type)??"unknown"}[]`;let i=e.getZodSchemaNameByRef(t.items.$ref);return i?`${Qi(e,i,r)}[]`:void 0}if(Ca.some(i=>i in t&&t[i])){let i=t.allOf??t.anyOf??t.oneOf??[];if(i.length>0)return TP(e,i[0],r)}return t.type}o(TP,"getType");function RP(e,t,r){if(!t.schemaObj)return[];let n="[0]",i="[key]",s={},a=o(c=>{var l;if(c.type==="reference")return!0;if(c.type==="composite")return;let u=[...((l=c.data)==null?void 0:l.pathSegments)??[]];if(c.type==="array"?u.push(n):c.type==="property"?u.push(c.propertyName):c.type==="additionalProperties"&&u.push(i),c.schema&&u[u.length-1]!==n){let p=e.resolveObject(c.schema),f=[p.description,...Ma(p)].filter(Boolean),d=u.join(".");s[d]&&"type"in c.schema&&c.schema.type==="object"||(delete s[d],s[d]={type:TP(e,c.schema,r)??"unknown",description:f.join(". ")})}return jt(c.schema,{data:{pathSegments:[...u]},onSchema:a}),!0},"onSchema");return"allOf"in t.schemaObj&&t.schemaObj.allOf&&t.schemaObj.allOf.forEach(c=>{if(we(c)){let u=e.resolveObject(c);jt(u,{data:{pathSegments:[]},onSchema:a})}}),jt(t.schemaObj,{data:{pathSegments:[]},onSchema:a}),s}o(RP,"getZodSchemaPropertyDescriptions");function ci({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",s=o(u=>e.getTagByZodSchemaName(u),"getTag"),a=Zm({type:i,tag:t,entities:r,getTag:s,getEntityName:o(u=>u,"getEntityName"),options:e.options}),c=Zm({type:i,tag:t,entities:n,getTag:s,getEntityName:o(u=>ka(u,e.options),"getEntityName"),options:e.options});return aD(e.options,a,c)}o(ci,"getModelsImports");function NP({tag:e,endpoints:t,options:r}){return Zm({type:"endpoints",tag:e,entities:t,getTag:o(n=>Da(n,r),"getTag"),getEntityName:qa,options:r})}o(NP,"getEndpointsImports");function jP({tags:e,entityName:t,getAliasEntityName:r,type:n,options:i}){let s=new Map;return e.forEach(a=>{let c=`${t}${r?` as ${r(a)}`:""}`;s.has(a)?i.tsNamespaces||s.get(a).bindings.push(c):s.set(a,{bindings:[i.tsNamespaces?Ze({type:n,tag:a,options:i}):c],from:`${bn(i)}${il({type:n,tag:a,includeTagDir:!0,options:i})}`})}),Array.from(s.values())}o(jP,"getEntityImports");function bn(e){let t=jf;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${Nf}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${Nf}`,"g"),jf)),`${t}/`.replace(/\/\//g,"/")}o(bn,"getImportPath");function Zm({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:s}){let a=new Map;return r.forEach(c=>{let u=n(c);if(a.has(u))s.tsNamespaces||a.get(u).bindings.push(i(c));else{let l=t===u;a.set(u,{bindings:[s.tsNamespaces?Ze({type:e,tag:u,options:s}):i(c)],from:`${l?"./":bn(s)}${il({type:e,tag:u,includeTagDir:!l,options:s})}`})}}),Array.from(a.values())}o(Zm,"getImports");function aD(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.tsNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:Xt(n.bindings)}))}o(aD,"mergeImports");function Ji({fileName:e,extension:t}){return`${e}.${t}`}o(Ji,"getFileNameWithExtension");function MP({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${ri(t)}/`:""}${ri(t)}.${i}`:i}o(MP,"getTagFileNameWithoutExtension");function il(...e){return MP(...e)}o(il,"getTagImportPath");function ol(...e){return`${MP(...e)}.ts`}o(ol,"getTagFileName");var Ze=o(({type:e,tag:t,options:r})=>`${Fe(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");function kP(e){return e.standalone?`${bn(e)}${Ic.fileName}`:e.restClientImportPath}o(kP,"getAppRestClientImportPath");function qP(e){return e.standalone?`${bn(e)}${Ac.reactQueryTypes.fileName}`:e.queryTypesImportPath}o(qP,"getQueryTypesImportPath");function DP(e){return`${bn(e)}${Cc.fileName}`}o(DP,"getQueryModulesImportPath");function LP(e){return`${bn(e)}${Tc.fileName}`}o(LP,"getMutationEffectsImportPath");function FP(e){return`${bn(e)}${tl.fileName}`}o(FP,"getAclCheckImportPath");function HP(e){return`${bn(e)}${Rc.fileName}`}o(HP,"getZodExtendedImportPath");function BP(){return`./${el.fileName}`}o(BP,"getAppAbilitiesImportPath");function VP(e){return xt(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}o(VP,"primitiveTypeToTsType");var qa=o(e=>ri(pt(e.operationName)),"getEndpointName");function UP(e,t){return`${t.tsNamespaces?`${Ze({type:"endpoints",tag:Da(e,t),options:t})}.`:""}${qa(e)}`}o(UP,"getImportedEndpointName");var GP=o(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function Da(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return oi(r??t.defaultTag)}o(Da,"getEndpointTag");function ni(e,t,r){let n=t.parameters.map(i=>{var a,c,u,l;let s="string";if($t(i.zodSchema))s=Qi(e,i.zodSchema);else if((a=i.parameterObject)!=null&&a.schema&&Rt(i.parameterObject.schema)){let p=(u=(c=i.parameterObject)==null?void 0:c.schema)==null?void 0:u.type;p&&Wi(p)&&(s=VP(p))}return{name:Yn(i.name),type:s,paramType:i.type,required:((l=i.parameterObject)==null?void 0:l.required)??!0,parameterObject:i.parameterObject,bodyObject:i.bodyObject}});return r!=null&&r.includeFileParam&&t.mediaUpload&&n.push({name:"file",type:"File",paramType:"Body",required:!0,parameterObject:void 0,bodyObject:void 0}),n.sort((i,s)=>{if(i.required===s.required){let a=["Path","Body","Query","Header"];return a.indexOf(i.paramType)-a.indexOf(s.paramType)}return i.required?-1:1}).filter(i=>(!(r!=null&&r.excludeBodyParam)||i.name!==Zu)&&(!(r!=null&&r.excludePageParam)||i.name!==$a.pageParamName)&&(!(r!=null&&r.includeOnlyRequiredParams)||i.required)).map(i=>({...i,name:r!=null&&r.replacePageParam&&i.name===$a.pageParamName?"pageParam":i.name}))}o(ni,"mapEndpointParamsToFunctionParams");function zP(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let s=iP(i.name)?i.name:`"${i.name}"`,a=Yn(i.name);return{...i,name:s,value:a}}),r={};return e.requestFormat!==Nm["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==Nm.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=Yn(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}o(zP,"getEndpointConfig");function ZP(e,t){return t.filter(r=>Jt(r)&&r.parameters.filter(n=>{var i;return(i=n.parameterObject)==null?void 0:i.required}).every(n=>e.parameters.some(i=>i.name===n.name))&&r.response===e.response)}o(ZP,"getUpdateQueryEndpoints");var Wm=["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"];function Xi(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}o(Xi,"pick");function cs(e,t){let r=e.deprecated&&!t.withDeprecatedEndpoints,n=si(e,t),i=xP(n,t);return r||i}o(cs,"isOperationExcluded");function Km({path:e,method:t,operation:r,options:n,tag:i,keepOperationTag:s,keepOperationPrefix:a}){let c=`${t}${SP(e)}`,u=r.operationId?Yn(r.operationId):c;if(n.removeOperationPrefixEndingWith&&a)u=u.split(n.removeOperationPrefixEndingWith).map((p,f)=>f===0?p:Fe(p)).join("");else if(n.removeOperationPrefixEndingWith&&!a){let l=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);u=u.replace(l,"")}if(n.tsNamespaces&&!s){let l=mP(u,i);l===""?u=t.toLowerCase():Wm.includes(l)||(u=l)}return Wm.includes(u)?c:u}o(Km,"getOperationName");function La({operationsByTag:e,...t}){let{operation:r,options:n}=t,i=n.splitByTags?si(r,n):n.defaultTag,s=o(a=>{let c=Km({...t,tag:i,keepOperationTag:a});if(e[i].filter(l=>Km({...t,operation:l,tag:i,keepOperationTag:a})===c).length===1)return c},"operationName");return s()??s(!0)??Km({...t,tag:i,keepOperationTag:!0,keepOperationPrefix:!0})}o(La,"getUniqueOperationName");function WP(e,t,r){let n=[];for(let i in e.paths){if(Ki(i,r))continue;let s=e.paths[i],a=Xi(s,zi);for(let c in a){let u=a[c];if(!u||cs(u,r))continue;let l=La({path:i,method:c,operation:u,operationsByTag:t,options:r});n.push(l)}}return n}o(WP,"getUniqueOperationNamesWithoutSplitByTags");function KP(e,t){let r={};for(let n in e.paths){if(Ki(n,t))continue;let i=e.paths[n],s=Xi(i,zi);for(let a in s){let c=s[a];if(!c||cs(c,t))continue;let u=t.splitByTags?si(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}o(KP,"getOperationsByTag");function Fa(e){return{type:"invalid-schema",message:e}}o(Fa,"getInvalidSchemaError");function YP(e){return{type:"invalid-operation-id",message:`Operation ${e}`}}o(YP,"getInvalidOperationIdError");function QP(e,t){return{type:"missing-path-parameter",message:`Path ${t} is missing [${e.map(({name:r})=>r).join(", ")}]`}}o(QP,"getMissingPathParameterError");function JP(e){return{type:"not-allowed-inline-enum",message:`${e} is missing @IsEnum() and @ApiProperty(enum:, enumName:)`}}o(JP,"getNotAllowedInlineEnumError");function XP(e){return{type:"not-allowed-circular-schema",message:e}}o(XP,"getNotAllowedCircularSchemaError");function ex(e,t,r){return{type:"missing-acl-condition-property",message:`Condition property ${e} is not found in parameters or body in operation ${al(t,r)}`}}o(ex,"getMissingAclConditionPropertyError");function Ym(e,t,r){return{type:"missing-status-code",message:`Missing HTTP status code ${sl(e)} in operation ${al(t,r)}`}}o(Ym,"getMissingStatusCodeError");function tx(e,t,r){return{type:"invalid-status-code",message:`Operation ${al(t,r)} expected HTTP status code ${sl(e.expected)} but received ${sl(e.received)}`}}o(tx,"getInvalidStatusCodeError");function rx(e,t,r){return{type:"multiple-success-status-codes",message:`Operation ${al(t,r)} has multiple success HTTP status codes: ${e.map(sl).join(", ")}`}}o(rx,"getMultipleSuccessStatusCodesError");function al(e,t){return e.operationId??`${t.method} ${t.path}`}o(al,"getOperationDescriptor");function sl(e){return`${e} (${tP[e]})`}o(sl,"getStatusCodeDescription");function nx(e){return e.reduce((t,r)=>({...t,[r.type]:[...t[r.type]??[],r.message]}),{})}o(nx,"groupByType");function an({schema:e,meta:t,options:r}){let n=[];xt(e.type).with("string",()=>n.push(lD(e))).with("number","integer",()=>n.push(pD(e))).with("array",()=>n.push(dD(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&r.withDescription&&([`
141
141
  `,"\r",`\r
142
- `].some(s=>String.prototype.includes.call(e.description,s))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(Xq({schema:e,meta:t,options:r}),r.withDefaultValues!==!1?eD(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}o(on,"getZodChain");function Xq({schema:e,meta:t,options:r}){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable||r.replaceOptionalWithNullish&&(t!=null&&t.isParentPartial)?"nullable()":t!=null&&t.isRequired?"":r.replaceOptionalWithNullish?"nullish()":"optional()"}o(Xq,"getZodChainablePresence");function eD(e){return e.default!==void 0?`default(${Pt(e.type).with("number","integer",()=>pP(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}o(eD,"getZodChainableDefault");function tD(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(${rD(e.pattern)})`),e.format){let r=Pt(e.format).with("email",()=>"email()").with("hostname","uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}o(tD,"getZodChainableStringValidations");function rD(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=dP(e),`/${e}/`}o(rD,"formatPatternIfNeeded");function nD(e){let t=[];return e.enum?"":(e.type==="integer"&&t.push("int()"),e.minimum!==void 0?e.exclusiveMinimum===!0?t.push(`gt(${e.minimum})`):t.push(`gte(${e.minimum})`):typeof e.exclusiveMinimum=="number"&&t.push(`gt(${e.exclusiveMinimum})`),e.maximum!==void 0?e.exclusiveMaximum===!0?t.push(`lt(${e.maximum})`):t.push(`lte(${e.maximum})`):typeof e.exclusiveMaximum=="number"&&t.push(`lt(${e.exclusiveMaximum})`),e.multipleOf&&t.push(`multipleOf(${e.multipleOf})`),t.join("."))}o(nD,"getZodChainableNumberValidations");function iD(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}o(iD,"getZodChainableArrayValidations");var Yi=o(e=>e.reduce((t,r)=>t+r,0),"sum");function dt(e,t){if(!t)return e;if(xe(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?Xt("oneOf")+dt(e,{...t,type:t.type[0]}):e+Xt("oneOf")+Yi(t.type.map(r=>dt(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?Xt("oneOf")+dt(e,t.oneOf[0]):e+Xt("oneOf")+Yi(t.oneOf.map(r=>dt(0,r)));if(t.anyOf)return t.anyOf.length===1?Xt("anyOf")+dt(e,t.anyOf[0]):e+Xt("anyOf")+Yi(t.anyOf.map(r=>dt(0,r)));if(t.allOf)return t.allOf.length===1?Xt("allOf")+dt(e,t.allOf[0]):e+Xt("allOf")+Yi(t.allOf.map(r=>dt(0,r)));if(!t.type)return e;if(Gi(t.type))return t.enum?e+WP(t)+Xt("enum")+Yi(t.enum.map(r=>dt(0,r))):e+WP(t);if(t.type==="array")return t.items?Xt("array")+dt(e,t.items):Xt("array")+dt(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.properties){let r=Object.values(t.properties);e+=Xt("object")+Yi(r.map(n=>dt(0,n)))}else e+=Xt("empty-object");t.additionalProperties&&(typeof t.additionalProperties=="object"?e+=dt(0,t.additionalProperties):e+=dt(1))}return e}o(dt,"getOpenAPISchemaComplexity");function WP(e){return Pt(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}o(WP,"complexityByType");function Xt(e){return Pt(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}o(Xt,"complexityByComposite");var Bm=class Bm{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;xe(t)&&(this.ref=t.$ref),i&&(this.enumRef=i),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;enumRef;children=[];meta;getCodeString(t,r){var s,a;if(!this.ref&&this.code)return this.code;if(!this.ref)throw new Error("Zod schema is missing both ref and code");let n=(s=this.resolver)==null?void 0:s.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.tsNamespaces&&i&&i!==t?`${ze({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return dt(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};o(Bm,"ZodSchema");var Da=Bm;function Qe({schema:e,resolver:t,meta:r,tag:n}){var y;let i=new Da(e,t,r),s={parent:i.inherit(r==null?void 0:r.parent),referencedBy:[...i.meta.referencedBy]},a={resolver:t,meta:s,tag:n};if(xe(e))return oD({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});let c=aD({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(c)return c;let u=sD({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(u)return u;let l=cD({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(l)return l;let p=uD({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(p)return p;let f=lD({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(f)return f;let d=t.options.allReadonly?".readonly()":"";if(Gu(e))return e.items?i.assign(`z.array(${Qe({...a,schema:e.items}).getCodeString(n,t.options)}${on({schema:e.items,meta:{...s,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 b=e.required&&e.required.length>0,g=t.options.withImplicitRequiredProps?!1:e.properties&&!((y=e.required)!=null&&y.length),P="{}";e.properties&&(P="{ "+Object.entries(e.properties).map(([K,X])=>{var M;let Ze={...s,isRequired:g?!0:b?(M=e.required)==null?void 0:M.includes(K):t.options.withImplicitRequiredProps,name:K,isParentPartial:g},Ie=X;if(xe(X)&&t&&(Ie=t.getSchemaByRef(X.$ref),!Ie))throw new Error(`Schema ${X.$ref} not found`);let re=Qe({...a,schema:X,meta:Ze}).getCodeString(n,t.options)+on({schema:Ie,meta:Ze,options:t.options});return[K,re]}).map(([K,X])=>`${fP(K)}: ${X}`).join(", ")+" }");let $="";e.additionalProperties&&($=`.catchall(${typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0?Qe({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+on({schema:e.additionalProperties,meta:{...s,isRequired:!0},options:t.options}):"z.any()"})`);let C=g?".partial()":"",T=t.options.strictObjects?".strict()":"";return i.assign(`z.object(${P})${C}${T}${$}${d}`)}if(h==="any")return i.assign("z.any()");if(!h)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${h}`)}o(Qe,"getZodSchema");function oD({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!xe(e))return;let s=t.meta.referencedBy.slice(0,-1).map(u=>u.ref?r.getZodSchemaNameByRef(u.ref)??u.ref:void 0).filter(Boolean),a=r.getZodSchemaNameByRef(e.$ref);if(s.length>1&&s.includes(a))return t.assign(r.getCodeByZodSchemaName(t.ref));let c=r.getCodeByZodSchemaName(e.$ref);if(!c){let u=r.getSchemaByRef(e.$ref);if(!u)throw new Error(`Schema ${e.$ref} not found`);c=Qe({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,c,i),t}o(oD,"getReferenceZodSchema");function sD({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!Tt(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=Qe({schema:e.oneOf[0],resolver:r,meta:n,tag:i});return t.assign(c.getCodeString(i,r.options))}let s=(a=e.oneOf)==null?void 0:a.some(c=>Tt(c)&&((c==null?void 0:c.allOf)||[]).length>1);if(e.discriminator&&!s){let c=e.discriminator.propertyName;return t.assign(`
142
+ `].some(s=>String.prototype.includes.call(e.description,s))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(cD({schema:e,meta:t,options:r}),r.withDefaultValues!==!1?uD(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}o(an,"getZodChain");function cD({schema:e,meta:t,options:r}){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable||r.replaceOptionalWithNullish&&(t!=null&&t.isParentPartial)?"nullable()":t!=null&&t.isRequired?"":r.replaceOptionalWithNullish?"nullish()":"optional()"}o(cD,"getZodChainablePresence");function uD(e){return e.default!==void 0?`default(${xt(e.type).with("number","integer",()=>vP(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}o(uD,"getZodChainableDefault");function lD(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(${fD(e.pattern)})`),e.format){let r=xt(e.format).with("email",()=>"email()").with("hostname","uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}o(lD,"getZodChainableStringValidations");function fD(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=_P(e),`/${e}/`}o(fD,"formatPatternIfNeeded");function pD(e){let t=[];return e.enum?"":(e.type==="integer"&&t.push("int()"),e.minimum!==void 0?e.exclusiveMinimum===!0?t.push(`gt(${e.minimum})`):t.push(`gte(${e.minimum})`):typeof e.exclusiveMinimum=="number"&&t.push(`gt(${e.exclusiveMinimum})`),e.maximum!==void 0?e.exclusiveMaximum===!0?t.push(`lt(${e.maximum})`):t.push(`lte(${e.maximum})`):typeof e.exclusiveMaximum=="number"&&t.push(`lt(${e.exclusiveMaximum})`),e.multipleOf&&t.push(`multipleOf(${e.multipleOf})`),t.join("."))}o(pD,"getZodChainableNumberValidations");function dD(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}o(dD,"getZodChainableArrayValidations");var eo=o(e=>e.reduce((t,r)=>t+r,0),"sum");function dt(e,t){if(!t)return e;if(we(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?er("oneOf")+dt(e,{...t,type:t.type[0]}):e+er("oneOf")+eo(t.type.map(r=>dt(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?er("oneOf")+dt(e,t.oneOf[0]):e+er("oneOf")+eo(t.oneOf.map(r=>dt(0,r)));if(t.anyOf)return t.anyOf.length===1?er("anyOf")+dt(e,t.anyOf[0]):e+er("anyOf")+eo(t.anyOf.map(r=>dt(0,r)));if(t.allOf)return t.allOf.length===1?er("allOf")+dt(e,t.allOf[0]):e+er("allOf")+eo(t.allOf.map(r=>dt(0,r)));if(!t.type)return e;if(Wi(t.type))return t.enum?e+ix(t)+er("enum")+eo(t.enum.map(r=>dt(0,r))):e+ix(t);if(t.type==="array")return t.items?er("array")+dt(e,t.items):er("array")+dt(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.properties){let r=Object.values(t.properties);e+=er("object")+eo(r.map(n=>dt(0,n)))}else e+=er("empty-object");t.additionalProperties&&(typeof t.additionalProperties=="object"?e+=dt(0,t.additionalProperties):e+=dt(1))}return e}o(dt,"getOpenAPISchemaComplexity");function ix(e){return xt(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}o(ix,"complexityByType");function er(e){return xt(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}o(er,"complexityByComposite");var Qm=class Qm{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;we(t)&&(this.ref=t.$ref),i&&(this.enumRef=i),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;enumRef;children=[];meta;getCodeString(t,r){var s,a;if(!this.ref&&this.code)return this.code;if(!this.ref)throw new Error("Zod schema is missing both ref and code");let n=(s=this.resolver)==null?void 0:s.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.tsNamespaces&&i&&i!==t?`${Ze({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return dt(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};o(Qm,"ZodSchema");var Ha=Qm;function Qe({schema:e,resolver:t,meta:r,tag:n}){var y;let i=new Ha(e,t,r),s={parent:i.inherit(r==null?void 0:r.parent),referencedBy:[...i.meta.referencedBy]},a={resolver:t,meta:s,tag:n};if(we(e))return hD({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});let c=gD({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(c)return c;let u=mD({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(u)return u;let l=yD({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(l)return l;let p=bD({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(p)return p;let f=vD({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(f)return f;let d=t.options.allReadonly?".readonly()":"";if(Ku(e))return e.items?i.assign(`z.array(${Qe({...a,schema:e.items}).getCodeString(n,t.options)}${an({schema:e.items,meta:{...s,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 b=e.required&&e.required.length>0,g=t.options.withImplicitRequiredProps?!1:e.properties&&!((y=e.required)!=null&&y.length),P="{}";e.properties&&(P="{ "+Object.entries(e.properties).map(([te,J])=>{var M;let Ee={...s,isRequired:g?!0:b?(M=e.required)==null?void 0:M.includes(te):t.options.withImplicitRequiredProps,name:te,isParentPartial:g},Ae=J;if(we(J)&&t&&(Ae=t.getSchemaByRef(J.$ref),!Ae))throw new Error(`Schema ${J.$ref} not found`);let re=Qe({...a,schema:J,meta:Ee}).getCodeString(n,t.options)+an({schema:Ae,meta:Ee,options:t.options});return[te,re]}).map(([te,J])=>`${bP(te)}: ${J}`).join(", ")+" }");let $="";e.additionalProperties&&($=`.catchall(${typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0?Qe({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+an({schema:e.additionalProperties,meta:{...s,isRequired:!0},options:t.options}):"z.any()"})`);let C=g?".partial()":"",T=t.options.strictObjects?".strict()":"";return i.assign(`z.object(${P})${C}${T}${$}${d}`)}if(h==="any")return i.assign("z.any()");if(!h)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${h}`)}o(Qe,"getZodSchema");function hD({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!we(e))return;let s=t.meta.referencedBy.slice(0,-1).map(u=>u.ref?r.getZodSchemaNameByRef(u.ref)??u.ref:void 0).filter(Boolean),a=r.getZodSchemaNameByRef(e.$ref);if(s.length>1&&s.includes(a))return t.assign(r.getCodeByZodSchemaName(t.ref));let c=r.getCodeByZodSchemaName(e.$ref);if(!c){let u=r.getSchemaByRef(e.$ref);if(!u)throw new Error(`Schema ${e.$ref} not found`);c=Qe({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,c,i),t}o(hD,"getReferenceZodSchema");function mD({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!Rt(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=Qe({schema:e.oneOf[0],resolver:r,meta:n,tag:i});return t.assign(c.getCodeString(i,r.options))}let s=(a=e.oneOf)==null?void 0:a.some(c=>Rt(c)&&((c==null?void 0:c.allOf)||[]).length>1);if(e.discriminator&&!s){let c=e.discriminator.propertyName;return t.assign(`
143
143
  z.discriminatedUnion("${c}", [${e.oneOf.map(u=>Qe({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])
144
- `)}return t.assign(`z.union([${e.oneOf.map(c=>Qe({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(sD,"getOneOfZodSchema");function aD({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!Tt(e)||!Array.isArray(e.type)))return e.type.length===1?Qe({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(s=>Qe({schema:{...e,type:s},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(aD,"getArrayZodSchema");function cD({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Tt(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=Qe({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let s=e.anyOf.map(a=>Qe({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${s}])`)}o(cD,"getAnyOfZodSchema");function uD({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Tt(e)||!e.allOf)return;if(e.allOf.length===1){let f=Qe({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(f.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:s,noRequiredOnlyAllof:a,composedRequiredSchema:c}=JO(e),u=a.map(f=>{let d=Qe({schema:f,resolver:r,meta:n,tag:i});return r&&s(f,r.getSchemaByRef.bind(r)),d});c.required.length&&u.push(Qe({schema:c,resolver:r,meta:n,tag:i}));let l=u.at(0),p=u.slice(1).map(f=>`merge(${f.getCodeString(i,r.options)})`).join(".");return t.assign(`${l.getCodeString(i,r.options)}.${p}`)}o(uD,"getAllOfZodSchema");function lD({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Tt(e))return;let s=e.type?e.type.toLowerCase():void 0;if(s&&Gi(s)){if(e.enum){if(s==="string")return fD({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(Pt(s).with("integer",()=>"z.number()").with("string",()=>Pt(e.format).with("binary",()=>Ic).otherwise(()=>Cc)).otherwise(a=>`z.${a}()`))}}o(lD,"getPrimitiveZodSchema");function fD({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){var l;if(!Tt(t))return;let s=ss(t);if(!e.options.extractEnums)return r.assign(s);let a=e.getEnumZodSchemaDataByCode(s);if(a)return((l=r.meta.parent)==null?void 0:l.ref)===e.getRefByZodSchemaName(a.zodSchemaName)?r.assign(a.code):new Da({$ref:e.getRefByZodSchemaName(a.zodSchemaName)},e,n).inherit(r).assign(s);let c=e.getExtractedEnumZodSchemaDataByCode(s);if(!c)return r.assign(s);if(!c.zodSchemaName||!c.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${s}`);let u=e.options.tsNamespaces&&c.tag!==i?`${ze({type:"models",tag:c.tag,options:e.options})}.`:"";return r.assign(`${u}${c.zodSchemaName}`)}o(fD,"getEnumZodSchema");function ss(e){var t;return`${Is}([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}o(ss,"getEnumZodSchemaCode");function KP(e){return`${Is}([${e.map(t=>`"${t}"`).join(", ")}])`}o(KP,"getEnumZodSchemaCodeFromEnumNames");function as({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var c;let s=t.getCodeString();if((!xt(s)||t.ref===void 0)&&r){if(t.complexity<Rm)return s;let u=nn(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(u);){if((c=n.getZodSchemaNamesByCompositeCode(s))!=null&&c.includes(u))return u;if(n.getCodeByZodSchemaName(u)===u)return u;throw new Error(`Can't uniquely resolve zod schema name: ${u}`)}return n.setZodSchema(u,s,i),n.addZodSchemaForCompositeCode(s,t,u,e),u}let a=n.getCodeByZodSchemaName(s);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return dt(0,n.getSchemaByRef(t.ref))<Rm?n.getCodeByZodSchemaName(s):s;if(t.ref)return n.getZodSchemaNameByRef(t.ref);throw new Error(`Invalid ref: ${t.ref}`)}o(as,"resolveZodSchemaName");function YP({resolver:e,endpoint:t,operation:r}){let n=r["x-acl"];return n==null?void 0:n.map(i=>{let s=Object.keys(i.conditions??{}).reduce((a,c)=>{let u=pD({resolver:e,endpoint:t,acl:n,name:c});return u?[...a,u]:(e.validationErrors.push(UP(c,r,t)),a)},[]);return{...i,conditionsTypes:s}})}o(YP,"getEndpointAcl");function pD({resolver:e,endpoint:t,acl:r,name:n}){var f,d,h,y,b,g,P,$,C,T;let i=(d=(f=r[0])==null?void 0:f.conditions)==null?void 0:d[n];if(!i)return;let s=i.replace(/^\$[^.]*\./,"").split("."),a,c,u,l=0,p=t.parameters.find(({name:A})=>A===s[l]);if(p)c=(h=p.parameterObject)==null?void 0:h.required,a=(y=p.parameterObject)==null?void 0:y.schema,u=`${p.name} ${ei(p.type)} parameter`,l++;else{let A=t.parameters.find(({bodyObject:Ze})=>!!Ze),X=Object.keys(((b=A==null?void 0:A.bodyObject)==null?void 0:b.content)??{}).find(rn);X&&(a=($=(P=(g=A==null?void 0:A.bodyObject)==null?void 0:g.content)==null?void 0:P[X])==null?void 0:$.schema,u=`${Qt(t)?"query":"mutation"} data`)}for(;a&&l<s.length;){let A=e.resolveObject(a);a=(C=Object.entries(A.properties??{}).find(([X])=>X===s[l]))==null?void 0:C[1],c=((T=A.required)==null?void 0:T.includes(s[l]))??!1,l++}if(a)return{name:n,type:xe(a)?void 0:a.type,zodSchemaName:xe(a)?e.getZodSchemaNameByRef(a.$ref):void 0,required:c,info:u}}o(pD,"getEndpointAclConditionPropertyType");function QP({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var h,y;let s=e.resolveObject(t.requestBody);if(!s)return;let c=Object.keys(s.content??{}).find(rn);if(!c)return;let u=(y=(h=s.content)==null?void 0:h[c])==null?void 0:y.schema;if(!u)return;let l=Qe({schema:u,resolver:e,meta:{isRequired:s.required??!0},tag:i}),p=e.resolveObject(u),f=as({schema:p,zodSchema:l,fallbackName:Yu(Zi(r,n,i)),resolver:e,tag:i}),d=on({schema:p,meta:l.meta,options:e.options});return{endpointParameter:{name:Vu,type:"Body",description:s.description,zodSchema:f+d,bodyObject:s},requestFormat:c}}o(QP,"getEndpointBody");function JP({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let s=e.resolveObject(t);if(!tP.includes(s.in))return;let a={};if(s.content){let h=Object.keys(s.content??{}),y=h.find(rn);if(!y)throw new Error(`Unsupported media type for param ${s.name}: ${h.join(", ")}`);let b=s.content[y];if(!b)throw new Error(`No content with media type for param ${s.name}: ${y}`);a=(b==null?void 0:b.schema)??b}else s.schema&&(a=s.schema);e.options.withDescription&&a&&(a.description=(s.description??"").trim());let c=vP(Zi(r,n,i),s.name),u;if(gP(s)){let h=Ca(c,e.options.enumSuffix,e.options.schemaSuffix),y=KP(s["x-enumNames"]);e.setZodSchema(h,y,i),u=h}let l=Qe({schema:a,resolver:e,meta:{isRequired:s.in==="path"?!0:s.required??!1},tag:i}),p=e.resolveObject(a),f=on({schema:p,meta:l.meta,options:e.options}),d=as({schema:p,zodSchema:l.assign(l.getCodeString(i)+f),fallbackName:c,resolver:e,tag:i});return{name:Pt(s.in).with("path",()=>qm(s.name)).otherwise(()=>s.name),type:Pt(s.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:d,parameterObject:s,parameterSortingEnumSchemaName:u}}o(JP,"getEndpointParameter");function ex(e){var r,n,i,s,a;let t=[];for(let c in e.openApiDoc.paths){if(zi(c,e.options))continue;let u=e.openApiDoc.paths[c],l=Ki(u,Vi),p=XP(u.parameters??[]);for(let f in l){let d=l[f];if(!d||os(d,e.options))continue;let h=d.operationId&&d.operationId!==Wn(d.operationId);d.operationId&&h&&e.validationErrors.push(FP(d.operationId));let y=Object.entries({...p,...XP(d.parameters??[])}).map(([,A])=>A),b=ka({path:c,method:f,operation:d,operationsByTag:e.operationsByTag,options:e.options}),g=e.operationNames.filter(A=>A===b).length<=1,P=ni(d,e.options),$={method:f,path:mP(c),operationName:b,description:d.description,summary:d.summary,tags:(r=d.tags)==null?void 0:r.map(ri),requestFormat:"application/json",parameters:[],response:"",errors:[],responseStatusCodes:[],mediaUpload:!!d["x-media-upload"],mediaDownload:!!d["x-media-download"]};if(d.requestBody){let A=QP({resolver:e,operation:d,operationName:b,isUniqueOperationName:g,tag:P});A&&($.parameters.push(A.endpointParameter),$.requestFormat=A.requestFormat)}for(let A of y){let K=JP({resolver:e,param:A,operationName:b,isUniqueOperationName:g,tag:P});K&&$.parameters.push(K)}let C=dD($);C.forEach(A=>{$.parameters.push(A)}),C.length>0&&e.validationErrors.push(HP(C,c));for(let A in d.responses){$.responseStatusCodes.push(A);let K=e.resolveObject(d.responses[A]),Ze=Object.keys(K.content??{}).find(Ku),Ie,re;if(Ze?($.responseFormat=Ze,Ie=(i=(n=K.content)==null?void 0:n[Ze])==null?void 0:i.schema):(re=As,A==="200"&&e.validationErrors.push(GP({received:"200",expected:"204"},d,$))),Ie){let M=Qe({schema:Ie,resolver:e,meta:{isRequired:!0},tag:P}),R=e.resolveObject(Ie);re=as({schema:R,zodSchema:M,fallbackName:M.ref?void 0:Qu({statusCode:A,operationName:b,isUniqueOperationName:g,tag:P}),resolver:e,tag:P})+on({schema:R,meta:M.meta,options:e.options})}if(re){let M=Number(A);Ia(M)&&!$.response?($.response=re,$.responseObject=K,$.responseDescription=K.description):A!=="default"&&Wu(M)&&$.errors.push({zodSchema:re,status:M,description:K.description})}}$.response||($.response=As);let T=Object.keys(d.responses).map(Number).filter(Ia);T.length>1&&e.validationErrors.push(zP(T.map(String),d,$)),$.acl=YP({resolver:e,endpoint:$,operation:d}),(s=d.security)!=null&&s[0].Authorization&&!$.responseStatusCodes.includes("401")&&e.validationErrors.push(Hm("401",d,$)),(a=$.acl)!=null&&a[0]&&!$.responseStatusCodes.includes("403")&&e.validationErrors.push(Hm("403",d,$)),t.push($)}}return t}o(ex,"getEndpointsFromOpenAPIDoc");function XP(e){return Object.fromEntries((e??[]).map(t=>[xe(t)?t.$ref:t.name,t]))}o(XP,"getParameters");function dD(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=>hD(r))}o(dD,"getMissingPathParameters");function hD(e){return{name:e,type:"Path",zodSchema:Cc,parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}o(hD,"getPathParameterFromName");function tx(e,t){let r=mD(e,t),n=gD(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}o(tx,"getOpenAPISchemaDependencyGraph");function mD(e,t){let r={},n={};return e.forEach(i=>yD({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}o(mD,"getRefsDependencyGraph");function gD(e,t){let r={},n={},i=o((s,a)=>{n[a].add(s),t[s]&&a!==s&&t[s].forEach(c=>{let u=`${a}__${c}`;r[u]||(r[u]=!0,i(c,a))})},"visit");return e.forEach(s=>{let a=t[s];a&&(n[s]||(n[s]=new Set),a.forEach(c=>i(c,s)))}),n}o(gD,"getDeepRefsDependencyGraph");function yD({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let s=o(a=>{if(a.type!=="reference"||!a.data)return;let{schema:c,data:u}=a;if(i[u.fromRef]||(i[u.fromRef]=new Set),i[u.fromRef].add(c.$ref),n[c.$ref])return!0;n[u.fromRef]=!0,Rt(r(c.$ref),{data:{fromRef:c.$ref},onSchema:s})},"onSchema");return Rt(e,{data:{fromRef:t},onSchema:s}),{visitedRefs:n,refsDependencyGraph:i}}o(yD,"getSchemaRefsDependencyGraph");function rl(e,t,r){let n=[];return Rt(t,{onSchema:o(s=>{s.type==="reference"?n.push(s.schema):xe(s.parentSchema)&&(s.type==="property"?e.validationErrors.push(qa(`${r} has both reference and properties`)):s.type==="additionalProperties"?e.validationErrors.push(qa(`${r} has both reference and additionalProperties`)):s.type==="array"?e.validationErrors.push(qa(`${r} is both reference and array schema`)):s.type==="composite"&&e.validationErrors.push(qa(`${r} has both reference and composite keyword`)))},"onSchema")}),n}o(rl,"getSchemaRefObjs");function rx(e,t){return t.map(i=>Ui(i.$ref)).reduce((i,s)=>{let a=e.dependencyGraph.deepDependencyGraph[s];return[...i,s,...Array.from(a??[])]},[])}o(rx,"getDeepSchemaRefObjs");function nx(e){e.extractedEnumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(s=>s[s.length-1]).filter(Boolean),i=jm(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=Ca(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!Vm(e);)bD(e,t+2),t++;if(Vm(e)||e.extractedEnumZodSchemaData.filter(n=>!ix(e,n)).forEach(n=>{n.zodSchemaName=Ca(n.meta.zodSchemaNameSegments[0].map(i=>Um(Le(i))).join(""),e.options.enumSuffix,e.options.schemaSuffix)}),!Vm(e))throw new Error("Failed to resolve unique names for enum zod schemas")}o(nx,"resolveExtractedEnumZodSchemaNames");function Vm(e){return e.extractedEnumZodSchemaData.every(t=>ix(e,t))}o(Vm,"allExtractedEnumZodSchemaNamesAreUnique");function bD(e,t){e.extractedEnumZodSchemaData.forEach(r=>{let n=e.extractedEnumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&vD(n,t)})}o(bD,"additionalResolveExtractedEnumZodSchemaName");function vD(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1){let i=[Um(Le(n[0])),r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=i}else{let i=jm(n),s=[i?Um(Le(i)):"",r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=s}})}o(vD,"suffixWithPreviousSegmentName");function ix(e,t){return e.extractedEnumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length===1}o(ix,"isUnique");function Um(e){return e.replace(/(Dto|DTO|Response|Request)/g,"")}o(Um,"sanitizeName");function ox(e){e.extractedEnumZodSchemaData.forEach(t=>{let r=Jt(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}o(ox,"resolveExtractedEnumZodSchemaTags");function La({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&sx({schema:e,nameSegments:t,...n}),Rt(e,{data:{nameSegments:t},onSchema:o(s=>{var c;if(s.type==="reference")return!0;let a=[...((c=s.data)==null?void 0:c.nameSegments)??[]];s.type==="property"&&a.push(s.propertyName),sx({schema:s.schema,nameSegments:[...a],...n})},"onSchema")})}o(La,"updateExtractedEnumZodSchemaData");function sx({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:s=[]}){if(!t||xe(t)||!t.enum)return;let a=ss(t),c=e.extractedEnumZodSchemaData.find(u=>u.code===a);c?(c.meta.zodSchemaNameSegments.push(s),c.meta.tags.push(...i),c.meta.schemaRefs.push(...r?[r]:[]),c.meta.schemas.push(...t?[t]:[])):e.extractedEnumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[s],tags:[...i],schemaRefs:r?[r]:[],schemas:t?[t]:[]}}),e.validationErrors.push(BP(r?`${rs(r)}.${s[s.length-1]}`:n??s.join(".")))}o(sx,"handleExtractedEnumZodSchemaDataUpdate");function ax(e){var n;let t={},r={};return Object.entries(((n=e.openApiDoc.components)==null?void 0:n.schemas)??{}).forEach(([i,s])=>{let a=e.getSchemaDataByName(i);if(e.options.excludeRedundantZodSchemas&&(!a||a.deepRefOperations.length===0&&a.tags.length===0))return;let c=nn(i,e.options.schemaSuffix);if(t[c])return;let u=e.getTagByZodSchemaName(c),l=e.resolveObject(s);l.enum?r[c]=ss(l):t[c]=Qe({schema:s,resolver:e,tag:u}).getCodeString(u)}),{zodSchemas:t,enumZodSchemas:r}}o(ax,"getZodSchemasFromOpenAPIDoc");function cx(e){var r;let t=[];return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let s=nn(n,e.options.schemaSuffix),a=e.resolveObject(i);!t.find(c=>c.zodSchemaName===s)&&a.enum&&t.push({zodSchemaName:s,code:ss(a)})}),t}o(cx,"getEnumZodSchemasFromOpenAPIDoc");var Gm=class Gm{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=tx(this.schemaRefs,this.getSchemaByRef.bind(this)),this.enumZodSchemas=cx(this),this.operationsByTag=LP(t,r),this.operationNames=DP(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];dependencyGraph;enumZodSchemas=[];extractedEnumZodSchemaData=[];operationsByTag={};operationNames=[];validationErrors=[];get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(lP)}getSchemaByRef(t){return this.docSchemas[rs(t)]}getSchemaDataByName(t){return this.schemaData.find(r=>r.name===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(Ui(t)))==null?void 0:n.zodSchemaName)??((i=this.extractedEnumZodSchemaData.find(s=>s.zodSchemaName===t))==null?void 0:i.zodSchemaName);if(!r)throw new Error(`Zod schema not found for ref: ${t}`);return r}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var u,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.extractedEnumZodSchemaData.find(p=>p.zodSchemaName===t);if(r)return ri(r.tag??this.options.defaultTag);let n=this.getRefByZodSchemaName(t),i=n?((u=this.getSchemaDataByRef(n))==null?void 0:u.tags)??[]:[],s=((l=this.zodSchemaData.find(p=>p.zodSchemaName===t))==null?void 0:l.tags)??[],a=Jt(i,s),c=a.length===1?a[0]:this.options.defaultTag;return ri(c??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(s=>s.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let s={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(s):this.compositeZodSchemaData.push({code:t,zodSchemas:[s]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemas.find(r=>r.code===t)}getExtractedEnumZodSchemaDataByCode(t){return this.extractedEnumZodSchemaData.find(r=>r.code===t)}getExtractedEnumZodSchemaNamesReferencedBySchemaRef(t){return this.extractedEnumZodSchemaData.reduce((r,{zodSchemaName:n,meta:i})=>(n&&i.schemaRefs.includes(t)&&r.push(n),r),[])}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}getExtractedEnumZodSchemas(){return this.extractedEnumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return xe(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}getCircularSchemaChain(t,r=t,n=[],i=[]){var s,a;return i.includes(r)?[]:(i.push(r),(s=this.dependencyGraph.refsDependencyGraph[r])!=null&&s.has(t)?[...n,r,t]:Array.from(((a=this.dependencyGraph.refsDependencyGraph[r])==null?void 0:a.values())??[]).map(c=>{let u=this.getCircularSchemaChain(t,c,n,i);return u.length>0?[r,...u]:u}).flat())}getBaseUrl(){var r,n;let t=(n=(r=this.openApiDoc.servers)==null?void 0:r[0])==null?void 0:n.url;return this.options.baseUrl===""&&t?t:this.options.baseUrl}getZodSchemaObj(t){let r=this.getRefByZodSchemaName(t);if(r)return this.getSchemaByRef(r);let n=this.getSchemaByCompositeZodSchemaName(t);if(n)return n;let i=this.getExtractedEnumZodSchemaDataByName(t);if(i)return i.meta.schemas.reduce((s,a)=>({...s,...this.resolveObject(a)}),{})}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getExtractedEnumZodSchemaDataByName(t){return this.extractedEnumZodSchemaData.find(({zodSchemaName:r})=>r===t)}initialize(){var t,r,n,i,s;this.schemaRefs.forEach(a=>{let c=Ui(a),u=rs(c),l=nn(u,this.options.schemaSuffix);this.schemaData.push({ref:c,name:u,zodSchemaName:l,tags:[],deepRefOperations:[]})});for(let a in this.openApiDoc.paths){if(zi(a,this.options))continue;let c=this.openApiDoc.paths[a],u=Ki(c,Vi);for(let l in u){let p=u[l];if(!p||os(p,this.options))continue;let f=ni(p,this.options),d=ka({path:a,method:l,operation:p,operationsByTag:this.operationsByTag,options:this.options}),h=this.operationNames.filter(P=>P===d).length<=1,y=pt(Zi(d,h,f)),b=[];if((t=p.parameters)==null||t.map(P=>{let $=P,C=$.schema,T=`Operation ${p.operationId??a} parameter ${$.name}`;b.push(...rl(this,C,T)),this.options.extractEnums&&La({resolver:this,schema:C,schemaInfo:T,tags:[f],nameSegments:[y,$.name],includeSelf:!0})}),p.requestBody){let P=this.resolveObject(p.requestBody),C=Object.keys(P.content??{}).find(rn);if(C){let T=(n=(r=P.content)==null?void 0:r[C])==null?void 0:n.schema,A=`Operation ${p.operationId} request body`;b.push(...rl(this,T,A)),this.options.extractEnums&&La({resolver:this,schema:T,schemaInfo:A,tags:[f],nameSegments:[Yu(y)]})}}for(let P in p.responses){let $=this.resolveObject(p.responses[P]),T=Object.keys($.content??{}).find(Ku);if(T){let A=(s=(i=$.content)==null?void 0:i[T])==null?void 0:s.schema,K=`Operation ${p.operationId} response body`;b.push(...rl(this,A,K)),this.options.extractEnums&&La({resolver:this,schema:A,schemaInfo:K,tags:[f],nameSegments:[Qu({statusCode:P,operationName:d,isUniqueOperationName:h,tag:f})]})}}rx(this,b).forEach(P=>{let $=this.getSchemaDataByRef(P);$&&($.tags.push(f),$.deepRefOperations.push(p))})}}this.options.extractEnums&&(this.schemaRefs.forEach(a=>{var u;let c=Ui(a);La({resolver:this,schema:this.getSchemaByRef(c),schemaRef:c,tags:((u=this.getSchemaDataByRef(c))==null?void 0:u.tags)??[],nameSegments:[rs(c)]})}),ox(this),this.handleDuplicateEnumZodSchemas(),nx(this))}handleDuplicateEnumZodSchemas(){let t=this.enumZodSchemas.map(({code:n})=>n),r=this.enumZodSchemas.filter(({code:n})=>t.includes(n));this.schemaData.forEach(n=>{var a,c;let i=(a=r.find(({zodSchemaName:u})=>u===n.zodSchemaName))==null?void 0:a.code;if(!i)return;let s=this.extractedEnumZodSchemaData.find(({code:u})=>u===i);!s||((c=this.getEnumZodSchemaDataByCode(s.code))==null?void 0:c.zodSchemaName)!==n.zodSchemaName||(n.tags.push(...s.meta.tags??[]),s.meta.schemaRefs.forEach(u=>{this.dependencyGraph.refsDependencyGraph[u]||(this.dependencyGraph.refsDependencyGraph[u]=new Set),this.dependencyGraph.refsDependencyGraph[u].add(n.ref),this.dependencyGraph.deepDependencyGraph[u]||(this.dependencyGraph.deepDependencyGraph[u]=new Set),this.dependencyGraph.deepDependencyGraph[u].add(n.ref)}))}),this.extractedEnumZodSchemaData.splice(0,this.extractedEnumZodSchemaData.length,...this.extractedEnumZodSchemaData.filter(({code:n})=>!t.includes(n)))}};o(Gm,"SchemaResolver");var nl=Gm;function ux(e){let t=[],r={};function n(i,s){Array.isArray(s)||(s=[]),s.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{s.includes(a)||r[a]||n(a,s.slice(0))}),t.includes(i)||t.push(i)}return o(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}o(ux,"topologicalSort");function lx(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[s])=>t.indexOf(i)-t.indexOf(s)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}o(lx,"sortObjKeysFromArray");function fx(e,t){let r=ux(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return lx(t,r)}o(fx,"sortZodSchemasByTopology");function px(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let s=e.getRefByZodSchemaName(n);s&&e.isSchemaCircular(s)?(e.validationErrors.push(VP(e.getCircularSchemaChain(s).join(" -> "))),r[nn(n,e.options.schemaSuffix)]=`z.lazy(() => ${i})`):r[nn(n,e.options.schemaSuffix)]=i}),r}o(px,"wrapCircularZodSchemas");function il(e,t){let r=new nl(e,t),n=ex(r),i=ax(r),s={...i.zodSchemas,...r.getZodSchemas(),...i.enumZodSchemas};return s=px(r,s),s=fx(r,s),s={...r.getExtractedEnumZodSchemas(),...s},{resolver:r,data:_D({resolver:r,endpoints:n,zodSchemas:s,options:t})}}o(il,"getDataFromOpenAPIDoc");function _D({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(s=>{let a=ja(s,n);dx(a,i).endpoints.push(s)}),Object.entries(r).forEach(([s,a])=>{let c=e.getTagByZodSchemaName(s);c&&(dx(c,i).zodSchemas[s]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}o(_D,"splitDataByTags");function dx(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}o(dx,"getTagElement");var cs=mt(require("fs")),zm=mt(require("path"));function hx(e){return cs.default.readFileSync(zm.default.join(__dirname,`../${e}`),"utf-8")}o(hx,"readFileSync");function Zm(e){let t=`src/generators/templates/${e}.hbs`;return hx(t)}o(Zm,"readHbsTemplateSync");function mx(e){let t=`src/assets/${e}`;return hx(t)}o(mx,"readAssetSync");function sn({output:e,fileName:t}){return`${e}/${t}`}o(sn,"getOutputFileName");function SD(e,t){let r=zm.default.dirname(e);cs.default.existsSync(r)||cs.default.mkdirSync(r,{recursive:!0}),cs.default.writeFileSync(e,t,"utf-8")}o(SD,"writeFileWithDirSync");function ED({fileName:e,content:t}){SD(e,t)}o(ED,"writeFileSync");function gx(e){e.forEach(ED)}o(gx,"writeGenerateFileData");function yx(e,t){let r={...$e,...t},{resolver:n,data:i}=il(e,r);if(n.validationErrors.length>0){let s=ZP(n.validationErrors);Object.entries(s).forEach(([a,c])=>{console.log(`${Hr.red(`${KO[a]}:`)}
144
+ `)}return t.assign(`z.union([${e.oneOf.map(c=>Qe({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(mD,"getOneOfZodSchema");function gD({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!Rt(e)||!Array.isArray(e.type)))return e.type.length===1?Qe({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(s=>Qe({schema:{...e,type:s},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(gD,"getArrayZodSchema");function yD({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Rt(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=Qe({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let s=e.anyOf.map(a=>Qe({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${s}])`)}o(yD,"getAnyOfZodSchema");function bD({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Rt(e)||!e.allOf)return;if(e.allOf.length===1){let f=Qe({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(f.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:s,noRequiredOnlyAllof:a,composedRequiredSchema:c}=oP(e),u=a.map(f=>{let d=Qe({schema:f,resolver:r,meta:n,tag:i});return r&&s(f,r.getSchemaByRef.bind(r)),d});c.required.length&&u.push(Qe({schema:c,resolver:r,meta:n,tag:i}));let l=u.at(0),p=u.slice(1).map(f=>`merge(${f.getCodeString(i,r.options)})`).join(".");return t.assign(`${l.getCodeString(i,r.options)}.${p}`)}o(bD,"getAllOfZodSchema");function vD({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Rt(e))return;let s=e.type?e.type.toLowerCase():void 0;if(s&&Wi(s)){if(e.enum){if(s==="string")return _D({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(xt(s).with("integer",()=>"z.number()").with("string",()=>xt(e.format).with("binary",()=>Nc).otherwise(()=>jc)).otherwise(a=>`z.${a}()`))}}o(vD,"getPrimitiveZodSchema");function _D({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){var l;if(!Rt(t))return;let s=us(t);if(!e.options.extractEnums)return r.assign(s);let a=e.getEnumZodSchemaDataByCode(s);if(a)return((l=r.meta.parent)==null?void 0:l.ref)===e.getRefByZodSchemaName(a.zodSchemaName)?r.assign(a.code):new Ha({$ref:e.getRefByZodSchemaName(a.zodSchemaName)},e,n).inherit(r).assign(s);let c=e.getExtractedEnumZodSchemaDataByCode(s);if(!c)return r.assign(s);if(!c.zodSchemaName||!c.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${s}`);let u=e.options.tsNamespaces&&c.tag!==i?`${Ze({type:"models",tag:c.tag,options:e.options})}.`:"";return r.assign(`${u}${c.zodSchemaName}`)}o(_D,"getEnumZodSchema");function us(e){var t;return`${Ts}([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}o(us,"getEnumZodSchemaCode");function ox(e){return`${Ts}([${e.map(t=>`"${t}"`).join(", ")}])`}o(ox,"getEnumZodSchemaCodeFromEnumNames");function ls({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var c;let s=t.getCodeString();if((!$t(s)||t.ref===void 0)&&r){if(t.complexity<Fm)return s;let u=sn(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(u);){if((c=n.getZodSchemaNamesByCompositeCode(s))!=null&&c.includes(u))return u;if(n.getCodeByZodSchemaName(u)===u)return u;throw new Error(`Can't uniquely resolve zod schema name: ${u}`)}return n.setZodSchema(u,s,i),n.addZodSchemaForCompositeCode(s,t,u,e),u}let a=n.getCodeByZodSchemaName(s);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return dt(0,n.getSchemaByRef(t.ref))<Fm?n.getCodeByZodSchemaName(s):s;if(t.ref)return n.getZodSchemaNameByRef(t.ref);throw new Error(`Invalid ref: ${t.ref}`)}o(ls,"resolveZodSchemaName");function sx({resolver:e,endpoint:t,operation:r}){let n=r["x-acl"];return n==null?void 0:n.map(i=>{let s=Object.keys(i.conditions??{}).reduce((a,c)=>{let u=SD({resolver:e,endpoint:t,acl:n,name:c});return u?[...a,u]:(e.validationErrors.push(ex(c,r,t)),a)},[]);return{...i,conditionsTypes:s}})}o(sx,"getEndpointAcl");function SD({resolver:e,endpoint:t,acl:r,name:n}){var f,d,h,y,b,g,P,$,C,T;let i=(d=(f=r[0])==null?void 0:f.conditions)==null?void 0:d[n];if(!i)return;let s=i.replace(/^\$[^.]*\./,"").split("."),a,c,u,l=0,p=t.parameters.find(({name:A})=>A===s[l]);if(p)c=(h=p.parameterObject)==null?void 0:h.required,a=(y=p.parameterObject)==null?void 0:y.schema,u=`${p.name} ${ri(p.type)} parameter`,l++;else{let A=t.parameters.find(({bodyObject:Ee})=>!!Ee),J=Object.keys(((b=A==null?void 0:A.bodyObject)==null?void 0:b.content)??{}).find(on);J&&(a=($=(P=(g=A==null?void 0:A.bodyObject)==null?void 0:g.content)==null?void 0:P[J])==null?void 0:$.schema,u=`${Jt(t)?"query":"mutation"} data`)}for(;a&&l<s.length;){let A=e.resolveObject(a);a=(C=Object.entries(A.properties??{}).find(([J])=>J===s[l]))==null?void 0:C[1],c=((T=A.required)==null?void 0:T.includes(s[l]))??!1,l++}if(a)return{name:n,type:we(a)?void 0:a.type,zodSchemaName:we(a)?e.getZodSchemaNameByRef(a.$ref):void 0,required:c,info:u}}o(SD,"getEndpointAclConditionPropertyType");function ax({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var h,y;let s=e.resolveObject(t.requestBody);if(!s)return;let c=Object.keys(s.content??{}).find(on);if(!c)return;let u=(y=(h=s.content)==null?void 0:h[c])==null?void 0:y.schema;if(!u)return;let l=Qe({schema:u,resolver:e,meta:{isRequired:s.required??!0},tag:i}),p=e.resolveObject(u),f=ls({schema:p,zodSchema:l,fallbackName:rl(Yi(r,n,i)),resolver:e,tag:i}),d=an({schema:p,meta:l.meta,options:e.options});return{endpointParameter:{name:Zu,type:"Body",description:s.description,zodSchema:f+d,bodyObject:s},requestFormat:c}}o(ax,"getEndpointBody");function cx({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let s=e.resolveObject(t);if(!cP.includes(s.in))return;let a={};if(s.content){let h=Object.keys(s.content??{}),y=h.find(on);if(!y)throw new Error(`Unsupported media type for param ${s.name}: ${h.join(", ")}`);let b=s.content[y];if(!b)throw new Error(`No content with media type for param ${s.name}: ${y}`);a=(b==null?void 0:b.schema)??b}else s.schema&&(a=s.schema);e.options.withDescription&&a&&(a.description=(s.description??"").trim());let c=wP(Yi(r,n,i),s.name),u;if(OP(s)){let h=ja(c,e.options.enumSuffix,e.options.schemaSuffix),y=ox(s["x-enumNames"]);e.setZodSchema(h,y,i),u=h}let l=Qe({schema:a,resolver:e,meta:{isRequired:s.in==="path"?!0:s.required??!1},tag:i}),p=e.resolveObject(a),f=an({schema:p,meta:l.meta,options:e.options}),d=ls({schema:p,zodSchema:l.assign(l.getCodeString(i)+f),fallbackName:c,resolver:e,tag:i});return{name:xt(s.in).with("path",()=>Gm(s.name)).otherwise(()=>s.name),type:xt(s.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:d,parameterObject:s,parameterSortingEnumSchemaName:u}}o(cx,"getEndpointParameter");function lx(e){var r,n,i,s,a;let t=[];for(let c in e.openApiDoc.paths){if(Ki(c,e.options))continue;let u=e.openApiDoc.paths[c],l=Xi(u,zi),p=ux(u.parameters??[]);for(let f in l){let d=l[f];if(!d||cs(d,e.options))continue;let h=d.operationId&&d.operationId!==Yn(d.operationId);d.operationId&&h&&e.validationErrors.push(YP(d.operationId));let y=Object.entries({...p,...ux(d.parameters??[])}).map(([,A])=>A),b=La({path:c,method:f,operation:d,operationsByTag:e.operationsByTag,options:e.options}),g=e.operationNames.filter(A=>A===b).length<=1,P=si(d,e.options),$={method:f,path:EP(c),operationName:b,description:d.description,summary:d.summary,tags:(r=d.tags)==null?void 0:r.map(oi),requestFormat:"application/json",parameters:[],response:"",errors:[],responseStatusCodes:[],mediaUpload:!!d["x-media-upload"],mediaDownload:!!d["x-media-download"]};if(d.requestBody){let A=ax({resolver:e,operation:d,operationName:b,isUniqueOperationName:g,tag:P});A&&($.parameters.push(A.endpointParameter),$.requestFormat=A.requestFormat)}for(let A of y){let te=cx({resolver:e,param:A,operationName:b,isUniqueOperationName:g,tag:P});te&&$.parameters.push(te)}let C=ED($);C.forEach(A=>{$.parameters.push(A)}),C.length>0&&e.validationErrors.push(QP(C,c));for(let A in d.responses){$.responseStatusCodes.push(A);let te=e.resolveObject(d.responses[A]),Ee=Object.keys(te.content??{}).find(Xu),Ae,re;if(Ee?($.responseFormat=Ee,Ae=(i=(n=te.content)==null?void 0:n[Ee])==null?void 0:i.schema):(re=Cs,A==="200"&&e.validationErrors.push(tx({received:"200",expected:"204"},d,$))),Ae){let M=Qe({schema:Ae,resolver:e,meta:{isRequired:!0},tag:P}),R=e.resolveObject(Ae);re=ls({schema:R,zodSchema:M,fallbackName:M.ref?void 0:nl({statusCode:A,operationName:b,isUniqueOperationName:g,tag:P}),resolver:e,tag:P})+an({schema:R,meta:M.meta,options:e.options})}if(re){let M=Number(A);Ta(M)&&!$.response?($.response=re,$.responseObject=te,$.responseDescription=te.description):A!=="default"&&Ju(M)&&$.errors.push({zodSchema:re,status:M,description:te.description})}}$.response||($.response=Cs);let T=Object.keys(d.responses).map(Number).filter(Ta);T.length>1&&e.validationErrors.push(rx(T.map(String),d,$)),$.acl=sx({resolver:e,endpoint:$,operation:d}),(s=d.security)!=null&&s[0].Authorization&&!$.responseStatusCodes.includes("401")&&e.validationErrors.push(Ym("401",d,$)),(a=$.acl)!=null&&a[0]&&!$.responseStatusCodes.includes("403")&&e.validationErrors.push(Ym("403",d,$)),t.push($)}}return t}o(lx,"getEndpointsFromOpenAPIDoc");function ux(e){return Object.fromEntries((e??[]).map(t=>[we(t)?t.$ref:t.name,t]))}o(ux,"getParameters");function ED(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=>OD(r))}o(ED,"getMissingPathParameters");function OD(e){return{name:e,type:"Path",zodSchema:jc,parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}o(OD,"getPathParameterFromName");function fx(e,t){let r=PD(e,t),n=xD(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}o(fx,"getOpenAPISchemaDependencyGraph");function PD(e,t){let r={},n={};return e.forEach(i=>$D({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}o(PD,"getRefsDependencyGraph");function xD(e,t){let r={},n={},i=o((s,a)=>{n[a].add(s),t[s]&&a!==s&&t[s].forEach(c=>{let u=`${a}__${c}`;r[u]||(r[u]=!0,i(c,a))})},"visit");return e.forEach(s=>{let a=t[s];a&&(n[s]||(n[s]=new Set),a.forEach(c=>i(c,s)))}),n}o(xD,"getDeepRefsDependencyGraph");function $D({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let s=o(a=>{if(a.type!=="reference"||!a.data)return;let{schema:c,data:u}=a;if(i[u.fromRef]||(i[u.fromRef]=new Set),i[u.fromRef].add(c.$ref),n[c.$ref])return!0;n[u.fromRef]=!0,jt(r(c.$ref),{data:{fromRef:c.$ref},onSchema:s})},"onSchema");return jt(e,{data:{fromRef:t},onSchema:s}),{visitedRefs:n,refsDependencyGraph:i}}o($D,"getSchemaRefsDependencyGraph");function cl(e,t,r){let n=[];return jt(t,{onSchema:o(s=>{s.type==="reference"?n.push(s.schema):we(s.parentSchema)&&(s.type==="property"?e.validationErrors.push(Fa(`${r} has both reference and properties`)):s.type==="additionalProperties"?e.validationErrors.push(Fa(`${r} has both reference and additionalProperties`)):s.type==="array"?e.validationErrors.push(Fa(`${r} is both reference and array schema`)):s.type==="composite"&&e.validationErrors.push(Fa(`${r} has both reference and composite keyword`)))},"onSchema")}),n}o(cl,"getSchemaRefObjs");function px(e,t){return t.map(i=>Zi(i.$ref)).reduce((i,s)=>{let a=e.dependencyGraph.deepDependencyGraph[s];return[...i,s,...Array.from(a??[])]},[])}o(px,"getDeepSchemaRefObjs");function dx(e){e.extractedEnumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(s=>s[s.length-1]).filter(Boolean),i=Bm(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=ja(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!Jm(e);)wD(e,t+2),t++;if(Jm(e)||e.extractedEnumZodSchemaData.filter(n=>!hx(e,n)).forEach(n=>{n.zodSchemaName=ja(n.meta.zodSchemaNameSegments[0].map(i=>Xm(Fe(i))).join(""),e.options.enumSuffix,e.options.schemaSuffix)}),!Jm(e))throw new Error("Failed to resolve unique names for enum zod schemas")}o(dx,"resolveExtractedEnumZodSchemaNames");function Jm(e){return e.extractedEnumZodSchemaData.every(t=>hx(e,t))}o(Jm,"allExtractedEnumZodSchemaNamesAreUnique");function wD(e,t){e.extractedEnumZodSchemaData.forEach(r=>{let n=e.extractedEnumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&AD(n,t)})}o(wD,"additionalResolveExtractedEnumZodSchemaName");function AD(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1){let i=[Xm(Fe(n[0])),r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=i}else{let i=Bm(n),s=[i?Xm(Fe(i)):"",r.zodSchemaName].filter(Boolean).join("");r.zodSchemaName=s}})}o(AD,"suffixWithPreviousSegmentName");function hx(e,t){return e.extractedEnumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length===1}o(hx,"isUnique");function Xm(e){return e.replace(/(Dto|DTO|Response|Request)/g,"")}o(Xm,"sanitizeName");function mx(e){e.extractedEnumZodSchemaData.forEach(t=>{let r=Xt(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}o(mx,"resolveExtractedEnumZodSchemaTags");function Ba({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&gx({schema:e,nameSegments:t,...n}),jt(e,{data:{nameSegments:t},onSchema:o(s=>{var c;if(s.type==="reference")return!0;let a=[...((c=s.data)==null?void 0:c.nameSegments)??[]];s.type==="property"&&a.push(s.propertyName),gx({schema:s.schema,nameSegments:[...a],...n})},"onSchema")})}o(Ba,"updateExtractedEnumZodSchemaData");function gx({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:s=[]}){if(!t||we(t)||!t.enum)return;let a=us(t),c=e.extractedEnumZodSchemaData.find(u=>u.code===a);c?(c.meta.zodSchemaNameSegments.push(s),c.meta.tags.push(...i),c.meta.schemaRefs.push(...r?[r]:[]),c.meta.schemas.push(...t?[t]:[])):e.extractedEnumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[s],tags:[...i],schemaRefs:r?[r]:[],schemas:t?[t]:[]}}),e.validationErrors.push(JP(r?`${ss(r)}.${s[s.length-1]}`:n??s.join(".")))}o(gx,"handleExtractedEnumZodSchemaDataUpdate");function yx(e){var n;let t={},r={};return Object.entries(((n=e.openApiDoc.components)==null?void 0:n.schemas)??{}).forEach(([i,s])=>{let a=e.getSchemaDataByName(i);if(e.options.excludeRedundantZodSchemas&&(!a||a.deepRefOperations.length===0&&a.tags.length===0))return;let c=sn(i,e.options.schemaSuffix);if(t[c])return;let u=e.getTagByZodSchemaName(c),l=e.resolveObject(s);l.enum?r[c]=us(l):t[c]=Qe({schema:s,resolver:e,tag:u}).getCodeString(u)}),{zodSchemas:t,enumZodSchemas:r}}o(yx,"getZodSchemasFromOpenAPIDoc");function bx(e){var r;let t=[];return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let s=sn(n,e.options.schemaSuffix),a=e.resolveObject(i);!t.find(c=>c.zodSchemaName===s)&&a.enum&&t.push({zodSchemaName:s,code:us(a)})}),t}o(bx,"getEnumZodSchemasFromOpenAPIDoc");var eg=class eg{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=fx(this.schemaRefs,this.getSchemaByRef.bind(this)),this.enumZodSchemas=bx(this),this.operationsByTag=KP(t,r),this.operationNames=WP(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];dependencyGraph;enumZodSchemas=[];extractedEnumZodSchemaData=[];operationsByTag={};operationNames=[];validationErrors=[];get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(yP)}getSchemaByRef(t){return this.docSchemas[ss(t)]}getSchemaDataByName(t){return this.schemaData.find(r=>r.name===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(Zi(t)))==null?void 0:n.zodSchemaName)??((i=this.extractedEnumZodSchemaData.find(s=>s.zodSchemaName===t))==null?void 0:i.zodSchemaName);if(!r)throw new Error(`Zod schema not found for ref: ${t}`);return r}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var u,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.extractedEnumZodSchemaData.find(p=>p.zodSchemaName===t);if(r)return oi(r.tag??this.options.defaultTag);let n=this.getRefByZodSchemaName(t),i=n?((u=this.getSchemaDataByRef(n))==null?void 0:u.tags)??[]:[],s=((l=this.zodSchemaData.find(p=>p.zodSchemaName===t))==null?void 0:l.tags)??[],a=Xt(i,s),c=a.length===1?a[0]:this.options.defaultTag;return oi(c??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(s=>s.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let s={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(s):this.compositeZodSchemaData.push({code:t,zodSchemas:[s]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemas.find(r=>r.code===t)}getExtractedEnumZodSchemaDataByCode(t){return this.extractedEnumZodSchemaData.find(r=>r.code===t)}getExtractedEnumZodSchemaNamesReferencedBySchemaRef(t){return this.extractedEnumZodSchemaData.reduce((r,{zodSchemaName:n,meta:i})=>(n&&i.schemaRefs.includes(t)&&r.push(n),r),[])}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}getExtractedEnumZodSchemas(){return this.extractedEnumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return we(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}getCircularSchemaChain(t,r=t,n=[],i=[]){var s,a;return i.includes(r)?[]:(i.push(r),(s=this.dependencyGraph.refsDependencyGraph[r])!=null&&s.has(t)?[...n,r,t]:Array.from(((a=this.dependencyGraph.refsDependencyGraph[r])==null?void 0:a.values())??[]).map(c=>{let u=this.getCircularSchemaChain(t,c,n,i);return u.length>0?[r,...u]:u}).flat())}getBaseUrl(){var r,n;let t=(n=(r=this.openApiDoc.servers)==null?void 0:r[0])==null?void 0:n.url;return this.options.baseUrl===""&&t?t:this.options.baseUrl}getZodSchemaObj(t){let r=this.getRefByZodSchemaName(t);if(r)return this.getSchemaByRef(r);let n=this.getSchemaByCompositeZodSchemaName(t);if(n)return n;let i=this.getExtractedEnumZodSchemaDataByName(t);if(i)return i.meta.schemas.reduce((s,a)=>({...s,...this.resolveObject(a)}),{})}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getExtractedEnumZodSchemaDataByName(t){return this.extractedEnumZodSchemaData.find(({zodSchemaName:r})=>r===t)}initialize(){var t,r,n,i,s;this.schemaRefs.forEach(a=>{let c=Zi(a),u=ss(c),l=sn(u,this.options.schemaSuffix);this.schemaData.push({ref:c,name:u,zodSchemaName:l,tags:[],deepRefOperations:[]})});for(let a in this.openApiDoc.paths){if(Ki(a,this.options))continue;let c=this.openApiDoc.paths[a],u=Xi(c,zi);for(let l in u){let p=u[l];if(!p||cs(p,this.options))continue;let f=si(p,this.options),d=La({path:a,method:l,operation:p,operationsByTag:this.operationsByTag,options:this.options}),h=this.operationNames.filter(P=>P===d).length<=1,y=pt(Yi(d,h,f)),b=[];if((t=p.parameters)==null||t.map(P=>{let $=P,C=$.schema,T=`Operation ${p.operationId??a} parameter ${$.name}`;b.push(...cl(this,C,T)),this.options.extractEnums&&Ba({resolver:this,schema:C,schemaInfo:T,tags:[f],nameSegments:[y,$.name],includeSelf:!0})}),p.requestBody){let P=this.resolveObject(p.requestBody),C=Object.keys(P.content??{}).find(on);if(C){let T=(n=(r=P.content)==null?void 0:r[C])==null?void 0:n.schema,A=`Operation ${p.operationId} request body`;b.push(...cl(this,T,A)),this.options.extractEnums&&Ba({resolver:this,schema:T,schemaInfo:A,tags:[f],nameSegments:[rl(y)]})}}for(let P in p.responses){let $=this.resolveObject(p.responses[P]),T=Object.keys($.content??{}).find(Xu);if(T){let A=(s=(i=$.content)==null?void 0:i[T])==null?void 0:s.schema,te=`Operation ${p.operationId} response body`;b.push(...cl(this,A,te)),this.options.extractEnums&&Ba({resolver:this,schema:A,schemaInfo:te,tags:[f],nameSegments:[nl({statusCode:P,operationName:d,isUniqueOperationName:h,tag:f})]})}}px(this,b).forEach(P=>{let $=this.getSchemaDataByRef(P);$&&($.tags.push(f),$.deepRefOperations.push(p))})}}this.options.extractEnums&&(this.schemaRefs.forEach(a=>{var u;let c=Zi(a);Ba({resolver:this,schema:this.getSchemaByRef(c),schemaRef:c,tags:((u=this.getSchemaDataByRef(c))==null?void 0:u.tags)??[],nameSegments:[ss(c)]})}),mx(this),this.handleDuplicateEnumZodSchemas(),dx(this))}handleDuplicateEnumZodSchemas(){let t=this.enumZodSchemas.map(({code:n})=>n),r=this.enumZodSchemas.filter(({code:n})=>t.includes(n));this.schemaData.forEach(n=>{var a,c;let i=(a=r.find(({zodSchemaName:u})=>u===n.zodSchemaName))==null?void 0:a.code;if(!i)return;let s=this.extractedEnumZodSchemaData.find(({code:u})=>u===i);!s||((c=this.getEnumZodSchemaDataByCode(s.code))==null?void 0:c.zodSchemaName)!==n.zodSchemaName||(n.tags.push(...s.meta.tags??[]),s.meta.schemaRefs.forEach(u=>{this.dependencyGraph.refsDependencyGraph[u]||(this.dependencyGraph.refsDependencyGraph[u]=new Set),this.dependencyGraph.refsDependencyGraph[u].add(n.ref),this.dependencyGraph.deepDependencyGraph[u]||(this.dependencyGraph.deepDependencyGraph[u]=new Set),this.dependencyGraph.deepDependencyGraph[u].add(n.ref)}))}),this.extractedEnumZodSchemaData.splice(0,this.extractedEnumZodSchemaData.length,...this.extractedEnumZodSchemaData.filter(({code:n})=>!t.includes(n)))}};o(eg,"SchemaResolver");var ul=eg;function vx(e){let t=[],r={};function n(i,s){Array.isArray(s)||(s=[]),s.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{s.includes(a)||r[a]||n(a,s.slice(0))}),t.includes(i)||t.push(i)}return o(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}o(vx,"topologicalSort");function _x(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[s])=>t.indexOf(i)-t.indexOf(s)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}o(_x,"sortObjKeysFromArray");function Sx(e,t){let r=vx(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return _x(t,r)}o(Sx,"sortZodSchemasByTopology");function Ex(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let s=e.getRefByZodSchemaName(n);s&&e.isSchemaCircular(s)?(e.validationErrors.push(XP(e.getCircularSchemaChain(s).join(" -> "))),r[sn(n,e.options.schemaSuffix)]=`z.lazy(() => ${i})`):r[sn(n,e.options.schemaSuffix)]=i}),r}o(Ex,"wrapCircularZodSchemas");function ll(e,t){let r=new ul(e,t),n=lx(r),i=yx(r),s={...i.zodSchemas,...r.getZodSchemas(),...i.enumZodSchemas};return s=Ex(r,s),s=Sx(r,s),s={...r.getExtractedEnumZodSchemas(),...s},{resolver:r,data:ID({resolver:r,endpoints:n,zodSchemas:s,options:t})}}o(ll,"getDataFromOpenAPIDoc");function ID({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(s=>{let a=Da(s,n);Ox(a,i).endpoints.push(s)}),Object.entries(r).forEach(([s,a])=>{let c=e.getTagByZodSchemaName(s);c&&(Ox(c,i).zodSchemas[s]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}o(ID,"splitDataByTags");function Ox(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}o(Ox,"getTagElement");var fs=mt(require("fs")),tg=mt(require("path"));function Px(e){return fs.default.readFileSync(tg.default.join(__dirname,`../${e}`),"utf-8")}o(Px,"readFileSync");function rg(e){let t=`src/generators/templates/${e}.hbs`;return Px(t)}o(rg,"readHbsTemplateSync");function xx(e){let t=`src/assets/${e}`;return Px(t)}o(xx,"readAssetSync");function qr({output:e,fileName:t}){return`${e}/${t}`}o(qr,"getOutputFileName");function CD(e,t){let r=tg.default.dirname(e);fs.default.existsSync(r)||fs.default.mkdirSync(r,{recursive:!0}),fs.default.writeFileSync(e,t,"utf-8")}o(CD,"writeFileWithDirSync");function TD({fileName:e,content:t}){CD(e,t)}o(TD,"writeFileSync");function $x(e){e.forEach(TD)}o($x,"writeGenerateFileData");function wx(e,t){let r={...$e,...t},{resolver:n,data:i}=ll(e,r);if(n.validationErrors.length>0){let s=nx(n.validationErrors);Object.entries(s).forEach(([a,c])=>{console.log(`${Vr.red(`${rP[a]}:`)}
145
145
  ${c.map(u=>`- ${u}`).join(`
146
146
  `)}
147
- `)})}else{let s=[...i.keys()].reduce((a,c)=>[...a,...OD(c,r)],[]);console.log(`${Hr.green("Outputs:")}
147
+ `)})}else{let s=[...i.keys()].reduce((a,c)=>[...a,...RD(c,r)],[]);console.log(`${Vr.green("Outputs:")}
148
148
  ${s.map(a=>`- ${a}`).join(`
149
149
  `)}
150
- `)}return n.validationErrors}o(yx,"checkOpenAPIDoc");function OD(e,t){return["models","endpoints","queries"].map(r=>sn({output:t.output,fileName:Xu({tag:e,type:r,options:t})}))}o(OD,"getOutputFileNames");async function vx({input:e,excludeTags:t,verbose:r,...n}){let i=Date.now();r&&ur("Parsing OpenAPI spec...");let s=await bx.default.bundle(e);r&&Cn("Parsing finished."),r&&ur("Running check...");let a=yx(s,{input:e,excludeTags:t.split(","),...n});if(r&&ur(`TIME: ${Date.now()-i}ms`),a.length===0)Cn("Check finished.");else throw new Error(`Check finished. Found ${a.length} issues.`)}o(vx,"check");var an=class an{input;splitByTags;defaultTag;excludeTags;excludePathRegex;excludeRedundantZodSchemas;verbose};o(an,"CheckOptions"),Oe([Pe({envAlias:"input",demandOption:!0})],an.prototype,"input",2),Oe([Pe({envAlias:"splitByTags",default:$e.splitByTags,type:"boolean"})],an.prototype,"splitByTags",2),Oe([Pe({envAlias:"defaultTag",default:$e.defaultTag})],an.prototype,"defaultTag",2),Oe([Pe({envAlias:"excludeTags",default:$e.excludeTags.join(",")})],an.prototype,"excludeTags",2),Oe([Pe({envAlias:"excludePathRegex",default:$e.excludePathRegex})],an.prototype,"excludePathRegex",2),Oe([Pe({envAlias:"excludeRedundantZodSchemas",default:$e.excludeRedundantZodSchemas,type:"boolean"})],an.prototype,"excludeRedundantZodSchemas",2),Oe([Pe({envAlias:"verbose",default:!1,type:"boolean"})],an.prototype,"verbose",2);var Wm=an,_x={command:"check",describe:"Check OpenAPI spec",builder:kc(Wm),handler:o(async e=>{let t=await e;return t.verbose&&(Mc(`OpenAPI CodeGen ${yo()}`),Rs("input",t.input)),vx(t)},"handler")};var U2=mt(Pm()),G2=require("child_process");var Sx={fileName:"acl/app.ability",extension:"ts"},Fa="AllAbilities",Mr={abilityTuple:"AbilityTuple",pureAbility:"PureAbility",forcedSubject:"ForcedSubject",subject:"subject"},Km={bindings:[Mr.abilityTuple,Mr.pureAbility,Mr.forcedSubject,Mr.subject],from:"@casl/ability"};var Ex=o(e=>`Use${Le(pt(e.operationName))}Ability`,"getAbilityTypeName"),Ox=o(e=>`canUse${Le(pt(e.operationName))}`,"getAbilityFunctionName"),Px=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].action},"getAbilityAction"),xx=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].subject},"getAbilitySubject"),$x=o(e=>{var t;return!!((t=Ym(e))!=null&&t.length)},"hasAbilityConditions"),Ym=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].conditionsTypes},"getAbilityConditionsTypes"),wx=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].description},"getAbilityDescription"),ol=o(e=>`${Le(e)}${Fa}`,"getTagAllAbilitiesName");var Bg=mt(Sn());var En=mt(Sn());function b2(){m8(),g8(),y8(),b8(),v8(),_8(),S8(),E8()}o(b2,"registerAclHbsHelpers");function m8(){En.default.registerHelper("abilityTypeName",Ex)}o(m8,"registerAbilityTypeNameHelper");function g8(){En.default.registerHelper("abilityFunctionName",Ox)}o(g8,"registerAbilityFunctionNameHelper");function y8(){En.default.registerHelper("ablityAction",Px)}o(y8,"registerAbilityActionHelper");function b8(){En.default.registerHelper("ablitySubject",xx)}o(b8,"registerAbilitySubjectHelper");function v8(){En.default.registerHelper("hasAbilityConditions",$x)}o(v8,"registerHasAbilityConditionsHelper");function _8(){En.default.registerHelper("abilityConditionsTypes",Ym)}o(_8,"registerAbilityConditionsTypesHelper");function S8(){En.default.registerHelper("abilityDescription",wx)}o(S8,"registerAbilityDescriptionHelper");function E8(){En.default.registerHelper("tagAllAbilitiesName",ol)}o(E8,"registerTagAllAbilitiesNameHelper");var ec=mt(Sn());function v2(){O8(),P8(),x8(),$8()}o(v2,"registerCommonHbsHelpers");function O8(){ec.default.registerHelper("isEqual",(e,t)=>e===t)}o(O8,"registerIsEqualHelper");function P8(){ec.default.registerHelper("commaSeparated",e=>e.join(", "))}o(P8,"registerCommaSeparatedListHelper");function x8(){ec.default.registerHelper("addAsteriskAfterNewLine",e=>e.replace(/\n/g,`
151
- *`))}o(x8,"registerAddAsteriskAfterNewLineHelper");function $8(){ec.default.registerHelper("jsonStringify",e=>JSON.stringify(e,null,2))}o($8,"registerJsonStringifyHelper");var ci=mt(Sn());function _2(e){w8(),A8(e.options),T8(e),I8(),C8(),R8(e),N8()}o(_2,"registerEndpointsHbsHelpers");function w8(){ci.default.registerHelper("endpointName",Na)}o(w8,"registerEndpointNameHelper");function A8(e){ci.default.registerHelper("importedEndpointName",t=>jP(t,e))}o(A8,"registerImportedEndpointNameHelper");function I8(){ci.default.registerHelper("endpointPath",MP)}o(I8,"registerEndpointPathHelper");function C8(){ci.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}o(C8,"registerEndpointBodyHelper");function T8(e){ci.default.registerHelper("endpointParams",(t,r)=>Ma(e,t,r.hash))}o(T8,"registerEndpointParamsHelper");function R8(e){ci.default.registerHelper("endpointArgs",(t,r)=>Ma(e,t,r.hash).map(n=>n.name).join(", "))}o(R8,"registerEndpointArgsHelper");function N8(){ci.default.registerHelper("endpointParamDescription",e=>{var s,a,c,u,l;let t=[`${e.paramType} parameter`],r=((s=e.parameterObject)==null?void 0:s.description)||((a=e.bodyObject)==null?void 0:a.description);r&&t.push(r);let n,i;if((c=e.parameterObject)!=null&&c.schema&&Tt(e.parameterObject.schema)&&(n=(u=e.parameterObject)==null?void 0:u.schema),(l=e.bodyObject)!=null&&l.content){let f=Object.keys(e.bodyObject.content??{}).find(rn);f&&(i=e.bodyObject.content[f],i.schema&&Tt(i.schema)&&(n=i.schema))}if(n){let p=Ta(n);t.push(...p)}return i!=null&&i.example&&t.push(`Example: \`${i.example}\``),t.join(". ")})}o(N8,"registerEndpointParamDescriptionHelper");var Bt=mt(Sn());function S2(e){j8(),M8(),k8(),q8(e),D8(),L8(e),F8(e),H8(e),B8(e),V8(e),U8(),G8(),z8()}o(S2,"registerPartialsHbsHelpers");function j8(){Bt.default.registerHelper("genModelJsDocs",(e,t,r)=>Vt("model-js-docs")({name:e,zodSchema:t,tag:r}))}o(j8,"registerGenerateModelJsDocsHelper");function M8(){Bt.default.registerHelper("genImport",e=>Vt("import")({import:e}))}o(M8,"registerImportHelper");function k8(){Bt.default.registerHelper("genEndpointParams",(e,t)=>Vt("endpoint-params")({endpoint:e,options:t}))}o(k8,"registerGenerateEndpointParamsHelper");function q8(e){Bt.default.registerHelper("genEndpointConfig",t=>{let r=kP(t),n=e.options.axiosRequestConfig;return Object.keys(r).length===0?n?Zn:"":Vt("endpoint-config")({endpointConfig:r,hasAxiosRequestConfig:n,hasBlobResponse:t.response===Ic,hasFileDownload:t.mediaDownload,axiosRequestConfigName:Zn,generateParse:e.options.parseRequestParams})})}o(q8,"registerGenerateEndpointConfigHelper");function D8(){Bt.default.registerHelper("genEndpointParamParse",(e,t)=>{var r;return Vt("endpoint-param-parse")({param:e,paramName:t,zodExtended:Fr.name,sortingString:Fr.properties.sortingString,parse:Fr.properties.parse,addOptional:!((r=e.parameterObject??e.bodyObject)!=null&&r.required)&&(e.parameterSortingEnumSchemaName||xt(e.zodSchema))})})}o(D8,"registerGenerateEndpointParamParseHelper");function L8(e){Bt.default.registerHelper("genQueryKeys",t=>t.length===0?"":Vt("query-keys")({queryEndpoints:t,queriesModuleName:xa,generateInfiniteQueries:e.options.infiniteQueries}))}o(L8,"registerGenerateQueryKeysHelper");function F8(e){Bt.default.registerHelper("genQuery",t=>{if(!Qt(t))return;let r=e.options.axiosRequestConfig;return Vt("query-use-query")({endpoint:t,queryHook:jr.query,hasQueryFn:Ma(e,t).length>0||r,hasAxiosRequestConfig:r,axiosRequestConfigName:Zn,axiosRequestConfigType:Jr})})}o(F8,"registerGenerateQueryHelper");function H8(e){Bt.default.registerHelper("genMutation",(t,r)=>{if(!ti(t))return;let n=qP(t,r);return Vt("query-use-mutation")({endpoint:t,queryHook:jr.mutation,queriesModuleName:xa,hasAxiosRequestConfig:e.options.axiosRequestConfig,axiosRequestConfigName:Zn,axiosRequestConfigType:Jr,hasMutationEffects:e.options.mutationEffects,mutationEffectsType:po.optionsType,updateQueryEndpoints:n})})}o(H8,"registerGenerateMutationHelper");function B8(e){Bt.default.registerHelper("genInfiniteQuery",t=>{if(!(!e.options.infiniteQueries||!ns(t)))return Vt("query-use-infinite-query")({endpoint:t,infiniteQueryHook:jr.infiniteQuery,pageParamName:Bu.pageParamName,totalItemsName:Bu.totalItemsName,limitParamName:Bu.limitParamName,hasAxiosRequestConfig:e.options.axiosRequestConfig,axiosRequestConfigName:Zn,axiosRequestConfigType:Jr})})}o(B8,"registerGenerateInfiniteQueryHelper");function V8(e){Bt.default.registerHelper("genQueryJsDocs",(t,r)=>Vt("query-js-docs")({endpoint:t,query:r.hash.query,mutation:r.hash.mutation,infiniteQuery:r.hash.infiniteQuery,hasMutationEffects:e.options.mutationEffects,mutationEffectsType:po.optionsType}))}o(V8,"registerGenerateQueryJsDocsHelper");function U8(){Bt.default.registerHelper("genCaslAbilityType",e=>Vt("casl-ability-type")({endpoint:e,abilityTupleType:Mr.abilityTuple}))}o(U8,"registerGenerateCaslAbilityTypeHelper");function G8(){Bt.default.registerHelper("genCaslAbilityFunction",e=>Vt("casl-ability-function")({endpoint:e}))}o(G8,"registerGenerateCaslAbilityFunctionHelper");function z8(){Bt.default.registerHelper("genCaslAbilityQuery",e=>Vt("casl-ability-query")({endpoint:e}))}o(z8,"registerGenerateCaslAbilityQueryHelper");var bs=mt(Sn());var E2=o((e,t)=>{let r=Qt(e)&&ti(e)&&t;return`use${Le(pt(e.operationName))}${r?"Mutation":""}`},"getQueryName"),O2=o(e=>`use${Le(pt(e.operationName))}Infinite`,"getInfiniteQueryName");function P2(){Z8(),K8(),Y8(),W8(),Q8()}o(P2,"registerQueryHbsHelpers");function Z8(){bs.default.registerHelper("queryName",(e,t)=>E2(e,t.hash.mutation))}o(Z8,"registerQueryNameHelper");function W8(){bs.default.registerHelper("infiniteQueryName",O2)}o(W8,"registerInfiniteQueryNameHelper");function K8(){bs.default.registerHelper("isQuery",Qt)}o(K8,"registerIsQueryHelper");function Y8(){bs.default.registerHelper("isMutation",ti)}o(Y8,"registerIsMutationHelper");function Q8(){bs.default.registerHelper("isInfiniteQuery",e=>ns(e))}o(Q8,"registerIsInfiniteQueryHelper");var no=mt(Sn());function x2(e){J8(e.options),X8(e),eF(e),tF(),rF(),nF(e)}o(x2,"registerZodHbsHelpers");function J8(e){no.default.registerHelper("zodInferedType",t=>Ra(t,e))}o(J8,"registerInferedTypeHelper");function X8(e){no.default.registerHelper("importedZodSchemaName",t=>_P(e,t))}o(X8,"registerImportedZodSchemaNameHelper");function eF(e){no.default.registerHelper("importedZodSchemaInferedType",t=>Wi(e,t))}o(eF,"registerImportedZodSchemaInferedTypeHelper");function tF(){no.default.registerHelper("zodSchemaType",e=>SP(e))}o(tF,"registerZodSchemaTypeHelper");function rF(){no.default.registerHelper("zodSchemaDescription",e=>EP(e))}o(rF,"registerZodSchemaDescriptionHelper");function nF(e){no.default.registerHelper("zodSchemaPropertyDescriptions",(t,r)=>PP(e,t,r))}o(nF,"registerZodSchemaPropertyDescriptionsHelper");var $2=mt(Sn());function w2(){iF()}o(w2,"registerImportsHbsHelpers");function iF(){$2.default.registerHelper("importNames",(e,t)=>[...t?[t]:[],...e?[`{ ${e.join(", ")} }`]:[]].join(", "))}o(iF,"registerBindingsHelper");function jt(e,t){let r=Zm(t);return v2(),w2(),x2(e),_2(e),P2(),b2(),S2(e),Bg.default.compile(r)}o(jt,"getHbsTemplateDelegate");function Vt(e){let t=Zm(`partials/${e}`);return Bg.default.compile(t)}o(Vt,"getHbsPartialTemplateDelegate");function A2({resolver:e,data:t,tag:r=""}){var l;let n=(l=t.get(r))==null?void 0:l.endpoints.filter(({acl:p})=>p&&p.length>0);if(!n||n.length===0)return;let i=n.some(({acl:p})=>(p==null?void 0:p[0].conditions)&&Object.keys(p[0].conditions).length>0),s={bindings:[Mr.abilityTuple,...i?[Mr.forcedSubject,Mr.subject]:[]],from:Km.from},a=n.reduce((p,f)=>{var h,y;let d=(y=(h=f.acl)==null?void 0:h[0].conditionsTypes)==null?void 0:y.reduce((b,g)=>[...b,...g!=null&&g.zodSchemaName?[g.zodSchemaName]:[]],[]);return[...p,...d??[]]},[]),c=ii({resolver:e,tag:r,zodSchemasAsTypes:Jt(a)});return jt(e,"acl")({caslAbilityTupleImport:s,modelsImports:c,includeNamespace:e.options.tsNamespaces,namespace:ze({type:"acl",tag:r,options:e.options}),endpoints:n})}o(A2,"generateAcl");function I2(e,t){if(!t||t.length===0)return;let r={bindings:[Mr.pureAbility],from:Km.from},n=$P({tags:t,entityName:Fa,getAliasEntityName:ol,type:"acl",options:e.options}),i=t.map(a=>ze({type:"acl",tag:a,options:e.options}));return jt(e,"app-acl")({caslAbilityTupleImport:r,imports:n,allAbilities:Fa,includeNamespace:e.options.tsNamespaces,tags:t,namespaces:i})}o(I2,"generateAppAcl");function C2({resolver:e,data:t,tag:r=""}){var $;let n=($=t.get(r))==null?void 0:$.endpoints;if(!n||n.length===0)return;let i={bindings:[ws],from:AP(e.options)},s=e.options.axiosRequestConfig,a=s,c={bindings:s?[Jr]:[],from:Uu.from},u=e.options.parseRequestParams,l=n.reduce((C,T)=>[...C,...T.parameters],[]),p=l.filter(C=>!["Path","Header"].includes(C.type)).map(C=>C.parameterSortingEnumSchemaName??C.zodSchema),f=n.map(C=>C.response),d=Jt([...f,...u?p:[]]),h=d.some(C=>!xt(C)),y=e.options.parseRequestParams&&p.length>0,b={bindings:[Fr.name],from:RP(e.options)},g=ii({resolver:e,tag:r,zodSchemas:d.filter(xt),zodSchemasAsTypes:Jt(l.map(C=>C.zodSchema).filter(xt))});return jt(e,"endpoints")({appRestClientImport:i,hasAxiosImport:a,axiosImport:c,hasZodImport:h,zodImport:ho,hasZodExtendedImport:y,zodExtendedImport:b,modelsImports:g,includeNamespace:e.options.tsNamespaces,namespace:ze({type:"endpoints",tag:r,options:e.options}),restClientName:ws,hasAxiosRequestConfig:s,axiosRequestConfigName:Zn,axiosRequestConfigType:Jr,endpoints:n,generateParse:u})}o(C2,"generateEndpoints");function T2(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),s=e.getExtractedEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...s]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(R2(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}o(T2,"getZodSchemaRefs");function R2(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&R2(n).forEach(s=>r.add(s)),r},new Set)}o(R2,"getSchemaRefs");function N2({resolver:e,data:t,tag:r=""}){var u;let n=(u=t.get(r))==null?void 0:u.zodSchemas;if(!n||Object.keys(n).length===0)return;let i=Object.keys(n).reduce((l,p)=>[...l,...T2(e,p)],[]).filter(l=>!n[l]),s=ii({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),isEnum:bP(f),schemaObj:e.getZodSchemaObj(p)}}},{});return jt(e,"models")({zodImport:ho,modelsImports:s,includeNamespace:e.options.tsNamespaces,namespace:ze({type:"models",tag:r,options:e.options}),tag:r,zodSchemasData:a})}o(N2,"generateModels");function j2({resolver:e,data:t,tag:r=""}){var A;let n=(A=t.get(r))==null?void 0:A.endpoints;if(!n||n.length===0)return;let i=e.options.axiosRequestConfig,s=n.some(({mediaUpload:K})=>K),a=i||s,c={defaultImport:s?$m:void 0,bindings:i?[Jr]:[],from:Uu.from},u=n.filter(Qt),l=u.filter(K=>ns(K)),p=n.filter(ti),f={bindings:[...u.length>0?[jr.query]:[],...e.options.infiniteQueries&&l.length>0?[jr.infiniteQuery]:[],...p.length>0?[jr.mutation]:[]],from:YO.from},d=e.options.mutationEffects,h={bindings:[Af],from:CP(e.options)},y=d&&p.length>0,b={bindings:[...p.length>0?[po.optionsType,po.hookName]:[]],from:TP(e.options)},g={bindings:[...u.length>0?[Oc.query]:[],...e.options.infiniteQueries&&l.length>0?[Oc.infiniteQuery]:[],...p.length>0?[Oc.mutation]:[]],from:IP(e.options)},P=n.reduce((K,X)=>[...K,...X.parameters],[]),$=ii({resolver:e,tag:r,zodSchemasAsTypes:Jt(P.map(K=>K.zodSchema).filter(xt))}),C=xP({tag:r,endpoints:n,options:e.options});return jt(e,"queries")({hasAxiosImport:a,axiosImport:c,queryImport:f,hasMutationEffects:d,queryModulesImport:h,hasMutationEffectsImport:y,mutationEffectsImport:b,queryTypesImport:g,modelsImports:$,endpointsImports:C,includeNamespace:e.options.tsNamespaces,tag:r,namespace:ze({type:"queries",tag:r,options:e.options}),queriesModuleName:xa,queryModuleEnum:Af,endpoints:n,queryEndpoints:u})}o(j2,"generateQueries");function M2(e){return jt(e,"app-rest-client")({appRestClientName:ws,baseUrl:e.getBaseUrl()})}o(M2,"generateAppRestClient");function k2({resolver:e,data:t}){let r=[];return t.forEach((i,s)=>{var c;let a=(c=t.get(s))==null?void 0:c.endpoints;!a||a.length===0||r.push({tag:s,namespace:ze({type:"queries",tag:s,options:e.options})})}),jt(e,"query-modules")({modules:r})}o(k2,"generateQueryModules");function q2(e){return jt(e,"zod")({zodImport:ho,zodExtension:Fr.name,sortingString:Fr.properties.sortingString,parse:Fr.properties.parse,errorHandler:$s.ErrorHandler,sharedErrorHandler:$s.SharedErrorHandler,errorHandlingImport:{...Yy,from:e.options.errorHandlingImportPath}})}o(q2,"generateZod");function D2(e,t){let r=I2(t,e);return r?[{fileName:sn({output:t.options.output,fileName:is(Sx)}),content:r}]:[]}o(D2,"getAclFiles");function L2(e,t){return t.options.mutationEffects?[...B2([Qy,wc],t),{fileName:sn({output:t.options.output,fileName:is($c)}),content:k2({resolver:t,data:e})}]:[]}o(L2,"getMutationEffectsFiles");function F2(e){return e.options.standalone?[...B2(Object.values(Pc),e),{fileName:sn({output:e.options.output,fileName:is(xc)}),content:M2(e)}]:[]}o(F2,"getStandaloneFiles");function H2(e,t){if(!Array.from(e.values()).some(({endpoints:i})=>i.some(s=>s.parameters.some(a=>a.parameterSortingEnumSchemaName))))return[];let n=q2(t);return n?[{fileName:sn({output:t.options.output,fileName:is(Ac)}),content:n}]:[]}o(H2,"getZodExtendedFiles");function B2(e,t){return e.reduce((r,n)=>[...r,oF(n,t)],[])}o(B2,"getAssetFiles");function oF(e,t){let r=is(e);return{fileName:sn({output:t.options.output,fileName:r}),content:mx(r)}}o(oF,"getAssetFile");function V2(e,t){let r=t.standalone&&t.importPath==="ts"?"relative":t.importPath,n={...$e,...t,importPath:r},{resolver:i,data:s}=il(e,n),a=[],c=[],u=["models","endpoints","queries","acl"],l={models:N2,endpoints:C2,queries:j2,acl:A2};return s.forEach((p,f)=>{u.forEach(d=>{let h=l[d]({resolver:i,data:s,tag:f});if(h){let y=sn({output:n.output,fileName:Xu({tag:f,type:d,options:n})});a.push({fileName:y,content:h}),d==="acl"&&c.push(f)}})}),a.push(...D2(c,i),...L2(s,i),...H2(s,i),...F2(i)),a}o(V2,"generateCodeFromOpenAPIDoc");async function z2({input:e,excludeTags:t,monorepo:r,prettier:n,verbose:i,...s}){let a=Date.now();i&&ur("Parsing OpenAPI spec...");let c=await U2.default.bundle(e);i&&Cn("Parsing finished."),i&&ur("Generating code...");let u=r?"monorepoTemplate":"template",l=V2(c,{input:e,excludeTags:t.split(","),restClientImportPath:In.appRestClient[u],errorHandlingImportPath:In.errorHandling[u],queryTypesImportPath:In.queryTypes[u],...s});i&&Cn("Generation finished."),i&&ur("Writing files..."),gx(l),i&&Cn("Writing finished."),n&&sF({output:s.output,verbose:i}),i&&ur(`TIME: ${Date.now()-a}ms`)}o(z2,"generate");function sF({output:e,verbose:t}){t&&ur("Running Prettier..."),(0,G2.exec)(`prettier --write ${e} `,n=>{t&&(n?Ns(n,"Prettier error"):Cn("Prettier finished."))})}o(sF,"execPrettier");var Ue=class Ue{input;output;tsNamespaces;splitByTags;defaultTag;excludeTags;excludePathRegex;excludeRedundantZodSchemas;importPath;extractEnums;removeOperationPrefixEndingWith;standalone;baseUrl;replaceOptionalWithNullish;infiniteQueries;mutationEffects;parseRequestParams;axiosRequestConfig;monorepo;prettier;verbose};o(Ue,"GenerateOptions"),Oe([Pe({envAlias:"input",demandOption:!0})],Ue.prototype,"input",2),Oe([Pe({envAlias:"output",default:$e.output})],Ue.prototype,"output",2),Oe([Pe({envAlias:"tsNamespaces",default:$e.tsNamespaces,type:"boolean"})],Ue.prototype,"tsNamespaces",2),Oe([Pe({envAlias:"splitByTags",default:$e.splitByTags,type:"boolean"})],Ue.prototype,"splitByTags",2),Oe([Pe({envAlias:"defaultTag",default:$e.defaultTag})],Ue.prototype,"defaultTag",2),Oe([Pe({envAlias:"excludeTags",default:$e.excludeTags.join(",")})],Ue.prototype,"excludeTags",2),Oe([Pe({envAlias:"excludePathRegex",default:$e.excludePathRegex})],Ue.prototype,"excludePathRegex",2),Oe([Pe({envAlias:"excludeRedundantZodSchemas",default:$e.excludeRedundantZodSchemas,type:"boolean"})],Ue.prototype,"excludeRedundantZodSchemas",2),Oe([Pe({envAlias:"importPath",default:$e.importPath})],Ue.prototype,"importPath",2),Oe([Pe({envAlias:"extractEnums",default:$e.extractEnums,type:"boolean"})],Ue.prototype,"extractEnums",2),Oe([Pe({envAlias:"removeOperationPrefixEndingWith",default:$e.removeOperationPrefixEndingWith})],Ue.prototype,"removeOperationPrefixEndingWith",2),Oe([Pe({envAlias:"standalone",default:$e.standalone,type:"boolean"})],Ue.prototype,"standalone",2),Oe([Pe({envAlias:"baseUrl",default:$e.baseUrl})],Ue.prototype,"baseUrl",2),Oe([Pe({envAlias:"replaceOptionalWithNullish",default:$e.replaceOptionalWithNullish,type:"boolean"})],Ue.prototype,"replaceOptionalWithNullish",2),Oe([Pe({envAlias:"infiniteQueries",default:$e.infiniteQueries,type:"boolean"})],Ue.prototype,"infiniteQueries",2),Oe([Pe({envAlias:"mutationEffects",default:$e.mutationEffects,type:"boolean"})],Ue.prototype,"mutationEffects",2),Oe([Pe({envAlias:"parseRequestParams",default:$e.parseRequestParams,type:"boolean"})],Ue.prototype,"parseRequestParams",2),Oe([Pe({envAlias:"axiosRequestConfig",default:$e.axiosRequestConfig,type:"boolean"})],Ue.prototype,"axiosRequestConfig",2),Oe([Pe({envAlias:"monorepo",default:!1,type:"boolean"})],Ue.prototype,"monorepo",2),Oe([Pe({envAlias:"prettier",default:!0,type:"boolean"})],Ue.prototype,"prettier",2),Oe([Pe({envAlias:"verbose",default:!1,type:"boolean"})],Ue.prototype,"verbose",2);var Vg=Ue,Z2={command:"generate",describe:"Generate code from OpenAPI spec",builder:kc(Vg),handler:o(async e=>{let t=await e;return t.verbose&&(Mc(`OpenAPI CodeGen ${yo()}`),Rs("input",t.input),Rs("output",t.output)),z2(t)},"handler")};Ky(ef(process.argv)).version(yo()||"unknown").scriptName("openapi-codegen").command(Z2).command(_x).help().demandCommand(1).strictCommands(!0).showHelpOnFail(!0).fail((e,t)=>{e&&Ns(e),t&&Ns(t),ur("Use '--help' for more info"),process.exit(1)}).parse();
150
+ `)}return n.validationErrors}o(wx,"checkOpenAPIDoc");function RD(e,t){return["models","endpoints","queries"].map(r=>qr({output:t.output,fileName:ol({tag:e,type:r,options:t})}))}o(RD,"getOutputFileNames");async function Ix({input:e,excludeTags:t,verbose:r,...n}){let i=Date.now();r&&fr("Parsing OpenAPI spec...");let s=await Ax.default.bundle(e);r&&Rn("Parsing finished."),r&&fr("Running check...");let a=wx(s,{input:e,excludeTags:t.split(","),...n});if(r&&fr(`TIME: ${Date.now()-i}ms`),a.length===0)Rn("Check finished.");else throw new Error(`Check finished. Found ${a.length} issues.`)}o(Ix,"check");var cn=class cn{input;splitByTags;defaultTag;excludeTags;excludePathRegex;excludeRedundantZodSchemas;verbose};o(cn,"CheckOptions"),Oe([Pe({envAlias:"input",demandOption:!0})],cn.prototype,"input",2),Oe([Pe({envAlias:"splitByTags",default:$e.splitByTags,type:"boolean"})],cn.prototype,"splitByTags",2),Oe([Pe({envAlias:"defaultTag",default:$e.defaultTag})],cn.prototype,"defaultTag",2),Oe([Pe({envAlias:"excludeTags",default:$e.excludeTags.join(",")})],cn.prototype,"excludeTags",2),Oe([Pe({envAlias:"excludePathRegex",default:$e.excludePathRegex})],cn.prototype,"excludePathRegex",2),Oe([Pe({envAlias:"excludeRedundantZodSchemas",default:$e.excludeRedundantZodSchemas,type:"boolean"})],cn.prototype,"excludeRedundantZodSchemas",2),Oe([Pe({envAlias:"verbose",default:!1,type:"boolean"})],cn.prototype,"verbose",2);var ng=cn,Cx={command:"check",describe:"Check OpenAPI spec",builder:Fc(ng),handler:o(async e=>{let t=await e;return t.verbose&&(Lc(`OpenAPI CodeGen ${So()}`),js("input",t.input)),Ix(t)},"handler")};var X2=mt(Rm()),e$=require("child_process");var Tx=o(e=>`Use${Fe(pt(e.operationName))}Ability`,"getAbilityTypeName"),Rx=o(e=>`canUse${Fe(pt(e.operationName))}`,"getAbilityFunctionName"),Nx=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].action},"getAbilityAction"),jx=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].subject},"getAbilitySubject"),fl=o(e=>{var t;return!!((t=Va(e))!=null&&t.length)},"hasAbilityConditions"),Va=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].conditionsTypes},"getAbilityConditionsTypes"),Mx=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].description},"getAbilityDescription"),pl=o(e=>`${Fe(e)}${Ra}`,"getTagAllAbilitiesName");var Kg=mt(On());var Pn=mt(On());function $2(){P8(),x8(),$8(),w8(),A8(),I8(),C8(),T8()}o($2,"registerAclHbsHelpers");function P8(){Pn.default.registerHelper("abilityTypeName",Tx)}o(P8,"registerAbilityTypeNameHelper");function x8(){Pn.default.registerHelper("abilityFunctionName",Rx)}o(x8,"registerAbilityFunctionNameHelper");function $8(){Pn.default.registerHelper("ablityAction",Nx)}o($8,"registerAbilityActionHelper");function w8(){Pn.default.registerHelper("ablitySubject",jx)}o(w8,"registerAbilitySubjectHelper");function A8(){Pn.default.registerHelper("hasAbilityConditions",fl)}o(A8,"registerHasAbilityConditionsHelper");function I8(){Pn.default.registerHelper("abilityConditionsTypes",Va)}o(I8,"registerAbilityConditionsTypesHelper");function C8(){Pn.default.registerHelper("abilityDescription",Mx)}o(C8,"registerAbilityDescriptionHelper");function T8(){Pn.default.registerHelper("tagAllAbilitiesName",pl)}o(T8,"registerTagAllAbilitiesNameHelper");var nc=mt(On());function w2(){R8(),N8(),j8(),M8()}o(w2,"registerCommonHbsHelpers");function R8(){nc.default.registerHelper("isEqual",(e,t)=>e===t)}o(R8,"registerIsEqualHelper");function N8(){nc.default.registerHelper("commaSeparated",e=>e.join(", "))}o(N8,"registerCommaSeparatedListHelper");function j8(){nc.default.registerHelper("addAsteriskAfterNewLine",e=>e.replace(/\n/g,`
151
+ *`))}o(j8,"registerAddAsteriskAfterNewLineHelper");function M8(){nc.default.registerHelper("jsonStringify",e=>JSON.stringify(e,null,2))}o(M8,"registerJsonStringifyHelper");var fi=mt(On());function A2(e){k8(),q8(e.options),F8(e),D8(),L8(),H8(e),B8()}o(A2,"registerEndpointsHbsHelpers");function k8(){fi.default.registerHelper("endpointName",qa)}o(k8,"registerEndpointNameHelper");function q8(e){fi.default.registerHelper("importedEndpointName",t=>UP(t,e))}o(q8,"registerImportedEndpointNameHelper");function D8(){fi.default.registerHelper("endpointPath",GP)}o(D8,"registerEndpointPathHelper");function L8(){fi.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}o(L8,"registerEndpointBodyHelper");function F8(e){fi.default.registerHelper("endpointParams",(t,r)=>ni(e,t,r.hash))}o(F8,"registerEndpointParamsHelper");function H8(e){fi.default.registerHelper("endpointArgs",(t,r)=>ni(e,t,r.hash).map(n=>n.name).join(", "))}o(H8,"registerEndpointArgsHelper");function B8(){fi.default.registerHelper("endpointParamDescription",e=>{var s,a,c,u,l;let t=[`${e.paramType} parameter`],r=((s=e.parameterObject)==null?void 0:s.description)||((a=e.bodyObject)==null?void 0:a.description);r&&t.push(r);let n,i;if((c=e.parameterObject)!=null&&c.schema&&Rt(e.parameterObject.schema)&&(n=(u=e.parameterObject)==null?void 0:u.schema),(l=e.bodyObject)!=null&&l.content){let f=Object.keys(e.bodyObject.content??{}).find(on);f&&(i=e.bodyObject.content[f],i.schema&&Rt(i.schema)&&(n=i.schema))}if(n){let p=Ma(n);t.push(...p)}return i!=null&&i.example&&t.push(`Example: \`${i.example}\``),t.join(". ")})}o(B8,"registerEndpointParamDescriptionHelper");var kt=mt(On());function I2(e){V8(),U8(),G8(),z8(e),Z8(),W8(e),K8(e),Y8(e),Q8(e),J8(e),X8(),eF(),tF(),rF()}o(I2,"registerPartialsHbsHelpers");function V8(){kt.default.registerHelper("genModelJsDocs",(e,t,r)=>qt("model-js-docs")({name:e,zodSchema:t,tag:r}))}o(V8,"registerGenerateModelJsDocsHelper");function U8(){kt.default.registerHelper("genImport",e=>qt("import")({import:e}))}o(U8,"registerImportHelper");function G8(){kt.default.registerHelper("genEndpointParams",(e,t)=>qt("endpoint-params")({endpoint:e,options:t}))}o(G8,"registerGenerateEndpointParamsHelper");function z8(e){kt.default.registerHelper("genEndpointConfig",t=>{let r=zP(t),n=e.options.axiosRequestConfig;return Object.keys(r).length===0?n?Kn:"":qt("endpoint-config")({endpointConfig:r,hasAxiosRequestConfig:n,hasBlobResponse:t.response===Nc,hasFileDownload:t.mediaDownload,axiosRequestConfigName:Kn,generateParse:e.options.parseRequestParams})})}o(z8,"registerGenerateEndpointConfigHelper");function Z8(){kt.default.registerHelper("genEndpointParamParse",(e,t)=>{var r;return qt("endpoint-param-parse")({param:e,paramName:t,isQuery:e.type==="Query",zodExtended:Br.name,sortingString:Br.properties.sortingString,parse:Br.properties.parse,addOptional:!((r=e.parameterObject??e.bodyObject)!=null&&r.required)&&(e.parameterSortingEnumSchemaName||$t(e.zodSchema))})})}o(Z8,"registerGenerateEndpointParamParseHelper");function W8(e){kt.default.registerHelper("genQueryKeys",t=>t.length===0?"":qt("query-keys")({queryEndpoints:t,queriesModuleName:wa,generateInfiniteQueries:e.options.infiniteQueries}))}o(W8,"registerGenerateQueryKeysHelper");function K8(e){kt.default.registerHelper("genQuery",t=>{if(!Jt(t))return;let r=e.options.axiosRequestConfig,n=e.options.checkAcl&&t.acl;return qt("query-use-query")({endpoint:t,queryHook:kr.query,hasQueryFn:ni(e,t).length>0||r||n,hasQueryFnBody:n,hasAxiosRequestConfig:r,axiosRequestConfigName:Kn,axiosRequestConfigType:en,hasAclCheck:n,aclCheckHook:ai})})}o(K8,"registerGenerateQueryHelper");function Y8(e){kt.default.registerHelper("genMutation",(t,r)=>{if(!ii(t))return;let n=ZP(t,r),i=PP(e,t,n),s=e.options.checkAcl&&t.acl;return qt("query-use-mutation")({endpoint:t,queryHook:kr.mutation,queriesModuleName:wa,hasAxiosRequestConfig:e.options.axiosRequestConfig,hasMutationFnBody:t.mediaUpload||s,axiosRequestConfigName:Kn,axiosRequestConfigType:en,hasMutationEffects:e.options.mutationEffects,mutationEffectsType:yo.optionsType,updateQueryEndpoints:n,destructuredVariables:i,hasAclCheck:s,aclCheckHook:ai})})}o(Y8,"registerGenerateMutationHelper");function Q8(e){kt.default.registerHelper("genInfiniteQuery",t=>{if(!e.options.infiniteQueries||!as(t))return;let r=e.options.checkAcl&&t.acl;return qt("query-use-infinite-query")({endpoint:t,infiniteQueryHook:kr.infiniteQuery,hasQueryFnBody:r,pageParamName:zu.pageParamName,totalItemsName:zu.totalItemsName,limitParamName:zu.limitParamName,hasAxiosRequestConfig:e.options.axiosRequestConfig,axiosRequestConfigName:Kn,axiosRequestConfigType:en,hasAclCheck:r,aclCheckHook:ai})})}o(Q8,"registerGenerateInfiniteQueryHelper");function J8(e){kt.default.registerHelper("genQueryJsDocs",(t,r)=>qt("query-js-docs")({endpoint:t,query:r.hash.query,mutation:r.hash.mutation,infiniteQuery:r.hash.infiniteQuery,hasMutationEffects:e.options.mutationEffects,mutationEffectsType:yo.optionsType}))}o(J8,"registerGenerateQueryJsDocsHelper");function X8(){kt.default.registerHelper("genCaslAbilityType",e=>qt("casl-ability-type")({endpoint:e,abilityTupleType:Nt.abilityTuple}))}o(X8,"registerGenerateCaslAbilityTypeHelper");function eF(){kt.default.registerHelper("genCaslAbilityFunction",e=>qt("casl-ability-function")({endpoint:e}))}o(eF,"registerGenerateCaslAbilityFunctionHelper");function tF(){kt.default.registerHelper("genCaslAbilityQuery",e=>qt("casl-ability-query")({endpoint:e}))}o(tF,"registerGenerateCaslAbilityQueryHelper");function rF(){kt.default.registerHelper("genAclCheckParams",e=>{var i;let t=(i=Va(e))==null?void 0:i.map(s=>s.name),r=e.parameters.map(s=>s.name),n=t==null?void 0:t.every(s=>r.includes(s));return qt("acl-check-params")({endpoint:e,generateAclCheckParams:fl(e)&&n})})}o(rF,"registerGenerateAclCheckParamsHelper");var Ss=mt(On());var C2=o((e,t)=>{let r=Jt(e)&&ii(e)&&t;return`use${Fe(pt(e.operationName))}${r?"Mutation":""}`},"getQueryName"),T2=o(e=>`use${Fe(pt(e.operationName))}Infinite`,"getInfiniteQueryName");function R2(){nF(),oF(),sF(),iF(),aF()}o(R2,"registerQueryHbsHelpers");function nF(){Ss.default.registerHelper("queryName",(e,t)=>C2(e,t.hash.mutation))}o(nF,"registerQueryNameHelper");function iF(){Ss.default.registerHelper("infiniteQueryName",T2)}o(iF,"registerInfiniteQueryNameHelper");function oF(){Ss.default.registerHelper("isQuery",Jt)}o(oF,"registerIsQueryHelper");function sF(){Ss.default.registerHelper("isMutation",ii)}o(sF,"registerIsMutationHelper");function aF(){Ss.default.registerHelper("isInfiniteQuery",e=>as(e))}o(aF,"registerIsInfiniteQueryHelper");var ao=mt(On());function N2(e){cF(e.options),uF(e),lF(e),fF(),pF(),dF(e)}o(N2,"registerZodHbsHelpers");function cF(e){ao.default.registerHelper("zodInferedType",t=>ka(t,e))}o(cF,"registerInferedTypeHelper");function uF(e){ao.default.registerHelper("importedZodSchemaName",t=>AP(e,t))}o(uF,"registerImportedZodSchemaNameHelper");function lF(e){ao.default.registerHelper("importedZodSchemaInferedType",t=>Qi(e,t))}o(lF,"registerImportedZodSchemaInferedTypeHelper");function fF(){ao.default.registerHelper("zodSchemaType",e=>IP(e))}o(fF,"registerZodSchemaTypeHelper");function pF(){ao.default.registerHelper("zodSchemaDescription",e=>CP(e))}o(pF,"registerZodSchemaDescriptionHelper");function dF(e){ao.default.registerHelper("zodSchemaPropertyDescriptions",(t,r)=>RP(e,t,r))}o(dF,"registerZodSchemaPropertyDescriptionsHelper");var j2=mt(On());function M2(){hF()}o(M2,"registerImportsHbsHelpers");function hF(){j2.default.registerHelper("importNames",(e,t)=>[...t?[t]:[],...e?[`{ ${e.join(", ")} }`]:[]].join(", "))}o(hF,"registerBindingsHelper");function vt(e,t){let r=rg(t);return w2(),M2(),N2(e),A2(e),R2(),$2(),I2(e),Kg.default.compile(r)}o(vt,"getHbsTemplateDelegate");function qt(e){let t=rg(`partials/${e}`);return Kg.default.compile(t)}o(qt,"getHbsPartialTemplateDelegate");function k2({resolver:e,data:t,tag:r=""}){var l;let n=(l=t.get(r))==null?void 0:l.endpoints.filter(({acl:p})=>p&&p.length>0);if(!n||n.length===0)return;let i=n.some(({acl:p})=>(p==null?void 0:p[0].conditions)&&Object.keys(p[0].conditions).length>0),s={bindings:[Nt.abilityTuple,...i?[Nt.forcedSubject,Nt.subject]:[]],from:zm.from},a=n.reduce((p,f)=>{var h,y;let d=(y=(h=f.acl)==null?void 0:h[0].conditionsTypes)==null?void 0:y.reduce((b,g)=>[...b,...g!=null&&g.zodSchemaName?[g.zodSchemaName]:[]],[]);return[...p,...d??[]]},[]),c=ci({resolver:e,tag:r,zodSchemasAsTypes:Xt(a)});return vt(e,"acl")({caslAbilityTupleImport:s,modelsImports:c,includeNamespace:e.options.tsNamespaces,namespace:Ze({type:"acl",tag:r,options:e.options}),endpoints:n})}o(k2,"generateAcl");function q2(e,t){let r={bindings:[Nt.pureAbility,...t.length===0?[Nt.subject,Nt.abilityTuple]:[]],from:zm.from},n=jP({tags:t,entityName:Ra,getAliasEntityName:pl,type:"acl",options:e.options}),i=t.map(a=>Ze({type:"acl",tag:a,options:e.options}));return vt(e,"app-acl")({caslAbilityTupleImport:r,imports:n,allAbilities:Ra,appAbilities:Na,includeNamespace:e.options.tsNamespaces,tags:t,namespaces:i,abilityTuple:Nt.abilityTuple,subject:Nt.subject})}o(q2,"generateAppAcl");function D2({resolver:e,data:t,tag:r=""}){var $;let n=($=t.get(r))==null?void 0:$.endpoints;if(!n||n.length===0)return;let i={bindings:[Is],from:kP(e.options)},s=e.options.axiosRequestConfig,a=s,c={bindings:s?[en]:[],from:Wu.from},u=e.options.parseRequestParams,l=n.reduce((C,T)=>[...C,...T.parameters],[]),p=l.filter(C=>!["Path","Header"].includes(C.type)).map(C=>C.parameterSortingEnumSchemaName??C.zodSchema),f=n.map(C=>C.response),d=Xt([...f,...u?p:[]]),h=d.some(C=>!$t(C)),y=e.options.parseRequestParams&&p.length>0,b={bindings:[Br.name],from:HP(e.options)},g=ci({resolver:e,tag:r,zodSchemas:d.filter($t),zodSchemasAsTypes:Xt(l.map(C=>C.zodSchema).filter($t))});return vt(e,"endpoints")({appRestClientImport:i,hasAxiosImport:a,axiosImport:c,hasZodImport:h,zodImport:bo,hasZodExtendedImport:y,zodExtendedImport:b,modelsImports:g,includeNamespace:e.options.tsNamespaces,namespace:Ze({type:"endpoints",tag:r,options:e.options}),restClientName:Is,hasAxiosRequestConfig:s,axiosRequestConfigName:Kn,axiosRequestConfigType:en,endpoints:n,generateParse:u})}o(D2,"generateEndpoints");function L2(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),s=e.getExtractedEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...s]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(F2(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}o(L2,"getZodSchemaRefs");function F2(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&F2(n).forEach(s=>r.add(s)),r},new Set)}o(F2,"getSchemaRefs");function H2({resolver:e,data:t,tag:r=""}){var u;let n=(u=t.get(r))==null?void 0:u.zodSchemas;if(!n||Object.keys(n).length===0)return;let i=Object.keys(n).reduce((l,p)=>[...l,...L2(e,p)],[]).filter(l=>!n[l]),s=ci({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),isEnum:$P(f),schemaObj:e.getZodSchemaObj(p)}}},{});return vt(e,"models")({zodImport:bo,modelsImports:s,includeNamespace:e.options.tsNamespaces,namespace:Ze({type:"models",tag:r,options:e.options}),tag:r,zodSchemasData:a})}o(H2,"generateModels");function B2({resolver:e,data:t,tag:r=""}){var J;let n=(J=t.get(r))==null?void 0:J.endpoints;if(!n||n.length===0)return;let i=e.options.axiosRequestConfig,s=n.some(({mediaUpload:Ee})=>Ee),a=i||s,c={defaultImport:s?jm:void 0,bindings:i?[en]:[],from:Wu.from},u=n.filter(Jt),l=u.filter(Ee=>as(Ee)),p=n.filter(ii),f={bindings:[...u.length>0?[kr.query]:[],...e.options.infiniteQueries&&l.length>0?[kr.infiniteQuery]:[],...p.length>0?[kr.mutation]:[]],from:nP.from},d=e.options.mutationEffects,h={bindings:[kf],from:DP(e.options)},y=d&&p.length>0,b={bindings:[...p.length>0?[yo.optionsType,yo.hookName]:[]],from:LP(e.options)},g=e.options.checkAcl&&n.some(Ee=>Ee.acl),P={bindings:[ai],from:FP(e.options)},$={bindings:[...u.length>0?[$c.query]:[],...e.options.infiniteQueries&&l.length>0?[$c.infiniteQuery]:[],...p.length>0?[$c.mutation]:[]],from:qP(e.options)},C=n.reduce((Ee,Ae)=>[...Ee,...Ae.parameters],[]),T=ci({resolver:e,tag:r,zodSchemasAsTypes:Xt(C.map(Ee=>Ee.zodSchema).filter($t))}),A=NP({tag:r,endpoints:n,options:e.options});return vt(e,"queries")({hasAxiosImport:a,axiosImport:c,queryImport:f,hasMutationEffects:d,queryModulesImport:h,hasMutationEffectsImport:y,mutationEffectsImport:b,hasAclCheck:g,aclCheckImport:P,queryTypesImport:$,modelsImports:T,endpointsImports:A,includeNamespace:e.options.tsNamespaces,tag:r,namespace:Ze({type:"queries",tag:r,options:e.options}),queriesModuleName:wa,queryModuleEnum:kf,endpoints:n,queryEndpoints:u})}o(B2,"generateQueries");function V2(e){return vt(e,"acl-check")({abilityContextImport:{...nb,from:e.options.abilityContextImportPath},appAbilitiesImport:{bindings:[Na],from:BP()},errorHandlingImport:{...wc,from:e.options.errorHandlingImportPath},abilityContext:Mf,appAbilities:Na,errorHandler:Tn.ErrorHandler,sharedErrorHandler:Tn.SharedErrorHandler,aclCheckHook:ai})}o(V2,"generateAclCheck");function U2(e){return vt(e,"app-rest-client")({appRestClientName:Is,baseUrl:e.getBaseUrl()})}o(U2,"generateAppRestClient");function G2({resolver:e,data:t}){let r=[];return t.forEach((i,s)=>{var c;let a=(c=t.get(s))==null?void 0:c.endpoints;!a||a.length===0||r.push({tag:s,namespace:Ze({type:"queries",tag:s,options:e.options})})}),vt(e,"query-modules")({modules:r})}o(G2,"generateQueryModules");function z2(e){return vt(e,"zod")({zodImport:bo,zodExtension:Br.name,sortingString:Br.properties.sortingString,parse:Br.properties.parse,errorHandler:Tn.ErrorHandler,sharedErrorHandler:Tn.SharedErrorHandler,errorHandlingImport:{...wc,from:e.options.errorHandlingImportPath}})}o(z2,"generateZod");function Z2(e,t){let r=q2(t,e);return[{fileName:qr({output:t.options.output,fileName:Ji(el)}),content:r},...t.options.checkAcl?[{fileName:qr({output:t.options.output,fileName:Ji(tl)}),content:V2(t)}]:[]]}o(Z2,"getAclFiles");function W2(e,t){return t.options.mutationEffects?[...Q2([ib,Tc],t),{fileName:qr({output:t.options.output,fileName:Ji(Cc)}),content:G2({resolver:t,data:e})}]:[]}o(W2,"getMutationEffectsFiles");function K2(e){return e.options.standalone?[...Q2(Object.values(Ac),e),{fileName:qr({output:e.options.output,fileName:Ji(Ic)}),content:U2(e)}]:[]}o(K2,"getStandaloneFiles");function Y2(e,t){if(!Array.from(e.values()).some(({endpoints:i})=>i.some(s=>s.parameters.some(a=>a.parameterSortingEnumSchemaName))))return[];let n=z2(t);return n?[{fileName:qr({output:t.options.output,fileName:Ji(Rc)}),content:n}]:[]}o(Y2,"getZodExtendedFiles");function Q2(e,t){return e.reduce((r,n)=>[...r,mF(n,t)],[])}o(Q2,"getAssetFiles");function mF(e,t){let r=Ji(e);return{fileName:qr({output:t.options.output,fileName:r}),content:xx(r)}}o(mF,"getAssetFile");function J2(e,t){let r=t.standalone&&t.importPath==="ts"?"relative":t.importPath,n={...$e,...t,importPath:r},{resolver:i,data:s}=ll(e,n),a=[],c=[],u=["models","endpoints","queries","acl"],l={models:H2,endpoints:D2,queries:B2,acl:k2};return s.forEach((p,f)=>{u.forEach(d=>{let h=l[d]({resolver:i,data:s,tag:f});if(h){let y=qr({output:n.output,fileName:ol({tag:f,type:d,options:n})});a.push({fileName:y,content:h}),d==="acl"&&c.push(f)}})}),a.push(...Z2(c,i),...W2(s,i),...Y2(s,i),...K2(i)),a}o(J2,"generateCodeFromOpenAPIDoc");async function t$({input:e,excludeTags:t,monorepo:r,prettier:n,verbose:i,...s}){let a=Date.now();i&&fr("Parsing OpenAPI spec...");let c=await X2.default.bundle(e);i&&Rn("Parsing finished."),i&&fr("Generating code...");let u=r?"monorepoTemplate":"template",l=J2(c,{input:e,excludeTags:t.split(","),restClientImportPath:ur.appRestClient[u],errorHandlingImportPath:ur.errorHandling[u],queryTypesImportPath:ur.queryTypes[u],abilityContextImportPath:ur.abilityContext[u],...s});i&&Rn("Generation finished."),i&&fr("Writing files..."),$x(l),i&&Rn("Writing finished."),n&&gF({output:s.output,verbose:i}),i&&fr(`TIME: ${Date.now()-a}ms`)}o(t$,"generate");function gF({output:e,verbose:t}){t&&fr("Running Prettier..."),(0,e$.exec)(`prettier --write ${e} `,n=>{t&&(n?Ms(n,"Prettier error"):Rn("Prettier finished."))})}o(gF,"execPrettier");var Be=class Be{input;output;tsNamespaces;splitByTags;defaultTag;excludeTags;excludePathRegex;excludeRedundantZodSchemas;importPath;extractEnums;removeOperationPrefixEndingWith;standalone;baseUrl;replaceOptionalWithNullish;infiniteQueries;mutationEffects;parseRequestParams;checkAcl;axiosRequestConfig;monorepo;prettier;verbose};o(Be,"GenerateOptions"),Oe([Pe({envAlias:"input",demandOption:!0})],Be.prototype,"input",2),Oe([Pe({envAlias:"output",default:$e.output})],Be.prototype,"output",2),Oe([Pe({envAlias:"tsNamespaces",default:$e.tsNamespaces,type:"boolean"})],Be.prototype,"tsNamespaces",2),Oe([Pe({envAlias:"splitByTags",default:$e.splitByTags,type:"boolean"})],Be.prototype,"splitByTags",2),Oe([Pe({envAlias:"defaultTag",default:$e.defaultTag})],Be.prototype,"defaultTag",2),Oe([Pe({envAlias:"excludeTags",default:$e.excludeTags.join(",")})],Be.prototype,"excludeTags",2),Oe([Pe({envAlias:"excludePathRegex",default:$e.excludePathRegex})],Be.prototype,"excludePathRegex",2),Oe([Pe({envAlias:"excludeRedundantZodSchemas",default:$e.excludeRedundantZodSchemas,type:"boolean"})],Be.prototype,"excludeRedundantZodSchemas",2),Oe([Pe({envAlias:"importPath",default:$e.importPath})],Be.prototype,"importPath",2),Oe([Pe({envAlias:"extractEnums",default:$e.extractEnums,type:"boolean"})],Be.prototype,"extractEnums",2),Oe([Pe({envAlias:"removeOperationPrefixEndingWith",default:$e.removeOperationPrefixEndingWith})],Be.prototype,"removeOperationPrefixEndingWith",2),Oe([Pe({envAlias:"standalone",default:$e.standalone,type:"boolean"})],Be.prototype,"standalone",2),Oe([Pe({envAlias:"baseUrl",default:$e.baseUrl})],Be.prototype,"baseUrl",2),Oe([Pe({envAlias:"replaceOptionalWithNullish",default:$e.replaceOptionalWithNullish,type:"boolean"})],Be.prototype,"replaceOptionalWithNullish",2),Oe([Pe({envAlias:"infiniteQueries",default:$e.infiniteQueries,type:"boolean"})],Be.prototype,"infiniteQueries",2),Oe([Pe({envAlias:"mutationEffects",default:$e.mutationEffects,type:"boolean"})],Be.prototype,"mutationEffects",2),Oe([Pe({envAlias:"parseRequestParams",default:$e.parseRequestParams,type:"boolean"})],Be.prototype,"parseRequestParams",2),Oe([Pe({envAlias:"checkAcl",default:$e.checkAcl,type:"boolean"})],Be.prototype,"checkAcl",2),Oe([Pe({envAlias:"axiosRequestConfig",default:$e.axiosRequestConfig,type:"boolean"})],Be.prototype,"axiosRequestConfig",2),Oe([Pe({envAlias:"monorepo",default:!1,type:"boolean"})],Be.prototype,"monorepo",2),Oe([Pe({envAlias:"prettier",default:!0,type:"boolean"})],Be.prototype,"prettier",2),Oe([Pe({envAlias:"verbose",default:!1,type:"boolean"})],Be.prototype,"verbose",2);var Yg=Be,r$={command:"generate",describe:"Generate code from OpenAPI spec",builder:Fc(Yg),handler:o(async e=>{let t=await e;return t.verbose&&(Lc(`OpenAPI CodeGen ${So()}`),js("input",t.input),js("output",t.output)),t$(t)},"handler")};rb(cf(process.argv)).version(So()||"unknown").scriptName("openapi-codegen").command(r$).command(Cx).help().demandCommand(1).strictCommands(!0).showHelpOnFail(!0).fail((e,t)=>{e&&Ms(e),t&&Ms(t),fr("Use '--help' for more info"),process.exit(1)}).parse();
152
152
  /*! Bundled license information:
153
153
 
154
154
  reflect-metadata/Reflect.js: