@povio/openapi-codegen-cli 0.0.10 → 0.0.11

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,67 +1,67 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);import * as url from 'url';const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
3
- var S$=Object.create;var na=Object.defineProperty;var bm=Object.getOwnPropertyDescriptor;var w$=Object.getOwnPropertyNames;var $$=Object.getPrototypeOf,P$=Object.prototype.hasOwnProperty;var s=(e,t)=>na(e,"name",{value:t,configurable:!0}),Pe=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var b=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var O$=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of w$(t))!P$.call(e,i)&&i!==r&&na(e,i,{get:()=>t[i],enumerable:!(n=bm(t,i))||n.enumerable});return e};var tn=(e,t,r)=>(r=e!=null?S$($$(e)):{},O$(t||!e||!e.__esModule?na(r,"default",{value:e,enumerable:!0}):r,e));var Fr=(e,t,r,n)=>{for(var i=n>1?void 0:n?bm(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&na(t,r,i),i};var Ng=b(()=>{var kg;(function(e){(function(t){var r=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:u(),n=i(e);typeof r.Reflect<"u"&&(n=i(r.Reflect,n)),t(n,r),typeof r.Reflect>"u"&&(r.Reflect=e);function i(c,l){return function(p,f){Object.defineProperty(c,p,{configurable:!0,writable:!0,value:f}),l&&l(p,f)}}s(i,"makeExporter");function o(){try{return Function("return this;")()}catch{}}s(o,"functionThis");function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}s(a,"indirectEvalThis");function u(){return o()||a()}s(u,"sloppyModeThis")})(function(t,r){var n=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",o=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",u=typeof Object.create=="function",c={__proto__:[]}instanceof Array,l=!u&&!c,p={create:u?function(){return $c(Object.create(null))}:c?function(){return $c({__proto__:null})}:function(){return $c({})},has:l?function(S,O){return n.call(S,O)}:function(S,O){return O in S},get:l?function(S,O){return n.call(S,O)?S[O]:void 0}:function(S,O){return S[O]}},f=Object.getPrototypeOf(Function),d=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:g$(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:y$(),y=typeof WeakMap=="function"?WeakMap:v$(),v=i?Symbol.for("@reflect-metadata:registry"):void 0,g=Je(),P=at(g);function C(S,O,x,N){if(Y(x)){if(!qe(S))throw new TypeError;if(!xt(O))throw new TypeError;return R(S,O)}else{if(!qe(S))throw new TypeError;if(!Ce(O))throw new TypeError;if(!Ce(N)&&!Y(N)&&!Et(N))throw new TypeError;return Et(N)&&(N=void 0),x=_e(x),q(S,O,x,N)}}s(C,"decorate"),t("decorate",C);function k(S,O){function x(N,J){if(!Ce(N))throw new TypeError;if(!Y(J)&&!Oi(J))throw new TypeError;Ve(S,O,N,J)}return s(x,"decorator"),x}s(k,"metadata"),t("metadata",k);function A(S,O,x,N){if(!Ce(x))throw new TypeError;return Y(N)||(N=_e(N)),Ve(S,O,x,N)}s(A,"defineMetadata"),t("defineMetadata",A);function I(S,O,x){if(!Ce(O))throw new TypeError;return Y(x)||(x=_e(x)),Z(S,O,x)}s(I,"hasMetadata"),t("hasMetadata",I);function ae(S,O,x){if(!Ce(O))throw new TypeError;return Y(x)||(x=_e(x)),ce(S,O,x)}s(ae,"hasOwnMetadata"),t("hasOwnMetadata",ae);function ue(S,O,x){if(!Ce(O))throw new TypeError;return Y(x)||(x=_e(x)),be(S,O,x)}s(ue,"getMetadata"),t("getMetadata",ue);function Ot(S,O,x){if(!Ce(O))throw new TypeError;return Y(x)||(x=_e(x)),ge(S,O,x)}s(Ot,"getOwnMetadata"),t("getOwnMetadata",Ot);function Fe(S,O){if(!Ce(S))throw new TypeError;return Y(O)||(O=_e(O)),Sr(S,O)}s(Fe,"getMetadataKeys"),t("getMetadataKeys",Fe);function ee(S,O){if(!Ce(S))throw new TypeError;return Y(O)||(O=_e(O)),xe(S,O)}s(ee,"getOwnMetadataKeys"),t("getOwnMetadataKeys",ee);function M(S,O,x){if(!Ce(O))throw new TypeError;if(Y(x)||(x=_e(x)),!Ce(O))throw new TypeError;Y(x)||(x=_e(x));var N=Ms(O,x,!1);return Y(N)?!1:N.OrdinaryDeleteMetadata(S,O,x)}s(M,"deleteMetadata"),t("deleteMetadata",M);function R(S,O){for(var x=S.length-1;x>=0;--x){var N=S[x],J=N(O);if(!Y(J)&&!Et(J)){if(!xt(J))throw new TypeError;O=J}}return O}s(R,"DecorateConstructor");function q(S,O,x,N){for(var J=S.length-1;J>=0;--J){var We=S[J],et=We(O,x,N);if(!Y(et)&&!Et(et)){if(!Ce(et))throw new TypeError;N=et}}return N}s(q,"DecorateProperty");function Z(S,O,x){var N=ce(S,O,x);if(N)return!0;var J=T(O);return Et(J)?!1:Z(S,J,x)}s(Z,"OrdinaryHasMetadata");function ce(S,O,x){var N=Ms(O,x,!1);return Y(N)?!1:Ie(N.OrdinaryHasOwnMetadata(S,O,x))}s(ce,"OrdinaryHasOwnMetadata");function be(S,O,x){var N=ce(S,O,x);if(N)return ge(S,O,x);var J=T(O);if(!Et(J))return be(S,J,x)}s(be,"OrdinaryGetMetadata");function ge(S,O,x){var N=Ms(O,x,!1);if(!Y(N))return N.OrdinaryGetOwnMetadata(S,O,x)}s(ge,"OrdinaryGetOwnMetadata");function Ve(S,O,x,N){var J=Ms(x,N,!0);J.OrdinaryDefineOwnMetadata(S,O,x,N)}s(Ve,"OrdinaryDefineOwnMetadata");function Sr(S,O){var x=xe(S,O),N=T(S);if(N===null)return x;var J=Sr(N,O);if(J.length<=0)return x;if(x.length<=0)return J;for(var We=new h,et=[],de=0,D=x;de<D.length;de++){var L=D[de],H=We.has(L);H||(We.add(L),et.push(L))}for(var G=0,me=J;G<me.length;G++){var L=me[G],H=We.has(L);H||(We.add(L),et.push(L))}return et}s(Sr,"OrdinaryMetadataKeys");function xe(S,O){var x=Ms(S,O,!1);return x?x.OrdinaryOwnMetadataKeys(S,O):[]}s(xe,"OrdinaryOwnMetadataKeys");function Vt(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}}s(Vt,"Type");function Y(S){return S===void 0}s(Y,"IsUndefined");function Et(S){return S===null}s(Et,"IsNull");function te(S){return typeof S=="symbol"}s(te,"IsSymbol");function Ce(S){return typeof S=="object"?S!==null:typeof S=="function"}s(Ce,"IsObject");function Q(S,O){switch(Vt(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 x=O===3?"string":O===5?"number":"default",N=$(S,o);if(N!==void 0){var J=N.call(S,x);if(Ce(J))throw new TypeError;return J}return Ae(S,x==="default"?"number":x)}s(Q,"ToPrimitive");function Ae(S,O){if(O==="string"){var x=S.toString;if(it(x)){var N=x.call(S);if(!Ce(N))return N}var J=S.valueOf;if(it(J)){var N=J.call(S);if(!Ce(N))return N}}else{var J=S.valueOf;if(it(J)){var N=J.call(S);if(!Ce(N))return N}var We=S.toString;if(it(We)){var N=We.call(S);if(!Ce(N))return N}}throw new TypeError}s(Ae,"OrdinaryToPrimitive");function Ie(S){return!!S}s(Ie,"ToBoolean");function pe(S){return""+S}s(pe,"ToString");function _e(S){var O=Q(S,3);return te(O)?O:pe(O)}s(_e,"ToPropertyKey");function qe(S){return Array.isArray?Array.isArray(S):S instanceof Object?S instanceof Array:Object.prototype.toString.call(S)==="[object Array]"}s(qe,"IsArray");function it(S){return typeof S=="function"}s(it,"IsCallable");function xt(S){return typeof S=="function"}s(xt,"IsConstructor");function Oi(S){switch(Vt(S)){case 3:return!0;case 4:return!0;default:return!1}}s(Oi,"IsPropertyKey");function _(S,O){return S===O||S!==S&&O!==O}s(_,"SameValueZero");function $(S,O){var x=S[O];if(x!=null){if(!it(x))throw new TypeError;return x}}s($,"GetMethod");function j(S){var O=$(S,a);if(!it(O))throw new TypeError;var x=O.call(S);if(!Ce(x))throw new TypeError;return x}s(j,"GetIterator");function E(S){return S.value}s(E,"IteratorValue");function w(S){var O=S.next();return O.done?!1:O}s(w,"IteratorStep");function B(S){var O=S.return;O&&O.call(S)}s(B,"IteratorClose");function T(S){var O=Object.getPrototypeOf(S);if(typeof S!="function"||S===f||O!==f)return O;var x=S.prototype,N=x&&Object.getPrototypeOf(x);if(N==null||N===Object.prototype)return O;var J=N.constructor;return typeof J!="function"||J===S?O:J}s(T,"OrdinaryGetPrototypeOf");function z(){var S;!Y(v)&&typeof r.Reflect<"u"&&!(v in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(S=m$(r.Reflect));var O,x,N,J=new y,We={registerProvider:et,getProvider:D,setProvider:H};return We;function et(G){if(!Object.isExtensible(We))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case S===G:break;case Y(O):O=G;break;case O===G:break;case Y(x):x=G;break;case x===G:break;default:N===void 0&&(N=new h),N.add(G);break}}function de(G,me){if(!Y(O)){if(O.isProviderFor(G,me))return O;if(!Y(x)){if(x.isProviderFor(G,me))return O;if(!Y(N))for(var Re=j(N);;){var Ke=w(Re);if(!Ke)return;var ir=E(Ke);if(ir.isProviderFor(G,me))return B(Re),ir}}}if(!Y(S)&&S.isProviderFor(G,me))return S}function D(G,me){var Re=J.get(G),Ke;return Y(Re)||(Ke=Re.get(me)),Y(Ke)&&(Ke=de(G,me),Y(Ke)||(Y(Re)&&(Re=new d,J.set(G,Re)),Re.set(me,Ke))),Ke}function L(G){if(Y(G))throw new TypeError;return O===G||x===G||!Y(N)&&N.has(G)}function H(G,me,Re){if(!L(Re))throw new Error("Metadata provider not registered.");var Ke=D(G,me);if(Ke!==Re){if(!Y(Ke))return!1;var ir=J.get(G);Y(ir)&&(ir=new d,J.set(G,ir)),ir.set(me,Re)}return!0}}s(z,"CreateMetadataRegistry");function Je(){var S;return!Y(v)&&Ce(r.Reflect)&&Object.isExtensible(r.Reflect)&&(S=r.Reflect[v]),Y(S)&&(S=z()),!Y(v)&&Ce(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,v,{enumerable:!1,configurable:!1,writable:!1,value:S}),S}s(Je,"GetOrCreateMetadataRegistry");function at(S){var O=new y,x={isProviderFor:s(function(L,H){var G=O.get(L);return Y(G)?!1:G.has(H)},"isProviderFor"),OrdinaryDefineOwnMetadata:et,OrdinaryHasOwnMetadata:J,OrdinaryGetOwnMetadata:We,OrdinaryOwnMetadataKeys:de,OrdinaryDeleteMetadata:D};return g.registerProvider(x),x;function N(L,H,G){var me=O.get(L),Re=!1;if(Y(me)){if(!G)return;me=new d,O.set(L,me),Re=!0}var Ke=me.get(H);if(Y(Ke)){if(!G)return;if(Ke=new d,me.set(H,Ke),!S.setProvider(L,H,x))throw me.delete(H),Re&&O.delete(L),new Error("Wrong provider for target.")}return Ke}s(N,"GetOrCreateMetadataMap");function J(L,H,G){var me=N(H,G,!1);return Y(me)?!1:Ie(me.has(L))}s(J,"OrdinaryHasOwnMetadata");function We(L,H,G){var me=N(H,G,!1);if(!Y(me))return me.get(L)}s(We,"OrdinaryGetOwnMetadata");function et(L,H,G,me){var Re=N(G,me,!0);Re.set(L,H)}s(et,"OrdinaryDefineOwnMetadata");function de(L,H){var G=[],me=N(L,H,!1);if(Y(me))return G;for(var Re=me.keys(),Ke=j(Re),ir=0;;){var vm=w(Ke);if(!vm)return G.length=ir,G;var b$=E(vm);try{G[ir]=b$}catch(_$){try{B(Ke)}finally{throw _$}}ir++}}s(de,"OrdinaryOwnMetadataKeys");function D(L,H,G){var me=N(H,G,!1);if(Y(me)||!me.delete(L))return!1;if(me.size===0){var Re=O.get(H);Y(Re)||(Re.delete(G),Re.size===0&&O.delete(Re))}return!0}s(D,"OrdinaryDeleteMetadata")}s(at,"CreateMetadataProvider");function m$(S){var O=S.defineMetadata,x=S.hasOwnMetadata,N=S.getOwnMetadata,J=S.getOwnMetadataKeys,We=S.deleteMetadata,et=new y,de={isProviderFor:s(function(D,L){var H=et.get(D);return!Y(H)&&H.has(L)?!0:J(D,L).length?(Y(H)&&(H=new h,et.set(D,H)),H.add(L),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:O,OrdinaryHasOwnMetadata:x,OrdinaryGetOwnMetadata:N,OrdinaryOwnMetadataKeys:J,OrdinaryDeleteMetadata:We};return de}s(m$,"CreateFallbackProvider");function Ms(S,O,x){var N=g.getProvider(S,O);if(!Y(N))return N;if(x){if(g.setProvider(S,O,P))return P;throw new Error("Illegal state.")}}s(Ms,"GetMetadataProvider");function g$(){var S={},O=[],x=function(){function de(D,L,H){this._index=0,this._keys=D,this._values=L,this._selector=H}return s(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=O,this._values=O):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=O,this._values=O),D},de.prototype.return=function(D){return this._index>=0&&(this._index=-1,this._keys=O,this._values=O),{value:D,done:!0}},de}(),N=function(){function de(){this._keys=[],this._values=[],this._cacheKey=S,this._cacheIndex=-2}return s(de,"Map"),Object.defineProperty(de.prototype,"size",{get:s(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 H=this._find(D,!0);return this._values[H]=L,this},de.prototype.delete=function(D){var L=this._find(D,!1);if(L>=0){for(var H=this._keys.length,G=L+1;G<H;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 x(this._keys,this._values,J)},de.prototype.values=function(){return new x(this._keys,this._values,We)},de.prototype.entries=function(){return new x(this._keys,this._values,et)},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 H=0;H<this._keys.length;H++)if(_(this._keys[H],D)){this._cacheIndex=H;break}}return this._cacheIndex<0&&L&&(this._cacheIndex=this._keys.length,this._keys.push(D),this._values.push(void 0)),this._cacheIndex},de}();return N;function J(de,D){return de}function We(de,D){return D}function et(de,D){return[de,D]}}s(g$,"CreateMapPolyfill");function y$(){var S=function(){function O(){this._map=new d}return s(O,"Set"),Object.defineProperty(O.prototype,"size",{get:s(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),O.prototype.has=function(x){return this._map.has(x)},O.prototype.add=function(x){return this._map.set(x,x),this},O.prototype.delete=function(x){return this._map.delete(x)},O.prototype.clear=function(){this._map.clear()},O.prototype.keys=function(){return this._map.keys()},O.prototype.values=function(){return this._map.keys()},O.prototype.entries=function(){return this._map.entries()},O.prototype["@@iterator"]=function(){return this.keys()},O.prototype[a]=function(){return this.keys()},O}();return S}s(y$,"CreateSetPolyfill");function v$(){var S=16,O=p.create(),x=N();return function(){function D(){this._key=N()}return s(D,"WeakMap"),D.prototype.has=function(L){var H=J(L,!1);return H!==void 0?p.has(H,this._key):!1},D.prototype.get=function(L){var H=J(L,!1);return H!==void 0?p.get(H,this._key):void 0},D.prototype.set=function(L,H){var G=J(L,!0);return G[this._key]=H,this},D.prototype.delete=function(L){var H=J(L,!1);return H!==void 0?delete H[this._key]:!1},D.prototype.clear=function(){this._key=N()},D}();function N(){var D;do D="@@WeakMap@@"+de();while(p.has(O,D));return O[D]=!0,D}function J(D,L){if(!n.call(D,x)){if(!L)return;Object.defineProperty(D,x,{value:p.create()})}return D[x]}function We(D,L){for(var H=0;H<L;++H)D[H]=Math.random()*255|0;return D}function et(D){if(typeof Uint8Array=="function"){var L=new Uint8Array(D);return typeof crypto<"u"?crypto.getRandomValues(L):typeof msCrypto<"u"?msCrypto.getRandomValues(L):We(L,D),L}return We(new Array(D),D)}function de(){var D=et(S);D[6]=D[6]&79|64,D[8]=D[8]&191|128;for(var L="",H=0;H<S;++H){var G=D[H];(H===4||H===6||H===8)&&(L+="-"),G<16&&(L+="0"),L+=G.toString(16).toLowerCase()}return L}}s(v$,"CreateWeakMapPolyfill");function $c(S){return S.__=void 0,delete S.__,S}s($c,"MakeDictionary")})})(kg||(kg={}))});var Dt=b((qt,Dg)=>{"use strict";var Ea=/^win/.test(process.platform),TP=/\//g,qP=/^(\w{2,}):\/\//i,qg=Dg.exports,DP=/~1/g,LP=/~0/g,hl=[/\?/g,"%3F",/\#/g,"%23"],ml=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];qt.parse=Pe("url").parse;qt.resolve=Pe("url").resolve;qt.cwd=s(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");qt.getProtocol=s(function(t){let r=qP.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");qt.getExtension=s(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");qt.getHash=s(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");qt.stripHash=s(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");qt.isHttp=s(function(t){let r=qg.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");qt.isFileSystemPath=s(function(t){if(process.browser)return!1;let r=qg.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");qt.fromFileSystemPath=s(function(t){Ea&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<hl.length;r+=2)t=t.replace(hl[r],hl[r+1]);return t},"fromFileSystemPath");qt.toFileSystemPath=s(function(t,r){t=decodeURI(t);for(let i=0;i<ml.length;i+=2)t=t.replace(ml[i],ml[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),Ea&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=Ea?t:"/"+t)),Ea&&!n&&(t=t.replace(TP,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");qt.safePointerToPath=s(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(DP,"/").replace(LP,"~"))},"safePointerToPath")});var xa=b(Gs=>{"use strict";var Lg=Pe("util"),FP=Dt();Gs.format=Lg.format;Gs.inherits=Lg.inherits;Gs.swaggerParamRegExp=/\{([^/}]+)}/g;var BP=["get","post","put","delete","patch","options","head","trace"];function gl(e,t){if(e.url&&e.url.startsWith("/")){let r=FP.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}s(gl,"fixServers");function VP(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>gl(r,t)),["paths","webhooks"].forEach(r=>{Object.keys(e[r]||[]).forEach(n=>{let i=e[r][n];Object.keys(i).forEach(o=>{o==="servers"?i[o].map(a=>gl(a,t)):BP.includes(o)&&i[o].servers&&i[o].servers.map(a=>gl(a,t))})})}))}s(VP,"fixOasRelativeServers");Gs.fixOasRelativeServers=VP});var Aa=b(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.getDeepKeys=Ni.toJSON=void 0;var HP=["function","symbol","undefined"],UP=["constructor","prototype","__proto__"],GP=Object.getPrototypeOf({});function zP(){let e={},t=this;for(let r of Fg(t))if(typeof r=="string"){let n=t[r],i=typeof n;HP.includes(i)||(e[r]=n)}return e}s(zP,"toJSON");Ni.toJSON=zP;function Fg(e,t=[]){let r=[];for(;e&&e!==GP;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(UP))n.delete(i);return n}s(Fg,"getDeepKeys");Ni.getDeepKeys=Fg});var yl=b(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.addInspectMethod=Mi.format=void 0;var Bg=Pe("util"),WP=Aa(),Vg=Bg.inspect.custom||Symbol.for("nodejs.util.inspect.custom");Mi.format=Bg.format;function KP(e){e[Vg]=ZP}s(KP,"addInspectMethod");Mi.addInspectMethod=KP;function ZP(){let e={},t=this;for(let r of WP.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[Vg],e}s(ZP,"inspect")});var Gg=b(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.lazyJoinStacks=Pr.joinStacks=Pr.isWritableStack=Pr.isLazyStack=void 0;var YP=/\r?\n/,JP=/\bono[ @]/;function QP(e){return!!(e&&e.configurable&&typeof e.get=="function")}s(QP,"isLazyStack");Pr.isLazyStack=QP;function XP(e){return!!(!e||e.writable||typeof e.set=="function")}s(XP,"isWritableStack");Pr.isWritableStack=XP;function Hg(e,t){let r=Ug(e.stack),n=t?t.stack:void 0;return r&&n?r+`
3
+ var x$=Object.create;var ia=Object.defineProperty;var wm=Object.getOwnPropertyDescriptor;var E$=Object.getOwnPropertyNames;var A$=Object.getPrototypeOf,C$=Object.prototype.hasOwnProperty;var s=(e,t)=>ia(e,"name",{value:t,configurable:!0}),Pe=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var b=(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 E$(t))!C$.call(e,i)&&i!==r&&ia(e,i,{get:()=>t[i],enumerable:!(n=wm(t,i))||n.enumerable});return e};var tn=(e,t,r)=>(r=e!=null?x$(A$(e)):{},I$(t||!e||!e.__esModule?ia(r,"default",{value:e,enumerable:!0}):r,e));var Fr=(e,t,r,n)=>{for(var i=n>1?void 0:n?wm(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&ia(t,r,i),i};var qg=b(()=>{var Tg;(function(e){(function(t){var r=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:u(),n=i(e);typeof r.Reflect<"u"&&(n=i(r.Reflect,n)),t(n,r),typeof r.Reflect>"u"&&(r.Reflect=e);function i(c,l){return function(p,f){Object.defineProperty(c,p,{configurable:!0,writable:!0,value:f}),l&&l(p,f)}}s(i,"makeExporter");function o(){try{return Function("return this;")()}catch{}}s(o,"functionThis");function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}s(a,"indirectEvalThis");function u(){return o()||a()}s(u,"sloppyModeThis")})(function(t,r){var n=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",o=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",u=typeof Object.create=="function",c={__proto__:[]}instanceof Array,l=!u&&!c,p={create:u?function(){return Pc(Object.create(null))}:c?function(){return Pc({__proto__:null})}:function(){return Pc({})},has:l?function(S,O){return n.call(S,O)}:function(S,O){return O in S},get:l?function(S,O){return n.call(S,O)?S[O]:void 0}:function(S,O){return S[O]}},f=Object.getPrototypeOf(Function),d=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:S$(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:w$(),y=typeof WeakMap=="function"?WeakMap:$$(),v=i?Symbol.for("@reflect-metadata:registry"):void 0,g=Je(),$=at(g);function A(S,O,E,N){if(Y(E)){if(!qe(S))throw new TypeError;if(!Et(O))throw new TypeError;return R(S,O)}else{if(!qe(S))throw new TypeError;if(!Ce(O))throw new TypeError;if(!Ce(N)&&!Y(N)&&!xt(N))throw new TypeError;return xt(N)&&(N=void 0),E=_e(E),q(S,O,E,N)}}s(A,"decorate"),t("decorate",A);function k(S,O){function E(N,J){if(!Ce(N))throw new TypeError;if(!Y(J)&&!xi(J))throw new TypeError;Be(S,O,N,J)}return s(E,"decorator"),E}s(k,"metadata"),t("metadata",k);function C(S,O,E,N){if(!Ce(E))throw new TypeError;return Y(N)||(N=_e(N)),Be(S,O,E,N)}s(C,"defineMetadata"),t("defineMetadata",C);function I(S,O,E){if(!Ce(O))throw new TypeError;return Y(E)||(E=_e(E)),Z(S,O,E)}s(I,"hasMetadata"),t("hasMetadata",I);function fe(S,O,E){if(!Ce(O))throw new TypeError;return Y(E)||(E=_e(E)),ue(S,O,E)}s(fe,"hasOwnMetadata"),t("hasOwnMetadata",fe);function ne(S,O,E){if(!Ce(O))throw new TypeError;return Y(E)||(E=_e(E)),be(S,O,E)}s(ne,"getMetadata"),t("getMetadata",ne);function yt(S,O,E){if(!Ce(O))throw new TypeError;return Y(E)||(E=_e(E)),ge(S,O,E)}s(yt,"getOwnMetadata"),t("getOwnMetadata",yt);function Fe(S,O){if(!Ce(S))throw new TypeError;return Y(O)||(O=_e(O)),Sr(S,O)}s(Fe,"getMetadataKeys"),t("getMetadataKeys",Fe);function ee(S,O){if(!Ce(S))throw new TypeError;return Y(O)||(O=_e(O)),Ee(S,O)}s(ee,"getOwnMetadataKeys"),t("getOwnMetadataKeys",ee);function M(S,O,E){if(!Ce(O))throw new TypeError;if(Y(E)||(E=_e(E)),!Ce(O))throw new TypeError;Y(E)||(E=_e(E));var N=Ts(O,E,!1);return Y(N)?!1:N.OrdinaryDeleteMetadata(S,O,E)}s(M,"deleteMetadata"),t("deleteMetadata",M);function R(S,O){for(var E=S.length-1;E>=0;--E){var N=S[E],J=N(O);if(!Y(J)&&!xt(J)){if(!Et(J))throw new TypeError;O=J}}return O}s(R,"DecorateConstructor");function q(S,O,E,N){for(var J=S.length-1;J>=0;--J){var We=S[J],et=We(O,E,N);if(!Y(et)&&!xt(et)){if(!Ce(et))throw new TypeError;N=et}}return N}s(q,"DecorateProperty");function Z(S,O,E){var N=ue(S,O,E);if(N)return!0;var J=T(O);return xt(J)?!1:Z(S,J,E)}s(Z,"OrdinaryHasMetadata");function ue(S,O,E){var N=Ts(O,E,!1);return Y(N)?!1:Ie(N.OrdinaryHasOwnMetadata(S,O,E))}s(ue,"OrdinaryHasOwnMetadata");function be(S,O,E){var N=ue(S,O,E);if(N)return ge(S,O,E);var J=T(O);if(!xt(J))return be(S,J,E)}s(be,"OrdinaryGetMetadata");function ge(S,O,E){var N=Ts(O,E,!1);if(!Y(N))return N.OrdinaryGetOwnMetadata(S,O,E)}s(ge,"OrdinaryGetOwnMetadata");function Be(S,O,E,N){var J=Ts(E,N,!0);J.OrdinaryDefineOwnMetadata(S,O,E,N)}s(Be,"OrdinaryDefineOwnMetadata");function Sr(S,O){var E=Ee(S,O),N=T(S);if(N===null)return E;var J=Sr(N,O);if(J.length<=0)return E;if(E.length<=0)return J;for(var We=new h,et=[],de=0,D=E;de<D.length;de++){var L=D[de],H=We.has(L);H||(We.add(L),et.push(L))}for(var z=0,me=J;z<me.length;z++){var L=me[z],H=We.has(L);H||(We.add(L),et.push(L))}return et}s(Sr,"OrdinaryMetadataKeys");function Ee(S,O){var E=Ts(S,O,!1);return E?E.OrdinaryOwnMetadataKeys(S,O):[]}s(Ee,"OrdinaryOwnMetadataKeys");function Bt(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}}s(Bt,"Type");function Y(S){return S===void 0}s(Y,"IsUndefined");function xt(S){return S===null}s(xt,"IsNull");function te(S){return typeof S=="symbol"}s(te,"IsSymbol");function Ce(S){return typeof S=="object"?S!==null:typeof S=="function"}s(Ce,"IsObject");function Q(S,O){switch(Bt(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 E=O===3?"string":O===5?"number":"default",N=P(S,o);if(N!==void 0){var J=N.call(S,E);if(Ce(J))throw new TypeError;return J}return Ae(S,E==="default"?"number":E)}s(Q,"ToPrimitive");function Ae(S,O){if(O==="string"){var E=S.toString;if(it(E)){var N=E.call(S);if(!Ce(N))return N}var J=S.valueOf;if(it(J)){var N=J.call(S);if(!Ce(N))return N}}else{var J=S.valueOf;if(it(J)){var N=J.call(S);if(!Ce(N))return N}var We=S.toString;if(it(We)){var N=We.call(S);if(!Ce(N))return N}}throw new TypeError}s(Ae,"OrdinaryToPrimitive");function Ie(S){return!!S}s(Ie,"ToBoolean");function pe(S){return""+S}s(pe,"ToString");function _e(S){var O=Q(S,3);return te(O)?O:pe(O)}s(_e,"ToPropertyKey");function qe(S){return Array.isArray?Array.isArray(S):S instanceof Object?S instanceof Array:Object.prototype.toString.call(S)==="[object Array]"}s(qe,"IsArray");function it(S){return typeof S=="function"}s(it,"IsCallable");function Et(S){return typeof S=="function"}s(Et,"IsConstructor");function xi(S){switch(Bt(S)){case 3:return!0;case 4:return!0;default:return!1}}s(xi,"IsPropertyKey");function _(S,O){return S===O||S!==S&&O!==O}s(_,"SameValueZero");function P(S,O){var E=S[O];if(E!=null){if(!it(E))throw new TypeError;return E}}s(P,"GetMethod");function j(S){var O=P(S,a);if(!it(O))throw new TypeError;var E=O.call(S);if(!Ce(E))throw new TypeError;return E}s(j,"GetIterator");function x(S){return S.value}s(x,"IteratorValue");function w(S){var O=S.next();return O.done?!1:O}s(w,"IteratorStep");function V(S){var O=S.return;O&&O.call(S)}s(V,"IteratorClose");function T(S){var O=Object.getPrototypeOf(S);if(typeof S!="function"||S===f||O!==f)return O;var E=S.prototype,N=E&&Object.getPrototypeOf(E);if(N==null||N===Object.prototype)return O;var J=N.constructor;return typeof J!="function"||J===S?O:J}s(T,"OrdinaryGetPrototypeOf");function G(){var S;!Y(v)&&typeof r.Reflect<"u"&&!(v in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(S=_$(r.Reflect));var O,E,N,J=new y,We={registerProvider:et,getProvider:D,setProvider:H};return We;function et(z){if(!Object.isExtensible(We))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case S===z:break;case Y(O):O=z;break;case O===z:break;case Y(E):E=z;break;case E===z:break;default:N===void 0&&(N=new h),N.add(z);break}}function de(z,me){if(!Y(O)){if(O.isProviderFor(z,me))return O;if(!Y(E)){if(E.isProviderFor(z,me))return O;if(!Y(N))for(var Re=j(N);;){var Ke=w(Re);if(!Ke)return;var ir=x(Ke);if(ir.isProviderFor(z,me))return V(Re),ir}}}if(!Y(S)&&S.isProviderFor(z,me))return S}function D(z,me){var Re=J.get(z),Ke;return Y(Re)||(Ke=Re.get(me)),Y(Ke)&&(Ke=de(z,me),Y(Ke)||(Y(Re)&&(Re=new d,J.set(z,Re)),Re.set(me,Ke))),Ke}function L(z){if(Y(z))throw new TypeError;return O===z||E===z||!Y(N)&&N.has(z)}function H(z,me,Re){if(!L(Re))throw new Error("Metadata provider not registered.");var Ke=D(z,me);if(Ke!==Re){if(!Y(Ke))return!1;var ir=J.get(z);Y(ir)&&(ir=new d,J.set(z,ir)),ir.set(me,Re)}return!0}}s(G,"CreateMetadataRegistry");function Je(){var S;return!Y(v)&&Ce(r.Reflect)&&Object.isExtensible(r.Reflect)&&(S=r.Reflect[v]),Y(S)&&(S=G()),!Y(v)&&Ce(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,v,{enumerable:!1,configurable:!1,writable:!1,value:S}),S}s(Je,"GetOrCreateMetadataRegistry");function at(S){var O=new y,E={isProviderFor:s(function(L,H){var z=O.get(L);return Y(z)?!1:z.has(H)},"isProviderFor"),OrdinaryDefineOwnMetadata:et,OrdinaryHasOwnMetadata:J,OrdinaryGetOwnMetadata:We,OrdinaryOwnMetadataKeys:de,OrdinaryDeleteMetadata:D};return g.registerProvider(E),E;function N(L,H,z){var me=O.get(L),Re=!1;if(Y(me)){if(!z)return;me=new d,O.set(L,me),Re=!0}var Ke=me.get(H);if(Y(Ke)){if(!z)return;if(Ke=new d,me.set(H,Ke),!S.setProvider(L,H,E))throw me.delete(H),Re&&O.delete(L),new Error("Wrong provider for target.")}return Ke}s(N,"GetOrCreateMetadataMap");function J(L,H,z){var me=N(H,z,!1);return Y(me)?!1:Ie(me.has(L))}s(J,"OrdinaryHasOwnMetadata");function We(L,H,z){var me=N(H,z,!1);if(!Y(me))return me.get(L)}s(We,"OrdinaryGetOwnMetadata");function et(L,H,z,me){var Re=N(z,me,!0);Re.set(L,H)}s(et,"OrdinaryDefineOwnMetadata");function de(L,H){var z=[],me=N(L,H,!1);if(Y(me))return z;for(var Re=me.keys(),Ke=j(Re),ir=0;;){var Sm=w(Ke);if(!Sm)return z.length=ir,z;var P$=x(Sm);try{z[ir]=P$}catch(O$){try{V(Ke)}finally{throw O$}}ir++}}s(de,"OrdinaryOwnMetadataKeys");function D(L,H,z){var me=N(H,z,!1);if(Y(me)||!me.delete(L))return!1;if(me.size===0){var Re=O.get(H);Y(Re)||(Re.delete(z),Re.size===0&&O.delete(Re))}return!0}s(D,"OrdinaryDeleteMetadata")}s(at,"CreateMetadataProvider");function _$(S){var O=S.defineMetadata,E=S.hasOwnMetadata,N=S.getOwnMetadata,J=S.getOwnMetadataKeys,We=S.deleteMetadata,et=new y,de={isProviderFor:s(function(D,L){var H=et.get(D);return!Y(H)&&H.has(L)?!0:J(D,L).length?(Y(H)&&(H=new h,et.set(D,H)),H.add(L),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:O,OrdinaryHasOwnMetadata:E,OrdinaryGetOwnMetadata:N,OrdinaryOwnMetadataKeys:J,OrdinaryDeleteMetadata:We};return de}s(_$,"CreateFallbackProvider");function Ts(S,O,E){var N=g.getProvider(S,O);if(!Y(N))return N;if(E){if(g.setProvider(S,O,$))return $;throw new Error("Illegal state.")}}s(Ts,"GetMetadataProvider");function S$(){var S={},O=[],E=function(){function de(D,L,H){this._index=0,this._keys=D,this._values=L,this._selector=H}return s(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=O,this._values=O):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=O,this._values=O),D},de.prototype.return=function(D){return this._index>=0&&(this._index=-1,this._keys=O,this._values=O),{value:D,done:!0}},de}(),N=function(){function de(){this._keys=[],this._values=[],this._cacheKey=S,this._cacheIndex=-2}return s(de,"Map"),Object.defineProperty(de.prototype,"size",{get:s(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 H=this._find(D,!0);return this._values[H]=L,this},de.prototype.delete=function(D){var L=this._find(D,!1);if(L>=0){for(var H=this._keys.length,z=L+1;z<H;z++)this._keys[z-1]=this._keys[z],this._values[z-1]=this._values[z];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 E(this._keys,this._values,J)},de.prototype.values=function(){return new E(this._keys,this._values,We)},de.prototype.entries=function(){return new E(this._keys,this._values,et)},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 H=0;H<this._keys.length;H++)if(_(this._keys[H],D)){this._cacheIndex=H;break}}return this._cacheIndex<0&&L&&(this._cacheIndex=this._keys.length,this._keys.push(D),this._values.push(void 0)),this._cacheIndex},de}();return N;function J(de,D){return de}function We(de,D){return D}function et(de,D){return[de,D]}}s(S$,"CreateMapPolyfill");function w$(){var S=function(){function O(){this._map=new d}return s(O,"Set"),Object.defineProperty(O.prototype,"size",{get:s(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),O.prototype.has=function(E){return this._map.has(E)},O.prototype.add=function(E){return this._map.set(E,E),this},O.prototype.delete=function(E){return this._map.delete(E)},O.prototype.clear=function(){this._map.clear()},O.prototype.keys=function(){return this._map.keys()},O.prototype.values=function(){return this._map.keys()},O.prototype.entries=function(){return this._map.entries()},O.prototype["@@iterator"]=function(){return this.keys()},O.prototype[a]=function(){return this.keys()},O}();return S}s(w$,"CreateSetPolyfill");function $$(){var S=16,O=p.create(),E=N();return function(){function D(){this._key=N()}return s(D,"WeakMap"),D.prototype.has=function(L){var H=J(L,!1);return H!==void 0?p.has(H,this._key):!1},D.prototype.get=function(L){var H=J(L,!1);return H!==void 0?p.get(H,this._key):void 0},D.prototype.set=function(L,H){var z=J(L,!0);return z[this._key]=H,this},D.prototype.delete=function(L){var H=J(L,!1);return H!==void 0?delete H[this._key]:!1},D.prototype.clear=function(){this._key=N()},D}();function N(){var D;do D="@@WeakMap@@"+de();while(p.has(O,D));return O[D]=!0,D}function J(D,L){if(!n.call(D,E)){if(!L)return;Object.defineProperty(D,E,{value:p.create()})}return D[E]}function We(D,L){for(var H=0;H<L;++H)D[H]=Math.random()*255|0;return D}function et(D){if(typeof Uint8Array=="function"){var L=new Uint8Array(D);return typeof crypto<"u"?crypto.getRandomValues(L):typeof msCrypto<"u"?msCrypto.getRandomValues(L):We(L,D),L}return We(new Array(D),D)}function de(){var D=et(S);D[6]=D[6]&79|64,D[8]=D[8]&191|128;for(var L="",H=0;H<S;++H){var z=D[H];(H===4||H===6||H===8)&&(L+="-"),z<16&&(L+="0"),L+=z.toString(16).toLowerCase()}return L}}s($$,"CreateWeakMapPolyfill");function Pc(S){return S.__=void 0,delete S.__,S}s(Pc,"MakeDictionary")})})(Tg||(Tg={}))});var Dt=b((qt,Vg)=>{"use strict";var Ea=/^win/.test(process.platform),VP=/\//g,BP=/^(\w{2,}):\/\//i,Fg=Vg.exports,HP=/~1/g,UP=/~0/g,ml=[/\?/g,"%3F",/\#/g,"%23"],gl=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];qt.parse=Pe("url").parse;qt.resolve=Pe("url").resolve;qt.cwd=s(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");qt.getProtocol=s(function(t){let r=BP.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");qt.getExtension=s(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");qt.getHash=s(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");qt.stripHash=s(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");qt.isHttp=s(function(t){let r=Fg.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");qt.isFileSystemPath=s(function(t){if(process.browser)return!1;let r=Fg.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");qt.fromFileSystemPath=s(function(t){Ea&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<ml.length;r+=2)t=t.replace(ml[r],ml[r+1]);return t},"fromFileSystemPath");qt.toFileSystemPath=s(function(t,r){t=decodeURI(t);for(let i=0;i<gl.length;i+=2)t=t.replace(gl[i],gl[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),Ea&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=Ea?t:"/"+t)),Ea&&!n&&(t=t.replace(VP,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");qt.safePointerToPath=s(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(HP,"/").replace(UP,"~"))},"safePointerToPath")});var Aa=b(Gs=>{"use strict";var Bg=Pe("util"),zP=Dt();Gs.format=Bg.format;Gs.inherits=Bg.inherits;Gs.swaggerParamRegExp=/\{([^/}]+)}/g;var GP=["get","post","put","delete","patch","options","head","trace"];function yl(e,t){if(e.url&&e.url.startsWith("/")){let r=zP.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}s(yl,"fixServers");function WP(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>yl(r,t)),["paths","webhooks"].forEach(r=>{Object.keys(e[r]||[]).forEach(n=>{let i=e[r][n];Object.keys(i).forEach(o=>{o==="servers"?i[o].map(a=>yl(a,t)):GP.includes(o)&&i[o].servers&&i[o].servers.map(a=>yl(a,t))})})}))}s(WP,"fixOasRelativeServers");Gs.fixOasRelativeServers=WP});var Ca=b(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.getDeepKeys=Mi.toJSON=void 0;var KP=["function","symbol","undefined"],ZP=["constructor","prototype","__proto__"],YP=Object.getPrototypeOf({});function JP(){let e={},t=this;for(let r of Hg(t))if(typeof r=="string"){let n=t[r],i=typeof n;KP.includes(i)||(e[r]=n)}return e}s(JP,"toJSON");Mi.toJSON=JP;function Hg(e,t=[]){let r=[];for(;e&&e!==YP;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(ZP))n.delete(i);return n}s(Hg,"getDeepKeys");Mi.getDeepKeys=Hg});var vl=b(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.addInspectMethod=Ti.format=void 0;var Ug=Pe("util"),QP=Ca(),zg=Ug.inspect.custom||Symbol.for("nodejs.util.inspect.custom");Ti.format=Ug.format;function XP(e){e[zg]=eO}s(XP,"addInspectMethod");Ti.addInspectMethod=XP;function eO(){let e={},t=this;for(let r of QP.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[zg],e}s(eO,"inspect")});var Kg=b(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.lazyJoinStacks=Pr.joinStacks=Pr.isWritableStack=Pr.isLazyStack=void 0;var tO=/\r?\n/,rO=/\bono[ @]/;function nO(e){return!!(e&&e.configurable&&typeof e.get=="function")}s(nO,"isLazyStack");Pr.isLazyStack=nO;function iO(e){return!!(!e||e.writable||typeof e.set=="function")}s(iO,"isWritableStack");Pr.isWritableStack=iO;function Gg(e,t){let r=Wg(e.stack),n=t?t.stack:void 0;return r&&n?r+`
4
4
 
5
- `+n:r||n}s(Hg,"joinStacks");Pr.joinStacks=Hg;function eO(e,t,r){r?Object.defineProperty(t,"stack",{get:s(()=>{let n=e.get.apply(t);return Hg({stack:n},r)},"get"),enumerable:!1,configurable:!0}):tO(t,e)}s(eO,"lazyJoinStacks");Pr.lazyJoinStacks=eO;function Ug(e){if(e){let t=e.split(YP),r;for(let n=0;n<t.length;n++){let i=t[n];if(JP.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(`
6
- `)}return e}s(Ug,"popStack");function tO(e,t){Object.defineProperty(e,"stack",{get:s(()=>Ug(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}s(tO,"lazyPopStack")});var Kg=b(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.extendError=void 0;var zg=yl(),Ca=Gg(),Wg=Aa(),rO=["name","message","stack"];function nO(e,t,r){let n=e;return iO(n,t),t&&typeof t=="object"&&sO(n,t),n.toJSON=Wg.toJSON,zg.addInspectMethod&&zg.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}s(nO,"extendError");Ia.extendError=nO;function iO(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");Ca.isLazyStack(r)?Ca.lazyJoinStacks(r,e,t):Ca.isWritableStack(r)&&(e.stack=Ca.joinStacks(e,t))}s(iO,"extendStack");function sO(e,t){let r=Wg.getDeepKeys(t,rO),n=e,i=t;for(let o of r)if(n[o]===void 0)try{n[o]=i[o]}catch{}}s(sO,"mergeErrors")});var Zg=b(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.normalizeArgs=Ti.normalizeOptions=void 0;var oO=yl();function aO(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?oO.format:typeof e.format=="function"?e.format:!1}}s(aO,"normalizeOptions");Ti.normalizeOptions=aO;function uO(e,t){let r,n,i,o="";return typeof e[0]=="string"?i=e:typeof e[1]=="string"?(e[0]instanceof Error?r=e[0]:n=e[0],i=e.slice(1)):(r=e[0],n=e[1],i=e.slice(2)),i.length>0&&(t.format?o=t.format.apply(void 0,i):o=i.join(" ")),t.concatMessages&&r&&r.message&&(o+=(o?`
7
- `:"")+r.message),{originalError:r,props:n,message:o}}s(uO,"normalizeArgs");Ti.normalizeArgs=uO});var bl=b(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.Ono=void 0;var Ra=Kg(),Yg=Zg(),cO=Aa(),lO=vl;ja.Ono=lO;function vl(e,t){t=Yg.normalizeOptions(t);function r(...n){let{originalError:i,props:o,message:a}=Yg.normalizeArgs(n,t),u=new e(a);return Ra.extendError(u,i,o)}return s(r,"ono"),r[Symbol.species]=e,r}s(vl,"Ono");vl.toJSON=s(function(t){return cO.toJSON.call(t)},"toJSON");vl.extend=s(function(t,r,n){return n||r instanceof Error?Ra.extendError(t,r,n):r?Ra.extendError(t,void 0,r):Ra.extendError(t)},"extend")});var Jg=b(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.ono=void 0;var Yn=bl(),fO=Or;ka.ono=fO;Or.error=new Yn.Ono(Error);Or.eval=new Yn.Ono(EvalError);Or.range=new Yn.Ono(RangeError);Or.reference=new Yn.Ono(ReferenceError);Or.syntax=new Yn.Ono(SyntaxError);Or.type=new Yn.Ono(TypeError);Or.uri=new Yn.Ono(URIError);var pO=Or;function Or(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(pO))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 Or.error.apply(void 0,e)}s(Or,"ono")});var Xg=b(Qg=>{"use strict";Object.defineProperty(Qg,"__esModule",{value:!0});var q5=Pe("util")});var ur=b((ar,qi)=>{"use strict";var dO=ar&&ar.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:s(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),hO=ar&&ar.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&dO(t,e,r)};Object.defineProperty(ar,"__esModule",{value:!0});ar.ono=void 0;var ey=Jg();Object.defineProperty(ar,"ono",{enumerable:!0,get:s(function(){return ey.ono},"get")});var mO=bl();Object.defineProperty(ar,"Ono",{enumerable:!0,get:s(function(){return mO.Ono},"get")});hO(Xg(),ar);ar.default=ey.ono;typeof qi=="object"&&typeof qi.exports=="object"&&(qi.exports=Object.assign(qi.exports.default,qi.exports))});var Ks=b(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 wl=class wl{};s(wl,"_CodeOrName");var zs=wl;Se._CodeOrName=zs;Se.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var $l=class $l extends zs{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}}};s($l,"Name");var Jn=$l;Se.Name=Jn;var Pl=class Pl extends zs{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 Jn&&(r[n.str]=(r[n.str]||0)+1),r),{})}};s(Pl,"_Code");var Zt=Pl;Se._Code=Zt;Se.nil=new Zt("");function ty(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Sl(r,t[n]),r.push(e[++n]);return new Zt(r)}s(ty,"_");Se._=ty;var _l=new Zt("+");function ry(e,...t){let r=[Ws(e[0])],n=0;for(;n<t.length;)r.push(_l),Sl(r,t[n]),r.push(_l,Ws(e[++n]));return gO(r),new Zt(r)}s(ry,"str");Se.str=ry;function Sl(e,t){t instanceof Zt?e.push(...t._items):t instanceof Jn?e.push(t):e.push(bO(t))}s(Sl,"addCodeArg");Se.addCodeArg=Sl;function gO(e){let t=1;for(;t<e.length-1;){if(e[t]===_l){let r=yO(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}s(gO,"optimize");function yO(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Jn||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 Jn))return`"${e}${t.slice(1)}`}s(yO,"mergeExprItems");function vO(e,t){return t.emptyStr()?e:e.emptyStr()?t:ry`${e}${t}`}s(vO,"strConcat");Se.strConcat=vO;function bO(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Ws(Array.isArray(e)?e.join(","):e)}s(bO,"interpolate");function _O(e){return new Zt(Ws(e))}s(_O,"stringify");Se.stringify=_O;function Ws(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}s(Ws,"safeStringify");Se.safeStringify=Ws;function SO(e){return typeof e=="string"&&Se.IDENTIFIER.test(e)?new Zt(`.${e}`):ty`[${e}]`}s(SO,"getProperty");Se.getProperty=SO;function wO(e){if(typeof e=="string"&&Se.IDENTIFIER.test(e))return new Zt(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}s(wO,"getEsmExportName");Se.getEsmExportName=wO;function $O(e){return new Zt(e.toString())}s($O,"regexpCode");Se.regexpCode=$O});var Rl=b(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.ValueScope=Ct.ValueScopeName=Ct.Scope=Ct.varKinds=Ct.UsedValueState=void 0;var At=Ks(),xl=class xl extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};s(xl,"ValueError");var Ol=xl,Na;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Na||(Ct.UsedValueState=Na={}));Ct.varKinds={const:new At.Name("const"),let:new At.Name("let"),var:new At.Name("var")};var Al=class Al{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof At.Name?t:this.name(t)}name(t){return new At.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};s(Al,"Scope");var Ma=Al;Ct.Scope=Ma;var Cl=class Cl extends At.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,At._)`.${new At.Name(r)}[${n}]`}};s(Cl,"ValueScopeName");var Ta=Cl;Ct.ValueScopeName=Ta;var PO=(0,At._)`\n`,Il=class Il extends Ma{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?PO:At.nil}}get(){return this._scope}name(t){return new Ta(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:o}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,u=this._values[o];if(u){let p=u.get(a);if(p)return p}else u=this._values[o]=new Map;u.set(a,i);let c=this._scope[o]||(this._scope[o]=[]),l=c.length;return c[l]=r.ref,i.setValue(r,{property:o,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,At._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let o=At.nil;for(let a in t){let u=t[a];if(!u)continue;let c=n[a]=n[a]||new Map;u.forEach(l=>{if(c.has(l))return;c.set(l,Na.Started);let p=r(l);if(p){let f=this.opts.es5?Ct.varKinds.var:Ct.varKinds.const;o=(0,At._)`${o}${f} ${l} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(l))o=(0,At._)`${o}${p}${this.opts._n}`;else throw new Ol(l);c.set(l,Na.Completed)})}return o}};s(Il,"ValueScope");var El=Il;Ct.ValueScope=El});var se=b(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=Ks(),cr=Rl(),cn=Ks();Object.defineProperty(le,"_",{enumerable:!0,get:s(function(){return cn._},"get")});Object.defineProperty(le,"str",{enumerable:!0,get:s(function(){return cn.str},"get")});Object.defineProperty(le,"strConcat",{enumerable:!0,get:s(function(){return cn.strConcat},"get")});Object.defineProperty(le,"nil",{enumerable:!0,get:s(function(){return cn.nil},"get")});Object.defineProperty(le,"getProperty",{enumerable:!0,get:s(function(){return cn.getProperty},"get")});Object.defineProperty(le,"stringify",{enumerable:!0,get:s(function(){return cn.stringify},"get")});Object.defineProperty(le,"regexpCode",{enumerable:!0,get:s(function(){return cn.regexpCode},"get")});Object.defineProperty(le,"Name",{enumerable:!0,get:s(function(){return cn.Name},"get")});var Fa=Rl();Object.defineProperty(le,"Scope",{enumerable:!0,get:s(function(){return Fa.Scope},"get")});Object.defineProperty(le,"ValueScope",{enumerable:!0,get:s(function(){return Fa.ValueScope},"get")});Object.defineProperty(le,"ValueScopeName",{enumerable:!0,get:s(function(){return Fa.ValueScopeName},"get")});Object.defineProperty(le,"varKinds",{enumerable:!0,get:s(function(){return Fa.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 Ul=class Ul{optimizeNodes(){return this}optimizeNames(t,r){return this}};s(Ul,"Node");var Hr=Ul,Gl=class Gl extends Hr{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?cr.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=Fi(this.rhs,t,r)),this}get names(){return this.rhs instanceof ye._CodeOrName?this.rhs.names:{}}};s(Gl,"Def");var jl=Gl,zl=class zl extends Hr{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=Fi(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ye.Name?{}:{...this.lhs.names};return La(t,this.rhs)}};s(zl,"Assign");var qa=zl,Wl=class Wl extends qa{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};s(Wl,"AssignOp");var kl=Wl,Kl=class Kl extends Hr{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};s(Kl,"Label");var Nl=Kl,Zl=class Zl extends Hr{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};s(Zl,"Break");var Ml=Zl,Yl=class Yl extends Hr{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};s(Yl,"Throw");var Tl=Yl,Jl=class Jl extends Hr{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=Fi(this.code,t,r),this}get names(){return this.code instanceof ye._CodeOrName?this.code.names:{}}};s(Jl,"AnyCode");var ql=Jl,Ql=class Ql extends Hr{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(t,r)||(OO(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>ei(t,r.names),{})}};s(Ql,"ParentNode");var Zs=Ql,Xl=class Xl extends Zs{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};s(Xl,"BlockNode");var Ur=Xl,ef=class ef extends Zs{};s(ef,"Root");var Dl=ef,tf=class tf extends Ur{};s(tf,"Else");var Li=tf;Li.kind="else";var Di=class Di extends Ur{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 Li(n):n}if(r)return t===!1?r instanceof Di?r:r.nodes:this.nodes.length?this:new Di(ny(t),r instanceof Di?[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=Fi(this.condition,t,r),this}get names(){let t=super.names;return La(t,this.condition),this.else&&ei(t,this.else.names),t}};s(Di,"If");var Qn=Di;Qn.kind="if";var rf=class rf extends Ur{};s(rf,"For");var Xn=rf;Xn.kind="for";var nf=class nf extends Xn{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=Fi(this.iteration,t,r),this}get names(){return ei(super.names,this.iteration.names)}};s(nf,"ForLoop");var Ll=nf,sf=class sf extends Xn{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?cr.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(t)}get names(){let t=La(super.names,this.from);return La(t,this.to)}};s(sf,"ForRange");var Fl=sf,of=class of extends Xn{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=Fi(this.iterable,t,r),this}get names(){return ei(super.names,this.iterable.names)}};s(of,"ForIter");var Da=of,af=class af extends Ur{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};s(af,"Func");var Ys=af;Ys.kind="func";var uf=class uf extends Zs{render(t){return"return "+super.render(t)}};s(uf,"Return");var Js=uf;Js.kind="return";var cf=class cf extends Ur{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&&ei(t,this.catch.names),this.finally&&ei(t,this.finally.names),t}};s(cf,"Try");var Bl=cf,lf=class lf extends Ur{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};s(lf,"Catch");var Qs=lf;Qs.kind="catch";var ff=class ff extends Ur{render(t){return"finally"+super.render(t)}};s(ff,"Finally");var Xs=ff;Xs.kind="finally";var pf=class pf{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
8
- `:""},this._extScope=t,this._scope=new cr.Scope({parent:t}),this._nodes=[new Dl]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let o=this._scope.toName(r);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new jl(t,o,n)),o}const(t,r,n){return this._def(cr.varKinds.const,t,r,n)}let(t,r,n){return this._def(cr.varKinds.let,t,r,n)}var(t,r,n){return this._def(cr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new qa(t,r,n))}add(t,r){return this._leafNode(new kl(t,le.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ye.nil&&this._leafNode(new ql(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 Qn(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 Qn(t))}else(){return this._elseNode(new Li)}endIf(){return this._endBlockNode(Qn,Li)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Ll(t),r)}forRange(t,r,n,i,o=this.opts.es5?cr.varKinds.var:cr.varKinds.let){let a=this._scope.toName(t);return this._for(new Fl(o,a,r,n),()=>i(a))}forOf(t,r,n,i=cr.varKinds.const){let o=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`,u=>{this.var(o,(0,ye._)`${a}[${u}]`),n(o)})}return this._for(new Da("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?cr.varKinds.var:cr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ye._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new Da("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(Xn)}label(t){return this._leafNode(new Nl(t))}break(t){return this._leafNode(new Ml(t))}return(t){let r=new Js;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Js)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Bl;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new Qs(o),r(o)}return n&&(this._currNode=i.finally=new Xs,this.code(n)),this._endBlockNode(Qs,Xs)}throw(t){return this._leafNode(new Tl(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 Ys(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Ys)}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 Qn))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};s(pf,"CodeGen");var Vl=pf;le.CodeGen=Vl;function ei(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}s(ei,"addNames");function La(e,t){return t instanceof ye._CodeOrName?ei(e,t.names):e}s(La,"addExprNames");function Fi(e,t,r){if(e instanceof ye.Name)return n(e);if(!i(e))return e;return new ye._Code(e._items.reduce((o,a)=>(a instanceof ye.Name&&(a=n(a)),a instanceof ye._Code?o.push(...a._items):o.push(a),o),[]));function n(o){let a=r[o.str];return a===void 0||t[o.str]!==1?o:(delete t[o.str],a)}function i(o){return o instanceof ye._Code&&o._items.some(a=>a instanceof ye.Name&&t[a.str]===1&&r[a.str]!==void 0)}}s(Fi,"optimizeExpr");function OO(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}s(OO,"subtractNames");function ny(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ye._)`!${Hl(e)}`}s(ny,"not");le.not=ny;var EO=iy(le.operators.AND);function xO(...e){return e.reduce(EO)}s(xO,"and");le.and=xO;var AO=iy(le.operators.OR);function CO(...e){return e.reduce(AO)}s(CO,"or");le.or=CO;function iy(e){return(t,r)=>t===ye.nil?r:r===ye.nil?t:(0,ye._)`${Hl(t)} ${e} ${Hl(r)}`}s(iy,"mappend");function Hl(e){return e instanceof ye.Name?e:(0,ye._)`(${e})`}s(Hl,"par")});var he=b(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 Ee=se(),IO=Ks();function RO(e){let t={};for(let r of e)t[r]=!0;return t}s(RO,"toHash");fe.toHash=RO;function jO(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(ay(e,t),!uy(t,e.self.RULES.all))}s(jO,"alwaysValidSchema");fe.alwaysValidSchema=jO;function ay(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let o in t)i[o]||fy(e,`unknown keyword: "${o}"`)}s(ay,"checkUnknownRules");fe.checkUnknownRules=ay;function uy(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}s(uy,"schemaHasRules");fe.schemaHasRules=uy;function kO(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}s(kO,"schemaHasRulesButRef");fe.schemaHasRulesButRef=kO;function NO({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Ee._)`${r}`}return(0,Ee._)`${e}${t}${(0,Ee.getProperty)(n)}`}s(NO,"schemaRefOrVal");fe.schemaRefOrVal=NO;function MO(e){return cy(decodeURIComponent(e))}s(MO,"unescapeFragment");fe.unescapeFragment=MO;function TO(e){return encodeURIComponent(hf(e))}s(TO,"escapeFragment");fe.escapeFragment=TO;function hf(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}s(hf,"escapeJsonPointer");fe.escapeJsonPointer=hf;function cy(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}s(cy,"unescapeJsonPointer");fe.unescapeJsonPointer=cy;function qO(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}s(qO,"eachItem");fe.eachItem=qO;function sy({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,a,u)=>{let c=a===void 0?o:a instanceof Ee.Name?(o instanceof Ee.Name?e(i,o,a):t(i,o,a),a):o instanceof Ee.Name?(t(i,a,o),o):r(o,a);return u===Ee.Name&&!(c instanceof Ee.Name)?n(i,c):c}}s(sy,"makeMergeEvaluated");fe.mergeEvaluated={props:sy({mergeNames:s((e,t,r)=>e.if((0,Ee._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Ee._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Ee._)`${r} || {}`).code((0,Ee._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,Ee._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Ee._)`${r} || {}`),mf(e,r,t))}),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:ly}),items:sy({mergeNames:s((e,t,r)=>e.if((0,Ee._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Ee._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,Ee._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Ee._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:s((e,t)=>e.var("items",t),"resultToName")})};function ly(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Ee._)`{}`);return t!==void 0&&mf(e,r,t),r}s(ly,"evaluatedPropsToName");fe.evaluatedPropsToName=ly;function mf(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Ee._)`${t}${(0,Ee.getProperty)(n)}`,!0))}s(mf,"setEvaluated");fe.setEvaluated=mf;var oy={};function DO(e,t){return e.scopeValue("func",{ref:t,code:oy[t.code]||(oy[t.code]=new IO._Code(t.code))})}s(DO,"useFunc");fe.useFunc=DO;var df;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(df||(fe.Type=df={}));function LO(e,t,r){if(e instanceof Ee.Name){let n=t===df.Num;return r?n?(0,Ee._)`"[" + ${e} + "]"`:(0,Ee._)`"['" + ${e} + "']"`:n?(0,Ee._)`"/" + ${e}`:(0,Ee._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Ee.getProperty)(e).toString():"/"+hf(e)}s(LO,"getErrorPath");fe.getErrorPath=LO;function fy(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}s(fy,"checkStrictMode");fe.checkStrictMode=fy});var Yt=b(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});var ft=se(),FO={data:new ft.Name("data"),valCxt:new ft.Name("valCxt"),instancePath:new ft.Name("instancePath"),parentData:new ft.Name("parentData"),parentDataProperty:new ft.Name("parentDataProperty"),rootData:new ft.Name("rootData"),dynamicAnchors:new ft.Name("dynamicAnchors"),vErrors:new ft.Name("vErrors"),errors:new ft.Name("errors"),this:new ft.Name("this"),self:new ft.Name("self"),scope:new ft.Name("scope"),json:new ft.Name("json"),jsonPos:new ft.Name("jsonPos"),jsonLen:new ft.Name("jsonLen"),jsonPart:new ft.Name("jsonPart")};gf.default=FO});var eo=b(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.extendErrors=pt.resetErrorsCount=pt.reportExtraError=pt.reportError=pt.keyword$DataError=pt.keywordError=void 0;var ve=se(),Ba=he(),vt=Yt();pt.keywordError={message:s(({keyword:e})=>(0,ve.str)`must pass "${e}" keyword validation`,"message")};pt.keyword$DataError={message:s(({keyword:e,schemaType:t})=>t?(0,ve.str)`"${e}" keyword must be ${t} ($data)`:(0,ve.str)`"${e}" keyword is invalid ($data)`,"message")};function BO(e,t=pt.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:a,allErrors:u}=i,c=hy(e,t,r);n??(a||u)?py(o,c):dy(i,(0,ve._)`[${c}]`)}s(BO,"reportError");pt.reportError=BO;function VO(e,t=pt.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:a}=n,u=hy(e,t,r);py(i,u),o||a||dy(n,vt.default.vErrors)}s(VO,"reportExtraError");pt.reportExtraError=VO;function HO(e,t){e.assign(vt.default.errors,t),e.if((0,ve._)`${vt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,ve._)`${vt.default.vErrors}.length`,t),()=>e.assign(vt.default.vErrors,null)))}s(HO,"resetErrorsCount");pt.resetErrorsCount=HO;function UO({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,vt.default.errors,u=>{e.const(a,(0,ve._)`${vt.default.vErrors}[${u}]`),e.if((0,ve._)`${a}.instancePath === undefined`,()=>e.assign((0,ve._)`${a}.instancePath`,(0,ve.strConcat)(vt.default.instancePath,o.errorPath))),e.assign((0,ve._)`${a}.schemaPath`,(0,ve.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,ve._)`${a}.schema`,r),e.assign((0,ve._)`${a}.data`,n))})}s(UO,"extendErrors");pt.extendErrors=UO;function py(e,t){let r=e.const("err",t);e.if((0,ve._)`${vt.default.vErrors} === null`,()=>e.assign(vt.default.vErrors,(0,ve._)`[${r}]`),(0,ve._)`${vt.default.vErrors}.push(${r})`),e.code((0,ve._)`${vt.default.errors}++`)}s(py,"addError");function dy(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,ve._)`new ${e.ValidationError}(${t})`):(r.assign((0,ve._)`${n}.errors`,t),r.return(!1))}s(dy,"returnErrors");var ti={keyword:new ve.Name("keyword"),schemaPath:new ve.Name("schemaPath"),params:new ve.Name("params"),propertyName:new ve.Name("propertyName"),message:new ve.Name("message"),schema:new ve.Name("schema"),parentSchema:new ve.Name("parentSchema")};function hy(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,ve._)`{}`:GO(e,t,r)}s(hy,"errorObjectCode");function GO(e,t,r={}){let{gen:n,it:i}=e,o=[zO(i,r),WO(e,r)];return KO(e,t,o),n.object(...o)}s(GO,"errorObject");function zO({errorPath:e},{instancePath:t}){let r=t?(0,ve.str)`${e}${(0,Ba.getErrorPath)(t,Ba.Type.Str)}`:e;return[vt.default.instancePath,(0,ve.strConcat)(vt.default.instancePath,r)]}s(zO,"errorInstancePath");function WO({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,ve.str)`${t}/${e}`;return r&&(i=(0,ve.str)`${i}${(0,Ba.getErrorPath)(r,Ba.Type.Str)}`),[ti.schemaPath,i]}s(WO,"errorSchemaPath");function KO(e,{params:t,message:r},n){let{keyword:i,data:o,schemaValue:a,it:u}=e,{opts:c,propertyName:l,topSchemaRef:p,schemaPath:f}=u;n.push([ti.keyword,i],[ti.params,typeof t=="function"?t(e):t||(0,ve._)`{}`]),c.messages&&n.push([ti.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([ti.schema,a],[ti.parentSchema,(0,ve._)`${p}${f}`],[vt.default.data,o]),l&&n.push([ti.propertyName,l])}s(KO,"extraErrorProps")});var gy=b(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.boolOrEmptySchema=Bi.topBoolOrEmptySchema=void 0;var ZO=eo(),YO=se(),JO=Yt(),QO={message:"boolean schema is false"};function XO(e){let{gen:t,schema:r,validateName:n}=e;r===!1?my(e,!1):typeof r=="object"&&r.$async===!0?t.return(JO.default.data):(t.assign((0,YO._)`${n}.errors`,null),t.return(!0))}s(XO,"topBoolOrEmptySchema");Bi.topBoolOrEmptySchema=XO;function eE(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),my(e)):r.var(t,!0)}s(eE,"boolOrEmptySchema");Bi.boolOrEmptySchema=eE;function my(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,ZO.reportError)(i,QO,void 0,t)}s(my,"falseSchemaError")});var yf=b(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.getRules=Vi.isJSONType=void 0;var tE=["string","number","integer","boolean","null","object","array"],rE=new Set(tE);function nE(e){return typeof e=="string"&&rE.has(e)}s(nE,"isJSONType");Vi.isJSONType=nE;function iE(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}s(iE,"getRules");Vi.getRules=iE});var vf=b(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.shouldUseRule=ln.shouldUseGroup=ln.schemaHasRulesForType=void 0;function sE({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&yy(e,n)}s(sE,"schemaHasRulesForType");ln.schemaHasRulesForType=sE;function yy(e,t){return t.rules.some(r=>vy(e,r))}s(yy,"shouldUseGroup");ln.shouldUseGroup=yy;function vy(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}s(vy,"shouldUseRule");ln.shouldUseRule=vy});var to=b(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.reportTypeError=dt.checkDataTypes=dt.checkDataType=dt.coerceAndCheckDataType=dt.getJSONTypes=dt.getSchemaTypes=dt.DataType=void 0;var oE=yf(),aE=vf(),uE=eo(),oe=se(),by=he(),Hi;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Hi||(dt.DataType=Hi={}));function cE(e){let t=_y(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}s(cE,"getSchemaTypes");dt.getSchemaTypes=cE;function _y(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(oE.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}s(_y,"getJSONTypes");dt.getJSONTypes=_y;function lE(e,t){let{gen:r,data:n,opts:i}=e,o=fE(t,i.coerceTypes),a=t.length>0&&!(o.length===0&&t.length===1&&(0,aE.schemaHasRulesForType)(e,t[0]));if(a){let u=_f(t,n,i.strictNumbers,Hi.Wrong);r.if(u,()=>{o.length?pE(e,t,o):Sf(e)})}return a}s(lE,"coerceAndCheckDataType");dt.coerceAndCheckDataType=lE;var Sy=new Set(["string","number","integer","boolean","null"]);function fE(e,t){return t?e.filter(r=>Sy.has(r)||t==="array"&&r==="array"):[]}s(fE,"coerceToTypes");function pE(e,t,r){let{gen:n,data:i,opts:o}=e,a=n.let("dataType",(0,oe._)`typeof ${i}`),u=n.let("coerced",(0,oe._)`undefined`);o.coerceTypes==="array"&&n.if((0,oe._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,oe._)`${i}[0]`).assign(a,(0,oe._)`typeof ${i}`).if(_f(t,i,o.strictNumbers),()=>n.assign(u,i))),n.if((0,oe._)`${u} !== undefined`);for(let l of r)(Sy.has(l)||l==="array"&&o.coerceTypes==="array")&&c(l);n.else(),Sf(e),n.endIf(),n.if((0,oe._)`${u} !== undefined`,()=>{n.assign(i,u),dE(e,u)});function c(l){switch(l){case"string":n.elseIf((0,oe._)`${a} == "number" || ${a} == "boolean"`).assign(u,(0,oe._)`"" + ${i}`).elseIf((0,oe._)`${i} === null`).assign(u,(0,oe._)`""`);return;case"number":n.elseIf((0,oe._)`${a} == "boolean" || ${i} === null
9
- || (${a} == "string" && ${i} && ${i} == +${i})`).assign(u,(0,oe._)`+${i}`);return;case"integer":n.elseIf((0,oe._)`${a} === "boolean" || ${i} === null
10
- || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(u,(0,oe._)`+${i}`);return;case"boolean":n.elseIf((0,oe._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(u,!1).elseIf((0,oe._)`${i} === "true" || ${i} === 1`).assign(u,!0);return;case"null":n.elseIf((0,oe._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(u,null);return;case"array":n.elseIf((0,oe._)`${a} === "string" || ${a} === "number"
11
- || ${a} === "boolean" || ${i} === null`).assign(u,(0,oe._)`[${i}]`)}}s(c,"coerceSpecificType")}s(pE,"coerceData");function dE({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,oe._)`${t} !== undefined`,()=>e.assign((0,oe._)`${t}[${r}]`,n))}s(dE,"assignParentData");function bf(e,t,r,n=Hi.Correct){let i=n===Hi.Correct?oe.operators.EQ:oe.operators.NEQ,o;switch(e){case"null":return(0,oe._)`${t} ${i} null`;case"array":o=(0,oe._)`Array.isArray(${t})`;break;case"object":o=(0,oe._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a((0,oe._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return(0,oe._)`typeof ${t} ${i} ${e}`}return n===Hi.Correct?o:(0,oe.not)(o);function a(u=oe.nil){return(0,oe.and)((0,oe._)`typeof ${t} == "number"`,u,r?(0,oe._)`isFinite(${t})`:oe.nil)}}s(bf,"checkDataType");dt.checkDataType=bf;function _f(e,t,r,n){if(e.length===1)return bf(e[0],t,r,n);let i,o=(0,by.toHash)(e);if(o.array&&o.object){let a=(0,oe._)`typeof ${t} != "object"`;i=o.null?a:(0,oe._)`!${t} || ${a}`,delete o.null,delete o.array,delete o.object}else i=oe.nil;o.number&&delete o.integer;for(let a in o)i=(0,oe.and)(i,bf(a,t,r,n));return i}s(_f,"checkDataTypes");dt.checkDataTypes=_f;var hE={message:s(({schema:e})=>`must be ${e}`,"message"),params:s(({schema:e,schemaValue:t})=>typeof e=="string"?(0,oe._)`{type: ${e}}`:(0,oe._)`{type: ${t}}`,"params")};function Sf(e){let t=mE(e);(0,uE.reportError)(t,hE)}s(Sf,"reportTypeError");dt.reportTypeError=Sf;function mE(e){let{gen:t,data:r,schema:n}=e,i=(0,by.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}s(mE,"getTypeErrorContext")});var $y=b(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.assignDefaults=void 0;var Ui=se(),gE=he();function yE(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)wy(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>wy(e,o,i.default))}s(yE,"assignDefaults");Va.assignDefaults=yE;function wy(e,t,r){let{gen:n,compositeRule:i,data:o,opts:a}=e;if(r===void 0)return;let u=(0,Ui._)`${o}${(0,Ui.getProperty)(t)}`;if(i){(0,gE.checkStrictMode)(e,`default is ignored for: ${u}`);return}let c=(0,Ui._)`${u} === undefined`;a.useDefaults==="empty"&&(c=(0,Ui._)`${c} || ${u} === null || ${u} === ""`),n.if(c,(0,Ui._)`${u} = ${(0,Ui.stringify)(r)}`)}s(wy,"assignDefault")});var Jt=b(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.validateUnion=Oe.validateArray=Oe.usePattern=Oe.callValidateCode=Oe.schemaProperties=Oe.allSchemaProperties=Oe.noPropertyInData=Oe.propertyInData=Oe.isOwnProperty=Oe.hasPropFunc=Oe.reportMissingProp=Oe.checkMissingProp=Oe.checkReportMissingProp=void 0;var Ne=se(),wf=he(),fn=Yt(),vE=he();function bE(e,t){let{gen:r,data:n,it:i}=e;r.if(Pf(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Ne._)`${t}`},!0),e.error()})}s(bE,"checkReportMissingProp");Oe.checkReportMissingProp=bE;function _E({gen:e,data:t,it:{opts:r}},n,i){return(0,Ne.or)(...n.map(o=>(0,Ne.and)(Pf(e,t,o,r.ownProperties),(0,Ne._)`${i} = ${o}`)))}s(_E,"checkMissingProp");Oe.checkMissingProp=_E;function SE(e,t){e.setParams({missingProperty:t},!0),e.error()}s(SE,"reportMissingProp");Oe.reportMissingProp=SE;function Py(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ne._)`Object.prototype.hasOwnProperty`})}s(Py,"hasPropFunc");Oe.hasPropFunc=Py;function $f(e,t,r){return(0,Ne._)`${Py(e)}.call(${t}, ${r})`}s($f,"isOwnProperty");Oe.isOwnProperty=$f;function wE(e,t,r,n){let i=(0,Ne._)`${t}${(0,Ne.getProperty)(r)} !== undefined`;return n?(0,Ne._)`${i} && ${$f(e,t,r)}`:i}s(wE,"propertyInData");Oe.propertyInData=wE;function Pf(e,t,r,n){let i=(0,Ne._)`${t}${(0,Ne.getProperty)(r)} === undefined`;return n?(0,Ne.or)(i,(0,Ne.not)($f(e,t,r))):i}s(Pf,"noPropertyInData");Oe.noPropertyInData=Pf;function Oy(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}s(Oy,"allSchemaProperties");Oe.allSchemaProperties=Oy;function $E(e,t){return Oy(t).filter(r=>!(0,wf.alwaysValidSchema)(e,t[r]))}s($E,"schemaProperties");Oe.schemaProperties=$E;function PE({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},u,c,l){let p=l?(0,Ne._)`${e}, ${t}, ${n}${i}`:t,f=[[fn.default.instancePath,(0,Ne.strConcat)(fn.default.instancePath,o)],[fn.default.parentData,a.parentData],[fn.default.parentDataProperty,a.parentDataProperty],[fn.default.rootData,fn.default.rootData]];a.opts.dynamicRef&&f.push([fn.default.dynamicAnchors,fn.default.dynamicAnchors]);let d=(0,Ne._)`${p}, ${r.object(...f)}`;return c!==Ne.nil?(0,Ne._)`${u}.call(${c}, ${d})`:(0,Ne._)`${u}(${d})`}s(PE,"callValidateCode");Oe.callValidateCode=PE;var OE=(0,Ne._)`new RegExp`;function EE({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,Ne._)`${i.code==="new RegExp"?OE:(0,vE.useFunc)(e,i)}(${r}, ${n})`})}s(EE,"usePattern");Oe.usePattern=EE;function xE(e){let{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){let u=t.let("valid",!0);return a(()=>t.assign(u,!1)),u}return t.var(o,!0),a(()=>t.break()),o;function a(u){let c=t.const("len",(0,Ne._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:wf.Type.Num},o),t.if((0,Ne.not)(o),u)})}s(a,"validateItems")}s(xE,"validateArray");Oe.validateArray=xE;function AE(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,wf.alwaysValidSchema)(i,c))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),u=t.name("_valid");t.block(()=>r.forEach((c,l)=>{let p=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},u);t.assign(a,(0,Ne._)`${a} || ${u}`),e.mergeValidEvaluated(p,u)||t.if((0,Ne.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}s(AE,"validateUnion");Oe.validateUnion=AE});var Ay=b(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.validateKeywordUsage=Er.validSchemaType=Er.funcKeywordCode=Er.macroKeywordCode=void 0;var bt=se(),ri=Yt(),CE=Jt(),IE=eo();function RE(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:a}=e,u=t.macro.call(a.self,i,o,a),c=xy(r,n,u);a.opts.validateSchema!==!1&&a.self.validateSchema(u,!0);let l=r.name("valid");e.subschema({schema:u,schemaPath:bt.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}s(RE,"macroKeywordCode");Er.macroKeywordCode=RE;function jE(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:u,it:c}=e;NE(c,t);let l=!u&&t.compile?t.compile.call(c.self,o,a,c):t.validate,p=xy(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)v(),t.modifying&&Ey(e),g(()=>e.error());else{let P=t.async?h():y();t.modifying&&Ey(e),g(()=>kE(e,P))}}s(d,"validateKeyword");function h(){let P=n.let("ruleErrs",null);return n.try(()=>v((0,bt._)`await `),C=>n.assign(f,!1).if((0,bt._)`${C} instanceof ${c.ValidationError}`,()=>n.assign(P,(0,bt._)`${C}.errors`),()=>n.throw(C))),P}s(h,"validateAsync");function y(){let P=(0,bt._)`${p}.errors`;return n.assign(P,null),v(bt.nil),P}s(y,"validateSync");function v(P=t.async?(0,bt._)`await `:bt.nil){let C=c.opts.passContext?ri.default.this:ri.default.self,k=!("compile"in t&&!u||t.schema===!1);n.assign(f,(0,bt._)`${P}${(0,CE.callValidateCode)(e,p,C,k)}`,t.modifying)}s(v,"assignValid");function g(P){var C;n.if((0,bt.not)((C=t.valid)!==null&&C!==void 0?C:f),P)}s(g,"reportErrs")}s(jE,"funcKeywordCode");Er.funcKeywordCode=jE;function Ey(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,bt._)`${n.parentData}[${n.parentDataProperty}]`))}s(Ey,"modifyData");function kE(e,t){let{gen:r}=e;r.if((0,bt._)`Array.isArray(${t})`,()=>{r.assign(ri.default.vErrors,(0,bt._)`${ri.default.vErrors} === null ? ${t} : ${ri.default.vErrors}.concat(${t})`).assign(ri.default.errors,(0,bt._)`${ri.default.vErrors}.length`),(0,IE.extendErrors)(e)},()=>e.error())}s(kE,"addErrs");function NE({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}s(NE,"checkAsyncKeyword");function xy(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,bt.stringify)(r)})}s(xy,"useKeyword");function ME(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}s(ME,"validSchemaType");Er.validSchemaType=ME;function TE({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(u=>!Object.prototype.hasOwnProperty.call(e,u)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){let c=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}s(TE,"validateKeywordUsage");Er.validateKeywordUsage=TE});var Iy=b(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.extendSubschemaMode=pn.extendSubschemaData=pn.getSubschema=void 0;var xr=se(),Cy=he();function qE(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let u=e.schema[t];return r===void 0?{schema:u,schemaPath:(0,xr._)`${e.schemaPath}${(0,xr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:u[r],schemaPath:(0,xr._)`${e.schemaPath}${(0,xr.getProperty)(t)}${(0,xr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Cy.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}s(qE,"getSubschema");pn.getSubschema=qE;function DE(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:u}=t;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:f}=t,d=u.let("data",(0,xr._)`${t.data}${(0,xr.getProperty)(r)}`,!0);c(d),e.errorPath=(0,xr.str)`${l}${(0,Cy.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,xr._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof xr.Name?i:u.let("data",i,!0);c(l),a!==void 0&&(e.propertyName=a)}o&&(e.dataTypes=o);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}s(c,"dataContextProps")}s(DE,"extendSubschemaData");pn.extendSubschemaData=DE;function LE(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}s(LE,"extendSubschemaMode");pn.extendSubschemaMode=LE});var Of=b((dF,Ry)=>{"use strict";Ry.exports=s(function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var ky=b((mF,jy)=>{"use strict";var dn=jy.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(){};Ha(t,n,i,e,"",e)};dn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};dn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};dn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};dn.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 Ha(e,t,r,n,i,o,a,u,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,a,u,c,l);for(var p in n){var f=n[p];if(Array.isArray(f)){if(p in dn.arrayKeywords)for(var d=0;d<f.length;d++)Ha(e,t,r,f[d],i+"/"+p+"/"+d,o,i,p,n,d)}else if(p in dn.propsKeywords){if(f&&typeof f=="object")for(var h in f)Ha(e,t,r,f[h],i+"/"+p+"/"+FE(h),o,i,p,n,h)}else(p in dn.keywords||e.allKeys&&!(p in dn.skipKeywords))&&Ha(e,t,r,f,i+"/"+p,o,i,p,n)}r(n,i,o,a,u,c,l)}}s(Ha,"_traverse");function FE(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}s(FE,"escapeJsonPtr")});var ro=b(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.getSchemaRefs=It.resolveUrl=It.normalizeId=It._getFullPath=It.getFullPath=It.inlineRef=void 0;var BE=he(),VE=Of(),HE=ky(),UE=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function GE(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Ef(e):t?Ny(e)<=t:!1}s(GE,"inlineRef");It.inlineRef=GE;var zE=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Ef(e){for(let t in e){if(zE.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Ef)||typeof r=="object"&&Ef(r))return!0}return!1}s(Ef,"hasRef");function Ny(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!UE.has(r)&&(typeof e[r]=="object"&&(0,BE.eachItem)(e[r],n=>t+=Ny(n)),t===1/0))return 1/0}return t}s(Ny,"countKeys");function My(e,t="",r){r!==!1&&(t=Gi(t));let n=e.parse(t);return Ty(e,n)}s(My,"getFullPath");It.getFullPath=My;function Ty(e,t){return e.serialize(t).split("#")[0]+"#"}s(Ty,"_getFullPath");It._getFullPath=Ty;var WE=/#\/?$/;function Gi(e){return e?e.replace(WE,""):""}s(Gi,"normalizeId");It.normalizeId=Gi;function KE(e,t,r){return r=Gi(r),e.resolve(t,r)}s(KE,"resolveUrl");It.resolveUrl=KE;var ZE=/^[a-z_][-a-z0-9._]*$/i;function YE(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=Gi(e[r]||t),o={"":i},a=My(n,i,!1),u={},c=new Set;return HE(e,{allKeys:!0},(f,d,h,y)=>{if(y===void 0)return;let v=a+d,g=o[y];typeof f[r]=="string"&&(g=P.call(this,f[r])),C.call(this,f.$anchor),C.call(this,f.$dynamicAnchor),o[d]=g;function P(k){let A=this.opts.uriResolver.resolve;if(k=Gi(g?A(g,k):k),c.has(k))throw p(k);c.add(k);let I=this.refs[k];return typeof I=="string"&&(I=this.refs[I]),typeof I=="object"?l(f,I.schema,k):k!==Gi(v)&&(k[0]==="#"?(l(f,u[k],k),u[k]=f):this.refs[k]=v),k}s(P,"addRef");function C(k){if(typeof k=="string"){if(!ZE.test(k))throw new Error(`invalid anchor "${k}"`);P.call(this,`#${k}`)}}s(C,"addAnchor")}),u;function l(f,d,h){if(d!==void 0&&!VE(f,d))throw p(h)}s(l,"checkAmbiguosRef");function p(f){return new Error(`reference "${f}" resolves to more than one schema`)}s(p,"ambiguos")}s(YE,"getSchemaRefs");It.getSchemaRefs=YE});var so=b(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.getData=hn.KeywordCxt=hn.validateFunctionCode=void 0;var By=gy(),qy=to(),Af=vf(),Ua=to(),JE=$y(),io=Ay(),xf=Iy(),K=se(),ne=Yt(),QE=ro(),Gr=he(),no=eo();function XE(e){if(Uy(e)&&(Gy(e),Hy(e))){rx(e);return}Vy(e,()=>(0,By.topBoolOrEmptySchema)(e))}s(XE,"validateFunctionCode");hn.validateFunctionCode=XE;function Vy({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,K._)`${ne.default.data}, ${ne.default.valCxt}`,n.$async,()=>{e.code((0,K._)`"use strict"; ${Dy(r,i)}`),tx(e,i),e.code(o)}):e.func(t,(0,K._)`${ne.default.data}, ${ex(i)}`,n.$async,()=>e.code(Dy(r,i)).code(o))}s(Vy,"validateFunction");function ex(e){return(0,K._)`{${ne.default.instancePath}="", ${ne.default.parentData}, ${ne.default.parentDataProperty}, ${ne.default.rootData}=${ne.default.data}${e.dynamicRef?(0,K._)`, ${ne.default.dynamicAnchors}={}`:K.nil}}={}`}s(ex,"destructureValCxt");function tx(e,t){e.if(ne.default.valCxt,()=>{e.var(ne.default.instancePath,(0,K._)`${ne.default.valCxt}.${ne.default.instancePath}`),e.var(ne.default.parentData,(0,K._)`${ne.default.valCxt}.${ne.default.parentData}`),e.var(ne.default.parentDataProperty,(0,K._)`${ne.default.valCxt}.${ne.default.parentDataProperty}`),e.var(ne.default.rootData,(0,K._)`${ne.default.valCxt}.${ne.default.rootData}`),t.dynamicRef&&e.var(ne.default.dynamicAnchors,(0,K._)`${ne.default.valCxt}.${ne.default.dynamicAnchors}`)},()=>{e.var(ne.default.instancePath,(0,K._)`""`),e.var(ne.default.parentData,(0,K._)`undefined`),e.var(ne.default.parentDataProperty,(0,K._)`undefined`),e.var(ne.default.rootData,ne.default.data),t.dynamicRef&&e.var(ne.default.dynamicAnchors,(0,K._)`{}`)})}s(tx,"destructureValCxtES5");function rx(e){let{schema:t,opts:r,gen:n}=e;Vy(e,()=>{r.$comment&&t.$comment&&Wy(e),ax(e),n.let(ne.default.vErrors,null),n.let(ne.default.errors,0),r.unevaluated&&nx(e),zy(e),lx(e)})}s(rx,"topSchemaObjCode");function nx(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,K._)`${r}.evaluated`),t.if((0,K._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,K._)`${e.evaluated}.props`,(0,K._)`undefined`)),t.if((0,K._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,K._)`${e.evaluated}.items`,(0,K._)`undefined`))}s(nx,"resetEvaluated");function Dy(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,K._)`/*# sourceURL=${r} */`:K.nil}s(Dy,"funcSourceUrl");function ix(e,t){if(Uy(e)&&(Gy(e),Hy(e))){sx(e,t);return}(0,By.boolOrEmptySchema)(e,t)}s(ix,"subschemaCode");function Hy({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}s(Hy,"schemaCxtHasRules");function Uy(e){return typeof e.schema!="boolean"}s(Uy,"isSchemaObj");function sx(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&Wy(e),ux(e),cx(e);let o=n.const("_errs",ne.default.errors);zy(e,o),n.var(t,(0,K._)`${o} === ${ne.default.errors}`)}s(sx,"subSchemaObjCode");function Gy(e){(0,Gr.checkUnknownRules)(e),ox(e)}s(Gy,"checkKeywords");function zy(e,t){if(e.opts.jtd)return Ly(e,[],!1,t);let r=(0,qy.getSchemaTypes)(e.schema),n=(0,qy.coerceAndCheckDataType)(e,r);Ly(e,r,!n,t)}s(zy,"typeAndKeywords");function ox(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Gr.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}s(ox,"checkRefsAndKeywords");function ax(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Gr.checkStrictMode)(e,"default is ignored in the schema root")}s(ax,"checkNoDefault");function ux(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,QE.resolveUrl)(e.opts.uriResolver,e.baseId,t))}s(ux,"updateContext");function cx(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}s(cx,"checkAsyncSchema");function Wy({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,K._)`${ne.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=(0,K.str)`${n}/$comment`,u=e.scopeValue("root",{ref:t.root});e.code((0,K._)`${ne.default.self}.opts.$comment(${o}, ${a}, ${u}.schema)`)}}s(Wy,"commentKeyword");function lx(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,K._)`${ne.default.errors} === 0`,()=>t.return(ne.default.data),()=>t.throw((0,K._)`new ${i}(${ne.default.vErrors})`)):(t.assign((0,K._)`${n}.errors`,ne.default.vErrors),o.unevaluated&&fx(e),t.return((0,K._)`${ne.default.errors} === 0`))}s(lx,"returnResults");function fx({gen:e,evaluated:t,props:r,items:n}){r instanceof K.Name&&e.assign((0,K._)`${t}.props`,r),n instanceof K.Name&&e.assign((0,K._)`${t}.items`,n)}s(fx,"assignEvaluated");function Ly(e,t,r,n){let{gen:i,schema:o,data:a,allErrors:u,opts:c,self:l}=e,{RULES:p}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,Gr.schemaHasRulesButRef)(o,p))){i.block(()=>Zy(e,"$ref",p.all.$ref.definition));return}c.jtd||px(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,Af.shouldUseGroup)(o,d)&&(d.type?(i.if((0,Ua.checkDataType)(d.type,a,c.strictNumbers)),Fy(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,Ua.reportTypeError)(e)),i.endIf()):Fy(e,d),u||i.if((0,K._)`${ne.default.errors} === ${n||0}`))}s(f,"groupKeywords")}s(Ly,"schemaKeywords");function Fy(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,JE.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,Af.shouldUseRule)(n,o)&&Zy(e,o.keyword,o.definition,t.type)})}s(Fy,"iterateKeywords");function px(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(dx(e,t),e.opts.allowUnionTypes||hx(e,t),mx(e,e.dataTypes))}s(px,"checkStrictTypes");function dx(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Ky(e.dataTypes,r)||Cf(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),yx(e,t)}}s(dx,"checkContextTypes");function hx(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Cf(e,"use allowUnionTypes to allow union type keyword")}s(hx,"checkMultipleTypes");function mx(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Af.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>gx(t,a))&&Cf(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}s(mx,"checkKeywordTypes");function gx(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}s(gx,"hasApplicableType");function Ky(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}s(Ky,"includesType");function yx(e,t){let r=[];for(let n of e.dataTypes)Ky(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}s(yx,"narrowSchemaTypes");function Cf(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Gr.checkStrictMode)(e,t,e.opts.strictTypes)}s(Cf,"strictTypesError");var If=class If{constructor(t,r,n){if((0,io.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,Gr.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",Yy(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,io.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",ne.default.errors))}result(t,r,n){this.failResult((0,K.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,K.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,K._)`${r} !== undefined && (${(0,K.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?no.reportExtraError:no.reportError)(this,this.def.error,r)}$dataError(){(0,no.reportError)(this,this.def.$dataError||no.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,no.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=K.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=K.nil,r=K.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if((0,K.or)((0,K._)`${i} === undefined`,r)),t!==K.nil&&n.assign(t,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==K.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,K.or)(a(),u());function a(){if(n.length){if(!(r instanceof K.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,K._)`${(0,Ua.checkDataTypes)(c,r,o.opts.strictNumbers,Ua.DataType.Wrong)}`}return K.nil}function u(){if(i.validateSchema){let c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,K._)`!${c}(${r})`}return K.nil}}subschema(t,r){let n=(0,xf.getSubschema)(this.it,t);(0,xf.extendSubschemaData)(n,this.it,t),(0,xf.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return ix(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Gr.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Gr.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,K.Name)),!0}};s(If,"KeywordCxt");var Ga=If;hn.KeywordCxt=Ga;function Zy(e,t,r,n){let i=new Ga(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,io.funcKeywordCode)(i,r):"macro"in r?(0,io.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,io.funcKeywordCode)(i,r)}s(Zy,"keywordCode");var vx=/^\/(?:[^~]|~0|~1)*$/,bx=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Yy(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return ne.default.rootData;if(e[0]==="/"){if(!vx.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=ne.default.rootData}else{let l=bx.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let p=+l[1];if(i=l[2],i==="#"){if(p>=t)throw new Error(c("property/index",p));return n[t-p]}if(p>t)throw new Error(c("data",p));if(o=r[t-p],!i)return o}let a=o,u=i.split("/");for(let l of u)l&&(o=(0,K._)`${o}${(0,K.getProperty)((0,Gr.unescapeJsonPointer)(l))}`,a=(0,K._)`${a} && ${o}`);return a;function c(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}s(Yy,"getData");hn.getData=Yy});var za=b(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});var kf=class kf extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};s(kf,"ValidationError");var Rf=kf;jf.default=Rf});var oo=b(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});var Nf=ro(),qf=class qf extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Nf.resolveUrl)(t,r,n),this.missingSchema=(0,Nf.normalizeId)((0,Nf.getFullPath)(t,this.missingRef))}};s(qf,"MissingRefError");var Mf=qf;Tf.default=Mf});var ao=b(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.resolveSchema=Qt.getCompilingSchema=Qt.resolveRef=Qt.compileSchema=Qt.SchemaEnv=void 0;var lr=se(),_x=za(),ni=Yt(),fr=ro(),Jy=he(),Sx=so(),Ff=class Ff{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,fr.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};s(Ff,"SchemaEnv");var zi=Ff;Qt.SchemaEnv=zi;function Lf(e){let t=Qy.call(this,e);if(t)return t;let r=(0,fr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new lr.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),u;e.$async&&(u=a.scopeValue("Error",{ref:_x.default,code:(0,lr._)`require("ajv/dist/runtime/validation_error").default`}));let c=a.scopeName("validate");e.validateName=c;let l={gen:a,allErrors:this.opts.allErrors,data:ni.default.data,parentData:ni.default.parentData,parentDataProperty:ni.default.parentDataProperty,dataNames:[ni.default.data],dataPathArr:[lr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,lr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:u,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:lr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,lr._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,Sx.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(ni.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${ni.default.self}`,`${ni.default.scope}`,p)(this,this.scope.get());if(this.scope.value(c,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:c,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:y,items:v}=l;h.evaluated={props:y instanceof lr.Name?void 0:y,items:v instanceof lr.Name?void 0:v,dynamicProps:y instanceof lr.Name,dynamicItems:v instanceof lr.Name},h.source&&(h.source.evaluated=(0,lr.stringify)(h.evaluated))}return e.validate=h,e}catch(f){throw delete e.validate,delete e.validateName,p&&this.logger.error("Error compiling schema, function code:",p),f}finally{this._compilations.delete(e)}}s(Lf,"compileSchema");Qt.compileSchema=Lf;function wx(e,t,r){var n;r=(0,fr.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let o=Ox.call(this,e,r);if(o===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:u}=this.opts;a&&(o=new zi({schema:a,schemaId:u,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=$x.call(this,o)}s(wx,"resolveRef");Qt.resolveRef=wx;function $x(e){return(0,fr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Lf.call(this,e)}s($x,"inlineOrCompile");function Qy(e){for(let t of this._compilations)if(Px(t,e))return t}s(Qy,"getCompilingSchema");Qt.getCompilingSchema=Qy;function Px(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}s(Px,"sameSchemaEnv");function Ox(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Wa.call(this,e,t)}s(Ox,"resolve");function Wa(e,t){let r=this.opts.uriResolver.parse(t),n=(0,fr._getFullPath)(this.opts.uriResolver,r),i=(0,fr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Df.call(this,r,e);let o=(0,fr.normalizeId)(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let u=Wa.call(this,e,a);return typeof(u==null?void 0:u.schema)!="object"?void 0:Df.call(this,r,u)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Lf.call(this,a),o===(0,fr.normalizeId)(t)){let{schema:u}=a,{schemaId:c}=this.opts,l=u[c];return l&&(i=(0,fr.resolveUrl)(this.opts.uriResolver,i,l)),new zi({schema:u,schemaId:c,root:e,baseId:i})}return Df.call(this,r,a)}}s(Wa,"resolveSchema");Qt.resolveSchema=Wa;var Ex=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Df(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let u of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,Jy.unescapeFragment)(u)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!Ex.has(u)&&l&&(t=(0,fr.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,Jy.schemaHasRulesButRef)(r,this.RULES)){let u=(0,fr.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=Wa.call(this,n,u)}let{schemaId:a}=this.opts;if(o=o||new zi({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}s(Df,"getJsonPointer")});var Xy=b((xF,xx)=>{xx.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 t0=b((AF,e0)=>{"use strict";var Ax={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};e0.exports={HEX:Ax}});var c0=b((CF,u0)=>{"use strict";var{HEX:Cx}=t0();function s0(e){if(a0(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:Rx(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}s(s0,"normalizeIPv4");function Bf(e,t=!1){let r="",n=!0;for(let i of e){if(Cx[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}s(Bf,"stringArrayToHexStripped");function Ix(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],o=!1,a=!1,u=!1;function c(){if(i.length){if(o===!1){let l=Bf(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}s(c,"consume");for(let l=0;l<e.length;l++){let p=e[l];if(!(p==="["||p==="]"))if(p===":"){if(a===!0&&(u=!0),!c())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(p==="%"){if(!c())break;o=!0}else{i.push(p);continue}}return i.length&&(o?r.zone=i.join(""):u?n.push(i.join("")):n.push(Bf(i))),r.address=n.join(""),r}s(Ix,"getIPV6");function o0(e,t={}){if(a0(e,":")<2)return{host:e,isIPV6:!1};let r=Ix(e);if(r.error)return{host:e,isIPV6:!1};{let n=r.address,i=r.address;return r.zone&&(n+="%"+r.zone,i+="%25"+r.zone),{host:n,escapedHost:i,isIPV6:!0}}}s(o0,"normalizeIPv6");function Rx(e,t){let r="",n=!0,i=e.length;for(let o=0;o<i;o++){let a=e[o];a==="0"&&n?(o+1<=i&&e[o+1]===t||o+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}s(Rx,"stripLeadingZeros");function a0(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}s(a0,"findToken");var r0=/^\.\.?\//u,n0=/^\/\.(?:\/|$)/u,i0=/^\/\.\.(?:\/|$)/u,jx=/^\/?(?:.|\n)*?(?=\/|$)/u;function kx(e){let t=[];for(;e.length;)if(e.match(r0))e=e.replace(r0,"");else if(e.match(n0))e=e.replace(n0,"/");else if(e.match(i0))e=e.replace(i0,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(jx);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}s(kx,"removeDotSegments");function Nx(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}s(Nx,"normalizeComponentEncoding");function Mx(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=s0(n);if(i.isIPV4)n=i.host;else{let o=o0(i.host,{isIPV4:!1});o.isIPV6===!0?n=`[${o.escapedHost}]`:n=e.host}r.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}s(Mx,"recomposeAuthority");u0.exports={recomposeAuthority:Mx,normalizeComponentEncoding:Nx,removeDotSegments:kx,normalizeIPv4:s0,normalizeIPv6:o0,stringArrayToHexStripped:Bf}});var m0=b((RF,h0)=>{"use strict";var Tx=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,qx=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function l0(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}s(l0,"isSecure");function f0(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}s(f0,"httpParse");function p0(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}s(p0,"httpSerialize");function Dx(e){return e.secure=l0(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}s(Dx,"wsParse");function Lx(e){if((e.port===(l0(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}s(Lx,"wsSerialize");function Fx(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(qx);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,o=Vf[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}s(Fx,"urnParse");function Bx(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,o=Vf[i];o&&(e=o.serialize(e,t));let a=e,u=e.nss;return a.path=`${n||t.nid}:${u}`,t.skipEscape=!0,a}s(Bx,"urnSerialize");function Vx(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!Tx.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}s(Vx,"urnuuidParse");function Hx(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}s(Hx,"urnuuidSerialize");var d0={scheme:"http",domainHost:!0,parse:f0,serialize:p0},Ux={scheme:"https",domainHost:d0.domainHost,parse:f0,serialize:p0},Ka={scheme:"ws",domainHost:!0,parse:Dx,serialize:Lx},Gx={scheme:"wss",domainHost:Ka.domainHost,parse:Ka.parse,serialize:Ka.serialize},zx={scheme:"urn",parse:Fx,serialize:Bx,skipNormalize:!0},Wx={scheme:"urn:uuid",parse:Vx,serialize:Hx,skipNormalize:!0},Vf={http:d0,https:Ux,ws:Ka,wss:Gx,urn:zx,"urn:uuid":Wx};h0.exports=Vf});var y0=b((kF,Ya)=>{"use strict";var{normalizeIPv6:Kx,normalizeIPv4:Zx,removeDotSegments:uo,recomposeAuthority:Yx,normalizeComponentEncoding:Za}=c0(),Hf=m0();function Jx(e,t){return typeof e=="string"?e=Ar(zr(e,t),t):typeof e=="object"&&(e=zr(Ar(e,t),t)),e}s(Jx,"normalize");function Qx(e,t,r){let n=Object.assign({scheme:"null"},r),i=g0(zr(e,n),zr(t,n),n,!0);return Ar(i,{...n,skipEscape:!0})}s(Qx,"resolve");function g0(e,t,r,n){let i={};return n||(e=zr(Ar(e,r),r),t=zr(Ar(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=uo(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=uo(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=uo(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=uo(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}s(g0,"resolveComponents");function Xx(e,t,r){return typeof e=="string"?(e=unescape(e),e=Ar(Za(zr(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Ar(Za(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Ar(Za(zr(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Ar(Za(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}s(Xx,"equal");function Ar(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],o=Hf[(n.scheme||r.scheme||"").toLowerCase()];o&&o.serialize&&o.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&(i.push(r.scheme),i.push(":"));let a=Yx(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let u=r.path;!n.absolutePath&&(!o||!o.absolutePath)&&(u=uo(u)),a===void 0&&(u=u.replace(/^\/\//u,"/%2F")),i.push(u)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}s(Ar,"serialize");var eA=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function tA(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||eA[t])return!0;return!1}s(tA,"nonSimpleDomain");var rA=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function zr(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,o=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(rA);if(a){if(n.scheme=a[1],n.userinfo=a[3],n.host=a[4],n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=a[7],n.fragment=a[8],isNaN(n.port)&&(n.port=a[5]),n.host){let c=Zx(n.host);if(c.isIPV4===!1){let l=Kx(c.host,{isIPV4:!1});n.host=l.host.toLowerCase(),o=l.isIPV6}else n.host=c.host,o=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let u=Hf[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!u||!u.unicodeSupport)&&n.host&&(r.domainHost||u&&u.domainHost)&&o===!1&&tA(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(c){n.error=n.error||"Host's domain name can not be converted to ASCII: "+c}(!u||u&&!u.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),u&&u.parse&&u.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}s(zr,"parse");var Uf={SCHEMES:Hf,normalize:Jx,resolve:Qx,resolveComponents:g0,equal:Xx,serialize:Ar,parse:zr};Ya.exports=Uf;Ya.exports.default=Uf;Ya.exports.fastUri=Uf});var b0=b(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var v0=y0();v0.code='require("ajv/dist/runtime/uri").default';Gf.default=v0});var Ki=b(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.CodeGen=ut.Name=ut.nil=ut.stringify=ut.str=ut._=ut.KeywordCxt=void 0;var nA=so();Object.defineProperty(ut,"KeywordCxt",{enumerable:!0,get:s(function(){return nA.KeywordCxt},"get")});var Wi=se();Object.defineProperty(ut,"_",{enumerable:!0,get:s(function(){return Wi._},"get")});Object.defineProperty(ut,"str",{enumerable:!0,get:s(function(){return Wi.str},"get")});Object.defineProperty(ut,"stringify",{enumerable:!0,get:s(function(){return Wi.stringify},"get")});Object.defineProperty(ut,"nil",{enumerable:!0,get:s(function(){return Wi.nil},"get")});Object.defineProperty(ut,"Name",{enumerable:!0,get:s(function(){return Wi.Name},"get")});Object.defineProperty(ut,"CodeGen",{enumerable:!0,get:s(function(){return Wi.CodeGen},"get")});var iA=za(),P0=oo(),sA=yf(),co=ao(),oA=se(),lo=ro(),Ja=to(),Wf=he(),_0=Xy(),aA=b0(),O0=s((e,t)=>new RegExp(e,t),"defaultRegExp");O0.code="new RegExp";var uA=["removeAdditional","useDefaults","coerceTypes"],cA=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),lA={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."},fA={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},S0=200;function pA(e){var t,r,n,i,o,a,u,c,l,p,f,d,h,y,v,g,P,C,k,A,I,ae,ue,Ot,Fe;let ee=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:O0,Z=(i=e.uriResolver)!==null&&i!==void 0?i:aA.default;return{strictSchema:(a=(o=e.strictSchema)!==null&&o!==void 0?o:ee)!==null&&a!==void 0?a:!0,strictNumbers:(c=(u=e.strictNumbers)!==null&&u!==void 0?u:ee)!==null&&c!==void 0?c:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:ee)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:ee)!==null&&d!==void 0?d:"log",strictRequired:(y=(h=e.strictRequired)!==null&&h!==void 0?h:ee)!==null&&y!==void 0?y:!1,code:e.code?{...e.code,optimize:R,regExp:q}:{optimize:R,regExp:q},loopRequired:(v=e.loopRequired)!==null&&v!==void 0?v:S0,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:S0,meta:(P=e.meta)!==null&&P!==void 0?P:!0,messages:(C=e.messages)!==null&&C!==void 0?C:!0,inlineRefs:(k=e.inlineRefs)!==null&&k!==void 0?k:!0,schemaId:(A=e.schemaId)!==null&&A!==void 0?A:"$id",addUsedSchema:(I=e.addUsedSchema)!==null&&I!==void 0?I:!0,validateSchema:(ae=e.validateSchema)!==null&&ae!==void 0?ae:!0,validateFormats:(ue=e.validateFormats)!==null&&ue!==void 0?ue:!0,unicodeRegExp:(Ot=e.unicodeRegExp)!==null&&Ot!==void 0?Ot:!0,int32range:(Fe=e.int32range)!==null&&Fe!==void 0?Fe:!0,uriResolver:Z}}s(pA,"requiredOptions");var Kf=class Kf{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...pA(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new oA.ValueScope({scope:{},prefixes:cA,es5:r,lines:n}),this.logger=vA(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,sA.getRules)(),w0.call(this,lA,t,"NOT SUPPORTED"),w0.call(this,fA,t,"DEPRECATED","warn"),this._metaOpts=gA.call(this),t.formats&&hA.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&mA.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),dA.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=_0;n==="id"&&(i={..._0},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(p,f){await o.call(this,p.$schema);let d=this._addSchema(p,f);return d.validate||a.call(this,d)}async function o(p){p&&!this.getSchema(p)&&await i.call(this,{$ref:p},!0)}async function a(p){try{return this._compileSchemaEnv(p)}catch(f){if(!(f instanceof P0.default))throw f;return u.call(this,f),await c.call(this,f.missingSchema),a.call(this,p)}}function u({missingSchema:p,missingRef:f}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${f} cannot be resolved`)}async function c(p){let f=await l.call(this,p);this.refs[p]||await o.call(this,f.$schema),this.refs[p]||this.addSchema(f,p,r)}async function l(p){let f=this._loading[p];if(f)return f;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let o;if(typeof t=="object"){let{schemaId:a}=this.opts;if(o=t[a],o!==void 0&&typeof o!="string")throw new Error(`schema ${a} must be string`)}return r=(0,lo.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(t){let r;for(;typeof(r=$0.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new co.SchemaEnv({schema:{},schemaId:n});if(r=co.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=$0.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,lo.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(_A.call(this,n,r),!r)return(0,Wf.eachItem)(n,o=>zf.call(this,o)),this;wA.call(this,r);let i={...r,type:(0,Ja.getJSONTypes)(r.type),schemaType:(0,Ja.getJSONTypes)(r.schemaType)};return(0,Wf.eachItem)(n,i.type.length===0?o=>zf.call(this,o,i):o=>i.type.forEach(a=>zf.call(this,o,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(o=>o.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,o)=>i+r+o)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let o=i.split("/").slice(1),a=t;for(let u of o)a=a[u];for(let u in n){let c=n[u];if(typeof c!="object")continue;let{$data:l}=c.definition,p=a[u];l&&p&&(a[u]=E0(p))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,o=this.opts.addUsedSchema){let a,{schemaId:u}=this.opts;if(typeof t=="object")a=t[u];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,lo.normalizeId)(a||n);let l=lo.getSchemaRefs.call(this,t,n);return c=new co.SchemaEnv({schema:t,schemaId:u,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),i&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):co.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{co.compileSchema.call(this,t)}finally{this.opts=r}}};s(Kf,"Ajv");var fo=Kf;fo.ValidationError=iA.default;fo.MissingRefError=P0.default;ut.default=fo;function w0(e,t,r,n="error"){for(let i in e){let o=i;o in t&&this.logger[n](`${r}: option ${i}. ${e[o]}`)}}s(w0,"checkOptions");function $0(e){return e=(0,lo.normalizeId)(e),this.schemas[e]||this.refs[e]}s($0,"getSchEnv");function dA(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}s(dA,"addInitialSchemas");function hA(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}s(hA,"addInitialFormats");function mA(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}s(mA,"addInitialKeywords");function gA(){let e={...this.opts};for(let t of uA)delete e[t];return e}s(gA,"getMetaSchemaOptions");var yA={log(){},warn(){},error(){}};function vA(e){if(e===!1)return yA;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}s(vA,"getLogger");var bA=/^[a-z_$][a-z0-9_$:-]*$/i;function _A(e,t){let{RULES:r}=this;if((0,Wf.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!bA.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}s(_A,"checkKeyword");function zf(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,a=i?o.post:o.rules.find(({type:c})=>c===r);if(a||(a={type:r,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;let u={keyword:e,definition:{...t,type:(0,Ja.getJSONTypes)(t.type),schemaType:(0,Ja.getJSONTypes)(t.schemaType)}};t.before?SA.call(this,a,u,t.before):a.rules.push(u),o.all[e]=u,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}s(zf,"addRule");function SA(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}s(SA,"addBeforeRule");function wA(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=E0(t)),e.validateSchema=this.compile(t,!0))}s(wA,"keywordMetaschema");var $A={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function E0(e){return{anyOf:[e,$A]}}s(E0,"schemaOrData")});var po=b(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.callRef=ii.getValidate=void 0;var PA=oo(),x0=Jt(),Rt=se(),Zi=Yt(),A0=ao(),Qa=he(),OA={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:a,opts:u,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return f();let p=A0.resolveRef.call(c,l,i,r);if(p===void 0)throw new PA.default(n.opts.uriResolver,i,r);if(p instanceof A0.SchemaEnv)return d(p);return h(p);function f(){if(o===l)return Xa(e,a,o,o.$async);let y=t.scopeValue("root",{ref:l});return Xa(e,(0,Rt._)`${y}.validate`,l,l.$async)}function d(y){let v=C0(e,y);Xa(e,v,y,y.$async)}function h(y){let v=t.scopeValue("schema",u.code.source===!0?{ref:y,code:(0,Rt.stringify)(y)}:{ref:y}),g=t.name("valid"),P=e.subschema({schema:y,dataTypes:[],schemaPath:Rt.nil,topSchemaRef:v,errSchemaPath:r},g);e.mergeEvaluated(P),e.ok(g)}}};function C0(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Rt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}s(C0,"getValidate");ii.getValidate=C0;function Xa(e,t,r,n){let{gen:i,it:o}=e,{allErrors:a,schemaEnv:u,opts:c}=o,l=c.passContext?Zi.default.this:Rt.nil;n?p():f();function p(){if(!u.$async)throw new Error("async schema referenced by sync schema");let y=i.let("valid");i.try(()=>{i.code((0,Rt._)`await ${(0,x0.callValidateCode)(e,t,l)}`),h(t),a||i.assign(y,!0)},v=>{i.if((0,Rt._)`!(${v} instanceof ${o.ValidationError})`,()=>i.throw(v)),d(v),a||i.assign(y,!1)}),e.ok(y)}s(p,"callAsyncRef");function f(){e.result((0,x0.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}s(f,"callSyncRef");function d(y){let v=(0,Rt._)`${y}.errors`;i.assign(Zi.default.vErrors,(0,Rt._)`${Zi.default.vErrors} === null ? ${v} : ${Zi.default.vErrors}.concat(${v})`),i.assign(Zi.default.errors,(0,Rt._)`${Zi.default.vErrors}.length`)}s(d,"addErrorsFrom");function h(y){var v;if(!o.opts.unevaluated)return;let g=(v=r==null?void 0:r.validate)===null||v===void 0?void 0:v.evaluated;if(o.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(o.props=Qa.mergeEvaluated.props(i,g.props,o.props));else{let P=i.var("props",(0,Rt._)`${y}.evaluated.props`);o.props=Qa.mergeEvaluated.props(i,P,o.props,Rt.Name)}if(o.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(o.items=Qa.mergeEvaluated.items(i,g.items,o.items));else{let P=i.var("items",(0,Rt._)`${y}.evaluated.items`);o.items=Qa.mergeEvaluated.items(i,P,o.items,Rt.Name)}}s(h,"addEvaluatedFrom")}s(Xa,"callRef");ii.callRef=Xa;ii.default=OA});var I0=b(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});var EA=po(),xA=["$schema","id","$defs",{keyword:"$comment"},"definitions",EA.default];Zf.default=xA});var R0=b(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});var Yf=Ki(),AA=se(),mn=AA.operators,Jf={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:mn.LTE,fail:mn.GT},{okStr:"<",ok:mn.LT,fail:mn.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:mn.GTE,fail:mn.LT},{okStr:">",ok:mn.GT,fail:mn.LTE}]}},CA={message:s(e=>Yf.str`must be ${Qf(e).okStr} ${e.schemaCode}`,"message"),params:s(e=>Yf._`{comparison: ${Qf(e).okStr}, limit: ${e.schemaCode}}`,"params")},IA={keyword:Object.keys(Jf),type:"number",schemaType:"number",$data:!0,error:CA,code(e){let{data:t,schemaCode:r}=e;e.fail$data(Yf._`${t} ${Qf(e).fail} ${r} || isNaN(${t})`)}};function Qf(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[Jf[r].exclusive]?1:0;return Jf[r].ops[n]}s(Qf,"kwdOp");Xf.default=IA});var k0=b(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});var j0={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},RA={keyword:Object.keys(j0),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=j0[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};ep.default=RA});var rp=b(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});var ho=se(),jA={message:s(({schemaCode:e})=>(0,ho.str)`must be multiple of ${e}`,"message"),params:s(({schemaCode:e})=>(0,ho._)`{multipleOf: ${e}}`,"params")},kA={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:jA,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),u=o?(0,ho._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,ho._)`${a} !== parseInt(${a})`;e.fail$data((0,ho._)`(${n} === 0 || (${a} = ${r}/${n}, ${u}))`)}};tp.default=kA});var M0=b(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});function N0(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}s(N0,"ucs2length");np.default=N0;N0.code='require("ajv/dist/runtime/ucs2length").default'});var sp=b(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});var si=se(),NA=he(),MA=M0(),TA={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,si.str)`must NOT have ${r} than ${t} characters`},params:s(({schemaCode:e})=>(0,si._)`{limit: ${e}}`,"params")},qA={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:TA,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?si.operators.GT:si.operators.LT,a=i.opts.unicode===!1?(0,si._)`${r}.length`:(0,si._)`${(0,NA.useFunc)(e.gen,MA.default)}(${r})`;e.fail$data((0,si._)`${a} ${o} ${n}`)}};ip.default=qA});var ap=b(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});var DA=Jt(),eu=se(),LA={message:s(({schemaCode:e})=>(0,eu.str)`must match pattern "${e}"`,"message"),params:s(({schemaCode:e})=>(0,eu._)`{pattern: ${e}}`,"params")},FA={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:LA,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,a=o.opts.unicodeRegExp?"u":"",u=r?(0,eu._)`(new RegExp(${i}, ${a}))`:(0,DA.usePattern)(e,n);e.fail$data((0,eu._)`!${u}.test(${t})`)}};op.default=FA});var cp=b(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});var mo=se(),BA={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,mo.str)`must NOT have ${r} than ${t} properties`},params:s(({schemaCode:e})=>(0,mo._)`{limit: ${e}}`,"params")},VA={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:BA,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?mo.operators.GT:mo.operators.LT;e.fail$data((0,mo._)`Object.keys(${r}).length ${i} ${n}`)}};up.default=VA});var fp=b(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});var go=Jt(),yo=se(),HA=he(),UA={message:s(({params:{missingProperty:e}})=>(0,yo.str)`must have required property '${e}'`,"message"),params:s(({params:{missingProperty:e}})=>(0,yo._)`{missingProperty: ${e}}`,"params")},GA={keyword:"required",type:"object",schemaType:"array",$data:!0,error:UA,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:a}=e,{opts:u}=a;if(!o&&r.length===0)return;let c=r.length>=u.loopRequired;if(a.allErrors?l():p(),u.strictRequired){let h=e.parentSchema.properties,{definedProperties:y}=e.it;for(let v of r)if((h==null?void 0:h[v])===void 0&&!y.has(v)){let g=a.schemaEnv.baseId+a.errSchemaPath,P=`required property "${v}" is not defined at "${g}" (strictRequired)`;(0,HA.checkStrictMode)(a,P,a.opts.strictRequired)}}function l(){if(c||o)e.block$data(yo.nil,f);else for(let h of r)(0,go.checkReportMissingProp)(e,h)}s(l,"allErrorsMode");function p(){let h=t.let("missing");if(c||o){let y=t.let("valid",!0);e.block$data(y,()=>d(h,y)),e.ok(y)}else t.if((0,go.checkMissingProp)(e,r,h)),(0,go.reportMissingProp)(e,h),t.else()}s(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,go.noPropertyInData)(t,i,h,u.ownProperties),()=>e.error())})}s(f,"loopAllRequired");function d(h,y){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(y,(0,go.propertyInData)(t,i,h,u.ownProperties)),t.if((0,yo.not)(y),()=>{e.error(),t.break()})},yo.nil)}s(d,"loopUntilMissing")}};lp.default=GA});var dp=b(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0});var vo=se(),zA={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,vo.str)`must NOT have ${r} than ${t} items`},params:s(({schemaCode:e})=>(0,vo._)`{limit: ${e}}`,"params")},WA={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:zA,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?vo.operators.GT:vo.operators.LT;e.fail$data((0,vo._)`${r}.length ${i} ${n}`)}};pp.default=WA});var tu=b(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});var T0=Of();T0.code='require("ajv/dist/runtime/equal").default';hp.default=T0});var yp=b(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});var mp=to(),ct=se(),KA=he(),ZA=tu(),YA={message:s(({params:{i:e,j:t}})=>(0,ct.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:s(({params:{i:e,j:t}})=>(0,ct._)`{i: ${e}, j: ${t}}`,"params")},JA={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:YA,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:a,it:u}=e;if(!n&&!i)return;let c=t.let("valid"),l=o.items?(0,mp.getSchemaTypes)(o.items):[];e.block$data(c,p,(0,ct._)`${a} === false`),e.ok(c);function p(){let y=t.let("i",(0,ct._)`${r}.length`),v=t.let("j");e.setParams({i:y,j:v}),t.assign(c,!0),t.if((0,ct._)`${y} > 1`,()=>(f()?d:h)(y,v))}s(p,"validateUniqueItems");function f(){return l.length>0&&!l.some(y=>y==="object"||y==="array")}s(f,"canOptimize");function d(y,v){let g=t.name("item"),P=(0,mp.checkDataTypes)(l,g,u.opts.strictNumbers,mp.DataType.Wrong),C=t.const("indices",(0,ct._)`{}`);t.for((0,ct._)`;${y}--;`,()=>{t.let(g,(0,ct._)`${r}[${y}]`),t.if(P,(0,ct._)`continue`),l.length>1&&t.if((0,ct._)`typeof ${g} == "string"`,(0,ct._)`${g} += "_"`),t.if((0,ct._)`typeof ${C}[${g}] == "number"`,()=>{t.assign(v,(0,ct._)`${C}[${g}]`),e.error(),t.assign(c,!1).break()}).code((0,ct._)`${C}[${g}] = ${y}`)})}s(d,"loopN");function h(y,v){let g=(0,KA.useFunc)(t,ZA.default),P=t.name("outer");t.label(P).for((0,ct._)`;${y}--;`,()=>t.for((0,ct._)`${v} = ${y}; ${v}--;`,()=>t.if((0,ct._)`${g}(${r}[${y}], ${r}[${v}])`,()=>{e.error(),t.assign(c,!1).break(P)})))}s(h,"loopN2")}};gp.default=JA});var _p=b(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});var vp=se(),QA=he(),XA=tu(),eC={message:"must be equal to constant",params:s(({schemaCode:e})=>(0,vp._)`{allowedValue: ${e}}`,"params")},tC={keyword:"const",$data:!0,error:eC,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,vp._)`!${(0,QA.useFunc)(t,XA.default)}(${r}, ${i})`):e.fail((0,vp._)`${o} !== ${r}`)}};bp.default=tC});var wp=b(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});var bo=se(),rC=he(),nC=tu(),iC={message:"must be equal to one of the allowed values",params:s(({schemaCode:e})=>(0,bo._)`{allowedValues: ${e}}`,"params")},sC={keyword:"enum",schemaType:"array",$data:!0,error:iC,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let u=i.length>=a.opts.loopEnum,c,l=s(()=>c??(c=(0,rC.useFunc)(t,nC.default)),"getEql"),p;if(u||n)p=t.let("valid"),e.block$data(p,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let h=t.const("vSchema",o);p=(0,bo.or)(...i.map((y,v)=>d(h,v)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",o,h=>t.if((0,bo._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}s(f,"loopEnum");function d(h,y){let v=i[y];return typeof v=="object"&&v!==null?(0,bo._)`${l()}(${r}, ${h}[${y}])`:(0,bo._)`${r} === ${v}`}s(d,"equalCode")}};Sp.default=sC});var q0=b($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});var oC=R0(),aC=k0(),uC=rp(),cC=sp(),lC=ap(),fC=cp(),pC=fp(),dC=dp(),hC=yp(),mC=_p(),gC=wp(),yC=[oC.default,aC.default,uC.default,cC.default,lC.default,fC.default,pC.default,dC.default,hC.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},mC.default,gC.default];$p.default=yC});var Op=b(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.validateAdditionalItems=void 0;var oi=se(),Pp=he(),vC={message:s(({params:{len:e}})=>(0,oi.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,oi._)`{limit: ${e}}`,"params")},bC={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:vC,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Pp.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}D0(e,n)}};function D0(e,t){let{gen:r,schema:n,data:i,keyword:o,it:a}=e;a.items=!0;let u=r.const("len",(0,oi._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,oi._)`${u} <= ${t.length}`);else if(typeof n=="object"&&!(0,Pp.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,oi._)`${u} <= ${t.length}`);r.if((0,oi.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,u,p=>{e.subschema({keyword:o,dataProp:p,dataPropType:Pp.Type.Num},l),a.allErrors||r.if((0,oi.not)(l),()=>r.break())})}s(c,"validateItems")}s(D0,"validateAdditionalItems");_o.validateAdditionalItems=D0;_o.default=bC});var Ep=b(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.validateTuple=void 0;var L0=se(),ru=he(),_C=Jt(),SC={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return F0(e,"additionalItems",t);r.items=!0,!(0,ru.alwaysValidSchema)(r,t)&&e.ok((0,_C.validateArray)(e))}};function F0(e,t,r=e.schema){let{gen:n,parentSchema:i,data:o,keyword:a,it:u}=e;p(i),u.opts.unevaluated&&r.length&&u.items!==!0&&(u.items=ru.mergeEvaluated.items(n,r.length,u.items));let c=n.name("valid"),l=n.const("len",(0,L0._)`${o}.length`);r.forEach((f,d)=>{(0,ru.alwaysValidSchema)(u,f)||(n.if((0,L0._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},c)),e.ok(c))});function p(f){let{opts:d,errSchemaPath:h}=u,y=r.length,v=y===f.minItems&&(y===f.maxItems||f[t]===!1);if(d.strictTuples&&!v){let g=`"${a}" is ${y}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,ru.checkStrictMode)(u,g,d.strictTuples)}}s(p,"checkStrictTuple")}s(F0,"validateTuple");So.validateTuple=F0;So.default=SC});var B0=b(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});var wC=Ep(),$C={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:s(e=>(0,wC.validateTuple)(e,"items"),"code")};xp.default=$C});var H0=b(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});var V0=se(),PC=he(),OC=Jt(),EC=Op(),xC={message:s(({params:{len:e}})=>(0,V0.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,V0._)`{limit: ${e}}`,"params")},AC={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:xC,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,PC.alwaysValidSchema)(n,t)&&(i?(0,EC.validateAdditionalItems)(e,i):e.ok((0,OC.validateArray)(e)))}};Ap.default=AC});var U0=b(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});var Xt=se(),nu=he(),CC={message:s(({params:{min:e,max:t}})=>t===void 0?(0,Xt.str)`must contain at least ${e} valid item(s)`:(0,Xt.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:s(({params:{min:e,max:t}})=>t===void 0?(0,Xt._)`{minContains: ${e}}`:(0,Xt._)`{minContains: ${e}, maxContains: ${t}}`,"params")},IC={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:CC,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e,a,u,{minContains:c,maxContains:l}=n;o.opts.next?(a=c===void 0?1:c,u=l):a=1;let p=t.const("len",(0,Xt._)`${i}.length`);if(e.setParams({min:a,max:u}),u===void 0&&a===0){(0,nu.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(u!==void 0&&a>u){(0,nu.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,nu.alwaysValidSchema)(o,r)){let v=(0,Xt._)`${p} >= ${a}`;u!==void 0&&(v=(0,Xt._)`${v} && ${p} <= ${u}`),e.pass(v);return}o.items=!0;let f=t.name("valid");u===void 0&&a===1?h(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),u!==void 0&&t.if((0,Xt._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let v=t.name("_valid"),g=t.let("count",0);h(v,()=>t.if(v,()=>y(g)))}s(d,"validateItemsWithCount");function h(v,g){t.forRange("i",0,p,P=>{e.subschema({keyword:"contains",dataProp:P,dataPropType:nu.Type.Num,compositeRule:!0},v),g()})}s(h,"validateItems");function y(v){t.code((0,Xt._)`${v}++`),u===void 0?t.if((0,Xt._)`${v} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,Xt._)`${v} > ${u}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,Xt._)`${v} >= ${a}`,()=>t.assign(f,!0)))}s(y,"checkLimits")}};Cp.default=IC});var iu=b(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.validateSchemaDeps=Cr.validatePropertyDeps=Cr.error=void 0;var Ip=se(),RC=he(),wo=Jt();Cr.error={message:s(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Ip.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:s(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Ip._)`{property: ${e},
5
+ `+n:r||n}s(Gg,"joinStacks");Pr.joinStacks=Gg;function sO(e,t,r){r?Object.defineProperty(t,"stack",{get:s(()=>{let n=e.get.apply(t);return Gg({stack:n},r)},"get"),enumerable:!1,configurable:!0}):oO(t,e)}s(sO,"lazyJoinStacks");Pr.lazyJoinStacks=sO;function Wg(e){if(e){let t=e.split(tO),r;for(let n=0;n<t.length;n++){let i=t[n];if(rO.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(`
6
+ `)}return e}s(Wg,"popStack");function oO(e,t){Object.defineProperty(e,"stack",{get:s(()=>Wg(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}s(oO,"lazyPopStack")});var Jg=b(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.extendError=void 0;var Zg=vl(),Ia=Kg(),Yg=Ca(),aO=["name","message","stack"];function uO(e,t,r){let n=e;return cO(n,t),t&&typeof t=="object"&&lO(n,t),n.toJSON=Yg.toJSON,Zg.addInspectMethod&&Zg.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}s(uO,"extendError");Ra.extendError=uO;function cO(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");Ia.isLazyStack(r)?Ia.lazyJoinStacks(r,e,t):Ia.isWritableStack(r)&&(e.stack=Ia.joinStacks(e,t))}s(cO,"extendStack");function lO(e,t){let r=Yg.getDeepKeys(t,aO),n=e,i=t;for(let o of r)if(n[o]===void 0)try{n[o]=i[o]}catch{}}s(lO,"mergeErrors")});var Qg=b(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.normalizeArgs=qi.normalizeOptions=void 0;var fO=vl();function pO(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?fO.format:typeof e.format=="function"?e.format:!1}}s(pO,"normalizeOptions");qi.normalizeOptions=pO;function dO(e,t){let r,n,i,o="";return typeof e[0]=="string"?i=e:typeof e[1]=="string"?(e[0]instanceof Error?r=e[0]:n=e[0],i=e.slice(1)):(r=e[0],n=e[1],i=e.slice(2)),i.length>0&&(t.format?o=t.format.apply(void 0,i):o=i.join(" ")),t.concatMessages&&r&&r.message&&(o+=(o?`
7
+ `:"")+r.message),{originalError:r,props:n,message:o}}s(dO,"normalizeArgs");qi.normalizeArgs=dO});var _l=b(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.Ono=void 0;var ja=Jg(),Xg=Qg(),hO=Ca(),mO=bl;ka.Ono=mO;function bl(e,t){t=Xg.normalizeOptions(t);function r(...n){let{originalError:i,props:o,message:a}=Xg.normalizeArgs(n,t),u=new e(a);return ja.extendError(u,i,o)}return s(r,"ono"),r[Symbol.species]=e,r}s(bl,"Ono");bl.toJSON=s(function(t){return hO.toJSON.call(t)},"toJSON");bl.extend=s(function(t,r,n){return n||r instanceof Error?ja.extendError(t,r,n):r?ja.extendError(t,void 0,r):ja.extendError(t)},"extend")});var ey=b(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.ono=void 0;var Yn=_l(),gO=Or;Na.ono=gO;Or.error=new Yn.Ono(Error);Or.eval=new Yn.Ono(EvalError);Or.range=new Yn.Ono(RangeError);Or.reference=new Yn.Ono(ReferenceError);Or.syntax=new Yn.Ono(SyntaxError);Or.type=new Yn.Ono(TypeError);Or.uri=new Yn.Ono(URIError);var yO=Or;function Or(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(yO))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 Or.error.apply(void 0,e)}s(Or,"ono")});var ry=b(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});var H5=Pe("util")});var ur=b((ar,Di)=>{"use strict";var vO=ar&&ar.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:s(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),bO=ar&&ar.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&vO(t,e,r)};Object.defineProperty(ar,"__esModule",{value:!0});ar.ono=void 0;var ny=ey();Object.defineProperty(ar,"ono",{enumerable:!0,get:s(function(){return ny.ono},"get")});var _O=_l();Object.defineProperty(ar,"Ono",{enumerable:!0,get:s(function(){return _O.Ono},"get")});bO(ry(),ar);ar.default=ny.ono;typeof Di=="object"&&typeof Di.exports=="object"&&(Di.exports=Object.assign(Di.exports.default,Di.exports))});var Zs=b(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 $l=class $l{};s($l,"_CodeOrName");var Ws=$l;Se._CodeOrName=Ws;Se.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Pl=class Pl extends Ws{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}}};s(Pl,"Name");var Jn=Pl;Se.Name=Jn;var Ol=class Ol extends Ws{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 Jn&&(r[n.str]=(r[n.str]||0)+1),r),{})}};s(Ol,"_Code");var Zt=Ol;Se._Code=Zt;Se.nil=new Zt("");function iy(e,...t){let r=[e[0]],n=0;for(;n<t.length;)wl(r,t[n]),r.push(e[++n]);return new Zt(r)}s(iy,"_");Se._=iy;var Sl=new Zt("+");function sy(e,...t){let r=[Ks(e[0])],n=0;for(;n<t.length;)r.push(Sl),wl(r,t[n]),r.push(Sl,Ks(e[++n]));return SO(r),new Zt(r)}s(sy,"str");Se.str=sy;function wl(e,t){t instanceof Zt?e.push(...t._items):t instanceof Jn?e.push(t):e.push(PO(t))}s(wl,"addCodeArg");Se.addCodeArg=wl;function SO(e){let t=1;for(;t<e.length-1;){if(e[t]===Sl){let r=wO(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}s(SO,"optimize");function wO(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Jn||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 Jn))return`"${e}${t.slice(1)}`}s(wO,"mergeExprItems");function $O(e,t){return t.emptyStr()?e:e.emptyStr()?t:sy`${e}${t}`}s($O,"strConcat");Se.strConcat=$O;function PO(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Ks(Array.isArray(e)?e.join(","):e)}s(PO,"interpolate");function OO(e){return new Zt(Ks(e))}s(OO,"stringify");Se.stringify=OO;function Ks(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}s(Ks,"safeStringify");Se.safeStringify=Ks;function xO(e){return typeof e=="string"&&Se.IDENTIFIER.test(e)?new Zt(`.${e}`):iy`[${e}]`}s(xO,"getProperty");Se.getProperty=xO;function EO(e){if(typeof e=="string"&&Se.IDENTIFIER.test(e))return new Zt(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}s(EO,"getEsmExportName");Se.getEsmExportName=EO;function AO(e){return new Zt(e.toString())}s(AO,"regexpCode");Se.regexpCode=AO});var jl=b(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.ValueScope=Ct.ValueScopeName=Ct.Scope=Ct.varKinds=Ct.UsedValueState=void 0;var At=Zs(),Al=class Al extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};s(Al,"ValueError");var xl=Al,Ma;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Ma||(Ct.UsedValueState=Ma={}));Ct.varKinds={const:new At.Name("const"),let:new At.Name("let"),var:new At.Name("var")};var Cl=class Cl{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof At.Name?t:this.name(t)}name(t){return new At.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};s(Cl,"Scope");var Ta=Cl;Ct.Scope=Ta;var Il=class Il extends At.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,At._)`.${new At.Name(r)}[${n}]`}};s(Il,"ValueScopeName");var qa=Il;Ct.ValueScopeName=qa;var CO=(0,At._)`\n`,Rl=class Rl extends Ta{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?CO:At.nil}}get(){return this._scope}name(t){return new qa(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:o}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,u=this._values[o];if(u){let p=u.get(a);if(p)return p}else u=this._values[o]=new Map;u.set(a,i);let c=this._scope[o]||(this._scope[o]=[]),l=c.length;return c[l]=r.ref,i.setValue(r,{property:o,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,At._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let o=At.nil;for(let a in t){let u=t[a];if(!u)continue;let c=n[a]=n[a]||new Map;u.forEach(l=>{if(c.has(l))return;c.set(l,Ma.Started);let p=r(l);if(p){let f=this.opts.es5?Ct.varKinds.var:Ct.varKinds.const;o=(0,At._)`${o}${f} ${l} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(l))o=(0,At._)`${o}${p}${this.opts._n}`;else throw new xl(l);c.set(l,Ma.Completed)})}return o}};s(Rl,"ValueScope");var El=Rl;Ct.ValueScope=El});var oe=b(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.or=ce.and=ce.not=ce.CodeGen=ce.operators=ce.varKinds=ce.ValueScopeName=ce.ValueScope=ce.Scope=ce.Name=ce.regexpCode=ce.stringify=ce.getProperty=ce.nil=ce.strConcat=ce.str=ce._=void 0;var ye=Zs(),cr=jl(),cn=Zs();Object.defineProperty(ce,"_",{enumerable:!0,get:s(function(){return cn._},"get")});Object.defineProperty(ce,"str",{enumerable:!0,get:s(function(){return cn.str},"get")});Object.defineProperty(ce,"strConcat",{enumerable:!0,get:s(function(){return cn.strConcat},"get")});Object.defineProperty(ce,"nil",{enumerable:!0,get:s(function(){return cn.nil},"get")});Object.defineProperty(ce,"getProperty",{enumerable:!0,get:s(function(){return cn.getProperty},"get")});Object.defineProperty(ce,"stringify",{enumerable:!0,get:s(function(){return cn.stringify},"get")});Object.defineProperty(ce,"regexpCode",{enumerable:!0,get:s(function(){return cn.regexpCode},"get")});Object.defineProperty(ce,"Name",{enumerable:!0,get:s(function(){return cn.Name},"get")});var Va=jl();Object.defineProperty(ce,"Scope",{enumerable:!0,get:s(function(){return Va.Scope},"get")});Object.defineProperty(ce,"ValueScope",{enumerable:!0,get:s(function(){return Va.ValueScope},"get")});Object.defineProperty(ce,"ValueScopeName",{enumerable:!0,get:s(function(){return Va.ValueScopeName},"get")});Object.defineProperty(ce,"varKinds",{enumerable:!0,get:s(function(){return Va.varKinds},"get")});ce.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 zl=class zl{optimizeNodes(){return this}optimizeNames(t,r){return this}};s(zl,"Node");var Hr=zl,Gl=class Gl extends Hr{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?cr.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=Vi(this.rhs,t,r)),this}get names(){return this.rhs instanceof ye._CodeOrName?this.rhs.names:{}}};s(Gl,"Def");var kl=Gl,Wl=class Wl extends Hr{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=Vi(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ye.Name?{}:{...this.lhs.names};return Fa(t,this.rhs)}};s(Wl,"Assign");var Da=Wl,Kl=class Kl extends Da{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};s(Kl,"AssignOp");var Nl=Kl,Zl=class Zl extends Hr{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};s(Zl,"Label");var Ml=Zl,Yl=class Yl extends Hr{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};s(Yl,"Break");var Tl=Yl,Jl=class Jl extends Hr{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};s(Jl,"Throw");var ql=Jl,Ql=class Ql extends Hr{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=Vi(this.code,t,r),this}get names(){return this.code instanceof ye._CodeOrName?this.code.names:{}}};s(Ql,"AnyCode");var Dl=Ql,Xl=class Xl extends Hr{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(t,r)||(IO(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>ei(t,r.names),{})}};s(Xl,"ParentNode");var Ys=Xl,ef=class ef extends Ys{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};s(ef,"BlockNode");var Ur=ef,tf=class tf extends Ys{};s(tf,"Root");var Ll=tf,rf=class rf extends Ur{};s(rf,"Else");var Fi=rf;Fi.kind="else";var Li=class Li extends Ur{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 Fi(n):n}if(r)return t===!1?r instanceof Li?r:r.nodes:this.nodes.length?this:new Li(oy(t),r instanceof Li?[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=Vi(this.condition,t,r),this}get names(){let t=super.names;return Fa(t,this.condition),this.else&&ei(t,this.else.names),t}};s(Li,"If");var Qn=Li;Qn.kind="if";var nf=class nf extends Ur{};s(nf,"For");var Xn=nf;Xn.kind="for";var sf=class sf extends Xn{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=Vi(this.iteration,t,r),this}get names(){return ei(super.names,this.iteration.names)}};s(sf,"ForLoop");var Fl=sf,of=class of extends Xn{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?cr.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(t)}get names(){let t=Fa(super.names,this.from);return Fa(t,this.to)}};s(of,"ForRange");var Vl=of,af=class af extends Xn{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=Vi(this.iterable,t,r),this}get names(){return ei(super.names,this.iterable.names)}};s(af,"ForIter");var La=af,uf=class uf extends Ur{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};s(uf,"Func");var Js=uf;Js.kind="func";var cf=class cf extends Ys{render(t){return"return "+super.render(t)}};s(cf,"Return");var Qs=cf;Qs.kind="return";var lf=class lf extends Ur{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&&ei(t,this.catch.names),this.finally&&ei(t,this.finally.names),t}};s(lf,"Try");var Bl=lf,ff=class ff extends Ur{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};s(ff,"Catch");var Xs=ff;Xs.kind="catch";var pf=class pf extends Ur{render(t){return"finally"+super.render(t)}};s(pf,"Finally");var eo=pf;eo.kind="finally";var df=class df{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
8
+ `:""},this._extScope=t,this._scope=new cr.Scope({parent:t}),this._nodes=[new Ll]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let o=this._scope.toName(r);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new kl(t,o,n)),o}const(t,r,n){return this._def(cr.varKinds.const,t,r,n)}let(t,r,n){return this._def(cr.varKinds.let,t,r,n)}var(t,r,n){return this._def(cr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Da(t,r,n))}add(t,r){return this._leafNode(new Nl(t,ce.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ye.nil&&this._leafNode(new Dl(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 Qn(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 Qn(t))}else(){return this._elseNode(new Fi)}endIf(){return this._endBlockNode(Qn,Fi)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Fl(t),r)}forRange(t,r,n,i,o=this.opts.es5?cr.varKinds.var:cr.varKinds.let){let a=this._scope.toName(t);return this._for(new Vl(o,a,r,n),()=>i(a))}forOf(t,r,n,i=cr.varKinds.const){let o=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`,u=>{this.var(o,(0,ye._)`${a}[${u}]`),n(o)})}return this._for(new La("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?cr.varKinds.var:cr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ye._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new La("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(Xn)}label(t){return this._leafNode(new Ml(t))}break(t){return this._leafNode(new Tl(t))}return(t){let r=new Qs;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Qs)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Bl;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new Xs(o),r(o)}return n&&(this._currNode=i.finally=new eo,this.code(n)),this._endBlockNode(Xs,eo)}throw(t){return this._leafNode(new ql(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 Js(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Js)}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 Qn))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};s(df,"CodeGen");var Hl=df;ce.CodeGen=Hl;function ei(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}s(ei,"addNames");function Fa(e,t){return t instanceof ye._CodeOrName?ei(e,t.names):e}s(Fa,"addExprNames");function Vi(e,t,r){if(e instanceof ye.Name)return n(e);if(!i(e))return e;return new ye._Code(e._items.reduce((o,a)=>(a instanceof ye.Name&&(a=n(a)),a instanceof ye._Code?o.push(...a._items):o.push(a),o),[]));function n(o){let a=r[o.str];return a===void 0||t[o.str]!==1?o:(delete t[o.str],a)}function i(o){return o instanceof ye._Code&&o._items.some(a=>a instanceof ye.Name&&t[a.str]===1&&r[a.str]!==void 0)}}s(Vi,"optimizeExpr");function IO(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}s(IO,"subtractNames");function oy(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ye._)`!${Ul(e)}`}s(oy,"not");ce.not=oy;var RO=ay(ce.operators.AND);function jO(...e){return e.reduce(RO)}s(jO,"and");ce.and=jO;var kO=ay(ce.operators.OR);function NO(...e){return e.reduce(kO)}s(NO,"or");ce.or=NO;function ay(e){return(t,r)=>t===ye.nil?r:r===ye.nil?t:(0,ye._)`${Ul(t)} ${e} ${Ul(r)}`}s(ay,"mappend");function Ul(e){return e instanceof ye.Name?e:(0,ye._)`(${e})`}s(Ul,"par")});var he=b(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.checkStrictMode=le.getErrorPath=le.Type=le.useFunc=le.setEvaluated=le.evaluatedPropsToName=le.mergeEvaluated=le.eachItem=le.unescapeJsonPointer=le.escapeJsonPointer=le.escapeFragment=le.unescapeFragment=le.schemaRefOrVal=le.schemaHasRulesButRef=le.schemaHasRules=le.checkUnknownRules=le.alwaysValidSchema=le.toHash=void 0;var xe=oe(),MO=Zs();function TO(e){let t={};for(let r of e)t[r]=!0;return t}s(TO,"toHash");le.toHash=TO;function qO(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(ly(e,t),!fy(t,e.self.RULES.all))}s(qO,"alwaysValidSchema");le.alwaysValidSchema=qO;function ly(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let o in t)i[o]||hy(e,`unknown keyword: "${o}"`)}s(ly,"checkUnknownRules");le.checkUnknownRules=ly;function fy(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}s(fy,"schemaHasRules");le.schemaHasRules=fy;function DO(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}s(DO,"schemaHasRulesButRef");le.schemaHasRulesButRef=DO;function LO({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,xe._)`${r}`}return(0,xe._)`${e}${t}${(0,xe.getProperty)(n)}`}s(LO,"schemaRefOrVal");le.schemaRefOrVal=LO;function FO(e){return py(decodeURIComponent(e))}s(FO,"unescapeFragment");le.unescapeFragment=FO;function VO(e){return encodeURIComponent(mf(e))}s(VO,"escapeFragment");le.escapeFragment=VO;function mf(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}s(mf,"escapeJsonPointer");le.escapeJsonPointer=mf;function py(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}s(py,"unescapeJsonPointer");le.unescapeJsonPointer=py;function BO(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}s(BO,"eachItem");le.eachItem=BO;function uy({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,a,u)=>{let c=a===void 0?o:a instanceof xe.Name?(o instanceof xe.Name?e(i,o,a):t(i,o,a),a):o instanceof xe.Name?(t(i,a,o),o):r(o,a);return u===xe.Name&&!(c instanceof xe.Name)?n(i,c):c}}s(uy,"makeMergeEvaluated");le.mergeEvaluated={props:uy({mergeNames:s((e,t,r)=>e.if((0,xe._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,xe._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,xe._)`${r} || {}`).code((0,xe._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,xe._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,xe._)`${r} || {}`),gf(e,r,t))}),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:dy}),items:uy({mergeNames:s((e,t,r)=>e.if((0,xe._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,xe._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,xe._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,xe._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:s((e,t)=>e.var("items",t),"resultToName")})};function dy(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,xe._)`{}`);return t!==void 0&&gf(e,r,t),r}s(dy,"evaluatedPropsToName");le.evaluatedPropsToName=dy;function gf(e,t,r){Object.keys(r).forEach(n=>e.assign((0,xe._)`${t}${(0,xe.getProperty)(n)}`,!0))}s(gf,"setEvaluated");le.setEvaluated=gf;var cy={};function HO(e,t){return e.scopeValue("func",{ref:t,code:cy[t.code]||(cy[t.code]=new MO._Code(t.code))})}s(HO,"useFunc");le.useFunc=HO;var hf;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(hf||(le.Type=hf={}));function UO(e,t,r){if(e instanceof xe.Name){let n=t===hf.Num;return r?n?(0,xe._)`"[" + ${e} + "]"`:(0,xe._)`"['" + ${e} + "']"`:n?(0,xe._)`"/" + ${e}`:(0,xe._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,xe.getProperty)(e).toString():"/"+mf(e)}s(UO,"getErrorPath");le.getErrorPath=UO;function hy(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}s(hy,"checkStrictMode");le.checkStrictMode=hy});var Yt=b(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});var ft=oe(),zO={data:new ft.Name("data"),valCxt:new ft.Name("valCxt"),instancePath:new ft.Name("instancePath"),parentData:new ft.Name("parentData"),parentDataProperty:new ft.Name("parentDataProperty"),rootData:new ft.Name("rootData"),dynamicAnchors:new ft.Name("dynamicAnchors"),vErrors:new ft.Name("vErrors"),errors:new ft.Name("errors"),this:new ft.Name("this"),self:new ft.Name("self"),scope:new ft.Name("scope"),json:new ft.Name("json"),jsonPos:new ft.Name("jsonPos"),jsonLen:new ft.Name("jsonLen"),jsonPart:new ft.Name("jsonPart")};yf.default=zO});var to=b(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.extendErrors=pt.resetErrorsCount=pt.reportExtraError=pt.reportError=pt.keyword$DataError=pt.keywordError=void 0;var ve=oe(),Ba=he(),bt=Yt();pt.keywordError={message:s(({keyword:e})=>(0,ve.str)`must pass "${e}" keyword validation`,"message")};pt.keyword$DataError={message:s(({keyword:e,schemaType:t})=>t?(0,ve.str)`"${e}" keyword must be ${t} ($data)`:(0,ve.str)`"${e}" keyword is invalid ($data)`,"message")};function GO(e,t=pt.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:a,allErrors:u}=i,c=yy(e,t,r);n??(a||u)?my(o,c):gy(i,(0,ve._)`[${c}]`)}s(GO,"reportError");pt.reportError=GO;function WO(e,t=pt.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:a}=n,u=yy(e,t,r);my(i,u),o||a||gy(n,bt.default.vErrors)}s(WO,"reportExtraError");pt.reportExtraError=WO;function KO(e,t){e.assign(bt.default.errors,t),e.if((0,ve._)`${bt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,ve._)`${bt.default.vErrors}.length`,t),()=>e.assign(bt.default.vErrors,null)))}s(KO,"resetErrorsCount");pt.resetErrorsCount=KO;function ZO({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,bt.default.errors,u=>{e.const(a,(0,ve._)`${bt.default.vErrors}[${u}]`),e.if((0,ve._)`${a}.instancePath === undefined`,()=>e.assign((0,ve._)`${a}.instancePath`,(0,ve.strConcat)(bt.default.instancePath,o.errorPath))),e.assign((0,ve._)`${a}.schemaPath`,(0,ve.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,ve._)`${a}.schema`,r),e.assign((0,ve._)`${a}.data`,n))})}s(ZO,"extendErrors");pt.extendErrors=ZO;function my(e,t){let r=e.const("err",t);e.if((0,ve._)`${bt.default.vErrors} === null`,()=>e.assign(bt.default.vErrors,(0,ve._)`[${r}]`),(0,ve._)`${bt.default.vErrors}.push(${r})`),e.code((0,ve._)`${bt.default.errors}++`)}s(my,"addError");function gy(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,ve._)`new ${e.ValidationError}(${t})`):(r.assign((0,ve._)`${n}.errors`,t),r.return(!1))}s(gy,"returnErrors");var ti={keyword:new ve.Name("keyword"),schemaPath:new ve.Name("schemaPath"),params:new ve.Name("params"),propertyName:new ve.Name("propertyName"),message:new ve.Name("message"),schema:new ve.Name("schema"),parentSchema:new ve.Name("parentSchema")};function yy(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,ve._)`{}`:YO(e,t,r)}s(yy,"errorObjectCode");function YO(e,t,r={}){let{gen:n,it:i}=e,o=[JO(i,r),QO(e,r)];return XO(e,t,o),n.object(...o)}s(YO,"errorObject");function JO({errorPath:e},{instancePath:t}){let r=t?(0,ve.str)`${e}${(0,Ba.getErrorPath)(t,Ba.Type.Str)}`:e;return[bt.default.instancePath,(0,ve.strConcat)(bt.default.instancePath,r)]}s(JO,"errorInstancePath");function QO({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,ve.str)`${t}/${e}`;return r&&(i=(0,ve.str)`${i}${(0,Ba.getErrorPath)(r,Ba.Type.Str)}`),[ti.schemaPath,i]}s(QO,"errorSchemaPath");function XO(e,{params:t,message:r},n){let{keyword:i,data:o,schemaValue:a,it:u}=e,{opts:c,propertyName:l,topSchemaRef:p,schemaPath:f}=u;n.push([ti.keyword,i],[ti.params,typeof t=="function"?t(e):t||(0,ve._)`{}`]),c.messages&&n.push([ti.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([ti.schema,a],[ti.parentSchema,(0,ve._)`${p}${f}`],[bt.default.data,o]),l&&n.push([ti.propertyName,l])}s(XO,"extraErrorProps")});var by=b(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.boolOrEmptySchema=Bi.topBoolOrEmptySchema=void 0;var ex=to(),tx=oe(),rx=Yt(),nx={message:"boolean schema is false"};function ix(e){let{gen:t,schema:r,validateName:n}=e;r===!1?vy(e,!1):typeof r=="object"&&r.$async===!0?t.return(rx.default.data):(t.assign((0,tx._)`${n}.errors`,null),t.return(!0))}s(ix,"topBoolOrEmptySchema");Bi.topBoolOrEmptySchema=ix;function sx(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),vy(e)):r.var(t,!0)}s(sx,"boolOrEmptySchema");Bi.boolOrEmptySchema=sx;function vy(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,ex.reportError)(i,nx,void 0,t)}s(vy,"falseSchemaError")});var vf=b(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.getRules=Hi.isJSONType=void 0;var ox=["string","number","integer","boolean","null","object","array"],ax=new Set(ox);function ux(e){return typeof e=="string"&&ax.has(e)}s(ux,"isJSONType");Hi.isJSONType=ux;function cx(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}s(cx,"getRules");Hi.getRules=cx});var bf=b(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.shouldUseRule=ln.shouldUseGroup=ln.schemaHasRulesForType=void 0;function lx({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&_y(e,n)}s(lx,"schemaHasRulesForType");ln.schemaHasRulesForType=lx;function _y(e,t){return t.rules.some(r=>Sy(e,r))}s(_y,"shouldUseGroup");ln.shouldUseGroup=_y;function Sy(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}s(Sy,"shouldUseRule");ln.shouldUseRule=Sy});var ro=b(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.reportTypeError=dt.checkDataTypes=dt.checkDataType=dt.coerceAndCheckDataType=dt.getJSONTypes=dt.getSchemaTypes=dt.DataType=void 0;var fx=vf(),px=bf(),dx=to(),ae=oe(),wy=he(),Ui;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Ui||(dt.DataType=Ui={}));function hx(e){let t=$y(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}s(hx,"getSchemaTypes");dt.getSchemaTypes=hx;function $y(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(fx.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}s($y,"getJSONTypes");dt.getJSONTypes=$y;function mx(e,t){let{gen:r,data:n,opts:i}=e,o=gx(t,i.coerceTypes),a=t.length>0&&!(o.length===0&&t.length===1&&(0,px.schemaHasRulesForType)(e,t[0]));if(a){let u=Sf(t,n,i.strictNumbers,Ui.Wrong);r.if(u,()=>{o.length?yx(e,t,o):wf(e)})}return a}s(mx,"coerceAndCheckDataType");dt.coerceAndCheckDataType=mx;var Py=new Set(["string","number","integer","boolean","null"]);function gx(e,t){return t?e.filter(r=>Py.has(r)||t==="array"&&r==="array"):[]}s(gx,"coerceToTypes");function yx(e,t,r){let{gen:n,data:i,opts:o}=e,a=n.let("dataType",(0,ae._)`typeof ${i}`),u=n.let("coerced",(0,ae._)`undefined`);o.coerceTypes==="array"&&n.if((0,ae._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,ae._)`${i}[0]`).assign(a,(0,ae._)`typeof ${i}`).if(Sf(t,i,o.strictNumbers),()=>n.assign(u,i))),n.if((0,ae._)`${u} !== undefined`);for(let l of r)(Py.has(l)||l==="array"&&o.coerceTypes==="array")&&c(l);n.else(),wf(e),n.endIf(),n.if((0,ae._)`${u} !== undefined`,()=>{n.assign(i,u),vx(e,u)});function c(l){switch(l){case"string":n.elseIf((0,ae._)`${a} == "number" || ${a} == "boolean"`).assign(u,(0,ae._)`"" + ${i}`).elseIf((0,ae._)`${i} === null`).assign(u,(0,ae._)`""`);return;case"number":n.elseIf((0,ae._)`${a} == "boolean" || ${i} === null
9
+ || (${a} == "string" && ${i} && ${i} == +${i})`).assign(u,(0,ae._)`+${i}`);return;case"integer":n.elseIf((0,ae._)`${a} === "boolean" || ${i} === null
10
+ || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(u,(0,ae._)`+${i}`);return;case"boolean":n.elseIf((0,ae._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(u,!1).elseIf((0,ae._)`${i} === "true" || ${i} === 1`).assign(u,!0);return;case"null":n.elseIf((0,ae._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(u,null);return;case"array":n.elseIf((0,ae._)`${a} === "string" || ${a} === "number"
11
+ || ${a} === "boolean" || ${i} === null`).assign(u,(0,ae._)`[${i}]`)}}s(c,"coerceSpecificType")}s(yx,"coerceData");function vx({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,ae._)`${t} !== undefined`,()=>e.assign((0,ae._)`${t}[${r}]`,n))}s(vx,"assignParentData");function _f(e,t,r,n=Ui.Correct){let i=n===Ui.Correct?ae.operators.EQ:ae.operators.NEQ,o;switch(e){case"null":return(0,ae._)`${t} ${i} null`;case"array":o=(0,ae._)`Array.isArray(${t})`;break;case"object":o=(0,ae._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a((0,ae._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return(0,ae._)`typeof ${t} ${i} ${e}`}return n===Ui.Correct?o:(0,ae.not)(o);function a(u=ae.nil){return(0,ae.and)((0,ae._)`typeof ${t} == "number"`,u,r?(0,ae._)`isFinite(${t})`:ae.nil)}}s(_f,"checkDataType");dt.checkDataType=_f;function Sf(e,t,r,n){if(e.length===1)return _f(e[0],t,r,n);let i,o=(0,wy.toHash)(e);if(o.array&&o.object){let a=(0,ae._)`typeof ${t} != "object"`;i=o.null?a:(0,ae._)`!${t} || ${a}`,delete o.null,delete o.array,delete o.object}else i=ae.nil;o.number&&delete o.integer;for(let a in o)i=(0,ae.and)(i,_f(a,t,r,n));return i}s(Sf,"checkDataTypes");dt.checkDataTypes=Sf;var bx={message:s(({schema:e})=>`must be ${e}`,"message"),params:s(({schema:e,schemaValue:t})=>typeof e=="string"?(0,ae._)`{type: ${e}}`:(0,ae._)`{type: ${t}}`,"params")};function wf(e){let t=_x(e);(0,dx.reportError)(t,bx)}s(wf,"reportTypeError");dt.reportTypeError=wf;function _x(e){let{gen:t,data:r,schema:n}=e,i=(0,wy.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}s(_x,"getTypeErrorContext")});var xy=b(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.assignDefaults=void 0;var zi=oe(),Sx=he();function wx(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)Oy(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>Oy(e,o,i.default))}s(wx,"assignDefaults");Ha.assignDefaults=wx;function Oy(e,t,r){let{gen:n,compositeRule:i,data:o,opts:a}=e;if(r===void 0)return;let u=(0,zi._)`${o}${(0,zi.getProperty)(t)}`;if(i){(0,Sx.checkStrictMode)(e,`default is ignored for: ${u}`);return}let c=(0,zi._)`${u} === undefined`;a.useDefaults==="empty"&&(c=(0,zi._)`${c} || ${u} === null || ${u} === ""`),n.if(c,(0,zi._)`${u} = ${(0,zi.stringify)(r)}`)}s(Oy,"assignDefault")});var Jt=b(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.validateUnion=Oe.validateArray=Oe.usePattern=Oe.callValidateCode=Oe.schemaProperties=Oe.allSchemaProperties=Oe.noPropertyInData=Oe.propertyInData=Oe.isOwnProperty=Oe.hasPropFunc=Oe.reportMissingProp=Oe.checkMissingProp=Oe.checkReportMissingProp=void 0;var Ne=oe(),$f=he(),fn=Yt(),$x=he();function Px(e,t){let{gen:r,data:n,it:i}=e;r.if(Of(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Ne._)`${t}`},!0),e.error()})}s(Px,"checkReportMissingProp");Oe.checkReportMissingProp=Px;function Ox({gen:e,data:t,it:{opts:r}},n,i){return(0,Ne.or)(...n.map(o=>(0,Ne.and)(Of(e,t,o,r.ownProperties),(0,Ne._)`${i} = ${o}`)))}s(Ox,"checkMissingProp");Oe.checkMissingProp=Ox;function xx(e,t){e.setParams({missingProperty:t},!0),e.error()}s(xx,"reportMissingProp");Oe.reportMissingProp=xx;function Ey(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ne._)`Object.prototype.hasOwnProperty`})}s(Ey,"hasPropFunc");Oe.hasPropFunc=Ey;function Pf(e,t,r){return(0,Ne._)`${Ey(e)}.call(${t}, ${r})`}s(Pf,"isOwnProperty");Oe.isOwnProperty=Pf;function Ex(e,t,r,n){let i=(0,Ne._)`${t}${(0,Ne.getProperty)(r)} !== undefined`;return n?(0,Ne._)`${i} && ${Pf(e,t,r)}`:i}s(Ex,"propertyInData");Oe.propertyInData=Ex;function Of(e,t,r,n){let i=(0,Ne._)`${t}${(0,Ne.getProperty)(r)} === undefined`;return n?(0,Ne.or)(i,(0,Ne.not)(Pf(e,t,r))):i}s(Of,"noPropertyInData");Oe.noPropertyInData=Of;function Ay(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}s(Ay,"allSchemaProperties");Oe.allSchemaProperties=Ay;function Ax(e,t){return Ay(t).filter(r=>!(0,$f.alwaysValidSchema)(e,t[r]))}s(Ax,"schemaProperties");Oe.schemaProperties=Ax;function Cx({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},u,c,l){let p=l?(0,Ne._)`${e}, ${t}, ${n}${i}`:t,f=[[fn.default.instancePath,(0,Ne.strConcat)(fn.default.instancePath,o)],[fn.default.parentData,a.parentData],[fn.default.parentDataProperty,a.parentDataProperty],[fn.default.rootData,fn.default.rootData]];a.opts.dynamicRef&&f.push([fn.default.dynamicAnchors,fn.default.dynamicAnchors]);let d=(0,Ne._)`${p}, ${r.object(...f)}`;return c!==Ne.nil?(0,Ne._)`${u}.call(${c}, ${d})`:(0,Ne._)`${u}(${d})`}s(Cx,"callValidateCode");Oe.callValidateCode=Cx;var Ix=(0,Ne._)`new RegExp`;function Rx({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,Ne._)`${i.code==="new RegExp"?Ix:(0,$x.useFunc)(e,i)}(${r}, ${n})`})}s(Rx,"usePattern");Oe.usePattern=Rx;function jx(e){let{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){let u=t.let("valid",!0);return a(()=>t.assign(u,!1)),u}return t.var(o,!0),a(()=>t.break()),o;function a(u){let c=t.const("len",(0,Ne._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:$f.Type.Num},o),t.if((0,Ne.not)(o),u)})}s(a,"validateItems")}s(jx,"validateArray");Oe.validateArray=jx;function kx(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,$f.alwaysValidSchema)(i,c))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),u=t.name("_valid");t.block(()=>r.forEach((c,l)=>{let p=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},u);t.assign(a,(0,Ne._)`${a} || ${u}`),e.mergeValidEvaluated(p,u)||t.if((0,Ne.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}s(kx,"validateUnion");Oe.validateUnion=kx});var Ry=b(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.validateKeywordUsage=xr.validSchemaType=xr.funcKeywordCode=xr.macroKeywordCode=void 0;var _t=oe(),ri=Yt(),Nx=Jt(),Mx=to();function Tx(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:a}=e,u=t.macro.call(a.self,i,o,a),c=Iy(r,n,u);a.opts.validateSchema!==!1&&a.self.validateSchema(u,!0);let l=r.name("valid");e.subschema({schema:u,schemaPath:_t.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}s(Tx,"macroKeywordCode");xr.macroKeywordCode=Tx;function qx(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:u,it:c}=e;Lx(c,t);let l=!u&&t.compile?t.compile.call(c.self,o,a,c):t.validate,p=Iy(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)v(),t.modifying&&Cy(e),g(()=>e.error());else{let $=t.async?h():y();t.modifying&&Cy(e),g(()=>Dx(e,$))}}s(d,"validateKeyword");function h(){let $=n.let("ruleErrs",null);return n.try(()=>v((0,_t._)`await `),A=>n.assign(f,!1).if((0,_t._)`${A} instanceof ${c.ValidationError}`,()=>n.assign($,(0,_t._)`${A}.errors`),()=>n.throw(A))),$}s(h,"validateAsync");function y(){let $=(0,_t._)`${p}.errors`;return n.assign($,null),v(_t.nil),$}s(y,"validateSync");function v($=t.async?(0,_t._)`await `:_t.nil){let A=c.opts.passContext?ri.default.this:ri.default.self,k=!("compile"in t&&!u||t.schema===!1);n.assign(f,(0,_t._)`${$}${(0,Nx.callValidateCode)(e,p,A,k)}`,t.modifying)}s(v,"assignValid");function g($){var A;n.if((0,_t.not)((A=t.valid)!==null&&A!==void 0?A:f),$)}s(g,"reportErrs")}s(qx,"funcKeywordCode");xr.funcKeywordCode=qx;function Cy(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,_t._)`${n.parentData}[${n.parentDataProperty}]`))}s(Cy,"modifyData");function Dx(e,t){let{gen:r}=e;r.if((0,_t._)`Array.isArray(${t})`,()=>{r.assign(ri.default.vErrors,(0,_t._)`${ri.default.vErrors} === null ? ${t} : ${ri.default.vErrors}.concat(${t})`).assign(ri.default.errors,(0,_t._)`${ri.default.vErrors}.length`),(0,Mx.extendErrors)(e)},()=>e.error())}s(Dx,"addErrs");function Lx({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}s(Lx,"checkAsyncKeyword");function Iy(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,_t.stringify)(r)})}s(Iy,"useKeyword");function Fx(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}s(Fx,"validSchemaType");xr.validSchemaType=Fx;function Vx({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(u=>!Object.prototype.hasOwnProperty.call(e,u)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){let c=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}s(Vx,"validateKeywordUsage");xr.validateKeywordUsage=Vx});var ky=b(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.extendSubschemaMode=pn.extendSubschemaData=pn.getSubschema=void 0;var Er=oe(),jy=he();function Bx(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let u=e.schema[t];return r===void 0?{schema:u,schemaPath:(0,Er._)`${e.schemaPath}${(0,Er.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:u[r],schemaPath:(0,Er._)`${e.schemaPath}${(0,Er.getProperty)(t)}${(0,Er.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,jy.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}s(Bx,"getSubschema");pn.getSubschema=Bx;function Hx(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:u}=t;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:f}=t,d=u.let("data",(0,Er._)`${t.data}${(0,Er.getProperty)(r)}`,!0);c(d),e.errorPath=(0,Er.str)`${l}${(0,jy.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,Er._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof Er.Name?i:u.let("data",i,!0);c(l),a!==void 0&&(e.propertyName=a)}o&&(e.dataTypes=o);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}s(c,"dataContextProps")}s(Hx,"extendSubschemaData");pn.extendSubschemaData=Hx;function Ux(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}s(Ux,"extendSubschemaMode");pn.extendSubschemaMode=Ux});var xf=b((bF,Ny)=>{"use strict";Ny.exports=s(function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var Ty=b((SF,My)=>{"use strict";var dn=My.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(){};Ua(t,n,i,e,"",e)};dn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};dn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};dn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};dn.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 Ua(e,t,r,n,i,o,a,u,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,a,u,c,l);for(var p in n){var f=n[p];if(Array.isArray(f)){if(p in dn.arrayKeywords)for(var d=0;d<f.length;d++)Ua(e,t,r,f[d],i+"/"+p+"/"+d,o,i,p,n,d)}else if(p in dn.propsKeywords){if(f&&typeof f=="object")for(var h in f)Ua(e,t,r,f[h],i+"/"+p+"/"+zx(h),o,i,p,n,h)}else(p in dn.keywords||e.allKeys&&!(p in dn.skipKeywords))&&Ua(e,t,r,f,i+"/"+p,o,i,p,n)}r(n,i,o,a,u,c,l)}}s(Ua,"_traverse");function zx(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}s(zx,"escapeJsonPtr")});var no=b(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.getSchemaRefs=It.resolveUrl=It.normalizeId=It._getFullPath=It.getFullPath=It.inlineRef=void 0;var Gx=he(),Wx=xf(),Kx=Ty(),Zx=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Yx(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Ef(e):t?qy(e)<=t:!1}s(Yx,"inlineRef");It.inlineRef=Yx;var Jx=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Ef(e){for(let t in e){if(Jx.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Ef)||typeof r=="object"&&Ef(r))return!0}return!1}s(Ef,"hasRef");function qy(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!Zx.has(r)&&(typeof e[r]=="object"&&(0,Gx.eachItem)(e[r],n=>t+=qy(n)),t===1/0))return 1/0}return t}s(qy,"countKeys");function Dy(e,t="",r){r!==!1&&(t=Gi(t));let n=e.parse(t);return Ly(e,n)}s(Dy,"getFullPath");It.getFullPath=Dy;function Ly(e,t){return e.serialize(t).split("#")[0]+"#"}s(Ly,"_getFullPath");It._getFullPath=Ly;var Qx=/#\/?$/;function Gi(e){return e?e.replace(Qx,""):""}s(Gi,"normalizeId");It.normalizeId=Gi;function Xx(e,t,r){return r=Gi(r),e.resolve(t,r)}s(Xx,"resolveUrl");It.resolveUrl=Xx;var eE=/^[a-z_][-a-z0-9._]*$/i;function tE(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=Gi(e[r]||t),o={"":i},a=Dy(n,i,!1),u={},c=new Set;return Kx(e,{allKeys:!0},(f,d,h,y)=>{if(y===void 0)return;let v=a+d,g=o[y];typeof f[r]=="string"&&(g=$.call(this,f[r])),A.call(this,f.$anchor),A.call(this,f.$dynamicAnchor),o[d]=g;function $(k){let C=this.opts.uriResolver.resolve;if(k=Gi(g?C(g,k):k),c.has(k))throw p(k);c.add(k);let I=this.refs[k];return typeof I=="string"&&(I=this.refs[I]),typeof I=="object"?l(f,I.schema,k):k!==Gi(v)&&(k[0]==="#"?(l(f,u[k],k),u[k]=f):this.refs[k]=v),k}s($,"addRef");function A(k){if(typeof k=="string"){if(!eE.test(k))throw new Error(`invalid anchor "${k}"`);$.call(this,`#${k}`)}}s(A,"addAnchor")}),u;function l(f,d,h){if(d!==void 0&&!Wx(f,d))throw p(h)}s(l,"checkAmbiguosRef");function p(f){return new Error(`reference "${f}" resolves to more than one schema`)}s(p,"ambiguos")}s(tE,"getSchemaRefs");It.getSchemaRefs=tE});var oo=b(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.getData=hn.KeywordCxt=hn.validateFunctionCode=void 0;var Uy=by(),Fy=ro(),Cf=bf(),za=ro(),rE=xy(),so=Ry(),Af=ky(),K=oe(),ie=Yt(),nE=no(),zr=he(),io=to();function iE(e){if(Wy(e)&&(Ky(e),Gy(e))){aE(e);return}zy(e,()=>(0,Uy.topBoolOrEmptySchema)(e))}s(iE,"validateFunctionCode");hn.validateFunctionCode=iE;function zy({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,K._)`${ie.default.data}, ${ie.default.valCxt}`,n.$async,()=>{e.code((0,K._)`"use strict"; ${Vy(r,i)}`),oE(e,i),e.code(o)}):e.func(t,(0,K._)`${ie.default.data}, ${sE(i)}`,n.$async,()=>e.code(Vy(r,i)).code(o))}s(zy,"validateFunction");function sE(e){return(0,K._)`{${ie.default.instancePath}="", ${ie.default.parentData}, ${ie.default.parentDataProperty}, ${ie.default.rootData}=${ie.default.data}${e.dynamicRef?(0,K._)`, ${ie.default.dynamicAnchors}={}`:K.nil}}={}`}s(sE,"destructureValCxt");function oE(e,t){e.if(ie.default.valCxt,()=>{e.var(ie.default.instancePath,(0,K._)`${ie.default.valCxt}.${ie.default.instancePath}`),e.var(ie.default.parentData,(0,K._)`${ie.default.valCxt}.${ie.default.parentData}`),e.var(ie.default.parentDataProperty,(0,K._)`${ie.default.valCxt}.${ie.default.parentDataProperty}`),e.var(ie.default.rootData,(0,K._)`${ie.default.valCxt}.${ie.default.rootData}`),t.dynamicRef&&e.var(ie.default.dynamicAnchors,(0,K._)`${ie.default.valCxt}.${ie.default.dynamicAnchors}`)},()=>{e.var(ie.default.instancePath,(0,K._)`""`),e.var(ie.default.parentData,(0,K._)`undefined`),e.var(ie.default.parentDataProperty,(0,K._)`undefined`),e.var(ie.default.rootData,ie.default.data),t.dynamicRef&&e.var(ie.default.dynamicAnchors,(0,K._)`{}`)})}s(oE,"destructureValCxtES5");function aE(e){let{schema:t,opts:r,gen:n}=e;zy(e,()=>{r.$comment&&t.$comment&&Yy(e),pE(e),n.let(ie.default.vErrors,null),n.let(ie.default.errors,0),r.unevaluated&&uE(e),Zy(e),mE(e)})}s(aE,"topSchemaObjCode");function uE(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,K._)`${r}.evaluated`),t.if((0,K._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,K._)`${e.evaluated}.props`,(0,K._)`undefined`)),t.if((0,K._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,K._)`${e.evaluated}.items`,(0,K._)`undefined`))}s(uE,"resetEvaluated");function Vy(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,K._)`/*# sourceURL=${r} */`:K.nil}s(Vy,"funcSourceUrl");function cE(e,t){if(Wy(e)&&(Ky(e),Gy(e))){lE(e,t);return}(0,Uy.boolOrEmptySchema)(e,t)}s(cE,"subschemaCode");function Gy({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}s(Gy,"schemaCxtHasRules");function Wy(e){return typeof e.schema!="boolean"}s(Wy,"isSchemaObj");function lE(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&Yy(e),dE(e),hE(e);let o=n.const("_errs",ie.default.errors);Zy(e,o),n.var(t,(0,K._)`${o} === ${ie.default.errors}`)}s(lE,"subSchemaObjCode");function Ky(e){(0,zr.checkUnknownRules)(e),fE(e)}s(Ky,"checkKeywords");function Zy(e,t){if(e.opts.jtd)return By(e,[],!1,t);let r=(0,Fy.getSchemaTypes)(e.schema),n=(0,Fy.coerceAndCheckDataType)(e,r);By(e,r,!n,t)}s(Zy,"typeAndKeywords");function fE(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,zr.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}s(fE,"checkRefsAndKeywords");function pE(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,zr.checkStrictMode)(e,"default is ignored in the schema root")}s(pE,"checkNoDefault");function dE(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,nE.resolveUrl)(e.opts.uriResolver,e.baseId,t))}s(dE,"updateContext");function hE(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}s(hE,"checkAsyncSchema");function Yy({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,K._)`${ie.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=(0,K.str)`${n}/$comment`,u=e.scopeValue("root",{ref:t.root});e.code((0,K._)`${ie.default.self}.opts.$comment(${o}, ${a}, ${u}.schema)`)}}s(Yy,"commentKeyword");function mE(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,K._)`${ie.default.errors} === 0`,()=>t.return(ie.default.data),()=>t.throw((0,K._)`new ${i}(${ie.default.vErrors})`)):(t.assign((0,K._)`${n}.errors`,ie.default.vErrors),o.unevaluated&&gE(e),t.return((0,K._)`${ie.default.errors} === 0`))}s(mE,"returnResults");function gE({gen:e,evaluated:t,props:r,items:n}){r instanceof K.Name&&e.assign((0,K._)`${t}.props`,r),n instanceof K.Name&&e.assign((0,K._)`${t}.items`,n)}s(gE,"assignEvaluated");function By(e,t,r,n){let{gen:i,schema:o,data:a,allErrors:u,opts:c,self:l}=e,{RULES:p}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,zr.schemaHasRulesButRef)(o,p))){i.block(()=>Qy(e,"$ref",p.all.$ref.definition));return}c.jtd||yE(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,Cf.shouldUseGroup)(o,d)&&(d.type?(i.if((0,za.checkDataType)(d.type,a,c.strictNumbers)),Hy(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,za.reportTypeError)(e)),i.endIf()):Hy(e,d),u||i.if((0,K._)`${ie.default.errors} === ${n||0}`))}s(f,"groupKeywords")}s(By,"schemaKeywords");function Hy(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,rE.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,Cf.shouldUseRule)(n,o)&&Qy(e,o.keyword,o.definition,t.type)})}s(Hy,"iterateKeywords");function yE(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(vE(e,t),e.opts.allowUnionTypes||bE(e,t),_E(e,e.dataTypes))}s(yE,"checkStrictTypes");function vE(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Jy(e.dataTypes,r)||If(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),wE(e,t)}}s(vE,"checkContextTypes");function bE(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&If(e,"use allowUnionTypes to allow union type keyword")}s(bE,"checkMultipleTypes");function _E(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Cf.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>SE(t,a))&&If(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}s(_E,"checkKeywordTypes");function SE(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}s(SE,"hasApplicableType");function Jy(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}s(Jy,"includesType");function wE(e,t){let r=[];for(let n of e.dataTypes)Jy(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}s(wE,"narrowSchemaTypes");function If(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,zr.checkStrictMode)(e,t,e.opts.strictTypes)}s(If,"strictTypesError");var Rf=class Rf{constructor(t,r,n){if((0,so.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,zr.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",Xy(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,so.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",ie.default.errors))}result(t,r,n){this.failResult((0,K.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,K.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,K._)`${r} !== undefined && (${(0,K.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?io.reportExtraError:io.reportError)(this,this.def.error,r)}$dataError(){(0,io.reportError)(this,this.def.$dataError||io.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,io.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=K.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=K.nil,r=K.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if((0,K.or)((0,K._)`${i} === undefined`,r)),t!==K.nil&&n.assign(t,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==K.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,K.or)(a(),u());function a(){if(n.length){if(!(r instanceof K.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,K._)`${(0,za.checkDataTypes)(c,r,o.opts.strictNumbers,za.DataType.Wrong)}`}return K.nil}function u(){if(i.validateSchema){let c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,K._)`!${c}(${r})`}return K.nil}}subschema(t,r){let n=(0,Af.getSubschema)(this.it,t);(0,Af.extendSubschemaData)(n,this.it,t),(0,Af.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return cE(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=zr.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=zr.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,K.Name)),!0}};s(Rf,"KeywordCxt");var Ga=Rf;hn.KeywordCxt=Ga;function Qy(e,t,r,n){let i=new Ga(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,so.funcKeywordCode)(i,r):"macro"in r?(0,so.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,so.funcKeywordCode)(i,r)}s(Qy,"keywordCode");var $E=/^\/(?:[^~]|~0|~1)*$/,PE=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Xy(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return ie.default.rootData;if(e[0]==="/"){if(!$E.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=ie.default.rootData}else{let l=PE.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let p=+l[1];if(i=l[2],i==="#"){if(p>=t)throw new Error(c("property/index",p));return n[t-p]}if(p>t)throw new Error(c("data",p));if(o=r[t-p],!i)return o}let a=o,u=i.split("/");for(let l of u)l&&(o=(0,K._)`${o}${(0,K.getProperty)((0,zr.unescapeJsonPointer)(l))}`,a=(0,K._)`${a} && ${o}`);return a;function c(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}s(Xy,"getData");hn.getData=Xy});var Wa=b(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});var Nf=class Nf extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};s(Nf,"ValidationError");var jf=Nf;kf.default=jf});var ao=b(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});var Mf=no(),Df=class Df extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Mf.resolveUrl)(t,r,n),this.missingSchema=(0,Mf.normalizeId)((0,Mf.getFullPath)(t,this.missingRef))}};s(Df,"MissingRefError");var Tf=Df;qf.default=Tf});var uo=b(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.resolveSchema=Qt.getCompilingSchema=Qt.resolveRef=Qt.compileSchema=Qt.SchemaEnv=void 0;var lr=oe(),OE=Wa(),ni=Yt(),fr=no(),e0=he(),xE=oo(),Vf=class Vf{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,fr.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};s(Vf,"SchemaEnv");var Wi=Vf;Qt.SchemaEnv=Wi;function Ff(e){let t=t0.call(this,e);if(t)return t;let r=(0,fr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new lr.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),u;e.$async&&(u=a.scopeValue("Error",{ref:OE.default,code:(0,lr._)`require("ajv/dist/runtime/validation_error").default`}));let c=a.scopeName("validate");e.validateName=c;let l={gen:a,allErrors:this.opts.allErrors,data:ni.default.data,parentData:ni.default.parentData,parentDataProperty:ni.default.parentDataProperty,dataNames:[ni.default.data],dataPathArr:[lr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,lr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:u,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:lr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,lr._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,xE.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(ni.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${ni.default.self}`,`${ni.default.scope}`,p)(this,this.scope.get());if(this.scope.value(c,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:c,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:y,items:v}=l;h.evaluated={props:y instanceof lr.Name?void 0:y,items:v instanceof lr.Name?void 0:v,dynamicProps:y instanceof lr.Name,dynamicItems:v instanceof lr.Name},h.source&&(h.source.evaluated=(0,lr.stringify)(h.evaluated))}return e.validate=h,e}catch(f){throw delete e.validate,delete e.validateName,p&&this.logger.error("Error compiling schema, function code:",p),f}finally{this._compilations.delete(e)}}s(Ff,"compileSchema");Qt.compileSchema=Ff;function EE(e,t,r){var n;r=(0,fr.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let o=IE.call(this,e,r);if(o===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:u}=this.opts;a&&(o=new Wi({schema:a,schemaId:u,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=AE.call(this,o)}s(EE,"resolveRef");Qt.resolveRef=EE;function AE(e){return(0,fr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Ff.call(this,e)}s(AE,"inlineOrCompile");function t0(e){for(let t of this._compilations)if(CE(t,e))return t}s(t0,"getCompilingSchema");Qt.getCompilingSchema=t0;function CE(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}s(CE,"sameSchemaEnv");function IE(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Ka.call(this,e,t)}s(IE,"resolve");function Ka(e,t){let r=this.opts.uriResolver.parse(t),n=(0,fr._getFullPath)(this.opts.uriResolver,r),i=(0,fr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Lf.call(this,r,e);let o=(0,fr.normalizeId)(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let u=Ka.call(this,e,a);return typeof(u==null?void 0:u.schema)!="object"?void 0:Lf.call(this,r,u)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Ff.call(this,a),o===(0,fr.normalizeId)(t)){let{schema:u}=a,{schemaId:c}=this.opts,l=u[c];return l&&(i=(0,fr.resolveUrl)(this.opts.uriResolver,i,l)),new Wi({schema:u,schemaId:c,root:e,baseId:i})}return Lf.call(this,r,a)}}s(Ka,"resolveSchema");Qt.resolveSchema=Ka;var RE=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Lf(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let u of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,e0.unescapeFragment)(u)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!RE.has(u)&&l&&(t=(0,fr.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,e0.schemaHasRulesButRef)(r,this.RULES)){let u=(0,fr.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=Ka.call(this,n,u)}let{schemaId:a}=this.opts;if(o=o||new Wi({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}s(Lf,"getJsonPointer")});var r0=b((kF,jE)=>{jE.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 i0=b((NF,n0)=>{"use strict";var kE={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};n0.exports={HEX:kE}});var p0=b((MF,f0)=>{"use strict";var{HEX:NE}=i0();function u0(e){if(l0(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:TE(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}s(u0,"normalizeIPv4");function Bf(e,t=!1){let r="",n=!0;for(let i of e){if(NE[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}s(Bf,"stringArrayToHexStripped");function ME(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],o=!1,a=!1,u=!1;function c(){if(i.length){if(o===!1){let l=Bf(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}s(c,"consume");for(let l=0;l<e.length;l++){let p=e[l];if(!(p==="["||p==="]"))if(p===":"){if(a===!0&&(u=!0),!c())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(p==="%"){if(!c())break;o=!0}else{i.push(p);continue}}return i.length&&(o?r.zone=i.join(""):u?n.push(i.join("")):n.push(Bf(i))),r.address=n.join(""),r}s(ME,"getIPV6");function c0(e,t={}){if(l0(e,":")<2)return{host:e,isIPV6:!1};let r=ME(e);if(r.error)return{host:e,isIPV6:!1};{let n=r.address,i=r.address;return r.zone&&(n+="%"+r.zone,i+="%25"+r.zone),{host:n,escapedHost:i,isIPV6:!0}}}s(c0,"normalizeIPv6");function TE(e,t){let r="",n=!0,i=e.length;for(let o=0;o<i;o++){let a=e[o];a==="0"&&n?(o+1<=i&&e[o+1]===t||o+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}s(TE,"stripLeadingZeros");function l0(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}s(l0,"findToken");var s0=/^\.\.?\//u,o0=/^\/\.(?:\/|$)/u,a0=/^\/\.\.(?:\/|$)/u,qE=/^\/?(?:.|\n)*?(?=\/|$)/u;function DE(e){let t=[];for(;e.length;)if(e.match(s0))e=e.replace(s0,"");else if(e.match(o0))e=e.replace(o0,"/");else if(e.match(a0))e=e.replace(a0,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(qE);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}s(DE,"removeDotSegments");function LE(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}s(LE,"normalizeComponentEncoding");function FE(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=u0(n);if(i.isIPV4)n=i.host;else{let o=c0(i.host,{isIPV4:!1});o.isIPV6===!0?n=`[${o.escapedHost}]`:n=e.host}r.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}s(FE,"recomposeAuthority");f0.exports={recomposeAuthority:FE,normalizeComponentEncoding:LE,removeDotSegments:DE,normalizeIPv4:u0,normalizeIPv6:c0,stringArrayToHexStripped:Bf}});var v0=b((qF,y0)=>{"use strict";var VE=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,BE=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function d0(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}s(d0,"isSecure");function h0(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}s(h0,"httpParse");function m0(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}s(m0,"httpSerialize");function HE(e){return e.secure=d0(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}s(HE,"wsParse");function UE(e){if((e.port===(d0(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}s(UE,"wsSerialize");function zE(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(BE);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,o=Hf[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}s(zE,"urnParse");function GE(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,o=Hf[i];o&&(e=o.serialize(e,t));let a=e,u=e.nss;return a.path=`${n||t.nid}:${u}`,t.skipEscape=!0,a}s(GE,"urnSerialize");function WE(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!VE.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}s(WE,"urnuuidParse");function KE(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}s(KE,"urnuuidSerialize");var g0={scheme:"http",domainHost:!0,parse:h0,serialize:m0},ZE={scheme:"https",domainHost:g0.domainHost,parse:h0,serialize:m0},Za={scheme:"ws",domainHost:!0,parse:HE,serialize:UE},YE={scheme:"wss",domainHost:Za.domainHost,parse:Za.parse,serialize:Za.serialize},JE={scheme:"urn",parse:zE,serialize:GE,skipNormalize:!0},QE={scheme:"urn:uuid",parse:WE,serialize:KE,skipNormalize:!0},Hf={http:g0,https:ZE,ws:Za,wss:YE,urn:JE,"urn:uuid":QE};y0.exports=Hf});var _0=b((LF,Ja)=>{"use strict";var{normalizeIPv6:XE,normalizeIPv4:eA,removeDotSegments:co,recomposeAuthority:tA,normalizeComponentEncoding:Ya}=p0(),Uf=v0();function rA(e,t){return typeof e=="string"?e=Ar(Gr(e,t),t):typeof e=="object"&&(e=Gr(Ar(e,t),t)),e}s(rA,"normalize");function nA(e,t,r){let n=Object.assign({scheme:"null"},r),i=b0(Gr(e,n),Gr(t,n),n,!0);return Ar(i,{...n,skipEscape:!0})}s(nA,"resolve");function b0(e,t,r,n){let i={};return n||(e=Gr(Ar(e,r),r),t=Gr(Ar(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=co(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=co(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=co(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=co(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}s(b0,"resolveComponents");function iA(e,t,r){return typeof e=="string"?(e=unescape(e),e=Ar(Ya(Gr(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Ar(Ya(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Ar(Ya(Gr(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Ar(Ya(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}s(iA,"equal");function Ar(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],o=Uf[(n.scheme||r.scheme||"").toLowerCase()];o&&o.serialize&&o.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&(i.push(r.scheme),i.push(":"));let a=tA(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let u=r.path;!n.absolutePath&&(!o||!o.absolutePath)&&(u=co(u)),a===void 0&&(u=u.replace(/^\/\//u,"/%2F")),i.push(u)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}s(Ar,"serialize");var sA=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function oA(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||sA[t])return!0;return!1}s(oA,"nonSimpleDomain");var aA=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Gr(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,o=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(aA);if(a){if(n.scheme=a[1],n.userinfo=a[3],n.host=a[4],n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=a[7],n.fragment=a[8],isNaN(n.port)&&(n.port=a[5]),n.host){let c=eA(n.host);if(c.isIPV4===!1){let l=XE(c.host,{isIPV4:!1});n.host=l.host.toLowerCase(),o=l.isIPV6}else n.host=c.host,o=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let u=Uf[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!u||!u.unicodeSupport)&&n.host&&(r.domainHost||u&&u.domainHost)&&o===!1&&oA(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(c){n.error=n.error||"Host's domain name can not be converted to ASCII: "+c}(!u||u&&!u.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),u&&u.parse&&u.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}s(Gr,"parse");var zf={SCHEMES:Uf,normalize:rA,resolve:nA,resolveComponents:b0,equal:iA,serialize:Ar,parse:Gr};Ja.exports=zf;Ja.exports.default=zf;Ja.exports.fastUri=zf});var w0=b(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var S0=_0();S0.code='require("ajv/dist/runtime/uri").default';Gf.default=S0});var Zi=b(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.CodeGen=ut.Name=ut.nil=ut.stringify=ut.str=ut._=ut.KeywordCxt=void 0;var uA=oo();Object.defineProperty(ut,"KeywordCxt",{enumerable:!0,get:s(function(){return uA.KeywordCxt},"get")});var Ki=oe();Object.defineProperty(ut,"_",{enumerable:!0,get:s(function(){return Ki._},"get")});Object.defineProperty(ut,"str",{enumerable:!0,get:s(function(){return Ki.str},"get")});Object.defineProperty(ut,"stringify",{enumerable:!0,get:s(function(){return Ki.stringify},"get")});Object.defineProperty(ut,"nil",{enumerable:!0,get:s(function(){return Ki.nil},"get")});Object.defineProperty(ut,"Name",{enumerable:!0,get:s(function(){return Ki.Name},"get")});Object.defineProperty(ut,"CodeGen",{enumerable:!0,get:s(function(){return Ki.CodeGen},"get")});var cA=Wa(),E0=ao(),lA=vf(),lo=uo(),fA=oe(),fo=no(),Qa=ro(),Kf=he(),$0=r0(),pA=w0(),A0=s((e,t)=>new RegExp(e,t),"defaultRegExp");A0.code="new RegExp";var dA=["removeAdditional","useDefaults","coerceTypes"],hA=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),mA={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."},gA={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},P0=200;function yA(e){var t,r,n,i,o,a,u,c,l,p,f,d,h,y,v,g,$,A,k,C,I,fe,ne,yt,Fe;let ee=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:A0,Z=(i=e.uriResolver)!==null&&i!==void 0?i:pA.default;return{strictSchema:(a=(o=e.strictSchema)!==null&&o!==void 0?o:ee)!==null&&a!==void 0?a:!0,strictNumbers:(c=(u=e.strictNumbers)!==null&&u!==void 0?u:ee)!==null&&c!==void 0?c:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:ee)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:ee)!==null&&d!==void 0?d:"log",strictRequired:(y=(h=e.strictRequired)!==null&&h!==void 0?h:ee)!==null&&y!==void 0?y:!1,code:e.code?{...e.code,optimize:R,regExp:q}:{optimize:R,regExp:q},loopRequired:(v=e.loopRequired)!==null&&v!==void 0?v:P0,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:P0,meta:($=e.meta)!==null&&$!==void 0?$:!0,messages:(A=e.messages)!==null&&A!==void 0?A:!0,inlineRefs:(k=e.inlineRefs)!==null&&k!==void 0?k:!0,schemaId:(C=e.schemaId)!==null&&C!==void 0?C:"$id",addUsedSchema:(I=e.addUsedSchema)!==null&&I!==void 0?I:!0,validateSchema:(fe=e.validateSchema)!==null&&fe!==void 0?fe:!0,validateFormats:(ne=e.validateFormats)!==null&&ne!==void 0?ne:!0,unicodeRegExp:(yt=e.unicodeRegExp)!==null&&yt!==void 0?yt:!0,int32range:(Fe=e.int32range)!==null&&Fe!==void 0?Fe:!0,uriResolver:Z}}s(yA,"requiredOptions");var Zf=class Zf{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...yA(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new fA.ValueScope({scope:{},prefixes:hA,es5:r,lines:n}),this.logger=$A(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,lA.getRules)(),O0.call(this,mA,t,"NOT SUPPORTED"),O0.call(this,gA,t,"DEPRECATED","warn"),this._metaOpts=SA.call(this),t.formats&&bA.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&_A.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),vA.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=$0;n==="id"&&(i={...$0},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(p,f){await o.call(this,p.$schema);let d=this._addSchema(p,f);return d.validate||a.call(this,d)}async function o(p){p&&!this.getSchema(p)&&await i.call(this,{$ref:p},!0)}async function a(p){try{return this._compileSchemaEnv(p)}catch(f){if(!(f instanceof E0.default))throw f;return u.call(this,f),await c.call(this,f.missingSchema),a.call(this,p)}}function u({missingSchema:p,missingRef:f}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${f} cannot be resolved`)}async function c(p){let f=await l.call(this,p);this.refs[p]||await o.call(this,f.$schema),this.refs[p]||this.addSchema(f,p,r)}async function l(p){let f=this._loading[p];if(f)return f;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let o;if(typeof t=="object"){let{schemaId:a}=this.opts;if(o=t[a],o!==void 0&&typeof o!="string")throw new Error(`schema ${a} must be string`)}return r=(0,fo.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(t){let r;for(;typeof(r=x0.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new lo.SchemaEnv({schema:{},schemaId:n});if(r=lo.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=x0.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,fo.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(OA.call(this,n,r),!r)return(0,Kf.eachItem)(n,o=>Wf.call(this,o)),this;EA.call(this,r);let i={...r,type:(0,Qa.getJSONTypes)(r.type),schemaType:(0,Qa.getJSONTypes)(r.schemaType)};return(0,Kf.eachItem)(n,i.type.length===0?o=>Wf.call(this,o,i):o=>i.type.forEach(a=>Wf.call(this,o,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(o=>o.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,o)=>i+r+o)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let o=i.split("/").slice(1),a=t;for(let u of o)a=a[u];for(let u in n){let c=n[u];if(typeof c!="object")continue;let{$data:l}=c.definition,p=a[u];l&&p&&(a[u]=C0(p))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,o=this.opts.addUsedSchema){let a,{schemaId:u}=this.opts;if(typeof t=="object")a=t[u];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,fo.normalizeId)(a||n);let l=fo.getSchemaRefs.call(this,t,n);return c=new lo.SchemaEnv({schema:t,schemaId:u,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),i&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):lo.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{lo.compileSchema.call(this,t)}finally{this.opts=r}}};s(Zf,"Ajv");var po=Zf;po.ValidationError=cA.default;po.MissingRefError=E0.default;ut.default=po;function O0(e,t,r,n="error"){for(let i in e){let o=i;o in t&&this.logger[n](`${r}: option ${i}. ${e[o]}`)}}s(O0,"checkOptions");function x0(e){return e=(0,fo.normalizeId)(e),this.schemas[e]||this.refs[e]}s(x0,"getSchEnv");function vA(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}s(vA,"addInitialSchemas");function bA(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}s(bA,"addInitialFormats");function _A(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}s(_A,"addInitialKeywords");function SA(){let e={...this.opts};for(let t of dA)delete e[t];return e}s(SA,"getMetaSchemaOptions");var wA={log(){},warn(){},error(){}};function $A(e){if(e===!1)return wA;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}s($A,"getLogger");var PA=/^[a-z_$][a-z0-9_$:-]*$/i;function OA(e,t){let{RULES:r}=this;if((0,Kf.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!PA.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}s(OA,"checkKeyword");function Wf(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,a=i?o.post:o.rules.find(({type:c})=>c===r);if(a||(a={type:r,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;let u={keyword:e,definition:{...t,type:(0,Qa.getJSONTypes)(t.type),schemaType:(0,Qa.getJSONTypes)(t.schemaType)}};t.before?xA.call(this,a,u,t.before):a.rules.push(u),o.all[e]=u,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}s(Wf,"addRule");function xA(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}s(xA,"addBeforeRule");function EA(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=C0(t)),e.validateSchema=this.compile(t,!0))}s(EA,"keywordMetaschema");var AA={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function C0(e){return{anyOf:[e,AA]}}s(C0,"schemaOrData")});var ho=b(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.callRef=ii.getValidate=void 0;var CA=ao(),I0=Jt(),Rt=oe(),Yi=Yt(),R0=uo(),Xa=he(),IA={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:a,opts:u,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return f();let p=R0.resolveRef.call(c,l,i,r);if(p===void 0)throw new CA.default(n.opts.uriResolver,i,r);if(p instanceof R0.SchemaEnv)return d(p);return h(p);function f(){if(o===l)return eu(e,a,o,o.$async);let y=t.scopeValue("root",{ref:l});return eu(e,(0,Rt._)`${y}.validate`,l,l.$async)}function d(y){let v=j0(e,y);eu(e,v,y,y.$async)}function h(y){let v=t.scopeValue("schema",u.code.source===!0?{ref:y,code:(0,Rt.stringify)(y)}:{ref:y}),g=t.name("valid"),$=e.subschema({schema:y,dataTypes:[],schemaPath:Rt.nil,topSchemaRef:v,errSchemaPath:r},g);e.mergeEvaluated($),e.ok(g)}}};function j0(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Rt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}s(j0,"getValidate");ii.getValidate=j0;function eu(e,t,r,n){let{gen:i,it:o}=e,{allErrors:a,schemaEnv:u,opts:c}=o,l=c.passContext?Yi.default.this:Rt.nil;n?p():f();function p(){if(!u.$async)throw new Error("async schema referenced by sync schema");let y=i.let("valid");i.try(()=>{i.code((0,Rt._)`await ${(0,I0.callValidateCode)(e,t,l)}`),h(t),a||i.assign(y,!0)},v=>{i.if((0,Rt._)`!(${v} instanceof ${o.ValidationError})`,()=>i.throw(v)),d(v),a||i.assign(y,!1)}),e.ok(y)}s(p,"callAsyncRef");function f(){e.result((0,I0.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}s(f,"callSyncRef");function d(y){let v=(0,Rt._)`${y}.errors`;i.assign(Yi.default.vErrors,(0,Rt._)`${Yi.default.vErrors} === null ? ${v} : ${Yi.default.vErrors}.concat(${v})`),i.assign(Yi.default.errors,(0,Rt._)`${Yi.default.vErrors}.length`)}s(d,"addErrorsFrom");function h(y){var v;if(!o.opts.unevaluated)return;let g=(v=r==null?void 0:r.validate)===null||v===void 0?void 0:v.evaluated;if(o.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(o.props=Xa.mergeEvaluated.props(i,g.props,o.props));else{let $=i.var("props",(0,Rt._)`${y}.evaluated.props`);o.props=Xa.mergeEvaluated.props(i,$,o.props,Rt.Name)}if(o.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(o.items=Xa.mergeEvaluated.items(i,g.items,o.items));else{let $=i.var("items",(0,Rt._)`${y}.evaluated.items`);o.items=Xa.mergeEvaluated.items(i,$,o.items,Rt.Name)}}s(h,"addEvaluatedFrom")}s(eu,"callRef");ii.callRef=eu;ii.default=IA});var k0=b(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});var RA=ho(),jA=["$schema","id","$defs",{keyword:"$comment"},"definitions",RA.default];Yf.default=jA});var N0=b(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});var Jf=Zi(),kA=oe(),mn=kA.operators,Qf={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:mn.LTE,fail:mn.GT},{okStr:"<",ok:mn.LT,fail:mn.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:mn.GTE,fail:mn.LT},{okStr:">",ok:mn.GT,fail:mn.LTE}]}},NA={message:s(e=>Jf.str`must be ${Xf(e).okStr} ${e.schemaCode}`,"message"),params:s(e=>Jf._`{comparison: ${Xf(e).okStr}, limit: ${e.schemaCode}}`,"params")},MA={keyword:Object.keys(Qf),type:"number",schemaType:"number",$data:!0,error:NA,code(e){let{data:t,schemaCode:r}=e;e.fail$data(Jf._`${t} ${Xf(e).fail} ${r} || isNaN(${t})`)}};function Xf(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[Qf[r].exclusive]?1:0;return Qf[r].ops[n]}s(Xf,"kwdOp");ep.default=MA});var T0=b(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});var M0={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},TA={keyword:Object.keys(M0),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=M0[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};tp.default=TA});var np=b(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});var mo=oe(),qA={message:s(({schemaCode:e})=>(0,mo.str)`must be multiple of ${e}`,"message"),params:s(({schemaCode:e})=>(0,mo._)`{multipleOf: ${e}}`,"params")},DA={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:qA,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),u=o?(0,mo._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,mo._)`${a} !== parseInt(${a})`;e.fail$data((0,mo._)`(${n} === 0 || (${a} = ${r}/${n}, ${u}))`)}};rp.default=DA});var D0=b(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});function q0(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}s(q0,"ucs2length");ip.default=q0;q0.code='require("ajv/dist/runtime/ucs2length").default'});var op=b(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});var si=oe(),LA=he(),FA=D0(),VA={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,si.str)`must NOT have ${r} than ${t} characters`},params:s(({schemaCode:e})=>(0,si._)`{limit: ${e}}`,"params")},BA={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:VA,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?si.operators.GT:si.operators.LT,a=i.opts.unicode===!1?(0,si._)`${r}.length`:(0,si._)`${(0,LA.useFunc)(e.gen,FA.default)}(${r})`;e.fail$data((0,si._)`${a} ${o} ${n}`)}};sp.default=BA});var up=b(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});var HA=Jt(),tu=oe(),UA={message:s(({schemaCode:e})=>(0,tu.str)`must match pattern "${e}"`,"message"),params:s(({schemaCode:e})=>(0,tu._)`{pattern: ${e}}`,"params")},zA={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:UA,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,a=o.opts.unicodeRegExp?"u":"",u=r?(0,tu._)`(new RegExp(${i}, ${a}))`:(0,HA.usePattern)(e,n);e.fail$data((0,tu._)`!${u}.test(${t})`)}};ap.default=zA});var lp=b(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});var go=oe(),GA={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,go.str)`must NOT have ${r} than ${t} properties`},params:s(({schemaCode:e})=>(0,go._)`{limit: ${e}}`,"params")},WA={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:GA,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?go.operators.GT:go.operators.LT;e.fail$data((0,go._)`Object.keys(${r}).length ${i} ${n}`)}};cp.default=WA});var pp=b(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});var yo=Jt(),vo=oe(),KA=he(),ZA={message:s(({params:{missingProperty:e}})=>(0,vo.str)`must have required property '${e}'`,"message"),params:s(({params:{missingProperty:e}})=>(0,vo._)`{missingProperty: ${e}}`,"params")},YA={keyword:"required",type:"object",schemaType:"array",$data:!0,error:ZA,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:a}=e,{opts:u}=a;if(!o&&r.length===0)return;let c=r.length>=u.loopRequired;if(a.allErrors?l():p(),u.strictRequired){let h=e.parentSchema.properties,{definedProperties:y}=e.it;for(let v of r)if((h==null?void 0:h[v])===void 0&&!y.has(v)){let g=a.schemaEnv.baseId+a.errSchemaPath,$=`required property "${v}" is not defined at "${g}" (strictRequired)`;(0,KA.checkStrictMode)(a,$,a.opts.strictRequired)}}function l(){if(c||o)e.block$data(vo.nil,f);else for(let h of r)(0,yo.checkReportMissingProp)(e,h)}s(l,"allErrorsMode");function p(){let h=t.let("missing");if(c||o){let y=t.let("valid",!0);e.block$data(y,()=>d(h,y)),e.ok(y)}else t.if((0,yo.checkMissingProp)(e,r,h)),(0,yo.reportMissingProp)(e,h),t.else()}s(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,yo.noPropertyInData)(t,i,h,u.ownProperties),()=>e.error())})}s(f,"loopAllRequired");function d(h,y){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(y,(0,yo.propertyInData)(t,i,h,u.ownProperties)),t.if((0,vo.not)(y),()=>{e.error(),t.break()})},vo.nil)}s(d,"loopUntilMissing")}};fp.default=YA});var hp=b(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});var bo=oe(),JA={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,bo.str)`must NOT have ${r} than ${t} items`},params:s(({schemaCode:e})=>(0,bo._)`{limit: ${e}}`,"params")},QA={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:JA,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?bo.operators.GT:bo.operators.LT;e.fail$data((0,bo._)`${r}.length ${i} ${n}`)}};dp.default=QA});var ru=b(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});var L0=xf();L0.code='require("ajv/dist/runtime/equal").default';mp.default=L0});var vp=b(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});var gp=ro(),ct=oe(),XA=he(),eC=ru(),tC={message:s(({params:{i:e,j:t}})=>(0,ct.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:s(({params:{i:e,j:t}})=>(0,ct._)`{i: ${e}, j: ${t}}`,"params")},rC={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:tC,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:a,it:u}=e;if(!n&&!i)return;let c=t.let("valid"),l=o.items?(0,gp.getSchemaTypes)(o.items):[];e.block$data(c,p,(0,ct._)`${a} === false`),e.ok(c);function p(){let y=t.let("i",(0,ct._)`${r}.length`),v=t.let("j");e.setParams({i:y,j:v}),t.assign(c,!0),t.if((0,ct._)`${y} > 1`,()=>(f()?d:h)(y,v))}s(p,"validateUniqueItems");function f(){return l.length>0&&!l.some(y=>y==="object"||y==="array")}s(f,"canOptimize");function d(y,v){let g=t.name("item"),$=(0,gp.checkDataTypes)(l,g,u.opts.strictNumbers,gp.DataType.Wrong),A=t.const("indices",(0,ct._)`{}`);t.for((0,ct._)`;${y}--;`,()=>{t.let(g,(0,ct._)`${r}[${y}]`),t.if($,(0,ct._)`continue`),l.length>1&&t.if((0,ct._)`typeof ${g} == "string"`,(0,ct._)`${g} += "_"`),t.if((0,ct._)`typeof ${A}[${g}] == "number"`,()=>{t.assign(v,(0,ct._)`${A}[${g}]`),e.error(),t.assign(c,!1).break()}).code((0,ct._)`${A}[${g}] = ${y}`)})}s(d,"loopN");function h(y,v){let g=(0,XA.useFunc)(t,eC.default),$=t.name("outer");t.label($).for((0,ct._)`;${y}--;`,()=>t.for((0,ct._)`${v} = ${y}; ${v}--;`,()=>t.if((0,ct._)`${g}(${r}[${y}], ${r}[${v}])`,()=>{e.error(),t.assign(c,!1).break($)})))}s(h,"loopN2")}};yp.default=rC});var Sp=b(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});var bp=oe(),nC=he(),iC=ru(),sC={message:"must be equal to constant",params:s(({schemaCode:e})=>(0,bp._)`{allowedValue: ${e}}`,"params")},oC={keyword:"const",$data:!0,error:sC,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,bp._)`!${(0,nC.useFunc)(t,iC.default)}(${r}, ${i})`):e.fail((0,bp._)`${o} !== ${r}`)}};_p.default=oC});var $p=b(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});var _o=oe(),aC=he(),uC=ru(),cC={message:"must be equal to one of the allowed values",params:s(({schemaCode:e})=>(0,_o._)`{allowedValues: ${e}}`,"params")},lC={keyword:"enum",schemaType:"array",$data:!0,error:cC,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let u=i.length>=a.opts.loopEnum,c,l=s(()=>c??(c=(0,aC.useFunc)(t,uC.default)),"getEql"),p;if(u||n)p=t.let("valid"),e.block$data(p,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let h=t.const("vSchema",o);p=(0,_o.or)(...i.map((y,v)=>d(h,v)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",o,h=>t.if((0,_o._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}s(f,"loopEnum");function d(h,y){let v=i[y];return typeof v=="object"&&v!==null?(0,_o._)`${l()}(${r}, ${h}[${y}])`:(0,_o._)`${r} === ${v}`}s(d,"equalCode")}};wp.default=lC});var F0=b(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});var fC=N0(),pC=T0(),dC=np(),hC=op(),mC=up(),gC=lp(),yC=pp(),vC=hp(),bC=vp(),_C=Sp(),SC=$p(),wC=[fC.default,pC.default,dC.default,hC.default,mC.default,gC.default,yC.default,vC.default,bC.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},_C.default,SC.default];Pp.default=wC});var xp=b(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.validateAdditionalItems=void 0;var oi=oe(),Op=he(),$C={message:s(({params:{len:e}})=>(0,oi.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,oi._)`{limit: ${e}}`,"params")},PC={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:$C,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Op.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}V0(e,n)}};function V0(e,t){let{gen:r,schema:n,data:i,keyword:o,it:a}=e;a.items=!0;let u=r.const("len",(0,oi._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,oi._)`${u} <= ${t.length}`);else if(typeof n=="object"&&!(0,Op.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,oi._)`${u} <= ${t.length}`);r.if((0,oi.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,u,p=>{e.subschema({keyword:o,dataProp:p,dataPropType:Op.Type.Num},l),a.allErrors||r.if((0,oi.not)(l),()=>r.break())})}s(c,"validateItems")}s(V0,"validateAdditionalItems");So.validateAdditionalItems=V0;So.default=PC});var Ep=b(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.validateTuple=void 0;var B0=oe(),nu=he(),OC=Jt(),xC={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return H0(e,"additionalItems",t);r.items=!0,!(0,nu.alwaysValidSchema)(r,t)&&e.ok((0,OC.validateArray)(e))}};function H0(e,t,r=e.schema){let{gen:n,parentSchema:i,data:o,keyword:a,it:u}=e;p(i),u.opts.unevaluated&&r.length&&u.items!==!0&&(u.items=nu.mergeEvaluated.items(n,r.length,u.items));let c=n.name("valid"),l=n.const("len",(0,B0._)`${o}.length`);r.forEach((f,d)=>{(0,nu.alwaysValidSchema)(u,f)||(n.if((0,B0._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},c)),e.ok(c))});function p(f){let{opts:d,errSchemaPath:h}=u,y=r.length,v=y===f.minItems&&(y===f.maxItems||f[t]===!1);if(d.strictTuples&&!v){let g=`"${a}" is ${y}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,nu.checkStrictMode)(u,g,d.strictTuples)}}s(p,"checkStrictTuple")}s(H0,"validateTuple");wo.validateTuple=H0;wo.default=xC});var U0=b(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});var EC=Ep(),AC={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:s(e=>(0,EC.validateTuple)(e,"items"),"code")};Ap.default=AC});var G0=b(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});var z0=oe(),CC=he(),IC=Jt(),RC=xp(),jC={message:s(({params:{len:e}})=>(0,z0.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,z0._)`{limit: ${e}}`,"params")},kC={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:jC,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,CC.alwaysValidSchema)(n,t)&&(i?(0,RC.validateAdditionalItems)(e,i):e.ok((0,IC.validateArray)(e)))}};Cp.default=kC});var W0=b(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});var Xt=oe(),iu=he(),NC={message:s(({params:{min:e,max:t}})=>t===void 0?(0,Xt.str)`must contain at least ${e} valid item(s)`:(0,Xt.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:s(({params:{min:e,max:t}})=>t===void 0?(0,Xt._)`{minContains: ${e}}`:(0,Xt._)`{minContains: ${e}, maxContains: ${t}}`,"params")},MC={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:NC,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e,a,u,{minContains:c,maxContains:l}=n;o.opts.next?(a=c===void 0?1:c,u=l):a=1;let p=t.const("len",(0,Xt._)`${i}.length`);if(e.setParams({min:a,max:u}),u===void 0&&a===0){(0,iu.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(u!==void 0&&a>u){(0,iu.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,iu.alwaysValidSchema)(o,r)){let v=(0,Xt._)`${p} >= ${a}`;u!==void 0&&(v=(0,Xt._)`${v} && ${p} <= ${u}`),e.pass(v);return}o.items=!0;let f=t.name("valid");u===void 0&&a===1?h(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),u!==void 0&&t.if((0,Xt._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let v=t.name("_valid"),g=t.let("count",0);h(v,()=>t.if(v,()=>y(g)))}s(d,"validateItemsWithCount");function h(v,g){t.forRange("i",0,p,$=>{e.subschema({keyword:"contains",dataProp:$,dataPropType:iu.Type.Num,compositeRule:!0},v),g()})}s(h,"validateItems");function y(v){t.code((0,Xt._)`${v}++`),u===void 0?t.if((0,Xt._)`${v} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,Xt._)`${v} > ${u}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,Xt._)`${v} >= ${a}`,()=>t.assign(f,!0)))}s(y,"checkLimits")}};Ip.default=MC});var su=b(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.validateSchemaDeps=Cr.validatePropertyDeps=Cr.error=void 0;var Rp=oe(),TC=he(),$o=Jt();Cr.error={message:s(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Rp.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:s(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Rp._)`{property: ${e},
12
12
  missingProperty: ${n},
13
13
  depsCount: ${t},
14
- deps: ${r}}`,"params")};var jC={keyword:"dependencies",type:"object",schemaType:"object",error:Cr.error,code(e){let[t,r]=kC(e);G0(e,t),z0(e,r)}};function kC({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}s(kC,"splitDependencies");function G0(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let a in t){let u=t[a];if(u.length===0)continue;let c=(0,wo.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:u.length,deps:u.join(", ")}),i.allErrors?r.if(c,()=>{for(let l of u)(0,wo.checkReportMissingProp)(e,l)}):(r.if((0,Ip._)`${c} && (${(0,wo.checkMissingProp)(e,u,o)})`),(0,wo.reportMissingProp)(e,o),r.else())}}s(G0,"validatePropertyDeps");Cr.validatePropertyDeps=G0;function z0(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,a=r.name("valid");for(let u in t)(0,RC.alwaysValidSchema)(o,t[u])||(r.if((0,wo.propertyInData)(r,n,u,o.opts.ownProperties),()=>{let c=e.subschema({keyword:i,schemaProp:u},a);e.mergeValidEvaluated(c,a)},()=>r.var(a,!0)),e.ok(a))}s(z0,"validateSchemaDeps");Cr.validateSchemaDeps=z0;Cr.default=jC});var K0=b(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});var W0=se(),NC=he(),MC={message:"property name must be valid",params:s(({params:e})=>(0,W0._)`{propertyName: ${e.propertyName}}`,"params")},TC={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:MC,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,NC.alwaysValidSchema)(i,r))return;let o=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},o),t.if((0,W0.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};Rp.default=TC});var kp=b(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});var su=Jt(),pr=se(),qC=Yt(),ou=he(),DC={message:"must NOT have additional properties",params:s(({params:e})=>(0,pr._)`{additionalProperty: ${e.additionalProperty}}`,"params")},LC={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:DC,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:a}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:u,opts:c}=a;if(a.props=!0,c.removeAdditional!=="all"&&(0,ou.alwaysValidSchema)(a,r))return;let l=(0,su.allSchemaProperties)(n.properties),p=(0,su.allSchemaProperties)(n.patternProperties);f(),e.ok((0,pr._)`${o} === ${qC.default.errors}`);function f(){t.forIn("key",i,g=>{!l.length&&!p.length?y(g):t.if(d(g),()=>y(g))})}s(f,"checkAdditionalProperties");function d(g){let P;if(l.length>8){let C=(0,ou.schemaRefOrVal)(a,n.properties,"properties");P=(0,su.isOwnProperty)(t,C,g)}else l.length?P=(0,pr.or)(...l.map(C=>(0,pr._)`${g} === ${C}`)):P=pr.nil;return p.length&&(P=(0,pr.or)(P,...p.map(C=>(0,pr._)`${(0,su.usePattern)(e,C)}.test(${g})`))),(0,pr.not)(P)}s(d,"isAdditional");function h(g){t.code((0,pr._)`delete ${i}[${g}]`)}s(h,"deleteAdditional");function y(g){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){h(g);return}if(r===!1){e.setParams({additionalProperty:g}),e.error(),u||t.break();return}if(typeof r=="object"&&!(0,ou.alwaysValidSchema)(a,r)){let P=t.name("valid");c.removeAdditional==="failing"?(v(g,P,!1),t.if((0,pr.not)(P),()=>{e.reset(),h(g)})):(v(g,P),u||t.if((0,pr.not)(P),()=>t.break()))}}s(y,"additionalPropertyCode");function v(g,P,C){let k={keyword:"additionalProperties",dataProp:g,dataPropType:ou.Type.Str};C===!1&&Object.assign(k,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(k,P)}s(v,"applyAdditionalSchema")}};jp.default=LC});var J0=b(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});var FC=so(),Z0=Jt(),Np=he(),Y0=kp(),BC={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Y0.default.code(new FC.KeywordCxt(o,Y0.default,"additionalProperties"));let a=(0,Z0.allSchemaProperties)(r);for(let f of a)o.definedProperties.add(f);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=Np.mergeEvaluated.props(t,(0,Np.toHash)(a),o.props));let u=a.filter(f=>!(0,Np.alwaysValidSchema)(o,r[f]));if(u.length===0)return;let c=t.name("valid");for(let f of u)l(f)?p(f):(t.if((0,Z0.propertyInData)(t,i,f,o.opts.ownProperties)),p(f),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(c);function l(f){return o.opts.useDefaults&&!o.compositeRule&&r[f].default!==void 0}s(l,"hasDefault");function p(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}s(p,"applyPropertySchema")}};Mp.default=BC});var tv=b(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});var Q0=Jt(),au=se(),X0=he(),ev=he(),VC={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:a}=o,u=(0,Q0.allSchemaProperties)(r),c=u.filter(v=>(0,X0.alwaysValidSchema)(o,r[v]));if(u.length===0||c.length===u.length&&(!o.opts.unevaluated||o.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,p=t.name("valid");o.props!==!0&&!(o.props instanceof au.Name)&&(o.props=(0,ev.evaluatedPropsToName)(t,o.props));let{props:f}=o;d();function d(){for(let v of u)l&&h(v),o.allErrors?y(v):(t.var(p,!0),y(v),t.if(p))}s(d,"validatePatternProperties");function h(v){for(let g in l)new RegExp(v).test(g)&&(0,X0.checkStrictMode)(o,`property ${g} matches pattern ${v} (use allowMatchingProperties)`)}s(h,"checkMatchingProperties");function y(v){t.forIn("key",n,g=>{t.if((0,au._)`${(0,Q0.usePattern)(e,v)}.test(${g})`,()=>{let P=c.includes(v);P||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:g,dataPropType:ev.Type.Str},p),o.opts.unevaluated&&f!==!0?t.assign((0,au._)`${f}[${g}]`,!0):!P&&!o.allErrors&&t.if((0,au.not)(p),()=>t.break())})})}s(y,"validateProperties")}};Tp.default=VC});var rv=b(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});var HC=he(),UC={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,HC.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"}};qp.default=UC});var nv=b(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});var GC=Jt(),zC={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:GC.validateUnion,error:{message:"must match a schema in anyOf"}};Dp.default=zC});var iv=b(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});var uu=se(),WC=he(),KC={message:"must match exactly one schema in oneOf",params:s(({params:e})=>(0,uu._)`{passingSchemas: ${e.passing}}`,"params")},ZC={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:KC,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let o=r,a=t.let("valid",!1),u=t.let("passing",null),c=t.name("_valid");e.setParams({passing:u}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((p,f)=>{let d;(0,WC.alwaysValidSchema)(i,p)?t.var(c,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&t.if((0,uu._)`${c} && ${a}`).assign(a,!1).assign(u,(0,uu._)`[${u}, ${f}]`).else(),t.if(c,()=>{t.assign(a,!0),t.assign(u,f),d&&e.mergeEvaluated(d,uu.Name)})})}s(l,"validateOneOf")}};Lp.default=ZC});var sv=b(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});var YC=he(),JC={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((o,a)=>{if((0,YC.alwaysValidSchema)(n,o))return;let u=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(u)})}};Fp.default=JC});var uv=b(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});var cu=se(),av=he(),QC={message:s(({params:e})=>(0,cu.str)`must match "${e.ifClause}" schema`,"message"),params:s(({params:e})=>(0,cu._)`{failingKeyword: ${e.ifClause}}`,"params")},XC={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:QC,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,av.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=ov(n,"then"),o=ov(n,"else");if(!i&&!o)return;let a=t.let("valid",!0),u=t.name("_valid");if(c(),e.reset(),i&&o){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(u,l("then",p),l("else",p))}else i?t.if(u,l("then")):t.if((0,cu.not)(u),l("else"));e.pass(a,()=>e.error(!0));function c(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(p)}s(c,"validateIf");function l(p,f){return()=>{let d=e.subschema({keyword:p},u);t.assign(a,u),e.mergeValidEvaluated(d,a),f?t.assign(f,(0,cu._)`${p}`):e.setParams({ifClause:p})}}s(l,"validateClause")}};function ov(e,t){let r=e.schema[t];return r!==void 0&&!(0,av.alwaysValidSchema)(e,r)}s(ov,"hasSchema");Bp.default=XC});var cv=b(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});var eI=he(),tI={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,eI.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Vp.default=tI});var Up=b(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});var rI=Op(),nI=B0(),iI=Ep(),sI=H0(),oI=U0(),aI=iu(),uI=K0(),cI=kp(),lI=J0(),fI=tv(),pI=rv(),dI=nv(),hI=iv(),mI=sv(),gI=uv(),yI=cv();function vI(e=!1){let t=[pI.default,dI.default,hI.default,mI.default,gI.default,yI.default,uI.default,cI.default,aI.default,lI.default,fI.default];return e?t.push(nI.default,sI.default):t.push(rI.default,iI.default),t.push(oI.default),t}s(vI,"getApplicator");Hp.default=vI});var lv=b(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});var Ye=se(),bI={message:s(({schemaCode:e})=>(0,Ye.str)`must match format "${e}"`,"message"),params:s(({schemaCode:e})=>(0,Ye._)`{format: ${e}}`,"params")},_I={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:bI,code(e,t){let{gen:r,data:n,$data:i,schema:o,schemaCode:a,it:u}=e,{opts:c,errSchemaPath:l,schemaEnv:p,self:f}=u;if(!c.validateFormats)return;i?d():h();function d(){let y=r.scopeValue("formats",{ref:f.formats,code:c.code.formats}),v=r.const("fDef",(0,Ye._)`${y}[${a}]`),g=r.let("fType"),P=r.let("format");r.if((0,Ye._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>r.assign(g,(0,Ye._)`${v}.type || "string"`).assign(P,(0,Ye._)`${v}.validate`),()=>r.assign(g,(0,Ye._)`"string"`).assign(P,v)),e.fail$data((0,Ye.or)(C(),k()));function C(){return c.strictSchema===!1?Ye.nil:(0,Ye._)`${a} && !${P}`}s(C,"unknownFmt");function k(){let A=p.$async?(0,Ye._)`(${v}.async ? await ${P}(${n}) : ${P}(${n}))`:(0,Ye._)`${P}(${n})`,I=(0,Ye._)`(typeof ${P} == "function" ? ${A} : ${P}.test(${n}))`;return(0,Ye._)`${P} && ${P} !== true && ${g} === ${t} && !${I}`}s(k,"invalidFmt")}s(d,"validate$DataFormat");function h(){let y=f.formats[o];if(!y){C();return}if(y===!0)return;let[v,g,P]=k(y);v===t&&e.pass(A());function C(){if(c.strictSchema===!1){f.logger.warn(I());return}throw new Error(I());function I(){return`unknown format "${o}" ignored in schema at path "${l}"`}}s(C,"unknownFormat");function k(I){let ae=I instanceof RegExp?(0,Ye.regexpCode)(I):c.code.formats?(0,Ye._)`${c.code.formats}${(0,Ye.getProperty)(o)}`:void 0,ue=r.scopeValue("formats",{key:o,ref:I,code:ae});return typeof I=="object"&&!(I instanceof RegExp)?[I.type||"string",I.validate,(0,Ye._)`${ue}.validate`]:["string",I,ue]}s(k,"getFormat");function A(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!p.$async)throw new Error("async format in sync schema");return(0,Ye._)`await ${P}(${n})`}return typeof g=="function"?(0,Ye._)`${P}(${n})`:(0,Ye._)`${P}.test(${n})`}s(A,"validCondition")}s(h,"validateFormat")}};Gp.default=_I});var Wp=b(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});var SI=lv(),wI=[SI.default];zp.default=wI});var fv=b(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});var $I=I0(),PI=q0(),OI=Up(),EI=Wp(),xI=["title","description","default"],AI=[$I.default,PI.default,OI.default(),EI.default,xI];Kp.default=AI});var dv=b(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.DiscrError=void 0;var pv;(function(e){e.Tag="tag",e.Mapping="mapping"})(pv||(lu.DiscrError=pv={}))});var Jp=b(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});var Yi=se(),Zp=dv(),hv=ao(),CI=oo(),II=he(),RI={message:s(({params:{discrError:e,tagName:t}})=>e===Zp.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:s(({params:{discrError:e,tag:t,tagName:r}})=>(0,Yi._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},jI={keyword:"discriminator",type:"object",schemaType:"object",error:RI,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:a}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let u=n.propertyName;if(typeof u!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let c=t.let("valid",!1),l=t.const("tag",(0,Yi._)`${r}${(0,Yi.getProperty)(u)}`);t.if((0,Yi._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:Zp.DiscrError.Tag,tag:l,tagName:u})),e.ok(c);function p(){let h=d();t.if(!1);for(let y in h)t.elseIf((0,Yi._)`${l} === ${y}`),t.assign(c,f(h[y]));t.else(),e.error(!1,{discrError:Zp.DiscrError.Mapping,tag:l,tagName:u}),t.endIf()}s(p,"validateMapping");function f(h){let y=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:h},y);return e.mergeEvaluated(v,Yi.Name),y}s(f,"applyTagSchema");function d(){var h;let y={},v=P(i),g=!0;for(let A=0;A<a.length;A++){let I=a[A];if(I!=null&&I.$ref&&!(0,II.schemaHasRulesButRef)(I,o.self.RULES)){let ue=I.$ref;if(I=hv.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,ue),I instanceof hv.SchemaEnv&&(I=I.schema),I===void 0)throw new CI.default(o.opts.uriResolver,o.baseId,ue)}let ae=(h=I==null?void 0:I.properties)===null||h===void 0?void 0:h[u];if(typeof ae!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${u}"`);g=g&&(v||P(I)),C(ae,A)}if(!g)throw new Error(`discriminator: "${u}" must be required`);return y;function P({required:A}){return Array.isArray(A)&&A.includes(u)}function C(A,I){if(A.const)k(A.const,I);else if(A.enum)for(let ae of A.enum)k(ae,I);else throw new Error(`discriminator: "properties/${u}" must have "const" or "enum"`)}function k(A,I){if(typeof A!="string"||A in y)throw new Error(`discriminator: "${u}" values must be unique strings`);y[A]=I}}s(d,"getMapping")}};Yp.default=jI});var mv=b((Z6,kI)=>{kI.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 vv=b((tt,yv)=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.CodeGen=tt.Name=tt.nil=tt.stringify=tt.str=tt._=tt.KeywordCxt=void 0;var NI=Ki(),MI=fv(),TI=Jp(),gv=mv(),qI=["/properties"],fu="http://json-schema.org/draft-04/schema",Qp=class Qp extends NI.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),MI.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(TI.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(gv,qI):gv;this.addMetaSchema(t,fu,!1),this.refs["http://json-schema.org/schema"]=fu}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(fu)?fu:void 0)}};s(Qp,"Ajv");var pu=Qp;yv.exports=tt=pu;Object.defineProperty(tt,"__esModule",{value:!0});tt.default=pu;var DI=Ki();Object.defineProperty(tt,"KeywordCxt",{enumerable:!0,get:s(function(){return DI.KeywordCxt},"get")});var Ji=Ki();Object.defineProperty(tt,"_",{enumerable:!0,get:s(function(){return Ji._},"get")});Object.defineProperty(tt,"str",{enumerable:!0,get:s(function(){return Ji.str},"get")});Object.defineProperty(tt,"stringify",{enumerable:!0,get:s(function(){return Ji.stringify},"get")});Object.defineProperty(tt,"nil",{enumerable:!0,get:s(function(){return Ji.nil},"get")});Object.defineProperty(tt,"Name",{enumerable:!0,get:s(function(){return Ji.Name},"get")});Object.defineProperty(tt,"CodeGen",{enumerable:!0,get:s(function(){return Ji.CodeGen},"get")})});var bv=b(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});var LI={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Xp.default=LI});var _v=b(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});var FI=bv(),BI=po(),VI=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",FI.default,BI.default];ed.default=VI});var Sv=b(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});var du=se(),gn=du.operators,hu={maximum:{okStr:"<=",ok:gn.LTE,fail:gn.GT},minimum:{okStr:">=",ok:gn.GTE,fail:gn.LT},exclusiveMaximum:{okStr:"<",ok:gn.LT,fail:gn.GTE},exclusiveMinimum:{okStr:">",ok:gn.GT,fail:gn.LTE}},HI={message:s(({keyword:e,schemaCode:t})=>(0,du.str)`must be ${hu[e].okStr} ${t}`,"message"),params:s(({keyword:e,schemaCode:t})=>(0,du._)`{comparison: ${hu[e].okStr}, limit: ${t}}`,"params")},UI={keyword:Object.keys(hu),type:"number",schemaType:"number",$data:!0,error:HI,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,du._)`${r} ${hu[t].fail} ${n} || isNaN(${r})`)}};td.default=UI});var wv=b(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});var GI=Sv(),zI=rp(),WI=sp(),KI=ap(),ZI=cp(),YI=fp(),JI=dp(),QI=yp(),XI=_p(),eR=wp(),tR=[GI.default,zI.default,WI.default,KI.default,ZI.default,YI.default,JI.default,QI.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},XI.default,eR.default];rd.default=tR});var id=b($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.dynamicAnchor=void 0;var nd=se(),rR=Yt(),$v=ao(),nR=po(),iR={keyword:"$dynamicAnchor",schemaType:"string",code:s(e=>Pv(e,e.schema),"code")};function Pv(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,nd._)`${rR.default.dynamicAnchors}${(0,nd.getProperty)(t)}`,o=n.errSchemaPath==="#"?n.validateName:sR(e);r.if((0,nd._)`!${i}`,()=>r.assign(i,o))}s(Pv,"dynamicAnchor");$o.dynamicAnchor=Pv;function sR(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:o,localRefs:a,meta:u}=t.root,{schemaId:c}=n.opts,l=new $v.SchemaEnv({schema:r,schemaId:c,root:i,baseId:o,localRefs:a,meta:u});return $v.compileSchema.call(n,l),(0,nR.getValidate)(e,l)}s(sR,"_getValidate");$o.default=iR});var sd=b(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.dynamicRef=void 0;var Ov=se(),oR=Yt(),Ev=po(),aR={keyword:"$dynamicRef",schemaType:"string",code:s(e=>xv(e,e.schema),"code")};function xv(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let o=t.slice(1);if(i.allErrors)a();else{let c=r.let("valid",!1);a(c),e.ok(c)}function a(c){if(i.schemaEnv.root.dynamicAnchors[o]){let l=r.let("_v",(0,Ov._)`${oR.default.dynamicAnchors}${(0,Ov.getProperty)(o)}`);r.if(l,u(l,c),u(i.validateName,c))}else u(i.validateName,c)()}s(a,"_dynamicRef");function u(c,l){return l?()=>r.block(()=>{(0,Ev.callRef)(e,c),r.let(l,!0)}):()=>(0,Ev.callRef)(e,c)}s(u,"_callRef")}s(xv,"dynamicRef");Po.dynamicRef=xv;Po.default=aR});var Av=b(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});var uR=id(),cR=he(),lR={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,uR.dynamicAnchor)(e,""):(0,cR.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};od.default=lR});var Cv=b(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});var fR=sd(),pR={keyword:"$recursiveRef",schemaType:"string",code:s(e=>(0,fR.dynamicRef)(e,e.schema),"code")};ad.default=pR});var Iv=b(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});var dR=id(),hR=sd(),mR=Av(),gR=Cv(),yR=[dR.default,hR.default,mR.default,gR.default];ud.default=yR});var jv=b(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});var Rv=iu(),vR={keyword:"dependentRequired",type:"object",schemaType:"object",error:Rv.error,code:s(e=>(0,Rv.validatePropertyDeps)(e),"code")};cd.default=vR});var kv=b(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});var bR=iu(),_R={keyword:"dependentSchemas",type:"object",schemaType:"object",code:s(e=>(0,bR.validateSchemaDeps)(e),"code")};ld.default=_R});var Nv=b(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});var SR=he(),wR={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,SR.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};fd.default=wR});var Mv=b(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});var $R=jv(),PR=kv(),OR=Nv(),ER=[$R.default,PR.default,OR.default];pd.default=ER});var qv=b(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});var yn=se(),Tv=he(),xR=Yt(),AR={message:"must NOT have unevaluated properties",params:s(({params:e})=>(0,yn._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},CR={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:AR,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:o}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:u}=o;u instanceof yn.Name?t.if((0,yn._)`${u} !== true`,()=>t.forIn("key",n,f=>t.if(l(u,f),()=>c(f)))):u!==!0&&t.forIn("key",n,f=>u===void 0?c(f):t.if(p(u,f),()=>c(f))),o.props=!0,e.ok((0,yn._)`${i} === ${xR.default.errors}`);function c(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,Tv.alwaysValidSchema)(o,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:Tv.Type.Str},d),a||t.if((0,yn.not)(d),()=>t.break())}}s(c,"unevaluatedPropCode");function l(f,d){return(0,yn._)`!${f} || !${f}[${d}]`}s(l,"unevaluatedDynamic");function p(f,d){let h=[];for(let y in f)f[y]===!0&&h.push((0,yn._)`${d} !== ${y}`);return(0,yn.and)(...h)}s(p,"unevaluatedStatic")}};dd.default=CR});var Lv=b(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});var ai=se(),Dv=he(),IR={message:s(({params:{len:e}})=>(0,ai.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,ai._)`{limit: ${e}}`,"params")},RR={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:IR,code(e){let{gen:t,schema:r,data:n,it:i}=e,o=i.items||0;if(o===!0)return;let a=t.const("len",(0,ai._)`${n}.length`);if(r===!1)e.setParams({len:o}),e.fail((0,ai._)`${a} > ${o}`);else if(typeof r=="object"&&!(0,Dv.alwaysValidSchema)(i,r)){let c=t.var("valid",(0,ai._)`${a} <= ${o}`);t.if((0,ai.not)(c),()=>u(c,o)),e.ok(c)}i.items=!0;function u(c,l){t.forRange("i",l,a,p=>{e.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:Dv.Type.Num},c),i.allErrors||t.if((0,ai.not)(c),()=>t.break())})}s(u,"validateItems")}};hd.default=RR});var Fv=b(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});var jR=qv(),kR=Lv(),NR=[jR.default,kR.default];md.default=NR});var Bv=b(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.contentVocabulary=Qi.metadataVocabulary=void 0;Qi.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Qi.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Hv=b(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});var MR=_v(),TR=wv(),qR=Up(),DR=Iv(),LR=Mv(),FR=Fv(),BR=Wp(),Vv=Bv(),VR=[DR.default,MR.default,TR.default,(0,qR.default)(!0),BR.default,Vv.metadataVocabulary,Vv.contentVocabulary,LR.default,FR.default];gd.default=VR});var Uv=b(($7,HR)=>{HR.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 Gv=b((P7,UR)=>{UR.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 zv=b((O7,GR)=>{GR.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 Wv=b((E7,zR)=>{zR.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 Kv=b((x7,WR)=>{WR.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 Zv=b((A7,KR)=>{KR.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 Yv=b((C7,ZR)=>{ZR.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 Jv=b((I7,YR)=>{YR.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 Qv=b(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});var JR=Uv(),QR=Gv(),XR=zv(),ej=Wv(),tj=Kv(),rj=Zv(),nj=Yv(),ij=Jv(),sj=["/properties"];function oj(e){return[JR,QR,XR,ej,tj,t(this,rj),nj,t(this,ij)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,sj):n}s(t,"with$data")}s(oj,"addMetaSchema2020");yd.default=oj});var Xv=b((Me,bd)=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.MissingRefError=Me.ValidationError=Me.CodeGen=Me.Name=Me.nil=Me.stringify=Me.str=Me._=Me.KeywordCxt=Me.Ajv2020=void 0;var aj=Ki(),uj=Hv(),cj=Jp(),lj=Qv(),vd="https://json-schema.org/draft/2020-12/schema",_d=class _d extends aj.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),uj.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(cj.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(lj.default.call(this,t),this.refs["http://json-schema.org/schema"]=vd)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(vd)?vd:void 0)}};s(_d,"Ajv2020");var Xi=_d;Me.Ajv2020=Xi;bd.exports=Me=Xi;bd.exports.Ajv2020=Xi;Object.defineProperty(Me,"__esModule",{value:!0});Me.default=Xi;var fj=so();Object.defineProperty(Me,"KeywordCxt",{enumerable:!0,get:s(function(){return fj.KeywordCxt},"get")});var es=se();Object.defineProperty(Me,"_",{enumerable:!0,get:s(function(){return es._},"get")});Object.defineProperty(Me,"str",{enumerable:!0,get:s(function(){return es.str},"get")});Object.defineProperty(Me,"stringify",{enumerable:!0,get:s(function(){return es.stringify},"get")});Object.defineProperty(Me,"nil",{enumerable:!0,get:s(function(){return es.nil},"get")});Object.defineProperty(Me,"Name",{enumerable:!0,get:s(function(){return es.Name},"get")});Object.defineProperty(Me,"CodeGen",{enumerable:!0,get:s(function(){return es.CodeGen},"get")});var pj=za();Object.defineProperty(Me,"ValidationError",{enumerable:!0,get:s(function(){return pj.default},"get")});var dj=oo();Object.defineProperty(Me,"MissingRefError",{enumerable:!0,get:s(function(){return dj.default},"get")})});var eb=b((N7,hj)=>{hj.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 tb=b((M7,mj)=>{mj.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 rb=b((T7,gj)=>{gj.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 nb=b((q7,yj)=>{yj.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 ib=b((ot,ts)=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.openapi=ot.openapiV31=ot.openapiV3=ot.openapiV2=ot.openapiV1=void 0;ot.openapiV1=eb();ot.openapiV2=tb();ot.openapiV3=rb();ot.openapiV31=nb();ot.openapi={v1:ot.openapiV1,v2:ot.openapiV2,v3:ot.openapiV3,v31:ot.openapiV31};ot.default=ot.openapi;typeof ts=="object"&&typeof ts.exports=="object"&&(ts.exports=Object.assign(ts.exports.default,ts.exports))});var $d=b((D7,sb)=>{"use strict";var vj=xa(),{ono:bj}=ur(),_j=vv(),Sj=Xv(),{openapi:Sd}=ib();sb.exports=wj;function wj(e){let t,r;if(e.swagger)r=Sd.v2,t=wd();else if(e.openapi.startsWith("3.1")){r=Sd.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=wd(!1)}else r=Sd.v3,t=wd();if(!t.validate(r,e)){let i=t.errors,o=`Swagger schema validation failed.
15
- `+$j(i);throw bj.syntax(i,{details:i},o)}}s(wj,"validateSchema");function wd(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new _j(t):new Sj(t)}s(wd,"initializeAjv");function $j(e,t){t=t||" ";let r="";for(let n of e)r+=vj.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
16
- `);return r}s($j,"formatAjvError")});var ab=b((F7,ob)=>{"use strict";ob.exports=["get","put","post","delete","options","head","patch"]});var Ed=b((B7,fb)=>{"use strict";var Pj=xa(),{ono:ht}=ur(),Oj=ab(),Pd=["array","boolean","integer","number","string"],cb=["array","boolean","integer","number","string","object","null",void 0];fb.exports=Ej;function Ej(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let i of t){let o=e.paths[i],a="/paths"+i;o&&i.indexOf("/")===0&&xj(e,o,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let o=e.definitions[i],a="/definitions/"+i;lb(o,a)}}s(Ej,"validateSpec");function xj(e,t,r,n){for(let i of Oj){let o=t[i],a=r+"/"+i;if(o){let u=o.operationId;if(u)if(n.indexOf(u)===-1)n.push(u);else throw ht.syntax(`Validation failed. Duplicate operation id '${u}'`);Aj(e,t,r,o,a);let c=Object.keys(o.responses||{});for(let l of c){let p=o.responses[l],f=a+"/responses/"+l;jj(l,p||{},f)}}}}s(xj,"validatePath");function Aj(e,t,r,n,i){let o=t.parameters||[],a=n.parameters||[];try{ub(o)}catch(c){throw ht.syntax(c,`Validation failed. ${r} has duplicate parameters`)}try{ub(a)}catch(c){throw ht.syntax(c,`Validation failed. ${i} has duplicate parameters`)}let u=o.reduce((c,l)=>(c.some(f=>f.in===l.in&&f.name===l.name)||c.push(l),c),a.slice());Cj(u,i),Ij(u,r,i),Rj(u,e,n,i)}s(Aj,"validateParameters");function Cj(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw ht.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw ht.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}s(Cj,"validateBodyParameters");function Ij(e,t,r){let n=t.match(Pj.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let o=i+1;o<n.length;o++)if(n[i]===n[o])throw ht.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 ht.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${r}`);let o=n.indexOf("{"+i.name+"}");if(o===-1)throw ht.syntax(`Validation failed. ${r} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(o,1)}if(n.length>0)throw ht.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}s(Ij,"validatePathParameters");function Rj(e,t,r,n){for(let i of e){let o=n+"/parameters/"+i.name,a,u;switch(i.in){case"body":a=i.schema,u=cb;break;case"formData":a=i,u=Pd.concat("file");break;default:a=i,u=Pd}if(Od(a,o,u),lb(a,o),a.type==="file"){let c=/multipart\/(.*\+)?form-data/,l=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some(d=>c.test(d)||l.test(d)))throw ht.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}s(Rj,"validateParameterTypes");function ub(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 ht.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}s(ub,"checkForDuplicates");function jj(e,t,r){if(e!=="default"&&(e<100||e>599))throw ht.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let i of n){let o=t.headers[i],a=r+"/headers/"+i;Od(o,a,Pd)}if(t.schema){let i=cb.concat("file");if(i.indexOf(t.schema.type)===-1)throw ht.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);Od(t.schema,r+"/schema",i)}}s(jj,"validateResponse");function Od(e,t,r){if(r.indexOf(e.type)===-1)throw ht.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw ht.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}s(Od,"validateSchema");function lb(e,t){function r(n,i){if(n.properties)for(let o in n.properties)n.properties.hasOwnProperty(o)&&(i[o]=n.properties[o]);if(n.allOf)for(let o of n.allOf)r(o,i)}if(s(r,"collectProperties"),e.required&&Array.isArray(e.required)){let n={};r(e,n);for(let i of e.required)if(!n[i])throw ht.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}s(lb,"validateRequiredPropertiesExist")});var hr=b(dr=>{"use strict";var{Ono:pb}=ur(),{stripHash:db,toFileSystemPath:kj}=Dt(),rs,vn=dr.JSONParserError=(rs=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,pb.extend(this)}},s(rs,"JSONParserError"),rs);bn(vn);var ui,hb=dr.JSONParserErrorGroup=(ui=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${kj(t.$refs._root$Ref.path)}'`,pb.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 ui.getParserErrors(this.files)}},s(ui,"JSONParserErrorGroup"),ui);bn(hb);var ns,Nj=dr.ParserError=(ns=class extends vn{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},s(ns,"ParserError"),ns);bn(Nj);var is,Mj=dr.UnmatchedParserError=(is=class extends vn{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},s(is,"UnmatchedParserError"),is);bn(Mj);var ss,Tj=dr.ResolverError=(ss=class extends vn{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},s(ss,"ResolverError"),ss);bn(Tj);var os,qj=dr.UnmatchedResolverError=(os=class extends vn{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},s(os,"UnmatchedResolverError"),os);bn(qj);var as,Dj=dr.MissingPointerError=(as=class extends vn{constructor(t,r){super(`Token "${t}" does not exist.`,db(r)),this.code="EMISSINGPOINTER"}},s(as,"MissingPointerError"),as);bn(Dj);var us,Lj=dr.InvalidPointerError=(us=class extends vn{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,db(r)),this.code="EINVALIDPOINTER"}},s(us,"InvalidPointerError"),us);bn(Lj);function bn(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}s(bn,"setErrorName");dr.isHandledError=function(e){return e instanceof vn||e instanceof hb};dr.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var gb=b((G7,mb)=>{"use strict";var{ParserError:Fj}=hr();mb.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 Fj(r.message,e.url)}}else return t}}});var li=b((z7,ci)=>{"use strict";function yb(e){return typeof e>"u"||e===null}s(yb,"isNothing");function Bj(e){return typeof e=="object"&&e!==null}s(Bj,"isObject");function Vj(e){return Array.isArray(e)?e:yb(e)?[]:[e]}s(Vj,"toArray");function Hj(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=t[i];return e}s(Hj,"extend");function Uj(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}s(Uj,"repeat");function Gj(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}s(Gj,"isNegativeZero");ci.exports.isNothing=yb;ci.exports.isObject=Bj;ci.exports.toArray=Vj;ci.exports.repeat=Uj;ci.exports.isNegativeZero=Gj;ci.exports.extend=Hj});var cs=b((K7,vb)=>{"use strict";function Oo(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}s(Oo,"YAMLException");Oo.prototype=Object.create(Error.prototype);Oo.prototype.constructor=Oo;Oo.prototype.toString=s(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");vb.exports=Oo});var Sb=b((Y7,_b)=>{"use strict";var bb=li();function xd(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}s(xd,"Mark");xd.prototype.getSnippet=s(function(t,r){var n,i,o,a,u;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
14
+ deps: ${r}}`,"params")};var qC={keyword:"dependencies",type:"object",schemaType:"object",error:Cr.error,code(e){let[t,r]=DC(e);K0(e,t),Z0(e,r)}};function DC({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}s(DC,"splitDependencies");function K0(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let a in t){let u=t[a];if(u.length===0)continue;let c=(0,$o.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:u.length,deps:u.join(", ")}),i.allErrors?r.if(c,()=>{for(let l of u)(0,$o.checkReportMissingProp)(e,l)}):(r.if((0,Rp._)`${c} && (${(0,$o.checkMissingProp)(e,u,o)})`),(0,$o.reportMissingProp)(e,o),r.else())}}s(K0,"validatePropertyDeps");Cr.validatePropertyDeps=K0;function Z0(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,a=r.name("valid");for(let u in t)(0,TC.alwaysValidSchema)(o,t[u])||(r.if((0,$o.propertyInData)(r,n,u,o.opts.ownProperties),()=>{let c=e.subschema({keyword:i,schemaProp:u},a);e.mergeValidEvaluated(c,a)},()=>r.var(a,!0)),e.ok(a))}s(Z0,"validateSchemaDeps");Cr.validateSchemaDeps=Z0;Cr.default=qC});var J0=b(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});var Y0=oe(),LC=he(),FC={message:"property name must be valid",params:s(({params:e})=>(0,Y0._)`{propertyName: ${e.propertyName}}`,"params")},VC={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:FC,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,LC.alwaysValidSchema)(i,r))return;let o=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},o),t.if((0,Y0.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};jp.default=VC});var Np=b(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});var ou=Jt(),pr=oe(),BC=Yt(),au=he(),HC={message:"must NOT have additional properties",params:s(({params:e})=>(0,pr._)`{additionalProperty: ${e.additionalProperty}}`,"params")},UC={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:HC,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:a}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:u,opts:c}=a;if(a.props=!0,c.removeAdditional!=="all"&&(0,au.alwaysValidSchema)(a,r))return;let l=(0,ou.allSchemaProperties)(n.properties),p=(0,ou.allSchemaProperties)(n.patternProperties);f(),e.ok((0,pr._)`${o} === ${BC.default.errors}`);function f(){t.forIn("key",i,g=>{!l.length&&!p.length?y(g):t.if(d(g),()=>y(g))})}s(f,"checkAdditionalProperties");function d(g){let $;if(l.length>8){let A=(0,au.schemaRefOrVal)(a,n.properties,"properties");$=(0,ou.isOwnProperty)(t,A,g)}else l.length?$=(0,pr.or)(...l.map(A=>(0,pr._)`${g} === ${A}`)):$=pr.nil;return p.length&&($=(0,pr.or)($,...p.map(A=>(0,pr._)`${(0,ou.usePattern)(e,A)}.test(${g})`))),(0,pr.not)($)}s(d,"isAdditional");function h(g){t.code((0,pr._)`delete ${i}[${g}]`)}s(h,"deleteAdditional");function y(g){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){h(g);return}if(r===!1){e.setParams({additionalProperty:g}),e.error(),u||t.break();return}if(typeof r=="object"&&!(0,au.alwaysValidSchema)(a,r)){let $=t.name("valid");c.removeAdditional==="failing"?(v(g,$,!1),t.if((0,pr.not)($),()=>{e.reset(),h(g)})):(v(g,$),u||t.if((0,pr.not)($),()=>t.break()))}}s(y,"additionalPropertyCode");function v(g,$,A){let k={keyword:"additionalProperties",dataProp:g,dataPropType:au.Type.Str};A===!1&&Object.assign(k,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(k,$)}s(v,"applyAdditionalSchema")}};kp.default=UC});var ev=b(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});var zC=oo(),Q0=Jt(),Mp=he(),X0=Np(),GC={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&X0.default.code(new zC.KeywordCxt(o,X0.default,"additionalProperties"));let a=(0,Q0.allSchemaProperties)(r);for(let f of a)o.definedProperties.add(f);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=Mp.mergeEvaluated.props(t,(0,Mp.toHash)(a),o.props));let u=a.filter(f=>!(0,Mp.alwaysValidSchema)(o,r[f]));if(u.length===0)return;let c=t.name("valid");for(let f of u)l(f)?p(f):(t.if((0,Q0.propertyInData)(t,i,f,o.opts.ownProperties)),p(f),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(c);function l(f){return o.opts.useDefaults&&!o.compositeRule&&r[f].default!==void 0}s(l,"hasDefault");function p(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}s(p,"applyPropertySchema")}};Tp.default=GC});var iv=b(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});var tv=Jt(),uu=oe(),rv=he(),nv=he(),WC={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:a}=o,u=(0,tv.allSchemaProperties)(r),c=u.filter(v=>(0,rv.alwaysValidSchema)(o,r[v]));if(u.length===0||c.length===u.length&&(!o.opts.unevaluated||o.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,p=t.name("valid");o.props!==!0&&!(o.props instanceof uu.Name)&&(o.props=(0,nv.evaluatedPropsToName)(t,o.props));let{props:f}=o;d();function d(){for(let v of u)l&&h(v),o.allErrors?y(v):(t.var(p,!0),y(v),t.if(p))}s(d,"validatePatternProperties");function h(v){for(let g in l)new RegExp(v).test(g)&&(0,rv.checkStrictMode)(o,`property ${g} matches pattern ${v} (use allowMatchingProperties)`)}s(h,"checkMatchingProperties");function y(v){t.forIn("key",n,g=>{t.if((0,uu._)`${(0,tv.usePattern)(e,v)}.test(${g})`,()=>{let $=c.includes(v);$||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:g,dataPropType:nv.Type.Str},p),o.opts.unevaluated&&f!==!0?t.assign((0,uu._)`${f}[${g}]`,!0):!$&&!o.allErrors&&t.if((0,uu.not)(p),()=>t.break())})})}s(y,"validateProperties")}};qp.default=WC});var sv=b(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});var KC=he(),ZC={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,KC.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"}};Dp.default=ZC});var ov=b(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});var YC=Jt(),JC={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:YC.validateUnion,error:{message:"must match a schema in anyOf"}};Lp.default=JC});var av=b(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});var cu=oe(),QC=he(),XC={message:"must match exactly one schema in oneOf",params:s(({params:e})=>(0,cu._)`{passingSchemas: ${e.passing}}`,"params")},eI={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:XC,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let o=r,a=t.let("valid",!1),u=t.let("passing",null),c=t.name("_valid");e.setParams({passing:u}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((p,f)=>{let d;(0,QC.alwaysValidSchema)(i,p)?t.var(c,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&t.if((0,cu._)`${c} && ${a}`).assign(a,!1).assign(u,(0,cu._)`[${u}, ${f}]`).else(),t.if(c,()=>{t.assign(a,!0),t.assign(u,f),d&&e.mergeEvaluated(d,cu.Name)})})}s(l,"validateOneOf")}};Fp.default=eI});var uv=b(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});var tI=he(),rI={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((o,a)=>{if((0,tI.alwaysValidSchema)(n,o))return;let u=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(u)})}};Vp.default=rI});var fv=b(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});var lu=oe(),lv=he(),nI={message:s(({params:e})=>(0,lu.str)`must match "${e.ifClause}" schema`,"message"),params:s(({params:e})=>(0,lu._)`{failingKeyword: ${e.ifClause}}`,"params")},iI={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:nI,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,lv.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=cv(n,"then"),o=cv(n,"else");if(!i&&!o)return;let a=t.let("valid",!0),u=t.name("_valid");if(c(),e.reset(),i&&o){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(u,l("then",p),l("else",p))}else i?t.if(u,l("then")):t.if((0,lu.not)(u),l("else"));e.pass(a,()=>e.error(!0));function c(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(p)}s(c,"validateIf");function l(p,f){return()=>{let d=e.subschema({keyword:p},u);t.assign(a,u),e.mergeValidEvaluated(d,a),f?t.assign(f,(0,lu._)`${p}`):e.setParams({ifClause:p})}}s(l,"validateClause")}};function cv(e,t){let r=e.schema[t];return r!==void 0&&!(0,lv.alwaysValidSchema)(e,r)}s(cv,"hasSchema");Bp.default=iI});var pv=b(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});var sI=he(),oI={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,sI.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Hp.default=oI});var zp=b(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});var aI=xp(),uI=U0(),cI=Ep(),lI=G0(),fI=W0(),pI=su(),dI=J0(),hI=Np(),mI=ev(),gI=iv(),yI=sv(),vI=ov(),bI=av(),_I=uv(),SI=fv(),wI=pv();function $I(e=!1){let t=[yI.default,vI.default,bI.default,_I.default,SI.default,wI.default,dI.default,hI.default,pI.default,mI.default,gI.default];return e?t.push(uI.default,lI.default):t.push(aI.default,cI.default),t.push(fI.default),t}s($I,"getApplicator");Up.default=$I});var dv=b(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});var Ye=oe(),PI={message:s(({schemaCode:e})=>(0,Ye.str)`must match format "${e}"`,"message"),params:s(({schemaCode:e})=>(0,Ye._)`{format: ${e}}`,"params")},OI={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:PI,code(e,t){let{gen:r,data:n,$data:i,schema:o,schemaCode:a,it:u}=e,{opts:c,errSchemaPath:l,schemaEnv:p,self:f}=u;if(!c.validateFormats)return;i?d():h();function d(){let y=r.scopeValue("formats",{ref:f.formats,code:c.code.formats}),v=r.const("fDef",(0,Ye._)`${y}[${a}]`),g=r.let("fType"),$=r.let("format");r.if((0,Ye._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>r.assign(g,(0,Ye._)`${v}.type || "string"`).assign($,(0,Ye._)`${v}.validate`),()=>r.assign(g,(0,Ye._)`"string"`).assign($,v)),e.fail$data((0,Ye.or)(A(),k()));function A(){return c.strictSchema===!1?Ye.nil:(0,Ye._)`${a} && !${$}`}s(A,"unknownFmt");function k(){let C=p.$async?(0,Ye._)`(${v}.async ? await ${$}(${n}) : ${$}(${n}))`:(0,Ye._)`${$}(${n})`,I=(0,Ye._)`(typeof ${$} == "function" ? ${C} : ${$}.test(${n}))`;return(0,Ye._)`${$} && ${$} !== true && ${g} === ${t} && !${I}`}s(k,"invalidFmt")}s(d,"validate$DataFormat");function h(){let y=f.formats[o];if(!y){A();return}if(y===!0)return;let[v,g,$]=k(y);v===t&&e.pass(C());function A(){if(c.strictSchema===!1){f.logger.warn(I());return}throw new Error(I());function I(){return`unknown format "${o}" ignored in schema at path "${l}"`}}s(A,"unknownFormat");function k(I){let fe=I instanceof RegExp?(0,Ye.regexpCode)(I):c.code.formats?(0,Ye._)`${c.code.formats}${(0,Ye.getProperty)(o)}`:void 0,ne=r.scopeValue("formats",{key:o,ref:I,code:fe});return typeof I=="object"&&!(I instanceof RegExp)?[I.type||"string",I.validate,(0,Ye._)`${ne}.validate`]:["string",I,ne]}s(k,"getFormat");function C(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!p.$async)throw new Error("async format in sync schema");return(0,Ye._)`await ${$}(${n})`}return typeof g=="function"?(0,Ye._)`${$}(${n})`:(0,Ye._)`${$}.test(${n})`}s(C,"validCondition")}s(h,"validateFormat")}};Gp.default=OI});var Kp=b(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});var xI=dv(),EI=[xI.default];Wp.default=EI});var hv=b(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});var AI=k0(),CI=F0(),II=zp(),RI=Kp(),jI=["title","description","default"],kI=[AI.default,CI.default,II.default(),RI.default,jI];Zp.default=kI});var gv=b(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.DiscrError=void 0;var mv;(function(e){e.Tag="tag",e.Mapping="mapping"})(mv||(fu.DiscrError=mv={}))});var Qp=b(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});var Ji=oe(),Yp=gv(),yv=uo(),NI=ao(),MI=he(),TI={message:s(({params:{discrError:e,tagName:t}})=>e===Yp.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:s(({params:{discrError:e,tag:t,tagName:r}})=>(0,Ji._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},qI={keyword:"discriminator",type:"object",schemaType:"object",error:TI,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:a}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let u=n.propertyName;if(typeof u!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let c=t.let("valid",!1),l=t.const("tag",(0,Ji._)`${r}${(0,Ji.getProperty)(u)}`);t.if((0,Ji._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:Yp.DiscrError.Tag,tag:l,tagName:u})),e.ok(c);function p(){let h=d();t.if(!1);for(let y in h)t.elseIf((0,Ji._)`${l} === ${y}`),t.assign(c,f(h[y]));t.else(),e.error(!1,{discrError:Yp.DiscrError.Mapping,tag:l,tagName:u}),t.endIf()}s(p,"validateMapping");function f(h){let y=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:h},y);return e.mergeEvaluated(v,Ji.Name),y}s(f,"applyTagSchema");function d(){var h;let y={},v=$(i),g=!0;for(let C=0;C<a.length;C++){let I=a[C];if(I!=null&&I.$ref&&!(0,MI.schemaHasRulesButRef)(I,o.self.RULES)){let ne=I.$ref;if(I=yv.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,ne),I instanceof yv.SchemaEnv&&(I=I.schema),I===void 0)throw new NI.default(o.opts.uriResolver,o.baseId,ne)}let fe=(h=I==null?void 0:I.properties)===null||h===void 0?void 0:h[u];if(typeof fe!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${u}"`);g=g&&(v||$(I)),A(fe,C)}if(!g)throw new Error(`discriminator: "${u}" must be required`);return y;function $({required:C}){return Array.isArray(C)&&C.includes(u)}function A(C,I){if(C.const)k(C.const,I);else if(C.enum)for(let fe of C.enum)k(fe,I);else throw new Error(`discriminator: "properties/${u}" must have "const" or "enum"`)}function k(C,I){if(typeof C!="string"||C in y)throw new Error(`discriminator: "${u}" values must be unique strings`);y[C]=I}}s(d,"getMapping")}};Jp.default=qI});var vv=b((t7,DI)=>{DI.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 Sv=b((tt,_v)=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.CodeGen=tt.Name=tt.nil=tt.stringify=tt.str=tt._=tt.KeywordCxt=void 0;var LI=Zi(),FI=hv(),VI=Qp(),bv=vv(),BI=["/properties"],pu="http://json-schema.org/draft-04/schema",Xp=class Xp extends LI.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),FI.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(VI.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(bv,BI):bv;this.addMetaSchema(t,pu,!1),this.refs["http://json-schema.org/schema"]=pu}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(pu)?pu:void 0)}};s(Xp,"Ajv");var du=Xp;_v.exports=tt=du;Object.defineProperty(tt,"__esModule",{value:!0});tt.default=du;var HI=Zi();Object.defineProperty(tt,"KeywordCxt",{enumerable:!0,get:s(function(){return HI.KeywordCxt},"get")});var Qi=Zi();Object.defineProperty(tt,"_",{enumerable:!0,get:s(function(){return Qi._},"get")});Object.defineProperty(tt,"str",{enumerable:!0,get:s(function(){return Qi.str},"get")});Object.defineProperty(tt,"stringify",{enumerable:!0,get:s(function(){return Qi.stringify},"get")});Object.defineProperty(tt,"nil",{enumerable:!0,get:s(function(){return Qi.nil},"get")});Object.defineProperty(tt,"Name",{enumerable:!0,get:s(function(){return Qi.Name},"get")});Object.defineProperty(tt,"CodeGen",{enumerable:!0,get:s(function(){return Qi.CodeGen},"get")})});var wv=b(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});var UI={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};ed.default=UI});var $v=b(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});var zI=wv(),GI=ho(),WI=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",zI.default,GI.default];td.default=WI});var Pv=b(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});var hu=oe(),gn=hu.operators,mu={maximum:{okStr:"<=",ok:gn.LTE,fail:gn.GT},minimum:{okStr:">=",ok:gn.GTE,fail:gn.LT},exclusiveMaximum:{okStr:"<",ok:gn.LT,fail:gn.GTE},exclusiveMinimum:{okStr:">",ok:gn.GT,fail:gn.LTE}},KI={message:s(({keyword:e,schemaCode:t})=>(0,hu.str)`must be ${mu[e].okStr} ${t}`,"message"),params:s(({keyword:e,schemaCode:t})=>(0,hu._)`{comparison: ${mu[e].okStr}, limit: ${t}}`,"params")},ZI={keyword:Object.keys(mu),type:"number",schemaType:"number",$data:!0,error:KI,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,hu._)`${r} ${mu[t].fail} ${n} || isNaN(${r})`)}};rd.default=ZI});var Ov=b(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});var YI=Pv(),JI=np(),QI=op(),XI=up(),eR=lp(),tR=pp(),rR=hp(),nR=vp(),iR=Sp(),sR=$p(),oR=[YI.default,JI.default,QI.default,XI.default,eR.default,tR.default,rR.default,nR.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},iR.default,sR.default];nd.default=oR});var sd=b(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.dynamicAnchor=void 0;var id=oe(),aR=Yt(),xv=uo(),uR=ho(),cR={keyword:"$dynamicAnchor",schemaType:"string",code:s(e=>Ev(e,e.schema),"code")};function Ev(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,id._)`${aR.default.dynamicAnchors}${(0,id.getProperty)(t)}`,o=n.errSchemaPath==="#"?n.validateName:lR(e);r.if((0,id._)`!${i}`,()=>r.assign(i,o))}s(Ev,"dynamicAnchor");Po.dynamicAnchor=Ev;function lR(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:o,localRefs:a,meta:u}=t.root,{schemaId:c}=n.opts,l=new xv.SchemaEnv({schema:r,schemaId:c,root:i,baseId:o,localRefs:a,meta:u});return xv.compileSchema.call(n,l),(0,uR.getValidate)(e,l)}s(lR,"_getValidate");Po.default=cR});var od=b(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.dynamicRef=void 0;var Av=oe(),fR=Yt(),Cv=ho(),pR={keyword:"$dynamicRef",schemaType:"string",code:s(e=>Iv(e,e.schema),"code")};function Iv(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let o=t.slice(1);if(i.allErrors)a();else{let c=r.let("valid",!1);a(c),e.ok(c)}function a(c){if(i.schemaEnv.root.dynamicAnchors[o]){let l=r.let("_v",(0,Av._)`${fR.default.dynamicAnchors}${(0,Av.getProperty)(o)}`);r.if(l,u(l,c),u(i.validateName,c))}else u(i.validateName,c)()}s(a,"_dynamicRef");function u(c,l){return l?()=>r.block(()=>{(0,Cv.callRef)(e,c),r.let(l,!0)}):()=>(0,Cv.callRef)(e,c)}s(u,"_callRef")}s(Iv,"dynamicRef");Oo.dynamicRef=Iv;Oo.default=pR});var Rv=b(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});var dR=sd(),hR=he(),mR={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,dR.dynamicAnchor)(e,""):(0,hR.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};ad.default=mR});var jv=b(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});var gR=od(),yR={keyword:"$recursiveRef",schemaType:"string",code:s(e=>(0,gR.dynamicRef)(e,e.schema),"code")};ud.default=yR});var kv=b(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});var vR=sd(),bR=od(),_R=Rv(),SR=jv(),wR=[vR.default,bR.default,_R.default,SR.default];cd.default=wR});var Mv=b(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});var Nv=su(),$R={keyword:"dependentRequired",type:"object",schemaType:"object",error:Nv.error,code:s(e=>(0,Nv.validatePropertyDeps)(e),"code")};ld.default=$R});var Tv=b(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});var PR=su(),OR={keyword:"dependentSchemas",type:"object",schemaType:"object",code:s(e=>(0,PR.validateSchemaDeps)(e),"code")};fd.default=OR});var qv=b(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});var xR=he(),ER={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,xR.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};pd.default=ER});var Dv=b(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});var AR=Mv(),CR=Tv(),IR=qv(),RR=[AR.default,CR.default,IR.default];dd.default=RR});var Fv=b(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});var yn=oe(),Lv=he(),jR=Yt(),kR={message:"must NOT have unevaluated properties",params:s(({params:e})=>(0,yn._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},NR={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:kR,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:o}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:u}=o;u instanceof yn.Name?t.if((0,yn._)`${u} !== true`,()=>t.forIn("key",n,f=>t.if(l(u,f),()=>c(f)))):u!==!0&&t.forIn("key",n,f=>u===void 0?c(f):t.if(p(u,f),()=>c(f))),o.props=!0,e.ok((0,yn._)`${i} === ${jR.default.errors}`);function c(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,Lv.alwaysValidSchema)(o,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:Lv.Type.Str},d),a||t.if((0,yn.not)(d),()=>t.break())}}s(c,"unevaluatedPropCode");function l(f,d){return(0,yn._)`!${f} || !${f}[${d}]`}s(l,"unevaluatedDynamic");function p(f,d){let h=[];for(let y in f)f[y]===!0&&h.push((0,yn._)`${d} !== ${y}`);return(0,yn.and)(...h)}s(p,"unevaluatedStatic")}};hd.default=NR});var Bv=b(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});var ai=oe(),Vv=he(),MR={message:s(({params:{len:e}})=>(0,ai.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,ai._)`{limit: ${e}}`,"params")},TR={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:MR,code(e){let{gen:t,schema:r,data:n,it:i}=e,o=i.items||0;if(o===!0)return;let a=t.const("len",(0,ai._)`${n}.length`);if(r===!1)e.setParams({len:o}),e.fail((0,ai._)`${a} > ${o}`);else if(typeof r=="object"&&!(0,Vv.alwaysValidSchema)(i,r)){let c=t.var("valid",(0,ai._)`${a} <= ${o}`);t.if((0,ai.not)(c),()=>u(c,o)),e.ok(c)}i.items=!0;function u(c,l){t.forRange("i",l,a,p=>{e.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:Vv.Type.Num},c),i.allErrors||t.if((0,ai.not)(c),()=>t.break())})}s(u,"validateItems")}};md.default=TR});var Hv=b(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});var qR=Fv(),DR=Bv(),LR=[qR.default,DR.default];gd.default=LR});var Uv=b(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.contentVocabulary=Xi.metadataVocabulary=void 0;Xi.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Xi.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Gv=b(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});var FR=$v(),VR=Ov(),BR=zp(),HR=kv(),UR=Dv(),zR=Hv(),GR=Kp(),zv=Uv(),WR=[HR.default,FR.default,VR.default,(0,BR.default)(!0),GR.default,zv.metadataVocabulary,zv.contentVocabulary,UR.default,zR.default];yd.default=WR});var Wv=b((C7,KR)=>{KR.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 Kv=b((I7,ZR)=>{ZR.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 Zv=b((R7,YR)=>{YR.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 Yv=b((j7,JR)=>{JR.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 Jv=b((k7,QR)=>{QR.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 Qv=b((N7,XR)=>{XR.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 Xv=b((M7,ej)=>{ej.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 eb=b((T7,tj)=>{tj.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 tb=b(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});var rj=Wv(),nj=Kv(),ij=Zv(),sj=Yv(),oj=Jv(),aj=Qv(),uj=Xv(),cj=eb(),lj=["/properties"];function fj(e){return[rj,nj,ij,sj,oj,t(this,aj),uj,t(this,cj)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,lj):n}s(t,"with$data")}s(fj,"addMetaSchema2020");vd.default=fj});var rb=b((Me,_d)=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.MissingRefError=Me.ValidationError=Me.CodeGen=Me.Name=Me.nil=Me.stringify=Me.str=Me._=Me.KeywordCxt=Me.Ajv2020=void 0;var pj=Zi(),dj=Gv(),hj=Qp(),mj=tb(),bd="https://json-schema.org/draft/2020-12/schema",Sd=class Sd extends pj.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),dj.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(hj.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(mj.default.call(this,t),this.refs["http://json-schema.org/schema"]=bd)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(bd)?bd:void 0)}};s(Sd,"Ajv2020");var es=Sd;Me.Ajv2020=es;_d.exports=Me=es;_d.exports.Ajv2020=es;Object.defineProperty(Me,"__esModule",{value:!0});Me.default=es;var gj=oo();Object.defineProperty(Me,"KeywordCxt",{enumerable:!0,get:s(function(){return gj.KeywordCxt},"get")});var ts=oe();Object.defineProperty(Me,"_",{enumerable:!0,get:s(function(){return ts._},"get")});Object.defineProperty(Me,"str",{enumerable:!0,get:s(function(){return ts.str},"get")});Object.defineProperty(Me,"stringify",{enumerable:!0,get:s(function(){return ts.stringify},"get")});Object.defineProperty(Me,"nil",{enumerable:!0,get:s(function(){return ts.nil},"get")});Object.defineProperty(Me,"Name",{enumerable:!0,get:s(function(){return ts.Name},"get")});Object.defineProperty(Me,"CodeGen",{enumerable:!0,get:s(function(){return ts.CodeGen},"get")});var yj=Wa();Object.defineProperty(Me,"ValidationError",{enumerable:!0,get:s(function(){return yj.default},"get")});var vj=ao();Object.defineProperty(Me,"MissingRefError",{enumerable:!0,get:s(function(){return vj.default},"get")})});var nb=b((F7,bj)=>{bj.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 ib=b((V7,_j)=>{_j.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 sb=b((B7,Sj)=>{Sj.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 ob=b((H7,wj)=>{wj.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 ab=b((ot,rs)=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.openapi=ot.openapiV31=ot.openapiV3=ot.openapiV2=ot.openapiV1=void 0;ot.openapiV1=nb();ot.openapiV2=ib();ot.openapiV3=sb();ot.openapiV31=ob();ot.openapi={v1:ot.openapiV1,v2:ot.openapiV2,v3:ot.openapiV3,v31:ot.openapiV31};ot.default=ot.openapi;typeof rs=="object"&&typeof rs.exports=="object"&&(rs.exports=Object.assign(rs.exports.default,rs.exports))});var Pd=b((U7,ub)=>{"use strict";var $j=Aa(),{ono:Pj}=ur(),Oj=Sv(),xj=rb(),{openapi:wd}=ab();ub.exports=Ej;function Ej(e){let t,r;if(e.swagger)r=wd.v2,t=$d();else if(e.openapi.startsWith("3.1")){r=wd.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=$d(!1)}else r=wd.v3,t=$d();if(!t.validate(r,e)){let i=t.errors,o=`Swagger schema validation failed.
15
+ `+Aj(i);throw Pj.syntax(i,{details:i},o)}}s(Ej,"validateSchema");function $d(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new Oj(t):new xj(t)}s($d,"initializeAjv");function Aj(e,t){t=t||" ";let r="";for(let n of e)r+=$j.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
16
+ `);return r}s(Aj,"formatAjvError")});var lb=b((G7,cb)=>{"use strict";cb.exports=["get","put","post","delete","options","head","patch"]});var Ed=b((W7,hb)=>{"use strict";var Cj=Aa(),{ono:ht}=ur(),Ij=lb(),Od=["array","boolean","integer","number","string"],pb=["array","boolean","integer","number","string","object","null",void 0];hb.exports=Rj;function Rj(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let i of t){let o=e.paths[i],a="/paths"+i;o&&i.indexOf("/")===0&&jj(e,o,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let o=e.definitions[i],a="/definitions/"+i;db(o,a)}}s(Rj,"validateSpec");function jj(e,t,r,n){for(let i of Ij){let o=t[i],a=r+"/"+i;if(o){let u=o.operationId;if(u)if(n.indexOf(u)===-1)n.push(u);else throw ht.syntax(`Validation failed. Duplicate operation id '${u}'`);kj(e,t,r,o,a);let c=Object.keys(o.responses||{});for(let l of c){let p=o.responses[l],f=a+"/responses/"+l;qj(l,p||{},f)}}}}s(jj,"validatePath");function kj(e,t,r,n,i){let o=t.parameters||[],a=n.parameters||[];try{fb(o)}catch(c){throw ht.syntax(c,`Validation failed. ${r} has duplicate parameters`)}try{fb(a)}catch(c){throw ht.syntax(c,`Validation failed. ${i} has duplicate parameters`)}let u=o.reduce((c,l)=>(c.some(f=>f.in===l.in&&f.name===l.name)||c.push(l),c),a.slice());Nj(u,i),Mj(u,r,i),Tj(u,e,n,i)}s(kj,"validateParameters");function Nj(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw ht.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw ht.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}s(Nj,"validateBodyParameters");function Mj(e,t,r){let n=t.match(Cj.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let o=i+1;o<n.length;o++)if(n[i]===n[o])throw ht.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 ht.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${r}`);let o=n.indexOf("{"+i.name+"}");if(o===-1)throw ht.syntax(`Validation failed. ${r} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(o,1)}if(n.length>0)throw ht.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}s(Mj,"validatePathParameters");function Tj(e,t,r,n){for(let i of e){let o=n+"/parameters/"+i.name,a,u;switch(i.in){case"body":a=i.schema,u=pb;break;case"formData":a=i,u=Od.concat("file");break;default:a=i,u=Od}if(xd(a,o,u),db(a,o),a.type==="file"){let c=/multipart\/(.*\+)?form-data/,l=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some(d=>c.test(d)||l.test(d)))throw ht.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}s(Tj,"validateParameterTypes");function fb(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 ht.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}s(fb,"checkForDuplicates");function qj(e,t,r){if(e!=="default"&&(e<100||e>599))throw ht.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let i of n){let o=t.headers[i],a=r+"/headers/"+i;xd(o,a,Od)}if(t.schema){let i=pb.concat("file");if(i.indexOf(t.schema.type)===-1)throw ht.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);xd(t.schema,r+"/schema",i)}}s(qj,"validateResponse");function xd(e,t,r){if(r.indexOf(e.type)===-1)throw ht.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw ht.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}s(xd,"validateSchema");function db(e,t){function r(n,i){if(n.properties)for(let o in n.properties)n.properties.hasOwnProperty(o)&&(i[o]=n.properties[o]);if(n.allOf)for(let o of n.allOf)r(o,i)}if(s(r,"collectProperties"),e.required&&Array.isArray(e.required)){let n={};r(e,n);for(let i of e.required)if(!n[i])throw ht.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}s(db,"validateRequiredPropertiesExist")});var hr=b(dr=>{"use strict";var{Ono:mb}=ur(),{stripHash:gb,toFileSystemPath:Dj}=Dt(),ns,vn=dr.JSONParserError=(ns=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,mb.extend(this)}},s(ns,"JSONParserError"),ns);bn(vn);var ui,yb=dr.JSONParserErrorGroup=(ui=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${Dj(t.$refs._root$Ref.path)}'`,mb.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 ui.getParserErrors(this.files)}},s(ui,"JSONParserErrorGroup"),ui);bn(yb);var is,Lj=dr.ParserError=(is=class extends vn{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},s(is,"ParserError"),is);bn(Lj);var ss,Fj=dr.UnmatchedParserError=(ss=class extends vn{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},s(ss,"UnmatchedParserError"),ss);bn(Fj);var os,Vj=dr.ResolverError=(os=class extends vn{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},s(os,"ResolverError"),os);bn(Vj);var as,Bj=dr.UnmatchedResolverError=(as=class extends vn{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},s(as,"UnmatchedResolverError"),as);bn(Bj);var us,Hj=dr.MissingPointerError=(us=class extends vn{constructor(t,r){super(`Token "${t}" does not exist.`,gb(r)),this.code="EMISSINGPOINTER"}},s(us,"MissingPointerError"),us);bn(Hj);var cs,Uj=dr.InvalidPointerError=(cs=class extends vn{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,gb(r)),this.code="EINVALIDPOINTER"}},s(cs,"InvalidPointerError"),cs);bn(Uj);function bn(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}s(bn,"setErrorName");dr.isHandledError=function(e){return e instanceof vn||e instanceof yb};dr.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var bb=b((J7,vb)=>{"use strict";var{ParserError:zj}=hr();vb.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 zj(r.message,e.url)}}else return t}}});var li=b((Q7,ci)=>{"use strict";function _b(e){return typeof e>"u"||e===null}s(_b,"isNothing");function Gj(e){return typeof e=="object"&&e!==null}s(Gj,"isObject");function Wj(e){return Array.isArray(e)?e:_b(e)?[]:[e]}s(Wj,"toArray");function Kj(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=t[i];return e}s(Kj,"extend");function Zj(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}s(Zj,"repeat");function Yj(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}s(Yj,"isNegativeZero");ci.exports.isNothing=_b;ci.exports.isObject=Gj;ci.exports.toArray=Wj;ci.exports.repeat=Zj;ci.exports.isNegativeZero=Yj;ci.exports.extend=Kj});var ls=b((e9,Sb)=>{"use strict";function xo(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}s(xo,"YAMLException");xo.prototype=Object.create(Error.prototype);xo.prototype.constructor=xo;xo.prototype.toString=s(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");Sb.exports=xo});var Pb=b((r9,$b)=>{"use strict";var wb=li();function Ad(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}s(Ad,"Mark");Ad.prototype.getSnippet=s(function(t,r){var n,i,o,a,u;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
17
17
  \x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(o="",a=this.position;a<this.buffer.length&&`\0\r
18
- \x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){o=" ... ",a-=5;break}return u=this.buffer.slice(i,a),bb.repeat(" ",t)+n+u+o+`
19
- `+bb.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");xd.prototype.toString=s(function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
20
- `+r)),n},"toString");_b.exports=xd});var rt=b((Q7,$b)=>{"use strict";var wb=cs(),zj=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],Wj=["scalar","sequence","mapping"];function Kj(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}s(Kj,"compileStyleAliases");function Zj(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(zj.indexOf(r)===-1)throw new wb('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=Kj(t.styleAliases||null),Wj.indexOf(this.kind)===-1)throw new wb('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}s(Zj,"Type");$b.exports=Zj});var fi=b((e9,Ob)=>{"use strict";var Pb=li(),mu=cs(),Yj=rt();function Ad(e,t,r){var n=[];return e.include.forEach(function(i){r=Ad(i,t,r)}),e[t].forEach(function(i){r.forEach(function(o,a){o.tag===i.tag&&o.kind===i.kind&&n.push(a)}),r.push(i)}),r.filter(function(i,o){return n.indexOf(o)===-1})}s(Ad,"compileList");function Jj(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(s(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}s(Jj,"compileMap");function ls(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 mu("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Ad(this,"implicit",[]),this.compiledExplicit=Ad(this,"explicit",[]),this.compiledTypeMap=Jj(this.compiledImplicit,this.compiledExplicit)}s(ls,"Schema");ls.DEFAULT=null;ls.create=s(function(){var t,r;switch(arguments.length){case 1:t=ls.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new mu("Wrong number of arguments for Schema.create function")}if(t=Pb.toArray(t),r=Pb.toArray(r),!t.every(function(n){return n instanceof ls}))throw new mu("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof Yj}))throw new mu("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new ls({include:t,explicit:r})},"createSchema");Ob.exports=ls});var xb=b((r9,Eb)=>{"use strict";var Qj=rt();Eb.exports=new Qj("tag:yaml.org,2002:str",{kind:"scalar",construct:s(function(e){return e!==null?e:""},"construct")})});var Cb=b((i9,Ab)=>{"use strict";var Xj=rt();Ab.exports=new Xj("tag:yaml.org,2002:seq",{kind:"sequence",construct:s(function(e){return e!==null?e:[]},"construct")})});var Rb=b((o9,Ib)=>{"use strict";var ek=rt();Ib.exports=new ek("tag:yaml.org,2002:map",{kind:"mapping",construct:s(function(e){return e!==null?e:{}},"construct")})});var gu=b((u9,jb)=>{"use strict";var tk=fi();jb.exports=new tk({explicit:[xb(),Cb(),Rb()]})});var Nb=b((c9,kb)=>{"use strict";var rk=rt();function nk(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}s(nk,"resolveYamlNull");function ik(){return null}s(ik,"constructYamlNull");function sk(e){return e===null}s(sk,"isNull");kb.exports=new rk("tag:yaml.org,2002:null",{kind:"scalar",resolve:nk,construct:ik,predicate:sk,represent:{canonical:s(function(){return"~"},"canonical"),lowercase:s(function(){return"null"},"lowercase"),uppercase:s(function(){return"NULL"},"uppercase"),camelcase:s(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var Tb=b((f9,Mb)=>{"use strict";var ok=rt();function ak(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}s(ak,"resolveYamlBoolean");function uk(e){return e==="true"||e==="True"||e==="TRUE"}s(uk,"constructYamlBoolean");function ck(e){return Object.prototype.toString.call(e)==="[object Boolean]"}s(ck,"isBoolean");Mb.exports=new ok("tag:yaml.org,2002:bool",{kind:"scalar",resolve:ak,construct:uk,predicate:ck,represent:{lowercase:s(function(e){return e?"true":"false"},"lowercase"),uppercase:s(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:s(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var Db=b((d9,qb)=>{"use strict";var lk=li(),fk=rt();function pk(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}s(pk,"isHexCode");function dk(e){return 48<=e&&e<=55}s(dk,"isOctCode");function hk(e){return 48<=e&&e<=57}s(hk,"isDecCode");function mk(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(!pk(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!dk(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(!hk(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}s(mk,"resolveYamlInteger");function gk(e){var t=e,r=1,n,i,o=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(a){o.unshift(parseInt(a,10))}),t=0,i=1,o.forEach(function(a){t+=a*i,i*=60}),r*t):r*parseInt(t,10)}s(gk,"constructYamlInteger");function yk(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!lk.isNegativeZero(e)}s(yk,"isInteger");qb.exports=new fk("tag:yaml.org,2002:int",{kind:"scalar",resolve:mk,construct:gk,predicate:yk,represent:{binary:s(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:s(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:s(function(e){return e.toString(10)},"decimal"),hexadecimal:s(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var Bb=b((m9,Fb)=>{"use strict";var Lb=li(),vk=rt(),bk=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 _k(e){return!(e===null||!bk.test(e)||e[e.length-1]==="_")}s(_k,"resolveYamlFloat");function Sk(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(o){i.unshift(parseFloat(o,10))}),t=0,n=1,i.forEach(function(o){t+=o*n,n*=60}),r*t):r*parseFloat(t,10)}s(Sk,"constructYamlFloat");var wk=/^[-+]?[0-9]+e/;function $k(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(Lb.isNegativeZero(e))return"-0.0";return r=e.toString(10),wk.test(r)?r.replace("e",".e"):r}s($k,"representYamlFloat");function Pk(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Lb.isNegativeZero(e))}s(Pk,"isFloat");Fb.exports=new vk("tag:yaml.org,2002:float",{kind:"scalar",resolve:_k,construct:Sk,predicate:Pk,represent:$k,defaultStyle:"lowercase"})});var Cd=b((y9,Vb)=>{"use strict";var Ok=fi();Vb.exports=new Ok({include:[gu()],implicit:[Nb(),Tb(),Db(),Bb()]})});var Id=b((v9,Hb)=>{"use strict";var Ek=fi();Hb.exports=new Ek({include:[Cd()]})});var Wb=b((b9,zb)=>{"use strict";var xk=rt(),Ub=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Gb=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 Ak(e){return e===null?!1:Ub.exec(e)!==null||Gb.exec(e)!==null}s(Ak,"resolveYamlTimestamp");function Ck(e){var t,r,n,i,o,a,u,c=0,l=null,p,f,d;if(t=Ub.exec(e),t===null&&(t=Gb.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(o=+t[4],a=+t[5],u=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(p=+t[10],f=+(t[11]||0),l=(p*60+f)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,o,a,u,c)),l&&d.setTime(d.getTime()-l),d}s(Ck,"constructYamlTimestamp");function Ik(e){return e.toISOString()}s(Ik,"representYamlTimestamp");zb.exports=new xk("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Ak,construct:Ck,instanceOf:Date,represent:Ik})});var Zb=b((S9,Kb)=>{"use strict";var Rk=rt();function jk(e){return e==="<<"||e===null}s(jk,"resolveYamlMerge");Kb.exports=new Rk("tag:yaml.org,2002:merge",{kind:"scalar",resolve:jk})});var Qb=b(($9,Jb)=>{"use strict";var pi;try{Yb=Pe,pi=Yb("buffer").Buffer}catch{}var Yb,kk=rt(),Rd=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
21
- \r`;function Nk(e){if(e===null)return!1;var t,r,n=0,i=e.length,o=Rd;for(r=0;r<i;r++)if(t=o.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}s(Nk,"resolveYamlBinary");function Mk(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=Rd,a=0,u=[];for(t=0;t<i;t++)t%4===0&&t&&(u.push(a>>16&255),u.push(a>>8&255),u.push(a&255)),a=a<<6|o.indexOf(n.charAt(t));return r=i%4*6,r===0?(u.push(a>>16&255),u.push(a>>8&255),u.push(a&255)):r===18?(u.push(a>>10&255),u.push(a>>2&255)):r===12&&u.push(a>>4&255),pi?pi.from?pi.from(u):new pi(u):u}s(Mk,"constructYamlBinary");function Tk(e){var t="",r=0,n,i,o=e.length,a=Rd;for(n=0;n<o;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=o%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}s(Tk,"representYamlBinary");function qk(e){return pi&&pi.isBuffer(e)}s(qk,"isBinary");Jb.exports=new kk("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Nk,construct:Mk,predicate:qk,represent:Tk})});var e_=b((O9,Xb)=>{"use strict";var Dk=rt(),Lk=Object.prototype.hasOwnProperty,Fk=Object.prototype.toString;function Bk(e){if(e===null)return!0;var t=[],r,n,i,o,a,u=e;for(r=0,n=u.length;r<n;r+=1){if(i=u[r],a=!1,Fk.call(i)!=="[object Object]")return!1;for(o in i)if(Lk.call(i,o))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}s(Bk,"resolveYamlOmap");function Vk(e){return e!==null?e:[]}s(Vk,"constructYamlOmap");Xb.exports=new Dk("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Bk,construct:Vk})});var r_=b((x9,t_)=>{"use strict";var Hk=rt(),Uk=Object.prototype.toString;function Gk(e){if(e===null)return!0;var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],Uk.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[t]=[i[0],n[i[0]]]}return!0}s(Gk,"resolveYamlPairs");function zk(e){if(e===null)return[];var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}s(zk,"constructYamlPairs");t_.exports=new Hk("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Gk,construct:zk})});var i_=b((C9,n_)=>{"use strict";var Wk=rt(),Kk=Object.prototype.hasOwnProperty;function Zk(e){if(e===null)return!0;var t,r=e;for(t in r)if(Kk.call(r,t)&&r[t]!==null)return!1;return!0}s(Zk,"resolveYamlSet");function Yk(e){return e!==null?e:{}}s(Yk,"constructYamlSet");n_.exports=new Wk("tag:yaml.org,2002:set",{kind:"mapping",resolve:Zk,construct:Yk})});var fs=b((R9,s_)=>{"use strict";var Jk=fi();s_.exports=new Jk({include:[Id()],implicit:[Wb(),Zb()],explicit:[Qb(),e_(),r_(),i_()]})});var a_=b((j9,o_)=>{"use strict";var Qk=rt();function Xk(){return!0}s(Xk,"resolveJavascriptUndefined");function eN(){}s(eN,"constructJavascriptUndefined");function tN(){return""}s(tN,"representJavascriptUndefined");function rN(e){return typeof e>"u"}s(rN,"isUndefined");o_.exports=new Qk("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:Xk,construct:eN,predicate:rN,represent:tN})});var c_=b((N9,u_)=>{"use strict";var nN=rt();function iN(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}s(iN,"resolveJavascriptRegExp");function sN(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}s(sN,"constructJavascriptRegExp");function oN(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}s(oN,"representJavascriptRegExp");function aN(e){return Object.prototype.toString.call(e)==="[object RegExp]"}s(aN,"isRegExp");u_.exports=new nN("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:iN,construct:sN,predicate:aN,represent:oN})});var p_=b((T9,f_)=>{"use strict";var yu;try{l_=Pe,yu=l_("esprima")}catch{typeof window<"u"&&(yu=window.esprima)}var l_,uN=rt();function cN(e){if(e===null)return!1;try{var t="("+e+")",r=yu.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}s(cN,"resolveJavascriptFunction");function lN(e){var t="("+e+")",r=yu.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(o){n.push(o.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}s(lN,"constructJavascriptFunction");function fN(e){return e.toString()}s(fN,"representJavascriptFunction");function pN(e){return Object.prototype.toString.call(e)==="[object Function]"}s(pN,"isFunction");f_.exports=new uN("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:cN,construct:lN,predicate:pN,represent:fN})});var Eo=b((D9,h_)=>{"use strict";var d_=fi();h_.exports=d_.DEFAULT=new d_({include:[fs()],explicit:[a_(),c_(),p_()]})});var k_=b((L9,xo)=>{"use strict";var Wr=li(),S_=cs(),dN=Sb(),w_=fs(),hN=Eo(),Sn=Object.prototype.hasOwnProperty,vu=1,$_=2,P_=3,bu=4,jd=1,mN=2,m_=3,gN=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,yN=/[\x85\u2028\u2029]/,vN=/[,\[\]\{\}]/,O_=/^(?:!|!!|![a-z\-]+!)$/i,E_=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function g_(e){return Object.prototype.toString.call(e)}s(g_,"_class");function Ir(e){return e===10||e===13}s(Ir,"is_EOL");function hi(e){return e===9||e===32}s(hi,"is_WHITE_SPACE");function jt(e){return e===9||e===32||e===10||e===13}s(jt,"is_WS_OR_EOL");function ps(e){return e===44||e===91||e===93||e===123||e===125}s(ps,"is_FLOW_INDICATOR");function bN(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}s(bN,"fromHexCode");function _N(e){return e===120?2:e===117?4:e===85?8:0}s(_N,"escapedHexLen");function SN(e){return 48<=e&&e<=57?e-48:-1}s(SN,"fromDecimalCode");function y_(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
22
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}s(y_,"simpleEscapeSequence");function wN(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}s(wN,"charFromCodepoint");var x_=new Array(256),A_=new Array(256);for(di=0;di<256;di++)x_[di]=y_(di)?1:0,A_[di]=y_(di);var di;function $N(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||hN,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}s($N,"State");function C_(e,t){return new S_(t,new dN(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}s(C_,"generateError");function X(e,t){throw C_(e,t)}s(X,"throwError");function _u(e,t){e.onWarning&&e.onWarning.call(null,C_(e,t))}s(_u,"throwWarning");var v_={YAML:s(function(t,r,n){var i,o,a;t.version!==null&&X(t,"duplication of %YAML directive"),n.length!==1&&X(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&X(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),a=parseInt(i[2],10),o!==1&&X(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&_u(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:s(function(t,r,n){var i,o;n.length!==2&&X(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],O_.test(i)||X(t,"ill-formed tag handle (first argument) of the TAG directive"),Sn.call(t.tagMap,i)&&X(t,'there is a previously declared suffix for "'+i+'" tag handle'),E_.test(o)||X(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o},"handleTagDirective")};function _n(e,t,r,n){var i,o,a,u;if(t<r){if(u=e.input.slice(t,r),n)for(i=0,o=u.length;i<o;i+=1)a=u.charCodeAt(i),a===9||32<=a&&a<=1114111||X(e,"expected valid JSON character");else gN.test(u)&&X(e,"the stream contains non-printable characters");e.result+=u}}s(_n,"captureSegment");function b_(e,t,r,n){var i,o,a,u;for(Wr.isObject(r)||X(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,u=i.length;a<u;a+=1)o=i[a],Sn.call(t,o)||(t[o]=r[o],n[o]=!0)}s(b_,"mergeMappings");function ds(e,t,r,n,i,o,a,u){var c,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,l=i.length;c<l;c+=1)Array.isArray(i[c])&&X(e,"nested arrays are not supported inside keys"),typeof i=="object"&&g_(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&g_(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,l=o.length;c<l;c+=1)b_(e,t,o[c],r);else b_(e,t,o,r);else!e.json&&!Sn.call(r,i)&&Sn.call(t,i)&&(e.line=a||e.line,e.position=u||e.position,X(e,"duplicated mapping key")),t[i]=o,delete r[i];return t}s(ds,"storeMappingPair");function kd(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):X(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}s(kd,"readLineBreak");function Qe(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;hi(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(Ir(i))for(kd(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&&_u(e,"deficient indentation"),n}s(Qe,"skipSeparationSpace");function Su(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||jt(r)))}s(Su,"testDocumentSeparator");function Nd(e,t){t===1?e.result+=" ":t>1&&(e.result+=Wr.repeat(`
23
- `,t-1))}s(Nd,"writeFoldedLines");function PN(e,t,r){var n,i,o,a,u,c,l,p,f=e.kind,d=e.result,h;if(h=e.input.charCodeAt(e.position),jt(h)||ps(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),jt(i)||r&&ps(i)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,u=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),jt(i)||r&&ps(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),jt(n))break}else{if(e.position===e.lineStart&&Su(e)||r&&ps(h))break;if(Ir(h))if(c=e.line,l=e.lineStart,p=e.lineIndent,Qe(e,!1,-1),e.lineIndent>=t){u=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=c,e.lineStart=l,e.lineIndent=p;break}}u&&(_n(e,o,a,!1),Nd(e,e.line-c),o=a=e.position,u=!1),hi(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return _n(e,o,a,!1),e.result?!0:(e.kind=f,e.result=d,!1)}s(PN,"readPlainScalar");function ON(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(_n(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 Ir(r)?(_n(e,n,i,!0),Nd(e,Qe(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Su(e)?X(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);X(e,"unexpected end of the stream within a single quoted scalar")}s(ON,"readSingleQuotedScalar");function EN(e,t){var r,n,i,o,a,u;if(u=e.input.charCodeAt(e.position),u!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(u=e.input.charCodeAt(e.position))!==0;){if(u===34)return _n(e,r,e.position,!0),e.position++,!0;if(u===92){if(_n(e,r,e.position,!0),u=e.input.charCodeAt(++e.position),Ir(u))Qe(e,!1,t);else if(u<256&&x_[u])e.result+=A_[u],e.position++;else if((a=_N(u))>0){for(i=a,o=0;i>0;i--)u=e.input.charCodeAt(++e.position),(a=bN(u))>=0?o=(o<<4)+a:X(e,"expected hexadecimal character");e.result+=wN(o),e.position++}else X(e,"unknown escape sequence");r=n=e.position}else Ir(u)?(_n(e,r,n,!0),Nd(e,Qe(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Su(e)?X(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}X(e,"unexpected end of the stream within a double quoted scalar")}s(EN,"readDoubleQuotedScalar");function xN(e,t){var r=!0,n,i=e.tag,o,a=e.anchor,u,c,l,p,f,d={},h,y,v,g;if(g=e.input.charCodeAt(e.position),g===91)c=93,f=!1,o=[];else if(g===123)c=125,f=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),g=e.input.charCodeAt(++e.position);g!==0;){if(Qe(e,!0,t),g=e.input.charCodeAt(e.position),g===c)return e.position++,e.tag=i,e.anchor=a,e.kind=f?"mapping":"sequence",e.result=o,!0;r||X(e,"missed comma between flow collection entries"),y=h=v=null,l=p=!1,g===63&&(u=e.input.charCodeAt(e.position+1),jt(u)&&(l=p=!0,e.position++,Qe(e,!0,t))),n=e.line,hs(e,t,vu,!1,!0),y=e.tag,h=e.result,Qe(e,!0,t),g=e.input.charCodeAt(e.position),(p||e.line===n)&&g===58&&(l=!0,g=e.input.charCodeAt(++e.position),Qe(e,!0,t),hs(e,t,vu,!1,!0),v=e.result),f?ds(e,o,d,y,h,v):l?o.push(ds(e,null,d,y,h,v)):o.push(h),Qe(e,!0,t),g=e.input.charCodeAt(e.position),g===44?(r=!0,g=e.input.charCodeAt(++e.position)):r=!1}X(e,"unexpected end of the stream within a flow collection")}s(xN,"readFlowCollection");function AN(e,t){var r,n,i=jd,o=!1,a=!1,u=t,c=0,l=!1,p,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)jd===i?i=f===43?m_:mN:X(e,"repeat of a chomping mode identifier");else if((p=SN(f))>=0)p===0?X(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?X(e,"repeat of an indentation width identifier"):(u=t+p-1,a=!0);else break;if(hi(f)){do f=e.input.charCodeAt(++e.position);while(hi(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Ir(f)&&f!==0)}for(;f!==0;){for(kd(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!a||e.lineIndent<u)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>u&&(u=e.lineIndent),Ir(f)){c++;continue}if(e.lineIndent<u){i===m_?e.result+=Wr.repeat(`
24
- `,o?1+c:c):i===jd&&o&&(e.result+=`
18
+ \x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){o=" ... ",a-=5;break}return u=this.buffer.slice(i,a),wb.repeat(" ",t)+n+u+o+`
19
+ `+wb.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");Ad.prototype.toString=s(function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
20
+ `+r)),n},"toString");$b.exports=Ad});var rt=b((i9,xb)=>{"use strict";var Ob=ls(),Jj=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],Qj=["scalar","sequence","mapping"];function Xj(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}s(Xj,"compileStyleAliases");function ek(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Jj.indexOf(r)===-1)throw new Ob('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=Xj(t.styleAliases||null),Qj.indexOf(this.kind)===-1)throw new Ob('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}s(ek,"Type");xb.exports=ek});var fi=b((o9,Ab)=>{"use strict";var Eb=li(),gu=ls(),tk=rt();function Cd(e,t,r){var n=[];return e.include.forEach(function(i){r=Cd(i,t,r)}),e[t].forEach(function(i){r.forEach(function(o,a){o.tag===i.tag&&o.kind===i.kind&&n.push(a)}),r.push(i)}),r.filter(function(i,o){return n.indexOf(o)===-1})}s(Cd,"compileList");function rk(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(s(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}s(rk,"compileMap");function fs(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 gu("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Cd(this,"implicit",[]),this.compiledExplicit=Cd(this,"explicit",[]),this.compiledTypeMap=rk(this.compiledImplicit,this.compiledExplicit)}s(fs,"Schema");fs.DEFAULT=null;fs.create=s(function(){var t,r;switch(arguments.length){case 1:t=fs.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new gu("Wrong number of arguments for Schema.create function")}if(t=Eb.toArray(t),r=Eb.toArray(r),!t.every(function(n){return n instanceof fs}))throw new gu("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof tk}))throw new gu("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new fs({include:t,explicit:r})},"createSchema");Ab.exports=fs});var Ib=b((u9,Cb)=>{"use strict";var nk=rt();Cb.exports=new nk("tag:yaml.org,2002:str",{kind:"scalar",construct:s(function(e){return e!==null?e:""},"construct")})});var jb=b((l9,Rb)=>{"use strict";var ik=rt();Rb.exports=new ik("tag:yaml.org,2002:seq",{kind:"sequence",construct:s(function(e){return e!==null?e:[]},"construct")})});var Nb=b((p9,kb)=>{"use strict";var sk=rt();kb.exports=new sk("tag:yaml.org,2002:map",{kind:"mapping",construct:s(function(e){return e!==null?e:{}},"construct")})});var yu=b((h9,Mb)=>{"use strict";var ok=fi();Mb.exports=new ok({explicit:[Ib(),jb(),Nb()]})});var qb=b((m9,Tb)=>{"use strict";var ak=rt();function uk(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}s(uk,"resolveYamlNull");function ck(){return null}s(ck,"constructYamlNull");function lk(e){return e===null}s(lk,"isNull");Tb.exports=new ak("tag:yaml.org,2002:null",{kind:"scalar",resolve:uk,construct:ck,predicate:lk,represent:{canonical:s(function(){return"~"},"canonical"),lowercase:s(function(){return"null"},"lowercase"),uppercase:s(function(){return"NULL"},"uppercase"),camelcase:s(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var Lb=b((y9,Db)=>{"use strict";var fk=rt();function pk(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}s(pk,"resolveYamlBoolean");function dk(e){return e==="true"||e==="True"||e==="TRUE"}s(dk,"constructYamlBoolean");function hk(e){return Object.prototype.toString.call(e)==="[object Boolean]"}s(hk,"isBoolean");Db.exports=new fk("tag:yaml.org,2002:bool",{kind:"scalar",resolve:pk,construct:dk,predicate:hk,represent:{lowercase:s(function(e){return e?"true":"false"},"lowercase"),uppercase:s(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:s(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var Vb=b((b9,Fb)=>{"use strict";var mk=li(),gk=rt();function yk(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}s(yk,"isHexCode");function vk(e){return 48<=e&&e<=55}s(vk,"isOctCode");function bk(e){return 48<=e&&e<=57}s(bk,"isDecCode");function _k(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(!yk(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!vk(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(!bk(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}s(_k,"resolveYamlInteger");function Sk(e){var t=e,r=1,n,i,o=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(a){o.unshift(parseInt(a,10))}),t=0,i=1,o.forEach(function(a){t+=a*i,i*=60}),r*t):r*parseInt(t,10)}s(Sk,"constructYamlInteger");function wk(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!mk.isNegativeZero(e)}s(wk,"isInteger");Fb.exports=new gk("tag:yaml.org,2002:int",{kind:"scalar",resolve:_k,construct:Sk,predicate:wk,represent:{binary:s(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:s(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:s(function(e){return e.toString(10)},"decimal"),hexadecimal:s(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var Ub=b((S9,Hb)=>{"use strict";var Bb=li(),$k=rt(),Pk=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 Ok(e){return!(e===null||!Pk.test(e)||e[e.length-1]==="_")}s(Ok,"resolveYamlFloat");function xk(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(o){i.unshift(parseFloat(o,10))}),t=0,n=1,i.forEach(function(o){t+=o*n,n*=60}),r*t):r*parseFloat(t,10)}s(xk,"constructYamlFloat");var Ek=/^[-+]?[0-9]+e/;function Ak(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(Bb.isNegativeZero(e))return"-0.0";return r=e.toString(10),Ek.test(r)?r.replace("e",".e"):r}s(Ak,"representYamlFloat");function Ck(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Bb.isNegativeZero(e))}s(Ck,"isFloat");Hb.exports=new $k("tag:yaml.org,2002:float",{kind:"scalar",resolve:Ok,construct:xk,predicate:Ck,represent:Ak,defaultStyle:"lowercase"})});var Id=b(($9,zb)=>{"use strict";var Ik=fi();zb.exports=new Ik({include:[yu()],implicit:[qb(),Lb(),Vb(),Ub()]})});var Rd=b((P9,Gb)=>{"use strict";var Rk=fi();Gb.exports=new Rk({include:[Id()]})});var Yb=b((O9,Zb)=>{"use strict";var jk=rt(),Wb=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Kb=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 kk(e){return e===null?!1:Wb.exec(e)!==null||Kb.exec(e)!==null}s(kk,"resolveYamlTimestamp");function Nk(e){var t,r,n,i,o,a,u,c=0,l=null,p,f,d;if(t=Wb.exec(e),t===null&&(t=Kb.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(o=+t[4],a=+t[5],u=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(p=+t[10],f=+(t[11]||0),l=(p*60+f)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,o,a,u,c)),l&&d.setTime(d.getTime()-l),d}s(Nk,"constructYamlTimestamp");function Mk(e){return e.toISOString()}s(Mk,"representYamlTimestamp");Zb.exports=new jk("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:kk,construct:Nk,instanceOf:Date,represent:Mk})});var Qb=b((E9,Jb)=>{"use strict";var Tk=rt();function qk(e){return e==="<<"||e===null}s(qk,"resolveYamlMerge");Jb.exports=new Tk("tag:yaml.org,2002:merge",{kind:"scalar",resolve:qk})});var t_=b((C9,e_)=>{"use strict";var pi;try{Xb=Pe,pi=Xb("buffer").Buffer}catch{}var Xb,Dk=rt(),jd=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
21
+ \r`;function Lk(e){if(e===null)return!1;var t,r,n=0,i=e.length,o=jd;for(r=0;r<i;r++)if(t=o.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}s(Lk,"resolveYamlBinary");function Fk(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=jd,a=0,u=[];for(t=0;t<i;t++)t%4===0&&t&&(u.push(a>>16&255),u.push(a>>8&255),u.push(a&255)),a=a<<6|o.indexOf(n.charAt(t));return r=i%4*6,r===0?(u.push(a>>16&255),u.push(a>>8&255),u.push(a&255)):r===18?(u.push(a>>10&255),u.push(a>>2&255)):r===12&&u.push(a>>4&255),pi?pi.from?pi.from(u):new pi(u):u}s(Fk,"constructYamlBinary");function Vk(e){var t="",r=0,n,i,o=e.length,a=jd;for(n=0;n<o;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=o%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}s(Vk,"representYamlBinary");function Bk(e){return pi&&pi.isBuffer(e)}s(Bk,"isBinary");e_.exports=new Dk("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Lk,construct:Fk,predicate:Bk,represent:Vk})});var n_=b((R9,r_)=>{"use strict";var Hk=rt(),Uk=Object.prototype.hasOwnProperty,zk=Object.prototype.toString;function Gk(e){if(e===null)return!0;var t=[],r,n,i,o,a,u=e;for(r=0,n=u.length;r<n;r+=1){if(i=u[r],a=!1,zk.call(i)!=="[object Object]")return!1;for(o in i)if(Uk.call(i,o))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}s(Gk,"resolveYamlOmap");function Wk(e){return e!==null?e:[]}s(Wk,"constructYamlOmap");r_.exports=new Hk("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Gk,construct:Wk})});var s_=b((k9,i_)=>{"use strict";var Kk=rt(),Zk=Object.prototype.toString;function Yk(e){if(e===null)return!0;var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],Zk.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[t]=[i[0],n[i[0]]]}return!0}s(Yk,"resolveYamlPairs");function Jk(e){if(e===null)return[];var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}s(Jk,"constructYamlPairs");i_.exports=new Kk("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Yk,construct:Jk})});var a_=b((M9,o_)=>{"use strict";var Qk=rt(),Xk=Object.prototype.hasOwnProperty;function eN(e){if(e===null)return!0;var t,r=e;for(t in r)if(Xk.call(r,t)&&r[t]!==null)return!1;return!0}s(eN,"resolveYamlSet");function tN(e){return e!==null?e:{}}s(tN,"constructYamlSet");o_.exports=new Qk("tag:yaml.org,2002:set",{kind:"mapping",resolve:eN,construct:tN})});var ps=b((q9,u_)=>{"use strict";var rN=fi();u_.exports=new rN({include:[Rd()],implicit:[Yb(),Qb()],explicit:[t_(),n_(),s_(),a_()]})});var l_=b((D9,c_)=>{"use strict";var nN=rt();function iN(){return!0}s(iN,"resolveJavascriptUndefined");function sN(){}s(sN,"constructJavascriptUndefined");function oN(){return""}s(oN,"representJavascriptUndefined");function aN(e){return typeof e>"u"}s(aN,"isUndefined");c_.exports=new nN("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:iN,construct:sN,predicate:aN,represent:oN})});var p_=b((F9,f_)=>{"use strict";var uN=rt();function cN(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}s(cN,"resolveJavascriptRegExp");function lN(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}s(lN,"constructJavascriptRegExp");function fN(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}s(fN,"representJavascriptRegExp");function pN(e){return Object.prototype.toString.call(e)==="[object RegExp]"}s(pN,"isRegExp");f_.exports=new uN("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:cN,construct:lN,predicate:pN,represent:fN})});var m_=b((B9,h_)=>{"use strict";var vu;try{d_=Pe,vu=d_("esprima")}catch{typeof window<"u"&&(vu=window.esprima)}var d_,dN=rt();function hN(e){if(e===null)return!1;try{var t="("+e+")",r=vu.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}s(hN,"resolveJavascriptFunction");function mN(e){var t="("+e+")",r=vu.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(o){n.push(o.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}s(mN,"constructJavascriptFunction");function gN(e){return e.toString()}s(gN,"representJavascriptFunction");function yN(e){return Object.prototype.toString.call(e)==="[object Function]"}s(yN,"isFunction");h_.exports=new dN("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:hN,construct:mN,predicate:yN,represent:gN})});var Eo=b((U9,y_)=>{"use strict";var g_=fi();y_.exports=g_.DEFAULT=new g_({include:[ps()],explicit:[l_(),p_(),m_()]})});var T_=b((z9,Ao)=>{"use strict";var Wr=li(),P_=ls(),vN=Pb(),O_=ps(),bN=Eo(),Sn=Object.prototype.hasOwnProperty,bu=1,x_=2,E_=3,_u=4,kd=1,_N=2,v_=3,SN=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,wN=/[\x85\u2028\u2029]/,$N=/[,\[\]\{\}]/,A_=/^(?:!|!!|![a-z\-]+!)$/i,C_=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function b_(e){return Object.prototype.toString.call(e)}s(b_,"_class");function Ir(e){return e===10||e===13}s(Ir,"is_EOL");function hi(e){return e===9||e===32}s(hi,"is_WHITE_SPACE");function jt(e){return e===9||e===32||e===10||e===13}s(jt,"is_WS_OR_EOL");function ds(e){return e===44||e===91||e===93||e===123||e===125}s(ds,"is_FLOW_INDICATOR");function PN(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}s(PN,"fromHexCode");function ON(e){return e===120?2:e===117?4:e===85?8:0}s(ON,"escapedHexLen");function xN(e){return 48<=e&&e<=57?e-48:-1}s(xN,"fromDecimalCode");function __(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
22
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}s(__,"simpleEscapeSequence");function EN(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}s(EN,"charFromCodepoint");var I_=new Array(256),R_=new Array(256);for(di=0;di<256;di++)I_[di]=__(di)?1:0,R_[di]=__(di);var di;function AN(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||bN,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}s(AN,"State");function j_(e,t){return new P_(t,new vN(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}s(j_,"generateError");function X(e,t){throw j_(e,t)}s(X,"throwError");function Su(e,t){e.onWarning&&e.onWarning.call(null,j_(e,t))}s(Su,"throwWarning");var S_={YAML:s(function(t,r,n){var i,o,a;t.version!==null&&X(t,"duplication of %YAML directive"),n.length!==1&&X(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&X(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),a=parseInt(i[2],10),o!==1&&X(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Su(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:s(function(t,r,n){var i,o;n.length!==2&&X(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],A_.test(i)||X(t,"ill-formed tag handle (first argument) of the TAG directive"),Sn.call(t.tagMap,i)&&X(t,'there is a previously declared suffix for "'+i+'" tag handle'),C_.test(o)||X(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o},"handleTagDirective")};function _n(e,t,r,n){var i,o,a,u;if(t<r){if(u=e.input.slice(t,r),n)for(i=0,o=u.length;i<o;i+=1)a=u.charCodeAt(i),a===9||32<=a&&a<=1114111||X(e,"expected valid JSON character");else SN.test(u)&&X(e,"the stream contains non-printable characters");e.result+=u}}s(_n,"captureSegment");function w_(e,t,r,n){var i,o,a,u;for(Wr.isObject(r)||X(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,u=i.length;a<u;a+=1)o=i[a],Sn.call(t,o)||(t[o]=r[o],n[o]=!0)}s(w_,"mergeMappings");function hs(e,t,r,n,i,o,a,u){var c,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,l=i.length;c<l;c+=1)Array.isArray(i[c])&&X(e,"nested arrays are not supported inside keys"),typeof i=="object"&&b_(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&b_(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,l=o.length;c<l;c+=1)w_(e,t,o[c],r);else w_(e,t,o,r);else!e.json&&!Sn.call(r,i)&&Sn.call(t,i)&&(e.line=a||e.line,e.position=u||e.position,X(e,"duplicated mapping key")),t[i]=o,delete r[i];return t}s(hs,"storeMappingPair");function Nd(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):X(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}s(Nd,"readLineBreak");function Qe(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;hi(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(Ir(i))for(Nd(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&&Su(e,"deficient indentation"),n}s(Qe,"skipSeparationSpace");function wu(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||jt(r)))}s(wu,"testDocumentSeparator");function Md(e,t){t===1?e.result+=" ":t>1&&(e.result+=Wr.repeat(`
23
+ `,t-1))}s(Md,"writeFoldedLines");function CN(e,t,r){var n,i,o,a,u,c,l,p,f=e.kind,d=e.result,h;if(h=e.input.charCodeAt(e.position),jt(h)||ds(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),jt(i)||r&&ds(i)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,u=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),jt(i)||r&&ds(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),jt(n))break}else{if(e.position===e.lineStart&&wu(e)||r&&ds(h))break;if(Ir(h))if(c=e.line,l=e.lineStart,p=e.lineIndent,Qe(e,!1,-1),e.lineIndent>=t){u=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=c,e.lineStart=l,e.lineIndent=p;break}}u&&(_n(e,o,a,!1),Md(e,e.line-c),o=a=e.position,u=!1),hi(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return _n(e,o,a,!1),e.result?!0:(e.kind=f,e.result=d,!1)}s(CN,"readPlainScalar");function IN(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(_n(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 Ir(r)?(_n(e,n,i,!0),Md(e,Qe(e,!1,t)),n=i=e.position):e.position===e.lineStart&&wu(e)?X(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);X(e,"unexpected end of the stream within a single quoted scalar")}s(IN,"readSingleQuotedScalar");function RN(e,t){var r,n,i,o,a,u;if(u=e.input.charCodeAt(e.position),u!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(u=e.input.charCodeAt(e.position))!==0;){if(u===34)return _n(e,r,e.position,!0),e.position++,!0;if(u===92){if(_n(e,r,e.position,!0),u=e.input.charCodeAt(++e.position),Ir(u))Qe(e,!1,t);else if(u<256&&I_[u])e.result+=R_[u],e.position++;else if((a=ON(u))>0){for(i=a,o=0;i>0;i--)u=e.input.charCodeAt(++e.position),(a=PN(u))>=0?o=(o<<4)+a:X(e,"expected hexadecimal character");e.result+=EN(o),e.position++}else X(e,"unknown escape sequence");r=n=e.position}else Ir(u)?(_n(e,r,n,!0),Md(e,Qe(e,!1,t)),r=n=e.position):e.position===e.lineStart&&wu(e)?X(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}X(e,"unexpected end of the stream within a double quoted scalar")}s(RN,"readDoubleQuotedScalar");function jN(e,t){var r=!0,n,i=e.tag,o,a=e.anchor,u,c,l,p,f,d={},h,y,v,g;if(g=e.input.charCodeAt(e.position),g===91)c=93,f=!1,o=[];else if(g===123)c=125,f=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),g=e.input.charCodeAt(++e.position);g!==0;){if(Qe(e,!0,t),g=e.input.charCodeAt(e.position),g===c)return e.position++,e.tag=i,e.anchor=a,e.kind=f?"mapping":"sequence",e.result=o,!0;r||X(e,"missed comma between flow collection entries"),y=h=v=null,l=p=!1,g===63&&(u=e.input.charCodeAt(e.position+1),jt(u)&&(l=p=!0,e.position++,Qe(e,!0,t))),n=e.line,ms(e,t,bu,!1,!0),y=e.tag,h=e.result,Qe(e,!0,t),g=e.input.charCodeAt(e.position),(p||e.line===n)&&g===58&&(l=!0,g=e.input.charCodeAt(++e.position),Qe(e,!0,t),ms(e,t,bu,!1,!0),v=e.result),f?hs(e,o,d,y,h,v):l?o.push(hs(e,null,d,y,h,v)):o.push(h),Qe(e,!0,t),g=e.input.charCodeAt(e.position),g===44?(r=!0,g=e.input.charCodeAt(++e.position)):r=!1}X(e,"unexpected end of the stream within a flow collection")}s(jN,"readFlowCollection");function kN(e,t){var r,n,i=kd,o=!1,a=!1,u=t,c=0,l=!1,p,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)kd===i?i=f===43?v_:_N:X(e,"repeat of a chomping mode identifier");else if((p=xN(f))>=0)p===0?X(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?X(e,"repeat of an indentation width identifier"):(u=t+p-1,a=!0);else break;if(hi(f)){do f=e.input.charCodeAt(++e.position);while(hi(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Ir(f)&&f!==0)}for(;f!==0;){for(Nd(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!a||e.lineIndent<u)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>u&&(u=e.lineIndent),Ir(f)){c++;continue}if(e.lineIndent<u){i===v_?e.result+=Wr.repeat(`
24
+ `,o?1+c:c):i===kd&&o&&(e.result+=`
25
25
  `);break}for(n?hi(f)?(l=!0,e.result+=Wr.repeat(`
26
26
  `,o?1+c:c)):l?(l=!1,e.result+=Wr.repeat(`
27
27
  `,c+1)):c===0?o&&(e.result+=" "):e.result+=Wr.repeat(`
28
28
  `,c):e.result+=Wr.repeat(`
29
- `,o?1+c:c),o=!0,a=!0,c=0,r=e.position;!Ir(f)&&f!==0;)f=e.input.charCodeAt(++e.position);_n(e,r,e.position,!1)}return!0}s(AN,"readBlockScalar");function __(e,t){var r,n=e.tag,i=e.anchor,o=[],a,u=!1,c;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),c=e.input.charCodeAt(e.position);c!==0&&!(c!==45||(a=e.input.charCodeAt(e.position+1),!jt(a)));){if(u=!0,e.position++,Qe(e,!0,-1)&&e.lineIndent<=t){o.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,hs(e,t,P_,!1,!0),o.push(e.result),Qe(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)X(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return u?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}s(__,"readBlockSequence");function CN(e,t,r){var n,i,o,a,u=e.tag,c=e.anchor,l={},p={},f=null,d=null,h=null,y=!1,v=!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),o=e.line,a=e.position,(g===63||g===58)&&jt(n))g===63?(y&&(ds(e,l,p,f,d,null),f=d=h=null),v=!0,y=!0,i=!0):y?(y=!1,i=!0):X(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=n;else if(hs(e,r,$_,!1,!0))if(e.line===o){for(g=e.input.charCodeAt(e.position);hi(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),jt(g)||X(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(ds(e,l,p,f,d,null),f=d=h=null),v=!0,y=!1,i=!1,f=e.tag,d=e.result;else if(v)X(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=c,!0}else if(v)X(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=c,!0;else break;if((e.line===o||e.lineIndent>t)&&(hs(e,t,bu,!0,i)&&(y?d=e.result:h=e.result),y||(ds(e,l,p,f,d,h,o,a),f=d=h=null),Qe(e,!0,-1),g=e.input.charCodeAt(e.position)),e.lineIndent>t&&g!==0)X(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&ds(e,l,p,f,d,null),v&&(e.tag=u,e.anchor=c,e.kind="mapping",e.result=l),v}s(CN,"readBlockMapping");function IN(e){var t,r=!1,n=!1,i,o,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&X(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(o=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):X(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!jt(a);)a===33&&(n?X(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),O_.test(i)||X(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),vN.test(o)&&X(e,"tag suffix cannot contain flow indicator characters")}return o&&!E_.test(o)&&X(e,"tag name cannot contain such characters: "+o),r?e.tag=o:Sn.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:X(e,'undeclared tag handle "'+i+'"'),!0}s(IN,"readTagProperty");function RN(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&X(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!jt(r)&&!ps(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&X(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}s(RN,"readAnchorProperty");function jN(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&&!jt(n)&&!ps(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&X(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Sn.call(e.anchorMap,r)||X(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Qe(e,!0,-1),!0}s(jN,"readAlias");function hs(e,t,r,n,i){var o,a,u,c=1,l=!1,p=!1,f,d,h,y,v;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=u=bu===r||P_===r,n&&Qe(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;IN(e)||RN(e);)Qe(e,!0,-1)?(l=!0,u=o,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):u=!1;if(u&&(u=l||i),(c===1||bu===r)&&(vu===r||$_===r?y=t:y=t+1,v=e.position-e.lineStart,c===1?u&&(__(e,v)||CN(e,v,y))||xN(e,y)?p=!0:(a&&AN(e,y)||ON(e,y)||EN(e,y)?p=!0:jN(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&X(e,"alias node should not have any properties")):PN(e,y,vu===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(p=u&&__(e,v))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&X(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,d=e.implicitTypes.length;f<d;f+=1)if(h=e.implicitTypes[f],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else Sn.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&X(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result)?(e.result=h.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):X(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):X(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}s(hs,"composeNode");function kN(e){var t=e.position,r,n,i,o=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(Qe(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(o=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!jt(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&X(e,"directive name must not be less than one character in length");a!==0;){for(;hi(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Ir(a));break}if(Ir(a))break;for(r=e.position;a!==0&&!jt(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&kd(e),Sn.call(v_,n)?v_[n](e,n,i):_u(e,'unknown document directive "'+n+'"')}if(Qe(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,Qe(e,!0,-1)):o&&X(e,"directives end mark is expected"),hs(e,e.lineIndent-1,bu,!1,!0),Qe(e,!0,-1),e.checkLineBreaks&&yN.test(e.input.slice(t,e.position))&&_u(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Su(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Qe(e,!0,-1));return}if(e.position<e.length-1)X(e,"end of the stream or a document separator is expected");else return}s(kN,"readDocument");function I_(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
30
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new $N(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,X(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)kN(r);return r.documents}s(I_,"loadDocuments");function R_(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=I_(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}s(R_,"loadAll");function j_(e,t){var r=I_(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new S_("expected a single document in the stream, but found more")}}s(j_,"load");function NN(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),R_(e,t,Wr.extend({schema:w_},r))}s(NN,"safeLoadAll");function MN(e,t){return j_(e,Wr.extend({schema:w_},t))}s(MN,"safeLoad");xo.exports.loadAll=R_;xo.exports.load=j_;xo.exports.safeLoadAll=NN;xo.exports.safeLoad=MN});var r1=b((B9,Dd)=>{"use strict";var Co=li(),Io=cs(),TN=Eo(),qN=fs(),B_=Object.prototype.toString,V_=Object.prototype.hasOwnProperty,DN=9,Ao=10,LN=13,FN=32,BN=33,VN=34,H_=35,HN=37,UN=38,GN=39,zN=42,U_=44,WN=45,G_=58,KN=61,ZN=62,YN=63,JN=64,z_=91,W_=93,QN=96,K_=123,XN=124,Z_=125,mt={};mt[0]="\\0";mt[7]="\\a";mt[8]="\\b";mt[9]="\\t";mt[10]="\\n";mt[11]="\\v";mt[12]="\\f";mt[13]="\\r";mt[27]="\\e";mt[34]='\\"';mt[92]="\\\\";mt[133]="\\N";mt[160]="\\_";mt[8232]="\\L";mt[8233]="\\P";var e3=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function t3(e,t){var r,n,i,o,a,u,c;if(t===null)return{};for(r={},n=Object.keys(t),i=0,o=n.length;i<o;i+=1)a=n[i],u=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),c=e.compiledTypeMap.fallback[a],c&&V_.call(c.styleAliases,u)&&(u=c.styleAliases[u]),r[a]=u;return r}s(t3,"compileStyleMap");function N_(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 Io("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Co.repeat("0",n-t.length)+t}s(N_,"encodeHex");function r3(e){this.schema=e.schema||TN,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Co.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=t3(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}s(r3,"State");function M_(e,t){for(var r=Co.repeat(" ",t),n=0,i=-1,o="",a,u=e.length;n<u;)i=e.indexOf(`
29
+ `,o?1+c:c),o=!0,a=!0,c=0,r=e.position;!Ir(f)&&f!==0;)f=e.input.charCodeAt(++e.position);_n(e,r,e.position,!1)}return!0}s(kN,"readBlockScalar");function $_(e,t){var r,n=e.tag,i=e.anchor,o=[],a,u=!1,c;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),c=e.input.charCodeAt(e.position);c!==0&&!(c!==45||(a=e.input.charCodeAt(e.position+1),!jt(a)));){if(u=!0,e.position++,Qe(e,!0,-1)&&e.lineIndent<=t){o.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,ms(e,t,E_,!1,!0),o.push(e.result),Qe(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)X(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return u?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}s($_,"readBlockSequence");function NN(e,t,r){var n,i,o,a,u=e.tag,c=e.anchor,l={},p={},f=null,d=null,h=null,y=!1,v=!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),o=e.line,a=e.position,(g===63||g===58)&&jt(n))g===63?(y&&(hs(e,l,p,f,d,null),f=d=h=null),v=!0,y=!0,i=!0):y?(y=!1,i=!0):X(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=n;else if(ms(e,r,x_,!1,!0))if(e.line===o){for(g=e.input.charCodeAt(e.position);hi(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),jt(g)||X(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(hs(e,l,p,f,d,null),f=d=h=null),v=!0,y=!1,i=!1,f=e.tag,d=e.result;else if(v)X(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=c,!0}else if(v)X(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=c,!0;else break;if((e.line===o||e.lineIndent>t)&&(ms(e,t,_u,!0,i)&&(y?d=e.result:h=e.result),y||(hs(e,l,p,f,d,h,o,a),f=d=h=null),Qe(e,!0,-1),g=e.input.charCodeAt(e.position)),e.lineIndent>t&&g!==0)X(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&hs(e,l,p,f,d,null),v&&(e.tag=u,e.anchor=c,e.kind="mapping",e.result=l),v}s(NN,"readBlockMapping");function MN(e){var t,r=!1,n=!1,i,o,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&X(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(o=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):X(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!jt(a);)a===33&&(n?X(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),A_.test(i)||X(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),$N.test(o)&&X(e,"tag suffix cannot contain flow indicator characters")}return o&&!C_.test(o)&&X(e,"tag name cannot contain such characters: "+o),r?e.tag=o:Sn.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:X(e,'undeclared tag handle "'+i+'"'),!0}s(MN,"readTagProperty");function TN(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&X(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!jt(r)&&!ds(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&X(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}s(TN,"readAnchorProperty");function qN(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&&!jt(n)&&!ds(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&X(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Sn.call(e.anchorMap,r)||X(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Qe(e,!0,-1),!0}s(qN,"readAlias");function ms(e,t,r,n,i){var o,a,u,c=1,l=!1,p=!1,f,d,h,y,v;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=u=_u===r||E_===r,n&&Qe(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;MN(e)||TN(e);)Qe(e,!0,-1)?(l=!0,u=o,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):u=!1;if(u&&(u=l||i),(c===1||_u===r)&&(bu===r||x_===r?y=t:y=t+1,v=e.position-e.lineStart,c===1?u&&($_(e,v)||NN(e,v,y))||jN(e,y)?p=!0:(a&&kN(e,y)||IN(e,y)||RN(e,y)?p=!0:qN(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&X(e,"alias node should not have any properties")):CN(e,y,bu===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(p=u&&$_(e,v))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&X(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,d=e.implicitTypes.length;f<d;f+=1)if(h=e.implicitTypes[f],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else Sn.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&X(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result)?(e.result=h.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):X(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):X(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}s(ms,"composeNode");function DN(e){var t=e.position,r,n,i,o=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(Qe(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(o=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!jt(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&X(e,"directive name must not be less than one character in length");a!==0;){for(;hi(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Ir(a));break}if(Ir(a))break;for(r=e.position;a!==0&&!jt(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Nd(e),Sn.call(S_,n)?S_[n](e,n,i):Su(e,'unknown document directive "'+n+'"')}if(Qe(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,Qe(e,!0,-1)):o&&X(e,"directives end mark is expected"),ms(e,e.lineIndent-1,_u,!1,!0),Qe(e,!0,-1),e.checkLineBreaks&&wN.test(e.input.slice(t,e.position))&&Su(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&wu(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Qe(e,!0,-1));return}if(e.position<e.length-1)X(e,"end of the stream or a document separator is expected");else return}s(DN,"readDocument");function k_(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
30
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new AN(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,X(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)DN(r);return r.documents}s(k_,"loadDocuments");function N_(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=k_(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}s(N_,"loadAll");function M_(e,t){var r=k_(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new P_("expected a single document in the stream, but found more")}}s(M_,"load");function LN(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),N_(e,t,Wr.extend({schema:O_},r))}s(LN,"safeLoadAll");function FN(e,t){return M_(e,Wr.extend({schema:O_},t))}s(FN,"safeLoad");Ao.exports.loadAll=N_;Ao.exports.load=M_;Ao.exports.safeLoadAll=LN;Ao.exports.safeLoad=FN});var sS=b((W9,Ld)=>{"use strict";var Io=li(),Ro=ls(),VN=Eo(),BN=ps(),U_=Object.prototype.toString,z_=Object.prototype.hasOwnProperty,HN=9,Co=10,UN=13,zN=32,GN=33,WN=34,G_=35,KN=37,ZN=38,YN=39,JN=42,W_=44,QN=45,K_=58,XN=61,e3=62,t3=63,r3=64,Z_=91,Y_=93,n3=96,J_=123,i3=124,Q_=125,mt={};mt[0]="\\0";mt[7]="\\a";mt[8]="\\b";mt[9]="\\t";mt[10]="\\n";mt[11]="\\v";mt[12]="\\f";mt[13]="\\r";mt[27]="\\e";mt[34]='\\"';mt[92]="\\\\";mt[133]="\\N";mt[160]="\\_";mt[8232]="\\L";mt[8233]="\\P";var s3=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function o3(e,t){var r,n,i,o,a,u,c;if(t===null)return{};for(r={},n=Object.keys(t),i=0,o=n.length;i<o;i+=1)a=n[i],u=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),c=e.compiledTypeMap.fallback[a],c&&z_.call(c.styleAliases,u)&&(u=c.styleAliases[u]),r[a]=u;return r}s(o3,"compileStyleMap");function q_(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Ro("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Io.repeat("0",n-t.length)+t}s(q_,"encodeHex");function a3(e){this.schema=e.schema||VN,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Io.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=o3(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}s(a3,"State");function D_(e,t){for(var r=Io.repeat(" ",t),n=0,i=-1,o="",a,u=e.length;n<u;)i=e.indexOf(`
31
31
  `,n),i===-1?(a=e.slice(n),n=u):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
32
- `&&(o+=r),o+=a;return o}s(M_,"indentString");function Md(e,t){return`
33
- `+Co.repeat(" ",e.indent*t)}s(Md,"generateNextLine");function n3(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}s(n3,"testImplicitResolving");function qd(e){return e===FN||e===DN}s(qd,"isWhitespace");function ms(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}s(ms,"isPrintable");function i3(e){return ms(e)&&!qd(e)&&e!==65279&&e!==LN&&e!==Ao}s(i3,"isNsChar");function T_(e,t){return ms(e)&&e!==65279&&e!==U_&&e!==z_&&e!==W_&&e!==K_&&e!==Z_&&e!==G_&&(e!==H_||t&&i3(t))}s(T_,"isPlainSafe");function s3(e){return ms(e)&&e!==65279&&!qd(e)&&e!==WN&&e!==YN&&e!==G_&&e!==U_&&e!==z_&&e!==W_&&e!==K_&&e!==Z_&&e!==H_&&e!==UN&&e!==zN&&e!==BN&&e!==XN&&e!==KN&&e!==ZN&&e!==GN&&e!==VN&&e!==HN&&e!==JN&&e!==QN}s(s3,"isPlainSafeFirst");function Y_(e){var t=/^\n* /;return t.test(e)}s(Y_,"needIndentIndicator");var J_=1,Q_=2,X_=3,e1=4,wu=5;function o3(e,t,r,n,i){var o,a,u,c=!1,l=!1,p=n!==-1,f=-1,d=s3(e.charCodeAt(0))&&!qd(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),!ms(a))return wu;u=o>0?e.charCodeAt(o-1):null,d=d&&T_(a,u)}else{for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),a===Ao)c=!0,p&&(l=l||o-f-1>n&&e[f+1]!==" ",f=o);else if(!ms(a))return wu;u=o>0?e.charCodeAt(o-1):null,d=d&&T_(a,u)}l=l||p&&o-f-1>n&&e[f+1]!==" "}return!c&&!l?d&&!i(e)?J_:Q_:r>9&&Y_(e)?wu:l?e1:X_}s(o3,"chooseScalarStyle");function a3(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&e3.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;function u(c){return n3(e,c)}switch(s(u,"testAmbiguity"),o3(t,a,e.indent,o,u)){case J_:return t;case Q_:return"'"+t.replace(/'/g,"''")+"'";case X_:return"|"+q_(t,e.indent)+D_(M_(t,i));case e1:return">"+q_(t,e.indent)+D_(M_(u3(t,o),i));case wu:return'"'+c3(t,o)+'"';default:throw new Io("impossible error: invalid scalar style")}}()}s(a3,"writeScalar");function q_(e,t){var r=Y_(e)?String(t):"",n=e[e.length-1]===`
32
+ `&&(o+=r),o+=a;return o}s(D_,"indentString");function Td(e,t){return`
33
+ `+Io.repeat(" ",e.indent*t)}s(Td,"generateNextLine");function u3(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}s(u3,"testImplicitResolving");function Dd(e){return e===zN||e===HN}s(Dd,"isWhitespace");function gs(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}s(gs,"isPrintable");function c3(e){return gs(e)&&!Dd(e)&&e!==65279&&e!==UN&&e!==Co}s(c3,"isNsChar");function L_(e,t){return gs(e)&&e!==65279&&e!==W_&&e!==Z_&&e!==Y_&&e!==J_&&e!==Q_&&e!==K_&&(e!==G_||t&&c3(t))}s(L_,"isPlainSafe");function l3(e){return gs(e)&&e!==65279&&!Dd(e)&&e!==QN&&e!==t3&&e!==K_&&e!==W_&&e!==Z_&&e!==Y_&&e!==J_&&e!==Q_&&e!==G_&&e!==ZN&&e!==JN&&e!==GN&&e!==i3&&e!==XN&&e!==e3&&e!==YN&&e!==WN&&e!==KN&&e!==r3&&e!==n3}s(l3,"isPlainSafeFirst");function X_(e){var t=/^\n* /;return t.test(e)}s(X_,"needIndentIndicator");var eS=1,tS=2,rS=3,nS=4,$u=5;function f3(e,t,r,n,i){var o,a,u,c=!1,l=!1,p=n!==-1,f=-1,d=l3(e.charCodeAt(0))&&!Dd(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),!gs(a))return $u;u=o>0?e.charCodeAt(o-1):null,d=d&&L_(a,u)}else{for(o=0;o<e.length;o++){if(a=e.charCodeAt(o),a===Co)c=!0,p&&(l=l||o-f-1>n&&e[f+1]!==" ",f=o);else if(!gs(a))return $u;u=o>0?e.charCodeAt(o-1):null,d=d&&L_(a,u)}l=l||p&&o-f-1>n&&e[f+1]!==" "}return!c&&!l?d&&!i(e)?eS:tS:r>9&&X_(e)?$u:l?nS:rS}s(f3,"chooseScalarStyle");function p3(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),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;function u(c){return u3(e,c)}switch(s(u,"testAmbiguity"),f3(t,a,e.indent,o,u)){case eS:return t;case tS:return"'"+t.replace(/'/g,"''")+"'";case rS:return"|"+F_(t,e.indent)+V_(D_(t,i));case nS:return">"+F_(t,e.indent)+V_(D_(d3(t,o),i));case $u:return'"'+h3(t,o)+'"';default:throw new Ro("impossible error: invalid scalar style")}}()}s(p3,"writeScalar");function F_(e,t){var r=X_(e)?String(t):"",n=e[e.length-1]===`
34
34
  `,i=n&&(e[e.length-2]===`
35
35
  `||e===`
36
36
  `),o=i?"+":n?"":"-";return r+o+`
37
- `}s(q_,"blockHeader");function D_(e){return e[e.length-1]===`
38
- `?e.slice(0,-1):e}s(D_,"dropEndingNewline");function u3(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var l=e.indexOf(`
39
- `);return l=l!==-1?l:e.length,r.lastIndex=l,L_(e.slice(0,l),t)}(),i=e[0]===`
37
+ `}s(F_,"blockHeader");function V_(e){return e[e.length-1]===`
38
+ `?e.slice(0,-1):e}s(V_,"dropEndingNewline");function d3(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var l=e.indexOf(`
39
+ `);return l=l!==-1?l:e.length,r.lastIndex=l,B_(e.slice(0,l),t)}(),i=e[0]===`
40
40
  `||e[0]===" ",o,a;a=r.exec(e);){var u=a[1],c=a[2];o=c[0]===" ",n+=u+(!i&&!o&&c!==""?`
41
- `:"")+L_(c,t),i=o}return n}s(u3,"foldString");function L_(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,o,a=0,u=0,c="";n=r.exec(e);)u=n.index,u-i>t&&(o=a>i?a:u,c+=`
41
+ `:"")+B_(c,t),i=o}return n}s(d3,"foldString");function B_(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,o,a=0,u=0,c="";n=r.exec(e);)u=n.index,u-i>t&&(o=a>i?a:u,c+=`
42
42
  `+e.slice(i,o),i=o+1),a=u;return c+=`
43
43
  `,e.length-i>t&&a>i?c+=e.slice(i,a)+`
44
- `+e.slice(a+1):c+=e.slice(i),c.slice(1)}s(L_,"foldLine");function c3(e){for(var t="",r,n,i,o=0;o<e.length;o++){if(r=e.charCodeAt(o),r>=55296&&r<=56319&&(n=e.charCodeAt(o+1),n>=56320&&n<=57343)){t+=N_((r-55296)*1024+n-56320+65536),o++;continue}i=mt[r],t+=!i&&ms(r)?e[o]:i||N_(r)}return t}s(c3,"escapeString");function l3(e,t,r){var n="",i=e.tag,o,a;for(o=0,a=r.length;o<a;o+=1)mi(e,t,r[o],!1,!1)&&(o!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}s(l3,"writeFlowSequence");function f3(e,t,r,n){var i="",o=e.tag,a,u;for(a=0,u=r.length;a<u;a+=1)mi(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Md(e,t)),e.dump&&Ao===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}s(f3,"writeBlockSequence");function p3(e,t,r){var n="",i=e.tag,o=Object.keys(r),a,u,c,l,p;for(a=0,u=o.length;a<u;a+=1)p="",a!==0&&(p+=", "),e.condenseFlow&&(p+='"'),c=o[a],l=r[c],mi(e,t,c,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),mi(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}s(p3,"writeFlowMapping");function d3(e,t,r,n){var i="",o=e.tag,a=Object.keys(r),u,c,l,p,f,d;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new Io("sortKeys must be a boolean or a function");for(u=0,c=a.length;u<c;u+=1)d="",(!n||u!==0)&&(d+=Md(e,t)),l=a[u],p=r[l],mi(e,t+1,l,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Ao===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=Md(e,t)),mi(e,t+1,p,!0,f)&&(e.dump&&Ao===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=o,e.dump=i||"{}"}s(d3,"writeBlockMapping");function F_(e,t,r){var n,i,o,a,u,c;for(i=r?e.explicitTypes:e.implicitTypes,o=0,a=i.length;o<a;o+=1)if(u=i[o],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof t=="object"&&t instanceof u.instanceOf)&&(!u.predicate||u.predicate(t))){if(e.tag=r?u.tag:"?",u.represent){if(c=e.styleMap[u.tag]||u.defaultStyle,B_.call(u.represent)==="[object Function]")n=u.represent(t,c);else if(V_.call(u.represent,c))n=u.represent[c](t,c);else throw new Io("!<"+u.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}s(F_,"detectType");function mi(e,t,r,n,i,o){e.tag=null,e.dump=r,F_(e,r,!1)||F_(e,r,!0);var a=B_.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var u=a==="[object Object]"||a==="[object Array]",c,l;if(u&&(c=e.duplicates.indexOf(r),l=c!==-1),(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&t>0)&&(i=!1),l&&e.usedDuplicates[c])e.dump="*ref_"+c;else{if(u&&l&&!e.usedDuplicates[c]&&(e.usedDuplicates[c]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(d3(e,t,e.dump,i),l&&(e.dump="&ref_"+c+e.dump)):(p3(e,t,e.dump),l&&(e.dump="&ref_"+c+" "+e.dump));else if(a==="[object Array]"){var p=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(f3(e,p,e.dump,i),l&&(e.dump="&ref_"+c+e.dump)):(l3(e,p,e.dump),l&&(e.dump="&ref_"+c+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&a3(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new Io("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}s(mi,"writeNode");function h3(e,t){var r=[],n=[],i,o;for(Td(e,r,n),i=0,o=n.length;i<o;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(o)}s(h3,"getDuplicateReferences");function Td(e,t,r){var n,i,o;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)Td(e[i],t,r);else for(n=Object.keys(e),i=0,o=n.length;i<o;i+=1)Td(e[n[i]],t,r)}s(Td,"inspectNode");function t1(e,t){t=t||{};var r=new r3(t);return r.noRefs||h3(e,r),mi(r,0,e,!0,!0)?r.dump+`
45
- `:""}s(t1,"dump");function m3(e,t){return t1(e,Co.extend({schema:qN},t))}s(m3,"safeDump");Dd.exports.dump=t1;Dd.exports.safeDump=m3});var i1=b((H9,Ue)=>{"use strict";var $u=k_(),n1=r1();function Pu(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}s(Pu,"deprecated");Ue.exports.Type=rt();Ue.exports.Schema=fi();Ue.exports.FAILSAFE_SCHEMA=gu();Ue.exports.JSON_SCHEMA=Cd();Ue.exports.CORE_SCHEMA=Id();Ue.exports.DEFAULT_SAFE_SCHEMA=fs();Ue.exports.DEFAULT_FULL_SCHEMA=Eo();Ue.exports.load=$u.load;Ue.exports.loadAll=$u.loadAll;Ue.exports.safeLoad=$u.safeLoad;Ue.exports.safeLoadAll=$u.safeLoadAll;Ue.exports.dump=n1.dump;Ue.exports.safeDump=n1.safeDump;Ue.exports.YAMLException=cs();Ue.exports.MINIMAL_SCHEMA=gu();Ue.exports.SAFE_SCHEMA=fs();Ue.exports.DEFAULT_SCHEMA=Eo();Ue.exports.scan=Pu("scan");Ue.exports.parse=Pu("parse");Ue.exports.compose=Pu("compose");Ue.exports.addConstructor=Pu("addConstructor")});var o1=b((G9,s1)=>{"use strict";var g3=i1();s1.exports=g3});var u1=b((z9,a1)=>{"use strict";var{ParserError:y3}=hr(),v3=o1();a1.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 v3.safeLoad(t)}catch(r){throw new y3(r.message,e.url)}else return t}}});var l1=b((W9,c1)=>{"use strict";var{ParserError:b3}=hr(),_3=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;c1.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&_3.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 b3("data is not text",e.url)}}});var p1=b((K9,f1)=>{"use strict";var S3=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;f1.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&S3.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var m1=b((Z9,h1)=>{"use strict";var w3=Pe("fs"),{ono:Ld}=ur(),d1=Dt(),{ResolverError:Fd}=hr();h1.exports={order:100,canRead(e){return d1.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=d1.toFileSystemPath(e.url)}catch(i){r(new Fd(Ld.uri(i,`Malformed URI: ${e.url}`),e.url))}try{w3.readFile(n,(i,o)=>{i?r(new Fd(Ld(i,`Error opening file "${n}"`),n)):t(o)})}catch(i){r(new Fd(Ld(i,`Error opening file "${n}"`),n))}})}}});var b1=b((Y9,v1)=>{"use strict";var $3=Pe("http"),P3=Pe("https"),{ono:Ou}=ur(),Ro=Dt(),{ResolverError:g1}=hr();v1.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return Ro.isHttp(e.url)},read(e){let t=Ro.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=Ro.parse(location.href).protocol),y1(t,this)}};function y1(e,t,r){return new Promise((n,i)=>{e=Ro.parse(e),r=r||[],r.push(e.href),O3(e,t).then(o=>{if(o.statusCode>=400)throw Ou({status:o.statusCode},`HTTP ERROR ${o.statusCode}`);if(o.statusCode>=300)if(r.length>t.redirects)i(new g1(Ou({status:o.statusCode},`Error downloading ${r[0]}.
44
+ `+e.slice(a+1):c+=e.slice(i),c.slice(1)}s(B_,"foldLine");function h3(e){for(var t="",r,n,i,o=0;o<e.length;o++){if(r=e.charCodeAt(o),r>=55296&&r<=56319&&(n=e.charCodeAt(o+1),n>=56320&&n<=57343)){t+=q_((r-55296)*1024+n-56320+65536),o++;continue}i=mt[r],t+=!i&&gs(r)?e[o]:i||q_(r)}return t}s(h3,"escapeString");function m3(e,t,r){var n="",i=e.tag,o,a;for(o=0,a=r.length;o<a;o+=1)mi(e,t,r[o],!1,!1)&&(o!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}s(m3,"writeFlowSequence");function g3(e,t,r,n){var i="",o=e.tag,a,u;for(a=0,u=r.length;a<u;a+=1)mi(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Td(e,t)),e.dump&&Co===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}s(g3,"writeBlockSequence");function y3(e,t,r){var n="",i=e.tag,o=Object.keys(r),a,u,c,l,p;for(a=0,u=o.length;a<u;a+=1)p="",a!==0&&(p+=", "),e.condenseFlow&&(p+='"'),c=o[a],l=r[c],mi(e,t,c,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),mi(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}s(y3,"writeFlowMapping");function v3(e,t,r,n){var i="",o=e.tag,a=Object.keys(r),u,c,l,p,f,d;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new Ro("sortKeys must be a boolean or a function");for(u=0,c=a.length;u<c;u+=1)d="",(!n||u!==0)&&(d+=Td(e,t)),l=a[u],p=r[l],mi(e,t+1,l,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Co===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=Td(e,t)),mi(e,t+1,p,!0,f)&&(e.dump&&Co===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=o,e.dump=i||"{}"}s(v3,"writeBlockMapping");function H_(e,t,r){var n,i,o,a,u,c;for(i=r?e.explicitTypes:e.implicitTypes,o=0,a=i.length;o<a;o+=1)if(u=i[o],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof t=="object"&&t instanceof u.instanceOf)&&(!u.predicate||u.predicate(t))){if(e.tag=r?u.tag:"?",u.represent){if(c=e.styleMap[u.tag]||u.defaultStyle,U_.call(u.represent)==="[object Function]")n=u.represent(t,c);else if(z_.call(u.represent,c))n=u.represent[c](t,c);else throw new Ro("!<"+u.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}s(H_,"detectType");function mi(e,t,r,n,i,o){e.tag=null,e.dump=r,H_(e,r,!1)||H_(e,r,!0);var a=U_.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var u=a==="[object Object]"||a==="[object Array]",c,l;if(u&&(c=e.duplicates.indexOf(r),l=c!==-1),(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&t>0)&&(i=!1),l&&e.usedDuplicates[c])e.dump="*ref_"+c;else{if(u&&l&&!e.usedDuplicates[c]&&(e.usedDuplicates[c]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(v3(e,t,e.dump,i),l&&(e.dump="&ref_"+c+e.dump)):(y3(e,t,e.dump),l&&(e.dump="&ref_"+c+" "+e.dump));else if(a==="[object Array]"){var p=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(g3(e,p,e.dump,i),l&&(e.dump="&ref_"+c+e.dump)):(m3(e,p,e.dump),l&&(e.dump="&ref_"+c+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&p3(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new Ro("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}s(mi,"writeNode");function b3(e,t){var r=[],n=[],i,o;for(qd(e,r,n),i=0,o=n.length;i<o;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(o)}s(b3,"getDuplicateReferences");function qd(e,t,r){var n,i,o;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)qd(e[i],t,r);else for(n=Object.keys(e),i=0,o=n.length;i<o;i+=1)qd(e[n[i]],t,r)}s(qd,"inspectNode");function iS(e,t){t=t||{};var r=new a3(t);return r.noRefs||b3(e,r),mi(r,0,e,!0,!0)?r.dump+`
45
+ `:""}s(iS,"dump");function _3(e,t){return iS(e,Io.extend({schema:BN},t))}s(_3,"safeDump");Ld.exports.dump=iS;Ld.exports.safeDump=_3});var aS=b((Z9,Ue)=>{"use strict";var Pu=T_(),oS=sS();function Ou(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}s(Ou,"deprecated");Ue.exports.Type=rt();Ue.exports.Schema=fi();Ue.exports.FAILSAFE_SCHEMA=yu();Ue.exports.JSON_SCHEMA=Id();Ue.exports.CORE_SCHEMA=Rd();Ue.exports.DEFAULT_SAFE_SCHEMA=ps();Ue.exports.DEFAULT_FULL_SCHEMA=Eo();Ue.exports.load=Pu.load;Ue.exports.loadAll=Pu.loadAll;Ue.exports.safeLoad=Pu.safeLoad;Ue.exports.safeLoadAll=Pu.safeLoadAll;Ue.exports.dump=oS.dump;Ue.exports.safeDump=oS.safeDump;Ue.exports.YAMLException=ls();Ue.exports.MINIMAL_SCHEMA=yu();Ue.exports.SAFE_SCHEMA=ps();Ue.exports.DEFAULT_SCHEMA=Eo();Ue.exports.scan=Ou("scan");Ue.exports.parse=Ou("parse");Ue.exports.compose=Ou("compose");Ue.exports.addConstructor=Ou("addConstructor")});var cS=b((J9,uS)=>{"use strict";var S3=aS();uS.exports=S3});var fS=b((Q9,lS)=>{"use strict";var{ParserError:w3}=hr(),$3=cS();lS.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 $3.safeLoad(t)}catch(r){throw new w3(r.message,e.url)}else return t}}});var dS=b((X9,pS)=>{"use strict";var{ParserError:P3}=hr(),O3=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;pS.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&O3.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 P3("data is not text",e.url)}}});var mS=b((eV,hS)=>{"use strict";var x3=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;hS.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&x3.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var vS=b((tV,yS)=>{"use strict";var E3=Pe("fs"),{ono:Fd}=ur(),gS=Dt(),{ResolverError:Vd}=hr();yS.exports={order:100,canRead(e){return gS.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=gS.toFileSystemPath(e.url)}catch(i){r(new Vd(Fd.uri(i,`Malformed URI: ${e.url}`),e.url))}try{E3.readFile(n,(i,o)=>{i?r(new Vd(Fd(i,`Error opening file "${n}"`),n)):t(o)})}catch(i){r(new Vd(Fd(i,`Error opening file "${n}"`),n))}})}}});var wS=b((rV,SS)=>{"use strict";var A3=Pe("http"),C3=Pe("https"),{ono:xu}=ur(),jo=Dt(),{ResolverError:bS}=hr();SS.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return jo.isHttp(e.url)},read(e){let t=jo.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=jo.parse(location.href).protocol),_S(t,this)}};function _S(e,t,r){return new Promise((n,i)=>{e=jo.parse(e),r=r||[],r.push(e.href),I3(e,t).then(o=>{if(o.statusCode>=400)throw xu({status:o.statusCode},`HTTP ERROR ${o.statusCode}`);if(o.statusCode>=300)if(r.length>t.redirects)i(new bS(xu({status:o.statusCode},`Error downloading ${r[0]}.
46
46
  Too many redirects:
47
47
  ${r.join(`
48
- `)}`)));else if(o.headers.location){let a=Ro.resolve(e,o.headers.location);y1(a,t,r).then(n,i)}else throw Ou({status:o.statusCode},`HTTP ${o.statusCode} redirect with no location header`);else n(o.body||Buffer.alloc(0))}).catch(o=>{i(new g1(Ou(o,`Error downloading ${e.href}`),e.href))})})}s(y1,"download");function O3(e,t){return new Promise((r,n)=>{let o=(e.protocol==="https:"?P3:$3).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});typeof o.setTimeout=="function"&&o.setTimeout(t.timeout),o.on("timeout",()=>{o.abort()}),o.on("error",n),o.once("response",a=>{a.body=Buffer.alloc(0),a.on("data",u=>{a.body=Buffer.concat([a.body,Buffer.from(u)])}),a.on("error",n),a.on("end",()=>{r(a)})})})}s(O3,"get")});var Hd=b((Q9,S1)=>{"use strict";var E3=gb(),x3=u1(),A3=l1(),C3=p1(),I3=m1(),R3=b1();S1.exports=Vd;function Vd(e){Bd(this,Vd.defaults),Bd(this,e)}s(Vd,"$RefParserOptions");Vd.defaults={parse:{json:E3,yaml:x3,text:A3,binary:C3},resolve:{file:I3,http:R3,external:!0},continueOnError:!1,dereference:{circular:!0}};function Bd(e,t){if(_1(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],o=t[i],a=e[i];_1(o)?e[i]=Bd(a||{},o):o!==void 0&&(e[i]=o)}}return e}s(Bd,"merge");function _1(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}s(_1,"isMergeable")});var Ud=b((eB,$1)=>{"use strict";var w1=Hd();$1.exports=j3;function j3(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 w1||(n=new w1(n)),{path:t,schema:r,options:n,callback:i}}s(j3,"normalizeArgs")});var O1=b((rB,P1)=>{"use strict";var Gd=Hd(),k3=$d(),N3=Ed(),M3=Pe("util");P1.exports=Eu;function Eu(e){Gd.call(this,Eu.defaults),Gd.apply(this,arguments)}s(Eu,"ParserOptions");Eu.defaults={validate:{schema:k3,spec:N3}};M3.inherits(Eu,Gd)});var x1=b((iB,E1)=>{"use strict";function T3(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:s(function(t){setTimeout(t,0)},"next")}s(T3,"makeNext");E1.exports=T3()});var zd=b((oB,C1)=>{"use strict";var A1=x1();C1.exports=s(function(t,r){if(t){r.then(function(n){A1(function(){t(null,n)})},function(n){A1(function(){t(n)})});return}else return r},"maybe")});var jo=b((uB,j1)=>{"use strict";j1.exports=wn;var Wd=gs(),Kd=Dt(),{JSONParserError:q3,InvalidPointerError:D3,MissingPointerError:L3,isHandledError:F3}=hr(),B3=/\//g,V3=/~/g,H3=/~1/g,U3=/~0/g;function wn(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}s(wn,"Pointer");wn.prototype.resolve=function(e,t,r){let n=wn.parse(this.path,this.originalPath);this.value=R1(e);for(let i=0;i<n.length;i++){if(xu(this,t)&&(this.path=wn.join(this.path,n.slice(i))),typeof this.value=="object"&&this.value!==null&&"$ref"in this.value)return this;let o=n[i];if(this.value[o]===void 0||this.value[o]===null)throw this.value=null,new L3(o,this.originalPath);this.value=this.value[o]}return(!this.value||this.value.$ref&&Kd.resolve(this.path,this.value.$ref)!==r)&&xu(this,t),this};wn.prototype.set=function(e,t,r){let n=wn.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=R1(e);for(let o=0;o<n.length-1;o++)xu(this,r),i=n[o],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=I1(this,i,{});return xu(this,r),i=n[n.length-1],I1(this,i,t),e};wn.parse=function(e,t){let r=Kd.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(H3,"/").replace(U3,"~"));if(r[0]!=="")throw new D3(r,t===void 0?e:t);return r.slice(1)};wn.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(V3,"~0").replace(B3,"~1"))}return e};function xu(e,t){if(Wd.isAllowed$Ref(e.value,t)){let r=Kd.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,Wd.isExtended$Ref(e.value)?(e.value=Wd.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}s(xu,"resolveIf$Ref");function I1(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 q3(`Error assigning $ref pointer "${e.path}".
49
- Cannot set "${t}" of a non-object.`);return r}s(I1,"setValue");function R1(e){if(F3(e))throw e;return e}s(R1,"unwrapOrThrow")});var gs=b((lB,M1)=>{"use strict";M1.exports=_t;var N1=jo(),{InvalidPointerError:G3,isHandledError:z3,normalizeError:k1}=hr(),{safePointerToPath:W3,stripHash:K3,getHash:Z3}=Dt();function _t(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}s(_t,"$Ref");_t.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(k1)):this.errors.push(k1(e))};_t.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};_t.prototype.get=function(e,t){return this.resolve(e,t).value};_t.prototype.resolve=function(e,t,r,n){let i=new N1(this,e,r);try{return i.resolve(this.value,t,n)}catch(o){if(!t||!t.continueOnError||!z3(o))throw o;return o.path===null&&(o.path=W3(Z3(n))),o instanceof G3&&(o.source=K3(n)),this.addError(o),null}};_t.prototype.set=function(e,t){let r=new N1(this,e);this.value=r.set(this.value,t)};_t.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};_t.isExternal$Ref=function(e){return _t.is$Ref(e)&&e.$ref[0]!=="#"};_t.isAllowed$Ref=function(e,t){if(_t.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};_t.isExtended$Ref=function(e){return _t.is$Ref(e)&&Object.keys(e).length>1};_t.dereference=function(e,t){if(t&&typeof t=="object"&&_t.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 L1=b((pB,D1)=>{"use strict";var{ono:T1}=ur(),Y3=gs(),$n=Dt();D1.exports=mr;function mr(){this.circular=!1,this._$refs={},this._root$Ref=null}s(mr,"$Refs");mr.prototype.paths=function(e){return q1(this._$refs,arguments).map(r=>r.decoded)};mr.prototype.values=function(e){let t=this._$refs;return q1(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};mr.prototype.toJSON=mr.prototype.values;mr.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};mr.prototype.get=function(e,t){return this._resolve(e,"",t).value};mr.prototype.set=function(e,t){let r=$n.resolve(this._root$Ref.path,e),n=$n.stripHash(r),i=this._$refs[n];if(!i)throw T1(`Error resolving $ref pointer "${e}".
50
- "${n}" not found.`);i.set(r,t)};mr.prototype._add=function(e){let t=$n.stripHash(e),r=new Y3;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};mr.prototype._resolve=function(e,t,r){let n=$n.resolve(this._root$Ref.path,e),i=$n.stripHash(n),o=this._$refs[i];if(!o)throw T1(`Error resolving $ref pointer "${e}".
51
- "${i}" not found.`);return o.resolve(n,r,e,t)};mr.prototype._get$Ref=function(e){e=$n.resolve(this._root$Ref.path,e);let t=$n.stripHash(e);return this._$refs[t]};function q1(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"?$n.toFileSystemPath(n,!0):n}))}s(q1,"getPaths")});var B1=b(ko=>{"use strict";ko.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};ko.filter=function(e,t,r){return e.filter(n=>!!F1(n,t,r))};ko.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)};ko.run=function(e,t,r,n){let i,o,a=0;return new Promise((u,c)=>{l();function l(){if(i=e[a++],!i)return c(o);try{let h=F1(i,t,r,p,n);if(h&&typeof h.then=="function")h.then(f,d);else if(h!==void 0)f(h);else if(a===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(h){d(h)}}s(l,"runNextPlugin");function p(h,y){h?d(h):f(y)}s(p,"callback");function f(h){u({plugin:i,result:h})}s(f,"onSuccess");function d(h){o={plugin:i,error:h},l()}s(d,"onError")})};function F1(e,t,r,n,i){let o=e[t];if(typeof o=="function")return o.apply(e,[r,n,i]);if(!n){if(o instanceof RegExp)return o.test(r.url);if(typeof o=="string")return o===r.extension;if(Array.isArray(o))return o.indexOf(r.extension)!==-1}return o}s(F1,"getResult")});var Yd=b((gB,G1)=>{"use strict";var{ono:Zd}=ur(),V1=Dt(),Pn=B1(),{ResolverError:H1,ParserError:U1,UnmatchedParserError:J3,UnmatchedResolverError:Q3,isHandledError:X3}=hr();G1.exports=eM;async function eM(e,t,r){e=V1.stripHash(e);let n=t._add(e),i={url:e,extension:V1.getExtension(e)};try{let o=await tM(i,r,t);n.pathType=o.plugin.name,i.data=o.result;let a=await rM(i,r,t);return n.value=a.result,a.result}catch(o){throw X3(o)&&(n.value=o),o}}s(eM,"parse");function tM(e,t,r){return new Promise((n,i)=>{let o=Pn.all(t.resolve);o=Pn.filter(o,"canRead",e),Pn.sort(o),Pn.run(o,"read",e,r).then(n,a);function a(u){!u&&t.continueOnError?i(new Q3(e.url)):!u||!("error"in u)?i(Zd.syntax(`Unable to resolve $ref pointer "${e.url}"`)):u.error instanceof H1?i(u.error):i(new H1(u,e.url))}s(a,"onError")})}s(tM,"readFile");function rM(e,t,r){return new Promise((n,i)=>{let o=Pn.all(t.parse),a=Pn.filter(o,"canParse",e),u=a.length>0?a:o;Pn.sort(u),Pn.run(u,"parse",e,r).then(c,l);function c(p){!p.plugin.allowEmpty&&nM(p.result)?i(Zd.syntax(`Error parsing "${e.url}" as ${p.plugin.name}.
52
- Parsed value is empty`)):n(p)}s(c,"onParsed");function l(p){!p&&t.continueOnError?i(new J3(e.url)):!p||!("error"in p)?i(Zd.syntax(`Unable to parse ${e.url}`)):p.error instanceof U1?i(p.error):i(new U1(p.error.message,e.url))}s(l,"onError")})}s(rM,"parseFile");function nM(e){return e===void 0||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0||Buffer.isBuffer(e)&&e.length===0}s(nM,"isEmpty")});var Z1=b((vB,K1)=>{"use strict";var z1=gs(),iM=jo(),sM=Yd(),No=Dt(),{isHandledError:oM}=hr();K1.exports=aM;function aM(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=Jd(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}s(aM,"resolveExternal");function Jd(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(z1.isExternal$Ref(e))i.push(W1(e,t,r,n));else for(let o of Object.keys(e)){let a=iM.join(t,o),u=e[o];z1.isExternal$Ref(u)?i.push(W1(u,a,r,n)):i=i.concat(Jd(u,a,r,n))}return i}s(Jd,"crawl");async function W1(e,t,r,n){let i=No.resolve(t,e.$ref),o=No.stripHash(i);if(e=r._$refs[o],e)return Promise.resolve(e.value);try{let a=await sM(i,r,n),u=Jd(a,o+"#",r,n);return Promise.all(u)}catch(a){if(!n.continueOnError||!oM(a))throw a;return r._$refs[o]&&(a.source=No.stripHash(t),a.path=No.safePointerToPath(No.getHash(t))),[]}}s(W1,"resolve$Ref")});var Q1=b((_B,J1)=>{"use strict";var Au=gs(),Mo=jo(),Qd=Dt();J1.exports=uM;function uM(e,t){let r=[];Xd(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),cM(r)}s(uM,"bundle");function Xd(e,t,r,n,i,o,a,u){let c=t===null?e:e[t];if(c&&typeof c=="object"&&!ArrayBuffer.isView(c))if(Au.isAllowed$Ref(c))Y1(e,t,r,n,i,o,a,u);else{let l=Object.keys(c).sort((p,f)=>p==="definitions"?-1:f==="definitions"?1:p.length-f.length);for(let p of l){let f=Mo.join(r,p),d=Mo.join(n,p),h=c[p];Au.isAllowed$Ref(h)?Y1(c,p,r,d,i,o,a,u):Xd(c,p,f,d,i,o,a,u)}}}s(Xd,"crawl");function Y1(e,t,r,n,i,o,a,u){let c=t===null?e:e[t],l=Qd.resolve(r,c.$ref),p=a._resolve(l,n,u);if(p===null)return;let f=Mo.parse(n).length,d=Qd.stripHash(p.path),h=Qd.getHash(p.path),y=d!==a._root$Ref.path,v=Au.isExtended$Ref(c);i+=p.indirections;let g=lM(o,e,t);if(g)if(f<g.depth||i<g.indirections)fM(o,g);else return;o.push({$ref:c,parent:e,key:t,pathFromRoot:n,depth:f,file:d,hash:h,value:p.value,circular:p.circular,extended:v,external:y,indirections:i}),g||Xd(p.value,null,p.path,n,i+1,o,a,u)}s(Y1,"inventory$Ref");function cM(e){e.sort((i,o)=>{if(i.file!==o.file)return i.file<o.file?-1:1;if(i.hash!==o.hash)return i.hash<o.hash?-1:1;if(i.circular!==o.circular)return i.circular?-1:1;if(i.extended!==o.extended)return i.extended?1:-1;if(i.indirections!==o.indirections)return i.indirections-o.indirections;if(i.depth!==o.depth)return i.depth-o.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),u=o.pathFromRoot.lastIndexOf("/definitions");return a!==u?u-a:i.pathFromRoot.length-o.pathFromRoot.length}});let t,r,n;for(let i of e)i.external?i.file===t&&i.hash===r?i.$ref.$ref=n:i.file===t&&i.hash.indexOf(r+"/")===0?i.$ref.$ref=Mo.join(n,Mo.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=Au.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}s(cM,"remap");function lM(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}s(lM,"findInInventory");function fM(e,t){let r=e.indexOf(t);e.splice(r,1)}s(fM,"removeFromInventory")});var rh=b((wB,rS)=>{"use strict";var eh=gs(),X1=jo(),{ono:pM}=ur(),dM=Dt();rS.exports=hM;function hM(e,t){let r=th(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}s(hM,"dereference");function th(e,t,r,n,i,o){let a,u={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),eh.isAllowed$Ref(e,o))a=eS(e,t,r,n,i,o),u.circular=a.circular,u.value=a.value;else for(let c of Object.keys(e)){let l=X1.join(t,c),p=X1.join(r,c),f=e[c],d=!1;eh.isAllowed$Ref(f,o)?(a=eS(f,l,p,n,i,o),d=a.circular,e[c]!==a.value&&(e[c]=a.value)):n.indexOf(f)===-1?(a=th(f,l,p,n,i,o),d=a.circular,e[c]!==a.value&&(e[c]=a.value)):d=tS(l,i,o),u.circular=u.circular||d}n.pop()}return u}s(th,"crawl");function eS(e,t,r,n,i,o){let a=dM.resolve(t,e.$ref),u=i._resolve(a,t,o);if(u===null)return{circular:!1,value:null};let c=u.circular,l=c||n.indexOf(u.value)!==-1;l&&tS(t,i,o);let p=eh.dereference(e,u.value);if(!l){let f=th(p,u.path,r,n,i,o);l=f.circular,p=f.value}return l&&!c&&o.dereference.circular==="ignore"&&(p=e),c&&(p.$ref=r),{circular:l,value:p}}s(eS,"dereference$Ref");function tS(e,t,r){if(t.circular=!0,!r.dereference.circular)throw pM.reference(`Circular $ref pointer found at ${e}`);return!0}s(tS,"foundCircularReference")});var oS=b((PB,jr)=>{"use strict";var sS=L1(),mM=Yd(),Cu=Ud(),gM=Z1(),yM=Q1(),vM=rh(),ys=Dt(),{JSONParserError:bM,InvalidPointerError:_M,MissingPointerError:SM,ResolverError:wM,ParserError:$M,UnmatchedParserError:PM,UnmatchedResolverError:OM,isHandledError:EM,JSONParserErrorGroup:nS}=hr(),gr=zd(),{ono:iS}=ur();jr.exports=Rr;jr.exports.default=Rr;jr.exports.JSONParserError=bM;jr.exports.InvalidPointerError=_M;jr.exports.MissingPointerError=SM;jr.exports.ResolverError=wM;jr.exports.ParserError=$M;jr.exports.UnmatchedParserError=PM;jr.exports.UnmatchedResolverError=OM;function Rr(){this.schema=null,this.$refs=new sS}s(Rr,"$RefParser");Rr.parse=s(function(t,r,n,i){let o=this,a=new o;return a.parse.apply(a,arguments)},"parse");Rr.prototype.parse=s(async function(t,r,n,i){let o=Cu(arguments),a;if(!o.path&&!o.schema){let l=iS(`Expected a file path, URL, or object. Got ${o.path||o.schema}`);return gr(o.callback,Promise.reject(l))}this.schema=null,this.$refs=new sS;let u="http";if(ys.isFileSystemPath(o.path)&&(o.path=ys.fromFileSystemPath(o.path),u="file"),o.path=ys.resolve(ys.cwd(),o.path),o.schema&&typeof o.schema=="object"){let l=this.$refs._add(o.path);l.value=o.schema,l.pathType=u,a=Promise.resolve(o.schema)}else a=mM(o.path,this.$refs,o.options);let c=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return c.schema=l,gr(o.callback,Promise.resolve(c.schema));if(o.options.continueOnError)return c.schema=null,gr(o.callback,Promise.resolve(c.schema));throw iS.syntax(`"${c.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!o.options.continueOnError||!EM(l)?gr(o.callback,Promise.reject(l)):(this.$refs._$refs[ys.stripHash(o.path)]&&this.$refs._$refs[ys.stripHash(o.path)].addError(l),gr(o.callback,Promise.resolve(null)))}},"parse");Rr.resolve=s(function(t,r,n,i){let o=this,a=new o;return a.resolve.apply(a,arguments)},"resolve");Rr.prototype.resolve=s(async function(t,r,n,i){let o=this,a=Cu(arguments);try{return await this.parse(a.path,a.schema,a.options),await gM(o,a.options),nh(o),gr(a.callback,Promise.resolve(o.$refs))}catch(u){return gr(a.callback,Promise.reject(u))}},"resolve");Rr.bundle=s(function(t,r,n,i){let o=this,a=new o;return a.bundle.apply(a,arguments)},"bundle");Rr.prototype.bundle=s(async function(t,r,n,i){let o=this,a=Cu(arguments);try{return await this.resolve(a.path,a.schema,a.options),yM(o,a.options),nh(o),gr(a.callback,Promise.resolve(o.schema))}catch(u){return gr(a.callback,Promise.reject(u))}},"bundle");Rr.dereference=s(function(t,r,n,i){let o=this,a=new o;return a.dereference.apply(a,arguments)},"dereference");Rr.prototype.dereference=s(async function(t,r,n,i){let o=this,a=Cu(arguments);try{return await this.resolve(a.path,a.schema,a.options),vM(o,a.options),nh(o),gr(a.callback,Promise.resolve(o.schema))}catch(u){return gr(a.callback,Promise.reject(u))}},"dereference");function nh(e){if(nS.getParserErrors(e).length>0)throw new nS(e)}s(nh,"finalize")});var fS=b((EB,lS)=>{"use strict";var xM=$d(),AM=Ed(),aS=Ud(),uS=xa(),cS=O1(),Iu=zd(),{ono:yr}=ur(),gi=oS(),CM=rh();lS.exports=kr;function kr(){gi.apply(this,arguments)}s(kr,"SwaggerParser");uS.inherits(kr,gi);kr.parse=gi.parse;kr.resolve=gi.resolve;kr.bundle=gi.bundle;kr.dereference=gi.dereference;Object.defineProperty(kr.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});kr.prototype.parse=async function(e,t,r,n){let i=aS(arguments);i.options=new cS(i.options);try{let o=await gi.prototype.parse.call(this,i.path,i.schema,i.options);if(o.swagger){if(o.swagger===void 0||o.info===void 0||o.paths===void 0)throw yr.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof o.swagger=="number")throw yr.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof o.info.version=="number")throw yr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(o.swagger!=="2.0")throw yr.syntax(`Unrecognized Swagger version: ${o.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(o.openapi===void 0||o.info===void 0)throw yr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(o.paths===void 0)if(o.openapi==="3.1.0"){if(o.webhooks===void 0)throw yr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw yr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof o.openapi=="number")throw yr.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof o.info.version=="number")throw yr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(o.openapi)===-1)throw yr.syntax(`Unsupported OpenAPI version: ${o.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}uS.fixOasRelativeServers(o,i.path)}return Iu(i.callback,Promise.resolve(o))}catch(o){return Iu(i.callback,Promise.reject(o))}};kr.validate=function(e,t,r,n){let i=this,o=new i;return o.validate.apply(o,arguments)};kr.prototype.validate=async function(e,t,r,n){let i=this,o=aS(arguments);o.options=new cS(o.options);let a=o.options.dereference.circular;o.options.validate.schema&&(o.options.dereference.circular="ignore");try{if(await this.dereference(o.path,o.schema,o.options),o.options.dereference.circular=a,o.options.validate.schema&&(xM(i.api),i.$refs.circular)){if(a===!0)CM(i,o.options);else if(a===!1)throw yr.reference("The API contains circular references")}return o.options.validate.spec&&AM(i.api),Iu(o.callback,Promise.resolve(i.schema))}catch(u){return Iu(o.callback,Promise.reject(u))}}});var Pt=b(Ft=>{"use strict";Ft.__esModule=!0;Ft.extend=o2;Ft.indexOf=sT;Ft.escapeExpression=oT;Ft.isEmpty=aT;Ft.createFrame=uT;Ft.blockParams=cT;Ft.appendContextPath=lT;var tT={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},rT=/[&<>"'`=]/g,nT=/[&<>"'`=]/;function iT(e){return tT[e]}s(iT,"escapeChar");function o2(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}s(o2,"extend");var $h=Object.prototype.toString;Ft.toString=$h;var wh=s(function(t){return typeof t=="function"},"isFunction");wh(/x/)&&(Ft.isFunction=wh=s(function(e){return typeof e=="function"&&$h.call(e)==="[object Function]"},"isFunction"));Ft.isFunction=wh;var a2=Array.isArray||function(e){return e&&typeof e=="object"?$h.call(e)==="[object Array]":!1};Ft.isArray=a2;function sT(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}s(sT,"indexOf");function oT(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return nT.test(e)?e.replace(rT,iT):e}s(oT,"escapeExpression");function aT(e){return!e&&e!==0?!0:!!(a2(e)&&e.length===0)}s(aT,"isEmpty");function uT(e){var t=o2({},e);return t._parent=e,t}s(uT,"createFrame");function cT(e,t){return e.path=t,e}s(cT,"blockParams");function lT(e,t){return(e?e+".":"")+t}s(lT,"appendContextPath")});var tr=b((Bu,u2)=>{"use strict";Bu.__esModule=!0;var Ph=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Oh(e,t){var r=t&&t.loc,n=void 0,i=void 0,o=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,o=r.start.column,a=r.end.column,e+=" - "+n+":"+o);for(var u=Error.prototype.constructor.call(this,e),c=0;c<Ph.length;c++)this[Ph[c]]=u[Ph[c]];Error.captureStackTrace&&Error.captureStackTrace(this,Oh);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:o,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=o,this.endColumn=a))}catch{}}s(Oh,"Exception");Oh.prototype=new Error;Bu.default=Oh;u2.exports=Bu.default});var l2=b((Vu,c2)=>{"use strict";Vu.__esModule=!0;var Eh=Pt();Vu.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(Eh.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):n(this);if(r.data&&r.ids){var o=Eh.createFrame(r.data);o.contextPath=Eh.appendContextPath(r.data.contextPath,r.name),r={data:o}}return i(t,r)})};c2.exports=Vu.default});var p2=b((Hu,f2)=>{"use strict";Hu.__esModule=!0;function fT(e){return e&&e.__esModule?e:{default:e}}s(fT,"_interopRequireDefault");var Ho=Pt(),pT=tr(),dT=fT(pT);Hu.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new dT.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,o=0,a="",u=void 0,c=void 0;r.data&&r.ids&&(c=Ho.appendContextPath(r.data.contextPath,r.ids[0])+"."),Ho.isFunction(t)&&(t=t.call(this)),r.data&&(u=Ho.createFrame(r.data));function l(y,v,g){u&&(u.key=y,u.index=v,u.first=v===0,u.last=!!g,c&&(u.contextPath=c+y)),a=a+n(t[y],{data:u,blockParams:Ho.blockParams([t[y],y],[c+y,null])})}if(s(l,"execIteration"),t&&typeof t=="object")if(Ho.isArray(t))for(var p=t.length;o<p;o++)o in t&&l(o,o,o===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var f=[],d=t[Symbol.iterator](),h=d.next();!h.done;h=d.next())f.push(h.value);t=f;for(var p=t.length;o<p;o++)l(o,o,o===t.length-1)}else(function(){var y=void 0;Object.keys(t).forEach(function(v){y!==void 0&&l(y,o-1),y=v,o++}),y!==void 0&&l(y,o-1,!0)})();return o===0&&(a=i(this)),a})};f2.exports=Hu.default});var h2=b((Uu,d2)=>{"use strict";Uu.__esModule=!0;function hT(e){return e&&e.__esModule?e:{default:e}}s(hT,"_interopRequireDefault");var mT=tr(),gT=hT(mT);Uu.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new gT.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};d2.exports=Uu.default});var v2=b((Gu,y2)=>{"use strict";Gu.__esModule=!0;function yT(e){return e&&e.__esModule?e:{default:e}}s(yT,"_interopRequireDefault");var m2=Pt(),vT=tr(),g2=yT(vT);Gu.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new g2.default("#if requires exactly one argument");return m2.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||m2.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new g2.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};y2.exports=Gu.default});var _2=b((zu,b2)=>{"use strict";zu.__esModule=!0;zu.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)})};b2.exports=zu.default});var w2=b((Wu,S2)=>{"use strict";Wu.__esModule=!0;Wu.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};S2.exports=Wu.default});var P2=b((Ku,$2)=>{"use strict";Ku.__esModule=!0;function bT(e){return e&&e.__esModule?e:{default:e}}s(bT,"_interopRequireDefault");var Uo=Pt(),_T=tr(),ST=bT(_T);Ku.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new ST.default("#with requires exactly one argument");Uo.isFunction(t)&&(t=t.call(this));var n=r.fn;if(Uo.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=Uo.createFrame(r.data),i.contextPath=Uo.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:Uo.blockParams([t],[i&&i.contextPath])})})};$2.exports=Ku.default});var xh=b(Zu=>{"use strict";Zu.__esModule=!0;Zu.registerDefaultHelpers=TT;Zu.moveHelperToHooks=qT;function vi(e){return e&&e.__esModule?e:{default:e}}s(vi,"_interopRequireDefault");var wT=l2(),$T=vi(wT),PT=p2(),OT=vi(PT),ET=h2(),xT=vi(ET),AT=v2(),CT=vi(AT),IT=_2(),RT=vi(IT),jT=w2(),kT=vi(jT),NT=P2(),MT=vi(NT);function TT(e){$T.default(e),OT.default(e),xT.default(e),CT.default(e),RT.default(e),kT.default(e),MT.default(e)}s(TT,"registerDefaultHelpers");function qT(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}s(qT,"moveHelperToHooks")});var E2=b((Yu,O2)=>{"use strict";Yu.__esModule=!0;var DT=Pt();Yu.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var o=t;return r.partials||(r.partials={},o=s(function(a,u){var c=n.partials;n.partials=DT.extend({},c,r.partials);var l=t(a,u);return n.partials=c,l},"ret")),r.partials[i.args[0]]=i.fn,o})};O2.exports=Yu.default});var x2=b(Ah=>{"use strict";Ah.__esModule=!0;Ah.registerDefaultDecorators=VT;function LT(e){return e&&e.__esModule?e:{default:e}}s(LT,"_interopRequireDefault");var FT=E2(),BT=LT(FT);function VT(e){BT.default(e)}s(VT,"registerDefaultDecorators")});var Ch=b((Ju,A2)=>{"use strict";Ju.__esModule=!0;var HT=Pt(),$s={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:s(function(t){if(typeof t=="string"){var r=HT.indexOf($s.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:s(function(t){if(t=$s.lookupLevel(t),typeof console<"u"&&$s.lookupLevel($s.level)<=t){var r=$s.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];console[r].apply(console,i)}},"log")};Ju.default=$s;A2.exports=Ju.default});var C2=b(Ih=>{"use strict";Ih.__esModule=!0;Ih.createNewLookupObject=GT;var UT=Pt();function GT(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return UT.extend.apply(void 0,[Object.create(null)].concat(t))}s(GT,"createNewLookupObject")});var Rh=b(Go=>{"use strict";Go.__esModule=!0;Go.createProtoAccessControl=ZT;Go.resultIsAllowed=YT;Go.resetLoggedProperties=QT;function zT(e){return e&&e.__esModule?e:{default:e}}s(zT,"_interopRequireDefault");var I2=C2(),WT=Ch(),KT=zT(WT),Qu=Object.create(null);function ZT(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:I2.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:I2.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}s(ZT,"createProtoAccessControl");function YT(e,t,r){return R2(typeof e=="function"?t.methods:t.properties,r)}s(YT,"resultIsAllowed");function R2(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(JT(t),!1)}s(R2,"checkWhiteList");function JT(e){Qu[e]!==!0&&(Qu[e]=!0,KT.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
48
+ `)}`)));else if(o.headers.location){let a=jo.resolve(e,o.headers.location);_S(a,t,r).then(n,i)}else throw xu({status:o.statusCode},`HTTP ${o.statusCode} redirect with no location header`);else n(o.body||Buffer.alloc(0))}).catch(o=>{i(new bS(xu(o,`Error downloading ${e.href}`),e.href))})})}s(_S,"download");function I3(e,t){return new Promise((r,n)=>{let o=(e.protocol==="https:"?C3:A3).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});typeof o.setTimeout=="function"&&o.setTimeout(t.timeout),o.on("timeout",()=>{o.abort()}),o.on("error",n),o.once("response",a=>{a.body=Buffer.alloc(0),a.on("data",u=>{a.body=Buffer.concat([a.body,Buffer.from(u)])}),a.on("error",n),a.on("end",()=>{r(a)})})})}s(I3,"get")});var Ud=b((iV,PS)=>{"use strict";var R3=bb(),j3=fS(),k3=dS(),N3=mS(),M3=vS(),T3=wS();PS.exports=Hd;function Hd(e){Bd(this,Hd.defaults),Bd(this,e)}s(Hd,"$RefParserOptions");Hd.defaults={parse:{json:R3,yaml:j3,text:k3,binary:N3},resolve:{file:M3,http:T3,external:!0},continueOnError:!1,dereference:{circular:!0}};function Bd(e,t){if($S(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],o=t[i],a=e[i];$S(o)?e[i]=Bd(a||{},o):o!==void 0&&(e[i]=o)}}return e}s(Bd,"merge");function $S(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}s($S,"isMergeable")});var zd=b((oV,xS)=>{"use strict";var OS=Ud();xS.exports=q3;function q3(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 OS||(n=new OS(n)),{path:t,schema:r,options:n,callback:i}}s(q3,"normalizeArgs")});var AS=b((uV,ES)=>{"use strict";var Gd=Ud(),D3=Pd(),L3=Ed(),F3=Pe("util");ES.exports=Eu;function Eu(e){Gd.call(this,Eu.defaults),Gd.apply(this,arguments)}s(Eu,"ParserOptions");Eu.defaults={validate:{schema:D3,spec:L3}};F3.inherits(Eu,Gd)});var IS=b((lV,CS)=>{"use strict";function V3(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:s(function(t){setTimeout(t,0)},"next")}s(V3,"makeNext");CS.exports=V3()});var Wd=b((pV,jS)=>{"use strict";var RS=IS();jS.exports=s(function(t,r){if(t){r.then(function(n){RS(function(){t(null,n)})},function(n){RS(function(){t(n)})});return}else return r},"maybe")});var ko=b((hV,MS)=>{"use strict";MS.exports=wn;var Kd=ys(),Zd=Dt(),{JSONParserError:B3,InvalidPointerError:H3,MissingPointerError:U3,isHandledError:z3}=hr(),G3=/\//g,W3=/~/g,K3=/~1/g,Z3=/~0/g;function wn(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}s(wn,"Pointer");wn.prototype.resolve=function(e,t,r){let n=wn.parse(this.path,this.originalPath);this.value=NS(e);for(let i=0;i<n.length;i++){if(Au(this,t)&&(this.path=wn.join(this.path,n.slice(i))),typeof this.value=="object"&&this.value!==null&&"$ref"in this.value)return this;let o=n[i];if(this.value[o]===void 0||this.value[o]===null)throw this.value=null,new U3(o,this.originalPath);this.value=this.value[o]}return(!this.value||this.value.$ref&&Zd.resolve(this.path,this.value.$ref)!==r)&&Au(this,t),this};wn.prototype.set=function(e,t,r){let n=wn.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=NS(e);for(let o=0;o<n.length-1;o++)Au(this,r),i=n[o],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=kS(this,i,{});return Au(this,r),i=n[n.length-1],kS(this,i,t),e};wn.parse=function(e,t){let r=Zd.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(K3,"/").replace(Z3,"~"));if(r[0]!=="")throw new H3(r,t===void 0?e:t);return r.slice(1)};wn.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(W3,"~0").replace(G3,"~1"))}return e};function Au(e,t){if(Kd.isAllowed$Ref(e.value,t)){let r=Zd.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,Kd.isExtended$Ref(e.value)?(e.value=Kd.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}s(Au,"resolveIf$Ref");function kS(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 B3(`Error assigning $ref pointer "${e.path}".
49
+ Cannot set "${t}" of a non-object.`);return r}s(kS,"setValue");function NS(e){if(z3(e))throw e;return e}s(NS,"unwrapOrThrow")});var ys=b((gV,DS)=>{"use strict";DS.exports=St;var qS=ko(),{InvalidPointerError:Y3,isHandledError:J3,normalizeError:TS}=hr(),{safePointerToPath:Q3,stripHash:X3,getHash:eM}=Dt();function St(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}s(St,"$Ref");St.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(TS)):this.errors.push(TS(e))};St.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};St.prototype.get=function(e,t){return this.resolve(e,t).value};St.prototype.resolve=function(e,t,r,n){let i=new qS(this,e,r);try{return i.resolve(this.value,t,n)}catch(o){if(!t||!t.continueOnError||!J3(o))throw o;return o.path===null&&(o.path=Q3(eM(n))),o instanceof Y3&&(o.source=X3(n)),this.addError(o),null}};St.prototype.set=function(e,t){let r=new qS(this,e);this.value=r.set(this.value,t)};St.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};St.isExternal$Ref=function(e){return St.is$Ref(e)&&e.$ref[0]!=="#"};St.isAllowed$Ref=function(e,t){if(St.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};St.isExtended$Ref=function(e){return St.is$Ref(e)&&Object.keys(e).length>1};St.dereference=function(e,t){if(t&&typeof t=="object"&&St.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 BS=b((vV,VS)=>{"use strict";var{ono:LS}=ur(),tM=ys(),$n=Dt();VS.exports=mr;function mr(){this.circular=!1,this._$refs={},this._root$Ref=null}s(mr,"$Refs");mr.prototype.paths=function(e){return FS(this._$refs,arguments).map(r=>r.decoded)};mr.prototype.values=function(e){let t=this._$refs;return FS(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};mr.prototype.toJSON=mr.prototype.values;mr.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};mr.prototype.get=function(e,t){return this._resolve(e,"",t).value};mr.prototype.set=function(e,t){let r=$n.resolve(this._root$Ref.path,e),n=$n.stripHash(r),i=this._$refs[n];if(!i)throw LS(`Error resolving $ref pointer "${e}".
50
+ "${n}" not found.`);i.set(r,t)};mr.prototype._add=function(e){let t=$n.stripHash(e),r=new tM;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};mr.prototype._resolve=function(e,t,r){let n=$n.resolve(this._root$Ref.path,e),i=$n.stripHash(n),o=this._$refs[i];if(!o)throw LS(`Error resolving $ref pointer "${e}".
51
+ "${i}" not found.`);return o.resolve(n,r,e,t)};mr.prototype._get$Ref=function(e){e=$n.resolve(this._root$Ref.path,e);let t=$n.stripHash(e);return this._$refs[t]};function FS(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"?$n.toFileSystemPath(n,!0):n}))}s(FS,"getPaths")});var US=b(No=>{"use strict";No.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};No.filter=function(e,t,r){return e.filter(n=>!!HS(n,t,r))};No.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)};No.run=function(e,t,r,n){let i,o,a=0;return new Promise((u,c)=>{l();function l(){if(i=e[a++],!i)return c(o);try{let h=HS(i,t,r,p,n);if(h&&typeof h.then=="function")h.then(f,d);else if(h!==void 0)f(h);else if(a===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(h){d(h)}}s(l,"runNextPlugin");function p(h,y){h?d(h):f(y)}s(p,"callback");function f(h){u({plugin:i,result:h})}s(f,"onSuccess");function d(h){o={plugin:i,error:h},l()}s(d,"onError")})};function HS(e,t,r,n,i){let o=e[t];if(typeof o=="function")return o.apply(e,[r,n,i]);if(!n){if(o instanceof RegExp)return o.test(r.url);if(typeof o=="string")return o===r.extension;if(Array.isArray(o))return o.indexOf(r.extension)!==-1}return o}s(HS,"getResult")});var Jd=b((wV,KS)=>{"use strict";var{ono:Yd}=ur(),zS=Dt(),Pn=US(),{ResolverError:GS,ParserError:WS,UnmatchedParserError:rM,UnmatchedResolverError:nM,isHandledError:iM}=hr();KS.exports=sM;async function sM(e,t,r){e=zS.stripHash(e);let n=t._add(e),i={url:e,extension:zS.getExtension(e)};try{let o=await oM(i,r,t);n.pathType=o.plugin.name,i.data=o.result;let a=await aM(i,r,t);return n.value=a.result,a.result}catch(o){throw iM(o)&&(n.value=o),o}}s(sM,"parse");function oM(e,t,r){return new Promise((n,i)=>{let o=Pn.all(t.resolve);o=Pn.filter(o,"canRead",e),Pn.sort(o),Pn.run(o,"read",e,r).then(n,a);function a(u){!u&&t.continueOnError?i(new nM(e.url)):!u||!("error"in u)?i(Yd.syntax(`Unable to resolve $ref pointer "${e.url}"`)):u.error instanceof GS?i(u.error):i(new GS(u,e.url))}s(a,"onError")})}s(oM,"readFile");function aM(e,t,r){return new Promise((n,i)=>{let o=Pn.all(t.parse),a=Pn.filter(o,"canParse",e),u=a.length>0?a:o;Pn.sort(u),Pn.run(u,"parse",e,r).then(c,l);function c(p){!p.plugin.allowEmpty&&uM(p.result)?i(Yd.syntax(`Error parsing "${e.url}" as ${p.plugin.name}.
52
+ Parsed value is empty`)):n(p)}s(c,"onParsed");function l(p){!p&&t.continueOnError?i(new rM(e.url)):!p||!("error"in p)?i(Yd.syntax(`Unable to parse ${e.url}`)):p.error instanceof WS?i(p.error):i(new WS(p.error.message,e.url))}s(l,"onError")})}s(aM,"parseFile");function uM(e){return e===void 0||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0||Buffer.isBuffer(e)&&e.length===0}s(uM,"isEmpty")});var QS=b((PV,JS)=>{"use strict";var ZS=ys(),cM=ko(),lM=Jd(),Mo=Dt(),{isHandledError:fM}=hr();JS.exports=pM;function pM(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=Qd(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}s(pM,"resolveExternal");function Qd(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(ZS.isExternal$Ref(e))i.push(YS(e,t,r,n));else for(let o of Object.keys(e)){let a=cM.join(t,o),u=e[o];ZS.isExternal$Ref(u)?i.push(YS(u,a,r,n)):i=i.concat(Qd(u,a,r,n))}return i}s(Qd,"crawl");async function YS(e,t,r,n){let i=Mo.resolve(t,e.$ref),o=Mo.stripHash(i);if(e=r._$refs[o],e)return Promise.resolve(e.value);try{let a=await lM(i,r,n),u=Qd(a,o+"#",r,n);return Promise.all(u)}catch(a){if(!n.continueOnError||!fM(a))throw a;return r._$refs[o]&&(a.source=Mo.stripHash(t),a.path=Mo.safePointerToPath(Mo.getHash(t))),[]}}s(YS,"resolve$Ref")});var t1=b((xV,e1)=>{"use strict";var Cu=ys(),To=ko(),Xd=Dt();e1.exports=dM;function dM(e,t){let r=[];eh(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),hM(r)}s(dM,"bundle");function eh(e,t,r,n,i,o,a,u){let c=t===null?e:e[t];if(c&&typeof c=="object"&&!ArrayBuffer.isView(c))if(Cu.isAllowed$Ref(c))XS(e,t,r,n,i,o,a,u);else{let l=Object.keys(c).sort((p,f)=>p==="definitions"?-1:f==="definitions"?1:p.length-f.length);for(let p of l){let f=To.join(r,p),d=To.join(n,p),h=c[p];Cu.isAllowed$Ref(h)?XS(c,p,r,d,i,o,a,u):eh(c,p,f,d,i,o,a,u)}}}s(eh,"crawl");function XS(e,t,r,n,i,o,a,u){let c=t===null?e:e[t],l=Xd.resolve(r,c.$ref),p=a._resolve(l,n,u);if(p===null)return;let f=To.parse(n).length,d=Xd.stripHash(p.path),h=Xd.getHash(p.path),y=d!==a._root$Ref.path,v=Cu.isExtended$Ref(c);i+=p.indirections;let g=mM(o,e,t);if(g)if(f<g.depth||i<g.indirections)gM(o,g);else return;o.push({$ref:c,parent:e,key:t,pathFromRoot:n,depth:f,file:d,hash:h,value:p.value,circular:p.circular,extended:v,external:y,indirections:i}),g||eh(p.value,null,p.path,n,i+1,o,a,u)}s(XS,"inventory$Ref");function hM(e){e.sort((i,o)=>{if(i.file!==o.file)return i.file<o.file?-1:1;if(i.hash!==o.hash)return i.hash<o.hash?-1:1;if(i.circular!==o.circular)return i.circular?-1:1;if(i.extended!==o.extended)return i.extended?1:-1;if(i.indirections!==o.indirections)return i.indirections-o.indirections;if(i.depth!==o.depth)return i.depth-o.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),u=o.pathFromRoot.lastIndexOf("/definitions");return a!==u?u-a:i.pathFromRoot.length-o.pathFromRoot.length}});let t,r,n;for(let i of e)i.external?i.file===t&&i.hash===r?i.$ref.$ref=n:i.file===t&&i.hash.indexOf(r+"/")===0?i.$ref.$ref=To.join(n,To.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=Cu.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}s(hM,"remap");function mM(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}s(mM,"findInInventory");function gM(e,t){let r=e.indexOf(t);e.splice(r,1)}s(gM,"removeFromInventory")});var nh=b((AV,s1)=>{"use strict";var th=ys(),r1=ko(),{ono:yM}=ur(),vM=Dt();s1.exports=bM;function bM(e,t){let r=rh(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}s(bM,"dereference");function rh(e,t,r,n,i,o){let a,u={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),th.isAllowed$Ref(e,o))a=n1(e,t,r,n,i,o),u.circular=a.circular,u.value=a.value;else for(let c of Object.keys(e)){let l=r1.join(t,c),p=r1.join(r,c),f=e[c],d=!1;th.isAllowed$Ref(f,o)?(a=n1(f,l,p,n,i,o),d=a.circular,e[c]!==a.value&&(e[c]=a.value)):n.indexOf(f)===-1?(a=rh(f,l,p,n,i,o),d=a.circular,e[c]!==a.value&&(e[c]=a.value)):d=i1(l,i,o),u.circular=u.circular||d}n.pop()}return u}s(rh,"crawl");function n1(e,t,r,n,i,o){let a=vM.resolve(t,e.$ref),u=i._resolve(a,t,o);if(u===null)return{circular:!1,value:null};let c=u.circular,l=c||n.indexOf(u.value)!==-1;l&&i1(t,i,o);let p=th.dereference(e,u.value);if(!l){let f=rh(p,u.path,r,n,i,o);l=f.circular,p=f.value}return l&&!c&&o.dereference.circular==="ignore"&&(p=e),c&&(p.$ref=r),{circular:l,value:p}}s(n1,"dereference$Ref");function i1(e,t,r){if(t.circular=!0,!r.dereference.circular)throw yM.reference(`Circular $ref pointer found at ${e}`);return!0}s(i1,"foundCircularReference")});var c1=b((IV,jr)=>{"use strict";var u1=BS(),_M=Jd(),Iu=zd(),SM=QS(),wM=t1(),$M=nh(),vs=Dt(),{JSONParserError:PM,InvalidPointerError:OM,MissingPointerError:xM,ResolverError:EM,ParserError:AM,UnmatchedParserError:CM,UnmatchedResolverError:IM,isHandledError:RM,JSONParserErrorGroup:o1}=hr(),gr=Wd(),{ono:a1}=ur();jr.exports=Rr;jr.exports.default=Rr;jr.exports.JSONParserError=PM;jr.exports.InvalidPointerError=OM;jr.exports.MissingPointerError=xM;jr.exports.ResolverError=EM;jr.exports.ParserError=AM;jr.exports.UnmatchedParserError=CM;jr.exports.UnmatchedResolverError=IM;function Rr(){this.schema=null,this.$refs=new u1}s(Rr,"$RefParser");Rr.parse=s(function(t,r,n,i){let o=this,a=new o;return a.parse.apply(a,arguments)},"parse");Rr.prototype.parse=s(async function(t,r,n,i){let o=Iu(arguments),a;if(!o.path&&!o.schema){let l=a1(`Expected a file path, URL, or object. Got ${o.path||o.schema}`);return gr(o.callback,Promise.reject(l))}this.schema=null,this.$refs=new u1;let u="http";if(vs.isFileSystemPath(o.path)&&(o.path=vs.fromFileSystemPath(o.path),u="file"),o.path=vs.resolve(vs.cwd(),o.path),o.schema&&typeof o.schema=="object"){let l=this.$refs._add(o.path);l.value=o.schema,l.pathType=u,a=Promise.resolve(o.schema)}else a=_M(o.path,this.$refs,o.options);let c=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return c.schema=l,gr(o.callback,Promise.resolve(c.schema));if(o.options.continueOnError)return c.schema=null,gr(o.callback,Promise.resolve(c.schema));throw a1.syntax(`"${c.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!o.options.continueOnError||!RM(l)?gr(o.callback,Promise.reject(l)):(this.$refs._$refs[vs.stripHash(o.path)]&&this.$refs._$refs[vs.stripHash(o.path)].addError(l),gr(o.callback,Promise.resolve(null)))}},"parse");Rr.resolve=s(function(t,r,n,i){let o=this,a=new o;return a.resolve.apply(a,arguments)},"resolve");Rr.prototype.resolve=s(async function(t,r,n,i){let o=this,a=Iu(arguments);try{return await this.parse(a.path,a.schema,a.options),await SM(o,a.options),ih(o),gr(a.callback,Promise.resolve(o.$refs))}catch(u){return gr(a.callback,Promise.reject(u))}},"resolve");Rr.bundle=s(function(t,r,n,i){let o=this,a=new o;return a.bundle.apply(a,arguments)},"bundle");Rr.prototype.bundle=s(async function(t,r,n,i){let o=this,a=Iu(arguments);try{return await this.resolve(a.path,a.schema,a.options),wM(o,a.options),ih(o),gr(a.callback,Promise.resolve(o.schema))}catch(u){return gr(a.callback,Promise.reject(u))}},"bundle");Rr.dereference=s(function(t,r,n,i){let o=this,a=new o;return a.dereference.apply(a,arguments)},"dereference");Rr.prototype.dereference=s(async function(t,r,n,i){let o=this,a=Iu(arguments);try{return await this.resolve(a.path,a.schema,a.options),$M(o,a.options),ih(o),gr(a.callback,Promise.resolve(o.schema))}catch(u){return gr(a.callback,Promise.reject(u))}},"dereference");function ih(e){if(o1.getParserErrors(e).length>0)throw new o1(e)}s(ih,"finalize")});var h1=b((jV,d1)=>{"use strict";var jM=Pd(),kM=Ed(),l1=zd(),f1=Aa(),p1=AS(),Ru=Wd(),{ono:yr}=ur(),gi=c1(),NM=nh();d1.exports=kr;function kr(){gi.apply(this,arguments)}s(kr,"SwaggerParser");f1.inherits(kr,gi);kr.parse=gi.parse;kr.resolve=gi.resolve;kr.bundle=gi.bundle;kr.dereference=gi.dereference;Object.defineProperty(kr.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});kr.prototype.parse=async function(e,t,r,n){let i=l1(arguments);i.options=new p1(i.options);try{let o=await gi.prototype.parse.call(this,i.path,i.schema,i.options);if(o.swagger){if(o.swagger===void 0||o.info===void 0||o.paths===void 0)throw yr.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof o.swagger=="number")throw yr.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof o.info.version=="number")throw yr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(o.swagger!=="2.0")throw yr.syntax(`Unrecognized Swagger version: ${o.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(o.openapi===void 0||o.info===void 0)throw yr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(o.paths===void 0)if(o.openapi==="3.1.0"){if(o.webhooks===void 0)throw yr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw yr.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof o.openapi=="number")throw yr.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof o.info.version=="number")throw yr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(o.openapi)===-1)throw yr.syntax(`Unsupported OpenAPI version: ${o.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}f1.fixOasRelativeServers(o,i.path)}return Ru(i.callback,Promise.resolve(o))}catch(o){return Ru(i.callback,Promise.reject(o))}};kr.validate=function(e,t,r,n){let i=this,o=new i;return o.validate.apply(o,arguments)};kr.prototype.validate=async function(e,t,r,n){let i=this,o=l1(arguments);o.options=new p1(o.options);let a=o.options.dereference.circular;o.options.validate.schema&&(o.options.dereference.circular="ignore");try{if(await this.dereference(o.path,o.schema,o.options),o.options.dereference.circular=a,o.options.validate.schema&&(jM(i.api),i.$refs.circular)){if(a===!0)NM(i,o.options);else if(a===!1)throw yr.reference("The API contains circular references")}return o.options.validate.spec&&kM(i.api),Ru(o.callback,Promise.resolve(i.schema))}catch(u){return Ru(o.callback,Promise.reject(u))}}});var Ot=b(Ft=>{"use strict";Ft.__esModule=!0;Ft.extend=f2;Ft.indexOf=lT;Ft.escapeExpression=fT;Ft.isEmpty=pT;Ft.createFrame=dT;Ft.blockParams=hT;Ft.appendContextPath=mT;var oT={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},aT=/[&<>"'`=]/g,uT=/[&<>"'`=]/;function cT(e){return oT[e]}s(cT,"escapeChar");function f2(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}s(f2,"extend");var Oh=Object.prototype.toString;Ft.toString=Oh;var Ph=s(function(t){return typeof t=="function"},"isFunction");Ph(/x/)&&(Ft.isFunction=Ph=s(function(e){return typeof e=="function"&&Oh.call(e)==="[object Function]"},"isFunction"));Ft.isFunction=Ph;var p2=Array.isArray||function(e){return e&&typeof e=="object"?Oh.call(e)==="[object Array]":!1};Ft.isArray=p2;function lT(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}s(lT,"indexOf");function fT(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return uT.test(e)?e.replace(aT,cT):e}s(fT,"escapeExpression");function pT(e){return!e&&e!==0?!0:!!(p2(e)&&e.length===0)}s(pT,"isEmpty");function dT(e){var t=f2({},e);return t._parent=e,t}s(dT,"createFrame");function hT(e,t){return e.path=t,e}s(hT,"blockParams");function mT(e,t){return(e?e+".":"")+t}s(mT,"appendContextPath")});var tr=b((Bu,d2)=>{"use strict";Bu.__esModule=!0;var xh=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Eh(e,t){var r=t&&t.loc,n=void 0,i=void 0,o=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,o=r.start.column,a=r.end.column,e+=" - "+n+":"+o);for(var u=Error.prototype.constructor.call(this,e),c=0;c<xh.length;c++)this[xh[c]]=u[xh[c]];Error.captureStackTrace&&Error.captureStackTrace(this,Eh);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:o,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=o,this.endColumn=a))}catch{}}s(Eh,"Exception");Eh.prototype=new Error;Bu.default=Eh;d2.exports=Bu.default});var m2=b((Hu,h2)=>{"use strict";Hu.__esModule=!0;var Ah=Ot();Hu.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(Ah.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):n(this);if(r.data&&r.ids){var o=Ah.createFrame(r.data);o.contextPath=Ah.appendContextPath(r.data.contextPath,r.name),r={data:o}}return i(t,r)})};h2.exports=Hu.default});var y2=b((Uu,g2)=>{"use strict";Uu.__esModule=!0;function gT(e){return e&&e.__esModule?e:{default:e}}s(gT,"_interopRequireDefault");var Uo=Ot(),yT=tr(),vT=gT(yT);Uu.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new vT.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,o=0,a="",u=void 0,c=void 0;r.data&&r.ids&&(c=Uo.appendContextPath(r.data.contextPath,r.ids[0])+"."),Uo.isFunction(t)&&(t=t.call(this)),r.data&&(u=Uo.createFrame(r.data));function l(y,v,g){u&&(u.key=y,u.index=v,u.first=v===0,u.last=!!g,c&&(u.contextPath=c+y)),a=a+n(t[y],{data:u,blockParams:Uo.blockParams([t[y],y],[c+y,null])})}if(s(l,"execIteration"),t&&typeof t=="object")if(Uo.isArray(t))for(var p=t.length;o<p;o++)o in t&&l(o,o,o===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var f=[],d=t[Symbol.iterator](),h=d.next();!h.done;h=d.next())f.push(h.value);t=f;for(var p=t.length;o<p;o++)l(o,o,o===t.length-1)}else(function(){var y=void 0;Object.keys(t).forEach(function(v){y!==void 0&&l(y,o-1),y=v,o++}),y!==void 0&&l(y,o-1,!0)})();return o===0&&(a=i(this)),a})};g2.exports=Uu.default});var b2=b((zu,v2)=>{"use strict";zu.__esModule=!0;function bT(e){return e&&e.__esModule?e:{default:e}}s(bT,"_interopRequireDefault");var _T=tr(),ST=bT(_T);zu.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new ST.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};v2.exports=zu.default});var $2=b((Gu,w2)=>{"use strict";Gu.__esModule=!0;function wT(e){return e&&e.__esModule?e:{default:e}}s(wT,"_interopRequireDefault");var _2=Ot(),$T=tr(),S2=wT($T);Gu.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new S2.default("#if requires exactly one argument");return _2.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||_2.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new S2.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};w2.exports=Gu.default});var O2=b((Wu,P2)=>{"use strict";Wu.__esModule=!0;Wu.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)})};P2.exports=Wu.default});var E2=b((Ku,x2)=>{"use strict";Ku.__esModule=!0;Ku.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};x2.exports=Ku.default});var C2=b((Zu,A2)=>{"use strict";Zu.__esModule=!0;function PT(e){return e&&e.__esModule?e:{default:e}}s(PT,"_interopRequireDefault");var zo=Ot(),OT=tr(),xT=PT(OT);Zu.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new xT.default("#with requires exactly one argument");zo.isFunction(t)&&(t=t.call(this));var n=r.fn;if(zo.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=zo.createFrame(r.data),i.contextPath=zo.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:zo.blockParams([t],[i&&i.contextPath])})})};A2.exports=Zu.default});var Ch=b(Yu=>{"use strict";Yu.__esModule=!0;Yu.registerDefaultHelpers=VT;Yu.moveHelperToHooks=BT;function bi(e){return e&&e.__esModule?e:{default:e}}s(bi,"_interopRequireDefault");var ET=m2(),AT=bi(ET),CT=y2(),IT=bi(CT),RT=b2(),jT=bi(RT),kT=$2(),NT=bi(kT),MT=O2(),TT=bi(MT),qT=E2(),DT=bi(qT),LT=C2(),FT=bi(LT);function VT(e){AT.default(e),IT.default(e),jT.default(e),NT.default(e),TT.default(e),DT.default(e),FT.default(e)}s(VT,"registerDefaultHelpers");function BT(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}s(BT,"moveHelperToHooks")});var R2=b((Ju,I2)=>{"use strict";Ju.__esModule=!0;var HT=Ot();Ju.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var o=t;return r.partials||(r.partials={},o=s(function(a,u){var c=n.partials;n.partials=HT.extend({},c,r.partials);var l=t(a,u);return n.partials=c,l},"ret")),r.partials[i.args[0]]=i.fn,o})};I2.exports=Ju.default});var j2=b(Ih=>{"use strict";Ih.__esModule=!0;Ih.registerDefaultDecorators=WT;function UT(e){return e&&e.__esModule?e:{default:e}}s(UT,"_interopRequireDefault");var zT=R2(),GT=UT(zT);function WT(e){GT.default(e)}s(WT,"registerDefaultDecorators")});var Rh=b((Qu,k2)=>{"use strict";Qu.__esModule=!0;var KT=Ot(),Ps={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:s(function(t){if(typeof t=="string"){var r=KT.indexOf(Ps.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:s(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),o=1;o<n;o++)i[o-1]=arguments[o];console[r].apply(console,i)}},"log")};Qu.default=Ps;k2.exports=Qu.default});var N2=b(jh=>{"use strict";jh.__esModule=!0;jh.createNewLookupObject=YT;var ZT=Ot();function YT(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return ZT.extend.apply(void 0,[Object.create(null)].concat(t))}s(YT,"createNewLookupObject")});var kh=b(Go=>{"use strict";Go.__esModule=!0;Go.createProtoAccessControl=eq;Go.resultIsAllowed=tq;Go.resetLoggedProperties=nq;function JT(e){return e&&e.__esModule?e:{default:e}}s(JT,"_interopRequireDefault");var M2=N2(),QT=Rh(),XT=JT(QT),Xu=Object.create(null);function eq(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:M2.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:M2.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}s(eq,"createProtoAccessControl");function tq(e,t,r){return T2(typeof e=="function"?t.methods:t.properties,r)}s(tq,"resultIsAllowed");function T2(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(rq(t),!1)}s(T2,"checkWhiteList");function rq(e){Xu[e]!==!0&&(Xu[e]=!0,XT.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
53
53
  You can add a runtime option to disable the check or this warning:
54
- See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}s(JT,"logUnexpecedPropertyAccessOnce");function QT(){Object.keys(Qu).forEach(function(e){delete Qu[e]})}s(QT,"resetLoggedProperties")});var ec=b(Dr=>{"use strict";Dr.__esModule=!0;Dr.HandlebarsEnvironment=Nh;function j2(e){return e&&e.__esModule?e:{default:e}}s(j2,"_interopRequireDefault");var bi=Pt(),XT=tr(),jh=j2(XT),eq=xh(),tq=x2(),rq=Ch(),Xu=j2(rq),nq=Rh(),iq="4.7.8";Dr.VERSION=iq;var sq=8;Dr.COMPILER_REVISION=sq;var oq=7;Dr.LAST_COMPATIBLE_COMPILER_REVISION=oq;var aq={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"};Dr.REVISION_CHANGES=aq;var kh="[object Object]";function Nh(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},eq.registerDefaultHelpers(this),tq.registerDefaultDecorators(this)}s(Nh,"HandlebarsEnvironment");Nh.prototype={constructor:Nh,logger:Xu.default,log:Xu.default.log,registerHelper:s(function(t,r){if(bi.toString.call(t)===kh){if(r)throw new jh.default("Arg not supported with multiple helpers");bi.extend(this.helpers,t)}else this.helpers[t]=r},"registerHelper"),unregisterHelper:s(function(t){delete this.helpers[t]},"unregisterHelper"),registerPartial:s(function(t,r){if(bi.toString.call(t)===kh)bi.extend(this.partials,t);else{if(typeof r>"u")throw new jh.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},"registerPartial"),unregisterPartial:s(function(t){delete this.partials[t]},"unregisterPartial"),registerDecorator:s(function(t,r){if(bi.toString.call(t)===kh){if(r)throw new jh.default("Arg not supported with multiple decorators");bi.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:s(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:s(function(){nq.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var uq=Xu.default.log;Dr.log=uq;Dr.createFrame=bi.createFrame;Dr.logger=Xu.default});var N2=b((tc,k2)=>{"use strict";tc.__esModule=!0;function Mh(e){this.string=e}s(Mh,"SafeString");Mh.prototype.toString=Mh.prototype.toHTML=function(){return""+this.string};tc.default=Mh;k2.exports=tc.default});var M2=b(Th=>{"use strict";Th.__esModule=!0;Th.wrapHelper=cq;function cq(e,t){if(typeof e!="function")return e;var r=s(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=t(i),e.apply(this,arguments)},"wrapper");return r}s(cq,"wrapHelper")});var F2=b(jn=>{"use strict";jn.__esModule=!0;jn.checkRevision=mq;jn.template=gq;jn.wrapProgram=rc;jn.resolvePartial=yq;jn.invokePartial=vq;jn.noop=D2;function lq(e){return e&&e.__esModule?e:{default:e}}s(lq,"_interopRequireDefault");function fq(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}s(fq,"_interopRequireWildcard");var pq=Pt(),Jr=fq(pq),dq=tr(),Qr=lq(dq),Xr=ec(),T2=xh(),hq=M2(),q2=Rh();function mq(e){var t=e&&e[0]||1,r=Xr.COMPILER_REVISION;if(!(t>=Xr.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Xr.COMPILER_REVISION))if(t<Xr.LAST_COMPATIBLE_COMPILER_REVISION){var n=Xr.REVISION_CHANGES[r],i=Xr.REVISION_CHANGES[t];throw new Qr.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 Qr.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}s(mq,"checkRevision");function gq(e,t){if(!t)throw new Qr.default("No environment passed to template");if(!e||!e.main)throw new Qr.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&e.compiler[0]===7;function n(a,u,c){c.hash&&(u=Jr.extend({},u,c.hash),c.ids&&(c.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,u,c);var l=Jr.extend({},c,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),p=t.VM.invokePartial.call(this,a,u,l);if(p==null&&t.compile&&(c.partials[c.name]=t.compile(a,e.compilerOptions,t),p=c.partials[c.name](u,l)),p!=null){if(c.indent){for(var f=p.split(`
54
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}s(rq,"logUnexpecedPropertyAccessOnce");function nq(){Object.keys(Xu).forEach(function(e){delete Xu[e]})}s(nq,"resetLoggedProperties")});var tc=b(Dr=>{"use strict";Dr.__esModule=!0;Dr.HandlebarsEnvironment=Th;function q2(e){return e&&e.__esModule?e:{default:e}}s(q2,"_interopRequireDefault");var _i=Ot(),iq=tr(),Nh=q2(iq),sq=Ch(),oq=j2(),aq=Rh(),ec=q2(aq),uq=kh(),cq="4.7.8";Dr.VERSION=cq;var lq=8;Dr.COMPILER_REVISION=lq;var fq=7;Dr.LAST_COMPATIBLE_COMPILER_REVISION=fq;var pq={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"};Dr.REVISION_CHANGES=pq;var Mh="[object Object]";function Th(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},sq.registerDefaultHelpers(this),oq.registerDefaultDecorators(this)}s(Th,"HandlebarsEnvironment");Th.prototype={constructor:Th,logger:ec.default,log:ec.default.log,registerHelper:s(function(t,r){if(_i.toString.call(t)===Mh){if(r)throw new Nh.default("Arg not supported with multiple helpers");_i.extend(this.helpers,t)}else this.helpers[t]=r},"registerHelper"),unregisterHelper:s(function(t){delete this.helpers[t]},"unregisterHelper"),registerPartial:s(function(t,r){if(_i.toString.call(t)===Mh)_i.extend(this.partials,t);else{if(typeof r>"u")throw new Nh.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},"registerPartial"),unregisterPartial:s(function(t){delete this.partials[t]},"unregisterPartial"),registerDecorator:s(function(t,r){if(_i.toString.call(t)===Mh){if(r)throw new Nh.default("Arg not supported with multiple decorators");_i.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:s(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:s(function(){uq.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var dq=ec.default.log;Dr.log=dq;Dr.createFrame=_i.createFrame;Dr.logger=ec.default});var L2=b((rc,D2)=>{"use strict";rc.__esModule=!0;function qh(e){this.string=e}s(qh,"SafeString");qh.prototype.toString=qh.prototype.toHTML=function(){return""+this.string};rc.default=qh;D2.exports=rc.default});var F2=b(Dh=>{"use strict";Dh.__esModule=!0;Dh.wrapHelper=hq;function hq(e,t){if(typeof e!="function")return e;var r=s(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=t(i),e.apply(this,arguments)},"wrapper");return r}s(hq,"wrapHelper")});var z2=b(jn=>{"use strict";jn.__esModule=!0;jn.checkRevision=_q;jn.template=Sq;jn.wrapProgram=nc;jn.resolvePartial=wq;jn.invokePartial=$q;jn.noop=H2;function mq(e){return e&&e.__esModule?e:{default:e}}s(mq,"_interopRequireDefault");function gq(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}s(gq,"_interopRequireWildcard");var yq=Ot(),Jr=gq(yq),vq=tr(),Qr=mq(vq),Xr=tc(),V2=Ch(),bq=F2(),B2=kh();function _q(e){var t=e&&e[0]||1,r=Xr.COMPILER_REVISION;if(!(t>=Xr.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Xr.COMPILER_REVISION))if(t<Xr.LAST_COMPATIBLE_COMPILER_REVISION){var n=Xr.REVISION_CHANGES[r],i=Xr.REVISION_CHANGES[t];throw new Qr.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 Qr.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}s(_q,"checkRevision");function Sq(e,t){if(!t)throw new Qr.default("No environment passed to template");if(!e||!e.main)throw new Qr.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&e.compiler[0]===7;function n(a,u,c){c.hash&&(u=Jr.extend({},u,c.hash),c.ids&&(c.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,u,c);var l=Jr.extend({},c,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),p=t.VM.invokePartial.call(this,a,u,l);if(p==null&&t.compile&&(c.partials[c.name]=t.compile(a,e.compilerOptions,t),p=c.partials[c.name](u,l)),p!=null){if(c.indent){for(var f=p.split(`
55
55
  `),d=0,h=f.length;d<h&&!(!f[d]&&d+1===h);d++)f[d]=c.indent+f[d];p=f.join(`
56
- `)}return p}else throw new Qr.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}s(n,"invokePartialWrapper");var i={strict:s(function(u,c,l){if(!u||!(c in u))throw new Qr.default('"'+c+'" not defined in '+u,{loc:l});return i.lookupProperty(u,c)},"strict"),lookupProperty:s(function(u,c){var l=u[c];if(l==null||Object.prototype.hasOwnProperty.call(u,c)||q2.resultIsAllowed(l,i.protoAccessControl,c))return l},"lookupProperty"),lookup:s(function(u,c){for(var l=u.length,p=0;p<l;p++){var f=u[p]&&i.lookupProperty(u[p],c);if(f!=null)return u[p][c]}},"lookup"),lambda:s(function(u,c){return typeof u=="function"?u.call(c):u},"lambda"),escapeExpression:Jr.escapeExpression,invokePartial:n,fn:s(function(u){var c=e[u];return c.decorator=e[u+"_d"],c},"fn"),programs:[],program:s(function(u,c,l,p,f){var d=this.programs[u],h=this.fn(u);return c||f||p||l?d=rc(this,u,h,c,l,p,f):d||(d=this.programs[u]=rc(this,u,h)),d},"program"),data:s(function(u,c){for(;u&&c--;)u=u._parent;return u},"data"),mergeIfNeeded:s(function(u,c){var l=u||c;return u&&c&&u!==c&&(l=Jr.extend({},c,u)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function o(a){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=u.data;o._setup(u),!u.partial&&e.useData&&(c=bq(a,c));var l=void 0,p=e.useBlockParams?[]:void 0;e.useDepths&&(u.depths?l=a!=u.depths[0]?[a].concat(u.depths):u.depths:l=[a]);function f(d){return""+e.main(i,d,i.helpers,i.partials,c,p,l)}return s(f,"main"),f=L2(e.main,f,i,u.depths||[],c,p),f(a,u)}return s(o,"ret"),o.isTop=!0,o._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var u=Jr.extend({},t.helpers,a.helpers);_q(u,i),i.helpers=u,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=Jr.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=q2.createProtoAccessControl(a);var c=a.allowCallsToHelperMissing||r;T2.moveHelperToHooks(i,"helperMissing",c),T2.moveHelperToHooks(i,"blockHelperMissing",c)}},o._child=function(a,u,c,l){if(e.useBlockParams&&!c)throw new Qr.default("must pass block params");if(e.useDepths&&!l)throw new Qr.default("must pass parent depths");return rc(i,a,e[a],u,0,c,l)},o}s(gq,"template");function rc(e,t,r,n,i,o,a){function u(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=a;return a&&c!=a[0]&&!(c===e.nullContext&&a[0]===null)&&(p=[c].concat(a)),r(e,c,e.helpers,e.partials,l.data||n,o&&[l.blockParams].concat(o),p)}return s(u,"prog"),u=L2(r,u,e,a,n,o),u.program=t,u.depth=a?a.length:0,u.blockParams=i||0,u}s(rc,"wrapProgram");function yq(e,t,r){return e?!e.call&&!r.name&&(r.name=e,e=r.partials[e]):r.name==="@partial-block"?e=r.data["partial-block"]:e=r.partials[r.name],e}s(yq,"resolvePartial");function vq(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!==D2&&function(){r.data=Xr.createFrame(r.data);var o=r.fn;i=r.data["partial-block"]=s(function(u){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=Xr.createFrame(c.data),c.data["partial-block"]=n,o(u,c)},"partialBlockWrapper"),o.partials&&(r.partials=Jr.extend({},r.partials,o.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new Qr.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}s(vq,"invokePartial");function D2(){return""}s(D2,"noop");function bq(e,t){return(!t||!("root"in t))&&(t=t?Xr.createFrame(t):{},t.root=e),t}s(bq,"initData");function L2(e,t,r,n,i,o){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,o,n),Jr.extend(t,a)}return t}s(L2,"executeDecorators");function _q(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=Sq(n,t)})}s(_q,"wrapHelpersToPassLookupProperty");function Sq(e,t){var r=t.lookupProperty;return hq.wrapHelper(e,function(n){return Jr.extend({lookupProperty:r},n)})}s(Sq,"passLookupPropertyOption")});var qh=b((nc,B2)=>{"use strict";nc.__esModule=!0;nc.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}};B2.exports=nc.default});var z2=b((ic,G2)=>{"use strict";ic.__esModule=!0;function Lh(e){return e&&e.__esModule?e:{default:e}}s(Lh,"_interopRequireDefault");function Fh(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}s(Fh,"_interopRequireWildcard");var wq=ec(),V2=Fh(wq),$q=N2(),Pq=Lh($q),Oq=tr(),Eq=Lh(Oq),xq=Pt(),Dh=Fh(xq),Aq=F2(),H2=Fh(Aq),Cq=qh(),Iq=Lh(Cq);function U2(){var e=new V2.HandlebarsEnvironment;return Dh.extend(e,V2),e.SafeString=Pq.default,e.Exception=Eq.default,e.Utils=Dh,e.escapeExpression=Dh.escapeExpression,e.VM=H2,e.template=function(t){return H2.template(t,e)},e}s(U2,"create");var zo=U2();zo.create=U2;Iq.default(zo);zo.default=zo;ic.default=zo;G2.exports=ic.default});var Bh=b((sc,K2)=>{"use strict";sc.__esModule=!0;var W2={helpers:{helperExpression:s(function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},"helperExpression"),scopedId:s(function(t){return/^\.|this\b/.test(t.original)},"scopedId"),simpleId:s(function(t){return t.parts.length===1&&!W2.helpers.scopedId(t)&&!t.depth},"simpleId")}};sc.default=W2;K2.exports=sc.default});var Y2=b((oc,Z2)=>{"use strict";oc.__esModule=!0;var Rq=function(){var e={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:s(function(i,o,a,u,c,l,p){var f=l.length-1;switch(c){case 1:return l[f-1];case 2:this.$=u.prepareProgram(l[f]);break;case 3:this.$=l[f];break;case 4:this.$=l[f];break;case 5:this.$=l[f];break;case 6:this.$=l[f];break;case 7:this.$=l[f];break;case 8:this.$=l[f];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(l[f]),strip:u.stripFlags(l[f],l[f]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[f],value:l[f],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(l[f-2],l[f-1],l[f],this._$);break;case 12:this.$={path:l[f-3],params:l[f-2],hash:l[f-1]};break;case 13:this.$=u.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!1,this._$);break;case 14:this.$=u.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!0,this._$);break;case 15:this.$={open:l[f-5],path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 16:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 17:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 18:this.$={strip:u.stripFlags(l[f-1],l[f-1]),program:l[f]};break;case 19:var d=u.prepareBlock(l[f-2],l[f-1],l[f],l[f],!1,this._$),h=u.prepareProgram([d],l[f-1].loc);h.chained=!0,this.$={strip:l[f-2].strip,program:h,chain:!0};break;case 20:this.$=l[f];break;case 21:this.$={path:l[f-1],strip:u.stripFlags(l[f-2],l[f])};break;case 22:this.$=u.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],u.stripFlags(l[f-4],l[f]),this._$);break;case 23:this.$=u.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],u.stripFlags(l[f-4],l[f]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[f-3],params:l[f-2],hash:l[f-1],indent:"",strip:u.stripFlags(l[f-4],l[f]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(l[f-2],l[f-1],l[f],this._$);break;case 26:this.$={path:l[f-3],params:l[f-2],hash:l[f-1],strip:u.stripFlags(l[f-4],l[f])};break;case 27:this.$=l[f];break;case 28:this.$=l[f];break;case 29:this.$={type:"SubExpression",path:l[f-3],params:l[f-2],hash:l[f-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[f],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(l[f-2]),value:l[f],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(l[f-1]);break;case 33:this.$=l[f];break;case 34:this.$=l[f];break;case 35:this.$={type:"StringLiteral",value:l[f],original:l[f],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[f]),original:Number(l[f]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[f]==="true",original:l[f]==="true",loc:u.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:u.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:u.locInfo(this._$)};break;case 40:this.$=l[f];break;case 41:this.$=l[f];break;case 42:this.$=u.preparePath(!0,l[f],this._$);break;case 43:this.$=u.preparePath(!1,l[f],this._$);break;case 44:l[f-2].push({part:u.id(l[f]),original:l[f],separator:l[f-1]}),this.$=l[f-2];break;case 45:this.$=[{part:u.id(l[f]),original:l[f]}];break;case 46:this.$=[];break;case 47:l[f-1].push(l[f]);break;case 48:this.$=[];break;case 49:l[f-1].push(l[f]);break;case 50:this.$=[];break;case 51:l[f-1].push(l[f]);break;case 58:this.$=[];break;case 59:l[f-1].push(l[f]);break;case 64:this.$=[];break;case 65:l[f-1].push(l[f]);break;case 70:this.$=[];break;case 71:l[f-1].push(l[f]);break;case 78:this.$=[];break;case 79:l[f-1].push(l[f]);break;case 82:this.$=[];break;case 83:l[f-1].push(l[f]);break;case 86:this.$=[];break;case 87:l[f-1].push(l[f]);break;case 90:this.$=[];break;case 91:l[f-1].push(l[f]);break;case 94:this.$=[];break;case 95:l[f-1].push(l[f]);break;case 98:this.$=[l[f]];break;case 99:l[f-1].push(l[f]);break;case 100:this.$=[l[f]];break;case 101:l[f-1].push(l[f]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:s(function(i,o){throw new Error(i)},"parseError"),parse:s(function(i){var o=this,a=[0],u=[null],c=[],l=this.table,p="",f=0,d=0,h=0,y=2,v=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;c.push(g);var P=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function C(be){a.length=a.length-2*be,u.length=u.length-be,c.length=c.length-be}s(C,"popStack");function k(){var be;return be=o.lexer.lex()||1,typeof be!="number"&&(be=o.symbols_[be]||be),be}s(k,"lex");for(var A,I,ae,ue,Ot,Fe,ee={},M,R,q,Z;;){if(ae=a[a.length-1],this.defaultActions[ae]?ue=this.defaultActions[ae]:((A===null||typeof A>"u")&&(A=k()),ue=l[ae]&&l[ae][A]),typeof ue>"u"||!ue.length||!ue[0]){var ce="";if(!h){Z=[];for(M in l[ae])this.terminals_[M]&&M>2&&Z.push("'"+this.terminals_[M]+"'");this.lexer.showPosition?ce="Parse error on line "+(f+1)+`:
56
+ `)}return p}else throw new Qr.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}s(n,"invokePartialWrapper");var i={strict:s(function(u,c,l){if(!u||!(c in u))throw new Qr.default('"'+c+'" not defined in '+u,{loc:l});return i.lookupProperty(u,c)},"strict"),lookupProperty:s(function(u,c){var l=u[c];if(l==null||Object.prototype.hasOwnProperty.call(u,c)||B2.resultIsAllowed(l,i.protoAccessControl,c))return l},"lookupProperty"),lookup:s(function(u,c){for(var l=u.length,p=0;p<l;p++){var f=u[p]&&i.lookupProperty(u[p],c);if(f!=null)return u[p][c]}},"lookup"),lambda:s(function(u,c){return typeof u=="function"?u.call(c):u},"lambda"),escapeExpression:Jr.escapeExpression,invokePartial:n,fn:s(function(u){var c=e[u];return c.decorator=e[u+"_d"],c},"fn"),programs:[],program:s(function(u,c,l,p,f){var d=this.programs[u],h=this.fn(u);return c||f||p||l?d=nc(this,u,h,c,l,p,f):d||(d=this.programs[u]=nc(this,u,h)),d},"program"),data:s(function(u,c){for(;u&&c--;)u=u._parent;return u},"data"),mergeIfNeeded:s(function(u,c){var l=u||c;return u&&c&&u!==c&&(l=Jr.extend({},c,u)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function o(a){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=u.data;o._setup(u),!u.partial&&e.useData&&(c=Pq(a,c));var l=void 0,p=e.useBlockParams?[]:void 0;e.useDepths&&(u.depths?l=a!=u.depths[0]?[a].concat(u.depths):u.depths:l=[a]);function f(d){return""+e.main(i,d,i.helpers,i.partials,c,p,l)}return s(f,"main"),f=U2(e.main,f,i,u.depths||[],c,p),f(a,u)}return s(o,"ret"),o.isTop=!0,o._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var u=Jr.extend({},t.helpers,a.helpers);Oq(u,i),i.helpers=u,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=Jr.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=B2.createProtoAccessControl(a);var c=a.allowCallsToHelperMissing||r;V2.moveHelperToHooks(i,"helperMissing",c),V2.moveHelperToHooks(i,"blockHelperMissing",c)}},o._child=function(a,u,c,l){if(e.useBlockParams&&!c)throw new Qr.default("must pass block params");if(e.useDepths&&!l)throw new Qr.default("must pass parent depths");return nc(i,a,e[a],u,0,c,l)},o}s(Sq,"template");function nc(e,t,r,n,i,o,a){function u(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=a;return a&&c!=a[0]&&!(c===e.nullContext&&a[0]===null)&&(p=[c].concat(a)),r(e,c,e.helpers,e.partials,l.data||n,o&&[l.blockParams].concat(o),p)}return s(u,"prog"),u=U2(r,u,e,a,n,o),u.program=t,u.depth=a?a.length:0,u.blockParams=i||0,u}s(nc,"wrapProgram");function wq(e,t,r){return e?!e.call&&!r.name&&(r.name=e,e=r.partials[e]):r.name==="@partial-block"?e=r.data["partial-block"]:e=r.partials[r.name],e}s(wq,"resolvePartial");function $q(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!==H2&&function(){r.data=Xr.createFrame(r.data);var o=r.fn;i=r.data["partial-block"]=s(function(u){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=Xr.createFrame(c.data),c.data["partial-block"]=n,o(u,c)},"partialBlockWrapper"),o.partials&&(r.partials=Jr.extend({},r.partials,o.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new Qr.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}s($q,"invokePartial");function H2(){return""}s(H2,"noop");function Pq(e,t){return(!t||!("root"in t))&&(t=t?Xr.createFrame(t):{},t.root=e),t}s(Pq,"initData");function U2(e,t,r,n,i,o){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,o,n),Jr.extend(t,a)}return t}s(U2,"executeDecorators");function Oq(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=xq(n,t)})}s(Oq,"wrapHelpersToPassLookupProperty");function xq(e,t){var r=t.lookupProperty;return bq.wrapHelper(e,function(n){return Jr.extend({lookupProperty:r},n)})}s(xq,"passLookupPropertyOption")});var Lh=b((ic,G2)=>{"use strict";ic.__esModule=!0;ic.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}};G2.exports=ic.default});var J2=b((sc,Y2)=>{"use strict";sc.__esModule=!0;function Vh(e){return e&&e.__esModule?e:{default:e}}s(Vh,"_interopRequireDefault");function Bh(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}s(Bh,"_interopRequireWildcard");var Eq=tc(),W2=Bh(Eq),Aq=L2(),Cq=Vh(Aq),Iq=tr(),Rq=Vh(Iq),jq=Ot(),Fh=Bh(jq),kq=z2(),K2=Bh(kq),Nq=Lh(),Mq=Vh(Nq);function Z2(){var e=new W2.HandlebarsEnvironment;return Fh.extend(e,W2),e.SafeString=Cq.default,e.Exception=Rq.default,e.Utils=Fh,e.escapeExpression=Fh.escapeExpression,e.VM=K2,e.template=function(t){return K2.template(t,e)},e}s(Z2,"create");var Wo=Z2();Wo.create=Z2;Mq.default(Wo);Wo.default=Wo;sc.default=Wo;Y2.exports=sc.default});var Hh=b((oc,X2)=>{"use strict";oc.__esModule=!0;var Q2={helpers:{helperExpression:s(function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},"helperExpression"),scopedId:s(function(t){return/^\.|this\b/.test(t.original)},"scopedId"),simpleId:s(function(t){return t.parts.length===1&&!Q2.helpers.scopedId(t)&&!t.depth},"simpleId")}};oc.default=Q2;X2.exports=oc.default});var tw=b((ac,ew)=>{"use strict";ac.__esModule=!0;var Tq=function(){var e={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:s(function(i,o,a,u,c,l,p){var f=l.length-1;switch(c){case 1:return l[f-1];case 2:this.$=u.prepareProgram(l[f]);break;case 3:this.$=l[f];break;case 4:this.$=l[f];break;case 5:this.$=l[f];break;case 6:this.$=l[f];break;case 7:this.$=l[f];break;case 8:this.$=l[f];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(l[f]),strip:u.stripFlags(l[f],l[f]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[f],value:l[f],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(l[f-2],l[f-1],l[f],this._$);break;case 12:this.$={path:l[f-3],params:l[f-2],hash:l[f-1]};break;case 13:this.$=u.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!1,this._$);break;case 14:this.$=u.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!0,this._$);break;case 15:this.$={open:l[f-5],path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 16:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 17:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 18:this.$={strip:u.stripFlags(l[f-1],l[f-1]),program:l[f]};break;case 19:var d=u.prepareBlock(l[f-2],l[f-1],l[f],l[f],!1,this._$),h=u.prepareProgram([d],l[f-1].loc);h.chained=!0,this.$={strip:l[f-2].strip,program:h,chain:!0};break;case 20:this.$=l[f];break;case 21:this.$={path:l[f-1],strip:u.stripFlags(l[f-2],l[f])};break;case 22:this.$=u.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],u.stripFlags(l[f-4],l[f]),this._$);break;case 23:this.$=u.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],u.stripFlags(l[f-4],l[f]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[f-3],params:l[f-2],hash:l[f-1],indent:"",strip:u.stripFlags(l[f-4],l[f]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(l[f-2],l[f-1],l[f],this._$);break;case 26:this.$={path:l[f-3],params:l[f-2],hash:l[f-1],strip:u.stripFlags(l[f-4],l[f])};break;case 27:this.$=l[f];break;case 28:this.$=l[f];break;case 29:this.$={type:"SubExpression",path:l[f-3],params:l[f-2],hash:l[f-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[f],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(l[f-2]),value:l[f],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(l[f-1]);break;case 33:this.$=l[f];break;case 34:this.$=l[f];break;case 35:this.$={type:"StringLiteral",value:l[f],original:l[f],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[f]),original:Number(l[f]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[f]==="true",original:l[f]==="true",loc:u.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:u.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:u.locInfo(this._$)};break;case 40:this.$=l[f];break;case 41:this.$=l[f];break;case 42:this.$=u.preparePath(!0,l[f],this._$);break;case 43:this.$=u.preparePath(!1,l[f],this._$);break;case 44:l[f-2].push({part:u.id(l[f]),original:l[f],separator:l[f-1]}),this.$=l[f-2];break;case 45:this.$=[{part:u.id(l[f]),original:l[f]}];break;case 46:this.$=[];break;case 47:l[f-1].push(l[f]);break;case 48:this.$=[];break;case 49:l[f-1].push(l[f]);break;case 50:this.$=[];break;case 51:l[f-1].push(l[f]);break;case 58:this.$=[];break;case 59:l[f-1].push(l[f]);break;case 64:this.$=[];break;case 65:l[f-1].push(l[f]);break;case 70:this.$=[];break;case 71:l[f-1].push(l[f]);break;case 78:this.$=[];break;case 79:l[f-1].push(l[f]);break;case 82:this.$=[];break;case 83:l[f-1].push(l[f]);break;case 86:this.$=[];break;case 87:l[f-1].push(l[f]);break;case 90:this.$=[];break;case 91:l[f-1].push(l[f]);break;case 94:this.$=[];break;case 95:l[f-1].push(l[f]);break;case 98:this.$=[l[f]];break;case 99:l[f-1].push(l[f]);break;case 100:this.$=[l[f]];break;case 101:l[f-1].push(l[f]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:s(function(i,o){throw new Error(i)},"parseError"),parse:s(function(i){var o=this,a=[0],u=[null],c=[],l=this.table,p="",f=0,d=0,h=0,y=2,v=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;c.push(g);var $=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function A(be){a.length=a.length-2*be,u.length=u.length-be,c.length=c.length-be}s(A,"popStack");function k(){var be;return be=o.lexer.lex()||1,typeof be!="number"&&(be=o.symbols_[be]||be),be}s(k,"lex");for(var C,I,fe,ne,yt,Fe,ee={},M,R,q,Z;;){if(fe=a[a.length-1],this.defaultActions[fe]?ne=this.defaultActions[fe]:((C===null||typeof C>"u")&&(C=k()),ne=l[fe]&&l[fe][C]),typeof ne>"u"||!ne.length||!ne[0]){var ue="";if(!h){Z=[];for(M in l[fe])this.terminals_[M]&&M>2&&Z.push("'"+this.terminals_[M]+"'");this.lexer.showPosition?ue="Parse error on line "+(f+1)+`:
57
57
  `+this.lexer.showPosition()+`
58
- Expecting `+Z.join(", ")+", got '"+(this.terminals_[A]||A)+"'":ce="Parse error on line "+(f+1)+": Unexpected "+(A==1?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(ce,{text:this.lexer.match,token:this.terminals_[A]||A,line:this.lexer.yylineno,loc:g,expected:Z})}}if(ue[0]instanceof Array&&ue.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ae+", token: "+A);switch(ue[0]){case 1:a.push(A),u.push(this.lexer.yytext),c.push(this.lexer.yylloc),a.push(ue[1]),A=null,I?(A=I,I=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_[ue[1]][1],ee.$=u[u.length-R],ee._$={first_line:c[c.length-(R||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(R||1)].first_column,last_column:c[c.length-1].last_column},P&&(ee._$.range=[c[c.length-(R||1)].range[0],c[c.length-1].range[1]]),Fe=this.performAction.call(ee,p,d,f,this.yy,ue[1],u,c),typeof Fe<"u")return Fe;R&&(a=a.slice(0,-1*R*2),u=u.slice(0,-1*R),c=c.slice(0,-1*R)),a.push(this.productions_[ue[1]][0]),u.push(ee.$),c.push(ee._$),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:s(function(o,a){if(this.yy.parser)this.yy.parser.parseError(o,a);else throw new Error(o)},"parseError"),setInput:s(function(o){return this._input=o,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var a=o.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:s(function(o){var a=o.length,u=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===c.length?this.yylloc.first_column:0)+c[c.length-u.length].length-u[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-a]),this},"unput"),more:s(function(){return this._more=!0,this},"more"),less:s(function(o){this.unput(this.match.slice(o))},"less"),pastInput:s(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var o=this.pastInput(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
58
+ Expecting `+Z.join(", ")+", got '"+(this.terminals_[C]||C)+"'":ue="Parse error on line "+(f+1)+": Unexpected "+(C==1?"end of input":"'"+(this.terminals_[C]||C)+"'"),this.parseError(ue,{text:this.lexer.match,token:this.terminals_[C]||C,line:this.lexer.yylineno,loc:g,expected:Z})}}if(ne[0]instanceof Array&&ne.length>1)throw new Error("Parse Error: multiple actions possible at state: "+fe+", token: "+C);switch(ne[0]){case 1:a.push(C),u.push(this.lexer.yytext),c.push(this.lexer.yylloc),a.push(ne[1]),C=null,I?(C=I,I=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_[ne[1]][1],ee.$=u[u.length-R],ee._$={first_line:c[c.length-(R||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(R||1)].first_column,last_column:c[c.length-1].last_column},$&&(ee._$.range=[c[c.length-(R||1)].range[0],c[c.length-1].range[1]]),Fe=this.performAction.call(ee,p,d,f,this.yy,ne[1],u,c),typeof Fe<"u")return Fe;R&&(a=a.slice(0,-1*R*2),u=u.slice(0,-1*R),c=c.slice(0,-1*R)),a.push(this.productions_[ne[1]][0]),u.push(ee.$),c.push(ee._$),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:s(function(o,a){if(this.yy.parser)this.yy.parser.parseError(o,a);else throw new Error(o)},"parseError"),setInput:s(function(o){return this._input=o,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var a=o.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:s(function(o){var a=o.length,u=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===c.length?this.yylloc.first_column:0)+c[c.length-u.length].length-u[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-a]),this},"unput"),more:s(function(){return this._more=!0,this},"more"),less:s(function(o){this.unput(this.match.slice(o))},"less"),pastInput:s(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var o=this.pastInput(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
59
59
  `+a+"^"},"showPosition"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,a,u,c,l,p;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),d=0;d<f.length&&(u=this._input.match(this.rules[f[d]]),!(u&&(!a||u[0].length>a[0].length)&&(a=u,c=d,!this.options.flex)));d++);return a?(p=a[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],o=this.performAction.call(this,this.yy,this,f[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
60
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var o=this.next();return typeof o<"u"?o:this.lex()},"lex"),begin:s(function(o){this.conditionStack.push(o)},"begin"),popState:s(function(){return this.conditionStack.pop()},"popState"),_currentRules:s(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:s(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:s(function(o){this.begin(o)},"begin")};return n.options={},n.performAction=s(function(o,a,u,c){function l(f,d){return a.yytext=a.yytext.substring(f,a.yyleng-d+f)}s(l,"strip");var p=c;switch(u){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();e.lexer=t;function r(){this.yy={}}return s(r,"Parser"),r.prototype=e,e.Parser=r,new r}();oc.default=Rq;Z2.exports=oc.default});var lc=b((cc,X2)=>{"use strict";cc.__esModule=!0;function jq(e){return e&&e.__esModule?e:{default:e}}s(jq,"_interopRequireDefault");var kq=tr(),Vh=jq(kq);function ac(){this.parents=[]}s(ac,"Visitor");ac.prototype={constructor:ac,mutating:!1,acceptKey:s(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!ac.prototype[n.type])throw new Vh.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+t.type);t[r]=n}},"acceptKey"),acceptRequired:s(function(t,r){if(this.acceptKey(t,r),!t[r])throw new Vh.default(t.type+" requires "+r)},"acceptRequired"),acceptArray:s(function(t){for(var r=0,n=t.length;r<n;r++)this.acceptKey(t,r),t[r]||(t.splice(r,1),r--,n--)},"acceptArray"),accept:s(function(t){if(t){if(!this[t.type])throw new Vh.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var r=this[t.type](t);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return t}},"accept"),Program:s(function(t){this.acceptArray(t.body)},"Program"),MustacheStatement:uc,Decorator:uc,BlockStatement:J2,DecoratorBlock:J2,PartialStatement:Q2,PartialBlockStatement:s(function(t){Q2.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:s(function(){},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:uc,PathExpression:s(function(){},"PathExpression"),StringLiteral:s(function(){},"StringLiteral"),NumberLiteral:s(function(){},"NumberLiteral"),BooleanLiteral:s(function(){},"BooleanLiteral"),UndefinedLiteral:s(function(){},"UndefinedLiteral"),NullLiteral:s(function(){},"NullLiteral"),Hash:s(function(t){this.acceptArray(t.pairs)},"Hash"),HashPair:s(function(t){this.acceptRequired(t,"value")},"HashPair")};function uc(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(uc,"visitSubExpression");function J2(e){uc.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}s(J2,"visitBlock");function Q2(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(Q2,"visitPartial");cc.default=ac;X2.exports=cc.default});var tw=b((fc,ew)=>{"use strict";fc.__esModule=!0;function Nq(e){return e&&e.__esModule?e:{default:e}}s(Nq,"_interopRequireDefault");var Mq=lc(),Tq=Nq(Mq);function Lr(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}s(Lr,"WhitespaceControl");Lr.prototype=new Tq.default;Lr.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,o=n.length;i<o;i++){var a=n[i],u=this.accept(a);if(u){var c=Hh(n,i,r),l=Uh(n,i,r),p=u.openStandalone&&c,f=u.closeStandalone&&l,d=u.inlineStandalone&&c&&l;u.close&&_i(n,i,!0),u.open&&kn(n,i,!0),t&&d&&(_i(n,i),kn(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(_i((a.program||a.inverse).body),kn(n,i)),t&&f&&(_i(n,i),kn((a.inverse||a.program).body))}}return e};Lr.prototype.BlockStatement=Lr.prototype.DecoratorBlock=Lr.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var o={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:Uh(t.body),closeStandalone:Hh((n||t).body)};if(e.openStrip.close&&_i(t.body,null,!0),r){var a=e.inverseStrip;a.open&&kn(t.body,null,!0),a.close&&_i(n.body,null,!0),e.closeStrip.open&&kn(i.body,null,!0),!this.options.ignoreStandalone&&Hh(t.body)&&Uh(n.body)&&(kn(t.body),_i(n.body))}else e.closeStrip.open&&kn(t.body,null,!0);return o};Lr.prototype.Decorator=Lr.prototype.MustacheStatement=function(e){return e.strip};Lr.prototype.PartialStatement=Lr.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function Hh(e,t,r){t===void 0&&(t=e.length);var n=e[t-1],i=e[t-2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}s(Hh,"isPrevWhitespace");function Uh(e,t,r){t===void 0&&(t=-1);var n=e[t+1],i=e[t+2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}s(Uh,"isNextWhitespace");function _i(e,t,r){var n=e[t==null?0:t+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}s(_i,"omitRight");function kn(e,t,r){var n=e[t==null?e.length-1:t-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}s(kn,"omitLeft");fc.default=Lr;ew.exports=fc.default});var rw=b(rr=>{"use strict";rr.__esModule=!0;rr.SourceLocation=Lq;rr.id=Fq;rr.stripFlags=Bq;rr.stripComment=Vq;rr.preparePath=Hq;rr.prepareMustache=Uq;rr.prepareRawBlock=Gq;rr.prepareBlock=zq;rr.prepareProgram=Wq;rr.preparePartialBlock=Kq;function qq(e){return e&&e.__esModule?e:{default:e}}s(qq,"_interopRequireDefault");var Dq=tr(),Gh=qq(Dq);function zh(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new Gh.default(e.path.original+" doesn't match "+t,r)}}s(zh,"validateClose");function Lq(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}s(Lq,"SourceLocation");function Fq(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}s(Fq,"id");function Bq(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}s(Bq,"stripFlags");function Vq(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}s(Vq,"stripComment");function Hq(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],o=0,a=0,u=t.length;a<u;a++){var c=t[a].part,l=t[a].original!==c;if(n+=(t[a].separator||"")+c,!l&&(c===".."||c==="."||c==="this")){if(i.length>0)throw new Gh.default("Invalid path: "+n,{loc:r});c===".."&&o++}else i.push(c)}return{type:"PathExpression",data:e,depth:o,parts:i,original:n,loc:r}}s(Hq,"preparePath");function Uq(e,t,r,n,i,o){var a=n.charAt(3)||n.charAt(2),u=a!=="{"&&a!=="&",c=/\*/.test(n);return{type:c?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:u,strip:i,loc:this.locInfo(o)}}s(Uq,"prepareMustache");function Gq(e,t,r,n){zh(e,r),n=this.locInfo(n);var i={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}s(Gq,"prepareRawBlock");function zq(e,t,r,n,i,o){n&&n.path&&zh(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var u=void 0,c=void 0;if(r){if(a)throw new Gh.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),c=r.strip,u=r.program}return i&&(i=u,u=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:u,openStrip:e.strip,inverseStrip:c,closeStrip:n&&n.strip,loc:this.locInfo(o)}}s(zq,"prepareBlock");function Wq(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}s(Wq,"prepareProgram");function Kq(e,t,r,n){return zh(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}s(Kq,"preparePartialBlock")});var sw=b(Wo=>{"use strict";Wo.__esModule=!0;Wo.parseWithoutProcessing=iw;Wo.parse=r4;function Zq(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}s(Zq,"_interopRequireWildcard");function nw(e){return e&&e.__esModule?e:{default:e}}s(nw,"_interopRequireDefault");var Yq=Y2(),Wh=nw(Yq),Jq=tw(),Qq=nw(Jq),Xq=rw(),e4=Zq(Xq),t4=Pt();Wo.parser=Wh.default;var pc={};t4.extend(pc,e4);function iw(e,t){if(e.type==="Program")return e;Wh.default.yy=pc,pc.locInfo=function(n){return new pc.SourceLocation(t&&t.srcName,n)};var r=Wh.default.parse(e);return r}s(iw,"parseWithoutProcessing");function r4(e,t){var r=iw(e,t),n=new Qq.default(t);return n.accept(r)}s(r4,"parse")});var cw=b(Jo=>{"use strict";Jo.__esModule=!0;Jo.Compiler=Kh;Jo.precompile=o4;Jo.compile=a4;function aw(e){return e&&e.__esModule?e:{default:e}}s(aw,"_interopRequireDefault");var n4=tr(),Zo=aw(n4),Yo=Pt(),i4=Bh(),Ko=aw(i4),s4=[].slice;function Kh(){}s(Kh,"Compiler");Kh.prototype={compiler:Kh,equals:s(function(t){var r=this.opcodes.length;if(t.opcodes.length!==r)return!1;for(var n=0;n<r;n++){var i=this.opcodes[n],o=t.opcodes[n];if(i.opcode!==o.opcode||!uw(i.args,o.args))return!1}r=this.children.length;for(var n=0;n<r;n++)if(!this.children[n].equals(t.children[n]))return!1;return!0},"equals"),guid:0,compile:s(function(t,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=Yo.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(t)},"compile"),compileProgram:s(function(t){var r=new this.compiler,n=r.compile(t,this.options),i=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[i]=n,this.useDepths=this.useDepths||n.useDepths,i},"compileProgram"),accept:s(function(t){if(!this[t.type])throw new Zo.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},"accept"),Program:s(function(t){this.options.blockParams.unshift(t.blockParams);for(var r=t.body,n=r.length,i=0;i<n;i++)this.accept(r[i]);return this.options.blockParams.shift(),this.isSimple=n===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},"Program"),BlockStatement:s(function(t){ow(t);var r=t.program,n=t.inverse;r=r&&this.compileProgram(r),n=n&&this.compileProgram(n);var i=this.classifySexpr(t);i==="helper"?this.helperSexpr(t,r,n):i==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,r,n),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},"BlockStatement"),DecoratorBlock:s(function(t){var r=t.program&&this.compileProgram(t.program),n=this.setupFullMustacheParams(t,r,void 0),i=t.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,i.original)},"DecoratorBlock"),PartialStatement:s(function(t){this.usePartial=!0;var r=t.program;r&&(r=this.compileProgram(t.program));var n=t.params;if(n.length>1)throw new Zo.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=t.name.original,o=t.name.type==="SubExpression";o&&this.accept(t.name),this.setupFullMustacheParams(t,r,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",o,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:s(function(t){this.PartialStatement(t)},"PartialBlockStatement"),MustacheStatement:s(function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:s(function(t){this.DecoratorBlock(t)},"Decorator"),ContentStatement:s(function(t){t.value&&this.opcode("appendContent",t.value)},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:s(function(t){ow(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},"SubExpression"),ambiguousSexpr:s(function(t,r,n){var i=t.path,o=i.parts[0],a=r!=null||n!=null;this.opcode("getContext",i.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",o,a)},"ambiguousSexpr"),simpleSexpr:s(function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:s(function(t,r,n){var i=this.setupFullMustacheParams(t,r,n),o=t.path,a=o.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new Zo.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",i.length,o.original,Ko.default.helpers.simpleId(o))}},"helperSexpr"),PathExpression:s(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=Ko.default.helpers.scopedId(t),i=!t.depth&&!n&&this.blockParamIndex(r);i?this.opcode("lookupBlockParam",i,t.parts):r?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},"PathExpression"),StringLiteral:s(function(t){this.opcode("pushString",t.value)},"StringLiteral"),NumberLiteral:s(function(t){this.opcode("pushLiteral",t.value)},"NumberLiteral"),BooleanLiteral:s(function(t){this.opcode("pushLiteral",t.value)},"BooleanLiteral"),UndefinedLiteral:s(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:s(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:s(function(t){var r=t.pairs,n=0,i=r.length;for(this.opcode("pushHash");n<i;n++)this.pushParam(r[n].value);for(;n--;)this.opcode("assignToHash",r[n].key);this.opcode("popHash")},"Hash"),opcode:s(function(t){this.opcodes.push({opcode:t,args:s4.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:s(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:s(function(t){var r=Ko.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&Ko.default.helpers.helperExpression(t),o=!n&&(i||r);if(o&&!i){var a=t.path.parts[0],u=this.options;u.knownHelpers[a]?i=!0:u.knownHelpersOnly&&(o=!1)}return i?"helper":o?"ambiguous":"simple"},"classifySexpr"),pushParams:s(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:s(function(t){var r=t.value!=null?t.value:t.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",r,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var n=void 0;if(t.parts&&!Ko.default.helpers.scopedId(t)&&!t.depth&&(n=this.blockParamIndex(t.parts[0])),n){var i=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,i)}else r=t.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,r)}this.accept(t)}},"pushParam"),setupFullMustacheParams:s(function(t,r,n,i){var o=t.params;return this.pushParams(o),this.opcode("pushProgram",r),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),o},"setupFullMustacheParams"),blockParamIndex:s(function(t){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],o=i&&Yo.indexOf(i,t);if(i&&o>=0)return[r,o]}},"blockParamIndex")};function o4(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Zo.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=r.parse(e,t),i=new r.Compiler().compile(n,t);return new r.JavaScriptCompiler().compile(i,t)}s(o4,"precompile");function a4(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Zo.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=Yo.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function i(){var a=r.parse(e,t),u=new r.Compiler().compile(a,t),c=new r.JavaScriptCompiler().compile(u,t,void 0,!0);return r.template(c)}s(i,"compileInput");function o(a,u){return n||(n=i()),n.call(this,a,u)}return s(o,"ret"),o._setup=function(a){return n||(n=i()),n._setup(a)},o._child=function(a,u,c,l){return n||(n=i()),n._child(a,u,c,l)},o}s(a4,"compile");function uw(e,t){if(e===t)return!0;if(Yo.isArray(e)&&Yo.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!uw(e[r],t[r]))return!1;return!0}}s(uw,"argEquals");function ow(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}s(ow,"transformLiteralToPath")});var fw=b(Zh=>{var lw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Zh.encode=function(e){if(0<=e&&e<lw.length)return lw[e];throw new TypeError("Must be between 0 and 63: "+e)};Zh.decode=function(e){var t=65,r=90,n=97,i=122,o=48,a=57,u=43,c=47,l=26,p=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:o<=e&&e<=a?e-o+p:e==u?62:e==c?63:-1}});var Qh=b(Jh=>{var pw=fw(),Yh=5,dw=1<<Yh,hw=dw-1,mw=dw;function u4(e){return e<0?(-e<<1)+1:(e<<1)+0}s(u4,"toVLQSigned");function c4(e){var t=(e&1)===1,r=e>>1;return t?-r:r}s(c4,"fromVLQSigned");Jh.encode=s(function(t){var r="",n,i=u4(t);do n=i&hw,i>>>=Yh,i>0&&(n|=mw),r+=pw.encode(n);while(i>0);return r},"base64VLQ_encode");Jh.decode=s(function(t,r,n){var i=t.length,o=0,a=0,u,c;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=pw.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));u=!!(c&mw),c&=hw,o=o+(c<<a),a+=Yh}while(u);n.value=c4(o),n.rest=r},"base64VLQ_decode")});var Es=b(gt=>{function l4(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}s(l4,"getArg");gt.getArg=l4;var gw=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,f4=/^data:.+\,.+$/;function Qo(e){var t=e.match(gw);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}s(Qo,"urlParse");gt.urlParse=Qo;function Ps(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}s(Ps,"urlGenerate");gt.urlGenerate=Ps;function Xh(e){var t=e,r=Qo(e);if(r){if(!r.path)return e;t=r.path}for(var n=gt.isAbsolute(t),i=t.split(/\/+/),o,a=0,u=i.length-1;u>=0;u--)o=i[u],o==="."?i.splice(u,1):o===".."?a++:a>0&&(o===""?(i.splice(u+1,a),a=0):(i.splice(u,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Ps(r)):t}s(Xh,"normalize");gt.normalize=Xh;function yw(e,t){e===""&&(e="."),t===""&&(t=".");var r=Qo(t),n=Qo(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Ps(r);if(r||t.match(f4))return t;if(n&&!n.host&&!n.path)return n.host=t,Ps(n);var i=t.charAt(0)==="/"?t:Xh(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Ps(n)):i}s(yw,"join");gt.join=yw;gt.isAbsolute=function(e){return e.charAt(0)==="/"||gw.test(e)};function p4(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}s(p4,"relative");gt.relative=p4;var vw=function(){var e=Object.create(null);return!("__proto__"in e)}();function bw(e){return e}s(bw,"identity");function d4(e){return _w(e)?"$"+e:e}s(d4,"toSetString");gt.toSetString=vw?bw:d4;function h4(e){return _w(e)?e.slice(1):e}s(h4,"fromSetString");gt.fromSetString=vw?bw:h4;function _w(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}s(_w,"isProtoString");function m4(e,t,r){var n=Os(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:Os(e.name,t.name)}s(m4,"compareByOriginalPositions");gt.compareByOriginalPositions=m4;function g4(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=Os(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Os(e.name,t.name)}s(g4,"compareByGeneratedPositionsDeflated");gt.compareByGeneratedPositionsDeflated=g4;function Os(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}s(Os,"strcmp");function y4(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Os(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Os(e.name,t.name)}s(y4,"compareByGeneratedPositionsInflated");gt.compareByGeneratedPositionsInflated=y4;function v4(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}s(v4,"parseSourceMapInput");gt.parseSourceMapInput=v4;function b4(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=Qo(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=yw(Ps(n),t)}return Xh(t)}s(b4,"computeSourceURL");gt.computeSourceURL=b4});var rm=b(Sw=>{var em=Es(),tm=Object.prototype.hasOwnProperty,Si=typeof Map<"u";function en(){this._array=[],this._set=Si?new Map:Object.create(null)}s(en,"ArraySet");en.fromArray=s(function(t,r){for(var n=new en,i=0,o=t.length;i<o;i++)n.add(t[i],r);return n},"ArraySet_fromArray");en.prototype.size=s(function(){return Si?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");en.prototype.add=s(function(t,r){var n=Si?t:em.toSetString(t),i=Si?this.has(t):tm.call(this._set,n),o=this._array.length;(!i||r)&&this._array.push(t),i||(Si?this._set.set(t,o):this._set[n]=o)},"ArraySet_add");en.prototype.has=s(function(t){if(Si)return this._set.has(t);var r=em.toSetString(t);return tm.call(this._set,r)},"ArraySet_has");en.prototype.indexOf=s(function(t){if(Si){var r=this._set.get(t);if(r>=0)return r}else{var n=em.toSetString(t);if(tm.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");en.prototype.at=s(function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)},"ArraySet_at");en.prototype.toArray=s(function(){return this._array.slice()},"ArraySet_toArray");Sw.ArraySet=en});var Pw=b($w=>{var ww=Es();function _4(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,o=t.generatedColumn;return n>r||n==r&&o>=i||ww.compareByGeneratedPositionsInflated(e,t)<=0}s(_4,"generatedPositionAfter");function dc(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}s(dc,"MappingList");dc.prototype.unsortedForEach=s(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");dc.prototype.add=s(function(t){_4(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");dc.prototype.toArray=s(function(){return this._sorted||(this._array.sort(ww.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");$w.MappingList=dc});var nm=b(Ow=>{var Xo=Qh(),Xe=Es(),hc=rm().ArraySet,S4=Pw().MappingList;function nr(e){e||(e={}),this._file=Xe.getArg(e,"file",null),this._sourceRoot=Xe.getArg(e,"sourceRoot",null),this._skipValidation=Xe.getArg(e,"skipValidation",!1),this._sources=new hc,this._names=new hc,this._mappings=new S4,this._sourcesContents=null}s(nr,"SourceMapGenerator");nr.prototype._version=3;nr.fromSourceMap=s(function(t){var r=t.sourceRoot,n=new nr({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var o={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(o.source=i.source,r!=null&&(o.source=Xe.relative(r,o.source)),o.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(o.name=i.name)),n.addMapping(o)}),t.sources.forEach(function(i){var o=i;r!==null&&(o=Xe.relative(r,i)),n._sources.has(o)||n._sources.add(o);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");nr.prototype.addMapping=s(function(t){var r=Xe.getArg(t,"generated"),n=Xe.getArg(t,"original",null),i=Xe.getArg(t,"source",null),o=Xe.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,o),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:o})},"SourceMapGenerator_addMapping");nr.prototype.setSourceContent=s(function(t,r){var n=t;this._sourceRoot!=null&&(n=Xe.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Xe.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Xe.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");nr.prototype.applySourceMap=s(function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var o=this._sourceRoot;o!=null&&(i=Xe.relative(o,i));var a=new hc,u=new hc;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var l=t.originalPositionFor({line:c.originalLine,column:c.originalColumn});l.source!=null&&(c.source=l.source,n!=null&&(c.source=Xe.join(n,c.source)),o!=null&&(c.source=Xe.relative(o,c.source)),c.originalLine=l.line,c.originalColumn=l.column,l.name!=null&&(c.name=l.name))}var p=c.source;p!=null&&!a.has(p)&&a.add(p);var f=c.name;f!=null&&!u.has(f)&&u.add(f)},this),this._sources=a,this._names=u,t.sources.forEach(function(c){var l=t.sourceContentFor(c);l!=null&&(n!=null&&(c=Xe.join(n,c)),o!=null&&(c=Xe.relative(o,c)),this.setSourceContent(c,l))},this)},"SourceMapGenerator_applySourceMap");nr.prototype._validateMapping=s(function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}},"SourceMapGenerator_validateMapping");nr.prototype._serializeMappings=s(function(){for(var t=0,r=1,n=0,i=0,o=0,a=0,u="",c,l,p,f,d=this._mappings.toArray(),h=0,y=d.length;h<y;h++){if(l=d[h],c="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)c+=";",r++;else if(h>0){if(!Xe.compareByGeneratedPositionsInflated(l,d[h-1]))continue;c+=","}c+=Xo.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),c+=Xo.encode(f-a),a=f,c+=Xo.encode(l.originalLine-1-i),i=l.originalLine-1,c+=Xo.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),c+=Xo.encode(p-o),o=p)),u+=c}return u},"SourceMapGenerator_serializeMappings");nr.prototype._generateSourcesContent=s(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Xe.relative(r,n));var i=Xe.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");nr.prototype.toJSON=s(function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},"SourceMapGenerator_toJSON");nr.prototype.toString=s(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");Ow.SourceMapGenerator=nr});var Ew=b(wi=>{wi.GREATEST_LOWER_BOUND=1;wi.LEAST_UPPER_BOUND=2;function im(e,t,r,n,i,o){var a=Math.floor((t-e)/2)+e,u=i(r,n[a],!0);return u===0?a:u>0?t-a>1?im(a,t,r,n,i,o):o==wi.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?im(e,a,r,n,i,o):o==wi.LEAST_UPPER_BOUND?a:e<0?-1:e}s(im,"recursiveSearch");wi.search=s(function(t,r,n,i){if(r.length===0)return-1;var o=im(-1,r.length,t,r,n,i||wi.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&n(r[o],r[o-1],!0)===0;)--o;return o},"search")});var Aw=b(xw=>{function sm(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}s(sm,"swap");function w4(e,t){return Math.round(e+Math.random()*(t-e))}s(w4,"randomIntInRange");function om(e,t,r,n){if(r<n){var i=w4(r,n),o=r-1;sm(e,i,n);for(var a=e[n],u=r;u<n;u++)t(e[u],a)<=0&&(o+=1,sm(e,o,u));sm(e,o+1,u);var c=o+1;om(e,t,r,c-1),om(e,t,c+1,n)}}s(om,"doQuickSort");xw.quickSort=function(e,t){om(e,t,0,e.length-1)}});var Iw=b(mc=>{var U=Es(),am=Ew(),xs=rm().ArraySet,$4=Qh(),ea=Aw().quickSort;function Te(e,t){var r=e;return typeof e=="string"&&(r=U.parseSourceMapInput(e)),r.sections!=null?new br(r,t):new lt(r,t)}s(Te,"SourceMapConsumer");Te.fromSourceMap=function(e,t){return lt.fromSourceMap(e,t)};Te.prototype._version=3;Te.prototype.__generatedMappings=null;Object.defineProperty(Te.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:s(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});Te.prototype.__originalMappings=null;Object.defineProperty(Te.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:s(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});Te.prototype._charIsMappingSeparator=s(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");Te.prototype._parseMappings=s(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");Te.GENERATED_ORDER=1;Te.ORIGINAL_ORDER=2;Te.GREATEST_LOWER_BOUND=1;Te.LEAST_UPPER_BOUND=2;Te.prototype.eachMapping=s(function(t,r,n){var i=r||null,o=n||Te.GENERATED_ORDER,a;switch(o){case Te.GENERATED_ORDER:a=this._generatedMappings;break;case Te.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var u=this.sourceRoot;a.map(function(c){var l=c.source===null?null:this._sources.at(c.source);return l=U.computeSourceURL(u,l,this._sourceMapURL),{source:l,generatedLine:c.generatedLine,generatedColumn:c.generatedColumn,originalLine:c.originalLine,originalColumn:c.originalColumn,name:c.name===null?null:this._names.at(c.name)}},this).forEach(t,i)},"SourceMapConsumer_eachMapping");Te.prototype.allGeneratedPositionsFor=s(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=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",U.compareByOriginalPositions,am.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(t.column===void 0)for(var u=a.originalLine;a&&a.originalLine===u;)i.push({line:U.getArg(a,"generatedLine",null),column:U.getArg(a,"generatedColumn",null),lastColumn:U.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o];else for(var c=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==c;)i.push({line:U.getArg(a,"generatedLine",null),column:U.getArg(a,"generatedColumn",null),lastColumn:U.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o]}return i},"SourceMapConsumer_allGeneratedPositionsFor");mc.SourceMapConsumer=Te;function lt(e,t){var r=e;typeof e=="string"&&(r=U.parseSourceMapInput(e));var n=U.getArg(r,"version"),i=U.getArg(r,"sources"),o=U.getArg(r,"names",[]),a=U.getArg(r,"sourceRoot",null),u=U.getArg(r,"sourcesContent",null),c=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=xs.fromArray(o.map(String),!0),this._sources=xs.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(p){return U.computeSourceURL(a,p,t)}),this.sourceRoot=a,this.sourcesContent=u,this._mappings=c,this._sourceMapURL=t,this.file=l}s(lt,"BasicSourceMapConsumer");lt.prototype=Object.create(Te.prototype);lt.prototype.consumer=Te;lt.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};lt.fromSourceMap=s(function(t,r){var n=Object.create(lt.prototype),i=n._names=xs.fromArray(t._names.toArray(),!0),o=n._sources=xs.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(),u=n.__generatedMappings=[],c=n.__originalMappings=[],l=0,p=a.length;l<p;l++){var f=a[l],d=new Cw;d.generatedLine=f.generatedLine,d.generatedColumn=f.generatedColumn,f.source&&(d.source=o.indexOf(f.source),d.originalLine=f.originalLine,d.originalColumn=f.originalColumn,f.name&&(d.name=i.indexOf(f.name)),c.push(d)),u.push(d)}return ea(n.__originalMappings,U.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");lt.prototype._version=3;Object.defineProperty(lt.prototype,"sources",{get:s(function(){return this._absoluteSources.slice()},"get")});function Cw(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s(Cw,"Mapping");lt.prototype._parseMappings=s(function(t,r){for(var n=1,i=0,o=0,a=0,u=0,c=0,l=t.length,p=0,f={},d={},h=[],y=[],v,g,P,C,k;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(v=new Cw,v.generatedLine=n,C=p;C<l&&!this._charIsMappingSeparator(t,C);C++);if(g=t.slice(p,C),P=f[g],P)p+=g.length;else{for(P=[];p<C;)$4.decode(t,p,d),k=d.value,p=d.rest,P.push(k);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}v.generatedColumn=i+P[0],i=v.generatedColumn,P.length>1&&(v.source=u+P[1],u+=P[1],v.originalLine=o+P[2],o=v.originalLine,v.originalLine+=1,v.originalColumn=a+P[3],a=v.originalColumn,P.length>4&&(v.name=c+P[4],c+=P[4])),y.push(v),typeof v.originalLine=="number"&&h.push(v)}ea(y,U.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,ea(h,U.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");lt.prototype._findMapping=s(function(t,r,n,i,o,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return am.search(t,r,o,a)},"SourceMapConsumer_findMapping");lt.prototype.computeColumnSpans=s(function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}},"SourceMapConsumer_computeColumnSpans");lt.prototype.originalPositionFor=s(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",Te.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var o=U.getArg(i,"source",null);o!==null&&(o=this._sources.at(o),o=U.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var a=U.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:o,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");lt.prototype.hasContentsOfAllSources=s(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");lt.prototype.sourceContentFor=s(function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=U.relative(this.sourceRoot,i));var o;if(this.sourceRoot!=null&&(o=U.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!o.path||o.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");lt.prototype.generatedPositionFor=s(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",Te.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:U.getArg(o,"generatedLine",null),column:U.getArg(o,"generatedColumn",null),lastColumn:U.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");mc.BasicSourceMapConsumer=lt;function br(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 xs,this._names=new xs;var o={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var u=U.getArg(a,"offset"),c=U.getArg(u,"line"),l=U.getArg(u,"column");if(c<o.line||c===o.line&&l<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=u,{generatedOffset:{generatedLine:c+1,generatedColumn:l+1},consumer:new Te(U.getArg(a,"map"),t)}})}s(br,"IndexedSourceMapConsumer");br.prototype=Object.create(Te.prototype);br.prototype.constructor=Te;br.prototype._version=3;Object.defineProperty(br.prototype,"sources",{get:s(function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e},"get")});br.prototype.originalPositionFor=s(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=am.search(r,this._sections,function(o,a){var u=o.generatedLine-a.generatedOffset.generatedLine;return u||o.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}},"IndexedSourceMapConsumer_originalPositionFor");br.prototype.hasContentsOfAllSources=s(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");br.prototype.sourceContentFor=s(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],o=i.consumer.sourceContentFor(t,!0);if(o)return o}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");br.prototype.generatedPositionFor=s(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 o={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return o}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");br.prototype._parseMappings=s(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],o=i.consumer._generatedMappings,a=0;a<o.length;a++){var u=o[a],c=i.consumer._sources.at(u.source);c=U.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var l=null;u.name&&(l=i.consumer._names.at(u.name),this._names.add(l),l=this._names.indexOf(l));var p={source:c,generatedLine:u.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(i.generatedOffset.generatedLine===u.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:l};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}ea(this.__generatedMappings,U.compareByGeneratedPositionsDeflated),ea(this.__originalMappings,U.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");mc.IndexedSourceMapConsumer=br});var jw=b(Rw=>{var P4=nm().SourceMapGenerator,gc=Es(),O4=/(\r?\n)/,E4=10,As="$$$isSourceNode$$$";function Bt(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[As]=!0,n!=null&&this.add(n)}s(Bt,"SourceNode");Bt.fromStringWithSourceMap=s(function(t,r,n){var i=new Bt,o=t.split(O4),a=0,u=s(function(){var d=y(),h=y()||"";return d+h;function y(){return a<o.length?o[a++]:void 0}},"shiftNextLine"),c=1,l=0,p=null;return r.eachMapping(function(d){if(p!==null)if(c<d.generatedLine)f(p,u()),c++,l=0;else{var h=o[a]||"",y=h.substr(0,d.generatedColumn-l);o[a]=h.substr(d.generatedColumn-l),l=d.generatedColumn,f(p,y),p=d;return}for(;c<d.generatedLine;)i.add(u()),c++;if(l<d.generatedColumn){var h=o[a]||"";i.add(h.substr(0,d.generatedColumn)),o[a]=h.substr(d.generatedColumn),l=d.generatedColumn}p=d},this),a<o.length&&(p&&f(p,u()),i.add(o.splice(a).join(""))),r.sources.forEach(function(d){var h=r.sourceContentFor(d);h!=null&&(n!=null&&(d=gc.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?gc.join(n,d.source):d.source;i.add(new Bt(d.originalLine,d.originalColumn,y,h,d.name))}}s(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Bt.prototype.add=s(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[As]||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");Bt.prototype.prepend=s(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[As]||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");Bt.prototype.walk=s(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[As]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Bt.prototype.join=s(function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this},"SourceNode_join");Bt.prototype.replaceRight=s(function(t,r){var n=this.children[this.children.length-1];return n[As]?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");Bt.prototype.setSourceContent=s(function(t,r){this.sourceContents[gc.toSetString(t)]=r},"SourceNode_setSourceContent");Bt.prototype.walkSourceContents=s(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][As]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(gc.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Bt.prototype.toString=s(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Bt.prototype.toStringWithSourceMap=s(function(t){var r={code:"",line:1,column:0},n=new P4(t),i=!1,o=null,a=null,u=null,c=null;return this.walk(function(l,p){r.code+=l,p.source!==null&&p.line!==null&&p.column!==null?((o!==p.source||a!==p.line||u!==p.column||c!==p.name)&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name}),o=p.source,a=p.line,u=p.column,c=p.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),o=null,i=!1);for(var f=0,d=l.length;f<d;f++)l.charCodeAt(f)===E4?(r.line++,r.column=0,f+1===d?(o=null,i=!1):i&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name})):r.column++}),this.walkSourceContents(function(l,p){n.setSourceContent(l,p)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");Rw.SourceNode=Bt});var kw=b(yc=>{yc.SourceMapGenerator=nm().SourceMapGenerator;yc.SourceMapConsumer=Iw().SourceMapConsumer;yc.SourceNode=jw().SourceNode});var qw=b((vc,Tw)=>{"use strict";vc.__esModule=!0;var cm=Pt(),$i=void 0;try{(typeof define!="function"||!define.amd)&&(Nw=kw(),$i=Nw.SourceNode)}catch{}var Nw;$i||($i=s(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),$i.prototype={add:s(function(t){cm.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:s(function(t){cm.isArray(t)&&(t=t.join("")),this.src=t+this.src},"prepend"),toStringWithSourceMap:s(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:s(function(){return this.src},"toString")});function um(e,t,r){if(cm.isArray(e)){for(var n=[],i=0,o=e.length;i<o;i++)n.push(t.wrap(e[i],r));return n}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}s(um,"castChunk");function Mw(e){this.srcFile=e,this.source=[]}s(Mw,"CodeGen");Mw.prototype={isEmpty:s(function(){return!this.source.length},"isEmpty"),prepend:s(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:s(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:s(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
61
- `])}),t},"merge"),each:s(function(t){for(var r=0,n=this.source.length;r<n;r++)t(this.source[r])},"each"),empty:s(function(){var t=this.currentLocation||{start:{}};return new $i(t.start.line,t.start.column,this.srcFile)},"empty"),wrap:s(function(t){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return t instanceof $i?t:(t=um(t,this,r),new $i(r.start.line,r.start.column,this.srcFile,t))},"wrap"),functionCall:s(function(t,r,n){return n=this.generateList(n),this.wrap([t,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:s(function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:s(function(t){var r=this,n=[];Object.keys(t).forEach(function(o){var a=um(t[o],r);a!=="undefined"&&n.push([r.quotedString(o),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:s(function(t){for(var r=this.empty(),n=0,i=t.length;n<i;n++)n&&r.add(","),r.add(um(t[n],this));return r},"generateList"),generateArray:s(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};vc.default=Mw;Tw.exports=vc.default});var Vw=b((bc,Bw)=>{"use strict";bc.__esModule=!0;function Fw(e){return e&&e.__esModule?e:{default:e}}s(Fw,"_interopRequireDefault");var Dw=ec(),x4=tr(),lm=Fw(x4),A4=Pt(),C4=qw(),Lw=Fw(C4);function Cs(e){this.value=e}s(Cs,"Literal");function Is(){}s(Is,"JavaScriptCompiler");Is.prototype={nameLookup:s(function(t,r){return this.internalNameLookup(t,r)},"nameLookup"),depthedLookup:s(function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},"depthedLookup"),compilerInfo:s(function(){var t=Dw.COMPILER_REVISION,r=Dw.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:s(function(t,r,n){return A4.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},"appendToBuffer"),initializeBuffer:s(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:s(function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:s(function(t,r,n,i){this.environment=t,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,r),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var o=t.opcodes,a=void 0,u=void 0,c=void 0,l=void 0;for(c=0,l=o.length;c<l;c++)a=o[c],this.source.currentLocation=a.loc,u=u||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=u,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new lm.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
60
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var o=this.next();return typeof o<"u"?o:this.lex()},"lex"),begin:s(function(o){this.conditionStack.push(o)},"begin"),popState:s(function(){return this.conditionStack.pop()},"popState"),_currentRules:s(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:s(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:s(function(o){this.begin(o)},"begin")};return n.options={},n.performAction=s(function(o,a,u,c){function l(f,d){return a.yytext=a.yytext.substring(f,a.yyleng-d+f)}s(l,"strip");var p=c;switch(u){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();e.lexer=t;function r(){this.yy={}}return s(r,"Parser"),r.prototype=e,e.Parser=r,new r}();ac.default=Tq;ew.exports=ac.default});var fc=b((lc,iw)=>{"use strict";lc.__esModule=!0;function qq(e){return e&&e.__esModule?e:{default:e}}s(qq,"_interopRequireDefault");var Dq=tr(),Uh=qq(Dq);function uc(){this.parents=[]}s(uc,"Visitor");uc.prototype={constructor:uc,mutating:!1,acceptKey:s(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!uc.prototype[n.type])throw new Uh.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+t.type);t[r]=n}},"acceptKey"),acceptRequired:s(function(t,r){if(this.acceptKey(t,r),!t[r])throw new Uh.default(t.type+" requires "+r)},"acceptRequired"),acceptArray:s(function(t){for(var r=0,n=t.length;r<n;r++)this.acceptKey(t,r),t[r]||(t.splice(r,1),r--,n--)},"acceptArray"),accept:s(function(t){if(t){if(!this[t.type])throw new Uh.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var r=this[t.type](t);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return t}},"accept"),Program:s(function(t){this.acceptArray(t.body)},"Program"),MustacheStatement:cc,Decorator:cc,BlockStatement:rw,DecoratorBlock:rw,PartialStatement:nw,PartialBlockStatement:s(function(t){nw.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:s(function(){},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:cc,PathExpression:s(function(){},"PathExpression"),StringLiteral:s(function(){},"StringLiteral"),NumberLiteral:s(function(){},"NumberLiteral"),BooleanLiteral:s(function(){},"BooleanLiteral"),UndefinedLiteral:s(function(){},"UndefinedLiteral"),NullLiteral:s(function(){},"NullLiteral"),Hash:s(function(t){this.acceptArray(t.pairs)},"Hash"),HashPair:s(function(t){this.acceptRequired(t,"value")},"HashPair")};function cc(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(cc,"visitSubExpression");function rw(e){cc.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}s(rw,"visitBlock");function nw(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(nw,"visitPartial");lc.default=uc;iw.exports=lc.default});var ow=b((pc,sw)=>{"use strict";pc.__esModule=!0;function Lq(e){return e&&e.__esModule?e:{default:e}}s(Lq,"_interopRequireDefault");var Fq=fc(),Vq=Lq(Fq);function Lr(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}s(Lr,"WhitespaceControl");Lr.prototype=new Vq.default;Lr.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,o=n.length;i<o;i++){var a=n[i],u=this.accept(a);if(u){var c=zh(n,i,r),l=Gh(n,i,r),p=u.openStandalone&&c,f=u.closeStandalone&&l,d=u.inlineStandalone&&c&&l;u.close&&Si(n,i,!0),u.open&&kn(n,i,!0),t&&d&&(Si(n,i),kn(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(Si((a.program||a.inverse).body),kn(n,i)),t&&f&&(Si(n,i),kn((a.inverse||a.program).body))}}return e};Lr.prototype.BlockStatement=Lr.prototype.DecoratorBlock=Lr.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var o={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:Gh(t.body),closeStandalone:zh((n||t).body)};if(e.openStrip.close&&Si(t.body,null,!0),r){var a=e.inverseStrip;a.open&&kn(t.body,null,!0),a.close&&Si(n.body,null,!0),e.closeStrip.open&&kn(i.body,null,!0),!this.options.ignoreStandalone&&zh(t.body)&&Gh(n.body)&&(kn(t.body),Si(n.body))}else e.closeStrip.open&&kn(t.body,null,!0);return o};Lr.prototype.Decorator=Lr.prototype.MustacheStatement=function(e){return e.strip};Lr.prototype.PartialStatement=Lr.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function zh(e,t,r){t===void 0&&(t=e.length);var n=e[t-1],i=e[t-2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}s(zh,"isPrevWhitespace");function Gh(e,t,r){t===void 0&&(t=-1);var n=e[t+1],i=e[t+2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}s(Gh,"isNextWhitespace");function Si(e,t,r){var n=e[t==null?0:t+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}s(Si,"omitRight");function kn(e,t,r){var n=e[t==null?e.length-1:t-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}s(kn,"omitLeft");pc.default=Lr;sw.exports=pc.default});var aw=b(rr=>{"use strict";rr.__esModule=!0;rr.SourceLocation=Uq;rr.id=zq;rr.stripFlags=Gq;rr.stripComment=Wq;rr.preparePath=Kq;rr.prepareMustache=Zq;rr.prepareRawBlock=Yq;rr.prepareBlock=Jq;rr.prepareProgram=Qq;rr.preparePartialBlock=Xq;function Bq(e){return e&&e.__esModule?e:{default:e}}s(Bq,"_interopRequireDefault");var Hq=tr(),Wh=Bq(Hq);function Kh(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new Wh.default(e.path.original+" doesn't match "+t,r)}}s(Kh,"validateClose");function Uq(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}s(Uq,"SourceLocation");function zq(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}s(zq,"id");function Gq(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}s(Gq,"stripFlags");function Wq(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}s(Wq,"stripComment");function Kq(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],o=0,a=0,u=t.length;a<u;a++){var c=t[a].part,l=t[a].original!==c;if(n+=(t[a].separator||"")+c,!l&&(c===".."||c==="."||c==="this")){if(i.length>0)throw new Wh.default("Invalid path: "+n,{loc:r});c===".."&&o++}else i.push(c)}return{type:"PathExpression",data:e,depth:o,parts:i,original:n,loc:r}}s(Kq,"preparePath");function Zq(e,t,r,n,i,o){var a=n.charAt(3)||n.charAt(2),u=a!=="{"&&a!=="&",c=/\*/.test(n);return{type:c?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:u,strip:i,loc:this.locInfo(o)}}s(Zq,"prepareMustache");function Yq(e,t,r,n){Kh(e,r),n=this.locInfo(n);var i={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}s(Yq,"prepareRawBlock");function Jq(e,t,r,n,i,o){n&&n.path&&Kh(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var u=void 0,c=void 0;if(r){if(a)throw new Wh.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),c=r.strip,u=r.program}return i&&(i=u,u=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:u,openStrip:e.strip,inverseStrip:c,closeStrip:n&&n.strip,loc:this.locInfo(o)}}s(Jq,"prepareBlock");function Qq(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}s(Qq,"prepareProgram");function Xq(e,t,r,n){return Kh(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}s(Xq,"preparePartialBlock")});var lw=b(Ko=>{"use strict";Ko.__esModule=!0;Ko.parseWithoutProcessing=cw;Ko.parse=a4;function e4(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}s(e4,"_interopRequireWildcard");function uw(e){return e&&e.__esModule?e:{default:e}}s(uw,"_interopRequireDefault");var t4=tw(),Zh=uw(t4),r4=ow(),n4=uw(r4),i4=aw(),s4=e4(i4),o4=Ot();Ko.parser=Zh.default;var dc={};o4.extend(dc,s4);function cw(e,t){if(e.type==="Program")return e;Zh.default.yy=dc,dc.locInfo=function(n){return new dc.SourceLocation(t&&t.srcName,n)};var r=Zh.default.parse(e);return r}s(cw,"parseWithoutProcessing");function a4(e,t){var r=cw(e,t),n=new n4.default(t);return n.accept(r)}s(a4,"parse")});var hw=b(Qo=>{"use strict";Qo.__esModule=!0;Qo.Compiler=Yh;Qo.precompile=f4;Qo.compile=p4;function pw(e){return e&&e.__esModule?e:{default:e}}s(pw,"_interopRequireDefault");var u4=tr(),Yo=pw(u4),Jo=Ot(),c4=Hh(),Zo=pw(c4),l4=[].slice;function Yh(){}s(Yh,"Compiler");Yh.prototype={compiler:Yh,equals:s(function(t){var r=this.opcodes.length;if(t.opcodes.length!==r)return!1;for(var n=0;n<r;n++){var i=this.opcodes[n],o=t.opcodes[n];if(i.opcode!==o.opcode||!dw(i.args,o.args))return!1}r=this.children.length;for(var n=0;n<r;n++)if(!this.children[n].equals(t.children[n]))return!1;return!0},"equals"),guid:0,compile:s(function(t,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=Jo.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(t)},"compile"),compileProgram:s(function(t){var r=new this.compiler,n=r.compile(t,this.options),i=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[i]=n,this.useDepths=this.useDepths||n.useDepths,i},"compileProgram"),accept:s(function(t){if(!this[t.type])throw new Yo.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},"accept"),Program:s(function(t){this.options.blockParams.unshift(t.blockParams);for(var r=t.body,n=r.length,i=0;i<n;i++)this.accept(r[i]);return this.options.blockParams.shift(),this.isSimple=n===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},"Program"),BlockStatement:s(function(t){fw(t);var r=t.program,n=t.inverse;r=r&&this.compileProgram(r),n=n&&this.compileProgram(n);var i=this.classifySexpr(t);i==="helper"?this.helperSexpr(t,r,n):i==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,r,n),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},"BlockStatement"),DecoratorBlock:s(function(t){var r=t.program&&this.compileProgram(t.program),n=this.setupFullMustacheParams(t,r,void 0),i=t.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,i.original)},"DecoratorBlock"),PartialStatement:s(function(t){this.usePartial=!0;var r=t.program;r&&(r=this.compileProgram(t.program));var n=t.params;if(n.length>1)throw new Yo.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=t.name.original,o=t.name.type==="SubExpression";o&&this.accept(t.name),this.setupFullMustacheParams(t,r,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",o,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:s(function(t){this.PartialStatement(t)},"PartialBlockStatement"),MustacheStatement:s(function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:s(function(t){this.DecoratorBlock(t)},"Decorator"),ContentStatement:s(function(t){t.value&&this.opcode("appendContent",t.value)},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:s(function(t){fw(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},"SubExpression"),ambiguousSexpr:s(function(t,r,n){var i=t.path,o=i.parts[0],a=r!=null||n!=null;this.opcode("getContext",i.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",o,a)},"ambiguousSexpr"),simpleSexpr:s(function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:s(function(t,r,n){var i=this.setupFullMustacheParams(t,r,n),o=t.path,a=o.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new Yo.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",i.length,o.original,Zo.default.helpers.simpleId(o))}},"helperSexpr"),PathExpression:s(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=Zo.default.helpers.scopedId(t),i=!t.depth&&!n&&this.blockParamIndex(r);i?this.opcode("lookupBlockParam",i,t.parts):r?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},"PathExpression"),StringLiteral:s(function(t){this.opcode("pushString",t.value)},"StringLiteral"),NumberLiteral:s(function(t){this.opcode("pushLiteral",t.value)},"NumberLiteral"),BooleanLiteral:s(function(t){this.opcode("pushLiteral",t.value)},"BooleanLiteral"),UndefinedLiteral:s(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:s(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:s(function(t){var r=t.pairs,n=0,i=r.length;for(this.opcode("pushHash");n<i;n++)this.pushParam(r[n].value);for(;n--;)this.opcode("assignToHash",r[n].key);this.opcode("popHash")},"Hash"),opcode:s(function(t){this.opcodes.push({opcode:t,args:l4.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:s(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:s(function(t){var r=Zo.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&Zo.default.helpers.helperExpression(t),o=!n&&(i||r);if(o&&!i){var a=t.path.parts[0],u=this.options;u.knownHelpers[a]?i=!0:u.knownHelpersOnly&&(o=!1)}return i?"helper":o?"ambiguous":"simple"},"classifySexpr"),pushParams:s(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:s(function(t){var r=t.value!=null?t.value:t.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",r,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var n=void 0;if(t.parts&&!Zo.default.helpers.scopedId(t)&&!t.depth&&(n=this.blockParamIndex(t.parts[0])),n){var i=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,i)}else r=t.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,r)}this.accept(t)}},"pushParam"),setupFullMustacheParams:s(function(t,r,n,i){var o=t.params;return this.pushParams(o),this.opcode("pushProgram",r),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),o},"setupFullMustacheParams"),blockParamIndex:s(function(t){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],o=i&&Jo.indexOf(i,t);if(i&&o>=0)return[r,o]}},"blockParamIndex")};function f4(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Yo.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=r.parse(e,t),i=new r.Compiler().compile(n,t);return new r.JavaScriptCompiler().compile(i,t)}s(f4,"precompile");function p4(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Yo.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=Jo.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function i(){var a=r.parse(e,t),u=new r.Compiler().compile(a,t),c=new r.JavaScriptCompiler().compile(u,t,void 0,!0);return r.template(c)}s(i,"compileInput");function o(a,u){return n||(n=i()),n.call(this,a,u)}return s(o,"ret"),o._setup=function(a){return n||(n=i()),n._setup(a)},o._child=function(a,u,c,l){return n||(n=i()),n._child(a,u,c,l)},o}s(p4,"compile");function dw(e,t){if(e===t)return!0;if(Jo.isArray(e)&&Jo.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!dw(e[r],t[r]))return!1;return!0}}s(dw,"argEquals");function fw(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}s(fw,"transformLiteralToPath")});var gw=b(Jh=>{var mw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Jh.encode=function(e){if(0<=e&&e<mw.length)return mw[e];throw new TypeError("Must be between 0 and 63: "+e)};Jh.decode=function(e){var t=65,r=90,n=97,i=122,o=48,a=57,u=43,c=47,l=26,p=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:o<=e&&e<=a?e-o+p:e==u?62:e==c?63:-1}});var em=b(Xh=>{var yw=gw(),Qh=5,vw=1<<Qh,bw=vw-1,_w=vw;function d4(e){return e<0?(-e<<1)+1:(e<<1)+0}s(d4,"toVLQSigned");function h4(e){var t=(e&1)===1,r=e>>1;return t?-r:r}s(h4,"fromVLQSigned");Xh.encode=s(function(t){var r="",n,i=d4(t);do n=i&bw,i>>>=Qh,i>0&&(n|=_w),r+=yw.encode(n);while(i>0);return r},"base64VLQ_encode");Xh.decode=s(function(t,r,n){var i=t.length,o=0,a=0,u,c;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=yw.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));u=!!(c&_w),c&=bw,o=o+(c<<a),a+=Qh}while(u);n.value=h4(o),n.rest=r},"base64VLQ_decode")});var Es=b(gt=>{function m4(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}s(m4,"getArg");gt.getArg=m4;var Sw=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,g4=/^data:.+\,.+$/;function Xo(e){var t=e.match(Sw);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}s(Xo,"urlParse");gt.urlParse=Xo;function Os(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}s(Os,"urlGenerate");gt.urlGenerate=Os;function tm(e){var t=e,r=Xo(e);if(r){if(!r.path)return e;t=r.path}for(var n=gt.isAbsolute(t),i=t.split(/\/+/),o,a=0,u=i.length-1;u>=0;u--)o=i[u],o==="."?i.splice(u,1):o===".."?a++:a>0&&(o===""?(i.splice(u+1,a),a=0):(i.splice(u,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Os(r)):t}s(tm,"normalize");gt.normalize=tm;function ww(e,t){e===""&&(e="."),t===""&&(t=".");var r=Xo(t),n=Xo(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Os(r);if(r||t.match(g4))return t;if(n&&!n.host&&!n.path)return n.host=t,Os(n);var i=t.charAt(0)==="/"?t:tm(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Os(n)):i}s(ww,"join");gt.join=ww;gt.isAbsolute=function(e){return e.charAt(0)==="/"||Sw.test(e)};function y4(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}s(y4,"relative");gt.relative=y4;var $w=function(){var e=Object.create(null);return!("__proto__"in e)}();function Pw(e){return e}s(Pw,"identity");function v4(e){return Ow(e)?"$"+e:e}s(v4,"toSetString");gt.toSetString=$w?Pw:v4;function b4(e){return Ow(e)?e.slice(1):e}s(b4,"fromSetString");gt.fromSetString=$w?Pw:b4;function Ow(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}s(Ow,"isProtoString");function _4(e,t,r){var n=xs(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:xs(e.name,t.name)}s(_4,"compareByOriginalPositions");gt.compareByOriginalPositions=_4;function S4(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=xs(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:xs(e.name,t.name)}s(S4,"compareByGeneratedPositionsDeflated");gt.compareByGeneratedPositionsDeflated=S4;function xs(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}s(xs,"strcmp");function w4(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=xs(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:xs(e.name,t.name)}s(w4,"compareByGeneratedPositionsInflated");gt.compareByGeneratedPositionsInflated=w4;function $4(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}s($4,"parseSourceMapInput");gt.parseSourceMapInput=$4;function P4(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=Xo(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=ww(Os(n),t)}return tm(t)}s(P4,"computeSourceURL");gt.computeSourceURL=P4});var im=b(xw=>{var rm=Es(),nm=Object.prototype.hasOwnProperty,wi=typeof Map<"u";function en(){this._array=[],this._set=wi?new Map:Object.create(null)}s(en,"ArraySet");en.fromArray=s(function(t,r){for(var n=new en,i=0,o=t.length;i<o;i++)n.add(t[i],r);return n},"ArraySet_fromArray");en.prototype.size=s(function(){return wi?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");en.prototype.add=s(function(t,r){var n=wi?t:rm.toSetString(t),i=wi?this.has(t):nm.call(this._set,n),o=this._array.length;(!i||r)&&this._array.push(t),i||(wi?this._set.set(t,o):this._set[n]=o)},"ArraySet_add");en.prototype.has=s(function(t){if(wi)return this._set.has(t);var r=rm.toSetString(t);return nm.call(this._set,r)},"ArraySet_has");en.prototype.indexOf=s(function(t){if(wi){var r=this._set.get(t);if(r>=0)return r}else{var n=rm.toSetString(t);if(nm.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");en.prototype.at=s(function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)},"ArraySet_at");en.prototype.toArray=s(function(){return this._array.slice()},"ArraySet_toArray");xw.ArraySet=en});var Cw=b(Aw=>{var Ew=Es();function O4(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,o=t.generatedColumn;return n>r||n==r&&o>=i||Ew.compareByGeneratedPositionsInflated(e,t)<=0}s(O4,"generatedPositionAfter");function hc(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}s(hc,"MappingList");hc.prototype.unsortedForEach=s(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");hc.prototype.add=s(function(t){O4(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");hc.prototype.toArray=s(function(){return this._sorted||(this._array.sort(Ew.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");Aw.MappingList=hc});var sm=b(Iw=>{var ea=em(),Xe=Es(),mc=im().ArraySet,x4=Cw().MappingList;function nr(e){e||(e={}),this._file=Xe.getArg(e,"file",null),this._sourceRoot=Xe.getArg(e,"sourceRoot",null),this._skipValidation=Xe.getArg(e,"skipValidation",!1),this._sources=new mc,this._names=new mc,this._mappings=new x4,this._sourcesContents=null}s(nr,"SourceMapGenerator");nr.prototype._version=3;nr.fromSourceMap=s(function(t){var r=t.sourceRoot,n=new nr({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var o={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(o.source=i.source,r!=null&&(o.source=Xe.relative(r,o.source)),o.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(o.name=i.name)),n.addMapping(o)}),t.sources.forEach(function(i){var o=i;r!==null&&(o=Xe.relative(r,i)),n._sources.has(o)||n._sources.add(o);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");nr.prototype.addMapping=s(function(t){var r=Xe.getArg(t,"generated"),n=Xe.getArg(t,"original",null),i=Xe.getArg(t,"source",null),o=Xe.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,o),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:o})},"SourceMapGenerator_addMapping");nr.prototype.setSourceContent=s(function(t,r){var n=t;this._sourceRoot!=null&&(n=Xe.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Xe.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Xe.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");nr.prototype.applySourceMap=s(function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var o=this._sourceRoot;o!=null&&(i=Xe.relative(o,i));var a=new mc,u=new mc;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var l=t.originalPositionFor({line:c.originalLine,column:c.originalColumn});l.source!=null&&(c.source=l.source,n!=null&&(c.source=Xe.join(n,c.source)),o!=null&&(c.source=Xe.relative(o,c.source)),c.originalLine=l.line,c.originalColumn=l.column,l.name!=null&&(c.name=l.name))}var p=c.source;p!=null&&!a.has(p)&&a.add(p);var f=c.name;f!=null&&!u.has(f)&&u.add(f)},this),this._sources=a,this._names=u,t.sources.forEach(function(c){var l=t.sourceContentFor(c);l!=null&&(n!=null&&(c=Xe.join(n,c)),o!=null&&(c=Xe.relative(o,c)),this.setSourceContent(c,l))},this)},"SourceMapGenerator_applySourceMap");nr.prototype._validateMapping=s(function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}},"SourceMapGenerator_validateMapping");nr.prototype._serializeMappings=s(function(){for(var t=0,r=1,n=0,i=0,o=0,a=0,u="",c,l,p,f,d=this._mappings.toArray(),h=0,y=d.length;h<y;h++){if(l=d[h],c="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)c+=";",r++;else if(h>0){if(!Xe.compareByGeneratedPositionsInflated(l,d[h-1]))continue;c+=","}c+=ea.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),c+=ea.encode(f-a),a=f,c+=ea.encode(l.originalLine-1-i),i=l.originalLine-1,c+=ea.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),c+=ea.encode(p-o),o=p)),u+=c}return u},"SourceMapGenerator_serializeMappings");nr.prototype._generateSourcesContent=s(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Xe.relative(r,n));var i=Xe.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");nr.prototype.toJSON=s(function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},"SourceMapGenerator_toJSON");nr.prototype.toString=s(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");Iw.SourceMapGenerator=nr});var Rw=b($i=>{$i.GREATEST_LOWER_BOUND=1;$i.LEAST_UPPER_BOUND=2;function om(e,t,r,n,i,o){var a=Math.floor((t-e)/2)+e,u=i(r,n[a],!0);return u===0?a:u>0?t-a>1?om(a,t,r,n,i,o):o==$i.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?om(e,a,r,n,i,o):o==$i.LEAST_UPPER_BOUND?a:e<0?-1:e}s(om,"recursiveSearch");$i.search=s(function(t,r,n,i){if(r.length===0)return-1;var o=om(-1,r.length,t,r,n,i||$i.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&n(r[o],r[o-1],!0)===0;)--o;return o},"search")});var kw=b(jw=>{function am(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}s(am,"swap");function E4(e,t){return Math.round(e+Math.random()*(t-e))}s(E4,"randomIntInRange");function um(e,t,r,n){if(r<n){var i=E4(r,n),o=r-1;am(e,i,n);for(var a=e[n],u=r;u<n;u++)t(e[u],a)<=0&&(o+=1,am(e,o,u));am(e,o+1,u);var c=o+1;um(e,t,r,c-1),um(e,t,c+1,n)}}s(um,"doQuickSort");jw.quickSort=function(e,t){um(e,t,0,e.length-1)}});var Mw=b(gc=>{var U=Es(),cm=Rw(),As=im().ArraySet,A4=em(),ta=kw().quickSort;function Te(e,t){var r=e;return typeof e=="string"&&(r=U.parseSourceMapInput(e)),r.sections!=null?new br(r,t):new lt(r,t)}s(Te,"SourceMapConsumer");Te.fromSourceMap=function(e,t){return lt.fromSourceMap(e,t)};Te.prototype._version=3;Te.prototype.__generatedMappings=null;Object.defineProperty(Te.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:s(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});Te.prototype.__originalMappings=null;Object.defineProperty(Te.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:s(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});Te.prototype._charIsMappingSeparator=s(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");Te.prototype._parseMappings=s(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");Te.GENERATED_ORDER=1;Te.ORIGINAL_ORDER=2;Te.GREATEST_LOWER_BOUND=1;Te.LEAST_UPPER_BOUND=2;Te.prototype.eachMapping=s(function(t,r,n){var i=r||null,o=n||Te.GENERATED_ORDER,a;switch(o){case Te.GENERATED_ORDER:a=this._generatedMappings;break;case Te.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var u=this.sourceRoot;a.map(function(c){var l=c.source===null?null:this._sources.at(c.source);return l=U.computeSourceURL(u,l,this._sourceMapURL),{source:l,generatedLine:c.generatedLine,generatedColumn:c.generatedColumn,originalLine:c.originalLine,originalColumn:c.originalColumn,name:c.name===null?null:this._names.at(c.name)}},this).forEach(t,i)},"SourceMapConsumer_eachMapping");Te.prototype.allGeneratedPositionsFor=s(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=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",U.compareByOriginalPositions,cm.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(t.column===void 0)for(var u=a.originalLine;a&&a.originalLine===u;)i.push({line:U.getArg(a,"generatedLine",null),column:U.getArg(a,"generatedColumn",null),lastColumn:U.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o];else for(var c=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==c;)i.push({line:U.getArg(a,"generatedLine",null),column:U.getArg(a,"generatedColumn",null),lastColumn:U.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o]}return i},"SourceMapConsumer_allGeneratedPositionsFor");gc.SourceMapConsumer=Te;function lt(e,t){var r=e;typeof e=="string"&&(r=U.parseSourceMapInput(e));var n=U.getArg(r,"version"),i=U.getArg(r,"sources"),o=U.getArg(r,"names",[]),a=U.getArg(r,"sourceRoot",null),u=U.getArg(r,"sourcesContent",null),c=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=As.fromArray(o.map(String),!0),this._sources=As.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(p){return U.computeSourceURL(a,p,t)}),this.sourceRoot=a,this.sourcesContent=u,this._mappings=c,this._sourceMapURL=t,this.file=l}s(lt,"BasicSourceMapConsumer");lt.prototype=Object.create(Te.prototype);lt.prototype.consumer=Te;lt.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};lt.fromSourceMap=s(function(t,r){var n=Object.create(lt.prototype),i=n._names=As.fromArray(t._names.toArray(),!0),o=n._sources=As.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(),u=n.__generatedMappings=[],c=n.__originalMappings=[],l=0,p=a.length;l<p;l++){var f=a[l],d=new Nw;d.generatedLine=f.generatedLine,d.generatedColumn=f.generatedColumn,f.source&&(d.source=o.indexOf(f.source),d.originalLine=f.originalLine,d.originalColumn=f.originalColumn,f.name&&(d.name=i.indexOf(f.name)),c.push(d)),u.push(d)}return ta(n.__originalMappings,U.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");lt.prototype._version=3;Object.defineProperty(lt.prototype,"sources",{get:s(function(){return this._absoluteSources.slice()},"get")});function Nw(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s(Nw,"Mapping");lt.prototype._parseMappings=s(function(t,r){for(var n=1,i=0,o=0,a=0,u=0,c=0,l=t.length,p=0,f={},d={},h=[],y=[],v,g,$,A,k;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(v=new Nw,v.generatedLine=n,A=p;A<l&&!this._charIsMappingSeparator(t,A);A++);if(g=t.slice(p,A),$=f[g],$)p+=g.length;else{for($=[];p<A;)A4.decode(t,p,d),k=d.value,p=d.rest,$.push(k);if($.length===2)throw new Error("Found a source, but no line and column");if($.length===3)throw new Error("Found a source and line, but no column");f[g]=$}v.generatedColumn=i+$[0],i=v.generatedColumn,$.length>1&&(v.source=u+$[1],u+=$[1],v.originalLine=o+$[2],o=v.originalLine,v.originalLine+=1,v.originalColumn=a+$[3],a=v.originalColumn,$.length>4&&(v.name=c+$[4],c+=$[4])),y.push(v),typeof v.originalLine=="number"&&h.push(v)}ta(y,U.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,ta(h,U.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");lt.prototype._findMapping=s(function(t,r,n,i,o,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return cm.search(t,r,o,a)},"SourceMapConsumer_findMapping");lt.prototype.computeColumnSpans=s(function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}},"SourceMapConsumer_computeColumnSpans");lt.prototype.originalPositionFor=s(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",Te.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var o=U.getArg(i,"source",null);o!==null&&(o=this._sources.at(o),o=U.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var a=U.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:o,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");lt.prototype.hasContentsOfAllSources=s(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");lt.prototype.sourceContentFor=s(function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=U.relative(this.sourceRoot,i));var o;if(this.sourceRoot!=null&&(o=U.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!o.path||o.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");lt.prototype.generatedPositionFor=s(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",Te.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:U.getArg(o,"generatedLine",null),column:U.getArg(o,"generatedColumn",null),lastColumn:U.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");gc.BasicSourceMapConsumer=lt;function br(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 As,this._names=new As;var o={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var u=U.getArg(a,"offset"),c=U.getArg(u,"line"),l=U.getArg(u,"column");if(c<o.line||c===o.line&&l<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=u,{generatedOffset:{generatedLine:c+1,generatedColumn:l+1},consumer:new Te(U.getArg(a,"map"),t)}})}s(br,"IndexedSourceMapConsumer");br.prototype=Object.create(Te.prototype);br.prototype.constructor=Te;br.prototype._version=3;Object.defineProperty(br.prototype,"sources",{get:s(function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e},"get")});br.prototype.originalPositionFor=s(function(t){var r={generatedLine:U.getArg(t,"line"),generatedColumn:U.getArg(t,"column")},n=cm.search(r,this._sections,function(o,a){var u=o.generatedLine-a.generatedOffset.generatedLine;return u||o.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}},"IndexedSourceMapConsumer_originalPositionFor");br.prototype.hasContentsOfAllSources=s(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");br.prototype.sourceContentFor=s(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],o=i.consumer.sourceContentFor(t,!0);if(o)return o}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");br.prototype.generatedPositionFor=s(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 o={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return o}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");br.prototype._parseMappings=s(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],o=i.consumer._generatedMappings,a=0;a<o.length;a++){var u=o[a],c=i.consumer._sources.at(u.source);c=U.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var l=null;u.name&&(l=i.consumer._names.at(u.name),this._names.add(l),l=this._names.indexOf(l));var p={source:c,generatedLine:u.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(i.generatedOffset.generatedLine===u.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:l};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}ta(this.__generatedMappings,U.compareByGeneratedPositionsDeflated),ta(this.__originalMappings,U.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");gc.IndexedSourceMapConsumer=br});var qw=b(Tw=>{var C4=sm().SourceMapGenerator,yc=Es(),I4=/(\r?\n)/,R4=10,Cs="$$$isSourceNode$$$";function Vt(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[Cs]=!0,n!=null&&this.add(n)}s(Vt,"SourceNode");Vt.fromStringWithSourceMap=s(function(t,r,n){var i=new Vt,o=t.split(I4),a=0,u=s(function(){var d=y(),h=y()||"";return d+h;function y(){return a<o.length?o[a++]:void 0}},"shiftNextLine"),c=1,l=0,p=null;return r.eachMapping(function(d){if(p!==null)if(c<d.generatedLine)f(p,u()),c++,l=0;else{var h=o[a]||"",y=h.substr(0,d.generatedColumn-l);o[a]=h.substr(d.generatedColumn-l),l=d.generatedColumn,f(p,y),p=d;return}for(;c<d.generatedLine;)i.add(u()),c++;if(l<d.generatedColumn){var h=o[a]||"";i.add(h.substr(0,d.generatedColumn)),o[a]=h.substr(d.generatedColumn),l=d.generatedColumn}p=d},this),a<o.length&&(p&&f(p,u()),i.add(o.splice(a).join(""))),r.sources.forEach(function(d){var h=r.sourceContentFor(d);h!=null&&(n!=null&&(d=yc.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?yc.join(n,d.source):d.source;i.add(new Vt(d.originalLine,d.originalColumn,y,h,d.name))}}s(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Vt.prototype.add=s(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Cs]||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");Vt.prototype.prepend=s(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Cs]||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");Vt.prototype.walk=s(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Cs]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Vt.prototype.join=s(function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this},"SourceNode_join");Vt.prototype.replaceRight=s(function(t,r){var n=this.children[this.children.length-1];return n[Cs]?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");Vt.prototype.setSourceContent=s(function(t,r){this.sourceContents[yc.toSetString(t)]=r},"SourceNode_setSourceContent");Vt.prototype.walkSourceContents=s(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Cs]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(yc.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Vt.prototype.toString=s(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Vt.prototype.toStringWithSourceMap=s(function(t){var r={code:"",line:1,column:0},n=new C4(t),i=!1,o=null,a=null,u=null,c=null;return this.walk(function(l,p){r.code+=l,p.source!==null&&p.line!==null&&p.column!==null?((o!==p.source||a!==p.line||u!==p.column||c!==p.name)&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name}),o=p.source,a=p.line,u=p.column,c=p.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),o=null,i=!1);for(var f=0,d=l.length;f<d;f++)l.charCodeAt(f)===R4?(r.line++,r.column=0,f+1===d?(o=null,i=!1):i&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name})):r.column++}),this.walkSourceContents(function(l,p){n.setSourceContent(l,p)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");Tw.SourceNode=Vt});var Dw=b(vc=>{vc.SourceMapGenerator=sm().SourceMapGenerator;vc.SourceMapConsumer=Mw().SourceMapConsumer;vc.SourceNode=qw().SourceNode});var Bw=b((bc,Vw)=>{"use strict";bc.__esModule=!0;var fm=Ot(),Pi=void 0;try{(typeof define!="function"||!define.amd)&&(Lw=Dw(),Pi=Lw.SourceNode)}catch{}var Lw;Pi||(Pi=s(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),Pi.prototype={add:s(function(t){fm.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:s(function(t){fm.isArray(t)&&(t=t.join("")),this.src=t+this.src},"prepend"),toStringWithSourceMap:s(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:s(function(){return this.src},"toString")});function lm(e,t,r){if(fm.isArray(e)){for(var n=[],i=0,o=e.length;i<o;i++)n.push(t.wrap(e[i],r));return n}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}s(lm,"castChunk");function Fw(e){this.srcFile=e,this.source=[]}s(Fw,"CodeGen");Fw.prototype={isEmpty:s(function(){return!this.source.length},"isEmpty"),prepend:s(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:s(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:s(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
61
+ `])}),t},"merge"),each:s(function(t){for(var r=0,n=this.source.length;r<n;r++)t(this.source[r])},"each"),empty:s(function(){var t=this.currentLocation||{start:{}};return new Pi(t.start.line,t.start.column,this.srcFile)},"empty"),wrap:s(function(t){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return t instanceof Pi?t:(t=lm(t,this,r),new Pi(r.start.line,r.start.column,this.srcFile,t))},"wrap"),functionCall:s(function(t,r,n){return n=this.generateList(n),this.wrap([t,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:s(function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:s(function(t){var r=this,n=[];Object.keys(t).forEach(function(o){var a=lm(t[o],r);a!=="undefined"&&n.push([r.quotedString(o),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:s(function(t){for(var r=this.empty(),n=0,i=t.length;n<i;n++)n&&r.add(","),r.add(lm(t[n],this));return r},"generateList"),generateArray:s(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};bc.default=Fw;Vw.exports=bc.default});var Ww=b((_c,Gw)=>{"use strict";_c.__esModule=!0;function zw(e){return e&&e.__esModule?e:{default:e}}s(zw,"_interopRequireDefault");var Hw=tc(),j4=tr(),pm=zw(j4),k4=Ot(),N4=Bw(),Uw=zw(N4);function Is(e){this.value=e}s(Is,"Literal");function Rs(){}s(Rs,"JavaScriptCompiler");Rs.prototype={nameLookup:s(function(t,r){return this.internalNameLookup(t,r)},"nameLookup"),depthedLookup:s(function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},"depthedLookup"),compilerInfo:s(function(){var t=Hw.COMPILER_REVISION,r=Hw.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:s(function(t,r,n){return k4.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},"appendToBuffer"),initializeBuffer:s(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:s(function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:s(function(t,r,n,i){this.environment=t,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,r),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var o=t.opcodes,a=void 0,u=void 0,c=void 0,l=void 0;for(c=0,l=o.length;c<l;c++)a=o[c],this.source.currentLocation=a.loc,u=u||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=u,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new pm.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(),`;
62
62
  `]),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) {
63
63
  `),this.decorators.push(`}
64
- `),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(c=0,l=h.length;c<l;c++)h[c]&&(f[c]=h[c],y[c]&&(f[c+"_d"]=y[c],f.useDecorators=!0));return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),i?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},"compile"),preamble:s(function(){this.lastContext=0,this.source=new Lw.default(this.options.srcName),this.decorators=new Lw.default(this.options.srcName)},"preamble"),createFunctionContext:s(function(t){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var o=0;Object.keys(this.aliases).forEach(function(c){var l=r.aliases[c];l.children&&l.referenceCount>1&&(n+=", alias"+ ++o+"="+c,l.children[0]="alias"+o)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var u=this.mergeSource(n);return t?(a.push(u),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
64
+ `),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(c=0,l=h.length;c<l;c++)h[c]&&(f[c]=h[c],y[c]&&(f[c+"_d"]=y[c],f.useDecorators=!0));return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),i?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},"compile"),preamble:s(function(){this.lastContext=0,this.source=new Uw.default(this.options.srcName),this.decorators=new Uw.default(this.options.srcName)},"preamble"),createFunctionContext:s(function(t){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var o=0;Object.keys(this.aliases).forEach(function(c){var l=r.aliases[c];l.children&&l.referenceCount>1&&(n+=", alias"+ ++o+"="+c,l.children[0]="alias"+o)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var u=this.mergeSource(n);return t?(a.push(u),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
65
65
  `,u,"}"])},"createFunctionContext"),mergeSource:s(function(t){var r=this.environment.isSimple,n=!this.forceBuffer,i=void 0,o=void 0,a=void 0,u=void 0;return this.source.each(function(c){c.appendToBuffer?(a?c.prepend(" + "):a=c,u=c):(a&&(o?a.prepend("buffer += "):i=!0,u.add(";"),a=u=void 0),o=!0,r||(n=!1))}),n?a?(a.prepend("return "),u.add(";")):o||this.source.push('return "";'):(t+=", buffer = "+(i?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),u.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(i?"":`;
66
66
  `)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:s(function(){return`
67
67
  lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -70,17 +70,17 @@ Expecting `+Z.join(", ")+", got '"+(this.terminals_[A]||A)+"'":ce="Parse error o
70
70
  }
71
71
  return undefined
72
72
  }
73
- `.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:s(function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:s(function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",r),"}"])},"ambiguousBlockValue"),appendContent:s(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:s(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:s(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:s(function(t){this.lastContext=t},"getContext"),pushContext:s(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:s(function(t,r,n,i){var o=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[o++])):this.pushContext(),this.resolvePath("context",t,o,r,n)},"lookupOnContext"),lookupBlockParam:s(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:s(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:s(function(t,r,n,i,o){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(I4(this.options.strict&&o,this,r,n,t));return}for(var u=r.length;n<u;n++)this.replaceStack(function(c){var l=a.nameLookup(c,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",c]})},"resolvePath"),resolvePossibleLambda:s(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:s(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:s(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:s(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:s(function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},"popHash"),pushString:s(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:s(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:s(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:s(function(t,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,t);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:s(function(t,r,n){var i=this.popStack(),o=this.setupHelper(t,r),a=[];n&&a.push(o.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var u=["(",this.itemsSeparatedBy(a,"||"),")"],c=this.source.functionCall(u,"call",o.callParams);this.push(c)},"invokeHelper"),itemsSeparatedBy:s(function(t,r){var n=[];n.push(t[0]);for(var i=1;i<t.length;i++)n.push(r,t[i]);return n},"itemsSeparatedBy"),invokeKnownHelper:s(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:s(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),o=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",o," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:s(function(t,r,n){var i=[],o=this.setupParams(r,1,i);t&&(r=this.popStack(),delete o.name),n&&(o.indent=JSON.stringify(n)),o.helpers="helpers",o.partials="partials",o.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(o.depths="depths"),o=this.objectLiteral(o),i.push(o),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:s(function(t){var r=this.popStack(),n=void 0,i=void 0,o=void 0;this.trackIds&&(o=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),o&&(a.ids[t]=o),a.values[t]=r},"assignToHash"),pushId:s(function(t,r,n){t==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):t==="PathExpression"?this.pushString(r):t==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:Is,compileChildren:s(function(t,r){for(var n=t.children,i=void 0,o=void 0,a=0,u=n.length;a<u;a++){i=n[a],o=new this.compiler;var c=this.matchExistingProgram(i);if(c==null){this.context.programs.push("");var l=this.context.programs.length;i.index=l,i.name="program"+l,this.context.programs[l]=o.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=o.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=c.index,i.name="program"+c.index,this.useDepths=this.useDepths||c.useDepths,this.useBlockParams=this.useBlockParams||c.useBlockParams}},"compileChildren"),matchExistingProgram:s(function(t){for(var r=0,n=this.context.environments.length;r<n;r++){var i=this.context.environments[r];if(i&&i.equals(t))return i}},"matchExistingProgram"),programExpression:s(function(t){var r=this.environment.children[t],n=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},"programExpression"),useRegister:s(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:s(function(t){return t instanceof Cs||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:s(function(t){this.push(new Cs(t))},"pushStackLiteral"),pushSource:s(function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},"pushSource"),replaceStack:s(function(t){var r=["("],n=void 0,i=void 0,o=void 0;if(!this.isInline())throw new lm.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof Cs)n=[a.value],r=["(",n],o=!0;else{i=!0;var u=this.incrStack();r=["((",this.push(u)," = ",a,")"],n=this.topStack()}var c=t.call(this,n);o||this.popStack(),i&&this.stackSlot--,this.push(r.concat(c,")"))},"replaceStack"),incrStack:s(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:s(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:s(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof Cs)this.compileStack.push(i);else{var o=this.incrStack();this.pushSource([o," = ",i,";"]),this.compileStack.push(o)}}},"flushInline"),isInline:s(function(){return this.inlineStack.length},"isInline"),popStack:s(function(t){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof Cs)return n.value;if(!r){if(!this.stackSlot)throw new lm.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:s(function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof Cs?r.value:r},"topStack"),contextName:s(function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},"contextName"),quotedString:s(function(t){return this.source.quotedString(t)},"quotedString"),objectLiteral:s(function(t){return this.source.objectLiteral(t)},"objectLiteral"),aliasable:s(function(t){var r=this.aliases[t];return r?(r.referenceCount++,r):(r=this.aliases[t]=this.source.wrap(t),r.aliasable=!0,r.referenceCount=1,r)},"aliasable"),setupHelper:s(function(t,r,n){var i=[],o=this.setupHelperArgs(r,t,i,n),a=this.nameLookup("helpers",r,"helper"),u=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:o,name:a,callParams:[u].concat(i)}},"setupHelper"),setupParams:s(function(t,r,n){var i={},o=[],a=[],u=[],c=!n,l=void 0;c&&(n=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var p=this.popStack(),f=this.popStack();(f||p)&&(i.fn=f||"container.noop",i.inverse=p||"container.noop");for(var d=r;d--;)l=this.popStack(),n[d]=l,this.trackIds&&(u[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),o[d]=this.popStack());return c&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(u)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(o)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:s(function(t,r,n,i){var o=this.setupParams(t,r,n);return o.loc=JSON.stringify(this.source.currentLocation),o=this.objectLiteral(o),i?(this.useRegister("options"),n.push("options"),["options=",o]):n?(n.push(o),""):o},"setupHelperArgs")};(function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=Is.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();Is.isValidJavaScriptVariableName=function(e){return!Is.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function I4(e,t,r,n,i){var o=t.popStack(),a=r.length;for(e&&a--;n<a;n++)o=t.nameLookup(o,r[n],i);return e?[t.aliasable("container.strict"),"(",o,", ",t.quotedString(r[n]),", ",JSON.stringify(t.source.currentLocation)," )"]:o}s(I4,"strictLookup");bc.default=Is;Bw.exports=bc.default});var Gw=b((_c,Uw)=>{"use strict";_c.__esModule=!0;function ta(e){return e&&e.__esModule?e:{default:e}}s(ta,"_interopRequireDefault");var R4=z2(),j4=ta(R4),k4=Bh(),N4=ta(k4),fm=sw(),pm=cw(),M4=Vw(),T4=ta(M4),q4=lc(),D4=ta(q4),L4=qh(),F4=ta(L4),B4=j4.default.create;function Hw(){var e=B4();return e.compile=function(t,r){return pm.compile(t,r,e)},e.precompile=function(t,r){return pm.precompile(t,r,e)},e.AST=N4.default,e.Compiler=pm.Compiler,e.JavaScriptCompiler=T4.default,e.Parser=fm.parser,e.parse=fm.parse,e.parseWithoutProcessing=fm.parseWithoutProcessing,e}s(Hw,"create");var Rs=Hw();Rs.create=Hw;F4.default(Rs);Rs.Visitor=D4.default;Rs.default=Rs;_c.default=Rs;Uw.exports=_c.default});var zw=b(Sc=>{"use strict";Sc.__esModule=!0;Sc.print=G4;Sc.PrintVisitor=ze;function V4(e){return e&&e.__esModule?e:{default:e}}s(V4,"_interopRequireDefault");var H4=lc(),U4=V4(H4);function G4(e){return new ze().accept(e)}s(G4,"print");function ze(){this.padding=0}s(ze,"PrintVisitor");ze.prototype=new U4.default;ze.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
74
- `,t};ze.prototype.Program=function(e){var t="",r=e.body,n=void 0,i=void 0;if(e.blockParams){var o="BLOCK PARAMS: [";for(n=0,i=e.blockParams.length;n<i;n++)o+=" "+e.blockParams[n];o+=" ]",t+=this.pad(o)}for(n=0,i=r.length;n<i;n++)t+=this.accept(r[n]);return this.padding--,t};ze.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};ze.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};ze.prototype.BlockStatement=ze.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};ze.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+" }}")};ze.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+" }}")};ze.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};ze.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};ze.prototype.SubExpression=function(e){for(var t=e.params,r=[],n=void 0,i=0,o=t.length;i<o;i++)r.push(this.accept(t[i]));return t="["+r.join(", ")+"]",n=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+n};ze.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};ze.prototype.StringLiteral=function(e){return'"'+e.value+'"'};ze.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};ze.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};ze.prototype.UndefinedLiteral=function(){return"UNDEFINED"};ze.prototype.NullLiteral=function(){return"NULL"};ze.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(", ")+"}"};ze.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var Pi=b((PG,Zw)=>{var wc=Gw().default,Kw=zw();wc.PrintVisitor=Kw.PrintVisitor;wc.print=Kw.print;Zw.exports=wc;function Ww(e,t){var r=Pe("fs"),n=r.readFileSync(t,"utf8");e.exports=wc.compile(n)}s(Ww,"extension");typeof Pe<"u"&&Pe.extensions&&(Pe.extensions[".handlebars"]=Ww,Pe.extensions[".hbs"]=Ww)});import{notStrictEqual as Y$,strictEqual as J$}from"assert";var E$={right:R$,center:j$},x$=0,ia=1,A$=2,sa=3,Oc=class Oc{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(`
73
+ `.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:s(function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:s(function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",r),"}"])},"ambiguousBlockValue"),appendContent:s(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:s(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:s(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:s(function(t){this.lastContext=t},"getContext"),pushContext:s(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:s(function(t,r,n,i){var o=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[o++])):this.pushContext(),this.resolvePath("context",t,o,r,n)},"lookupOnContext"),lookupBlockParam:s(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:s(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:s(function(t,r,n,i,o){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(M4(this.options.strict&&o,this,r,n,t));return}for(var u=r.length;n<u;n++)this.replaceStack(function(c){var l=a.nameLookup(c,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",c]})},"resolvePath"),resolvePossibleLambda:s(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:s(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:s(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:s(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:s(function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},"popHash"),pushString:s(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:s(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:s(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:s(function(t,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,t);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:s(function(t,r,n){var i=this.popStack(),o=this.setupHelper(t,r),a=[];n&&a.push(o.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var u=["(",this.itemsSeparatedBy(a,"||"),")"],c=this.source.functionCall(u,"call",o.callParams);this.push(c)},"invokeHelper"),itemsSeparatedBy:s(function(t,r){var n=[];n.push(t[0]);for(var i=1;i<t.length;i++)n.push(r,t[i]);return n},"itemsSeparatedBy"),invokeKnownHelper:s(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:s(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),o=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",o," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:s(function(t,r,n){var i=[],o=this.setupParams(r,1,i);t&&(r=this.popStack(),delete o.name),n&&(o.indent=JSON.stringify(n)),o.helpers="helpers",o.partials="partials",o.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(o.depths="depths"),o=this.objectLiteral(o),i.push(o),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:s(function(t){var r=this.popStack(),n=void 0,i=void 0,o=void 0;this.trackIds&&(o=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),o&&(a.ids[t]=o),a.values[t]=r},"assignToHash"),pushId:s(function(t,r,n){t==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):t==="PathExpression"?this.pushString(r):t==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:Rs,compileChildren:s(function(t,r){for(var n=t.children,i=void 0,o=void 0,a=0,u=n.length;a<u;a++){i=n[a],o=new this.compiler;var c=this.matchExistingProgram(i);if(c==null){this.context.programs.push("");var l=this.context.programs.length;i.index=l,i.name="program"+l,this.context.programs[l]=o.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=o.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=c.index,i.name="program"+c.index,this.useDepths=this.useDepths||c.useDepths,this.useBlockParams=this.useBlockParams||c.useBlockParams}},"compileChildren"),matchExistingProgram:s(function(t){for(var r=0,n=this.context.environments.length;r<n;r++){var i=this.context.environments[r];if(i&&i.equals(t))return i}},"matchExistingProgram"),programExpression:s(function(t){var r=this.environment.children[t],n=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},"programExpression"),useRegister:s(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:s(function(t){return t instanceof Is||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:s(function(t){this.push(new Is(t))},"pushStackLiteral"),pushSource:s(function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},"pushSource"),replaceStack:s(function(t){var r=["("],n=void 0,i=void 0,o=void 0;if(!this.isInline())throw new pm.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof Is)n=[a.value],r=["(",n],o=!0;else{i=!0;var u=this.incrStack();r=["((",this.push(u)," = ",a,")"],n=this.topStack()}var c=t.call(this,n);o||this.popStack(),i&&this.stackSlot--,this.push(r.concat(c,")"))},"replaceStack"),incrStack:s(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:s(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:s(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof Is)this.compileStack.push(i);else{var o=this.incrStack();this.pushSource([o," = ",i,";"]),this.compileStack.push(o)}}},"flushInline"),isInline:s(function(){return this.inlineStack.length},"isInline"),popStack:s(function(t){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof Is)return n.value;if(!r){if(!this.stackSlot)throw new pm.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:s(function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof Is?r.value:r},"topStack"),contextName:s(function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},"contextName"),quotedString:s(function(t){return this.source.quotedString(t)},"quotedString"),objectLiteral:s(function(t){return this.source.objectLiteral(t)},"objectLiteral"),aliasable:s(function(t){var r=this.aliases[t];return r?(r.referenceCount++,r):(r=this.aliases[t]=this.source.wrap(t),r.aliasable=!0,r.referenceCount=1,r)},"aliasable"),setupHelper:s(function(t,r,n){var i=[],o=this.setupHelperArgs(r,t,i,n),a=this.nameLookup("helpers",r,"helper"),u=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:o,name:a,callParams:[u].concat(i)}},"setupHelper"),setupParams:s(function(t,r,n){var i={},o=[],a=[],u=[],c=!n,l=void 0;c&&(n=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var p=this.popStack(),f=this.popStack();(f||p)&&(i.fn=f||"container.noop",i.inverse=p||"container.noop");for(var d=r;d--;)l=this.popStack(),n[d]=l,this.trackIds&&(u[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),o[d]=this.popStack());return c&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(u)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(o)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:s(function(t,r,n,i){var o=this.setupParams(t,r,n);return o.loc=JSON.stringify(this.source.currentLocation),o=this.objectLiteral(o),i?(this.useRegister("options"),n.push("options"),["options=",o]):n?(n.push(o),""):o},"setupHelperArgs")};(function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=Rs.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();Rs.isValidJavaScriptVariableName=function(e){return!Rs.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function M4(e,t,r,n,i){var o=t.popStack(),a=r.length;for(e&&a--;n<a;n++)o=t.nameLookup(o,r[n],i);return e?[t.aliasable("container.strict"),"(",o,", ",t.quotedString(r[n]),", ",JSON.stringify(t.source.currentLocation)," )"]:o}s(M4,"strictLookup");_c.default=Rs;Gw.exports=_c.default});var Yw=b((Sc,Zw)=>{"use strict";Sc.__esModule=!0;function ra(e){return e&&e.__esModule?e:{default:e}}s(ra,"_interopRequireDefault");var T4=J2(),q4=ra(T4),D4=Hh(),L4=ra(D4),dm=lw(),hm=hw(),F4=Ww(),V4=ra(F4),B4=fc(),H4=ra(B4),U4=Lh(),z4=ra(U4),G4=q4.default.create;function Kw(){var e=G4();return e.compile=function(t,r){return hm.compile(t,r,e)},e.precompile=function(t,r){return hm.precompile(t,r,e)},e.AST=L4.default,e.Compiler=hm.Compiler,e.JavaScriptCompiler=V4.default,e.Parser=dm.parser,e.parse=dm.parse,e.parseWithoutProcessing=dm.parseWithoutProcessing,e}s(Kw,"create");var js=Kw();js.create=Kw;z4.default(js);js.Visitor=H4.default;js.default=js;Sc.default=js;Zw.exports=Sc.default});var Jw=b(wc=>{"use strict";wc.__esModule=!0;wc.print=Y4;wc.PrintVisitor=Ge;function W4(e){return e&&e.__esModule?e:{default:e}}s(W4,"_interopRequireDefault");var K4=fc(),Z4=W4(K4);function Y4(e){return new Ge().accept(e)}s(Y4,"print");function Ge(){this.padding=0}s(Ge,"PrintVisitor");Ge.prototype=new Z4.default;Ge.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
74
+ `,t};Ge.prototype.Program=function(e){var t="",r=e.body,n=void 0,i=void 0;if(e.blockParams){var o="BLOCK PARAMS: [";for(n=0,i=e.blockParams.length;n<i;n++)o+=" "+e.blockParams[n];o+=" ]",t+=this.pad(o)}for(n=0,i=r.length;n<i;n++)t+=this.accept(r[n]);return this.padding--,t};Ge.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};Ge.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};Ge.prototype.BlockStatement=Ge.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};Ge.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+" }}")};Ge.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+" }}")};Ge.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};Ge.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};Ge.prototype.SubExpression=function(e){for(var t=e.params,r=[],n=void 0,i=0,o=t.length;i<o;i++)r.push(this.accept(t[i]));return t="["+r.join(", ")+"]",n=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+n};Ge.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};Ge.prototype.StringLiteral=function(e){return'"'+e.value+'"'};Ge.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};Ge.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};Ge.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Ge.prototype.NullLiteral=function(){return"NULL"};Ge.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(", ")+"}"};Ge.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var Oi=b((kz,e$)=>{var $c=Yw().default,Xw=Jw();$c.PrintVisitor=Xw.PrintVisitor;$c.print=Xw.print;e$.exports=$c;function Qw(e,t){var r=Pe("fs"),n=r.readFileSync(t,"utf8");e.exports=$c.compile(n)}s(Qw,"extension");typeof Pe<"u"&&Pe.extensions&&(Pe.extensions[".handlebars"]=Qw,Pe.extensions[".hbs"]=Qw)});import{notStrictEqual as tP,strictEqual as rP}from"assert";var R$={right:T$,center:q$},j$=0,sa=1,k$=2,oa=3,xc=class xc{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(`
75
75
  `).map(i=>i.split(" ")),n=0;return r.forEach(i=>{i.length>1&&kt.stringWidth(i[0])>n&&(n=Math.min(Math.floor(this.width*.5),kt.stringWidth(i[0])))}),r.forEach(i=>{this.div(...i.map((o,a)=>({text:o.trim(),padding:this.measurePadding(o),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=kt.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(`
76
- `)}rowToString(t,r){return this.rasterize(t).forEach((n,i)=>{let o="";n.forEach((a,u)=>{let{width:c}=t[u],l=this.negatePadding(t[u]),p=a;if(l>kt.stringWidth(a)&&(p+=" ".repeat(l-kt.stringWidth(a))),t[u].align&&t[u].align!=="left"&&this.wrap){let d=E$[t[u].align];p=d(p,l),kt.stringWidth(p)<l&&(p+=" ".repeat((c||0)-kt.stringWidth(p)-1))}let f=t[u].padding||[0,0,0,0];f[sa]&&(o+=" ".repeat(f[sa])),o+=_m(t[u],p,"| "),o+=p,o+=_m(t[u],p," |"),f[ia]&&(o+=" ".repeat(f[ia])),i===0&&r.length>0&&(o=this.renderInline(o,r[r.length-1]))}),r.push({text:o.replace(/ +$/,""),span:t.span})}),r}renderInline(t,r){let n=t.match(/^ */),i=n?n[0].length:0,o=r.text,a=kt.stringWidth(o.trimRight());return r.span?this.wrap?i<a?t:(r.hidden=!0,o.trimRight()+" ".repeat(i-a)+t.trimLeft()):(r.hidden=!0,o+t):t}rasterize(t){let r=[],n=this.columnWidths(t),i;return t.forEach((o,a)=>{o.width=n[a],this.wrap?i=kt.wrap(o.text,this.negatePadding(o),{hard:!0}).split(`
76
+ `)}rowToString(t,r){return this.rasterize(t).forEach((n,i)=>{let o="";n.forEach((a,u)=>{let{width:c}=t[u],l=this.negatePadding(t[u]),p=a;if(l>kt.stringWidth(a)&&(p+=" ".repeat(l-kt.stringWidth(a))),t[u].align&&t[u].align!=="left"&&this.wrap){let d=R$[t[u].align];p=d(p,l),kt.stringWidth(p)<l&&(p+=" ".repeat((c||0)-kt.stringWidth(p)-1))}let f=t[u].padding||[0,0,0,0];f[oa]&&(o+=" ".repeat(f[oa])),o+=$m(t[u],p,"| "),o+=p,o+=$m(t[u],p," |"),f[sa]&&(o+=" ".repeat(f[sa])),i===0&&r.length>0&&(o=this.renderInline(o,r[r.length-1]))}),r.push({text:o.replace(/ +$/,""),span:t.span})}),r}renderInline(t,r){let n=t.match(/^ */),i=n?n[0].length:0,o=r.text,a=kt.stringWidth(o.trimRight());return r.span?this.wrap?i<a?t:(r.hidden=!0,o.trimRight()+" ".repeat(i-a)+t.trimLeft()):(r.hidden=!0,o+t):t}rasterize(t){let r=[],n=this.columnWidths(t),i;return t.forEach((o,a)=>{o.width=n[a],this.wrap?i=kt.wrap(o.text,this.negatePadding(o),{hard:!0}).split(`
77
77
  `):i=o.text.split(`
78
- `),o.border&&(i.unshift("."+"-".repeat(this.negatePadding(o)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(o)+2)+"'")),o.padding&&(i.unshift(...new Array(o.padding[x$]||0).fill("")),i.push(...new Array(o.padding[A$]||0).fill(""))),i.forEach((u,c)=>{r[c]||r.push([]);let l=r[c];for(let p=0;p<a;p++)l[p]===void 0&&l.push("");l.push(u)})}),r}negatePadding(t){let r=t.width||0;return t.padding&&(r-=(t.padding[sa]||0)+(t.padding[ia]||0)),t.border&&(r-=4),r}columnWidths(t){if(!this.wrap)return t.map(a=>a.width||kt.stringWidth(a.text));let r=t.length,n=this.width,i=t.map(a=>{if(a.width)return r--,n-=a.width,a.width}),o=r?Math.floor(n/r):0;return i.map((a,u)=>a===void 0?Math.max(o,C$(t[u])):a)}};s(Oc,"UI");var Pc=Oc;function _m(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?r:" ":""}s(_m,"addBorder");function C$(e){let t=e.padding||[],r=1+(t[sa]||0)+(t[ia]||0);return e.border?r+4:r}s(C$,"_minWidth");function I$(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}s(I$,"getWindowWidth");function R$(e,t){e=e.trim();let r=kt.stringWidth(e);return r<t?" ".repeat(t-r)+e:e}s(R$,"alignRight");function j$(e,t){e=e.trim();let r=kt.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}s(j$,"alignCenter");var kt;function Sm(e,t){return kt=t,new Pc({width:(e==null?void 0:e.width)||I$(),wrap:e==null?void 0:e.wrap})}s(Sm,"cliui");var wm=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function Ec(e){return e.replace(wm,"")}s(Ec,"stripAnsi");function $m(e,t){let[r,n]=e.match(wm)||["",""];e=Ec(e);let i="";for(let o=0;o<e.length;o++)o!==0&&o%t===0&&(i+=`
79
- `),i+=e.charAt(o);return r&&n&&(i=`${r}${i}${n}`),i}s($m,"wrap");function xc(e){return Sm(e,{stringWidth:s(t=>[...t].length,"stringWidth"),stripAnsi:Ec,wrap:$m})}s(xc,"ui");import{dirname as Pm,resolve as Om}from"path";import{readdirSync as k$,statSync as N$}from"fs";function Ac(e,t){let r=Om(".",e),n;for(N$(r).isDirectory()||(r=Pm(r));;){if(n=t(r,k$(r)),n)return Om(r,n);if(r=Pm(n=r),n===r)break}}s(Ac,"default");import{inspect as Q$}from"util";import{readFileSync as X$}from"fs";import{fileURLToPath as eP}from"url";import{format as q$}from"util";import{normalize as D$,resolve as L$}from"path";function Tn(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 o=i?i[0].length:0;o<e.length;o++){let a=e.charAt(o);n&&(n=!1,a=a.toUpperCase()),o!==0&&(a==="-"||a==="_")?n=!0:a!=="-"&&a!=="_"&&(r+=a)}return r}}s(Tn,"camelCase");function oa(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let o=r.charAt(i),a=e.charAt(i);o!==a&&i>0?n+=`${t}${r.charAt(i)}`:n+=a}return n}s(oa,"decamelize");function aa(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)}s(aa,"looksLikeNumber");function Em(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,o=[];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),o[t]||(o[t]=""),o[t]+=n}return o}s(Em,"tokenizeArgString");var Ht;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(Ht||(Ht={}));var Br,Ic=class Ic{constructor(t){Br=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=Em(t),o=typeof t=="string",a=M$(Object.assign(Object.create(null),n.alias)),u=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),c=Object.assign(Object.create(null),n.default),l=n.configObjects||[],p=n.envPrefix,f=u["populate--"],d=f?"--":"_",h=Object.create(null),y=Object.create(null),v=n.__||Br.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]+)$/,C=new RegExp("^--"+u["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(_){let $=typeof _=="object"?_.key:_,j=Object.keys(_).map(function(E){return{boolean:"bools",string:"strings",number:"numbers"}[E]}).filter(Boolean).pop();j&&(g[j][$]=!0),g.arrays[$]=!0,g.keys.push($)}),[].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(([_,$])=>{typeof $=="number"&&(g.nargs[_]=$,g.keys.push(_))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([_,$])=>{typeof $=="function"&&(g.coercions[_]=$,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(([_,$])=>{(typeof $=="boolean"||typeof $=="function")&&(g.configs[_]=$)})),Et(n.key,a,n.default,g.arrays),Object.keys(c).forEach(function(_){(g.aliases[_]||[]).forEach(function($){c[$]=c[_]})});let k=null;Oi();let A=[],I=Object.assign(Object.create(null),{_:[]}),ae={};for(let _=0;_<i.length;_++){let $=i[_],j=$.replace(/^-{3,}/,"---"),E,w,B,T,z,Je;if($!=="--"&&/^-/.test($)&&Ie($))ue($);else if(j.match(/^---+(=|$)/)){ue($);continue}else if($.match(/^--.+=/)||!u["short-option-groups"]&&$.match(/^-.+=/))T=$.match(/^--?([^=]+)=([\s\S]*)$/),T!==null&&Array.isArray(T)&&T.length>=3&&(te(T[1],g.arrays)?_=Fe(_,T[1],i,T[2]):te(T[1],g.nargs)!==!1?_=Ot(_,T[1],i,T[2]):ee(T[1],T[2],!0));else if($.match(C)&&u["boolean-negation"])T=$.match(C),T!==null&&Array.isArray(T)&&T.length>=2&&(w=T[1],ee(w,te(w,g.arrays)?[!1]:!1));else if($.match(/^--.+/)||!u["short-option-groups"]&&$.match(/^-[^-]+/))T=$.match(/^--?(.+)/),T!==null&&Array.isArray(T)&&T.length>=2&&(w=T[1],te(w,g.arrays)?_=Fe(_,w,i):te(w,g.nargs)!==!1?_=Ot(_,w,i):(z=i[_+1],z!==void 0&&(!z.match(/^-/)||z.match(P))&&!te(w,g.bools)&&!te(w,g.counts)||/^(true|false)$/.test(z)?(ee(w,z),_++):ee(w,_e(w))));else if($.match(/^-.\..+=/))T=$.match(/^-([^=]+)=([\s\S]*)$/),T!==null&&Array.isArray(T)&&T.length>=3&&ee(T[1],T[2]);else if($.match(/^-.\..+/)&&!$.match(P))z=i[_+1],T=$.match(/^-(.\..+)/),T!==null&&Array.isArray(T)&&T.length>=2&&(w=T[1],z!==void 0&&!z.match(/^-/)&&!te(w,g.bools)&&!te(w,g.counts)?(ee(w,z),_++):ee(w,_e(w)));else if($.match(/^-[^-]+/)&&!$.match(P)){B=$.slice(1,-1).split(""),E=!1;for(let at=0;at<B.length;at++){if(z=$.slice(at+2),B[at+1]&&B[at+1]==="="){Je=$.slice(at+3),w=B[at],te(w,g.arrays)?_=Fe(_,w,i,Je):te(w,g.nargs)!==!1?_=Ot(_,w,i,Je):ee(w,Je),E=!0;break}if(z==="-"){ee(B[at],z);continue}if(/[A-Za-z]/.test(B[at])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(z)&&te(z,g.bools)===!1){ee(B[at],z),E=!0;break}if(B[at+1]&&B[at+1].match(/\W/)){ee(B[at],z),E=!0;break}else ee(B[at],_e(B[at]))}w=$.slice(-1)[0],!E&&w!=="-"&&(te(w,g.arrays)?_=Fe(_,w,i):te(w,g.nargs)!==!1?_=Ot(_,w,i):(z=i[_+1],z!==void 0&&(!/^(-|--)[^-]/.test(z)||z.match(P))&&!te(w,g.bools)&&!te(w,g.counts)||/^(true|false)$/.test(z)?(ee(w,z),_++):ee(w,_e(w))))}else if($.match(/^-[0-9]$/)&&$.match(P)&&te($.slice(1),g.bools))w=$.slice(1),ee(w,_e(w));else if($==="--"){A=i.slice(_+1);break}else if(u["halt-at-non-option"]){A=i.slice(_);break}else ue($)}ge(I,!0),ge(I,!1),Z(I),be(),xe(I,g.aliases,c,!0),Ve(I),u["set-placeholder-key"]&&Sr(I),Object.keys(g.counts).forEach(function(_){Vt(I,_.split("."))||ee(_,0)}),f&&A.length&&(I[d]=[]),A.forEach(function(_){I[d].push(_)}),u["camel-case-expansion"]&&u["strip-dashed"]&&Object.keys(I).filter(_=>_!=="--"&&_.includes("-")).forEach(_=>{delete I[_]}),u["strip-aliased"]&&[].concat(...Object.keys(a).map(_=>a[_])).forEach(_=>{u["camel-case-expansion"]&&_.includes("-")&&delete I[_.split(".").map($=>Tn($)).join(".")],delete I[_]});function ue(_){let $=q("_",_);(typeof $=="string"||typeof $=="number")&&I._.push($)}s(ue,"pushPositional");function Ot(_,$,j,E){let w,B=te($,g.nargs);if(B=typeof B!="number"||isNaN(B)?1:B,B===0)return xt(E)||(k=Error(v("Argument unexpected for: %s",$))),ee($,_e($)),_;let T=xt(E)?0:1;if(u["nargs-eats-options"])j.length-(_+1)+T<B&&(k=Error(v("Not enough arguments following: %s",$))),T=B;else{for(w=_+1;w<j.length&&(!j[w].match(/^-[^0-9]/)||j[w].match(P)||Ie(j[w]));w++)T++;T<B&&(k=Error(v("Not enough arguments following: %s",$)))}let z=Math.min(T,B);for(!xt(E)&&z>0&&(ee($,E),z--),w=_+1;w<z+_+1;w++)ee($,j[w]);return _+z}s(Ot,"eatNargs");function Fe(_,$,j,E){let w=[],B=E||j[_+1],T=te($,g.nargs);if(te($,g.bools)&&!/^(true|false)$/.test(B))w.push(!0);else if(xt(B)||xt(E)&&/^-/.test(B)&&!P.test(B)&&!Ie(B)){if(c[$]!==void 0){let z=c[$];w=Array.isArray(z)?z:[z]}}else{xt(E)||w.push(R($,E,!0));for(let z=_+1;z<j.length&&!(!u["greedy-arrays"]&&w.length>0||T&&typeof T=="number"&&w.length>=T||(B=j[z],/^-/.test(B)&&!P.test(B)&&!Ie(B)));z++)_=z,w.push(R($,B,o))}return typeof T=="number"&&(T&&w.length<T||isNaN(T)&&w.length===0)&&(k=Error(v("Not enough arguments following: %s",$))),ee($,w),_}s(Fe,"eatArray");function ee(_,$,j=o){if(/-/.test(_)&&u["camel-case-expansion"]){let B=_.split(".").map(function(T){return Tn(T)}).join(".");M(_,B)}let E=R(_,$,j),w=_.split(".");Y(I,w,E),g.aliases[_]&&g.aliases[_].forEach(function(B){let T=B.split(".");Y(I,T,E)}),w.length>1&&u["dot-notation"]&&(g.aliases[w[0]]||[]).forEach(function(B){let T=B.split("."),z=[].concat(w);z.shift(),T=T.concat(z),(g.aliases[_]||[]).includes(T.join("."))||Y(I,T,E)}),te(_,g.normalize)&&!te(_,g.arrays)&&[_].concat(g.aliases[_]||[]).forEach(function(T){Object.defineProperty(ae,T,{enumerable:!0,get(){return $},set(z){$=typeof z=="string"?Br.normalize(z):z}})})}s(ee,"setArg");function M(_,$){g.aliases[_]&&g.aliases[_].length||(g.aliases[_]=[$],h[$]=!0),g.aliases[$]&&g.aliases[$].length||M($,_)}s(M,"addNewAlias");function R(_,$,j){j&&($=T$($)),(te(_,g.bools)||te(_,g.counts))&&typeof $=="string"&&($=$==="true");let E=Array.isArray($)?$.map(function(w){return q(_,w)}):q(_,$);return te(_,g.counts)&&(xt(E)||typeof E=="boolean")&&(E=Cc()),te(_,g.normalize)&&te(_,g.arrays)&&(Array.isArray($)?E=$.map(w=>Br.normalize(w)):E=Br.normalize($)),E}s(R,"processValue");function q(_,$){return!u["parse-positional-numbers"]&&_==="_"||!te(_,g.strings)&&!te(_,g.bools)&&!Array.isArray($)&&(aa($)&&u["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${$}`)))||!xt($)&&te(_,g.numbers))&&($=Number($)),$}s(q,"maybeCoerceNumber");function Z(_){let $=Object.create(null);xe($,g.aliases,c),Object.keys(g.configs).forEach(function(j){let E=_[j]||$[j];if(E)try{let w=null,B=Br.resolve(Br.cwd(),E),T=g.configs[j];if(typeof T=="function"){try{w=T(B)}catch(z){w=z}if(w instanceof Error){k=w;return}}else w=Br.require(B);ce(w)}catch(w){w.name==="PermissionDenied"?k=w:_[j]&&(k=Error(v("Invalid JSON config file: %s",E)))}})}s(Z,"setConfig");function ce(_,$){Object.keys(_).forEach(function(j){let E=_[j],w=$?$+"."+j:j;typeof E=="object"&&E!==null&&!Array.isArray(E)&&u["dot-notation"]?ce(E,w):(!Vt(I,w.split("."))||te(w,g.arrays)&&u["combine-arrays"])&&ee(w,E)})}s(ce,"setConfigObject");function be(){typeof l<"u"&&l.forEach(function(_){ce(_)})}s(be,"setConfigObjects");function ge(_,$){if(typeof p>"u")return;let j=typeof p=="string"?p:"",E=Br.env();Object.keys(E).forEach(function(w){if(j===""||w.lastIndexOf(j,0)===0){let B=w.split("__").map(function(T,z){return z===0&&(T=T.substring(j.length)),Tn(T)});($&&g.configs[B.join(".")]||!$)&&!Vt(_,B)&&ee(B.join("."),E[w])}})}s(ge,"applyEnvVars");function Ve(_){let $,j=new Set;Object.keys(_).forEach(function(E){if(!j.has(E)&&($=te(E,g.coercions),typeof $=="function"))try{let w=q(E,$(_[E]));[].concat(g.aliases[E]||[],E).forEach(B=>{j.add(B),_[B]=w})}catch(w){k=w}})}s(Ve,"applyCoercions");function Sr(_){return g.keys.forEach($=>{~$.indexOf(".")||typeof _[$]>"u"&&(_[$]=void 0)}),_}s(Sr,"setPlaceholderKeys");function xe(_,$,j,E=!1){Object.keys(j).forEach(function(w){Vt(_,w.split("."))||(Y(_,w.split("."),j[w]),E&&(y[w]=!0),($[w]||[]).forEach(function(B){Vt(_,B.split("."))||Y(_,B.split("."),j[w])}))})}s(xe,"applyDefaultsAndAliases");function Vt(_,$){let j=_;u["dot-notation"]||($=[$.join(".")]),$.slice(0,-1).forEach(function(w){j=j[w]||{}});let E=$[$.length-1];return typeof j!="object"?!1:E in j}s(Vt,"hasKey");function Y(_,$,j){let E=_;u["dot-notation"]||($=[$.join(".")]),$.slice(0,-1).forEach(function(Je){Je=xm(Je),typeof E=="object"&&E[Je]===void 0&&(E[Je]={}),typeof E[Je]!="object"||Array.isArray(E[Je])?(Array.isArray(E[Je])?E[Je].push({}):E[Je]=[E[Je],{}],E=E[Je][E[Je].length-1]):E=E[Je]});let w=xm($[$.length-1]),B=te($.join("."),g.arrays),T=Array.isArray(j),z=u["duplicate-arguments-array"];!z&&te(w,g.nargs)&&(z=!0,(!xt(E[w])&&g.nargs[w]===1||Array.isArray(E[w])&&E[w].length===g.nargs[w])&&(E[w]=void 0)),j===Cc()?E[w]=Cc(E[w]):Array.isArray(E[w])?z&&B&&T?E[w]=u["flatten-duplicate-arrays"]?E[w].concat(j):(Array.isArray(E[w][0])?E[w]:[E[w]]).concat([j]):!z&&!!B==!!T?E[w]=j:E[w]=E[w].concat([j]):E[w]===void 0&&B?E[w]=T?j:[j]:z&&!(E[w]===void 0||te(w,g.counts)||te(w,g.bools))?E[w]=[E[w],j]:E[w]=j}s(Y,"setKey");function Et(..._){_.forEach(function($){Object.keys($||{}).forEach(function(j){g.aliases[j]||(g.aliases[j]=[].concat(a[j]||[]),g.aliases[j].concat(j).forEach(function(E){if(/-/.test(E)&&u["camel-case-expansion"]){let w=Tn(E);w!==j&&g.aliases[j].indexOf(w)===-1&&(g.aliases[j].push(w),h[w]=!0)}}),g.aliases[j].concat(j).forEach(function(E){if(E.length>1&&/[A-Z]/.test(E)&&u["camel-case-expansion"]){let w=oa(E,"-");w!==j&&g.aliases[j].indexOf(w)===-1&&(g.aliases[j].push(w),h[w]=!0)}}),g.aliases[j].forEach(function(E){g.aliases[E]=[j].concat(g.aliases[j].filter(function(w){return E!==w}))}))})})}s(Et,"extendAliases");function te(_,$){let j=[].concat(g.aliases[_]||[],_),E=Object.keys($),w=j.find(B=>E.includes(B));return w?$[w]:!1}s(te,"checkAllAliases");function Ce(_){let $=Object.keys(g);return[].concat($.map(E=>g[E])).some(function(E){return Array.isArray(E)?E.includes(_):E[_]})}s(Ce,"hasAnyFlag");function Q(_,...$){return[].concat(...$).some(function(E){let w=_.match(E);return w&&Ce(w[1])})}s(Q,"hasFlagsMatching");function Ae(_){if(_.match(P)||!_.match(/^-[^-]+/))return!1;let $=!0,j,E=_.slice(1).split("");for(let w=0;w<E.length;w++){if(j=_.slice(w+2),!Ce(E[w])){$=!1;break}if(E[w+1]&&E[w+1]==="="||j==="-"||/[A-Za-z]/.test(E[w])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(j)||E[w+1]&&E[w+1].match(/\W/))break}return $}s(Ae,"hasAllShortFlags");function Ie(_){return u["unknown-options-as-args"]&&pe(_)}s(Ie,"isUnknownOptionAsArg");function pe(_){return _=_.replace(/^-{3,}/,"--"),_.match(P)||Ae(_)?!1:!Q(_,/^-+([^=]+?)=[\s\S]*$/,C,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}s(pe,"isUnknownOption");function _e(_){return!te(_,g.bools)&&!te(_,g.counts)&&`${_}`in c?c[_]:qe(it(_))}s(_e,"defaultValue");function qe(_){return{[Ht.BOOLEAN]:!0,[Ht.STRING]:"",[Ht.NUMBER]:void 0,[Ht.ARRAY]:[]}[_]}s(qe,"defaultForType");function it(_){let $=Ht.BOOLEAN;return te(_,g.strings)?$=Ht.STRING:te(_,g.numbers)?$=Ht.NUMBER:te(_,g.bools)?$=Ht.BOOLEAN:te(_,g.arrays)&&($=Ht.ARRAY),$}s(it,"guessType");function xt(_){return _===void 0}s(xt,"isUndefined");function Oi(){Object.keys(g.counts).find(_=>te(_,g.arrays)?(k=Error(v("Invalid configuration: %s, opts.count excludes opts.array.",_)),!0):te(_,g.nargs)?(k=Error(v("Invalid configuration: %s, opts.count excludes opts.narg.",_)),!0):!1)}return s(Oi,"checkConfiguration"),{aliases:Object.assign({},g.aliases),argv:Object.assign(ae,I),configuration:u,defaulted:Object.assign({},y),error:k,newAliases:Object.assign({},h)}}};s(Ic,"YargsParser");var ua=Ic;function M$(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 o=i+1;o<t.length;o++)if(t[i].filter(function(u){return t[o].indexOf(u)!==-1}).length){t[i]=t[i].concat(t[o]),t.splice(o,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(a,u,c){return c.indexOf(a)===u});let o=i.pop();o!==void 0&&typeof o=="string"&&(r[o]=i)}),r}s(M$,"combineAliases");function Cc(e){return e!==void 0?e+1:1}s(Cc,"increment");function xm(e){return e==="__proto__"?"___proto___":e}s(xm,"sanitizeKey");function T$(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}s(T$,"stripQuotes");import{readFileSync as F$}from"fs";var Rc,jc,kc,Am=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,Cm=(jc=(Rc=process==null?void 0:process.versions)===null||Rc===void 0?void 0:Rc.node)!==null&&jc!==void 0?jc:(kc=process==null?void 0:process.version)===null||kc===void 0?void 0:kc.slice(1);if(Cm&&Number(Cm.match(/^([^.]+)/)[1])<Am)throw Error(`yargs parser supports a minimum Node.js version of ${Am}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var B$=process?process.env:{},Im=new ua({cwd:process.cwd,env:s(()=>B$,"env"),format:q$,normalize:D$,resolve:L$,require:s(e=>{if(typeof Pe<"u")return Pe(e);if(e.match(/\.json$/))return JSON.parse(F$(e,"utf8"));throw Error("only .json config files are supported in ESM")},"require")}),Ts=s(function(t,r){return Im.parse(t.slice(),r).argv},"Parser");Ts.detailed=function(e,t){return Im.parse(e.slice(),t)};Ts.camelCase=Tn;Ts.decamelize=oa;Ts.looksLikeNumber=aa;var Nc=Ts;import{basename as tP,dirname as rP,extname as nP,relative as iP,resolve as Tm}from"path";function Rm(){return V$()?0:1}s(Rm,"getProcessArgvBinIndex");function V$(){return H$()&&!process.defaultApp}s(V$,"isBundledElectronApp");function H$(){return!!process.versions.electron}s(H$,"isElectronApp");function Mc(e){return e.slice(Rm()+1)}s(Mc,"hideBin");function jm(){return process.argv[Rm()]}s(jm,"getProcessArgvBin");var ca=class ca extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,ca)}};s(ca,"YError");var je=ca;import{readFileSync as U$,statSync as G$,writeFile as z$}from"fs";import{format as W$}from"util";import{resolve as K$}from"path";var km={fs:{readFileSync:U$,writeFile:z$},format:W$,resolve:K$,exists:s(e=>{try{return G$(e).isFile()}catch{return!1}},"exists")};var sr,qc=class qc{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=s(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(),sr.format.apply(sr.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(),o=s(function(){},"cb");typeof t[t.length-1]=="function"&&(o=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:o})):o();let u=[a];return~a.indexOf("%d")&&u.push(i),sr.format.apply(sr.format,u.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,o){let a=r[o+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,o=r.cb,a=this._resolveLocaleFile(n,i),u=JSON.stringify(this.cache[i],null,2);sr.fs.writeFile(a,u,"utf-8",function(c){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),o(c)})}_readLocaleFile(){let t={},r=this._resolveLocaleFile(this.directory,this.locale);try{sr.fs.readFileSync&&(t=JSON.parse(sr.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=sr.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=sr.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return sr.exists(t)}};s(qc,"Y18N");var Tc=qc;function Nm(e,t){sr=t;let r=new Tc(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}}s(Nm,"y18n");var Z$=s(e=>Nm(e,km),"y18n"),Mm=Z$;var sP="require is not supported by ESM",qm="loading a directory of commands is not supported yet for ESM",qs;try{qs=eP(import.meta.url)}catch{qs=process.cwd()}var oP=qs.substring(0,qs.lastIndexOf("node_modules")),Dc={assert:{notStrictEqual:Y$,strictEqual:J$},cliui:xc,findUp:Ac,getEnv:s(e=>process.env[e],"getEnv"),inspect:Q$,getCallerFile:s(()=>{throw new je(qm)},"getCallerFile"),getProcessArgvBin:jm,mainFilename:oP||process.cwd(),Parser:Nc,path:{basename:tP,dirname:rP,extname:nP,relative:iP,resolve:Tm},process:{argv:s(()=>process.argv,"argv"),cwd:process.cwd,emitWarning:s((e,t)=>process.emitWarning(e,t),"emitWarning"),execPath:s(()=>process.execPath,"execPath"),exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:X$,require:s(()=>{throw new je(sP)},"require"),requireDirectory:s(()=>{throw new je(qm)},"requireDirectory"),stringWidth:s(e=>[...e].length,"stringWidth"),y18n:Mm({directory:Tm(qs,"../../../locales"),updateFiles:!1})};function yt(e,t,r,n){r.assert.notStrictEqual(e,t,n)}s(yt,"assertNotStrictEqual");function Lc(e,t){t.assert.strictEqual(typeof e,"string")}s(Lc,"assertSingleKey");function Ei(e){return Object.keys(e)}s(Ei,"objectKeys");function ke(e){return!!e&&!!e.then&&typeof e.then=="function"}s(ke,"isPromise");function rn(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 o={cmd:i.replace(n,""),demanded:[],optional:[]};return r.forEach((a,u)=>{let c=!1;a=a.replace(/\s/g,""),/\.+[\]>]/.test(a)&&u===r.length-1&&(c=!0),/^\[/.test(a)?o.optional.push({cmd:a.replace(n,"").split("|"),variadic:c}):o.demanded.push({cmd:a.replace(n,"").split("|"),variadic:c})}),o}s(rn,"parseCommand");var aP=["first","second","third","fourth","fifth","sixth"];function F(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[rn(`cmd ${e}`),t,r]}s(n,"parseArgs");try{let i=0,[o,a,u]=n(),c=[].slice.call(a);for(;c.length&&c[c.length-1]===void 0;)c.pop();let l=u||c.length;if(l<o.demanded.length)throw new je(`Not enough arguments provided. Expected ${o.demanded.length} but received ${c.length}.`);let p=o.demanded.length+o.optional.length;if(l>p)throw new je(`Too many arguments provided. Expected max ${p} but received ${l}.`);o.demanded.forEach(f=>{let d=c.shift(),h=Dm(d);f.cmd.filter(v=>v===h||v==="*").length===0&&Lm(h,f.cmd,i),i+=1}),o.optional.forEach(f=>{if(c.length===0)return;let d=c.shift(),h=Dm(d);f.cmd.filter(v=>v===h||v==="*").length===0&&Lm(h,f.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}s(F,"argsert");function Dm(e){return Array.isArray(e)?"array":e===null?"null":typeof e}s(Dm,"guessType");function Lm(e,t,r){throw new je(`Invalid ${aP[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}s(Lm,"argumentTypeError");var Fc=class Fc{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 o=0;o<t.length;o++){if(typeof t[o]!="function")throw Error("middleware must be a function");let a=t[o];a.applyBeforeValidation=r,a.global=n}Array.prototype.push.apply(this.globalMiddleware,t)}else if(typeof t=="function"){let o=t;o.applyBeforeValidation=r,o.global=n,o.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 o=[...n[r]||[],r];return i.option?!o.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)}};s(Fc,"GlobalMiddleware");var la=Fc;function Fm(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}s(Fm,"commandMiddlewareFactory");function qn(e,t,r,n){return r.reduce((i,o)=>{if(o.applyBeforeValidation!==n)return i;if(o.mutates){if(o.applied)return i;o.applied=!0}if(ke(i))return i.then(a=>Promise.all([a,o(a,t)])).then(([a,u])=>Object.assign(a,u));{let a=o(i,t);return ke(a)?a.then(u=>Object.assign(i,u)):Object.assign(i,a)}},e)}s(qn,"applyMiddleware");function Dn(e,t,r=n=>{throw n}){try{let n=uP(e)?e():e;return ke(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}s(Dn,"maybeAsyncResult");function uP(e){return typeof e=="function"}s(uP,"isFunction");function Bc(e){if(typeof Pe>"u")return null;for(let t=0,r=Object.keys(Pe.cache),n;t<r.length;t++)if(n=Pe.cache[r[t]],n.exports===e)return n;return null}s(Bc,"whichModule");var xi=/(^\*)|(^\$0)/,Hc=class Hc{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 o=typeof i.visit=="function"?i.visit:a=>a;i.visit=(a,u,c)=>{let l=o(a,u,c);if(l){if(this.requireCache.has(u))return l;this.requireCache.add(u),this.addHandler(l)}return l},this.shim.requireDirectory({require:r,filename:n},t,i)}addHandler(t,r,n,i,o,a){let u=[],c=Fm(o);if(i=i||(()=>{}),Array.isArray(t))if(cP(t))[t,...u]=t;else for(let l of t)this.addHandler(l);else if(fP(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(Bm(n)){this.addHandler([t].concat(u),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let l=rn(t);u=u.map(d=>rn(d).cmd);let p=!1,f=[l.cmd].concat(u).filter(d=>xi.test(d)?(p=!0,!1):!0);f.length===0&&p&&f.push("$0"),p&&(l.cmd=f[0],u=f.slice(1),t=t.replace(xi,l.cmd)),u.forEach(d=>{this.aliasMap[d]=l.cmd}),r!==!1&&this.usage.command(t,r,p,u,a),this.handlers[l.cmd]={original:t,description:r,handler:i,builder:n||{},middlewares:c,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,o,a){let u=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,c=r.getInternalMethods().getContext(),l=c.commands.slice(),p=!t;t&&(c.commands.push(t),c.fullCommands.push(u.original));let f=this.applyBuilderUpdateUsageAndParse(p,u,r,n.aliases,l,i,o,a);return ke(f)?f.then(d=>this.applyMiddlewareAndGetResult(p,u,d.innerArgv,c,o,d.aliases,r)):this.applyMiddlewareAndGetResult(p,u,f.innerArgv,c,o,f.aliases,r)}applyBuilderUpdateUsageAndParse(t,r,n,i,o,a,u,c){let l=r.builder,p=n;if(fa(l)){n.getInternalMethods().getUsageInstance().freeze();let f=l(n.getInternalMethods().reset(i),c);if(ke(f))return f.then(d=>(p=Hm(d)?d:n,this.parseAndUpdateUsage(t,r,p,o,a,u)))}else lP(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,o,a,u)}parseAndUpdateUsage(t,r,n,i,o,a){t&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,r),r.description);let u=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,o,a);return ke(u)?u.then(c=>({aliases:n.parsed.aliases,innerArgv:c})):{aliases:n.parsed.aliases,innerArgv:u}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,r){let n=xi.test(r.original)?r.original.replace(xi,"").trim():r.original,i=t.filter(o=>!xi.test(o));return i.push(n),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,r,n,i,o,a,u,c){if(!a.getInternalMethods().getHasOutput()){let l=a.getInternalMethods().runValidation(o,c,a.parsed.error,t);n=Dn(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=qn(n,a,u,!1),n=Dn(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,o,a,u){let c={};if(o)return n;u.getInternalMethods().getHasOutput()||(c=this.populatePositionals(r,n,i,u));let l=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),p=qn(n,u,l,!0);return ke(p)?p.then(f=>this.handleValidationAndGetResult(t,r,f,i,a,u,l,c)):this.handleValidationAndGetResult(t,r,p,i,a,u,l,c)}populatePositionals(t,r,n,i){r._=r._.slice(n.commands.length);let o=t.demanded.slice(0),a=t.optional.slice(0),u={};for(this.validation.positionalCount(o.length,r._.length);o.length;){let c=o.shift();this.populatePositional(c,r,u)}for(;a.length;){let c=a.shift();this.populatePositional(c,r,u)}return r._=n.commands.concat(r._.map(c=>""+c)),this.postProcessPositionals(r,u,this.cmdToParseOptions(t.original),i),u}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=rn(t);return n.demanded.forEach(i=>{let[o,...a]=i.cmd;i.variadic&&(r.array.push(o),r.default[o]=[]),r.alias[o]=a,r.demand[o]=!0}),n.optional.forEach(i=>{let[o,...a]=i.cmd;i.variadic&&(r.array.push(o),r.default[o]=[]),r.alias[o]=a}),r}postProcessPositionals(t,r,n,i){let o=Object.assign({},i.getOptions());o.default=Object.assign(n.default,o.default);for(let l of Object.keys(n.alias))o.alias[l]=(o.alias[l]||[]).concat(n.alias[l]);o.array=o.array.concat(n.array),o.config={};let a=[];if(Object.keys(r).forEach(l=>{r[l].map(p=>{o.configuration["unknown-options-as-args"]&&(o.key[l]=!0),a.push(`--${l}`),a.push(p)})}),!a.length)return;let u=Object.assign({},o.configuration,{"populate--":!1}),c=this.shim.Parser.detailed(a,Object.assign({},o,{configuration:u}));if(c.error)i.getInternalMethods().getUsageInstance().fail(c.error.message,c.error);else{let l=Object.keys(r);Object.keys(r).forEach(p=>{l.push(...c.aliases[p])}),Object.keys(c.argv).forEach(p=>{l.includes(p)&&(r[p]||(r[p]=c.argv[p]),!this.isInConfigs(i,p)&&!this.isDefaulted(i,p)&&Object.prototype.hasOwnProperty.call(t,p)&&Object.prototype.hasOwnProperty.call(c.argv,p)&&(Array.isArray(t[p])||Array.isArray(c.argv[p]))?t[p]=[].concat(t[p],c.argv[p]):t[p]=c.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=xi.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(fa(r))return r(t,!0);Bm(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=Bc(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;yt(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();yt(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}};s(Hc,"CommandInstance");var Vc=Hc;function Vm(e,t,r,n){return new Vc(e,t,r,n)}s(Vm,"command");function Bm(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}s(Bm,"isCommandBuilderDefinition");function cP(e){return e.every(t=>typeof t=="string")}s(cP,"isCommandAndAliases");function fa(e){return typeof e=="function"}s(fa,"isCommandBuilderCallback");function lP(e){return typeof e=="object"}s(lP,"isCommandBuilderOptionDefinitions");function fP(e){return typeof e=="object"&&!Array.isArray(e)}s(fP,"isCommandHandlerDefinition");function nn(e={},t=()=>!0){let r={};return Ei(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}s(nn,"objFilter");function sn(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)})}s(sn,"setBlocking");function pP(e){return typeof e=="boolean"}s(pP,"isBoolean");function Gm(e,t){let r=t.y18n.__,n={},i=[];n.failFn=s(function(R){i.push(R)},"failFn");let o=null,a=null,u=!0;n.showHelpOnFail=s(function(R=!0,q){let[Z,ce]=typeof R=="string"?[!0,R]:[R,q];return e.getInternalMethods().isGlobalContext()&&(a=ce),o=ce,u=Z,n},"showHelpOnFailFn");let c=!1;n.fail=s(function(R,q){let Z=e.getInternalMethods().getLoggerInstance();if(i.length)for(let ce=i.length-1;ce>=0;--ce){let be=i[ce];if(pP(be)){if(q)throw q;if(R)throw Error(R)}else be(R,q,n)}else{if(e.getExitProcess()&&sn(!0),!c){c=!0,u&&(e.showHelp("error"),Z.error()),(R||q)&&Z.error(R||q);let ce=o||a;ce&&((R||q)&&Z.error(""),Z.error(ce))}if(q=q||new je(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=s(function(R,q,Z,ce,be=!1){Z&&(d=d.map(ge=>(ge[2]=!1,ge))),d.push([R,q||"",Z,ce,be])},"command"),n.getCommands=()=>d;let h={};n.describe=s(function(R,q){Array.isArray(R)?R.forEach(Z=>{n.describe(Z,q)}):typeof R=="object"?Object.keys(R).forEach(Z=>{n.describe(Z,R[Z])}):h[R]=q},"describe"),n.getDescriptions=()=>h;let y=[];n.epilog=M=>{y.push(M)};let v=!1,g;n.wrap=M=>{v=!0,g=M},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(v||(g=Ot(),v=!0),g);let P="__yargsString__:";n.deferY18nLookup=M=>P+M,n.help=s(function(){if(A)return A;k();let R=e.customScriptName?e.$0:t.path.basename(e.$0),q=e.getDemandedOptions(),Z=e.getDemandedCommands(),ce=e.getDeprecatedOptions(),be=e.getGroups(),ge=e.getOptions(),Ve=[];Ve=Ve.concat(Object.keys(h)),Ve=Ve.concat(Object.keys(q)),Ve=Ve.concat(Object.keys(Z)),Ve=Ve.concat(Object.keys(ge.default)),Ve=Ve.filter(ae),Ve=Object.keys(Ve.reduce((Q,Ae)=>(Ae!=="_"&&(Q[Ae]=!0),Q),{}));let Sr=n.getWrap(),xe=t.cliui({width:Sr,wrap:!!Sr});if(!p){if(l.length)l.forEach(Q=>{xe.div({text:`${Q[0].replace(/\$0/g,R)}`}),Q[1]&&xe.div({text:`${Q[1]}`,padding:[1,0,0,0]})}),xe.div();else if(d.length){let Q=null;Z._?Q=`${R} <${r("command")}>
78
+ `),o.border&&(i.unshift("."+"-".repeat(this.negatePadding(o)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(o)+2)+"'")),o.padding&&(i.unshift(...new Array(o.padding[j$]||0).fill("")),i.push(...new Array(o.padding[k$]||0).fill(""))),i.forEach((u,c)=>{r[c]||r.push([]);let l=r[c];for(let p=0;p<a;p++)l[p]===void 0&&l.push("");l.push(u)})}),r}negatePadding(t){let r=t.width||0;return t.padding&&(r-=(t.padding[oa]||0)+(t.padding[sa]||0)),t.border&&(r-=4),r}columnWidths(t){if(!this.wrap)return t.map(a=>a.width||kt.stringWidth(a.text));let r=t.length,n=this.width,i=t.map(a=>{if(a.width)return r--,n-=a.width,a.width}),o=r?Math.floor(n/r):0;return i.map((a,u)=>a===void 0?Math.max(o,N$(t[u])):a)}};s(xc,"UI");var Oc=xc;function $m(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?r:" ":""}s($m,"addBorder");function N$(e){let t=e.padding||[],r=1+(t[oa]||0)+(t[sa]||0);return e.border?r+4:r}s(N$,"_minWidth");function M$(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}s(M$,"getWindowWidth");function T$(e,t){e=e.trim();let r=kt.stringWidth(e);return r<t?" ".repeat(t-r)+e:e}s(T$,"alignRight");function q$(e,t){e=e.trim();let r=kt.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}s(q$,"alignCenter");var kt;function Pm(e,t){return kt=t,new Oc({width:(e==null?void 0:e.width)||M$(),wrap:e==null?void 0:e.wrap})}s(Pm,"cliui");var Om=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function Ec(e){return e.replace(Om,"")}s(Ec,"stripAnsi");function xm(e,t){let[r,n]=e.match(Om)||["",""];e=Ec(e);let i="";for(let o=0;o<e.length;o++)o!==0&&o%t===0&&(i+=`
79
+ `),i+=e.charAt(o);return r&&n&&(i=`${r}${i}${n}`),i}s(xm,"wrap");function Ac(e){return Pm(e,{stringWidth:s(t=>[...t].length,"stringWidth"),stripAnsi:Ec,wrap:xm})}s(Ac,"ui");import{dirname as Em,resolve as Am}from"path";import{readdirSync as D$,statSync as L$}from"fs";function Cc(e,t){let r=Am(".",e),n;for(L$(r).isDirectory()||(r=Em(r));;){if(n=t(r,D$(r)),n)return Am(r,n);if(r=Em(n=r),n===r)break}}s(Cc,"default");import{inspect as nP}from"util";import{readFileSync as iP}from"fs";import{fileURLToPath as sP}from"url";import{format as B$}from"util";import{normalize as H$,resolve as U$}from"path";function Tn(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 o=i?i[0].length:0;o<e.length;o++){let a=e.charAt(o);n&&(n=!1,a=a.toUpperCase()),o!==0&&(a==="-"||a==="_")?n=!0:a!=="-"&&a!=="_"&&(r+=a)}return r}}s(Tn,"camelCase");function aa(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let o=r.charAt(i),a=e.charAt(i);o!==a&&i>0?n+=`${t}${r.charAt(i)}`:n+=a}return n}s(aa,"decamelize");function ua(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)}s(ua,"looksLikeNumber");function Cm(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,o=[];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),o[t]||(o[t]=""),o[t]+=n}return o}s(Cm,"tokenizeArgString");var Ht;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(Ht||(Ht={}));var Vr,Rc=class Rc{constructor(t){Vr=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=Cm(t),o=typeof t=="string",a=F$(Object.assign(Object.create(null),n.alias)),u=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),c=Object.assign(Object.create(null),n.default),l=n.configObjects||[],p=n.envPrefix,f=u["populate--"],d=f?"--":"_",h=Object.create(null),y=Object.create(null),v=n.__||Vr.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:[]},$=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,A=new RegExp("^--"+u["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(_){let P=typeof _=="object"?_.key:_,j=Object.keys(_).map(function(x){return{boolean:"bools",string:"strings",number:"numbers"}[x]}).filter(Boolean).pop();j&&(g[j][P]=!0),g.arrays[P]=!0,g.keys.push(P)}),[].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(([_,P])=>{typeof P=="number"&&(g.nargs[_]=P,g.keys.push(_))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([_,P])=>{typeof P=="function"&&(g.coercions[_]=P,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(([_,P])=>{(typeof P=="boolean"||typeof P=="function")&&(g.configs[_]=P)})),xt(n.key,a,n.default,g.arrays),Object.keys(c).forEach(function(_){(g.aliases[_]||[]).forEach(function(P){c[P]=c[_]})});let k=null;xi();let C=[],I=Object.assign(Object.create(null),{_:[]}),fe={};for(let _=0;_<i.length;_++){let P=i[_],j=P.replace(/^-{3,}/,"---"),x,w,V,T,G,Je;if(P!=="--"&&/^-/.test(P)&&Ie(P))ne(P);else if(j.match(/^---+(=|$)/)){ne(P);continue}else if(P.match(/^--.+=/)||!u["short-option-groups"]&&P.match(/^-.+=/))T=P.match(/^--?([^=]+)=([\s\S]*)$/),T!==null&&Array.isArray(T)&&T.length>=3&&(te(T[1],g.arrays)?_=Fe(_,T[1],i,T[2]):te(T[1],g.nargs)!==!1?_=yt(_,T[1],i,T[2]):ee(T[1],T[2],!0));else if(P.match(A)&&u["boolean-negation"])T=P.match(A),T!==null&&Array.isArray(T)&&T.length>=2&&(w=T[1],ee(w,te(w,g.arrays)?[!1]:!1));else if(P.match(/^--.+/)||!u["short-option-groups"]&&P.match(/^-[^-]+/))T=P.match(/^--?(.+)/),T!==null&&Array.isArray(T)&&T.length>=2&&(w=T[1],te(w,g.arrays)?_=Fe(_,w,i):te(w,g.nargs)!==!1?_=yt(_,w,i):(G=i[_+1],G!==void 0&&(!G.match(/^-/)||G.match($))&&!te(w,g.bools)&&!te(w,g.counts)||/^(true|false)$/.test(G)?(ee(w,G),_++):ee(w,_e(w))));else if(P.match(/^-.\..+=/))T=P.match(/^-([^=]+)=([\s\S]*)$/),T!==null&&Array.isArray(T)&&T.length>=3&&ee(T[1],T[2]);else if(P.match(/^-.\..+/)&&!P.match($))G=i[_+1],T=P.match(/^-(.\..+)/),T!==null&&Array.isArray(T)&&T.length>=2&&(w=T[1],G!==void 0&&!G.match(/^-/)&&!te(w,g.bools)&&!te(w,g.counts)?(ee(w,G),_++):ee(w,_e(w)));else if(P.match(/^-[^-]+/)&&!P.match($)){V=P.slice(1,-1).split(""),x=!1;for(let at=0;at<V.length;at++){if(G=P.slice(at+2),V[at+1]&&V[at+1]==="="){Je=P.slice(at+3),w=V[at],te(w,g.arrays)?_=Fe(_,w,i,Je):te(w,g.nargs)!==!1?_=yt(_,w,i,Je):ee(w,Je),x=!0;break}if(G==="-"){ee(V[at],G);continue}if(/[A-Za-z]/.test(V[at])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(G)&&te(G,g.bools)===!1){ee(V[at],G),x=!0;break}if(V[at+1]&&V[at+1].match(/\W/)){ee(V[at],G),x=!0;break}else ee(V[at],_e(V[at]))}w=P.slice(-1)[0],!x&&w!=="-"&&(te(w,g.arrays)?_=Fe(_,w,i):te(w,g.nargs)!==!1?_=yt(_,w,i):(G=i[_+1],G!==void 0&&(!/^(-|--)[^-]/.test(G)||G.match($))&&!te(w,g.bools)&&!te(w,g.counts)||/^(true|false)$/.test(G)?(ee(w,G),_++):ee(w,_e(w))))}else if(P.match(/^-[0-9]$/)&&P.match($)&&te(P.slice(1),g.bools))w=P.slice(1),ee(w,_e(w));else if(P==="--"){C=i.slice(_+1);break}else if(u["halt-at-non-option"]){C=i.slice(_);break}else ne(P)}ge(I,!0),ge(I,!1),Z(I),be(),Ee(I,g.aliases,c,!0),Be(I),u["set-placeholder-key"]&&Sr(I),Object.keys(g.counts).forEach(function(_){Bt(I,_.split("."))||ee(_,0)}),f&&C.length&&(I[d]=[]),C.forEach(function(_){I[d].push(_)}),u["camel-case-expansion"]&&u["strip-dashed"]&&Object.keys(I).filter(_=>_!=="--"&&_.includes("-")).forEach(_=>{delete I[_]}),u["strip-aliased"]&&[].concat(...Object.keys(a).map(_=>a[_])).forEach(_=>{u["camel-case-expansion"]&&_.includes("-")&&delete I[_.split(".").map(P=>Tn(P)).join(".")],delete I[_]});function ne(_){let P=q("_",_);(typeof P=="string"||typeof P=="number")&&I._.push(P)}s(ne,"pushPositional");function yt(_,P,j,x){let w,V=te(P,g.nargs);if(V=typeof V!="number"||isNaN(V)?1:V,V===0)return Et(x)||(k=Error(v("Argument unexpected for: %s",P))),ee(P,_e(P)),_;let T=Et(x)?0:1;if(u["nargs-eats-options"])j.length-(_+1)+T<V&&(k=Error(v("Not enough arguments following: %s",P))),T=V;else{for(w=_+1;w<j.length&&(!j[w].match(/^-[^0-9]/)||j[w].match($)||Ie(j[w]));w++)T++;T<V&&(k=Error(v("Not enough arguments following: %s",P)))}let G=Math.min(T,V);for(!Et(x)&&G>0&&(ee(P,x),G--),w=_+1;w<G+_+1;w++)ee(P,j[w]);return _+G}s(yt,"eatNargs");function Fe(_,P,j,x){let w=[],V=x||j[_+1],T=te(P,g.nargs);if(te(P,g.bools)&&!/^(true|false)$/.test(V))w.push(!0);else if(Et(V)||Et(x)&&/^-/.test(V)&&!$.test(V)&&!Ie(V)){if(c[P]!==void 0){let G=c[P];w=Array.isArray(G)?G:[G]}}else{Et(x)||w.push(R(P,x,!0));for(let G=_+1;G<j.length&&!(!u["greedy-arrays"]&&w.length>0||T&&typeof T=="number"&&w.length>=T||(V=j[G],/^-/.test(V)&&!$.test(V)&&!Ie(V)));G++)_=G,w.push(R(P,V,o))}return typeof T=="number"&&(T&&w.length<T||isNaN(T)&&w.length===0)&&(k=Error(v("Not enough arguments following: %s",P))),ee(P,w),_}s(Fe,"eatArray");function ee(_,P,j=o){if(/-/.test(_)&&u["camel-case-expansion"]){let V=_.split(".").map(function(T){return Tn(T)}).join(".");M(_,V)}let x=R(_,P,j),w=_.split(".");Y(I,w,x),g.aliases[_]&&g.aliases[_].forEach(function(V){let T=V.split(".");Y(I,T,x)}),w.length>1&&u["dot-notation"]&&(g.aliases[w[0]]||[]).forEach(function(V){let T=V.split("."),G=[].concat(w);G.shift(),T=T.concat(G),(g.aliases[_]||[]).includes(T.join("."))||Y(I,T,x)}),te(_,g.normalize)&&!te(_,g.arrays)&&[_].concat(g.aliases[_]||[]).forEach(function(T){Object.defineProperty(fe,T,{enumerable:!0,get(){return P},set(G){P=typeof G=="string"?Vr.normalize(G):G}})})}s(ee,"setArg");function M(_,P){g.aliases[_]&&g.aliases[_].length||(g.aliases[_]=[P],h[P]=!0),g.aliases[P]&&g.aliases[P].length||M(P,_)}s(M,"addNewAlias");function R(_,P,j){j&&(P=V$(P)),(te(_,g.bools)||te(_,g.counts))&&typeof P=="string"&&(P=P==="true");let x=Array.isArray(P)?P.map(function(w){return q(_,w)}):q(_,P);return te(_,g.counts)&&(Et(x)||typeof x=="boolean")&&(x=Ic()),te(_,g.normalize)&&te(_,g.arrays)&&(Array.isArray(P)?x=P.map(w=>Vr.normalize(w)):x=Vr.normalize(P)),x}s(R,"processValue");function q(_,P){return!u["parse-positional-numbers"]&&_==="_"||!te(_,g.strings)&&!te(_,g.bools)&&!Array.isArray(P)&&(ua(P)&&u["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${P}`)))||!Et(P)&&te(_,g.numbers))&&(P=Number(P)),P}s(q,"maybeCoerceNumber");function Z(_){let P=Object.create(null);Ee(P,g.aliases,c),Object.keys(g.configs).forEach(function(j){let x=_[j]||P[j];if(x)try{let w=null,V=Vr.resolve(Vr.cwd(),x),T=g.configs[j];if(typeof T=="function"){try{w=T(V)}catch(G){w=G}if(w instanceof Error){k=w;return}}else w=Vr.require(V);ue(w)}catch(w){w.name==="PermissionDenied"?k=w:_[j]&&(k=Error(v("Invalid JSON config file: %s",x)))}})}s(Z,"setConfig");function ue(_,P){Object.keys(_).forEach(function(j){let x=_[j],w=P?P+"."+j:j;typeof x=="object"&&x!==null&&!Array.isArray(x)&&u["dot-notation"]?ue(x,w):(!Bt(I,w.split("."))||te(w,g.arrays)&&u["combine-arrays"])&&ee(w,x)})}s(ue,"setConfigObject");function be(){typeof l<"u"&&l.forEach(function(_){ue(_)})}s(be,"setConfigObjects");function ge(_,P){if(typeof p>"u")return;let j=typeof p=="string"?p:"",x=Vr.env();Object.keys(x).forEach(function(w){if(j===""||w.lastIndexOf(j,0)===0){let V=w.split("__").map(function(T,G){return G===0&&(T=T.substring(j.length)),Tn(T)});(P&&g.configs[V.join(".")]||!P)&&!Bt(_,V)&&ee(V.join("."),x[w])}})}s(ge,"applyEnvVars");function Be(_){let P,j=new Set;Object.keys(_).forEach(function(x){if(!j.has(x)&&(P=te(x,g.coercions),typeof P=="function"))try{let w=q(x,P(_[x]));[].concat(g.aliases[x]||[],x).forEach(V=>{j.add(V),_[V]=w})}catch(w){k=w}})}s(Be,"applyCoercions");function Sr(_){return g.keys.forEach(P=>{~P.indexOf(".")||typeof _[P]>"u"&&(_[P]=void 0)}),_}s(Sr,"setPlaceholderKeys");function Ee(_,P,j,x=!1){Object.keys(j).forEach(function(w){Bt(_,w.split("."))||(Y(_,w.split("."),j[w]),x&&(y[w]=!0),(P[w]||[]).forEach(function(V){Bt(_,V.split("."))||Y(_,V.split("."),j[w])}))})}s(Ee,"applyDefaultsAndAliases");function Bt(_,P){let j=_;u["dot-notation"]||(P=[P.join(".")]),P.slice(0,-1).forEach(function(w){j=j[w]||{}});let x=P[P.length-1];return typeof j!="object"?!1:x in j}s(Bt,"hasKey");function Y(_,P,j){let x=_;u["dot-notation"]||(P=[P.join(".")]),P.slice(0,-1).forEach(function(Je){Je=Im(Je),typeof x=="object"&&x[Je]===void 0&&(x[Je]={}),typeof x[Je]!="object"||Array.isArray(x[Je])?(Array.isArray(x[Je])?x[Je].push({}):x[Je]=[x[Je],{}],x=x[Je][x[Je].length-1]):x=x[Je]});let w=Im(P[P.length-1]),V=te(P.join("."),g.arrays),T=Array.isArray(j),G=u["duplicate-arguments-array"];!G&&te(w,g.nargs)&&(G=!0,(!Et(x[w])&&g.nargs[w]===1||Array.isArray(x[w])&&x[w].length===g.nargs[w])&&(x[w]=void 0)),j===Ic()?x[w]=Ic(x[w]):Array.isArray(x[w])?G&&V&&T?x[w]=u["flatten-duplicate-arrays"]?x[w].concat(j):(Array.isArray(x[w][0])?x[w]:[x[w]]).concat([j]):!G&&!!V==!!T?x[w]=j:x[w]=x[w].concat([j]):x[w]===void 0&&V?x[w]=T?j:[j]:G&&!(x[w]===void 0||te(w,g.counts)||te(w,g.bools))?x[w]=[x[w],j]:x[w]=j}s(Y,"setKey");function xt(..._){_.forEach(function(P){Object.keys(P||{}).forEach(function(j){g.aliases[j]||(g.aliases[j]=[].concat(a[j]||[]),g.aliases[j].concat(j).forEach(function(x){if(/-/.test(x)&&u["camel-case-expansion"]){let w=Tn(x);w!==j&&g.aliases[j].indexOf(w)===-1&&(g.aliases[j].push(w),h[w]=!0)}}),g.aliases[j].concat(j).forEach(function(x){if(x.length>1&&/[A-Z]/.test(x)&&u["camel-case-expansion"]){let w=aa(x,"-");w!==j&&g.aliases[j].indexOf(w)===-1&&(g.aliases[j].push(w),h[w]=!0)}}),g.aliases[j].forEach(function(x){g.aliases[x]=[j].concat(g.aliases[j].filter(function(w){return x!==w}))}))})})}s(xt,"extendAliases");function te(_,P){let j=[].concat(g.aliases[_]||[],_),x=Object.keys(P),w=j.find(V=>x.includes(V));return w?P[w]:!1}s(te,"checkAllAliases");function Ce(_){let P=Object.keys(g);return[].concat(P.map(x=>g[x])).some(function(x){return Array.isArray(x)?x.includes(_):x[_]})}s(Ce,"hasAnyFlag");function Q(_,...P){return[].concat(...P).some(function(x){let w=_.match(x);return w&&Ce(w[1])})}s(Q,"hasFlagsMatching");function Ae(_){if(_.match($)||!_.match(/^-[^-]+/))return!1;let P=!0,j,x=_.slice(1).split("");for(let w=0;w<x.length;w++){if(j=_.slice(w+2),!Ce(x[w])){P=!1;break}if(x[w+1]&&x[w+1]==="="||j==="-"||/[A-Za-z]/.test(x[w])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(j)||x[w+1]&&x[w+1].match(/\W/))break}return P}s(Ae,"hasAllShortFlags");function Ie(_){return u["unknown-options-as-args"]&&pe(_)}s(Ie,"isUnknownOptionAsArg");function pe(_){return _=_.replace(/^-{3,}/,"--"),_.match($)||Ae(_)?!1:!Q(_,/^-+([^=]+?)=[\s\S]*$/,A,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}s(pe,"isUnknownOption");function _e(_){return!te(_,g.bools)&&!te(_,g.counts)&&`${_}`in c?c[_]:qe(it(_))}s(_e,"defaultValue");function qe(_){return{[Ht.BOOLEAN]:!0,[Ht.STRING]:"",[Ht.NUMBER]:void 0,[Ht.ARRAY]:[]}[_]}s(qe,"defaultForType");function it(_){let P=Ht.BOOLEAN;return te(_,g.strings)?P=Ht.STRING:te(_,g.numbers)?P=Ht.NUMBER:te(_,g.bools)?P=Ht.BOOLEAN:te(_,g.arrays)&&(P=Ht.ARRAY),P}s(it,"guessType");function Et(_){return _===void 0}s(Et,"isUndefined");function xi(){Object.keys(g.counts).find(_=>te(_,g.arrays)?(k=Error(v("Invalid configuration: %s, opts.count excludes opts.array.",_)),!0):te(_,g.nargs)?(k=Error(v("Invalid configuration: %s, opts.count excludes opts.narg.",_)),!0):!1)}return s(xi,"checkConfiguration"),{aliases:Object.assign({},g.aliases),argv:Object.assign(fe,I),configuration:u,defaulted:Object.assign({},y),error:k,newAliases:Object.assign({},h)}}};s(Rc,"YargsParser");var ca=Rc;function F$(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 o=i+1;o<t.length;o++)if(t[i].filter(function(u){return t[o].indexOf(u)!==-1}).length){t[i]=t[i].concat(t[o]),t.splice(o,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(a,u,c){return c.indexOf(a)===u});let o=i.pop();o!==void 0&&typeof o=="string"&&(r[o]=i)}),r}s(F$,"combineAliases");function Ic(e){return e!==void 0?e+1:1}s(Ic,"increment");function Im(e){return e==="__proto__"?"___proto___":e}s(Im,"sanitizeKey");function V$(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}s(V$,"stripQuotes");import{readFileSync as z$}from"fs";var jc,kc,Nc,Rm=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,jm=(kc=(jc=process==null?void 0:process.versions)===null||jc===void 0?void 0:jc.node)!==null&&kc!==void 0?kc:(Nc=process==null?void 0:process.version)===null||Nc===void 0?void 0:Nc.slice(1);if(jm&&Number(jm.match(/^([^.]+)/)[1])<Rm)throw Error(`yargs parser supports a minimum Node.js version of ${Rm}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var G$=process?process.env:{},km=new ca({cwd:process.cwd,env:s(()=>G$,"env"),format:B$,normalize:H$,resolve:U$,require:s(e=>{if(typeof Pe<"u")return Pe(e);if(e.match(/\.json$/))return JSON.parse(z$(e,"utf8"));throw Error("only .json config files are supported in ESM")},"require")}),qs=s(function(t,r){return km.parse(t.slice(),r).argv},"Parser");qs.detailed=function(e,t){return km.parse(e.slice(),t)};qs.camelCase=Tn;qs.decamelize=aa;qs.looksLikeNumber=ua;var Mc=qs;import{basename as oP,dirname as aP,extname as uP,relative as cP,resolve as Lm}from"path";function Nm(){return W$()?0:1}s(Nm,"getProcessArgvBinIndex");function W$(){return K$()&&!process.defaultApp}s(W$,"isBundledElectronApp");function K$(){return!!process.versions.electron}s(K$,"isElectronApp");function Tc(e){return e.slice(Nm()+1)}s(Tc,"hideBin");function Mm(){return process.argv[Nm()]}s(Mm,"getProcessArgvBin");var la=class la extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,la)}};s(la,"YError");var je=la;import{readFileSync as Z$,statSync as Y$,writeFile as J$}from"fs";import{format as Q$}from"util";import{resolve as X$}from"path";var Tm={fs:{readFileSync:Z$,writeFile:J$},format:Q$,resolve:X$,exists:s(e=>{try{return Y$(e).isFile()}catch{return!1}},"exists")};var sr,Dc=class Dc{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=s(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(),sr.format.apply(sr.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(),o=s(function(){},"cb");typeof t[t.length-1]=="function"&&(o=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:o})):o();let u=[a];return~a.indexOf("%d")&&u.push(i),sr.format.apply(sr.format,u.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,o){let a=r[o+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,o=r.cb,a=this._resolveLocaleFile(n,i),u=JSON.stringify(this.cache[i],null,2);sr.fs.writeFile(a,u,"utf-8",function(c){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),o(c)})}_readLocaleFile(){let t={},r=this._resolveLocaleFile(this.directory,this.locale);try{sr.fs.readFileSync&&(t=JSON.parse(sr.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=sr.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=sr.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return sr.exists(t)}};s(Dc,"Y18N");var qc=Dc;function qm(e,t){sr=t;let r=new qc(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}}s(qm,"y18n");var eP=s(e=>qm(e,Tm),"y18n"),Dm=eP;var lP="require is not supported by ESM",Fm="loading a directory of commands is not supported yet for ESM",Ds;try{Ds=sP(import.meta.url)}catch{Ds=process.cwd()}var fP=Ds.substring(0,Ds.lastIndexOf("node_modules")),Lc={assert:{notStrictEqual:tP,strictEqual:rP},cliui:Ac,findUp:Cc,getEnv:s(e=>process.env[e],"getEnv"),inspect:nP,getCallerFile:s(()=>{throw new je(Fm)},"getCallerFile"),getProcessArgvBin:Mm,mainFilename:fP||process.cwd(),Parser:Mc,path:{basename:oP,dirname:aP,extname:uP,relative:cP,resolve:Lm},process:{argv:s(()=>process.argv,"argv"),cwd:process.cwd,emitWarning:s((e,t)=>process.emitWarning(e,t),"emitWarning"),execPath:s(()=>process.execPath,"execPath"),exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:iP,require:s(()=>{throw new je(lP)},"require"),requireDirectory:s(()=>{throw new je(Fm)},"requireDirectory"),stringWidth:s(e=>[...e].length,"stringWidth"),y18n:Dm({directory:Lm(Ds,"../../../locales"),updateFiles:!1})};function vt(e,t,r,n){r.assert.notStrictEqual(e,t,n)}s(vt,"assertNotStrictEqual");function Fc(e,t){t.assert.strictEqual(typeof e,"string")}s(Fc,"assertSingleKey");function Ei(e){return Object.keys(e)}s(Ei,"objectKeys");function ke(e){return!!e&&!!e.then&&typeof e.then=="function"}s(ke,"isPromise");function rn(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 o={cmd:i.replace(n,""),demanded:[],optional:[]};return r.forEach((a,u)=>{let c=!1;a=a.replace(/\s/g,""),/\.+[\]>]/.test(a)&&u===r.length-1&&(c=!0),/^\[/.test(a)?o.optional.push({cmd:a.replace(n,"").split("|"),variadic:c}):o.demanded.push({cmd:a.replace(n,"").split("|"),variadic:c})}),o}s(rn,"parseCommand");var pP=["first","second","third","fourth","fifth","sixth"];function F(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[rn(`cmd ${e}`),t,r]}s(n,"parseArgs");try{let i=0,[o,a,u]=n(),c=[].slice.call(a);for(;c.length&&c[c.length-1]===void 0;)c.pop();let l=u||c.length;if(l<o.demanded.length)throw new je(`Not enough arguments provided. Expected ${o.demanded.length} but received ${c.length}.`);let p=o.demanded.length+o.optional.length;if(l>p)throw new je(`Too many arguments provided. Expected max ${p} but received ${l}.`);o.demanded.forEach(f=>{let d=c.shift(),h=Vm(d);f.cmd.filter(v=>v===h||v==="*").length===0&&Bm(h,f.cmd,i),i+=1}),o.optional.forEach(f=>{if(c.length===0)return;let d=c.shift(),h=Vm(d);f.cmd.filter(v=>v===h||v==="*").length===0&&Bm(h,f.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}s(F,"argsert");function Vm(e){return Array.isArray(e)?"array":e===null?"null":typeof e}s(Vm,"guessType");function Bm(e,t,r){throw new je(`Invalid ${pP[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}s(Bm,"argumentTypeError");var Vc=class Vc{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 o=0;o<t.length;o++){if(typeof t[o]!="function")throw Error("middleware must be a function");let a=t[o];a.applyBeforeValidation=r,a.global=n}Array.prototype.push.apply(this.globalMiddleware,t)}else if(typeof t=="function"){let o=t;o.applyBeforeValidation=r,o.global=n,o.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 o=[...n[r]||[],r];return i.option?!o.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)}};s(Vc,"GlobalMiddleware");var fa=Vc;function Hm(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}s(Hm,"commandMiddlewareFactory");function qn(e,t,r,n){return r.reduce((i,o)=>{if(o.applyBeforeValidation!==n)return i;if(o.mutates){if(o.applied)return i;o.applied=!0}if(ke(i))return i.then(a=>Promise.all([a,o(a,t)])).then(([a,u])=>Object.assign(a,u));{let a=o(i,t);return ke(a)?a.then(u=>Object.assign(i,u)):Object.assign(i,a)}},e)}s(qn,"applyMiddleware");function Dn(e,t,r=n=>{throw n}){try{let n=dP(e)?e():e;return ke(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}s(Dn,"maybeAsyncResult");function dP(e){return typeof e=="function"}s(dP,"isFunction");function Bc(e){if(typeof Pe>"u")return null;for(let t=0,r=Object.keys(Pe.cache),n;t<r.length;t++)if(n=Pe.cache[r[t]],n.exports===e)return n;return null}s(Bc,"whichModule");var Ai=/(^\*)|(^\$0)/,Uc=class Uc{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 o=typeof i.visit=="function"?i.visit:a=>a;i.visit=(a,u,c)=>{let l=o(a,u,c);if(l){if(this.requireCache.has(u))return l;this.requireCache.add(u),this.addHandler(l)}return l},this.shim.requireDirectory({require:r,filename:n},t,i)}addHandler(t,r,n,i,o,a){let u=[],c=Hm(o);if(i=i||(()=>{}),Array.isArray(t))if(hP(t))[t,...u]=t;else for(let l of t)this.addHandler(l);else if(gP(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(Um(n)){this.addHandler([t].concat(u),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let l=rn(t);u=u.map(d=>rn(d).cmd);let p=!1,f=[l.cmd].concat(u).filter(d=>Ai.test(d)?(p=!0,!1):!0);f.length===0&&p&&f.push("$0"),p&&(l.cmd=f[0],u=f.slice(1),t=t.replace(Ai,l.cmd)),u.forEach(d=>{this.aliasMap[d]=l.cmd}),r!==!1&&this.usage.command(t,r,p,u,a),this.handlers[l.cmd]={original:t,description:r,handler:i,builder:n||{},middlewares:c,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,o,a){let u=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,c=r.getInternalMethods().getContext(),l=c.commands.slice(),p=!t;t&&(c.commands.push(t),c.fullCommands.push(u.original));let f=this.applyBuilderUpdateUsageAndParse(p,u,r,n.aliases,l,i,o,a);return ke(f)?f.then(d=>this.applyMiddlewareAndGetResult(p,u,d.innerArgv,c,o,d.aliases,r)):this.applyMiddlewareAndGetResult(p,u,f.innerArgv,c,o,f.aliases,r)}applyBuilderUpdateUsageAndParse(t,r,n,i,o,a,u,c){let l=r.builder,p=n;if(pa(l)){n.getInternalMethods().getUsageInstance().freeze();let f=l(n.getInternalMethods().reset(i),c);if(ke(f))return f.then(d=>(p=Gm(d)?d:n,this.parseAndUpdateUsage(t,r,p,o,a,u)))}else mP(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,o,a,u)}parseAndUpdateUsage(t,r,n,i,o,a){t&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,r),r.description);let u=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,o,a);return ke(u)?u.then(c=>({aliases:n.parsed.aliases,innerArgv:c})):{aliases:n.parsed.aliases,innerArgv:u}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,r){let n=Ai.test(r.original)?r.original.replace(Ai,"").trim():r.original,i=t.filter(o=>!Ai.test(o));return i.push(n),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,r,n,i,o,a,u,c){if(!a.getInternalMethods().getHasOutput()){let l=a.getInternalMethods().runValidation(o,c,a.parsed.error,t);n=Dn(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=qn(n,a,u,!1),n=Dn(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,o,a,u){let c={};if(o)return n;u.getInternalMethods().getHasOutput()||(c=this.populatePositionals(r,n,i,u));let l=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),p=qn(n,u,l,!0);return ke(p)?p.then(f=>this.handleValidationAndGetResult(t,r,f,i,a,u,l,c)):this.handleValidationAndGetResult(t,r,p,i,a,u,l,c)}populatePositionals(t,r,n,i){r._=r._.slice(n.commands.length);let o=t.demanded.slice(0),a=t.optional.slice(0),u={};for(this.validation.positionalCount(o.length,r._.length);o.length;){let c=o.shift();this.populatePositional(c,r,u)}for(;a.length;){let c=a.shift();this.populatePositional(c,r,u)}return r._=n.commands.concat(r._.map(c=>""+c)),this.postProcessPositionals(r,u,this.cmdToParseOptions(t.original),i),u}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=rn(t);return n.demanded.forEach(i=>{let[o,...a]=i.cmd;i.variadic&&(r.array.push(o),r.default[o]=[]),r.alias[o]=a,r.demand[o]=!0}),n.optional.forEach(i=>{let[o,...a]=i.cmd;i.variadic&&(r.array.push(o),r.default[o]=[]),r.alias[o]=a}),r}postProcessPositionals(t,r,n,i){let o=Object.assign({},i.getOptions());o.default=Object.assign(n.default,o.default);for(let l of Object.keys(n.alias))o.alias[l]=(o.alias[l]||[]).concat(n.alias[l]);o.array=o.array.concat(n.array),o.config={};let a=[];if(Object.keys(r).forEach(l=>{r[l].map(p=>{o.configuration["unknown-options-as-args"]&&(o.key[l]=!0),a.push(`--${l}`),a.push(p)})}),!a.length)return;let u=Object.assign({},o.configuration,{"populate--":!1}),c=this.shim.Parser.detailed(a,Object.assign({},o,{configuration:u}));if(c.error)i.getInternalMethods().getUsageInstance().fail(c.error.message,c.error);else{let l=Object.keys(r);Object.keys(r).forEach(p=>{l.push(...c.aliases[p])}),Object.keys(c.argv).forEach(p=>{l.includes(p)&&(r[p]||(r[p]=c.argv[p]),!this.isInConfigs(i,p)&&!this.isDefaulted(i,p)&&Object.prototype.hasOwnProperty.call(t,p)&&Object.prototype.hasOwnProperty.call(c.argv,p)&&(Array.isArray(t[p])||Array.isArray(c.argv[p]))?t[p]=[].concat(t[p],c.argv[p]):t[p]=c.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=Ai.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(pa(r))return r(t,!0);Um(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}moduleName(t){let r=Bc(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;vt(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();vt(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}};s(Uc,"CommandInstance");var Hc=Uc;function zm(e,t,r,n){return new Hc(e,t,r,n)}s(zm,"command");function Um(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}s(Um,"isCommandBuilderDefinition");function hP(e){return e.every(t=>typeof t=="string")}s(hP,"isCommandAndAliases");function pa(e){return typeof e=="function"}s(pa,"isCommandBuilderCallback");function mP(e){return typeof e=="object"}s(mP,"isCommandBuilderOptionDefinitions");function gP(e){return typeof e=="object"&&!Array.isArray(e)}s(gP,"isCommandHandlerDefinition");function nn(e={},t=()=>!0){let r={};return Ei(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}s(nn,"objFilter");function sn(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)})}s(sn,"setBlocking");function yP(e){return typeof e=="boolean"}s(yP,"isBoolean");function Km(e,t){let r=t.y18n.__,n={},i=[];n.failFn=s(function(R){i.push(R)},"failFn");let o=null,a=null,u=!0;n.showHelpOnFail=s(function(R=!0,q){let[Z,ue]=typeof R=="string"?[!0,R]:[R,q];return e.getInternalMethods().isGlobalContext()&&(a=ue),o=ue,u=Z,n},"showHelpOnFailFn");let c=!1;n.fail=s(function(R,q){let Z=e.getInternalMethods().getLoggerInstance();if(i.length)for(let ue=i.length-1;ue>=0;--ue){let be=i[ue];if(yP(be)){if(q)throw q;if(R)throw Error(R)}else be(R,q,n)}else{if(e.getExitProcess()&&sn(!0),!c){c=!0,u&&(e.showHelp("error"),Z.error()),(R||q)&&Z.error(R||q);let ue=o||a;ue&&((R||q)&&Z.error(""),Z.error(ue))}if(q=q||new je(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=s(function(R,q,Z,ue,be=!1){Z&&(d=d.map(ge=>(ge[2]=!1,ge))),d.push([R,q||"",Z,ue,be])},"command"),n.getCommands=()=>d;let h={};n.describe=s(function(R,q){Array.isArray(R)?R.forEach(Z=>{n.describe(Z,q)}):typeof R=="object"?Object.keys(R).forEach(Z=>{n.describe(Z,R[Z])}):h[R]=q},"describe"),n.getDescriptions=()=>h;let y=[];n.epilog=M=>{y.push(M)};let v=!1,g;n.wrap=M=>{v=!0,g=M},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(v||(g=yt(),v=!0),g);let $="__yargsString__:";n.deferY18nLookup=M=>$+M,n.help=s(function(){if(C)return C;k();let R=e.customScriptName?e.$0:t.path.basename(e.$0),q=e.getDemandedOptions(),Z=e.getDemandedCommands(),ue=e.getDeprecatedOptions(),be=e.getGroups(),ge=e.getOptions(),Be=[];Be=Be.concat(Object.keys(h)),Be=Be.concat(Object.keys(q)),Be=Be.concat(Object.keys(Z)),Be=Be.concat(Object.keys(ge.default)),Be=Be.filter(fe),Be=Object.keys(Be.reduce((Q,Ae)=>(Ae!=="_"&&(Q[Ae]=!0),Q),{}));let Sr=n.getWrap(),Ee=t.cliui({width:Sr,wrap:!!Sr});if(!p){if(l.length)l.forEach(Q=>{Ee.div({text:`${Q[0].replace(/\$0/g,R)}`}),Q[1]&&Ee.div({text:`${Q[1]}`,padding:[1,0,0,0]})}),Ee.div();else if(d.length){let Q=null;Z._?Q=`${R} <${r("command")}>
80
80
  `:Q=`${R} [${r("command")}]
81
- `,xe.div(`${Q}`)}}if(d.length>1||d.length===1&&!d[0][2]){xe.div(r("Commands:"));let Q=e.getInternalMethods().getContext(),Ae=Q.commands.length?`${Q.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(d=d.sort((pe,_e)=>pe[0].localeCompare(_e[0])));let Ie=R?`${R} `:"";d.forEach(pe=>{let _e=`${Ie}${Ae}${pe[0].replace(/^\$0 ?/,"")}`;xe.span({text:_e,padding:[0,2,0,2],width:C(d,Sr,`${R}${Ae}`)+4},{text:pe[1]});let qe=[];pe[2]&&qe.push(`[${r("default")}]`),pe[3]&&pe[3].length&&qe.push(`[${r("aliases:")} ${pe[3].join(", ")}]`),pe[4]&&(typeof pe[4]=="string"?qe.push(`[${r("deprecated: %s",pe[4])}]`):qe.push(`[${r("deprecated")}]`)),qe.length?xe.div({text:qe.join(" "),padding:[0,0,0,2],align:"right"}):xe.div()}),xe.div()}let Vt=(Object.keys(ge.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);Ve=Ve.filter(Q=>!e.parsed.newAliases[Q]&&Vt.every(Ae=>(ge.alias[Ae]||[]).indexOf(Q)===-1));let Y=r("Options:");be[Y]||(be[Y]=[]),I(Ve,ge.alias,be,Y);let Et=s(Q=>/^--/.test(pa(Q)),"isLongSwitch"),te=Object.keys(be).filter(Q=>be[Q].length>0).map(Q=>{let Ae=be[Q].filter(ae).map(Ie=>{if(Vt.includes(Ie))return Ie;for(let pe=0,_e;(_e=Vt[pe])!==void 0;pe++)if((ge.alias[_e]||[]).includes(Ie))return _e;return Ie});return{groupName:Q,normalizedKeys:Ae}}).filter(({normalizedKeys:Q})=>Q.length>0).map(({groupName:Q,normalizedKeys:Ae})=>{let Ie=Ae.reduce((pe,_e)=>(pe[_e]=[_e].concat(ge.alias[_e]||[]).map(qe=>Q===n.getPositionalGroupName()?qe:(/^[0-9]$/.test(qe)?ge.boolean.includes(_e)?"-":"--":qe.length>1?"--":"-")+qe).sort((qe,it)=>Et(qe)===Et(it)?0:Et(qe)?1:-1).join(", "),pe),{});return{groupName:Q,normalizedKeys:Ae,switches:Ie}});if(te.filter(({groupName:Q})=>Q!==n.getPositionalGroupName()).some(({normalizedKeys:Q,switches:Ae})=>!Q.every(Ie=>Et(Ae[Ie])))&&te.filter(({groupName:Q})=>Q!==n.getPositionalGroupName()).forEach(({normalizedKeys:Q,switches:Ae})=>{Q.forEach(Ie=>{Et(Ae[Ie])&&(Ae[Ie]=dP(Ae[Ie],4))})}),te.forEach(({groupName:Q,normalizedKeys:Ae,switches:Ie})=>{xe.div(Q),Ae.forEach(pe=>{let _e=Ie[pe],qe=h[pe]||"",it=null;qe.includes(P)&&(qe=r(qe.substring(P.length))),ge.boolean.includes(pe)&&(it=`[${r("boolean")}]`),ge.count.includes(pe)&&(it=`[${r("count")}]`),ge.string.includes(pe)&&(it=`[${r("string")}]`),ge.normalize.includes(pe)&&(it=`[${r("string")}]`),ge.array.includes(pe)&&(it=`[${r("array")}]`),ge.number.includes(pe)&&(it=`[${r("number")}]`);let xt=s($=>typeof $=="string"?`[${r("deprecated: %s",$)}]`:`[${r("deprecated")}]`,"deprecatedExtra"),Oi=[pe in ce?xt(ce[pe]):null,it,pe in q?`[${r("required")}]`:null,ge.choices&&ge.choices[pe]?`[${r("choices:")} ${n.stringifiedValues(ge.choices[pe])}]`:null,ue(ge.default[pe],ge.defaultDescription[pe])].filter(Boolean).join(" ");xe.span({text:pa(_e),padding:[0,2,0,2+Um(_e)],width:C(Ie,Sr)+4},qe);let _=e.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;Oi&&!_?xe.div({text:Oi,padding:[0,0,0,2],align:"right"}):xe.div()}),xe.div()}),f.length&&(xe.div(r("Examples:")),f.forEach(Q=>{Q[0]=Q[0].replace(/\$0/g,R)}),f.forEach(Q=>{Q[1]===""?xe.div({text:Q[0],padding:[0,2,0,2]}):xe.div({text:Q[0],padding:[0,2,0,2],width:C(f,Sr)+4},{text:Q[1]})}),xe.div()),y.length>0){let Q=y.map(Ae=>Ae.replace(/\$0/g,R)).join(`
82
- `);xe.div(`${Q}
83
- `)}return xe.toString().replace(/\s*$/,"")},"help");function C(M,R,q){let Z=0;return Array.isArray(M)||(M=Object.values(M).map(ce=>[ce])),M.forEach(ce=>{Z=Math.max(t.stringWidth(q?`${q} ${pa(ce[0])}`:pa(ce[0]))+Um(ce[0]),Z)}),R&&(Z=Math.min(Z,parseInt((R*.5).toString(),10))),Z}s(C,"maxWidth");function k(){let M=e.getDemandedOptions(),R=e.getOptions();(Object.keys(R.alias)||[]).forEach(q=>{R.alias[q].forEach(Z=>{h[Z]&&n.describe(q,h[Z]),Z in M&&e.demandOption(q,M[Z]),R.boolean.includes(Z)&&e.boolean(q),R.count.includes(Z)&&e.count(q),R.string.includes(Z)&&e.string(q),R.normalize.includes(Z)&&e.normalize(q),R.array.includes(Z)&&e.array(q),R.number.includes(Z)&&e.number(q)})})}s(k,"normalizeAliases");let A;n.cacheHelpMessage=function(){A=this.help()},n.clearCachedHelpMessage=function(){A=void 0},n.hasCachedHelpMessage=function(){return!!A};function I(M,R,q,Z){let ce=[],be=null;return Object.keys(q).forEach(ge=>{ce=ce.concat(q[ge])}),M.forEach(ge=>{be=[ge].concat(R[ge]),be.some(Ve=>ce.indexOf(Ve)!==-1)||q[Z].push(ge)}),ce}s(I,"addUngroupedKeys");function ae(M){return e.getOptions().hiddenOptions.indexOf(M)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}s(ae,"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=s(function(R,q){let Z="",ce=q||", ",be=[].concat(R);return!R||!be.length||be.forEach(ge=>{Z.length&&(Z+=ce),Z+=JSON.stringify(ge)}),Z},"stringifiedValues");function ue(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}]`}s(ue,"defaultString");function Ot(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}s(Ot,"windowWidth");let Fe=null;n.version=M=>{Fe=M},n.showVersion=M=>{let R=e.getInternalMethods().getLoggerInstance();M||(M="error"),(typeof M=="function"?M:R[M])(Fe)},n.reset=s(function(R){return o=null,c=!1,l=[],p=!1,y=[],f=[],d=[],h=nn(h,q=>!R[q]),n},"reset");let ee=[];return n.freeze=s(function(){ee.push({failMessage:o,failureOutput:c,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h})},"freeze"),n.unfreeze=s(function(R=!1){let q=ee.pop();q&&(R?(h={...q.descriptions,...h},d=[...q.commands,...d],l=[...q.usages,...l],f=[...q.examples,...f],y=[...q.epilogs,...y]):{failMessage:o,failureOutput:c,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h}=q)},"unfreeze"),n}s(Gm,"usage");function Uc(e){return typeof e=="object"}s(Uc,"isIndentedText");function dP(e,t){return Uc(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}s(dP,"addIndentation");function Um(e){return Uc(e)?e.indentation:0}s(Um,"getIndentation");function pa(e){return Uc(e)?e.text:e}s(pa,"getText");var zm=`###-begin-{{app_name}}-completions-###
81
+ `,Ee.div(`${Q}`)}}if(d.length>1||d.length===1&&!d[0][2]){Ee.div(r("Commands:"));let Q=e.getInternalMethods().getContext(),Ae=Q.commands.length?`${Q.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(d=d.sort((pe,_e)=>pe[0].localeCompare(_e[0])));let Ie=R?`${R} `:"";d.forEach(pe=>{let _e=`${Ie}${Ae}${pe[0].replace(/^\$0 ?/,"")}`;Ee.span({text:_e,padding:[0,2,0,2],width:A(d,Sr,`${R}${Ae}`)+4},{text:pe[1]});let qe=[];pe[2]&&qe.push(`[${r("default")}]`),pe[3]&&pe[3].length&&qe.push(`[${r("aliases:")} ${pe[3].join(", ")}]`),pe[4]&&(typeof pe[4]=="string"?qe.push(`[${r("deprecated: %s",pe[4])}]`):qe.push(`[${r("deprecated")}]`)),qe.length?Ee.div({text:qe.join(" "),padding:[0,0,0,2],align:"right"}):Ee.div()}),Ee.div()}let Bt=(Object.keys(ge.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);Be=Be.filter(Q=>!e.parsed.newAliases[Q]&&Bt.every(Ae=>(ge.alias[Ae]||[]).indexOf(Q)===-1));let Y=r("Options:");be[Y]||(be[Y]=[]),I(Be,ge.alias,be,Y);let xt=s(Q=>/^--/.test(da(Q)),"isLongSwitch"),te=Object.keys(be).filter(Q=>be[Q].length>0).map(Q=>{let Ae=be[Q].filter(fe).map(Ie=>{if(Bt.includes(Ie))return Ie;for(let pe=0,_e;(_e=Bt[pe])!==void 0;pe++)if((ge.alias[_e]||[]).includes(Ie))return _e;return Ie});return{groupName:Q,normalizedKeys:Ae}}).filter(({normalizedKeys:Q})=>Q.length>0).map(({groupName:Q,normalizedKeys:Ae})=>{let Ie=Ae.reduce((pe,_e)=>(pe[_e]=[_e].concat(ge.alias[_e]||[]).map(qe=>Q===n.getPositionalGroupName()?qe:(/^[0-9]$/.test(qe)?ge.boolean.includes(_e)?"-":"--":qe.length>1?"--":"-")+qe).sort((qe,it)=>xt(qe)===xt(it)?0:xt(qe)?1:-1).join(", "),pe),{});return{groupName:Q,normalizedKeys:Ae,switches:Ie}});if(te.filter(({groupName:Q})=>Q!==n.getPositionalGroupName()).some(({normalizedKeys:Q,switches:Ae})=>!Q.every(Ie=>xt(Ae[Ie])))&&te.filter(({groupName:Q})=>Q!==n.getPositionalGroupName()).forEach(({normalizedKeys:Q,switches:Ae})=>{Q.forEach(Ie=>{xt(Ae[Ie])&&(Ae[Ie]=vP(Ae[Ie],4))})}),te.forEach(({groupName:Q,normalizedKeys:Ae,switches:Ie})=>{Ee.div(Q),Ae.forEach(pe=>{let _e=Ie[pe],qe=h[pe]||"",it=null;qe.includes($)&&(qe=r(qe.substring($.length))),ge.boolean.includes(pe)&&(it=`[${r("boolean")}]`),ge.count.includes(pe)&&(it=`[${r("count")}]`),ge.string.includes(pe)&&(it=`[${r("string")}]`),ge.normalize.includes(pe)&&(it=`[${r("string")}]`),ge.array.includes(pe)&&(it=`[${r("array")}]`),ge.number.includes(pe)&&(it=`[${r("number")}]`);let Et=s(P=>typeof P=="string"?`[${r("deprecated: %s",P)}]`:`[${r("deprecated")}]`,"deprecatedExtra"),xi=[pe in ue?Et(ue[pe]):null,it,pe in q?`[${r("required")}]`:null,ge.choices&&ge.choices[pe]?`[${r("choices:")} ${n.stringifiedValues(ge.choices[pe])}]`:null,ne(ge.default[pe],ge.defaultDescription[pe])].filter(Boolean).join(" ");Ee.span({text:da(_e),padding:[0,2,0,2+Wm(_e)],width:A(Ie,Sr)+4},qe);let _=e.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;xi&&!_?Ee.div({text:xi,padding:[0,0,0,2],align:"right"}):Ee.div()}),Ee.div()}),f.length&&(Ee.div(r("Examples:")),f.forEach(Q=>{Q[0]=Q[0].replace(/\$0/g,R)}),f.forEach(Q=>{Q[1]===""?Ee.div({text:Q[0],padding:[0,2,0,2]}):Ee.div({text:Q[0],padding:[0,2,0,2],width:A(f,Sr)+4},{text:Q[1]})}),Ee.div()),y.length>0){let Q=y.map(Ae=>Ae.replace(/\$0/g,R)).join(`
82
+ `);Ee.div(`${Q}
83
+ `)}return Ee.toString().replace(/\s*$/,"")},"help");function A(M,R,q){let Z=0;return Array.isArray(M)||(M=Object.values(M).map(ue=>[ue])),M.forEach(ue=>{Z=Math.max(t.stringWidth(q?`${q} ${da(ue[0])}`:da(ue[0]))+Wm(ue[0]),Z)}),R&&(Z=Math.min(Z,parseInt((R*.5).toString(),10))),Z}s(A,"maxWidth");function k(){let M=e.getDemandedOptions(),R=e.getOptions();(Object.keys(R.alias)||[]).forEach(q=>{R.alias[q].forEach(Z=>{h[Z]&&n.describe(q,h[Z]),Z in M&&e.demandOption(q,M[Z]),R.boolean.includes(Z)&&e.boolean(q),R.count.includes(Z)&&e.count(q),R.string.includes(Z)&&e.string(q),R.normalize.includes(Z)&&e.normalize(q),R.array.includes(Z)&&e.array(q),R.number.includes(Z)&&e.number(q)})})}s(k,"normalizeAliases");let C;n.cacheHelpMessage=function(){C=this.help()},n.clearCachedHelpMessage=function(){C=void 0},n.hasCachedHelpMessage=function(){return!!C};function I(M,R,q,Z){let ue=[],be=null;return Object.keys(q).forEach(ge=>{ue=ue.concat(q[ge])}),M.forEach(ge=>{be=[ge].concat(R[ge]),be.some(Be=>ue.indexOf(Be)!==-1)||q[Z].push(ge)}),ue}s(I,"addUngroupedKeys");function fe(M){return e.getOptions().hiddenOptions.indexOf(M)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}s(fe,"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=s(function(R,q){let Z="",ue=q||", ",be=[].concat(R);return!R||!be.length||be.forEach(ge=>{Z.length&&(Z+=ue),Z+=JSON.stringify(ge)}),Z},"stringifiedValues");function ne(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}]`}s(ne,"defaultString");function yt(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}s(yt,"windowWidth");let Fe=null;n.version=M=>{Fe=M},n.showVersion=M=>{let R=e.getInternalMethods().getLoggerInstance();M||(M="error"),(typeof M=="function"?M:R[M])(Fe)},n.reset=s(function(R){return o=null,c=!1,l=[],p=!1,y=[],f=[],d=[],h=nn(h,q=>!R[q]),n},"reset");let ee=[];return n.freeze=s(function(){ee.push({failMessage:o,failureOutput:c,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h})},"freeze"),n.unfreeze=s(function(R=!1){let q=ee.pop();q&&(R?(h={...q.descriptions,...h},d=[...q.commands,...d],l=[...q.usages,...l],f=[...q.examples,...f],y=[...q.epilogs,...y]):{failMessage:o,failureOutput:c,usages:l,usageDisabled:p,epilogs:y,examples:f,commands:d,descriptions:h}=q)},"unfreeze"),n}s(Km,"usage");function zc(e){return typeof e=="object"}s(zc,"isIndentedText");function vP(e,t){return zc(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}s(vP,"addIndentation");function Wm(e){return zc(e)?e.indentation:0}s(Wm,"getIndentation");function da(e){return zc(e)?e.text:e}s(da,"getText");var Zm=`###-begin-{{app_name}}-completions-###
84
84
  #
85
85
  # yargs command completion script
86
86
  #
@@ -108,7 +108,7 @@ _{{app_name}}_yargs_completions()
108
108
  }
109
109
  complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}
110
110
  ###-end-{{app_name}}-completions-###
111
- `,Wm=`#compdef {{app_name}}
111
+ `,Ym=`#compdef {{app_name}}
112
112
  ###-begin-{{app_name}}-completions-###
113
113
  #
114
114
  # yargs command completion script
@@ -127,22 +127,22 @@ _{{app_name}}_yargs_completions()
127
127
  }
128
128
  compdef _{{app_name}}_yargs_completions {{app_name}}
129
129
  ###-end-{{app_name}}-completions-###
130
- `;var zc=class zc{constructor(t,r,n,i){var o,a,u;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=(u=((o=this.shim.getEnv("SHELL"))===null||o===void 0?void 0:o.includes("zsh"))||((a=this.shim.getEnv("ZSH_NAME"))===null||a===void 0?void 0:a.includes("zsh")))!==null&&u!==void 0?u:!1}defaultCompletion(t,r,n,i){let o=this.command.getCommandHandlers();for(let u=0,c=t.length;u<c;++u)if(o[t[u]]&&o[t[u]].builder){let l=o[t[u]].builder;if(fa(l)){this.indexAfterLastReset=u+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(o=>{let a=rn(o[0]).cmd;if(r.indexOf(a)===-1)if(!this.zshShell)t.push(a);else{let u=o[1]||"";t.push(a.replace(/:/g,"\\:")+":"+u)}})}optionCompletions(t,r,n,i){if((i.match(/^-/)||i===""&&t.length===0)&&!this.previousArgHasChoices(r)){let o=this.yargs.getOptions(),a=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(o.key).forEach(u=>{let c=!!o.configuration["boolean-negation"]&&o.boolean.includes(u);!a.includes(u)&&!o.hiddenOptions.includes(u)&&!this.argsContainKey(r,u,c)&&this.completeOptionKey(u,t,i,c&&!!o.default[u])})}}choicesFromOptionsCompletions(t,r,n,i){if(this.previousArgHasChoices(r)){let o=this.getPreviousArgChoices(r);o&&o.length>0&&t.push(...o.map(a=>a.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(t,r,n,i){if(i===""&&t.length>0&&this.previousArgHasChoices(r))return;let o=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],a=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),u=o[n._.length-a-1];if(!u)return;let c=this.yargs.getOptions().choices[u]||[];for(let l of c)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(/^-+/,""),o=this.yargs.getOptions(),a=[i,...this.yargs.getAliases()[i]||[]],u;for(let c of a)if(Object.prototype.hasOwnProperty.call(o.key,c)&&Array.isArray(o.choices[c])){u=o.choices[c];break}if(u)return u.filter(c=>!n||c.startsWith(n))}previousArgHasChoices(t){let r=this.getPreviousArgChoices(t);return r!==void 0&&r.length>0}argsContainKey(t,r,n){let i=s(o=>t.indexOf((/^[^0-9]$/.test(o)?"-":"--")+o)!==-1,"argsContains");if(i(r)||n&&i(`no-${r}`))return!0;if(this.aliases){for(let o of this.aliases[r])if(i(o))return!0}return!1}completeOptionKey(t,r,n,i){var o,a,u,c;let l=t;if(this.zshShell){let h=this.usage.getDescriptions(),y=(a=(o=this===null||this===void 0?void 0:this.aliases)===null||o===void 0?void 0:o[t])===null||a===void 0?void 0:a.find(P=>{let C=h[P];return typeof C=="string"&&C.length>0}),v=y?h[y]:void 0,g=(c=(u=h[t])!==null&&u!==void 0?u:v)!==null&&c!==void 0?c:"";l=`${t.replace(/:/g,"\\:")}:${g.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let p=s(h=>/^--/.test(h),"startsByTwoDashes"),f=s(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(yt(this.customCompletionFunction,null,this.shim),mP(this.customCompletionFunction)){let o=this.customCompletionFunction(n,r);return ke(o)?o.then(a=>{this.shim.process.nextTick(()=>{i(null,a)})}).catch(a=>{this.shim.process.nextTick(()=>{i(a,void 0)})}):i(null,o)}else return gP(this.customCompletionFunction)?this.customCompletionFunction(n,r,(o=i)=>this.defaultCompletion(t,r,n,o),o=>{i(null,o)}):this.customCompletionFunction(n,r,o=>{i(null,o)})}getCompletion(t,r){let n=t.length?t[t.length-1]:"",i=this.yargs.parse(t,!0),o=this.customCompletionFunction?a=>this.customCompletion(t,a,n,r):a=>this.defaultCompletion(t,a,n,r);return ke(i)?i.then(o):o(i)}generateCompletionScript(t,r){let n=this.zshShell?Wm:zm,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}};s(zc,"Completion");var Gc=zc;function Km(e,t,r,n){return new Gc(e,t,r,n)}s(Km,"completion");function mP(e){return e.length<3}s(mP,"isSyncCompletionFunction");function gP(e){return e.length>3}s(gP,"isFallbackCompletionFunction");function Zm(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]}s(Zm,"levenshtein");var Ym=["$0","--","_"];function Jm(e,t,r){let n=r.y18n.__,i=r.y18n.__n,o={};o.nonOptionCount=s(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"),o.positionalCount=s(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"),o.requiredArguments=s(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 v=y.length?`
130
+ `;var Wc=class Wc{constructor(t,r,n,i){var o,a,u;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=(u=((o=this.shim.getEnv("SHELL"))===null||o===void 0?void 0:o.includes("zsh"))||((a=this.shim.getEnv("ZSH_NAME"))===null||a===void 0?void 0:a.includes("zsh")))!==null&&u!==void 0?u:!1}defaultCompletion(t,r,n,i){let o=this.command.getCommandHandlers();for(let u=0,c=t.length;u<c;++u)if(o[t[u]]&&o[t[u]].builder){let l=o[t[u]].builder;if(pa(l)){this.indexAfterLastReset=u+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(o=>{let a=rn(o[0]).cmd;if(r.indexOf(a)===-1)if(!this.zshShell)t.push(a);else{let u=o[1]||"";t.push(a.replace(/:/g,"\\:")+":"+u)}})}optionCompletions(t,r,n,i){if((i.match(/^-/)||i===""&&t.length===0)&&!this.previousArgHasChoices(r)){let o=this.yargs.getOptions(),a=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(o.key).forEach(u=>{let c=!!o.configuration["boolean-negation"]&&o.boolean.includes(u);!a.includes(u)&&!o.hiddenOptions.includes(u)&&!this.argsContainKey(r,u,c)&&this.completeOptionKey(u,t,i,c&&!!o.default[u])})}}choicesFromOptionsCompletions(t,r,n,i){if(this.previousArgHasChoices(r)){let o=this.getPreviousArgChoices(r);o&&o.length>0&&t.push(...o.map(a=>a.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(t,r,n,i){if(i===""&&t.length>0&&this.previousArgHasChoices(r))return;let o=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],a=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),u=o[n._.length-a-1];if(!u)return;let c=this.yargs.getOptions().choices[u]||[];for(let l of c)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(/^-+/,""),o=this.yargs.getOptions(),a=[i,...this.yargs.getAliases()[i]||[]],u;for(let c of a)if(Object.prototype.hasOwnProperty.call(o.key,c)&&Array.isArray(o.choices[c])){u=o.choices[c];break}if(u)return u.filter(c=>!n||c.startsWith(n))}previousArgHasChoices(t){let r=this.getPreviousArgChoices(t);return r!==void 0&&r.length>0}argsContainKey(t,r,n){let i=s(o=>t.indexOf((/^[^0-9]$/.test(o)?"-":"--")+o)!==-1,"argsContains");if(i(r)||n&&i(`no-${r}`))return!0;if(this.aliases){for(let o of this.aliases[r])if(i(o))return!0}return!1}completeOptionKey(t,r,n,i){var o,a,u,c;let l=t;if(this.zshShell){let h=this.usage.getDescriptions(),y=(a=(o=this===null||this===void 0?void 0:this.aliases)===null||o===void 0?void 0:o[t])===null||a===void 0?void 0:a.find($=>{let A=h[$];return typeof A=="string"&&A.length>0}),v=y?h[y]:void 0,g=(c=(u=h[t])!==null&&u!==void 0?u:v)!==null&&c!==void 0?c:"";l=`${t.replace(/:/g,"\\:")}:${g.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let p=s(h=>/^--/.test(h),"startsByTwoDashes"),f=s(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(vt(this.customCompletionFunction,null,this.shim),_P(this.customCompletionFunction)){let o=this.customCompletionFunction(n,r);return ke(o)?o.then(a=>{this.shim.process.nextTick(()=>{i(null,a)})}).catch(a=>{this.shim.process.nextTick(()=>{i(a,void 0)})}):i(null,o)}else return SP(this.customCompletionFunction)?this.customCompletionFunction(n,r,(o=i)=>this.defaultCompletion(t,r,n,o),o=>{i(null,o)}):this.customCompletionFunction(n,r,o=>{i(null,o)})}getCompletion(t,r){let n=t.length?t[t.length-1]:"",i=this.yargs.parse(t,!0),o=this.customCompletionFunction?a=>this.customCompletion(t,a,n,r):a=>this.defaultCompletion(t,a,n,r);return ke(i)?i.then(o):o(i)}generateCompletionScript(t,r){let n=this.zshShell?Ym:Zm,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}};s(Wc,"Completion");var Gc=Wc;function Jm(e,t,r,n){return new Gc(e,t,r,n)}s(Jm,"completion");function _P(e){return e.length<3}s(_P,"isSyncCompletionFunction");function SP(e){return e.length>3}s(SP,"isFallbackCompletionFunction");function Qm(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]}s(Qm,"levenshtein");var Xm=["$0","--","_"];function eg(e,t,r){let n=r.y18n.__,i=r.y18n.__n,o={};o.nonOptionCount=s(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"),o.positionalCount=s(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"),o.requiredArguments=s(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 $=h[g];$&&y.indexOf($)<0&&y.push($)}let v=y.length?`
131
131
  ${y.join(`
132
- `)}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(h).length,Object.keys(h).join(", ")+v))}},"requiredArguments"),o.unknownArguments=s(function(f,d,h,y,v=!0){var g;let P=e.getInternalMethods().getCommandInstance().getCommands(),C=[],k=e.getInternalMethods().getContext();if(Object.keys(f).forEach(A=>{!Ym.includes(A)&&!Object.prototype.hasOwnProperty.call(h,A)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),A)&&!o.isValidAndSomeAliasIsNotNew(A,d)&&C.push(A)}),v&&(k.commands.length>0||P.length>0||y)&&f._.slice(k.commands.length).forEach(A=>{P.includes(""+A)||C.push(""+A)}),v){let I=((g=e.getDemandedCommands()._)===null||g===void 0?void 0:g.max)||0,ae=k.commands.length+I;ae<f._.length&&f._.slice(ae).forEach(ue=>{ue=String(ue),!k.commands.includes(ue)&&!C.includes(ue)&&C.push(ue)})}C.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",C.length,C.map(A=>A.trim()?A:`"${A}"`).join(", ")))},"unknownArguments"),o.unknownCommands=s(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(v=>{d.includes(""+v)||h.push(""+v)}),h.length>0?(t.fail(i("Unknown command: %s","Unknown commands: %s",h.length,h.join(", "))),!0):!1},"unknownCommands"),o.isValidAndSomeAliasIsNotNew=s(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"),o.limitedChoices=s(function(f){let d=e.getOptions(),h={};if(!Object.keys(d.choices).length)return;Object.keys(f).forEach(g=>{Ym.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 v=n("Invalid values:");y.forEach(g=>{v+=`
133
- ${n("Argument: %s, Given: %s, Choices: %s",g,t.stringifiedValues(h[g]),t.stringifiedValues(d.choices[g]))}`}),t.fail(v)},"limitedChoices");let a={};o.implies=s(function(f,d){F("<string|object> [array|number|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{o.implies(h,f[h])}):(e.global(f),a[f]||(a[f]=[]),Array.isArray(d)?d.forEach(h=>o.implies(f,h)):(yt(d,void 0,r),a[f].push(d)))},"implies"),o.getImplied=s(function(){return a},"getImplied");function u(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}s(u,"keyExists"),o.implications=s(function(f){let d=[];if(Object.keys(a).forEach(h=>{let y=h;(a[h]||[]).forEach(v=>{let g=y,P=v;g=u(f,g),v=u(f,v),g&&!v&&d.push(` ${y} -> ${P}`)})}),d.length){let h=`${n("Implications failed:")}
134
- `;d.forEach(y=>{h+=y}),t.fail(h)}},"implications");let c={};o.conflicts=s(function(f,d){F("<string|object> [array|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{o.conflicts(h,f[h])}):(e.global(f),c[f]||(c[f]=[]),Array.isArray(d)?d.forEach(h=>o.conflicts(f,h)):c[f].push(d))},"conflicts"),o.getConflicting=()=>c,o.conflicting=s(function(f){Object.keys(f).forEach(d=>{c[d]&&c[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(c).forEach(d=>{c[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"),o.recommendCommands=s(function(f,d){d=d.sort((g,P)=>P.length-g.length);let y=null,v=1/0;for(let g=0,P;(P=d[g])!==void 0;g++){let C=Zm(f,P);C<=3&&C<v&&(v=C,y=P)}y&&t.fail(n("Did you mean %s?",y))},"recommendCommands"),o.reset=s(function(f){return a=nn(a,d=>!f[d]),c=nn(c,d=>!f[d]),o},"reset");let l=[];return o.freeze=s(function(){l.push({implied:a,conflicting:c})},"freeze"),o.unfreeze=s(function(){let f=l.pop();yt(f,void 0,r),{implied:a,conflicting:c}=f},"unfreeze"),o}s(Jm,"validation");var Wc=[],Ds;function Ls(e,t,r,n){Ds=n;let i={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!="string")return i;let o=/\.json|\..*rc$/.test(e.extends),a=null;if(o)a=vP(t,e.extends);else try{a=Pe.resolve(e.extends)}catch{return e}yP(a),Wc.push(a),i=o?JSON.parse(Ds.readFileSync(a,"utf8")):Pe(e.extends),delete e.extends,i=Ls(i,Ds.path.dirname(a),r,Ds)}return Wc=[],r?Qm(i,e):Object.assign({},i,e)}s(Ls,"applyExtends");function yP(e){if(Wc.indexOf(e)>-1)throw new je(`Circular extended configurations: '${e}'.`)}s(yP,"checkForCircularExtends");function vP(e,t){return Ds.path.resolve(e,t)}s(vP,"getPathToDefaultConfig");function Qm(e,t){let r={};function n(i){return i&&typeof i=="object"&&!Array.isArray(i)}s(n,"isObject"),Object.assign(r,e);for(let i of Object.keys(t))n(t[i])&&n(r[i])?r[i]=Qm(e[i],t[i]):r[i]=t[i];return r}s(Qm,"mergeDeep");var V=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)},Ze,Ln,Fs,Ut,Nt,da,on,Fn,ha,Gt,ma,zt,wr,Mt,Wt,ga,Ai,st,W,ya,va,Tt,Bn,Ci,Vn,an,ba,re,Hn,Un,Gn,ie,_a,$r,He;function vg(e){return(t=[],r=e.process.cwd(),n)=>{let i=new il(t,r,n,e);return Object.defineProperty(i,"argv",{get:s(()=>i.parse(),"get"),enumerable:!0}),i.help(),i.version(),i}}s(vg,"YargsFactory");var Xm=Symbol("copyDoubleDash"),eg=Symbol("copyDoubleDash"),Kc=Symbol("deleteFromParserHintObject"),tg=Symbol("emitWarning"),rg=Symbol("freeze"),ng=Symbol("getDollarZero"),zn=Symbol("getParserConfiguration"),ig=Symbol("getUsageConfiguration"),Zc=Symbol("guessLocale"),sg=Symbol("guessVersion"),og=Symbol("parsePositionalNumbers"),Yc=Symbol("pkgUp"),un=Symbol("populateParserHintArray"),Ii=Symbol("populateParserHintSingleValueDictionary"),Jc=Symbol("populateParserHintArrayDictionary"),Qc=Symbol("populateParserHintDictionary"),Xc=Symbol("sanitizeKey"),el=Symbol("setKey"),tl=Symbol("unfreeze"),ag=Symbol("validateAsync"),ug=Symbol("getCommandInstance"),cg=Symbol("getContext"),lg=Symbol("getHasOutput"),fg=Symbol("getLoggerInstance"),pg=Symbol("getParseContext"),dg=Symbol("getUsageInstance"),hg=Symbol("getValidationInstance"),Sa=Symbol("hasParseCallback"),mg=Symbol("isGlobalContext"),Wn=Symbol("postProcess"),gg=Symbol("rebase"),rl=Symbol("reset"),Bs=Symbol("runYargsParserAndExecuteCommands"),nl=Symbol("runValidation"),yg=Symbol("setHasOutput"),Kn=Symbol("kTrackManuallySetKeys"),sl=class sl{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,Ze.set(this,void 0),Ln.set(this,void 0),Fs.set(this,{commands:[],fullCommands:[]}),Ut.set(this,null),Nt.set(this,null),da.set(this,"show-hidden"),on.set(this,null),Fn.set(this,!0),ha.set(this,{}),Gt.set(this,!0),ma.set(this,[]),zt.set(this,void 0),wr.set(this,{}),Mt.set(this,!1),Wt.set(this,null),ga.set(this,!0),Ai.set(this,void 0),st.set(this,""),W.set(this,void 0),ya.set(this,void 0),va.set(this,{}),Tt.set(this,null),Bn.set(this,null),Ci.set(this,{}),Vn.set(this,{}),an.set(this,void 0),ba.set(this,!1),re.set(this,void 0),Hn.set(this,!1),Un.set(this,!1),Gn.set(this,!1),ie.set(this,void 0),_a.set(this,{}),$r.set(this,null),He.set(this,void 0),V(this,re,i,"f"),V(this,an,t,"f"),V(this,Ln,r,"f"),V(this,ya,n,"f"),V(this,zt,new la(this),"f"),this.$0=this[ng](),this[rl](),V(this,Ze,m(this,Ze,"f"),"f"),V(this,ie,m(this,ie,"f"),"f"),V(this,He,m(this,He,"f"),"f"),V(this,W,m(this,W,"f"),"f"),m(this,W,"f").showHiddenOpt=m(this,da,"f"),V(this,Ai,this[eg](),"f")}addHelpOpt(t,r){let n="help";return F("[string|boolean] [string]",[t,r],arguments.length),m(this,Wt,"f")&&(this[Kc](m(this,Wt,"f")),V(this,Wt,null,"f")),t===!1&&r===void 0?this:(V(this,Wt,typeof t=="string"?t:n,"f"),this.boolean(m(this,Wt,"f")),this.describe(m(this,Wt,"f"),r||m(this,ie,"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,da,"f");return this.boolean(n),this.describe(n,r||m(this,ie,"f").deferY18nLookup("Show hidden options")),m(this,W,"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[Jc](this.alias.bind(this),"alias",t,r),this}array(t){return F("<array|string>",[t],arguments.length),this[un]("array",t),this[Kn](t),this}boolean(t){return F("<array|string>",[t],arguments.length),this[un]("boolean",t),this[Kn](t),this}check(t,r){return F("<function> [boolean]",[t,r],arguments.length),this.middleware((n,i)=>Dn(()=>t(n,i.getOptions()),o=>(o?(typeof o=="string"||o instanceof Error)&&m(this,ie,"f").fail(o.toString(),o):m(this,ie,"f").fail(m(this,re,"f").y18n.__("Argument check failed: %s",t.toString())),n),o=>(m(this,ie,"f").fail(o.message?o.message:o.toString(),o),n)),!1,r),this}choices(t,r){return F("<object|string|array> [string|array]",[t,r],arguments.length),this[Jc](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 je("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 je("coerce callback must be provided");return m(this,W,"f").key[t]=!0,m(this,zt,"f").addCoerceMiddleware((n,i)=>{let o;return Object.prototype.hasOwnProperty.call(n,t)?Dn(()=>(o=i.getAliases(),r(n[t])),u=>{n[t]=u;let c=i.getInternalMethods().getParserConfiguration()["strip-aliased"];if(o[t]&&c!==!0)for(let l of o[t])n[l]=u;return n},u=>{throw new je(u.message)}):n},t),this}conflicts(t,r){return F("<string|object> [string|array]",[t,r],arguments.length),m(this,He,"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=Ls(t,m(this,Ln,"f"),this[zn]()["deep-merge-config"]||!1,m(this,re,"f")),m(this,W,"f").configObjects=(m(this,W,"f").configObjects||[]).concat(t),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(t,r||m(this,ie,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{m(this,W,"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),V(this,Nt,t||m(this,Nt,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(m(this,Nt,"f"),r),n&&m(this,Ut,"f").registerFunction(n),this}command(t,r,n,i,o,a){return F("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,r,n,i,o,a],arguments.length),m(this,Ze,"f").addHandler(t,r,n,i,o,a),this}commands(t,r,n,i,o,a){return this.command(t,r,n,i,o,a)}commandDir(t,r){F("<string> [object]",[t,r],arguments.length);let n=m(this,ya,"f")||m(this,re,"f").require;return m(this,Ze,"f").addDirectory(t,n,m(this,re,"f").getCallerFile(),r),this}count(t){return F("<array|string>",[t],arguments.length),this[un]("count",t),this[Kn](t),this}default(t,r,n){return F("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(Lc(t,m(this,re,"f")),m(this,W,"f").defaultDescription[t]=n),typeof r=="function"&&(Lc(t,m(this,re,"f")),m(this,W,"f").defaultDescription[t]||(m(this,W,"f").defaultDescription[t]=m(this,ie,"f").functionDescription(r)),r=r.call()),this[Ii](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,W,"f").demandedCommands._={min:t,max:r,minMsg:n,maxMsg:i},this}demand(t,r,n){return Array.isArray(r)?(r.forEach(i=>{yt(n,!0,m(this,re,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof t=="number"?(yt(n,!0,m(this,re,"f")),this.demandCommand(t,r,n,n)):Array.isArray(t)?t.forEach(i=>{yt(n,!0,m(this,re,"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[Ii](this.demandOption.bind(this),"demandedOptions",t,r),this}deprecateOption(t,r){return F("<string> [string|boolean]",[t,r],arguments.length),m(this,W,"f").deprecatedOptions[t]=r,this}describe(t,r){return F("<object|string|array> [string]",[t,r],arguments.length),this[el](t,!0),m(this,ie,"f").describe(t,r),this}detectLocale(t){return F("<boolean>",[t],arguments.length),V(this,Fn,t,"f"),this}env(t){return F("[string|boolean]",[t],arguments.length),t===!1?delete m(this,W,"f").envPrefix:m(this,W,"f").envPrefix=t||"",this}epilogue(t){return F("<string>",[t],arguments.length),m(this,ie,"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,ie,"f").example(t,r),this}exit(t,r){V(this,Mt,!0,"f"),V(this,on,r,"f"),m(this,Gt,"f")&&m(this,re,"f").process.exit(t)}exitProcess(t=!0){return F("[boolean]",[t],arguments.length),V(this,Gt,t,"f"),this}fail(t){if(F("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new je("Invalid first argument. Expected function or boolean 'false'");return m(this,ie,"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,Ut,"f").getCompletion(t,r):new Promise((n,i)=>{m(this,Ut,"f").getCompletion(t,(o,a)=>{o?i(o):n(a)})})}getDemandedOptions(){return F([],0),m(this,W,"f").demandedOptions}getDemandedCommands(){return F([],0),m(this,W,"f").demandedCommands}getDeprecatedOptions(){return F([],0),m(this,W,"f").deprecatedOptions}getDetectLocale(){return m(this,Fn,"f")}getExitProcess(){return m(this,Gt,"f")}getGroups(){return Object.assign({},m(this,wr,"f"),m(this,Vn,"f"))}getHelp(){if(V(this,Mt,!0,"f"),!m(this,ie,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[Bs](m(this,an,"f"),void 0,void 0,0,!0);if(ke(r))return r.then(()=>m(this,ie,"f").help())}let t=m(this,Ze,"f").runDefaultBuilderOn(this);if(ke(t))return t.then(()=>m(this,ie,"f").help())}return Promise.resolve(m(this,ie,"f").help())}getOptions(){return m(this,W,"f")}getStrict(){return m(this,Hn,"f")}getStrictCommands(){return m(this,Un,"f")}getStrictOptions(){return m(this,Gn,"f")}global(t,r){return F("<string|array> [boolean]",[t,r],arguments.length),t=[].concat(t),r!==!1?m(this,W,"f").local=m(this,W,"f").local.filter(n=>t.indexOf(n)===-1):t.forEach(n=>{m(this,W,"f").local.includes(n)||m(this,W,"f").local.push(n)}),this}group(t,r){F("<string|array> <string>",[t,r],arguments.length);let n=m(this,Vn,"f")[r]||m(this,wr,"f")[r];m(this,Vn,"f")[r]&&delete m(this,Vn,"f")[r];let i={};return m(this,wr,"f")[r]=(n||[]).concat(t).filter(o=>i[o]?!1:i[o]=!0),this}hide(t){return F("<string>",[t],arguments.length),m(this,W,"f").hiddenOptions.push(t),this}implies(t,r){return F("<string|object> [number|string|array]",[t,r],arguments.length),m(this,He,"f").implies(t,r),this}locale(t){return F("[string]",[t],arguments.length),t===void 0?(this[Zc](),m(this,re,"f").y18n.getLocale()):(V(this,Fn,!1,"f"),m(this,re,"f").y18n.setLocale(t),this)}middleware(t,r,n){return m(this,zt,"f").addMiddleware(t,!!r,n)}nargs(t,r){return F("<string|object|array> [number]",[t,r],arguments.length),this[Ii](this.nargs.bind(this),"narg",t,r),this}normalize(t){return F("<array|string>",[t],arguments.length),this[un]("normalize",t),this}number(t){return F("<array|string>",[t],arguments.length),this[un]("number",t),this[Kn](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[Kn](t),m(this,$r,"f")&&(t==="version"||(r==null?void 0:r.alias)==="version")&&this[tg](['"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(`
135
- `),void 0,"versionWarning"),m(this,W,"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,W,"f").defaultDescription[t]=r.defaultDescription),r.skipValidation&&this.skipValidation(t);let o=r.describe||r.description||r.desc,a=m(this,ie,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(a,t)||typeof o=="string")&&this.describe(t,o),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[rg](),typeof t>"u"&&(t=m(this,an,"f")),typeof r=="object"&&(V(this,Bn,r,"f"),r=n),typeof r=="function"&&(V(this,Tt,r,"f"),r=!1),r||V(this,an,t,"f"),m(this,Tt,"f")&&V(this,Gt,!1,"f");let i=this[Bs](t,!!r),o=this.parsed;return m(this,Ut,"f").setParsed(this.parsed),ke(i)?i.then(a=>(m(this,Tt,"f")&&m(this,Tt,"f").call(this,m(this,on,"f"),a,m(this,st,"f")),a)).catch(a=>{throw m(this,Tt,"f")&&m(this,Tt,"f")(a,this.parsed.argv,m(this,st,"f")),a}).finally(()=>{this[tl](),this.parsed=o}):(m(this,Tt,"f")&&m(this,Tt,"f").call(this,m(this,on,"f"),i,m(this,st,"f")),this[tl](),this.parsed=o,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 je(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return i}parserConfiguration(t){return F("<object>",[t],arguments.length),V(this,va,t,"f"),this}pkgConf(t,r){F("<string> [string]",[t,r],arguments.length);let n=null,i=this[Yc](r||m(this,Ln,"f"));return i[t]&&typeof i[t]=="object"&&(n=Ls(i[t],r||m(this,Ln,"f"),this[zn]()["deep-merge-config"]||!1,m(this,re,"f")),m(this,W,"f").configObjects=(m(this,W,"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=nn(r,(a,u)=>a==="type"&&!["string","number","boolean"].includes(u)?!1:n.includes(a));let i=m(this,Fs,"f").fullCommands[m(this,Fs,"f").fullCommands.length-1],o=i?m(this,Ze,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return Ei(o).forEach(a=>{let u=o[a];Array.isArray(u)?u.indexOf(t)!==-1&&(r[a]=!0):u[t]&&!(a in r)&&(r[a]=u[t])}),this.group(t,m(this,ie,"f").getPositionalGroupName()),this.option(t,r)}recommendCommands(t=!0){return F("[boolean]",[t],arguments.length),V(this,ba,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,W,"f").narg[t]?this:(this[Ii](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,Ai,"f").log(m(this,Ut,"f").generateCompletionScript(t,r||m(this,Nt,"f")||"completion")),this}showHelp(t){if(F("[string|function]",[t],arguments.length),V(this,Mt,!0,"f"),!m(this,ie,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[Bs](m(this,an,"f"),void 0,void 0,0,!0);if(ke(n))return n.then(()=>{m(this,ie,"f").showHelp(t)}),this}let r=m(this,Ze,"f").runDefaultBuilderOn(this);if(ke(r))return r.then(()=>{m(this,ie,"f").showHelp(t)}),this}return m(this,ie,"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,ie,"f").showHelpOnFail(t,r),this}showVersion(t){return F("[string|function]",[t],arguments.length),m(this,ie,"f").showVersion(t),this}skipValidation(t){return F("<array|string>",[t],arguments.length),this[un]("skipValidation",t),this}strict(t){return F("[boolean]",[t],arguments.length),V(this,Hn,t!==!1,"f"),this}strictCommands(t){return F("[boolean]",[t],arguments.length),V(this,Un,t!==!1,"f"),this}strictOptions(t){return F("[boolean]",[t],arguments.length),V(this,Gn,t!==!1,"f"),this}string(t){return F("<array|string>",[t],arguments.length),this[un]("string",t),this[Kn](t),this}terminalWidth(){return F([],0),m(this,re,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return F("<object>",[t],arguments.length),V(this,Fn,!1,"f"),m(this,re,"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(yt(t,null,m(this,re,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,r,n,i);throw new je(".usage() description must start with $0 if being used as alias for .command()")}else return m(this,ie,"f").usage(t),this}usageConfiguration(t){return F("<object>",[t],arguments.length),V(this,_a,t,"f"),this}version(t,r,n){let i="version";if(F("[boolean|string] [string] [string]",[t,r,n],arguments.length),m(this,$r,"f")&&(this[Kc](m(this,$r,"f")),m(this,ie,"f").version(void 0),V(this,$r,null,"f")),arguments.length===0)n=this[sg](),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 V(this,$r,typeof t=="string"?t:i,"f"),r=r||m(this,ie,"f").deferY18nLookup("Show version number"),m(this,ie,"f").version(n||void 0),this.boolean(m(this,$r,"f")),this.describe(m(this,$r,"f"),r),this}wrap(t){return F("<number|null|undefined>",[t],arguments.length),m(this,ie,"f").wrap(t),this}[(Ze=new WeakMap,Ln=new WeakMap,Fs=new WeakMap,Ut=new WeakMap,Nt=new WeakMap,da=new WeakMap,on=new WeakMap,Fn=new WeakMap,ha=new WeakMap,Gt=new WeakMap,ma=new WeakMap,zt=new WeakMap,wr=new WeakMap,Mt=new WeakMap,Wt=new WeakMap,ga=new WeakMap,Ai=new WeakMap,st=new WeakMap,W=new WeakMap,ya=new WeakMap,va=new WeakMap,Tt=new WeakMap,Bn=new WeakMap,Ci=new WeakMap,Vn=new WeakMap,an=new WeakMap,ba=new WeakMap,re=new WeakMap,Hn=new WeakMap,Un=new WeakMap,Gn=new WeakMap,ie=new WeakMap,_a=new WeakMap,$r=new WeakMap,He=new WeakMap,Xm)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[eg](){return{log:s((...t)=>{this[Sa]()||console.log(...t),V(this,Mt,!0,"f"),m(this,st,"f").length&&V(this,st,m(this,st,"f")+`
136
- `,"f"),V(this,st,m(this,st,"f")+t.join(" "),"f")},"log"),error:s((...t)=>{this[Sa]()||console.error(...t),V(this,Mt,!0,"f"),m(this,st,"f").length&&V(this,st,m(this,st,"f")+`
137
- `,"f"),V(this,st,m(this,st,"f")+t.join(" "),"f")},"error")}}[Kc](t){Ei(m(this,W,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=m(this,W,"f")[r];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete m(this,ie,"f").getDescriptions()[t]}[tg](t,r,n){m(this,ha,"f")[n]||(m(this,re,"f").process.emitWarning(t,r),m(this,ha,"f")[n]=!0)}[rg](){m(this,ma,"f").push({options:m(this,W,"f"),configObjects:m(this,W,"f").configObjects.slice(0),exitProcess:m(this,Gt,"f"),groups:m(this,wr,"f"),strict:m(this,Hn,"f"),strictCommands:m(this,Un,"f"),strictOptions:m(this,Gn,"f"),completionCommand:m(this,Nt,"f"),output:m(this,st,"f"),exitError:m(this,on,"f"),hasOutput:m(this,Mt,"f"),parsed:this.parsed,parseFn:m(this,Tt,"f"),parseContext:m(this,Bn,"f")}),m(this,ie,"f").freeze(),m(this,He,"f").freeze(),m(this,Ze,"f").freeze(),m(this,zt,"f").freeze()}[ng](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(m(this,re,"f").process.argv()[0])?r=m(this,re,"f").process.argv().slice(1,2):r=m(this,re,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[gg](m(this,Ln,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),m(this,re,"f").getEnv("_")&&m(this,re,"f").getProcessArgvBin()===m(this,re,"f").getEnv("_")&&(t=m(this,re,"f").getEnv("_").replace(`${m(this,re,"f").path.dirname(m(this,re,"f").process.execPath())}/`,"")),t}[zn](){return m(this,va,"f")}[ig](){return m(this,_a,"f")}[Zc](){if(!m(this,Fn,"f"))return;let t=m(this,re,"f").getEnv("LC_ALL")||m(this,re,"f").getEnv("LC_MESSAGES")||m(this,re,"f").getEnv("LANG")||m(this,re,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[sg](){return this[Yc]().version||"unknown"}[og](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)m(this,re,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[Yc](t){let r=t||"*";if(m(this,Ci,"f")[r])return m(this,Ci,"f")[r];let n={};try{let i=t||m(this,re,"f").mainFilename;!t&&m(this,re,"f").path.extname(i)&&(i=m(this,re,"f").path.dirname(i));let o=m(this,re,"f").findUp(i,(a,u)=>{if(u.includes("package.json"))return"package.json"});yt(o,void 0,m(this,re,"f")),n=JSON.parse(m(this,re,"f").readFileSync(o,"utf8"))}catch{}return m(this,Ci,"f")[r]=n||{},m(this,Ci,"f")[r]}[un](t,r){r=[].concat(r),r.forEach(n=>{n=this[Xc](n),m(this,W,"f")[t].push(n)})}[Ii](t,r,n,i){this[Qc](t,r,n,i,(o,a,u)=>{m(this,W,"f")[o][a]=u})}[Jc](t,r,n,i){this[Qc](t,r,n,i,(o,a,u)=>{m(this,W,"f")[o][a]=(m(this,W,"f")[o][a]||[]).concat(u)})}[Qc](t,r,n,i,o){if(Array.isArray(n))n.forEach(a=>{t(a,i)});else if((a=>typeof a=="object")(n))for(let a of Ei(n))t(a,n[a]);else o(r,this[Xc](n),i)}[Xc](t){return t==="__proto__"?"___proto___":t}[el](t,r){return this[Ii](this[el].bind(this),"key",t,r),this}[tl](){var t,r,n,i,o,a,u,c,l,p,f,d;let h=m(this,ma,"f").pop();yt(h,void 0,m(this,re,"f"));let y;t=this,r=this,n=this,i=this,o=this,a=this,u=this,c=this,l=this,p=this,f=this,d=this,{options:{set value(v){V(t,W,v,"f")}}.value,configObjects:y,exitProcess:{set value(v){V(r,Gt,v,"f")}}.value,groups:{set value(v){V(n,wr,v,"f")}}.value,output:{set value(v){V(i,st,v,"f")}}.value,exitError:{set value(v){V(o,on,v,"f")}}.value,hasOutput:{set value(v){V(a,Mt,v,"f")}}.value,parsed:this.parsed,strict:{set value(v){V(u,Hn,v,"f")}}.value,strictCommands:{set value(v){V(c,Un,v,"f")}}.value,strictOptions:{set value(v){V(l,Gn,v,"f")}}.value,completionCommand:{set value(v){V(p,Nt,v,"f")}}.value,parseFn:{set value(v){V(f,Tt,v,"f")}}.value,parseContext:{set value(v){V(d,Bn,v,"f")}}.value}=h,m(this,W,"f").configObjects=y,m(this,ie,"f").unfreeze(),m(this,He,"f").unfreeze(),m(this,Ze,"f").unfreeze(),m(this,zt,"f").unfreeze()}[ag](t,r){return Dn(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[ug].bind(this),getContext:this[cg].bind(this),getHasOutput:this[lg].bind(this),getLoggerInstance:this[fg].bind(this),getParseContext:this[pg].bind(this),getParserConfiguration:this[zn].bind(this),getUsageConfiguration:this[ig].bind(this),getUsageInstance:this[dg].bind(this),getValidationInstance:this[hg].bind(this),hasParseCallback:this[Sa].bind(this),isGlobalContext:this[mg].bind(this),postProcess:this[Wn].bind(this),reset:this[rl].bind(this),runValidation:this[nl].bind(this),runYargsParserAndExecuteCommands:this[Bs].bind(this),setHasOutput:this[yg].bind(this)}}[ug](){return m(this,Ze,"f")}[cg](){return m(this,Fs,"f")}[lg](){return m(this,Mt,"f")}[fg](){return m(this,Ai,"f")}[pg](){return m(this,Bn,"f")||{}}[dg](){return m(this,ie,"f")}[hg](){return m(this,He,"f")}[Sa](){return!!m(this,Tt,"f")}[mg](){return m(this,ga,"f")}[Wn](t,r,n,i){return n||ke(t)||(r||(t=this[Xm](t)),(this[zn]()["parse-positional-numbers"]||this[zn]()["parse-positional-numbers"]===void 0)&&(t=this[og](t)),i&&(t=qn(t,this,m(this,zt,"f").getMiddleware(),!1))),t}[rl](t={}){V(this,W,m(this,W,"f")||{},"f");let r={};r.local=m(this,W,"f").local||[],r.configObjects=m(this,W,"f").configObjects||[];let n={};r.local.forEach(a=>{n[a]=!0,(t[a]||[]).forEach(u=>{n[u]=!0})}),Object.assign(m(this,Vn,"f"),Object.keys(m(this,wr,"f")).reduce((a,u)=>{let c=m(this,wr,"f")[u].filter(l=>!(l in n));return c.length>0&&(a[u]=c),a},{})),V(this,wr,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],o=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(a=>{r[a]=(m(this,W,"f")[a]||[]).filter(u=>!n[u])}),o.forEach(a=>{r[a]=nn(m(this,W,"f")[a],u=>!n[u])}),r.envPrefix=m(this,W,"f").envPrefix,V(this,W,r,"f"),V(this,ie,m(this,ie,"f")?m(this,ie,"f").reset(n):Gm(this,m(this,re,"f")),"f"),V(this,He,m(this,He,"f")?m(this,He,"f").reset(n):Jm(this,m(this,ie,"f"),m(this,re,"f")),"f"),V(this,Ze,m(this,Ze,"f")?m(this,Ze,"f").reset():Vm(m(this,ie,"f"),m(this,He,"f"),m(this,zt,"f"),m(this,re,"f")),"f"),m(this,Ut,"f")||V(this,Ut,Km(this,m(this,ie,"f"),m(this,Ze,"f"),m(this,re,"f")),"f"),m(this,zt,"f").reset(),V(this,Nt,null,"f"),V(this,st,"","f"),V(this,on,null,"f"),V(this,Mt,!1,"f"),this.parsed=!1,this}[gg](t,r){return m(this,re,"f").path.relative(t,r)}[Bs](t,r,n,i=0,o=!1){let a=!!n||o;t=t||m(this,an,"f"),m(this,W,"f").__=m(this,re,"f").y18n.__,m(this,W,"f").configuration=this[zn]();let u=!!m(this,W,"f").configuration["populate--"],c=Object.assign({},m(this,W,"f").configuration,{"populate--":!0}),l=m(this,re,"f").Parser.detailed(t,Object.assign({},m(this,W,"f"),{configuration:{"parse-positional-numbers":!1,...c}})),p=Object.assign(l.argv,m(this,Bn,"f")),f,d=l.aliases,h=!1,y=!1;Object.keys(p).forEach(v=>{v===m(this,Wt,"f")&&p[v]?h=!0:v===m(this,$r,"f")&&p[v]&&(y=!0)}),p.$0=this.$0,this.parsed=l,i===0&&m(this,ie,"f").clearCachedHelpMessage();try{if(this[Zc](),r)return this[Wn](p,u,!!n,!1);m(this,Wt,"f")&&[m(this,Wt,"f")].concat(d[m(this,Wt,"f")]||[]).filter(k=>k.length>1).includes(""+p._[p._.length-1])&&(p._.pop(),h=!0),V(this,ga,!1,"f");let v=m(this,Ze,"f").getCommands(),g=m(this,Ut,"f").completionKey in p,P=h||g||o;if(p._.length){if(v.length){let C;for(let k=i||0,A;p._[k]!==void 0;k++)if(A=String(p._[k]),v.includes(A)&&A!==m(this,Nt,"f")){let I=m(this,Ze,"f").runCommand(A,this,l,k+1,o,h||y||o);return this[Wn](I,u,!!n,!1)}else if(!C&&A!==m(this,Nt,"f")){C=A;break}!m(this,Ze,"f").hasDefaultCommand()&&m(this,ba,"f")&&C&&!P&&m(this,He,"f").recommendCommands(C,v)}m(this,Nt,"f")&&p._.includes(m(this,Nt,"f"))&&!g&&(m(this,Gt,"f")&&sn(!0),this.showCompletionScript(),this.exit(0))}if(m(this,Ze,"f").hasDefaultCommand()&&!P){let C=m(this,Ze,"f").runCommand(null,this,l,0,o,h||y||o);return this[Wn](C,u,!!n,!1)}if(g){m(this,Gt,"f")&&sn(!0),t=[].concat(t);let C=t.slice(t.indexOf(`--${m(this,Ut,"f").completionKey}`)+1);return m(this,Ut,"f").getCompletion(C,(k,A)=>{if(k)throw new je(k.message);(A||[]).forEach(I=>{m(this,Ai,"f").log(I)}),this.exit(0)}),this[Wn](p,!u,!!n,!1)}if(m(this,Mt,"f")||(h?(m(this,Gt,"f")&&sn(!0),a=!0,this.showHelp("log"),this.exit(0)):y&&(m(this,Gt,"f")&&sn(!0),a=!0,m(this,ie,"f").showVersion("log"),this.exit(0))),!a&&m(this,W,"f").skipValidation.length>0&&(a=Object.keys(p).some(C=>m(this,W,"f").skipValidation.indexOf(C)>=0&&p[C]===!0)),!a){if(l.error)throw new je(l.error.message);if(!g){let C=this[nl](d,{},l.error);n||(f=qn(p,this,m(this,zt,"f").getMiddleware(),!0)),f=this[ag](C,f??p),ke(f)&&!n&&(f=f.then(()=>qn(p,this,m(this,zt,"f").getMiddleware(),!1)))}}}catch(v){if(v instanceof je)m(this,ie,"f").fail(v.message,v);else throw v}return this[Wn](f??p,u,!!n,!0)}[nl](t,r,n,i){let o={...this.getDemandedOptions()};return a=>{if(n)throw new je(n.message);m(this,He,"f").nonOptionCount(a),m(this,He,"f").requiredArguments(a,o);let u=!1;m(this,Un,"f")&&(u=m(this,He,"f").unknownCommands(a)),m(this,Hn,"f")&&!u?m(this,He,"f").unknownArguments(a,t,r,!!i):m(this,Gn,"f")&&m(this,He,"f").unknownArguments(a,t,{},!1,!1),m(this,He,"f").limitedChoices(a),m(this,He,"f").implications(a),m(this,He,"f").conflicting(a)}}[yg](){V(this,Mt,!0,"f")}[Kn](t){if(typeof t=="string")m(this,W,"f").key[t]=!0;else for(let r of t)m(this,W,"f").key[r]=!0}};s(sl,"YargsInstance");var il=sl;function Hm(e){return!!e&&typeof e.getInternalMethods=="function"}s(Hm,"isYargsInstance");var bP=vg(Dc),bg=bP;var _g=s((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),Sg=s((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),wg=s((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),De={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]}},VL=Object.keys(De.modifier),_P=Object.keys(De.color),SP=Object.keys(De.bgColor),HL=[..._P,...SP];function wP(){let e=new Map;for(let[t,r]of Object.entries(De)){for(let[n,i]of Object.entries(r))De[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=De[n],e.set(i[0],i[1]);Object.defineProperty(De,t,{value:r,enumerable:!1})}return Object.defineProperty(De,"codes",{value:e,enumerable:!1}),De.color.close="\x1B[39m",De.bgColor.close="\x1B[49m",De.color.ansi=_g(),De.color.ansi256=Sg(),De.color.ansi16m=wg(),De.bgColor.ansi=_g(10),De.bgColor.ansi256=Sg(10),De.bgColor.ansi16m=wg(10),Object.defineProperties(De,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(o=>o+o).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:s(t=>De.rgbToAnsi256(...De.hexToRgb(t)),"value"),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let u=t%36;r=Math.floor(t/36)/5,n=Math.floor(u/6)/5,i=u%6/5}let o=Math.max(r,n,i)*2;if(o===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return o===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:s((t,r,n)=>De.ansi256ToAnsi(De.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:s(t=>De.ansi256ToAnsi(De.hexToAnsi256(t)),"value"),enumerable:!1}}),De}s(wP,"assembleStyles");var $P=wP(),or=$P;import ol from"process";import PP from"os";import $g from"tty";function Kt(e,t=globalThis.Deno?globalThis.Deno.args:ol.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}s(Kt,"hasFlag");var{env:Be}=ol,wa;Kt("no-color")||Kt("no-colors")||Kt("color=false")||Kt("color=never")?wa=0:(Kt("color")||Kt("colors")||Kt("color=true")||Kt("color=always"))&&(wa=1);function OP(){if("FORCE_COLOR"in Be)return Be.FORCE_COLOR==="true"?1:Be.FORCE_COLOR==="false"?0:Be.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Be.FORCE_COLOR,10),3)}s(OP,"envForceColor");function EP(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}s(EP,"translateLevel");function xP(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=OP();n!==void 0&&(wa=n);let i=r?wa:n;if(i===0)return 0;if(r){if(Kt("color=16m")||Kt("color=full")||Kt("color=truecolor"))return 3;if(Kt("color=256"))return 2}if("TF_BUILD"in Be&&"AGENT_NAME"in Be)return 1;if(e&&!t&&i===void 0)return 0;let o=i||0;if(Be.TERM==="dumb")return o;if(ol.platform==="win32"){let a=PP.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Be)return"GITHUB_ACTIONS"in Be||"GITEA_ACTIONS"in Be?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in Be)||Be.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in Be)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Be.TEAMCITY_VERSION)?1:0;if(Be.COLORTERM==="truecolor"||Be.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Be){let a=Number.parseInt((Be.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Be.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Be.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Be.TERM)||"COLORTERM"in Be?1:o}s(xP,"_supportsColor");function Pg(e,t={}){let r=xP(e,{streamIsTTY:e&&e.isTTY,...t});return EP(r)}s(Pg,"createSupportsColor");var AP={stdout:Pg({isTTY:$g.isatty(1)}),stderr:Pg({isTTY:$g.isatty(2)})},Og=AP;function Eg(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,o=0,a="";do a+=e.slice(o,n)+t+r,o=n+i,n=e.indexOf(t,o);while(n!==-1);return a+=e.slice(o),a}s(Eg,"stringReplaceAll");function xg(e,t,r,n){let i=0,o="";do{let a=e[n-1]==="\r";o+=e.slice(i,a?n-1:n)+t+(a?`\r
132
+ `)}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(h).length,Object.keys(h).join(", ")+v))}},"requiredArguments"),o.unknownArguments=s(function(f,d,h,y,v=!0){var g;let $=e.getInternalMethods().getCommandInstance().getCommands(),A=[],k=e.getInternalMethods().getContext();if(Object.keys(f).forEach(C=>{!Xm.includes(C)&&!Object.prototype.hasOwnProperty.call(h,C)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),C)&&!o.isValidAndSomeAliasIsNotNew(C,d)&&A.push(C)}),v&&(k.commands.length>0||$.length>0||y)&&f._.slice(k.commands.length).forEach(C=>{$.includes(""+C)||A.push(""+C)}),v){let I=((g=e.getDemandedCommands()._)===null||g===void 0?void 0:g.max)||0,fe=k.commands.length+I;fe<f._.length&&f._.slice(fe).forEach(ne=>{ne=String(ne),!k.commands.includes(ne)&&!A.includes(ne)&&A.push(ne)})}A.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",A.length,A.map(C=>C.trim()?C:`"${C}"`).join(", ")))},"unknownArguments"),o.unknownCommands=s(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(v=>{d.includes(""+v)||h.push(""+v)}),h.length>0?(t.fail(i("Unknown command: %s","Unknown commands: %s",h.length,h.join(", "))),!0):!1},"unknownCommands"),o.isValidAndSomeAliasIsNotNew=s(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"),o.limitedChoices=s(function(f){let d=e.getOptions(),h={};if(!Object.keys(d.choices).length)return;Object.keys(f).forEach(g=>{Xm.indexOf(g)===-1&&Object.prototype.hasOwnProperty.call(d.choices,g)&&[].concat(f[g]).forEach($=>{d.choices[g].indexOf($)===-1&&$!==void 0&&(h[g]=(h[g]||[]).concat($))})});let y=Object.keys(h);if(!y.length)return;let v=n("Invalid values:");y.forEach(g=>{v+=`
133
+ ${n("Argument: %s, Given: %s, Choices: %s",g,t.stringifiedValues(h[g]),t.stringifiedValues(d.choices[g]))}`}),t.fail(v)},"limitedChoices");let a={};o.implies=s(function(f,d){F("<string|object> [array|number|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{o.implies(h,f[h])}):(e.global(f),a[f]||(a[f]=[]),Array.isArray(d)?d.forEach(h=>o.implies(f,h)):(vt(d,void 0,r),a[f].push(d)))},"implies"),o.getImplied=s(function(){return a},"getImplied");function u(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}s(u,"keyExists"),o.implications=s(function(f){let d=[];if(Object.keys(a).forEach(h=>{let y=h;(a[h]||[]).forEach(v=>{let g=y,$=v;g=u(f,g),v=u(f,v),g&&!v&&d.push(` ${y} -> ${$}`)})}),d.length){let h=`${n("Implications failed:")}
134
+ `;d.forEach(y=>{h+=y}),t.fail(h)}},"implications");let c={};o.conflicts=s(function(f,d){F("<string|object> [array|string]",[f,d],arguments.length),typeof f=="object"?Object.keys(f).forEach(h=>{o.conflicts(h,f[h])}):(e.global(f),c[f]||(c[f]=[]),Array.isArray(d)?d.forEach(h=>o.conflicts(f,h)):c[f].push(d))},"conflicts"),o.getConflicting=()=>c,o.conflicting=s(function(f){Object.keys(f).forEach(d=>{c[d]&&c[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(c).forEach(d=>{c[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"),o.recommendCommands=s(function(f,d){d=d.sort((g,$)=>$.length-g.length);let y=null,v=1/0;for(let g=0,$;($=d[g])!==void 0;g++){let A=Qm(f,$);A<=3&&A<v&&(v=A,y=$)}y&&t.fail(n("Did you mean %s?",y))},"recommendCommands"),o.reset=s(function(f){return a=nn(a,d=>!f[d]),c=nn(c,d=>!f[d]),o},"reset");let l=[];return o.freeze=s(function(){l.push({implied:a,conflicting:c})},"freeze"),o.unfreeze=s(function(){let f=l.pop();vt(f,void 0,r),{implied:a,conflicting:c}=f},"unfreeze"),o}s(eg,"validation");var Kc=[],Ls;function Fs(e,t,r,n){Ls=n;let i={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!="string")return i;let o=/\.json|\..*rc$/.test(e.extends),a=null;if(o)a=$P(t,e.extends);else try{a=Pe.resolve(e.extends)}catch{return e}wP(a),Kc.push(a),i=o?JSON.parse(Ls.readFileSync(a,"utf8")):Pe(e.extends),delete e.extends,i=Fs(i,Ls.path.dirname(a),r,Ls)}return Kc=[],r?tg(i,e):Object.assign({},i,e)}s(Fs,"applyExtends");function wP(e){if(Kc.indexOf(e)>-1)throw new je(`Circular extended configurations: '${e}'.`)}s(wP,"checkForCircularExtends");function $P(e,t){return Ls.path.resolve(e,t)}s($P,"getPathToDefaultConfig");function tg(e,t){let r={};function n(i){return i&&typeof i=="object"&&!Array.isArray(i)}s(n,"isObject"),Object.assign(r,e);for(let i of Object.keys(t))n(t[i])&&n(r[i])?r[i]=tg(e[i],t[i]):r[i]=t[i];return r}s(tg,"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)},Ze,Ln,Vs,Ut,Nt,ha,on,Fn,ma,zt,ga,Gt,wr,Mt,Wt,ya,Ci,st,W,va,ba,Tt,Vn,Ii,Bn,an,_a,re,Hn,Un,zn,se,Sa,$r,He;function Sg(e){return(t=[],r=e.process.cwd(),n)=>{let i=new sl(t,r,n,e);return Object.defineProperty(i,"argv",{get:s(()=>i.parse(),"get"),enumerable:!0}),i.help(),i.version(),i}}s(Sg,"YargsFactory");var rg=Symbol("copyDoubleDash"),ng=Symbol("copyDoubleDash"),Zc=Symbol("deleteFromParserHintObject"),ig=Symbol("emitWarning"),sg=Symbol("freeze"),og=Symbol("getDollarZero"),Gn=Symbol("getParserConfiguration"),ag=Symbol("getUsageConfiguration"),Yc=Symbol("guessLocale"),ug=Symbol("guessVersion"),cg=Symbol("parsePositionalNumbers"),Jc=Symbol("pkgUp"),un=Symbol("populateParserHintArray"),Ri=Symbol("populateParserHintSingleValueDictionary"),Qc=Symbol("populateParserHintArrayDictionary"),Xc=Symbol("populateParserHintDictionary"),el=Symbol("sanitizeKey"),tl=Symbol("setKey"),rl=Symbol("unfreeze"),lg=Symbol("validateAsync"),fg=Symbol("getCommandInstance"),pg=Symbol("getContext"),dg=Symbol("getHasOutput"),hg=Symbol("getLoggerInstance"),mg=Symbol("getParseContext"),gg=Symbol("getUsageInstance"),yg=Symbol("getValidationInstance"),wa=Symbol("hasParseCallback"),vg=Symbol("isGlobalContext"),Wn=Symbol("postProcess"),bg=Symbol("rebase"),nl=Symbol("reset"),Bs=Symbol("runYargsParserAndExecuteCommands"),il=Symbol("runValidation"),_g=Symbol("setHasOutput"),Kn=Symbol("kTrackManuallySetKeys"),ol=class ol{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,Ze.set(this,void 0),Ln.set(this,void 0),Vs.set(this,{commands:[],fullCommands:[]}),Ut.set(this,null),Nt.set(this,null),ha.set(this,"show-hidden"),on.set(this,null),Fn.set(this,!0),ma.set(this,{}),zt.set(this,!0),ga.set(this,[]),Gt.set(this,void 0),wr.set(this,{}),Mt.set(this,!1),Wt.set(this,null),ya.set(this,!0),Ci.set(this,void 0),st.set(this,""),W.set(this,void 0),va.set(this,void 0),ba.set(this,{}),Tt.set(this,null),Vn.set(this,null),Ii.set(this,{}),Bn.set(this,{}),an.set(this,void 0),_a.set(this,!1),re.set(this,void 0),Hn.set(this,!1),Un.set(this,!1),zn.set(this,!1),se.set(this,void 0),Sa.set(this,{}),$r.set(this,null),He.set(this,void 0),B(this,re,i,"f"),B(this,an,t,"f"),B(this,Ln,r,"f"),B(this,va,n,"f"),B(this,Gt,new fa(this),"f"),this.$0=this[og](),this[nl](),B(this,Ze,m(this,Ze,"f"),"f"),B(this,se,m(this,se,"f"),"f"),B(this,He,m(this,He,"f"),"f"),B(this,W,m(this,W,"f"),"f"),m(this,W,"f").showHiddenOpt=m(this,ha,"f"),B(this,Ci,this[ng](),"f")}addHelpOpt(t,r){let n="help";return F("[string|boolean] [string]",[t,r],arguments.length),m(this,Wt,"f")&&(this[Zc](m(this,Wt,"f")),B(this,Wt,null,"f")),t===!1&&r===void 0?this:(B(this,Wt,typeof t=="string"?t:n,"f"),this.boolean(m(this,Wt,"f")),this.describe(m(this,Wt,"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,ha,"f");return this.boolean(n),this.describe(n,r||m(this,se,"f").deferY18nLookup("Show hidden options")),m(this,W,"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[Qc](this.alias.bind(this),"alias",t,r),this}array(t){return F("<array|string>",[t],arguments.length),this[un]("array",t),this[Kn](t),this}boolean(t){return F("<array|string>",[t],arguments.length),this[un]("boolean",t),this[Kn](t),this}check(t,r){return F("<function> [boolean]",[t,r],arguments.length),this.middleware((n,i)=>Dn(()=>t(n,i.getOptions()),o=>(o?(typeof o=="string"||o instanceof Error)&&m(this,se,"f").fail(o.toString(),o):m(this,se,"f").fail(m(this,re,"f").y18n.__("Argument check failed: %s",t.toString())),n),o=>(m(this,se,"f").fail(o.message?o.message:o.toString(),o),n)),!1,r),this}choices(t,r){return F("<object|string|array> [string|array]",[t,r],arguments.length),this[Qc](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 je("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 je("coerce callback must be provided");return m(this,W,"f").key[t]=!0,m(this,Gt,"f").addCoerceMiddleware((n,i)=>{let o;return Object.prototype.hasOwnProperty.call(n,t)?Dn(()=>(o=i.getAliases(),r(n[t])),u=>{n[t]=u;let c=i.getInternalMethods().getParserConfiguration()["strip-aliased"];if(o[t]&&c!==!0)for(let l of o[t])n[l]=u;return n},u=>{throw new je(u.message)}):n},t),this}conflicts(t,r){return F("<string|object> [string|array]",[t,r],arguments.length),m(this,He,"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=Fs(t,m(this,Ln,"f"),this[Gn]()["deep-merge-config"]||!1,m(this,re,"f")),m(this,W,"f").configObjects=(m(this,W,"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,W,"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,Nt,t||m(this,Nt,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(m(this,Nt,"f"),r),n&&m(this,Ut,"f").registerFunction(n),this}command(t,r,n,i,o,a){return F("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,r,n,i,o,a],arguments.length),m(this,Ze,"f").addHandler(t,r,n,i,o,a),this}commands(t,r,n,i,o,a){return this.command(t,r,n,i,o,a)}commandDir(t,r){F("<string> [object]",[t,r],arguments.length);let n=m(this,va,"f")||m(this,re,"f").require;return m(this,Ze,"f").addDirectory(t,n,m(this,re,"f").getCallerFile(),r),this}count(t){return F("<array|string>",[t],arguments.length),this[un]("count",t),this[Kn](t),this}default(t,r,n){return F("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(Fc(t,m(this,re,"f")),m(this,W,"f").defaultDescription[t]=n),typeof r=="function"&&(Fc(t,m(this,re,"f")),m(this,W,"f").defaultDescription[t]||(m(this,W,"f").defaultDescription[t]=m(this,se,"f").functionDescription(r)),r=r.call()),this[Ri](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,W,"f").demandedCommands._={min:t,max:r,minMsg:n,maxMsg:i},this}demand(t,r,n){return Array.isArray(r)?(r.forEach(i=>{vt(n,!0,m(this,re,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof t=="number"?(vt(n,!0,m(this,re,"f")),this.demandCommand(t,r,n,n)):Array.isArray(t)?t.forEach(i=>{vt(n,!0,m(this,re,"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[Ri](this.demandOption.bind(this),"demandedOptions",t,r),this}deprecateOption(t,r){return F("<string> [string|boolean]",[t,r],arguments.length),m(this,W,"f").deprecatedOptions[t]=r,this}describe(t,r){return F("<object|string|array> [string]",[t,r],arguments.length),this[tl](t,!0),m(this,se,"f").describe(t,r),this}detectLocale(t){return F("<boolean>",[t],arguments.length),B(this,Fn,t,"f"),this}env(t){return F("[string|boolean]",[t],arguments.length),t===!1?delete m(this,W,"f").envPrefix:m(this,W,"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,Mt,!0,"f"),B(this,on,r,"f"),m(this,zt,"f")&&m(this,re,"f").process.exit(t)}exitProcess(t=!0){return F("[boolean]",[t],arguments.length),B(this,zt,t,"f"),this}fail(t){if(F("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new je("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,Ut,"f").getCompletion(t,r):new Promise((n,i)=>{m(this,Ut,"f").getCompletion(t,(o,a)=>{o?i(o):n(a)})})}getDemandedOptions(){return F([],0),m(this,W,"f").demandedOptions}getDemandedCommands(){return F([],0),m(this,W,"f").demandedCommands}getDeprecatedOptions(){return F([],0),m(this,W,"f").deprecatedOptions}getDetectLocale(){return m(this,Fn,"f")}getExitProcess(){return m(this,zt,"f")}getGroups(){return Object.assign({},m(this,wr,"f"),m(this,Bn,"f"))}getHelp(){if(B(this,Mt,!0,"f"),!m(this,se,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[Bs](m(this,an,"f"),void 0,void 0,0,!0);if(ke(r))return r.then(()=>m(this,se,"f").help())}let t=m(this,Ze,"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,W,"f")}getStrict(){return m(this,Hn,"f")}getStrictCommands(){return m(this,Un,"f")}getStrictOptions(){return m(this,zn,"f")}global(t,r){return F("<string|array> [boolean]",[t,r],arguments.length),t=[].concat(t),r!==!1?m(this,W,"f").local=m(this,W,"f").local.filter(n=>t.indexOf(n)===-1):t.forEach(n=>{m(this,W,"f").local.includes(n)||m(this,W,"f").local.push(n)}),this}group(t,r){F("<string|array> <string>",[t,r],arguments.length);let n=m(this,Bn,"f")[r]||m(this,wr,"f")[r];m(this,Bn,"f")[r]&&delete m(this,Bn,"f")[r];let i={};return m(this,wr,"f")[r]=(n||[]).concat(t).filter(o=>i[o]?!1:i[o]=!0),this}hide(t){return F("<string>",[t],arguments.length),m(this,W,"f").hiddenOptions.push(t),this}implies(t,r){return F("<string|object> [number|string|array]",[t,r],arguments.length),m(this,He,"f").implies(t,r),this}locale(t){return F("[string]",[t],arguments.length),t===void 0?(this[Yc](),m(this,re,"f").y18n.getLocale()):(B(this,Fn,!1,"f"),m(this,re,"f").y18n.setLocale(t),this)}middleware(t,r,n){return m(this,Gt,"f").addMiddleware(t,!!r,n)}nargs(t,r){return F("<string|object|array> [number]",[t,r],arguments.length),this[Ri](this.nargs.bind(this),"narg",t,r),this}normalize(t){return F("<array|string>",[t],arguments.length),this[un]("normalize",t),this}number(t){return F("<array|string>",[t],arguments.length),this[un]("number",t),this[Kn](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[Kn](t),m(this,$r,"f")&&(t==="version"||(r==null?void 0:r.alias)==="version")&&this[ig](['"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(`
135
+ `),void 0,"versionWarning"),m(this,W,"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,W,"f").defaultDescription[t]=r.defaultDescription),r.skipValidation&&this.skipValidation(t);let o=r.describe||r.description||r.desc,a=m(this,se,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(a,t)||typeof o=="string")&&this.describe(t,o),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[sg](),typeof t>"u"&&(t=m(this,an,"f")),typeof r=="object"&&(B(this,Vn,r,"f"),r=n),typeof r=="function"&&(B(this,Tt,r,"f"),r=!1),r||B(this,an,t,"f"),m(this,Tt,"f")&&B(this,zt,!1,"f");let i=this[Bs](t,!!r),o=this.parsed;return m(this,Ut,"f").setParsed(this.parsed),ke(i)?i.then(a=>(m(this,Tt,"f")&&m(this,Tt,"f").call(this,m(this,on,"f"),a,m(this,st,"f")),a)).catch(a=>{throw m(this,Tt,"f")&&m(this,Tt,"f")(a,this.parsed.argv,m(this,st,"f")),a}).finally(()=>{this[rl](),this.parsed=o}):(m(this,Tt,"f")&&m(this,Tt,"f").call(this,m(this,on,"f"),i,m(this,st,"f")),this[rl](),this.parsed=o,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 je(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return i}parserConfiguration(t){return F("<object>",[t],arguments.length),B(this,ba,t,"f"),this}pkgConf(t,r){F("<string> [string]",[t,r],arguments.length);let n=null,i=this[Jc](r||m(this,Ln,"f"));return i[t]&&typeof i[t]=="object"&&(n=Fs(i[t],r||m(this,Ln,"f"),this[Gn]()["deep-merge-config"]||!1,m(this,re,"f")),m(this,W,"f").configObjects=(m(this,W,"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=nn(r,(a,u)=>a==="type"&&!["string","number","boolean"].includes(u)?!1:n.includes(a));let i=m(this,Vs,"f").fullCommands[m(this,Vs,"f").fullCommands.length-1],o=i?m(this,Ze,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return Ei(o).forEach(a=>{let u=o[a];Array.isArray(u)?u.indexOf(t)!==-1&&(r[a]=!0):u[t]&&!(a in r)&&(r[a]=u[t])}),this.group(t,m(this,se,"f").getPositionalGroupName()),this.option(t,r)}recommendCommands(t=!0){return F("[boolean]",[t],arguments.length),B(this,_a,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,W,"f").narg[t]?this:(this[Ri](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,Ci,"f").log(m(this,Ut,"f").generateCompletionScript(t,r||m(this,Nt,"f")||"completion")),this}showHelp(t){if(F("[string|function]",[t],arguments.length),B(this,Mt,!0,"f"),!m(this,se,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[Bs](m(this,an,"f"),void 0,void 0,0,!0);if(ke(n))return n.then(()=>{m(this,se,"f").showHelp(t)}),this}let r=m(this,Ze,"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[un]("skipValidation",t),this}strict(t){return F("[boolean]",[t],arguments.length),B(this,Hn,t!==!1,"f"),this}strictCommands(t){return F("[boolean]",[t],arguments.length),B(this,Un,t!==!1,"f"),this}strictOptions(t){return F("[boolean]",[t],arguments.length),B(this,zn,t!==!1,"f"),this}string(t){return F("<array|string>",[t],arguments.length),this[un]("string",t),this[Kn](t),this}terminalWidth(){return F([],0),m(this,re,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return F("<object>",[t],arguments.length),B(this,Fn,!1,"f"),m(this,re,"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(vt(t,null,m(this,re,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,r,n,i);throw new je(".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,Sa,t,"f"),this}version(t,r,n){let i="version";if(F("[boolean|string] [string] [string]",[t,r,n],arguments.length),m(this,$r,"f")&&(this[Zc](m(this,$r,"f")),m(this,se,"f").version(void 0),B(this,$r,null,"f")),arguments.length===0)n=this[ug](),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,$r,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,$r,"f")),this.describe(m(this,$r,"f"),r),this}wrap(t){return F("<number|null|undefined>",[t],arguments.length),m(this,se,"f").wrap(t),this}[(Ze=new WeakMap,Ln=new WeakMap,Vs=new WeakMap,Ut=new WeakMap,Nt=new WeakMap,ha=new WeakMap,on=new WeakMap,Fn=new WeakMap,ma=new WeakMap,zt=new WeakMap,ga=new WeakMap,Gt=new WeakMap,wr=new WeakMap,Mt=new WeakMap,Wt=new WeakMap,ya=new WeakMap,Ci=new WeakMap,st=new WeakMap,W=new WeakMap,va=new WeakMap,ba=new WeakMap,Tt=new WeakMap,Vn=new WeakMap,Ii=new WeakMap,Bn=new WeakMap,an=new WeakMap,_a=new WeakMap,re=new WeakMap,Hn=new WeakMap,Un=new WeakMap,zn=new WeakMap,se=new WeakMap,Sa=new WeakMap,$r=new WeakMap,He=new WeakMap,rg)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[ng](){return{log:s((...t)=>{this[wa]()||console.log(...t),B(this,Mt,!0,"f"),m(this,st,"f").length&&B(this,st,m(this,st,"f")+`
136
+ `,"f"),B(this,st,m(this,st,"f")+t.join(" "),"f")},"log"),error:s((...t)=>{this[wa]()||console.error(...t),B(this,Mt,!0,"f"),m(this,st,"f").length&&B(this,st,m(this,st,"f")+`
137
+ `,"f"),B(this,st,m(this,st,"f")+t.join(" "),"f")},"error")}}[Zc](t){Ei(m(this,W,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=m(this,W,"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]}[ig](t,r,n){m(this,ma,"f")[n]||(m(this,re,"f").process.emitWarning(t,r),m(this,ma,"f")[n]=!0)}[sg](){m(this,ga,"f").push({options:m(this,W,"f"),configObjects:m(this,W,"f").configObjects.slice(0),exitProcess:m(this,zt,"f"),groups:m(this,wr,"f"),strict:m(this,Hn,"f"),strictCommands:m(this,Un,"f"),strictOptions:m(this,zn,"f"),completionCommand:m(this,Nt,"f"),output:m(this,st,"f"),exitError:m(this,on,"f"),hasOutput:m(this,Mt,"f"),parsed:this.parsed,parseFn:m(this,Tt,"f"),parseContext:m(this,Vn,"f")}),m(this,se,"f").freeze(),m(this,He,"f").freeze(),m(this,Ze,"f").freeze(),m(this,Gt,"f").freeze()}[og](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(m(this,re,"f").process.argv()[0])?r=m(this,re,"f").process.argv().slice(1,2):r=m(this,re,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[bg](m(this,Ln,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),m(this,re,"f").getEnv("_")&&m(this,re,"f").getProcessArgvBin()===m(this,re,"f").getEnv("_")&&(t=m(this,re,"f").getEnv("_").replace(`${m(this,re,"f").path.dirname(m(this,re,"f").process.execPath())}/`,"")),t}[Gn](){return m(this,ba,"f")}[ag](){return m(this,Sa,"f")}[Yc](){if(!m(this,Fn,"f"))return;let t=m(this,re,"f").getEnv("LC_ALL")||m(this,re,"f").getEnv("LC_MESSAGES")||m(this,re,"f").getEnv("LANG")||m(this,re,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[ug](){return this[Jc]().version||"unknown"}[cg](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)m(this,re,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[Jc](t){let r=t||"*";if(m(this,Ii,"f")[r])return m(this,Ii,"f")[r];let n={};try{let i=t||m(this,re,"f").mainFilename;!t&&m(this,re,"f").path.extname(i)&&(i=m(this,re,"f").path.dirname(i));let o=m(this,re,"f").findUp(i,(a,u)=>{if(u.includes("package.json"))return"package.json"});vt(o,void 0,m(this,re,"f")),n=JSON.parse(m(this,re,"f").readFileSync(o,"utf8"))}catch{}return m(this,Ii,"f")[r]=n||{},m(this,Ii,"f")[r]}[un](t,r){r=[].concat(r),r.forEach(n=>{n=this[el](n),m(this,W,"f")[t].push(n)})}[Ri](t,r,n,i){this[Xc](t,r,n,i,(o,a,u)=>{m(this,W,"f")[o][a]=u})}[Qc](t,r,n,i){this[Xc](t,r,n,i,(o,a,u)=>{m(this,W,"f")[o][a]=(m(this,W,"f")[o][a]||[]).concat(u)})}[Xc](t,r,n,i,o){if(Array.isArray(n))n.forEach(a=>{t(a,i)});else if((a=>typeof a=="object")(n))for(let a of Ei(n))t(a,n[a]);else o(r,this[el](n),i)}[el](t){return t==="__proto__"?"___proto___":t}[tl](t,r){return this[Ri](this[tl].bind(this),"key",t,r),this}[rl](){var t,r,n,i,o,a,u,c,l,p,f,d;let h=m(this,ga,"f").pop();vt(h,void 0,m(this,re,"f"));let y;t=this,r=this,n=this,i=this,o=this,a=this,u=this,c=this,l=this,p=this,f=this,d=this,{options:{set value(v){B(t,W,v,"f")}}.value,configObjects:y,exitProcess:{set value(v){B(r,zt,v,"f")}}.value,groups:{set value(v){B(n,wr,v,"f")}}.value,output:{set value(v){B(i,st,v,"f")}}.value,exitError:{set value(v){B(o,on,v,"f")}}.value,hasOutput:{set value(v){B(a,Mt,v,"f")}}.value,parsed:this.parsed,strict:{set value(v){B(u,Hn,v,"f")}}.value,strictCommands:{set value(v){B(c,Un,v,"f")}}.value,strictOptions:{set value(v){B(l,zn,v,"f")}}.value,completionCommand:{set value(v){B(p,Nt,v,"f")}}.value,parseFn:{set value(v){B(f,Tt,v,"f")}}.value,parseContext:{set value(v){B(d,Vn,v,"f")}}.value}=h,m(this,W,"f").configObjects=y,m(this,se,"f").unfreeze(),m(this,He,"f").unfreeze(),m(this,Ze,"f").unfreeze(),m(this,Gt,"f").unfreeze()}[lg](t,r){return Dn(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[fg].bind(this),getContext:this[pg].bind(this),getHasOutput:this[dg].bind(this),getLoggerInstance:this[hg].bind(this),getParseContext:this[mg].bind(this),getParserConfiguration:this[Gn].bind(this),getUsageConfiguration:this[ag].bind(this),getUsageInstance:this[gg].bind(this),getValidationInstance:this[yg].bind(this),hasParseCallback:this[wa].bind(this),isGlobalContext:this[vg].bind(this),postProcess:this[Wn].bind(this),reset:this[nl].bind(this),runValidation:this[il].bind(this),runYargsParserAndExecuteCommands:this[Bs].bind(this),setHasOutput:this[_g].bind(this)}}[fg](){return m(this,Ze,"f")}[pg](){return m(this,Vs,"f")}[dg](){return m(this,Mt,"f")}[hg](){return m(this,Ci,"f")}[mg](){return m(this,Vn,"f")||{}}[gg](){return m(this,se,"f")}[yg](){return m(this,He,"f")}[wa](){return!!m(this,Tt,"f")}[vg](){return m(this,ya,"f")}[Wn](t,r,n,i){return n||ke(t)||(r||(t=this[rg](t)),(this[Gn]()["parse-positional-numbers"]||this[Gn]()["parse-positional-numbers"]===void 0)&&(t=this[cg](t)),i&&(t=qn(t,this,m(this,Gt,"f").getMiddleware(),!1))),t}[nl](t={}){B(this,W,m(this,W,"f")||{},"f");let r={};r.local=m(this,W,"f").local||[],r.configObjects=m(this,W,"f").configObjects||[];let n={};r.local.forEach(a=>{n[a]=!0,(t[a]||[]).forEach(u=>{n[u]=!0})}),Object.assign(m(this,Bn,"f"),Object.keys(m(this,wr,"f")).reduce((a,u)=>{let c=m(this,wr,"f")[u].filter(l=>!(l in n));return c.length>0&&(a[u]=c),a},{})),B(this,wr,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],o=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(a=>{r[a]=(m(this,W,"f")[a]||[]).filter(u=>!n[u])}),o.forEach(a=>{r[a]=nn(m(this,W,"f")[a],u=>!n[u])}),r.envPrefix=m(this,W,"f").envPrefix,B(this,W,r,"f"),B(this,se,m(this,se,"f")?m(this,se,"f").reset(n):Km(this,m(this,re,"f")),"f"),B(this,He,m(this,He,"f")?m(this,He,"f").reset(n):eg(this,m(this,se,"f"),m(this,re,"f")),"f"),B(this,Ze,m(this,Ze,"f")?m(this,Ze,"f").reset():zm(m(this,se,"f"),m(this,He,"f"),m(this,Gt,"f"),m(this,re,"f")),"f"),m(this,Ut,"f")||B(this,Ut,Jm(this,m(this,se,"f"),m(this,Ze,"f"),m(this,re,"f")),"f"),m(this,Gt,"f").reset(),B(this,Nt,null,"f"),B(this,st,"","f"),B(this,on,null,"f"),B(this,Mt,!1,"f"),this.parsed=!1,this}[bg](t,r){return m(this,re,"f").path.relative(t,r)}[Bs](t,r,n,i=0,o=!1){let a=!!n||o;t=t||m(this,an,"f"),m(this,W,"f").__=m(this,re,"f").y18n.__,m(this,W,"f").configuration=this[Gn]();let u=!!m(this,W,"f").configuration["populate--"],c=Object.assign({},m(this,W,"f").configuration,{"populate--":!0}),l=m(this,re,"f").Parser.detailed(t,Object.assign({},m(this,W,"f"),{configuration:{"parse-positional-numbers":!1,...c}})),p=Object.assign(l.argv,m(this,Vn,"f")),f,d=l.aliases,h=!1,y=!1;Object.keys(p).forEach(v=>{v===m(this,Wt,"f")&&p[v]?h=!0:v===m(this,$r,"f")&&p[v]&&(y=!0)}),p.$0=this.$0,this.parsed=l,i===0&&m(this,se,"f").clearCachedHelpMessage();try{if(this[Yc](),r)return this[Wn](p,u,!!n,!1);m(this,Wt,"f")&&[m(this,Wt,"f")].concat(d[m(this,Wt,"f")]||[]).filter(k=>k.length>1).includes(""+p._[p._.length-1])&&(p._.pop(),h=!0),B(this,ya,!1,"f");let v=m(this,Ze,"f").getCommands(),g=m(this,Ut,"f").completionKey in p,$=h||g||o;if(p._.length){if(v.length){let A;for(let k=i||0,C;p._[k]!==void 0;k++)if(C=String(p._[k]),v.includes(C)&&C!==m(this,Nt,"f")){let I=m(this,Ze,"f").runCommand(C,this,l,k+1,o,h||y||o);return this[Wn](I,u,!!n,!1)}else if(!A&&C!==m(this,Nt,"f")){A=C;break}!m(this,Ze,"f").hasDefaultCommand()&&m(this,_a,"f")&&A&&!$&&m(this,He,"f").recommendCommands(A,v)}m(this,Nt,"f")&&p._.includes(m(this,Nt,"f"))&&!g&&(m(this,zt,"f")&&sn(!0),this.showCompletionScript(),this.exit(0))}if(m(this,Ze,"f").hasDefaultCommand()&&!$){let A=m(this,Ze,"f").runCommand(null,this,l,0,o,h||y||o);return this[Wn](A,u,!!n,!1)}if(g){m(this,zt,"f")&&sn(!0),t=[].concat(t);let A=t.slice(t.indexOf(`--${m(this,Ut,"f").completionKey}`)+1);return m(this,Ut,"f").getCompletion(A,(k,C)=>{if(k)throw new je(k.message);(C||[]).forEach(I=>{m(this,Ci,"f").log(I)}),this.exit(0)}),this[Wn](p,!u,!!n,!1)}if(m(this,Mt,"f")||(h?(m(this,zt,"f")&&sn(!0),a=!0,this.showHelp("log"),this.exit(0)):y&&(m(this,zt,"f")&&sn(!0),a=!0,m(this,se,"f").showVersion("log"),this.exit(0))),!a&&m(this,W,"f").skipValidation.length>0&&(a=Object.keys(p).some(A=>m(this,W,"f").skipValidation.indexOf(A)>=0&&p[A]===!0)),!a){if(l.error)throw new je(l.error.message);if(!g){let A=this[il](d,{},l.error);n||(f=qn(p,this,m(this,Gt,"f").getMiddleware(),!0)),f=this[lg](A,f??p),ke(f)&&!n&&(f=f.then(()=>qn(p,this,m(this,Gt,"f").getMiddleware(),!1)))}}}catch(v){if(v instanceof je)m(this,se,"f").fail(v.message,v);else throw v}return this[Wn](f??p,u,!!n,!0)}[il](t,r,n,i){let o={...this.getDemandedOptions()};return a=>{if(n)throw new je(n.message);m(this,He,"f").nonOptionCount(a),m(this,He,"f").requiredArguments(a,o);let u=!1;m(this,Un,"f")&&(u=m(this,He,"f").unknownCommands(a)),m(this,Hn,"f")&&!u?m(this,He,"f").unknownArguments(a,t,r,!!i):m(this,zn,"f")&&m(this,He,"f").unknownArguments(a,t,{},!1,!1),m(this,He,"f").limitedChoices(a),m(this,He,"f").implications(a),m(this,He,"f").conflicting(a)}}[_g](){B(this,Mt,!0,"f")}[Kn](t){if(typeof t=="string")m(this,W,"f").key[t]=!0;else for(let r of t)m(this,W,"f").key[r]=!0}};s(ol,"YargsInstance");var sl=ol;function Gm(e){return!!e&&typeof e.getInternalMethods=="function"}s(Gm,"isYargsInstance");var PP=Sg(Lc),wg=PP;var $g=s((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),Pg=s((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),Og=s((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),De={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]}},KL=Object.keys(De.modifier),OP=Object.keys(De.color),xP=Object.keys(De.bgColor),ZL=[...OP,...xP];function EP(){let e=new Map;for(let[t,r]of Object.entries(De)){for(let[n,i]of Object.entries(r))De[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=De[n],e.set(i[0],i[1]);Object.defineProperty(De,t,{value:r,enumerable:!1})}return Object.defineProperty(De,"codes",{value:e,enumerable:!1}),De.color.close="\x1B[39m",De.bgColor.close="\x1B[49m",De.color.ansi=$g(),De.color.ansi256=Pg(),De.color.ansi16m=Og(),De.bgColor.ansi=$g(10),De.bgColor.ansi256=Pg(10),De.bgColor.ansi16m=Og(10),Object.defineProperties(De,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(o=>o+o).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:s(t=>De.rgbToAnsi256(...De.hexToRgb(t)),"value"),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let u=t%36;r=Math.floor(t/36)/5,n=Math.floor(u/6)/5,i=u%6/5}let o=Math.max(r,n,i)*2;if(o===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return o===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:s((t,r,n)=>De.ansi256ToAnsi(De.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:s(t=>De.ansi256ToAnsi(De.hexToAnsi256(t)),"value"),enumerable:!1}}),De}s(EP,"assembleStyles");var AP=EP(),or=AP;import al from"process";import CP from"os";import xg from"tty";function Kt(e,t=globalThis.Deno?globalThis.Deno.args:al.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}s(Kt,"hasFlag");var{env:Ve}=al,$a;Kt("no-color")||Kt("no-colors")||Kt("color=false")||Kt("color=never")?$a=0:(Kt("color")||Kt("colors")||Kt("color=true")||Kt("color=always"))&&($a=1);function IP(){if("FORCE_COLOR"in Ve)return Ve.FORCE_COLOR==="true"?1:Ve.FORCE_COLOR==="false"?0:Ve.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Ve.FORCE_COLOR,10),3)}s(IP,"envForceColor");function RP(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}s(RP,"translateLevel");function jP(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=IP();n!==void 0&&($a=n);let i=r?$a:n;if(i===0)return 0;if(r){if(Kt("color=16m")||Kt("color=full")||Kt("color=truecolor"))return 3;if(Kt("color=256"))return 2}if("TF_BUILD"in Ve&&"AGENT_NAME"in Ve)return 1;if(e&&!t&&i===void 0)return 0;let o=i||0;if(Ve.TERM==="dumb")return o;if(al.platform==="win32"){let a=CP.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Ve)return"GITHUB_ACTIONS"in Ve||"GITEA_ACTIONS"in Ve?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in Ve)||Ve.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in Ve)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ve.TEAMCITY_VERSION)?1:0;if(Ve.COLORTERM==="truecolor"||Ve.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Ve){let a=Number.parseInt((Ve.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ve.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ve.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ve.TERM)||"COLORTERM"in Ve?1:o}s(jP,"_supportsColor");function Eg(e,t={}){let r=jP(e,{streamIsTTY:e&&e.isTTY,...t});return RP(r)}s(Eg,"createSupportsColor");var kP={stdout:Eg({isTTY:xg.isatty(1)}),stderr:Eg({isTTY:xg.isatty(2)})},Ag=kP;function Cg(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,o=0,a="";do a+=e.slice(o,n)+t+r,o=n+i,n=e.indexOf(t,o);while(n!==-1);return a+=e.slice(o),a}s(Cg,"stringReplaceAll");function Ig(e,t,r,n){let i=0,o="";do{let a=e[n-1]==="\r";o+=e.slice(i,a?n-1:n)+t+(a?`\r
138
138
  `:`
139
139
  `)+r,i=n+1,n=e.indexOf(`
140
- `,i)}while(n!==-1);return o+=e.slice(i),o}s(xg,"stringEncaseCRLFWithFirstIndex");var{stdout:Ag,stderr:Cg}=Og,al=Symbol("GENERATOR"),Ri=Symbol("STYLER"),Vs=Symbol("IS_EMPTY"),Ig=["ansi","ansi","ansi256","ansi16m"],ji=Object.create(null),CP=s((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Ag?Ag.level:0;e.level=t.level===void 0?r:t.level},"applyOptions"),ll=class ll{constructor(t){return Rg(t)}};s(ll,"Chalk");var $a=ll,Rg=s(e=>{let t=s((...r)=>r.join(" "),"chalk");return CP(t,e),Object.setPrototypeOf(t,Hs.prototype),t},"chalkFactory");function Hs(e){return Rg(e)}s(Hs,"createChalk");Object.setPrototypeOf(Hs.prototype,Function.prototype);for(let[e,t]of Object.entries(or))ji[e]={get(){let r=Pa(this,cl(t.open,t.close,this[Ri]),this[Vs]);return Object.defineProperty(this,e,{value:r}),r}};ji.visible={get(){let e=Pa(this,this[Ri],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var ul=s((e,t,r,...n)=>e==="rgb"?t==="ansi16m"?or[r].ansi16m(...n):t==="ansi256"?or[r].ansi256(or.rgbToAnsi256(...n)):or[r].ansi(or.rgbToAnsi(...n)):e==="hex"?ul("rgb",t,r,...or.hexToRgb(...n)):or[r][e](...n),"getModelAnsi"),IP=["rgb","hex","ansi256"];for(let e of IP){ji[e]={get(){let{level:r}=this;return function(...n){let i=cl(ul(e,Ig[r],"color",...n),or.color.close,this[Ri]);return Pa(this,i,this[Vs])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);ji[t]={get(){let{level:r}=this;return function(...n){let i=cl(ul(e,Ig[r],"bgColor",...n),or.bgColor.close,this[Ri]);return Pa(this,i,this[Vs])}}}}var RP=Object.defineProperties(()=>{},{...ji,level:{enumerable:!0,get(){return this[al].level},set(e){this[al].level=e}}}),cl=s((e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},"createStyler"),Pa=s((e,t,r)=>{let n=s((...i)=>jP(n,i.length===1?""+i[0]:i.join(" ")),"builder");return Object.setPrototypeOf(n,RP),n[al]=e,n[Ri]=t,n[Vs]=r,n},"createBuilder"),jP=s((e,t)=>{if(e.level<=0||!t)return e[Vs]?"":t;let r=e[Ri];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=Eg(t,r.close,r.open),r=r.parent;let o=t.indexOf(`
141
- `);return o!==-1&&(t=xg(t,i,n,o)),n+t+i},"applyStyle");Object.defineProperties(Hs.prototype,ji);var r5=Hs(),n5=Hs({level:Cg?Cg.level:0});var Zn=new $a;function fl(e,t,r){console.log(r!==void 0&&r!==t?`${Zn.yellow(`${e}:`.padEnd(20))}${Zn.magenta(t)}`:`${`${e}:`.padEnd(20)}${t}`)}s(fl,"logVariable");function ki(e){console.log(`[INFO] ${e}`)}s(ki,"logInfo");function pl(e){console.log(Zn.green(`[SUCCESS] ${e}`))}s(pl,"logSuccess");function Us(e,t){e instanceof Error?(console.log(Zn.red(`[ERROR] ${t||e.message}`)),process.env.VERBOSE&&console.error(e)):console.log(Zn.red(`[ERROR] ${e}`))}s(Us,"logError");function jg(e){console.log(Zn.bgYellow(`==== ${e} ====`))}s(jg,"logBanner");import kP from"fs";function Oa(){return"0.0.10"}s(Oa,"getVersion");var y5=tn(Ng(),1);var dl=Symbol("options_key");function Vr(e){return(t,r)=>{var n,i;if(e!=null){let o={...Reflect.getMetadata(dl,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(dl,o,t)}}}s(Vr,"YargOption");function Mg(e){let t=Reflect.getMetadata(dl,e.prototype);if(!t)throw new Error(`Options for ${e.name} were not defined`);return t}s(Mg,"getYargsOption");function Tg(e){return async t=>t.options(NP(e)).middleware(async r=>await MP(e,r),!0)}s(Tg,"getBuilder");function NP(e){return Object.entries(Mg(e)).reduce((t,[r,n])=>(t[r]=Object.fromEntries(Object.entries(n).filter(([i])=>!["envAlias","default"].includes(i))),t),{})}s(NP,"getYargsOptions");async function MP(e,t){let r=new e;for(let[n,i]of Object.entries(Mg(e)))r[n]=t[n]??i.default;return r}s(MP,"loadYargsConfig");var p$=tn(fS(),1);import{exec as f8}from"child_process";var pS="Schema",dS="Body",hS="Param",mS="Response",gS="ErrorResponse",ih="z.void()",Ru={bindings:["z"],from:"zod"};var yS={output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"}},schemaSuffix:pS,additionalPropertiesDefaultValue:!1};var sh={"Content-Type":"application/json",Accept:"application/json"},oh="AppRestClient",vS={bindings:[oh],from:"@/util/rest/clients/app-rest-client"};var Kr=Symbol.for("@ts-pattern/matcher"),IM=Symbol.for("@ts-pattern/isVariadic"),ku="@ts-pattern/anonymous-select-key",ah=s(e=>!!(e&&typeof e=="object"),"r"),ju=s(e=>e&&!!e[Kr],"i"),Tr=s((e,t,r)=>{if(ju(e)){let n=e[Kr](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(a=>r(a,o[a])),i}if(ah(e)){if(!ah(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],o=[];for(let a of e.keys()){let u=e[a];ju(u)&&u[IM]?o.push(u):o.length?i.push(u):n.push(u)}if(o.length){if(o.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let a=t.slice(0,n.length),u=i.length===0?[]:t.slice(-i.length),c=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,p)=>Tr(l,a[p],r))&&i.every((l,p)=>Tr(l,u[p],r))&&(o.length===0||Tr(o[0],c,r))}return e.length===t.length&&e.every((a,u)=>Tr(a,t[u],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||ju(o=i)&&o[Kr]().matcherType==="optional")&&Tr(i,t[n],r);var o})}return Object.is(t,e)},"s"),In=s(e=>{var t,r,n;return ah(e)?ju(e)?(t=(r=(n=e[Kr]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?qo(e,In):qo(Object.values(e),In):[]},"o"),qo=s((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function er(e){return Object.assign(e,{optional:s(()=>RM(e),"optional"),and:s(t=>Le(e,t),"and"),or:s(t=>jM(e,t),"or"),select:s(t=>t===void 0?bS(e):bS(t,e),"select")})}s(er,"u");function RM(e){return er({[Kr]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return t===void 0?(In(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Tr(e,t,n),selections:r}},"match"),getSelectionKeys:s(()=>In(e),"getSelectionKeys"),matcherType:"optional"})})}s(RM,"h");function Le(...e){return er({[Kr]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return{matched:e.every(i=>Tr(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>qo(e,In),"getSelectionKeys"),matcherType:"and"})})}s(Le,"m");function jM(...e){return er({[Kr]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return qo(e,In).forEach(i=>n(i,void 0)),{matched:e.some(i=>Tr(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>qo(e,In),"getSelectionKeys"),matcherType:"or"})})}s(jM,"d");function we(e){return{[Kr]:()=>({match:s(t=>({matched:!!e(t)}),"match")})}}s(we,"p");function bS(...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 er({[Kr]:()=>({match:s(n=>{let i={[t??ku]:n};return{matched:r===void 0||Tr(r,n,(o,a)=>{i[o]=a}),selections:i}},"match"),getSelectionKeys:s(()=>[t??ku].concat(r===void 0?[]:In(r)),"getSelectionKeys")})})}s(bS,"y");function Nr(e){return typeof e=="number"}s(Nr,"v");function En(e){return typeof e=="string"}s(En,"b");function xn(e){return typeof e=="bigint"}s(xn,"w");var NB=er(we(function(e){return!0}));var An=s(e=>Object.assign(er(e),{startsWith:s(t=>{return An(Le(e,(r=t,we(n=>En(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:s(t=>{return An(Le(e,(r=t,we(n=>En(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:s(t=>An(Le(e,(r=>we(n=>En(n)&&n.length>=r))(t))),"minLength"),length:s(t=>An(Le(e,(r=>we(n=>En(n)&&n.length===r))(t))),"length"),maxLength:s(t=>An(Le(e,(r=>we(n=>En(n)&&n.length<=r))(t))),"maxLength"),includes:s(t=>{return An(Le(e,(r=t,we(n=>En(n)&&n.includes(r)))));var r},"includes"),regex:s(t=>{return An(Le(e,(r=t,we(n=>En(n)&&!!n.match(r)))));var r},"regex")}),"j"),MB=An(we(En)),Mr=s(e=>Object.assign(er(e),{between:s((t,r)=>Mr(Le(e,((n,i)=>we(o=>Nr(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>Mr(Le(e,(r=>we(n=>Nr(n)&&n<r))(t))),"lt"),gt:s(t=>Mr(Le(e,(r=>we(n=>Nr(n)&&n>r))(t))),"gt"),lte:s(t=>Mr(Le(e,(r=>we(n=>Nr(n)&&n<=r))(t))),"lte"),gte:s(t=>Mr(Le(e,(r=>we(n=>Nr(n)&&n>=r))(t))),"gte"),int:s(()=>Mr(Le(e,we(t=>Nr(t)&&Number.isInteger(t)))),"int"),finite:s(()=>Mr(Le(e,we(t=>Nr(t)&&Number.isFinite(t)))),"finite"),positive:s(()=>Mr(Le(e,we(t=>Nr(t)&&t>0))),"positive"),negative:s(()=>Mr(Le(e,we(t=>Nr(t)&&t<0))),"negative")}),"x"),TB=Mr(we(Nr)),Cn=s(e=>Object.assign(er(e),{between:s((t,r)=>Cn(Le(e,((n,i)=>we(o=>xn(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>Cn(Le(e,(r=>we(n=>xn(n)&&n<r))(t))),"lt"),gt:s(t=>Cn(Le(e,(r=>we(n=>xn(n)&&n>r))(t))),"gt"),lte:s(t=>Cn(Le(e,(r=>we(n=>xn(n)&&n<=r))(t))),"lte"),gte:s(t=>Cn(Le(e,(r=>we(n=>xn(n)&&n>=r))(t))),"gte"),positive:s(()=>Cn(Le(e,we(t=>xn(t)&&t>0))),"positive"),negative:s(()=>Cn(Le(e,we(t=>xn(t)&&t<0))),"negative")}),"A"),qB=Cn(we(xn)),DB=er(we(function(e){return typeof e=="boolean"})),LB=er(we(function(e){return typeof e=="symbol"})),FB=er(we(function(e){return e==null})),BB=er(we(function(e){return e!=null}));var fh=class fh extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}};s(fh,"W");var uh=fh,ch={matched:!1,value:void 0};function St(e){return new lh(e,ch)}s(St,"z");var To=class To{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let o=!1,a={},u=s((l,p)=>{o=!0,a[l]=p},"a"),c=!n.some(l=>Tr(l,this.input,u))||i&&!i(this.input)?ch:{matched:!0,value:r(o?ku in a?a[ku]:a:this.input,this.input)};return new To(this.input,c)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new To(this.input,n?{matched:!0,value:r(this.input,this.input)}:ch)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new uh(this.input)}run(){return this.exhaustive()}returnType(){return this}};s(To,"I");var lh=To;var ph=2,_S=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],SS=["query","header","path"],Nu=["get","put","post","delete","options","head","patch","trace"],wS=["string","number","integer","boolean"];var Zr=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Do=s(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),$S=s(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),vr=s(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),PS=s((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),OS=s((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix");var ES=s(e=>`#/components/schemas/${e}`,"getSchemaRef"),Lo=s(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),hh=s(e=>Lo(e).split("/").at(-1),"getSchemaNameByRef");function $e(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}s($e,"isReferenceObject");function xS(e){return kM(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/-+/g,"_").replace(/[^\w\-]+/g,"_").replace(/--+/g,"-")}s(xS,"normalizeString");function AS(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}s(AS,"wrapWithQuotesIfNeeded");function CS(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}s(CS,"unwrapQuotesIfNeeded");function kM(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}s(kM,"prefixStringStartingWithNumberIfNeeded");function mh(e){let t=e.replaceAll("_","#");return vr(t.replaceAll("-","_")).replaceAll("#","_")}s(mh,"pathParamToVariableName");var vs=s(e=>wS.includes(e),"isPrimitiveType");function IS(e){return St(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}s(IS,"primitiveTypeToTsType");function RS(e){return e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/([\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\uFFFE\uFFFF])/g,(t,r)=>{let n=r.codePointAt(),i=n.toString(16);return n<=255?`\\x${`00${i}`.slice(-2)}`:`\\u${`0000${i}`.slice(-4)}`}).replace(/\//g,"\\/")}s(RS,"escapeControlCharacters");function bs(e){return e.includes("application/")&&e.includes("json")||_S.includes(e)||e.includes("text/")}s(bs,"isParamMediaTypeAllowed");function gh(e){return e>=200&&e<300}s(gh,"isMainResponseStatus");function yh(e){return!(e>=200&&e<300)}s(yh,"isErrorStatus");function Mu(e){return e==="application/json"}s(Mu,"isMediaTypeAllowed");function jS(e,t,r){return r.operationId??t+TM(e)}s(jS,"getOperationName");function Tu(e,t){var r;return((r=e.tags)==null?void 0:r[0])??t.defaultTag}s(Tu,"getOperationTag");var NM=/({\w+})/g,MM=/[^\w\-]+/g;function TM(e){return Zr($S(e.replaceAll("/","-")).replaceAll("-","")).replace(NM,t=>Zr(t.slice(1,-1))).replace(MM,"_")}s(TM,"pathToVariableName");var dh=/{(\b\w+(?:-\w+)*\b)}/g;function kS(e){let t=e.match(dh);return t===null?e.replaceAll(dh,":$1"):(t.forEach(r=>{let n=mh(r.replaceAll(dh,":$1"));e=e.replaceAll(r,n)}),e)}s(kS,"replaceHyphenatedPath");function Yr(e){return!$e(e)}s(Yr,"isSchemaObject");function NS(e){return e.type==="array"}s(NS,"isArraySchemaObject");function MS(e){if(!e.allOf)throw new Error("function inferRequiredSchema is specialized to handle item with required only in an allOf array.");let[t,r]=e.allOf.reduce((i,o)=>{if(qM(o)){let a=o.required;i[0].push(...a??[])}else i[1].push(o);return i},[[],[]]),n={properties:t.reduce((i,o)=>(i[o]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:s((i,o)=>{if($e(i)){let a=o(i.$ref);a&&n.required.forEach(u=>{var c;n.properties[u]=((c=a==null?void 0:a.properties)==null?void 0:c[u])??{}})}else{let a=i.properties??{};n.required.forEach(u=>{a[u]&&(n.properties[u]=a[u]??{})})}},"patchRequiredSchemaInLoop")}}s(MS,"inferRequiredSchema");var qM=s(e=>!$e(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var Rn=s((e,t)=>PS(Zr(xS(e)),t),"getZodSchemaName"),Lt=s(e=>!e.startsWith("z."),"isNamedZodSchema"),TS=s(e=>vr(`${e}_${dS}`),"getBodyZodSchemaName"),qS=s((e,t)=>vr(`${e}_${t}${hS}`),"getParamZodSchemaName"),DS=s(e=>vr(`${e}${mS}`),"getMainResponseZodSchemaName"),LS=s((e,t)=>vr(`${e}_${t}_${gS}`),"getErrorResponseZodSchemaName");function qu({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Do(t)}/`:""}${Do(t)}.${i}`:i}s(qu,"getTagFileName");var wt=s(({type:e,tag:t,options:r})=>`${Zr(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var Fo=s((e,t)=>OS(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),FS=s(({resolver:e,zodSchemaName:t,options:r})=>Lt(t)?`${r.includeNamespaces?`${wt({type:"models",tag:e.getTagByZodSchemaName(t),options:r})}.`:""}${t}`:t,"getImportedZodSchemaName"),BS=s(({resolver:e,zodSchemaName:t,options:r})=>Lt(t)?`${r.includeNamespaces?`${wt({type:"models",tag:e.getTagByZodSchemaName(t),options:r})}.`:""}${Fo(t,r)}`:t,"getImportedZodSchemaInferedTypeName");var Bo=s(e=>Do(vr(e.operationName)),"getEndpointName");function VS(e,t){return`${t.includeNamespaces?`${wt({type:"endpoints",tag:Vo(e,t),options:t})}.`:""}${Bo(e)}`}s(VS,"getImportedEndpointName");var HS=s(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function Vo(e,t){var r;return t.splitByTags?((r=e.tags)==null?void 0:r[0])??t.defaultTag:t.defaultTag}s(Vo,"getEndpointTag");function vh({resolver:e,endpoint:t,options:r}){return t.parameters.map(n=>{var o,a,u,c;let i="string";if(Lt(n.zodSchema))i=BS({resolver:e,zodSchemaName:n.zodSchema,options:r});else if((o=n.parameterObject)!=null&&o.schema&&Yr(n.parameterObject.schema)){let l=(u=(a=n.parameterObject)==null?void 0:a.schema)==null?void 0:u.type;l&&vs(l)&&(i=IS(l))}return{name:n.name,type:i,paramType:n.type,required:((c=n.parameterObject)==null?void 0:c.required)??!0}}).sort((n,i)=>{if(n.required===i.required){let o=["Path","Query","Header","Body"];return o.indexOf(n.paramType)-o.indexOf(i.paramType)}return n.required?-1:1})}s(vh,"mapEndpointParamsToFunctionParams");function US(e){let t=e.parameters.filter(i=>i.type==="Query"),r={...e.requestFormat!==sh["Content-Type"]?{"Content-Type":e.requestFormat}:{},...e.responseFormat&&e.responseFormat!==sh.Accept?{Accept:e.responseFormat}:{}};return{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}s(US,"getEndpointConfig");function Du(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}s(Du,"pick");function qr({schema:e,meta:t,options:r}){let n=[];St(e.type).with("string",()=>n.push(FM(e))).with("number","integer",()=>n.push(VM(e))).with("array",()=>n.push(HM(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
140
+ `,i)}while(n!==-1);return o+=e.slice(i),o}s(Ig,"stringEncaseCRLFWithFirstIndex");var{stdout:Rg,stderr:jg}=Ag,ul=Symbol("GENERATOR"),ji=Symbol("STYLER"),Hs=Symbol("IS_EMPTY"),kg=["ansi","ansi","ansi256","ansi16m"],ki=Object.create(null),NP=s((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Rg?Rg.level:0;e.level=t.level===void 0?r:t.level},"applyOptions"),fl=class fl{constructor(t){return Ng(t)}};s(fl,"Chalk");var Pa=fl,Ng=s(e=>{let t=s((...r)=>r.join(" "),"chalk");return NP(t,e),Object.setPrototypeOf(t,Us.prototype),t},"chalkFactory");function Us(e){return Ng(e)}s(Us,"createChalk");Object.setPrototypeOf(Us.prototype,Function.prototype);for(let[e,t]of Object.entries(or))ki[e]={get(){let r=Oa(this,ll(t.open,t.close,this[ji]),this[Hs]);return Object.defineProperty(this,e,{value:r}),r}};ki.visible={get(){let e=Oa(this,this[ji],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var cl=s((e,t,r,...n)=>e==="rgb"?t==="ansi16m"?or[r].ansi16m(...n):t==="ansi256"?or[r].ansi256(or.rgbToAnsi256(...n)):or[r].ansi(or.rgbToAnsi(...n)):e==="hex"?cl("rgb",t,r,...or.hexToRgb(...n)):or[r][e](...n),"getModelAnsi"),MP=["rgb","hex","ansi256"];for(let e of MP){ki[e]={get(){let{level:r}=this;return function(...n){let i=ll(cl(e,kg[r],"color",...n),or.color.close,this[ji]);return Oa(this,i,this[Hs])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);ki[t]={get(){let{level:r}=this;return function(...n){let i=ll(cl(e,kg[r],"bgColor",...n),or.bgColor.close,this[ji]);return Oa(this,i,this[Hs])}}}}var TP=Object.defineProperties(()=>{},{...ki,level:{enumerable:!0,get(){return this[ul].level},set(e){this[ul].level=e}}}),ll=s((e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},"createStyler"),Oa=s((e,t,r)=>{let n=s((...i)=>qP(n,i.length===1?""+i[0]:i.join(" ")),"builder");return Object.setPrototypeOf(n,TP),n[ul]=e,n[ji]=t,n[Hs]=r,n},"createBuilder"),qP=s((e,t)=>{if(e.level<=0||!t)return e[Hs]?"":t;let r=e[ji];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=Cg(t,r.close,r.open),r=r.parent;let o=t.indexOf(`
141
+ `);return o!==-1&&(t=Ig(t,i,n,o)),n+t+i},"applyStyle");Object.defineProperties(Us.prototype,ki);var u5=Us(),c5=Us({level:jg?jg.level:0});var Zn=new Pa;function pl(e,t,r){console.log(r!==void 0&&r!==t?`${Zn.yellow(`${e}:`.padEnd(20))}${Zn.magenta(t)}`:`${`${e}:`.padEnd(20)}${t}`)}s(pl,"logVariable");function Ni(e){console.log(`[INFO] ${e}`)}s(Ni,"logInfo");function dl(e){console.log(Zn.green(`[SUCCESS] ${e}`))}s(dl,"logSuccess");function zs(e,t){e instanceof Error?(console.log(Zn.red(`[ERROR] ${t||e.message}`)),process.env.VERBOSE&&console.error(e)):console.log(Zn.red(`[ERROR] ${e}`))}s(zs,"logError");function Mg(e){console.log(Zn.bgYellow(`==== ${e} ====`))}s(Mg,"logBanner");import DP from"fs";function xa(){return"0.0.11"}s(xa,"getVersion");var $5=tn(qg(),1);var hl=Symbol("options_key");function Br(e){return(t,r)=>{var n,i;if(e!=null){let o={...Reflect.getMetadata(hl,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(hl,o,t)}}}s(Br,"YargOption");function Dg(e){let t=Reflect.getMetadata(hl,e.prototype);if(!t)throw new Error(`Options for ${e.name} were not defined`);return t}s(Dg,"getYargsOption");function Lg(e){return async t=>t.options(LP(e)).middleware(async r=>await FP(e,r),!0)}s(Lg,"getBuilder");function LP(e){return Object.entries(Dg(e)).reduce((t,[r,n])=>(t[r]=Object.fromEntries(Object.entries(n).filter(([i])=>!["envAlias","default"].includes(i))),t),{})}s(LP,"getYargsOptions");async function FP(e,t){let r=new e;for(let[n,i]of Object.entries(Dg(e)))r[n]=t[n]??i.default;return r}s(FP,"loadYargsConfig");var y$=tn(h1(),1);import{exec as y8}from"child_process";var m1="Schema",g1="Body",y1="Param",v1="Response",b1="ErrorResponse",sh="z.void()",ju={bindings:["z"],from:"zod"};var _1={output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"}},schemaSuffix:m1,additionalPropertiesDefaultValue:!1};var oh={"Content-Type":"application/json",Accept:"application/json"},ah="AppRestClient",S1={bindings:[ah],from:"@/util/rest/clients/app-rest-client"};var w1=s(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),uh=s(e=>e.replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");var Kr=Symbol.for("@ts-pattern/matcher"),MM=Symbol.for("@ts-pattern/isVariadic"),Nu="@ts-pattern/anonymous-select-key",ch=s(e=>!!(e&&typeof e=="object"),"r"),ku=s(e=>e&&!!e[Kr],"i"),Tr=s((e,t,r)=>{if(ku(e)){let n=e[Kr](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(a=>r(a,o[a])),i}if(ch(e)){if(!ch(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],o=[];for(let a of e.keys()){let u=e[a];ku(u)&&u[MM]?o.push(u):o.length?i.push(u):n.push(u)}if(o.length){if(o.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let a=t.slice(0,n.length),u=i.length===0?[]:t.slice(-i.length),c=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,p)=>Tr(l,a[p],r))&&i.every((l,p)=>Tr(l,u[p],r))&&(o.length===0||Tr(o[0],c,r))}return e.length===t.length&&e.every((a,u)=>Tr(a,t[u],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||ku(o=i)&&o[Kr]().matcherType==="optional")&&Tr(i,t[n],r);var o})}return Object.is(t,e)},"s"),In=s(e=>{var t,r,n;return ch(e)?ku(e)?(t=(r=(n=e[Kr]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Do(e,In):Do(Object.values(e),In):[]},"o"),Do=s((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function er(e){return Object.assign(e,{optional:s(()=>TM(e),"optional"),and:s(t=>Le(e,t),"and"),or:s(t=>qM(e,t),"or"),select:s(t=>t===void 0?$1(e):$1(t,e),"select")})}s(er,"u");function TM(e){return er({[Kr]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return t===void 0?(In(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Tr(e,t,n),selections:r}},"match"),getSelectionKeys:s(()=>In(e),"getSelectionKeys"),matcherType:"optional"})})}s(TM,"h");function Le(...e){return er({[Kr]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return{matched:e.every(i=>Tr(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>Do(e,In),"getSelectionKeys"),matcherType:"and"})})}s(Le,"m");function qM(...e){return er({[Kr]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return Do(e,In).forEach(i=>n(i,void 0)),{matched:e.some(i=>Tr(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>Do(e,In),"getSelectionKeys"),matcherType:"or"})})}s(qM,"d");function we(e){return{[Kr]:()=>({match:s(t=>({matched:!!e(t)}),"match")})}}s(we,"p");function $1(...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 er({[Kr]:()=>({match:s(n=>{let i={[t??Nu]:n};return{matched:r===void 0||Tr(r,n,(o,a)=>{i[o]=a}),selections:i}},"match"),getSelectionKeys:s(()=>[t??Nu].concat(r===void 0?[]:In(r)),"getSelectionKeys")})})}s($1,"y");function Nr(e){return typeof e=="number"}s(Nr,"v");function xn(e){return typeof e=="string"}s(xn,"b");function En(e){return typeof e=="bigint"}s(En,"w");var BV=er(we(function(e){return!0}));var An=s(e=>Object.assign(er(e),{startsWith:s(t=>{return An(Le(e,(r=t,we(n=>xn(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:s(t=>{return An(Le(e,(r=t,we(n=>xn(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:s(t=>An(Le(e,(r=>we(n=>xn(n)&&n.length>=r))(t))),"minLength"),length:s(t=>An(Le(e,(r=>we(n=>xn(n)&&n.length===r))(t))),"length"),maxLength:s(t=>An(Le(e,(r=>we(n=>xn(n)&&n.length<=r))(t))),"maxLength"),includes:s(t=>{return An(Le(e,(r=t,we(n=>xn(n)&&n.includes(r)))));var r},"includes"),regex:s(t=>{return An(Le(e,(r=t,we(n=>xn(n)&&!!n.match(r)))));var r},"regex")}),"j"),HV=An(we(xn)),Mr=s(e=>Object.assign(er(e),{between:s((t,r)=>Mr(Le(e,((n,i)=>we(o=>Nr(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>Mr(Le(e,(r=>we(n=>Nr(n)&&n<r))(t))),"lt"),gt:s(t=>Mr(Le(e,(r=>we(n=>Nr(n)&&n>r))(t))),"gt"),lte:s(t=>Mr(Le(e,(r=>we(n=>Nr(n)&&n<=r))(t))),"lte"),gte:s(t=>Mr(Le(e,(r=>we(n=>Nr(n)&&n>=r))(t))),"gte"),int:s(()=>Mr(Le(e,we(t=>Nr(t)&&Number.isInteger(t)))),"int"),finite:s(()=>Mr(Le(e,we(t=>Nr(t)&&Number.isFinite(t)))),"finite"),positive:s(()=>Mr(Le(e,we(t=>Nr(t)&&t>0))),"positive"),negative:s(()=>Mr(Le(e,we(t=>Nr(t)&&t<0))),"negative")}),"x"),UV=Mr(we(Nr)),Cn=s(e=>Object.assign(er(e),{between:s((t,r)=>Cn(Le(e,((n,i)=>we(o=>En(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>Cn(Le(e,(r=>we(n=>En(n)&&n<r))(t))),"lt"),gt:s(t=>Cn(Le(e,(r=>we(n=>En(n)&&n>r))(t))),"gt"),lte:s(t=>Cn(Le(e,(r=>we(n=>En(n)&&n<=r))(t))),"lte"),gte:s(t=>Cn(Le(e,(r=>we(n=>En(n)&&n>=r))(t))),"gte"),positive:s(()=>Cn(Le(e,we(t=>En(t)&&t>0))),"positive"),negative:s(()=>Cn(Le(e,we(t=>En(t)&&t<0))),"negative")}),"A"),zV=Cn(we(En)),GV=er(we(function(e){return typeof e=="boolean"})),WV=er(we(function(e){return typeof e=="symbol"})),KV=er(we(function(e){return e==null})),ZV=er(we(function(e){return e!=null}));var dh=class dh extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}};s(dh,"W");var lh=dh,fh={matched:!1,value:void 0};function wt(e){return new ph(e,fh)}s(wt,"z");var qo=class qo{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let o=!1,a={},u=s((l,p)=>{o=!0,a[l]=p},"a"),c=!n.some(l=>Tr(l,this.input,u))||i&&!i(this.input)?fh:{matched:!0,value:r(o?Nu in a?a[Nu]:a:this.input,this.input)};return new qo(this.input,c)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new qo(this.input,n?{matched:!0,value:r(this.input,this.input)}:fh)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new lh(this.input)}run(){return this.exhaustive()}returnType(){return this}};s(qo,"I");var ph=qo;var hh=2,P1=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],O1=["query","header","path"],Mu=["get","put","post","delete","options","head","patch","trace"],x1=["string","number","integer","boolean"];var Zr=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Lo=s(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),E1=s(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),vr=s(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),A1=s(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),C1=s((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),I1=s((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix");var R1=s(e=>`#/components/schemas/${e}`,"getSchemaRef"),Fo=s(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),gh=s(e=>Fo(e).split("/").at(-1),"getSchemaNameByRef");function $e(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}s($e,"isReferenceObject");function j1(e){return DM(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/-+/g,"_").replace(/[^\w\-]+/g,"_").replace(/--+/g,"-")}s(j1,"normalizeString");function k1(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}s(k1,"wrapWithQuotesIfNeeded");function N1(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}s(N1,"unwrapQuotesIfNeeded");function DM(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}s(DM,"prefixStringStartingWithNumberIfNeeded");function yh(e){let t=e.replaceAll("_","#");return vr(t.replaceAll("-","_")).replaceAll("#","_")}s(yh,"pathParamToVariableName");var bs=s(e=>x1.includes(e),"isPrimitiveType");function M1(e){return wt(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}s(M1,"primitiveTypeToTsType");function T1(e){return e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/([\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\uFFFE\uFFFF])/g,(t,r)=>{let n=r.codePointAt(),i=n.toString(16);return n<=255?`\\x${`00${i}`.slice(-2)}`:`\\u${`0000${i}`.slice(-4)}`}).replace(/\//g,"\\/")}s(T1,"escapeControlCharacters");function _s(e){return e.includes("application/")&&e.includes("json")||P1.includes(e)||e.includes("text/")}s(_s,"isParamMediaTypeAllowed");function vh(e){return e>=200&&e<300}s(vh,"isMainResponseStatus");function bh(e){return!(e>=200&&e<300)}s(bh,"isErrorStatus");function Tu(e){return e==="application/json"}s(Tu,"isMediaTypeAllowed");function q1(e,t,r){return r.operationId??t+VM(e)}s(q1,"getOperationName");function yi(e){return A1(e)}s(yi,"formatTag");function qu(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return yi(r??t.defaultTag)}s(qu,"getOperationTag");var LM=/({\w+})/g,FM=/[^\w\-]+/g;function VM(e){return Zr(E1(e.replaceAll("/","-")).replaceAll("-","")).replace(LM,t=>Zr(t.slice(1,-1))).replace(FM,"_")}s(VM,"pathToVariableName");var mh=/{(\b\w+(?:-\w+)*\b)}/g;function D1(e){let t=e.match(mh);return t===null?e.replaceAll(mh,":$1"):(t.forEach(r=>{let n=yh(r.replaceAll(mh,":$1"));e=e.replaceAll(r,n)}),e)}s(D1,"replaceHyphenatedPath");function Yr(e){return!$e(e)}s(Yr,"isSchemaObject");function L1(e){return e.type==="array"}s(L1,"isArraySchemaObject");function F1(e){if(!e.allOf)throw new Error("function inferRequiredSchema is specialized to handle item with required only in an allOf array.");let[t,r]=e.allOf.reduce((i,o)=>{if(BM(o)){let a=o.required;i[0].push(...a??[])}else i[1].push(o);return i},[[],[]]),n={properties:t.reduce((i,o)=>(i[o]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:s((i,o)=>{if($e(i)){let a=o(i.$ref);a&&n.required.forEach(u=>{var c;n.properties[u]=((c=a==null?void 0:a.properties)==null?void 0:c[u])??{}})}else{let a=i.properties??{};n.required.forEach(u=>{a[u]&&(n.properties[u]=a[u]??{})})}},"patchRequiredSchemaInLoop")}}s(F1,"inferRequiredSchema");var BM=s(e=>!$e(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var Rn=s((e,t)=>C1(Zr(j1(e)),t),"getZodSchemaName"),Lt=s(e=>!e.startsWith("z."),"isNamedZodSchema"),V1=s(e=>vr(`${e}_${g1}`),"getBodyZodSchemaName"),B1=s((e,t)=>vr(`${e}_${t}${y1}`),"getParamZodSchemaName"),H1=s(e=>vr(`${e}${v1}`),"getMainResponseZodSchemaName"),U1=s((e,t)=>vr(`${e}_${t}_${b1}`),"getErrorResponseZodSchemaName");function Du({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Lo(t)}/`:""}${Lo(t)}.${i}`:i}s(Du,"getTagFileName");var $t=s(({type:e,tag:t,options:r})=>`${Zr(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var Vo=s((e,t)=>I1(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),z1=s(({resolver:e,zodSchemaName:t,options:r})=>Lt(t)?`${r.includeNamespaces?`${$t({type:"models",tag:e.getTagByZodSchemaName(t),options:r})}.`:""}${t}`:t,"getImportedZodSchemaName"),G1=s(({resolver:e,zodSchemaName:t,options:r})=>Lt(t)?`${r.includeNamespaces?`${$t({type:"models",tag:e.getTagByZodSchemaName(t),options:r})}.`:""}${Vo(t,r)}`:t,"getImportedZodSchemaInferedTypeName");var Bo=s(e=>Lo(vr(e.operationName)),"getEndpointName");function W1(e,t){return`${t.includeNamespaces?`${$t({type:"endpoints",tag:Ho(e,t),options:t})}.`:""}${Bo(e)}`}s(W1,"getImportedEndpointName");var K1=s(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function Ho(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return yi(r??t.defaultTag)}s(Ho,"getEndpointTag");function _h({resolver:e,endpoint:t,options:r}){return t.parameters.map(n=>{var o,a,u,c;let i="string";if(Lt(n.zodSchema))i=G1({resolver:e,zodSchemaName:n.zodSchema,options:r});else if((o=n.parameterObject)!=null&&o.schema&&Yr(n.parameterObject.schema)){let l=(u=(a=n.parameterObject)==null?void 0:a.schema)==null?void 0:u.type;l&&bs(l)&&(i=M1(l))}return{name:uh(n.name),type:i,paramType:n.type,required:((c=n.parameterObject)==null?void 0:c.required)??!0}}).sort((n,i)=>{if(n.required===i.required){let o=["Path","Query","Header","Body"];return o.indexOf(n.paramType)-o.indexOf(i.paramType)}return n.required?-1:1})}s(_h,"mapEndpointParamsToFunctionParams");function Z1(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let o=w1(i.name)?i.name:`"${i.name}"`,a=uh(i.name);return{...i,name:o,value:a}}),r={...e.requestFormat!==oh["Content-Type"]?{"Content-Type":e.requestFormat}:{},...e.responseFormat&&e.responseFormat!==oh.Accept?{Accept:e.responseFormat}:{}};return{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}s(Z1,"getEndpointConfig");function Lu(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}s(Lu,"pick");function qr({schema:e,meta:t,options:r}){let n=[];wt(e.type).with("string",()=>n.push(zM(e))).with("number","integer",()=>n.push(WM(e))).with("array",()=>n.push(KM(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
142
142
  `,"\r",`\r
143
- `].some(o=>String.prototype.includes.call(e.description,o))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(DM(e,t),(r==null?void 0:r.withDefaultValues)!==!1?LM(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}s(qr,"getZodChain");function DM(e,t){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable?"nullable()":t!=null&&t.isRequired?"":"optional()"}s(DM,"getZodChainablePresence");function LM(e){return e.default!==void 0?`default(${St(e.type).with("number","integer",()=>CS(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}s(LM,"getZodChainableDefault");function FM(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(${BM(e.pattern)})`),e.format){let r=St(e.format).with("email",()=>"email()").with("hostname",()=>"url()").with("uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}s(FM,"getZodChainableStringValidations");function BM(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=RS(e),`/${e}/`}s(BM,"formatPatternIfNeeded");function VM(e){let t=[];return e.enum?"":(e.type==="integer"&&t.push("int()"),e.minimum!==void 0?e.exclusiveMinimum===!0?t.push(`gt(${e.minimum})`):t.push(`gte(${e.minimum})`):typeof e.exclusiveMinimum=="number"&&t.push(`gt(${e.exclusiveMinimum})`),e.maximum!==void 0?e.exclusiveMaximum===!0?t.push(`lt(${e.maximum})`):t.push(`lte(${e.maximum})`):typeof e.exclusiveMaximum=="number"&&t.push(`lt(${e.exclusiveMaximum})`),e.multipleOf&&t.push(`multipleOf(${e.multipleOf})`),t.join("."))}s(VM,"getZodChainableNumberValidations");function HM(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}s(HM,"getZodChainableArrayValidations");var yi=s(e=>e.reduce((t,r)=>t+r,0),"sum");function nt({current:e,schema:t}){if(!t)return e;if($e(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?$t("oneOf")+nt({current:e,schema:{...t,type:t.type[0]}}):e+$t("oneOf")+yi(t.type.map(r=>nt({current:0,schema:{...t,type:r}})));if(t.oneOf)return t.oneOf.length===1?$t("oneOf")+nt({current:e,schema:t.oneOf[0]}):e+$t("oneOf")+yi(t.oneOf.map(r=>nt({current:0,schema:r})));if(t.anyOf)return t.anyOf.length===1?$t("anyOf")+nt({current:e,schema:t.anyOf[0]}):e+$t("anyOf")+yi(t.anyOf.map(r=>nt({current:0,schema:r})));if(t.allOf)return t.allOf.length===1?$t("allOf")+nt({current:e,schema:t.allOf[0]}):e+$t("allOf")+yi(t.allOf.map(r=>nt({current:0,schema:r})));if(!t.type)return e;if(vs(t.type))return t.enum?e+GS(t)+$t("enum")+yi(t.enum.map(r=>nt({current:0,schema:r}))):e+GS(t);if(t.type==="array")return t.items?$t("array")+nt({current:e,schema:t.items}):$t("array")+nt({current:e,schema:void 0});if(t.type==="object"||t.properties||t.additionalProperties){if(t.additionalProperties)return t.additionalProperties===!0?$t("record")+nt({current:e,schema:void 0}):$t("record")+nt({current:e,schema:t.additionalProperties});if(t.properties){let r=Object.values(t.properties);return e+$t("object")+yi(r.map(n=>nt({current:0,schema:n})))}return $t("empty-object")+nt({current:e,schema:void 0})}return e}s(nt,"getOpenAPISchemaComplexity");function GS(e){let t=e.type;return t?St(t).with("string",()=>1).with("number",()=>1).with("integer",()=>1).with("boolean",()=>1).otherwise(()=>0):0}s(GS,"complexityByType");function $t(e){return e?St(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum",()=>1).with("array",()=>1).with("record",()=>1).with("empty-object",()=>1).with("object",()=>2).otherwise(()=>0):0}s($t,"complexityByComposite");var bh=class bh{constructor(t,r,n={referencedBy:[]}){this.schema=t;this.resolver=r;$e(t)&&(this.ref=t.$ref),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;children=[];meta;getCodeString(t,r){var o,a;if((!this.ref||!this.resolver)&&this.code)return this.code;let n=(o=this.resolver)==null?void 0:o.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.includeNamespaces&&i!==t?`${wt({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return nt({current:0,schema:this.schema})}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};s(bh,"ZodSchema");var Lu=bh;function Ge({schema:e,resolver:t,meta:r,tag:n,options:i}){var v;if(!e)throw new Error("Schema is required");let o=new Lu(e,t,r),a={parent:o.inherit(r==null?void 0:r.parent),referencedBy:[...o.meta.referencedBy]},u={resolver:t,meta:a,tag:n,options:i};if($e(e))return UM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});let c=zM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(c)return c;let l=GM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(l)return l;let p=WM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(p)return p;let f=KM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(f)return f;let d=ZM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(d)return d;let h=i!=null&&i.allReadonly?".readonly()":"";if(NS(e))return e.items?o.assign(`z.array(${Ge({...u,schema:e.items}).getCodeString(n,i)}${qr({schema:e.items,meta:{...a,isRequired:!0},options:i})})${h}`):o.assign(`z.array(z.any())${h}`);let y=e.type?e.type.toLowerCase():void 0;if(y==="object"||e.properties||e.additionalProperties){let g=(i==null?void 0:i.additionalPropertiesDefaultValue)!==void 0?i==null?void 0:i.additionalPropertiesDefaultValue:!0,C=(e.additionalProperties===null||e.additionalProperties===void 0?g:e.additionalProperties)===!1?"":".passthrough()";if(typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0)return o.assign(`z.record(${Ge({...u,schema:e.additionalProperties}).getCodeString(n,i)+qr({schema:e.additionalProperties,meta:{...a,isRequired:!0},options:i})})`);let k=e.required&&e.required.length>0,A=i!=null&&i.withImplicitRequiredProps?!1:!((v=e.required)!=null&&v.length),I="{}";e.properties&&(I="{ "+Object.entries(e.properties).map(([Fe,ee])=>{var Z;let M={...a,isRequired:A?!0:k?(Z=e.required)==null?void 0:Z.includes(Fe):i==null?void 0:i.withImplicitRequiredProps,name:Fe},R=ee;if($e(ee)&&t&&(R=t.getSchemaByRef(ee.$ref),!R))throw new Error(`Schema ${ee.$ref} not found`);let q=Ge({...u,schema:ee,meta:M}).getCodeString(n,i)+qr({schema:R,meta:M,options:i});return[Fe,q]}).map(([Fe,ee])=>`${AS(Fe)}: ${ee}`).join(", ")+" }");let ae=A?".partial()":"",ue=i!=null&&i.strictObjects?".strict()":"";return o.assign(`z.object(${I})${ae}${ue}${C}${h}`)}if(!y)return o.assign("z.unknown()");throw new Error(`Unsupported schema type: ${y}`)}s(Ge,"getZodSchema");function UM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!$e(e)||!r)return;let a=t.meta.referencedBy.slice(0,-1).map(l=>(r==null?void 0:r.getZodSchemaNameByRef(l.ref))??l.ref),u=r.getZodSchemaNameByRef(e.$ref);if(a.length>1&&a.includes(u))return t.assign(r.getCodeByZodSchemaName(t.ref));let c=r.getCodeByZodSchemaName(e.$ref);if(!c){let l=r.getSchemaByRef(e.$ref);if(!l)throw new Error(`Schema ${e.$ref} not found`);c=Ge({schema:l,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)}return r.getCodeByZodSchemaName(u)||r.setZodSchema(u,c,i),t}s(UM,"getReferenceZodSchema");function GM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){var u;if(!Yr(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=Ge({schema:e.oneOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(c.getCodeString(i,o))}let a=(u=e.oneOf)==null?void 0:u.some(c=>Yr(c)&&((c==null?void 0:c.allOf)||[]).length>1);if(e.discriminator&&!a){let c=e.discriminator.propertyName;return t.assign(`
144
- z.discriminatedUnion("${c}", [${e.oneOf.map(l=>Ge({schema:l,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])
145
- `)}return t.assign(`z.union([${e.oneOf.map(c=>Ge({schema:c,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])`)}s(GM,"getOneOfZodSchema");function zM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!(!Yr(e)||!Array.isArray(e.type)))return e.type.length===1?Ge({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i,options:o}):t.assign(`z.union([${e.type.map(a=>Ge({schema:{...e,type:a},resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])`)}s(zM,"getArrayZodSchema");function WM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!Yr(e)||!e.anyOf)return;if(e.anyOf.length===1){let u=Ge({schema:e.anyOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(u.getCodeString(i,o))}let a=e.anyOf.map(u=>Ge({schema:u,resolver:r,meta:n,tag:i,options:o})).map(u=>u.getCodeString(i,o)).join(", ");return t.assign(`z.union([${a}])`)}s(WM,"getAnyOfZodSchema");function KM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!Yr(e)||!e.allOf)return;if(e.allOf.length===1){let d=Ge({schema:e.allOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(d.getCodeString(i,o))}let{patchRequiredSchemaInLoop:a,noRequiredOnlyAllof:u,composedRequiredSchema:c}=MS(e),l=u.map(d=>{let h=Ge({schema:d,resolver:r,meta:n,tag:i,options:o});return r&&a(d,r.getSchemaByRef.bind(r)),h});c.required.length&&l.push(Ge({schema:c,resolver:r,meta:n,tag:i,options:o}));let p=l.at(0),f=l.slice(1).map(d=>`and(${d.getCodeString(i,o)})`).join(".");return t.assign(`${p.getCodeString(i,o)}.${f}`)}s(KM,"getAllOfZodSchema");function ZM({schema:e,zodSchema:t}){if(!Yr(e))return;let r=e.type?e.type.toLowerCase():void 0;if(r&&vs(r)){if(e.enum){if(r==="string"){if(e.enum.length===1){let n=e.enum[0],i=n===null?"null":`"${n}"`;return t.assign(`z.literal(${i})`)}return t.assign(`z.enum([${e.enum.map(n=>n===null?"null":`"${n}"`).join(", ")}])`)}if(e.enum.some(n=>typeof n=="string"))return t.assign("z.never()");if(e.enum.length===1){let n=e.enum[0];return t.assign(`z.literal(${n===null?"null":n})`)}return t.assign(`z.union([${e.enum.map(n=>`z.literal(${n===null?"null":n})`).join(", ")}])`)}return t.assign(St(r).with("integer",()=>"z.number()").with("string",()=>St(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(n=>`z.${n}()`))}}s(ZM,"getPrimitiveZodSchema");function _s({zodSchema:e,fallbackName:t,resolver:r,tag:n,options:i}){var u;let o=e.getCodeString();if((!Lt(o)||e.ref===void 0)&&t){if(e.complexity<ph)return o;let c=Rn(t,i.schemaSuffix),l=c,p=1;for(;r.getCodeByZodSchemaName(l);){if((u=r.getZodSchemaNamesByDiscriminatorCode(o))!=null&&u.includes(l))return l;if(r.getCodeByZodSchemaName(l)===c)return l;p+=1,l=`${c}__${p}`}return r.setZodSchema(l,o,n),r.addZodSchemaNameForDiscriminatorCode(o,l),l}let a=r.getCodeByZodSchemaName(o);if(!a&&e.ref&&(a=r.getCodeByZodSchemaName(r.getZodSchemaNameByRef(e.ref))),e.ref&&a)return nt({current:0,schema:r.getSchemaByRef(e.ref)})<ph?r.getCodeByZodSchemaName(o):o;throw new Error("Invalid ref: "+e.ref)}s(_s,"resolveZodSchemaName");function zS({resolver:e,operation:t,operationName:r,tag:n,options:i}){var d,h;let o=$e(t.requestBody)?e.getSchemaByRef(t.requestBody.$ref):t.requestBody,u=Object.keys(o.content??{}).find(bs);if(!u)return;let c=(h=(d=o.content)==null?void 0:d[u])==null?void 0:h.schema;if(!c)return;let l=Ge({schema:c,resolver:e,meta:{isRequired:o.required??!0},tag:n,options:i}),p=_s({zodSchema:l,fallbackName:TS(r),resolver:e,tag:n,options:i}),f=qr({schema:$e(c)?e.getSchemaByRef(c.$ref):c,meta:l.meta,options:i});return{endpointParameter:{name:"body",type:"Body",description:o.description,zodSchema:p+f,bodyObject:o},requestFormat:u}}s(zS,"getEndpointBody");function WS({resolver:e,param:t,operationName:r,tag:n,options:i}){let o=$e(t)?e.getSchemaByRef(t.$ref):t;if(!SS.includes(o.in))return;let a={};if(o.content){let p=Object.keys(o.content??{}),f=p.find(bs);if(!f)throw new Error(`Unsupported media type for param ${o.name}: ${p.join(", ")}`);let d=o.content[f];if(!d)throw new Error(`No content with media type for param ${o.name}: ${f}`);a=(d==null?void 0:d.schema)??d}else o.schema&&(a=o.schema);i!=null&&i.withDescription&&a&&(a.description=(o.description??"").trim());let u=Ge({schema:a,resolver:e,meta:{isRequired:o.in==="path"?!0:o.required??!1},tag:n,options:i}),c=qr({schema:$e(a)?e.getSchemaByRef(a.$ref):a,meta:u.meta,options:i}),l=_s({zodSchema:u.assign(u.getCodeString(n,i)+c),fallbackName:qS(r,o.name),resolver:e,tag:n,options:i});return{name:St(o.in).with("path",()=>mh(o.name)).otherwise(()=>o.name),type:St(o.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:l,parameterObject:o}}s(WS,"getEndpointParameter");function ZS({openApiDoc:e,resolver:t,options:r}){var i,o;let n=[];for(let a in e.paths){let u=e.paths[a],c=Du(u,Nu),l=KS(u.parameters??[]);for(let p in c){let f=c[p];if(!f||f.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let d=Object.entries({...l,...KS(f.parameters??[])}).map(([g,P])=>P),h=jS(a,p,f),y=Tu(f,r),v={method:p,path:kS(a),operationName:h,description:f.description,tags:f.tags,requestFormat:"application/json",parameters:[],response:"",errors:[]};if(f.requestBody){let g=zS({resolver:t,operation:f,operationName:h,tag:y,options:r});g&&(v.parameters.push(g.endpointParameter),v.requestFormat=g.requestFormat)}for(let g of d){let P=WS({resolver:t,param:g,operationName:h,tag:y,options:r});P&&v.parameters.push(P)}for(let g in f.responses){let P=$e(f.responses[g])?t.getSchemaByRef(f.responses[g].$ref):f.responses[g],k=Object.keys(P.content??{}).find(Mu),A,I;if(k?(v.responseFormat=k,A=(o=(i=P.content)==null?void 0:i[k])==null?void 0:o.schema):I=ih,A){let ae=Ge({schema:A,resolver:t,meta:{isRequired:!0},tag:y,options:r});I=_s({zodSchema:ae,fallbackName:ae.ref?void 0:YM(g,v),resolver:t,tag:y,options:r})+qr({schema:$e(A)?t.getSchemaByRef(A.$ref):A,meta:ae.meta,options:r})}if(I){let ae=Number(g);gh(ae)?(v.response=I,v.responseObject=P):g!=="default"&&yh(ae)&&v.errors.push({zodSchema:I,status:ae,description:P.description})}}v.response||(v.response=ih),n.push(v)}}return n}s(ZS,"getEndpointsFromOpenAPIDoc");function YM(e,t){let r=Number(e);return(!gh(r)||t.response)&&e!=="default"&&yh(r)?LS(t.operationName,e):DS(t.operationName)}s(YM,"getResponseZodSchemaName");function KS(e){return Object.fromEntries((e??[]).map(t=>[$e(t)?t.$ref:t.name,t]))}s(KS,"getParameters");function YS({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){return Ss({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i}),{visitedRefs:n,refsDependencyGraph:i}}s(YS,"getSchemaRefsDependencyGraph");function Ss({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i}){if(!e)return;let o={fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i};if($e(e)){if(i[t]||(i[t]=new Set),i[t].add(e.$ref),n[e.$ref])return;n[t]=!0,Ss({...o,schema:r(e.$ref),fromRef:e.$ref});return}let a=["allOf","oneOf","anyOf"];for(let u of a)if(e[u])for(let c of e[u])Ss({...o,schema:c});if(!a.some(u=>e[u])){if(e.type==="array"){if(!e.items)return;Ss({...o,schema:e.items});return}if(e.type==="object"||e.properties||e.additionalProperties){if(e.properties)for(let u in e.properties)Ss({...o,schema:e.properties[u]});e.additionalProperties&&typeof e.additionalProperties=="object"&&Ss({...o,schema:e.additionalProperties})}}}s(Ss,"visit");function JS(e,t){let r=JM(e,t),n=QM(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}s(JS,"getOpenAPISchemaDependencyGraph");function JM(e,t){let r={},n={};return e.forEach(i=>YS({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}s(JM,"getRefsDependencyGraph");function QM(e,t){let r={},n={},i=s((o,a)=>{n[a].add(o),t[o]&&a!==o&&t[o].forEach(u=>{let c=`${a}__${u}`;r[c]||(r[c]=!0,i(u,a))})},"visit");return e.forEach(o=>{let a=t[o];a&&(n[o]||(n[o]=new Set),a.forEach(u=>i(u,o)))}),n}s(QM,"getDeepRefsDependencyGraph");var _h=class _h{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=JS(this.schemaRefs,this.getSchemaByRef.bind(this)),this.intializeSchemaInfo(),this.initializeSchemaTags()}schemaInfoByRef=new Map;schemaInfoByName=new Map;schemaTagsByRef=new Map;zodSchemaCodeByName={};zodSchemaTagsByName={};zodSchemaNamesByDiscriminatorCode={};dependencyGraph;get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(ES)}getSchemaByRef(t){return this.docSchemas[hh(t)]}getZodSchemaNameByRef(t){return this.schemaInfoByRef.get(Lo(t)).zodSchemaName}getRefByZodSchemaName(t){var r;return(r=this.schemaInfoByName.get(t))==null?void 0:r.ref}getTagByZodSchemaName(t){if(!this.options.splitByTags)return this.options.defaultTag;let r=this.getRefByZodSchemaName(t),n=r?this.schemaTagsByRef.get(r)??[]:[],i=new Set([...n,...this.zodSchemaTagsByName[t]??[]]);return i.size===1?i.values().next().value:this.options.defaultTag}getCodeByZodSchemaName(t){return this.zodSchemaCodeByName[t]}getZodSchemaNamesByDiscriminatorCode(t){return this.zodSchemaNamesByDiscriminatorCode[t]}setZodSchema(t,r,n){this.zodSchemaCodeByName[t]=r,this.zodSchemaTagsByName[t]=(this.zodSchemaTagsByName[t]??[]).concat(n)}addZodSchemaNameForDiscriminatorCode(t,r){this.zodSchemaNamesByDiscriminatorCode[t]=(this.zodSchemaNamesByDiscriminatorCode[t]??[]).concat(r)}getZodSchemas(){return this.zodSchemaCodeByName}intializeSchemaInfo(){this.schemaRefs.forEach(t=>{let r=Lo(t),n=hh(r),i=Rn(n,this.options.schemaSuffix),o={ref:r,name:n,zodSchemaName:i};this.schemaInfoByRef.set(o.ref,o),this.schemaInfoByName.set(o.zodSchemaName,o)})}initializeSchemaTags(){var r,n,i,o,a,u;let t=s(c=>(c==null?void 0:c.filter($e))??[],"filterRefObjs");for(let c in this.openApiDoc.paths){let l=this.openApiDoc.paths[c],p=Du(l,Nu);for(let f in p){let d=p[f];if(!d||d.deprecated&&!((r=this.options)!=null&&r.withDeprecatedEndpoints))continue;let h=[];if(h.push(...t((n=d.parameters)==null?void 0:n.map(P=>P.schema))),d.requestBody){let P=$e(d.requestBody)?this.getSchemaByRef(d.requestBody.$ref):d.requestBody,k=Object.keys(P.content??{}).find(bs);if(k){let A=(o=(i=P.content)==null?void 0:i[k])==null?void 0:o.schema;$e(A)&&h.push(A)}}for(let P in d.responses){let C=$e(d.responses[P])?this.getSchemaByRef(d.responses[P].$ref):d.responses[P],A=Object.keys(C.content??{}).find(Mu);if(A){let I=(u=(a=C.content)==null?void 0:a[A])==null?void 0:u.schema;$e(I)&&h.push(I)}}let v=h.map(P=>Lo(P.$ref)).reduce((P,C)=>{let k=this.dependencyGraph.deepDependencyGraph[C];return[...P,C,...Array.from(k??[])]},[]),g=Tu(d,this.options);v.forEach(P=>{this.schemaTagsByRef.has(P)?this.schemaTagsByRef.get(P).push(g):this.schemaTagsByRef.set(P,[g])})}}}};s(_h,"SchemaResolver");var Fu=_h;function QS({resolver:e,openApiDoc:t,options:r}){var i;let n={};return Object.entries(((i=t.components)==null?void 0:i.schemas)??{}).forEach(([o,a])=>{let u=Rn(o,r.schemaSuffix);if(!n[u]){let c=e.getTagByZodSchemaName(u);n[u]=Ge({schema:a,resolver:e,tag:c,options:r}).getCodeString(c,r)}}),n}s(QS,"getZodSchemasFromOpenAPIDoc");function XS(e){let t=[],r={};function n(i,o){Array.isArray(o)||(o=[]),o.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{o.includes(a)||r[a]||n(a,o.slice(0))}),t.includes(i)||t.push(i)}return s(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}s(XS,"topologicalSort");function e2(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[o])=>t.indexOf(i)-t.indexOf(o)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}s(e2,"sortObjKeysFromArray");function t2({resolver:e,zodSchemas:t}){let r=XS(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return e2(t,r)}s(t2,"sortZodSchemasByTopology");function r2({resolver:e,zodSchemas:t,options:r}){let n={};return Object.entries(t).forEach(([i,o])=>{var c;let a=e.getRefByZodSchemaName(i),u=a&&((c=e.dependencyGraph.deepDependencyGraph[a])==null?void 0:c.has(a));n[Rn(i,r.schemaSuffix)]=u?`z.lazy(() => ${o})`:o}),n}s(r2,"wrapCircularZodSchemas");function i2({openApiDoc:e,options:t}){let r=new Fu(e,t),n=ZS({resolver:r,openApiDoc:e,options:t}),o={...QS({resolver:r,openApiDoc:e,options:t}),...r.getZodSchemas()};return o=r2({resolver:r,zodSchemas:o,options:t}),o=t2({resolver:r,zodSchemas:o}),{resolver:r,data:XM({resolver:r,endpoints:n,zodSchemas:o,options:t})}}s(i2,"generateDataFromOpenAPIDoc");function XM({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(o=>{let a=Vo(o,n);n2(a,i).endpoints.push(o)}),Object.entries(r).forEach(([o,a])=>{let u=e.getTagByZodSchemaName(o);n2(u,i).zodSchemas[o]=a}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}s(XM,"splitDataByTags");function n2(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}s(n2,"getTagElement");function ws({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[],options:i}){let o="models",a=s(l=>e.getTagByZodSchemaName(l),"getTag"),u=Sh({type:o,tag:t,entities:r,getTag:a,getEntityName:s(l=>l,"getEntityName"),options:i}),c=Sh({type:o,tag:t,entities:n,getTag:a,getEntityName:s(l=>Fo(l,i),"getEntityName"),options:i});return eT(i,u,c)}s(ws,"getModelsImports");function s2({tag:e,endpoints:t,options:r}){return Sh({type:"endpoints",tag:e,entities:t,getTag:s(n=>Vo(n,r),"getTag"),getEntityName:Bo,options:r})}s(s2,"getEndpointsImports");function Sh({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:o}){let a=new Map;return r.forEach(u=>{let c=n(u);if(a.has(c))o.includeNamespaces||a.get(c).bindings.push(i(u));else{let l=t===c;a.set(c,{bindings:[o.includeNamespaces?wt({type:e,tag:c,options:o}):i(u)],from:`${l?"./":"../"}${qu({type:e,tag:c,includeTagDir:!l,options:o})}`})}}),Array.from(a.values())}s(Sh,"getImports");function eT(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.includeNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values())}s(eT,"mergeImports");var mm=tn(Pi(),1);import ra from"fs";import Yw,{dirname as z4}from"path";import{fileURLToPath as W4}from"url";function dm(e){let t=`src/generators/templates/${e}.hbs`;{let r=W4(import.meta.url),n=z4(r);return ra.readFileSync(Yw.join(n,`../${t}`),"utf-8")}return ra.readFileSync(t,"utf-8")}s(dm,"readHbsTemplateSync");function Jw({output:e,fileName:t,data:r}){K4(`${e}/${t}.ts`,r)}s(Jw,"writeTsFileSync");function K4(e,t){let r=Yw.dirname(e);ra.existsSync(r)||ra.mkdirSync(r,{recursive:!0}),ra.writeFileSync(e,t,"utf-8")}s(K4,"writeFileWithDirSync");var Qw=tn(Pi(),1);function Xw(){Z4()}s(Xw,"registerCommonHbsHelpers");function Z4(){Qw.default.registerHelper("commaSeparated",e=>e.join(", "))}s(Z4,"registerCommaSeparatedListHelper");var Nn=tn(Pi(),1);function e$(e,t){Y4(),J4(t),e8(e,t),Q4(),X4(),t8(e,t),r8()}s(e$,"registerEndpointsHbsHelpers");function Y4(){Nn.default.registerHelper("endpointName",Bo)}s(Y4,"registerEndpointNameHelper");function J4(e){Nn.default.registerHelper("importedEndpointName",t=>VS(t,e))}s(J4,"registerImportedEndpointNameHelper");function Q4(){Nn.default.registerHelper("endpointPath",HS)}s(Q4,"registerEndpointPathHelper");function X4(){Nn.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}s(X4,"registerEndpointBodyHelper");function e8(e,t){Nn.default.registerHelper("endpointParams",r=>vh({resolver:e,endpoint:r,options:t}))}s(e8,"registerEndpointParamsHelper");function t8(e,t){Nn.default.registerHelper("endpointArgs",r=>vh({resolver:e,endpoint:r,options:t}).map(n=>n.name).join(", "))}s(t8,"registerEndpointArgsHelper");function r8(){Nn.default.registerHelper("moreThanOneParameter",e=>e.parameters.length>1)}s(r8,"registerMoreThanOneParameterHelper");var js=tn(Pi(),1);var Mn={query:"useQuery",mutation:"useMutation"},t$={bindings:[Mn.query,Mn.mutation],from:"@tanstack/react-query"};function r$(){n8(),i8(),s8(),o8(),a8()}s(r$,"registerPartialsHbsHelpers");function n8(){js.default.registerHelper("genImport",e=>ks("import")({import:e}))}s(n8,"registerImportHelper");function i8(){js.default.registerHelper("genEndpointParams",e=>ks("endpoint-params")({endpoint:e}))}s(i8,"registerGenerateEndpointParamsHelper");function s8(){js.default.registerHelper("genEndpointConfig",e=>{let t=US(e);return Object.keys(t).length===0?"":ks("endpoint-config")({endpointConfig:t})})}s(s8,"registerGenerateEndpointConfigHelper");function o8(){js.default.registerHelper("genQueryKeys",e=>e.length===0?"":ks("query-keys")({endpoints:e}))}s(o8,"registerGenerateQueryKeysHelper");function a8(){js.default.registerHelper("genQuery",e=>{let t,r;return e.method==="get"?(t="query-use-query",r=Mn.query):(t="query-use-mutation",r=Mn.mutation),ks(t)({endpoint:e,queryHook:r})})}s(a8,"registerGenerateQueryHelper");var i$=tn(Pi(),1);var n$=s(e=>`use${Zr(vr(e.operationName))}`,"getQueryName");function s$(){u8()}s(s$,"registerQueryHbsHelpers");function u8(){i$.default.registerHelper("queryName",n$)}s(u8,"registerQueryNameHelper");var hm=tn(Pi(),1);function o$(e,t){c8(t),l8(e,t)}s(o$,"registerZodHbsHelpers");function c8(e){hm.default.registerHelper("zodInferedType",t=>Fo(t,e))}s(c8,"registerInferedTypeHelper");function l8(e,t){hm.default.registerHelper("importedZodSchemaName",r=>FS({resolver:e,zodSchemaName:r,options:t}))}s(l8,"registerImportedZodSchemaNameHelper");function Ns({resolver:e,templateName:t,options:r}){let n=dm(t);return Xw(),o$(e,r),e$(e,r),s$(),r$(),mm.default.compile(n)}s(Ns,"getHbsTemplateDelegate");function ks(e){let t=dm(`partials/${e}`);return mm.default.compile(t)}s(ks,"getHbsPartialTemplateDelegate");function a$({resolver:e,data:t,tag:r="",options:n}){var p;let i=(p=t.get(r))==null?void 0:p.endpoints;if(!i||i.length===0)return;let o=i.map(f=>f.response),a=o.some(f=>!Lt(f)),u=i.reduce((f,d)=>[...f,...d.parameters],[]),c=ws({resolver:e,tag:r,zodSchemas:Array.from(new Set(o.filter(Lt))),zodSchemasAsTypes:Array.from(new Set(u.map(f=>f.zodSchema).filter(Lt))),options:n});return Ns({resolver:e,templateName:"endpoints",options:n})({restClientImport:vS,hasZodImport:a,zodImport:Ru,modelsImports:c,includeNamespace:n.includeNamespaces,namespace:wt({type:"endpoints",tag:r,options:n}),restClientName:oh,endpoints:i})}s(a$,"generateEndpoints");function u$({resolver:e,zodSchema:t}){let r=e.getRefByZodSchemaName(t);return r?Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(n=>e.getZodSchemaNameByRef(n)):[]}s(u$,"getZodSchemaRefs");function c$({resolver:e,data:t,tag:r="",options:n}){var c;let i=(c=t.get(r))==null?void 0:c.zodSchemas;if(!i||Object.keys(i).length===0)return;let o=Object.keys(i).reduce((l,p)=>[...l,...u$({zodSchema:p,resolver:e})],[]).filter(l=>!i.hasOwnProperty(l)),a=ws({resolver:e,tag:r,zodSchemas:o,options:n});return Ns({resolver:e,templateName:"models",options:n})({zodImport:Ru,modelsImports:a,includeNamespace:n.includeNamespaces,namespace:wt({type:"models",tag:r,options:n}),zodSchemas:i})}s(c$,"generateModels");function l$({resolver:e,data:t,tag:r="",options:n}){var h;let i=(h=t.get(r))==null?void 0:h.endpoints;if(!i||i.length===0)return;let o=i.filter(y=>y.method==="get"),a=i.filter(y=>y.method!=="get"),u={...t$,bindings:[...o.length>0?[Mn.query]:[],...a.length>0?[Mn.mutation]:[]]},c=a.filter(y=>y.parameters.length>1),l=[...o,...c].reduce((y,v)=>[...y,...v.parameters],[]),p=ws({resolver:e,tag:r,zodSchemasAsTypes:Array.from(new Set(l.map(y=>y.zodSchema).filter(Lt))),options:n}),f=s2({tag:r,endpoints:i,options:n});return Ns({resolver:e,templateName:"queries",options:n})({queryImport:u,modelsImports:p,endpointsImports:f,includeNamespace:n.includeNamespaces,namespace:wt({type:"queries",tag:r,options:n}),endpoints:i,queryEndpoints:o})}s(l$,"generateQueries");function f$({openApiDoc:e,options:t}){let r={...yS,...t},{resolver:n,data:i}=i2({openApiDoc:e,options:r});i.forEach((o,a)=>{var u;((u=r.excludeTags)==null?void 0:u.findIndex(c=>c.toLocaleLowerCase()===a.toLocaleLowerCase()))===-1&&(gm({resolver:n,data:i,type:"models",tag:a,options:r}),gm({resolver:n,data:i,type:"endpoints",tag:a,options:r}),gm({resolver:n,data:i,type:"queries",tag:a,options:r}))})}s(f$,"generateCodeFromOpenAPIDoc");function gm({resolver:e,data:t,type:r,tag:n,options:i}){let o;switch(r){case"models":o=c$({resolver:e,data:t,tag:n,options:i});break;case"endpoints":o=a$({resolver:e,data:t,tag:n,options:i});break;case"queries":o=l$({resolver:e,data:t,tag:n,options:i});break}o&&Jw({output:i.output,fileName:qu({tag:n,type:r,options:i}),data:o})}s(gm,"generateCodeByType");async function d$({input:e,output:t,includeNamespaces:r,splitByTags:n,defaultTag:i,excludeTags:o,prettier:a,verbose:u}){u&&ki(`Parsing OpenAPI spec from "${e}"`);let c=await p$.default.bundle(e);u&&ki("Generating code from OpenAPI spec"),f$({openApiDoc:c,options:{output:t,includeNamespaces:r,splitByTags:n,defaultTag:i,excludeTags:o.split(",")}}),u&&pl("Generated code successfully"),a&&p8({output:t,verbose:u})}s(d$,"generate");function p8({output:e,verbose:t}){t&&ki("Running Prettier"),f8(`prettier --write ${e}`,r=>{t&&(r?Us("Prettier not found"):pl("Ran Prettier successfully"))})}s(p8,"execPrettier");var _r=class _r{input;output;includeNamespaces;splitByTags;defaultTag;excludeTags;prettier;verbose};s(_r,"GenerateOptions"),Fr([Vr({envAlias:"input",demandOption:!0})],_r.prototype,"input",2),Fr([Vr({envAlias:"output",default:"output"})],_r.prototype,"output",2),Fr([Vr({envAlias:"includeNamespaces",default:!0,type:"boolean"})],_r.prototype,"includeNamespaces",2),Fr([Vr({envAlias:"splitByTags",default:!0,type:"boolean"})],_r.prototype,"splitByTags",2),Fr([Vr({envAlias:"defaultTag",default:"Common"})],_r.prototype,"defaultTag",2),Fr([Vr({envAlias:"excludeTags",default:""})],_r.prototype,"excludeTags",2),Fr([Vr({envAlias:"prettier",default:!0,type:"boolean"})],_r.prototype,"prettier",2),Fr([Vr({envAlias:"verbose",default:!1,type:"boolean"})],_r.prototype,"verbose",2);var ym=_r,h$={command:"generate",describe:"Generate code from OpenAPI spec",builder:Tg(ym),handler:s(async e=>{let t=await e;return t.verbose&&(jg(`OpenAPI CodeGen ${Oa()}`),fl("input",t.input),fl("output",t.output)),d$(t)},"handler")};bg(Mc(process.argv)).version(Oa()||"unknown").scriptName("openapi-codegen").command(h$).help().demandCommand(1).strictCommands(!0).showHelpOnFail(!0).fail((e,t)=>{e&&Us(e),t&&Us(t),ki("Use '--help' for more info"),process.exit(1)}).parse();
143
+ `].some(o=>String.prototype.includes.call(e.description,o))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(HM(e,t),(r==null?void 0:r.withDefaultValues)!==!1?UM(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}s(qr,"getZodChain");function HM(e,t){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable?"nullable()":t!=null&&t.isRequired?"":"optional()"}s(HM,"getZodChainablePresence");function UM(e){return e.default!==void 0?`default(${wt(e.type).with("number","integer",()=>N1(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}s(UM,"getZodChainableDefault");function zM(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(${GM(e.pattern)})`),e.format){let r=wt(e.format).with("email",()=>"email()").with("hostname",()=>"url()").with("uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}s(zM,"getZodChainableStringValidations");function GM(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=T1(e),`/${e}/`}s(GM,"formatPatternIfNeeded");function WM(e){let t=[];return e.enum?"":(e.type==="integer"&&t.push("int()"),e.minimum!==void 0?e.exclusiveMinimum===!0?t.push(`gt(${e.minimum})`):t.push(`gte(${e.minimum})`):typeof e.exclusiveMinimum=="number"&&t.push(`gt(${e.exclusiveMinimum})`),e.maximum!==void 0?e.exclusiveMaximum===!0?t.push(`lt(${e.maximum})`):t.push(`lte(${e.maximum})`):typeof e.exclusiveMaximum=="number"&&t.push(`lt(${e.exclusiveMaximum})`),e.multipleOf&&t.push(`multipleOf(${e.multipleOf})`),t.join("."))}s(WM,"getZodChainableNumberValidations");function KM(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}s(KM,"getZodChainableArrayValidations");var vi=s(e=>e.reduce((t,r)=>t+r,0),"sum");function nt({current:e,schema:t}){if(!t)return e;if($e(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?Pt("oneOf")+nt({current:e,schema:{...t,type:t.type[0]}}):e+Pt("oneOf")+vi(t.type.map(r=>nt({current:0,schema:{...t,type:r}})));if(t.oneOf)return t.oneOf.length===1?Pt("oneOf")+nt({current:e,schema:t.oneOf[0]}):e+Pt("oneOf")+vi(t.oneOf.map(r=>nt({current:0,schema:r})));if(t.anyOf)return t.anyOf.length===1?Pt("anyOf")+nt({current:e,schema:t.anyOf[0]}):e+Pt("anyOf")+vi(t.anyOf.map(r=>nt({current:0,schema:r})));if(t.allOf)return t.allOf.length===1?Pt("allOf")+nt({current:e,schema:t.allOf[0]}):e+Pt("allOf")+vi(t.allOf.map(r=>nt({current:0,schema:r})));if(!t.type)return e;if(bs(t.type))return t.enum?e+Y1(t)+Pt("enum")+vi(t.enum.map(r=>nt({current:0,schema:r}))):e+Y1(t);if(t.type==="array")return t.items?Pt("array")+nt({current:e,schema:t.items}):Pt("array")+nt({current:e,schema:void 0});if(t.type==="object"||t.properties||t.additionalProperties){if(t.additionalProperties)return t.additionalProperties===!0?Pt("record")+nt({current:e,schema:void 0}):Pt("record")+nt({current:e,schema:t.additionalProperties});if(t.properties){let r=Object.values(t.properties);return e+Pt("object")+vi(r.map(n=>nt({current:0,schema:n})))}return Pt("empty-object")+nt({current:e,schema:void 0})}return e}s(nt,"getOpenAPISchemaComplexity");function Y1(e){let t=e.type;return t?wt(t).with("string",()=>1).with("number",()=>1).with("integer",()=>1).with("boolean",()=>1).otherwise(()=>0):0}s(Y1,"complexityByType");function Pt(e){return e?wt(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum",()=>1).with("array",()=>1).with("record",()=>1).with("empty-object",()=>1).with("object",()=>2).otherwise(()=>0):0}s(Pt,"complexityByComposite");var Sh=class Sh{constructor(t,r,n={referencedBy:[]}){this.schema=t;this.resolver=r;$e(t)&&(this.ref=t.$ref),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;children=[];meta;getCodeString(t,r){var o,a;if((!this.ref||!this.resolver)&&this.code)return this.code;let n=(o=this.resolver)==null?void 0:o.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.includeNamespaces&&i&&i!==t?`${$t({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return nt({current:0,schema:this.schema})}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};s(Sh,"ZodSchema");var Fu=Sh;function ze({schema:e,resolver:t,meta:r,tag:n,options:i}){var v;if(!e)throw new Error("Schema is required");let o=new Fu(e,t,r),a={parent:o.inherit(r==null?void 0:r.parent),referencedBy:[...o.meta.referencedBy]},u={resolver:t,meta:a,tag:n,options:i};if($e(e))return ZM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});let c=JM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(c)return c;let l=YM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(l)return l;let p=QM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(p)return p;let f=XM({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(f)return f;let d=eT({schema:e,zodSchema:o,resolver:t,meta:a,tag:n,options:i});if(d)return d;let h=i!=null&&i.allReadonly?".readonly()":"";if(L1(e))return e.items?o.assign(`z.array(${ze({...u,schema:e.items}).getCodeString(n,i)}${qr({schema:e.items,meta:{...a,isRequired:!0},options:i})})${h}`):o.assign(`z.array(z.any())${h}`);let y=e.type?e.type.toLowerCase():void 0;if(y==="object"||e.properties||e.additionalProperties){let g=(i==null?void 0:i.additionalPropertiesDefaultValue)!==void 0?i==null?void 0:i.additionalPropertiesDefaultValue:!0,A=(e.additionalProperties===null||e.additionalProperties===void 0?g:e.additionalProperties)===!1?"":".passthrough()";if(typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0)return o.assign(`z.record(${ze({...u,schema:e.additionalProperties}).getCodeString(n,i)+qr({schema:e.additionalProperties,meta:{...a,isRequired:!0},options:i})})`);let k=e.required&&e.required.length>0,C=i!=null&&i.withImplicitRequiredProps?!1:!((v=e.required)!=null&&v.length),I="{}";e.properties&&(I="{ "+Object.entries(e.properties).map(([Fe,ee])=>{var Z;let M={...a,isRequired:C?!0:k?(Z=e.required)==null?void 0:Z.includes(Fe):i==null?void 0:i.withImplicitRequiredProps,name:Fe},R=ee;if($e(ee)&&t&&(R=t.getSchemaByRef(ee.$ref),!R))throw new Error(`Schema ${ee.$ref} not found`);let q=ze({...u,schema:ee,meta:M}).getCodeString(n,i)+qr({schema:R,meta:M,options:i});return[Fe,q]}).map(([Fe,ee])=>`${k1(Fe)}: ${ee}`).join(", ")+" }");let fe=C?".partial()":"",ne=i!=null&&i.strictObjects?".strict()":"";return o.assign(`z.object(${I})${fe}${ne}${A}${h}`)}if(!y)return o.assign("z.unknown()");throw new Error(`Unsupported schema type: ${y}`)}s(ze,"getZodSchema");function ZM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!$e(e)||!r)return;let a=t.meta.referencedBy.slice(0,-1).map(l=>(r==null?void 0:r.getZodSchemaNameByRef(l.ref))??l.ref),u=r.getZodSchemaNameByRef(e.$ref);if(a.length>1&&a.includes(u))return t.assign(r.getCodeByZodSchemaName(t.ref));let c=r.getCodeByZodSchemaName(e.$ref);if(!c){let l=r.getSchemaByRef(e.$ref);if(!l)throw new Error(`Schema ${e.$ref} not found`);c=ze({schema:l,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)}return r.getCodeByZodSchemaName(u)||r.setZodSchema(u,c,i),t}s(ZM,"getReferenceZodSchema");function YM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){var u;if(!Yr(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=ze({schema:e.oneOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(c.getCodeString(i,o))}let a=(u=e.oneOf)==null?void 0:u.some(c=>Yr(c)&&((c==null?void 0:c.allOf)||[]).length>1);if(e.discriminator&&!a){let c=e.discriminator.propertyName;return t.assign(`
144
+ z.discriminatedUnion("${c}", [${e.oneOf.map(l=>ze({schema:l,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])
145
+ `)}return t.assign(`z.union([${e.oneOf.map(c=>ze({schema:c,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])`)}s(YM,"getOneOfZodSchema");function JM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!(!Yr(e)||!Array.isArray(e.type)))return e.type.length===1?ze({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i,options:o}):t.assign(`z.union([${e.type.map(a=>ze({schema:{...e,type:a},resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])`)}s(JM,"getArrayZodSchema");function QM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!Yr(e)||!e.anyOf)return;if(e.anyOf.length===1){let u=ze({schema:e.anyOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(u.getCodeString(i,o))}let a=e.anyOf.map(u=>ze({schema:u,resolver:r,meta:n,tag:i,options:o})).map(u=>u.getCodeString(i,o)).join(", ");return t.assign(`z.union([${a}])`)}s(QM,"getAnyOfZodSchema");function XM({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!Yr(e)||!e.allOf)return;if(e.allOf.length===1){let d=ze({schema:e.allOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(d.getCodeString(i,o))}let{patchRequiredSchemaInLoop:a,noRequiredOnlyAllof:u,composedRequiredSchema:c}=F1(e),l=u.map(d=>{let h=ze({schema:d,resolver:r,meta:n,tag:i,options:o});return r&&a(d,r.getSchemaByRef.bind(r)),h});c.required.length&&l.push(ze({schema:c,resolver:r,meta:n,tag:i,options:o}));let p=l.at(0),f=l.slice(1).map(d=>`and(${d.getCodeString(i,o)})`).join(".");return t.assign(`${p.getCodeString(i,o)}.${f}`)}s(XM,"getAllOfZodSchema");function eT({schema:e,zodSchema:t}){if(!Yr(e))return;let r=e.type?e.type.toLowerCase():void 0;if(r&&bs(r)){if(e.enum){if(r==="string"){if(e.enum.length===1){let n=e.enum[0],i=n===null?"null":`"${n}"`;return t.assign(`z.literal(${i})`)}return t.assign(`z.enum([${e.enum.map(n=>n===null?"null":`"${n}"`).join(", ")}])`)}if(e.enum.some(n=>typeof n=="string"))return t.assign("z.never()");if(e.enum.length===1){let n=e.enum[0];return t.assign(`z.literal(${n===null?"null":n})`)}return t.assign(`z.union([${e.enum.map(n=>`z.literal(${n===null?"null":n})`).join(", ")}])`)}return t.assign(wt(r).with("integer",()=>"z.number()").with("string",()=>wt(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(n=>`z.${n}()`))}}s(eT,"getPrimitiveZodSchema");function Ss({zodSchema:e,fallbackName:t,resolver:r,tag:n,options:i}){var u;let o=e.getCodeString();if((!Lt(o)||e.ref===void 0)&&t){if(e.complexity<hh)return o;let c=Rn(t,i.schemaSuffix),l=c,p=1;for(;r.getCodeByZodSchemaName(l);){if((u=r.getZodSchemaNamesByDiscriminatorCode(o))!=null&&u.includes(l))return l;if(r.getCodeByZodSchemaName(l)===c)return l;p+=1,l=`${c}__${p}`}return r.setZodSchema(l,o,n),r.addZodSchemaForDiscriminatorCode(o,e,l),l}let a=r.getCodeByZodSchemaName(o);if(!a&&e.ref&&(a=r.getCodeByZodSchemaName(r.getZodSchemaNameByRef(e.ref))),e.ref&&a)return nt({current:0,schema:r.getSchemaByRef(e.ref)})<hh?r.getCodeByZodSchemaName(o):o;throw new Error("Invalid ref: "+e.ref)}s(Ss,"resolveZodSchemaName");function J1({resolver:e,operation:t,operationName:r,tag:n,options:i}){var d,h;let o=$e(t.requestBody)?e.getSchemaByRef(t.requestBody.$ref):t.requestBody,u=Object.keys(o.content??{}).find(_s);if(!u)return;let c=(h=(d=o.content)==null?void 0:d[u])==null?void 0:h.schema;if(!c)return;let l=ze({schema:c,resolver:e,meta:{isRequired:o.required??!0},tag:n,options:i}),p=Ss({zodSchema:l,fallbackName:V1(r),resolver:e,tag:n,options:i}),f=qr({schema:$e(c)?e.getSchemaByRef(c.$ref):c,meta:l.meta,options:i});return{endpointParameter:{name:"body",type:"Body",description:o.description,zodSchema:p+f,bodyObject:o},requestFormat:u}}s(J1,"getEndpointBody");function Q1({resolver:e,param:t,operationName:r,tag:n,options:i}){let o=$e(t)?e.getSchemaByRef(t.$ref):t;if(!O1.includes(o.in))return;let a={};if(o.content){let p=Object.keys(o.content??{}),f=p.find(_s);if(!f)throw new Error(`Unsupported media type for param ${o.name}: ${p.join(", ")}`);let d=o.content[f];if(!d)throw new Error(`No content with media type for param ${o.name}: ${f}`);a=(d==null?void 0:d.schema)??d}else o.schema&&(a=o.schema);i!=null&&i.withDescription&&a&&(a.description=(o.description??"").trim());let u=ze({schema:a,resolver:e,meta:{isRequired:o.in==="path"?!0:o.required??!1},tag:n,options:i}),c=qr({schema:$e(a)?e.getSchemaByRef(a.$ref):a,meta:u.meta,options:i}),l=Ss({zodSchema:u.assign(u.getCodeString(n,i)+c),fallbackName:B1(r,o.name),resolver:e,tag:n,options:i});return{name:wt(o.in).with("path",()=>yh(o.name)).otherwise(()=>o.name),type:wt(o.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:l,parameterObject:o}}s(Q1,"getEndpointParameter");function e2({openApiDoc:e,resolver:t,options:r}){var i,o,a;let n=[];for(let u in e.paths){let c=e.paths[u],l=Lu(c,Mu),p=X1(c.parameters??[]);for(let f in l){let d=l[f];if(!d||d.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let h=Object.entries({...p,...X1(d.parameters??[])}).map(([,$])=>$),y=q1(u,f,d),v=qu(d,r),g={method:f,path:D1(u),operationName:y,description:d.description,tags:(i=d.tags)==null?void 0:i.map(yi),requestFormat:"application/json",parameters:[],response:"",errors:[]};if(d.requestBody){let $=J1({resolver:t,operation:d,operationName:y,tag:v,options:r});$&&(g.parameters.push($.endpointParameter),g.requestFormat=$.requestFormat)}for(let $ of h){let A=Q1({resolver:t,param:$,operationName:y,tag:v,options:r});A&&g.parameters.push(A)}for(let $ in d.responses){let A=$e(d.responses[$])?t.getSchemaByRef(d.responses[$].$ref):d.responses[$],C=Object.keys(A.content??{}).find(Tu),I,fe;if(C?(g.responseFormat=C,I=(a=(o=A.content)==null?void 0:o[C])==null?void 0:a.schema):fe=sh,I){let ne=ze({schema:I,resolver:t,meta:{isRequired:!0},tag:v,options:r});fe=Ss({zodSchema:ne,fallbackName:ne.ref?void 0:tT($,g),resolver:t,tag:v,options:r})+qr({schema:$e(I)?t.getSchemaByRef(I.$ref):I,meta:ne.meta,options:r})}if(fe){let ne=Number($);vh(ne)?(g.response=fe,g.responseObject=A):$!=="default"&&bh(ne)&&g.errors.push({zodSchema:fe,status:ne,description:A.description})}}g.response||(g.response=sh),n.push(g)}}return n}s(e2,"getEndpointsFromOpenAPIDoc");function tT(e,t){let r=Number(e);return(!vh(r)||t.response)&&e!=="default"&&bh(r)?U1(t.operationName,e):H1(t.operationName)}s(tT,"getResponseZodSchemaName");function X1(e){return Object.fromEntries((e??[]).map(t=>[$e(t)?t.$ref:t.name,t]))}s(X1,"getParameters");function t2({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){return ws({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i}),{visitedRefs:n,refsDependencyGraph:i}}s(t2,"getSchemaRefsDependencyGraph");function ws({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i}){if(!e)return;let o={fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i};if($e(e)){if(i[t]||(i[t]=new Set),i[t].add(e.$ref),n[e.$ref])return;n[t]=!0,ws({...o,schema:r(e.$ref),fromRef:e.$ref});return}let a=["allOf","oneOf","anyOf"];for(let u of a)if(e[u])for(let c of e[u])ws({...o,schema:c});if(!a.some(u=>e[u])){if(e.type==="array"){if(!e.items)return;ws({...o,schema:e.items});return}if(e.type==="object"||e.properties||e.additionalProperties){if(e.properties)for(let u in e.properties)ws({...o,schema:e.properties[u]});e.additionalProperties&&typeof e.additionalProperties=="object"&&ws({...o,schema:e.additionalProperties})}}}s(ws,"visit");function r2(e,t){let r=rT(e,t),n=nT(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}s(r2,"getOpenAPISchemaDependencyGraph");function rT(e,t){let r={},n={};return e.forEach(i=>t2({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}s(rT,"getRefsDependencyGraph");function nT(e,t){let r={},n={},i=s((o,a)=>{n[a].add(o),t[o]&&a!==o&&t[o].forEach(u=>{let c=`${a}__${u}`;r[c]||(r[c]=!0,i(u,a))})},"visit");return e.forEach(o=>{let a=t[o];a&&(n[o]||(n[o]=new Set),a.forEach(u=>i(u,o)))}),n}s(nT,"getDeepRefsDependencyGraph");var wh=class wh{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=r2(this.schemaRefs,this.getSchemaByRef.bind(this)),this.intializeSchemaInfo(),this.initializeSchemaTags()}schemaData=[];zodSchemaData=[];discriminatorZodSchemaData=[];dependencyGraph;get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(R1)}getSchemaByRef(t){return this.docSchemas[gh(t)]}getZodSchemaNameByRef(t){return this.schemaData.find(r=>r.ref===Fo(t)).zodSchemaName}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var n,i;let r;if(this.options.splitByTags){let o=this.getRefByZodSchemaName(t),a=((n=this.schemaData.find(l=>l.ref===o))==null?void 0:n.tags)??[],u=((i=this.zodSchemaData.find(l=>l.zodSchemaName===t))==null?void 0:i.tags)??[],c=new Set([...a,...u]);r=c.size===1?c.values().next().value:this.options.defaultTag}return yi(r??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByDiscriminatorCode(t){var r;return(r=this.discriminatorZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(o=>o.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForDiscriminatorCode(t,r,n){let i=this.discriminatorZodSchemaData.find(o=>o.code===t);i?i.zodSchemas.push({zodSchemaName:n,zodSchema:r}):this.discriminatorZodSchemaData.push({code:t,zodSchemas:[{zodSchemaName:n,zodSchema:r}]})}getDiscriminatorZodSchemaByZodSchemaName(t){var n;let r=this.discriminatorZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}intializeSchemaInfo(){this.schemaRefs.forEach(t=>{let r=Fo(t),n=gh(r),i=Rn(n,this.options.schemaSuffix);this.schemaData.push({ref:r,name:n,zodSchemaName:i,tags:[]})})}initializeSchemaTags(){var r,n,i,o,a,u;let t=s(c=>(c==null?void 0:c.filter($e))??[],"filterRefObjs");for(let c in this.openApiDoc.paths){let l=this.openApiDoc.paths[c],p=Lu(l,Mu);for(let f in p){let d=p[f];if(!d||d.deprecated&&!((r=this.options)!=null&&r.withDeprecatedEndpoints))continue;let h=[];if(h.push(...t((n=d.parameters)==null?void 0:n.map($=>$.schema))),d.requestBody){let $=$e(d.requestBody)?this.getSchemaByRef(d.requestBody.$ref):d.requestBody,k=Object.keys($.content??{}).find(_s);if(k){let C=(o=(i=$.content)==null?void 0:i[k])==null?void 0:o.schema;$e(C)&&h.push(C)}}for(let $ in d.responses){let A=$e(d.responses[$])?this.getSchemaByRef(d.responses[$].$ref):d.responses[$],C=Object.keys(A.content??{}).find(Tu);if(C){let I=(u=(a=A.content)==null?void 0:a[C])==null?void 0:u.schema;$e(I)&&h.push(I)}}let v=h.map($=>Fo($.$ref)).reduce(($,A)=>{let k=this.dependencyGraph.deepDependencyGraph[A];return[...$,A,...Array.from(k??[])]},[]),g=qu(d,this.options);v.forEach($=>{let A=this.schemaData.find(k=>k.ref===$);A&&A.tags.push(g)})}}}};s(wh,"SchemaResolver");var Vu=wh;function n2({resolver:e,openApiDoc:t,options:r}){var i;let n={};return Object.entries(((i=t.components)==null?void 0:i.schemas)??{}).forEach(([o,a])=>{let u=Rn(o,r.schemaSuffix);if(!n[u]){let c=e.getTagByZodSchemaName(u);n[u]=ze({schema:a,resolver:e,tag:c,options:r}).getCodeString(c,r)}}),n}s(n2,"getZodSchemasFromOpenAPIDoc");function i2(e){let t=[],r={};function n(i,o){Array.isArray(o)||(o=[]),o.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{o.includes(a)||r[a]||n(a,o.slice(0))}),t.includes(i)||t.push(i)}return s(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}s(i2,"topologicalSort");function s2(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[o])=>t.indexOf(i)-t.indexOf(o)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}s(s2,"sortObjKeysFromArray");function o2({resolver:e,zodSchemas:t}){let r=i2(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return s2(t,r)}s(o2,"sortZodSchemasByTopology");function a2({resolver:e,zodSchemas:t,options:r}){let n={};return Object.entries(t).forEach(([i,o])=>{var c;let a=e.getRefByZodSchemaName(i),u=a&&((c=e.dependencyGraph.deepDependencyGraph[a])==null?void 0:c.has(a));n[Rn(i,r.schemaSuffix)]=u?`z.lazy(() => ${o})`:o}),n}s(a2,"wrapCircularZodSchemas");function c2({openApiDoc:e,options:t}){let r=new Vu(e,t),n=e2({resolver:r,openApiDoc:e,options:t}),o={...n2({resolver:r,openApiDoc:e,options:t}),...r.getZodSchemas()};return o=a2({resolver:r,zodSchemas:o,options:t}),o=o2({resolver:r,zodSchemas:o}),{resolver:r,data:iT({resolver:r,endpoints:n,zodSchemas:o,options:t})}}s(c2,"generateDataFromOpenAPIDoc");function iT({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(o=>{let a=Ho(o,n);u2(a,i).endpoints.push(o)}),Object.entries(r).forEach(([o,a])=>{let u=e.getTagByZodSchemaName(o);u&&(u2(u,i).zodSchemas[o]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}s(iT,"splitDataByTags");function u2(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}s(u2,"getTagElement");function $s({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[],options:i}){let o="models",a=s(l=>e.getTagByZodSchemaName(l),"getTag"),u=$h({type:o,tag:t,entities:r,getTag:a,getEntityName:s(l=>l,"getEntityName"),options:i}),c=$h({type:o,tag:t,entities:n,getTag:a,getEntityName:s(l=>Vo(l,i),"getEntityName"),options:i});return sT(i,u,c)}s($s,"getModelsImports");function l2({tag:e,endpoints:t,options:r}){return $h({type:"endpoints",tag:e,entities:t,getTag:s(n=>Ho(n,r),"getTag"),getEntityName:Bo,options:r})}s(l2,"getEndpointsImports");function $h({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:o}){let a=new Map;return r.forEach(u=>{let c=n(u);if(a.has(c))o.includeNamespaces||a.get(c).bindings.push(i(u));else{let l=t===c;a.set(c,{bindings:[o.includeNamespaces?$t({type:e,tag:c,options:o}):i(u)],from:`${l?"./":"../"}${Du({type:e,tag:c,includeTagDir:!l,options:o})}`})}}),Array.from(a.values())}s($h,"getImports");function sT(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.includeNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values())}s(sT,"mergeImports");var vm=tn(Oi(),1);import na from"fs";import t$,{dirname as J4}from"path";import{fileURLToPath as Q4}from"url";function mm(e){let t=`src/generators/templates/${e}.hbs`;{let r=Q4(import.meta.url),n=J4(r);return na.readFileSync(t$.join(n,`../${t}`),"utf-8")}return na.readFileSync(t,"utf-8")}s(mm,"readHbsTemplateSync");function r$({output:e,fileName:t,data:r}){X4(`${e}/${t}.ts`,r)}s(r$,"writeTsFileSync");function X4(e,t){let r=t$.dirname(e);na.existsSync(r)||na.mkdirSync(r,{recursive:!0}),na.writeFileSync(e,t,"utf-8")}s(X4,"writeFileWithDirSync");var gm=tn(Oi(),1);function n$(){e8(),t8()}s(n$,"registerCommonHbsHelpers");function e8(){gm.default.registerHelper("isEqual",(e,t)=>e===t)}s(e8,"registerIsEqualHelper");function t8(){gm.default.registerHelper("commaSeparated",e=>e.join(", "))}s(t8,"registerCommaSeparatedListHelper");var Nn=tn(Oi(),1);function i$(e,t){r8(),n8(t),o8(e,t),i8(),s8(),a8(e,t),u8()}s(i$,"registerEndpointsHbsHelpers");function r8(){Nn.default.registerHelper("endpointName",Bo)}s(r8,"registerEndpointNameHelper");function n8(e){Nn.default.registerHelper("importedEndpointName",t=>W1(t,e))}s(n8,"registerImportedEndpointNameHelper");function i8(){Nn.default.registerHelper("endpointPath",K1)}s(i8,"registerEndpointPathHelper");function s8(){Nn.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}s(s8,"registerEndpointBodyHelper");function o8(e,t){Nn.default.registerHelper("endpointParams",r=>_h({resolver:e,endpoint:r,options:t}))}s(o8,"registerEndpointParamsHelper");function a8(e,t){Nn.default.registerHelper("endpointArgs",r=>_h({resolver:e,endpoint:r,options:t}).map(n=>n.name).join(", "))}s(a8,"registerEndpointArgsHelper");function u8(){Nn.default.registerHelper("moreThanOneParameter",e=>e.parameters.length>1)}s(u8,"registerMoreThanOneParameterHelper");var ks=tn(Oi(),1);var Mn={query:"useQuery",mutation:"useMutation"},s$={bindings:[Mn.query,Mn.mutation],from:"@tanstack/react-query"};function o$(){c8(),l8(),f8(),p8(),d8()}s(o$,"registerPartialsHbsHelpers");function c8(){ks.default.registerHelper("genImport",e=>Ns("import")({import:e}))}s(c8,"registerImportHelper");function l8(){ks.default.registerHelper("genEndpointParams",e=>Ns("endpoint-params")({endpoint:e}))}s(l8,"registerGenerateEndpointParamsHelper");function f8(){ks.default.registerHelper("genEndpointConfig",e=>{let t=Z1(e);return Object.keys(t).length===0?"":Ns("endpoint-config")({endpointConfig:t})})}s(f8,"registerGenerateEndpointConfigHelper");function p8(){ks.default.registerHelper("genQueryKeys",e=>e.length===0?"":Ns("query-keys")({endpoints:e}))}s(p8,"registerGenerateQueryKeysHelper");function d8(){ks.default.registerHelper("genQuery",e=>{let t,r;return e.method==="get"?(t="query-use-query",r=Mn.query):(t="query-use-mutation",r=Mn.mutation),Ns(t)({endpoint:e,queryHook:r})})}s(d8,"registerGenerateQueryHelper");var u$=tn(Oi(),1);var a$=s(e=>`use${Zr(vr(e.operationName))}`,"getQueryName");function c$(){h8()}s(c$,"registerQueryHbsHelpers");function h8(){u$.default.registerHelper("queryName",a$)}s(h8,"registerQueryNameHelper");var ym=tn(Oi(),1);function l$(e,t){m8(t),g8(e,t)}s(l$,"registerZodHbsHelpers");function m8(e){ym.default.registerHelper("zodInferedType",t=>Vo(t,e))}s(m8,"registerInferedTypeHelper");function g8(e,t){ym.default.registerHelper("importedZodSchemaName",r=>z1({resolver:e,zodSchemaName:r,options:t}))}s(g8,"registerImportedZodSchemaNameHelper");function Ms({resolver:e,templateName:t,options:r}){let n=mm(t);return n$(),l$(e,r),i$(e,r),c$(),o$(),vm.default.compile(n)}s(Ms,"getHbsTemplateDelegate");function Ns(e){let t=mm(`partials/${e}`);return vm.default.compile(t)}s(Ns,"getHbsPartialTemplateDelegate");function f$({resolver:e,data:t,tag:r="",options:n}){var p;let i=(p=t.get(r))==null?void 0:p.endpoints;if(!i||i.length===0)return;let o=i.map(f=>f.response),a=o.some(f=>!Lt(f)),u=i.reduce((f,d)=>[...f,...d.parameters],[]),c=$s({resolver:e,tag:r,zodSchemas:Array.from(new Set(o.filter(Lt))),zodSchemasAsTypes:Array.from(new Set(u.map(f=>f.zodSchema).filter(Lt))),options:n});return Ms({resolver:e,templateName:"endpoints",options:n})({restClientImport:S1,hasZodImport:a,zodImport:ju,modelsImports:c,includeNamespace:n.includeNamespaces,namespace:$t({type:"endpoints",tag:r,options:n}),restClientName:ah,endpoints:i})}s(f$,"generateEndpoints");function p$({resolver:e,zodSchemaName:t}){let r=e.getRefByZodSchemaName(t);if(r)return Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(i=>e.getZodSchemaNameByRef(i));let n=e.getDiscriminatorZodSchemaByZodSchemaName(t);return n?Array.from(d$(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}s(p$,"getZodSchemaRefs");function d$(e){return e.children.reduce((r,n)=>(n.ref&&r.add(n.ref),n.children.length>0&&d$(n).forEach(i=>r.add(i)),r),new Set)}s(d$,"getSchemaRefs");function h$({resolver:e,data:t,tag:r="",options:n}){var c;let i=(c=t.get(r))==null?void 0:c.zodSchemas;if(!i||Object.keys(i).length===0)return;let o=Object.keys(i).reduce((l,p)=>[...l,...p$({resolver:e,zodSchemaName:p})],[]).filter(l=>!i[l]),a=$s({resolver:e,tag:r,zodSchemas:o,options:n});return Ms({resolver:e,templateName:"models",options:n})({zodImport:ju,modelsImports:a,includeNamespace:n.includeNamespaces,namespace:$t({type:"models",tag:r,options:n}),zodSchemas:i})}s(h$,"generateModels");function m$({resolver:e,data:t,tag:r="",options:n}){var h;let i=(h=t.get(r))==null?void 0:h.endpoints;if(!i||i.length===0)return;let o=i.filter(y=>y.method==="get"),a=i.filter(y=>y.method!=="get"),u={...s$,bindings:[...o.length>0?[Mn.query]:[],...a.length>0?[Mn.mutation]:[]]},c=a.filter(y=>y.parameters.length>1),l=[...o,...c].reduce((y,v)=>[...y,...v.parameters],[]),p=$s({resolver:e,tag:r,zodSchemasAsTypes:Array.from(new Set(l.map(y=>y.zodSchema).filter(Lt))),options:n}),f=l2({tag:r,endpoints:i,options:n});return Ms({resolver:e,templateName:"queries",options:n})({queryImport:u,modelsImports:p,endpointsImports:f,includeNamespace:n.includeNamespaces,namespace:$t({type:"queries",tag:r,options:n}),endpoints:i,queryEndpoints:o})}s(m$,"generateQueries");function g$({openApiDoc:e,options:t}){let r={..._1,...t},{resolver:n,data:i}=c2({openApiDoc:e,options:r});i.forEach((o,a)=>{var l;((l=r.excludeTags)==null?void 0:l.findIndex(p=>p.toLocaleLowerCase()===a.toLocaleLowerCase()))===-1&&(bm({resolver:n,data:i,type:"models",tag:a,options:r}),bm({resolver:n,data:i,type:"endpoints",tag:a,options:r}),bm({resolver:n,data:i,type:"queries",tag:a,options:r}))})}s(g$,"generateCodeFromOpenAPIDoc");function bm({resolver:e,data:t,type:r,tag:n,options:i}){let o;switch(r){case"models":o=h$({resolver:e,data:t,tag:n,options:i});break;case"endpoints":o=f$({resolver:e,data:t,tag:n,options:i});break;case"queries":o=m$({resolver:e,data:t,tag:n,options:i});break}o&&r$({output:i.output,fileName:Du({tag:n,type:r,options:i}),data:o})}s(bm,"generateCodeByType");async function v$({input:e,output:t,includeNamespaces:r,splitByTags:n,defaultTag:i,excludeTags:o,prettier:a,verbose:u}){u&&Ni(`Parsing OpenAPI spec from "${e}"`);let c=await y$.default.bundle(e);u&&Ni("Generating code from OpenAPI spec"),g$({openApiDoc:c,options:{output:t,includeNamespaces:r,splitByTags:n,defaultTag:i,excludeTags:o.split(",")}}),u&&dl("Generated code successfully"),a&&v8({output:t,verbose:u})}s(v$,"generate");function v8({output:e,verbose:t}){t&&Ni("Running Prettier"),y8(`prettier --write ${e}`,r=>{t&&(r?zs(r,"Prettier error"):dl("Ran Prettier successfully"))})}s(v8,"execPrettier");var _r=class _r{input;output;includeNamespaces;splitByTags;defaultTag;excludeTags;prettier;verbose};s(_r,"GenerateOptions"),Fr([Br({envAlias:"input",demandOption:!0})],_r.prototype,"input",2),Fr([Br({envAlias:"output",default:"output"})],_r.prototype,"output",2),Fr([Br({envAlias:"includeNamespaces",default:!0,type:"boolean"})],_r.prototype,"includeNamespaces",2),Fr([Br({envAlias:"splitByTags",default:!0,type:"boolean"})],_r.prototype,"splitByTags",2),Fr([Br({envAlias:"defaultTag",default:"Common"})],_r.prototype,"defaultTag",2),Fr([Br({envAlias:"excludeTags",default:""})],_r.prototype,"excludeTags",2),Fr([Br({envAlias:"prettier",default:!0,type:"boolean"})],_r.prototype,"prettier",2),Fr([Br({envAlias:"verbose",default:!1,type:"boolean"})],_r.prototype,"verbose",2);var _m=_r,b$={command:"generate",describe:"Generate code from OpenAPI spec",builder:Lg(_m),handler:s(async e=>{let t=await e;return t.verbose&&(Mg(`OpenAPI CodeGen ${xa()}`),pl("input",t.input),pl("output",t.output)),v$(t)},"handler")};wg(Tc(process.argv)).version(xa()||"unknown").scriptName("openapi-codegen").command(b$).help().demandCommand(1).strictCommands(!0).showHelpOnFail(!0).fail((e,t)=>{e&&zs(e),t&&zs(t),Ni("Use '--help' for more info"),process.exit(1)}).parse();
146
146
  /*! Bundled license information:
147
147
 
148
148
  reflect-metadata/Reflect.js: