diff --git a/online/js/bundle.js b/online/js/bundle.js index f9363d77..badf72f7 100644 --- a/online/js/bundle.js +++ b/online/js/bundle.js @@ -1,39 +1,39 @@ -"use strict";(()=>{var $s=Object.defineProperty;var mv=Object.getOwnPropertyDescriptor;var yv=Object.getOwnPropertyNames;var gv=Object.prototype.hasOwnProperty;var Fe=(e,r)=>()=>(e&&(r=e(e=0)),r);var j=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),ki=(e,r)=>{for(var t in r)$s(e,t,{get:r[t],enumerable:!0})},vv=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of yv(r))!gv.call(e,i)&&i!==t&&$s(e,i,{get:()=>r[i],enumerable:!(n=mv(r,i))||n.enumerable});return e};var Nt=e=>vv($s({},"__esModule",{value:!0}),e);var p=Fe(()=>{});var S={};ki(S,{_debugEnd:()=>Of,_debugProcess:()=>jf,_events:()=>zf,_eventsCount:()=>Hf,_exiting:()=>uf,_fatalExceptions:()=>Pf,_getActiveHandles:()=>df,_getActiveRequests:()=>ff,_kill:()=>hf,_linkedBinding:()=>sf,_maxListeners:()=>Vf,_preload_modules:()=>Uf,_rawDebug:()=>nf,_startProfilerIdleNotifier:()=>Af,_stopProfilerIdleNotifier:()=>qf,_tickCallback:()=>Sf,abort:()=>Rf,addListener:()=>Kf,allowedNodeEnvironmentFlags:()=>_f,arch:()=>zl,argv:()=>Gl,argv0:()=>Bf,assert:()=>bf,binding:()=>Ql,chdir:()=>rf,config:()=>cf,cpuUsage:()=>Ci,cwd:()=>ef,debugPort:()=>Df,default:()=>rd,dlopen:()=>lf,domain:()=>af,emit:()=>Xf,emitWarning:()=>Xl,env:()=>Kl,execArgv:()=>Jl,execPath:()=>Mf,exit:()=>vf,features:()=>wf,hasUncaughtExceptionCaptureCallback:()=>Ef,hrtime:()=>Ri,kill:()=>gf,listeners:()=>ed,memoryUsage:()=>yf,moduleLoadList:()=>of,nextTick:()=>Ll,off:()=>Jf,on:()=>jr,once:()=>Gf,openStdin:()=>$f,pid:()=>Cf,platform:()=>Hl,ppid:()=>Nf,prependListener:()=>Qf,prependOnceListener:()=>Zf,reallyExit:()=>pf,release:()=>tf,removeAllListeners:()=>Yf,removeListener:()=>Wf,resourceUsage:()=>mf,setSourceMapsEnabled:()=>Lf,setUncaughtExceptionCaptureCallback:()=>xf,stderr:()=>kf,stdin:()=>Tf,stdout:()=>If,title:()=>Vl,umask:()=>Zl,uptime:()=>Ff,version:()=>Wl,versions:()=>Yl});function ws(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function $v(){!Mt||!at||(Mt=!1,at.length?Sr=at.concat(Sr):Ti=-1,Sr.length&&Ul())}function Ul(){if(!Mt){var e=setTimeout($v,0);Mt=!0;for(var r=Sr.length;r;){for(at=Sr,Sr=[];++Ti1)for(var t=1;t{p();m();h();Sr=[],Mt=!1,Ti=-1;Fl.prototype.run=function(){this.fun.apply(null,this.array)};Vl="browser",zl="x64",Hl="browser",Kl={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Gl=["/usr/bin/node"],Jl=[],Wl="v16.8.0",Yl={},Xl=function(e,r){console.warn((r?r+": ":"")+e)},Ql=function(e){ws("binding")},Zl=function(e){return 0},ef=function(){return"/"},rf=function(e){},tf={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};nf=xe,of=[];af={},uf=!1,cf={};pf=xe,hf=xe,Ci=function(){return{}},mf=Ci,yf=Ci,gf=xe,vf=xe,$f=xe,_f={};wf={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},Pf=xe,xf=xe;Sf=xe,jf=xe,Of=xe,Af=xe,qf=xe,If=void 0,kf=void 0,Tf=void 0,Rf=xe,Cf=2,Nf=1,Mf="/bin/usr/node",Df=9229,Bf="node",Uf=[],Lf=xe,zr={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};zr.now===void 0&&(_s=Date.now(),zr.timing&&zr.timing.navigationStart&&(_s=zr.timing.navigationStart),zr.now=()=>Date.now()-_s);bs=1e9;Ri.bigint=function(e){var r=Ri(e);return typeof BigInt>"u"?r[0]*bs+r[1]:BigInt(r[0]*bs)+BigInt(r[1])};Vf=10,zf={},Hf=0;Kf=jr,Gf=jr,Jf=jr,Wf=jr,Yf=jr,Xf=xe,Qf=jr,Zf=jr;rd={version:Wl,versions:Yl,arch:zl,platform:Hl,release:tf,_rawDebug:nf,moduleLoadList:of,binding:Ql,_linkedBinding:sf,_events:zf,_eventsCount:Hf,_maxListeners:Vf,on:jr,addListener:Kf,once:Gf,off:Jf,removeListener:Wf,removeAllListeners:Yf,emit:Xf,prependListener:Qf,prependOnceListener:Zf,listeners:ed,domain:af,_exiting:uf,config:cf,dlopen:lf,uptime:Ff,_getActiveRequests:ff,_getActiveHandles:df,reallyExit:pf,_kill:hf,cpuUsage:Ci,resourceUsage:mf,memoryUsage:yf,kill:gf,exit:vf,openStdin:$f,allowedNodeEnvironmentFlags:_f,assert:bf,features:wf,_fatalExceptions:Pf,setUncaughtExceptionCaptureCallback:xf,hasUncaughtExceptionCaptureCallback:Ef,emitWarning:Xl,nextTick:Ll,_tickCallback:Sf,_debugProcess:jf,_debugEnd:Of,_startProfilerIdleNotifier:Af,_stopProfilerIdleNotifier:qf,stdout:If,stdin:Tf,stderr:kf,abort:Rf,umask:Zl,chdir:rf,cwd:ef,env:Kl,title:Vl,argv:Gl,execArgv:Jl,pid:Cf,ppid:Nf,execPath:Mf,debugPort:Df,hrtime:Ri,argv0:Bf,_preload_modules:Uf,setSourceMapsEnabled:Lf}});var h=Fe(()=>{td()});function _v(){if(nd)return En;nd=!0,En.byteLength=a,En.toByteArray=f,En.fromByteArray=b;for(var e=[],r=[],t=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,s=n.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var P=_.indexOf("=");P===-1&&(P=w);var O=P===w?0:4-P%4;return[P,O]}function a(_){var w=o(_),P=w[0],O=w[1];return(P+O)*3/4-O}function l(_,w,P){return(w+P)*3/4-P}function f(_){var w,P=o(_),O=P[0],I=P[1],R=new t(l(_,O,I)),C=0,U=I>0?O-4:O,N;for(N=0;N>16&255,R[C++]=w>>8&255,R[C++]=w&255;return I===2&&(w=r[_.charCodeAt(N)]<<2|r[_.charCodeAt(N+1)]>>4,R[C++]=w&255),I===1&&(w=r[_.charCodeAt(N)]<<10|r[_.charCodeAt(N+1)]<<4|r[_.charCodeAt(N+2)]>>2,R[C++]=w>>8&255,R[C++]=w&255),R}function g(_){return e[_>>18&63]+e[_>>12&63]+e[_>>6&63]+e[_&63]}function y(_,w,P){for(var O,I=[],R=w;RU?U:C+R));return O===1?(w=_[P-1],I.push(e[w>>2]+e[w<<4&63]+"==")):O===2&&(w=(_[P-2]<<8)+_[P-1],I.push(e[w>>10]+e[w>>4&63]+e[w<<2&63]+"=")),I.join("")}return En}function bv(){if(id)return Ni;id=!0;return Ni.read=function(e,r,t,n,i){var s,o,a=i*8-n-1,l=(1<>1,g=-7,y=t?i-1:0,b=t?-1:1,_=e[r+y];for(y+=b,s=_&(1<<-g)-1,_>>=-g,g+=a;g>0;s=s*256+e[r+y],y+=b,g-=8);for(o=s&(1<<-g)-1,s>>=-g,g+=n;g>0;o=o*256+e[r+y],y+=b,g-=8);if(s===0)s=1-f;else{if(s===l)return o?NaN:(_?-1:1)*(1/0);o=o+Math.pow(2,n),s=s-f}return(_?-1:1)*o*Math.pow(2,s-n)},Ni.write=function(e,r,t,n,i,s){var o,a,l,f=s*8-i-1,g=(1<>1,b=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=n?0:s-1,w=n?1:-1,P=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(a=isNaN(r)?1:0,o=g):(o=Math.floor(Math.log(r)/Math.LN2),r*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+y>=1?r+=b/l:r+=b*Math.pow(2,1-y),r*l>=2&&(o++,l/=2),o+y>=g?(a=0,o=g):o+y>=1?(a=(r*l-1)*Math.pow(2,i),o=o+y):(a=r*Math.pow(2,y-1)*Math.pow(2,i),o=0));i>=8;e[t+_]=a&255,_+=w,a/=256,i-=8);for(o=o<0;e[t+_]=o&255,_+=w,o/=256,f-=8);e[t+_-w]|=P*128},Ni}function wv(){if(od)return ut;od=!0;let e=_v(),r=bv(),t=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ut.Buffer=o,ut.SlowBuffer=I,ut.INSPECT_MAX_BYTES=50;let n=2147483647;ut.kMaxLength=n,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{let d=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(d,u),d.foo()===42}catch(d){return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function s(d){if(d>n)throw new RangeError('The value "'+d+'" is invalid for option "size"');let u=new Uint8Array(d);return Object.setPrototypeOf(u,o.prototype),u}function o(d,u,c){if(typeof d=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(d)}return a(d,u,c)}o.poolSize=8192;function a(d,u,c){if(typeof d=="string")return y(d,u);if(ArrayBuffer.isView(d))return _(d);if(d==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof d);if(mr(d,ArrayBuffer)||d&&mr(d.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(mr(d,SharedArrayBuffer)||d&&mr(d.buffer,SharedArrayBuffer)))return w(d,u,c);if(typeof d=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let v=d.valueOf&&d.valueOf();if(v!=null&&v!==d)return o.from(v,u,c);let x=P(d);if(x)return x;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof d[Symbol.toPrimitive]=="function")return o.from(d[Symbol.toPrimitive]("string"),u,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof d)}o.from=function(d,u,c){return a(d,u,c)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function l(d){if(typeof d!="number")throw new TypeError('"size" argument must be of type number');if(d<0)throw new RangeError('The value "'+d+'" is invalid for option "size"')}function f(d,u,c){return l(d),d<=0?s(d):u!==void 0?typeof c=="string"?s(d).fill(u,c):s(d).fill(u):s(d)}o.alloc=function(d,u,c){return f(d,u,c)};function g(d){return l(d),s(d<0?0:O(d)|0)}o.allocUnsafe=function(d){return g(d)},o.allocUnsafeSlow=function(d){return g(d)};function y(d,u){if((typeof u!="string"||u==="")&&(u="utf8"),!o.isEncoding(u))throw new TypeError("Unknown encoding: "+u);let c=R(d,u)|0,v=s(c),x=v.write(d,u);return x!==c&&(v=v.slice(0,x)),v}function b(d){let u=d.length<0?0:O(d.length)|0,c=s(u);for(let v=0;v=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return d|0}function I(d){return+d!=d&&(d=0),o.alloc(+d)}o.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==o.prototype},o.compare=function(u,c){if(mr(u,Uint8Array)&&(u=o.from(u,u.offset,u.byteLength)),mr(c,Uint8Array)&&(c=o.from(c,c.offset,c.byteLength)),!o.isBuffer(u)||!o.isBuffer(c))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===c)return 0;let v=u.length,x=c.length;for(let q=0,T=Math.min(v,x);qx.length?(o.isBuffer(T)||(T=o.from(T)),T.copy(x,q)):Uint8Array.prototype.set.call(x,T,q);else if(o.isBuffer(T))T.copy(x,q);else throw new TypeError('"list" argument must be an Array of Buffers');q+=T.length}return x};function R(d,u){if(o.isBuffer(d))return d.length;if(ArrayBuffer.isView(d)||mr(d,ArrayBuffer))return d.byteLength;if(typeof d!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof d);let c=d.length,v=arguments.length>2&&arguments[2]===!0;if(!v&&c===0)return 0;let x=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return gs(d).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return Bl(d).length;default:if(x)return v?-1:gs(d).length;u=(""+u).toLowerCase(),x=!0}}o.byteLength=R;function C(d,u,c){let v=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,u>>>=0,c<=u))return"";for(d||(d="utf8");;)switch(d){case"hex":return sv(this,u,c);case"utf8":case"utf-8":return Pn(this,u,c);case"ascii":return iv(this,u,c);case"latin1":case"binary":return ov(this,u,c);case"base64":return Ai(this,u,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return av(this,u,c);default:if(v)throw new TypeError("Unknown encoding: "+d);d=(d+"").toLowerCase(),v=!0}}o.prototype._isBuffer=!0;function U(d,u,c){let v=d[u];d[u]=d[c],d[c]=v}o.prototype.swap16=function(){let u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let c=0;cc&&(u+=" ... "),""},t&&(o.prototype[t]=o.prototype.inspect),o.prototype.compare=function(u,c,v,x,q){if(mr(u,Uint8Array)&&(u=o.from(u,u.offset,u.byteLength)),!o.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(c===void 0&&(c=0),v===void 0&&(v=u?u.length:0),x===void 0&&(x=0),q===void 0&&(q=this.length),c<0||v>u.length||x<0||q>this.length)throw new RangeError("out of range index");if(x>=q&&c>=v)return 0;if(x>=q)return-1;if(c>=v)return 1;if(c>>>=0,v>>>=0,x>>>=0,q>>>=0,this===u)return 0;let T=q-x,G=v-c,fe=Math.min(T,G),se=this.slice(x,q),de=u.slice(c,v);for(let re=0;re2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,vs(c)&&(c=x?0:d.length-1),c<0&&(c=d.length+c),c>=d.length){if(x)return-1;c=d.length-1}else if(c<0)if(x)c=0;else return-1;if(typeof u=="string"&&(u=o.from(u,v)),o.isBuffer(u))return u.length===0?-1:ve(d,u,c,v,x);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?x?Uint8Array.prototype.indexOf.call(d,u,c):Uint8Array.prototype.lastIndexOf.call(d,u,c):ve(d,[u],c,v,x);throw new TypeError("val must be string, number or Buffer")}function ve(d,u,c,v,x){let q=1,T=d.length,G=u.length;if(v!==void 0&&(v=String(v).toLowerCase(),v==="ucs2"||v==="ucs-2"||v==="utf16le"||v==="utf-16le")){if(d.length<2||u.length<2)return-1;q=2,T/=2,G/=2,c/=2}function fe(de,re){return q===1?de[re]:de.readUInt16BE(re*q)}let se;if(x){let de=-1;for(se=c;seT&&(c=T-G),se=c;se>=0;se--){let de=!0;for(let re=0;rex&&(v=x)):v=x;let q=u.length;v>q/2&&(v=q/2);let T;for(T=0;T>>0,isFinite(v)?(v=v>>>0,x===void 0&&(x="utf8")):(x=v,v=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let q=this.length-c;if((v===void 0||v>q)&&(v=q),u.length>0&&(v<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");x||(x="utf8");let T=!1;for(;;)switch(x){case"hex":return er(this,u,c,v);case"utf8":case"utf-8":return _n(this,u,c,v);case"ascii":case"latin1":case"binary":return bn(this,u,c,v);case"base64":return st(this,u,c,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wn(this,u,c,v);default:if(T)throw new TypeError("Unknown encoding: "+x);x=(""+x).toLowerCase(),T=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ai(d,u,c){return u===0&&c===d.length?e.fromByteArray(d):e.fromByteArray(d.slice(u,c))}function Pn(d,u,c){c=Math.min(d.length,c);let v=[],x=u;for(;x239?4:q>223?3:q>191?2:1;if(x+G<=c){let fe,se,de,re;switch(G){case 1:q<128&&(T=q);break;case 2:fe=d[x+1],(fe&192)===128&&(re=(q&31)<<6|fe&63,re>127&&(T=re));break;case 3:fe=d[x+1],se=d[x+2],(fe&192)===128&&(se&192)===128&&(re=(q&15)<<12|(fe&63)<<6|se&63,re>2047&&(re<55296||re>57343)&&(T=re));break;case 4:fe=d[x+1],se=d[x+2],de=d[x+3],(fe&192)===128&&(se&192)===128&&(de&192)===128&&(re=(q&15)<<18|(fe&63)<<12|(se&63)<<6|de&63,re>65535&&re<1114112&&(T=re))}}T===null?(T=65533,G=1):T>65535&&(T-=65536,v.push(T>>>10&1023|55296),T=56320|T&1023),v.push(T),x+=G}return nv(v)}let qi=4096;function nv(d){let u=d.length;if(u<=qi)return String.fromCharCode.apply(String,d);let c="",v=0;for(;vv)&&(c=v);let x="";for(let q=u;qv&&(u=v),c<0?(c+=v,c<0&&(c=0)):c>v&&(c=v),cc)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(u,c,v){u=u>>>0,c=c>>>0,v||$e(u,c,this.length);let x=this[u],q=1,T=0;for(;++T>>0,c=c>>>0,v||$e(u,c,this.length);let x=this[u+--c],q=1;for(;c>0&&(q*=256);)x+=this[u+--c]*q;return x},o.prototype.readUint8=o.prototype.readUInt8=function(u,c){return u=u>>>0,c||$e(u,1,this.length),this[u]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(u,c){return u=u>>>0,c||$e(u,2,this.length),this[u]|this[u+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(u,c){return u=u>>>0,c||$e(u,2,this.length),this[u]<<8|this[u+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(u,c){return u=u>>>0,c||$e(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(u,c){return u=u>>>0,c||$e(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},o.prototype.readBigUInt64LE=Vr(function(u){u=u>>>0,Ct(u,"offset");let c=this[u],v=this[u+7];(c===void 0||v===void 0)&&xn(u,this.length-8);let x=c+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24,q=this[++u]+this[++u]*2**8+this[++u]*2**16+v*2**24;return BigInt(x)+(BigInt(q)<>>0,Ct(u,"offset");let c=this[u],v=this[u+7];(c===void 0||v===void 0)&&xn(u,this.length-8);let x=c*2**24+this[++u]*2**16+this[++u]*2**8+this[++u],q=this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+v;return(BigInt(x)<>>0,c=c>>>0,v||$e(u,c,this.length);let x=this[u],q=1,T=0;for(;++T=q&&(x-=Math.pow(2,8*c)),x},o.prototype.readIntBE=function(u,c,v){u=u>>>0,c=c>>>0,v||$e(u,c,this.length);let x=c,q=1,T=this[u+--x];for(;x>0&&(q*=256);)T+=this[u+--x]*q;return q*=128,T>=q&&(T-=Math.pow(2,8*c)),T},o.prototype.readInt8=function(u,c){return u=u>>>0,c||$e(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},o.prototype.readInt16LE=function(u,c){u=u>>>0,c||$e(u,2,this.length);let v=this[u]|this[u+1]<<8;return v&32768?v|4294901760:v},o.prototype.readInt16BE=function(u,c){u=u>>>0,c||$e(u,2,this.length);let v=this[u+1]|this[u]<<8;return v&32768?v|4294901760:v},o.prototype.readInt32LE=function(u,c){return u=u>>>0,c||$e(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},o.prototype.readInt32BE=function(u,c){return u=u>>>0,c||$e(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},o.prototype.readBigInt64LE=Vr(function(u){u=u>>>0,Ct(u,"offset");let c=this[u],v=this[u+7];(c===void 0||v===void 0)&&xn(u,this.length-8);let x=this[u+4]+this[u+5]*2**8+this[u+6]*2**16+(v<<24);return(BigInt(x)<>>0,Ct(u,"offset");let c=this[u],v=this[u+7];(c===void 0||v===void 0)&&xn(u,this.length-8);let x=(c<<24)+this[++u]*2**16+this[++u]*2**8+this[++u];return(BigInt(x)<>>0,c||$e(u,4,this.length),r.read(this,u,!0,23,4)},o.prototype.readFloatBE=function(u,c){return u=u>>>0,c||$e(u,4,this.length),r.read(this,u,!1,23,4)},o.prototype.readDoubleLE=function(u,c){return u=u>>>0,c||$e(u,8,this.length),r.read(this,u,!0,52,8)},o.prototype.readDoubleBE=function(u,c){return u=u>>>0,c||$e(u,8,this.length),r.read(this,u,!1,52,8)};function Ce(d,u,c,v,x,q){if(!o.isBuffer(d))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>x||ud.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(u,c,v,x){if(u=+u,c=c>>>0,v=v>>>0,!x){let G=Math.pow(2,8*v)-1;Ce(this,u,c,v,G,0)}let q=1,T=0;for(this[c]=u&255;++T>>0,v=v>>>0,!x){let G=Math.pow(2,8*v)-1;Ce(this,u,c,v,G,0)}let q=v-1,T=1;for(this[c+q]=u&255;--q>=0&&(T*=256);)this[c+q]=u/T&255;return c+v},o.prototype.writeUint8=o.prototype.writeUInt8=function(u,c,v){return u=+u,c=c>>>0,v||Ce(this,u,c,1,255,0),this[c]=u&255,c+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(u,c,v){return u=+u,c=c>>>0,v||Ce(this,u,c,2,65535,0),this[c]=u&255,this[c+1]=u>>>8,c+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(u,c,v){return u=+u,c=c>>>0,v||Ce(this,u,c,2,65535,0),this[c]=u>>>8,this[c+1]=u&255,c+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(u,c,v){return u=+u,c=c>>>0,v||Ce(this,u,c,4,4294967295,0),this[c+3]=u>>>24,this[c+2]=u>>>16,this[c+1]=u>>>8,this[c]=u&255,c+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(u,c,v){return u=+u,c=c>>>0,v||Ce(this,u,c,4,4294967295,0),this[c]=u>>>24,this[c+1]=u>>>16,this[c+2]=u>>>8,this[c+3]=u&255,c+4};function kl(d,u,c,v,x){Dl(u,v,x,d,c,7);let q=Number(u&BigInt(4294967295));d[c++]=q,q=q>>8,d[c++]=q,q=q>>8,d[c++]=q,q=q>>8,d[c++]=q;let T=Number(u>>BigInt(32)&BigInt(4294967295));return d[c++]=T,T=T>>8,d[c++]=T,T=T>>8,d[c++]=T,T=T>>8,d[c++]=T,c}function Tl(d,u,c,v,x){Dl(u,v,x,d,c,7);let q=Number(u&BigInt(4294967295));d[c+7]=q,q=q>>8,d[c+6]=q,q=q>>8,d[c+5]=q,q=q>>8,d[c+4]=q;let T=Number(u>>BigInt(32)&BigInt(4294967295));return d[c+3]=T,T=T>>8,d[c+2]=T,T=T>>8,d[c+1]=T,T=T>>8,d[c]=T,c+8}o.prototype.writeBigUInt64LE=Vr(function(u,c=0){return kl(this,u,c,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Vr(function(u,c=0){return Tl(this,u,c,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(u,c,v,x){if(u=+u,c=c>>>0,!x){let fe=Math.pow(2,8*v-1);Ce(this,u,c,v,fe-1,-fe)}let q=0,T=1,G=0;for(this[c]=u&255;++q>0)-G&255;return c+v},o.prototype.writeIntBE=function(u,c,v,x){if(u=+u,c=c>>>0,!x){let fe=Math.pow(2,8*v-1);Ce(this,u,c,v,fe-1,-fe)}let q=v-1,T=1,G=0;for(this[c+q]=u&255;--q>=0&&(T*=256);)u<0&&G===0&&this[c+q+1]!==0&&(G=1),this[c+q]=(u/T>>0)-G&255;return c+v},o.prototype.writeInt8=function(u,c,v){return u=+u,c=c>>>0,v||Ce(this,u,c,1,127,-128),u<0&&(u=255+u+1),this[c]=u&255,c+1},o.prototype.writeInt16LE=function(u,c,v){return u=+u,c=c>>>0,v||Ce(this,u,c,2,32767,-32768),this[c]=u&255,this[c+1]=u>>>8,c+2},o.prototype.writeInt16BE=function(u,c,v){return u=+u,c=c>>>0,v||Ce(this,u,c,2,32767,-32768),this[c]=u>>>8,this[c+1]=u&255,c+2},o.prototype.writeInt32LE=function(u,c,v){return u=+u,c=c>>>0,v||Ce(this,u,c,4,2147483647,-2147483648),this[c]=u&255,this[c+1]=u>>>8,this[c+2]=u>>>16,this[c+3]=u>>>24,c+4},o.prototype.writeInt32BE=function(u,c,v){return u=+u,c=c>>>0,v||Ce(this,u,c,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[c]=u>>>24,this[c+1]=u>>>16,this[c+2]=u>>>8,this[c+3]=u&255,c+4},o.prototype.writeBigInt64LE=Vr(function(u,c=0){return kl(this,u,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Vr(function(u,c=0){return Tl(this,u,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Rl(d,u,c,v,x,q){if(c+v>d.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function Cl(d,u,c,v,x){return u=+u,c=c>>>0,x||Rl(d,u,c,4),r.write(d,u,c,v,23,4),c+4}o.prototype.writeFloatLE=function(u,c,v){return Cl(this,u,c,!0,v)},o.prototype.writeFloatBE=function(u,c,v){return Cl(this,u,c,!1,v)};function Nl(d,u,c,v,x){return u=+u,c=c>>>0,x||Rl(d,u,c,8),r.write(d,u,c,v,52,8),c+8}o.prototype.writeDoubleLE=function(u,c,v){return Nl(this,u,c,!0,v)},o.prototype.writeDoubleBE=function(u,c,v){return Nl(this,u,c,!1,v)},o.prototype.copy=function(u,c,v,x){if(!o.isBuffer(u))throw new TypeError("argument should be a Buffer");if(v||(v=0),!x&&x!==0&&(x=this.length),c>=u.length&&(c=u.length),c||(c=0),x>0&&x=this.length)throw new RangeError("Index out of range");if(x<0)throw new RangeError("sourceEnd out of bounds");x>this.length&&(x=this.length),u.length-c>>0,v=v===void 0?this.length:v>>>0,u||(u=0);let q;if(typeof u=="number")for(q=c;q2**32?x=Ml(String(c)):typeof c=="bigint"&&(x=String(c),(c>BigInt(2)**BigInt(32)||c<-(BigInt(2)**BigInt(32)))&&(x=Ml(x)),x+="n"),v+=` It must be ${u}. Received ${x}`,v},RangeError);function Ml(d){let u="",c=d.length,v=d[0]==="-"?1:0;for(;c>=v+4;c-=3)u=`_${d.slice(c-3,c)}${u}`;return`${d.slice(0,c)}${u}`}function uv(d,u,c){Ct(u,"offset"),(d[u]===void 0||d[u+c]===void 0)&&xn(u,d.length-(c+1))}function Dl(d,u,c,v,x,q){if(d>c||d3?u===0||u===BigInt(0)?G=`>= 0${T} and < 2${T} ** ${(q+1)*8}${T}`:G=`>= -(2${T} ** ${(q+1)*8-1}${T}) and < 2 ** ${(q+1)*8-1}${T}`:G=`>= ${u}${T} and <= ${c}${T}`,new Rt.ERR_OUT_OF_RANGE("value",G,d)}uv(v,x,q)}function Ct(d,u){if(typeof d!="number")throw new Rt.ERR_INVALID_ARG_TYPE(u,"number",d)}function xn(d,u,c){throw Math.floor(d)!==d?(Ct(d,c),new Rt.ERR_OUT_OF_RANGE(c||"offset","an integer",d)):u<0?new Rt.ERR_BUFFER_OUT_OF_BOUNDS:new Rt.ERR_OUT_OF_RANGE(c||"offset",`>= ${c?1:0} and <= ${u}`,d)}let cv=/[^+/0-9A-Za-z-_]/g;function lv(d){if(d=d.split("=")[0],d=d.trim().replace(cv,""),d.length<2)return"";for(;d.length%4!==0;)d=d+"=";return d}function gs(d,u){u=u||1/0;let c,v=d.length,x=null,q=[];for(let T=0;T55295&&c<57344){if(!x){if(c>56319){(u-=3)>-1&&q.push(239,191,189);continue}else if(T+1===v){(u-=3)>-1&&q.push(239,191,189);continue}x=c;continue}if(c<56320){(u-=3)>-1&&q.push(239,191,189),x=c;continue}c=(x-55296<<10|c-56320)+65536}else x&&(u-=3)>-1&&q.push(239,191,189);if(x=null,c<128){if((u-=1)<0)break;q.push(c)}else if(c<2048){if((u-=2)<0)break;q.push(c>>6|192,c&63|128)}else if(c<65536){if((u-=3)<0)break;q.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((u-=4)<0)break;q.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return q}function fv(d){let u=[];for(let c=0;c>8,x=c%256,q.push(x),q.push(v);return q}function Bl(d){return e.toByteArray(lv(d))}function Ii(d,u,c,v){let x;for(x=0;x=u.length||x>=d.length);++x)u[x+c]=d[x];return x}function mr(d,u){return d instanceof u||d!=null&&d.constructor!=null&&d.constructor.name!=null&&d.constructor.name===u.name}function vs(d){return d!==d}let pv=function(){let d="0123456789abcdef",u=new Array(256);for(let c=0;c<16;++c){let v=c*16;for(let x=0;x<16;++x)u[v+x]=d[c]+d[x]}return u}();function Vr(d){return typeof BigInt>"u"?hv:d}function hv(){throw new Error("BigInt not supported")}return ut}var En,nd,Ni,id,ut,od,ct,E,wI,PI,sd=Fe(()=>{p();m();h();En={},nd=!1;Ni={},id=!1;ut={},od=!1;ct=wv();ct.Buffer;ct.SlowBuffer;ct.INSPECT_MAX_BYTES;ct.kMaxLength;E=ct.Buffer,wI=ct.INSPECT_MAX_BYTES,PI=ct.kMaxLength});var m=Fe(()=>{sd()});var Dt=j((qI,lt)=>{"use strict";p();m();h();function ad(e){return typeof e>"u"||e===null}function Pv(e){return typeof e=="object"&&e!==null}function xv(e){return Array.isArray(e)?e:ad(e)?[]:[e]}function Ev(e,r){var t,n,i,s;if(r)for(s=Object.keys(r),t=0,n=s.length;t{"use strict";p();m();h();function ud(e,r){var t="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(t+=` +"use strict";(()=>{var $s=Object.defineProperty;var gv=Object.getOwnPropertyDescriptor;var vv=Object.getOwnPropertyNames;var $v=Object.prototype.hasOwnProperty;var Fe=(e,r)=>()=>(e&&(r=e(e=0)),r);var j=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),ki=(e,r)=>{for(var t in r)$s(e,t,{get:r[t],enumerable:!0})},_v=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of vv(r))!$v.call(e,i)&&i!==t&&$s(e,i,{get:()=>r[i],enumerable:!(n=gv(r,i))||n.enumerable});return e};var Nt=e=>_v($s({},"__esModule",{value:!0}),e);var p=Fe(()=>{});var S={};ki(S,{_debugEnd:()=>Of,_debugProcess:()=>jf,_events:()=>zf,_eventsCount:()=>Hf,_exiting:()=>uf,_fatalExceptions:()=>Pf,_getActiveHandles:()=>df,_getActiveRequests:()=>ff,_kill:()=>hf,_linkedBinding:()=>sf,_maxListeners:()=>Vf,_preload_modules:()=>Uf,_rawDebug:()=>nf,_startProfilerIdleNotifier:()=>Af,_stopProfilerIdleNotifier:()=>qf,_tickCallback:()=>Sf,abort:()=>Rf,addListener:()=>Kf,allowedNodeEnvironmentFlags:()=>_f,arch:()=>zl,argv:()=>Gl,argv0:()=>Bf,assert:()=>bf,binding:()=>Ql,chdir:()=>rf,config:()=>cf,cpuUsage:()=>Ci,cwd:()=>ef,debugPort:()=>Df,default:()=>rd,dlopen:()=>lf,domain:()=>af,emit:()=>Xf,emitWarning:()=>Xl,env:()=>Kl,execArgv:()=>Jl,execPath:()=>Mf,exit:()=>vf,features:()=>wf,hasUncaughtExceptionCaptureCallback:()=>Ef,hrtime:()=>Ri,kill:()=>gf,listeners:()=>ed,memoryUsage:()=>yf,moduleLoadList:()=>of,nextTick:()=>Ll,off:()=>Jf,on:()=>jr,once:()=>Gf,openStdin:()=>$f,pid:()=>Cf,platform:()=>Hl,ppid:()=>Nf,prependListener:()=>Qf,prependOnceListener:()=>Zf,reallyExit:()=>pf,release:()=>tf,removeAllListeners:()=>Yf,removeListener:()=>Wf,resourceUsage:()=>mf,setSourceMapsEnabled:()=>Lf,setUncaughtExceptionCaptureCallback:()=>xf,stderr:()=>kf,stdin:()=>Tf,stdout:()=>If,title:()=>Vl,umask:()=>Zl,uptime:()=>Ff,version:()=>Wl,versions:()=>Yl});function ws(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function bv(){!Mt||!at||(Mt=!1,at.length?Sr=at.concat(Sr):Ti=-1,Sr.length&&Ul())}function Ul(){if(!Mt){var e=setTimeout(bv,0);Mt=!0;for(var r=Sr.length;r;){for(at=Sr,Sr=[];++Ti1)for(var t=1;t{p();m();h();Sr=[],Mt=!1,Ti=-1;Fl.prototype.run=function(){this.fun.apply(null,this.array)};Vl="browser",zl="x64",Hl="browser",Kl={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Gl=["/usr/bin/node"],Jl=[],Wl="v16.8.0",Yl={},Xl=function(e,r){console.warn((r?r+": ":"")+e)},Ql=function(e){ws("binding")},Zl=function(e){return 0},ef=function(){return"/"},rf=function(e){},tf={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};nf=xe,of=[];af={},uf=!1,cf={};pf=xe,hf=xe,Ci=function(){return{}},mf=Ci,yf=Ci,gf=xe,vf=xe,$f=xe,_f={};wf={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},Pf=xe,xf=xe;Sf=xe,jf=xe,Of=xe,Af=xe,qf=xe,If=void 0,kf=void 0,Tf=void 0,Rf=xe,Cf=2,Nf=1,Mf="/bin/usr/node",Df=9229,Bf="node",Uf=[],Lf=xe,zr={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};zr.now===void 0&&(_s=Date.now(),zr.timing&&zr.timing.navigationStart&&(_s=zr.timing.navigationStart),zr.now=()=>Date.now()-_s);bs=1e9;Ri.bigint=function(e){var r=Ri(e);return typeof BigInt>"u"?r[0]*bs+r[1]:BigInt(r[0]*bs)+BigInt(r[1])};Vf=10,zf={},Hf=0;Kf=jr,Gf=jr,Jf=jr,Wf=jr,Yf=jr,Xf=xe,Qf=jr,Zf=jr;rd={version:Wl,versions:Yl,arch:zl,platform:Hl,release:tf,_rawDebug:nf,moduleLoadList:of,binding:Ql,_linkedBinding:sf,_events:zf,_eventsCount:Hf,_maxListeners:Vf,on:jr,addListener:Kf,once:Gf,off:Jf,removeListener:Wf,removeAllListeners:Yf,emit:Xf,prependListener:Qf,prependOnceListener:Zf,listeners:ed,domain:af,_exiting:uf,config:cf,dlopen:lf,uptime:Ff,_getActiveRequests:ff,_getActiveHandles:df,reallyExit:pf,_kill:hf,cpuUsage:Ci,resourceUsage:mf,memoryUsage:yf,kill:gf,exit:vf,openStdin:$f,allowedNodeEnvironmentFlags:_f,assert:bf,features:wf,_fatalExceptions:Pf,setUncaughtExceptionCaptureCallback:xf,hasUncaughtExceptionCaptureCallback:Ef,emitWarning:Xl,nextTick:Ll,_tickCallback:Sf,_debugProcess:jf,_debugEnd:Of,_startProfilerIdleNotifier:Af,_stopProfilerIdleNotifier:qf,stdout:If,stdin:Tf,stderr:kf,abort:Rf,umask:Zl,chdir:rf,cwd:ef,env:Kl,title:Vl,argv:Gl,execArgv:Jl,pid:Cf,ppid:Nf,execPath:Mf,debugPort:Df,hrtime:Ri,argv0:Bf,_preload_modules:Uf,setSourceMapsEnabled:Lf}});var h=Fe(()=>{td()});function wv(){if(nd)return En;nd=!0,En.byteLength=a,En.toByteArray=f,En.fromByteArray=b;for(var e=[],r=[],t=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,s=n.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var P=_.indexOf("=");P===-1&&(P=w);var O=P===w?0:4-P%4;return[P,O]}function a(_){var w=o(_),P=w[0],O=w[1];return(P+O)*3/4-O}function l(_,w,P){return(w+P)*3/4-P}function f(_){var w,P=o(_),O=P[0],I=P[1],R=new t(l(_,O,I)),C=0,U=I>0?O-4:O,N;for(N=0;N>16&255,R[C++]=w>>8&255,R[C++]=w&255;return I===2&&(w=r[_.charCodeAt(N)]<<2|r[_.charCodeAt(N+1)]>>4,R[C++]=w&255),I===1&&(w=r[_.charCodeAt(N)]<<10|r[_.charCodeAt(N+1)]<<4|r[_.charCodeAt(N+2)]>>2,R[C++]=w>>8&255,R[C++]=w&255),R}function g(_){return e[_>>18&63]+e[_>>12&63]+e[_>>6&63]+e[_&63]}function y(_,w,P){for(var O,I=[],R=w;RU?U:C+R));return O===1?(w=_[P-1],I.push(e[w>>2]+e[w<<4&63]+"==")):O===2&&(w=(_[P-2]<<8)+_[P-1],I.push(e[w>>10]+e[w>>4&63]+e[w<<2&63]+"=")),I.join("")}return En}function Pv(){if(id)return Ni;id=!0;return Ni.read=function(e,r,t,n,i){var s,o,a=i*8-n-1,l=(1<>1,g=-7,y=t?i-1:0,b=t?-1:1,_=e[r+y];for(y+=b,s=_&(1<<-g)-1,_>>=-g,g+=a;g>0;s=s*256+e[r+y],y+=b,g-=8);for(o=s&(1<<-g)-1,s>>=-g,g+=n;g>0;o=o*256+e[r+y],y+=b,g-=8);if(s===0)s=1-f;else{if(s===l)return o?NaN:(_?-1:1)*(1/0);o=o+Math.pow(2,n),s=s-f}return(_?-1:1)*o*Math.pow(2,s-n)},Ni.write=function(e,r,t,n,i,s){var o,a,l,f=s*8-i-1,g=(1<>1,b=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=n?0:s-1,w=n?1:-1,P=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(a=isNaN(r)?1:0,o=g):(o=Math.floor(Math.log(r)/Math.LN2),r*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+y>=1?r+=b/l:r+=b*Math.pow(2,1-y),r*l>=2&&(o++,l/=2),o+y>=g?(a=0,o=g):o+y>=1?(a=(r*l-1)*Math.pow(2,i),o=o+y):(a=r*Math.pow(2,y-1)*Math.pow(2,i),o=0));i>=8;e[t+_]=a&255,_+=w,a/=256,i-=8);for(o=o<0;e[t+_]=o&255,_+=w,o/=256,f-=8);e[t+_-w]|=P*128},Ni}function xv(){if(od)return ut;od=!0;let e=wv(),r=Pv(),t=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ut.Buffer=o,ut.SlowBuffer=I,ut.INSPECT_MAX_BYTES=50;let n=2147483647;ut.kMaxLength=n,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{let d=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(d,u),d.foo()===42}catch(d){return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function s(d){if(d>n)throw new RangeError('The value "'+d+'" is invalid for option "size"');let u=new Uint8Array(d);return Object.setPrototypeOf(u,o.prototype),u}function o(d,u,c){if(typeof d=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(d)}return a(d,u,c)}o.poolSize=8192;function a(d,u,c){if(typeof d=="string")return y(d,u);if(ArrayBuffer.isView(d))return _(d);if(d==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof d);if(mr(d,ArrayBuffer)||d&&mr(d.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(mr(d,SharedArrayBuffer)||d&&mr(d.buffer,SharedArrayBuffer)))return w(d,u,c);if(typeof d=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let v=d.valueOf&&d.valueOf();if(v!=null&&v!==d)return o.from(v,u,c);let x=P(d);if(x)return x;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof d[Symbol.toPrimitive]=="function")return o.from(d[Symbol.toPrimitive]("string"),u,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof d)}o.from=function(d,u,c){return a(d,u,c)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function l(d){if(typeof d!="number")throw new TypeError('"size" argument must be of type number');if(d<0)throw new RangeError('The value "'+d+'" is invalid for option "size"')}function f(d,u,c){return l(d),d<=0?s(d):u!==void 0?typeof c=="string"?s(d).fill(u,c):s(d).fill(u):s(d)}o.alloc=function(d,u,c){return f(d,u,c)};function g(d){return l(d),s(d<0?0:O(d)|0)}o.allocUnsafe=function(d){return g(d)},o.allocUnsafeSlow=function(d){return g(d)};function y(d,u){if((typeof u!="string"||u==="")&&(u="utf8"),!o.isEncoding(u))throw new TypeError("Unknown encoding: "+u);let c=R(d,u)|0,v=s(c),x=v.write(d,u);return x!==c&&(v=v.slice(0,x)),v}function b(d){let u=d.length<0?0:O(d.length)|0,c=s(u);for(let v=0;v=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return d|0}function I(d){return+d!=d&&(d=0),o.alloc(+d)}o.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==o.prototype},o.compare=function(u,c){if(mr(u,Uint8Array)&&(u=o.from(u,u.offset,u.byteLength)),mr(c,Uint8Array)&&(c=o.from(c,c.offset,c.byteLength)),!o.isBuffer(u)||!o.isBuffer(c))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===c)return 0;let v=u.length,x=c.length;for(let q=0,T=Math.min(v,x);qx.length?(o.isBuffer(T)||(T=o.from(T)),T.copy(x,q)):Uint8Array.prototype.set.call(x,T,q);else if(o.isBuffer(T))T.copy(x,q);else throw new TypeError('"list" argument must be an Array of Buffers');q+=T.length}return x};function R(d,u){if(o.isBuffer(d))return d.length;if(ArrayBuffer.isView(d)||mr(d,ArrayBuffer))return d.byteLength;if(typeof d!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof d);let c=d.length,v=arguments.length>2&&arguments[2]===!0;if(!v&&c===0)return 0;let x=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return gs(d).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return Bl(d).length;default:if(x)return v?-1:gs(d).length;u=(""+u).toLowerCase(),x=!0}}o.byteLength=R;function C(d,u,c){let v=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,u>>>=0,c<=u))return"";for(d||(d="utf8");;)switch(d){case"hex":return uv(this,u,c);case"utf8":case"utf-8":return Pn(this,u,c);case"ascii":return sv(this,u,c);case"latin1":case"binary":return av(this,u,c);case"base64":return Ai(this,u,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return cv(this,u,c);default:if(v)throw new TypeError("Unknown encoding: "+d);d=(d+"").toLowerCase(),v=!0}}o.prototype._isBuffer=!0;function U(d,u,c){let v=d[u];d[u]=d[c],d[c]=v}o.prototype.swap16=function(){let u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let c=0;cc&&(u+=" ... "),""},t&&(o.prototype[t]=o.prototype.inspect),o.prototype.compare=function(u,c,v,x,q){if(mr(u,Uint8Array)&&(u=o.from(u,u.offset,u.byteLength)),!o.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(c===void 0&&(c=0),v===void 0&&(v=u?u.length:0),x===void 0&&(x=0),q===void 0&&(q=this.length),c<0||v>u.length||x<0||q>this.length)throw new RangeError("out of range index");if(x>=q&&c>=v)return 0;if(x>=q)return-1;if(c>=v)return 1;if(c>>>=0,v>>>=0,x>>>=0,q>>>=0,this===u)return 0;let T=q-x,G=v-c,fe=Math.min(T,G),se=this.slice(x,q),de=u.slice(c,v);for(let re=0;re2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,vs(c)&&(c=x?0:d.length-1),c<0&&(c=d.length+c),c>=d.length){if(x)return-1;c=d.length-1}else if(c<0)if(x)c=0;else return-1;if(typeof u=="string"&&(u=o.from(u,v)),o.isBuffer(u))return u.length===0?-1:ve(d,u,c,v,x);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?x?Uint8Array.prototype.indexOf.call(d,u,c):Uint8Array.prototype.lastIndexOf.call(d,u,c):ve(d,[u],c,v,x);throw new TypeError("val must be string, number or Buffer")}function ve(d,u,c,v,x){let q=1,T=d.length,G=u.length;if(v!==void 0&&(v=String(v).toLowerCase(),v==="ucs2"||v==="ucs-2"||v==="utf16le"||v==="utf-16le")){if(d.length<2||u.length<2)return-1;q=2,T/=2,G/=2,c/=2}function fe(de,re){return q===1?de[re]:de.readUInt16BE(re*q)}let se;if(x){let de=-1;for(se=c;seT&&(c=T-G),se=c;se>=0;se--){let de=!0;for(let re=0;rex&&(v=x)):v=x;let q=u.length;v>q/2&&(v=q/2);let T;for(T=0;T>>0,isFinite(v)?(v=v>>>0,x===void 0&&(x="utf8")):(x=v,v=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let q=this.length-c;if((v===void 0||v>q)&&(v=q),u.length>0&&(v<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");x||(x="utf8");let T=!1;for(;;)switch(x){case"hex":return er(this,u,c,v);case"utf8":case"utf-8":return _n(this,u,c,v);case"ascii":case"latin1":case"binary":return bn(this,u,c,v);case"base64":return st(this,u,c,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wn(this,u,c,v);default:if(T)throw new TypeError("Unknown encoding: "+x);x=(""+x).toLowerCase(),T=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ai(d,u,c){return u===0&&c===d.length?e.fromByteArray(d):e.fromByteArray(d.slice(u,c))}function Pn(d,u,c){c=Math.min(d.length,c);let v=[],x=u;for(;x239?4:q>223?3:q>191?2:1;if(x+G<=c){let fe,se,de,re;switch(G){case 1:q<128&&(T=q);break;case 2:fe=d[x+1],(fe&192)===128&&(re=(q&31)<<6|fe&63,re>127&&(T=re));break;case 3:fe=d[x+1],se=d[x+2],(fe&192)===128&&(se&192)===128&&(re=(q&15)<<12|(fe&63)<<6|se&63,re>2047&&(re<55296||re>57343)&&(T=re));break;case 4:fe=d[x+1],se=d[x+2],de=d[x+3],(fe&192)===128&&(se&192)===128&&(de&192)===128&&(re=(q&15)<<18|(fe&63)<<12|(se&63)<<6|de&63,re>65535&&re<1114112&&(T=re))}}T===null?(T=65533,G=1):T>65535&&(T-=65536,v.push(T>>>10&1023|55296),T=56320|T&1023),v.push(T),x+=G}return ov(v)}let qi=4096;function ov(d){let u=d.length;if(u<=qi)return String.fromCharCode.apply(String,d);let c="",v=0;for(;vv)&&(c=v);let x="";for(let q=u;qv&&(u=v),c<0?(c+=v,c<0&&(c=0)):c>v&&(c=v),cc)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(u,c,v){u=u>>>0,c=c>>>0,v||$e(u,c,this.length);let x=this[u],q=1,T=0;for(;++T>>0,c=c>>>0,v||$e(u,c,this.length);let x=this[u+--c],q=1;for(;c>0&&(q*=256);)x+=this[u+--c]*q;return x},o.prototype.readUint8=o.prototype.readUInt8=function(u,c){return u=u>>>0,c||$e(u,1,this.length),this[u]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(u,c){return u=u>>>0,c||$e(u,2,this.length),this[u]|this[u+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(u,c){return u=u>>>0,c||$e(u,2,this.length),this[u]<<8|this[u+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(u,c){return u=u>>>0,c||$e(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(u,c){return u=u>>>0,c||$e(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},o.prototype.readBigUInt64LE=Vr(function(u){u=u>>>0,Ct(u,"offset");let c=this[u],v=this[u+7];(c===void 0||v===void 0)&&xn(u,this.length-8);let x=c+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24,q=this[++u]+this[++u]*2**8+this[++u]*2**16+v*2**24;return BigInt(x)+(BigInt(q)<>>0,Ct(u,"offset");let c=this[u],v=this[u+7];(c===void 0||v===void 0)&&xn(u,this.length-8);let x=c*2**24+this[++u]*2**16+this[++u]*2**8+this[++u],q=this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+v;return(BigInt(x)<>>0,c=c>>>0,v||$e(u,c,this.length);let x=this[u],q=1,T=0;for(;++T=q&&(x-=Math.pow(2,8*c)),x},o.prototype.readIntBE=function(u,c,v){u=u>>>0,c=c>>>0,v||$e(u,c,this.length);let x=c,q=1,T=this[u+--x];for(;x>0&&(q*=256);)T+=this[u+--x]*q;return q*=128,T>=q&&(T-=Math.pow(2,8*c)),T},o.prototype.readInt8=function(u,c){return u=u>>>0,c||$e(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},o.prototype.readInt16LE=function(u,c){u=u>>>0,c||$e(u,2,this.length);let v=this[u]|this[u+1]<<8;return v&32768?v|4294901760:v},o.prototype.readInt16BE=function(u,c){u=u>>>0,c||$e(u,2,this.length);let v=this[u+1]|this[u]<<8;return v&32768?v|4294901760:v},o.prototype.readInt32LE=function(u,c){return u=u>>>0,c||$e(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},o.prototype.readInt32BE=function(u,c){return u=u>>>0,c||$e(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},o.prototype.readBigInt64LE=Vr(function(u){u=u>>>0,Ct(u,"offset");let c=this[u],v=this[u+7];(c===void 0||v===void 0)&&xn(u,this.length-8);let x=this[u+4]+this[u+5]*2**8+this[u+6]*2**16+(v<<24);return(BigInt(x)<>>0,Ct(u,"offset");let c=this[u],v=this[u+7];(c===void 0||v===void 0)&&xn(u,this.length-8);let x=(c<<24)+this[++u]*2**16+this[++u]*2**8+this[++u];return(BigInt(x)<>>0,c||$e(u,4,this.length),r.read(this,u,!0,23,4)},o.prototype.readFloatBE=function(u,c){return u=u>>>0,c||$e(u,4,this.length),r.read(this,u,!1,23,4)},o.prototype.readDoubleLE=function(u,c){return u=u>>>0,c||$e(u,8,this.length),r.read(this,u,!0,52,8)},o.prototype.readDoubleBE=function(u,c){return u=u>>>0,c||$e(u,8,this.length),r.read(this,u,!1,52,8)};function Ce(d,u,c,v,x,q){if(!o.isBuffer(d))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>x||ud.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(u,c,v,x){if(u=+u,c=c>>>0,v=v>>>0,!x){let G=Math.pow(2,8*v)-1;Ce(this,u,c,v,G,0)}let q=1,T=0;for(this[c]=u&255;++T>>0,v=v>>>0,!x){let G=Math.pow(2,8*v)-1;Ce(this,u,c,v,G,0)}let q=v-1,T=1;for(this[c+q]=u&255;--q>=0&&(T*=256);)this[c+q]=u/T&255;return c+v},o.prototype.writeUint8=o.prototype.writeUInt8=function(u,c,v){return u=+u,c=c>>>0,v||Ce(this,u,c,1,255,0),this[c]=u&255,c+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(u,c,v){return u=+u,c=c>>>0,v||Ce(this,u,c,2,65535,0),this[c]=u&255,this[c+1]=u>>>8,c+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(u,c,v){return u=+u,c=c>>>0,v||Ce(this,u,c,2,65535,0),this[c]=u>>>8,this[c+1]=u&255,c+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(u,c,v){return u=+u,c=c>>>0,v||Ce(this,u,c,4,4294967295,0),this[c+3]=u>>>24,this[c+2]=u>>>16,this[c+1]=u>>>8,this[c]=u&255,c+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(u,c,v){return u=+u,c=c>>>0,v||Ce(this,u,c,4,4294967295,0),this[c]=u>>>24,this[c+1]=u>>>16,this[c+2]=u>>>8,this[c+3]=u&255,c+4};function kl(d,u,c,v,x){Dl(u,v,x,d,c,7);let q=Number(u&BigInt(4294967295));d[c++]=q,q=q>>8,d[c++]=q,q=q>>8,d[c++]=q,q=q>>8,d[c++]=q;let T=Number(u>>BigInt(32)&BigInt(4294967295));return d[c++]=T,T=T>>8,d[c++]=T,T=T>>8,d[c++]=T,T=T>>8,d[c++]=T,c}function Tl(d,u,c,v,x){Dl(u,v,x,d,c,7);let q=Number(u&BigInt(4294967295));d[c+7]=q,q=q>>8,d[c+6]=q,q=q>>8,d[c+5]=q,q=q>>8,d[c+4]=q;let T=Number(u>>BigInt(32)&BigInt(4294967295));return d[c+3]=T,T=T>>8,d[c+2]=T,T=T>>8,d[c+1]=T,T=T>>8,d[c]=T,c+8}o.prototype.writeBigUInt64LE=Vr(function(u,c=0){return kl(this,u,c,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Vr(function(u,c=0){return Tl(this,u,c,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(u,c,v,x){if(u=+u,c=c>>>0,!x){let fe=Math.pow(2,8*v-1);Ce(this,u,c,v,fe-1,-fe)}let q=0,T=1,G=0;for(this[c]=u&255;++q>0)-G&255;return c+v},o.prototype.writeIntBE=function(u,c,v,x){if(u=+u,c=c>>>0,!x){let fe=Math.pow(2,8*v-1);Ce(this,u,c,v,fe-1,-fe)}let q=v-1,T=1,G=0;for(this[c+q]=u&255;--q>=0&&(T*=256);)u<0&&G===0&&this[c+q+1]!==0&&(G=1),this[c+q]=(u/T>>0)-G&255;return c+v},o.prototype.writeInt8=function(u,c,v){return u=+u,c=c>>>0,v||Ce(this,u,c,1,127,-128),u<0&&(u=255+u+1),this[c]=u&255,c+1},o.prototype.writeInt16LE=function(u,c,v){return u=+u,c=c>>>0,v||Ce(this,u,c,2,32767,-32768),this[c]=u&255,this[c+1]=u>>>8,c+2},o.prototype.writeInt16BE=function(u,c,v){return u=+u,c=c>>>0,v||Ce(this,u,c,2,32767,-32768),this[c]=u>>>8,this[c+1]=u&255,c+2},o.prototype.writeInt32LE=function(u,c,v){return u=+u,c=c>>>0,v||Ce(this,u,c,4,2147483647,-2147483648),this[c]=u&255,this[c+1]=u>>>8,this[c+2]=u>>>16,this[c+3]=u>>>24,c+4},o.prototype.writeInt32BE=function(u,c,v){return u=+u,c=c>>>0,v||Ce(this,u,c,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[c]=u>>>24,this[c+1]=u>>>16,this[c+2]=u>>>8,this[c+3]=u&255,c+4},o.prototype.writeBigInt64LE=Vr(function(u,c=0){return kl(this,u,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Vr(function(u,c=0){return Tl(this,u,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Rl(d,u,c,v,x,q){if(c+v>d.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function Cl(d,u,c,v,x){return u=+u,c=c>>>0,x||Rl(d,u,c,4),r.write(d,u,c,v,23,4),c+4}o.prototype.writeFloatLE=function(u,c,v){return Cl(this,u,c,!0,v)},o.prototype.writeFloatBE=function(u,c,v){return Cl(this,u,c,!1,v)};function Nl(d,u,c,v,x){return u=+u,c=c>>>0,x||Rl(d,u,c,8),r.write(d,u,c,v,52,8),c+8}o.prototype.writeDoubleLE=function(u,c,v){return Nl(this,u,c,!0,v)},o.prototype.writeDoubleBE=function(u,c,v){return Nl(this,u,c,!1,v)},o.prototype.copy=function(u,c,v,x){if(!o.isBuffer(u))throw new TypeError("argument should be a Buffer");if(v||(v=0),!x&&x!==0&&(x=this.length),c>=u.length&&(c=u.length),c||(c=0),x>0&&x=this.length)throw new RangeError("Index out of range");if(x<0)throw new RangeError("sourceEnd out of bounds");x>this.length&&(x=this.length),u.length-c>>0,v=v===void 0?this.length:v>>>0,u||(u=0);let q;if(typeof u=="number")for(q=c;q2**32?x=Ml(String(c)):typeof c=="bigint"&&(x=String(c),(c>BigInt(2)**BigInt(32)||c<-(BigInt(2)**BigInt(32)))&&(x=Ml(x)),x+="n"),v+=` It must be ${u}. Received ${x}`,v},RangeError);function Ml(d){let u="",c=d.length,v=d[0]==="-"?1:0;for(;c>=v+4;c-=3)u=`_${d.slice(c-3,c)}${u}`;return`${d.slice(0,c)}${u}`}function lv(d,u,c){Ct(u,"offset"),(d[u]===void 0||d[u+c]===void 0)&&xn(u,d.length-(c+1))}function Dl(d,u,c,v,x,q){if(d>c||d3?u===0||u===BigInt(0)?G=`>= 0${T} and < 2${T} ** ${(q+1)*8}${T}`:G=`>= -(2${T} ** ${(q+1)*8-1}${T}) and < 2 ** ${(q+1)*8-1}${T}`:G=`>= ${u}${T} and <= ${c}${T}`,new Rt.ERR_OUT_OF_RANGE("value",G,d)}lv(v,x,q)}function Ct(d,u){if(typeof d!="number")throw new Rt.ERR_INVALID_ARG_TYPE(u,"number",d)}function xn(d,u,c){throw Math.floor(d)!==d?(Ct(d,c),new Rt.ERR_OUT_OF_RANGE(c||"offset","an integer",d)):u<0?new Rt.ERR_BUFFER_OUT_OF_BOUNDS:new Rt.ERR_OUT_OF_RANGE(c||"offset",`>= ${c?1:0} and <= ${u}`,d)}let fv=/[^+/0-9A-Za-z-_]/g;function dv(d){if(d=d.split("=")[0],d=d.trim().replace(fv,""),d.length<2)return"";for(;d.length%4!==0;)d=d+"=";return d}function gs(d,u){u=u||1/0;let c,v=d.length,x=null,q=[];for(let T=0;T55295&&c<57344){if(!x){if(c>56319){(u-=3)>-1&&q.push(239,191,189);continue}else if(T+1===v){(u-=3)>-1&&q.push(239,191,189);continue}x=c;continue}if(c<56320){(u-=3)>-1&&q.push(239,191,189),x=c;continue}c=(x-55296<<10|c-56320)+65536}else x&&(u-=3)>-1&&q.push(239,191,189);if(x=null,c<128){if((u-=1)<0)break;q.push(c)}else if(c<2048){if((u-=2)<0)break;q.push(c>>6|192,c&63|128)}else if(c<65536){if((u-=3)<0)break;q.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((u-=4)<0)break;q.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return q}function pv(d){let u=[];for(let c=0;c>8,x=c%256,q.push(x),q.push(v);return q}function Bl(d){return e.toByteArray(dv(d))}function Ii(d,u,c,v){let x;for(x=0;x=u.length||x>=d.length);++x)u[x+c]=d[x];return x}function mr(d,u){return d instanceof u||d!=null&&d.constructor!=null&&d.constructor.name!=null&&d.constructor.name===u.name}function vs(d){return d!==d}let mv=function(){let d="0123456789abcdef",u=new Array(256);for(let c=0;c<16;++c){let v=c*16;for(let x=0;x<16;++x)u[v+x]=d[c]+d[x]}return u}();function Vr(d){return typeof BigInt>"u"?yv:d}function yv(){throw new Error("BigInt not supported")}return ut}var En,nd,Ni,id,ut,od,ct,E,EI,SI,sd=Fe(()=>{p();m();h();En={},nd=!1;Ni={},id=!1;ut={},od=!1;ct=xv();ct.Buffer;ct.SlowBuffer;ct.INSPECT_MAX_BYTES;ct.kMaxLength;E=ct.Buffer,EI=ct.INSPECT_MAX_BYTES,SI=ct.kMaxLength});var m=Fe(()=>{sd()});var Dt=j((TI,lt)=>{"use strict";p();m();h();function ad(e){return typeof e>"u"||e===null}function Ev(e){return typeof e=="object"&&e!==null}function Sv(e){return Array.isArray(e)?e:ad(e)?[]:[e]}function jv(e,r){var t,n,i,s;if(r)for(s=Object.keys(r),t=0,n=s.length;t{"use strict";p();m();h();function ud(e,r){var t="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(t+=` -`+e.mark.snippet),n+" "+t):n}function Sn(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=ud(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Sn.prototype=Object.create(Error.prototype);Sn.prototype.constructor=Sn;Sn.prototype.toString=function(r){return this.name+": "+ud(this,r)};cd.exports=Sn});var fd=j((DI,ld)=>{"use strict";p();m();h();var jn=Dt();function Ps(e,r,t,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-r>a&&(s=" ... ",r=n-a+s.length),t-n>a&&(o=" ...",t=n+a-o.length),{str:s+e.slice(r,t).replace(/\t/g,"\u2192")+o,pos:n-r+s.length}}function xs(e,r){return jn.repeat(" ",r-e.length)+e}function Ov(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var t=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=t.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",l,f,g=Math.min(e.line+r.linesAfter,i.length).toString().length,y=r.maxLength-(r.indent+g+3);for(l=1;l<=r.linesBefore&&!(o-l<0);l++)f=Ps(e.buffer,n[o-l],i[o-l],e.position-(n[o]-n[o-l]),y),a=jn.repeat(" ",r.indent)+xs((e.line-l+1).toString(),g)+" | "+f.str+` +`+e.mark.snippet),n+" "+t):n}function Sn(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=ud(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Sn.prototype=Object.create(Error.prototype);Sn.prototype.constructor=Sn;Sn.prototype.toString=function(r){return this.name+": "+ud(this,r)};cd.exports=Sn});var fd=j((LI,ld)=>{"use strict";p();m();h();var jn=Dt();function Ps(e,r,t,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-r>a&&(s=" ... ",r=n-a+s.length),t-n>a&&(o=" ...",t=n+a-o.length),{str:s+e.slice(r,t).replace(/\t/g,"\u2192")+o,pos:n-r+s.length}}function xs(e,r){return jn.repeat(" ",r-e.length)+e}function qv(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var t=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=t.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",l,f,g=Math.min(e.line+r.linesAfter,i.length).toString().length,y=r.maxLength-(r.indent+g+3);for(l=1;l<=r.linesBefore&&!(o-l<0);l++)f=Ps(e.buffer,n[o-l],i[o-l],e.position-(n[o]-n[o-l]),y),a=jn.repeat(" ",r.indent)+xs((e.line-l+1).toString(),g)+" | "+f.str+` `+a;for(f=Ps(e.buffer,n[o],i[o],e.position,y),a+=jn.repeat(" ",r.indent)+xs((e.line+1).toString(),g)+" | "+f.str+` `,a+=jn.repeat("-",r.indent+g+3+f.pos)+`^ `,l=1;l<=r.linesAfter&&!(o+l>=i.length);l++)f=Ps(e.buffer,n[o+l],i[o+l],e.position-(n[o]-n[o+l]),y),a+=jn.repeat(" ",r.indent)+xs((e.line+l+1).toString(),g)+" | "+f.str+` -`;return a.replace(/\n$/,"")}ld.exports=Ov});var Ee=j((FI,pd)=>{"use strict";p();m();h();var dd=Bt(),Av=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],qv=["scalar","sequence","mapping"];function Iv(e){var r={};return e!==null&&Object.keys(e).forEach(function(t){e[t].forEach(function(n){r[String(n)]=t})}),r}function kv(e,r){if(r=r||{},Object.keys(r).forEach(function(t){if(Av.indexOf(t)===-1)throw new dd('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(t){return t},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=Iv(r.styleAliases||null),qv.indexOf(this.kind)===-1)throw new dd('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}pd.exports=kv});var js=j((KI,md)=>{"use strict";p();m();h();var On=Bt(),Es=Ee();function hd(e,r){var t=[];return e[r].forEach(function(n){var i=t.length;t.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),t[i]=n}),t}function Tv(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,t;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(r=0,t=arguments.length;r{"use strict";p();m();h();var Rv=Ee();yd.exports=new Rv("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var As=j((ek,gd)=>{"use strict";p();m();h();var Cv=Ee();gd.exports=new Cv("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var qs=j((ik,vd)=>{"use strict";p();m();h();var Nv=Ee();vd.exports=new Nv("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Is=j((uk,$d)=>{"use strict";p();m();h();var Mv=js();$d.exports=new Mv({explicit:[Os(),As(),qs()]})});var ks=j((dk,_d)=>{"use strict";p();m();h();var Dv=Ee();function Bv(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function Uv(){return null}function Lv(e){return e===null}_d.exports=new Dv("tag:yaml.org,2002:null",{kind:"scalar",resolve:Bv,construct:Uv,predicate:Lv,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var Ts=j((yk,bd)=>{"use strict";p();m();h();var Fv=Ee();function Vv(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function zv(e){return e==="true"||e==="True"||e==="TRUE"}function Hv(e){return Object.prototype.toString.call(e)==="[object Boolean]"}bd.exports=new Fv("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Vv,construct:zv,predicate:Hv,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var Rs=j((_k,wd)=>{"use strict";p();m();h();var Kv=Dt(),Gv=Ee();function Jv(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Wv(e){return 48<=e&&e<=55}function Yv(e){return 48<=e&&e<=57}function Xv(e){if(e===null)return!1;var r=e.length,t=0,n=!1,i;if(!r)return!1;if(i=e[t],(i==="-"||i==="+")&&(i=e[++t]),i==="0"){if(t+1===r)return!0;if(i=e[++t],i==="b"){for(t++;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var Cs=j((xk,xd)=>{"use strict";p();m();h();var Pd=Dt(),e$=Ee(),r$=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function t$(e){return!(e===null||!r$.test(e)||e[e.length-1]==="_")}function n$(e){var r,t;return r=e.replace(/_/g,"").toLowerCase(),t=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:t*parseFloat(r,10)}var i$=/^[-+]?[0-9]+e/;function o$(e,r){var t;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Pd.isNegativeZero(e))return"-0.0";return t=e.toString(10),i$.test(t)?t.replace("e",".e"):t}function s$(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Pd.isNegativeZero(e))}xd.exports=new e$("tag:yaml.org,2002:float",{kind:"scalar",resolve:t$,construct:n$,predicate:s$,represent:o$,defaultStyle:"lowercase"})});var Ns=j((Ok,Ed)=>{"use strict";p();m();h();Ed.exports=Is().extend({implicit:[ks(),Ts(),Rs(),Cs()]})});var Ms=j((kk,Sd)=>{"use strict";p();m();h();Sd.exports=Ns()});var Ds=j((Nk,Ad)=>{"use strict";p();m();h();var a$=Ee(),jd=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Od=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 u$(e){return e===null?!1:jd.exec(e)!==null||Od.exec(e)!==null}function c$(e){var r,t,n,i,s,o,a,l=0,f=null,g,y,b;if(r=jd.exec(e),r===null&&(r=Od.exec(e)),r===null)throw new Error("Date resolve error");if(t=+r[1],n=+r[2]-1,i=+r[3],!r[4])return new Date(Date.UTC(t,n,i));if(s=+r[4],o=+r[5],a=+r[6],r[7]){for(l=r[7].slice(0,3);l.length<3;)l+="0";l=+l}return r[9]&&(g=+r[10],y=+(r[11]||0),f=(g*60+y)*6e4,r[9]==="-"&&(f=-f)),b=new Date(Date.UTC(t,n,i,s,o,a,l)),f&&b.setTime(b.getTime()-f),b}function l$(e){return e.toISOString()}Ad.exports=new a$("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:u$,construct:c$,instanceOf:Date,represent:l$})});var Bs=j((Uk,qd)=>{"use strict";p();m();h();var f$=Ee();function d$(e){return e==="<<"||e===null}qd.exports=new f$("tag:yaml.org,2002:merge",{kind:"scalar",resolve:d$})});var Ls=j((zk,Id)=>{"use strict";p();m();h();var p$=Ee(),Us=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;function h$(e){if(e===null)return!1;var r,t,n=0,i=e.length,s=Us;for(t=0;t64)){if(r<0)return!1;n+=6}return n%8===0}function m$(e){var r,t,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Us,o=0,a=[];for(r=0;r>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(r));return t=i%4*6,t===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):t===18?(a.push(o>>10&255),a.push(o>>2&255)):t===12&&a.push(o>>4&255),new Uint8Array(a)}function y$(e){var r="",t=0,n,i,s=e.length,o=Us;for(n=0;n>18&63],r+=o[t>>12&63],r+=o[t>>6&63],r+=o[t&63]),t=(t<<8)+e[n];return i=s%3,i===0?(r+=o[t>>18&63],r+=o[t>>12&63],r+=o[t>>6&63],r+=o[t&63]):i===2?(r+=o[t>>10&63],r+=o[t>>4&63],r+=o[t<<2&63],r+=o[64]):i===1&&(r+=o[t>>2&63],r+=o[t<<4&63],r+=o[64],r+=o[64]),r}function g$(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}Id.exports=new p$("tag:yaml.org,2002:binary",{kind:"scalar",resolve:h$,construct:m$,predicate:g$,represent:y$})});var Fs=j((Jk,kd)=>{"use strict";p();m();h();var v$=Ee(),$$=Object.prototype.hasOwnProperty,_$=Object.prototype.toString;function b$(e){if(e===null)return!0;var r=[],t,n,i,s,o,a=e;for(t=0,n=a.length;t{"use strict";p();m();h();var P$=Ee(),x$=Object.prototype.toString;function E$(e){if(e===null)return!0;var r,t,n,i,s,o=e;for(s=new Array(o.length),r=0,t=o.length;r{"use strict";p();m();h();var j$=Ee(),O$=Object.prototype.hasOwnProperty;function A$(e){if(e===null)return!0;var r,t=e;for(r in t)if(O$.call(t,r)&&t[r]!==null)return!1;return!0}function q$(e){return e!==null?e:{}}Rd.exports=new j$("tag:yaml.org,2002:set",{kind:"mapping",resolve:A$,construct:q$})});var Mi=j((sT,Cd)=>{"use strict";p();m();h();Cd.exports=Ms().extend({implicit:[Ds(),Bs()],explicit:[Ls(),Fs(),Vs(),zs()]})});var Xd=j((lT,Js)=>{"use strict";p();m();h();var dt=Dt(),Fd=Bt(),I$=fd(),k$=Mi(),Kr=Object.prototype.hasOwnProperty,Di=1,Vd=2,zd=3,Bi=4,Hs=1,T$=2,Nd=3,R$=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,C$=/[\x85\u2028\u2029]/,N$=/[,\[\]\{\}]/,Hd=/^(?:!|!!|![a-z\-]+!)$/i,Kd=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Md(e){return Object.prototype.toString.call(e)}function yr(e){return e===10||e===13}function pt(e){return e===9||e===32}function Ne(e){return e===9||e===32||e===10||e===13}function Ut(e){return e===44||e===91||e===93||e===123||e===125}function M$(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function D$(e){return e===120?2:e===117?4:e===85?8:0}function B$(e){return 48<=e&&e<=57?e-48:-1}function Dd(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?` -`: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":""}function U$(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Gd=new Array(256),Jd=new Array(256);for(ft=0;ft<256;ft++)Gd[ft]=Dd(ft)?1:0,Jd[ft]=Dd(ft);var ft;function L$(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||k$,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.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.firstTabInLine=-1,this.documents=[]}function Wd(e,r){var t={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return t.snippet=I$(t),new Fd(r,t)}function D(e,r){throw Wd(e,r)}function Ui(e,r){e.onWarning&&e.onWarning.call(null,Wd(e,r))}var Bd={YAML:function(r,t,n){var i,s,o;r.version!==null&&D(r,"duplication of %YAML directive"),n.length!==1&&D(r,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&D(r,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&D(r,"unacceptable YAML version of the document"),r.version=n[0],r.checkLineBreaks=o<2,o!==1&&o!==2&&Ui(r,"unsupported YAML version of the document")},TAG:function(r,t,n){var i,s;n.length!==2&&D(r,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],Hd.test(i)||D(r,"ill-formed tag handle (first argument) of the TAG directive"),Kr.call(r.tagMap,i)&&D(r,'there is a previously declared suffix for "'+i+'" tag handle'),Kd.test(s)||D(r,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch(o){D(r,"tag prefix is malformed: "+s)}r.tagMap[i]=s}};function Hr(e,r,t,n){var i,s,o,a;if(r1&&(e.result+=dt.repeat(` -`,r-1))}function F$(e,r,t){var n,i,s,o,a,l,f,g,y=e.kind,b=e.result,_;if(_=e.input.charCodeAt(e.position),Ne(_)||Ut(_)||_===35||_===38||_===42||_===33||_===124||_===62||_===39||_===34||_===37||_===64||_===96||(_===63||_===45)&&(i=e.input.charCodeAt(e.position+1),Ne(i)||t&&Ut(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;_!==0;){if(_===58){if(i=e.input.charCodeAt(e.position+1),Ne(i)||t&&Ut(i))break}else if(_===35){if(n=e.input.charCodeAt(e.position-1),Ne(n))break}else{if(e.position===e.lineStart&&Li(e)||t&&Ut(_))break;if(yr(_))if(l=e.line,f=e.lineStart,g=e.lineIndent,ye(e,!1,-1),e.lineIndent>=r){a=!0,_=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=l,e.lineStart=f,e.lineIndent=g;break}}a&&(Hr(e,s,o,!1),Gs(e,e.line-l),s=o=e.position,a=!1),pt(_)||(o=e.position+1),_=e.input.charCodeAt(++e.position)}return Hr(e,s,o,!1),e.result?!0:(e.kind=y,e.result=b,!1)}function V$(e,r){var t,n,i;if(t=e.input.charCodeAt(e.position),t!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(Hr(e,n,e.position,!0),t=e.input.charCodeAt(++e.position),t===39)n=e.position,e.position++,i=e.position;else return!0;else yr(t)?(Hr(e,n,i,!0),Gs(e,ye(e,!1,r)),n=i=e.position):e.position===e.lineStart&&Li(e)?D(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);D(e,"unexpected end of the stream within a single quoted scalar")}function z$(e,r){var t,n,i,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,t=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Hr(e,t,e.position,!0),e.position++,!0;if(a===92){if(Hr(e,t,e.position,!0),a=e.input.charCodeAt(++e.position),yr(a))ye(e,!1,r);else if(a<256&&Gd[a])e.result+=Jd[a],e.position++;else if((o=D$(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=M$(a))>=0?s=(s<<4)+o:D(e,"expected hexadecimal character");e.result+=U$(s),e.position++}else D(e,"unknown escape sequence");t=n=e.position}else yr(a)?(Hr(e,t,n,!0),Gs(e,ye(e,!1,r)),t=n=e.position):e.position===e.lineStart&&Li(e)?D(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}D(e,"unexpected end of the stream within a double quoted scalar")}function H$(e,r){var t=!0,n,i,s,o=e.tag,a,l=e.anchor,f,g,y,b,_,w=Object.create(null),P,O,I,R;if(R=e.input.charCodeAt(e.position),R===91)g=93,_=!1,a=[];else if(R===123)g=125,_=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),R=e.input.charCodeAt(++e.position);R!==0;){if(ye(e,!0,r),R=e.input.charCodeAt(e.position),R===g)return e.position++,e.tag=o,e.anchor=l,e.kind=_?"mapping":"sequence",e.result=a,!0;t?R===44&&D(e,"expected the node content, but found ','"):D(e,"missed comma between flow collection entries"),O=P=I=null,y=b=!1,R===63&&(f=e.input.charCodeAt(e.position+1),Ne(f)&&(y=b=!0,e.position++,ye(e,!0,r))),n=e.line,i=e.lineStart,s=e.position,Ft(e,r,Di,!1,!0),O=e.tag,P=e.result,ye(e,!0,r),R=e.input.charCodeAt(e.position),(b||e.line===n)&&R===58&&(y=!0,R=e.input.charCodeAt(++e.position),ye(e,!0,r),Ft(e,r,Di,!1,!0),I=e.result),_?Lt(e,a,w,O,P,I,n,i,s):y?a.push(Lt(e,null,w,O,P,I,n,i,s)):a.push(P),ye(e,!0,r),R=e.input.charCodeAt(e.position),R===44?(t=!0,R=e.input.charCodeAt(++e.position)):t=!1}D(e,"unexpected end of the stream within a flow collection")}function K$(e,r){var t,n,i=Hs,s=!1,o=!1,a=r,l=0,f=!1,g,y;if(y=e.input.charCodeAt(e.position),y===124)n=!1;else if(y===62)n=!0;else return!1;for(e.kind="scalar",e.result="";y!==0;)if(y=e.input.charCodeAt(++e.position),y===43||y===45)Hs===i?i=y===43?Nd:T$:D(e,"repeat of a chomping mode identifier");else if((g=B$(y))>=0)g===0?D(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?D(e,"repeat of an indentation width identifier"):(a=r+g-1,o=!0);else break;if(pt(y)){do y=e.input.charCodeAt(++e.position);while(pt(y));if(y===35)do y=e.input.charCodeAt(++e.position);while(!yr(y)&&y!==0)}for(;y!==0;){for(Ks(e),e.lineIndent=0,y=e.input.charCodeAt(e.position);(!o||e.lineIndenta&&(a=e.lineIndent),yr(y)){l++;continue}if(e.lineIndent{"use strict";p();m();h();var dd=Bt(),Iv=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],kv=["scalar","sequence","mapping"];function Tv(e){var r={};return e!==null&&Object.keys(e).forEach(function(t){e[t].forEach(function(n){r[String(n)]=t})}),r}function Rv(e,r){if(r=r||{},Object.keys(r).forEach(function(t){if(Iv.indexOf(t)===-1)throw new dd('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(t){return t},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=Tv(r.styleAliases||null),kv.indexOf(this.kind)===-1)throw new dd('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}pd.exports=Rv});var js=j((WI,md)=>{"use strict";p();m();h();var On=Bt(),Es=Ee();function hd(e,r){var t=[];return e[r].forEach(function(n){var i=t.length;t.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),t[i]=n}),t}function Cv(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,t;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(r=0,t=arguments.length;r{"use strict";p();m();h();var Nv=Ee();yd.exports=new Nv("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var As=j((nk,gd)=>{"use strict";p();m();h();var Mv=Ee();gd.exports=new Mv("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var qs=j((ak,vd)=>{"use strict";p();m();h();var Dv=Ee();vd.exports=new Dv("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Is=j((fk,$d)=>{"use strict";p();m();h();var Bv=js();$d.exports=new Bv({explicit:[Os(),As(),qs()]})});var ks=j((mk,_d)=>{"use strict";p();m();h();var Uv=Ee();function Lv(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function Fv(){return null}function Vv(e){return e===null}_d.exports=new Uv("tag:yaml.org,2002:null",{kind:"scalar",resolve:Lv,construct:Fv,predicate:Vv,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var Ts=j(($k,bd)=>{"use strict";p();m();h();var zv=Ee();function Hv(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function Kv(e){return e==="true"||e==="True"||e==="TRUE"}function Gv(e){return Object.prototype.toString.call(e)==="[object Boolean]"}bd.exports=new zv("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Hv,construct:Kv,predicate:Gv,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var Rs=j((Pk,wd)=>{"use strict";p();m();h();var Jv=Dt(),Wv=Ee();function Yv(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Xv(e){return 48<=e&&e<=55}function Qv(e){return 48<=e&&e<=57}function Zv(e){if(e===null)return!1;var r=e.length,t=0,n=!1,i;if(!r)return!1;if(i=e[t],(i==="-"||i==="+")&&(i=e[++t]),i==="0"){if(t+1===r)return!0;if(i=e[++t],i==="b"){for(t++;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var Cs=j((jk,xd)=>{"use strict";p();m();h();var Pd=Dt(),t$=Ee(),n$=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function i$(e){return!(e===null||!n$.test(e)||e[e.length-1]==="_")}function o$(e){var r,t;return r=e.replace(/_/g,"").toLowerCase(),t=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:t*parseFloat(r,10)}var s$=/^[-+]?[0-9]+e/;function a$(e,r){var t;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Pd.isNegativeZero(e))return"-0.0";return t=e.toString(10),s$.test(t)?t.replace("e",".e"):t}function u$(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Pd.isNegativeZero(e))}xd.exports=new t$("tag:yaml.org,2002:float",{kind:"scalar",resolve:i$,construct:o$,predicate:u$,represent:a$,defaultStyle:"lowercase"})});var Ns=j((Ik,Ed)=>{"use strict";p();m();h();Ed.exports=Is().extend({implicit:[ks(),Ts(),Rs(),Cs()]})});var Ms=j((Ck,Sd)=>{"use strict";p();m();h();Sd.exports=Ns()});var Ds=j((Bk,Ad)=>{"use strict";p();m();h();var c$=Ee(),jd=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Od=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 l$(e){return e===null?!1:jd.exec(e)!==null||Od.exec(e)!==null}function f$(e){var r,t,n,i,s,o,a,l=0,f=null,g,y,b;if(r=jd.exec(e),r===null&&(r=Od.exec(e)),r===null)throw new Error("Date resolve error");if(t=+r[1],n=+r[2]-1,i=+r[3],!r[4])return new Date(Date.UTC(t,n,i));if(s=+r[4],o=+r[5],a=+r[6],r[7]){for(l=r[7].slice(0,3);l.length<3;)l+="0";l=+l}return r[9]&&(g=+r[10],y=+(r[11]||0),f=(g*60+y)*6e4,r[9]==="-"&&(f=-f)),b=new Date(Date.UTC(t,n,i,s,o,a,l)),f&&b.setTime(b.getTime()-f),b}function d$(e){return e.toISOString()}Ad.exports=new c$("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:l$,construct:f$,instanceOf:Date,represent:d$})});var Bs=j((Vk,qd)=>{"use strict";p();m();h();var p$=Ee();function h$(e){return e==="<<"||e===null}qd.exports=new p$("tag:yaml.org,2002:merge",{kind:"scalar",resolve:h$})});var Ls=j((Gk,Id)=>{"use strict";p();m();h();var m$=Ee(),Us=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function y$(e){if(e===null)return!1;var r,t,n=0,i=e.length,s=Us;for(t=0;t64)){if(r<0)return!1;n+=6}return n%8===0}function g$(e){var r,t,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Us,o=0,a=[];for(r=0;r>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(r));return t=i%4*6,t===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):t===18?(a.push(o>>10&255),a.push(o>>2&255)):t===12&&a.push(o>>4&255),new Uint8Array(a)}function v$(e){var r="",t=0,n,i,s=e.length,o=Us;for(n=0;n>18&63],r+=o[t>>12&63],r+=o[t>>6&63],r+=o[t&63]),t=(t<<8)+e[n];return i=s%3,i===0?(r+=o[t>>18&63],r+=o[t>>12&63],r+=o[t>>6&63],r+=o[t&63]):i===2?(r+=o[t>>10&63],r+=o[t>>4&63],r+=o[t<<2&63],r+=o[64]):i===1&&(r+=o[t>>2&63],r+=o[t<<4&63],r+=o[64],r+=o[64]),r}function $$(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}Id.exports=new m$("tag:yaml.org,2002:binary",{kind:"scalar",resolve:y$,construct:g$,predicate:$$,represent:v$})});var Fs=j((Xk,kd)=>{"use strict";p();m();h();var _$=Ee(),b$=Object.prototype.hasOwnProperty,w$=Object.prototype.toString;function P$(e){if(e===null)return!0;var r=[],t,n,i,s,o,a=e;for(t=0,n=a.length;t{"use strict";p();m();h();var E$=Ee(),S$=Object.prototype.toString;function j$(e){if(e===null)return!0;var r,t,n,i,s,o=e;for(s=new Array(o.length),r=0,t=o.length;r{"use strict";p();m();h();var A$=Ee(),q$=Object.prototype.hasOwnProperty;function I$(e){if(e===null)return!0;var r,t=e;for(r in t)if(q$.call(t,r)&&t[r]!==null)return!1;return!0}function k$(e){return e!==null?e:{}}Rd.exports=new A$("tag:yaml.org,2002:set",{kind:"mapping",resolve:I$,construct:k$})});var Mi=j((cT,Cd)=>{"use strict";p();m();h();Cd.exports=Ms().extend({implicit:[Ds(),Bs()],explicit:[Ls(),Fs(),Vs(),zs()]})});var Xd=j((pT,Js)=>{"use strict";p();m();h();var dt=Dt(),Fd=Bt(),T$=fd(),R$=Mi(),Kr=Object.prototype.hasOwnProperty,Di=1,Vd=2,zd=3,Bi=4,Hs=1,C$=2,Nd=3,N$=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,M$=/[\x85\u2028\u2029]/,D$=/[,\[\]\{\}]/,Hd=/^(?:!|!!|![a-z\-]+!)$/i,Kd=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Md(e){return Object.prototype.toString.call(e)}function yr(e){return e===10||e===13}function pt(e){return e===9||e===32}function Ne(e){return e===9||e===32||e===10||e===13}function Ut(e){return e===44||e===91||e===93||e===123||e===125}function B$(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function U$(e){return e===120?2:e===117?4:e===85?8:0}function L$(e){return 48<=e&&e<=57?e-48:-1}function Dd(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?` +`: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":""}function F$(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Gd=new Array(256),Jd=new Array(256);for(ft=0;ft<256;ft++)Gd[ft]=Dd(ft)?1:0,Jd[ft]=Dd(ft);var ft;function V$(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||R$,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.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.firstTabInLine=-1,this.documents=[]}function Wd(e,r){var t={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return t.snippet=T$(t),new Fd(r,t)}function D(e,r){throw Wd(e,r)}function Ui(e,r){e.onWarning&&e.onWarning.call(null,Wd(e,r))}var Bd={YAML:function(r,t,n){var i,s,o;r.version!==null&&D(r,"duplication of %YAML directive"),n.length!==1&&D(r,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&D(r,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&D(r,"unacceptable YAML version of the document"),r.version=n[0],r.checkLineBreaks=o<2,o!==1&&o!==2&&Ui(r,"unsupported YAML version of the document")},TAG:function(r,t,n){var i,s;n.length!==2&&D(r,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],Hd.test(i)||D(r,"ill-formed tag handle (first argument) of the TAG directive"),Kr.call(r.tagMap,i)&&D(r,'there is a previously declared suffix for "'+i+'" tag handle'),Kd.test(s)||D(r,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch(o){D(r,"tag prefix is malformed: "+s)}r.tagMap[i]=s}};function Hr(e,r,t,n){var i,s,o,a;if(r1&&(e.result+=dt.repeat(` +`,r-1))}function z$(e,r,t){var n,i,s,o,a,l,f,g,y=e.kind,b=e.result,_;if(_=e.input.charCodeAt(e.position),Ne(_)||Ut(_)||_===35||_===38||_===42||_===33||_===124||_===62||_===39||_===34||_===37||_===64||_===96||(_===63||_===45)&&(i=e.input.charCodeAt(e.position+1),Ne(i)||t&&Ut(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;_!==0;){if(_===58){if(i=e.input.charCodeAt(e.position+1),Ne(i)||t&&Ut(i))break}else if(_===35){if(n=e.input.charCodeAt(e.position-1),Ne(n))break}else{if(e.position===e.lineStart&&Li(e)||t&&Ut(_))break;if(yr(_))if(l=e.line,f=e.lineStart,g=e.lineIndent,ye(e,!1,-1),e.lineIndent>=r){a=!0,_=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=l,e.lineStart=f,e.lineIndent=g;break}}a&&(Hr(e,s,o,!1),Gs(e,e.line-l),s=o=e.position,a=!1),pt(_)||(o=e.position+1),_=e.input.charCodeAt(++e.position)}return Hr(e,s,o,!1),e.result?!0:(e.kind=y,e.result=b,!1)}function H$(e,r){var t,n,i;if(t=e.input.charCodeAt(e.position),t!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(Hr(e,n,e.position,!0),t=e.input.charCodeAt(++e.position),t===39)n=e.position,e.position++,i=e.position;else return!0;else yr(t)?(Hr(e,n,i,!0),Gs(e,ye(e,!1,r)),n=i=e.position):e.position===e.lineStart&&Li(e)?D(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);D(e,"unexpected end of the stream within a single quoted scalar")}function K$(e,r){var t,n,i,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,t=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Hr(e,t,e.position,!0),e.position++,!0;if(a===92){if(Hr(e,t,e.position,!0),a=e.input.charCodeAt(++e.position),yr(a))ye(e,!1,r);else if(a<256&&Gd[a])e.result+=Jd[a],e.position++;else if((o=U$(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=B$(a))>=0?s=(s<<4)+o:D(e,"expected hexadecimal character");e.result+=F$(s),e.position++}else D(e,"unknown escape sequence");t=n=e.position}else yr(a)?(Hr(e,t,n,!0),Gs(e,ye(e,!1,r)),t=n=e.position):e.position===e.lineStart&&Li(e)?D(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}D(e,"unexpected end of the stream within a double quoted scalar")}function G$(e,r){var t=!0,n,i,s,o=e.tag,a,l=e.anchor,f,g,y,b,_,w=Object.create(null),P,O,I,R;if(R=e.input.charCodeAt(e.position),R===91)g=93,_=!1,a=[];else if(R===123)g=125,_=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),R=e.input.charCodeAt(++e.position);R!==0;){if(ye(e,!0,r),R=e.input.charCodeAt(e.position),R===g)return e.position++,e.tag=o,e.anchor=l,e.kind=_?"mapping":"sequence",e.result=a,!0;t?R===44&&D(e,"expected the node content, but found ','"):D(e,"missed comma between flow collection entries"),O=P=I=null,y=b=!1,R===63&&(f=e.input.charCodeAt(e.position+1),Ne(f)&&(y=b=!0,e.position++,ye(e,!0,r))),n=e.line,i=e.lineStart,s=e.position,Ft(e,r,Di,!1,!0),O=e.tag,P=e.result,ye(e,!0,r),R=e.input.charCodeAt(e.position),(b||e.line===n)&&R===58&&(y=!0,R=e.input.charCodeAt(++e.position),ye(e,!0,r),Ft(e,r,Di,!1,!0),I=e.result),_?Lt(e,a,w,O,P,I,n,i,s):y?a.push(Lt(e,null,w,O,P,I,n,i,s)):a.push(P),ye(e,!0,r),R=e.input.charCodeAt(e.position),R===44?(t=!0,R=e.input.charCodeAt(++e.position)):t=!1}D(e,"unexpected end of the stream within a flow collection")}function J$(e,r){var t,n,i=Hs,s=!1,o=!1,a=r,l=0,f=!1,g,y;if(y=e.input.charCodeAt(e.position),y===124)n=!1;else if(y===62)n=!0;else return!1;for(e.kind="scalar",e.result="";y!==0;)if(y=e.input.charCodeAt(++e.position),y===43||y===45)Hs===i?i=y===43?Nd:C$:D(e,"repeat of a chomping mode identifier");else if((g=L$(y))>=0)g===0?D(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?D(e,"repeat of an indentation width identifier"):(a=r+g-1,o=!0);else break;if(pt(y)){do y=e.input.charCodeAt(++e.position);while(pt(y));if(y===35)do y=e.input.charCodeAt(++e.position);while(!yr(y)&&y!==0)}for(;y!==0;){for(Ks(e),e.lineIndent=0,y=e.input.charCodeAt(e.position);(!o||e.lineIndenta&&(a=e.lineIndent),yr(y)){l++;continue}if(e.lineIndentr)&&l!==0)D(e,"bad indentation of a sequence entry");else if(e.lineIndentr)&&(O&&(o=e.line,a=e.lineStart,l=e.position),Ft(e,r,Bi,!0,i)&&(O?w=e.result:P=e.result),O||(Lt(e,y,b,_,w,P,o,a,l),_=w=P=null),ye(e,!0,-1),R=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>r)&&R!==0)D(e,"bad indentation of a mapping entry");else if(e.lineIndentr?l=1:e.lineIndent===r?l=0:e.lineIndentr?l=1:e.lineIndent===r?l=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),y=0,b=e.implicitTypes.length;y"),e.result!==null&&w.kind!==e.kind&&D(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+w.kind+'", not "'+e.kind+'"'),w.resolve(e.result,e.tag)?(e.result=w.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):D(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||g}function X$(e){var r=e.position,t,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(ye(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),t=e.position;o!==0&&!Ne(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),i=[],n.length<1&&D(e,"directive name must not be less than one character in length");o!==0;){for(;pt(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!yr(o));break}if(yr(o))break;for(t=e.position;o!==0&&!Ne(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}o!==0&&Ks(e),Kr.call(Bd,n)?Bd[n](e,n,i):Ui(e,'unknown document directive "'+n+'"')}if(ye(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,ye(e,!0,-1)):s&&D(e,"directives end mark is expected"),Ft(e,e.lineIndent-1,Bi,!1,!0),ye(e,!0,-1),e.checkLineBreaks&&C$.test(e.input.slice(r,e.position))&&Ui(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Li(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ye(e,!0,-1));return}if(e.position"u"&&(t=r,r=null);var n=Yd(e,t);if(typeof r!="function")return n;for(var i=0,s=n.length;i{"use strict";p();m();h();var zi=Dt(),Tn=Bt(),e_=Mi(),sp=Object.prototype.toString,ap=Object.prototype.hasOwnProperty,Zs=65279,r_=9,qn=10,t_=13,n_=32,i_=33,o_=34,Ws=35,s_=37,a_=38,u_=39,c_=42,up=44,l_=45,Fi=58,f_=61,d_=62,p_=63,h_=64,cp=91,lp=93,m_=96,fp=123,y_=124,dp=125,Se={};Se[0]="\\0";Se[7]="\\a";Se[8]="\\b";Se[9]="\\t";Se[10]="\\n";Se[11]="\\v";Se[12]="\\f";Se[13]="\\r";Se[27]="\\e";Se[34]='\\"';Se[92]="\\\\";Se[133]="\\N";Se[160]="\\_";Se[8232]="\\L";Se[8233]="\\P";var g_=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],v_=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function $_(e,r){var t,n,i,s,o,a,l;if(r===null)return{};for(t={},n=Object.keys(r),i=0,s=n.length;ir)&&l!==0)D(e,"bad indentation of a sequence entry");else if(e.lineIndentr)&&(O&&(o=e.line,a=e.lineStart,l=e.position),Ft(e,r,Bi,!0,i)&&(O?w=e.result:P=e.result),O||(Lt(e,y,b,_,w,P,o,a,l),_=w=P=null),ye(e,!0,-1),R=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>r)&&R!==0)D(e,"bad indentation of a mapping entry");else if(e.lineIndentr?l=1:e.lineIndent===r?l=0:e.lineIndentr?l=1:e.lineIndent===r?l=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),y=0,b=e.implicitTypes.length;y"),e.result!==null&&w.kind!==e.kind&&D(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+w.kind+'", not "'+e.kind+'"'),w.resolve(e.result,e.tag)?(e.result=w.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):D(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||g}function Z$(e){var r=e.position,t,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(ye(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),t=e.position;o!==0&&!Ne(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),i=[],n.length<1&&D(e,"directive name must not be less than one character in length");o!==0;){for(;pt(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!yr(o));break}if(yr(o))break;for(t=e.position;o!==0&&!Ne(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}o!==0&&Ks(e),Kr.call(Bd,n)?Bd[n](e,n,i):Ui(e,'unknown document directive "'+n+'"')}if(ye(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,ye(e,!0,-1)):s&&D(e,"directives end mark is expected"),Ft(e,e.lineIndent-1,Bi,!1,!0),ye(e,!0,-1),e.checkLineBreaks&&M$.test(e.input.slice(r,e.position))&&Ui(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Li(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ye(e,!0,-1));return}if(e.position"u"&&(t=r,r=null);var n=Yd(e,t);if(typeof r!="function")return n;for(var i=0,s=n.length;i{"use strict";p();m();h();var zi=Dt(),Tn=Bt(),t_=Mi(),sp=Object.prototype.toString,ap=Object.prototype.hasOwnProperty,Zs=65279,n_=9,qn=10,i_=13,o_=32,s_=33,a_=34,Ws=35,u_=37,c_=38,l_=39,f_=42,up=44,d_=45,Fi=58,p_=61,h_=62,m_=63,y_=64,cp=91,lp=93,g_=96,fp=123,v_=124,dp=125,Se={};Se[0]="\\0";Se[7]="\\a";Se[8]="\\b";Se[9]="\\t";Se[10]="\\n";Se[11]="\\v";Se[12]="\\f";Se[13]="\\r";Se[27]="\\e";Se[34]='\\"';Se[92]="\\\\";Se[133]="\\N";Se[160]="\\_";Se[8232]="\\L";Se[8233]="\\P";var $_=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],__=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function b_(e,r){var t,n,i,s,o,a,l;if(r===null)return{};for(t={},n=Object.keys(r),i=0,s=n.length;i=55296&&t<=56319&&r+1=56320&&n<=57343)?(t-55296)*1024+n-56320+65536:t}function pp(e){var r=/^\n* /;return r.test(e)}var hp=1,Xs=2,mp=3,yp=4,Vt=5;function S_(e,r,t,n,i,s,o,a){var l,f=0,g=null,y=!1,b=!1,_=n!==-1,w=-1,P=x_(An(e,0))&&E_(An(e,e.length-1));if(r||o)for(l=0;l=65536?l+=2:l++){if(f=An(e,l),!kn(f))return Vt;P=P&&ep(f,g,a),g=f}else{for(l=0;l=65536?l+=2:l++){if(f=An(e,l),f===qn)y=!0,_&&(b=b||l-w-1>n&&e[w+1]!==" ",w=l);else if(!kn(f))return Vt;P=P&&ep(f,g,a),g=f}b=b||_&&l-w-1>n&&e[w+1]!==" "}return!y&&!b?P&&!o&&!i(e)?hp:s===In?Vt:Xs:t>9&&pp(e)?Vt:o?s===In?Vt:Xs:b?yp:mp}function j_(e,r,t,n,i){e.dump=function(){if(r.length===0)return e.quotingType===In?'""':"''";if(!e.noCompatMode&&(g_.indexOf(r)!==-1||v_.test(r)))return e.quotingType===In?'"'+r+'"':"'"+r+"'";var s=e.indent*Math.max(1,t),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),a=n||e.flowLevel>-1&&t>=e.flowLevel;function l(f){return P_(e,f)}switch(S_(r,a,e.indent,o,l,e.quotingType,e.forceQuotes&&!n,i)){case hp:return r;case Xs:return"'"+r.replace(/'/g,"''")+"'";case mp:return"|"+rp(r,e.indent)+tp(Qd(r,s));case yp:return">"+rp(r,e.indent)+tp(Qd(O_(r,o),s));case Vt:return'"'+A_(r,o)+'"';default:throw new Tn("impossible error: invalid scalar style")}}()}function rp(e,r){var t=pp(e)?String(r):"",n=e[e.length-1]===` +`+zi.repeat(" ",e.indent*r)}function E_(e,r){var t,n,i;for(t=0,n=e.implicitTypes.length;t=55296&&t<=56319&&r+1=56320&&n<=57343)?(t-55296)*1024+n-56320+65536:t}function pp(e){var r=/^\n* /;return r.test(e)}var hp=1,Xs=2,mp=3,yp=4,Vt=5;function O_(e,r,t,n,i,s,o,a){var l,f=0,g=null,y=!1,b=!1,_=n!==-1,w=-1,P=S_(An(e,0))&&j_(An(e,e.length-1));if(r||o)for(l=0;l=65536?l+=2:l++){if(f=An(e,l),!kn(f))return Vt;P=P&&ep(f,g,a),g=f}else{for(l=0;l=65536?l+=2:l++){if(f=An(e,l),f===qn)y=!0,_&&(b=b||l-w-1>n&&e[w+1]!==" ",w=l);else if(!kn(f))return Vt;P=P&&ep(f,g,a),g=f}b=b||_&&l-w-1>n&&e[w+1]!==" "}return!y&&!b?P&&!o&&!i(e)?hp:s===In?Vt:Xs:t>9&&pp(e)?Vt:o?s===In?Vt:Xs:b?yp:mp}function A_(e,r,t,n,i){e.dump=function(){if(r.length===0)return e.quotingType===In?'""':"''";if(!e.noCompatMode&&($_.indexOf(r)!==-1||__.test(r)))return e.quotingType===In?'"'+r+'"':"'"+r+"'";var s=e.indent*Math.max(1,t),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),a=n||e.flowLevel>-1&&t>=e.flowLevel;function l(f){return E_(e,f)}switch(O_(r,a,e.indent,o,l,e.quotingType,e.forceQuotes&&!n,i)){case hp:return r;case Xs:return"'"+r.replace(/'/g,"''")+"'";case mp:return"|"+rp(r,e.indent)+tp(Qd(r,s));case yp:return">"+rp(r,e.indent)+tp(Qd(q_(r,o),s));case Vt:return'"'+I_(r,o)+'"';default:throw new Tn("impossible error: invalid scalar style")}}()}function rp(e,r){var t=pp(e)?String(r):"",n=e[e.length-1]===` `,i=n&&(e[e.length-2]===` `||e===` `),s=i?"+":n?"":"-";return t+s+` `}function tp(e){return e[e.length-1]===` -`?e.slice(0,-1):e}function O_(e,r){for(var t=/(\n+)([^\n]*)/g,n=function(){var f=e.indexOf(` +`?e.slice(0,-1):e}function q_(e,r){for(var t=/(\n+)([^\n]*)/g,n=function(){var f=e.indexOf(` `);return f=f!==-1?f:e.length,t.lastIndex=f,np(e.slice(0,f),r)}(),i=e[0]===` `||e[0]===" ",s,o;o=t.exec(e);){var a=o[1],l=o[2];s=l[0]===" ",n+=a+(!i&&!s&&l!==""?` `:"")+np(l,r),i=s}return n}function np(e,r){if(e===""||e[0]===" ")return e;for(var t=/ [^ ]/g,n,i=0,s,o=0,a=0,l="";n=t.exec(e);)a=n.index,a-i>r&&(s=o>i?o:a,l+=` `+e.slice(i,s),i=s+1),o=a;return l+=` `,e.length-i>r&&o>i?l+=e.slice(i,o)+` -`+e.slice(o+1):l+=e.slice(i),l.slice(1)}function A_(e){for(var r="",t=0,n,i=0;i=65536?i+=2:i++)t=An(e,i),n=Se[t],!n&&kn(t)?(r+=e[i],t>=65536&&(r+=e[i+1])):r+=n||__(t);return r}function q_(e,r,t){var n="",i=e.tag,s,o,a;for(s=0,o=t.length;s"u"&&Or(e,r,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function ip(e,r,t,n){var i="",s=e.tag,o,a,l;for(o=0,a=t.length;o"u"&&Or(e,r+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Ys(e,r)),e.dump&&qn===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function I_(e,r,t){var n="",i=e.tag,s=Object.keys(t),o,a,l,f,g;for(o=0,a=s.length;o1024&&(g+="? "),g+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Or(e,r,f,!1,!1)&&(g+=e.dump,n+=g));e.tag=i,e.dump="{"+n+"}"}function k_(e,r,t,n){var i="",s=e.tag,o=Object.keys(t),a,l,f,g,y,b;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Tn("sortKeys must be a boolean or a function");for(a=0,l=o.length;a1024,y&&(e.dump&&qn===e.dump.charCodeAt(0)?b+="?":b+="? "),b+=e.dump,y&&(b+=Ys(e,r)),Or(e,r+1,g,!0,y)&&(e.dump&&qn===e.dump.charCodeAt(0)?b+=":":b+=": ",b+=e.dump,i+=b));e.tag=s,e.dump=i||"{}"}function op(e,r,t){var n,i,s,o,a,l;for(i=t?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s tag resolver accepts not "'+l+'" style');e.dump=n}return!0}return!1}function Or(e,r,t,n,i,s,o){e.tag=null,e.dump=t,op(e,t,!1)||op(e,t,!0);var a=sp.call(e.dump),l=n,f;n&&(n=e.flowLevel<0||e.flowLevel>r);var g=a==="[object Object]"||a==="[object Array]",y,b;if(g&&(y=e.duplicates.indexOf(t),b=y!==-1),(e.tag!==null&&e.tag!=="?"||b||e.indent!==2&&r>0)&&(i=!1),b&&e.usedDuplicates[y])e.dump="*ref_"+y;else{if(g&&b&&!e.usedDuplicates[y]&&(e.usedDuplicates[y]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(k_(e,r,e.dump,i),b&&(e.dump="&ref_"+y+e.dump)):(I_(e,r,e.dump),b&&(e.dump="&ref_"+y+" "+e.dump));else if(a==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&r>0?ip(e,r-1,e.dump,i):ip(e,r,e.dump,i),b&&(e.dump="&ref_"+y+e.dump)):(q_(e,r,e.dump),b&&(e.dump="&ref_"+y+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&j_(e,e.dump,r,s,l);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Tn("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump)}return!0}function T_(e,r){var t=[],n=[],i,s;for(Qs(e,t,n),i=0,s=n.length;i{"use strict";p();m();h();var $p=Xd(),C_=vp();function ea(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}ke.exports.Type=Ee();ke.exports.Schema=js();ke.exports.FAILSAFE_SCHEMA=Is();ke.exports.JSON_SCHEMA=Ns();ke.exports.CORE_SCHEMA=Ms();ke.exports.DEFAULT_SCHEMA=Mi();ke.exports.load=$p.load;ke.exports.loadAll=$p.loadAll;ke.exports.dump=C_.dump;ke.exports.YAMLException=Bt();ke.exports.types={binary:Ls(),float:Cs(),map:qs(),null:ks(),pairs:Vs(),set:zs(),timestamp:Ds(),bool:Ts(),int:Rs(),merge:Bs(),omap:Fs(),seq:As(),str:Os()};ke.exports.safeLoad=ea("safeLoad","load");ke.exports.safeLoadAll=ea("safeLoadAll","loadAll");ke.exports.safeDump=ea("safeDump","dump")});var ht=j((wT,_p)=>{"use strict";p();m();h();var N_=Hi();_p.exports=B;function B(){B.form=$("#swagger-parser-form"),B.allow={label:B.form.find("#allow-label"),menu:B.form.find("#allow-menu"),json:B.form.find("input[name=allow-json]"),yaml:B.form.find("input[name=allow-yaml]"),text:B.form.find("input[name=allow-text]"),empty:B.form.find("input[name=allow-empty]"),unknown:B.form.find("input[name=allow-unknown]")},B.refs={label:B.form.find("#refs-label"),menu:B.form.find("#refs-menu"),external:B.form.find("input[name=refs-external]"),circular:B.form.find("input[name=refs-circular]")},B.validate={label:B.form.find("#validate-label"),menu:B.form.find("#validate-menu"),schema:B.form.find("input[name=validate-schema]"),spec:B.form.find("input[name=validate-spec]")},B.tabs={url:B.form.find("#url-tab"),text:B.form.find("#text-tab")},B.method={button:B.form.find("button[name=method]"),menu:B.form.find("#method-menu")},B.samples={url:{container:B.form.find("#url-sample"),link:B.form.find("#url-sample-link")},text:{container:B.form.find("#text-sample"),link:B.form.find("#text-sample-link")}},B.url=B.form.find("input[name=url]"),B.textBox=null,B.bookmark=B.form.find("#bookmark")}B.getOptions=function(){return{parse:{json:B.allow.json.is(":checked")?{allowEmpty:B.allow.empty.is(":checked")}:!1,yaml:B.allow.yaml.is(":checked")?{allowEmpty:B.allow.empty.is(":checked")}:!1,text:B.allow.text.is(":checked")?{allowEmpty:B.allow.empty.is(":checked")}:!1,binary:B.allow.unknown.is(":checked")?{allowEmpty:B.allow.empty.is(":checked")}:!1},resolve:{external:B.refs.external.is(":checked")},dereference:{circular:B.refs.circular.is(":checked")},validate:{schema:B.validate.schema.is(":checked"),spec:B.validate.spec.is(":checked")}}};B.getAPI=function(){if(B.tabs.url.parent().attr("class").indexOf("active")>=0){let e=B.url.val();if(e)return e;throw new URIError("Please specify the URL of your Swagger/OpenAPI definition")}else{let e=B.textBox.getValue();if(B.allow.yaml.is(":checked"))return N_.safeLoad(e);if(B.allow.json.is(":checked"))return JSON.parse(e);throw new SyntaxError("Unable to parse the API. Neither YAML nor JSON are allowed.")}}});var Pp=j((ST,wp)=>{"use strict";p();m();h();var je=ht();wp.exports=M_;function M_(){D_(),bp(),je.bookmark.on("click focus mouseenter",bp)}function D_(){let e=new URLSearchParams(window.location.search),r=Object.fromEntries(e.entries());Ar(je.allow.json,r["allow-json"]),Ar(je.allow.yaml,r["allow-yaml"]),Ar(je.allow.text,r["allow-text"]),Ar(je.allow.empty,r["allow-empty"]),Ar(je.allow.unknown,r["allow-unknown"]),Ar(je.refs.external,r["refs-external"]),Ar(je.refs.circular,r["refs-circular"]),Ar(je.validate.schema,r["validate-schema"]),Ar(je.validate.spec,r["validate-spec"]),r.url&&je.url.val(r.url),r.method&&(r.method=r.method.toLowerCase(),["parse","resolve","bundle","dereference","validate"].indexOf(r.method)!==-1&&je.method.button.val(r.method))}function Ar(e,r){(!r||r==="true"||r==="on")&&(r="yes"),e.val([r])}function bp(){let e={},r=je.getOptions();r.parse.json||(e["allow-json"]="no"),r.parse.yaml||(e["allow-yaml"]="no"),r.parse.text||(e["allow-text"]="no"),r.parse.json.allowEmpty||(e["allow-empty"]="no"),r.parse.binary||(e["allow-unknown"]="no"),r.resolve.external||(e["refs-external"]="no"),r.dereference.circular||(e["refs-circular"]="no"),r.validate.schema||(e["validate-schema"]="no"),r.validate.spec||(e["validate-spec"]="no");let t=je.method.button.val();t==="validate"||(e.method=t);let n=je.url.val();n===""||(e.url=n);let s="?"+new URLSearchParams(e).toString();je.bookmark.attr("href",s)}});var Gi=j((qT,xp)=>{"use strict";p();m();h();var ra=location.hostname==="localhost";xp.exports=Ki;function Ki(){ra||typeof gtag>"u"&&console.warn("Google Analytics is not enabled")}Ki.trackEvent=function(e,r,t,n){try{console.log("Analytics event: ",e,r,t,n),ra||gtag("event",r,{event_category:e,event_label:t,value:n})}catch(i){Ki.trackError(i)}};Ki.trackError=function(e){try{console.error("Analytics error: ",e),ra||gtag("event","exception",{name:e.name||"Error",description:e.message,stack:e.stack})}catch(r){console.error(e)}}});var jp=j((RT,Sp)=>{"use strict";p();m();h();var H=ht(),na=Gi();Sp.exports=B_;function B_(){Ep(H.method.button.val()),ta(H.allow.menu,U_),ta(H.refs.menu,L_),ta(H.validate.menu,F_),qr(H.allow.json),qr(H.allow.yaml),qr(H.allow.text),qr(H.allow.empty),qr(H.allow.unknown),qr(H.refs.external),qr(H.refs.circular),qr(H.validate.schema),qr(H.validate.spec),H.method.menu.find("a").on("click",function(e){H.method.menu.dropdown("toggle"),e.stopPropagation();let r=$(this).data("value");Ep(r),V_(r)})}function ta(e,r){let t=e.parent(".dropdown");e.find("a").on("click",n=>{n.stopPropagation()}),r(),t.on("hidden.bs.dropdown",r),t.on("shown.bs.dropdown",()=>{na.trackEvent("options","shown",e.attr("id"))})}function U_(){let e=ia(H.allow.json,H.allow.yaml,H.allow.text,H.allow.empty,H.allow.unknown);switch(e.checked.length){case 0:H.allow.label.text("No file types allowed");break;case 1:H.allow.label.text("Only allow "+e.checked[0]+" files");break;case 2:H.allow.label.text("Only allow "+e.checked[0]+" and "+e.checked[1]);break;case 3:H.allow.label.text("Don't allow "+e.unchecked[0]+" or "+e.unchecked[1]);break;case 4:H.allow.label.text("Don't allow "+e.unchecked[0]+" files");break;case 5:H.allow.label.text("Allow all file types")}}function L_(){let e=ia(H.refs.external,H.refs.circular);switch(e.checked.length){case 0:H.refs.label.text("Only follow internal $refs");break;case 1:H.refs.label.text("Don't follow "+e.unchecked[0]+" $refs");break;case 2:H.refs.label.text("Follow all $refs")}}function F_(){let e=ia(H.validate.schema,H.validate.spec);switch(e.checked.length){case 0:H.validate.label.text("Don't validate anything");break;case 1:H.validate.label.text("Don't validate Swagger "+e.unchecked[0]);break;case 2:H.validate.label.text("Validate everything")}}function Ep(e){H.method.button.val(e.toLowerCase()),e=e[0].toUpperCase()+e.substr(1),H.method.button.text(e+" it!"),H.tabs.url.text(e+" a URL"),H.tabs.text.text(e+" Text")}function qr(e){e.on("change",()=>{let r=e.is(":checked")?1:0;na.trackEvent("options","changed",e.attr("name"),r)})}function V_(e){let r=["","parse","resolve","bundle","dereference","validate"].indexOf(e);na.trackEvent("options","changed","method",r)}function ia(e){let r=[],t=[];for(let n=0;n{"use strict";p();m();h();var oa=ht(),Op="ace/theme/terminal";qp.exports=ae;function ae(){ae.textBox=oa.textBox=ace.edit("text-box"),oa.textBox.setTheme(Op);let e=oa.textBox.getSession();e.setMode("ace/mode/yaml"),e.setTabSize(2),ae.results=$("#results"),ae.tabs=ae.results.find(".nav-tabs"),ae.panes=ae.results.find(".tab-content")}ae.clearResults=function(){ae.results.removeClass("error animated").addClass("hidden"),ae.tabs.children().remove(),ae.panes.children().remove()};ae.showResult=function(e,r){ae.results.removeClass("hidden"),ae.addResult(e,r),Ap()};ae.showError=function(e){ae.results.removeClass("hidden").addClass("error"),ae.addResult("Error!",e),Ap()};ae.addResult=function(e,r){let t=ae.tabs.children().length,n="results-tab-"+t+"-title",i="results-"+t,s=t===0?"active":"";ae.tabs.append(''),ae.panes.append('
');let o=z_(e)||"Sample API";ae.tabs.find("#"+n).text(o).attr("title",e),r=H_(r),ae.panes.find("#"+i).text(r.text);let a=ace.edit(i);a.setTheme(Op),a.session.setOption("useWorker",!1),r.isJSON&&a.getSession().setMode("ace/mode/json"),a.setReadOnly(!0)};function z_(e){let r=e.lastIndexOf("/");return r!==-1&&(e=e.substr(r+1)),e.length>15&&(e=e.substr(0,10)+"..."),e}function Ap(){let e=ae.results;setTimeout(()=>{e[0].scrollIntoView(),e.addClass("animated").one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",()=>{e.removeClass("animated")})})}function H_(e){if(e instanceof Error)return{isJSON:!1,text:e.message+` +`+e.slice(o+1):l+=e.slice(i),l.slice(1)}function I_(e){for(var r="",t=0,n,i=0;i=65536?i+=2:i++)t=An(e,i),n=Se[t],!n&&kn(t)?(r+=e[i],t>=65536&&(r+=e[i+1])):r+=n||w_(t);return r}function k_(e,r,t){var n="",i=e.tag,s,o,a;for(s=0,o=t.length;s"u"&&Or(e,r,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function ip(e,r,t,n){var i="",s=e.tag,o,a,l;for(o=0,a=t.length;o"u"&&Or(e,r+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Ys(e,r)),e.dump&&qn===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function T_(e,r,t){var n="",i=e.tag,s=Object.keys(t),o,a,l,f,g;for(o=0,a=s.length;o1024&&(g+="? "),g+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Or(e,r,f,!1,!1)&&(g+=e.dump,n+=g));e.tag=i,e.dump="{"+n+"}"}function R_(e,r,t,n){var i="",s=e.tag,o=Object.keys(t),a,l,f,g,y,b;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Tn("sortKeys must be a boolean or a function");for(a=0,l=o.length;a1024,y&&(e.dump&&qn===e.dump.charCodeAt(0)?b+="?":b+="? "),b+=e.dump,y&&(b+=Ys(e,r)),Or(e,r+1,g,!0,y)&&(e.dump&&qn===e.dump.charCodeAt(0)?b+=":":b+=": ",b+=e.dump,i+=b));e.tag=s,e.dump=i||"{}"}function op(e,r,t){var n,i,s,o,a,l;for(i=t?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s tag resolver accepts not "'+l+'" style');e.dump=n}return!0}return!1}function Or(e,r,t,n,i,s,o){e.tag=null,e.dump=t,op(e,t,!1)||op(e,t,!0);var a=sp.call(e.dump),l=n,f;n&&(n=e.flowLevel<0||e.flowLevel>r);var g=a==="[object Object]"||a==="[object Array]",y,b;if(g&&(y=e.duplicates.indexOf(t),b=y!==-1),(e.tag!==null&&e.tag!=="?"||b||e.indent!==2&&r>0)&&(i=!1),b&&e.usedDuplicates[y])e.dump="*ref_"+y;else{if(g&&b&&!e.usedDuplicates[y]&&(e.usedDuplicates[y]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(R_(e,r,e.dump,i),b&&(e.dump="&ref_"+y+e.dump)):(T_(e,r,e.dump),b&&(e.dump="&ref_"+y+" "+e.dump));else if(a==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&r>0?ip(e,r-1,e.dump,i):ip(e,r,e.dump,i),b&&(e.dump="&ref_"+y+e.dump)):(k_(e,r,e.dump),b&&(e.dump="&ref_"+y+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&A_(e,e.dump,r,s,l);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Tn("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump)}return!0}function C_(e,r){var t=[],n=[],i,s;for(Qs(e,t,n),i=0,s=n.length;i{"use strict";p();m();h();var $p=Xd(),M_=vp();function ea(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}ke.exports.Type=Ee();ke.exports.Schema=js();ke.exports.FAILSAFE_SCHEMA=Is();ke.exports.JSON_SCHEMA=Ns();ke.exports.CORE_SCHEMA=Ms();ke.exports.DEFAULT_SCHEMA=Mi();ke.exports.load=$p.load;ke.exports.loadAll=$p.loadAll;ke.exports.dump=M_.dump;ke.exports.YAMLException=Bt();ke.exports.types={binary:Ls(),float:Cs(),map:qs(),null:ks(),pairs:Vs(),set:zs(),timestamp:Ds(),bool:Ts(),int:Rs(),merge:Bs(),omap:Fs(),seq:As(),str:Os()};ke.exports.safeLoad=ea("safeLoad","load");ke.exports.safeLoadAll=ea("safeLoadAll","loadAll");ke.exports.safeDump=ea("safeDump","dump")});var ht=j((ET,_p)=>{"use strict";p();m();h();var D_=Hi();_p.exports=B;function B(){B.form=$("#swagger-parser-form"),B.allow={label:B.form.find("#allow-label"),menu:B.form.find("#allow-menu"),json:B.form.find("input[name=allow-json]"),yaml:B.form.find("input[name=allow-yaml]"),text:B.form.find("input[name=allow-text]"),empty:B.form.find("input[name=allow-empty]"),unknown:B.form.find("input[name=allow-unknown]")},B.refs={label:B.form.find("#refs-label"),menu:B.form.find("#refs-menu"),external:B.form.find("input[name=refs-external]"),circular:B.form.find("input[name=refs-circular]")},B.validate={label:B.form.find("#validate-label"),menu:B.form.find("#validate-menu"),schema:B.form.find("input[name=validate-schema]"),spec:B.form.find("input[name=validate-spec]")},B.tabs={url:B.form.find("#url-tab"),text:B.form.find("#text-tab")},B.method={button:B.form.find("button[name=method]"),menu:B.form.find("#method-menu")},B.samples={url:{container:B.form.find("#url-sample"),link:B.form.find("#url-sample-link")},text:{container:B.form.find("#text-sample"),link:B.form.find("#text-sample-link")}},B.url=B.form.find("input[name=url]"),B.textBox=null,B.bookmark=B.form.find("#bookmark")}B.getOptions=function(){return{parse:{json:B.allow.json.is(":checked")?{allowEmpty:B.allow.empty.is(":checked")}:!1,yaml:B.allow.yaml.is(":checked")?{allowEmpty:B.allow.empty.is(":checked")}:!1,text:B.allow.text.is(":checked")?{allowEmpty:B.allow.empty.is(":checked")}:!1,binary:B.allow.unknown.is(":checked")?{allowEmpty:B.allow.empty.is(":checked")}:!1},resolve:{external:B.refs.external.is(":checked")},dereference:{circular:B.refs.circular.is(":checked")},validate:{schema:B.validate.schema.is(":checked"),spec:B.validate.spec.is(":checked")}}};B.getAPI=function(){if(B.tabs.url.parent().attr("class").indexOf("active")>=0){let e=B.url.val();if(e)return e;throw new URIError("Please specify the URL of your Swagger/OpenAPI definition")}else{let e=B.textBox.getValue();if(B.allow.yaml.is(":checked"))return D_.safeLoad(e);if(B.allow.json.is(":checked"))return JSON.parse(e);throw new SyntaxError("Unable to parse the API. Neither YAML nor JSON are allowed.")}}});var Pp=j((AT,wp)=>{"use strict";p();m();h();var je=ht();wp.exports=B_;function B_(){U_(),bp(),je.bookmark.on("click focus mouseenter",bp)}function U_(){let e=new URLSearchParams(window.location.search),r=Object.fromEntries(e.entries());Ar(je.allow.json,r["allow-json"]),Ar(je.allow.yaml,r["allow-yaml"]),Ar(je.allow.text,r["allow-text"]),Ar(je.allow.empty,r["allow-empty"]),Ar(je.allow.unknown,r["allow-unknown"]),Ar(je.refs.external,r["refs-external"]),Ar(je.refs.circular,r["refs-circular"]),Ar(je.validate.schema,r["validate-schema"]),Ar(je.validate.spec,r["validate-spec"]),r.url&&je.url.val(r.url),r.method&&(r.method=r.method.toLowerCase(),["parse","resolve","bundle","dereference","validate"].indexOf(r.method)!==-1&&je.method.button.val(r.method))}function Ar(e,r){(!r||r==="true"||r==="on")&&(r="yes"),e.val([r])}function bp(){let e={},r=je.getOptions();r.parse.json||(e["allow-json"]="no"),r.parse.yaml||(e["allow-yaml"]="no"),r.parse.text||(e["allow-text"]="no"),r.parse.json.allowEmpty||(e["allow-empty"]="no"),r.parse.binary||(e["allow-unknown"]="no"),r.resolve.external||(e["refs-external"]="no"),r.dereference.circular||(e["refs-circular"]="no"),r.validate.schema||(e["validate-schema"]="no"),r.validate.spec||(e["validate-spec"]="no");let t=je.method.button.val();t==="validate"||(e.method=t);let n=je.url.val();n===""||(e.url=n);let s="?"+new URLSearchParams(e).toString();je.bookmark.attr("href",s)}});var Gi=j((TT,xp)=>{"use strict";p();m();h();var ra=location.hostname==="localhost";xp.exports=Ki;function Ki(){ra||typeof gtag>"u"&&console.warn("Google Analytics is not enabled")}Ki.trackEvent=function(e,r,t,n){try{console.log("Analytics event: ",e,r,t,n),ra||gtag("event",r,{event_category:e,event_label:t,value:n})}catch(i){Ki.trackError(i)}};Ki.trackError=function(e){try{console.error("Analytics error: ",e),ra||gtag("event","exception",{name:e.name||"Error",description:e.message,stack:e.stack})}catch(r){console.error(e)}}});var jp=j((MT,Sp)=>{"use strict";p();m();h();var H=ht(),na=Gi();Sp.exports=L_;function L_(){Ep(H.method.button.val()),ta(H.allow.menu,F_),ta(H.refs.menu,V_),ta(H.validate.menu,z_),qr(H.allow.json),qr(H.allow.yaml),qr(H.allow.text),qr(H.allow.empty),qr(H.allow.unknown),qr(H.refs.external),qr(H.refs.circular),qr(H.validate.schema),qr(H.validate.spec),H.method.menu.find("a").on("click",function(e){H.method.menu.dropdown("toggle"),e.stopPropagation();let r=$(this).data("value");Ep(r),H_(r)})}function ta(e,r){let t=e.parent(".dropdown");e.find("a").on("click",n=>{n.stopPropagation()}),r(),t.on("hidden.bs.dropdown",r),t.on("shown.bs.dropdown",()=>{na.trackEvent("options","shown",e.attr("id"))})}function F_(){let e=ia(H.allow.json,H.allow.yaml,H.allow.text,H.allow.empty,H.allow.unknown);switch(e.checked.length){case 0:H.allow.label.text("No file types allowed");break;case 1:H.allow.label.text("Only allow "+e.checked[0]+" files");break;case 2:H.allow.label.text("Only allow "+e.checked[0]+" and "+e.checked[1]);break;case 3:H.allow.label.text("Don't allow "+e.unchecked[0]+" or "+e.unchecked[1]);break;case 4:H.allow.label.text("Don't allow "+e.unchecked[0]+" files");break;case 5:H.allow.label.text("Allow all file types")}}function V_(){let e=ia(H.refs.external,H.refs.circular);switch(e.checked.length){case 0:H.refs.label.text("Only follow internal $refs");break;case 1:H.refs.label.text("Don't follow "+e.unchecked[0]+" $refs");break;case 2:H.refs.label.text("Follow all $refs")}}function z_(){let e=ia(H.validate.schema,H.validate.spec);switch(e.checked.length){case 0:H.validate.label.text("Don't validate anything");break;case 1:H.validate.label.text("Don't validate Swagger "+e.unchecked[0]);break;case 2:H.validate.label.text("Validate everything")}}function Ep(e){H.method.button.val(e.toLowerCase()),e=e[0].toUpperCase()+e.substr(1),H.method.button.text(e+" it!"),H.tabs.url.text(e+" a URL"),H.tabs.text.text(e+" Text")}function qr(e){e.on("change",()=>{let r=e.is(":checked")?1:0;na.trackEvent("options","changed",e.attr("name"),r)})}function H_(e){let r=["","parse","resolve","bundle","dereference","validate"].indexOf(e);na.trackEvent("options","changed","method",r)}function ia(e){let r=[],t=[];for(let n=0;n{"use strict";p();m();h();var oa=ht(),Op="ace/theme/terminal";qp.exports=ae;function ae(){ae.textBox=oa.textBox=ace.edit("text-box"),oa.textBox.setTheme(Op);let e=oa.textBox.getSession();e.setMode("ace/mode/yaml"),e.setTabSize(2),ae.results=$("#results"),ae.tabs=ae.results.find(".nav-tabs"),ae.panes=ae.results.find(".tab-content")}ae.clearResults=function(){ae.results.removeClass("error animated").addClass("hidden"),ae.tabs.children().remove(),ae.panes.children().remove()};ae.showResult=function(e,r){ae.results.removeClass("hidden"),ae.addResult(e,r),Ap()};ae.showError=function(e){ae.results.removeClass("hidden").addClass("error"),ae.addResult("Error!",e),Ap()};ae.addResult=function(e,r){let t=ae.tabs.children().length,n="results-tab-"+t+"-title",i="results-"+t,s=t===0?"active":"";ae.tabs.append(''),ae.panes.append('
');let o=K_(e)||"Sample API";ae.tabs.find("#"+n).text(o).attr("title",e),r=G_(r),ae.panes.find("#"+i).text(r.text);let a=ace.edit(i);a.setTheme(Op),a.session.setOption("useWorker",!1),r.isJSON&&a.getSession().setMode("ace/mode/json"),a.setReadOnly(!0)};function K_(e){let r=e.lastIndexOf("/");return r!==-1&&(e=e.substr(r+1)),e.length>15&&(e=e.substr(0,10)+"..."),e}function Ap(){let e=ae.results;setTimeout(()=>{e[0].scrollIntoView(),e.addClass("animated").one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",()=>{e.removeClass("animated")})})}function G_(e){if(e instanceof Error)return{isJSON:!1,text:e.message+` `+e.stack};try{return{isJSON:!0,text:JSON.stringify(e,null,2)}}catch(r){return{isJSON:!1,text:`This API is valid, but it cannot be shown because it contains circular references -`+r.stack}}}});var kp=j((FT,Ip)=>{"use strict";p();m();h();var gr=ht();Ip.exports=Rn;function Rn(){gr.samples.url.link.on("click",e=>{e.preventDefault(),gr.url.val(Rn.url)}),gr.samples.text.link.on("click",e=>{e.preventDefault(),gr.textBox.setValue(Rn.text,-1),gr.samples.text.container.hide(),gr.textBox.focus()}),gr.textBox.on("input",()=>{gr.textBox.session.getValue().length===0?gr.samples.text.container.show():gr.samples.text.container.hide()})}Rn.url="https://apitools.dev/swagger-parser/online/sample/swagger.yaml";Rn.text=`swagger: "2.0" +`+r.stack}}}});var kp=j((HT,Ip)=>{"use strict";p();m();h();var gr=ht();Ip.exports=Rn;function Rn(){gr.samples.url.link.on("click",e=>{e.preventDefault(),gr.url.val(Rn.url)}),gr.samples.text.link.on("click",e=>{e.preventDefault(),gr.textBox.setValue(Rn.text,-1),gr.samples.text.container.hide(),gr.textBox.focus()}),gr.textBox.on("input",()=>{gr.textBox.session.getValue().length===0?gr.samples.text.container.show():gr.samples.text.container.hide()})}Rn.url="https://apitools.dev/swagger-parser/online/sample/swagger.yaml";Rn.text=`swagger: "2.0" info: version: 1.0.0 title: Swagger Petstore @@ -102,11 +102,11 @@ definitions: $ref: sample/pet-owner.yaml errorModel: $ref: sample/error.json -`});var aa=j(zt=>{"use strict";p();m();h();Object.defineProperty(zt,"__esModule",{value:!0});zt.addInspectMethod=zt.format=void 0;zt.format=!1;zt.addInspectMethod=!1});var Cp=j(vr=>{"use strict";p();m();h();Object.defineProperty(vr,"__esModule",{value:!0});vr.lazyJoinStacks=vr.joinStacks=vr.isWritableStack=vr.isLazyStack=void 0;var K_=/\r?\n/,G_=/\bono[ @]/;function J_(e){return!!(e&&e.configurable&&typeof e.get=="function")}vr.isLazyStack=J_;function W_(e){return!!(!e||e.writable||typeof e.set=="function")}vr.isWritableStack=W_;function Tp(e,r){let t=Rp(e.stack),n=r?r.stack:void 0;return t&&n?t+` +`});var aa=j(zt=>{"use strict";p();m();h();Object.defineProperty(zt,"__esModule",{value:!0});zt.addInspectMethod=zt.format=void 0;zt.format=!1;zt.addInspectMethod=!1});var Cp=j(vr=>{"use strict";p();m();h();Object.defineProperty(vr,"__esModule",{value:!0});vr.lazyJoinStacks=vr.joinStacks=vr.isWritableStack=vr.isLazyStack=void 0;var J_=/\r?\n/,W_=/\bono[ @]/;function Y_(e){return!!(e&&e.configurable&&typeof e.get=="function")}vr.isLazyStack=Y_;function X_(e){return!!(!e||e.writable||typeof e.set=="function")}vr.isWritableStack=X_;function Tp(e,r){let t=Rp(e.stack),n=r?r.stack:void 0;return t&&n?t+` -`+n:t||n}vr.joinStacks=Tp;function Y_(e,r,t){t?Object.defineProperty(r,"stack",{get:()=>{let n=e.get.apply(r);return Tp({stack:n},t)},enumerable:!1,configurable:!0}):X_(r,e)}vr.lazyJoinStacks=Y_;function Rp(e){if(e){let r=e.split(K_),t;for(let n=0;n0)return r.join(` -`)}return e}function X_(e,r){Object.defineProperty(e,"stack",{get:()=>Rp(r.get.apply(e)),enumerable:!1,configurable:!0})}});var ua=j(Ht=>{"use strict";p();m();h();Object.defineProperty(Ht,"__esModule",{value:!0});Ht.getDeepKeys=Ht.toJSON=void 0;var Q_=["function","symbol","undefined"],Z_=["constructor","prototype","__proto__"],eb=Object.getPrototypeOf({});function rb(){let e={},r=this;for(let t of Np(r))if(typeof t=="string"){let n=r[t],i=typeof n;Q_.includes(i)||(e[t]=n)}return e}Ht.toJSON=rb;function Np(e,r=[]){let t=[];for(;e&&e!==eb;)t=t.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(t);for(let i of r.concat(Z_))n.delete(i);return n}Ht.getDeepKeys=Np});var Bp=j(Wi=>{"use strict";p();m();h();Object.defineProperty(Wi,"__esModule",{value:!0});Wi.extendError=void 0;var Mp=aa(),Ji=Cp(),Dp=ua(),tb=["name","message","stack"];function nb(e,r,t){let n=e;return ib(n,r),r&&typeof r=="object"&&ob(n,r),n.toJSON=Dp.toJSON,Mp.addInspectMethod&&Mp.addInspectMethod(n),t&&typeof t=="object"&&Object.assign(n,t),n}Wi.extendError=nb;function ib(e,r){let t=Object.getOwnPropertyDescriptor(e,"stack");Ji.isLazyStack(t)?Ji.lazyJoinStacks(t,e,r):Ji.isWritableStack(t)&&(e.stack=Ji.joinStacks(e,r))}function ob(e,r){let t=Dp.getDeepKeys(r,tb),n=e,i=r;for(let s of t)if(n[s]===void 0)try{n[s]=i[s]}catch(o){}}});var Up=j(Kt=>{"use strict";p();m();h();Object.defineProperty(Kt,"__esModule",{value:!0});Kt.normalizeArgs=Kt.normalizeOptions=void 0;var sb=aa();function ab(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?sb.format:typeof e.format=="function"?e.format:!1}}Kt.normalizeOptions=ab;function ub(e,r){let t,n,i,s="";return typeof e[0]=="string"?i=e:typeof e[1]=="string"?(e[0]instanceof Error?t=e[0]:n=e[0],i=e.slice(1)):(t=e[0],n=e[1],i=e.slice(2)),i.length>0&&(r.format?s=r.format.apply(void 0,i):s=i.join(" ")),r.concatMessages&&t&&t.message&&(s+=(s?` -`:"")+t.message),{originalError:t,props:n,message:s}}Kt.normalizeArgs=ub});var la=j(Xi=>{"use strict";p();m();h();Object.defineProperty(Xi,"__esModule",{value:!0});Xi.Ono=void 0;var Yi=Bp(),Lp=Up(),cb=ua(),lb=ca;Xi.Ono=lb;function ca(e,r){r=Lp.normalizeOptions(r);function t(...n){let{originalError:i,props:s,message:o}=Lp.normalizeArgs(n,r),a=new e(o);return Yi.extendError(a,i,s)}return t[Symbol.species]=e,t}ca.toJSON=function(r){return cb.toJSON.call(r)};ca.extend=function(r,t,n){return n||t instanceof Error?Yi.extendError(r,t,n):t?Yi.extendError(r,void 0,t):Yi.extendError(r)}});var Fp=j(Qi=>{"use strict";p();m();h();Object.defineProperty(Qi,"__esModule",{value:!0});Qi.ono=void 0;var mt=la(),fb=$r;Qi.ono=fb;$r.error=new mt.Ono(Error);$r.eval=new mt.Ono(EvalError);$r.range=new mt.Ono(RangeError);$r.reference=new mt.Ono(ReferenceError);$r.syntax=new mt.Ono(SyntaxError);$r.type=new mt.Ono(TypeError);$r.uri=new mt.Ono(URIError);var db=$r;function $r(...e){let r=e[0];if(typeof r=="object"&&typeof r.name=="string"){for(let t of Object.values(db))if(typeof t=="function"&&t.name==="ono"){let n=t[Symbol.species];if(n&&n!==Error&&(r instanceof n||r.name===n.name))return t.apply(void 0,e)}}return $r.error.apply(void 0,e)}});function fa(){throw new Error("setTimeout has not been defined")}function da(){throw new Error("clearTimeout has not been defined")}function Hp(e){if(kr===setTimeout)return setTimeout(e,0);if((kr===fa||!kr)&&setTimeout)return kr=setTimeout,setTimeout(e,0);try{return kr(e,0)}catch(r){try{return kr.call(null,e,0)}catch(t){return kr.call(this||Jt,e,0)}}}function pb(){Gt&&yt&&(Gt=!1,yt.length?Rr=yt.concat(Rr):Zi=-1,Rr.length&&Kp())}function Kp(){if(!Gt){var e=Hp(pb);Gt=!0;for(var r=Rr.length;r;){for(yt=Rr,Rr=[];++Zi{p();m();h();Jt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,he=zp={};(function(){try{kr=typeof setTimeout=="function"?setTimeout:fa}catch(e){kr=fa}try{Tr=typeof clearTimeout=="function"?clearTimeout:da}catch(e){Tr=da}})();Rr=[],Gt=!1,Zi=-1;he.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),$a(r)?t.showHidden=r:r&&k._extend(t,r),vt(t.showHidden)&&(t.showHidden=!1),vt(t.depth)&&(t.depth=2),vt(t.colors)&&(t.colors=!1),vt(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=Rb),lo(t,e,t.depth)}function Rb(e,r){var t=Gr.styles[r];return t?"\x1B["+Gr.colors[t][0]+"m"+e+"\x1B["+Gr.colors[t][1]+"m":e}function Cb(e,r){return e}function lo(e,r,t){if(e.customInspect&&r&&so(r.inspect)&&r.inspect!==k.inspect&&(!r.constructor||r.constructor.prototype!==r)){var n=r.inspect(t,e);return fo(n)||(n=lo(e,n,t)),n}var i=function(b,_){if(vt(_))return b.stylize("undefined","undefined");if(fo(_)){var w="'"+JSON.stringify(_).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return b.stylize(w,"string")}if(wh(_))return b.stylize(""+_,"number");if($a(_))return b.stylize(""+_,"boolean");if(mo(_))return b.stylize("null","null")}(e,r);if(i)return i;var s=Object.keys(r),o=function(b){var _={};return b.forEach(function(w,P){_[w]=!0}),_}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),Mn(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return ha(r);if(s.length===0){if(so(r)){var a=r.name?": "+r.name:"";return e.stylize("[Function"+a+"]","special")}if(Nn(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(po(r))return e.stylize(Date.prototype.toString.call(r),"date");if(Mn(r))return ha(r)}var l,f="",g=!1,y=["{","}"];return bh(r)&&(g=!0,y=["[","]"]),so(r)&&(f=" [Function"+(r.name?": "+r.name:"")+"]"),Nn(r)&&(f=" "+RegExp.prototype.toString.call(r)),po(r)&&(f=" "+Date.prototype.toUTCString.call(r)),Mn(r)&&(f=" "+ha(r)),s.length!==0||g&&r.length!=0?t<0?Nn(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),l=g?function(b,_,w,P,O){for(var I=[],R=0,C=_.length;R{let n=e.get.apply(r);return Tp({stack:n},t)},enumerable:!1,configurable:!0}):Z_(r,e)}vr.lazyJoinStacks=Q_;function Rp(e){if(e){let r=e.split(J_),t;for(let n=0;n0)return r.join(` +`)}return e}function Z_(e,r){Object.defineProperty(e,"stack",{get:()=>Rp(r.get.apply(e)),enumerable:!1,configurable:!0})}});var ua=j(Ht=>{"use strict";p();m();h();Object.defineProperty(Ht,"__esModule",{value:!0});Ht.getDeepKeys=Ht.toJSON=void 0;var eb=["function","symbol","undefined"],rb=["constructor","prototype","__proto__"],tb=Object.getPrototypeOf({});function nb(){let e={},r=this;for(let t of Np(r))if(typeof t=="string"){let n=r[t],i=typeof n;eb.includes(i)||(e[t]=n)}return e}Ht.toJSON=nb;function Np(e,r=[]){let t=[];for(;e&&e!==tb;)t=t.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(t);for(let i of r.concat(rb))n.delete(i);return n}Ht.getDeepKeys=Np});var Bp=j(Wi=>{"use strict";p();m();h();Object.defineProperty(Wi,"__esModule",{value:!0});Wi.extendError=void 0;var Mp=aa(),Ji=Cp(),Dp=ua(),ib=["name","message","stack"];function ob(e,r,t){let n=e;return sb(n,r),r&&typeof r=="object"&&ab(n,r),n.toJSON=Dp.toJSON,Mp.addInspectMethod&&Mp.addInspectMethod(n),t&&typeof t=="object"&&Object.assign(n,t),n}Wi.extendError=ob;function sb(e,r){let t=Object.getOwnPropertyDescriptor(e,"stack");Ji.isLazyStack(t)?Ji.lazyJoinStacks(t,e,r):Ji.isWritableStack(t)&&(e.stack=Ji.joinStacks(e,r))}function ab(e,r){let t=Dp.getDeepKeys(r,ib),n=e,i=r;for(let s of t)if(n[s]===void 0)try{n[s]=i[s]}catch(o){}}});var Up=j(Kt=>{"use strict";p();m();h();Object.defineProperty(Kt,"__esModule",{value:!0});Kt.normalizeArgs=Kt.normalizeOptions=void 0;var ub=aa();function cb(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?ub.format:typeof e.format=="function"?e.format:!1}}Kt.normalizeOptions=cb;function lb(e,r){let t,n,i,s="";return typeof e[0]=="string"?i=e:typeof e[1]=="string"?(e[0]instanceof Error?t=e[0]:n=e[0],i=e.slice(1)):(t=e[0],n=e[1],i=e.slice(2)),i.length>0&&(r.format?s=r.format.apply(void 0,i):s=i.join(" ")),r.concatMessages&&t&&t.message&&(s+=(s?` +`:"")+t.message),{originalError:t,props:n,message:s}}Kt.normalizeArgs=lb});var la=j(Xi=>{"use strict";p();m();h();Object.defineProperty(Xi,"__esModule",{value:!0});Xi.Ono=void 0;var Yi=Bp(),Lp=Up(),fb=ua(),db=ca;Xi.Ono=db;function ca(e,r){r=Lp.normalizeOptions(r);function t(...n){let{originalError:i,props:s,message:o}=Lp.normalizeArgs(n,r),a=new e(o);return Yi.extendError(a,i,s)}return t[Symbol.species]=e,t}ca.toJSON=function(r){return fb.toJSON.call(r)};ca.extend=function(r,t,n){return n||t instanceof Error?Yi.extendError(r,t,n):t?Yi.extendError(r,void 0,t):Yi.extendError(r)}});var Fp=j(Qi=>{"use strict";p();m();h();Object.defineProperty(Qi,"__esModule",{value:!0});Qi.ono=void 0;var mt=la(),pb=$r;Qi.ono=pb;$r.error=new mt.Ono(Error);$r.eval=new mt.Ono(EvalError);$r.range=new mt.Ono(RangeError);$r.reference=new mt.Ono(ReferenceError);$r.syntax=new mt.Ono(SyntaxError);$r.type=new mt.Ono(TypeError);$r.uri=new mt.Ono(URIError);var hb=$r;function $r(...e){let r=e[0];if(typeof r=="object"&&typeof r.name=="string"){for(let t of Object.values(hb))if(typeof t=="function"&&t.name==="ono"){let n=t[Symbol.species];if(n&&n!==Error&&(r instanceof n||r.name===n.name))return t.apply(void 0,e)}}return $r.error.apply(void 0,e)}});function fa(){throw new Error("setTimeout has not been defined")}function da(){throw new Error("clearTimeout has not been defined")}function Hp(e){if(kr===setTimeout)return setTimeout(e,0);if((kr===fa||!kr)&&setTimeout)return kr=setTimeout,setTimeout(e,0);try{return kr(e,0)}catch(r){try{return kr.call(null,e,0)}catch(t){return kr.call(this||Jt,e,0)}}}function mb(){Gt&&yt&&(Gt=!1,yt.length?Rr=yt.concat(Rr):Zi=-1,Rr.length&&Kp())}function Kp(){if(!Gt){var e=Hp(mb);Gt=!0;for(var r=Rr.length;r;){for(yt=Rr,Rr=[];++Zi{p();m();h();Jt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,he=zp={};(function(){try{kr=typeof setTimeout=="function"?setTimeout:fa}catch(e){kr=fa}try{Tr=typeof clearTimeout=="function"?clearTimeout:da}catch(e){Tr=da}})();Rr=[],Gt=!1,Zi=-1;he.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),$a(r)?t.showHidden=r:r&&k._extend(t,r),vt(t.showHidden)&&(t.showHidden=!1),vt(t.depth)&&(t.depth=2),vt(t.colors)&&(t.colors=!1),vt(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=Nb),lo(t,e,t.depth)}function Nb(e,r){var t=Gr.styles[r];return t?"\x1B["+Gr.colors[t][0]+"m"+e+"\x1B["+Gr.colors[t][1]+"m":e}function Mb(e,r){return e}function lo(e,r,t){if(e.customInspect&&r&&so(r.inspect)&&r.inspect!==k.inspect&&(!r.constructor||r.constructor.prototype!==r)){var n=r.inspect(t,e);return fo(n)||(n=lo(e,n,t)),n}var i=function(b,_){if(vt(_))return b.stylize("undefined","undefined");if(fo(_)){var w="'"+JSON.stringify(_).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return b.stylize(w,"string")}if(wh(_))return b.stylize(""+_,"number");if($a(_))return b.stylize(""+_,"boolean");if(mo(_))return b.stylize("null","null")}(e,r);if(i)return i;var s=Object.keys(r),o=function(b){var _={};return b.forEach(function(w,P){_[w]=!0}),_}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),Mn(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return ha(r);if(s.length===0){if(so(r)){var a=r.name?": "+r.name:"";return e.stylize("[Function"+a+"]","special")}if(Nn(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(po(r))return e.stylize(Date.prototype.toString.call(r),"date");if(Mn(r))return ha(r)}var l,f="",g=!1,y=["{","}"];return bh(r)&&(g=!0,y=["[","]"]),so(r)&&(f=" [Function"+(r.name?": "+r.name:"")+"]"),Nn(r)&&(f=" "+RegExp.prototype.toString.call(r)),po(r)&&(f=" "+Date.prototype.toUTCString.call(r)),Mn(r)&&(f=" "+ha(r)),s.length!==0||g&&r.length!=0?t<0?Nn(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),l=g?function(b,_,w,P,O){for(var I=[],R=0,C=_.length;R=0&&P++,O+I.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?w[0]+(_===""?"":_+` `)+" "+b.join(`, `)+" "+w[1]:w[0]+_+" "+b.join(", ")+" "+w[1]}(l,f,y)):y[0]+f+y[1]}function ha(e){return"["+Error.prototype.toString.call(e)+"]"}function ma(e,r,t,n,i,s){var o,a,l;if((l=Object.getOwnPropertyDescriptor(r,i)||{value:r[i]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),Ph(n,i)||(o="["+i+"]"),a||(e.seen.indexOf(l.value)<0?(a=mo(t)?lo(e,l.value,null):lo(e,l.value,t-1)).indexOf(` @@ -115,23 +115,23 @@ definitions: `).substr(2):` `+a.split(` `).map(function(f){return" "+f}).join(` -`)):a=e.stylize("[Circular]","special")),vt(o)){if(s&&i.match(/^\d+$/))return a;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+a}function bh(e){return Array.isArray(e)}function $a(e){return typeof e=="boolean"}function mo(e){return e===null}function wh(e){return typeof e=="number"}function fo(e){return typeof e=="string"}function vt(e){return e===void 0}function Nn(e){return Wt(e)&&_a(e)==="[object RegExp]"}function Wt(e){return typeof e=="object"&&e!==null}function po(e){return Wt(e)&&_a(e)==="[object Date]"}function Mn(e){return Wt(e)&&(_a(e)==="[object Error]"||e instanceof Error)}function so(e){return typeof e=="function"}function _a(e){return Object.prototype.toString.call(e)}function ya(e){return e<10?"0"+e.toString(10):e.toString(10)}function Mb(){var e=new Date,r=[ya(e.getHours()),ya(e.getMinutes()),ya(e.getSeconds())].join(":");return[e.getDate(),Nb[e.getMonth()],r].join(" ")}function Ph(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function Db(e,r){if(!e){var t=new Error("Promise was rejected with a falsy value");t.reason=e,e=t}return r(e)}var hb,ga,ho,ih,mb,yb,gb,vb,$b,oh,sh,Gp,_b,bb,wb,ah,W,Pb,xb,Eb,uh,va,Ve,Me,Sb,le,Ob,Ab,qb,Cn,k,_r,nh,Tb,io,_h,oo,Nb,gt,yo=Fe(()=>{p();m();h();eo();hb=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",ga=Object.prototype.toString,ho=function(e){return!(hb&&e&&typeof e=="object"&&Symbol.toStringTag in e)&&ga.call(e)==="[object Arguments]"},ih=function(e){return!!ho(e)||e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&ga.call(e)!=="[object Array]"&&ga.call(e.callee)==="[object Function]"},mb=function(){return ho(arguments)}();ho.isLegacyArguments=ih;yb=mb?ho:ih,gb=Object.prototype.toString,vb=Function.prototype.toString,$b=/^\s*(?:function)?\*/,oh=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",sh=Object.getPrototypeOf,Gp=function(){if(!oh)return!1;try{return Function("return function*() {}")()}catch(e){}}(),_b=Gp?sh(Gp):{},bb=function(e){return typeof e=="function"&&(!!$b.test(vb.call(e))||(oh?sh(e)===_b:gb.call(e)==="[object GeneratorFunction]"))},wb=typeof Object.create=="function"?function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,r){if(r){e.super_=r;var t=function(){};t.prototype=r.prototype,e.prototype=new t,e.prototype.constructor=e}},ah=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},W={},Pb=ah,xb=yb,Eb=bb;uh=typeof BigInt<"u",va=typeof Symbol<"u",Ve=va&&Symbol.toStringTag!==void 0,Me=typeof Uint8Array<"u",Sb=typeof ArrayBuffer<"u";if(Me&&Ve)var jb=Object.getPrototypeOf(Uint8Array.prototype),ze=$t(Object.getOwnPropertyDescriptor(jb,Symbol.toStringTag).get);le=$t(Object.prototype.toString),Ob=$t(Number.prototype.valueOf),Ab=$t(String.prototype.valueOf),qb=$t(Boolean.prototype.valueOf);if(uh)var Ib=$t(BigInt.prototype.valueOf);if(va)var kb=$t(Symbol.prototype.valueOf);W.isArgumentsObject=xb,W.isGeneratorFunction=Eb,W.isPromise=function(e){return typeof Promise<"u"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"},W.isArrayBufferView=function(e){return Sb&&ArrayBuffer.isView?ArrayBuffer.isView(e):Jp(e)||Yp(e)},W.isTypedArray=Jp,W.isUint8Array=ch,W.isUint8ClampedArray=lh,W.isUint16Array=fh,W.isUint32Array=dh,W.isInt8Array=ph,W.isInt16Array=hh,W.isInt32Array=mh,W.isFloat32Array=yh,W.isFloat64Array=gh,W.isBigInt64Array=vh,W.isBigUint64Array=$h,ro.working=typeof Map<"u"&&ro(new Map),W.isMap=function(e){return typeof Map<"u"&&(ro.working?ro(e):e instanceof Map)},to.working=typeof Set<"u"&&to(new Set),W.isSet=function(e){return typeof Set<"u"&&(to.working?to(e):e instanceof Set)},no.working=typeof WeakMap<"u"&&no(new WeakMap),W.isWeakMap=function(e){return typeof WeakMap<"u"&&(no.working?no(e):e instanceof WeakMap)},pa.working=typeof WeakSet<"u"&&pa(new WeakSet),W.isWeakSet=function(e){return pa(e)},ao.working=typeof ArrayBuffer<"u"&&ao(new ArrayBuffer),W.isArrayBuffer=Wp,uo.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&uo(new DataView(new ArrayBuffer(1),0,1)),W.isDataView=Yp,co.working=typeof SharedArrayBuffer<"u"&&co(new SharedArrayBuffer),W.isSharedArrayBuffer=Xp,W.isAsyncFunction=function(e){return le(e)==="[object AsyncFunction]"},W.isMapIterator=function(e){return le(e)==="[object Map Iterator]"},W.isSetIterator=function(e){return le(e)==="[object Set Iterator]"},W.isGeneratorObject=function(e){return le(e)==="[object Generator]"},W.isWebAssemblyCompiledModule=function(e){return le(e)==="[object WebAssembly.Module]"},W.isNumberObject=Qp,W.isStringObject=Zp,W.isBooleanObject=eh,W.isBigIntObject=rh,W.isSymbolObject=th,W.isBoxedPrimitive=function(e){return Qp(e)||Zp(e)||eh(e)||rh(e)||th(e)},W.isAnyArrayBuffer=function(e){return Me&&(Wp(e)||Xp(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(W,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})});Cn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,k={},_r=ce,nh=Object.getOwnPropertyDescriptors||function(e){for(var r=Object.keys(e),t={},n=0;n=i)return a;switch(a){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch(l){return"[Circular]"}default:return a}}),o=n[t];t{p();m();h();yo();eo();k._extend;k.callbackify;k.debuglog;k.deprecate;k.format;k.inherits;k.inspect;k.isArray;k.isBoolean;k.isBuffer;k.isDate;k.isError;k.isFunction;k.isNull;k.isNullOrUndefined;k.isNumber;k.isObject;k.isPrimitive;k.isRegExp;k.isString;k.isSymbol;k.isUndefined;k.log;k.promisify;I2=k._extend,k2=k.callbackify,T2=k.debuglog,R2=k.deprecate,C2=k.format,N2=k.inherits,M2=k.inspect,D2=k.isArray,B2=k.isBoolean,U2=k.isBuffer,L2=k.isDate,F2=k.isError,V2=k.isFunction,z2=k.isNull,H2=k.isNullOrUndefined,K2=k.isNumber,G2=k.isObject,J2=k.isPrimitive,W2=k.isRegExp,Y2=k.isString,X2=k.isSymbol,Q2=k.isUndefined,Z2=k.log,eR=k.promisify,rR=k.types,tR=self.TextEncoder,nR=self.TextDecoder});var ba={};ki(ba,{TextDecoder:()=>fw,TextEncoder:()=>lw,_extend:()=>Bb,callbackify:()=>Ub,debuglog:()=>Lb,default:()=>k,deprecate:()=>Fb,format:()=>Vb,inherits:()=>zb,inspect:()=>Hb,isArray:()=>Kb,isBoolean:()=>Gb,isBuffer:()=>Jb,isDate:()=>Wb,isError:()=>Yb,isFunction:()=>Xb,isNull:()=>Qb,isNullOrUndefined:()=>Zb,isNumber:()=>ew,isObject:()=>rw,isPrimitive:()=>tw,isRegExp:()=>nw,isString:()=>iw,isSymbol:()=>ow,isUndefined:()=>sw,log:()=>aw,promisify:()=>uw,types:()=>cw});var Bb,Ub,Lb,Fb,Vb,zb,Hb,Kb,Gb,Jb,Wb,Yb,Xb,Qb,Zb,ew,rw,tw,nw,iw,ow,sw,aw,uw,cw,lw,fw,wa=Fe(()=>{p();m();h();xh();yo();yo();eo();Bb=k._extend,Ub=k.callbackify,Lb=k.debuglog,Fb=k.deprecate,Vb=k.format,zb=k.inherits,Hb=k.inspect,Kb=k.isArray,Gb=k.isBoolean,Jb=k.isBuffer,Wb=k.isDate,Yb=k.isError,Xb=k.isFunction,Qb=k.isNull,Zb=k.isNullOrUndefined,ew=k.isNumber,rw=k.isObject,tw=k.isPrimitive,nw=k.isRegExp,iw=k.isString,ow=k.isSymbol,sw=k.isUndefined,aw=k.log,uw=k.promisify,cw=k.types,lw=k.TextEncoder=globalThis.TextEncoder,fw=k.TextDecoder=globalThis.TextDecoder});var Sh=j(Eh=>{"use strict";p();m();h();Object.defineProperty(Eh,"__esModule",{value:!0});var mR=(wa(),Nt(ba))});var He=j((rr,Yt)=>{"use strict";p();m();h();var dw=rr&&rr.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t),Object.defineProperty(e,n,{enumerable:!0,get:function(){return r[t]}})}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),pw=rr&&rr.__exportStar||function(e,r){for(var t in e)t!=="default"&&!r.hasOwnProperty(t)&&dw(r,e,t)};Object.defineProperty(rr,"__esModule",{value:!0});rr.ono=void 0;var jh=Fp();Object.defineProperty(rr,"ono",{enumerable:!0,get:function(){return jh.ono}});var hw=la();Object.defineProperty(rr,"Ono",{enumerable:!0,get:function(){return hw.Ono}});pw(Sh(),rr);rr.default=jh.ono;typeof Yt=="object"&&typeof Yt.exports=="object"&&(Yt.exports=Object.assign(Yt.exports.default,Yt.exports))});var go=j(Bn=>{"use strict";p();m();h();var Oh=(wa(),Nt(ba));Bn.format=Oh.format;Bn.inherits=Oh.inherits;var mw=e=>new URL(e);Bn.swaggerParamRegExp=/\{([^/}]+)}/g;var yw=["get","post","put","delete","patch","options","head","trace"];function Pa(e,r){if(e.url&&e.url.startsWith("/")){let t=mw(r),n=t.protocol+"//"+t.hostname+e.url;return e.url=n,e}}function gw(e,r){e.openapi&&r&&(r.startsWith("http:")||r.startsWith("https:"))&&(e.servers&&e.servers.map(t=>Pa(t,r)),["paths","webhooks"].forEach(t=>{Object.keys(e[t]||[]).forEach(n=>{let i=e[t][n];Object.keys(i).forEach(s=>{s==="servers"?i[s].map(o=>Pa(o,r)):yw.includes(s)&&i[s].servers&&i[s].servers.map(o=>Pa(o,r))})})}))}Bn.fixOasRelativeServers=gw});var Fn=j(Z=>{"use strict";p();m();h();Object.defineProperty(Z,"__esModule",{value:!0});Z.regexpCode=Z.getEsmExportName=Z.getProperty=Z.safeStringify=Z.stringify=Z.strConcat=Z.addCodeArg=Z.str=Z._=Z.nil=Z._Code=Z.Name=Z.IDENTIFIER=Z._CodeOrName=void 0;var Un=class{};Z._CodeOrName=Un;Z.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var _t=class extends Un{constructor(r){if(super(),!Z.IDENTIFIER.test(r))throw new Error("CodeGen: name must be a valid identifier");this.str=r}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Z.Name=_t;var Ke=class extends Un{constructor(r){super(),this._items=typeof r=="string"?[r]:r}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let r=this._items[0];return r===""||r==='""'}get str(){var r;return(r=this._str)!==null&&r!==void 0?r:this._str=this._items.reduce((t,n)=>`${t}${n}`,"")}get names(){var r;return(r=this._names)!==null&&r!==void 0?r:this._names=this._items.reduce((t,n)=>(n instanceof _t&&(t[n.str]=(t[n.str]||0)+1),t),{})}};Z._Code=Ke;Z.nil=new Ke("");function Ah(e,...r){let t=[e[0]],n=0;for(;n{"use strict";p();m();h();Object.defineProperty(Be,"__esModule",{value:!0});Be.ValueScope=Be.ValueScopeName=Be.Scope=Be.varKinds=Be.UsedValueState=void 0;var De=Fn(),Sa=class extends Error{constructor(r){super(`CodeGen: "code" for ${r} not defined`),this.value=r.value}},vo;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(vo||(Be.UsedValueState=vo={}));Be.varKinds={const:new De.Name("const"),let:new De.Name("let"),var:new De.Name("var")};var $o=class{constructor({prefixes:r,parent:t}={}){this._names={},this._prefixes=r,this._parent=t}toName(r){return r instanceof De.Name?r:this.name(r)}name(r){return new De.Name(this._newName(r))}_newName(r){let t=this._names[r]||this._nameGroup(r);return`${r}${t.index++}`}_nameGroup(r){var t,n;if(!((n=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||n===void 0)&&n.has(r)||this._prefixes&&!this._prefixes.has(r))throw new Error(`CodeGen: prefix "${r}" is not allowed in this scope`);return this._names[r]={prefix:r,index:0}}};Be.Scope=$o;var _o=class extends De.Name{constructor(r,t){super(t),this.prefix=r}setValue(r,{property:t,itemIndex:n}){this.value=r,this.scopePath=(0,De._)`.${new De.Name(t)}[${n}]`}};Be.ValueScopeName=_o;var Sw=(0,De._)`\n`,ja=class extends $o{constructor(r){super(r),this._values={},this._scope=r.scope,this.opts={...r,_n:r.lines?Sw:De.nil}}get(){return this._scope}name(r){return new _o(r,this._newName(r))}value(r,t){var n;if(t.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(r),{prefix:s}=i,o=(n=t.key)!==null&&n!==void 0?n:t.ref,a=this._values[s];if(a){let g=a.get(o);if(g)return g}else a=this._values[s]=new Map;a.set(o,i);let l=this._scope[s]||(this._scope[s]=[]),f=l.length;return l[f]=t.ref,i.setValue(t,{property:s,itemIndex:f}),i}getValue(r,t){let n=this._values[r];if(n)return n.get(t)}scopeRefs(r,t=this._values){return this._reduceValues(t,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,De._)`${r}${n.scopePath}`})}scopeCode(r=this._values,t,n){return this._reduceValues(r,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},t,n)}_reduceValues(r,t,n={},i){let s=De.nil;for(let o in r){let a=r[o];if(!a)continue;let l=n[o]=n[o]||new Map;a.forEach(f=>{if(l.has(f))return;l.set(f,vo.Started);let g=t(f);if(g){let y=this.opts.es5?Be.varKinds.var:Be.varKinds.const;s=(0,De._)`${s}${y} ${f} = ${g};${this.opts._n}`}else if(g=i==null?void 0:i(f))s=(0,De._)`${s}${g}${this.opts._n}`;else throw new Sa(f);l.set(f,vo.Completed)})}return s}};Be.ValueScope=ja});var V=j(K=>{"use strict";p();m();h();Object.defineProperty(K,"__esModule",{value:!0});K.or=K.and=K.not=K.CodeGen=K.operators=K.varKinds=K.ValueScopeName=K.ValueScope=K.Scope=K.Name=K.regexpCode=K.stringify=K.getProperty=K.nil=K.strConcat=K.str=K._=void 0;var X=Fn(),tr=Oa(),Jr=Fn();Object.defineProperty(K,"_",{enumerable:!0,get:function(){return Jr._}});Object.defineProperty(K,"str",{enumerable:!0,get:function(){return Jr.str}});Object.defineProperty(K,"strConcat",{enumerable:!0,get:function(){return Jr.strConcat}});Object.defineProperty(K,"nil",{enumerable:!0,get:function(){return Jr.nil}});Object.defineProperty(K,"getProperty",{enumerable:!0,get:function(){return Jr.getProperty}});Object.defineProperty(K,"stringify",{enumerable:!0,get:function(){return Jr.stringify}});Object.defineProperty(K,"regexpCode",{enumerable:!0,get:function(){return Jr.regexpCode}});Object.defineProperty(K,"Name",{enumerable:!0,get:function(){return Jr.Name}});var xo=Oa();Object.defineProperty(K,"Scope",{enumerable:!0,get:function(){return xo.Scope}});Object.defineProperty(K,"ValueScope",{enumerable:!0,get:function(){return xo.ValueScope}});Object.defineProperty(K,"ValueScopeName",{enumerable:!0,get:function(){return xo.ValueScopeName}});Object.defineProperty(K,"varKinds",{enumerable:!0,get:function(){return xo.varKinds}});K.operators={GT:new X._Code(">"),GTE:new X._Code(">="),LT:new X._Code("<"),LTE:new X._Code("<="),EQ:new X._Code("==="),NEQ:new X._Code("!=="),NOT:new X._Code("!"),OR:new X._Code("||"),AND:new X._Code("&&"),ADD:new X._Code("+")};var Cr=class{optimizeNodes(){return this}optimizeNames(r,t){return this}},Aa=class extends Cr{constructor(r,t,n){super(),this.varKind=r,this.name=t,this.rhs=n}render({es5:r,_n:t}){let n=r?tr.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+t}optimizeNames(r,t){if(r[this.name.str])return this.rhs&&(this.rhs=Qt(this.rhs,r,t)),this}get names(){return this.rhs instanceof X._CodeOrName?this.rhs.names:{}}},bo=class extends Cr{constructor(r,t,n){super(),this.lhs=r,this.rhs=t,this.sideEffects=n}render({_n:r}){return`${this.lhs} = ${this.rhs};`+r}optimizeNames(r,t){if(!(this.lhs instanceof X.Name&&!r[this.lhs.str]&&!this.sideEffects))return this.rhs=Qt(this.rhs,r,t),this}get names(){let r=this.lhs instanceof X.Name?{}:{...this.lhs.names};return Po(r,this.rhs)}},qa=class extends bo{constructor(r,t,n,i){super(r,n,i),this.op=t}render({_n:r}){return`${this.lhs} ${this.op}= ${this.rhs};`+r}},Ia=class extends Cr{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`${this.label}:`+r}},ka=class extends Cr{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`break${this.label?` ${this.label}`:""};`+r}},Ta=class extends Cr{constructor(r){super(),this.error=r}render({_n:r}){return`throw ${this.error};`+r}get names(){return this.error.names}},Ra=class extends Cr{constructor(r){super(),this.code=r}render({_n:r}){return`${this.code};`+r}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(r,t){return this.code=Qt(this.code,r,t),this}get names(){return this.code instanceof X._CodeOrName?this.code.names:{}}},Vn=class extends Cr{constructor(r=[]){super(),this.nodes=r}render(r){return this.nodes.reduce((t,n)=>t+n.render(r),"")}optimizeNodes(){let{nodes:r}=this,t=r.length;for(;t--;){let n=r[t].optimizeNodes();Array.isArray(n)?r.splice(t,1,...n):n?r[t]=n:r.splice(t,1)}return r.length>0?this:void 0}optimizeNames(r,t){let{nodes:n}=this,i=n.length;for(;i--;){let s=n[i];s.optimizeNames(r,t)||(jw(r,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((r,t)=>Pt(r,t.names),{})}},Nr=class extends Vn{render(r){return"{"+r._n+super.render(r)+"}"+r._n}},Ca=class extends Vn{},Xt=class extends Nr{};Xt.kind="else";var bt=class e extends Nr{constructor(r,t){super(t),this.condition=r}render(r){let t=`if(${this.condition})`+super.render(r);return this.else&&(t+="else "+this.else.render(r)),t}optimizeNodes(){super.optimizeNodes();let r=this.condition;if(r===!0)return this.nodes;let t=this.else;if(t){let n=t.optimizeNodes();t=this.else=Array.isArray(n)?new Xt(n):n}if(t)return r===!1?t instanceof e?t:t.nodes:this.nodes.length?this:new e(Ih(r),t instanceof e?[t]:t.nodes);if(!(r===!1||!this.nodes.length))return this}optimizeNames(r,t){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(r,t),!!(super.optimizeNames(r,t)||this.else))return this.condition=Qt(this.condition,r,t),this}get names(){let r=super.names;return Po(r,this.condition),this.else&&Pt(r,this.else.names),r}};bt.kind="if";var wt=class extends Nr{};wt.kind="for";var Na=class extends wt{constructor(r){super(),this.iteration=r}render(r){return`for(${this.iteration})`+super.render(r)}optimizeNames(r,t){if(super.optimizeNames(r,t))return this.iteration=Qt(this.iteration,r,t),this}get names(){return Pt(super.names,this.iteration.names)}},Ma=class extends wt{constructor(r,t,n,i){super(),this.varKind=r,this.name=t,this.from=n,this.to=i}render(r){let t=r.es5?tr.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${t} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(r)}get names(){let r=Po(super.names,this.from);return Po(r,this.to)}},wo=class extends wt{constructor(r,t,n,i){super(),this.loop=r,this.varKind=t,this.name=n,this.iterable=i}render(r){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(r)}optimizeNames(r,t){if(super.optimizeNames(r,t))return this.iterable=Qt(this.iterable,r,t),this}get names(){return Pt(super.names,this.iterable.names)}},zn=class extends Nr{constructor(r,t,n){super(),this.name=r,this.args=t,this.async=n}render(r){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(r)}};zn.kind="func";var Hn=class extends Vn{render(r){return"return "+super.render(r)}};Hn.kind="return";var Da=class extends Nr{render(r){let t="try"+super.render(r);return this.catch&&(t+=this.catch.render(r)),this.finally&&(t+=this.finally.render(r)),t}optimizeNodes(){var r,t;return super.optimizeNodes(),(r=this.catch)===null||r===void 0||r.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(r,t){var n,i;return super.optimizeNames(r,t),(n=this.catch)===null||n===void 0||n.optimizeNames(r,t),(i=this.finally)===null||i===void 0||i.optimizeNames(r,t),this}get names(){let r=super.names;return this.catch&&Pt(r,this.catch.names),this.finally&&Pt(r,this.finally.names),r}},Kn=class extends Nr{constructor(r){super(),this.error=r}render(r){return`catch(${this.error})`+super.render(r)}};Kn.kind="catch";var Gn=class extends Nr{render(r){return"finally"+super.render(r)}};Gn.kind="finally";var Ba=class{constructor(r,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?` -`:""},this._extScope=r,this._scope=new tr.Scope({parent:r}),this._nodes=[new Ca]}toString(){return this._root.render(this.opts)}name(r){return this._scope.name(r)}scopeName(r){return this._extScope.name(r)}scopeValue(r,t){let n=this._extScope.value(r,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(r,t){return this._extScope.getValue(r,t)}scopeRefs(r){return this._extScope.scopeRefs(r,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(r,t,n,i){let s=this._scope.toName(t);return n!==void 0&&i&&(this._constants[s.str]=n),this._leafNode(new Aa(r,s,n)),s}const(r,t,n){return this._def(tr.varKinds.const,r,t,n)}let(r,t,n){return this._def(tr.varKinds.let,r,t,n)}var(r,t,n){return this._def(tr.varKinds.var,r,t,n)}assign(r,t,n){return this._leafNode(new bo(r,t,n))}add(r,t){return this._leafNode(new qa(r,K.operators.ADD,t))}code(r){return typeof r=="function"?r():r!==X.nil&&this._leafNode(new Ra(r)),this}object(...r){let t=["{"];for(let[n,i]of r)t.length>1&&t.push(","),t.push(n),(n!==i||this.opts.es5)&&(t.push(":"),(0,X.addCodeArg)(t,i));return t.push("}"),new X._Code(t)}if(r,t,n){if(this._blockNode(new bt(r)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(r){return this._elseNode(new bt(r))}else(){return this._elseNode(new Xt)}endIf(){return this._endBlockNode(bt,Xt)}_for(r,t){return this._blockNode(r),t&&this.code(t).endFor(),this}for(r,t){return this._for(new Na(r),t)}forRange(r,t,n,i,s=this.opts.es5?tr.varKinds.var:tr.varKinds.let){let o=this._scope.toName(r);return this._for(new Ma(s,o,t,n),()=>i(o))}forOf(r,t,n,i=tr.varKinds.const){let s=this._scope.toName(r);if(this.opts.es5){let o=t instanceof X.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,X._)`${o}.length`,a=>{this.var(s,(0,X._)`${o}[${a}]`),n(s)})}return this._for(new wo("of",i,s,t),()=>n(s))}forIn(r,t,n,i=this.opts.es5?tr.varKinds.var:tr.varKinds.const){if(this.opts.ownProperties)return this.forOf(r,(0,X._)`Object.keys(${t})`,n);let s=this._scope.toName(r);return this._for(new wo("in",i,s,t),()=>n(s))}endFor(){return this._endBlockNode(wt)}label(r){return this._leafNode(new Ia(r))}break(r){return this._leafNode(new ka(r))}return(r){let t=new Hn;if(this._blockNode(t),this.code(r),t.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Hn)}try(r,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Da;if(this._blockNode(i),this.code(r),t){let s=this.name("e");this._currNode=i.catch=new Kn(s),t(s)}return n&&(this._currNode=i.finally=new Gn,this.code(n)),this._endBlockNode(Kn,Gn)}throw(r){return this._leafNode(new Ta(r))}block(r,t){return this._blockStarts.push(this._nodes.length),r&&this.code(r).endBlock(t),this}endBlock(r){let t=this._blockStarts.pop();if(t===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-t;if(n<0||r!==void 0&&n!==r)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${r} expected`);return this._nodes.length=t,this}func(r,t=X.nil,n,i){return this._blockNode(new zn(r,t,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(zn)}optimize(r=1){for(;r-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(r){return this._currNode.nodes.push(r),this}_blockNode(r){this._currNode.nodes.push(r),this._nodes.push(r)}_endBlockNode(r,t){let n=this._currNode;if(n instanceof r||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${r.kind}/${t.kind}`:r.kind}"`)}_elseNode(r){let t=this._currNode;if(!(t instanceof bt))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=r,this}get _root(){return this._nodes[0]}get _currNode(){let r=this._nodes;return r[r.length-1]}set _currNode(r){let t=this._nodes;t[t.length-1]=r}};K.CodeGen=Ba;function Pt(e,r){for(let t in r)e[t]=(e[t]||0)+(r[t]||0);return e}function Po(e,r){return r instanceof X._CodeOrName?Pt(e,r.names):e}function Qt(e,r,t){if(e instanceof X.Name)return n(e);if(!i(e))return e;return new X._Code(e._items.reduce((s,o)=>(o instanceof X.Name&&(o=n(o)),o instanceof X._Code?s.push(...o._items):s.push(o),s),[]));function n(s){let o=t[s.str];return o===void 0||r[s.str]!==1?s:(delete r[s.str],o)}function i(s){return s instanceof X._Code&&s._items.some(o=>o instanceof X.Name&&r[o.str]===1&&t[o.str]!==void 0)}}function jw(e,r){for(let t in r)e[t]=(e[t]||0)-(r[t]||0)}function Ih(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,X._)`!${Ua(e)}`}K.not=Ih;var Ow=kh(K.operators.AND);function Aw(...e){return e.reduce(Ow)}K.and=Aw;var qw=kh(K.operators.OR);function Iw(...e){return e.reduce(qw)}K.or=Iw;function kh(e){return(r,t)=>r===X.nil?t:t===X.nil?r:(0,X._)`${Ua(r)} ${e} ${Ua(t)}`}function Ua(e){return e instanceof X.Name?e:(0,X._)`(${e})`}});var Y=j(J=>{"use strict";p();m();h();Object.defineProperty(J,"__esModule",{value:!0});J.checkStrictMode=J.getErrorPath=J.Type=J.useFunc=J.setEvaluated=J.evaluatedPropsToName=J.mergeEvaluated=J.eachItem=J.unescapeJsonPointer=J.escapeJsonPointer=J.escapeFragment=J.unescapeFragment=J.schemaRefOrVal=J.schemaHasRulesButRef=J.schemaHasRules=J.checkUnknownRules=J.alwaysValidSchema=J.toHash=void 0;var te=V(),kw=Fn();function Tw(e){let r={};for(let t of e)r[t]=!0;return r}J.toHash=Tw;function Rw(e,r){return typeof r=="boolean"?r:Object.keys(r).length===0?!0:(Ch(e,r),!Nh(r,e.self.RULES.all))}J.alwaysValidSchema=Rw;function Ch(e,r=e.schema){let{opts:t,self:n}=e;if(!t.strictSchema||typeof r=="boolean")return;let i=n.RULES.keywords;for(let s in r)i[s]||Bh(e,`unknown keyword: "${s}"`)}J.checkUnknownRules=Ch;function Nh(e,r){if(typeof e=="boolean")return!e;for(let t in e)if(r[t])return!0;return!1}J.schemaHasRules=Nh;function Cw(e,r){if(typeof e=="boolean")return!e;for(let t in e)if(t!=="$ref"&&r.all[t])return!0;return!1}J.schemaHasRulesButRef=Cw;function Nw({topSchemaRef:e,schemaPath:r},t,n,i){if(!i){if(typeof t=="number"||typeof t=="boolean")return t;if(typeof t=="string")return(0,te._)`${t}`}return(0,te._)`${e}${r}${(0,te.getProperty)(n)}`}J.schemaRefOrVal=Nw;function Mw(e){return Mh(decodeURIComponent(e))}J.unescapeFragment=Mw;function Dw(e){return encodeURIComponent(Fa(e))}J.escapeFragment=Dw;function Fa(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}J.escapeJsonPointer=Fa;function Mh(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}J.unescapeJsonPointer=Mh;function Bw(e,r){if(Array.isArray(e))for(let t of e)r(t);else r(e)}J.eachItem=Bw;function Th({mergeNames:e,mergeToName:r,mergeValues:t,resultToName:n}){return(i,s,o,a)=>{let l=o===void 0?s:o instanceof te.Name?(s instanceof te.Name?e(i,s,o):r(i,s,o),o):s instanceof te.Name?(r(i,o,s),s):t(s,o);return a===te.Name&&!(l instanceof te.Name)?n(i,l):l}}J.mergeEvaluated={props:Th({mergeNames:(e,r,t)=>e.if((0,te._)`${t} !== true && ${r} !== undefined`,()=>{e.if((0,te._)`${r} === true`,()=>e.assign(t,!0),()=>e.assign(t,(0,te._)`${t} || {}`).code((0,te._)`Object.assign(${t}, ${r})`))}),mergeToName:(e,r,t)=>e.if((0,te._)`${t} !== true`,()=>{r===!0?e.assign(t,!0):(e.assign(t,(0,te._)`${t} || {}`),Va(e,t,r))}),mergeValues:(e,r)=>e===!0?!0:{...e,...r},resultToName:Dh}),items:Th({mergeNames:(e,r,t)=>e.if((0,te._)`${t} !== true && ${r} !== undefined`,()=>e.assign(t,(0,te._)`${r} === true ? true : ${t} > ${r} ? ${t} : ${r}`)),mergeToName:(e,r,t)=>e.if((0,te._)`${t} !== true`,()=>e.assign(t,r===!0?!0:(0,te._)`${t} > ${r} ? ${t} : ${r}`)),mergeValues:(e,r)=>e===!0?!0:Math.max(e,r),resultToName:(e,r)=>e.var("items",r)})};function Dh(e,r){if(r===!0)return e.var("props",!0);let t=e.var("props",(0,te._)`{}`);return r!==void 0&&Va(e,t,r),t}J.evaluatedPropsToName=Dh;function Va(e,r,t){Object.keys(t).forEach(n=>e.assign((0,te._)`${r}${(0,te.getProperty)(n)}`,!0))}J.setEvaluated=Va;var Rh={};function Uw(e,r){return e.scopeValue("func",{ref:r,code:Rh[r.code]||(Rh[r.code]=new kw._Code(r.code))})}J.useFunc=Uw;var La;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(La||(J.Type=La={}));function Lw(e,r,t){if(e instanceof te.Name){let n=r===La.Num;return t?n?(0,te._)`"[" + ${e} + "]"`:(0,te._)`"['" + ${e} + "']"`:n?(0,te._)`"/" + ${e}`:(0,te._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return t?(0,te.getProperty)(e).toString():"/"+Fa(e)}J.getErrorPath=Lw;function Bh(e,r,t=e.opts.strictSchema){if(t){if(r=`strict mode: ${r}`,t===!0)throw new Error(r);e.self.logger.warn(r)}}J.checkStrictMode=Bh});var Ge=j(za=>{"use strict";p();m();h();Object.defineProperty(za,"__esModule",{value:!0});var Oe=V(),Fw={data:new Oe.Name("data"),valCxt:new Oe.Name("valCxt"),instancePath:new Oe.Name("instancePath"),parentData:new Oe.Name("parentData"),parentDataProperty:new Oe.Name("parentDataProperty"),rootData:new Oe.Name("rootData"),dynamicAnchors:new Oe.Name("dynamicAnchors"),vErrors:new Oe.Name("vErrors"),errors:new Oe.Name("errors"),this:new Oe.Name("this"),self:new Oe.Name("self"),scope:new Oe.Name("scope"),json:new Oe.Name("json"),jsonPos:new Oe.Name("jsonPos"),jsonLen:new Oe.Name("jsonLen"),jsonPart:new Oe.Name("jsonPart")};za.default=Fw});var Jn=j(Ae=>{"use strict";p();m();h();Object.defineProperty(Ae,"__esModule",{value:!0});Ae.extendErrors=Ae.resetErrorsCount=Ae.reportExtraError=Ae.reportError=Ae.keyword$DataError=Ae.keywordError=void 0;var Q=V(),Eo=Y(),Te=Ge();Ae.keywordError={message:({keyword:e})=>(0,Q.str)`must pass "${e}" keyword validation`};Ae.keyword$DataError={message:({keyword:e,schemaType:r})=>r?(0,Q.str)`"${e}" keyword must be ${r} ($data)`:(0,Q.str)`"${e}" keyword is invalid ($data)`};function Vw(e,r=Ae.keywordError,t,n){let{it:i}=e,{gen:s,compositeRule:o,allErrors:a}=i,l=Fh(e,r,t);(n!=null?n:o||a)?Uh(s,l):Lh(i,(0,Q._)`[${l}]`)}Ae.reportError=Vw;function zw(e,r=Ae.keywordError,t){let{it:n}=e,{gen:i,compositeRule:s,allErrors:o}=n,a=Fh(e,r,t);Uh(i,a),s||o||Lh(n,Te.default.vErrors)}Ae.reportExtraError=zw;function Hw(e,r){e.assign(Te.default.errors,r),e.if((0,Q._)`${Te.default.vErrors} !== null`,()=>e.if(r,()=>e.assign((0,Q._)`${Te.default.vErrors}.length`,r),()=>e.assign(Te.default.vErrors,null)))}Ae.resetErrorsCount=Hw;function Kw({gen:e,keyword:r,schemaValue:t,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");let o=e.name("err");e.forRange("i",i,Te.default.errors,a=>{e.const(o,(0,Q._)`${Te.default.vErrors}[${a}]`),e.if((0,Q._)`${o}.instancePath === undefined`,()=>e.assign((0,Q._)`${o}.instancePath`,(0,Q.strConcat)(Te.default.instancePath,s.errorPath))),e.assign((0,Q._)`${o}.schemaPath`,(0,Q.str)`${s.errSchemaPath}/${r}`),s.opts.verbose&&(e.assign((0,Q._)`${o}.schema`,t),e.assign((0,Q._)`${o}.data`,n))})}Ae.extendErrors=Kw;function Uh(e,r){let t=e.const("err",r);e.if((0,Q._)`${Te.default.vErrors} === null`,()=>e.assign(Te.default.vErrors,(0,Q._)`[${t}]`),(0,Q._)`${Te.default.vErrors}.push(${t})`),e.code((0,Q._)`${Te.default.errors}++`)}function Lh(e,r){let{gen:t,validateName:n,schemaEnv:i}=e;i.$async?t.throw((0,Q._)`new ${e.ValidationError}(${r})`):(t.assign((0,Q._)`${n}.errors`,r),t.return(!1))}var xt={keyword:new Q.Name("keyword"),schemaPath:new Q.Name("schemaPath"),params:new Q.Name("params"),propertyName:new Q.Name("propertyName"),message:new Q.Name("message"),schema:new Q.Name("schema"),parentSchema:new Q.Name("parentSchema")};function Fh(e,r,t){let{createErrors:n}=e.it;return n===!1?(0,Q._)`{}`:Gw(e,r,t)}function Gw(e,r,t={}){let{gen:n,it:i}=e,s=[Jw(i,t),Ww(e,t)];return Yw(e,r,s),n.object(...s)}function Jw({errorPath:e},{instancePath:r}){let t=r?(0,Q.str)`${e}${(0,Eo.getErrorPath)(r,Eo.Type.Str)}`:e;return[Te.default.instancePath,(0,Q.strConcat)(Te.default.instancePath,t)]}function Ww({keyword:e,it:{errSchemaPath:r}},{schemaPath:t,parentSchema:n}){let i=n?r:(0,Q.str)`${r}/${e}`;return t&&(i=(0,Q.str)`${i}${(0,Eo.getErrorPath)(t,Eo.Type.Str)}`),[xt.schemaPath,i]}function Yw(e,{params:r,message:t},n){let{keyword:i,data:s,schemaValue:o,it:a}=e,{opts:l,propertyName:f,topSchemaRef:g,schemaPath:y}=a;n.push([xt.keyword,i],[xt.params,typeof r=="function"?r(e):r||(0,Q._)`{}`]),l.messages&&n.push([xt.message,typeof t=="function"?t(e):t]),l.verbose&&n.push([xt.schema,o],[xt.parentSchema,(0,Q._)`${g}${y}`],[Te.default.data,s]),f&&n.push([xt.propertyName,f])}});var zh=j(Zt=>{"use strict";p();m();h();Object.defineProperty(Zt,"__esModule",{value:!0});Zt.boolOrEmptySchema=Zt.topBoolOrEmptySchema=void 0;var Xw=Jn(),Qw=V(),Zw=Ge(),e1={message:"boolean schema is false"};function r1(e){let{gen:r,schema:t,validateName:n}=e;t===!1?Vh(e,!1):typeof t=="object"&&t.$async===!0?r.return(Zw.default.data):(r.assign((0,Qw._)`${n}.errors`,null),r.return(!0))}Zt.topBoolOrEmptySchema=r1;function t1(e,r){let{gen:t,schema:n}=e;n===!1?(t.var(r,!1),Vh(e)):t.var(r,!0)}Zt.boolOrEmptySchema=t1;function Vh(e,r){let{gen:t,data:n}=e,i={gen:t,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,Xw.reportError)(i,e1,void 0,r)}});var Ha=j(en=>{"use strict";p();m();h();Object.defineProperty(en,"__esModule",{value:!0});en.getRules=en.isJSONType=void 0;var n1=["string","number","integer","boolean","null","object","array"],i1=new Set(n1);function o1(e){return typeof e=="string"&&i1.has(e)}en.isJSONType=o1;function s1(){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:{}}}en.getRules=s1});var Ka=j(Wr=>{"use strict";p();m();h();Object.defineProperty(Wr,"__esModule",{value:!0});Wr.shouldUseRule=Wr.shouldUseGroup=Wr.schemaHasRulesForType=void 0;function a1({schema:e,self:r},t){let n=r.RULES.types[t];return n&&n!==!0&&Hh(e,n)}Wr.schemaHasRulesForType=a1;function Hh(e,r){return r.rules.some(t=>Kh(e,t))}Wr.shouldUseGroup=Hh;function Kh(e,r){var t;return e[r.keyword]!==void 0||((t=r.definition.implements)===null||t===void 0?void 0:t.some(n=>e[n]!==void 0))}Wr.shouldUseRule=Kh});var Wn=j(qe=>{"use strict";p();m();h();Object.defineProperty(qe,"__esModule",{value:!0});qe.reportTypeError=qe.checkDataTypes=qe.checkDataType=qe.coerceAndCheckDataType=qe.getJSONTypes=qe.getSchemaTypes=qe.DataType=void 0;var u1=Ha(),c1=Ka(),l1=Jn(),z=V(),Gh=Y(),rn;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(rn||(qe.DataType=rn={}));function f1(e){let r=Jh(e.type);if(r.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!r.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&r.push("null")}return r}qe.getSchemaTypes=f1;function Jh(e){let r=Array.isArray(e)?e:e?[e]:[];if(r.every(u1.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}qe.getJSONTypes=Jh;function d1(e,r){let{gen:t,data:n,opts:i}=e,s=p1(r,i.coerceTypes),o=r.length>0&&!(s.length===0&&r.length===1&&(0,c1.schemaHasRulesForType)(e,r[0]));if(o){let a=Ja(r,n,i.strictNumbers,rn.Wrong);t.if(a,()=>{s.length?h1(e,r,s):Wa(e)})}return o}qe.coerceAndCheckDataType=d1;var Wh=new Set(["string","number","integer","boolean","null"]);function p1(e,r){return r?e.filter(t=>Wh.has(t)||r==="array"&&t==="array"):[]}function h1(e,r,t){let{gen:n,data:i,opts:s}=e,o=n.let("dataType",(0,z._)`typeof ${i}`),a=n.let("coerced",(0,z._)`undefined`);s.coerceTypes==="array"&&n.if((0,z._)`${o} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,z._)`${i}[0]`).assign(o,(0,z._)`typeof ${i}`).if(Ja(r,i,s.strictNumbers),()=>n.assign(a,i))),n.if((0,z._)`${a} !== undefined`);for(let f of t)(Wh.has(f)||f==="array"&&s.coerceTypes==="array")&&l(f);n.else(),Wa(e),n.endIf(),n.if((0,z._)`${a} !== undefined`,()=>{n.assign(i,a),m1(e,a)});function l(f){switch(f){case"string":n.elseIf((0,z._)`${o} == "number" || ${o} == "boolean"`).assign(a,(0,z._)`"" + ${i}`).elseIf((0,z._)`${i} === null`).assign(a,(0,z._)`""`);return;case"number":n.elseIf((0,z._)`${o} == "boolean" || ${i} === null +`)):a=e.stylize("[Circular]","special")),vt(o)){if(s&&i.match(/^\d+$/))return a;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+a}function bh(e){return Array.isArray(e)}function $a(e){return typeof e=="boolean"}function mo(e){return e===null}function wh(e){return typeof e=="number"}function fo(e){return typeof e=="string"}function vt(e){return e===void 0}function Nn(e){return Wt(e)&&_a(e)==="[object RegExp]"}function Wt(e){return typeof e=="object"&&e!==null}function po(e){return Wt(e)&&_a(e)==="[object Date]"}function Mn(e){return Wt(e)&&(_a(e)==="[object Error]"||e instanceof Error)}function so(e){return typeof e=="function"}function _a(e){return Object.prototype.toString.call(e)}function ya(e){return e<10?"0"+e.toString(10):e.toString(10)}function Bb(){var e=new Date,r=[ya(e.getHours()),ya(e.getMinutes()),ya(e.getSeconds())].join(":");return[e.getDate(),Db[e.getMonth()],r].join(" ")}function Ph(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function Ub(e,r){if(!e){var t=new Error("Promise was rejected with a falsy value");t.reason=e,e=t}return r(e)}var yb,ga,ho,ih,gb,vb,$b,_b,bb,oh,sh,Gp,wb,Pb,xb,ah,W,Eb,Sb,jb,uh,va,Ve,Me,Ob,le,qb,Ib,kb,Cn,k,_r,nh,Cb,io,_h,oo,Db,gt,yo=Fe(()=>{p();m();h();eo();yb=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",ga=Object.prototype.toString,ho=function(e){return!(yb&&e&&typeof e=="object"&&Symbol.toStringTag in e)&&ga.call(e)==="[object Arguments]"},ih=function(e){return!!ho(e)||e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&ga.call(e)!=="[object Array]"&&ga.call(e.callee)==="[object Function]"},gb=function(){return ho(arguments)}();ho.isLegacyArguments=ih;vb=gb?ho:ih,$b=Object.prototype.toString,_b=Function.prototype.toString,bb=/^\s*(?:function)?\*/,oh=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",sh=Object.getPrototypeOf,Gp=function(){if(!oh)return!1;try{return Function("return function*() {}")()}catch(e){}}(),wb=Gp?sh(Gp):{},Pb=function(e){return typeof e=="function"&&(!!bb.test(_b.call(e))||(oh?sh(e)===wb:$b.call(e)==="[object GeneratorFunction]"))},xb=typeof Object.create=="function"?function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,r){if(r){e.super_=r;var t=function(){};t.prototype=r.prototype,e.prototype=new t,e.prototype.constructor=e}},ah=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},W={},Eb=ah,Sb=vb,jb=Pb;uh=typeof BigInt<"u",va=typeof Symbol<"u",Ve=va&&Symbol.toStringTag!==void 0,Me=typeof Uint8Array<"u",Ob=typeof ArrayBuffer<"u";if(Me&&Ve)var Ab=Object.getPrototypeOf(Uint8Array.prototype),ze=$t(Object.getOwnPropertyDescriptor(Ab,Symbol.toStringTag).get);le=$t(Object.prototype.toString),qb=$t(Number.prototype.valueOf),Ib=$t(String.prototype.valueOf),kb=$t(Boolean.prototype.valueOf);if(uh)var Tb=$t(BigInt.prototype.valueOf);if(va)var Rb=$t(Symbol.prototype.valueOf);W.isArgumentsObject=Sb,W.isGeneratorFunction=jb,W.isPromise=function(e){return typeof Promise<"u"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"},W.isArrayBufferView=function(e){return Ob&&ArrayBuffer.isView?ArrayBuffer.isView(e):Jp(e)||Yp(e)},W.isTypedArray=Jp,W.isUint8Array=ch,W.isUint8ClampedArray=lh,W.isUint16Array=fh,W.isUint32Array=dh,W.isInt8Array=ph,W.isInt16Array=hh,W.isInt32Array=mh,W.isFloat32Array=yh,W.isFloat64Array=gh,W.isBigInt64Array=vh,W.isBigUint64Array=$h,ro.working=typeof Map<"u"&&ro(new Map),W.isMap=function(e){return typeof Map<"u"&&(ro.working?ro(e):e instanceof Map)},to.working=typeof Set<"u"&&to(new Set),W.isSet=function(e){return typeof Set<"u"&&(to.working?to(e):e instanceof Set)},no.working=typeof WeakMap<"u"&&no(new WeakMap),W.isWeakMap=function(e){return typeof WeakMap<"u"&&(no.working?no(e):e instanceof WeakMap)},pa.working=typeof WeakSet<"u"&&pa(new WeakSet),W.isWeakSet=function(e){return pa(e)},ao.working=typeof ArrayBuffer<"u"&&ao(new ArrayBuffer),W.isArrayBuffer=Wp,uo.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&uo(new DataView(new ArrayBuffer(1),0,1)),W.isDataView=Yp,co.working=typeof SharedArrayBuffer<"u"&&co(new SharedArrayBuffer),W.isSharedArrayBuffer=Xp,W.isAsyncFunction=function(e){return le(e)==="[object AsyncFunction]"},W.isMapIterator=function(e){return le(e)==="[object Map Iterator]"},W.isSetIterator=function(e){return le(e)==="[object Set Iterator]"},W.isGeneratorObject=function(e){return le(e)==="[object Generator]"},W.isWebAssemblyCompiledModule=function(e){return le(e)==="[object WebAssembly.Module]"},W.isNumberObject=Qp,W.isStringObject=Zp,W.isBooleanObject=eh,W.isBigIntObject=rh,W.isSymbolObject=th,W.isBoxedPrimitive=function(e){return Qp(e)||Zp(e)||eh(e)||rh(e)||th(e)},W.isAnyArrayBuffer=function(e){return Me&&(Wp(e)||Xp(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(W,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})});Cn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,k={},_r=ce,nh=Object.getOwnPropertyDescriptors||function(e){for(var r=Object.keys(e),t={},n=0;n=i)return a;switch(a){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch(l){return"[Circular]"}default:return a}}),o=n[t];t{p();m();h();yo();eo();k._extend;k.callbackify;k.debuglog;k.deprecate;k.format;k.inherits;k.inspect;k.isArray;k.isBoolean;k.isBuffer;k.isDate;k.isError;k.isFunction;k.isNull;k.isNullOrUndefined;k.isNumber;k.isObject;k.isPrimitive;k.isRegExp;k.isString;k.isSymbol;k.isUndefined;k.log;k.promisify;R2=k._extend,C2=k.callbackify,N2=k.debuglog,M2=k.deprecate,D2=k.format,B2=k.inherits,U2=k.inspect,L2=k.isArray,F2=k.isBoolean,V2=k.isBuffer,z2=k.isDate,H2=k.isError,K2=k.isFunction,G2=k.isNull,J2=k.isNullOrUndefined,W2=k.isNumber,Y2=k.isObject,X2=k.isPrimitive,Q2=k.isRegExp,Z2=k.isString,eR=k.isSymbol,rR=k.isUndefined,tR=k.log,nR=k.promisify,iR=k.types,oR=self.TextEncoder,sR=self.TextDecoder});var ba={};ki(ba,{TextDecoder:()=>pw,TextEncoder:()=>dw,_extend:()=>Lb,callbackify:()=>Fb,debuglog:()=>Vb,default:()=>k,deprecate:()=>zb,format:()=>Hb,inherits:()=>Kb,inspect:()=>Gb,isArray:()=>Jb,isBoolean:()=>Wb,isBuffer:()=>Yb,isDate:()=>Xb,isError:()=>Qb,isFunction:()=>Zb,isNull:()=>ew,isNullOrUndefined:()=>rw,isNumber:()=>tw,isObject:()=>nw,isPrimitive:()=>iw,isRegExp:()=>ow,isString:()=>sw,isSymbol:()=>aw,isUndefined:()=>uw,log:()=>cw,promisify:()=>lw,types:()=>fw});var Lb,Fb,Vb,zb,Hb,Kb,Gb,Jb,Wb,Yb,Xb,Qb,Zb,ew,rw,tw,nw,iw,ow,sw,aw,uw,cw,lw,fw,dw,pw,wa=Fe(()=>{p();m();h();xh();yo();yo();eo();Lb=k._extend,Fb=k.callbackify,Vb=k.debuglog,zb=k.deprecate,Hb=k.format,Kb=k.inherits,Gb=k.inspect,Jb=k.isArray,Wb=k.isBoolean,Yb=k.isBuffer,Xb=k.isDate,Qb=k.isError,Zb=k.isFunction,ew=k.isNull,rw=k.isNullOrUndefined,tw=k.isNumber,nw=k.isObject,iw=k.isPrimitive,ow=k.isRegExp,sw=k.isString,aw=k.isSymbol,uw=k.isUndefined,cw=k.log,lw=k.promisify,fw=k.types,dw=k.TextEncoder=globalThis.TextEncoder,pw=k.TextDecoder=globalThis.TextDecoder});var Sh=j(Eh=>{"use strict";p();m();h();Object.defineProperty(Eh,"__esModule",{value:!0});var vR=(wa(),Nt(ba))});var He=j((rr,Yt)=>{"use strict";p();m();h();var hw=rr&&rr.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t),Object.defineProperty(e,n,{enumerable:!0,get:function(){return r[t]}})}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),mw=rr&&rr.__exportStar||function(e,r){for(var t in e)t!=="default"&&!r.hasOwnProperty(t)&&hw(r,e,t)};Object.defineProperty(rr,"__esModule",{value:!0});rr.ono=void 0;var jh=Fp();Object.defineProperty(rr,"ono",{enumerable:!0,get:function(){return jh.ono}});var yw=la();Object.defineProperty(rr,"Ono",{enumerable:!0,get:function(){return yw.Ono}});mw(Sh(),rr);rr.default=jh.ono;typeof Yt=="object"&&typeof Yt.exports=="object"&&(Yt.exports=Object.assign(Yt.exports.default,Yt.exports))});var go=j(Bn=>{"use strict";p();m();h();var Oh=(wa(),Nt(ba));Bn.format=Oh.format;Bn.inherits=Oh.inherits;var gw=e=>new URL(e);Bn.swaggerParamRegExp=/\{([^/}]+)}/g;var vw=["get","post","put","delete","patch","options","head","trace"];function Pa(e,r){if(e.url&&e.url.startsWith("/")){let t=gw(r),n=t.protocol+"//"+t.hostname+e.url;return e.url=n,e}}function $w(e,r){e.openapi&&r&&(r.startsWith("http:")||r.startsWith("https:"))&&(e.servers&&e.servers.map(t=>Pa(t,r)),["paths","webhooks"].forEach(t=>{Object.keys(e[t]||[]).forEach(n=>{let i=e[t][n];Object.keys(i).forEach(s=>{s==="servers"?i[s].map(o=>Pa(o,r)):vw.includes(s)&&i[s].servers&&i[s].servers.map(o=>Pa(o,r))})})}))}Bn.fixOasRelativeServers=$w});var Fn=j(Z=>{"use strict";p();m();h();Object.defineProperty(Z,"__esModule",{value:!0});Z.regexpCode=Z.getEsmExportName=Z.getProperty=Z.safeStringify=Z.stringify=Z.strConcat=Z.addCodeArg=Z.str=Z._=Z.nil=Z._Code=Z.Name=Z.IDENTIFIER=Z._CodeOrName=void 0;var Un=class{};Z._CodeOrName=Un;Z.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var _t=class extends Un{constructor(r){if(super(),!Z.IDENTIFIER.test(r))throw new Error("CodeGen: name must be a valid identifier");this.str=r}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Z.Name=_t;var Ke=class extends Un{constructor(r){super(),this._items=typeof r=="string"?[r]:r}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let r=this._items[0];return r===""||r==='""'}get str(){var r;return(r=this._str)!==null&&r!==void 0?r:this._str=this._items.reduce((t,n)=>`${t}${n}`,"")}get names(){var r;return(r=this._names)!==null&&r!==void 0?r:this._names=this._items.reduce((t,n)=>(n instanceof _t&&(t[n.str]=(t[n.str]||0)+1),t),{})}};Z._Code=Ke;Z.nil=new Ke("");function Ah(e,...r){let t=[e[0]],n=0;for(;n{"use strict";p();m();h();Object.defineProperty(Be,"__esModule",{value:!0});Be.ValueScope=Be.ValueScopeName=Be.Scope=Be.varKinds=Be.UsedValueState=void 0;var De=Fn(),Sa=class extends Error{constructor(r){super(`CodeGen: "code" for ${r} not defined`),this.value=r.value}},vo;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(vo||(Be.UsedValueState=vo={}));Be.varKinds={const:new De.Name("const"),let:new De.Name("let"),var:new De.Name("var")};var $o=class{constructor({prefixes:r,parent:t}={}){this._names={},this._prefixes=r,this._parent=t}toName(r){return r instanceof De.Name?r:this.name(r)}name(r){return new De.Name(this._newName(r))}_newName(r){let t=this._names[r]||this._nameGroup(r);return`${r}${t.index++}`}_nameGroup(r){var t,n;if(!((n=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||n===void 0)&&n.has(r)||this._prefixes&&!this._prefixes.has(r))throw new Error(`CodeGen: prefix "${r}" is not allowed in this scope`);return this._names[r]={prefix:r,index:0}}};Be.Scope=$o;var _o=class extends De.Name{constructor(r,t){super(t),this.prefix=r}setValue(r,{property:t,itemIndex:n}){this.value=r,this.scopePath=(0,De._)`.${new De.Name(t)}[${n}]`}};Be.ValueScopeName=_o;var Ow=(0,De._)`\n`,ja=class extends $o{constructor(r){super(r),this._values={},this._scope=r.scope,this.opts={...r,_n:r.lines?Ow:De.nil}}get(){return this._scope}name(r){return new _o(r,this._newName(r))}value(r,t){var n;if(t.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(r),{prefix:s}=i,o=(n=t.key)!==null&&n!==void 0?n:t.ref,a=this._values[s];if(a){let g=a.get(o);if(g)return g}else a=this._values[s]=new Map;a.set(o,i);let l=this._scope[s]||(this._scope[s]=[]),f=l.length;return l[f]=t.ref,i.setValue(t,{property:s,itemIndex:f}),i}getValue(r,t){let n=this._values[r];if(n)return n.get(t)}scopeRefs(r,t=this._values){return this._reduceValues(t,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,De._)`${r}${n.scopePath}`})}scopeCode(r=this._values,t,n){return this._reduceValues(r,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},t,n)}_reduceValues(r,t,n={},i){let s=De.nil;for(let o in r){let a=r[o];if(!a)continue;let l=n[o]=n[o]||new Map;a.forEach(f=>{if(l.has(f))return;l.set(f,vo.Started);let g=t(f);if(g){let y=this.opts.es5?Be.varKinds.var:Be.varKinds.const;s=(0,De._)`${s}${y} ${f} = ${g};${this.opts._n}`}else if(g=i==null?void 0:i(f))s=(0,De._)`${s}${g}${this.opts._n}`;else throw new Sa(f);l.set(f,vo.Completed)})}return s}};Be.ValueScope=ja});var V=j(K=>{"use strict";p();m();h();Object.defineProperty(K,"__esModule",{value:!0});K.or=K.and=K.not=K.CodeGen=K.operators=K.varKinds=K.ValueScopeName=K.ValueScope=K.Scope=K.Name=K.regexpCode=K.stringify=K.getProperty=K.nil=K.strConcat=K.str=K._=void 0;var X=Fn(),tr=Oa(),Jr=Fn();Object.defineProperty(K,"_",{enumerable:!0,get:function(){return Jr._}});Object.defineProperty(K,"str",{enumerable:!0,get:function(){return Jr.str}});Object.defineProperty(K,"strConcat",{enumerable:!0,get:function(){return Jr.strConcat}});Object.defineProperty(K,"nil",{enumerable:!0,get:function(){return Jr.nil}});Object.defineProperty(K,"getProperty",{enumerable:!0,get:function(){return Jr.getProperty}});Object.defineProperty(K,"stringify",{enumerable:!0,get:function(){return Jr.stringify}});Object.defineProperty(K,"regexpCode",{enumerable:!0,get:function(){return Jr.regexpCode}});Object.defineProperty(K,"Name",{enumerable:!0,get:function(){return Jr.Name}});var xo=Oa();Object.defineProperty(K,"Scope",{enumerable:!0,get:function(){return xo.Scope}});Object.defineProperty(K,"ValueScope",{enumerable:!0,get:function(){return xo.ValueScope}});Object.defineProperty(K,"ValueScopeName",{enumerable:!0,get:function(){return xo.ValueScopeName}});Object.defineProperty(K,"varKinds",{enumerable:!0,get:function(){return xo.varKinds}});K.operators={GT:new X._Code(">"),GTE:new X._Code(">="),LT:new X._Code("<"),LTE:new X._Code("<="),EQ:new X._Code("==="),NEQ:new X._Code("!=="),NOT:new X._Code("!"),OR:new X._Code("||"),AND:new X._Code("&&"),ADD:new X._Code("+")};var Cr=class{optimizeNodes(){return this}optimizeNames(r,t){return this}},Aa=class extends Cr{constructor(r,t,n){super(),this.varKind=r,this.name=t,this.rhs=n}render({es5:r,_n:t}){let n=r?tr.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+t}optimizeNames(r,t){if(r[this.name.str])return this.rhs&&(this.rhs=Qt(this.rhs,r,t)),this}get names(){return this.rhs instanceof X._CodeOrName?this.rhs.names:{}}},bo=class extends Cr{constructor(r,t,n){super(),this.lhs=r,this.rhs=t,this.sideEffects=n}render({_n:r}){return`${this.lhs} = ${this.rhs};`+r}optimizeNames(r,t){if(!(this.lhs instanceof X.Name&&!r[this.lhs.str]&&!this.sideEffects))return this.rhs=Qt(this.rhs,r,t),this}get names(){let r=this.lhs instanceof X.Name?{}:{...this.lhs.names};return Po(r,this.rhs)}},qa=class extends bo{constructor(r,t,n,i){super(r,n,i),this.op=t}render({_n:r}){return`${this.lhs} ${this.op}= ${this.rhs};`+r}},Ia=class extends Cr{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`${this.label}:`+r}},ka=class extends Cr{constructor(r){super(),this.label=r,this.names={}}render({_n:r}){return`break${this.label?` ${this.label}`:""};`+r}},Ta=class extends Cr{constructor(r){super(),this.error=r}render({_n:r}){return`throw ${this.error};`+r}get names(){return this.error.names}},Ra=class extends Cr{constructor(r){super(),this.code=r}render({_n:r}){return`${this.code};`+r}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(r,t){return this.code=Qt(this.code,r,t),this}get names(){return this.code instanceof X._CodeOrName?this.code.names:{}}},Vn=class extends Cr{constructor(r=[]){super(),this.nodes=r}render(r){return this.nodes.reduce((t,n)=>t+n.render(r),"")}optimizeNodes(){let{nodes:r}=this,t=r.length;for(;t--;){let n=r[t].optimizeNodes();Array.isArray(n)?r.splice(t,1,...n):n?r[t]=n:r.splice(t,1)}return r.length>0?this:void 0}optimizeNames(r,t){let{nodes:n}=this,i=n.length;for(;i--;){let s=n[i];s.optimizeNames(r,t)||(Aw(r,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((r,t)=>Pt(r,t.names),{})}},Nr=class extends Vn{render(r){return"{"+r._n+super.render(r)+"}"+r._n}},Ca=class extends Vn{},Xt=class extends Nr{};Xt.kind="else";var bt=class e extends Nr{constructor(r,t){super(t),this.condition=r}render(r){let t=`if(${this.condition})`+super.render(r);return this.else&&(t+="else "+this.else.render(r)),t}optimizeNodes(){super.optimizeNodes();let r=this.condition;if(r===!0)return this.nodes;let t=this.else;if(t){let n=t.optimizeNodes();t=this.else=Array.isArray(n)?new Xt(n):n}if(t)return r===!1?t instanceof e?t:t.nodes:this.nodes.length?this:new e(Ih(r),t instanceof e?[t]:t.nodes);if(!(r===!1||!this.nodes.length))return this}optimizeNames(r,t){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(r,t),!!(super.optimizeNames(r,t)||this.else))return this.condition=Qt(this.condition,r,t),this}get names(){let r=super.names;return Po(r,this.condition),this.else&&Pt(r,this.else.names),r}};bt.kind="if";var wt=class extends Nr{};wt.kind="for";var Na=class extends wt{constructor(r){super(),this.iteration=r}render(r){return`for(${this.iteration})`+super.render(r)}optimizeNames(r,t){if(super.optimizeNames(r,t))return this.iteration=Qt(this.iteration,r,t),this}get names(){return Pt(super.names,this.iteration.names)}},Ma=class extends wt{constructor(r,t,n,i){super(),this.varKind=r,this.name=t,this.from=n,this.to=i}render(r){let t=r.es5?tr.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${t} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(r)}get names(){let r=Po(super.names,this.from);return Po(r,this.to)}},wo=class extends wt{constructor(r,t,n,i){super(),this.loop=r,this.varKind=t,this.name=n,this.iterable=i}render(r){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(r)}optimizeNames(r,t){if(super.optimizeNames(r,t))return this.iterable=Qt(this.iterable,r,t),this}get names(){return Pt(super.names,this.iterable.names)}},zn=class extends Nr{constructor(r,t,n){super(),this.name=r,this.args=t,this.async=n}render(r){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(r)}};zn.kind="func";var Hn=class extends Vn{render(r){return"return "+super.render(r)}};Hn.kind="return";var Da=class extends Nr{render(r){let t="try"+super.render(r);return this.catch&&(t+=this.catch.render(r)),this.finally&&(t+=this.finally.render(r)),t}optimizeNodes(){var r,t;return super.optimizeNodes(),(r=this.catch)===null||r===void 0||r.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(r,t){var n,i;return super.optimizeNames(r,t),(n=this.catch)===null||n===void 0||n.optimizeNames(r,t),(i=this.finally)===null||i===void 0||i.optimizeNames(r,t),this}get names(){let r=super.names;return this.catch&&Pt(r,this.catch.names),this.finally&&Pt(r,this.finally.names),r}},Kn=class extends Nr{constructor(r){super(),this.error=r}render(r){return`catch(${this.error})`+super.render(r)}};Kn.kind="catch";var Gn=class extends Nr{render(r){return"finally"+super.render(r)}};Gn.kind="finally";var Ba=class{constructor(r,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?` +`:""},this._extScope=r,this._scope=new tr.Scope({parent:r}),this._nodes=[new Ca]}toString(){return this._root.render(this.opts)}name(r){return this._scope.name(r)}scopeName(r){return this._extScope.name(r)}scopeValue(r,t){let n=this._extScope.value(r,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(r,t){return this._extScope.getValue(r,t)}scopeRefs(r){return this._extScope.scopeRefs(r,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(r,t,n,i){let s=this._scope.toName(t);return n!==void 0&&i&&(this._constants[s.str]=n),this._leafNode(new Aa(r,s,n)),s}const(r,t,n){return this._def(tr.varKinds.const,r,t,n)}let(r,t,n){return this._def(tr.varKinds.let,r,t,n)}var(r,t,n){return this._def(tr.varKinds.var,r,t,n)}assign(r,t,n){return this._leafNode(new bo(r,t,n))}add(r,t){return this._leafNode(new qa(r,K.operators.ADD,t))}code(r){return typeof r=="function"?r():r!==X.nil&&this._leafNode(new Ra(r)),this}object(...r){let t=["{"];for(let[n,i]of r)t.length>1&&t.push(","),t.push(n),(n!==i||this.opts.es5)&&(t.push(":"),(0,X.addCodeArg)(t,i));return t.push("}"),new X._Code(t)}if(r,t,n){if(this._blockNode(new bt(r)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(r){return this._elseNode(new bt(r))}else(){return this._elseNode(new Xt)}endIf(){return this._endBlockNode(bt,Xt)}_for(r,t){return this._blockNode(r),t&&this.code(t).endFor(),this}for(r,t){return this._for(new Na(r),t)}forRange(r,t,n,i,s=this.opts.es5?tr.varKinds.var:tr.varKinds.let){let o=this._scope.toName(r);return this._for(new Ma(s,o,t,n),()=>i(o))}forOf(r,t,n,i=tr.varKinds.const){let s=this._scope.toName(r);if(this.opts.es5){let o=t instanceof X.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,X._)`${o}.length`,a=>{this.var(s,(0,X._)`${o}[${a}]`),n(s)})}return this._for(new wo("of",i,s,t),()=>n(s))}forIn(r,t,n,i=this.opts.es5?tr.varKinds.var:tr.varKinds.const){if(this.opts.ownProperties)return this.forOf(r,(0,X._)`Object.keys(${t})`,n);let s=this._scope.toName(r);return this._for(new wo("in",i,s,t),()=>n(s))}endFor(){return this._endBlockNode(wt)}label(r){return this._leafNode(new Ia(r))}break(r){return this._leafNode(new ka(r))}return(r){let t=new Hn;if(this._blockNode(t),this.code(r),t.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Hn)}try(r,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Da;if(this._blockNode(i),this.code(r),t){let s=this.name("e");this._currNode=i.catch=new Kn(s),t(s)}return n&&(this._currNode=i.finally=new Gn,this.code(n)),this._endBlockNode(Kn,Gn)}throw(r){return this._leafNode(new Ta(r))}block(r,t){return this._blockStarts.push(this._nodes.length),r&&this.code(r).endBlock(t),this}endBlock(r){let t=this._blockStarts.pop();if(t===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-t;if(n<0||r!==void 0&&n!==r)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${r} expected`);return this._nodes.length=t,this}func(r,t=X.nil,n,i){return this._blockNode(new zn(r,t,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(zn)}optimize(r=1){for(;r-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(r){return this._currNode.nodes.push(r),this}_blockNode(r){this._currNode.nodes.push(r),this._nodes.push(r)}_endBlockNode(r,t){let n=this._currNode;if(n instanceof r||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${r.kind}/${t.kind}`:r.kind}"`)}_elseNode(r){let t=this._currNode;if(!(t instanceof bt))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=r,this}get _root(){return this._nodes[0]}get _currNode(){let r=this._nodes;return r[r.length-1]}set _currNode(r){let t=this._nodes;t[t.length-1]=r}};K.CodeGen=Ba;function Pt(e,r){for(let t in r)e[t]=(e[t]||0)+(r[t]||0);return e}function Po(e,r){return r instanceof X._CodeOrName?Pt(e,r.names):e}function Qt(e,r,t){if(e instanceof X.Name)return n(e);if(!i(e))return e;return new X._Code(e._items.reduce((s,o)=>(o instanceof X.Name&&(o=n(o)),o instanceof X._Code?s.push(...o._items):s.push(o),s),[]));function n(s){let o=t[s.str];return o===void 0||r[s.str]!==1?s:(delete r[s.str],o)}function i(s){return s instanceof X._Code&&s._items.some(o=>o instanceof X.Name&&r[o.str]===1&&t[o.str]!==void 0)}}function Aw(e,r){for(let t in r)e[t]=(e[t]||0)-(r[t]||0)}function Ih(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,X._)`!${Ua(e)}`}K.not=Ih;var qw=kh(K.operators.AND);function Iw(...e){return e.reduce(qw)}K.and=Iw;var kw=kh(K.operators.OR);function Tw(...e){return e.reduce(kw)}K.or=Tw;function kh(e){return(r,t)=>r===X.nil?t:t===X.nil?r:(0,X._)`${Ua(r)} ${e} ${Ua(t)}`}function Ua(e){return e instanceof X.Name?e:(0,X._)`(${e})`}});var Y=j(J=>{"use strict";p();m();h();Object.defineProperty(J,"__esModule",{value:!0});J.checkStrictMode=J.getErrorPath=J.Type=J.useFunc=J.setEvaluated=J.evaluatedPropsToName=J.mergeEvaluated=J.eachItem=J.unescapeJsonPointer=J.escapeJsonPointer=J.escapeFragment=J.unescapeFragment=J.schemaRefOrVal=J.schemaHasRulesButRef=J.schemaHasRules=J.checkUnknownRules=J.alwaysValidSchema=J.toHash=void 0;var te=V(),Rw=Fn();function Cw(e){let r={};for(let t of e)r[t]=!0;return r}J.toHash=Cw;function Nw(e,r){return typeof r=="boolean"?r:Object.keys(r).length===0?!0:(Ch(e,r),!Nh(r,e.self.RULES.all))}J.alwaysValidSchema=Nw;function Ch(e,r=e.schema){let{opts:t,self:n}=e;if(!t.strictSchema||typeof r=="boolean")return;let i=n.RULES.keywords;for(let s in r)i[s]||Bh(e,`unknown keyword: "${s}"`)}J.checkUnknownRules=Ch;function Nh(e,r){if(typeof e=="boolean")return!e;for(let t in e)if(r[t])return!0;return!1}J.schemaHasRules=Nh;function Mw(e,r){if(typeof e=="boolean")return!e;for(let t in e)if(t!=="$ref"&&r.all[t])return!0;return!1}J.schemaHasRulesButRef=Mw;function Dw({topSchemaRef:e,schemaPath:r},t,n,i){if(!i){if(typeof t=="number"||typeof t=="boolean")return t;if(typeof t=="string")return(0,te._)`${t}`}return(0,te._)`${e}${r}${(0,te.getProperty)(n)}`}J.schemaRefOrVal=Dw;function Bw(e){return Mh(decodeURIComponent(e))}J.unescapeFragment=Bw;function Uw(e){return encodeURIComponent(Fa(e))}J.escapeFragment=Uw;function Fa(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}J.escapeJsonPointer=Fa;function Mh(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}J.unescapeJsonPointer=Mh;function Lw(e,r){if(Array.isArray(e))for(let t of e)r(t);else r(e)}J.eachItem=Lw;function Th({mergeNames:e,mergeToName:r,mergeValues:t,resultToName:n}){return(i,s,o,a)=>{let l=o===void 0?s:o instanceof te.Name?(s instanceof te.Name?e(i,s,o):r(i,s,o),o):s instanceof te.Name?(r(i,o,s),s):t(s,o);return a===te.Name&&!(l instanceof te.Name)?n(i,l):l}}J.mergeEvaluated={props:Th({mergeNames:(e,r,t)=>e.if((0,te._)`${t} !== true && ${r} !== undefined`,()=>{e.if((0,te._)`${r} === true`,()=>e.assign(t,!0),()=>e.assign(t,(0,te._)`${t} || {}`).code((0,te._)`Object.assign(${t}, ${r})`))}),mergeToName:(e,r,t)=>e.if((0,te._)`${t} !== true`,()=>{r===!0?e.assign(t,!0):(e.assign(t,(0,te._)`${t} || {}`),Va(e,t,r))}),mergeValues:(e,r)=>e===!0?!0:{...e,...r},resultToName:Dh}),items:Th({mergeNames:(e,r,t)=>e.if((0,te._)`${t} !== true && ${r} !== undefined`,()=>e.assign(t,(0,te._)`${r} === true ? true : ${t} > ${r} ? ${t} : ${r}`)),mergeToName:(e,r,t)=>e.if((0,te._)`${t} !== true`,()=>e.assign(t,r===!0?!0:(0,te._)`${t} > ${r} ? ${t} : ${r}`)),mergeValues:(e,r)=>e===!0?!0:Math.max(e,r),resultToName:(e,r)=>e.var("items",r)})};function Dh(e,r){if(r===!0)return e.var("props",!0);let t=e.var("props",(0,te._)`{}`);return r!==void 0&&Va(e,t,r),t}J.evaluatedPropsToName=Dh;function Va(e,r,t){Object.keys(t).forEach(n=>e.assign((0,te._)`${r}${(0,te.getProperty)(n)}`,!0))}J.setEvaluated=Va;var Rh={};function Fw(e,r){return e.scopeValue("func",{ref:r,code:Rh[r.code]||(Rh[r.code]=new Rw._Code(r.code))})}J.useFunc=Fw;var La;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(La||(J.Type=La={}));function Vw(e,r,t){if(e instanceof te.Name){let n=r===La.Num;return t?n?(0,te._)`"[" + ${e} + "]"`:(0,te._)`"['" + ${e} + "']"`:n?(0,te._)`"/" + ${e}`:(0,te._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return t?(0,te.getProperty)(e).toString():"/"+Fa(e)}J.getErrorPath=Vw;function Bh(e,r,t=e.opts.strictSchema){if(t){if(r=`strict mode: ${r}`,t===!0)throw new Error(r);e.self.logger.warn(r)}}J.checkStrictMode=Bh});var Ge=j(za=>{"use strict";p();m();h();Object.defineProperty(za,"__esModule",{value:!0});var Oe=V(),zw={data:new Oe.Name("data"),valCxt:new Oe.Name("valCxt"),instancePath:new Oe.Name("instancePath"),parentData:new Oe.Name("parentData"),parentDataProperty:new Oe.Name("parentDataProperty"),rootData:new Oe.Name("rootData"),dynamicAnchors:new Oe.Name("dynamicAnchors"),vErrors:new Oe.Name("vErrors"),errors:new Oe.Name("errors"),this:new Oe.Name("this"),self:new Oe.Name("self"),scope:new Oe.Name("scope"),json:new Oe.Name("json"),jsonPos:new Oe.Name("jsonPos"),jsonLen:new Oe.Name("jsonLen"),jsonPart:new Oe.Name("jsonPart")};za.default=zw});var Jn=j(Ae=>{"use strict";p();m();h();Object.defineProperty(Ae,"__esModule",{value:!0});Ae.extendErrors=Ae.resetErrorsCount=Ae.reportExtraError=Ae.reportError=Ae.keyword$DataError=Ae.keywordError=void 0;var Q=V(),Eo=Y(),Te=Ge();Ae.keywordError={message:({keyword:e})=>(0,Q.str)`must pass "${e}" keyword validation`};Ae.keyword$DataError={message:({keyword:e,schemaType:r})=>r?(0,Q.str)`"${e}" keyword must be ${r} ($data)`:(0,Q.str)`"${e}" keyword is invalid ($data)`};function Hw(e,r=Ae.keywordError,t,n){let{it:i}=e,{gen:s,compositeRule:o,allErrors:a}=i,l=Fh(e,r,t);(n!=null?n:o||a)?Uh(s,l):Lh(i,(0,Q._)`[${l}]`)}Ae.reportError=Hw;function Kw(e,r=Ae.keywordError,t){let{it:n}=e,{gen:i,compositeRule:s,allErrors:o}=n,a=Fh(e,r,t);Uh(i,a),s||o||Lh(n,Te.default.vErrors)}Ae.reportExtraError=Kw;function Gw(e,r){e.assign(Te.default.errors,r),e.if((0,Q._)`${Te.default.vErrors} !== null`,()=>e.if(r,()=>e.assign((0,Q._)`${Te.default.vErrors}.length`,r),()=>e.assign(Te.default.vErrors,null)))}Ae.resetErrorsCount=Gw;function Jw({gen:e,keyword:r,schemaValue:t,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");let o=e.name("err");e.forRange("i",i,Te.default.errors,a=>{e.const(o,(0,Q._)`${Te.default.vErrors}[${a}]`),e.if((0,Q._)`${o}.instancePath === undefined`,()=>e.assign((0,Q._)`${o}.instancePath`,(0,Q.strConcat)(Te.default.instancePath,s.errorPath))),e.assign((0,Q._)`${o}.schemaPath`,(0,Q.str)`${s.errSchemaPath}/${r}`),s.opts.verbose&&(e.assign((0,Q._)`${o}.schema`,t),e.assign((0,Q._)`${o}.data`,n))})}Ae.extendErrors=Jw;function Uh(e,r){let t=e.const("err",r);e.if((0,Q._)`${Te.default.vErrors} === null`,()=>e.assign(Te.default.vErrors,(0,Q._)`[${t}]`),(0,Q._)`${Te.default.vErrors}.push(${t})`),e.code((0,Q._)`${Te.default.errors}++`)}function Lh(e,r){let{gen:t,validateName:n,schemaEnv:i}=e;i.$async?t.throw((0,Q._)`new ${e.ValidationError}(${r})`):(t.assign((0,Q._)`${n}.errors`,r),t.return(!1))}var xt={keyword:new Q.Name("keyword"),schemaPath:new Q.Name("schemaPath"),params:new Q.Name("params"),propertyName:new Q.Name("propertyName"),message:new Q.Name("message"),schema:new Q.Name("schema"),parentSchema:new Q.Name("parentSchema")};function Fh(e,r,t){let{createErrors:n}=e.it;return n===!1?(0,Q._)`{}`:Ww(e,r,t)}function Ww(e,r,t={}){let{gen:n,it:i}=e,s=[Yw(i,t),Xw(e,t)];return Qw(e,r,s),n.object(...s)}function Yw({errorPath:e},{instancePath:r}){let t=r?(0,Q.str)`${e}${(0,Eo.getErrorPath)(r,Eo.Type.Str)}`:e;return[Te.default.instancePath,(0,Q.strConcat)(Te.default.instancePath,t)]}function Xw({keyword:e,it:{errSchemaPath:r}},{schemaPath:t,parentSchema:n}){let i=n?r:(0,Q.str)`${r}/${e}`;return t&&(i=(0,Q.str)`${i}${(0,Eo.getErrorPath)(t,Eo.Type.Str)}`),[xt.schemaPath,i]}function Qw(e,{params:r,message:t},n){let{keyword:i,data:s,schemaValue:o,it:a}=e,{opts:l,propertyName:f,topSchemaRef:g,schemaPath:y}=a;n.push([xt.keyword,i],[xt.params,typeof r=="function"?r(e):r||(0,Q._)`{}`]),l.messages&&n.push([xt.message,typeof t=="function"?t(e):t]),l.verbose&&n.push([xt.schema,o],[xt.parentSchema,(0,Q._)`${g}${y}`],[Te.default.data,s]),f&&n.push([xt.propertyName,f])}});var zh=j(Zt=>{"use strict";p();m();h();Object.defineProperty(Zt,"__esModule",{value:!0});Zt.boolOrEmptySchema=Zt.topBoolOrEmptySchema=void 0;var Zw=Jn(),e1=V(),r1=Ge(),t1={message:"boolean schema is false"};function n1(e){let{gen:r,schema:t,validateName:n}=e;t===!1?Vh(e,!1):typeof t=="object"&&t.$async===!0?r.return(r1.default.data):(r.assign((0,e1._)`${n}.errors`,null),r.return(!0))}Zt.topBoolOrEmptySchema=n1;function i1(e,r){let{gen:t,schema:n}=e;n===!1?(t.var(r,!1),Vh(e)):t.var(r,!0)}Zt.boolOrEmptySchema=i1;function Vh(e,r){let{gen:t,data:n}=e,i={gen:t,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,Zw.reportError)(i,t1,void 0,r)}});var Ha=j(en=>{"use strict";p();m();h();Object.defineProperty(en,"__esModule",{value:!0});en.getRules=en.isJSONType=void 0;var o1=["string","number","integer","boolean","null","object","array"],s1=new Set(o1);function a1(e){return typeof e=="string"&&s1.has(e)}en.isJSONType=a1;function u1(){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:{}}}en.getRules=u1});var Ka=j(Wr=>{"use strict";p();m();h();Object.defineProperty(Wr,"__esModule",{value:!0});Wr.shouldUseRule=Wr.shouldUseGroup=Wr.schemaHasRulesForType=void 0;function c1({schema:e,self:r},t){let n=r.RULES.types[t];return n&&n!==!0&&Hh(e,n)}Wr.schemaHasRulesForType=c1;function Hh(e,r){return r.rules.some(t=>Kh(e,t))}Wr.shouldUseGroup=Hh;function Kh(e,r){var t;return e[r.keyword]!==void 0||((t=r.definition.implements)===null||t===void 0?void 0:t.some(n=>e[n]!==void 0))}Wr.shouldUseRule=Kh});var Wn=j(qe=>{"use strict";p();m();h();Object.defineProperty(qe,"__esModule",{value:!0});qe.reportTypeError=qe.checkDataTypes=qe.checkDataType=qe.coerceAndCheckDataType=qe.getJSONTypes=qe.getSchemaTypes=qe.DataType=void 0;var l1=Ha(),f1=Ka(),d1=Jn(),z=V(),Gh=Y(),rn;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(rn||(qe.DataType=rn={}));function p1(e){let r=Jh(e.type);if(r.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!r.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&r.push("null")}return r}qe.getSchemaTypes=p1;function Jh(e){let r=Array.isArray(e)?e:e?[e]:[];if(r.every(l1.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}qe.getJSONTypes=Jh;function h1(e,r){let{gen:t,data:n,opts:i}=e,s=m1(r,i.coerceTypes),o=r.length>0&&!(s.length===0&&r.length===1&&(0,f1.schemaHasRulesForType)(e,r[0]));if(o){let a=Ja(r,n,i.strictNumbers,rn.Wrong);t.if(a,()=>{s.length?y1(e,r,s):Wa(e)})}return o}qe.coerceAndCheckDataType=h1;var Wh=new Set(["string","number","integer","boolean","null"]);function m1(e,r){return r?e.filter(t=>Wh.has(t)||r==="array"&&t==="array"):[]}function y1(e,r,t){let{gen:n,data:i,opts:s}=e,o=n.let("dataType",(0,z._)`typeof ${i}`),a=n.let("coerced",(0,z._)`undefined`);s.coerceTypes==="array"&&n.if((0,z._)`${o} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,z._)`${i}[0]`).assign(o,(0,z._)`typeof ${i}`).if(Ja(r,i,s.strictNumbers),()=>n.assign(a,i))),n.if((0,z._)`${a} !== undefined`);for(let f of t)(Wh.has(f)||f==="array"&&s.coerceTypes==="array")&&l(f);n.else(),Wa(e),n.endIf(),n.if((0,z._)`${a} !== undefined`,()=>{n.assign(i,a),g1(e,a)});function l(f){switch(f){case"string":n.elseIf((0,z._)`${o} == "number" || ${o} == "boolean"`).assign(a,(0,z._)`"" + ${i}`).elseIf((0,z._)`${i} === null`).assign(a,(0,z._)`""`);return;case"number":n.elseIf((0,z._)`${o} == "boolean" || ${i} === null || (${o} == "string" && ${i} && ${i} == +${i})`).assign(a,(0,z._)`+${i}`);return;case"integer":n.elseIf((0,z._)`${o} === "boolean" || ${i} === null || (${o} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(a,(0,z._)`+${i}`);return;case"boolean":n.elseIf((0,z._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(a,!1).elseIf((0,z._)`${i} === "true" || ${i} === 1`).assign(a,!0);return;case"null":n.elseIf((0,z._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(a,null);return;case"array":n.elseIf((0,z._)`${o} === "string" || ${o} === "number" - || ${o} === "boolean" || ${i} === null`).assign(a,(0,z._)`[${i}]`)}}}function m1({gen:e,parentData:r,parentDataProperty:t},n){e.if((0,z._)`${r} !== undefined`,()=>e.assign((0,z._)`${r}[${t}]`,n))}function Ga(e,r,t,n=rn.Correct){let i=n===rn.Correct?z.operators.EQ:z.operators.NEQ,s;switch(e){case"null":return(0,z._)`${r} ${i} null`;case"array":s=(0,z._)`Array.isArray(${r})`;break;case"object":s=(0,z._)`${r} && typeof ${r} == "object" && !Array.isArray(${r})`;break;case"integer":s=o((0,z._)`!(${r} % 1) && !isNaN(${r})`);break;case"number":s=o();break;default:return(0,z._)`typeof ${r} ${i} ${e}`}return n===rn.Correct?s:(0,z.not)(s);function o(a=z.nil){return(0,z.and)((0,z._)`typeof ${r} == "number"`,a,t?(0,z._)`isFinite(${r})`:z.nil)}}qe.checkDataType=Ga;function Ja(e,r,t,n){if(e.length===1)return Ga(e[0],r,t,n);let i,s=(0,Gh.toHash)(e);if(s.array&&s.object){let o=(0,z._)`typeof ${r} != "object"`;i=s.null?o:(0,z._)`!${r} || ${o}`,delete s.null,delete s.array,delete s.object}else i=z.nil;s.number&&delete s.integer;for(let o in s)i=(0,z.and)(i,Ga(o,r,t,n));return i}qe.checkDataTypes=Ja;var y1={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:r})=>typeof e=="string"?(0,z._)`{type: ${e}}`:(0,z._)`{type: ${r}}`};function Wa(e){let r=g1(e);(0,l1.reportError)(r,y1)}qe.reportTypeError=Wa;function g1(e){let{gen:r,data:t,schema:n}=e,i=(0,Gh.schemaRefOrVal)(e,n,"type");return{gen:r,keyword:"type",data:t,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}});var Xh=j(So=>{"use strict";p();m();h();Object.defineProperty(So,"__esModule",{value:!0});So.assignDefaults=void 0;var tn=V(),v1=Y();function $1(e,r){let{properties:t,items:n}=e.schema;if(r==="object"&&t)for(let i in t)Yh(e,i,t[i].default);else r==="array"&&Array.isArray(n)&&n.forEach((i,s)=>Yh(e,s,i.default))}So.assignDefaults=$1;function Yh(e,r,t){let{gen:n,compositeRule:i,data:s,opts:o}=e;if(t===void 0)return;let a=(0,tn._)`${s}${(0,tn.getProperty)(r)}`;if(i){(0,v1.checkStrictMode)(e,`default is ignored for: ${a}`);return}let l=(0,tn._)`${a} === undefined`;o.useDefaults==="empty"&&(l=(0,tn._)`${l} || ${a} === null || ${a} === ""`),n.if(l,(0,tn._)`${a} = ${(0,tn.stringify)(t)}`)}});var Je=j(ee=>{"use strict";p();m();h();Object.defineProperty(ee,"__esModule",{value:!0});ee.validateUnion=ee.validateArray=ee.usePattern=ee.callValidateCode=ee.schemaProperties=ee.allSchemaProperties=ee.noPropertyInData=ee.propertyInData=ee.isOwnProperty=ee.hasPropFunc=ee.reportMissingProp=ee.checkMissingProp=ee.checkReportMissingProp=void 0;var ne=V(),Ya=Y(),Yr=Ge(),_1=Y();function b1(e,r){let{gen:t,data:n,it:i}=e;t.if(Qa(t,n,r,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,ne._)`${r}`},!0),e.error()})}ee.checkReportMissingProp=b1;function w1({gen:e,data:r,it:{opts:t}},n,i){return(0,ne.or)(...n.map(s=>(0,ne.and)(Qa(e,r,s,t.ownProperties),(0,ne._)`${i} = ${s}`)))}ee.checkMissingProp=w1;function P1(e,r){e.setParams({missingProperty:r},!0),e.error()}ee.reportMissingProp=P1;function Qh(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ne._)`Object.prototype.hasOwnProperty`})}ee.hasPropFunc=Qh;function Xa(e,r,t){return(0,ne._)`${Qh(e)}.call(${r}, ${t})`}ee.isOwnProperty=Xa;function x1(e,r,t,n){let i=(0,ne._)`${r}${(0,ne.getProperty)(t)} !== undefined`;return n?(0,ne._)`${i} && ${Xa(e,r,t)}`:i}ee.propertyInData=x1;function Qa(e,r,t,n){let i=(0,ne._)`${r}${(0,ne.getProperty)(t)} === undefined`;return n?(0,ne.or)(i,(0,ne.not)(Xa(e,r,t))):i}ee.noPropertyInData=Qa;function Zh(e){return e?Object.keys(e).filter(r=>r!=="__proto__"):[]}ee.allSchemaProperties=Zh;function E1(e,r){return Zh(r).filter(t=>!(0,Ya.alwaysValidSchema)(e,r[t]))}ee.schemaProperties=E1;function S1({schemaCode:e,data:r,it:{gen:t,topSchemaRef:n,schemaPath:i,errorPath:s},it:o},a,l,f){let g=f?(0,ne._)`${e}, ${r}, ${n}${i}`:r,y=[[Yr.default.instancePath,(0,ne.strConcat)(Yr.default.instancePath,s)],[Yr.default.parentData,o.parentData],[Yr.default.parentDataProperty,o.parentDataProperty],[Yr.default.rootData,Yr.default.rootData]];o.opts.dynamicRef&&y.push([Yr.default.dynamicAnchors,Yr.default.dynamicAnchors]);let b=(0,ne._)`${g}, ${t.object(...y)}`;return l!==ne.nil?(0,ne._)`${a}.call(${l}, ${b})`:(0,ne._)`${a}(${b})`}ee.callValidateCode=S1;var j1=(0,ne._)`new RegExp`;function O1({gen:e,it:{opts:r}},t){let n=r.unicodeRegExp?"u":"",{regExp:i}=r.code,s=i(t,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,ne._)`${i.code==="new RegExp"?j1:(0,_1.useFunc)(e,i)}(${t}, ${n})`})}ee.usePattern=O1;function A1(e){let{gen:r,data:t,keyword:n,it:i}=e,s=r.name("valid");if(i.allErrors){let a=r.let("valid",!0);return o(()=>r.assign(a,!1)),a}return r.var(s,!0),o(()=>r.break()),s;function o(a){let l=r.const("len",(0,ne._)`${t}.length`);r.forRange("i",0,l,f=>{e.subschema({keyword:n,dataProp:f,dataPropType:Ya.Type.Num},s),r.if((0,ne.not)(s),a)})}}ee.validateArray=A1;function q1(e){let{gen:r,schema:t,keyword:n,it:i}=e;if(!Array.isArray(t))throw new Error("ajv implementation error");if(t.some(l=>(0,Ya.alwaysValidSchema)(i,l))&&!i.opts.unevaluated)return;let o=r.let("valid",!1),a=r.name("_valid");r.block(()=>t.forEach((l,f)=>{let g=e.subschema({keyword:n,schemaProp:f,compositeRule:!0},a);r.assign(o,(0,ne._)`${o} || ${a}`),e.mergeValidEvaluated(g,a)||r.if((0,ne.not)(o))})),e.result(o,()=>e.reset(),()=>e.error(!0))}ee.validateUnion=q1});var tm=j(br=>{"use strict";p();m();h();Object.defineProperty(br,"__esModule",{value:!0});br.validateKeywordUsage=br.validSchemaType=br.funcKeywordCode=br.macroKeywordCode=void 0;var Re=V(),Et=Ge(),I1=Je(),k1=Jn();function T1(e,r){let{gen:t,keyword:n,schema:i,parentSchema:s,it:o}=e,a=r.macro.call(o.self,i,s,o),l=rm(t,n,a);o.opts.validateSchema!==!1&&o.self.validateSchema(a,!0);let f=t.name("valid");e.subschema({schema:a,schemaPath:Re.nil,errSchemaPath:`${o.errSchemaPath}/${n}`,topSchemaRef:l,compositeRule:!0},f),e.pass(f,()=>e.error(!0))}br.macroKeywordCode=T1;function R1(e,r){var t;let{gen:n,keyword:i,schema:s,parentSchema:o,$data:a,it:l}=e;N1(l,r);let f=!a&&r.compile?r.compile.call(l.self,s,o,l):r.validate,g=rm(n,i,f),y=n.let("valid");e.block$data(y,b),e.ok((t=r.valid)!==null&&t!==void 0?t:y);function b(){if(r.errors===!1)P(),r.modifying&&em(e),O(()=>e.error());else{let I=r.async?_():w();r.modifying&&em(e),O(()=>C1(e,I))}}function _(){let I=n.let("ruleErrs",null);return n.try(()=>P((0,Re._)`await `),R=>n.assign(y,!1).if((0,Re._)`${R} instanceof ${l.ValidationError}`,()=>n.assign(I,(0,Re._)`${R}.errors`),()=>n.throw(R))),I}function w(){let I=(0,Re._)`${g}.errors`;return n.assign(I,null),P(Re.nil),I}function P(I=r.async?(0,Re._)`await `:Re.nil){let R=l.opts.passContext?Et.default.this:Et.default.self,C=!("compile"in r&&!a||r.schema===!1);n.assign(y,(0,Re._)`${I}${(0,I1.callValidateCode)(e,g,R,C)}`,r.modifying)}function O(I){var R;n.if((0,Re.not)((R=r.valid)!==null&&R!==void 0?R:y),I)}}br.funcKeywordCode=R1;function em(e){let{gen:r,data:t,it:n}=e;r.if(n.parentData,()=>r.assign(t,(0,Re._)`${n.parentData}[${n.parentDataProperty}]`))}function C1(e,r){let{gen:t}=e;t.if((0,Re._)`Array.isArray(${r})`,()=>{t.assign(Et.default.vErrors,(0,Re._)`${Et.default.vErrors} === null ? ${r} : ${Et.default.vErrors}.concat(${r})`).assign(Et.default.errors,(0,Re._)`${Et.default.vErrors}.length`),(0,k1.extendErrors)(e)},()=>e.error())}function N1({schemaEnv:e},r){if(r.async&&!e.$async)throw new Error("async keyword in sync schema")}function rm(e,r,t){if(t===void 0)throw new Error(`keyword "${r}" failed to compile`);return e.scopeValue("keyword",typeof t=="function"?{ref:t}:{ref:t,code:(0,Re.stringify)(t)})}function M1(e,r,t=!1){return!r.length||r.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||t&&typeof e>"u")}br.validSchemaType=M1;function D1({schema:e,opts:r,self:t,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");let o=i.dependencies;if(o!=null&&o.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${s}: ${o.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){let l=`keyword "${s}" value is invalid at path "${n}": `+t.errorsText(i.validateSchema.errors);if(r.validateSchema==="log")t.logger.error(l);else throw new Error(l)}}br.validateKeywordUsage=D1});var im=j(Xr=>{"use strict";p();m();h();Object.defineProperty(Xr,"__esModule",{value:!0});Xr.extendSubschemaMode=Xr.extendSubschemaData=Xr.getSubschema=void 0;var wr=V(),nm=Y();function B1(e,{keyword:r,schemaProp:t,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:o}){if(r!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(r!==void 0){let a=e.schema[r];return t===void 0?{schema:a,schemaPath:(0,wr._)`${e.schemaPath}${(0,wr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${r}`}:{schema:a[t],schemaPath:(0,wr._)`${e.schemaPath}${(0,wr.getProperty)(r)}${(0,wr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${r}/${(0,nm.escapeFragment)(t)}`}}if(n!==void 0){if(i===void 0||s===void 0||o===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:o,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}Xr.getSubschema=B1;function U1(e,r,{dataProp:t,dataPropType:n,data:i,dataTypes:s,propertyName:o}){if(i!==void 0&&t!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=r;if(t!==void 0){let{errorPath:f,dataPathArr:g,opts:y}=r,b=a.let("data",(0,wr._)`${r.data}${(0,wr.getProperty)(t)}`,!0);l(b),e.errorPath=(0,wr.str)`${f}${(0,nm.getErrorPath)(t,n,y.jsPropertySyntax)}`,e.parentDataProperty=(0,wr._)`${t}`,e.dataPathArr=[...g,e.parentDataProperty]}if(i!==void 0){let f=i instanceof wr.Name?i:a.let("data",i,!0);l(f),o!==void 0&&(e.propertyName=o)}s&&(e.dataTypes=s);function l(f){e.data=f,e.dataLevel=r.dataLevel+1,e.dataTypes=[],r.definedProperties=new Set,e.parentData=r.data,e.dataNames=[...r.dataNames,f]}}Xr.extendSubschemaData=U1;function L1(e,{jtdDiscriminator:r,jtdMetadata:t,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=r,e.jtdMetadata=t}Xr.extendSubschemaMode=L1});var Za=j((AC,om)=>{"use strict";p();m();h();om.exports=function e(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var n,i,s;if(Array.isArray(r)){if(n=r.length,n!=t.length)return!1;for(i=n;i--!==0;)if(!e(r[i],t[i]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===t.toString();if(s=Object.keys(r),n=s.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[i]))return!1;for(i=n;i--!==0;){var o=s[i];if(!e(r[o],t[o]))return!1}return!0}return r!==r&&t!==t}});var am=j((TC,sm)=>{"use strict";p();m();h();var Qr=sm.exports=function(e,r,t){typeof r=="function"&&(t=r,r={}),t=r.cb||t;var n=typeof t=="function"?t:t.pre||function(){},i=t.post||function(){};jo(r,n,i,e,"",e)};Qr.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Qr.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Qr.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Qr.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 jo(e,r,t,n,i,s,o,a,l,f){if(n&&typeof n=="object"&&!Array.isArray(n)){r(n,i,s,o,a,l,f);for(var g in n){var y=n[g];if(Array.isArray(y)){if(g in Qr.arrayKeywords)for(var b=0;b{"use strict";p();m();h();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.getSchemaRefs=Ue.resolveUrl=Ue.normalizeId=Ue._getFullPath=Ue.getFullPath=Ue.inlineRef=void 0;var V1=Y(),z1=Za(),H1=am(),K1=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function G1(e,r=!0){return typeof e=="boolean"?!0:r===!0?!eu(e):r?um(e)<=r:!1}Ue.inlineRef=G1;var J1=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function eu(e){for(let r in e){if(J1.has(r))return!0;let t=e[r];if(Array.isArray(t)&&t.some(eu)||typeof t=="object"&&eu(t))return!0}return!1}function um(e){let r=0;for(let t in e){if(t==="$ref")return 1/0;if(r++,!K1.has(t)&&(typeof e[t]=="object"&&(0,V1.eachItem)(e[t],n=>r+=um(n)),r===1/0))return 1/0}return r}function cm(e,r="",t){t!==!1&&(r=nn(r));let n=e.parse(r);return lm(e,n)}Ue.getFullPath=cm;function lm(e,r){return e.serialize(r).split("#")[0]+"#"}Ue._getFullPath=lm;var W1=/#\/?$/;function nn(e){return e?e.replace(W1,""):""}Ue.normalizeId=nn;function Y1(e,r,t){return t=nn(t),e.resolve(r,t)}Ue.resolveUrl=Y1;var X1=/^[a-z_][-a-z0-9._]*$/i;function Q1(e,r){if(typeof e=="boolean")return{};let{schemaId:t,uriResolver:n}=this.opts,i=nn(e[t]||r),s={"":i},o=cm(n,i,!1),a={},l=new Set;return H1(e,{allKeys:!0},(y,b,_,w)=>{if(w===void 0)return;let P=o+b,O=s[w];typeof y[t]=="string"&&(O=I.call(this,y[t])),R.call(this,y.$anchor),R.call(this,y.$dynamicAnchor),s[b]=O;function I(C){let U=this.opts.uriResolver.resolve;if(C=nn(O?U(O,C):C),l.has(C))throw g(C);l.add(C);let N=this.refs[C];return typeof N=="string"&&(N=this.refs[N]),typeof N=="object"?f(y,N.schema,C):C!==nn(P)&&(C[0]==="#"?(f(y,a[C],C),a[C]=y):this.refs[C]=P),C}function R(C){if(typeof C=="string"){if(!X1.test(C))throw new Error(`invalid anchor "${C}"`);I.call(this,`#${C}`)}}}),a;function f(y,b,_){if(b!==void 0&&!z1(y,b))throw g(_)}function g(y){return new Error(`reference "${y}" resolves to more than one schema`)}}Ue.getSchemaRefs=Q1});var Zn=j(Zr=>{"use strict";p();m();h();Object.defineProperty(Zr,"__esModule",{value:!0});Zr.getData=Zr.KeywordCxt=Zr.validateFunctionCode=void 0;var mm=zh(),fm=Wn(),tu=Ka(),Oo=Wn(),Z1=Xh(),Qn=tm(),ru=im(),M=V(),L=Ge(),eP=Yn(),Mr=Y(),Xn=Jn();function rP(e){if(vm(e)&&($m(e),gm(e))){iP(e);return}ym(e,()=>(0,mm.topBoolOrEmptySchema)(e))}Zr.validateFunctionCode=rP;function ym({gen:e,validateName:r,schema:t,schemaEnv:n,opts:i},s){i.code.es5?e.func(r,(0,M._)`${L.default.data}, ${L.default.valCxt}`,n.$async,()=>{e.code((0,M._)`"use strict"; ${dm(t,i)}`),nP(e,i),e.code(s)}):e.func(r,(0,M._)`${L.default.data}, ${tP(i)}`,n.$async,()=>e.code(dm(t,i)).code(s))}function tP(e){return(0,M._)`{${L.default.instancePath}="", ${L.default.parentData}, ${L.default.parentDataProperty}, ${L.default.rootData}=${L.default.data}${e.dynamicRef?(0,M._)`, ${L.default.dynamicAnchors}={}`:M.nil}}={}`}function nP(e,r){e.if(L.default.valCxt,()=>{e.var(L.default.instancePath,(0,M._)`${L.default.valCxt}.${L.default.instancePath}`),e.var(L.default.parentData,(0,M._)`${L.default.valCxt}.${L.default.parentData}`),e.var(L.default.parentDataProperty,(0,M._)`${L.default.valCxt}.${L.default.parentDataProperty}`),e.var(L.default.rootData,(0,M._)`${L.default.valCxt}.${L.default.rootData}`),r.dynamicRef&&e.var(L.default.dynamicAnchors,(0,M._)`${L.default.valCxt}.${L.default.dynamicAnchors}`)},()=>{e.var(L.default.instancePath,(0,M._)`""`),e.var(L.default.parentData,(0,M._)`undefined`),e.var(L.default.parentDataProperty,(0,M._)`undefined`),e.var(L.default.rootData,L.default.data),r.dynamicRef&&e.var(L.default.dynamicAnchors,(0,M._)`{}`)})}function iP(e){let{schema:r,opts:t,gen:n}=e;ym(e,()=>{t.$comment&&r.$comment&&bm(e),cP(e),n.let(L.default.vErrors,null),n.let(L.default.errors,0),t.unevaluated&&oP(e),_m(e),dP(e)})}function oP(e){let{gen:r,validateName:t}=e;e.evaluated=r.const("evaluated",(0,M._)`${t}.evaluated`),r.if((0,M._)`${e.evaluated}.dynamicProps`,()=>r.assign((0,M._)`${e.evaluated}.props`,(0,M._)`undefined`)),r.if((0,M._)`${e.evaluated}.dynamicItems`,()=>r.assign((0,M._)`${e.evaluated}.items`,(0,M._)`undefined`))}function dm(e,r){let t=typeof e=="object"&&e[r.schemaId];return t&&(r.code.source||r.code.process)?(0,M._)`/*# sourceURL=${t} */`:M.nil}function sP(e,r){if(vm(e)&&($m(e),gm(e))){aP(e,r);return}(0,mm.boolOrEmptySchema)(e,r)}function gm({schema:e,self:r}){if(typeof e=="boolean")return!e;for(let t in e)if(r.RULES.all[t])return!0;return!1}function vm(e){return typeof e.schema!="boolean"}function aP(e,r){let{schema:t,gen:n,opts:i}=e;i.$comment&&t.$comment&&bm(e),lP(e),fP(e);let s=n.const("_errs",L.default.errors);_m(e,s),n.var(r,(0,M._)`${s} === ${L.default.errors}`)}function $m(e){(0,Mr.checkUnknownRules)(e),uP(e)}function _m(e,r){if(e.opts.jtd)return pm(e,[],!1,r);let t=(0,fm.getSchemaTypes)(e.schema),n=(0,fm.coerceAndCheckDataType)(e,t);pm(e,t,!n,r)}function uP(e){let{schema:r,errSchemaPath:t,opts:n,self:i}=e;r.$ref&&n.ignoreKeywordsWithRef&&(0,Mr.schemaHasRulesButRef)(r,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${t}"`)}function cP(e){let{schema:r,opts:t}=e;r.default!==void 0&&t.useDefaults&&t.strictSchema&&(0,Mr.checkStrictMode)(e,"default is ignored in the schema root")}function lP(e){let r=e.schema[e.opts.schemaId];r&&(e.baseId=(0,eP.resolveUrl)(e.opts.uriResolver,e.baseId,r))}function fP(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function bm({gen:e,schemaEnv:r,schema:t,errSchemaPath:n,opts:i}){let s=t.$comment;if(i.$comment===!0)e.code((0,M._)`${L.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let o=(0,M.str)`${n}/$comment`,a=e.scopeValue("root",{ref:r.root});e.code((0,M._)`${L.default.self}.opts.$comment(${s}, ${o}, ${a}.schema)`)}}function dP(e){let{gen:r,schemaEnv:t,validateName:n,ValidationError:i,opts:s}=e;t.$async?r.if((0,M._)`${L.default.errors} === 0`,()=>r.return(L.default.data),()=>r.throw((0,M._)`new ${i}(${L.default.vErrors})`)):(r.assign((0,M._)`${n}.errors`,L.default.vErrors),s.unevaluated&&pP(e),r.return((0,M._)`${L.default.errors} === 0`))}function pP({gen:e,evaluated:r,props:t,items:n}){t instanceof M.Name&&e.assign((0,M._)`${r}.props`,t),n instanceof M.Name&&e.assign((0,M._)`${r}.items`,n)}function pm(e,r,t,n){let{gen:i,schema:s,data:o,allErrors:a,opts:l,self:f}=e,{RULES:g}=f;if(s.$ref&&(l.ignoreKeywordsWithRef||!(0,Mr.schemaHasRulesButRef)(s,g))){i.block(()=>Pm(e,"$ref",g.all.$ref.definition));return}l.jtd||hP(e,r),i.block(()=>{for(let b of g.rules)y(b);y(g.post)});function y(b){(0,tu.shouldUseGroup)(s,b)&&(b.type?(i.if((0,Oo.checkDataType)(b.type,o,l.strictNumbers)),hm(e,b),r.length===1&&r[0]===b.type&&t&&(i.else(),(0,Oo.reportTypeError)(e)),i.endIf()):hm(e,b),a||i.if((0,M._)`${L.default.errors} === ${n||0}`))}}function hm(e,r){let{gen:t,schema:n,opts:{useDefaults:i}}=e;i&&(0,Z1.assignDefaults)(e,r.type),t.block(()=>{for(let s of r.rules)(0,tu.shouldUseRule)(n,s)&&Pm(e,s.keyword,s.definition,r.type)})}function hP(e,r){e.schemaEnv.meta||!e.opts.strictTypes||(mP(e,r),e.opts.allowUnionTypes||yP(e,r),gP(e,e.dataTypes))}function mP(e,r){if(r.length){if(!e.dataTypes.length){e.dataTypes=r;return}r.forEach(t=>{wm(e.dataTypes,t)||nu(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}),$P(e,r)}}function yP(e,r){r.length>1&&!(r.length===2&&r.includes("null"))&&nu(e,"use allowUnionTypes to allow union type keyword")}function gP(e,r){let t=e.self.RULES.all;for(let n in t){let i=t[n];if(typeof i=="object"&&(0,tu.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(o=>vP(r,o))&&nu(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function vP(e,r){return e.includes(r)||r==="number"&&e.includes("integer")}function wm(e,r){return e.includes(r)||r==="integer"&&e.includes("number")}function $P(e,r){let t=[];for(let n of e.dataTypes)wm(r,n)?t.push(n):r.includes("integer")&&n==="number"&&t.push("integer");e.dataTypes=t}function nu(e,r){let t=e.schemaEnv.baseId+e.errSchemaPath;r+=` at "${t}" (strictTypes)`,(0,Mr.checkStrictMode)(e,r,e.opts.strictTypes)}var Ao=class{constructor(r,t,n){if((0,Qn.validateKeywordUsage)(r,t,n),this.gen=r.gen,this.allErrors=r.allErrors,this.keyword=n,this.data=r.data,this.schema=r.schema[n],this.$data=t.$data&&r.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Mr.schemaRefOrVal)(r,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=r.schema,this.params={},this.it=r,this.def=t,this.$data)this.schemaCode=r.gen.const("vSchema",xm(this.$data,r));else if(this.schemaCode=this.schemaValue,!(0,Qn.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:t.errors!==!1)&&(this.errsCount=r.gen.const("_errs",L.default.errors))}result(r,t,n){this.failResult((0,M.not)(r),t,n)}failResult(r,t,n){this.gen.if(r),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(r,t){this.failResult((0,M.not)(r),void 0,t)}fail(r){if(r===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(r),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(r){if(!this.$data)return this.fail(r);let{schemaCode:t}=this;this.fail((0,M._)`${t} !== undefined && (${(0,M.or)(this.invalid$data(),r)})`)}error(r,t,n){if(t){this.setParams(t),this._error(r,n),this.setParams({});return}this._error(r,n)}_error(r,t){(r?Xn.reportExtraError:Xn.reportError)(this,this.def.error,t)}$dataError(){(0,Xn.reportError)(this,this.def.$dataError||Xn.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Xn.resetErrorsCount)(this.gen,this.errsCount)}ok(r){this.allErrors||this.gen.if(r)}setParams(r,t){t?Object.assign(this.params,r):this.params=r}block$data(r,t,n=M.nil){this.gen.block(()=>{this.check$data(r,n),t()})}check$data(r=M.nil,t=M.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:o}=this;n.if((0,M.or)((0,M._)`${i} === undefined`,t)),r!==M.nil&&n.assign(r,!0),(s.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),r!==M.nil&&n.assign(r,!1)),n.else()}invalid$data(){let{gen:r,schemaCode:t,schemaType:n,def:i,it:s}=this;return(0,M.or)(o(),a());function o(){if(n.length){if(!(t instanceof M.Name))throw new Error("ajv implementation error");let l=Array.isArray(n)?n:[n];return(0,M._)`${(0,Oo.checkDataTypes)(l,t,s.opts.strictNumbers,Oo.DataType.Wrong)}`}return M.nil}function a(){if(i.validateSchema){let l=r.scopeValue("validate$data",{ref:i.validateSchema});return(0,M._)`!${l}(${t})`}return M.nil}}subschema(r,t){let n=(0,ru.getSubschema)(this.it,r);(0,ru.extendSubschemaData)(n,this.it,r),(0,ru.extendSubschemaMode)(n,r);let i={...this.it,...n,items:void 0,props:void 0};return sP(i,t),i}mergeEvaluated(r,t){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&r.props!==void 0&&(n.props=Mr.mergeEvaluated.props(i,r.props,n.props,t)),n.items!==!0&&r.items!==void 0&&(n.items=Mr.mergeEvaluated.items(i,r.items,n.items,t)))}mergeValidEvaluated(r,t){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(t,()=>this.mergeEvaluated(r,M.Name)),!0}};Zr.KeywordCxt=Ao;function Pm(e,r,t,n){let i=new Ao(e,t,r);"code"in t?t.code(i,n):i.$data&&t.validate?(0,Qn.funcKeywordCode)(i,t):"macro"in t?(0,Qn.macroKeywordCode)(i,t):(t.compile||t.validate)&&(0,Qn.funcKeywordCode)(i,t)}var _P=/^\/(?:[^~]|~0|~1)*$/,bP=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function xm(e,{dataLevel:r,dataNames:t,dataPathArr:n}){let i,s;if(e==="")return L.default.rootData;if(e[0]==="/"){if(!_P.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=L.default.rootData}else{let f=bP.exec(e);if(!f)throw new Error(`Invalid JSON-pointer: ${e}`);let g=+f[1];if(i=f[2],i==="#"){if(g>=r)throw new Error(l("property/index",g));return n[r-g]}if(g>r)throw new Error(l("data",g));if(s=t[r-g],!i)return s}let o=s,a=i.split("/");for(let f of a)f&&(s=(0,M._)`${s}${(0,M.getProperty)((0,Mr.unescapeJsonPointer)(f))}`,o=(0,M._)`${o} && ${s}`);return o;function l(f,g){return`Cannot access ${f} ${g} levels up, current level is ${r}`}}Zr.getData=xm});var qo=j(ou=>{"use strict";p();m();h();Object.defineProperty(ou,"__esModule",{value:!0});var iu=class extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}};ou.default=iu});var ei=j(uu=>{"use strict";p();m();h();Object.defineProperty(uu,"__esModule",{value:!0});var su=Yn(),au=class extends Error{constructor(r,t,n,i){super(i||`can't resolve reference ${n} from id ${t}`),this.missingRef=(0,su.resolveUrl)(r,t,n),this.missingSchema=(0,su.normalizeId)((0,su.getFullPath)(r,this.missingRef))}};uu.default=au});var ri=j(We=>{"use strict";p();m();h();Object.defineProperty(We,"__esModule",{value:!0});We.resolveSchema=We.getCompilingSchema=We.resolveRef=We.compileSchema=We.SchemaEnv=void 0;var nr=V(),wP=qo(),St=Ge(),ir=Yn(),Em=Y(),PP=Zn(),on=class{constructor(r){var t;this.refs={},this.dynamicAnchors={};let n;typeof r.schema=="object"&&(n=r.schema),this.schema=r.schema,this.schemaId=r.schemaId,this.root=r.root||this,this.baseId=(t=r.baseId)!==null&&t!==void 0?t:(0,ir.normalizeId)(n==null?void 0:n[r.schemaId||"$id"]),this.schemaPath=r.schemaPath,this.localRefs=r.localRefs,this.meta=r.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};We.SchemaEnv=on;function lu(e){let r=Sm.call(this,e);if(r)return r;let t=(0,ir.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,o=new nr.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),a;e.$async&&(a=o.scopeValue("Error",{ref:wP.default,code:(0,nr._)`require("ajv/dist/runtime/validation_error").default`}));let l=o.scopeName("validate");e.validateName=l;let f={gen:o,allErrors:this.opts.allErrors,data:St.default.data,parentData:St.default.parentData,parentDataProperty:St.default.parentDataProperty,dataNames:[St.default.data],dataPathArr:[nr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:o.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,nr.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:t,baseId:e.baseId||t,schemaPath:nr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,nr._)`""`,opts:this.opts,self:this},g;try{this._compilations.add(e),(0,PP.validateFunctionCode)(f),o.optimize(this.opts.code.optimize);let y=o.toString();g=`${o.scopeRefs(St.default.scope)}return ${y}`,this.opts.code.process&&(g=this.opts.code.process(g,e));let _=new Function(`${St.default.self}`,`${St.default.scope}`,g)(this,this.scope.get());if(this.scope.value(l,{ref:_}),_.errors=null,_.schema=e.schema,_.schemaEnv=e,e.$async&&(_.$async=!0),this.opts.code.source===!0&&(_.source={validateName:l,validateCode:y,scopeValues:o._values}),this.opts.unevaluated){let{props:w,items:P}=f;_.evaluated={props:w instanceof nr.Name?void 0:w,items:P instanceof nr.Name?void 0:P,dynamicProps:w instanceof nr.Name,dynamicItems:P instanceof nr.Name},_.source&&(_.source.evaluated=(0,nr.stringify)(_.evaluated))}return e.validate=_,e}catch(y){throw delete e.validate,delete e.validateName,g&&this.logger.error("Error compiling schema, function code:",g),y}finally{this._compilations.delete(e)}}We.compileSchema=lu;function xP(e,r,t){var n;t=(0,ir.resolveUrl)(this.opts.uriResolver,r,t);let i=e.refs[t];if(i)return i;let s=jP.call(this,e,t);if(s===void 0){let o=(n=e.localRefs)===null||n===void 0?void 0:n[t],{schemaId:a}=this.opts;o&&(s=new on({schema:o,schemaId:a,root:e,baseId:r}))}if(s!==void 0)return e.refs[t]=EP.call(this,s)}We.resolveRef=xP;function EP(e){return(0,ir.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:lu.call(this,e)}function Sm(e){for(let r of this._compilations)if(SP(r,e))return r}We.getCompilingSchema=Sm;function SP(e,r){return e.schema===r.schema&&e.root===r.root&&e.baseId===r.baseId}function jP(e,r){let t;for(;typeof(t=this.refs[r])=="string";)r=t;return t||this.schemas[r]||Io.call(this,e,r)}function Io(e,r){let t=this.opts.uriResolver.parse(r),n=(0,ir._getFullPath)(this.opts.uriResolver,t),i=(0,ir.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return cu.call(this,t,e);let s=(0,ir.normalizeId)(n),o=this.refs[s]||this.schemas[s];if(typeof o=="string"){let a=Io.call(this,e,o);return typeof(a==null?void 0:a.schema)!="object"?void 0:cu.call(this,t,a)}if(typeof(o==null?void 0:o.schema)=="object"){if(o.validate||lu.call(this,o),s===(0,ir.normalizeId)(r)){let{schema:a}=o,{schemaId:l}=this.opts,f=a[l];return f&&(i=(0,ir.resolveUrl)(this.opts.uriResolver,i,f)),new on({schema:a,schemaId:l,root:e,baseId:i})}return cu.call(this,t,o)}}We.resolveSchema=Io;var OP=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function cu(e,{baseId:r,schema:t,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let a of e.fragment.slice(1).split("/")){if(typeof t=="boolean")return;let l=t[(0,Em.unescapeFragment)(a)];if(l===void 0)return;t=l;let f=typeof t=="object"&&t[this.opts.schemaId];!OP.has(a)&&f&&(r=(0,ir.resolveUrl)(this.opts.uriResolver,r,f))}let s;if(typeof t!="boolean"&&t.$ref&&!(0,Em.schemaHasRulesButRef)(t,this.RULES)){let a=(0,ir.resolveUrl)(this.opts.uriResolver,r,t.$ref);s=Io.call(this,n,a)}let{schemaId:o}=this.opts;if(s=s||new on({schema:t,schemaId:o,root:n,baseId:r}),s.schema!==s.root.schema)return s}});var jm=j((nN,AP)=>{AP.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 Am=j((iN,Om)=>{"use strict";p();m();h();var qP={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};Om.exports={HEX:qP}});var Mm=j((uN,Nm)=>{"use strict";p();m();h();var{HEX:IP}=Am();function Tm(e){if(Cm(e,".")<3)return{host:e,isIPV4:!1};let r=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)||[],[t]=r;return t?{host:TP(t,"."),isIPV4:!0}:{host:e,isIPV4:!1}}function fu(e,r=!1){let t="",n=!0;for(let i of e){if(IP[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(t+=i)}return r&&t.length===0&&(t="0"),t}function kP(e){let r=0,t={error:!1,address:"",zone:""},n=[],i=[],s=!1,o=!1,a=!1;function l(){if(i.length){if(s===!1){let f=fu(i);if(f!==void 0)n.push(f);else return t.error=!0,!1}i.length=0}return!0}for(let f=0;f7){t.error=!0;break}f-1>=0&&e[f-1]===":"&&(o=!0);continue}else if(g==="%"){if(!l())break;s=!0}else{i.push(g);continue}}return i.length&&(s?t.zone=i.join(""):a?n.push(i.join("")):n.push(fu(i))),t.address=n.join(""),t}function Rm(e,r={}){if(Cm(e,":")<2)return{host:e,isIPV6:!1};let t=kP(e);if(t.error)return{host:e,isIPV6:!1};{let n=t.address,i=t.address;return t.zone&&(n+="%"+t.zone,i+="%25"+t.zone),{host:n,escapedHost:i,isIPV6:!0}}}function TP(e,r){let t="",n=!0,i=e.length;for(let s=0;s{"use strict";p();m();h();var DP=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,BP=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function Dm(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}function Bm(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function Um(e){let r=String(e.scheme).toLowerCase()==="https";return(e.port===(r?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function UP(e){return e.secure=Dm(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function LP(e){if((e.port===(Dm(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[r,t]=e.resourceName.split("?");e.path=r&&r!=="/"?r:void 0,e.query=t,e.resourceName=void 0}return e.fragment=void 0,e}function FP(e,r){if(!e.path)return e.error="URN can not be parsed",e;let t=e.path.match(BP);if(t){let n=r.scheme||e.scheme||"urn";e.nid=t[1].toLowerCase(),e.nss=t[2];let i=`${n}:${r.nid||e.nid}`,s=du[i];e.path=void 0,s&&(e=s.parse(e,r))}else e.error=e.error||"URN can not be parsed.";return e}function VP(e,r){let t=r.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${t}:${r.nid||n}`,s=du[i];s&&(e=s.serialize(e,r));let o=e,a=e.nss;return o.path=`${n||r.nid}:${a}`,r.skipEscape=!0,o}function zP(e,r){let t=e;return t.uuid=t.nss,t.nss=void 0,!r.tolerant&&(!t.uuid||!DP.test(t.uuid))&&(t.error=t.error||"UUID is not valid."),t}function HP(e){let r=e;return r.nss=(e.uuid||"").toLowerCase(),r}var Lm={scheme:"http",domainHost:!0,parse:Bm,serialize:Um},KP={scheme:"https",domainHost:Lm.domainHost,parse:Bm,serialize:Um},ko={scheme:"ws",domainHost:!0,parse:UP,serialize:LP},GP={scheme:"wss",domainHost:ko.domainHost,parse:ko.parse,serialize:ko.serialize},JP={scheme:"urn",parse:FP,serialize:VP,skipNormalize:!0},WP={scheme:"urn:uuid",parse:zP,serialize:HP,skipNormalize:!0},du={http:Lm,https:KP,ws:ko,wss:GP,urn:JP,"urn:uuid":WP};Fm.exports=du});var Hm=j((yN,Ro)=>{"use strict";p();m();h();var{normalizeIPv6:YP,normalizeIPv4:XP,removeDotSegments:ti,recomposeAuthority:QP,normalizeComponentEncoding:To}=Mm(),pu=Vm();function ZP(e,r){return typeof e=="string"?e=Pr(Dr(e,r),r):typeof e=="object"&&(e=Dr(Pr(e,r),r)),e}function ex(e,r,t){let n=Object.assign({scheme:"null"},t),i=zm(Dr(e,n),Dr(r,n),n,!0);return Pr(i,{...n,skipEscape:!0})}function zm(e,r,t,n){let i={};return n||(e=Dr(Pr(e,t),t),r=Dr(Pr(r,t),t)),t=t||{},!t.tolerant&&r.scheme?(i.scheme=r.scheme,i.userinfo=r.userinfo,i.host=r.host,i.port=r.port,i.path=ti(r.path||""),i.query=r.query):(r.userinfo!==void 0||r.host!==void 0||r.port!==void 0?(i.userinfo=r.userinfo,i.host=r.host,i.port=r.port,i.path=ti(r.path||""),i.query=r.query):(r.path?(r.path.charAt(0)==="/"?i.path=ti(r.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+r.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+r.path:i.path=r.path,i.path=ti(i.path)),i.query=r.query):(i.path=e.path,r.query!==void 0?i.query=r.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=r.fragment,i}function rx(e,r,t){return typeof e=="string"?(e=unescape(e),e=Pr(To(Dr(e,t),!0),{...t,skipEscape:!0})):typeof e=="object"&&(e=Pr(To(e,!0),{...t,skipEscape:!0})),typeof r=="string"?(r=unescape(r),r=Pr(To(Dr(r,t),!0),{...t,skipEscape:!0})):typeof r=="object"&&(r=Pr(To(r,!0),{...t,skipEscape:!0})),e.toLowerCase()===r.toLowerCase()}function Pr(e,r){let t={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({},r),i=[],s=pu[(n.scheme||t.scheme||"").toLowerCase()];s&&s.serialize&&s.serialize(t,n),t.path!==void 0&&(n.skipEscape?t.path=unescape(t.path):(t.path=escape(t.path),t.scheme!==void 0&&(t.path=t.path.split("%3A").join(":")))),n.reference!=="suffix"&&t.scheme&&i.push(t.scheme,":");let o=QP(t,n);if(o!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(o),t.path&&t.path.charAt(0)!=="/"&&i.push("/")),t.path!==void 0){let a=t.path;!n.absolutePath&&(!s||!s.absolutePath)&&(a=ti(a)),o===void 0&&(a=a.replace(/^\/\//u,"/%2F")),i.push(a)}return t.query!==void 0&&i.push("?",t.query),t.fragment!==void 0&&i.push("#",t.fragment),i.join("")}var tx=Array.from({length:127},(e,r)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(r)));function nx(e){let r=0;for(let t=0,n=e.length;t126||tx[r])return!0;return!1}var ix=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Dr(e,r){let t=Object.assign({},r),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,s=!1;t.reference==="suffix"&&(e=(t.scheme?t.scheme+":":"")+"//"+e);let o=e.match(ix);if(o){if(n.scheme=o[1],n.userinfo=o[3],n.host=o[4],n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=o[7],n.fragment=o[8],isNaN(n.port)&&(n.port=o[5]),n.host){let l=XP(n.host);if(l.isIPV4===!1){let f=YP(l.host,{isIPV4:!1});n.host=f.host.toLowerCase(),s=f.isIPV6}else n.host=l.host,s=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",t.reference&&t.reference!=="suffix"&&t.reference!==n.reference&&(n.error=n.error||"URI is not a "+t.reference+" reference.");let a=pu[(t.scheme||n.scheme||"").toLowerCase()];if(!t.unicodeSupport&&(!a||!a.unicodeSupport)&&n.host&&(t.domainHost||a&&a.domainHost)&&s===!1&&nx(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(l){n.error=n.error||"Host's domain name can not be converted to ASCII: "+l}(!a||a&&!a.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),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)))),a&&a.parse&&a.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}var hu={SCHEMES:pu,normalize:ZP,resolve:ex,resolveComponents:zm,equal:rx,serialize:Pr,parse:Dr};Ro.exports=hu;Ro.exports.default=hu;Ro.exports.fastUri=hu});var Gm=j(mu=>{"use strict";p();m();h();Object.defineProperty(mu,"__esModule",{value:!0});var Km=Hm();Km.code='require("ajv/dist/runtime/uri").default';mu.default=Km});var an=j(we=>{"use strict";p();m();h();Object.defineProperty(we,"__esModule",{value:!0});we.CodeGen=we.Name=we.nil=we.stringify=we.str=we._=we.KeywordCxt=void 0;var ox=Zn();Object.defineProperty(we,"KeywordCxt",{enumerable:!0,get:function(){return ox.KeywordCxt}});var sn=V();Object.defineProperty(we,"_",{enumerable:!0,get:function(){return sn._}});Object.defineProperty(we,"str",{enumerable:!0,get:function(){return sn.str}});Object.defineProperty(we,"stringify",{enumerable:!0,get:function(){return sn.stringify}});Object.defineProperty(we,"nil",{enumerable:!0,get:function(){return sn.nil}});Object.defineProperty(we,"Name",{enumerable:!0,get:function(){return sn.Name}});Object.defineProperty(we,"CodeGen",{enumerable:!0,get:function(){return sn.CodeGen}});var sx=qo(),Qm=ei(),ax=Ha(),ni=ri(),ux=V(),ii=Yn(),Co=Wn(),gu=Y(),Jm=jm(),cx=Gm(),Zm=(e,r)=>new RegExp(e,r);Zm.code="new RegExp";var lx=["removeAdditional","useDefaults","coerceTypes"],fx=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),dx={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."},px={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Wm=200;function hx(e){var r,t,n,i,s,o,a,l,f,g,y,b,_,w,P,O,I,R,C,U,N,ve,er,_n,bn;let st=e.strict,wn=(r=e.code)===null||r===void 0?void 0:r.optimize,Ai=wn===!0||wn===void 0?1:wn||0,Pn=(n=(t=e.code)===null||t===void 0?void 0:t.regExp)!==null&&n!==void 0?n:Zm,qi=(i=e.uriResolver)!==null&&i!==void 0?i:cx.default;return{strictSchema:(o=(s=e.strictSchema)!==null&&s!==void 0?s:st)!==null&&o!==void 0?o:!0,strictNumbers:(l=(a=e.strictNumbers)!==null&&a!==void 0?a:st)!==null&&l!==void 0?l:!0,strictTypes:(g=(f=e.strictTypes)!==null&&f!==void 0?f:st)!==null&&g!==void 0?g:"log",strictTuples:(b=(y=e.strictTuples)!==null&&y!==void 0?y:st)!==null&&b!==void 0?b:"log",strictRequired:(w=(_=e.strictRequired)!==null&&_!==void 0?_:st)!==null&&w!==void 0?w:!1,code:e.code?{...e.code,optimize:Ai,regExp:Pn}:{optimize:Ai,regExp:Pn},loopRequired:(P=e.loopRequired)!==null&&P!==void 0?P:Wm,loopEnum:(O=e.loopEnum)!==null&&O!==void 0?O:Wm,meta:(I=e.meta)!==null&&I!==void 0?I:!0,messages:(R=e.messages)!==null&&R!==void 0?R:!0,inlineRefs:(C=e.inlineRefs)!==null&&C!==void 0?C:!0,schemaId:(U=e.schemaId)!==null&&U!==void 0?U:"$id",addUsedSchema:(N=e.addUsedSchema)!==null&&N!==void 0?N:!0,validateSchema:(ve=e.validateSchema)!==null&&ve!==void 0?ve:!0,validateFormats:(er=e.validateFormats)!==null&&er!==void 0?er:!0,unicodeRegExp:(_n=e.unicodeRegExp)!==null&&_n!==void 0?_n:!0,int32range:(bn=e.int32range)!==null&&bn!==void 0?bn:!0,uriResolver:qi}}var oi=class{constructor(r={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,r=this.opts={...r,...hx(r)};let{es5:t,lines:n}=this.opts.code;this.scope=new ux.ValueScope({scope:{},prefixes:fx,es5:t,lines:n}),this.logger=_x(r.logger);let i=r.validateFormats;r.validateFormats=!1,this.RULES=(0,ax.getRules)(),Ym.call(this,dx,r,"NOT SUPPORTED"),Ym.call(this,px,r,"DEPRECATED","warn"),this._metaOpts=vx.call(this),r.formats&&yx.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),r.keywords&&gx.call(this,r.keywords),typeof r.meta=="object"&&this.addMetaSchema(r.meta),mx.call(this),r.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:r,meta:t,schemaId:n}=this.opts,i=Jm;n==="id"&&(i={...Jm},i.id=i.$id,delete i.$id),t&&r&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:r,schemaId:t}=this.opts;return this.opts.defaultMeta=typeof r=="object"?r[t]||r:void 0}validate(r,t){let n;if(typeof r=="string"){if(n=this.getSchema(r),!n)throw new Error(`no schema with key or ref "${r}"`)}else n=this.compile(r);let i=n(t);return"$async"in n||(this.errors=n.errors),i}compile(r,t){let n=this._addSchema(r,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(r,t){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,r,t);async function i(g,y){await s.call(this,g.$schema);let b=this._addSchema(g,y);return b.validate||o.call(this,b)}async function s(g){g&&!this.getSchema(g)&&await i.call(this,{$ref:g},!0)}async function o(g){try{return this._compileSchemaEnv(g)}catch(y){if(!(y instanceof Qm.default))throw y;return a.call(this,y),await l.call(this,y.missingSchema),o.call(this,g)}}function a({missingSchema:g,missingRef:y}){if(this.refs[g])throw new Error(`AnySchema ${g} is loaded but ${y} cannot be resolved`)}async function l(g){let y=await f.call(this,g);this.refs[g]||await s.call(this,y.$schema),this.refs[g]||this.addSchema(y,g,t)}async function f(g){let y=this._loading[g];if(y)return y;try{return await(this._loading[g]=n(g))}finally{delete this._loading[g]}}}addSchema(r,t,n,i=this.opts.validateSchema){if(Array.isArray(r)){for(let o of r)this.addSchema(o,void 0,n,i);return this}let s;if(typeof r=="object"){let{schemaId:o}=this.opts;if(s=r[o],s!==void 0&&typeof s!="string")throw new Error(`schema ${o} must be string`)}return t=(0,ii.normalizeId)(t||s),this._checkUnique(t),this.schemas[t]=this._addSchema(r,n,t,i,!0),this}addMetaSchema(r,t,n=this.opts.validateSchema){return this.addSchema(r,t,!0,n),this}validateSchema(r,t){if(typeof r=="boolean")return!0;let n;if(n=r.$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,r);if(!i&&t){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return i}getSchema(r){let t;for(;typeof(t=Xm.call(this,r))=="string";)r=t;if(t===void 0){let{schemaId:n}=this.opts,i=new ni.SchemaEnv({schema:{},schemaId:n});if(t=ni.resolveSchema.call(this,i,r),!t)return;this.refs[r]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(r){if(r instanceof RegExp)return this._removeAllSchemas(this.schemas,r),this._removeAllSchemas(this.refs,r),this;switch(typeof r){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let t=Xm.call(this,r);return typeof t=="object"&&this._cache.delete(t.schema),delete this.schemas[r],delete this.refs[r],this}case"object":{let t=r;this._cache.delete(t);let n=r[this.opts.schemaId];return n&&(n=(0,ii.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(r){for(let t of r)this.addKeyword(t);return this}addKeyword(r,t){let n;if(typeof r=="string")n=r,typeof t=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else if(typeof r=="object"&&t===void 0){if(t=r,n=t.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(wx.call(this,n,t),!t)return(0,gu.eachItem)(n,s=>yu.call(this,s)),this;xx.call(this,t);let i={...t,type:(0,Co.getJSONTypes)(t.type),schemaType:(0,Co.getJSONTypes)(t.schemaType)};return(0,gu.eachItem)(n,i.type.length===0?s=>yu.call(this,s,i):s=>i.type.forEach(o=>yu.call(this,s,i,o))),this}getKeyword(r){let t=this.RULES.all[r];return typeof t=="object"?t.definition:!!t}removeKeyword(r){let{RULES:t}=this;delete t.keywords[r],delete t.all[r];for(let n of t.rules){let i=n.rules.findIndex(s=>s.keyword===r);i>=0&&n.rules.splice(i,1)}return this}addFormat(r,t){return typeof t=="string"&&(t=new RegExp(t)),this.formats[r]=t,this}errorsText(r=this.errors,{separator:t=", ",dataVar:n="data"}={}){return!r||r.length===0?"No errors":r.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,s)=>i+t+s)}$dataMetaSchema(r,t){let n=this.RULES.all;r=JSON.parse(JSON.stringify(r));for(let i of t){let s=i.split("/").slice(1),o=r;for(let a of s)o=o[a];for(let a in n){let l=n[a];if(typeof l!="object")continue;let{$data:f}=l.definition,g=o[a];f&&g&&(o[a]=ey(g))}}return r}_removeAllSchemas(r,t){for(let n in r){let i=r[n];(!t||t.test(n))&&(typeof i=="string"?delete r[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete r[n]))}}_addSchema(r,t,n,i=this.opts.validateSchema,s=this.opts.addUsedSchema){let o,{schemaId:a}=this.opts;if(typeof r=="object")o=r[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof r!="boolean")throw new Error("schema must be object or boolean")}let l=this._cache.get(r);if(l!==void 0)return l;n=(0,ii.normalizeId)(o||n);let f=ii.getSchemaRefs.call(this,r,n);return l=new ni.SchemaEnv({schema:r,schemaId:a,meta:t,baseId:n,localRefs:f}),this._cache.set(l.schema,l),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=l),i&&this.validateSchema(r,!0),l}_checkUnique(r){if(this.schemas[r]||this.refs[r])throw new Error(`schema with key or id "${r}" already exists`)}_compileSchemaEnv(r){if(r.meta?this._compileMetaSchema(r):ni.compileSchema.call(this,r),!r.validate)throw new Error("ajv implementation error");return r.validate}_compileMetaSchema(r){let t=this.opts;this.opts=this._metaOpts;try{ni.compileSchema.call(this,r)}finally{this.opts=t}}};oi.ValidationError=sx.default;oi.MissingRefError=Qm.default;we.default=oi;function Ym(e,r,t,n="error"){for(let i in e){let s=i;s in r&&this.logger[n](`${t}: option ${i}. ${e[s]}`)}}function Xm(e){return e=(0,ii.normalizeId)(e),this.schemas[e]||this.refs[e]}function mx(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let r in e)this.addSchema(e[r],r)}function yx(){for(let e in this.opts.formats){let r=this.opts.formats[e];r&&this.addFormat(e,r)}}function gx(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let r in e){let t=e[r];t.keyword||(t.keyword=r),this.addKeyword(t)}}function vx(){let e={...this.opts};for(let r of lx)delete e[r];return e}var $x={log(){},warn(){},error(){}};function _x(e){if(e===!1)return $x;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")}var bx=/^[a-z_$][a-z0-9_$:-]*$/i;function wx(e,r){let{RULES:t}=this;if((0,gu.eachItem)(e,n=>{if(t.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!bx.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!r&&r.$data&&!("code"in r||"validate"in r))throw new Error('$data keyword must have "code" or "validate" function')}function yu(e,r,t){var n;let i=r==null?void 0:r.post;if(t&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,o=i?s.post:s.rules.find(({type:l})=>l===t);if(o||(o={type:t,rules:[]},s.rules.push(o)),s.keywords[e]=!0,!r)return;let a={keyword:e,definition:{...r,type:(0,Co.getJSONTypes)(r.type),schemaType:(0,Co.getJSONTypes)(r.schemaType)}};r.before?Px.call(this,o,a,r.before):o.rules.push(a),s.all[e]=a,(n=r.implements)===null||n===void 0||n.forEach(l=>this.addKeyword(l))}function Px(e,r,t){let n=e.rules.findIndex(i=>i.keyword===t);n>=0?e.rules.splice(n,0,r):(e.rules.push(r),this.logger.warn(`rule ${t} is not defined`))}function xx(e){let{metaSchema:r}=e;r!==void 0&&(e.$data&&this.opts.$data&&(r=ey(r)),e.validateSchema=this.compile(r,!0))}var Ex={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ey(e){return{anyOf:[e,Ex]}}});var si=j(jt=>{"use strict";p();m();h();Object.defineProperty(jt,"__esModule",{value:!0});jt.callRef=jt.getValidate=void 0;var Sx=ei(),ry=Je(),Le=V(),un=Ge(),ty=ri(),No=Y(),jx={keyword:"$ref",schemaType:"string",code(e){let{gen:r,schema:t,it:n}=e,{baseId:i,schemaEnv:s,validateName:o,opts:a,self:l}=n,{root:f}=s;if((t==="#"||t==="#/")&&i===f.baseId)return y();let g=ty.resolveRef.call(l,f,i,t);if(g===void 0)throw new Sx.default(n.opts.uriResolver,i,t);if(g instanceof ty.SchemaEnv)return b(g);return _(g);function y(){if(s===f)return Mo(e,o,s,s.$async);let w=r.scopeValue("root",{ref:f});return Mo(e,(0,Le._)`${w}.validate`,f,f.$async)}function b(w){let P=ny(e,w);Mo(e,P,w,w.$async)}function _(w){let P=r.scopeValue("schema",a.code.source===!0?{ref:w,code:(0,Le.stringify)(w)}:{ref:w}),O=r.name("valid"),I=e.subschema({schema:w,dataTypes:[],schemaPath:Le.nil,topSchemaRef:P,errSchemaPath:t},O);e.mergeEvaluated(I),e.ok(O)}}};function ny(e,r){let{gen:t}=e;return r.validate?t.scopeValue("validate",{ref:r.validate}):(0,Le._)`${t.scopeValue("wrapper",{ref:r})}.validate`}jt.getValidate=ny;function Mo(e,r,t,n){let{gen:i,it:s}=e,{allErrors:o,schemaEnv:a,opts:l}=s,f=l.passContext?un.default.this:Le.nil;n?g():y();function g(){if(!a.$async)throw new Error("async schema referenced by sync schema");let w=i.let("valid");i.try(()=>{i.code((0,Le._)`await ${(0,ry.callValidateCode)(e,r,f)}`),_(r),o||i.assign(w,!0)},P=>{i.if((0,Le._)`!(${P} instanceof ${s.ValidationError})`,()=>i.throw(P)),b(P),o||i.assign(w,!1)}),e.ok(w)}function y(){e.result((0,ry.callValidateCode)(e,r,f),()=>_(r),()=>b(r))}function b(w){let P=(0,Le._)`${w}.errors`;i.assign(un.default.vErrors,(0,Le._)`${un.default.vErrors} === null ? ${P} : ${un.default.vErrors}.concat(${P})`),i.assign(un.default.errors,(0,Le._)`${un.default.vErrors}.length`)}function _(w){var P;if(!s.opts.unevaluated)return;let O=(P=t==null?void 0:t.validate)===null||P===void 0?void 0:P.evaluated;if(s.props!==!0)if(O&&!O.dynamicProps)O.props!==void 0&&(s.props=No.mergeEvaluated.props(i,O.props,s.props));else{let I=i.var("props",(0,Le._)`${w}.evaluated.props`);s.props=No.mergeEvaluated.props(i,I,s.props,Le.Name)}if(s.items!==!0)if(O&&!O.dynamicItems)O.items!==void 0&&(s.items=No.mergeEvaluated.items(i,O.items,s.items));else{let I=i.var("items",(0,Le._)`${w}.evaluated.items`);s.items=No.mergeEvaluated.items(i,I,s.items,Le.Name)}}}jt.callRef=Mo;jt.default=jx});var iy=j(vu=>{"use strict";p();m();h();Object.defineProperty(vu,"__esModule",{value:!0});var Ox=si(),Ax=["$schema","id","$defs",{keyword:"$comment"},"definitions",Ox.default];vu.default=Ax});var oy=j(wu=>{"use strict";p();m();h();Object.defineProperty(wu,"__esModule",{value:!0});var $u=an(),qx=V(),et=qx.operators,_u={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:et.LTE,fail:et.GT},{okStr:"<",ok:et.LT,fail:et.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:et.GTE,fail:et.LT},{okStr:">",ok:et.GT,fail:et.LTE}]}},Ix={message:e=>$u.str`must be ${bu(e).okStr} ${e.schemaCode}`,params:e=>$u._`{comparison: ${bu(e).okStr}, limit: ${e.schemaCode}}`},kx={keyword:Object.keys(_u),type:"number",schemaType:"number",$data:!0,error:Ix,code(e){let{data:r,schemaCode:t}=e;e.fail$data($u._`${r} ${bu(e).fail} ${t} || isNaN(${r})`)}};function bu(e){var r;let t=e.keyword,n=!((r=e.parentSchema)===null||r===void 0)&&r[_u[t].exclusive]?1:0;return _u[t].ops[n]}wu.default=kx});var ay=j(Pu=>{"use strict";p();m();h();Object.defineProperty(Pu,"__esModule",{value:!0});var sy={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},Tx={keyword:Object.keys(sy),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:r}){let t=sy[e];if(r[t]===void 0)throw new Error(`${e} can only be used with ${t}`)}};Pu.default=Tx});var Eu=j(xu=>{"use strict";p();m();h();Object.defineProperty(xu,"__esModule",{value:!0});var ai=V(),Rx={message:({schemaCode:e})=>(0,ai.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,ai._)`{multipleOf: ${e}}`},Cx={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Rx,code(e){let{gen:r,data:t,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,o=r.let("res"),a=s?(0,ai._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${s}`:(0,ai._)`${o} !== parseInt(${o})`;e.fail$data((0,ai._)`(${n} === 0 || (${o} = ${t}/${n}, ${a}))`)}};xu.default=Cx});var cy=j(Su=>{"use strict";p();m();h();Object.defineProperty(Su,"__esModule",{value:!0});function uy(e){let r=e.length,t=0,n=0,i;for(;n=55296&&i<=56319&&n{"use strict";p();m();h();Object.defineProperty(ju,"__esModule",{value:!0});var Ot=V(),Nx=Y(),Mx=cy(),Dx={message({keyword:e,schemaCode:r}){let t=e==="maxLength"?"more":"fewer";return(0,Ot.str)`must NOT have ${t} than ${r} characters`},params:({schemaCode:e})=>(0,Ot._)`{limit: ${e}}`},Bx={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Dx,code(e){let{keyword:r,data:t,schemaCode:n,it:i}=e,s=r==="maxLength"?Ot.operators.GT:Ot.operators.LT,o=i.opts.unicode===!1?(0,Ot._)`${t}.length`:(0,Ot._)`${(0,Nx.useFunc)(e.gen,Mx.default)}(${t})`;e.fail$data((0,Ot._)`${o} ${s} ${n}`)}};ju.default=Bx});var qu=j(Au=>{"use strict";p();m();h();Object.defineProperty(Au,"__esModule",{value:!0});var Ux=Je(),Do=V(),Lx={message:({schemaCode:e})=>(0,Do.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Do._)`{pattern: ${e}}`},Fx={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Lx,code(e){let{data:r,$data:t,schema:n,schemaCode:i,it:s}=e,o=s.opts.unicodeRegExp?"u":"",a=t?(0,Do._)`(new RegExp(${i}, ${o}))`:(0,Ux.usePattern)(e,n);e.fail$data((0,Do._)`!${a}.test(${r})`)}};Au.default=Fx});var ku=j(Iu=>{"use strict";p();m();h();Object.defineProperty(Iu,"__esModule",{value:!0});var ui=V(),Vx={message({keyword:e,schemaCode:r}){let t=e==="maxProperties"?"more":"fewer";return(0,ui.str)`must NOT have ${t} than ${r} properties`},params:({schemaCode:e})=>(0,ui._)`{limit: ${e}}`},zx={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Vx,code(e){let{keyword:r,data:t,schemaCode:n}=e,i=r==="maxProperties"?ui.operators.GT:ui.operators.LT;e.fail$data((0,ui._)`Object.keys(${t}).length ${i} ${n}`)}};Iu.default=zx});var Ru=j(Tu=>{"use strict";p();m();h();Object.defineProperty(Tu,"__esModule",{value:!0});var ci=Je(),li=V(),Hx=Y(),Kx={message:({params:{missingProperty:e}})=>(0,li.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,li._)`{missingProperty: ${e}}`},Gx={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Kx,code(e){let{gen:r,schema:t,schemaCode:n,data:i,$data:s,it:o}=e,{opts:a}=o;if(!s&&t.length===0)return;let l=t.length>=a.loopRequired;if(o.allErrors?f():g(),a.strictRequired){let _=e.parentSchema.properties,{definedProperties:w}=e.it;for(let P of t)if((_==null?void 0:_[P])===void 0&&!w.has(P)){let O=o.schemaEnv.baseId+o.errSchemaPath,I=`required property "${P}" is not defined at "${O}" (strictRequired)`;(0,Hx.checkStrictMode)(o,I,o.opts.strictRequired)}}function f(){if(l||s)e.block$data(li.nil,y);else for(let _ of t)(0,ci.checkReportMissingProp)(e,_)}function g(){let _=r.let("missing");if(l||s){let w=r.let("valid",!0);e.block$data(w,()=>b(_,w)),e.ok(w)}else r.if((0,ci.checkMissingProp)(e,t,_)),(0,ci.reportMissingProp)(e,_),r.else()}function y(){r.forOf("prop",n,_=>{e.setParams({missingProperty:_}),r.if((0,ci.noPropertyInData)(r,i,_,a.ownProperties),()=>e.error())})}function b(_,w){e.setParams({missingProperty:_}),r.forOf(_,n,()=>{r.assign(w,(0,ci.propertyInData)(r,i,_,a.ownProperties)),r.if((0,li.not)(w),()=>{e.error(),r.break()})},li.nil)}}};Tu.default=Gx});var Nu=j(Cu=>{"use strict";p();m();h();Object.defineProperty(Cu,"__esModule",{value:!0});var fi=V(),Jx={message({keyword:e,schemaCode:r}){let t=e==="maxItems"?"more":"fewer";return(0,fi.str)`must NOT have ${t} than ${r} items`},params:({schemaCode:e})=>(0,fi._)`{limit: ${e}}`},Wx={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Jx,code(e){let{keyword:r,data:t,schemaCode:n}=e,i=r==="maxItems"?fi.operators.GT:fi.operators.LT;e.fail$data((0,fi._)`${t}.length ${i} ${n}`)}};Cu.default=Wx});var Bo=j(Mu=>{"use strict";p();m();h();Object.defineProperty(Mu,"__esModule",{value:!0});var ly=Za();ly.code='require("ajv/dist/runtime/equal").default';Mu.default=ly});var Uu=j(Bu=>{"use strict";p();m();h();Object.defineProperty(Bu,"__esModule",{value:!0});var Du=Wn(),Pe=V(),Yx=Y(),Xx=Bo(),Qx={message:({params:{i:e,j:r}})=>(0,Pe.str)`must NOT have duplicate items (items ## ${r} and ${e} are identical)`,params:({params:{i:e,j:r}})=>(0,Pe._)`{i: ${e}, j: ${r}}`},Zx={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Qx,code(e){let{gen:r,data:t,$data:n,schema:i,parentSchema:s,schemaCode:o,it:a}=e;if(!n&&!i)return;let l=r.let("valid"),f=s.items?(0,Du.getSchemaTypes)(s.items):[];e.block$data(l,g,(0,Pe._)`${o} === false`),e.ok(l);function g(){let w=r.let("i",(0,Pe._)`${t}.length`),P=r.let("j");e.setParams({i:w,j:P}),r.assign(l,!0),r.if((0,Pe._)`${w} > 1`,()=>(y()?b:_)(w,P))}function y(){return f.length>0&&!f.some(w=>w==="object"||w==="array")}function b(w,P){let O=r.name("item"),I=(0,Du.checkDataTypes)(f,O,a.opts.strictNumbers,Du.DataType.Wrong),R=r.const("indices",(0,Pe._)`{}`);r.for((0,Pe._)`;${w}--;`,()=>{r.let(O,(0,Pe._)`${t}[${w}]`),r.if(I,(0,Pe._)`continue`),f.length>1&&r.if((0,Pe._)`typeof ${O} == "string"`,(0,Pe._)`${O} += "_"`),r.if((0,Pe._)`typeof ${R}[${O}] == "number"`,()=>{r.assign(P,(0,Pe._)`${R}[${O}]`),e.error(),r.assign(l,!1).break()}).code((0,Pe._)`${R}[${O}] = ${w}`)})}function _(w,P){let O=(0,Yx.useFunc)(r,Xx.default),I=r.name("outer");r.label(I).for((0,Pe._)`;${w}--;`,()=>r.for((0,Pe._)`${P} = ${w}; ${P}--;`,()=>r.if((0,Pe._)`${O}(${t}[${w}], ${t}[${P}])`,()=>{e.error(),r.assign(l,!1).break(I)})))}}};Bu.default=Zx});var Vu=j(Fu=>{"use strict";p();m();h();Object.defineProperty(Fu,"__esModule",{value:!0});var Lu=V(),eE=Y(),rE=Bo(),tE={message:"must be equal to constant",params:({schemaCode:e})=>(0,Lu._)`{allowedValue: ${e}}`},nE={keyword:"const",$data:!0,error:tE,code(e){let{gen:r,data:t,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,Lu._)`!${(0,eE.useFunc)(r,rE.default)}(${t}, ${i})`):e.fail((0,Lu._)`${s} !== ${t}`)}};Fu.default=nE});var Hu=j(zu=>{"use strict";p();m();h();Object.defineProperty(zu,"__esModule",{value:!0});var di=V(),iE=Y(),oE=Bo(),sE={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,di._)`{allowedValues: ${e}}`},aE={keyword:"enum",schemaType:"array",$data:!0,error:sE,code(e){let{gen:r,data:t,$data:n,schema:i,schemaCode:s,it:o}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let a=i.length>=o.opts.loopEnum,l,f=()=>l!=null?l:l=(0,iE.useFunc)(r,oE.default),g;if(a||n)g=r.let("valid"),e.block$data(g,y);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let _=r.const("vSchema",s);g=(0,di.or)(...i.map((w,P)=>b(_,P)))}e.pass(g);function y(){r.assign(g,!1),r.forOf("v",s,_=>r.if((0,di._)`${f()}(${t}, ${_})`,()=>r.assign(g,!0).break()))}function b(_,w){let P=i[w];return typeof P=="object"&&P!==null?(0,di._)`${f()}(${t}, ${_}[${w}])`:(0,di._)`${t} === ${P}`}}};zu.default=aE});var fy=j(Ku=>{"use strict";p();m();h();Object.defineProperty(Ku,"__esModule",{value:!0});var uE=oy(),cE=ay(),lE=Eu(),fE=Ou(),dE=qu(),pE=ku(),hE=Ru(),mE=Nu(),yE=Uu(),gE=Vu(),vE=Hu(),$E=[uE.default,cE.default,lE.default,fE.default,dE.default,pE.default,hE.default,mE.default,yE.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},gE.default,vE.default];Ku.default=$E});var Ju=j(pi=>{"use strict";p();m();h();Object.defineProperty(pi,"__esModule",{value:!0});pi.validateAdditionalItems=void 0;var At=V(),Gu=Y(),_E={message:({params:{len:e}})=>(0,At.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,At._)`{limit: ${e}}`},bE={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:_E,code(e){let{parentSchema:r,it:t}=e,{items:n}=r;if(!Array.isArray(n)){(0,Gu.checkStrictMode)(t,'"additionalItems" is ignored when "items" is not an array of schemas');return}dy(e,n)}};function dy(e,r){let{gen:t,schema:n,data:i,keyword:s,it:o}=e;o.items=!0;let a=t.const("len",(0,At._)`${i}.length`);if(n===!1)e.setParams({len:r.length}),e.pass((0,At._)`${a} <= ${r.length}`);else if(typeof n=="object"&&!(0,Gu.alwaysValidSchema)(o,n)){let f=t.var("valid",(0,At._)`${a} <= ${r.length}`);t.if((0,At.not)(f),()=>l(f)),e.ok(f)}function l(f){t.forRange("i",r.length,a,g=>{e.subschema({keyword:s,dataProp:g,dataPropType:Gu.Type.Num},f),o.allErrors||t.if((0,At.not)(f),()=>t.break())})}}pi.validateAdditionalItems=dy;pi.default=bE});var Wu=j(hi=>{"use strict";p();m();h();Object.defineProperty(hi,"__esModule",{value:!0});hi.validateTuple=void 0;var py=V(),Uo=Y(),wE=Je(),PE={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:r,it:t}=e;if(Array.isArray(r))return hy(e,"additionalItems",r);t.items=!0,!(0,Uo.alwaysValidSchema)(t,r)&&e.ok((0,wE.validateArray)(e))}};function hy(e,r,t=e.schema){let{gen:n,parentSchema:i,data:s,keyword:o,it:a}=e;g(i),a.opts.unevaluated&&t.length&&a.items!==!0&&(a.items=Uo.mergeEvaluated.items(n,t.length,a.items));let l=n.name("valid"),f=n.const("len",(0,py._)`${s}.length`);t.forEach((y,b)=>{(0,Uo.alwaysValidSchema)(a,y)||(n.if((0,py._)`${f} > ${b}`,()=>e.subschema({keyword:o,schemaProp:b,dataProp:b},l)),e.ok(l))});function g(y){let{opts:b,errSchemaPath:_}=a,w=t.length,P=w===y.minItems&&(w===y.maxItems||y[r]===!1);if(b.strictTuples&&!P){let O=`"${o}" is ${w}-tuple, but minItems or maxItems/${r} are not specified or different at path "${_}"`;(0,Uo.checkStrictMode)(a,O,b.strictTuples)}}}hi.validateTuple=hy;hi.default=PE});var my=j(Yu=>{"use strict";p();m();h();Object.defineProperty(Yu,"__esModule",{value:!0});var xE=Wu(),EE={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,xE.validateTuple)(e,"items")};Yu.default=EE});var gy=j(Xu=>{"use strict";p();m();h();Object.defineProperty(Xu,"__esModule",{value:!0});var yy=V(),SE=Y(),jE=Je(),OE=Ju(),AE={message:({params:{len:e}})=>(0,yy.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,yy._)`{limit: ${e}}`},qE={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:AE,code(e){let{schema:r,parentSchema:t,it:n}=e,{prefixItems:i}=t;n.items=!0,!(0,SE.alwaysValidSchema)(n,r)&&(i?(0,OE.validateAdditionalItems)(e,i):e.ok((0,jE.validateArray)(e)))}};Xu.default=qE});var vy=j(Qu=>{"use strict";p();m();h();Object.defineProperty(Qu,"__esModule",{value:!0});var Ye=V(),Lo=Y(),IE={message:({params:{min:e,max:r}})=>r===void 0?(0,Ye.str)`must contain at least ${e} valid item(s)`:(0,Ye.str)`must contain at least ${e} and no more than ${r} valid item(s)`,params:({params:{min:e,max:r}})=>r===void 0?(0,Ye._)`{minContains: ${e}}`:(0,Ye._)`{minContains: ${e}, maxContains: ${r}}`},kE={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:IE,code(e){let{gen:r,schema:t,parentSchema:n,data:i,it:s}=e,o,a,{minContains:l,maxContains:f}=n;s.opts.next?(o=l===void 0?1:l,a=f):o=1;let g=r.const("len",(0,Ye._)`${i}.length`);if(e.setParams({min:o,max:a}),a===void 0&&o===0){(0,Lo.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&o>a){(0,Lo.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Lo.alwaysValidSchema)(s,t)){let P=(0,Ye._)`${g} >= ${o}`;a!==void 0&&(P=(0,Ye._)`${P} && ${g} <= ${a}`),e.pass(P);return}s.items=!0;let y=r.name("valid");a===void 0&&o===1?_(y,()=>r.if(y,()=>r.break())):o===0?(r.let(y,!0),a!==void 0&&r.if((0,Ye._)`${i}.length > 0`,b)):(r.let(y,!1),b()),e.result(y,()=>e.reset());function b(){let P=r.name("_valid"),O=r.let("count",0);_(P,()=>r.if(P,()=>w(O)))}function _(P,O){r.forRange("i",0,g,I=>{e.subschema({keyword:"contains",dataProp:I,dataPropType:Lo.Type.Num,compositeRule:!0},P),O()})}function w(P){r.code((0,Ye._)`${P}++`),a===void 0?r.if((0,Ye._)`${P} >= ${o}`,()=>r.assign(y,!0).break()):(r.if((0,Ye._)`${P} > ${a}`,()=>r.assign(y,!1).break()),o===1?r.assign(y,!0):r.if((0,Ye._)`${P} >= ${o}`,()=>r.assign(y,!0)))}}};Qu.default=kE});var Fo=j(xr=>{"use strict";p();m();h();Object.defineProperty(xr,"__esModule",{value:!0});xr.validateSchemaDeps=xr.validatePropertyDeps=xr.error=void 0;var Zu=V(),TE=Y(),mi=Je();xr.error={message:({params:{property:e,depsCount:r,deps:t}})=>{let n=r===1?"property":"properties";return(0,Zu.str)`must have ${n} ${t} when property ${e} is present`},params:({params:{property:e,depsCount:r,deps:t,missingProperty:n}})=>(0,Zu._)`{property: ${e}, + || ${o} === "boolean" || ${i} === null`).assign(a,(0,z._)`[${i}]`)}}}function g1({gen:e,parentData:r,parentDataProperty:t},n){e.if((0,z._)`${r} !== undefined`,()=>e.assign((0,z._)`${r}[${t}]`,n))}function Ga(e,r,t,n=rn.Correct){let i=n===rn.Correct?z.operators.EQ:z.operators.NEQ,s;switch(e){case"null":return(0,z._)`${r} ${i} null`;case"array":s=(0,z._)`Array.isArray(${r})`;break;case"object":s=(0,z._)`${r} && typeof ${r} == "object" && !Array.isArray(${r})`;break;case"integer":s=o((0,z._)`!(${r} % 1) && !isNaN(${r})`);break;case"number":s=o();break;default:return(0,z._)`typeof ${r} ${i} ${e}`}return n===rn.Correct?s:(0,z.not)(s);function o(a=z.nil){return(0,z.and)((0,z._)`typeof ${r} == "number"`,a,t?(0,z._)`isFinite(${r})`:z.nil)}}qe.checkDataType=Ga;function Ja(e,r,t,n){if(e.length===1)return Ga(e[0],r,t,n);let i,s=(0,Gh.toHash)(e);if(s.array&&s.object){let o=(0,z._)`typeof ${r} != "object"`;i=s.null?o:(0,z._)`!${r} || ${o}`,delete s.null,delete s.array,delete s.object}else i=z.nil;s.number&&delete s.integer;for(let o in s)i=(0,z.and)(i,Ga(o,r,t,n));return i}qe.checkDataTypes=Ja;var v1={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:r})=>typeof e=="string"?(0,z._)`{type: ${e}}`:(0,z._)`{type: ${r}}`};function Wa(e){let r=$1(e);(0,d1.reportError)(r,v1)}qe.reportTypeError=Wa;function $1(e){let{gen:r,data:t,schema:n}=e,i=(0,Gh.schemaRefOrVal)(e,n,"type");return{gen:r,keyword:"type",data:t,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}});var Xh=j(So=>{"use strict";p();m();h();Object.defineProperty(So,"__esModule",{value:!0});So.assignDefaults=void 0;var tn=V(),_1=Y();function b1(e,r){let{properties:t,items:n}=e.schema;if(r==="object"&&t)for(let i in t)Yh(e,i,t[i].default);else r==="array"&&Array.isArray(n)&&n.forEach((i,s)=>Yh(e,s,i.default))}So.assignDefaults=b1;function Yh(e,r,t){let{gen:n,compositeRule:i,data:s,opts:o}=e;if(t===void 0)return;let a=(0,tn._)`${s}${(0,tn.getProperty)(r)}`;if(i){(0,_1.checkStrictMode)(e,`default is ignored for: ${a}`);return}let l=(0,tn._)`${a} === undefined`;o.useDefaults==="empty"&&(l=(0,tn._)`${l} || ${a} === null || ${a} === ""`),n.if(l,(0,tn._)`${a} = ${(0,tn.stringify)(t)}`)}});var Je=j(ee=>{"use strict";p();m();h();Object.defineProperty(ee,"__esModule",{value:!0});ee.validateUnion=ee.validateArray=ee.usePattern=ee.callValidateCode=ee.schemaProperties=ee.allSchemaProperties=ee.noPropertyInData=ee.propertyInData=ee.isOwnProperty=ee.hasPropFunc=ee.reportMissingProp=ee.checkMissingProp=ee.checkReportMissingProp=void 0;var ne=V(),Ya=Y(),Yr=Ge(),w1=Y();function P1(e,r){let{gen:t,data:n,it:i}=e;t.if(Qa(t,n,r,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,ne._)`${r}`},!0),e.error()})}ee.checkReportMissingProp=P1;function x1({gen:e,data:r,it:{opts:t}},n,i){return(0,ne.or)(...n.map(s=>(0,ne.and)(Qa(e,r,s,t.ownProperties),(0,ne._)`${i} = ${s}`)))}ee.checkMissingProp=x1;function E1(e,r){e.setParams({missingProperty:r},!0),e.error()}ee.reportMissingProp=E1;function Qh(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ne._)`Object.prototype.hasOwnProperty`})}ee.hasPropFunc=Qh;function Xa(e,r,t){return(0,ne._)`${Qh(e)}.call(${r}, ${t})`}ee.isOwnProperty=Xa;function S1(e,r,t,n){let i=(0,ne._)`${r}${(0,ne.getProperty)(t)} !== undefined`;return n?(0,ne._)`${i} && ${Xa(e,r,t)}`:i}ee.propertyInData=S1;function Qa(e,r,t,n){let i=(0,ne._)`${r}${(0,ne.getProperty)(t)} === undefined`;return n?(0,ne.or)(i,(0,ne.not)(Xa(e,r,t))):i}ee.noPropertyInData=Qa;function Zh(e){return e?Object.keys(e).filter(r=>r!=="__proto__"):[]}ee.allSchemaProperties=Zh;function j1(e,r){return Zh(r).filter(t=>!(0,Ya.alwaysValidSchema)(e,r[t]))}ee.schemaProperties=j1;function O1({schemaCode:e,data:r,it:{gen:t,topSchemaRef:n,schemaPath:i,errorPath:s},it:o},a,l,f){let g=f?(0,ne._)`${e}, ${r}, ${n}${i}`:r,y=[[Yr.default.instancePath,(0,ne.strConcat)(Yr.default.instancePath,s)],[Yr.default.parentData,o.parentData],[Yr.default.parentDataProperty,o.parentDataProperty],[Yr.default.rootData,Yr.default.rootData]];o.opts.dynamicRef&&y.push([Yr.default.dynamicAnchors,Yr.default.dynamicAnchors]);let b=(0,ne._)`${g}, ${t.object(...y)}`;return l!==ne.nil?(0,ne._)`${a}.call(${l}, ${b})`:(0,ne._)`${a}(${b})`}ee.callValidateCode=O1;var A1=(0,ne._)`new RegExp`;function q1({gen:e,it:{opts:r}},t){let n=r.unicodeRegExp?"u":"",{regExp:i}=r.code,s=i(t,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,ne._)`${i.code==="new RegExp"?A1:(0,w1.useFunc)(e,i)}(${t}, ${n})`})}ee.usePattern=q1;function I1(e){let{gen:r,data:t,keyword:n,it:i}=e,s=r.name("valid");if(i.allErrors){let a=r.let("valid",!0);return o(()=>r.assign(a,!1)),a}return r.var(s,!0),o(()=>r.break()),s;function o(a){let l=r.const("len",(0,ne._)`${t}.length`);r.forRange("i",0,l,f=>{e.subschema({keyword:n,dataProp:f,dataPropType:Ya.Type.Num},s),r.if((0,ne.not)(s),a)})}}ee.validateArray=I1;function k1(e){let{gen:r,schema:t,keyword:n,it:i}=e;if(!Array.isArray(t))throw new Error("ajv implementation error");if(t.some(l=>(0,Ya.alwaysValidSchema)(i,l))&&!i.opts.unevaluated)return;let o=r.let("valid",!1),a=r.name("_valid");r.block(()=>t.forEach((l,f)=>{let g=e.subschema({keyword:n,schemaProp:f,compositeRule:!0},a);r.assign(o,(0,ne._)`${o} || ${a}`),e.mergeValidEvaluated(g,a)||r.if((0,ne.not)(o))})),e.result(o,()=>e.reset(),()=>e.error(!0))}ee.validateUnion=k1});var tm=j(br=>{"use strict";p();m();h();Object.defineProperty(br,"__esModule",{value:!0});br.validateKeywordUsage=br.validSchemaType=br.funcKeywordCode=br.macroKeywordCode=void 0;var Re=V(),Et=Ge(),T1=Je(),R1=Jn();function C1(e,r){let{gen:t,keyword:n,schema:i,parentSchema:s,it:o}=e,a=r.macro.call(o.self,i,s,o),l=rm(t,n,a);o.opts.validateSchema!==!1&&o.self.validateSchema(a,!0);let f=t.name("valid");e.subschema({schema:a,schemaPath:Re.nil,errSchemaPath:`${o.errSchemaPath}/${n}`,topSchemaRef:l,compositeRule:!0},f),e.pass(f,()=>e.error(!0))}br.macroKeywordCode=C1;function N1(e,r){var t;let{gen:n,keyword:i,schema:s,parentSchema:o,$data:a,it:l}=e;D1(l,r);let f=!a&&r.compile?r.compile.call(l.self,s,o,l):r.validate,g=rm(n,i,f),y=n.let("valid");e.block$data(y,b),e.ok((t=r.valid)!==null&&t!==void 0?t:y);function b(){if(r.errors===!1)P(),r.modifying&&em(e),O(()=>e.error());else{let I=r.async?_():w();r.modifying&&em(e),O(()=>M1(e,I))}}function _(){let I=n.let("ruleErrs",null);return n.try(()=>P((0,Re._)`await `),R=>n.assign(y,!1).if((0,Re._)`${R} instanceof ${l.ValidationError}`,()=>n.assign(I,(0,Re._)`${R}.errors`),()=>n.throw(R))),I}function w(){let I=(0,Re._)`${g}.errors`;return n.assign(I,null),P(Re.nil),I}function P(I=r.async?(0,Re._)`await `:Re.nil){let R=l.opts.passContext?Et.default.this:Et.default.self,C=!("compile"in r&&!a||r.schema===!1);n.assign(y,(0,Re._)`${I}${(0,T1.callValidateCode)(e,g,R,C)}`,r.modifying)}function O(I){var R;n.if((0,Re.not)((R=r.valid)!==null&&R!==void 0?R:y),I)}}br.funcKeywordCode=N1;function em(e){let{gen:r,data:t,it:n}=e;r.if(n.parentData,()=>r.assign(t,(0,Re._)`${n.parentData}[${n.parentDataProperty}]`))}function M1(e,r){let{gen:t}=e;t.if((0,Re._)`Array.isArray(${r})`,()=>{t.assign(Et.default.vErrors,(0,Re._)`${Et.default.vErrors} === null ? ${r} : ${Et.default.vErrors}.concat(${r})`).assign(Et.default.errors,(0,Re._)`${Et.default.vErrors}.length`),(0,R1.extendErrors)(e)},()=>e.error())}function D1({schemaEnv:e},r){if(r.async&&!e.$async)throw new Error("async keyword in sync schema")}function rm(e,r,t){if(t===void 0)throw new Error(`keyword "${r}" failed to compile`);return e.scopeValue("keyword",typeof t=="function"?{ref:t}:{ref:t,code:(0,Re.stringify)(t)})}function B1(e,r,t=!1){return!r.length||r.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||t&&typeof e>"u")}br.validSchemaType=B1;function U1({schema:e,opts:r,self:t,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");let o=i.dependencies;if(o!=null&&o.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${s}: ${o.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){let l=`keyword "${s}" value is invalid at path "${n}": `+t.errorsText(i.validateSchema.errors);if(r.validateSchema==="log")t.logger.error(l);else throw new Error(l)}}br.validateKeywordUsage=U1});var im=j(Xr=>{"use strict";p();m();h();Object.defineProperty(Xr,"__esModule",{value:!0});Xr.extendSubschemaMode=Xr.extendSubschemaData=Xr.getSubschema=void 0;var wr=V(),nm=Y();function L1(e,{keyword:r,schemaProp:t,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:o}){if(r!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(r!==void 0){let a=e.schema[r];return t===void 0?{schema:a,schemaPath:(0,wr._)`${e.schemaPath}${(0,wr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${r}`}:{schema:a[t],schemaPath:(0,wr._)`${e.schemaPath}${(0,wr.getProperty)(r)}${(0,wr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${r}/${(0,nm.escapeFragment)(t)}`}}if(n!==void 0){if(i===void 0||s===void 0||o===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:o,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}Xr.getSubschema=L1;function F1(e,r,{dataProp:t,dataPropType:n,data:i,dataTypes:s,propertyName:o}){if(i!==void 0&&t!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=r;if(t!==void 0){let{errorPath:f,dataPathArr:g,opts:y}=r,b=a.let("data",(0,wr._)`${r.data}${(0,wr.getProperty)(t)}`,!0);l(b),e.errorPath=(0,wr.str)`${f}${(0,nm.getErrorPath)(t,n,y.jsPropertySyntax)}`,e.parentDataProperty=(0,wr._)`${t}`,e.dataPathArr=[...g,e.parentDataProperty]}if(i!==void 0){let f=i instanceof wr.Name?i:a.let("data",i,!0);l(f),o!==void 0&&(e.propertyName=o)}s&&(e.dataTypes=s);function l(f){e.data=f,e.dataLevel=r.dataLevel+1,e.dataTypes=[],r.definedProperties=new Set,e.parentData=r.data,e.dataNames=[...r.dataNames,f]}}Xr.extendSubschemaData=F1;function V1(e,{jtdDiscriminator:r,jtdMetadata:t,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=r,e.jtdMetadata=t}Xr.extendSubschemaMode=V1});var Za=j((kC,om)=>{"use strict";p();m();h();om.exports=function e(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var n,i,s;if(Array.isArray(r)){if(n=r.length,n!=t.length)return!1;for(i=n;i--!==0;)if(!e(r[i],t[i]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===t.toString();if(s=Object.keys(r),n=s.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[i]))return!1;for(i=n;i--!==0;){var o=s[i];if(!e(r[o],t[o]))return!1}return!0}return r!==r&&t!==t}});var am=j((NC,sm)=>{"use strict";p();m();h();var Qr=sm.exports=function(e,r,t){typeof r=="function"&&(t=r,r={}),t=r.cb||t;var n=typeof t=="function"?t:t.pre||function(){},i=t.post||function(){};jo(r,n,i,e,"",e)};Qr.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Qr.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Qr.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Qr.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 jo(e,r,t,n,i,s,o,a,l,f){if(n&&typeof n=="object"&&!Array.isArray(n)){r(n,i,s,o,a,l,f);for(var g in n){var y=n[g];if(Array.isArray(y)){if(g in Qr.arrayKeywords)for(var b=0;b{"use strict";p();m();h();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.getSchemaRefs=Ue.resolveUrl=Ue.normalizeId=Ue._getFullPath=Ue.getFullPath=Ue.inlineRef=void 0;var H1=Y(),K1=Za(),G1=am(),J1=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function W1(e,r=!0){return typeof e=="boolean"?!0:r===!0?!eu(e):r?um(e)<=r:!1}Ue.inlineRef=W1;var Y1=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function eu(e){for(let r in e){if(Y1.has(r))return!0;let t=e[r];if(Array.isArray(t)&&t.some(eu)||typeof t=="object"&&eu(t))return!0}return!1}function um(e){let r=0;for(let t in e){if(t==="$ref")return 1/0;if(r++,!J1.has(t)&&(typeof e[t]=="object"&&(0,H1.eachItem)(e[t],n=>r+=um(n)),r===1/0))return 1/0}return r}function cm(e,r="",t){t!==!1&&(r=nn(r));let n=e.parse(r);return lm(e,n)}Ue.getFullPath=cm;function lm(e,r){return e.serialize(r).split("#")[0]+"#"}Ue._getFullPath=lm;var X1=/#\/?$/;function nn(e){return e?e.replace(X1,""):""}Ue.normalizeId=nn;function Q1(e,r,t){return t=nn(t),e.resolve(r,t)}Ue.resolveUrl=Q1;var Z1=/^[a-z_][-a-z0-9._]*$/i;function eP(e,r){if(typeof e=="boolean")return{};let{schemaId:t,uriResolver:n}=this.opts,i=nn(e[t]||r),s={"":i},o=cm(n,i,!1),a={},l=new Set;return G1(e,{allKeys:!0},(y,b,_,w)=>{if(w===void 0)return;let P=o+b,O=s[w];typeof y[t]=="string"&&(O=I.call(this,y[t])),R.call(this,y.$anchor),R.call(this,y.$dynamicAnchor),s[b]=O;function I(C){let U=this.opts.uriResolver.resolve;if(C=nn(O?U(O,C):C),l.has(C))throw g(C);l.add(C);let N=this.refs[C];return typeof N=="string"&&(N=this.refs[N]),typeof N=="object"?f(y,N.schema,C):C!==nn(P)&&(C[0]==="#"?(f(y,a[C],C),a[C]=y):this.refs[C]=P),C}function R(C){if(typeof C=="string"){if(!Z1.test(C))throw new Error(`invalid anchor "${C}"`);I.call(this,`#${C}`)}}}),a;function f(y,b,_){if(b!==void 0&&!K1(y,b))throw g(_)}function g(y){return new Error(`reference "${y}" resolves to more than one schema`)}}Ue.getSchemaRefs=eP});var Zn=j(Zr=>{"use strict";p();m();h();Object.defineProperty(Zr,"__esModule",{value:!0});Zr.getData=Zr.KeywordCxt=Zr.validateFunctionCode=void 0;var mm=zh(),fm=Wn(),tu=Ka(),Oo=Wn(),rP=Xh(),Qn=tm(),ru=im(),M=V(),L=Ge(),tP=Yn(),Mr=Y(),Xn=Jn();function nP(e){if(vm(e)&&($m(e),gm(e))){sP(e);return}ym(e,()=>(0,mm.topBoolOrEmptySchema)(e))}Zr.validateFunctionCode=nP;function ym({gen:e,validateName:r,schema:t,schemaEnv:n,opts:i},s){i.code.es5?e.func(r,(0,M._)`${L.default.data}, ${L.default.valCxt}`,n.$async,()=>{e.code((0,M._)`"use strict"; ${dm(t,i)}`),oP(e,i),e.code(s)}):e.func(r,(0,M._)`${L.default.data}, ${iP(i)}`,n.$async,()=>e.code(dm(t,i)).code(s))}function iP(e){return(0,M._)`{${L.default.instancePath}="", ${L.default.parentData}, ${L.default.parentDataProperty}, ${L.default.rootData}=${L.default.data}${e.dynamicRef?(0,M._)`, ${L.default.dynamicAnchors}={}`:M.nil}}={}`}function oP(e,r){e.if(L.default.valCxt,()=>{e.var(L.default.instancePath,(0,M._)`${L.default.valCxt}.${L.default.instancePath}`),e.var(L.default.parentData,(0,M._)`${L.default.valCxt}.${L.default.parentData}`),e.var(L.default.parentDataProperty,(0,M._)`${L.default.valCxt}.${L.default.parentDataProperty}`),e.var(L.default.rootData,(0,M._)`${L.default.valCxt}.${L.default.rootData}`),r.dynamicRef&&e.var(L.default.dynamicAnchors,(0,M._)`${L.default.valCxt}.${L.default.dynamicAnchors}`)},()=>{e.var(L.default.instancePath,(0,M._)`""`),e.var(L.default.parentData,(0,M._)`undefined`),e.var(L.default.parentDataProperty,(0,M._)`undefined`),e.var(L.default.rootData,L.default.data),r.dynamicRef&&e.var(L.default.dynamicAnchors,(0,M._)`{}`)})}function sP(e){let{schema:r,opts:t,gen:n}=e;ym(e,()=>{t.$comment&&r.$comment&&bm(e),fP(e),n.let(L.default.vErrors,null),n.let(L.default.errors,0),t.unevaluated&&aP(e),_m(e),hP(e)})}function aP(e){let{gen:r,validateName:t}=e;e.evaluated=r.const("evaluated",(0,M._)`${t}.evaluated`),r.if((0,M._)`${e.evaluated}.dynamicProps`,()=>r.assign((0,M._)`${e.evaluated}.props`,(0,M._)`undefined`)),r.if((0,M._)`${e.evaluated}.dynamicItems`,()=>r.assign((0,M._)`${e.evaluated}.items`,(0,M._)`undefined`))}function dm(e,r){let t=typeof e=="object"&&e[r.schemaId];return t&&(r.code.source||r.code.process)?(0,M._)`/*# sourceURL=${t} */`:M.nil}function uP(e,r){if(vm(e)&&($m(e),gm(e))){cP(e,r);return}(0,mm.boolOrEmptySchema)(e,r)}function gm({schema:e,self:r}){if(typeof e=="boolean")return!e;for(let t in e)if(r.RULES.all[t])return!0;return!1}function vm(e){return typeof e.schema!="boolean"}function cP(e,r){let{schema:t,gen:n,opts:i}=e;i.$comment&&t.$comment&&bm(e),dP(e),pP(e);let s=n.const("_errs",L.default.errors);_m(e,s),n.var(r,(0,M._)`${s} === ${L.default.errors}`)}function $m(e){(0,Mr.checkUnknownRules)(e),lP(e)}function _m(e,r){if(e.opts.jtd)return pm(e,[],!1,r);let t=(0,fm.getSchemaTypes)(e.schema),n=(0,fm.coerceAndCheckDataType)(e,t);pm(e,t,!n,r)}function lP(e){let{schema:r,errSchemaPath:t,opts:n,self:i}=e;r.$ref&&n.ignoreKeywordsWithRef&&(0,Mr.schemaHasRulesButRef)(r,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${t}"`)}function fP(e){let{schema:r,opts:t}=e;r.default!==void 0&&t.useDefaults&&t.strictSchema&&(0,Mr.checkStrictMode)(e,"default is ignored in the schema root")}function dP(e){let r=e.schema[e.opts.schemaId];r&&(e.baseId=(0,tP.resolveUrl)(e.opts.uriResolver,e.baseId,r))}function pP(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function bm({gen:e,schemaEnv:r,schema:t,errSchemaPath:n,opts:i}){let s=t.$comment;if(i.$comment===!0)e.code((0,M._)`${L.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let o=(0,M.str)`${n}/$comment`,a=e.scopeValue("root",{ref:r.root});e.code((0,M._)`${L.default.self}.opts.$comment(${s}, ${o}, ${a}.schema)`)}}function hP(e){let{gen:r,schemaEnv:t,validateName:n,ValidationError:i,opts:s}=e;t.$async?r.if((0,M._)`${L.default.errors} === 0`,()=>r.return(L.default.data),()=>r.throw((0,M._)`new ${i}(${L.default.vErrors})`)):(r.assign((0,M._)`${n}.errors`,L.default.vErrors),s.unevaluated&&mP(e),r.return((0,M._)`${L.default.errors} === 0`))}function mP({gen:e,evaluated:r,props:t,items:n}){t instanceof M.Name&&e.assign((0,M._)`${r}.props`,t),n instanceof M.Name&&e.assign((0,M._)`${r}.items`,n)}function pm(e,r,t,n){let{gen:i,schema:s,data:o,allErrors:a,opts:l,self:f}=e,{RULES:g}=f;if(s.$ref&&(l.ignoreKeywordsWithRef||!(0,Mr.schemaHasRulesButRef)(s,g))){i.block(()=>Pm(e,"$ref",g.all.$ref.definition));return}l.jtd||yP(e,r),i.block(()=>{for(let b of g.rules)y(b);y(g.post)});function y(b){(0,tu.shouldUseGroup)(s,b)&&(b.type?(i.if((0,Oo.checkDataType)(b.type,o,l.strictNumbers)),hm(e,b),r.length===1&&r[0]===b.type&&t&&(i.else(),(0,Oo.reportTypeError)(e)),i.endIf()):hm(e,b),a||i.if((0,M._)`${L.default.errors} === ${n||0}`))}}function hm(e,r){let{gen:t,schema:n,opts:{useDefaults:i}}=e;i&&(0,rP.assignDefaults)(e,r.type),t.block(()=>{for(let s of r.rules)(0,tu.shouldUseRule)(n,s)&&Pm(e,s.keyword,s.definition,r.type)})}function yP(e,r){e.schemaEnv.meta||!e.opts.strictTypes||(gP(e,r),e.opts.allowUnionTypes||vP(e,r),$P(e,e.dataTypes))}function gP(e,r){if(r.length){if(!e.dataTypes.length){e.dataTypes=r;return}r.forEach(t=>{wm(e.dataTypes,t)||nu(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}),bP(e,r)}}function vP(e,r){r.length>1&&!(r.length===2&&r.includes("null"))&&nu(e,"use allowUnionTypes to allow union type keyword")}function $P(e,r){let t=e.self.RULES.all;for(let n in t){let i=t[n];if(typeof i=="object"&&(0,tu.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(o=>_P(r,o))&&nu(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function _P(e,r){return e.includes(r)||r==="number"&&e.includes("integer")}function wm(e,r){return e.includes(r)||r==="integer"&&e.includes("number")}function bP(e,r){let t=[];for(let n of e.dataTypes)wm(r,n)?t.push(n):r.includes("integer")&&n==="number"&&t.push("integer");e.dataTypes=t}function nu(e,r){let t=e.schemaEnv.baseId+e.errSchemaPath;r+=` at "${t}" (strictTypes)`,(0,Mr.checkStrictMode)(e,r,e.opts.strictTypes)}var Ao=class{constructor(r,t,n){if((0,Qn.validateKeywordUsage)(r,t,n),this.gen=r.gen,this.allErrors=r.allErrors,this.keyword=n,this.data=r.data,this.schema=r.schema[n],this.$data=t.$data&&r.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Mr.schemaRefOrVal)(r,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=r.schema,this.params={},this.it=r,this.def=t,this.$data)this.schemaCode=r.gen.const("vSchema",xm(this.$data,r));else if(this.schemaCode=this.schemaValue,!(0,Qn.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:t.errors!==!1)&&(this.errsCount=r.gen.const("_errs",L.default.errors))}result(r,t,n){this.failResult((0,M.not)(r),t,n)}failResult(r,t,n){this.gen.if(r),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(r,t){this.failResult((0,M.not)(r),void 0,t)}fail(r){if(r===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(r),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(r){if(!this.$data)return this.fail(r);let{schemaCode:t}=this;this.fail((0,M._)`${t} !== undefined && (${(0,M.or)(this.invalid$data(),r)})`)}error(r,t,n){if(t){this.setParams(t),this._error(r,n),this.setParams({});return}this._error(r,n)}_error(r,t){(r?Xn.reportExtraError:Xn.reportError)(this,this.def.error,t)}$dataError(){(0,Xn.reportError)(this,this.def.$dataError||Xn.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Xn.resetErrorsCount)(this.gen,this.errsCount)}ok(r){this.allErrors||this.gen.if(r)}setParams(r,t){t?Object.assign(this.params,r):this.params=r}block$data(r,t,n=M.nil){this.gen.block(()=>{this.check$data(r,n),t()})}check$data(r=M.nil,t=M.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:o}=this;n.if((0,M.or)((0,M._)`${i} === undefined`,t)),r!==M.nil&&n.assign(r,!0),(s.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),r!==M.nil&&n.assign(r,!1)),n.else()}invalid$data(){let{gen:r,schemaCode:t,schemaType:n,def:i,it:s}=this;return(0,M.or)(o(),a());function o(){if(n.length){if(!(t instanceof M.Name))throw new Error("ajv implementation error");let l=Array.isArray(n)?n:[n];return(0,M._)`${(0,Oo.checkDataTypes)(l,t,s.opts.strictNumbers,Oo.DataType.Wrong)}`}return M.nil}function a(){if(i.validateSchema){let l=r.scopeValue("validate$data",{ref:i.validateSchema});return(0,M._)`!${l}(${t})`}return M.nil}}subschema(r,t){let n=(0,ru.getSubschema)(this.it,r);(0,ru.extendSubschemaData)(n,this.it,r),(0,ru.extendSubschemaMode)(n,r);let i={...this.it,...n,items:void 0,props:void 0};return uP(i,t),i}mergeEvaluated(r,t){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&r.props!==void 0&&(n.props=Mr.mergeEvaluated.props(i,r.props,n.props,t)),n.items!==!0&&r.items!==void 0&&(n.items=Mr.mergeEvaluated.items(i,r.items,n.items,t)))}mergeValidEvaluated(r,t){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(t,()=>this.mergeEvaluated(r,M.Name)),!0}};Zr.KeywordCxt=Ao;function Pm(e,r,t,n){let i=new Ao(e,t,r);"code"in t?t.code(i,n):i.$data&&t.validate?(0,Qn.funcKeywordCode)(i,t):"macro"in t?(0,Qn.macroKeywordCode)(i,t):(t.compile||t.validate)&&(0,Qn.funcKeywordCode)(i,t)}var wP=/^\/(?:[^~]|~0|~1)*$/,PP=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function xm(e,{dataLevel:r,dataNames:t,dataPathArr:n}){let i,s;if(e==="")return L.default.rootData;if(e[0]==="/"){if(!wP.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=L.default.rootData}else{let f=PP.exec(e);if(!f)throw new Error(`Invalid JSON-pointer: ${e}`);let g=+f[1];if(i=f[2],i==="#"){if(g>=r)throw new Error(l("property/index",g));return n[r-g]}if(g>r)throw new Error(l("data",g));if(s=t[r-g],!i)return s}let o=s,a=i.split("/");for(let f of a)f&&(s=(0,M._)`${s}${(0,M.getProperty)((0,Mr.unescapeJsonPointer)(f))}`,o=(0,M._)`${o} && ${s}`);return o;function l(f,g){return`Cannot access ${f} ${g} levels up, current level is ${r}`}}Zr.getData=xm});var qo=j(ou=>{"use strict";p();m();h();Object.defineProperty(ou,"__esModule",{value:!0});var iu=class extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}};ou.default=iu});var ei=j(uu=>{"use strict";p();m();h();Object.defineProperty(uu,"__esModule",{value:!0});var su=Yn(),au=class extends Error{constructor(r,t,n,i){super(i||`can't resolve reference ${n} from id ${t}`),this.missingRef=(0,su.resolveUrl)(r,t,n),this.missingSchema=(0,su.normalizeId)((0,su.getFullPath)(r,this.missingRef))}};uu.default=au});var ri=j(We=>{"use strict";p();m();h();Object.defineProperty(We,"__esModule",{value:!0});We.resolveSchema=We.getCompilingSchema=We.resolveRef=We.compileSchema=We.SchemaEnv=void 0;var nr=V(),xP=qo(),St=Ge(),ir=Yn(),Em=Y(),EP=Zn(),on=class{constructor(r){var t;this.refs={},this.dynamicAnchors={};let n;typeof r.schema=="object"&&(n=r.schema),this.schema=r.schema,this.schemaId=r.schemaId,this.root=r.root||this,this.baseId=(t=r.baseId)!==null&&t!==void 0?t:(0,ir.normalizeId)(n==null?void 0:n[r.schemaId||"$id"]),this.schemaPath=r.schemaPath,this.localRefs=r.localRefs,this.meta=r.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};We.SchemaEnv=on;function lu(e){let r=Sm.call(this,e);if(r)return r;let t=(0,ir.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,o=new nr.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),a;e.$async&&(a=o.scopeValue("Error",{ref:xP.default,code:(0,nr._)`require("ajv/dist/runtime/validation_error").default`}));let l=o.scopeName("validate");e.validateName=l;let f={gen:o,allErrors:this.opts.allErrors,data:St.default.data,parentData:St.default.parentData,parentDataProperty:St.default.parentDataProperty,dataNames:[St.default.data],dataPathArr:[nr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:o.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,nr.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:t,baseId:e.baseId||t,schemaPath:nr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,nr._)`""`,opts:this.opts,self:this},g;try{this._compilations.add(e),(0,EP.validateFunctionCode)(f),o.optimize(this.opts.code.optimize);let y=o.toString();g=`${o.scopeRefs(St.default.scope)}return ${y}`,this.opts.code.process&&(g=this.opts.code.process(g,e));let _=new Function(`${St.default.self}`,`${St.default.scope}`,g)(this,this.scope.get());if(this.scope.value(l,{ref:_}),_.errors=null,_.schema=e.schema,_.schemaEnv=e,e.$async&&(_.$async=!0),this.opts.code.source===!0&&(_.source={validateName:l,validateCode:y,scopeValues:o._values}),this.opts.unevaluated){let{props:w,items:P}=f;_.evaluated={props:w instanceof nr.Name?void 0:w,items:P instanceof nr.Name?void 0:P,dynamicProps:w instanceof nr.Name,dynamicItems:P instanceof nr.Name},_.source&&(_.source.evaluated=(0,nr.stringify)(_.evaluated))}return e.validate=_,e}catch(y){throw delete e.validate,delete e.validateName,g&&this.logger.error("Error compiling schema, function code:",g),y}finally{this._compilations.delete(e)}}We.compileSchema=lu;function SP(e,r,t){var n;t=(0,ir.resolveUrl)(this.opts.uriResolver,r,t);let i=e.refs[t];if(i)return i;let s=AP.call(this,e,t);if(s===void 0){let o=(n=e.localRefs)===null||n===void 0?void 0:n[t],{schemaId:a}=this.opts;o&&(s=new on({schema:o,schemaId:a,root:e,baseId:r}))}if(s!==void 0)return e.refs[t]=jP.call(this,s)}We.resolveRef=SP;function jP(e){return(0,ir.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:lu.call(this,e)}function Sm(e){for(let r of this._compilations)if(OP(r,e))return r}We.getCompilingSchema=Sm;function OP(e,r){return e.schema===r.schema&&e.root===r.root&&e.baseId===r.baseId}function AP(e,r){let t;for(;typeof(t=this.refs[r])=="string";)r=t;return t||this.schemas[r]||Io.call(this,e,r)}function Io(e,r){let t=this.opts.uriResolver.parse(r),n=(0,ir._getFullPath)(this.opts.uriResolver,t),i=(0,ir.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return cu.call(this,t,e);let s=(0,ir.normalizeId)(n),o=this.refs[s]||this.schemas[s];if(typeof o=="string"){let a=Io.call(this,e,o);return typeof(a==null?void 0:a.schema)!="object"?void 0:cu.call(this,t,a)}if(typeof(o==null?void 0:o.schema)=="object"){if(o.validate||lu.call(this,o),s===(0,ir.normalizeId)(r)){let{schema:a}=o,{schemaId:l}=this.opts,f=a[l];return f&&(i=(0,ir.resolveUrl)(this.opts.uriResolver,i,f)),new on({schema:a,schemaId:l,root:e,baseId:i})}return cu.call(this,t,o)}}We.resolveSchema=Io;var qP=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function cu(e,{baseId:r,schema:t,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let a of e.fragment.slice(1).split("/")){if(typeof t=="boolean")return;let l=t[(0,Em.unescapeFragment)(a)];if(l===void 0)return;t=l;let f=typeof t=="object"&&t[this.opts.schemaId];!qP.has(a)&&f&&(r=(0,ir.resolveUrl)(this.opts.uriResolver,r,f))}let s;if(typeof t!="boolean"&&t.$ref&&!(0,Em.schemaHasRulesButRef)(t,this.RULES)){let a=(0,ir.resolveUrl)(this.opts.uriResolver,r,t.$ref);s=Io.call(this,n,a)}let{schemaId:o}=this.opts;if(s=s||new on({schema:t,schemaId:o,root:n,baseId:r}),s.schema!==s.root.schema)return s}});var jm=j((sN,IP)=>{IP.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 Am=j((aN,Om)=>{"use strict";p();m();h();var kP={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};Om.exports={HEX:kP}});var Mm=j((fN,Nm)=>{"use strict";p();m();h();var{HEX:TP}=Am();function Tm(e){if(Cm(e,".")<3)return{host:e,isIPV4:!1};let r=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)||[],[t]=r;return t?{host:CP(t,"."),isIPV4:!0}:{host:e,isIPV4:!1}}function fu(e,r=!1){let t="",n=!0;for(let i of e){if(TP[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(t+=i)}return r&&t.length===0&&(t="0"),t}function RP(e){let r=0,t={error:!1,address:"",zone:""},n=[],i=[],s=!1,o=!1,a=!1;function l(){if(i.length){if(s===!1){let f=fu(i);if(f!==void 0)n.push(f);else return t.error=!0,!1}i.length=0}return!0}for(let f=0;f7){t.error=!0;break}f-1>=0&&e[f-1]===":"&&(o=!0);continue}else if(g==="%"){if(!l())break;s=!0}else{i.push(g);continue}}return i.length&&(s?t.zone=i.join(""):a?n.push(i.join("")):n.push(fu(i))),t.address=n.join(""),t}function Rm(e,r={}){if(Cm(e,":")<2)return{host:e,isIPV6:!1};let t=RP(e);if(t.error)return{host:e,isIPV6:!1};{let n=t.address,i=t.address;return t.zone&&(n+="%"+t.zone,i+="%25"+t.zone),{host:n,escapedHost:i,isIPV6:!0}}}function CP(e,r){let t="",n=!0,i=e.length;for(let s=0;s{"use strict";p();m();h();var UP=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,LP=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function Dm(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}function Bm(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function Um(e){let r=String(e.scheme).toLowerCase()==="https";return(e.port===(r?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function FP(e){return e.secure=Dm(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function VP(e){if((e.port===(Dm(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[r,t]=e.resourceName.split("?");e.path=r&&r!=="/"?r:void 0,e.query=t,e.resourceName=void 0}return e.fragment=void 0,e}function zP(e,r){if(!e.path)return e.error="URN can not be parsed",e;let t=e.path.match(LP);if(t){let n=r.scheme||e.scheme||"urn";e.nid=t[1].toLowerCase(),e.nss=t[2];let i=`${n}:${r.nid||e.nid}`,s=du[i];e.path=void 0,s&&(e=s.parse(e,r))}else e.error=e.error||"URN can not be parsed.";return e}function HP(e,r){let t=r.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${t}:${r.nid||n}`,s=du[i];s&&(e=s.serialize(e,r));let o=e,a=e.nss;return o.path=`${n||r.nid}:${a}`,r.skipEscape=!0,o}function KP(e,r){let t=e;return t.uuid=t.nss,t.nss=void 0,!r.tolerant&&(!t.uuid||!UP.test(t.uuid))&&(t.error=t.error||"UUID is not valid."),t}function GP(e){let r=e;return r.nss=(e.uuid||"").toLowerCase(),r}var Lm={scheme:"http",domainHost:!0,parse:Bm,serialize:Um},JP={scheme:"https",domainHost:Lm.domainHost,parse:Bm,serialize:Um},ko={scheme:"ws",domainHost:!0,parse:FP,serialize:VP},WP={scheme:"wss",domainHost:ko.domainHost,parse:ko.parse,serialize:ko.serialize},YP={scheme:"urn",parse:zP,serialize:HP,skipNormalize:!0},XP={scheme:"urn:uuid",parse:KP,serialize:GP,skipNormalize:!0},du={http:Lm,https:JP,ws:ko,wss:WP,urn:YP,"urn:uuid":XP};Fm.exports=du});var Hm=j(($N,Ro)=>{"use strict";p();m();h();var{normalizeIPv6:QP,normalizeIPv4:ZP,removeDotSegments:ti,recomposeAuthority:ex,normalizeComponentEncoding:To}=Mm(),pu=Vm();function rx(e,r){return typeof e=="string"?e=Pr(Dr(e,r),r):typeof e=="object"&&(e=Dr(Pr(e,r),r)),e}function tx(e,r,t){let n=Object.assign({scheme:"null"},t),i=zm(Dr(e,n),Dr(r,n),n,!0);return Pr(i,{...n,skipEscape:!0})}function zm(e,r,t,n){let i={};return n||(e=Dr(Pr(e,t),t),r=Dr(Pr(r,t),t)),t=t||{},!t.tolerant&&r.scheme?(i.scheme=r.scheme,i.userinfo=r.userinfo,i.host=r.host,i.port=r.port,i.path=ti(r.path||""),i.query=r.query):(r.userinfo!==void 0||r.host!==void 0||r.port!==void 0?(i.userinfo=r.userinfo,i.host=r.host,i.port=r.port,i.path=ti(r.path||""),i.query=r.query):(r.path?(r.path.charAt(0)==="/"?i.path=ti(r.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+r.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+r.path:i.path=r.path,i.path=ti(i.path)),i.query=r.query):(i.path=e.path,r.query!==void 0?i.query=r.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=r.fragment,i}function nx(e,r,t){return typeof e=="string"?(e=unescape(e),e=Pr(To(Dr(e,t),!0),{...t,skipEscape:!0})):typeof e=="object"&&(e=Pr(To(e,!0),{...t,skipEscape:!0})),typeof r=="string"?(r=unescape(r),r=Pr(To(Dr(r,t),!0),{...t,skipEscape:!0})):typeof r=="object"&&(r=Pr(To(r,!0),{...t,skipEscape:!0})),e.toLowerCase()===r.toLowerCase()}function Pr(e,r){let t={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({},r),i=[],s=pu[(n.scheme||t.scheme||"").toLowerCase()];s&&s.serialize&&s.serialize(t,n),t.path!==void 0&&(n.skipEscape?t.path=unescape(t.path):(t.path=escape(t.path),t.scheme!==void 0&&(t.path=t.path.split("%3A").join(":")))),n.reference!=="suffix"&&t.scheme&&i.push(t.scheme,":");let o=ex(t,n);if(o!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(o),t.path&&t.path.charAt(0)!=="/"&&i.push("/")),t.path!==void 0){let a=t.path;!n.absolutePath&&(!s||!s.absolutePath)&&(a=ti(a)),o===void 0&&(a=a.replace(/^\/\//u,"/%2F")),i.push(a)}return t.query!==void 0&&i.push("?",t.query),t.fragment!==void 0&&i.push("#",t.fragment),i.join("")}var ix=Array.from({length:127},(e,r)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(r)));function ox(e){let r=0;for(let t=0,n=e.length;t126||ix[r])return!0;return!1}var sx=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Dr(e,r){let t=Object.assign({},r),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,s=!1;t.reference==="suffix"&&(e=(t.scheme?t.scheme+":":"")+"//"+e);let o=e.match(sx);if(o){if(n.scheme=o[1],n.userinfo=o[3],n.host=o[4],n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=o[7],n.fragment=o[8],isNaN(n.port)&&(n.port=o[5]),n.host){let l=ZP(n.host);if(l.isIPV4===!1){let f=QP(l.host,{isIPV4:!1});n.host=f.host.toLowerCase(),s=f.isIPV6}else n.host=l.host,s=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",t.reference&&t.reference!=="suffix"&&t.reference!==n.reference&&(n.error=n.error||"URI is not a "+t.reference+" reference.");let a=pu[(t.scheme||n.scheme||"").toLowerCase()];if(!t.unicodeSupport&&(!a||!a.unicodeSupport)&&n.host&&(t.domainHost||a&&a.domainHost)&&s===!1&&ox(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(l){n.error=n.error||"Host's domain name can not be converted to ASCII: "+l}(!a||a&&!a.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),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)))),a&&a.parse&&a.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}var hu={SCHEMES:pu,normalize:rx,resolve:tx,resolveComponents:zm,equal:nx,serialize:Pr,parse:Dr};Ro.exports=hu;Ro.exports.default=hu;Ro.exports.fastUri=hu});var Gm=j(mu=>{"use strict";p();m();h();Object.defineProperty(mu,"__esModule",{value:!0});var Km=Hm();Km.code='require("ajv/dist/runtime/uri").default';mu.default=Km});var an=j(we=>{"use strict";p();m();h();Object.defineProperty(we,"__esModule",{value:!0});we.CodeGen=we.Name=we.nil=we.stringify=we.str=we._=we.KeywordCxt=void 0;var ax=Zn();Object.defineProperty(we,"KeywordCxt",{enumerable:!0,get:function(){return ax.KeywordCxt}});var sn=V();Object.defineProperty(we,"_",{enumerable:!0,get:function(){return sn._}});Object.defineProperty(we,"str",{enumerable:!0,get:function(){return sn.str}});Object.defineProperty(we,"stringify",{enumerable:!0,get:function(){return sn.stringify}});Object.defineProperty(we,"nil",{enumerable:!0,get:function(){return sn.nil}});Object.defineProperty(we,"Name",{enumerable:!0,get:function(){return sn.Name}});Object.defineProperty(we,"CodeGen",{enumerable:!0,get:function(){return sn.CodeGen}});var ux=qo(),Qm=ei(),cx=Ha(),ni=ri(),lx=V(),ii=Yn(),Co=Wn(),gu=Y(),Jm=jm(),fx=Gm(),Zm=(e,r)=>new RegExp(e,r);Zm.code="new RegExp";var dx=["removeAdditional","useDefaults","coerceTypes"],px=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),hx={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."},mx={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Wm=200;function yx(e){var r,t,n,i,s,o,a,l,f,g,y,b,_,w,P,O,I,R,C,U,N,ve,er,_n,bn;let st=e.strict,wn=(r=e.code)===null||r===void 0?void 0:r.optimize,Ai=wn===!0||wn===void 0?1:wn||0,Pn=(n=(t=e.code)===null||t===void 0?void 0:t.regExp)!==null&&n!==void 0?n:Zm,qi=(i=e.uriResolver)!==null&&i!==void 0?i:fx.default;return{strictSchema:(o=(s=e.strictSchema)!==null&&s!==void 0?s:st)!==null&&o!==void 0?o:!0,strictNumbers:(l=(a=e.strictNumbers)!==null&&a!==void 0?a:st)!==null&&l!==void 0?l:!0,strictTypes:(g=(f=e.strictTypes)!==null&&f!==void 0?f:st)!==null&&g!==void 0?g:"log",strictTuples:(b=(y=e.strictTuples)!==null&&y!==void 0?y:st)!==null&&b!==void 0?b:"log",strictRequired:(w=(_=e.strictRequired)!==null&&_!==void 0?_:st)!==null&&w!==void 0?w:!1,code:e.code?{...e.code,optimize:Ai,regExp:Pn}:{optimize:Ai,regExp:Pn},loopRequired:(P=e.loopRequired)!==null&&P!==void 0?P:Wm,loopEnum:(O=e.loopEnum)!==null&&O!==void 0?O:Wm,meta:(I=e.meta)!==null&&I!==void 0?I:!0,messages:(R=e.messages)!==null&&R!==void 0?R:!0,inlineRefs:(C=e.inlineRefs)!==null&&C!==void 0?C:!0,schemaId:(U=e.schemaId)!==null&&U!==void 0?U:"$id",addUsedSchema:(N=e.addUsedSchema)!==null&&N!==void 0?N:!0,validateSchema:(ve=e.validateSchema)!==null&&ve!==void 0?ve:!0,validateFormats:(er=e.validateFormats)!==null&&er!==void 0?er:!0,unicodeRegExp:(_n=e.unicodeRegExp)!==null&&_n!==void 0?_n:!0,int32range:(bn=e.int32range)!==null&&bn!==void 0?bn:!0,uriResolver:qi}}var oi=class{constructor(r={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,r=this.opts={...r,...yx(r)};let{es5:t,lines:n}=this.opts.code;this.scope=new lx.ValueScope({scope:{},prefixes:px,es5:t,lines:n}),this.logger=wx(r.logger);let i=r.validateFormats;r.validateFormats=!1,this.RULES=(0,cx.getRules)(),Ym.call(this,hx,r,"NOT SUPPORTED"),Ym.call(this,mx,r,"DEPRECATED","warn"),this._metaOpts=_x.call(this),r.formats&&vx.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),r.keywords&&$x.call(this,r.keywords),typeof r.meta=="object"&&this.addMetaSchema(r.meta),gx.call(this),r.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:r,meta:t,schemaId:n}=this.opts,i=Jm;n==="id"&&(i={...Jm},i.id=i.$id,delete i.$id),t&&r&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:r,schemaId:t}=this.opts;return this.opts.defaultMeta=typeof r=="object"?r[t]||r:void 0}validate(r,t){let n;if(typeof r=="string"){if(n=this.getSchema(r),!n)throw new Error(`no schema with key or ref "${r}"`)}else n=this.compile(r);let i=n(t);return"$async"in n||(this.errors=n.errors),i}compile(r,t){let n=this._addSchema(r,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(r,t){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,r,t);async function i(g,y){await s.call(this,g.$schema);let b=this._addSchema(g,y);return b.validate||o.call(this,b)}async function s(g){g&&!this.getSchema(g)&&await i.call(this,{$ref:g},!0)}async function o(g){try{return this._compileSchemaEnv(g)}catch(y){if(!(y instanceof Qm.default))throw y;return a.call(this,y),await l.call(this,y.missingSchema),o.call(this,g)}}function a({missingSchema:g,missingRef:y}){if(this.refs[g])throw new Error(`AnySchema ${g} is loaded but ${y} cannot be resolved`)}async function l(g){let y=await f.call(this,g);this.refs[g]||await s.call(this,y.$schema),this.refs[g]||this.addSchema(y,g,t)}async function f(g){let y=this._loading[g];if(y)return y;try{return await(this._loading[g]=n(g))}finally{delete this._loading[g]}}}addSchema(r,t,n,i=this.opts.validateSchema){if(Array.isArray(r)){for(let o of r)this.addSchema(o,void 0,n,i);return this}let s;if(typeof r=="object"){let{schemaId:o}=this.opts;if(s=r[o],s!==void 0&&typeof s!="string")throw new Error(`schema ${o} must be string`)}return t=(0,ii.normalizeId)(t||s),this._checkUnique(t),this.schemas[t]=this._addSchema(r,n,t,i,!0),this}addMetaSchema(r,t,n=this.opts.validateSchema){return this.addSchema(r,t,!0,n),this}validateSchema(r,t){if(typeof r=="boolean")return!0;let n;if(n=r.$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,r);if(!i&&t){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return i}getSchema(r){let t;for(;typeof(t=Xm.call(this,r))=="string";)r=t;if(t===void 0){let{schemaId:n}=this.opts,i=new ni.SchemaEnv({schema:{},schemaId:n});if(t=ni.resolveSchema.call(this,i,r),!t)return;this.refs[r]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(r){if(r instanceof RegExp)return this._removeAllSchemas(this.schemas,r),this._removeAllSchemas(this.refs,r),this;switch(typeof r){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let t=Xm.call(this,r);return typeof t=="object"&&this._cache.delete(t.schema),delete this.schemas[r],delete this.refs[r],this}case"object":{let t=r;this._cache.delete(t);let n=r[this.opts.schemaId];return n&&(n=(0,ii.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(r){for(let t of r)this.addKeyword(t);return this}addKeyword(r,t){let n;if(typeof r=="string")n=r,typeof t=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else if(typeof r=="object"&&t===void 0){if(t=r,n=t.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(xx.call(this,n,t),!t)return(0,gu.eachItem)(n,s=>yu.call(this,s)),this;Sx.call(this,t);let i={...t,type:(0,Co.getJSONTypes)(t.type),schemaType:(0,Co.getJSONTypes)(t.schemaType)};return(0,gu.eachItem)(n,i.type.length===0?s=>yu.call(this,s,i):s=>i.type.forEach(o=>yu.call(this,s,i,o))),this}getKeyword(r){let t=this.RULES.all[r];return typeof t=="object"?t.definition:!!t}removeKeyword(r){let{RULES:t}=this;delete t.keywords[r],delete t.all[r];for(let n of t.rules){let i=n.rules.findIndex(s=>s.keyword===r);i>=0&&n.rules.splice(i,1)}return this}addFormat(r,t){return typeof t=="string"&&(t=new RegExp(t)),this.formats[r]=t,this}errorsText(r=this.errors,{separator:t=", ",dataVar:n="data"}={}){return!r||r.length===0?"No errors":r.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,s)=>i+t+s)}$dataMetaSchema(r,t){let n=this.RULES.all;r=JSON.parse(JSON.stringify(r));for(let i of t){let s=i.split("/").slice(1),o=r;for(let a of s)o=o[a];for(let a in n){let l=n[a];if(typeof l!="object")continue;let{$data:f}=l.definition,g=o[a];f&&g&&(o[a]=ey(g))}}return r}_removeAllSchemas(r,t){for(let n in r){let i=r[n];(!t||t.test(n))&&(typeof i=="string"?delete r[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete r[n]))}}_addSchema(r,t,n,i=this.opts.validateSchema,s=this.opts.addUsedSchema){let o,{schemaId:a}=this.opts;if(typeof r=="object")o=r[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof r!="boolean")throw new Error("schema must be object or boolean")}let l=this._cache.get(r);if(l!==void 0)return l;n=(0,ii.normalizeId)(o||n);let f=ii.getSchemaRefs.call(this,r,n);return l=new ni.SchemaEnv({schema:r,schemaId:a,meta:t,baseId:n,localRefs:f}),this._cache.set(l.schema,l),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=l),i&&this.validateSchema(r,!0),l}_checkUnique(r){if(this.schemas[r]||this.refs[r])throw new Error(`schema with key or id "${r}" already exists`)}_compileSchemaEnv(r){if(r.meta?this._compileMetaSchema(r):ni.compileSchema.call(this,r),!r.validate)throw new Error("ajv implementation error");return r.validate}_compileMetaSchema(r){let t=this.opts;this.opts=this._metaOpts;try{ni.compileSchema.call(this,r)}finally{this.opts=t}}};oi.ValidationError=ux.default;oi.MissingRefError=Qm.default;we.default=oi;function Ym(e,r,t,n="error"){for(let i in e){let s=i;s in r&&this.logger[n](`${t}: option ${i}. ${e[s]}`)}}function Xm(e){return e=(0,ii.normalizeId)(e),this.schemas[e]||this.refs[e]}function gx(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let r in e)this.addSchema(e[r],r)}function vx(){for(let e in this.opts.formats){let r=this.opts.formats[e];r&&this.addFormat(e,r)}}function $x(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let r in e){let t=e[r];t.keyword||(t.keyword=r),this.addKeyword(t)}}function _x(){let e={...this.opts};for(let r of dx)delete e[r];return e}var bx={log(){},warn(){},error(){}};function wx(e){if(e===!1)return bx;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")}var Px=/^[a-z_$][a-z0-9_$:-]*$/i;function xx(e,r){let{RULES:t}=this;if((0,gu.eachItem)(e,n=>{if(t.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!Px.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!r&&r.$data&&!("code"in r||"validate"in r))throw new Error('$data keyword must have "code" or "validate" function')}function yu(e,r,t){var n;let i=r==null?void 0:r.post;if(t&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,o=i?s.post:s.rules.find(({type:l})=>l===t);if(o||(o={type:t,rules:[]},s.rules.push(o)),s.keywords[e]=!0,!r)return;let a={keyword:e,definition:{...r,type:(0,Co.getJSONTypes)(r.type),schemaType:(0,Co.getJSONTypes)(r.schemaType)}};r.before?Ex.call(this,o,a,r.before):o.rules.push(a),s.all[e]=a,(n=r.implements)===null||n===void 0||n.forEach(l=>this.addKeyword(l))}function Ex(e,r,t){let n=e.rules.findIndex(i=>i.keyword===t);n>=0?e.rules.splice(n,0,r):(e.rules.push(r),this.logger.warn(`rule ${t} is not defined`))}function Sx(e){let{metaSchema:r}=e;r!==void 0&&(e.$data&&this.opts.$data&&(r=ey(r)),e.validateSchema=this.compile(r,!0))}var jx={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ey(e){return{anyOf:[e,jx]}}});var si=j(jt=>{"use strict";p();m();h();Object.defineProperty(jt,"__esModule",{value:!0});jt.callRef=jt.getValidate=void 0;var Ox=ei(),ry=Je(),Le=V(),un=Ge(),ty=ri(),No=Y(),Ax={keyword:"$ref",schemaType:"string",code(e){let{gen:r,schema:t,it:n}=e,{baseId:i,schemaEnv:s,validateName:o,opts:a,self:l}=n,{root:f}=s;if((t==="#"||t==="#/")&&i===f.baseId)return y();let g=ty.resolveRef.call(l,f,i,t);if(g===void 0)throw new Ox.default(n.opts.uriResolver,i,t);if(g instanceof ty.SchemaEnv)return b(g);return _(g);function y(){if(s===f)return Mo(e,o,s,s.$async);let w=r.scopeValue("root",{ref:f});return Mo(e,(0,Le._)`${w}.validate`,f,f.$async)}function b(w){let P=ny(e,w);Mo(e,P,w,w.$async)}function _(w){let P=r.scopeValue("schema",a.code.source===!0?{ref:w,code:(0,Le.stringify)(w)}:{ref:w}),O=r.name("valid"),I=e.subschema({schema:w,dataTypes:[],schemaPath:Le.nil,topSchemaRef:P,errSchemaPath:t},O);e.mergeEvaluated(I),e.ok(O)}}};function ny(e,r){let{gen:t}=e;return r.validate?t.scopeValue("validate",{ref:r.validate}):(0,Le._)`${t.scopeValue("wrapper",{ref:r})}.validate`}jt.getValidate=ny;function Mo(e,r,t,n){let{gen:i,it:s}=e,{allErrors:o,schemaEnv:a,opts:l}=s,f=l.passContext?un.default.this:Le.nil;n?g():y();function g(){if(!a.$async)throw new Error("async schema referenced by sync schema");let w=i.let("valid");i.try(()=>{i.code((0,Le._)`await ${(0,ry.callValidateCode)(e,r,f)}`),_(r),o||i.assign(w,!0)},P=>{i.if((0,Le._)`!(${P} instanceof ${s.ValidationError})`,()=>i.throw(P)),b(P),o||i.assign(w,!1)}),e.ok(w)}function y(){e.result((0,ry.callValidateCode)(e,r,f),()=>_(r),()=>b(r))}function b(w){let P=(0,Le._)`${w}.errors`;i.assign(un.default.vErrors,(0,Le._)`${un.default.vErrors} === null ? ${P} : ${un.default.vErrors}.concat(${P})`),i.assign(un.default.errors,(0,Le._)`${un.default.vErrors}.length`)}function _(w){var P;if(!s.opts.unevaluated)return;let O=(P=t==null?void 0:t.validate)===null||P===void 0?void 0:P.evaluated;if(s.props!==!0)if(O&&!O.dynamicProps)O.props!==void 0&&(s.props=No.mergeEvaluated.props(i,O.props,s.props));else{let I=i.var("props",(0,Le._)`${w}.evaluated.props`);s.props=No.mergeEvaluated.props(i,I,s.props,Le.Name)}if(s.items!==!0)if(O&&!O.dynamicItems)O.items!==void 0&&(s.items=No.mergeEvaluated.items(i,O.items,s.items));else{let I=i.var("items",(0,Le._)`${w}.evaluated.items`);s.items=No.mergeEvaluated.items(i,I,s.items,Le.Name)}}}jt.callRef=Mo;jt.default=Ax});var iy=j(vu=>{"use strict";p();m();h();Object.defineProperty(vu,"__esModule",{value:!0});var qx=si(),Ix=["$schema","id","$defs",{keyword:"$comment"},"definitions",qx.default];vu.default=Ix});var oy=j(wu=>{"use strict";p();m();h();Object.defineProperty(wu,"__esModule",{value:!0});var $u=an(),kx=V(),et=kx.operators,_u={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:et.LTE,fail:et.GT},{okStr:"<",ok:et.LT,fail:et.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:et.GTE,fail:et.LT},{okStr:">",ok:et.GT,fail:et.LTE}]}},Tx={message:e=>$u.str`must be ${bu(e).okStr} ${e.schemaCode}`,params:e=>$u._`{comparison: ${bu(e).okStr}, limit: ${e.schemaCode}}`},Rx={keyword:Object.keys(_u),type:"number",schemaType:"number",$data:!0,error:Tx,code(e){let{data:r,schemaCode:t}=e;e.fail$data($u._`${r} ${bu(e).fail} ${t} || isNaN(${r})`)}};function bu(e){var r;let t=e.keyword,n=!((r=e.parentSchema)===null||r===void 0)&&r[_u[t].exclusive]?1:0;return _u[t].ops[n]}wu.default=Rx});var ay=j(Pu=>{"use strict";p();m();h();Object.defineProperty(Pu,"__esModule",{value:!0});var sy={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},Cx={keyword:Object.keys(sy),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:r}){let t=sy[e];if(r[t]===void 0)throw new Error(`${e} can only be used with ${t}`)}};Pu.default=Cx});var Eu=j(xu=>{"use strict";p();m();h();Object.defineProperty(xu,"__esModule",{value:!0});var ai=V(),Nx={message:({schemaCode:e})=>(0,ai.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,ai._)`{multipleOf: ${e}}`},Mx={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Nx,code(e){let{gen:r,data:t,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,o=r.let("res"),a=s?(0,ai._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${s}`:(0,ai._)`${o} !== parseInt(${o})`;e.fail$data((0,ai._)`(${n} === 0 || (${o} = ${t}/${n}, ${a}))`)}};xu.default=Mx});var cy=j(Su=>{"use strict";p();m();h();Object.defineProperty(Su,"__esModule",{value:!0});function uy(e){let r=e.length,t=0,n=0,i;for(;n=55296&&i<=56319&&n{"use strict";p();m();h();Object.defineProperty(ju,"__esModule",{value:!0});var Ot=V(),Dx=Y(),Bx=cy(),Ux={message({keyword:e,schemaCode:r}){let t=e==="maxLength"?"more":"fewer";return(0,Ot.str)`must NOT have ${t} than ${r} characters`},params:({schemaCode:e})=>(0,Ot._)`{limit: ${e}}`},Lx={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Ux,code(e){let{keyword:r,data:t,schemaCode:n,it:i}=e,s=r==="maxLength"?Ot.operators.GT:Ot.operators.LT,o=i.opts.unicode===!1?(0,Ot._)`${t}.length`:(0,Ot._)`${(0,Dx.useFunc)(e.gen,Bx.default)}(${t})`;e.fail$data((0,Ot._)`${o} ${s} ${n}`)}};ju.default=Lx});var qu=j(Au=>{"use strict";p();m();h();Object.defineProperty(Au,"__esModule",{value:!0});var Fx=Je(),Do=V(),Vx={message:({schemaCode:e})=>(0,Do.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Do._)`{pattern: ${e}}`},zx={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Vx,code(e){let{data:r,$data:t,schema:n,schemaCode:i,it:s}=e,o=s.opts.unicodeRegExp?"u":"",a=t?(0,Do._)`(new RegExp(${i}, ${o}))`:(0,Fx.usePattern)(e,n);e.fail$data((0,Do._)`!${a}.test(${r})`)}};Au.default=zx});var ku=j(Iu=>{"use strict";p();m();h();Object.defineProperty(Iu,"__esModule",{value:!0});var ui=V(),Hx={message({keyword:e,schemaCode:r}){let t=e==="maxProperties"?"more":"fewer";return(0,ui.str)`must NOT have ${t} than ${r} properties`},params:({schemaCode:e})=>(0,ui._)`{limit: ${e}}`},Kx={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Hx,code(e){let{keyword:r,data:t,schemaCode:n}=e,i=r==="maxProperties"?ui.operators.GT:ui.operators.LT;e.fail$data((0,ui._)`Object.keys(${t}).length ${i} ${n}`)}};Iu.default=Kx});var Ru=j(Tu=>{"use strict";p();m();h();Object.defineProperty(Tu,"__esModule",{value:!0});var ci=Je(),li=V(),Gx=Y(),Jx={message:({params:{missingProperty:e}})=>(0,li.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,li._)`{missingProperty: ${e}}`},Wx={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Jx,code(e){let{gen:r,schema:t,schemaCode:n,data:i,$data:s,it:o}=e,{opts:a}=o;if(!s&&t.length===0)return;let l=t.length>=a.loopRequired;if(o.allErrors?f():g(),a.strictRequired){let _=e.parentSchema.properties,{definedProperties:w}=e.it;for(let P of t)if((_==null?void 0:_[P])===void 0&&!w.has(P)){let O=o.schemaEnv.baseId+o.errSchemaPath,I=`required property "${P}" is not defined at "${O}" (strictRequired)`;(0,Gx.checkStrictMode)(o,I,o.opts.strictRequired)}}function f(){if(l||s)e.block$data(li.nil,y);else for(let _ of t)(0,ci.checkReportMissingProp)(e,_)}function g(){let _=r.let("missing");if(l||s){let w=r.let("valid",!0);e.block$data(w,()=>b(_,w)),e.ok(w)}else r.if((0,ci.checkMissingProp)(e,t,_)),(0,ci.reportMissingProp)(e,_),r.else()}function y(){r.forOf("prop",n,_=>{e.setParams({missingProperty:_}),r.if((0,ci.noPropertyInData)(r,i,_,a.ownProperties),()=>e.error())})}function b(_,w){e.setParams({missingProperty:_}),r.forOf(_,n,()=>{r.assign(w,(0,ci.propertyInData)(r,i,_,a.ownProperties)),r.if((0,li.not)(w),()=>{e.error(),r.break()})},li.nil)}}};Tu.default=Wx});var Nu=j(Cu=>{"use strict";p();m();h();Object.defineProperty(Cu,"__esModule",{value:!0});var fi=V(),Yx={message({keyword:e,schemaCode:r}){let t=e==="maxItems"?"more":"fewer";return(0,fi.str)`must NOT have ${t} than ${r} items`},params:({schemaCode:e})=>(0,fi._)`{limit: ${e}}`},Xx={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Yx,code(e){let{keyword:r,data:t,schemaCode:n}=e,i=r==="maxItems"?fi.operators.GT:fi.operators.LT;e.fail$data((0,fi._)`${t}.length ${i} ${n}`)}};Cu.default=Xx});var Bo=j(Mu=>{"use strict";p();m();h();Object.defineProperty(Mu,"__esModule",{value:!0});var ly=Za();ly.code='require("ajv/dist/runtime/equal").default';Mu.default=ly});var Uu=j(Bu=>{"use strict";p();m();h();Object.defineProperty(Bu,"__esModule",{value:!0});var Du=Wn(),Pe=V(),Qx=Y(),Zx=Bo(),eE={message:({params:{i:e,j:r}})=>(0,Pe.str)`must NOT have duplicate items (items ## ${r} and ${e} are identical)`,params:({params:{i:e,j:r}})=>(0,Pe._)`{i: ${e}, j: ${r}}`},rE={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:eE,code(e){let{gen:r,data:t,$data:n,schema:i,parentSchema:s,schemaCode:o,it:a}=e;if(!n&&!i)return;let l=r.let("valid"),f=s.items?(0,Du.getSchemaTypes)(s.items):[];e.block$data(l,g,(0,Pe._)`${o} === false`),e.ok(l);function g(){let w=r.let("i",(0,Pe._)`${t}.length`),P=r.let("j");e.setParams({i:w,j:P}),r.assign(l,!0),r.if((0,Pe._)`${w} > 1`,()=>(y()?b:_)(w,P))}function y(){return f.length>0&&!f.some(w=>w==="object"||w==="array")}function b(w,P){let O=r.name("item"),I=(0,Du.checkDataTypes)(f,O,a.opts.strictNumbers,Du.DataType.Wrong),R=r.const("indices",(0,Pe._)`{}`);r.for((0,Pe._)`;${w}--;`,()=>{r.let(O,(0,Pe._)`${t}[${w}]`),r.if(I,(0,Pe._)`continue`),f.length>1&&r.if((0,Pe._)`typeof ${O} == "string"`,(0,Pe._)`${O} += "_"`),r.if((0,Pe._)`typeof ${R}[${O}] == "number"`,()=>{r.assign(P,(0,Pe._)`${R}[${O}]`),e.error(),r.assign(l,!1).break()}).code((0,Pe._)`${R}[${O}] = ${w}`)})}function _(w,P){let O=(0,Qx.useFunc)(r,Zx.default),I=r.name("outer");r.label(I).for((0,Pe._)`;${w}--;`,()=>r.for((0,Pe._)`${P} = ${w}; ${P}--;`,()=>r.if((0,Pe._)`${O}(${t}[${w}], ${t}[${P}])`,()=>{e.error(),r.assign(l,!1).break(I)})))}}};Bu.default=rE});var Vu=j(Fu=>{"use strict";p();m();h();Object.defineProperty(Fu,"__esModule",{value:!0});var Lu=V(),tE=Y(),nE=Bo(),iE={message:"must be equal to constant",params:({schemaCode:e})=>(0,Lu._)`{allowedValue: ${e}}`},oE={keyword:"const",$data:!0,error:iE,code(e){let{gen:r,data:t,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,Lu._)`!${(0,tE.useFunc)(r,nE.default)}(${t}, ${i})`):e.fail((0,Lu._)`${s} !== ${t}`)}};Fu.default=oE});var Hu=j(zu=>{"use strict";p();m();h();Object.defineProperty(zu,"__esModule",{value:!0});var di=V(),sE=Y(),aE=Bo(),uE={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,di._)`{allowedValues: ${e}}`},cE={keyword:"enum",schemaType:"array",$data:!0,error:uE,code(e){let{gen:r,data:t,$data:n,schema:i,schemaCode:s,it:o}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let a=i.length>=o.opts.loopEnum,l,f=()=>l!=null?l:l=(0,sE.useFunc)(r,aE.default),g;if(a||n)g=r.let("valid"),e.block$data(g,y);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let _=r.const("vSchema",s);g=(0,di.or)(...i.map((w,P)=>b(_,P)))}e.pass(g);function y(){r.assign(g,!1),r.forOf("v",s,_=>r.if((0,di._)`${f()}(${t}, ${_})`,()=>r.assign(g,!0).break()))}function b(_,w){let P=i[w];return typeof P=="object"&&P!==null?(0,di._)`${f()}(${t}, ${_}[${w}])`:(0,di._)`${t} === ${P}`}}};zu.default=cE});var fy=j(Ku=>{"use strict";p();m();h();Object.defineProperty(Ku,"__esModule",{value:!0});var lE=oy(),fE=ay(),dE=Eu(),pE=Ou(),hE=qu(),mE=ku(),yE=Ru(),gE=Nu(),vE=Uu(),$E=Vu(),_E=Hu(),bE=[lE.default,fE.default,dE.default,pE.default,hE.default,mE.default,yE.default,gE.default,vE.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},$E.default,_E.default];Ku.default=bE});var Ju=j(pi=>{"use strict";p();m();h();Object.defineProperty(pi,"__esModule",{value:!0});pi.validateAdditionalItems=void 0;var At=V(),Gu=Y(),wE={message:({params:{len:e}})=>(0,At.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,At._)`{limit: ${e}}`},PE={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:wE,code(e){let{parentSchema:r,it:t}=e,{items:n}=r;if(!Array.isArray(n)){(0,Gu.checkStrictMode)(t,'"additionalItems" is ignored when "items" is not an array of schemas');return}dy(e,n)}};function dy(e,r){let{gen:t,schema:n,data:i,keyword:s,it:o}=e;o.items=!0;let a=t.const("len",(0,At._)`${i}.length`);if(n===!1)e.setParams({len:r.length}),e.pass((0,At._)`${a} <= ${r.length}`);else if(typeof n=="object"&&!(0,Gu.alwaysValidSchema)(o,n)){let f=t.var("valid",(0,At._)`${a} <= ${r.length}`);t.if((0,At.not)(f),()=>l(f)),e.ok(f)}function l(f){t.forRange("i",r.length,a,g=>{e.subschema({keyword:s,dataProp:g,dataPropType:Gu.Type.Num},f),o.allErrors||t.if((0,At.not)(f),()=>t.break())})}}pi.validateAdditionalItems=dy;pi.default=PE});var Wu=j(hi=>{"use strict";p();m();h();Object.defineProperty(hi,"__esModule",{value:!0});hi.validateTuple=void 0;var py=V(),Uo=Y(),xE=Je(),EE={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:r,it:t}=e;if(Array.isArray(r))return hy(e,"additionalItems",r);t.items=!0,!(0,Uo.alwaysValidSchema)(t,r)&&e.ok((0,xE.validateArray)(e))}};function hy(e,r,t=e.schema){let{gen:n,parentSchema:i,data:s,keyword:o,it:a}=e;g(i),a.opts.unevaluated&&t.length&&a.items!==!0&&(a.items=Uo.mergeEvaluated.items(n,t.length,a.items));let l=n.name("valid"),f=n.const("len",(0,py._)`${s}.length`);t.forEach((y,b)=>{(0,Uo.alwaysValidSchema)(a,y)||(n.if((0,py._)`${f} > ${b}`,()=>e.subschema({keyword:o,schemaProp:b,dataProp:b},l)),e.ok(l))});function g(y){let{opts:b,errSchemaPath:_}=a,w=t.length,P=w===y.minItems&&(w===y.maxItems||y[r]===!1);if(b.strictTuples&&!P){let O=`"${o}" is ${w}-tuple, but minItems or maxItems/${r} are not specified or different at path "${_}"`;(0,Uo.checkStrictMode)(a,O,b.strictTuples)}}}hi.validateTuple=hy;hi.default=EE});var my=j(Yu=>{"use strict";p();m();h();Object.defineProperty(Yu,"__esModule",{value:!0});var SE=Wu(),jE={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,SE.validateTuple)(e,"items")};Yu.default=jE});var gy=j(Xu=>{"use strict";p();m();h();Object.defineProperty(Xu,"__esModule",{value:!0});var yy=V(),OE=Y(),AE=Je(),qE=Ju(),IE={message:({params:{len:e}})=>(0,yy.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,yy._)`{limit: ${e}}`},kE={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:IE,code(e){let{schema:r,parentSchema:t,it:n}=e,{prefixItems:i}=t;n.items=!0,!(0,OE.alwaysValidSchema)(n,r)&&(i?(0,qE.validateAdditionalItems)(e,i):e.ok((0,AE.validateArray)(e)))}};Xu.default=kE});var vy=j(Qu=>{"use strict";p();m();h();Object.defineProperty(Qu,"__esModule",{value:!0});var Ye=V(),Lo=Y(),TE={message:({params:{min:e,max:r}})=>r===void 0?(0,Ye.str)`must contain at least ${e} valid item(s)`:(0,Ye.str)`must contain at least ${e} and no more than ${r} valid item(s)`,params:({params:{min:e,max:r}})=>r===void 0?(0,Ye._)`{minContains: ${e}}`:(0,Ye._)`{minContains: ${e}, maxContains: ${r}}`},RE={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:TE,code(e){let{gen:r,schema:t,parentSchema:n,data:i,it:s}=e,o,a,{minContains:l,maxContains:f}=n;s.opts.next?(o=l===void 0?1:l,a=f):o=1;let g=r.const("len",(0,Ye._)`${i}.length`);if(e.setParams({min:o,max:a}),a===void 0&&o===0){(0,Lo.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&o>a){(0,Lo.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Lo.alwaysValidSchema)(s,t)){let P=(0,Ye._)`${g} >= ${o}`;a!==void 0&&(P=(0,Ye._)`${P} && ${g} <= ${a}`),e.pass(P);return}s.items=!0;let y=r.name("valid");a===void 0&&o===1?_(y,()=>r.if(y,()=>r.break())):o===0?(r.let(y,!0),a!==void 0&&r.if((0,Ye._)`${i}.length > 0`,b)):(r.let(y,!1),b()),e.result(y,()=>e.reset());function b(){let P=r.name("_valid"),O=r.let("count",0);_(P,()=>r.if(P,()=>w(O)))}function _(P,O){r.forRange("i",0,g,I=>{e.subschema({keyword:"contains",dataProp:I,dataPropType:Lo.Type.Num,compositeRule:!0},P),O()})}function w(P){r.code((0,Ye._)`${P}++`),a===void 0?r.if((0,Ye._)`${P} >= ${o}`,()=>r.assign(y,!0).break()):(r.if((0,Ye._)`${P} > ${a}`,()=>r.assign(y,!1).break()),o===1?r.assign(y,!0):r.if((0,Ye._)`${P} >= ${o}`,()=>r.assign(y,!0)))}}};Qu.default=RE});var Fo=j(xr=>{"use strict";p();m();h();Object.defineProperty(xr,"__esModule",{value:!0});xr.validateSchemaDeps=xr.validatePropertyDeps=xr.error=void 0;var Zu=V(),CE=Y(),mi=Je();xr.error={message:({params:{property:e,depsCount:r,deps:t}})=>{let n=r===1?"property":"properties";return(0,Zu.str)`must have ${n} ${t} when property ${e} is present`},params:({params:{property:e,depsCount:r,deps:t,missingProperty:n}})=>(0,Zu._)`{property: ${e}, missingProperty: ${n}, depsCount: ${r}, - deps: ${t}}`};var RE={keyword:"dependencies",type:"object",schemaType:"object",error:xr.error,code(e){let[r,t]=CE(e);$y(e,r),_y(e,t)}};function CE({schema:e}){let r={},t={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?r:t;i[n]=e[n]}return[r,t]}function $y(e,r=e.schema){let{gen:t,data:n,it:i}=e;if(Object.keys(r).length===0)return;let s=t.let("missing");for(let o in r){let a=r[o];if(a.length===0)continue;let l=(0,mi.propertyInData)(t,n,o,i.opts.ownProperties);e.setParams({property:o,depsCount:a.length,deps:a.join(", ")}),i.allErrors?t.if(l,()=>{for(let f of a)(0,mi.checkReportMissingProp)(e,f)}):(t.if((0,Zu._)`${l} && (${(0,mi.checkMissingProp)(e,a,s)})`),(0,mi.reportMissingProp)(e,s),t.else())}}xr.validatePropertyDeps=$y;function _y(e,r=e.schema){let{gen:t,data:n,keyword:i,it:s}=e,o=t.name("valid");for(let a in r)(0,TE.alwaysValidSchema)(s,r[a])||(t.if((0,mi.propertyInData)(t,n,a,s.opts.ownProperties),()=>{let l=e.subschema({keyword:i,schemaProp:a},o);e.mergeValidEvaluated(l,o)},()=>t.var(o,!0)),e.ok(o))}xr.validateSchemaDeps=_y;xr.default=RE});var wy=j(ec=>{"use strict";p();m();h();Object.defineProperty(ec,"__esModule",{value:!0});var by=V(),NE=Y(),ME={message:"property name must be valid",params:({params:e})=>(0,by._)`{propertyName: ${e.propertyName}}`},DE={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:ME,code(e){let{gen:r,schema:t,data:n,it:i}=e;if((0,NE.alwaysValidSchema)(i,t))return;let s=r.name("valid");r.forIn("key",n,o=>{e.setParams({propertyName:o}),e.subschema({keyword:"propertyNames",data:o,dataTypes:["string"],propertyName:o,compositeRule:!0},s),r.if((0,by.not)(s),()=>{e.error(!0),i.allErrors||r.break()})}),e.ok(s)}};ec.default=DE});var tc=j(rc=>{"use strict";p();m();h();Object.defineProperty(rc,"__esModule",{value:!0});var Vo=Je(),or=V(),BE=Ge(),zo=Y(),UE={message:"must NOT have additional properties",params:({params:e})=>(0,or._)`{additionalProperty: ${e.additionalProperty}}`},LE={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:UE,code(e){let{gen:r,schema:t,parentSchema:n,data:i,errsCount:s,it:o}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:a,opts:l}=o;if(o.props=!0,l.removeAdditional!=="all"&&(0,zo.alwaysValidSchema)(o,t))return;let f=(0,Vo.allSchemaProperties)(n.properties),g=(0,Vo.allSchemaProperties)(n.patternProperties);y(),e.ok((0,or._)`${s} === ${BE.default.errors}`);function y(){r.forIn("key",i,O=>{!f.length&&!g.length?w(O):r.if(b(O),()=>w(O))})}function b(O){let I;if(f.length>8){let R=(0,zo.schemaRefOrVal)(o,n.properties,"properties");I=(0,Vo.isOwnProperty)(r,R,O)}else f.length?I=(0,or.or)(...f.map(R=>(0,or._)`${O} === ${R}`)):I=or.nil;return g.length&&(I=(0,or.or)(I,...g.map(R=>(0,or._)`${(0,Vo.usePattern)(e,R)}.test(${O})`))),(0,or.not)(I)}function _(O){r.code((0,or._)`delete ${i}[${O}]`)}function w(O){if(l.removeAdditional==="all"||l.removeAdditional&&t===!1){_(O);return}if(t===!1){e.setParams({additionalProperty:O}),e.error(),a||r.break();return}if(typeof t=="object"&&!(0,zo.alwaysValidSchema)(o,t)){let I=r.name("valid");l.removeAdditional==="failing"?(P(O,I,!1),r.if((0,or.not)(I),()=>{e.reset(),_(O)})):(P(O,I),a||r.if((0,or.not)(I),()=>r.break()))}}function P(O,I,R){let C={keyword:"additionalProperties",dataProp:O,dataPropType:zo.Type.Str};R===!1&&Object.assign(C,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(C,I)}}};rc.default=LE});var Ey=j(ic=>{"use strict";p();m();h();Object.defineProperty(ic,"__esModule",{value:!0});var FE=Zn(),Py=Je(),nc=Y(),xy=tc(),VE={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:r,schema:t,parentSchema:n,data:i,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&xy.default.code(new FE.KeywordCxt(s,xy.default,"additionalProperties"));let o=(0,Py.allSchemaProperties)(t);for(let y of o)s.definedProperties.add(y);s.opts.unevaluated&&o.length&&s.props!==!0&&(s.props=nc.mergeEvaluated.props(r,(0,nc.toHash)(o),s.props));let a=o.filter(y=>!(0,nc.alwaysValidSchema)(s,t[y]));if(a.length===0)return;let l=r.name("valid");for(let y of a)f(y)?g(y):(r.if((0,Py.propertyInData)(r,i,y,s.opts.ownProperties)),g(y),s.allErrors||r.else().var(l,!0),r.endIf()),e.it.definedProperties.add(y),e.ok(l);function f(y){return s.opts.useDefaults&&!s.compositeRule&&t[y].default!==void 0}function g(y){e.subschema({keyword:"properties",schemaProp:y,dataProp:y},l)}}};ic.default=VE});var Ay=j(oc=>{"use strict";p();m();h();Object.defineProperty(oc,"__esModule",{value:!0});var Sy=Je(),Ho=V(),jy=Y(),Oy=Y(),zE={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:r,schema:t,data:n,parentSchema:i,it:s}=e,{opts:o}=s,a=(0,Sy.allSchemaProperties)(t),l=a.filter(P=>(0,jy.alwaysValidSchema)(s,t[P]));if(a.length===0||l.length===a.length&&(!s.opts.unevaluated||s.props===!0))return;let f=o.strictSchema&&!o.allowMatchingProperties&&i.properties,g=r.name("valid");s.props!==!0&&!(s.props instanceof Ho.Name)&&(s.props=(0,Oy.evaluatedPropsToName)(r,s.props));let{props:y}=s;b();function b(){for(let P of a)f&&_(P),s.allErrors?w(P):(r.var(g,!0),w(P),r.if(g))}function _(P){for(let O in f)new RegExp(P).test(O)&&(0,jy.checkStrictMode)(s,`property ${O} matches pattern ${P} (use allowMatchingProperties)`)}function w(P){r.forIn("key",n,O=>{r.if((0,Ho._)`${(0,Sy.usePattern)(e,P)}.test(${O})`,()=>{let I=l.includes(P);I||e.subschema({keyword:"patternProperties",schemaProp:P,dataProp:O,dataPropType:Oy.Type.Str},g),s.opts.unevaluated&&y!==!0?r.assign((0,Ho._)`${y}[${O}]`,!0):!I&&!s.allErrors&&r.if((0,Ho.not)(g),()=>r.break())})})}}};oc.default=zE});var qy=j(sc=>{"use strict";p();m();h();Object.defineProperty(sc,"__esModule",{value:!0});var HE=Y(),KE={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:r,schema:t,it:n}=e;if((0,HE.alwaysValidSchema)(n,t)){e.fail();return}let i=r.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"}};sc.default=KE});var Iy=j(ac=>{"use strict";p();m();h();Object.defineProperty(ac,"__esModule",{value:!0});var GE=Je(),JE={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:GE.validateUnion,error:{message:"must match a schema in anyOf"}};ac.default=JE});var ky=j(uc=>{"use strict";p();m();h();Object.defineProperty(uc,"__esModule",{value:!0});var Ko=V(),WE=Y(),YE={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Ko._)`{passingSchemas: ${e.passing}}`},XE={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:YE,code(e){let{gen:r,schema:t,parentSchema:n,it:i}=e;if(!Array.isArray(t))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let s=t,o=r.let("valid",!1),a=r.let("passing",null),l=r.name("_valid");e.setParams({passing:a}),r.block(f),e.result(o,()=>e.reset(),()=>e.error(!0));function f(){s.forEach((g,y)=>{let b;(0,WE.alwaysValidSchema)(i,g)?r.var(l,!0):b=e.subschema({keyword:"oneOf",schemaProp:y,compositeRule:!0},l),y>0&&r.if((0,Ko._)`${l} && ${o}`).assign(o,!1).assign(a,(0,Ko._)`[${a}, ${y}]`).else(),r.if(l,()=>{r.assign(o,!0),r.assign(a,y),b&&e.mergeEvaluated(b,Ko.Name)})})}}};uc.default=XE});var Ty=j(cc=>{"use strict";p();m();h();Object.defineProperty(cc,"__esModule",{value:!0});var QE=Y(),ZE={keyword:"allOf",schemaType:"array",code(e){let{gen:r,schema:t,it:n}=e;if(!Array.isArray(t))throw new Error("ajv implementation error");let i=r.name("valid");t.forEach((s,o)=>{if((0,QE.alwaysValidSchema)(n,s))return;let a=e.subschema({keyword:"allOf",schemaProp:o},i);e.ok(i),e.mergeEvaluated(a)})}};cc.default=ZE});var Ny=j(lc=>{"use strict";p();m();h();Object.defineProperty(lc,"__esModule",{value:!0});var Go=V(),Cy=Y(),eS={message:({params:e})=>(0,Go.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Go._)`{failingKeyword: ${e.ifClause}}`},rS={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:eS,code(e){let{gen:r,parentSchema:t,it:n}=e;t.then===void 0&&t.else===void 0&&(0,Cy.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=Ry(n,"then"),s=Ry(n,"else");if(!i&&!s)return;let o=r.let("valid",!0),a=r.name("_valid");if(l(),e.reset(),i&&s){let g=r.let("ifClause");e.setParams({ifClause:g}),r.if(a,f("then",g),f("else",g))}else i?r.if(a,f("then")):r.if((0,Go.not)(a),f("else"));e.pass(o,()=>e.error(!0));function l(){let g=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(g)}function f(g,y){return()=>{let b=e.subschema({keyword:g},a);r.assign(o,a),e.mergeValidEvaluated(b,o),y?r.assign(y,(0,Go._)`${g}`):e.setParams({ifClause:g})}}}};function Ry(e,r){let t=e.schema[r];return t!==void 0&&!(0,Cy.alwaysValidSchema)(e,t)}lc.default=rS});var My=j(fc=>{"use strict";p();m();h();Object.defineProperty(fc,"__esModule",{value:!0});var tS=Y(),nS={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:r,it:t}){r.if===void 0&&(0,tS.checkStrictMode)(t,`"${e}" without "if" is ignored`)}};fc.default=nS});var pc=j(dc=>{"use strict";p();m();h();Object.defineProperty(dc,"__esModule",{value:!0});var iS=Ju(),oS=my(),sS=Wu(),aS=gy(),uS=vy(),cS=Fo(),lS=wy(),fS=tc(),dS=Ey(),pS=Ay(),hS=qy(),mS=Iy(),yS=ky(),gS=Ty(),vS=Ny(),$S=My();function _S(e=!1){let r=[hS.default,mS.default,yS.default,gS.default,vS.default,$S.default,lS.default,fS.default,cS.default,dS.default,pS.default];return e?r.push(oS.default,aS.default):r.push(iS.default,sS.default),r.push(uS.default),r}dc.default=_S});var Dy=j(hc=>{"use strict";p();m();h();Object.defineProperty(hc,"__esModule",{value:!0});var me=V(),bS={message:({schemaCode:e})=>(0,me.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,me._)`{format: ${e}}`},wS={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:bS,code(e,r){let{gen:t,data:n,$data:i,schema:s,schemaCode:o,it:a}=e,{opts:l,errSchemaPath:f,schemaEnv:g,self:y}=a;if(!l.validateFormats)return;i?b():_();function b(){let w=t.scopeValue("formats",{ref:y.formats,code:l.code.formats}),P=t.const("fDef",(0,me._)`${w}[${o}]`),O=t.let("fType"),I=t.let("format");t.if((0,me._)`typeof ${P} == "object" && !(${P} instanceof RegExp)`,()=>t.assign(O,(0,me._)`${P}.type || "string"`).assign(I,(0,me._)`${P}.validate`),()=>t.assign(O,(0,me._)`"string"`).assign(I,P)),e.fail$data((0,me.or)(R(),C()));function R(){return l.strictSchema===!1?me.nil:(0,me._)`${o} && !${I}`}function C(){let U=g.$async?(0,me._)`(${P}.async ? await ${I}(${n}) : ${I}(${n}))`:(0,me._)`${I}(${n})`,N=(0,me._)`(typeof ${I} == "function" ? ${U} : ${I}.test(${n}))`;return(0,me._)`${I} && ${I} !== true && ${O} === ${r} && !${N}`}}function _(){let w=y.formats[s];if(!w){R();return}if(w===!0)return;let[P,O,I]=C(w);P===r&&e.pass(U());function R(){if(l.strictSchema===!1){y.logger.warn(N());return}throw new Error(N());function N(){return`unknown format "${s}" ignored in schema at path "${f}"`}}function C(N){let ve=N instanceof RegExp?(0,me.regexpCode)(N):l.code.formats?(0,me._)`${l.code.formats}${(0,me.getProperty)(s)}`:void 0,er=t.scopeValue("formats",{key:s,ref:N,code:ve});return typeof N=="object"&&!(N instanceof RegExp)?[N.type||"string",N.validate,(0,me._)`${er}.validate`]:["string",N,er]}function U(){if(typeof w=="object"&&!(w instanceof RegExp)&&w.async){if(!g.$async)throw new Error("async format in sync schema");return(0,me._)`await ${I}(${n})`}return typeof O=="function"?(0,me._)`${I}(${n})`:(0,me._)`${I}.test(${n})`}}}};hc.default=wS});var yc=j(mc=>{"use strict";p();m();h();Object.defineProperty(mc,"__esModule",{value:!0});var PS=Dy(),xS=[PS.default];mc.default=xS});var By=j(gc=>{"use strict";p();m();h();Object.defineProperty(gc,"__esModule",{value:!0});var ES=iy(),SS=fy(),jS=pc(),OS=yc(),AS=["title","description","default"],qS=[ES.default,SS.default,jS.default(),OS.default,AS];gc.default=qS});var Ly=j(Jo=>{"use strict";p();m();h();Object.defineProperty(Jo,"__esModule",{value:!0});Jo.DiscrError=void 0;var Uy;(function(e){e.Tag="tag",e.Mapping="mapping"})(Uy||(Jo.DiscrError=Uy={}))});var _c=j($c=>{"use strict";p();m();h();Object.defineProperty($c,"__esModule",{value:!0});var cn=V(),vc=Ly(),Fy=ri(),IS=ei(),kS=Y(),TS={message:({params:{discrError:e,tagName:r}})=>e===vc.DiscrError.Tag?`tag "${r}" must be string`:`value of tag "${r}" must be in oneOf`,params:({params:{discrError:e,tag:r,tagName:t}})=>(0,cn._)`{error: ${e}, tag: ${t}, tagValue: ${r}}`},RS={keyword:"discriminator",type:"object",schemaType:"object",error:TS,code(e){let{gen:r,data:t,schema:n,parentSchema:i,it:s}=e,{oneOf:o}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!o)throw new Error("discriminator: requires oneOf keyword");let l=r.let("valid",!1),f=r.const("tag",(0,cn._)`${t}${(0,cn.getProperty)(a)}`);r.if((0,cn._)`typeof ${f} == "string"`,()=>g(),()=>e.error(!1,{discrError:vc.DiscrError.Tag,tag:f,tagName:a})),e.ok(l);function g(){let _=b();r.if(!1);for(let w in _)r.elseIf((0,cn._)`${f} === ${w}`),r.assign(l,y(_[w]));r.else(),e.error(!1,{discrError:vc.DiscrError.Mapping,tag:f,tagName:a}),r.endIf()}function y(_){let w=r.name("valid"),P=e.subschema({keyword:"oneOf",schemaProp:_},w);return e.mergeEvaluated(P,cn.Name),w}function b(){var _;let w={},P=I(i),O=!0;for(let U=0;U{CS.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 Ky=j((ge,Hy)=>{"use strict";p();m();h();Object.defineProperty(ge,"__esModule",{value:!0});ge.CodeGen=ge.Name=ge.nil=ge.stringify=ge.str=ge._=ge.KeywordCxt=void 0;var NS=an(),MS=By(),DS=_c(),zy=Vy(),BS=["/properties"],Wo="http://json-schema.org/draft-04/schema",Yo=class extends NS.default{constructor(r={}){super({...r,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),MS.default.forEach(r=>this.addVocabulary(r)),this.opts.discriminator&&this.addKeyword(DS.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let r=this.opts.$data?this.$dataMetaSchema(zy,BS):zy;this.addMetaSchema(r,Wo,!1),this.refs["http://json-schema.org/schema"]=Wo}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Wo)?Wo:void 0)}};Hy.exports=ge=Yo;Object.defineProperty(ge,"__esModule",{value:!0});ge.default=Yo;var US=an();Object.defineProperty(ge,"KeywordCxt",{enumerable:!0,get:function(){return US.KeywordCxt}});var ln=an();Object.defineProperty(ge,"_",{enumerable:!0,get:function(){return ln._}});Object.defineProperty(ge,"str",{enumerable:!0,get:function(){return ln.str}});Object.defineProperty(ge,"stringify",{enumerable:!0,get:function(){return ln.stringify}});Object.defineProperty(ge,"nil",{enumerable:!0,get:function(){return ln.nil}});Object.defineProperty(ge,"Name",{enumerable:!0,get:function(){return ln.Name}});Object.defineProperty(ge,"CodeGen",{enumerable:!0,get:function(){return ln.CodeGen}})});var Gy=j(bc=>{"use strict";p();m();h();Object.defineProperty(bc,"__esModule",{value:!0});var LS={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};bc.default=LS});var Jy=j(wc=>{"use strict";p();m();h();Object.defineProperty(wc,"__esModule",{value:!0});var FS=Gy(),VS=si(),zS=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",FS.default,VS.default];wc.default=zS});var Wy=j(Pc=>{"use strict";p();m();h();Object.defineProperty(Pc,"__esModule",{value:!0});var Xo=V(),rt=Xo.operators,Qo={maximum:{okStr:"<=",ok:rt.LTE,fail:rt.GT},minimum:{okStr:">=",ok:rt.GTE,fail:rt.LT},exclusiveMaximum:{okStr:"<",ok:rt.LT,fail:rt.GTE},exclusiveMinimum:{okStr:">",ok:rt.GT,fail:rt.LTE}},HS={message:({keyword:e,schemaCode:r})=>(0,Xo.str)`must be ${Qo[e].okStr} ${r}`,params:({keyword:e,schemaCode:r})=>(0,Xo._)`{comparison: ${Qo[e].okStr}, limit: ${r}}`},KS={keyword:Object.keys(Qo),type:"number",schemaType:"number",$data:!0,error:HS,code(e){let{keyword:r,data:t,schemaCode:n}=e;e.fail$data((0,Xo._)`${t} ${Qo[r].fail} ${n} || isNaN(${t})`)}};Pc.default=KS});var Yy=j(xc=>{"use strict";p();m();h();Object.defineProperty(xc,"__esModule",{value:!0});var GS=Wy(),JS=Eu(),WS=Ou(),YS=qu(),XS=ku(),QS=Ru(),ZS=Nu(),ej=Uu(),rj=Vu(),tj=Hu(),nj=[GS.default,JS.default,WS.default,YS.default,XS.default,QS.default,ZS.default,ej.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},rj.default,tj.default];xc.default=nj});var Sc=j(yi=>{"use strict";p();m();h();Object.defineProperty(yi,"__esModule",{value:!0});yi.dynamicAnchor=void 0;var Ec=V(),ij=Ge(),Xy=ri(),oj=si(),sj={keyword:"$dynamicAnchor",schemaType:"string",code:e=>Qy(e,e.schema)};function Qy(e,r){let{gen:t,it:n}=e;n.schemaEnv.root.dynamicAnchors[r]=!0;let i=(0,Ec._)`${ij.default.dynamicAnchors}${(0,Ec.getProperty)(r)}`,s=n.errSchemaPath==="#"?n.validateName:aj(e);t.if((0,Ec._)`!${i}`,()=>t.assign(i,s))}yi.dynamicAnchor=Qy;function aj(e){let{schemaEnv:r,schema:t,self:n}=e.it,{root:i,baseId:s,localRefs:o,meta:a}=r.root,{schemaId:l}=n.opts,f=new Xy.SchemaEnv({schema:t,schemaId:l,root:i,baseId:s,localRefs:o,meta:a});return Xy.compileSchema.call(n,f),(0,oj.getValidate)(e,f)}yi.default=sj});var jc=j(gi=>{"use strict";p();m();h();Object.defineProperty(gi,"__esModule",{value:!0});gi.dynamicRef=void 0;var Zy=V(),uj=Ge(),eg=si(),cj={keyword:"$dynamicRef",schemaType:"string",code:e=>rg(e,e.schema)};function rg(e,r){let{gen:t,keyword:n,it:i}=e;if(r[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let s=r.slice(1);if(i.allErrors)o();else{let l=t.let("valid",!1);o(l),e.ok(l)}function o(l){if(i.schemaEnv.root.dynamicAnchors[s]){let f=t.let("_v",(0,Zy._)`${uj.default.dynamicAnchors}${(0,Zy.getProperty)(s)}`);t.if(f,a(f,l),a(i.validateName,l))}else a(i.validateName,l)()}function a(l,f){return f?()=>t.block(()=>{(0,eg.callRef)(e,l),t.let(f,!0)}):()=>(0,eg.callRef)(e,l)}}gi.dynamicRef=rg;gi.default=cj});var tg=j(Oc=>{"use strict";p();m();h();Object.defineProperty(Oc,"__esModule",{value:!0});var lj=Sc(),fj=Y(),dj={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,lj.dynamicAnchor)(e,""):(0,fj.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Oc.default=dj});var ng=j(Ac=>{"use strict";p();m();h();Object.defineProperty(Ac,"__esModule",{value:!0});var pj=jc(),hj={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,pj.dynamicRef)(e,e.schema)};Ac.default=hj});var ig=j(qc=>{"use strict";p();m();h();Object.defineProperty(qc,"__esModule",{value:!0});var mj=Sc(),yj=jc(),gj=tg(),vj=ng(),$j=[mj.default,yj.default,gj.default,vj.default];qc.default=$j});var sg=j(Ic=>{"use strict";p();m();h();Object.defineProperty(Ic,"__esModule",{value:!0});var og=Fo(),_j={keyword:"dependentRequired",type:"object",schemaType:"object",error:og.error,code:e=>(0,og.validatePropertyDeps)(e)};Ic.default=_j});var ag=j(kc=>{"use strict";p();m();h();Object.defineProperty(kc,"__esModule",{value:!0});var bj=Fo(),wj={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,bj.validateSchemaDeps)(e)};kc.default=wj});var ug=j(Tc=>{"use strict";p();m();h();Object.defineProperty(Tc,"__esModule",{value:!0});var Pj=Y(),xj={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:r,it:t}){r.contains===void 0&&(0,Pj.checkStrictMode)(t,`"${e}" without "contains" is ignored`)}};Tc.default=xj});var cg=j(Rc=>{"use strict";p();m();h();Object.defineProperty(Rc,"__esModule",{value:!0});var Ej=sg(),Sj=ag(),jj=ug(),Oj=[Ej.default,Sj.default,jj.default];Rc.default=Oj});var fg=j(Cc=>{"use strict";p();m();h();Object.defineProperty(Cc,"__esModule",{value:!0});var tt=V(),lg=Y(),Aj=Ge(),qj={message:"must NOT have unevaluated properties",params:({params:e})=>(0,tt._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},Ij={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:qj,code(e){let{gen:r,schema:t,data:n,errsCount:i,it:s}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:o,props:a}=s;a instanceof tt.Name?r.if((0,tt._)`${a} !== true`,()=>r.forIn("key",n,y=>r.if(f(a,y),()=>l(y)))):a!==!0&&r.forIn("key",n,y=>a===void 0?l(y):r.if(g(a,y),()=>l(y))),s.props=!0,e.ok((0,tt._)`${i} === ${Aj.default.errors}`);function l(y){if(t===!1){e.setParams({unevaluatedProperty:y}),e.error(),o||r.break();return}if(!(0,lg.alwaysValidSchema)(s,t)){let b=r.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:y,dataPropType:lg.Type.Str},b),o||r.if((0,tt.not)(b),()=>r.break())}}function f(y,b){return(0,tt._)`!${y} || !${y}[${b}]`}function g(y,b){let _=[];for(let w in y)y[w]===!0&&_.push((0,tt._)`${b} !== ${w}`);return(0,tt.and)(..._)}}};Cc.default=Ij});var pg=j(Nc=>{"use strict";p();m();h();Object.defineProperty(Nc,"__esModule",{value:!0});var qt=V(),dg=Y(),kj={message:({params:{len:e}})=>(0,qt.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,qt._)`{limit: ${e}}`},Tj={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:kj,code(e){let{gen:r,schema:t,data:n,it:i}=e,s=i.items||0;if(s===!0)return;let o=r.const("len",(0,qt._)`${n}.length`);if(t===!1)e.setParams({len:s}),e.fail((0,qt._)`${o} > ${s}`);else if(typeof t=="object"&&!(0,dg.alwaysValidSchema)(i,t)){let l=r.var("valid",(0,qt._)`${o} <= ${s}`);r.if((0,qt.not)(l),()=>a(l,s)),e.ok(l)}i.items=!0;function a(l,f){r.forRange("i",f,o,g=>{e.subschema({keyword:"unevaluatedItems",dataProp:g,dataPropType:dg.Type.Num},l),i.allErrors||r.if((0,qt.not)(l),()=>r.break())})}}};Nc.default=Tj});var hg=j(Mc=>{"use strict";p();m();h();Object.defineProperty(Mc,"__esModule",{value:!0});var Rj=fg(),Cj=pg(),Nj=[Rj.default,Cj.default];Mc.default=Nj});var mg=j(fn=>{"use strict";p();m();h();Object.defineProperty(fn,"__esModule",{value:!0});fn.contentVocabulary=fn.metadataVocabulary=void 0;fn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];fn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var gg=j(Dc=>{"use strict";p();m();h();Object.defineProperty(Dc,"__esModule",{value:!0});var Mj=Jy(),Dj=Yy(),Bj=pc(),Uj=ig(),Lj=cg(),Fj=hg(),Vj=yc(),yg=mg(),zj=[Uj.default,Mj.default,Dj.default,(0,Bj.default)(!0),Vj.default,yg.metadataVocabulary,yg.contentVocabulary,Lj.default,Fj.default];Dc.default=zj});var vg=j((UU,Hj)=>{Hj.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var $g=j((LU,Kj)=>{Kj.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 _g=j((FU,Gj)=>{Gj.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 bg=j((VU,Jj)=>{Jj.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var wg=j((zU,Wj)=>{Wj.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 Pg=j((HU,Yj)=>{Yj.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 xg=j((KU,Xj)=>{Xj.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 Eg=j((GU,Qj)=>{Qj.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 Sg=j(Bc=>{"use strict";p();m();h();Object.defineProperty(Bc,"__esModule",{value:!0});var Zj=vg(),eO=$g(),rO=_g(),tO=bg(),nO=wg(),iO=Pg(),oO=xg(),sO=Eg(),aO=["/properties"];function uO(e){return[Zj,eO,rO,tO,nO,r(this,iO),oO,r(this,sO)].forEach(t=>this.addMetaSchema(t,void 0,!1)),this;function r(t,n){return e?t.$dataMetaSchema(n,aO):n}}Bc.default=uO});var jg=j((ie,Lc)=>{"use strict";p();m();h();Object.defineProperty(ie,"__esModule",{value:!0});ie.MissingRefError=ie.ValidationError=ie.CodeGen=ie.Name=ie.nil=ie.stringify=ie.str=ie._=ie.KeywordCxt=ie.Ajv2020=void 0;var cO=an(),lO=gg(),fO=_c(),dO=Sg(),Uc="https://json-schema.org/draft/2020-12/schema",dn=class extends cO.default{constructor(r={}){super({...r,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),lO.default.forEach(r=>this.addVocabulary(r)),this.opts.discriminator&&this.addKeyword(fO.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:r,meta:t}=this.opts;t&&(dO.default.call(this,r),this.refs["http://json-schema.org/schema"]=Uc)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Uc)?Uc:void 0)}};ie.Ajv2020=dn;Lc.exports=ie=dn;Lc.exports.Ajv2020=dn;Object.defineProperty(ie,"__esModule",{value:!0});ie.default=dn;var pO=Zn();Object.defineProperty(ie,"KeywordCxt",{enumerable:!0,get:function(){return pO.KeywordCxt}});var pn=V();Object.defineProperty(ie,"_",{enumerable:!0,get:function(){return pn._}});Object.defineProperty(ie,"str",{enumerable:!0,get:function(){return pn.str}});Object.defineProperty(ie,"stringify",{enumerable:!0,get:function(){return pn.stringify}});Object.defineProperty(ie,"nil",{enumerable:!0,get:function(){return pn.nil}});Object.defineProperty(ie,"Name",{enumerable:!0,get:function(){return pn.Name}});Object.defineProperty(ie,"CodeGen",{enumerable:!0,get:function(){return pn.CodeGen}});var hO=qo();Object.defineProperty(ie,"ValidationError",{enumerable:!0,get:function(){return hO.default}});var mO=ei();Object.defineProperty(ie,"MissingRefError",{enumerable:!0,get:function(){return mO.default}})});var Og=j((rL,yO)=>{yO.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 Ag=j((tL,gO)=>{gO.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 qg=j((nL,vO)=>{vO.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 Ig=j((iL,$O)=>{$O.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 kg=j((_e,hn)=>{"use strict";p();m();h();Object.defineProperty(_e,"__esModule",{value:!0});_e.openapi=_e.openapiV31=_e.openapiV3=_e.openapiV2=_e.openapiV1=void 0;_e.openapiV1=Og();_e.openapiV2=Ag();_e.openapiV3=qg();_e.openapiV31=Ig();_e.openapi={v1:_e.openapiV1,v2:_e.openapiV2,v3:_e.openapiV3,v31:_e.openapiV31};_e.default=_e.openapi;typeof hn=="object"&&typeof hn.exports=="object"&&(hn.exports=Object.assign(hn.exports.default,hn.exports))});var zc=j((uL,Tg)=>{"use strict";p();m();h();var _O=go(),{ono:bO}=He(),wO=Ky(),PO=jg(),{openapi:Fc}=kg();Tg.exports=xO;function xO(e){let r,t;if(e.swagger)t=Fc.v2,r=Vc();else if(e.openapi.startsWith("3.1")){t=Fc.v31;let i=t.$defs.schema;delete i.$dynamicAnchor,t.$defs.components.properties.schemas.additionalProperties=i,t.$defs.header.dependentSchemas.schema.properties.schema=i,t.$defs["media-type"].properties.schema=i,t.$defs.parameter.properties.schema=i,r=Vc(!1)}else t=Fc.v3,r=Vc();if(!r.validate(t,e)){let i=r.errors,s=`Swagger schema validation failed. -`+EO(i);throw bO.syntax(i,{details:i},s)}}function Vc(e=!0){let r={allErrors:!0,strict:!1,validateFormats:!1};return e?new wO(r):new PO(r)}function EO(e,r){r=r||" ";let t="";for(let n of e)t+=_O.format(`${r}#${n.instancePath.length?n.instancePath:"/"} ${n.message} -`);return t}});var Cg=j((dL,Rg)=>{"use strict";p();m();h();Rg.exports=["get","put","post","delete","options","head","patch"]});var Gc=j((yL,Bg)=>{"use strict";p();m();h();var SO=go(),{ono:Ie}=He(),jO=Cg(),Hc=["array","boolean","integer","number","string"],Mg=["array","boolean","integer","number","string","object","null",void 0];Bg.exports=OO;function OO(e){if(e.openapi)return;let r=Object.keys(e.paths||{}),t=[];for(let i of r){let s=e.paths[i],o="/paths"+i;s&&i.indexOf("/")===0&&AO(e,s,o,t)}let n=Object.keys(e.definitions||{});for(let i of n){let s=e.definitions[i],o="/definitions/"+i;Dg(s,o)}}function AO(e,r,t,n){for(let i of jO){let s=r[i],o=t+"/"+i;if(s){let a=s.operationId;if(a)if(n.indexOf(a)===-1)n.push(a);else throw Ie.syntax(`Validation failed. Duplicate operation id '${a}'`);qO(e,r,t,s,o);let l=Object.keys(s.responses||{});for(let f of l){let g=s.responses[f],y=o+"/responses/"+f;RO(f,g||{},y)}}}}function qO(e,r,t,n,i){let s=r.parameters||[],o=n.parameters||[];try{Ng(s)}catch(l){throw Ie.syntax(l,`Validation failed. ${t} has duplicate parameters`)}try{Ng(o)}catch(l){throw Ie.syntax(l,`Validation failed. ${i} has duplicate parameters`)}let a=s.reduce((l,f)=>(l.some(y=>y.in===f.in&&y.name===f.name)||l.push(f),l),o.slice());IO(a,i),kO(a,t,i),TO(a,e,n,i)}function IO(e,r){let t=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(t.length>1)throw Ie.syntax(`Validation failed. ${r} has ${t.length} body parameters. Only one is allowed.`);if(t.length>0&&n.length>0)throw Ie.syntax(`Validation failed. ${r} has body parameters and formData parameters. Only one or the other is allowed.`)}function kO(e,r,t){let n=r.match(SO.swaggerParamRegExp)||[];for(let i=0;ii.in==="path");for(let i of e){if(i.required!==!0)throw Ie.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${t}`);let s=n.indexOf("{"+i.name+"}");if(s===-1)throw Ie.syntax(`Validation failed. ${t} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(s,1)}if(n.length>0)throw Ie.syntax(`Validation failed. ${t} is missing path parameter(s) for ${n}`)}function TO(e,r,t,n){for(let i of e){let s=n+"/parameters/"+i.name,o,a;switch(i.in){case"body":o=i.schema,a=Mg;break;case"formData":o=i,a=Hc.concat("file");break;default:o=i,a=Hc}if(Kc(o,s,a),Dg(o,s),o.type==="file"){let l=/multipart\/(.*\+)?form-data/,f=/application\/(.*\+)?x-www-form-urlencoded/;if(!(t.consumes||r.consumes||[]).some(b=>l.test(b)||f.test(b)))throw Ie.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}function Ng(e){for(let r=0;r599))throw Ie.syntax(`Validation failed. ${t} has an invalid response code (${e})`);let n=Object.keys(r.headers||{});for(let i of n){let s=r.headers[i],o=t+"/headers/"+i;Kc(s,o,Hc)}if(r.schema){let i=Mg.concat("file");if(i.indexOf(r.schema.type)===-1)throw Ie.syntax(`Validation failed. ${t} has an invalid response schema type (${r.schema.type})`);Kc(r.schema,t+"/schema",i)}}function Kc(e,r,t){if(t.indexOf(e.type)===-1)throw Ie.syntax(`Validation failed. ${r} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw Ie.syntax(`Validation failed. ${r} is an array, so it must include an "items" schema`)}function Dg(e,r){function t(n,i){if(n.properties)for(let s in n.properties)n.properties.hasOwnProperty(s)&&(i[s]=n.properties[s]);if(n.allOf)for(let s of n.allOf)t(s,i)}if(!(Array.isArray(e.type)&&!e.type.includes("object"))&&!(!Array.isArray(e.type)&&e.type!=="object")&&e.required&&Array.isArray(e.required)){let n={};t(e,n);for(let i of e.required)if(!n[i])throw Ie.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${r}'`)}}});function CO(){if(Ug)return Jc;Ug=!0;var e=Jc={},r,t;function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?r=setTimeout:r=n}catch(P){r=n}try{typeof clearTimeout=="function"?t=clearTimeout:t=i}catch(P){t=i}})();function s(P){if(r===setTimeout)return setTimeout(P,0);if((r===n||!r)&&setTimeout)return r=setTimeout,setTimeout(P,0);try{return r(P,0)}catch(O){try{return r.call(null,P,0)}catch(I){return r.call(this||mn,P,0)}}}function o(P){if(t===clearTimeout)return clearTimeout(P);if((t===i||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(P);try{return t(P)}catch(O){try{return t.call(null,P)}catch(I){return t.call(this||mn,P)}}}var a=[],l=!1,f,g=-1;function y(){!l||!f||(l=!1,f.length?a=f.concat(a):g=-1,a.length&&b())}function b(){if(!l){var P=s(y);l=!0;for(var O=a.length;O;){for(f=a,a=[];++g1)for(var I=1;I{p();m();h();Jc={},Ug=!1,mn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;ue=CO();ue.platform="browser";ue.addListener;ue.argv;ue.binding;ue.browser;ue.chdir;ue.cwd;ue.emit;ue.env;ue.listeners;ue.nextTick;ue.off;ue.on;ue.once;ue.prependListener;ue.prependOnceListener;ue.removeAllListeners;ue.removeListener;ue.title;ue.umask;ue.version;ue.versions});function NO(){if(Lg)return Yc;Lg=!0;var e=ue;function r(s){if(typeof s!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(s))}function t(s,o){for(var a="",l=0,f=-1,g=0,y,b=0;b<=s.length;++b){if(b2){var _=a.lastIndexOf("/");if(_!==a.length-1){_===-1?(a="",l=0):(a=a.slice(0,_),l=a.length-1-a.lastIndexOf("/")),f=b,g=0;continue}}else if(a.length===2||a.length===1){a="",l=0,f=b,g=0;continue}}o&&(a.length>0?a+="/..":a="..",l=2)}else a.length>0?a+="/"+s.slice(f+1,b):a=s.slice(f+1,b),l=b-f-1;f=b,g=0}else y===46&&g!==-1?++g:g=-1}return a}function n(s,o){var a=o.dir||o.root,l=o.base||(o.name||"")+(o.ext||"");return a?a===o.root?a+l:a+s+l:l}var i={resolve:function(){for(var o="",a=!1,l,f=arguments.length-1;f>=-1&&!a;f--){var g;f>=0?g=arguments[f]:(l===void 0&&(l=e.cwd()),g=l),r(g),g.length!==0&&(o=g+"/"+o,a=g.charCodeAt(0)===47)}return o=t(o,!a),a?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(o){if(r(o),o.length===0)return".";var a=o.charCodeAt(0)===47,l=o.charCodeAt(o.length-1)===47;return o=t(o,!a),o.length===0&&!a&&(o="."),o.length>0&&l&&(o+="/"),a?"/"+o:o},isAbsolute:function(o){return r(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,a=0;a0&&(o===void 0?o=l:o+="/"+l)}return o===void 0?".":i.normalize(o)},relative:function(o,a){if(r(o),r(a),o===a||(o=i.resolve(o),a=i.resolve(a),o===a))return"";for(var l=1;lw){if(a.charCodeAt(y+O)===47)return a.slice(y+O+1);if(O===0)return a.slice(y+O)}else g>w&&(o.charCodeAt(l+O)===47?P=O:O===0&&(P=0));break}var I=o.charCodeAt(l+O),R=a.charCodeAt(y+O);if(I!==R)break;I===47&&(P=O)}var C="";for(O=l+P+1;O<=f;++O)(O===f||o.charCodeAt(O)===47)&&(C.length===0?C+="..":C+="/..");return C.length>0?C+a.slice(y+P):(y+=P,a.charCodeAt(y)===47&&++y,a.slice(y))},_makeLong:function(o){return o},dirname:function(o){if(r(o),o.length===0)return".";for(var a=o.charCodeAt(0),l=a===47,f=-1,g=!0,y=o.length-1;y>=1;--y)if(a=o.charCodeAt(y),a===47){if(!g){f=y;break}}else g=!1;return f===-1?l?"/":".":l&&f===1?"//":o.slice(0,f)},basename:function(o,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');r(o);var l=0,f=-1,g=!0,y;if(a!==void 0&&a.length>0&&a.length<=o.length){if(a.length===o.length&&a===o)return"";var b=a.length-1,_=-1;for(y=o.length-1;y>=0;--y){var w=o.charCodeAt(y);if(w===47){if(!g){l=y+1;break}}else _===-1&&(g=!1,_=y+1),b>=0&&(w===a.charCodeAt(b)?--b===-1&&(f=y):(b=-1,f=_))}return l===f?f=_:f===-1&&(f=o.length),o.slice(l,f)}else{for(y=o.length-1;y>=0;--y)if(o.charCodeAt(y)===47){if(!g){l=y+1;break}}else f===-1&&(g=!1,f=y+1);return f===-1?"":o.slice(l,f)}},extname:function(o){r(o);for(var a=-1,l=0,f=-1,g=!0,y=0,b=o.length-1;b>=0;--b){var _=o.charCodeAt(b);if(_===47){if(!g){l=b+1;break}continue}f===-1&&(g=!1,f=b+1),_===46?a===-1?a=b:y!==1&&(y=1):a!==-1&&(y=-1)}return a===-1||f===-1||y===0||y===1&&a===f-1&&a===l+1?"":o.slice(a,f)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return n("/",o)},parse:function(o){r(o);var a={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return a;var l=o.charCodeAt(0),f=l===47,g;f?(a.root="/",g=1):g=0;for(var y=-1,b=0,_=-1,w=!0,P=o.length-1,O=0;P>=g;--P){if(l=o.charCodeAt(P),l===47){if(!w){b=P+1;break}continue}_===-1&&(w=!1,_=P+1),l===46?y===-1?y=P:O!==1&&(O=1):y!==-1&&(O=-1)}return y===-1||_===-1||O===0||O===1&&y===_-1&&y===b+1?_!==-1&&(b===0&&f?a.base=a.name=o.slice(1,_):a.base=a.name=o.slice(b,_)):(b===0&&f?(a.name=o.slice(1,y),a.base=o.slice(1,_)):(a.name=o.slice(b,y),a.base=o.slice(b,_)),a.ext=o.slice(y,_)),b>0?a.dir=o.slice(0,b-1):f&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,Yc=i,Yc}var Yc,Lg,be,Xc=Fe(()=>{p();m();h();Wc();Yc={},Lg=!1;be=NO()});var Zo={};ki(Zo,{_makeLong:()=>MO,basename:()=>DO,default:()=>be,delimiter:()=>BO,dirname:()=>UO,extname:()=>LO,format:()=>FO,isAbsolute:()=>VO,join:()=>zO,normalize:()=>HO,parse:()=>KO,posix:()=>GO,relative:()=>JO,resolve:()=>WO,sep:()=>YO,win32:()=>XO});var MO,DO,BO,UO,LO,FO,VO,zO,HO,KO,GO,JO,WO,YO,XO,es=Fe(()=>{p();m();h();Xc();Xc();Wc();MO=be._makeLong,DO=be.basename,BO=be.delimiter,UO=be.dirname,LO=be.extname,FO=be.format,VO=be.isAbsolute,zO=be.join,HO=be.normalize,KO=be.parse,GO=be.posix,JO=be.relative,WO=be.resolve,YO=be.sep,XO=be.win32});var Qc=j(vi=>{"use strict";p();m();h();var QO=vi&&vi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vi,"__esModule",{value:!0});vi.default=ZO;var Fg=QO((es(),Nt(Zo)));function ZO(e){var t,n,i,s,o;return e.startsWith("\\\\?\\")?e:e.split((n=(t=Fg.default)==null?void 0:t.win32)==null?void 0:n.sep).join((o=(s=(i=Fg.default)==null?void 0:i.posix)==null?void 0:s.sep)!=null?o:"/")}});var Vg=j(rs=>{"use strict";p();m();h();Object.defineProperty(rs,"__esModule",{value:!0});rs.isWindows=void 0;var eA=/^win/.test(globalThis.process?globalThis.process.platform:""),rA=()=>eA;rs.isWindows=rA});var Xe=j(oe=>{"use strict";p();m();h();var tA=oe&&oe.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,i)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),nA=oe&&oe.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),iA=oe&&oe.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&tA(r,e,t);return nA(r,e),r},oA=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(oe,"__esModule",{value:!0});oe.parse=void 0;oe.resolve=zg;oe.cwd=Hg;oe.getProtocol=nl;oe.getExtension=pA;oe.stripQuery=Kg;oe.getHash=Gg;oe.stripHash=rl;oe.isHttp=hA;oe.isFileSystemPath=tl;oe.fromFileSystemPath=mA;oe.toFileSystemPath=yA;oe.safePointerToPath=gA;oe.relative=vA;var ns=oA(Qc()),el=iA((es(),Nt(Zo))),sA=/\//g,aA=/^(\w{2,}):\/\//i,uA=/~1/g,cA=/~0/g,lA=(es(),Nt(Zo)),ts=Vg(),fA=[[/\?/g,"%3F"],[/#/g,"%23"]],Zc=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],dA=e=>new URL(e);oe.parse=dA;function zg(e,r){var s;let t=new URL((0,ns.default)(e),"resolve://"),n=new URL((0,ns.default)(r),t),i=((s=r.match(/(\s*)$/))==null?void 0:s[1])||"";if(n.protocol==="resolve:"){let{pathname:o,search:a,hash:l}=n;return o+a+l+i}return n.toString()+i}function Hg(){if(typeof window<"u")return location.href;let e=S.cwd(),r=e.slice(-1);return r==="/"||r==="\\"?e:e+"/"}function nl(e){let r=aA.exec(e||"");if(r)return r[1].toLowerCase()}function pA(e){let r=e.lastIndexOf(".");return r>=0?Kg(e.substr(r).toLowerCase()):""}function Kg(e){let r=e.indexOf("?");return r>=0&&(e=e.substr(0,r)),e}function Gg(e){if(!e)return"#";let r=e.indexOf("#");return r>=0?e.substring(r):"#"}function rl(e){if(!e)return"";let r=e.indexOf("#");return r>=0&&(e=e.substring(0,r)),e}function hA(e){let r=nl(e);return r==="http"||r==="https"?!0:r===void 0?typeof window<"u":!1}function tl(e){if(typeof window<"u"||typeof S<"u"&&S.browser)return!1;let r=nl(e);return r===void 0||r==="file"}function mA(e){var r;if((0,ts.isWindows)()){let t=Hg(),n=e.toUpperCase(),s=(0,ns.default)(t).toUpperCase(),o=n.includes(s),a=n.includes(s),l=((r=el.win32)==null?void 0:r.isAbsolute(e))||e.startsWith("http://")||e.startsWith("https://")||e.startsWith("file://");!(o||a||l)&&!t.startsWith("http")&&(e=(0,lA.join)(t,e)),e=(0,ns.default)(e)}e=encodeURI(e);for(let t of fA)e=e.replace(t[0],t[1]);return e}function yA(e,r){e=decodeURI(e);for(let n=0;ndecodeURIComponent(r).replace(uA,"/").replace(cA,"~"))}function vA(e,r){if(!tl(e)||!tl(r))return zg(e,r);let t=el.default.dirname(rl(e)),n=rl(r);return el.default.relative(t,n)+Gg(r)}});var Qe=j(pe=>{"use strict";p();m();h();Object.defineProperty(pe,"__esModule",{value:!0});pe.InvalidPointerError=pe.TimeoutError=pe.MissingPointerError=pe.UnmatchedResolverError=pe.ResolverError=pe.UnmatchedParserError=pe.ParserError=pe.JSONParserErrorGroup=pe.JSONParserError=void 0;pe.isHandledError=$A;pe.normalizeError=_A;var Jg=He(),fl=Xe(),sr=class extends Error{constructor(r,t){super(),this.code="EUNKNOWN",this.name="JSONParserError",this.message=r,this.source=t,this.path=null,Jg.Ono.extend(this)}get footprint(){return`${this.path}+${this.source}+${this.code}+${this.message}`}};pe.JSONParserError=sr;var is=class e extends Error{constructor(r){super(),this.files=r,this.name="JSONParserErrorGroup",this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${(0,fl.toFileSystemPath)(r.$refs._root$Ref.path)}'`,Jg.Ono.extend(this)}static getParserErrors(r){let t=[];for(let n of Object.values(r.$refs._$refs))n.errors&&t.push(...n.errors);return t}get errors(){return e.getParserErrors(this.files)}};pe.JSONParserErrorGroup=is;var il=class extends sr{constructor(r,t){super(`Error parsing ${t}: ${r}`,t),this.code="EPARSER",this.name="ParserError"}};pe.ParserError=il;var ol=class extends sr{constructor(r){super(`Could not find parser for "${r}"`,r),this.code="EUNMATCHEDPARSER",this.name="UnmatchedParserError"}};pe.UnmatchedParserError=ol;var sl=class extends sr{constructor(r,t){super(r.message||`Error reading file "${t}"`,t),this.code="ERESOLVER",this.name="ResolverError","code"in r&&(this.ioErrorCode=String(r.code))}};pe.ResolverError=sl;var al=class extends sr{constructor(r){super(`Could not find resolver for "${r}"`,r),this.code="EUNMATCHEDRESOLVER",this.name="UnmatchedResolverError"}};pe.UnmatchedResolverError=al;var ul=class extends sr{constructor(r,t){super(`Token "${r}" does not exist.`,(0,fl.stripHash)(t)),this.code="EUNMATCHEDRESOLVER",this.name="MissingPointerError"}};pe.MissingPointerError=ul;var cl=class extends sr{constructor(r){super(`Dereferencing timeout reached: ${r}ms`),this.code="ETIMEOUT",this.name="TimeoutError"}};pe.TimeoutError=cl;var ll=class extends sr{constructor(r,t){super(`Invalid $ref pointer "${r}". Pointers must begin with "#/"`,(0,fl.stripHash)(t)),this.code="EUNMATCHEDRESOLVER",this.name="InvalidPointerError"}};pe.InvalidPointerError=ll;function $A(e){return e instanceof sr||e instanceof is}function _A(e){return e.path===null&&(e.path=[]),e}});var $i=j(ar=>{"use strict";p();m();h();var bA=ar&&ar.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,i)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),wA=ar&&ar.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),PA=ar&&ar.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&bA(r,e,t);return wA(r,e),r},xA=ar&&ar.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ar,"__esModule",{value:!0});var dl=xA(yn()),pl=PA(Xe()),ss=Qe(),EA=/\//g,SA=/~/g,jA=/~1/g,OA=/~0/g,AA=e=>{try{return decodeURIComponent(e)}catch(r){return e}},as=class e{constructor(r,t,n){this.$ref=r,this.path=t,this.originalPath=n||t,this.value=void 0,this.circular=!1,this.indirections=0}resolve(r,t,n){let i=e.parse(this.path,this.originalPath);this.value=Yg(r);for(let s=0;ss;l--){let f=i.slice(s,l+1).join("/");if(this.value[f]!==void 0){this.value=this.value[f],s=l,a=!0;break}}if(a)continue;throw this.value=null,new ss.MissingPointerError(o,decodeURI(this.originalPath))}else this.value=this.value[o]}return(!this.value||this.value.$ref&&pl.resolve(this.path,this.value.$ref)!==n)&&os(this,t,n),this}set(r,t,n){let i=e.parse(this.path),s;if(i.length===0)return this.value=t,t;this.value=Yg(r);for(let o=0;o{"use strict";p();m();h();var qA=_i&&_i.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_i,"__esModule",{value:!0});var Qg=qA($i()),us=Qe(),hl=Xe(),ml=class e{constructor(r){this.errors=[],this.$refs=r}addError(r){this.errors===void 0&&(this.errors=[]);let t=this.errors.map(({footprint:n})=>n);"errors"in r&&Array.isArray(r.errors)?this.errors.push(...r.errors.map(us.normalizeError).filter(({footprint:n})=>!t.includes(n))):(!("footprint"in r)||!t.includes(r.footprint))&&this.errors.push((0,us.normalizeError)(r))}exists(r,t){try{return this.resolve(r,t),!0}catch(n){return!1}}get(r,t){var n;return(n=this.resolve(r,t))==null?void 0:n.value}resolve(r,t,n,i){let s=new Qg.default(this,r,n);try{return s.resolve(this.value,t,i)}catch(o){if(!t||!t.continueOnError||!(0,us.isHandledError)(o))throw o;return o.path===null&&(o.path=(0,hl.safePointerToPath)((0,hl.getHash)(i))),o instanceof us.InvalidPointerError&&(o.source=decodeURI((0,hl.stripHash)(i))),this.addError(o),null}}set(r,t){let n=new Qg.default(this,r);this.value=n.set(this.value,t)}static is$Ref(r){return!!r&&typeof r=="object"&&r!==null&&"$ref"in r&&typeof r.$ref=="string"&&r.$ref.length>0}static isExternal$Ref(r){return e.is$Ref(r)&&r.$ref[0]!=="#"}static isAllowed$Ref(r,t){var n;if(this.is$Ref(r)){if(r.$ref.substring(0,2)==="#/"||r.$ref==="#")return!0;if(r.$ref[0]!=="#"&&(!t||(n=t.resolve)!=null&&n.external))return!0}}static isExtended$Ref(r){return e.is$Ref(r)&&Object.keys(r).length>1}static dereference(r,t){if(t&&typeof t=="object"&&e.isExtended$Ref(r)){let n={};for(let i of Object.keys(r))i!=="$ref"&&(n[i]=r[i]);for(let i of Object.keys(t))i in n||(n[i]=t[i]);return n}else return t}};_i.default=ml});var n0=j(ur=>{"use strict";p();m();h();var IA=ur&&ur.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,i)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),kA=ur&&ur.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),TA=ur&&ur.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&IA(r,e,t);return kA(r,e),r},t0=ur&&ur.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ur,"__esModule",{value:!0});var Zg=He(),RA=t0(yn()),nt=TA(Xe()),e0=t0(Qc()),yl=class{paths(...r){return r0(this._$refs,r.flat()).map(n=>(0,e0.default)(n.decoded))}values(...r){let t=this._$refs;return r0(t,r.flat()).reduce((i,s)=>(i[(0,e0.default)(s.decoded)]=t[s.encoded].value,i),{})}exists(r,t){try{return this._resolve(r,"",t),!0}catch(n){return!1}}get(r,t){return this._resolve(r,"",t).value}set(r,t){let n=nt.resolve(this._root$Ref.path,r),i=nt.stripHash(n),s=this._$refs[i];if(!s)throw(0,Zg.ono)(`Error resolving $ref pointer "${r}". -"${i}" not found.`);s.set(n,t)}_get$Ref(r){r=nt.resolve(this._root$Ref.path,r);let t=nt.stripHash(r);return this._$refs[t]}_add(r){let t=nt.stripHash(r),n=new RA.default(this);return n.path=t,this._$refs[t]=n,this._root$Ref=this._root$Ref||n,n}_resolve(r,t,n){let i=nt.resolve(this._root$Ref.path,r),s=nt.stripHash(i),o=this._$refs[s];if(!o)throw(0,Zg.ono)(`Error resolving $ref pointer "${r}". -"${s}" not found.`);return o.resolve(i,n,r,t)}constructor(){this._$refs={},this.toJSON=this.values,this.circular=!1,this._$refs={},this._root$Ref=null}};ur.default=yl;function r0(e,r){let t=Object.keys(e);return r=Array.isArray(r[0])?r[0]:Array.prototype.slice.call(r),r.length>0&&r[0]&&(t=t.filter(n=>r.includes(e[n].pathType))),t.map(n=>({encoded:n,decoded:e[n].pathType==="file"?nt.toFileSystemPath(n,!0):n}))}});var o0=j(gn=>{"use strict";p();m();h();Object.defineProperty(gn,"__esModule",{value:!0});gn.all=CA;gn.filter=NA;gn.sort=MA;gn.run=DA;function CA(e){return Object.keys(e||{}).filter(r=>typeof e[r]=="object").map(r=>(e[r].name=r,e[r]))}function NA(e,r,t){return e.filter(n=>!!i0(n,r,t))}function MA(e){for(let r of e)r.order=r.order||Number.MAX_SAFE_INTEGER;return e.sort((r,t)=>r.order-t.order)}async function DA(e,r,t,n){let i,s,o=0;return new Promise((a,l)=>{f();function f(){if(i=e[o++],!i)return l(s);try{let _=i0(i,r,t,g,n);if(_&&typeof _.then=="function")_.then(y,b);else if(_!==void 0)y(_);else if(o===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(_){b(_)}}function g(_,w){_?b(_):y(w)}function y(_){a({plugin:i,result:_})}function b(_){s={plugin:i,error:_},f()}})}function i0(e,r,t,n,i){let s=e[r];if(typeof s=="function")return s.apply(e,[t,n,i]);if(!n){if(s instanceof RegExp)return s.test(t.url);if(typeof s=="string")return s===t.extension;if(Array.isArray(s))return s.indexOf(t.extension)!==-1}return s}});var vl=j(Br=>{"use strict";p();m();h();var BA=Br&&Br.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,i)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),UA=Br&&Br.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),s0=Br&&Br.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&BA(r,e,t);return UA(r,e),r};Object.defineProperty(Br,"__esModule",{value:!0});var gl=He(),LA=s0(Xe()),it=s0(o0()),It=Qe();async function FA(e,r,t){let n=e.indexOf("#"),i="";n>=0&&(i=e.substring(n),e=e.substring(0,n));let s=r._add(e),o={url:e,hash:i,extension:LA.getExtension(e)};try{let a=await VA(o,t,r);s.pathType=a.plugin.name,o.data=a.result;let l=await zA(o,t,r);return s.value=l.result,l.result}catch(a){throw(0,It.isHandledError)(a)&&(s.value=a),a}}async function VA(e,r,t){let n=it.all(r.resolve);n=it.filter(n,"canRead",e),it.sort(n);try{return await it.run(n,"read",e,t)}catch(i){throw!i&&r.continueOnError?new It.UnmatchedResolverError(e.url):!i||!("error"in i)?gl.ono.syntax(`Unable to resolve $ref pointer "${e.url}"`):i.error instanceof It.ResolverError?i.error:new It.ResolverError(i,e.url)}}async function zA(e,r,t){let n=it.all(r.parse),i=it.filter(n,"canParse",e),s=i.length>0?i:n;it.sort(s);try{let o=await it.run(s,"parse",e,t);if(!o.plugin.allowEmpty&&HA(o.result))throw gl.ono.syntax(`Error parsing "${e.url}" as ${o.plugin.name}. -Parsed value is empty`);return o}catch(o){throw!o&&r.continueOnError?new It.UnmatchedParserError(e.url):o&&o.message&&o.message.startsWith("Error parsing")?o:!o||!("error"in o)?gl.ono.syntax(`Unable to parse ${e.url}`):o.error instanceof It.ParserError?o.error:new It.ParserError(o.error.message,e.url)}}function HA(e){return e===void 0||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0||E.isBuffer(e)&&e.length===0}Br.default=FA});var u0=j($l=>{"use strict";p();m();h();Object.defineProperty($l,"__esModule",{value:!0});var a0=Qe();$l.default={order:100,allowEmpty:!0,canParse:".json",allowBOM:!0,async parse(e){let r=e.data;if(E.isBuffer(r)&&(r=r.toString()),typeof r=="string"){if(r.trim().length===0)return;try{return JSON.parse(r)}catch(t){if(this.allowBOM)try{let n=r.indexOf("{");return r=r.slice(n),JSON.parse(r)}catch(n){throw new a0.ParserError(n.message,e.url)}throw new a0.ParserError(t.message,e.url)}}else return r}}});var c0=j(bi=>{"use strict";p();m();h();var KA=bi&&bi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bi,"__esModule",{value:!0});var GA=Qe(),JA=KA(Hi()),WA=Hi();bi.default={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(e){let r=e.data;if(E.isBuffer(r)&&(r=r.toString()),typeof r=="string")try{return JA.default.load(r,{schema:WA.JSON_SCHEMA})}catch(t){throw new GA.ParserError((t==null?void 0:t.message)||"Parser Error",e.url)}else return r}}});var l0=j(_l=>{"use strict";p();m();h();Object.defineProperty(_l,"__esModule",{value:!0});var YA=Qe(),XA=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;_l.default={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||E.isBuffer(e.data))&&XA.test(e.url)},parse(e){if(typeof e.data=="string")return e.data;if(E.isBuffer(e.data))return e.data.toString(this.encoding);throw new YA.ParserError("data is not text",e.url)}}});var f0=j(bl=>{"use strict";p();m();h();Object.defineProperty(bl,"__esModule",{value:!0});var QA=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;bl.default={order:400,allowEmpty:!0,canParse(e){return E.isBuffer(e.data)&&QA.test(e.url)},parse(e){return E.isBuffer(e.data)?e.data:E.from(e.data)}}});var d0={};ki(d0,{default:()=>ZA});var ZA,p0=Fe(()=>{p();m();h();ZA={}});var g0=j(cr=>{"use strict";p();m();h();var eq=cr&&cr.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,i)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),rq=cr&&cr.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),tq=cr&&cr.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&eq(r,e,t);return rq(r,e),r},nq=cr&&cr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cr,"__esModule",{value:!0});var iq=nq((p0(),Nt(d0))),h0=He(),m0=tq(Xe()),y0=Qe();cr.default={order:100,canRead(e){return m0.isFileSystemPath(e.url)},async read(e){let r;try{r=m0.toFileSystemPath(e.url)}catch(t){throw new y0.ResolverError(h0.ono.uri(t,`Malformed URI: ${e.url}`),e.url)}try{return await iq.default.promises.readFile(r)}catch(t){throw new y0.ResolverError((0,h0.ono)(t,`Error opening file "${r}"`),r)}}}});var _0=j(Ur=>{"use strict";p();m();h();var oq=Ur&&Ur.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,i)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),sq=Ur&&Ur.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),aq=Ur&&Ur.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&oq(r,e,t);return sq(r,e),r};Object.defineProperty(Ur,"__esModule",{value:!0});var cs=He(),wi=aq(Xe()),v0=Qe();Ur.default={order:200,headers:null,timeout:6e4,redirects:5,withCredentials:!1,canRead(e){return wi.isHttp(e.url)},read(e){let r=wi.parse(e.url);return typeof window<"u"&&!r.protocol&&(r.protocol=wi.parse(location.href).protocol),$0(r,this)}};async function $0(e,r,t){e=wi.parse(e);let n=t||[];n.push(e.href);try{let i=await uq(e,r);if(i.status>=400)throw(0,cs.ono)({status:i.status},`HTTP ERROR ${i.status}`);if(i.status>=300){if(!Number.isNaN(r.redirects)&&n.length>r.redirects)throw new v0.ResolverError((0,cs.ono)({status:i.status},`Error downloading ${n[0]}. + deps: ${t}}`};var NE={keyword:"dependencies",type:"object",schemaType:"object",error:xr.error,code(e){let[r,t]=ME(e);$y(e,r),_y(e,t)}};function ME({schema:e}){let r={},t={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?r:t;i[n]=e[n]}return[r,t]}function $y(e,r=e.schema){let{gen:t,data:n,it:i}=e;if(Object.keys(r).length===0)return;let s=t.let("missing");for(let o in r){let a=r[o];if(a.length===0)continue;let l=(0,mi.propertyInData)(t,n,o,i.opts.ownProperties);e.setParams({property:o,depsCount:a.length,deps:a.join(", ")}),i.allErrors?t.if(l,()=>{for(let f of a)(0,mi.checkReportMissingProp)(e,f)}):(t.if((0,Zu._)`${l} && (${(0,mi.checkMissingProp)(e,a,s)})`),(0,mi.reportMissingProp)(e,s),t.else())}}xr.validatePropertyDeps=$y;function _y(e,r=e.schema){let{gen:t,data:n,keyword:i,it:s}=e,o=t.name("valid");for(let a in r)(0,CE.alwaysValidSchema)(s,r[a])||(t.if((0,mi.propertyInData)(t,n,a,s.opts.ownProperties),()=>{let l=e.subschema({keyword:i,schemaProp:a},o);e.mergeValidEvaluated(l,o)},()=>t.var(o,!0)),e.ok(o))}xr.validateSchemaDeps=_y;xr.default=NE});var wy=j(ec=>{"use strict";p();m();h();Object.defineProperty(ec,"__esModule",{value:!0});var by=V(),DE=Y(),BE={message:"property name must be valid",params:({params:e})=>(0,by._)`{propertyName: ${e.propertyName}}`},UE={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:BE,code(e){let{gen:r,schema:t,data:n,it:i}=e;if((0,DE.alwaysValidSchema)(i,t))return;let s=r.name("valid");r.forIn("key",n,o=>{e.setParams({propertyName:o}),e.subschema({keyword:"propertyNames",data:o,dataTypes:["string"],propertyName:o,compositeRule:!0},s),r.if((0,by.not)(s),()=>{e.error(!0),i.allErrors||r.break()})}),e.ok(s)}};ec.default=UE});var tc=j(rc=>{"use strict";p();m();h();Object.defineProperty(rc,"__esModule",{value:!0});var Vo=Je(),or=V(),LE=Ge(),zo=Y(),FE={message:"must NOT have additional properties",params:({params:e})=>(0,or._)`{additionalProperty: ${e.additionalProperty}}`},VE={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:FE,code(e){let{gen:r,schema:t,parentSchema:n,data:i,errsCount:s,it:o}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:a,opts:l}=o;if(o.props=!0,l.removeAdditional!=="all"&&(0,zo.alwaysValidSchema)(o,t))return;let f=(0,Vo.allSchemaProperties)(n.properties),g=(0,Vo.allSchemaProperties)(n.patternProperties);y(),e.ok((0,or._)`${s} === ${LE.default.errors}`);function y(){r.forIn("key",i,O=>{!f.length&&!g.length?w(O):r.if(b(O),()=>w(O))})}function b(O){let I;if(f.length>8){let R=(0,zo.schemaRefOrVal)(o,n.properties,"properties");I=(0,Vo.isOwnProperty)(r,R,O)}else f.length?I=(0,or.or)(...f.map(R=>(0,or._)`${O} === ${R}`)):I=or.nil;return g.length&&(I=(0,or.or)(I,...g.map(R=>(0,or._)`${(0,Vo.usePattern)(e,R)}.test(${O})`))),(0,or.not)(I)}function _(O){r.code((0,or._)`delete ${i}[${O}]`)}function w(O){if(l.removeAdditional==="all"||l.removeAdditional&&t===!1){_(O);return}if(t===!1){e.setParams({additionalProperty:O}),e.error(),a||r.break();return}if(typeof t=="object"&&!(0,zo.alwaysValidSchema)(o,t)){let I=r.name("valid");l.removeAdditional==="failing"?(P(O,I,!1),r.if((0,or.not)(I),()=>{e.reset(),_(O)})):(P(O,I),a||r.if((0,or.not)(I),()=>r.break()))}}function P(O,I,R){let C={keyword:"additionalProperties",dataProp:O,dataPropType:zo.Type.Str};R===!1&&Object.assign(C,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(C,I)}}};rc.default=VE});var Ey=j(ic=>{"use strict";p();m();h();Object.defineProperty(ic,"__esModule",{value:!0});var zE=Zn(),Py=Je(),nc=Y(),xy=tc(),HE={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:r,schema:t,parentSchema:n,data:i,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&xy.default.code(new zE.KeywordCxt(s,xy.default,"additionalProperties"));let o=(0,Py.allSchemaProperties)(t);for(let y of o)s.definedProperties.add(y);s.opts.unevaluated&&o.length&&s.props!==!0&&(s.props=nc.mergeEvaluated.props(r,(0,nc.toHash)(o),s.props));let a=o.filter(y=>!(0,nc.alwaysValidSchema)(s,t[y]));if(a.length===0)return;let l=r.name("valid");for(let y of a)f(y)?g(y):(r.if((0,Py.propertyInData)(r,i,y,s.opts.ownProperties)),g(y),s.allErrors||r.else().var(l,!0),r.endIf()),e.it.definedProperties.add(y),e.ok(l);function f(y){return s.opts.useDefaults&&!s.compositeRule&&t[y].default!==void 0}function g(y){e.subschema({keyword:"properties",schemaProp:y,dataProp:y},l)}}};ic.default=HE});var Ay=j(oc=>{"use strict";p();m();h();Object.defineProperty(oc,"__esModule",{value:!0});var Sy=Je(),Ho=V(),jy=Y(),Oy=Y(),KE={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:r,schema:t,data:n,parentSchema:i,it:s}=e,{opts:o}=s,a=(0,Sy.allSchemaProperties)(t),l=a.filter(P=>(0,jy.alwaysValidSchema)(s,t[P]));if(a.length===0||l.length===a.length&&(!s.opts.unevaluated||s.props===!0))return;let f=o.strictSchema&&!o.allowMatchingProperties&&i.properties,g=r.name("valid");s.props!==!0&&!(s.props instanceof Ho.Name)&&(s.props=(0,Oy.evaluatedPropsToName)(r,s.props));let{props:y}=s;b();function b(){for(let P of a)f&&_(P),s.allErrors?w(P):(r.var(g,!0),w(P),r.if(g))}function _(P){for(let O in f)new RegExp(P).test(O)&&(0,jy.checkStrictMode)(s,`property ${O} matches pattern ${P} (use allowMatchingProperties)`)}function w(P){r.forIn("key",n,O=>{r.if((0,Ho._)`${(0,Sy.usePattern)(e,P)}.test(${O})`,()=>{let I=l.includes(P);I||e.subschema({keyword:"patternProperties",schemaProp:P,dataProp:O,dataPropType:Oy.Type.Str},g),s.opts.unevaluated&&y!==!0?r.assign((0,Ho._)`${y}[${O}]`,!0):!I&&!s.allErrors&&r.if((0,Ho.not)(g),()=>r.break())})})}}};oc.default=KE});var qy=j(sc=>{"use strict";p();m();h();Object.defineProperty(sc,"__esModule",{value:!0});var GE=Y(),JE={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:r,schema:t,it:n}=e;if((0,GE.alwaysValidSchema)(n,t)){e.fail();return}let i=r.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"}};sc.default=JE});var Iy=j(ac=>{"use strict";p();m();h();Object.defineProperty(ac,"__esModule",{value:!0});var WE=Je(),YE={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:WE.validateUnion,error:{message:"must match a schema in anyOf"}};ac.default=YE});var ky=j(uc=>{"use strict";p();m();h();Object.defineProperty(uc,"__esModule",{value:!0});var Ko=V(),XE=Y(),QE={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Ko._)`{passingSchemas: ${e.passing}}`},ZE={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:QE,code(e){let{gen:r,schema:t,parentSchema:n,it:i}=e;if(!Array.isArray(t))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let s=t,o=r.let("valid",!1),a=r.let("passing",null),l=r.name("_valid");e.setParams({passing:a}),r.block(f),e.result(o,()=>e.reset(),()=>e.error(!0));function f(){s.forEach((g,y)=>{let b;(0,XE.alwaysValidSchema)(i,g)?r.var(l,!0):b=e.subschema({keyword:"oneOf",schemaProp:y,compositeRule:!0},l),y>0&&r.if((0,Ko._)`${l} && ${o}`).assign(o,!1).assign(a,(0,Ko._)`[${a}, ${y}]`).else(),r.if(l,()=>{r.assign(o,!0),r.assign(a,y),b&&e.mergeEvaluated(b,Ko.Name)})})}}};uc.default=ZE});var Ty=j(cc=>{"use strict";p();m();h();Object.defineProperty(cc,"__esModule",{value:!0});var eS=Y(),rS={keyword:"allOf",schemaType:"array",code(e){let{gen:r,schema:t,it:n}=e;if(!Array.isArray(t))throw new Error("ajv implementation error");let i=r.name("valid");t.forEach((s,o)=>{if((0,eS.alwaysValidSchema)(n,s))return;let a=e.subschema({keyword:"allOf",schemaProp:o},i);e.ok(i),e.mergeEvaluated(a)})}};cc.default=rS});var Ny=j(lc=>{"use strict";p();m();h();Object.defineProperty(lc,"__esModule",{value:!0});var Go=V(),Cy=Y(),tS={message:({params:e})=>(0,Go.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Go._)`{failingKeyword: ${e.ifClause}}`},nS={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:tS,code(e){let{gen:r,parentSchema:t,it:n}=e;t.then===void 0&&t.else===void 0&&(0,Cy.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=Ry(n,"then"),s=Ry(n,"else");if(!i&&!s)return;let o=r.let("valid",!0),a=r.name("_valid");if(l(),e.reset(),i&&s){let g=r.let("ifClause");e.setParams({ifClause:g}),r.if(a,f("then",g),f("else",g))}else i?r.if(a,f("then")):r.if((0,Go.not)(a),f("else"));e.pass(o,()=>e.error(!0));function l(){let g=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(g)}function f(g,y){return()=>{let b=e.subschema({keyword:g},a);r.assign(o,a),e.mergeValidEvaluated(b,o),y?r.assign(y,(0,Go._)`${g}`):e.setParams({ifClause:g})}}}};function Ry(e,r){let t=e.schema[r];return t!==void 0&&!(0,Cy.alwaysValidSchema)(e,t)}lc.default=nS});var My=j(fc=>{"use strict";p();m();h();Object.defineProperty(fc,"__esModule",{value:!0});var iS=Y(),oS={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:r,it:t}){r.if===void 0&&(0,iS.checkStrictMode)(t,`"${e}" without "if" is ignored`)}};fc.default=oS});var pc=j(dc=>{"use strict";p();m();h();Object.defineProperty(dc,"__esModule",{value:!0});var sS=Ju(),aS=my(),uS=Wu(),cS=gy(),lS=vy(),fS=Fo(),dS=wy(),pS=tc(),hS=Ey(),mS=Ay(),yS=qy(),gS=Iy(),vS=ky(),$S=Ty(),_S=Ny(),bS=My();function wS(e=!1){let r=[yS.default,gS.default,vS.default,$S.default,_S.default,bS.default,dS.default,pS.default,fS.default,hS.default,mS.default];return e?r.push(aS.default,cS.default):r.push(sS.default,uS.default),r.push(lS.default),r}dc.default=wS});var Dy=j(hc=>{"use strict";p();m();h();Object.defineProperty(hc,"__esModule",{value:!0});var me=V(),PS={message:({schemaCode:e})=>(0,me.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,me._)`{format: ${e}}`},xS={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:PS,code(e,r){let{gen:t,data:n,$data:i,schema:s,schemaCode:o,it:a}=e,{opts:l,errSchemaPath:f,schemaEnv:g,self:y}=a;if(!l.validateFormats)return;i?b():_();function b(){let w=t.scopeValue("formats",{ref:y.formats,code:l.code.formats}),P=t.const("fDef",(0,me._)`${w}[${o}]`),O=t.let("fType"),I=t.let("format");t.if((0,me._)`typeof ${P} == "object" && !(${P} instanceof RegExp)`,()=>t.assign(O,(0,me._)`${P}.type || "string"`).assign(I,(0,me._)`${P}.validate`),()=>t.assign(O,(0,me._)`"string"`).assign(I,P)),e.fail$data((0,me.or)(R(),C()));function R(){return l.strictSchema===!1?me.nil:(0,me._)`${o} && !${I}`}function C(){let U=g.$async?(0,me._)`(${P}.async ? await ${I}(${n}) : ${I}(${n}))`:(0,me._)`${I}(${n})`,N=(0,me._)`(typeof ${I} == "function" ? ${U} : ${I}.test(${n}))`;return(0,me._)`${I} && ${I} !== true && ${O} === ${r} && !${N}`}}function _(){let w=y.formats[s];if(!w){R();return}if(w===!0)return;let[P,O,I]=C(w);P===r&&e.pass(U());function R(){if(l.strictSchema===!1){y.logger.warn(N());return}throw new Error(N());function N(){return`unknown format "${s}" ignored in schema at path "${f}"`}}function C(N){let ve=N instanceof RegExp?(0,me.regexpCode)(N):l.code.formats?(0,me._)`${l.code.formats}${(0,me.getProperty)(s)}`:void 0,er=t.scopeValue("formats",{key:s,ref:N,code:ve});return typeof N=="object"&&!(N instanceof RegExp)?[N.type||"string",N.validate,(0,me._)`${er}.validate`]:["string",N,er]}function U(){if(typeof w=="object"&&!(w instanceof RegExp)&&w.async){if(!g.$async)throw new Error("async format in sync schema");return(0,me._)`await ${I}(${n})`}return typeof O=="function"?(0,me._)`${I}(${n})`:(0,me._)`${I}.test(${n})`}}}};hc.default=xS});var yc=j(mc=>{"use strict";p();m();h();Object.defineProperty(mc,"__esModule",{value:!0});var ES=Dy(),SS=[ES.default];mc.default=SS});var By=j(gc=>{"use strict";p();m();h();Object.defineProperty(gc,"__esModule",{value:!0});var jS=iy(),OS=fy(),AS=pc(),qS=yc(),IS=["title","description","default"],kS=[jS.default,OS.default,AS.default(),qS.default,IS];gc.default=kS});var Ly=j(Jo=>{"use strict";p();m();h();Object.defineProperty(Jo,"__esModule",{value:!0});Jo.DiscrError=void 0;var Uy;(function(e){e.Tag="tag",e.Mapping="mapping"})(Uy||(Jo.DiscrError=Uy={}))});var _c=j($c=>{"use strict";p();m();h();Object.defineProperty($c,"__esModule",{value:!0});var cn=V(),vc=Ly(),Fy=ri(),TS=ei(),RS=Y(),CS={message:({params:{discrError:e,tagName:r}})=>e===vc.DiscrError.Tag?`tag "${r}" must be string`:`value of tag "${r}" must be in oneOf`,params:({params:{discrError:e,tag:r,tagName:t}})=>(0,cn._)`{error: ${e}, tag: ${t}, tagValue: ${r}}`},NS={keyword:"discriminator",type:"object",schemaType:"object",error:CS,code(e){let{gen:r,data:t,schema:n,parentSchema:i,it:s}=e,{oneOf:o}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!o)throw new Error("discriminator: requires oneOf keyword");let l=r.let("valid",!1),f=r.const("tag",(0,cn._)`${t}${(0,cn.getProperty)(a)}`);r.if((0,cn._)`typeof ${f} == "string"`,()=>g(),()=>e.error(!1,{discrError:vc.DiscrError.Tag,tag:f,tagName:a})),e.ok(l);function g(){let _=b();r.if(!1);for(let w in _)r.elseIf((0,cn._)`${f} === ${w}`),r.assign(l,y(_[w]));r.else(),e.error(!1,{discrError:vc.DiscrError.Mapping,tag:f,tagName:a}),r.endIf()}function y(_){let w=r.name("valid"),P=e.subschema({keyword:"oneOf",schemaProp:_},w);return e.mergeEvaluated(P,cn.Name),w}function b(){var _;let w={},P=I(i),O=!0;for(let U=0;U{MS.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 Ky=j((ge,Hy)=>{"use strict";p();m();h();Object.defineProperty(ge,"__esModule",{value:!0});ge.CodeGen=ge.Name=ge.nil=ge.stringify=ge.str=ge._=ge.KeywordCxt=void 0;var DS=an(),BS=By(),US=_c(),zy=Vy(),LS=["/properties"],Wo="http://json-schema.org/draft-04/schema",Yo=class extends DS.default{constructor(r={}){super({...r,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),BS.default.forEach(r=>this.addVocabulary(r)),this.opts.discriminator&&this.addKeyword(US.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let r=this.opts.$data?this.$dataMetaSchema(zy,LS):zy;this.addMetaSchema(r,Wo,!1),this.refs["http://json-schema.org/schema"]=Wo}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Wo)?Wo:void 0)}};Hy.exports=ge=Yo;Object.defineProperty(ge,"__esModule",{value:!0});ge.default=Yo;var FS=an();Object.defineProperty(ge,"KeywordCxt",{enumerable:!0,get:function(){return FS.KeywordCxt}});var ln=an();Object.defineProperty(ge,"_",{enumerable:!0,get:function(){return ln._}});Object.defineProperty(ge,"str",{enumerable:!0,get:function(){return ln.str}});Object.defineProperty(ge,"stringify",{enumerable:!0,get:function(){return ln.stringify}});Object.defineProperty(ge,"nil",{enumerable:!0,get:function(){return ln.nil}});Object.defineProperty(ge,"Name",{enumerable:!0,get:function(){return ln.Name}});Object.defineProperty(ge,"CodeGen",{enumerable:!0,get:function(){return ln.CodeGen}})});var Gy=j(bc=>{"use strict";p();m();h();Object.defineProperty(bc,"__esModule",{value:!0});var VS={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};bc.default=VS});var Jy=j(wc=>{"use strict";p();m();h();Object.defineProperty(wc,"__esModule",{value:!0});var zS=Gy(),HS=si(),KS=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",zS.default,HS.default];wc.default=KS});var Wy=j(Pc=>{"use strict";p();m();h();Object.defineProperty(Pc,"__esModule",{value:!0});var Xo=V(),rt=Xo.operators,Qo={maximum:{okStr:"<=",ok:rt.LTE,fail:rt.GT},minimum:{okStr:">=",ok:rt.GTE,fail:rt.LT},exclusiveMaximum:{okStr:"<",ok:rt.LT,fail:rt.GTE},exclusiveMinimum:{okStr:">",ok:rt.GT,fail:rt.LTE}},GS={message:({keyword:e,schemaCode:r})=>(0,Xo.str)`must be ${Qo[e].okStr} ${r}`,params:({keyword:e,schemaCode:r})=>(0,Xo._)`{comparison: ${Qo[e].okStr}, limit: ${r}}`},JS={keyword:Object.keys(Qo),type:"number",schemaType:"number",$data:!0,error:GS,code(e){let{keyword:r,data:t,schemaCode:n}=e;e.fail$data((0,Xo._)`${t} ${Qo[r].fail} ${n} || isNaN(${t})`)}};Pc.default=JS});var Yy=j(xc=>{"use strict";p();m();h();Object.defineProperty(xc,"__esModule",{value:!0});var WS=Wy(),YS=Eu(),XS=Ou(),QS=qu(),ZS=ku(),ej=Ru(),rj=Nu(),tj=Uu(),nj=Vu(),ij=Hu(),oj=[WS.default,YS.default,XS.default,QS.default,ZS.default,ej.default,rj.default,tj.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},nj.default,ij.default];xc.default=oj});var Sc=j(yi=>{"use strict";p();m();h();Object.defineProperty(yi,"__esModule",{value:!0});yi.dynamicAnchor=void 0;var Ec=V(),sj=Ge(),Xy=ri(),aj=si(),uj={keyword:"$dynamicAnchor",schemaType:"string",code:e=>Qy(e,e.schema)};function Qy(e,r){let{gen:t,it:n}=e;n.schemaEnv.root.dynamicAnchors[r]=!0;let i=(0,Ec._)`${sj.default.dynamicAnchors}${(0,Ec.getProperty)(r)}`,s=n.errSchemaPath==="#"?n.validateName:cj(e);t.if((0,Ec._)`!${i}`,()=>t.assign(i,s))}yi.dynamicAnchor=Qy;function cj(e){let{schemaEnv:r,schema:t,self:n}=e.it,{root:i,baseId:s,localRefs:o,meta:a}=r.root,{schemaId:l}=n.opts,f=new Xy.SchemaEnv({schema:t,schemaId:l,root:i,baseId:s,localRefs:o,meta:a});return Xy.compileSchema.call(n,f),(0,aj.getValidate)(e,f)}yi.default=uj});var jc=j(gi=>{"use strict";p();m();h();Object.defineProperty(gi,"__esModule",{value:!0});gi.dynamicRef=void 0;var Zy=V(),lj=Ge(),eg=si(),fj={keyword:"$dynamicRef",schemaType:"string",code:e=>rg(e,e.schema)};function rg(e,r){let{gen:t,keyword:n,it:i}=e;if(r[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let s=r.slice(1);if(i.allErrors)o();else{let l=t.let("valid",!1);o(l),e.ok(l)}function o(l){if(i.schemaEnv.root.dynamicAnchors[s]){let f=t.let("_v",(0,Zy._)`${lj.default.dynamicAnchors}${(0,Zy.getProperty)(s)}`);t.if(f,a(f,l),a(i.validateName,l))}else a(i.validateName,l)()}function a(l,f){return f?()=>t.block(()=>{(0,eg.callRef)(e,l),t.let(f,!0)}):()=>(0,eg.callRef)(e,l)}}gi.dynamicRef=rg;gi.default=fj});var tg=j(Oc=>{"use strict";p();m();h();Object.defineProperty(Oc,"__esModule",{value:!0});var dj=Sc(),pj=Y(),hj={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,dj.dynamicAnchor)(e,""):(0,pj.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Oc.default=hj});var ng=j(Ac=>{"use strict";p();m();h();Object.defineProperty(Ac,"__esModule",{value:!0});var mj=jc(),yj={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,mj.dynamicRef)(e,e.schema)};Ac.default=yj});var ig=j(qc=>{"use strict";p();m();h();Object.defineProperty(qc,"__esModule",{value:!0});var gj=Sc(),vj=jc(),$j=tg(),_j=ng(),bj=[gj.default,vj.default,$j.default,_j.default];qc.default=bj});var sg=j(Ic=>{"use strict";p();m();h();Object.defineProperty(Ic,"__esModule",{value:!0});var og=Fo(),wj={keyword:"dependentRequired",type:"object",schemaType:"object",error:og.error,code:e=>(0,og.validatePropertyDeps)(e)};Ic.default=wj});var ag=j(kc=>{"use strict";p();m();h();Object.defineProperty(kc,"__esModule",{value:!0});var Pj=Fo(),xj={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,Pj.validateSchemaDeps)(e)};kc.default=xj});var ug=j(Tc=>{"use strict";p();m();h();Object.defineProperty(Tc,"__esModule",{value:!0});var Ej=Y(),Sj={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:r,it:t}){r.contains===void 0&&(0,Ej.checkStrictMode)(t,`"${e}" without "contains" is ignored`)}};Tc.default=Sj});var cg=j(Rc=>{"use strict";p();m();h();Object.defineProperty(Rc,"__esModule",{value:!0});var jj=sg(),Oj=ag(),Aj=ug(),qj=[jj.default,Oj.default,Aj.default];Rc.default=qj});var fg=j(Cc=>{"use strict";p();m();h();Object.defineProperty(Cc,"__esModule",{value:!0});var tt=V(),lg=Y(),Ij=Ge(),kj={message:"must NOT have unevaluated properties",params:({params:e})=>(0,tt._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},Tj={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:kj,code(e){let{gen:r,schema:t,data:n,errsCount:i,it:s}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:o,props:a}=s;a instanceof tt.Name?r.if((0,tt._)`${a} !== true`,()=>r.forIn("key",n,y=>r.if(f(a,y),()=>l(y)))):a!==!0&&r.forIn("key",n,y=>a===void 0?l(y):r.if(g(a,y),()=>l(y))),s.props=!0,e.ok((0,tt._)`${i} === ${Ij.default.errors}`);function l(y){if(t===!1){e.setParams({unevaluatedProperty:y}),e.error(),o||r.break();return}if(!(0,lg.alwaysValidSchema)(s,t)){let b=r.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:y,dataPropType:lg.Type.Str},b),o||r.if((0,tt.not)(b),()=>r.break())}}function f(y,b){return(0,tt._)`!${y} || !${y}[${b}]`}function g(y,b){let _=[];for(let w in y)y[w]===!0&&_.push((0,tt._)`${b} !== ${w}`);return(0,tt.and)(..._)}}};Cc.default=Tj});var pg=j(Nc=>{"use strict";p();m();h();Object.defineProperty(Nc,"__esModule",{value:!0});var qt=V(),dg=Y(),Rj={message:({params:{len:e}})=>(0,qt.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,qt._)`{limit: ${e}}`},Cj={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:Rj,code(e){let{gen:r,schema:t,data:n,it:i}=e,s=i.items||0;if(s===!0)return;let o=r.const("len",(0,qt._)`${n}.length`);if(t===!1)e.setParams({len:s}),e.fail((0,qt._)`${o} > ${s}`);else if(typeof t=="object"&&!(0,dg.alwaysValidSchema)(i,t)){let l=r.var("valid",(0,qt._)`${o} <= ${s}`);r.if((0,qt.not)(l),()=>a(l,s)),e.ok(l)}i.items=!0;function a(l,f){r.forRange("i",f,o,g=>{e.subschema({keyword:"unevaluatedItems",dataProp:g,dataPropType:dg.Type.Num},l),i.allErrors||r.if((0,qt.not)(l),()=>r.break())})}}};Nc.default=Cj});var hg=j(Mc=>{"use strict";p();m();h();Object.defineProperty(Mc,"__esModule",{value:!0});var Nj=fg(),Mj=pg(),Dj=[Nj.default,Mj.default];Mc.default=Dj});var mg=j(fn=>{"use strict";p();m();h();Object.defineProperty(fn,"__esModule",{value:!0});fn.contentVocabulary=fn.metadataVocabulary=void 0;fn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];fn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var gg=j(Dc=>{"use strict";p();m();h();Object.defineProperty(Dc,"__esModule",{value:!0});var Bj=Jy(),Uj=Yy(),Lj=pc(),Fj=ig(),Vj=cg(),zj=hg(),Hj=yc(),yg=mg(),Kj=[Fj.default,Bj.default,Uj.default,(0,Lj.default)(!0),Hj.default,yg.metadataVocabulary,yg.contentVocabulary,Vj.default,zj.default];Dc.default=Kj});var vg=j((VU,Gj)=>{Gj.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var $g=j((zU,Jj)=>{Jj.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 _g=j((HU,Wj)=>{Wj.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 bg=j((KU,Yj)=>{Yj.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var wg=j((GU,Xj)=>{Xj.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 Pg=j((JU,Qj)=>{Qj.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 xg=j((WU,Zj)=>{Zj.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 Eg=j((YU,eO)=>{eO.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 Sg=j(Bc=>{"use strict";p();m();h();Object.defineProperty(Bc,"__esModule",{value:!0});var rO=vg(),tO=$g(),nO=_g(),iO=bg(),oO=wg(),sO=Pg(),aO=xg(),uO=Eg(),cO=["/properties"];function lO(e){return[rO,tO,nO,iO,oO,r(this,sO),aO,r(this,uO)].forEach(t=>this.addMetaSchema(t,void 0,!1)),this;function r(t,n){return e?t.$dataMetaSchema(n,cO):n}}Bc.default=lO});var jg=j((ie,Lc)=>{"use strict";p();m();h();Object.defineProperty(ie,"__esModule",{value:!0});ie.MissingRefError=ie.ValidationError=ie.CodeGen=ie.Name=ie.nil=ie.stringify=ie.str=ie._=ie.KeywordCxt=ie.Ajv2020=void 0;var fO=an(),dO=gg(),pO=_c(),hO=Sg(),Uc="https://json-schema.org/draft/2020-12/schema",dn=class extends fO.default{constructor(r={}){super({...r,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),dO.default.forEach(r=>this.addVocabulary(r)),this.opts.discriminator&&this.addKeyword(pO.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:r,meta:t}=this.opts;t&&(hO.default.call(this,r),this.refs["http://json-schema.org/schema"]=Uc)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Uc)?Uc:void 0)}};ie.Ajv2020=dn;Lc.exports=ie=dn;Lc.exports.Ajv2020=dn;Object.defineProperty(ie,"__esModule",{value:!0});ie.default=dn;var mO=Zn();Object.defineProperty(ie,"KeywordCxt",{enumerable:!0,get:function(){return mO.KeywordCxt}});var pn=V();Object.defineProperty(ie,"_",{enumerable:!0,get:function(){return pn._}});Object.defineProperty(ie,"str",{enumerable:!0,get:function(){return pn.str}});Object.defineProperty(ie,"stringify",{enumerable:!0,get:function(){return pn.stringify}});Object.defineProperty(ie,"nil",{enumerable:!0,get:function(){return pn.nil}});Object.defineProperty(ie,"Name",{enumerable:!0,get:function(){return pn.Name}});Object.defineProperty(ie,"CodeGen",{enumerable:!0,get:function(){return pn.CodeGen}});var yO=qo();Object.defineProperty(ie,"ValidationError",{enumerable:!0,get:function(){return yO.default}});var gO=ei();Object.defineProperty(ie,"MissingRefError",{enumerable:!0,get:function(){return gO.default}})});var Og=j((iL,vO)=>{vO.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 Ag=j((oL,$O)=>{$O.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 qg=j((sL,_O)=>{_O.exports={id:"https://spec.openapis.org/oas/3.0/schema/2019-04-02",$schema:"http://json-schema.org/draft-04/schema#",description:"Validation schema for OpenAPI Specification 3.0.X.",type:"object",required:["openapi","info","paths"],properties:{openapi:{type:"string",pattern:"^3\\.0\\.\\d(-.+)?$"},info:{$ref:"#/definitions/Info"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},tags:{type:"array",items:{$ref:"#/definitions/Tag"},uniqueItems:!0},paths:{$ref:"#/definitions/Paths"},components:{$ref:"#/definitions/Components"}},patternProperties:{"^x-":{}},additionalProperties:!1,definitions:{Reference:{type:"object",required:["$ref"],patternProperties:{"^\\$ref$":{type:"string",format:"uri-reference"}}},Info:{type:"object",required:["title","version"],properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri-reference"},contact:{$ref:"#/definitions/Contact"},license:{$ref:"#/definitions/License"},version:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},Contact:{type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"},email:{type:"string",format:"email"}},patternProperties:{"^x-":{}},additionalProperties:!1},License:{type:"object",required:["name"],properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},Server:{type:"object",required:["url"],properties:{url:{type:"string"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/definitions/ServerVariable"}}},patternProperties:{"^x-":{}},additionalProperties:!1},ServerVariable:{type:"object",required:["default"],properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},Components:{type:"object",properties:{schemas:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}}},responses:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Response"}]}}},parameters:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Parameter"}]}}},examples:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Example"}]}}},requestBodies:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/RequestBody"}]}}},headers:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Header"}]}}},securitySchemes:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/SecurityScheme"}]}}},links:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Link"}]}}},callbacks:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Callback"}]}}}},patternProperties:{"^x-":{}},additionalProperties:!1},Schema:{type:"object",properties:{title:{type:"string"},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0,default:0},pattern:{type:"string",format:"regex"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0,default:0},uniqueItems:{type:"boolean",default:!1},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0,default:0},required:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},enum:{type:"array",items:{},minItems:1,uniqueItems:!1},type:{type:"string",enum:["array","boolean","integer","number","object","string"]},not:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},allOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},oneOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},anyOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},properties:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"},{type:"boolean"}],default:!0},description:{type:"string"},format:{type:"string"},default:{},nullable:{type:"boolean",default:!1},discriminator:{$ref:"#/definitions/Discriminator"},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},example:{},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},deprecated:{type:"boolean",default:!1},xml:{$ref:"#/definitions/XML"}},patternProperties:{"^x-":{}},additionalProperties:!1},Discriminator:{type:"object",required:["propertyName"],properties:{propertyName:{type:"string"},mapping:{type:"object",additionalProperties:{type:"string"}}}},XML:{type:"object",properties:{name:{type:"string"},namespace:{type:"string",format:"uri"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1},Response:{type:"object",required:["description"],properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Header"},{$ref:"#/definitions/Reference"}]}},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}},links:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Link"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1},MediaType:{type:"object",properties:{schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}},encoding:{type:"object",additionalProperties:{$ref:"#/definitions/Encoding"}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"}]},Example:{type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:{},externalValue:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},Header:{type:"object",properties:{description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string",enum:["simple"],default:"simple"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"}]},Paths:{type:"object",patternProperties:{"^\\/":{$ref:"#/definitions/PathItem"},"^x-":{}},additionalProperties:!1},PathItem:{type:"object",properties:{$ref:{type:"string"},summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},parameters:{type:"array",items:{oneOf:[{$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},uniqueItems:!0}},patternProperties:{"^(get|put|post|delete|options|head|patch|trace)$":{$ref:"#/definitions/Operation"},"^x-":{}},additionalProperties:!1},Operation:{type:"object",required:["responses"],properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},operationId:{type:"string"},parameters:{type:"array",items:{oneOf:[{$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},uniqueItems:!0},requestBody:{oneOf:[{$ref:"#/definitions/RequestBody"},{$ref:"#/definitions/Reference"}]},responses:{$ref:"#/definitions/Responses"},callbacks:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Callback"},{$ref:"#/definitions/Reference"}]}},deprecated:{type:"boolean",default:!1},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},servers:{type:"array",items:{$ref:"#/definitions/Server"}}},patternProperties:{"^x-":{}},additionalProperties:!1},Responses:{type:"object",properties:{default:{oneOf:[{$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]}},patternProperties:{"^[1-5](?:\\d{2}|XX)$":{oneOf:[{$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]},"^x-":{}},minProperties:1,additionalProperties:!1},SecurityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},Tag:{type:"object",required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"}},patternProperties:{"^x-":{}},additionalProperties:!1},ExternalDocumentation:{type:"object",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},ExampleXORExamples:{description:"Example and examples are mutually exclusive",not:{required:["example","examples"]}},SchemaXORContent:{description:"Schema and content are mutually exclusive, at least one is required",not:{required:["schema","content"]},oneOf:[{required:["schema"]},{required:["content"],description:"Some properties are not allowed if content is present",allOf:[{not:{required:["style"]}},{not:{required:["explode"]}},{not:{required:["allowReserved"]}},{not:{required:["example"]}},{not:{required:["examples"]}}]}]},Parameter:{type:"object",properties:{name:{type:"string"},in:{type:"string"},description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1,required:["name","in"],allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"},{$ref:"#/definitions/ParameterLocation"}]},ParameterLocation:{description:"Parameter location",oneOf:[{description:"Parameter in path",required:["required"],properties:{in:{enum:["path"]},style:{enum:["matrix","label","simple"],default:"simple"},required:{enum:[!0]}}},{description:"Parameter in query",properties:{in:{enum:["query"]},style:{enum:["form","spaceDelimited","pipeDelimited","deepObject"],default:"form"}}},{description:"Parameter in header",properties:{in:{enum:["header"]},style:{enum:["simple"],default:"simple"}}},{description:"Parameter in cookie",properties:{in:{enum:["cookie"]},style:{enum:["form"],default:"form"}}}]},RequestBody:{type:"object",required:["content"],properties:{description:{type:"string"},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}},required:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1},SecurityScheme:{oneOf:[{$ref:"#/definitions/APIKeySecurityScheme"},{$ref:"#/definitions/HTTPSecurityScheme"},{$ref:"#/definitions/OAuth2SecurityScheme"},{$ref:"#/definitions/OpenIdConnectSecurityScheme"}]},APIKeySecurityScheme:{type:"object",required:["type","name","in"],properties:{type:{type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query","cookie"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},HTTPSecurityScheme:{type:"object",required:["scheme","type"],properties:{scheme:{type:"string"},bearerFormat:{type:"string"},description:{type:"string"},type:{type:"string",enum:["http"]}},patternProperties:{"^x-":{}},additionalProperties:!1,oneOf:[{description:"Bearer",properties:{scheme:{enum:["bearer"]}}},{description:"Non Bearer",not:{required:["bearerFormat"]},properties:{scheme:{not:{enum:["bearer"]}}}}]},OAuth2SecurityScheme:{type:"object",required:["type","flows"],properties:{type:{type:"string",enum:["oauth2"]},flows:{$ref:"#/definitions/OAuthFlows"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},OpenIdConnectSecurityScheme:{type:"object",required:["type","openIdConnectUrl"],properties:{type:{type:"string",enum:["openIdConnect"]},openIdConnectUrl:{type:"string",format:"uri-reference"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},OAuthFlows:{type:"object",properties:{implicit:{$ref:"#/definitions/ImplicitOAuthFlow"},password:{$ref:"#/definitions/PasswordOAuthFlow"},clientCredentials:{$ref:"#/definitions/ClientCredentialsFlow"},authorizationCode:{$ref:"#/definitions/AuthorizationCodeOAuthFlow"}},patternProperties:{"^x-":{}},additionalProperties:!1},ImplicitOAuthFlow:{type:"object",required:["authorizationUrl","scopes"],properties:{authorizationUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},PasswordOAuthFlow:{type:"object",required:["tokenUrl"],properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},ClientCredentialsFlow:{type:"object",required:["tokenUrl"],properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},AuthorizationCodeOAuthFlow:{type:"object",required:["authorizationUrl","tokenUrl"],properties:{authorizationUrl:{type:"string",format:"uri-reference"},tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},Link:{type:"object",properties:{operationId:{type:"string"},operationRef:{type:"string",format:"uri-reference"},parameters:{type:"object",additionalProperties:{}},requestBody:{},description:{type:"string"},server:{$ref:"#/definitions/Server"}},patternProperties:{"^x-":{}},additionalProperties:!1,not:{description:"Operation Id and Operation Ref are mutually exclusive",required:["operationId","operationRef"]}},Callback:{type:"object",additionalProperties:{$ref:"#/definitions/PathItem"},patternProperties:{"^x-":{}}},Encoding:{type:"object",properties:{contentType:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/definitions/Header"}},style:{type:"string",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1}},additionalProperties:!1}}}});var Ig=j((aL,bO)=>{bO.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 kg=j((_e,hn)=>{"use strict";p();m();h();Object.defineProperty(_e,"__esModule",{value:!0});_e.openapi=_e.openapiV31=_e.openapiV3=_e.openapiV2=_e.openapiV1=void 0;_e.openapiV1=Og();_e.openapiV2=Ag();_e.openapiV3=qg();_e.openapiV31=Ig();_e.openapi={v1:_e.openapiV1,v2:_e.openapiV2,v3:_e.openapiV3,v31:_e.openapiV31};_e.default=_e.openapi;typeof hn=="object"&&typeof hn.exports=="object"&&(hn.exports=Object.assign(hn.exports.default,hn.exports))});var zc=j((fL,Tg)=>{"use strict";p();m();h();var wO=go(),{ono:PO}=He(),xO=Ky(),EO=jg(),{openapi:Fc}=kg();Tg.exports=SO;function SO(e){let r,t;if(e.swagger)t=Fc.v2,r=Vc();else if(e.openapi.startsWith("3.1")){t=Fc.v31;let i=t.$defs.schema;delete i.$dynamicAnchor,t.$defs.components.properties.schemas.additionalProperties=i,t.$defs.header.dependentSchemas.schema.properties.schema=i,t.$defs["media-type"].properties.schema=i,t.$defs.parameter.properties.schema=i,r=Vc(!1)}else t=Fc.v3,r=Vc();if(!r.validate(t,e)){let i=r.errors,s=`Swagger schema validation failed. +`+jO(i);throw PO.syntax(i,{details:i},s)}}function Vc(e=!0){let r={allErrors:!0,strict:!1,validateFormats:!1};return e?new xO(r):new EO(r)}function jO(e,r){r=r||" ";let t="";for(let n of e)t+=wO.format(`${r}#${n.instancePath.length?n.instancePath:"/"} ${n.message} +`);return t}});var Cg=j((mL,Rg)=>{"use strict";p();m();h();Rg.exports=["get","put","post","delete","options","head","patch"]});var Gc=j(($L,Bg)=>{"use strict";p();m();h();var OO=go(),{ono:Ie}=He(),AO=Cg(),Hc=["array","boolean","integer","number","string"],Mg=["array","boolean","integer","number","string","object","null",void 0];Bg.exports=qO;function qO(e){if(e.openapi)return;let r=Object.keys(e.paths||{}),t=[];for(let i of r){let s=e.paths[i],o="/paths"+i;s&&i.indexOf("/")===0&&IO(e,s,o,t)}let n=Object.keys(e.definitions||{});for(let i of n){let s=e.definitions[i],o="/definitions/"+i;Dg(s,o)}}function IO(e,r,t,n){for(let i of AO){let s=r[i],o=t+"/"+i;if(s){let a=s.operationId;if(a)if(n.indexOf(a)===-1)n.push(a);else throw Ie.syntax(`Validation failed. Duplicate operation id '${a}'`);kO(e,r,t,s,o);let l=Object.keys(s.responses||{});for(let f of l){let g=s.responses[f],y=o+"/responses/"+f;NO(f,g||{},y)}}}}function kO(e,r,t,n,i){let s=r.parameters||[],o=n.parameters||[];try{Ng(s)}catch(l){throw Ie.syntax(l,`Validation failed. ${t} has duplicate parameters`)}try{Ng(o)}catch(l){throw Ie.syntax(l,`Validation failed. ${i} has duplicate parameters`)}let a=s.reduce((l,f)=>(l.some(y=>y.in===f.in&&y.name===f.name)||l.push(f),l),o.slice());TO(a,i),RO(a,t,i),CO(a,e,n,i)}function TO(e,r){let t=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(t.length>1)throw Ie.syntax(`Validation failed. ${r} has ${t.length} body parameters. Only one is allowed.`);if(t.length>0&&n.length>0)throw Ie.syntax(`Validation failed. ${r} has body parameters and formData parameters. Only one or the other is allowed.`)}function RO(e,r,t){let n=r.match(OO.swaggerParamRegExp)||[];for(let i=0;ii.in==="path");for(let i of e){if(i.required!==!0)throw Ie.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${t}`);let s=n.indexOf("{"+i.name+"}");if(s===-1)throw Ie.syntax(`Validation failed. ${t} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(s,1)}if(n.length>0)throw Ie.syntax(`Validation failed. ${t} is missing path parameter(s) for ${n}`)}function CO(e,r,t,n){for(let i of e){let s=n+"/parameters/"+i.name,o,a;switch(i.in){case"body":o=i.schema,a=Mg;break;case"formData":o=i,a=Hc.concat("file");break;default:o=i,a=Hc}if(Kc(o,s,a),Dg(o,s),o.type==="file"){let l=/multipart\/(.*\+)?form-data/,f=/application\/(.*\+)?x-www-form-urlencoded/;if(!(t.consumes||r.consumes||[]).some(b=>l.test(b)||f.test(b)))throw Ie.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}function Ng(e){for(let r=0;r599))throw Ie.syntax(`Validation failed. ${t} has an invalid response code (${e})`);let n=Object.keys(r.headers||{});for(let i of n){let s=r.headers[i],o=t+"/headers/"+i;Kc(s,o,Hc)}if(r.schema){let i=Mg.concat("file");if(i.indexOf(r.schema.type)===-1)throw Ie.syntax(`Validation failed. ${t} has an invalid response schema type (${r.schema.type})`);Kc(r.schema,t+"/schema",i)}}function Kc(e,r,t){if(t.indexOf(e.type)===-1)throw Ie.syntax(`Validation failed. ${r} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw Ie.syntax(`Validation failed. ${r} is an array, so it must include an "items" schema`)}function Dg(e,r){function t(n,i){if(n.properties)for(let s in n.properties)n.properties.hasOwnProperty(s)&&(i[s]=n.properties[s]);if(n.allOf)for(let s of n.allOf)t(s,i)}if(!(Array.isArray(e.type)&&!e.type.includes("object"))&&!(!Array.isArray(e.type)&&e.type!=="object")&&e.required&&Array.isArray(e.required)){let n={};t(e,n);for(let i of e.required)if(!n[i])throw Ie.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${r}'`)}}});function MO(){if(Ug)return Jc;Ug=!0;var e=Jc={},r,t;function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?r=setTimeout:r=n}catch(P){r=n}try{typeof clearTimeout=="function"?t=clearTimeout:t=i}catch(P){t=i}})();function s(P){if(r===setTimeout)return setTimeout(P,0);if((r===n||!r)&&setTimeout)return r=setTimeout,setTimeout(P,0);try{return r(P,0)}catch(O){try{return r.call(null,P,0)}catch(I){return r.call(this||mn,P,0)}}}function o(P){if(t===clearTimeout)return clearTimeout(P);if((t===i||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(P);try{return t(P)}catch(O){try{return t.call(null,P)}catch(I){return t.call(this||mn,P)}}}var a=[],l=!1,f,g=-1;function y(){!l||!f||(l=!1,f.length?a=f.concat(a):g=-1,a.length&&b())}function b(){if(!l){var P=s(y);l=!0;for(var O=a.length;O;){for(f=a,a=[];++g1)for(var I=1;I{p();m();h();Jc={},Ug=!1,mn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;ue=MO();ue.platform="browser";ue.addListener;ue.argv;ue.binding;ue.browser;ue.chdir;ue.cwd;ue.emit;ue.env;ue.listeners;ue.nextTick;ue.off;ue.on;ue.once;ue.prependListener;ue.prependOnceListener;ue.removeAllListeners;ue.removeListener;ue.title;ue.umask;ue.version;ue.versions});function DO(){if(Lg)return Yc;Lg=!0;var e=ue;function r(s){if(typeof s!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(s))}function t(s,o){for(var a="",l=0,f=-1,g=0,y,b=0;b<=s.length;++b){if(b2){var _=a.lastIndexOf("/");if(_!==a.length-1){_===-1?(a="",l=0):(a=a.slice(0,_),l=a.length-1-a.lastIndexOf("/")),f=b,g=0;continue}}else if(a.length===2||a.length===1){a="",l=0,f=b,g=0;continue}}o&&(a.length>0?a+="/..":a="..",l=2)}else a.length>0?a+="/"+s.slice(f+1,b):a=s.slice(f+1,b),l=b-f-1;f=b,g=0}else y===46&&g!==-1?++g:g=-1}return a}function n(s,o){var a=o.dir||o.root,l=o.base||(o.name||"")+(o.ext||"");return a?a===o.root?a+l:a+s+l:l}var i={resolve:function(){for(var o="",a=!1,l,f=arguments.length-1;f>=-1&&!a;f--){var g;f>=0?g=arguments[f]:(l===void 0&&(l=e.cwd()),g=l),r(g),g.length!==0&&(o=g+"/"+o,a=g.charCodeAt(0)===47)}return o=t(o,!a),a?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(o){if(r(o),o.length===0)return".";var a=o.charCodeAt(0)===47,l=o.charCodeAt(o.length-1)===47;return o=t(o,!a),o.length===0&&!a&&(o="."),o.length>0&&l&&(o+="/"),a?"/"+o:o},isAbsolute:function(o){return r(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,a=0;a0&&(o===void 0?o=l:o+="/"+l)}return o===void 0?".":i.normalize(o)},relative:function(o,a){if(r(o),r(a),o===a||(o=i.resolve(o),a=i.resolve(a),o===a))return"";for(var l=1;lw){if(a.charCodeAt(y+O)===47)return a.slice(y+O+1);if(O===0)return a.slice(y+O)}else g>w&&(o.charCodeAt(l+O)===47?P=O:O===0&&(P=0));break}var I=o.charCodeAt(l+O),R=a.charCodeAt(y+O);if(I!==R)break;I===47&&(P=O)}var C="";for(O=l+P+1;O<=f;++O)(O===f||o.charCodeAt(O)===47)&&(C.length===0?C+="..":C+="/..");return C.length>0?C+a.slice(y+P):(y+=P,a.charCodeAt(y)===47&&++y,a.slice(y))},_makeLong:function(o){return o},dirname:function(o){if(r(o),o.length===0)return".";for(var a=o.charCodeAt(0),l=a===47,f=-1,g=!0,y=o.length-1;y>=1;--y)if(a=o.charCodeAt(y),a===47){if(!g){f=y;break}}else g=!1;return f===-1?l?"/":".":l&&f===1?"//":o.slice(0,f)},basename:function(o,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');r(o);var l=0,f=-1,g=!0,y;if(a!==void 0&&a.length>0&&a.length<=o.length){if(a.length===o.length&&a===o)return"";var b=a.length-1,_=-1;for(y=o.length-1;y>=0;--y){var w=o.charCodeAt(y);if(w===47){if(!g){l=y+1;break}}else _===-1&&(g=!1,_=y+1),b>=0&&(w===a.charCodeAt(b)?--b===-1&&(f=y):(b=-1,f=_))}return l===f?f=_:f===-1&&(f=o.length),o.slice(l,f)}else{for(y=o.length-1;y>=0;--y)if(o.charCodeAt(y)===47){if(!g){l=y+1;break}}else f===-1&&(g=!1,f=y+1);return f===-1?"":o.slice(l,f)}},extname:function(o){r(o);for(var a=-1,l=0,f=-1,g=!0,y=0,b=o.length-1;b>=0;--b){var _=o.charCodeAt(b);if(_===47){if(!g){l=b+1;break}continue}f===-1&&(g=!1,f=b+1),_===46?a===-1?a=b:y!==1&&(y=1):a!==-1&&(y=-1)}return a===-1||f===-1||y===0||y===1&&a===f-1&&a===l+1?"":o.slice(a,f)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return n("/",o)},parse:function(o){r(o);var a={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return a;var l=o.charCodeAt(0),f=l===47,g;f?(a.root="/",g=1):g=0;for(var y=-1,b=0,_=-1,w=!0,P=o.length-1,O=0;P>=g;--P){if(l=o.charCodeAt(P),l===47){if(!w){b=P+1;break}continue}_===-1&&(w=!1,_=P+1),l===46?y===-1?y=P:O!==1&&(O=1):y!==-1&&(O=-1)}return y===-1||_===-1||O===0||O===1&&y===_-1&&y===b+1?_!==-1&&(b===0&&f?a.base=a.name=o.slice(1,_):a.base=a.name=o.slice(b,_)):(b===0&&f?(a.name=o.slice(1,y),a.base=o.slice(1,_)):(a.name=o.slice(b,y),a.base=o.slice(b,_)),a.ext=o.slice(y,_)),b>0?a.dir=o.slice(0,b-1):f&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,Yc=i,Yc}var Yc,Lg,be,Xc=Fe(()=>{p();m();h();Wc();Yc={},Lg=!1;be=DO()});var Zo={};ki(Zo,{_makeLong:()=>BO,basename:()=>UO,default:()=>be,delimiter:()=>LO,dirname:()=>FO,extname:()=>VO,format:()=>zO,isAbsolute:()=>HO,join:()=>KO,normalize:()=>GO,parse:()=>JO,posix:()=>WO,relative:()=>YO,resolve:()=>XO,sep:()=>QO,win32:()=>ZO});var BO,UO,LO,FO,VO,zO,HO,KO,GO,JO,WO,YO,XO,QO,ZO,es=Fe(()=>{p();m();h();Xc();Xc();Wc();BO=be._makeLong,UO=be.basename,LO=be.delimiter,FO=be.dirname,VO=be.extname,zO=be.format,HO=be.isAbsolute,KO=be.join,GO=be.normalize,JO=be.parse,WO=be.posix,YO=be.relative,XO=be.resolve,QO=be.sep,ZO=be.win32});var Qc=j(vi=>{"use strict";p();m();h();var eA=vi&&vi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vi,"__esModule",{value:!0});vi.default=rA;var Fg=eA((es(),Nt(Zo)));function rA(e){var t,n,i,s,o;return e.startsWith("\\\\?\\")?e:e.split((n=(t=Fg.default)==null?void 0:t.win32)==null?void 0:n.sep).join((o=(s=(i=Fg.default)==null?void 0:i.posix)==null?void 0:s.sep)!=null?o:"/")}});var Vg=j(rs=>{"use strict";p();m();h();Object.defineProperty(rs,"__esModule",{value:!0});rs.isWindows=void 0;var tA=/^win/.test(globalThis.process?globalThis.process.platform:""),nA=()=>tA;rs.isWindows=nA});var Xe=j(oe=>{"use strict";p();m();h();var iA=oe&&oe.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,i)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),oA=oe&&oe.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),sA=oe&&oe.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&iA(r,e,t);return oA(r,e),r},aA=oe&&oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(oe,"__esModule",{value:!0});oe.parse=void 0;oe.resolve=zg;oe.cwd=Hg;oe.getProtocol=nl;oe.getExtension=mA;oe.stripQuery=Kg;oe.getHash=Gg;oe.stripHash=rl;oe.isHttp=yA;oe.isFileSystemPath=tl;oe.fromFileSystemPath=gA;oe.toFileSystemPath=vA;oe.safePointerToPath=$A;oe.relative=_A;var ns=aA(Qc()),el=sA((es(),Nt(Zo))),uA=/\//g,cA=/^(\w{2,}):\/\//i,lA=/~1/g,fA=/~0/g,dA=(es(),Nt(Zo)),ts=Vg(),pA=[[/\?/g,"%3F"],[/#/g,"%23"]],Zc=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],hA=e=>new URL(e);oe.parse=hA;function zg(e,r){var s;let t=new URL((0,ns.default)(e),"resolve://"),n=new URL((0,ns.default)(r),t),i=((s=r.match(/(\s*)$/))==null?void 0:s[1])||"";if(n.protocol==="resolve:"){let{pathname:o,search:a,hash:l}=n;return o+a+l+i}return n.toString()+i}function Hg(){if(typeof window<"u")return location.href;let e=S.cwd(),r=e.slice(-1);return r==="/"||r==="\\"?e:e+"/"}function nl(e){let r=cA.exec(e||"");if(r)return r[1].toLowerCase()}function mA(e){let r=e.lastIndexOf(".");return r>=0?Kg(e.substr(r).toLowerCase()):""}function Kg(e){let r=e.indexOf("?");return r>=0&&(e=e.substr(0,r)),e}function Gg(e){if(!e)return"#";let r=e.indexOf("#");return r>=0?e.substring(r):"#"}function rl(e){if(!e)return"";let r=e.indexOf("#");return r>=0&&(e=e.substring(0,r)),e}function yA(e){let r=nl(e);return r==="http"||r==="https"?!0:r===void 0?typeof window<"u":!1}function tl(e){if(typeof window<"u"||typeof S<"u"&&S.browser)return!1;let r=nl(e);return r===void 0||r==="file"}function gA(e){var r;if((0,ts.isWindows)()){let t=Hg(),n=e.toUpperCase(),s=(0,ns.default)(t).toUpperCase(),o=n.includes(s),a=n.includes(s),l=((r=el.win32)==null?void 0:r.isAbsolute(e))||e.startsWith("http://")||e.startsWith("https://")||e.startsWith("file://");!(o||a||l)&&!t.startsWith("http")&&(e=(0,dA.join)(t,e)),e=(0,ns.default)(e)}e=encodeURI(e);for(let t of pA)e=e.replace(t[0],t[1]);return e}function vA(e,r){e=decodeURI(e);for(let n=0;ndecodeURIComponent(r).replace(lA,"/").replace(fA,"~"))}function _A(e,r){if(!tl(e)||!tl(r))return zg(e,r);let t=el.default.dirname(rl(e)),n=rl(r);return el.default.relative(t,n)+Gg(r)}});var Qe=j(pe=>{"use strict";p();m();h();Object.defineProperty(pe,"__esModule",{value:!0});pe.InvalidPointerError=pe.TimeoutError=pe.MissingPointerError=pe.UnmatchedResolverError=pe.ResolverError=pe.UnmatchedParserError=pe.ParserError=pe.JSONParserErrorGroup=pe.JSONParserError=void 0;pe.isHandledError=bA;pe.normalizeError=wA;var Jg=He(),fl=Xe(),sr=class extends Error{constructor(r,t){super(),this.code="EUNKNOWN",this.name="JSONParserError",this.message=r,this.source=t,this.path=null,Jg.Ono.extend(this)}get footprint(){return`${this.path}+${this.source}+${this.code}+${this.message}`}};pe.JSONParserError=sr;var is=class e extends Error{constructor(r){super(),this.files=r,this.name="JSONParserErrorGroup",this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${(0,fl.toFileSystemPath)(r.$refs._root$Ref.path)}'`,Jg.Ono.extend(this)}static getParserErrors(r){let t=[];for(let n of Object.values(r.$refs._$refs))n.errors&&t.push(...n.errors);return t}get errors(){return e.getParserErrors(this.files)}};pe.JSONParserErrorGroup=is;var il=class extends sr{constructor(r,t){super(`Error parsing ${t}: ${r}`,t),this.code="EPARSER",this.name="ParserError"}};pe.ParserError=il;var ol=class extends sr{constructor(r){super(`Could not find parser for "${r}"`,r),this.code="EUNMATCHEDPARSER",this.name="UnmatchedParserError"}};pe.UnmatchedParserError=ol;var sl=class extends sr{constructor(r,t){super(r.message||`Error reading file "${t}"`,t),this.code="ERESOLVER",this.name="ResolverError","code"in r&&(this.ioErrorCode=String(r.code))}};pe.ResolverError=sl;var al=class extends sr{constructor(r){super(`Could not find resolver for "${r}"`,r),this.code="EUNMATCHEDRESOLVER",this.name="UnmatchedResolverError"}};pe.UnmatchedResolverError=al;var ul=class extends sr{constructor(r,t){super(`Token "${r}" does not exist.`,(0,fl.stripHash)(t)),this.code="EUNMATCHEDRESOLVER",this.name="MissingPointerError"}};pe.MissingPointerError=ul;var cl=class extends sr{constructor(r){super(`Dereferencing timeout reached: ${r}ms`),this.code="ETIMEOUT",this.name="TimeoutError"}};pe.TimeoutError=cl;var ll=class extends sr{constructor(r,t){super(`Invalid $ref pointer "${r}". Pointers must begin with "#/"`,(0,fl.stripHash)(t)),this.code="EUNMATCHEDRESOLVER",this.name="InvalidPointerError"}};pe.InvalidPointerError=ll;function bA(e){return e instanceof sr||e instanceof is}function wA(e){return e.path===null&&(e.path=[]),e}});var $i=j(ar=>{"use strict";p();m();h();var PA=ar&&ar.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,i)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),xA=ar&&ar.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),EA=ar&&ar.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&PA(r,e,t);return xA(r,e),r},SA=ar&&ar.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ar,"__esModule",{value:!0});var dl=SA(yn()),pl=EA(Xe()),ss=Qe(),jA=/\//g,OA=/~/g,AA=/~1/g,qA=/~0/g,IA=e=>{try{return decodeURIComponent(e)}catch(r){return e}},as=class e{constructor(r,t,n){this.$ref=r,this.path=t,this.originalPath=n||t,this.value=void 0,this.circular=!1,this.indirections=0}resolve(r,t,n){let i=e.parse(this.path,this.originalPath);this.value=Yg(r);for(let s=0;ss;l--){let f=i.slice(s,l+1).join("/");if(this.value[f]!==void 0){this.value=this.value[f],s=l,a=!0;break}}if(a)continue;throw this.value=null,new ss.MissingPointerError(o,decodeURI(this.originalPath))}else this.value=this.value[o]}return(!this.value||this.value.$ref&&pl.resolve(this.path,this.value.$ref)!==n)&&os(this,t,n),this}set(r,t,n){let i=e.parse(this.path),s;if(i.length===0)return this.value=t,t;this.value=Yg(r);for(let o=0;o{"use strict";p();m();h();var kA=_i&&_i.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_i,"__esModule",{value:!0});var Qg=kA($i()),us=Qe(),hl=Xe(),ml=class e{constructor(r){this.errors=[],this.$refs=r}addError(r){this.errors===void 0&&(this.errors=[]);let t=this.errors.map(({footprint:n})=>n);"errors"in r&&Array.isArray(r.errors)?this.errors.push(...r.errors.map(us.normalizeError).filter(({footprint:n})=>!t.includes(n))):(!("footprint"in r)||!t.includes(r.footprint))&&this.errors.push((0,us.normalizeError)(r))}exists(r,t){try{return this.resolve(r,t),!0}catch(n){return!1}}get(r,t){var n;return(n=this.resolve(r,t))==null?void 0:n.value}resolve(r,t,n,i){let s=new Qg.default(this,r,n);try{return s.resolve(this.value,t,i)}catch(o){if(!t||!t.continueOnError||!(0,us.isHandledError)(o))throw o;return o.path===null&&(o.path=(0,hl.safePointerToPath)((0,hl.getHash)(i))),o instanceof us.InvalidPointerError&&(o.source=decodeURI((0,hl.stripHash)(i))),this.addError(o),null}}set(r,t){let n=new Qg.default(this,r);this.value=n.set(this.value,t)}static is$Ref(r){return!!r&&typeof r=="object"&&r!==null&&"$ref"in r&&typeof r.$ref=="string"&&r.$ref.length>0}static isExternal$Ref(r){return e.is$Ref(r)&&r.$ref[0]!=="#"}static isAllowed$Ref(r,t){var n;if(this.is$Ref(r)){if(r.$ref.substring(0,2)==="#/"||r.$ref==="#")return!0;if(r.$ref[0]!=="#"&&(!t||(n=t.resolve)!=null&&n.external))return!0}}static isExtended$Ref(r){return e.is$Ref(r)&&Object.keys(r).length>1}static dereference(r,t){if(t&&typeof t=="object"&&e.isExtended$Ref(r)){let n={};for(let i of Object.keys(r))i!=="$ref"&&(n[i]=r[i]);for(let i of Object.keys(t))i in n||(n[i]=t[i]);return n}else return t}};_i.default=ml});var n0=j(ur=>{"use strict";p();m();h();var TA=ur&&ur.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,i)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),RA=ur&&ur.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),CA=ur&&ur.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&TA(r,e,t);return RA(r,e),r},t0=ur&&ur.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ur,"__esModule",{value:!0});var Zg=He(),NA=t0(yn()),nt=CA(Xe()),e0=t0(Qc()),yl=class{paths(...r){return r0(this._$refs,r.flat()).map(n=>(0,e0.default)(n.decoded))}values(...r){let t=this._$refs;return r0(t,r.flat()).reduce((i,s)=>(i[(0,e0.default)(s.decoded)]=t[s.encoded].value,i),{})}exists(r,t){try{return this._resolve(r,"",t),!0}catch(n){return!1}}get(r,t){return this._resolve(r,"",t).value}set(r,t){let n=nt.resolve(this._root$Ref.path,r),i=nt.stripHash(n),s=this._$refs[i];if(!s)throw(0,Zg.ono)(`Error resolving $ref pointer "${r}". +"${i}" not found.`);s.set(n,t)}_get$Ref(r){r=nt.resolve(this._root$Ref.path,r);let t=nt.stripHash(r);return this._$refs[t]}_add(r){let t=nt.stripHash(r),n=new NA.default(this);return n.path=t,this._$refs[t]=n,this._root$Ref=this._root$Ref||n,n}_resolve(r,t,n){let i=nt.resolve(this._root$Ref.path,r),s=nt.stripHash(i),o=this._$refs[s];if(!o)throw(0,Zg.ono)(`Error resolving $ref pointer "${r}". +"${s}" not found.`);return o.resolve(i,n,r,t)}constructor(){this._$refs={},this.toJSON=this.values,this.circular=!1,this._$refs={},this._root$Ref=null}};ur.default=yl;function r0(e,r){let t=Object.keys(e);return r=Array.isArray(r[0])?r[0]:Array.prototype.slice.call(r),r.length>0&&r[0]&&(t=t.filter(n=>r.includes(e[n].pathType))),t.map(n=>({encoded:n,decoded:e[n].pathType==="file"?nt.toFileSystemPath(n,!0):n}))}});var o0=j(gn=>{"use strict";p();m();h();Object.defineProperty(gn,"__esModule",{value:!0});gn.all=MA;gn.filter=DA;gn.sort=BA;gn.run=UA;function MA(e){return Object.keys(e||{}).filter(r=>typeof e[r]=="object").map(r=>(e[r].name=r,e[r]))}function DA(e,r,t){return e.filter(n=>!!i0(n,r,t))}function BA(e){for(let r of e)r.order=r.order||Number.MAX_SAFE_INTEGER;return e.sort((r,t)=>r.order-t.order)}async function UA(e,r,t,n){let i,s,o=0;return new Promise((a,l)=>{f();function f(){if(i=e[o++],!i)return l(s);try{let _=i0(i,r,t,g,n);if(_&&typeof _.then=="function")_.then(y,b);else if(_!==void 0)y(_);else if(o===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(_){b(_)}}function g(_,w){_?b(_):y(w)}function y(_){a({plugin:i,result:_})}function b(_){s={plugin:i,error:_},f()}})}function i0(e,r,t,n,i){let s=e[r];if(typeof s=="function")return s.apply(e,[t,n,i]);if(!n){if(s instanceof RegExp)return s.test(t.url);if(typeof s=="string")return s===t.extension;if(Array.isArray(s))return s.indexOf(t.extension)!==-1}return s}});var vl=j(Br=>{"use strict";p();m();h();var LA=Br&&Br.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,i)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),FA=Br&&Br.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),s0=Br&&Br.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&LA(r,e,t);return FA(r,e),r};Object.defineProperty(Br,"__esModule",{value:!0});var gl=He(),VA=s0(Xe()),it=s0(o0()),It=Qe();async function zA(e,r,t){let n=e.indexOf("#"),i="";n>=0&&(i=e.substring(n),e=e.substring(0,n));let s=r._add(e),o={url:e,hash:i,extension:VA.getExtension(e)};try{let a=await HA(o,t,r);s.pathType=a.plugin.name,o.data=a.result;let l=await KA(o,t,r);return s.value=l.result,l.result}catch(a){throw(0,It.isHandledError)(a)&&(s.value=a),a}}async function HA(e,r,t){let n=it.all(r.resolve);n=it.filter(n,"canRead",e),it.sort(n);try{return await it.run(n,"read",e,t)}catch(i){throw!i&&r.continueOnError?new It.UnmatchedResolverError(e.url):!i||!("error"in i)?gl.ono.syntax(`Unable to resolve $ref pointer "${e.url}"`):i.error instanceof It.ResolverError?i.error:new It.ResolverError(i,e.url)}}async function KA(e,r,t){let n=it.all(r.parse),i=it.filter(n,"canParse",e),s=i.length>0?i:n;it.sort(s);try{let o=await it.run(s,"parse",e,t);if(!o.plugin.allowEmpty&&GA(o.result))throw gl.ono.syntax(`Error parsing "${e.url}" as ${o.plugin.name}. +Parsed value is empty`);return o}catch(o){throw!o&&r.continueOnError?new It.UnmatchedParserError(e.url):o&&o.message&&o.message.startsWith("Error parsing")?o:!o||!("error"in o)?gl.ono.syntax(`Unable to parse ${e.url}`):o.error instanceof It.ParserError?o.error:new It.ParserError(o.error.message,e.url)}}function GA(e){return e===void 0||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0||E.isBuffer(e)&&e.length===0}Br.default=zA});var u0=j($l=>{"use strict";p();m();h();Object.defineProperty($l,"__esModule",{value:!0});var a0=Qe();$l.default={order:100,allowEmpty:!0,canParse:".json",allowBOM:!0,async parse(e){let r=e.data;if(E.isBuffer(r)&&(r=r.toString()),typeof r=="string"){if(r.trim().length===0)return;try{return JSON.parse(r)}catch(t){if(this.allowBOM)try{let n=r.indexOf("{");return r=r.slice(n),JSON.parse(r)}catch(n){throw new a0.ParserError(n.message,e.url)}throw new a0.ParserError(t.message,e.url)}}else return r}}});var c0=j(bi=>{"use strict";p();m();h();var JA=bi&&bi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bi,"__esModule",{value:!0});var WA=Qe(),YA=JA(Hi()),XA=Hi();bi.default={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(e){let r=e.data;if(E.isBuffer(r)&&(r=r.toString()),typeof r=="string")try{return YA.default.load(r,{schema:XA.JSON_SCHEMA})}catch(t){throw new WA.ParserError((t==null?void 0:t.message)||"Parser Error",e.url)}else return r}}});var l0=j(_l=>{"use strict";p();m();h();Object.defineProperty(_l,"__esModule",{value:!0});var QA=Qe(),ZA=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;_l.default={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||E.isBuffer(e.data))&&ZA.test(e.url)},parse(e){if(typeof e.data=="string")return e.data;if(E.isBuffer(e.data))return e.data.toString(this.encoding);throw new QA.ParserError("data is not text",e.url)}}});var f0=j(bl=>{"use strict";p();m();h();Object.defineProperty(bl,"__esModule",{value:!0});var eq=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;bl.default={order:400,allowEmpty:!0,canParse(e){return E.isBuffer(e.data)&&eq.test(e.url)},parse(e){return E.isBuffer(e.data)?e.data:E.from(e.data)}}});var d0={};ki(d0,{default:()=>rq});var rq,p0=Fe(()=>{p();m();h();rq={}});var g0=j(cr=>{"use strict";p();m();h();var tq=cr&&cr.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,i)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),nq=cr&&cr.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),iq=cr&&cr.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&tq(r,e,t);return nq(r,e),r},oq=cr&&cr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cr,"__esModule",{value:!0});var sq=oq((p0(),Nt(d0))),h0=He(),m0=iq(Xe()),y0=Qe();cr.default={order:100,canRead(e){return m0.isFileSystemPath(e.url)},async read(e){let r;try{r=m0.toFileSystemPath(e.url)}catch(t){throw new y0.ResolverError(h0.ono.uri(t,`Malformed URI: ${e.url}`),e.url)}try{return await sq.default.promises.readFile(r)}catch(t){throw new y0.ResolverError((0,h0.ono)(t,`Error opening file "${r}"`),r)}}}});var _0=j(Ur=>{"use strict";p();m();h();var aq=Ur&&Ur.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,i)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),uq=Ur&&Ur.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),cq=Ur&&Ur.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&aq(r,e,t);return uq(r,e),r};Object.defineProperty(Ur,"__esModule",{value:!0});var cs=He(),wi=cq(Xe()),v0=Qe();Ur.default={order:200,headers:null,timeout:6e4,redirects:5,withCredentials:!1,canRead(e){return wi.isHttp(e.url)},read(e){let r=wi.parse(e.url);return typeof window<"u"&&!r.protocol&&(r.protocol=wi.parse(location.href).protocol),$0(r,this)}};async function $0(e,r,t){e=wi.parse(e);let n=t||[];n.push(e.href);try{let i=await lq(e,r);if(i.status>=400)throw(0,cs.ono)({status:i.status},`HTTP ERROR ${i.status}`);if(i.status>=300){if(!Number.isNaN(r.redirects)&&n.length>r.redirects)throw new v0.ResolverError((0,cs.ono)({status:i.status},`Error downloading ${n[0]}. Too many redirects: ${n.join(` - `)}`));if(!("location"in i.headers)||!i.headers.location)throw(0,cs.ono)({status:i.status},`HTTP ${i.status} redirect with no location header`);{let s=wi.resolve(e.href,i.headers.location);return $0(s,r,n)}}else{if(i.body){let s=await i.arrayBuffer();return E.from(s)}return E.alloc(0)}}catch(i){throw new v0.ResolverError((0,cs.ono)(i,`Error downloading ${e.href}`),e.href)}}async function uq(e,r){let t,n;r.timeout&&(t=new AbortController,n=setTimeout(()=>t.abort(),r.timeout));let i=await fetch(e,{method:"GET",headers:r.headers||{},credentials:r.withCredentials?"include":"same-origin",signal:t?t.signal:null});return n&&clearTimeout(n),i}});var wl=j(Lr=>{"use strict";p();m();h();var vn=Lr&&Lr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Lr,"__esModule",{value:!0});Lr.getNewOptions=Lr.getJsonSchemaRefParserDefaultOptions=void 0;var cq=vn(u0()),lq=vn(c0()),fq=vn(l0()),dq=vn(f0()),pq=vn(g0()),hq=vn(_0()),mq=()=>({parse:{json:{...cq.default},yaml:{...lq.default},text:{...fq.default},binary:{...dq.default}},resolve:{file:{...pq.default},http:{...hq.default},external:!0},continueOnError:!1,dereference:{circular:!0,excludedPathMatcher:()=>!1,referenceResolution:"relative"},mutateInputSchema:!0});Lr.getJsonSchemaRefParserDefaultOptions=mq;var yq=e=>{let r=(0,Lr.getJsonSchemaRefParserDefaultOptions)();return e&&w0(r,e),r};Lr.getNewOptions=yq;function w0(e,r){if(b0(r)){let t=Object.keys(r).filter(n=>!["__proto__","constructor","prototype"].includes(n));for(let n=0;n{"use strict";p();m();h();Object.defineProperty(ls,"__esModule",{value:!0});ls.normalizeArgs=P0;var gq=wl();function P0(e){let r,t,n,i,s=Array.prototype.slice.call(e);typeof s[s.length-1]=="function"&&(i=s.pop()),typeof s[0]=="string"?(r=s[0],typeof s[2]=="object"?(t=s[1],n=s[2]):(t=void 0,n=s[1])):(r="",t=s[0],n=s[1]);try{n=(0,gq.getNewOptions)(n)}catch(o){console.error(`JSON Schema Ref Parser: Error normalizing options: ${o}`)}return!n.mutateInputSchema&&typeof t=="object"&&(t=JSON.parse(JSON.stringify(t))),{path:r,schema:t,options:n,callback:i}}ls.default=P0});var E0=j(lr=>{"use strict";p();m();h();var vq=lr&&lr.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,i)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),$q=lr&&lr.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),_q=lr&&lr.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&vq(r,e,t);return $q(r,e),r},Pl=lr&&lr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(lr,"__esModule",{value:!0});var bq=Pl(yn()),wq=Pl($i()),Pq=Pl(vl()),$n=_q(Xe()),xq=Qe();function Eq(e,r){var t;if(!((t=r.resolve)!=null&&t.external))return Promise.resolve();try{let n=xl(e.schema,e.$refs._root$Ref.path+"#",e.$refs,r);return Promise.all(n)}catch(n){return Promise.reject(n)}}function xl(e,r,t,n,i,s){i||(i=new Set);let o=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)&&!i.has(e)){i.add(e),bq.default.isExternal$Ref(e)&&o.push(Sq(e,r,t,n));let a=Object.keys(e);for(let l of a){let f=wq.default.join(r,l),g=e[l];o=o.concat(xl(g,f,t,n,i,s))}}return o}async function Sq(e,r,t,n){var l;let i=((l=n.dereference)==null?void 0:l.externalReferenceResolution)==="root",s=$n.resolve(i?$n.cwd():r,e.$ref),o=$n.stripHash(s),a=t._$refs[o];if(a)return Promise.resolve(a.value);try{let f=await(0,Pq.default)(s,t,n),g=xl(f,o+"#",t,n,new Set,!0);return Promise.all(g)}catch(f){if(!(n!=null&&n.continueOnError)||!(0,xq.isHandledError)(f))throw f;return t._$refs[o]&&(f.source=decodeURI($n.stripHash(r)),f.path=$n.safePointerToPath($n.getHash(r))),[]}}lr.default=Eq});var O0=j(fr=>{"use strict";p();m();h();var jq=fr&&fr.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,i)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),Oq=fr&&fr.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),Aq=fr&&fr.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&jq(r,e,t);return Oq(r,e),r},j0=fr&&fr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fr,"__esModule",{value:!0});var fs=j0(yn()),Pi=j0($i()),El=Aq(Xe());function qq(e,r){let t=[];Sl(e,"schema",e.$refs._root$Ref.path+"#","#",0,t,e.$refs,r),Iq(t)}function Sl(e,r,t,n,i,s,o,a){let l=r===null?e:e[r];if(l&&typeof l=="object"&&!ArrayBuffer.isView(l))if(fs.default.isAllowed$Ref(l))S0(e,r,t,n,i,s,o,a);else{let f=Object.keys(l).sort((g,y)=>g==="definitions"?-1:y==="definitions"?1:g.length-y.length);for(let g of f){let y=Pi.default.join(t,g),b=Pi.default.join(n,g),_=l[g];fs.default.isAllowed$Ref(_)?S0(l,g,t,b,i,s,o,a):Sl(l,g,y,b,i,s,o,a)}}}function S0(e,r,t,n,i,s,o,a){let l=r===null?e:e[r],f=El.resolve(t,l.$ref),g=o._resolve(f,n,a);if(g===null)return;let b=Pi.default.parse(n).length,_=El.stripHash(g.path),w=El.getHash(g.path),P=_!==o._root$Ref.path,O=fs.default.isExtended$Ref(l);i+=g.indirections;let I=kq(s,e,r);if(I)if(b{if(i.file!==s.file)return i.file{"use strict";p();m();h();var Rq=dr&&dr.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,i)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),Cq=dr&&dr.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),Nq=dr&&dr.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&Rq(r,e,t);return Cq(r,e),r},k0=dr&&dr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(dr,"__esModule",{value:!0});var ds=k0(yn()),A0=k0($i()),Mq=He(),q0=Nq(Xe()),Dq=Qe();dr.default=Bq;function Bq(e,r){let t=Date.now(),n=jl(e.schema,e.$refs._root$Ref.path,"#",new Set,new Set,new Map,e.$refs,r,t);e.$refs.circular=n.circular,e.schema=n.value}function jl(e,r,t,n,i,s,o,a,l){var _;let f,g={value:e,circular:!1};if(a&&a.timeoutMs&&Date.now()-l>a.timeoutMs)throw new Dq.TimeoutError(a.timeoutMs);let y=a.dereference||{},b=y.excludedPathMatcher||(()=>!1);if(((y==null?void 0:y.circular)==="ignore"||!i.has(e))&&e&&typeof e=="object"&&!ArrayBuffer.isView(e)&&!b(t)){if(n.add(e),i.add(e),ds.default.isAllowed$Ref(e,a))f=I0(e,r,t,n,i,s,o,a,l),g.circular=f.circular,g.value=f.value;else for(let w of Object.keys(e)){let P=A0.default.join(r,w),O=A0.default.join(t,w);if(b(O))continue;let I=e[w],R=!1;ds.default.isAllowed$Ref(I,a)?(f=I0(I,P,O,n,i,s,o,a,l),R=f.circular,e[w]!==f.value&&(e[w]=f.value,(_=y==null?void 0:y.onDereference)==null||_.call(y,I.$ref,e[w],e,w))):n.has(I)?R=T0(P,o,a):(f=jl(I,P,O,n,i,s,o,a,l),R=f.circular,e[w]!==f.value&&(e[w]=f.value)),g.circular=g.circular||R}n.delete(e)}return g}function I0(e,r,t,n,i,s,o,a,l){var R,C;let g=ds.default.isExternal$Ref(e)&&((R=a==null?void 0:a.dereference)==null?void 0:R.externalReferenceResolution)==="root",y=q0.resolve(g?q0.cwd():r,e.$ref),b=s.get(y);if(b&&!b.circular){let U=Object.keys(e);if(U.length>1){let N={};for(let ve of U)ve!=="$ref"&&!(ve in b.value)&&(N[ve]=e[ve]);return{circular:b.circular,value:Object.assign({},b.value,N)}}return b}let _=o._resolve(y,r,a);if(_===null)return{circular:!1,value:null};let w=_.circular,P=w||n.has(_.value);P&&T0(r,o,a);let O=ds.default.dereference(e,_.value);if(!P){let U=jl(O,_.path,t,n,i,s,o,a,l);P=U.circular,O=U.value}P&&!w&&((C=a.dereference)==null?void 0:C.circular)==="ignore"&&(O=e),w&&(O.$ref=t);let I={circular:P,value:O};return Object.keys(e).length===1&&s.set(y,I),I}function T0(e,r,t){if(r.circular=!0,!t.dereference.circular)throw Mq.ono.reference(`Circular $ref pointer found at ${e}`);return!0}});var C0=j(Ol=>{"use strict";p();m();h();Object.defineProperty(Ol,"__esModule",{value:!0});function Uq(){return typeof S=="object"&&typeof S.nextTick=="function"?S.nextTick:typeof setImmediate=="function"?setImmediate:function(r){setTimeout(r,0)}}Ol.default=Uq()});var M0=j(xi=>{"use strict";p();m();h();var Lq=xi&&xi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xi,"__esModule",{value:!0});xi.default=Fq;var N0=Lq(C0());function Fq(e,r){if(e){r.then(function(t){(0,N0.default)(function(){e(null,t)})},function(t){(0,N0.default)(function(){e(t)})});return}else return r}});var Si=j(F=>{"use strict";p();m();h();var Vq=F&&F.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,i)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),zq=F&&F.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),Hq=F&&F.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&Vq(r,e,t);return zq(r,e),r},Tt=F&&F.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(F,"__esModule",{value:!0});F.getJsonSchemaRefParserDefaultOptions=F.jsonSchemaParserNormalizeArgs=F.dereferenceInternal=F.JSONParserErrorGroup=F.isHandledError=F.UnmatchedParserError=F.ParserError=F.ResolverError=F.MissingPointerError=F.InvalidPointerError=F.JSONParserError=F.UnmatchedResolverError=F.dereference=F.bundle=F.resolve=F.parse=F.$RefParser=void 0;var D0=Tt(n0()),Kq=Tt(vl()),Ei=Tt(x0());F.jsonSchemaParserNormalizeArgs=Ei.default;var Gq=Tt(E0()),Jq=Tt(O0()),U0=Tt(R0());F.dereferenceInternal=U0.default;var kt=Hq(Xe()),Ze=Qe();Object.defineProperty(F,"JSONParserError",{enumerable:!0,get:function(){return Ze.JSONParserError}});Object.defineProperty(F,"InvalidPointerError",{enumerable:!0,get:function(){return Ze.InvalidPointerError}});Object.defineProperty(F,"MissingPointerError",{enumerable:!0,get:function(){return Ze.MissingPointerError}});Object.defineProperty(F,"ResolverError",{enumerable:!0,get:function(){return Ze.ResolverError}});Object.defineProperty(F,"ParserError",{enumerable:!0,get:function(){return Ze.ParserError}});Object.defineProperty(F,"UnmatchedParserError",{enumerable:!0,get:function(){return Ze.UnmatchedParserError}});Object.defineProperty(F,"UnmatchedResolverError",{enumerable:!0,get:function(){return Ze.UnmatchedResolverError}});Object.defineProperty(F,"isHandledError",{enumerable:!0,get:function(){return Ze.isHandledError}});Object.defineProperty(F,"JSONParserErrorGroup",{enumerable:!0,get:function(){return Ze.JSONParserErrorGroup}});var B0=He(),pr=Tt(M0()),Wq=wl();Object.defineProperty(F,"getJsonSchemaRefParserDefaultOptions",{enumerable:!0,get:function(){return Wq.getJsonSchemaRefParserDefaultOptions}});var ot=class e{constructor(){this.schema=null,this.$refs=new D0.default}async parse(){let r=(0,Ei.default)(arguments),t;if(!r.path&&!r.schema){let i=(0,B0.ono)(`Expected a file path, URL, or object. Got ${r.path||r.schema}`);return(0,pr.default)(r.callback,Promise.reject(i))}this.schema=null,this.$refs=new D0.default;let n="http";if(kt.isFileSystemPath(r.path))r.path=kt.fromFileSystemPath(r.path),n="file";else if(!r.path&&r.schema&&"$id"in r.schema&&r.schema.$id){let i=kt.parse(r.schema.$id),s=i.protocol==="https:"?443:80;r.path=`${i.protocol}//${i.hostname}:${s}`}if(r.path=kt.resolve(kt.cwd(),r.path),r.schema&&typeof r.schema=="object"){let i=this.$refs._add(r.path);i.value=r.schema,i.pathType=n,t=Promise.resolve(r.schema)}else t=(0,Kq.default)(r.path,this.$refs,r.options);try{let i=await t;if(i!==null&&typeof i=="object"&&!E.isBuffer(i))return this.schema=i,(0,pr.default)(r.callback,Promise.resolve(this.schema));if(r.options.continueOnError)return this.schema=null,(0,pr.default)(r.callback,Promise.resolve(this.schema));throw B0.ono.syntax(`"${this.$refs._root$Ref.path||i}" is not a valid JSON Schema`)}catch(i){return!r.options.continueOnError||!(0,Ze.isHandledError)(i)?(0,pr.default)(r.callback,Promise.reject(i)):(this.$refs._$refs[kt.stripHash(r.path)]&&this.$refs._$refs[kt.stripHash(r.path)].addError(i),(0,pr.default)(r.callback,Promise.resolve(null)))}}static parse(){let r=new e;return r.parse.apply(r,arguments)}async resolve(){let r=(0,Ei.default)(arguments);try{return await this.parse(r.path,r.schema,r.options),await(0,Gq.default)(this,r.options),Al(this),(0,pr.default)(r.callback,Promise.resolve(this.$refs))}catch(t){return(0,pr.default)(r.callback,Promise.reject(t))}}static resolve(){let r=new e;return r.resolve.apply(r,arguments)}static bundle(){let r=new e;return r.bundle.apply(r,arguments)}async bundle(){let r=(0,Ei.default)(arguments);try{return await this.resolve(r.path,r.schema,r.options),(0,Jq.default)(this,r.options),Al(this),(0,pr.default)(r.callback,Promise.resolve(this.schema))}catch(t){return(0,pr.default)(r.callback,Promise.reject(t))}}static dereference(){let r=new e;return r.dereference.apply(r,arguments)}async dereference(){let r=(0,Ei.default)(arguments);try{return await this.resolve(r.path,r.schema,r.options),(0,U0.default)(this,r.options),Al(this),(0,pr.default)(r.callback,Promise.resolve(this.schema))}catch(t){return(0,pr.default)(r.callback,Promise.reject(t))}}};F.$RefParser=ot;F.default=ot;function Al(e){if(Ze.JSONParserErrorGroup.getParserErrors(e).length>0)throw new Ze.JSONParserErrorGroup(e)}F.parse=ot.parse;F.resolve=ot.resolve;F.bundle=ot.bundle;F.dereference=ot.dereference});var V0=j((w4,F0)=>{"use strict";p();m();h();var{getJsonSchemaRefParserDefaultOptions:Yq}=Si(),Xq=zc(),Qq=Gc();F0.exports=Il;function ql(e,r){if(L0(r)){let t=Object.keys(r).filter(n=>!["__proto__","constructor","prototype"].includes(n));for(let n=0;n{"use strict";p();m();h();function Zq(){return typeof S=="object"&&typeof S.nextTick=="function"?S.nextTick:typeof setImmediate=="function"?setImmediate:function(r){setTimeout(r,0)}}z0.exports=Zq()});var J0=j((q4,G0)=>{"use strict";p();m();h();var K0=H0();G0.exports=function(r,t){if(r){t.then(function(n){K0(function(){r(null,n)})},function(n){K0(function(){r(n)})});return}else return t}});var Q0=j((R4,X0)=>{"use strict";p();m();h();var eI=zc(),rI=Gc(),{jsonSchemaParserNormalizeArgs:W0}=Si(),tI=go(),Y0=V0(),ps=J0(),{ono:hr}=He(),{$RefParser:nI}=Si(),{dereferenceInternal:iI}=Si(),Fr=class extends nI{async parse(r,t,n,i){let s=W0(arguments);s.options=new Y0(s.options);try{let o=await super.parse(s.path,s.schema,s.options);if(o.swagger){if(o.swagger===void 0||o.info===void 0||o.paths===void 0)throw hr.syntax(`${s.path||s.schema} is not a valid Swagger API definition`);if(typeof o.swagger=="number")throw hr.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof o.info.version=="number")throw hr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(o.swagger!=="2.0")throw hr.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 hr.syntax(`${s.path||s.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 hr.syntax(`${s.path||s.schema} is not a valid Openapi API definition`)}else throw hr.syntax(`${s.path||s.schema} is not a valid Openapi API definition`);else{if(typeof o.openapi=="number")throw hr.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof o.info.version=="number")throw hr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(o.openapi)===-1)throw hr.syntax(`Unsupported OpenAPI version: ${o.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}tI.fixOasRelativeServers(o,s.path)}return ps(s.callback,Promise.resolve(o))}catch(o){return ps(s.callback,Promise.reject(o))}}async validate(r,t,n,i){let s=this,o=W0(arguments);o.options=new Y0(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&&(eI(s.api),s.$refs.circular)){if(a===!0)iI(s,o.options);else if(a===!1)throw hr.reference("The API contains circular references")}return o.options.validate.spec&&rI(s.api),ps(o.callback,Promise.resolve(s.schema))}catch(l){return ps(o.callback,Promise.reject(l))}}};Object.defineProperty(Fr.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});var Er=Fr;Er.validate=(...e)=>new Fr().validate(...e);Er.dereference=(...e)=>new Fr().dereference(...e);Er.bundle=(...e)=>new Fr().bundle(...e);Er.parse=(...e)=>new Fr().parse(...e);Er.resolve=(...e)=>new Fr().resolve(...e);Er.default=Er;Er.SwaggerParser=Er;X0.exports=Er});var tv=j((D4,rv)=>{"use strict";p();m();h();var hs=ht(),ji=sa(),ms=Gi(),{ono:Z0}=He(),oI=Q0(),Oi=null,ev={parse:0,resolve:0,bundle:0,dereference:0,validate:0};rv.exports=sI;function sI(){hs.form.on("submit",e=>{e.preventDefault(),aI()}),$("#clear").on("click",()=>{Oi=null,ji.clearResults(),ms.trackEvent("results","clear")})}function aI(){try{ji.clearResults(),Oi=Oi||new oI;let e=hs.getOptions(),r=hs.method.button.val(),t=hs.getAPI();Oi[r](t,e).then(()=>{let n=Oi.$refs.values();Object.keys(n).forEach(i=>{ji.showResult(i,n[i])})}).catch(n=>{ji.showError(Z0(n)),ms.trackError(n)}),ev[r]++,ms.trackEvent("button","click",r,ev[r])}catch(e){ji.showError(Z0(e)),ms.trackError(e)}}});p();m();h();var uI=ht(),cI=Pp(),lI=jp(),fI=sa(),dI=kp(),pI=tv(),hI=Gi();$(()=>{uI(),cI(),lI(),fI(),dI(),pI(),hI()});})(); + `)}`));if(!("location"in i.headers)||!i.headers.location)throw(0,cs.ono)({status:i.status},`HTTP ${i.status} redirect with no location header`);{let s=wi.resolve(e.href,i.headers.location);return $0(s,r,n)}}else{if(i.body){let s=await i.arrayBuffer();return E.from(s)}return E.alloc(0)}}catch(i){throw new v0.ResolverError((0,cs.ono)(i,`Error downloading ${e.href}`),e.href)}}async function lq(e,r){let t,n;r.timeout&&(t=new AbortController,n=setTimeout(()=>t.abort(),r.timeout));let i=await fetch(e,{method:"GET",headers:r.headers||{},credentials:r.withCredentials?"include":"same-origin",signal:t?t.signal:null});return n&&clearTimeout(n),i}});var wl=j(Lr=>{"use strict";p();m();h();var vn=Lr&&Lr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Lr,"__esModule",{value:!0});Lr.getNewOptions=Lr.getJsonSchemaRefParserDefaultOptions=void 0;var fq=vn(u0()),dq=vn(c0()),pq=vn(l0()),hq=vn(f0()),mq=vn(g0()),yq=vn(_0()),gq=()=>({parse:{json:{...fq.default},yaml:{...dq.default},text:{...pq.default},binary:{...hq.default}},resolve:{file:{...mq.default},http:{...yq.default},external:!0},continueOnError:!1,dereference:{circular:!0,excludedPathMatcher:()=>!1,referenceResolution:"relative"},mutateInputSchema:!0});Lr.getJsonSchemaRefParserDefaultOptions=gq;var vq=e=>{let r=(0,Lr.getJsonSchemaRefParserDefaultOptions)();return e&&w0(r,e),r};Lr.getNewOptions=vq;function w0(e,r){if(b0(r)){let t=Object.keys(r).filter(n=>!["__proto__","constructor","prototype"].includes(n));for(let n=0;n{"use strict";p();m();h();Object.defineProperty(ls,"__esModule",{value:!0});ls.normalizeArgs=P0;var $q=wl();function P0(e){let r,t,n,i,s=Array.prototype.slice.call(e);typeof s[s.length-1]=="function"&&(i=s.pop()),typeof s[0]=="string"?(r=s[0],typeof s[2]=="object"?(t=s[1],n=s[2]):(t=void 0,n=s[1])):(r="",t=s[0],n=s[1]);try{n=(0,$q.getNewOptions)(n)}catch(o){console.error(`JSON Schema Ref Parser: Error normalizing options: ${o}`)}return!n.mutateInputSchema&&typeof t=="object"&&(t=JSON.parse(JSON.stringify(t))),{path:r,schema:t,options:n,callback:i}}ls.default=P0});var E0=j(lr=>{"use strict";p();m();h();var _q=lr&&lr.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,i)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),bq=lr&&lr.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),wq=lr&&lr.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&_q(r,e,t);return bq(r,e),r},Pl=lr&&lr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(lr,"__esModule",{value:!0});var Pq=Pl(yn()),xq=Pl($i()),Eq=Pl(vl()),$n=wq(Xe()),Sq=Qe();function jq(e,r){var t;if(!((t=r.resolve)!=null&&t.external))return Promise.resolve();try{let n=xl(e.schema,e.$refs._root$Ref.path+"#",e.$refs,r);return Promise.all(n)}catch(n){return Promise.reject(n)}}function xl(e,r,t,n,i,s){i||(i=new Set);let o=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)&&!i.has(e)){i.add(e),Pq.default.isExternal$Ref(e)&&o.push(Oq(e,r,t,n));let a=Object.keys(e);for(let l of a){let f=xq.default.join(r,l),g=e[l];o=o.concat(xl(g,f,t,n,i,s))}}return o}async function Oq(e,r,t,n){var l;let i=((l=n.dereference)==null?void 0:l.externalReferenceResolution)==="root",s=$n.resolve(i?$n.cwd():r,e.$ref),o=$n.stripHash(s),a=t._$refs[o];if(a)return Promise.resolve(a.value);try{let f=await(0,Eq.default)(s,t,n),g=xl(f,o+"#",t,n,new Set,!0);return Promise.all(g)}catch(f){if(!(n!=null&&n.continueOnError)||!(0,Sq.isHandledError)(f))throw f;return t._$refs[o]&&(f.source=decodeURI($n.stripHash(r)),f.path=$n.safePointerToPath($n.getHash(r))),[]}}lr.default=jq});var O0=j(fr=>{"use strict";p();m();h();var Aq=fr&&fr.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,i)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),qq=fr&&fr.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),Iq=fr&&fr.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&Aq(r,e,t);return qq(r,e),r},j0=fr&&fr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fr,"__esModule",{value:!0});var fs=j0(yn()),Pi=j0($i()),El=Iq(Xe());function kq(e,r){let t=[];Sl(e,"schema",e.$refs._root$Ref.path+"#","#",0,t,e.$refs,r),Tq(t)}function Sl(e,r,t,n,i,s,o,a){let l=r===null?e:e[r];if(l&&typeof l=="object"&&!ArrayBuffer.isView(l))if(fs.default.isAllowed$Ref(l))S0(e,r,t,n,i,s,o,a);else{let f=Object.keys(l).sort((g,y)=>g==="definitions"?-1:y==="definitions"?1:g.length-y.length);for(let g of f){let y=Pi.default.join(t,g),b=Pi.default.join(n,g),_=l[g];fs.default.isAllowed$Ref(_)?S0(l,g,t,b,i,s,o,a):Sl(l,g,y,b,i,s,o,a)}}}function S0(e,r,t,n,i,s,o,a){let l=r===null?e:e[r],f=El.resolve(t,l.$ref),g=o._resolve(f,n,a);if(g===null)return;let b=Pi.default.parse(n).length,_=El.stripHash(g.path),w=El.getHash(g.path),P=_!==o._root$Ref.path,O=fs.default.isExtended$Ref(l);i+=g.indirections;let I=Rq(s,e,r);if(I)if(b{if(i.file!==s.file)return i.file{"use strict";p();m();h();var Nq=dr&&dr.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,i)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),Mq=dr&&dr.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),Dq=dr&&dr.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&Nq(r,e,t);return Mq(r,e),r},k0=dr&&dr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(dr,"__esModule",{value:!0});var ds=k0(yn()),A0=k0($i()),Bq=He(),q0=Dq(Xe()),Uq=Qe();dr.default=Lq;function Lq(e,r){let t=Date.now(),n=jl(e.schema,e.$refs._root$Ref.path,"#",new Set,new Set,new Map,e.$refs,r,t);e.$refs.circular=n.circular,e.schema=n.value}function jl(e,r,t,n,i,s,o,a,l){var _;let f,g={value:e,circular:!1};if(a&&a.timeoutMs&&Date.now()-l>a.timeoutMs)throw new Uq.TimeoutError(a.timeoutMs);let y=a.dereference||{},b=y.excludedPathMatcher||(()=>!1);if(((y==null?void 0:y.circular)==="ignore"||!i.has(e))&&e&&typeof e=="object"&&!ArrayBuffer.isView(e)&&!b(t)){if(n.add(e),i.add(e),ds.default.isAllowed$Ref(e,a))f=I0(e,r,t,n,i,s,o,a,l),g.circular=f.circular,g.value=f.value;else for(let w of Object.keys(e)){let P=A0.default.join(r,w),O=A0.default.join(t,w);if(b(O))continue;let I=e[w],R=!1;ds.default.isAllowed$Ref(I,a)?(f=I0(I,P,O,n,i,s,o,a,l),R=f.circular,e[w]!==f.value&&(e[w]=f.value,(_=y==null?void 0:y.onDereference)==null||_.call(y,I.$ref,e[w],e,w))):n.has(I)?R=T0(P,o,a):(f=jl(I,P,O,n,i,s,o,a,l),R=f.circular,e[w]!==f.value&&(e[w]=f.value)),g.circular=g.circular||R}n.delete(e)}return g}function I0(e,r,t,n,i,s,o,a,l){var R,C;let g=ds.default.isExternal$Ref(e)&&((R=a==null?void 0:a.dereference)==null?void 0:R.externalReferenceResolution)==="root",y=q0.resolve(g?q0.cwd():r,e.$ref),b=s.get(y);if(b&&!b.circular){let U=Object.keys(e);if(U.length>1){let N={};for(let ve of U)ve!=="$ref"&&!(ve in b.value)&&(N[ve]=e[ve]);return{circular:b.circular,value:Object.assign({},b.value,N)}}return b}let _=o._resolve(y,r,a);if(_===null)return{circular:!1,value:null};let w=_.circular,P=w||n.has(_.value);P&&T0(r,o,a);let O=ds.default.dereference(e,_.value);if(!P){let U=jl(O,_.path,t,n,i,s,o,a,l);P=U.circular,O=U.value}P&&!w&&((C=a.dereference)==null?void 0:C.circular)==="ignore"&&(O=e),w&&(O.$ref=t);let I={circular:P,value:O};return Object.keys(e).length===1&&s.set(y,I),I}function T0(e,r,t){if(r.circular=!0,!t.dereference.circular)throw Bq.ono.reference(`Circular $ref pointer found at ${e}`);return!0}});var C0=j(Ol=>{"use strict";p();m();h();Object.defineProperty(Ol,"__esModule",{value:!0});function Fq(){return typeof S=="object"&&typeof S.nextTick=="function"?S.nextTick:typeof setImmediate=="function"?setImmediate:function(r){setTimeout(r,0)}}Ol.default=Fq()});var M0=j(xi=>{"use strict";p();m();h();var Vq=xi&&xi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xi,"__esModule",{value:!0});xi.default=zq;var N0=Vq(C0());function zq(e,r){if(e){r.then(function(t){(0,N0.default)(function(){e(null,t)})},function(t){(0,N0.default)(function(){e(t)})});return}else return r}});var Si=j(F=>{"use strict";p();m();h();var Hq=F&&F.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,i)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),Kq=F&&F.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),Gq=F&&F.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&Hq(r,e,t);return Kq(r,e),r},Tt=F&&F.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(F,"__esModule",{value:!0});F.getJsonSchemaRefParserDefaultOptions=F.jsonSchemaParserNormalizeArgs=F.dereferenceInternal=F.JSONParserErrorGroup=F.isHandledError=F.UnmatchedParserError=F.ParserError=F.ResolverError=F.MissingPointerError=F.InvalidPointerError=F.JSONParserError=F.UnmatchedResolverError=F.dereference=F.bundle=F.resolve=F.parse=F.$RefParser=void 0;var D0=Tt(n0()),Jq=Tt(vl()),Ei=Tt(x0());F.jsonSchemaParserNormalizeArgs=Ei.default;var Wq=Tt(E0()),Yq=Tt(O0()),U0=Tt(R0());F.dereferenceInternal=U0.default;var kt=Gq(Xe()),Ze=Qe();Object.defineProperty(F,"JSONParserError",{enumerable:!0,get:function(){return Ze.JSONParserError}});Object.defineProperty(F,"InvalidPointerError",{enumerable:!0,get:function(){return Ze.InvalidPointerError}});Object.defineProperty(F,"MissingPointerError",{enumerable:!0,get:function(){return Ze.MissingPointerError}});Object.defineProperty(F,"ResolverError",{enumerable:!0,get:function(){return Ze.ResolverError}});Object.defineProperty(F,"ParserError",{enumerable:!0,get:function(){return Ze.ParserError}});Object.defineProperty(F,"UnmatchedParserError",{enumerable:!0,get:function(){return Ze.UnmatchedParserError}});Object.defineProperty(F,"UnmatchedResolverError",{enumerable:!0,get:function(){return Ze.UnmatchedResolverError}});Object.defineProperty(F,"isHandledError",{enumerable:!0,get:function(){return Ze.isHandledError}});Object.defineProperty(F,"JSONParserErrorGroup",{enumerable:!0,get:function(){return Ze.JSONParserErrorGroup}});var B0=He(),pr=Tt(M0()),Xq=wl();Object.defineProperty(F,"getJsonSchemaRefParserDefaultOptions",{enumerable:!0,get:function(){return Xq.getJsonSchemaRefParserDefaultOptions}});var ot=class e{constructor(){this.schema=null,this.$refs=new D0.default}async parse(){let r=(0,Ei.default)(arguments),t;if(!r.path&&!r.schema){let i=(0,B0.ono)(`Expected a file path, URL, or object. Got ${r.path||r.schema}`);return(0,pr.default)(r.callback,Promise.reject(i))}this.schema=null,this.$refs=new D0.default;let n="http";if(kt.isFileSystemPath(r.path))r.path=kt.fromFileSystemPath(r.path),n="file";else if(!r.path&&r.schema&&"$id"in r.schema&&r.schema.$id){let i=kt.parse(r.schema.$id),s=i.protocol==="https:"?443:80;r.path=`${i.protocol}//${i.hostname}:${s}`}if(r.path=kt.resolve(kt.cwd(),r.path),r.schema&&typeof r.schema=="object"){let i=this.$refs._add(r.path);i.value=r.schema,i.pathType=n,t=Promise.resolve(r.schema)}else t=(0,Jq.default)(r.path,this.$refs,r.options);try{let i=await t;if(i!==null&&typeof i=="object"&&!E.isBuffer(i))return this.schema=i,(0,pr.default)(r.callback,Promise.resolve(this.schema));if(r.options.continueOnError)return this.schema=null,(0,pr.default)(r.callback,Promise.resolve(this.schema));throw B0.ono.syntax(`"${this.$refs._root$Ref.path||i}" is not a valid JSON Schema`)}catch(i){return!r.options.continueOnError||!(0,Ze.isHandledError)(i)?(0,pr.default)(r.callback,Promise.reject(i)):(this.$refs._$refs[kt.stripHash(r.path)]&&this.$refs._$refs[kt.stripHash(r.path)].addError(i),(0,pr.default)(r.callback,Promise.resolve(null)))}}static parse(){let r=new e;return r.parse.apply(r,arguments)}async resolve(){let r=(0,Ei.default)(arguments);try{return await this.parse(r.path,r.schema,r.options),await(0,Wq.default)(this,r.options),Al(this),(0,pr.default)(r.callback,Promise.resolve(this.$refs))}catch(t){return(0,pr.default)(r.callback,Promise.reject(t))}}static resolve(){let r=new e;return r.resolve.apply(r,arguments)}static bundle(){let r=new e;return r.bundle.apply(r,arguments)}async bundle(){let r=(0,Ei.default)(arguments);try{return await this.resolve(r.path,r.schema,r.options),(0,Yq.default)(this,r.options),Al(this),(0,pr.default)(r.callback,Promise.resolve(this.schema))}catch(t){return(0,pr.default)(r.callback,Promise.reject(t))}}static dereference(){let r=new e;return r.dereference.apply(r,arguments)}async dereference(){let r=(0,Ei.default)(arguments);try{return await this.resolve(r.path,r.schema,r.options),(0,U0.default)(this,r.options),Al(this),(0,pr.default)(r.callback,Promise.resolve(this.schema))}catch(t){return(0,pr.default)(r.callback,Promise.reject(t))}}};F.$RefParser=ot;F.default=ot;function Al(e){if(Ze.JSONParserErrorGroup.getParserErrors(e).length>0)throw new Ze.JSONParserErrorGroup(e)}F.parse=ot.parse;F.resolve=ot.resolve;F.bundle=ot.bundle;F.dereference=ot.dereference});var V0=j((E4,F0)=>{"use strict";p();m();h();var{getJsonSchemaRefParserDefaultOptions:Qq}=Si(),Zq=zc(),eI=Gc();F0.exports=Il;function ql(e,r){if(L0(r)){let t=Object.keys(r).filter(n=>!["__proto__","constructor","prototype"].includes(n));for(let n=0;n{"use strict";p();m();h();function rI(){return typeof S=="object"&&typeof S.nextTick=="function"?S.nextTick:typeof setImmediate=="function"?setImmediate:function(r){setTimeout(r,0)}}z0.exports=rI()});var J0=j((T4,G0)=>{"use strict";p();m();h();var K0=H0();G0.exports=function(r,t){if(r){t.then(function(n){K0(function(){r(null,n)})},function(n){K0(function(){r(n)})});return}else return t}});var ev=j((M4,Z0)=>{"use strict";p();m();h();var tI=zc(),nI=Gc(),{jsonSchemaParserNormalizeArgs:W0}=Si(),iI=go(),Y0=V0(),ps=J0(),{ono:hr}=He(),{$RefParser:oI}=Si(),{dereferenceInternal:sI}=Si(),Q0=["3.1.0","3.1.1"],aI=["3.0.0","3.0.1","3.0.2","3.0.3","3.0.4"],X0=[...Q0,...aI],Fr=class extends oI{async parse(r,t,n,i){let s=W0(arguments);s.options=new Y0(s.options);try{let o=await super.parse(s.path,s.schema,s.options);if(o.swagger){if(o.swagger===void 0||o.info===void 0||o.paths===void 0)throw hr.syntax(`${s.path||s.schema} is not a valid Swagger API definition`);if(typeof o.swagger=="number")throw hr.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof o.info.version=="number")throw hr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(o.swagger!=="2.0")throw hr.syntax(`Unrecognized Swagger version: ${o.swagger}. Expected 2.0`)}else{if(o.openapi===void 0||o.info===void 0)throw hr.syntax(`${s.path||s.schema} is not a valid Openapi API definition`);if(o.paths===void 0)if(Q0.indexOf(o.openapi)!==-1){if(o.webhooks===void 0)throw hr.syntax(`${s.path||s.schema} is not a valid Openapi API definition`)}else throw hr.syntax(`${s.path||s.schema} is not a valid Openapi API definition`);else{if(typeof o.openapi=="number")throw hr.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof o.info.version=="number")throw hr.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(X0.indexOf(o.openapi)===-1)throw hr.syntax(`Unsupported OpenAPI version: ${o.openapi}. Swagger Parser only supports versions ${X0.join(", ")}`)}iI.fixOasRelativeServers(o,s.path)}return ps(s.callback,Promise.resolve(o))}catch(o){return ps(s.callback,Promise.reject(o))}}async validate(r,t,n,i){let s=this,o=W0(arguments);o.options=new Y0(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&&(tI(s.api),s.$refs.circular)){if(a===!0)sI(s,o.options);else if(a===!1)throw hr.reference("The API contains circular references")}return o.options.validate.spec&&nI(s.api),ps(o.callback,Promise.resolve(s.schema))}catch(l){return ps(o.callback,Promise.reject(l))}}};Object.defineProperty(Fr.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});var Er=Fr;Er.validate=(...e)=>new Fr().validate(...e);Er.dereference=(...e)=>new Fr().dereference(...e);Er.bundle=(...e)=>new Fr().bundle(...e);Er.parse=(...e)=>new Fr().parse(...e);Er.resolve=(...e)=>new Fr().resolve(...e);Er.default=Er;Er.SwaggerParser=Er;Z0.exports=Er});var iv=j((L4,nv)=>{"use strict";p();m();h();var hs=ht(),ji=sa(),ms=Gi(),{ono:rv}=He(),uI=ev(),Oi=null,tv={parse:0,resolve:0,bundle:0,dereference:0,validate:0};nv.exports=cI;function cI(){hs.form.on("submit",e=>{e.preventDefault(),lI()}),$("#clear").on("click",()=>{Oi=null,ji.clearResults(),ms.trackEvent("results","clear")})}function lI(){try{ji.clearResults(),Oi=Oi||new uI;let e=hs.getOptions(),r=hs.method.button.val(),t=hs.getAPI();Oi[r](t,e).then(()=>{let n=Oi.$refs.values();Object.keys(n).forEach(i=>{ji.showResult(i,n[i])})}).catch(n=>{ji.showError(rv(n)),ms.trackError(n)}),tv[r]++,ms.trackEvent("button","click",r,tv[r])}catch(e){ji.showError(rv(e)),ms.trackError(e)}}});p();m();h();var fI=ht(),dI=Pp(),pI=jp(),hI=sa(),mI=kp(),yI=iv(),gI=Gi();$(()=>{fI(),dI(),pI(),hI(),mI(),yI(),gI()});})(); /*! Bundled license information: @jspm/core/nodelibs/browser/buffer.js: diff --git a/online/js/bundle.js.map b/online/js/bundle.js.map index d14f5897..9cf6ad6b 100644 --- a/online/js/bundle.js.map +++ b/online/js/bundle.js.map @@ -1,7 +1,7 @@ { "version": 3, "sources": ["../../node_modules/esbuild-plugin-polyfill-node/polyfills/__dirname.js", "../../node_modules/@jspm/core/nodelibs/browser/process.js", "../../node_modules/esbuild-plugin-polyfill-node/polyfills/process.js", "../../node_modules/@jspm/core/nodelibs/browser/buffer.js", "../../node_modules/esbuild-plugin-polyfill-node/polyfills/buffer.js", "../../node_modules/js-yaml/lib/common.js", "../../node_modules/js-yaml/lib/exception.js", "../../node_modules/js-yaml/lib/snippet.js", "../../node_modules/js-yaml/lib/type.js", "../../node_modules/js-yaml/lib/schema.js", "../../node_modules/js-yaml/lib/type/str.js", "../../node_modules/js-yaml/lib/type/seq.js", "../../node_modules/js-yaml/lib/type/map.js", "../../node_modules/js-yaml/lib/schema/failsafe.js", "../../node_modules/js-yaml/lib/type/null.js", "../../node_modules/js-yaml/lib/type/bool.js", "../../node_modules/js-yaml/lib/type/int.js", "../../node_modules/js-yaml/lib/type/float.js", "../../node_modules/js-yaml/lib/schema/json.js", "../../node_modules/js-yaml/lib/schema/core.js", "../../node_modules/js-yaml/lib/type/timestamp.js", "../../node_modules/js-yaml/lib/type/merge.js", "../../node_modules/js-yaml/lib/type/binary.js", "../../node_modules/js-yaml/lib/type/omap.js", "../../node_modules/js-yaml/lib/type/pairs.js", "../../node_modules/js-yaml/lib/type/set.js", "../../node_modules/js-yaml/lib/schema/default.js", "../../node_modules/js-yaml/lib/loader.js", "../../node_modules/js-yaml/lib/dumper.js", "../../node_modules/js-yaml/index.js", "../src/js/form.js", "../src/js/querystring.js", "../src/js/analytics.js", "../src/js/dropdowns.js", "../src/js/editors.js", "../src/js/samples.js", "../../node_modules/@jsdevtools/ono/src/isomorphic.browser.ts", "../../node_modules/@jsdevtools/ono/src/stack.ts", "../../node_modules/@jsdevtools/ono/src/to-json.ts", "../../node_modules/@jsdevtools/ono/src/extend-error.ts", "../../node_modules/@jsdevtools/ono/src/normalize.ts", "../../node_modules/@jsdevtools/ono/src/constructor.ts", "../../node_modules/@jsdevtools/ono/src/singleton.ts", "../../node_modules/@jspm/core/nodelibs/browser/chunk-5decc758.js", "../../node_modules/@jspm/core/nodelibs/browser/chunk-b4205b57.js", "../../node_modules/@jspm/core/nodelibs/browser/chunk-ce0fbc82.js", "../../node_modules/@jspm/core/nodelibs/browser/util.js", "../../node_modules/@jsdevtools/ono/src/types.ts", "../../node_modules/@jsdevtools/ono/src/index.ts", "../../lib/util.js", "../../node_modules/ajv/lib/compile/codegen/code.ts", "../../node_modules/ajv/lib/compile/codegen/scope.ts", "../../node_modules/ajv/lib/compile/codegen/index.ts", "../../node_modules/ajv/lib/compile/util.ts", "../../node_modules/ajv/lib/compile/names.ts", "../../node_modules/ajv/lib/compile/errors.ts", "../../node_modules/ajv/lib/compile/validate/boolSchema.ts", "../../node_modules/ajv/lib/compile/rules.ts", "../../node_modules/ajv/lib/compile/validate/applicability.ts", "../../node_modules/ajv/lib/compile/validate/dataType.ts", "../../node_modules/ajv/lib/compile/validate/defaults.ts", "../../node_modules/ajv/lib/vocabularies/code.ts", "../../node_modules/ajv/lib/compile/validate/keyword.ts", "../../node_modules/ajv/lib/compile/validate/subschema.ts", "../../node_modules/fast-deep-equal/index.js", "../../node_modules/json-schema-traverse/index.js", "../../node_modules/ajv/lib/compile/resolve.ts", "../../node_modules/ajv/lib/compile/validate/index.ts", "../../node_modules/ajv/lib/runtime/validation_error.ts", "../../node_modules/ajv/lib/compile/ref_error.ts", "../../node_modules/ajv/lib/compile/index.ts", "../../node_modules/ajv/dist/refs/data.json", "../../node_modules/fast-uri/lib/scopedChars.js", "../../node_modules/fast-uri/lib/utils.js", "../../node_modules/fast-uri/lib/schemes.js", "../../node_modules/fast-uri/index.js", "../../node_modules/ajv/lib/runtime/uri.ts", "../../node_modules/ajv/lib/core.ts", "../../node_modules/ajv/lib/vocabularies/core/ref.ts", "../../node_modules/ajv-draft-04/src/vocabulary/core.ts", "../../node_modules/ajv-draft-04/src/vocabulary/validation/limitNumber.ts", "../../node_modules/ajv-draft-04/src/vocabulary/validation/limitNumberExclusive.ts", "../../node_modules/ajv/lib/vocabularies/validation/multipleOf.ts", "../../node_modules/ajv/lib/runtime/ucs2length.ts", "../../node_modules/ajv/lib/vocabularies/validation/limitLength.ts", "../../node_modules/ajv/lib/vocabularies/validation/pattern.ts", "../../node_modules/ajv/lib/vocabularies/validation/limitProperties.ts", "../../node_modules/ajv/lib/vocabularies/validation/required.ts", "../../node_modules/ajv/lib/vocabularies/validation/limitItems.ts", "../../node_modules/ajv/lib/runtime/equal.ts", "../../node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts", "../../node_modules/ajv/lib/vocabularies/validation/const.ts", "../../node_modules/ajv/lib/vocabularies/validation/enum.ts", "../../node_modules/ajv-draft-04/src/vocabulary/validation/index.ts", "../../node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts", "../../node_modules/ajv/lib/vocabularies/applicator/items.ts", "../../node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts", "../../node_modules/ajv/lib/vocabularies/applicator/items2020.ts", "../../node_modules/ajv/lib/vocabularies/applicator/contains.ts", "../../node_modules/ajv/lib/vocabularies/applicator/dependencies.ts", "../../node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts", "../../node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts", "../../node_modules/ajv/lib/vocabularies/applicator/properties.ts", "../../node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts", "../../node_modules/ajv/lib/vocabularies/applicator/not.ts", "../../node_modules/ajv/lib/vocabularies/applicator/anyOf.ts", "../../node_modules/ajv/lib/vocabularies/applicator/oneOf.ts", "../../node_modules/ajv/lib/vocabularies/applicator/allOf.ts", "../../node_modules/ajv/lib/vocabularies/applicator/if.ts", "../../node_modules/ajv/lib/vocabularies/applicator/thenElse.ts", "../../node_modules/ajv/lib/vocabularies/applicator/index.ts", "../../node_modules/ajv/lib/vocabularies/format/format.ts", "../../node_modules/ajv/lib/vocabularies/format/index.ts", "../../node_modules/ajv-draft-04/src/vocabulary/draft4.ts", "../../node_modules/ajv/lib/vocabularies/discriminator/types.ts", "../../node_modules/ajv/lib/vocabularies/discriminator/index.ts", "../../node_modules/ajv-draft-04/dist/refs/json-schema-draft-04.json", "../../node_modules/ajv-draft-04/src/index.ts", "../../node_modules/ajv/lib/vocabularies/core/id.ts", "../../node_modules/ajv/lib/vocabularies/core/index.ts", "../../node_modules/ajv/lib/vocabularies/validation/limitNumber.ts", "../../node_modules/ajv/lib/vocabularies/validation/index.ts", "../../node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts", "../../node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts", "../../node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts", "../../node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts", "../../node_modules/ajv/lib/vocabularies/dynamic/index.ts", "../../node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts", "../../node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts", "../../node_modules/ajv/lib/vocabularies/validation/limitContains.ts", "../../node_modules/ajv/lib/vocabularies/next.ts", "../../node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts", "../../node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts", "../../node_modules/ajv/lib/vocabularies/unevaluated/index.ts", "../../node_modules/ajv/lib/vocabularies/metadata.ts", "../../node_modules/ajv/lib/vocabularies/draft2020.ts", "../../node_modules/ajv/dist/refs/json-schema-2020-12/schema.json", "../../node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json", "../../node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json", "../../node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json", "../../node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json", "../../node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json", "../../node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json", "../../node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json", "../../node_modules/ajv/lib/refs/json-schema-2020-12/index.ts", "../../node_modules/ajv/lib/2020.ts", "../../node_modules/@apidevtools/openapi-schemas/schemas/v1.2/apiDeclaration.json", "../../node_modules/@apidevtools/openapi-schemas/schemas/v2.0/schema.json", "../../node_modules/@apidevtools/openapi-schemas/schemas/v3.0/schema.json", "../../node_modules/@apidevtools/openapi-schemas/schemas/v3.1/schema.json", "../../node_modules/@apidevtools/openapi-schemas/src/index.ts", "../../lib/validators/schema.js", "../../node_modules/@apidevtools/swagger-methods/lib/index.js", "../../lib/validators/spec.js", "../../node_modules/@jspm/core/nodelibs/browser/chunk-2eac56ff.js", "../../node_modules/@jspm/core/nodelibs/browser/chunk-23dbec7b.js", "../../node_modules/@jspm/core/nodelibs/browser/path.js", "../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/convert-path-to-posix.js", "../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/is-windows.js", "../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/url.js", "../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/errors.js", "../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/pointer.js", "../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/ref.js", "../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/refs.js", "../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/plugins.js", "../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/parse.js", "../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/parsers/json.js", "../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/parsers/yaml.js", "../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/parsers/text.js", "../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/parsers/binary.js", "../../node_modules/esbuild-plugin-polyfill-node/polyfills/empty.js", "../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/resolvers/file.js", "../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/resolvers/http.js", "../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/options.js", "../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/normalize-args.js", "../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/resolve-external.js", "../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/bundle.js", "../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/dereference.js", "../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/next.js", "../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/maybe.js", "../../node_modules/@apidevtools/json-schema-ref-parser/dist/lib/index.js", "../../lib/options.js", "../../node_modules/call-me-maybe/src/next.js", "../../node_modules/call-me-maybe/src/maybe.js", "../../lib/index.js", "../src/js/parser.js", "../src/js/index.js"], - "sourcesContent": ["export const __dirname = \"/\";\n", "function unimplemented(name) {\r\n throw new Error('Node.js process ' + name + ' is not supported by JSPM core outside of Node.js');\r\n}\r\n\r\nvar queue = [];\r\nvar draining = false;\r\nvar currentQueue;\r\nvar queueIndex = -1;\r\n\r\nfunction cleanUpNextTick() {\r\n if (!draining || !currentQueue)\r\n return;\r\n draining = false;\r\n if (currentQueue.length) {\r\n queue = currentQueue.concat(queue);\r\n }\r\n else {\r\n queueIndex = -1;\r\n }\r\n if (queue.length)\r\n drainQueue();\r\n}\r\n\r\nfunction drainQueue() {\r\n if (draining)\r\n return;\r\n var timeout = setTimeout(cleanUpNextTick, 0);\r\n draining = true;\r\n\r\n var len = queue.length;\r\n while(len) {\r\n currentQueue = queue;\r\n queue = [];\r\n while (++queueIndex < len) {\r\n if (currentQueue)\r\n currentQueue[queueIndex].run();\r\n }\r\n queueIndex = -1;\r\n len = queue.length;\r\n }\r\n currentQueue = null;\r\n draining = false;\r\n clearTimeout(timeout);\r\n}\r\n\r\nfunction nextTick (fun) {\r\n var args = new Array(arguments.length - 1);\r\n if (arguments.length > 1) {\r\n for (var i = 1; i < arguments.length; i++)\r\n args[i - 1] = arguments[i];\r\n }\r\n queue.push(new Item(fun, args));\r\n if (queue.length === 1 && !draining)\r\n setTimeout(drainQueue, 0);\r\n}\r\n// v8 likes predictible objects\r\nfunction Item(fun, array) {\r\n this.fun = fun;\r\n this.array = array;\r\n}\r\nItem.prototype.run = function () {\r\n this.fun.apply(null, this.array);\r\n};\r\n\r\nvar title = 'browser';\r\nvar arch = 'x64';\r\nvar platform = 'browser';\r\nvar env = {\r\n PATH: '/usr/bin',\r\n LANG: navigator.language + '.UTF-8',\r\n PWD: '/',\r\n HOME: '/home',\r\n TMP: '/tmp',\r\n};\r\nvar argv = ['/usr/bin/node'];\r\nvar execArgv = [];\r\nvar version = 'v16.8.0';\r\nvar versions = {};\r\n\r\nvar emitWarning = function(message, type) {\r\n console.warn((type ? (type + ': ') : '') + message);\r\n};\r\n\r\nvar binding = function(name) { unimplemented('binding'); };\r\n\r\nvar umask = function(mask) { return 0; };\r\n\r\nvar cwd = function() { return '/'; };\r\nvar chdir = function(dir) {};\r\n\r\nvar release = {\r\n name: 'node',\r\n sourceUrl: '',\r\n headersUrl: '',\r\n libUrl: '',\r\n};\r\n\r\nfunction noop() {}\r\n\r\nvar _rawDebug = noop;\r\nvar moduleLoadList = [];\r\nfunction _linkedBinding(name) { unimplemented('_linkedBinding'); }\r\nvar domain = {};\r\nvar _exiting = false;\r\nvar config = {};\r\nfunction dlopen(name) { unimplemented('dlopen'); }\r\nfunction _getActiveRequests() { return []; }\r\nfunction _getActiveHandles() { return []; }\r\nvar reallyExit = noop;\r\nvar _kill = noop;\r\nvar cpuUsage = function() { return {}; };\r\nvar resourceUsage = cpuUsage;\r\nvar memoryUsage = cpuUsage;\r\nvar kill = noop;\r\nvar exit = noop;\r\nvar openStdin = noop;\r\nvar allowedNodeEnvironmentFlags = {};\r\nfunction assert(condition, message) {\r\n if (!condition) throw new Error(message || 'assertion error');\r\n}\r\nvar features = {\r\n inspector: false,\r\n debug: false,\r\n uv: false,\r\n ipv6: false,\r\n tls_alpn: false,\r\n tls_sni: false,\r\n tls_ocsp: false,\r\n tls: false,\r\n cached_builtins: true,\r\n};\r\nvar _fatalExceptions = noop;\r\nvar setUncaughtExceptionCaptureCallback = noop;\r\nfunction hasUncaughtExceptionCaptureCallback() { return false; }var _tickCallback = noop;\r\nvar _debugProcess = noop;\r\nvar _debugEnd = noop;\r\nvar _startProfilerIdleNotifier = noop;\r\nvar _stopProfilerIdleNotifier = noop;\r\nvar stdout = undefined;\r\nvar stderr = undefined;\r\nvar stdin = undefined;\r\nvar abort = noop;\r\nvar pid = 2;\r\nvar ppid = 1;\r\nvar execPath = '/bin/usr/node';\r\nvar debugPort = 9229;\r\nvar argv0 = 'node';\r\nvar _preload_modules = [];\r\nvar setSourceMapsEnabled = noop;\r\n\r\nvar _performance = {\r\n now: typeof performance !== 'undefined' ? performance.now.bind(performance) : undefined,\r\n timing: typeof performance !== 'undefined' ? performance.timing : undefined,\r\n};\r\nif (_performance.now === undefined) {\r\n var nowOffset = Date.now();\r\n\r\n if (_performance.timing && _performance.timing.navigationStart) {\r\n nowOffset = _performance.timing.navigationStart;\r\n }\r\n _performance.now = () => Date.now() - nowOffset;\r\n}\r\n\r\nfunction uptime() {\r\n return _performance.now() / 1000;\r\n}\r\n\r\nvar nanoPerSec = 1000000000;\r\nfunction hrtime(previousTimestamp) {\r\n var baseNow = Math.floor((Date.now() - _performance.now()) * 1e-3);\r\n var clocktime = _performance.now() * 1e-3;\r\n var seconds = Math.floor(clocktime) + baseNow;\r\n var nanoseconds = Math.floor((clocktime % 1) * 1e9);\r\n if (previousTimestamp) {\r\n seconds = seconds - previousTimestamp[0];\r\n nanoseconds = nanoseconds - previousTimestamp[1];\r\n if (nanoseconds < 0) {\r\n seconds--;\r\n nanoseconds += nanoPerSec;\r\n }\r\n }\r\n return [seconds, nanoseconds];\r\n}hrtime.bigint = function(time) {\r\n var diff = hrtime(time);\r\n if (typeof BigInt === 'undefined') {\r\n return diff[0] * nanoPerSec + diff[1];\r\n }\r\n return BigInt(diff[0] * nanoPerSec) + BigInt(diff[1]);\r\n};\r\n\r\nvar _maxListeners = 10;\r\nvar _events = {};\r\nvar _eventsCount = 0;\r\nfunction on () { return process }var addListener = on;\r\nvar once = on;\r\nvar off = on;\r\nvar removeListener = on;\r\nvar removeAllListeners = on;\r\nvar emit = noop;\r\nvar prependListener = on;\r\nvar prependOnceListener = on;\r\nfunction listeners (name) { return []; }\r\nvar process = {\r\n version,\r\n versions,\r\n arch,\r\n platform,\r\n release,\r\n _rawDebug,\r\n moduleLoadList,\r\n binding,\r\n _linkedBinding,\r\n _events,\r\n _eventsCount,\r\n _maxListeners,\r\n on,\r\n addListener,\r\n once,\r\n off,\r\n removeListener,\r\n removeAllListeners,\r\n emit,\r\n prependListener,\r\n prependOnceListener,\r\n listeners,\r\n domain,\r\n _exiting,\r\n config,\r\n dlopen,\r\n uptime,\r\n _getActiveRequests,\r\n _getActiveHandles,\r\n reallyExit,\r\n _kill,\r\n cpuUsage,\r\n resourceUsage,\r\n memoryUsage,\r\n kill,\r\n exit,\r\n openStdin,\r\n allowedNodeEnvironmentFlags,\r\n assert,\r\n features,\r\n _fatalExceptions,\r\n setUncaughtExceptionCaptureCallback,\r\n hasUncaughtExceptionCaptureCallback,\r\n emitWarning,\r\n nextTick,\r\n _tickCallback,\r\n _debugProcess,\r\n _debugEnd,\r\n _startProfilerIdleNotifier,\r\n _stopProfilerIdleNotifier,\r\n stdout,\r\n stdin,\r\n stderr,\r\n abort,\r\n umask,\r\n chdir,\r\n cwd,\r\n env,\r\n title,\r\n argv,\r\n execArgv,\r\n pid,\r\n ppid,\r\n execPath,\r\n debugPort,\r\n hrtime,\r\n argv0,\r\n _preload_modules,\r\n setSourceMapsEnabled,\r\n};\n\nexport { _debugEnd, _debugProcess, _events, _eventsCount, _exiting, _fatalExceptions, _getActiveHandles, _getActiveRequests, _kill, _linkedBinding, _maxListeners, _preload_modules, _rawDebug, _startProfilerIdleNotifier, _stopProfilerIdleNotifier, _tickCallback, abort, addListener, allowedNodeEnvironmentFlags, arch, argv, argv0, assert, binding, chdir, config, cpuUsage, cwd, debugPort, process as default, dlopen, domain, emit, emitWarning, env, execArgv, execPath, exit, features, hasUncaughtExceptionCaptureCallback, hrtime, kill, listeners, memoryUsage, moduleLoadList, nextTick, off, on, once, openStdin, pid, platform, ppid, prependListener, prependOnceListener, reallyExit, release, removeAllListeners, removeListener, resourceUsage, setSourceMapsEnabled, setUncaughtExceptionCaptureCallback, stderr, stdin, stdout, title, umask, uptime, version, versions };\n", "export * as process from \"process\";\n", "var exports$3 = {},\n _dewExec$2 = false;\nfunction dew$2() {\n if (_dewExec$2) return exports$3;\n _dewExec$2 = true;\n exports$3.byteLength = byteLength;\n exports$3.toByteArray = toByteArray;\n exports$3.fromByteArray = fromByteArray;\n var lookup = [];\n var revLookup = [];\n var Arr = typeof Uint8Array !== \"undefined\" ? Uint8Array : Array;\n var code = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n\n for (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i];\n revLookup[code.charCodeAt(i)] = i;\n } // Support decoding URL-safe base64 strings, as Node.js does.\n // See: https://en.wikipedia.org/wiki/Base64#URL_applications\n\n\n revLookup[\"-\".charCodeAt(0)] = 62;\n revLookup[\"_\".charCodeAt(0)] = 63;\n\n function getLens(b64) {\n var len = b64.length;\n\n if (len % 4 > 0) {\n throw new Error(\"Invalid string. Length must be a multiple of 4\");\n } // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n\n\n var validLen = b64.indexOf(\"=\");\n if (validLen === -1) validLen = len;\n var placeHoldersLen = validLen === len ? 0 : 4 - validLen % 4;\n return [validLen, placeHoldersLen];\n } // base64 is 4/3 + up to two characters of the original data\n\n\n function byteLength(b64) {\n var lens = getLens(b64);\n var validLen = lens[0];\n var placeHoldersLen = lens[1];\n return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;\n }\n\n function _byteLength(b64, validLen, placeHoldersLen) {\n return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;\n }\n\n function toByteArray(b64) {\n var tmp;\n var lens = getLens(b64);\n var validLen = lens[0];\n var placeHoldersLen = lens[1];\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen));\n var curByte = 0; // if there are placeholders, only get up to the last complete 4 chars\n\n var len = placeHoldersLen > 0 ? validLen - 4 : validLen;\n var i;\n\n for (i = 0; i < len; i += 4) {\n tmp = revLookup[b64.charCodeAt(i)] << 18 | revLookup[b64.charCodeAt(i + 1)] << 12 | revLookup[b64.charCodeAt(i + 2)] << 6 | revLookup[b64.charCodeAt(i + 3)];\n arr[curByte++] = tmp >> 16 & 255;\n arr[curByte++] = tmp >> 8 & 255;\n arr[curByte++] = tmp & 255;\n }\n\n if (placeHoldersLen === 2) {\n tmp = revLookup[b64.charCodeAt(i)] << 2 | revLookup[b64.charCodeAt(i + 1)] >> 4;\n arr[curByte++] = tmp & 255;\n }\n\n if (placeHoldersLen === 1) {\n tmp = revLookup[b64.charCodeAt(i)] << 10 | revLookup[b64.charCodeAt(i + 1)] << 4 | revLookup[b64.charCodeAt(i + 2)] >> 2;\n arr[curByte++] = tmp >> 8 & 255;\n arr[curByte++] = tmp & 255;\n }\n\n return arr;\n }\n\n function tripletToBase64(num) {\n return lookup[num >> 18 & 63] + lookup[num >> 12 & 63] + lookup[num >> 6 & 63] + lookup[num & 63];\n }\n\n function encodeChunk(uint8, start, end) {\n var tmp;\n var output = [];\n\n for (var i = start; i < end; i += 3) {\n tmp = (uint8[i] << 16 & 16711680) + (uint8[i + 1] << 8 & 65280) + (uint8[i + 2] & 255);\n output.push(tripletToBase64(tmp));\n }\n\n return output.join(\"\");\n }\n\n function fromByteArray(uint8) {\n var tmp;\n var len = uint8.length;\n var extraBytes = len % 3; // if we have 1 byte left, pad 2 bytes\n\n var parts = [];\n var maxChunkLength = 16383; // must be multiple of 3\n // go through the array every three bytes, we'll deal with trailing stuff later\n\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, i + maxChunkLength > len2 ? len2 : i + maxChunkLength));\n } // pad the end with zeros, but make sure to not forget the extra bytes\n\n\n if (extraBytes === 1) {\n tmp = uint8[len - 1];\n parts.push(lookup[tmp >> 2] + lookup[tmp << 4 & 63] + \"==\");\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1];\n parts.push(lookup[tmp >> 10] + lookup[tmp >> 4 & 63] + lookup[tmp << 2 & 63] + \"=\");\n }\n\n return parts.join(\"\");\n }\n\n return exports$3;\n}\n\nvar exports$2 = {},\n _dewExec$1 = false;\nfunction dew$1() {\n if (_dewExec$1) return exports$2;\n _dewExec$1 = true;\n\n /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */\n exports$2.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m;\n var eLen = nBytes * 8 - mLen - 1;\n var eMax = (1 << eLen) - 1;\n var eBias = eMax >> 1;\n var nBits = -7;\n var i = isLE ? nBytes - 1 : 0;\n var d = isLE ? -1 : 1;\n var s = buffer[offset + i];\n i += d;\n e = s & (1 << -nBits) - 1;\n s >>= -nBits;\n nBits += eLen;\n\n for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & (1 << -nBits) - 1;\n e >>= -nBits;\n nBits += mLen;\n\n for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias;\n } else if (e === eMax) {\n return m ? NaN : (s ? -1 : 1) * Infinity;\n } else {\n m = m + Math.pow(2, mLen);\n e = e - eBias;\n }\n\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen);\n };\n\n exports$2.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c;\n var eLen = nBytes * 8 - mLen - 1;\n var eMax = (1 << eLen) - 1;\n var eBias = eMax >> 1;\n var rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;\n var i = isLE ? 0 : nBytes - 1;\n var d = isLE ? 1 : -1;\n var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;\n value = Math.abs(value);\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0;\n e = eMax;\n } else {\n e = Math.floor(Math.log(value) / Math.LN2);\n\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--;\n c *= 2;\n }\n\n if (e + eBias >= 1) {\n value += rt / c;\n } else {\n value += rt * Math.pow(2, 1 - eBias);\n }\n\n if (value * c >= 2) {\n e++;\n c /= 2;\n }\n\n if (e + eBias >= eMax) {\n m = 0;\n e = eMax;\n } else if (e + eBias >= 1) {\n m = (value * c - 1) * Math.pow(2, mLen);\n e = e + eBias;\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);\n e = 0;\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 255, i += d, m /= 256, mLen -= 8) {}\n\n e = e << mLen | m;\n eLen += mLen;\n\n for (; eLen > 0; buffer[offset + i] = e & 255, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128;\n };\n\n return exports$2;\n}\n\nvar exports$1 = {},\n _dewExec = false;\nfunction dew() {\n if (_dewExec) return exports$1;\n _dewExec = true;\n\n const base64 = dew$2();\n\n const ieee754 = dew$1();\n\n const customInspectSymbol = typeof Symbol === \"function\" && typeof Symbol[\"for\"] === \"function\" ? Symbol[\"for\"](\"nodejs.util.inspect.custom\") // eslint-disable-line dot-notation\n : null;\n exports$1.Buffer = Buffer;\n exports$1.SlowBuffer = SlowBuffer;\n exports$1.INSPECT_MAX_BYTES = 50;\n const K_MAX_LENGTH = 2147483647;\n exports$1.kMaxLength = K_MAX_LENGTH;\n /**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Print warning and recommend using `buffer` v4.x which has an Object\n * implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * We report that the browser does not support typed arrays if the are not subclassable\n * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\n * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\n * for __proto__ and has a buggy typed array implementation.\n */\n\n Buffer.TYPED_ARRAY_SUPPORT = typedArraySupport();\n\n if (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== \"undefined\" && typeof console.error === \"function\") {\n console.error(\"This browser lacks typed array (Uint8Array) support which is required by \" + \"`buffer` v5.x. Use `buffer` v4.x if you require old browser support.\");\n }\n\n function typedArraySupport() {\n // Can typed array instances can be augmented?\n try {\n const arr = new Uint8Array(1);\n const proto = {\n foo: function () {\n return 42;\n }\n };\n Object.setPrototypeOf(proto, Uint8Array.prototype);\n Object.setPrototypeOf(arr, proto);\n return arr.foo() === 42;\n } catch (e) {\n return false;\n }\n }\n\n Object.defineProperty(Buffer.prototype, \"parent\", {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined;\n return this.buffer;\n }\n });\n Object.defineProperty(Buffer.prototype, \"offset\", {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined;\n return this.byteOffset;\n }\n });\n\n function createBuffer(length) {\n if (length > K_MAX_LENGTH) {\n throw new RangeError(\"The value \\\"\" + length + \"\\\" is invalid for option \\\"size\\\"\");\n } // Return an augmented `Uint8Array` instance\n\n\n const buf = new Uint8Array(length);\n Object.setPrototypeOf(buf, Buffer.prototype);\n return buf;\n }\n /**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\n\n function Buffer(arg, encodingOrOffset, length) {\n // Common case.\n if (typeof arg === \"number\") {\n if (typeof encodingOrOffset === \"string\") {\n throw new TypeError(\"The \\\"string\\\" argument must be of type string. Received type number\");\n }\n\n return allocUnsafe(arg);\n }\n\n return from(arg, encodingOrOffset, length);\n }\n\n Buffer.poolSize = 8192; // not used by this implementation\n\n function from(value, encodingOrOffset, length) {\n if (typeof value === \"string\") {\n return fromString(value, encodingOrOffset);\n }\n\n if (ArrayBuffer.isView(value)) {\n return fromArrayView(value);\n }\n\n if (value == null) {\n throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, \" + \"or Array-like Object. Received type \" + typeof value);\n }\n\n if (isInstance(value, ArrayBuffer) || value && isInstance(value.buffer, ArrayBuffer)) {\n return fromArrayBuffer(value, encodingOrOffset, length);\n }\n\n if (typeof SharedArrayBuffer !== \"undefined\" && (isInstance(value, SharedArrayBuffer) || value && isInstance(value.buffer, SharedArrayBuffer))) {\n return fromArrayBuffer(value, encodingOrOffset, length);\n }\n\n if (typeof value === \"number\") {\n throw new TypeError(\"The \\\"value\\\" argument must not be of type number. Received type number\");\n }\n\n const valueOf = value.valueOf && value.valueOf();\n\n if (valueOf != null && valueOf !== value) {\n return Buffer.from(valueOf, encodingOrOffset, length);\n }\n\n const b = fromObject(value);\n if (b) return b;\n\n if (typeof Symbol !== \"undefined\" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === \"function\") {\n return Buffer.from(value[Symbol.toPrimitive](\"string\"), encodingOrOffset, length);\n }\n\n throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, \" + \"or Array-like Object. Received type \" + typeof value);\n }\n /**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\n\n\n Buffer.from = function (value, encodingOrOffset, length) {\n return from(value, encodingOrOffset, length);\n }; // Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:\n // https://github.com/feross/buffer/pull/148\n\n\n Object.setPrototypeOf(Buffer.prototype, Uint8Array.prototype);\n Object.setPrototypeOf(Buffer, Uint8Array);\n\n function assertSize(size) {\n if (typeof size !== \"number\") {\n throw new TypeError(\"\\\"size\\\" argument must be of type number\");\n } else if (size < 0) {\n throw new RangeError(\"The value \\\"\" + size + \"\\\" is invalid for option \\\"size\\\"\");\n }\n }\n\n function alloc(size, fill, encoding) {\n assertSize(size);\n\n if (size <= 0) {\n return createBuffer(size);\n }\n\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpreted as a start offset.\n return typeof encoding === \"string\" ? createBuffer(size).fill(fill, encoding) : createBuffer(size).fill(fill);\n }\n\n return createBuffer(size);\n }\n /**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\n\n\n Buffer.alloc = function (size, fill, encoding) {\n return alloc(size, fill, encoding);\n };\n\n function allocUnsafe(size) {\n assertSize(size);\n return createBuffer(size < 0 ? 0 : checked(size) | 0);\n }\n /**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\n\n\n Buffer.allocUnsafe = function (size) {\n return allocUnsafe(size);\n };\n /**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\n\n\n Buffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(size);\n };\n\n function fromString(string, encoding) {\n if (typeof encoding !== \"string\" || encoding === \"\") {\n encoding = \"utf8\";\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError(\"Unknown encoding: \" + encoding);\n }\n\n const length = byteLength(string, encoding) | 0;\n let buf = createBuffer(length);\n const actual = buf.write(string, encoding);\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n buf = buf.slice(0, actual);\n }\n\n return buf;\n }\n\n function fromArrayLike(array) {\n const length = array.length < 0 ? 0 : checked(array.length) | 0;\n const buf = createBuffer(length);\n\n for (let i = 0; i < length; i += 1) {\n buf[i] = array[i] & 255;\n }\n\n return buf;\n }\n\n function fromArrayView(arrayView) {\n if (isInstance(arrayView, Uint8Array)) {\n const copy = new Uint8Array(arrayView);\n return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength);\n }\n\n return fromArrayLike(arrayView);\n }\n\n function fromArrayBuffer(array, byteOffset, length) {\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError(\"\\\"offset\\\" is outside of buffer bounds\");\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError(\"\\\"length\\\" is outside of buffer bounds\");\n }\n\n let buf;\n\n if (byteOffset === undefined && length === undefined) {\n buf = new Uint8Array(array);\n } else if (length === undefined) {\n buf = new Uint8Array(array, byteOffset);\n } else {\n buf = new Uint8Array(array, byteOffset, length);\n } // Return an augmented `Uint8Array` instance\n\n\n Object.setPrototypeOf(buf, Buffer.prototype);\n return buf;\n }\n\n function fromObject(obj) {\n if (Buffer.isBuffer(obj)) {\n const len = checked(obj.length) | 0;\n const buf = createBuffer(len);\n\n if (buf.length === 0) {\n return buf;\n }\n\n obj.copy(buf, 0, 0, len);\n return buf;\n }\n\n if (obj.length !== undefined) {\n if (typeof obj.length !== \"number\" || numberIsNaN(obj.length)) {\n return createBuffer(0);\n }\n\n return fromArrayLike(obj);\n }\n\n if (obj.type === \"Buffer\" && Array.isArray(obj.data)) {\n return fromArrayLike(obj.data);\n }\n }\n\n function checked(length) {\n // Note: cannot use `length < K_MAX_LENGTH` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= K_MAX_LENGTH) {\n throw new RangeError(\"Attempt to allocate Buffer larger than maximum \" + \"size: 0x\" + K_MAX_LENGTH.toString(16) + \" bytes\");\n }\n\n return length | 0;\n }\n\n function SlowBuffer(length) {\n if (+length != length) {\n // eslint-disable-line eqeqeq\n length = 0;\n }\n\n return Buffer.alloc(+length);\n }\n\n Buffer.isBuffer = function isBuffer(b) {\n return b != null && b._isBuffer === true && b !== Buffer.prototype; // so Buffer.isBuffer(Buffer.prototype) will be false\n };\n\n Buffer.compare = function compare(a, b) {\n if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength);\n if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength);\n\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError(\"The \\\"buf1\\\", \\\"buf2\\\" arguments must be one of type Buffer or Uint8Array\");\n }\n\n if (a === b) return 0;\n let x = a.length;\n let y = b.length;\n\n for (let i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) return -1;\n if (y < x) return 1;\n return 0;\n };\n\n Buffer.isEncoding = function isEncoding(encoding) {\n switch (String(encoding).toLowerCase()) {\n case \"hex\":\n case \"utf8\":\n case \"utf-8\":\n case \"ascii\":\n case \"latin1\":\n case \"binary\":\n case \"base64\":\n case \"ucs2\":\n case \"ucs-2\":\n case \"utf16le\":\n case \"utf-16le\":\n return true;\n\n default:\n return false;\n }\n };\n\n Buffer.concat = function concat(list, length) {\n if (!Array.isArray(list)) {\n throw new TypeError(\"\\\"list\\\" argument must be an Array of Buffers\");\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0);\n }\n\n let i;\n\n if (length === undefined) {\n length = 0;\n\n for (i = 0; i < list.length; ++i) {\n length += list[i].length;\n }\n }\n\n const buffer = Buffer.allocUnsafe(length);\n let pos = 0;\n\n for (i = 0; i < list.length; ++i) {\n let buf = list[i];\n\n if (isInstance(buf, Uint8Array)) {\n if (pos + buf.length > buffer.length) {\n if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf);\n buf.copy(buffer, pos);\n } else {\n Uint8Array.prototype.set.call(buffer, buf, pos);\n }\n } else if (!Buffer.isBuffer(buf)) {\n throw new TypeError(\"\\\"list\\\" argument must be an Array of Buffers\");\n } else {\n buf.copy(buffer, pos);\n }\n\n pos += buf.length;\n }\n\n return buffer;\n };\n\n function byteLength(string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length;\n }\n\n if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {\n return string.byteLength;\n }\n\n if (typeof string !== \"string\") {\n throw new TypeError(\"The \\\"string\\\" argument must be one of type string, Buffer, or ArrayBuffer. \" + \"Received type \" + typeof string);\n }\n\n const len = string.length;\n const mustMatch = arguments.length > 2 && arguments[2] === true;\n if (!mustMatch && len === 0) return 0; // Use a for loop to avoid recursion\n\n let loweredCase = false;\n\n for (;;) {\n switch (encoding) {\n case \"ascii\":\n case \"latin1\":\n case \"binary\":\n return len;\n\n case \"utf8\":\n case \"utf-8\":\n return utf8ToBytes(string).length;\n\n case \"ucs2\":\n case \"ucs-2\":\n case \"utf16le\":\n case \"utf-16le\":\n return len * 2;\n\n case \"hex\":\n return len >>> 1;\n\n case \"base64\":\n return base64ToBytes(string).length;\n\n default:\n if (loweredCase) {\n return mustMatch ? -1 : utf8ToBytes(string).length; // assume utf8\n }\n\n encoding = (\"\" + encoding).toLowerCase();\n loweredCase = true;\n }\n }\n }\n\n Buffer.byteLength = byteLength;\n\n function slowToString(encoding, start, end) {\n let loweredCase = false; // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n\n if (start === undefined || start < 0) {\n start = 0;\n } // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n\n\n if (start > this.length) {\n return \"\";\n }\n\n if (end === undefined || end > this.length) {\n end = this.length;\n }\n\n if (end <= 0) {\n return \"\";\n } // Force coercion to uint32. This will also coerce falsey/NaN values to 0.\n\n\n end >>>= 0;\n start >>>= 0;\n\n if (end <= start) {\n return \"\";\n }\n\n if (!encoding) encoding = \"utf8\";\n\n while (true) {\n switch (encoding) {\n case \"hex\":\n return hexSlice(this, start, end);\n\n case \"utf8\":\n case \"utf-8\":\n return utf8Slice(this, start, end);\n\n case \"ascii\":\n return asciiSlice(this, start, end);\n\n case \"latin1\":\n case \"binary\":\n return latin1Slice(this, start, end);\n\n case \"base64\":\n return base64Slice(this, start, end);\n\n case \"ucs2\":\n case \"ucs-2\":\n case \"utf16le\":\n case \"utf-16le\":\n return utf16leSlice(this, start, end);\n\n default:\n if (loweredCase) throw new TypeError(\"Unknown encoding: \" + encoding);\n encoding = (encoding + \"\").toLowerCase();\n loweredCase = true;\n }\n }\n } // This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)\n // to detect a Buffer instance. It's not possible to use `instanceof Buffer`\n // reliably in a browserify context because there could be multiple different\n // copies of the 'buffer' package in use. This method works even for Buffer\n // instances that were created from another copy of the `buffer` package.\n // See: https://github.com/feross/buffer/issues/154\n\n\n Buffer.prototype._isBuffer = true;\n\n function swap(b, n, m) {\n const i = b[n];\n b[n] = b[m];\n b[m] = i;\n }\n\n Buffer.prototype.swap16 = function swap16() {\n const len = this.length;\n\n if (len % 2 !== 0) {\n throw new RangeError(\"Buffer size must be a multiple of 16-bits\");\n }\n\n for (let i = 0; i < len; i += 2) {\n swap(this, i, i + 1);\n }\n\n return this;\n };\n\n Buffer.prototype.swap32 = function swap32() {\n const len = this.length;\n\n if (len % 4 !== 0) {\n throw new RangeError(\"Buffer size must be a multiple of 32-bits\");\n }\n\n for (let i = 0; i < len; i += 4) {\n swap(this, i, i + 3);\n swap(this, i + 1, i + 2);\n }\n\n return this;\n };\n\n Buffer.prototype.swap64 = function swap64() {\n const len = this.length;\n\n if (len % 8 !== 0) {\n throw new RangeError(\"Buffer size must be a multiple of 64-bits\");\n }\n\n for (let i = 0; i < len; i += 8) {\n swap(this, i, i + 7);\n swap(this, i + 1, i + 6);\n swap(this, i + 2, i + 5);\n swap(this, i + 3, i + 4);\n }\n\n return this;\n };\n\n Buffer.prototype.toString = function toString() {\n const length = this.length;\n if (length === 0) return \"\";\n if (arguments.length === 0) return utf8Slice(this, 0, length);\n return slowToString.apply(this, arguments);\n };\n\n Buffer.prototype.toLocaleString = Buffer.prototype.toString;\n\n Buffer.prototype.equals = function equals(b) {\n if (!Buffer.isBuffer(b)) throw new TypeError(\"Argument must be a Buffer\");\n if (this === b) return true;\n return Buffer.compare(this, b) === 0;\n };\n\n Buffer.prototype.inspect = function inspect() {\n let str = \"\";\n const max = exports$1.INSPECT_MAX_BYTES;\n str = this.toString(\"hex\", 0, max).replace(/(.{2})/g, \"$1 \").trim();\n if (this.length > max) str += \" ... \";\n return \"\";\n };\n\n if (customInspectSymbol) {\n Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect;\n }\n\n Buffer.prototype.compare = function compare(target, start, end, thisStart, thisEnd) {\n if (isInstance(target, Uint8Array)) {\n target = Buffer.from(target, target.offset, target.byteLength);\n }\n\n if (!Buffer.isBuffer(target)) {\n throw new TypeError(\"The \\\"target\\\" argument must be one of type Buffer or Uint8Array. \" + \"Received type \" + typeof target);\n }\n\n if (start === undefined) {\n start = 0;\n }\n\n if (end === undefined) {\n end = target ? target.length : 0;\n }\n\n if (thisStart === undefined) {\n thisStart = 0;\n }\n\n if (thisEnd === undefined) {\n thisEnd = this.length;\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError(\"out of range index\");\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0;\n }\n\n if (thisStart >= thisEnd) {\n return -1;\n }\n\n if (start >= end) {\n return 1;\n }\n\n start >>>= 0;\n end >>>= 0;\n thisStart >>>= 0;\n thisEnd >>>= 0;\n if (this === target) return 0;\n let x = thisEnd - thisStart;\n let y = end - start;\n const len = Math.min(x, y);\n const thisCopy = this.slice(thisStart, thisEnd);\n const targetCopy = target.slice(start, end);\n\n for (let i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i];\n y = targetCopy[i];\n break;\n }\n }\n\n if (x < y) return -1;\n if (y < x) return 1;\n return 0;\n }; // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n // OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n //\n // Arguments:\n // - buffer - a Buffer to search\n // - val - a string, Buffer, or number\n // - byteOffset - an index into `buffer`; will be clamped to an int32\n // - encoding - an optional encoding, relevant is val is a string\n // - dir - true for indexOf, false for lastIndexOf\n\n\n function bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1; // Normalize byteOffset\n\n if (typeof byteOffset === \"string\") {\n encoding = byteOffset;\n byteOffset = 0;\n } else if (byteOffset > 2147483647) {\n byteOffset = 2147483647;\n } else if (byteOffset < -2147483648) {\n byteOffset = -2147483648;\n }\n\n byteOffset = +byteOffset; // Coerce to Number.\n\n if (numberIsNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : buffer.length - 1;\n } // Normalize byteOffset: negative offsets start from the end of the buffer\n\n\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset;\n\n if (byteOffset >= buffer.length) {\n if (dir) return -1;else byteOffset = buffer.length - 1;\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0;else return -1;\n } // Normalize val\n\n\n if (typeof val === \"string\") {\n val = Buffer.from(val, encoding);\n } // Finally, search either indexOf (if dir is true) or lastIndexOf\n\n\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1;\n }\n\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir);\n } else if (typeof val === \"number\") {\n val = val & 255; // Search for a byte value [0-255]\n\n if (typeof Uint8Array.prototype.indexOf === \"function\") {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset);\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset);\n }\n }\n\n return arrayIndexOf(buffer, [val], byteOffset, encoding, dir);\n }\n\n throw new TypeError(\"val must be string, number or Buffer\");\n }\n\n function arrayIndexOf(arr, val, byteOffset, encoding, dir) {\n let indexSize = 1;\n let arrLength = arr.length;\n let valLength = val.length;\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase();\n\n if (encoding === \"ucs2\" || encoding === \"ucs-2\" || encoding === \"utf16le\" || encoding === \"utf-16le\") {\n if (arr.length < 2 || val.length < 2) {\n return -1;\n }\n\n indexSize = 2;\n arrLength /= 2;\n valLength /= 2;\n byteOffset /= 2;\n }\n }\n\n function read(buf, i) {\n if (indexSize === 1) {\n return buf[i];\n } else {\n return buf.readUInt16BE(i * indexSize);\n }\n }\n\n let i;\n\n if (dir) {\n let foundIndex = -1;\n\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i;\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize;\n } else {\n if (foundIndex !== -1) i -= i - foundIndex;\n foundIndex = -1;\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength;\n\n for (i = byteOffset; i >= 0; i--) {\n let found = true;\n\n for (let j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false;\n break;\n }\n }\n\n if (found) return i;\n }\n }\n\n return -1;\n }\n\n Buffer.prototype.includes = function includes(val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1;\n };\n\n Buffer.prototype.indexOf = function indexOf(val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true);\n };\n\n Buffer.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false);\n };\n\n function hexWrite(buf, string, offset, length) {\n offset = Number(offset) || 0;\n const remaining = buf.length - offset;\n\n if (!length) {\n length = remaining;\n } else {\n length = Number(length);\n\n if (length > remaining) {\n length = remaining;\n }\n }\n\n const strLen = string.length;\n\n if (length > strLen / 2) {\n length = strLen / 2;\n }\n\n let i;\n\n for (i = 0; i < length; ++i) {\n const parsed = parseInt(string.substr(i * 2, 2), 16);\n if (numberIsNaN(parsed)) return i;\n buf[offset + i] = parsed;\n }\n\n return i;\n }\n\n function utf8Write(buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length);\n }\n\n function asciiWrite(buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length);\n }\n\n function base64Write(buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length);\n }\n\n function ucs2Write(buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length);\n }\n\n Buffer.prototype.write = function write(string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = \"utf8\";\n length = this.length;\n offset = 0; // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === \"string\") {\n encoding = offset;\n length = this.length;\n offset = 0; // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset >>> 0;\n\n if (isFinite(length)) {\n length = length >>> 0;\n if (encoding === undefined) encoding = \"utf8\";\n } else {\n encoding = length;\n length = undefined;\n }\n } else {\n throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");\n }\n\n const remaining = this.length - offset;\n if (length === undefined || length > remaining) length = remaining;\n\n if (string.length > 0 && (length < 0 || offset < 0) || offset > this.length) {\n throw new RangeError(\"Attempt to write outside buffer bounds\");\n }\n\n if (!encoding) encoding = \"utf8\";\n let loweredCase = false;\n\n for (;;) {\n switch (encoding) {\n case \"hex\":\n return hexWrite(this, string, offset, length);\n\n case \"utf8\":\n case \"utf-8\":\n return utf8Write(this, string, offset, length);\n\n case \"ascii\":\n case \"latin1\":\n case \"binary\":\n return asciiWrite(this, string, offset, length);\n\n case \"base64\":\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length);\n\n case \"ucs2\":\n case \"ucs-2\":\n case \"utf16le\":\n case \"utf-16le\":\n return ucs2Write(this, string, offset, length);\n\n default:\n if (loweredCase) throw new TypeError(\"Unknown encoding: \" + encoding);\n encoding = (\"\" + encoding).toLowerCase();\n loweredCase = true;\n }\n }\n };\n\n Buffer.prototype.toJSON = function toJSON() {\n return {\n type: \"Buffer\",\n data: Array.prototype.slice.call(this._arr || this, 0)\n };\n };\n\n function base64Slice(buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf);\n } else {\n return base64.fromByteArray(buf.slice(start, end));\n }\n }\n\n function utf8Slice(buf, start, end) {\n end = Math.min(buf.length, end);\n const res = [];\n let i = start;\n\n while (i < end) {\n const firstByte = buf[i];\n let codePoint = null;\n let bytesPerSequence = firstByte > 239 ? 4 : firstByte > 223 ? 3 : firstByte > 191 ? 2 : 1;\n\n if (i + bytesPerSequence <= end) {\n let secondByte, thirdByte, fourthByte, tempCodePoint;\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 128) {\n codePoint = firstByte;\n }\n\n break;\n\n case 2:\n secondByte = buf[i + 1];\n\n if ((secondByte & 192) === 128) {\n tempCodePoint = (firstByte & 31) << 6 | secondByte & 63;\n\n if (tempCodePoint > 127) {\n codePoint = tempCodePoint;\n }\n }\n\n break;\n\n case 3:\n secondByte = buf[i + 1];\n thirdByte = buf[i + 2];\n\n if ((secondByte & 192) === 128 && (thirdByte & 192) === 128) {\n tempCodePoint = (firstByte & 15) << 12 | (secondByte & 63) << 6 | thirdByte & 63;\n\n if (tempCodePoint > 2047 && (tempCodePoint < 55296 || tempCodePoint > 57343)) {\n codePoint = tempCodePoint;\n }\n }\n\n break;\n\n case 4:\n secondByte = buf[i + 1];\n thirdByte = buf[i + 2];\n fourthByte = buf[i + 3];\n\n if ((secondByte & 192) === 128 && (thirdByte & 192) === 128 && (fourthByte & 192) === 128) {\n tempCodePoint = (firstByte & 15) << 18 | (secondByte & 63) << 12 | (thirdByte & 63) << 6 | fourthByte & 63;\n\n if (tempCodePoint > 65535 && tempCodePoint < 1114112) {\n codePoint = tempCodePoint;\n }\n }\n\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 65533;\n bytesPerSequence = 1;\n } else if (codePoint > 65535) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 65536;\n res.push(codePoint >>> 10 & 1023 | 55296);\n codePoint = 56320 | codePoint & 1023;\n }\n\n res.push(codePoint);\n i += bytesPerSequence;\n }\n\n return decodeCodePointsArray(res);\n } // Based on http://stackoverflow.com/a/22747272/680742, the browser with\n // the lowest limit is Chrome, with 0x10000 args.\n // We go 1 magnitude less, for safety\n\n\n const MAX_ARGUMENTS_LENGTH = 4096;\n\n function decodeCodePointsArray(codePoints) {\n const len = codePoints.length;\n\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints); // avoid extra slice()\n } // Decode in chunks to avoid \"call stack size exceeded\".\n\n\n let res = \"\";\n let i = 0;\n\n while (i < len) {\n res += String.fromCharCode.apply(String, codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH));\n }\n\n return res;\n }\n\n function asciiSlice(buf, start, end) {\n let ret = \"\";\n end = Math.min(buf.length, end);\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 127);\n }\n\n return ret;\n }\n\n function latin1Slice(buf, start, end) {\n let ret = \"\";\n end = Math.min(buf.length, end);\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i]);\n }\n\n return ret;\n }\n\n function hexSlice(buf, start, end) {\n const len = buf.length;\n if (!start || start < 0) start = 0;\n if (!end || end < 0 || end > len) end = len;\n let out = \"\";\n\n for (let i = start; i < end; ++i) {\n out += hexSliceLookupTable[buf[i]];\n }\n\n return out;\n }\n\n function utf16leSlice(buf, start, end) {\n const bytes = buf.slice(start, end);\n let res = \"\"; // If bytes.length is odd, the last 8 bits must be ignored (same as node.js)\n\n for (let i = 0; i < bytes.length - 1; i += 2) {\n res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256);\n }\n\n return res;\n }\n\n Buffer.prototype.slice = function slice(start, end) {\n const len = this.length;\n start = ~~start;\n end = end === undefined ? len : ~~end;\n\n if (start < 0) {\n start += len;\n if (start < 0) start = 0;\n } else if (start > len) {\n start = len;\n }\n\n if (end < 0) {\n end += len;\n if (end < 0) end = 0;\n } else if (end > len) {\n end = len;\n }\n\n if (end < start) end = start;\n const newBuf = this.subarray(start, end); // Return an augmented `Uint8Array` instance\n\n Object.setPrototypeOf(newBuf, Buffer.prototype);\n return newBuf;\n };\n /*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\n\n\n function checkOffset(offset, ext, length) {\n if (offset % 1 !== 0 || offset < 0) throw new RangeError(\"offset is not uint\");\n if (offset + ext > length) throw new RangeError(\"Trying to access beyond buffer length\");\n }\n\n Buffer.prototype.readUintLE = Buffer.prototype.readUIntLE = function readUIntLE(offset, byteLength, noAssert) {\n offset = offset >>> 0;\n byteLength = byteLength >>> 0;\n if (!noAssert) checkOffset(offset, byteLength, this.length);\n let val = this[offset];\n let mul = 1;\n let i = 0;\n\n while (++i < byteLength && (mul *= 256)) {\n val += this[offset + i] * mul;\n }\n\n return val;\n };\n\n Buffer.prototype.readUintBE = Buffer.prototype.readUIntBE = function readUIntBE(offset, byteLength, noAssert) {\n offset = offset >>> 0;\n byteLength = byteLength >>> 0;\n\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length);\n }\n\n let val = this[offset + --byteLength];\n let mul = 1;\n\n while (byteLength > 0 && (mul *= 256)) {\n val += this[offset + --byteLength] * mul;\n }\n\n return val;\n };\n\n Buffer.prototype.readUint8 = Buffer.prototype.readUInt8 = function readUInt8(offset, noAssert) {\n offset = offset >>> 0;\n if (!noAssert) checkOffset(offset, 1, this.length);\n return this[offset];\n };\n\n Buffer.prototype.readUint16LE = Buffer.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) {\n offset = offset >>> 0;\n if (!noAssert) checkOffset(offset, 2, this.length);\n return this[offset] | this[offset + 1] << 8;\n };\n\n Buffer.prototype.readUint16BE = Buffer.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) {\n offset = offset >>> 0;\n if (!noAssert) checkOffset(offset, 2, this.length);\n return this[offset] << 8 | this[offset + 1];\n };\n\n Buffer.prototype.readUint32LE = Buffer.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) {\n offset = offset >>> 0;\n if (!noAssert) checkOffset(offset, 4, this.length);\n return (this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16) + this[offset + 3] * 16777216;\n };\n\n Buffer.prototype.readUint32BE = Buffer.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) {\n offset = offset >>> 0;\n if (!noAssert) checkOffset(offset, 4, this.length);\n return this[offset] * 16777216 + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]);\n };\n\n Buffer.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE(offset) {\n offset = offset >>> 0;\n validateNumber(offset, \"offset\");\n const first = this[offset];\n const last = this[offset + 7];\n\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8);\n }\n\n const lo = first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24;\n const hi = this[++offset] + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + last * 2 ** 24;\n return BigInt(lo) + (BigInt(hi) << BigInt(32));\n });\n Buffer.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE(offset) {\n offset = offset >>> 0;\n validateNumber(offset, \"offset\");\n const first = this[offset];\n const last = this[offset + 7];\n\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8);\n }\n\n const hi = first * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];\n const lo = this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last;\n return (BigInt(hi) << BigInt(32)) + BigInt(lo);\n });\n\n Buffer.prototype.readIntLE = function readIntLE(offset, byteLength, noAssert) {\n offset = offset >>> 0;\n byteLength = byteLength >>> 0;\n if (!noAssert) checkOffset(offset, byteLength, this.length);\n let val = this[offset];\n let mul = 1;\n let i = 0;\n\n while (++i < byteLength && (mul *= 256)) {\n val += this[offset + i] * mul;\n }\n\n mul *= 128;\n if (val >= mul) val -= Math.pow(2, 8 * byteLength);\n return val;\n };\n\n Buffer.prototype.readIntBE = function readIntBE(offset, byteLength, noAssert) {\n offset = offset >>> 0;\n byteLength = byteLength >>> 0;\n if (!noAssert) checkOffset(offset, byteLength, this.length);\n let i = byteLength;\n let mul = 1;\n let val = this[offset + --i];\n\n while (i > 0 && (mul *= 256)) {\n val += this[offset + --i] * mul;\n }\n\n mul *= 128;\n if (val >= mul) val -= Math.pow(2, 8 * byteLength);\n return val;\n };\n\n Buffer.prototype.readInt8 = function readInt8(offset, noAssert) {\n offset = offset >>> 0;\n if (!noAssert) checkOffset(offset, 1, this.length);\n if (!(this[offset] & 128)) return this[offset];\n return (255 - this[offset] + 1) * -1;\n };\n\n Buffer.prototype.readInt16LE = function readInt16LE(offset, noAssert) {\n offset = offset >>> 0;\n if (!noAssert) checkOffset(offset, 2, this.length);\n const val = this[offset] | this[offset + 1] << 8;\n return val & 32768 ? val | 4294901760 : val;\n };\n\n Buffer.prototype.readInt16BE = function readInt16BE(offset, noAssert) {\n offset = offset >>> 0;\n if (!noAssert) checkOffset(offset, 2, this.length);\n const val = this[offset + 1] | this[offset] << 8;\n return val & 32768 ? val | 4294901760 : val;\n };\n\n Buffer.prototype.readInt32LE = function readInt32LE(offset, noAssert) {\n offset = offset >>> 0;\n if (!noAssert) checkOffset(offset, 4, this.length);\n return this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16 | this[offset + 3] << 24;\n };\n\n Buffer.prototype.readInt32BE = function readInt32BE(offset, noAssert) {\n offset = offset >>> 0;\n if (!noAssert) checkOffset(offset, 4, this.length);\n return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3];\n };\n\n Buffer.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE(offset) {\n offset = offset >>> 0;\n validateNumber(offset, \"offset\");\n const first = this[offset];\n const last = this[offset + 7];\n\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8);\n }\n\n const val = this[offset + 4] + this[offset + 5] * 2 ** 8 + this[offset + 6] * 2 ** 16 + (last << 24); // Overflow\n\n return (BigInt(val) << BigInt(32)) + BigInt(first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24);\n });\n Buffer.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE(offset) {\n offset = offset >>> 0;\n validateNumber(offset, \"offset\");\n const first = this[offset];\n const last = this[offset + 7];\n\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8);\n }\n\n const val = (first << 24) + // Overflow\n this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];\n return (BigInt(val) << BigInt(32)) + BigInt(this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last);\n });\n\n Buffer.prototype.readFloatLE = function readFloatLE(offset, noAssert) {\n offset = offset >>> 0;\n if (!noAssert) checkOffset(offset, 4, this.length);\n return ieee754.read(this, offset, true, 23, 4);\n };\n\n Buffer.prototype.readFloatBE = function readFloatBE(offset, noAssert) {\n offset = offset >>> 0;\n if (!noAssert) checkOffset(offset, 4, this.length);\n return ieee754.read(this, offset, false, 23, 4);\n };\n\n Buffer.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) {\n offset = offset >>> 0;\n if (!noAssert) checkOffset(offset, 8, this.length);\n return ieee754.read(this, offset, true, 52, 8);\n };\n\n Buffer.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) {\n offset = offset >>> 0;\n if (!noAssert) checkOffset(offset, 8, this.length);\n return ieee754.read(this, offset, false, 52, 8);\n };\n\n function checkInt(buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError(\"\\\"buffer\\\" argument must be a Buffer instance\");\n if (value > max || value < min) throw new RangeError(\"\\\"value\\\" argument is out of bounds\");\n if (offset + ext > buf.length) throw new RangeError(\"Index out of range\");\n }\n\n Buffer.prototype.writeUintLE = Buffer.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength, noAssert) {\n value = +value;\n offset = offset >>> 0;\n byteLength = byteLength >>> 0;\n\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1;\n checkInt(this, value, offset, byteLength, maxBytes, 0);\n }\n\n let mul = 1;\n let i = 0;\n this[offset] = value & 255;\n\n while (++i < byteLength && (mul *= 256)) {\n this[offset + i] = value / mul & 255;\n }\n\n return offset + byteLength;\n };\n\n Buffer.prototype.writeUintBE = Buffer.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength, noAssert) {\n value = +value;\n offset = offset >>> 0;\n byteLength = byteLength >>> 0;\n\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1;\n checkInt(this, value, offset, byteLength, maxBytes, 0);\n }\n\n let i = byteLength - 1;\n let mul = 1;\n this[offset + i] = value & 255;\n\n while (--i >= 0 && (mul *= 256)) {\n this[offset + i] = value / mul & 255;\n }\n\n return offset + byteLength;\n };\n\n Buffer.prototype.writeUint8 = Buffer.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) {\n value = +value;\n offset = offset >>> 0;\n if (!noAssert) checkInt(this, value, offset, 1, 255, 0);\n this[offset] = value & 255;\n return offset + 1;\n };\n\n Buffer.prototype.writeUint16LE = Buffer.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) {\n value = +value;\n offset = offset >>> 0;\n if (!noAssert) checkInt(this, value, offset, 2, 65535, 0);\n this[offset] = value & 255;\n this[offset + 1] = value >>> 8;\n return offset + 2;\n };\n\n Buffer.prototype.writeUint16BE = Buffer.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) {\n value = +value;\n offset = offset >>> 0;\n if (!noAssert) checkInt(this, value, offset, 2, 65535, 0);\n this[offset] = value >>> 8;\n this[offset + 1] = value & 255;\n return offset + 2;\n };\n\n Buffer.prototype.writeUint32LE = Buffer.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) {\n value = +value;\n offset = offset >>> 0;\n if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0);\n this[offset + 3] = value >>> 24;\n this[offset + 2] = value >>> 16;\n this[offset + 1] = value >>> 8;\n this[offset] = value & 255;\n return offset + 4;\n };\n\n Buffer.prototype.writeUint32BE = Buffer.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) {\n value = +value;\n offset = offset >>> 0;\n if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0);\n this[offset] = value >>> 24;\n this[offset + 1] = value >>> 16;\n this[offset + 2] = value >>> 8;\n this[offset + 3] = value & 255;\n return offset + 4;\n };\n\n function wrtBigUInt64LE(buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7);\n let lo = Number(value & BigInt(4294967295));\n buf[offset++] = lo;\n lo = lo >> 8;\n buf[offset++] = lo;\n lo = lo >> 8;\n buf[offset++] = lo;\n lo = lo >> 8;\n buf[offset++] = lo;\n let hi = Number(value >> BigInt(32) & BigInt(4294967295));\n buf[offset++] = hi;\n hi = hi >> 8;\n buf[offset++] = hi;\n hi = hi >> 8;\n buf[offset++] = hi;\n hi = hi >> 8;\n buf[offset++] = hi;\n return offset;\n }\n\n function wrtBigUInt64BE(buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7);\n let lo = Number(value & BigInt(4294967295));\n buf[offset + 7] = lo;\n lo = lo >> 8;\n buf[offset + 6] = lo;\n lo = lo >> 8;\n buf[offset + 5] = lo;\n lo = lo >> 8;\n buf[offset + 4] = lo;\n let hi = Number(value >> BigInt(32) & BigInt(4294967295));\n buf[offset + 3] = hi;\n hi = hi >> 8;\n buf[offset + 2] = hi;\n hi = hi >> 8;\n buf[offset + 1] = hi;\n hi = hi >> 8;\n buf[offset] = hi;\n return offset + 8;\n }\n\n Buffer.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE(value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt(\"0xffffffffffffffff\"));\n });\n Buffer.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE(value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt(\"0xffffffffffffffff\"));\n });\n\n Buffer.prototype.writeIntLE = function writeIntLE(value, offset, byteLength, noAssert) {\n value = +value;\n offset = offset >>> 0;\n\n if (!noAssert) {\n const limit = Math.pow(2, 8 * byteLength - 1);\n checkInt(this, value, offset, byteLength, limit - 1, -limit);\n }\n\n let i = 0;\n let mul = 1;\n let sub = 0;\n this[offset] = value & 255;\n\n while (++i < byteLength && (mul *= 256)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1;\n }\n\n this[offset + i] = (value / mul >> 0) - sub & 255;\n }\n\n return offset + byteLength;\n };\n\n Buffer.prototype.writeIntBE = function writeIntBE(value, offset, byteLength, noAssert) {\n value = +value;\n offset = offset >>> 0;\n\n if (!noAssert) {\n const limit = Math.pow(2, 8 * byteLength - 1);\n checkInt(this, value, offset, byteLength, limit - 1, -limit);\n }\n\n let i = byteLength - 1;\n let mul = 1;\n let sub = 0;\n this[offset + i] = value & 255;\n\n while (--i >= 0 && (mul *= 256)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1;\n }\n\n this[offset + i] = (value / mul >> 0) - sub & 255;\n }\n\n return offset + byteLength;\n };\n\n Buffer.prototype.writeInt8 = function writeInt8(value, offset, noAssert) {\n value = +value;\n offset = offset >>> 0;\n if (!noAssert) checkInt(this, value, offset, 1, 127, -128);\n if (value < 0) value = 255 + value + 1;\n this[offset] = value & 255;\n return offset + 1;\n };\n\n Buffer.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) {\n value = +value;\n offset = offset >>> 0;\n if (!noAssert) checkInt(this, value, offset, 2, 32767, -32768);\n this[offset] = value & 255;\n this[offset + 1] = value >>> 8;\n return offset + 2;\n };\n\n Buffer.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) {\n value = +value;\n offset = offset >>> 0;\n if (!noAssert) checkInt(this, value, offset, 2, 32767, -32768);\n this[offset] = value >>> 8;\n this[offset + 1] = value & 255;\n return offset + 2;\n };\n\n Buffer.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) {\n value = +value;\n offset = offset >>> 0;\n if (!noAssert) checkInt(this, value, offset, 4, 2147483647, -2147483648);\n this[offset] = value & 255;\n this[offset + 1] = value >>> 8;\n this[offset + 2] = value >>> 16;\n this[offset + 3] = value >>> 24;\n return offset + 4;\n };\n\n Buffer.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) {\n value = +value;\n offset = offset >>> 0;\n if (!noAssert) checkInt(this, value, offset, 4, 2147483647, -2147483648);\n if (value < 0) value = 4294967295 + value + 1;\n this[offset] = value >>> 24;\n this[offset + 1] = value >>> 16;\n this[offset + 2] = value >>> 8;\n this[offset + 3] = value & 255;\n return offset + 4;\n };\n\n Buffer.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE(value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, -BigInt(\"0x8000000000000000\"), BigInt(\"0x7fffffffffffffff\"));\n });\n Buffer.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE(value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, -BigInt(\"0x8000000000000000\"), BigInt(\"0x7fffffffffffffff\"));\n });\n\n function checkIEEE754(buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError(\"Index out of range\");\n if (offset < 0) throw new RangeError(\"Index out of range\");\n }\n\n function writeFloat(buf, value, offset, littleEndian, noAssert) {\n value = +value;\n offset = offset >>> 0;\n\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4);\n }\n\n ieee754.write(buf, value, offset, littleEndian, 23, 4);\n return offset + 4;\n }\n\n Buffer.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert);\n };\n\n Buffer.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert);\n };\n\n function writeDouble(buf, value, offset, littleEndian, noAssert) {\n value = +value;\n offset = offset >>> 0;\n\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8);\n }\n\n ieee754.write(buf, value, offset, littleEndian, 52, 8);\n return offset + 8;\n }\n\n Buffer.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert);\n };\n\n Buffer.prototype.writeDoubleBE = function writeDoubleBE(value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert);\n }; // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\n\n\n Buffer.prototype.copy = function copy(target, targetStart, start, end) {\n if (!Buffer.isBuffer(target)) throw new TypeError(\"argument should be a Buffer\");\n if (!start) start = 0;\n if (!end && end !== 0) end = this.length;\n if (targetStart >= target.length) targetStart = target.length;\n if (!targetStart) targetStart = 0;\n if (end > 0 && end < start) end = start; // Copy 0 bytes; we're done\n\n if (end === start) return 0;\n if (target.length === 0 || this.length === 0) return 0; // Fatal error conditions\n\n if (targetStart < 0) {\n throw new RangeError(\"targetStart out of bounds\");\n }\n\n if (start < 0 || start >= this.length) throw new RangeError(\"Index out of range\");\n if (end < 0) throw new RangeError(\"sourceEnd out of bounds\"); // Are we oob?\n\n if (end > this.length) end = this.length;\n\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start;\n }\n\n const len = end - start;\n\n if (this === target && typeof Uint8Array.prototype.copyWithin === \"function\") {\n // Use built-in when available, missing from IE11\n this.copyWithin(targetStart, start, end);\n } else {\n Uint8Array.prototype.set.call(target, this.subarray(start, end), targetStart);\n }\n\n return len;\n }; // Usage:\n // buffer.fill(number[, offset[, end]])\n // buffer.fill(buffer[, offset[, end]])\n // buffer.fill(string[, offset[, end]][, encoding])\n\n\n Buffer.prototype.fill = function fill(val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === \"string\") {\n if (typeof start === \"string\") {\n encoding = start;\n start = 0;\n end = this.length;\n } else if (typeof end === \"string\") {\n encoding = end;\n end = this.length;\n }\n\n if (encoding !== undefined && typeof encoding !== \"string\") {\n throw new TypeError(\"encoding must be a string\");\n }\n\n if (typeof encoding === \"string\" && !Buffer.isEncoding(encoding)) {\n throw new TypeError(\"Unknown encoding: \" + encoding);\n }\n\n if (val.length === 1) {\n const code = val.charCodeAt(0);\n\n if (encoding === \"utf8\" && code < 128 || encoding === \"latin1\") {\n // Fast path: If `val` fits into a single byte, use that numeric value.\n val = code;\n }\n }\n } else if (typeof val === \"number\") {\n val = val & 255;\n } else if (typeof val === \"boolean\") {\n val = Number(val);\n } // Invalid ranges are not set to a default, so can range check early.\n\n\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError(\"Out of range index\");\n }\n\n if (end <= start) {\n return this;\n }\n\n start = start >>> 0;\n end = end === undefined ? this.length : end >>> 0;\n if (!val) val = 0;\n let i;\n\n if (typeof val === \"number\") {\n for (i = start; i < end; ++i) {\n this[i] = val;\n }\n } else {\n const bytes = Buffer.isBuffer(val) ? val : Buffer.from(val, encoding);\n const len = bytes.length;\n\n if (len === 0) {\n throw new TypeError(\"The value \\\"\" + val + \"\\\" is invalid for argument \\\"value\\\"\");\n }\n\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len];\n }\n }\n\n return this;\n }; // CUSTOM ERRORS\n // =============\n // Simplified versions from Node, changed for Buffer-only usage\n\n\n const errors = {};\n\n function E(sym, getMessage, Base) {\n errors[sym] = class NodeError extends Base {\n constructor() {\n super();\n Object.defineProperty(this, \"message\", {\n value: getMessage.apply(this, arguments),\n writable: true,\n configurable: true\n }); // Add the error code to the name to include it in the stack trace.\n\n this.name = `${this.name} [${sym}]`; // Access the stack to generate the error message including the error code\n // from the name.\n\n this.stack; // eslint-disable-line no-unused-expressions\n // Reset the name to the actual name.\n\n delete this.name;\n }\n\n get code() {\n return sym;\n }\n\n set code(value) {\n Object.defineProperty(this, \"code\", {\n configurable: true,\n enumerable: true,\n value,\n writable: true\n });\n }\n\n toString() {\n return `${this.name} [${sym}]: ${this.message}`;\n }\n\n };\n }\n\n E(\"ERR_BUFFER_OUT_OF_BOUNDS\", function (name) {\n if (name) {\n return `${name} is outside of buffer bounds`;\n }\n\n return \"Attempt to access memory outside buffer bounds\";\n }, RangeError);\n E(\"ERR_INVALID_ARG_TYPE\", function (name, actual) {\n return `The \"${name}\" argument must be of type number. Received type ${typeof actual}`;\n }, TypeError);\n E(\"ERR_OUT_OF_RANGE\", function (str, range, input) {\n let msg = `The value of \"${str}\" is out of range.`;\n let received = input;\n\n if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {\n received = addNumericalSeparator(String(input));\n } else if (typeof input === \"bigint\") {\n received = String(input);\n\n if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {\n received = addNumericalSeparator(received);\n }\n\n received += \"n\";\n }\n\n msg += ` It must be ${range}. Received ${received}`;\n return msg;\n }, RangeError);\n\n function addNumericalSeparator(val) {\n let res = \"\";\n let i = val.length;\n const start = val[0] === \"-\" ? 1 : 0;\n\n for (; i >= start + 4; i -= 3) {\n res = `_${val.slice(i - 3, i)}${res}`;\n }\n\n return `${val.slice(0, i)}${res}`;\n } // CHECK FUNCTIONS\n // ===============\n\n\n function checkBounds(buf, offset, byteLength) {\n validateNumber(offset, \"offset\");\n\n if (buf[offset] === undefined || buf[offset + byteLength] === undefined) {\n boundsError(offset, buf.length - (byteLength + 1));\n }\n }\n\n function checkIntBI(value, min, max, buf, offset, byteLength) {\n if (value > max || value < min) {\n const n = typeof min === \"bigint\" ? \"n\" : \"\";\n let range;\n\n if (byteLength > 3) {\n if (min === 0 || min === BigInt(0)) {\n range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`;\n } else {\n range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and < 2 ** ` + `${(byteLength + 1) * 8 - 1}${n}`;\n }\n } else {\n range = `>= ${min}${n} and <= ${max}${n}`;\n }\n\n throw new errors.ERR_OUT_OF_RANGE(\"value\", range, value);\n }\n\n checkBounds(buf, offset, byteLength);\n }\n\n function validateNumber(value, name) {\n if (typeof value !== \"number\") {\n throw new errors.ERR_INVALID_ARG_TYPE(name, \"number\", value);\n }\n }\n\n function boundsError(value, length, type) {\n if (Math.floor(value) !== value) {\n validateNumber(value, type);\n throw new errors.ERR_OUT_OF_RANGE(type || \"offset\", \"an integer\", value);\n }\n\n if (length < 0) {\n throw new errors.ERR_BUFFER_OUT_OF_BOUNDS();\n }\n\n throw new errors.ERR_OUT_OF_RANGE(type || \"offset\", `>= ${type ? 1 : 0} and <= ${length}`, value);\n } // HELPER FUNCTIONS\n // ================\n\n\n const INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g;\n\n function base64clean(str) {\n // Node takes equal signs as end of the Base64 encoding\n str = str.split(\"=\")[0]; // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n\n str = str.trim().replace(INVALID_BASE64_RE, \"\"); // Node converts strings with length < 2 to ''\n\n if (str.length < 2) return \"\"; // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n\n while (str.length % 4 !== 0) {\n str = str + \"=\";\n }\n\n return str;\n }\n\n function utf8ToBytes(string, units) {\n units = units || Infinity;\n let codePoint;\n const length = string.length;\n let leadSurrogate = null;\n const bytes = [];\n\n for (let i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i); // is surrogate component\n\n if (codePoint > 55295 && codePoint < 57344) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 56319) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(239, 191, 189);\n continue;\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(239, 191, 189);\n continue;\n } // valid lead\n\n\n leadSurrogate = codePoint;\n continue;\n } // 2 leads in a row\n\n\n if (codePoint < 56320) {\n if ((units -= 3) > -1) bytes.push(239, 191, 189);\n leadSurrogate = codePoint;\n continue;\n } // valid surrogate pair\n\n\n codePoint = (leadSurrogate - 55296 << 10 | codePoint - 56320) + 65536;\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(239, 191, 189);\n }\n\n leadSurrogate = null; // encode utf8\n\n if (codePoint < 128) {\n if ((units -= 1) < 0) break;\n bytes.push(codePoint);\n } else if (codePoint < 2048) {\n if ((units -= 2) < 0) break;\n bytes.push(codePoint >> 6 | 192, codePoint & 63 | 128);\n } else if (codePoint < 65536) {\n if ((units -= 3) < 0) break;\n bytes.push(codePoint >> 12 | 224, codePoint >> 6 & 63 | 128, codePoint & 63 | 128);\n } else if (codePoint < 1114112) {\n if ((units -= 4) < 0) break;\n bytes.push(codePoint >> 18 | 240, codePoint >> 12 & 63 | 128, codePoint >> 6 & 63 | 128, codePoint & 63 | 128);\n } else {\n throw new Error(\"Invalid code point\");\n }\n }\n\n return bytes;\n }\n\n function asciiToBytes(str) {\n const byteArray = [];\n\n for (let i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 255);\n }\n\n return byteArray;\n }\n\n function utf16leToBytes(str, units) {\n let c, hi, lo;\n const byteArray = [];\n\n for (let i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break;\n c = str.charCodeAt(i);\n hi = c >> 8;\n lo = c % 256;\n byteArray.push(lo);\n byteArray.push(hi);\n }\n\n return byteArray;\n }\n\n function base64ToBytes(str) {\n return base64.toByteArray(base64clean(str));\n }\n\n function blitBuffer(src, dst, offset, length) {\n let i;\n\n for (i = 0; i < length; ++i) {\n if (i + offset >= dst.length || i >= src.length) break;\n dst[i + offset] = src[i];\n }\n\n return i;\n } // ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass\n // the `instanceof` check but they should be treated as of that type.\n // See: https://github.com/feross/buffer/issues/166\n\n\n function isInstance(obj, type) {\n return obj instanceof type || obj != null && obj.constructor != null && obj.constructor.name != null && obj.constructor.name === type.name;\n }\n\n function numberIsNaN(obj) {\n // For IE11 support\n return obj !== obj; // eslint-disable-line no-self-compare\n } // Create lookup table for `toString('hex')`\n // See: https://github.com/feross/buffer/issues/219\n\n\n const hexSliceLookupTable = function () {\n const alphabet = \"0123456789abcdef\";\n const table = new Array(256);\n\n for (let i = 0; i < 16; ++i) {\n const i16 = i * 16;\n\n for (let j = 0; j < 16; ++j) {\n table[i16 + j] = alphabet[i] + alphabet[j];\n }\n }\n\n return table;\n }(); // Return not function with Error if BigInt not supported\n\n\n function defineBigIntMethod(fn) {\n return typeof BigInt === \"undefined\" ? BufferBigIntNotDefined : fn;\n }\n\n function BufferBigIntNotDefined() {\n throw new Error(\"BigInt not supported\");\n }\n\n return exports$1;\n}\n\nconst exports = dew();\nexports['Buffer']; exports['SlowBuffer']; exports['INSPECT_MAX_BYTES']; exports['kMaxLength'];\n\nvar Buffer = exports.Buffer;\r\nvar INSPECT_MAX_BYTES = exports.INSPECT_MAX_BYTES;\r\nvar kMaxLength = exports.kMaxLength;\n\nexport { Buffer, INSPECT_MAX_BYTES, exports as default, kMaxLength };\n", "export { Buffer } from \"buffer\";\n", "'use strict';\n\n\nfunction isNothing(subject) {\n return (typeof subject === 'undefined') || (subject === null);\n}\n\n\nfunction isObject(subject) {\n return (typeof subject === 'object') && (subject !== null);\n}\n\n\nfunction toArray(sequence) {\n if (Array.isArray(sequence)) return sequence;\n else if (isNothing(sequence)) return [];\n\n return [ sequence ];\n}\n\n\nfunction extend(target, source) {\n var index, length, key, sourceKeys;\n\n if (source) {\n sourceKeys = Object.keys(source);\n\n for (index = 0, length = sourceKeys.length; index < length; index += 1) {\n key = sourceKeys[index];\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\n\nfunction repeat(string, count) {\n var result = '', cycle;\n\n for (cycle = 0; cycle < count; cycle += 1) {\n result += string;\n }\n\n return result;\n}\n\n\nfunction isNegativeZero(number) {\n return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number);\n}\n\n\nmodule.exports.isNothing = isNothing;\nmodule.exports.isObject = isObject;\nmodule.exports.toArray = toArray;\nmodule.exports.repeat = repeat;\nmodule.exports.isNegativeZero = isNegativeZero;\nmodule.exports.extend = extend;\n", "// YAML error class. http://stackoverflow.com/questions/8458984\n//\n'use strict';\n\n\nfunction formatError(exception, compact) {\n var where = '', message = exception.reason || '(unknown reason)';\n\n if (!exception.mark) return message;\n\n if (exception.mark.name) {\n where += 'in \"' + exception.mark.name + '\" ';\n }\n\n where += '(' + (exception.mark.line + 1) + ':' + (exception.mark.column + 1) + ')';\n\n if (!compact && exception.mark.snippet) {\n where += '\\n\\n' + exception.mark.snippet;\n }\n\n return message + ' ' + where;\n}\n\n\nfunction YAMLException(reason, mark) {\n // Super constructor\n Error.call(this);\n\n this.name = 'YAMLException';\n this.reason = reason;\n this.mark = mark;\n this.message = formatError(this, false);\n\n // Include stack trace in error object\n if (Error.captureStackTrace) {\n // Chrome and NodeJS\n Error.captureStackTrace(this, this.constructor);\n } else {\n // FF, IE 10+ and Safari 6+. Fallback for others\n this.stack = (new Error()).stack || '';\n }\n}\n\n\n// Inherit from Error\nYAMLException.prototype = Object.create(Error.prototype);\nYAMLException.prototype.constructor = YAMLException;\n\n\nYAMLException.prototype.toString = function toString(compact) {\n return this.name + ': ' + formatError(this, compact);\n};\n\n\nmodule.exports = YAMLException;\n", "'use strict';\n\n\nvar common = require('./common');\n\n\n// get snippet for a single line, respecting maxLength\nfunction getLine(buffer, lineStart, lineEnd, position, maxLineLength) {\n var head = '';\n var tail = '';\n var maxHalfLength = Math.floor(maxLineLength / 2) - 1;\n\n if (position - lineStart > maxHalfLength) {\n head = ' ... ';\n lineStart = position - maxHalfLength + head.length;\n }\n\n if (lineEnd - position > maxHalfLength) {\n tail = ' ...';\n lineEnd = position + maxHalfLength - tail.length;\n }\n\n return {\n str: head + buffer.slice(lineStart, lineEnd).replace(/\\t/g, '\u2192') + tail,\n pos: position - lineStart + head.length // relative position\n };\n}\n\n\nfunction padStart(string, max) {\n return common.repeat(' ', max - string.length) + string;\n}\n\n\nfunction makeSnippet(mark, options) {\n options = Object.create(options || null);\n\n if (!mark.buffer) return null;\n\n if (!options.maxLength) options.maxLength = 79;\n if (typeof options.indent !== 'number') options.indent = 1;\n if (typeof options.linesBefore !== 'number') options.linesBefore = 3;\n if (typeof options.linesAfter !== 'number') options.linesAfter = 2;\n\n var re = /\\r?\\n|\\r|\\0/g;\n var lineStarts = [ 0 ];\n var lineEnds = [];\n var match;\n var foundLineNo = -1;\n\n while ((match = re.exec(mark.buffer))) {\n lineEnds.push(match.index);\n lineStarts.push(match.index + match[0].length);\n\n if (mark.position <= match.index && foundLineNo < 0) {\n foundLineNo = lineStarts.length - 2;\n }\n }\n\n if (foundLineNo < 0) foundLineNo = lineStarts.length - 1;\n\n var result = '', i, line;\n var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;\n var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);\n\n for (i = 1; i <= options.linesBefore; i++) {\n if (foundLineNo - i < 0) break;\n line = getLine(\n mark.buffer,\n lineStarts[foundLineNo - i],\n lineEnds[foundLineNo - i],\n mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]),\n maxLineLength\n );\n result = common.repeat(' ', options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) +\n ' | ' + line.str + '\\n' + result;\n }\n\n line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);\n result += common.repeat(' ', options.indent) + padStart((mark.line + 1).toString(), lineNoLength) +\n ' | ' + line.str + '\\n';\n result += common.repeat('-', options.indent + lineNoLength + 3 + line.pos) + '^' + '\\n';\n\n for (i = 1; i <= options.linesAfter; i++) {\n if (foundLineNo + i >= lineEnds.length) break;\n line = getLine(\n mark.buffer,\n lineStarts[foundLineNo + i],\n lineEnds[foundLineNo + i],\n mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]),\n maxLineLength\n );\n result += common.repeat(' ', options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) +\n ' | ' + line.str + '\\n';\n }\n\n return result.replace(/\\n$/, '');\n}\n\n\nmodule.exports = makeSnippet;\n", "'use strict';\n\nvar YAMLException = require('./exception');\n\nvar TYPE_CONSTRUCTOR_OPTIONS = [\n 'kind',\n 'multi',\n 'resolve',\n 'construct',\n 'instanceOf',\n 'predicate',\n 'represent',\n 'representName',\n 'defaultStyle',\n 'styleAliases'\n];\n\nvar YAML_NODE_KINDS = [\n 'scalar',\n 'sequence',\n 'mapping'\n];\n\nfunction compileStyleAliases(map) {\n var result = {};\n\n if (map !== null) {\n Object.keys(map).forEach(function (style) {\n map[style].forEach(function (alias) {\n result[String(alias)] = style;\n });\n });\n }\n\n return result;\n}\n\nfunction Type(tag, options) {\n options = options || {};\n\n Object.keys(options).forEach(function (name) {\n if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {\n throw new YAMLException('Unknown option \"' + name + '\" is met in definition of \"' + tag + '\" YAML type.');\n }\n });\n\n // TODO: Add tag format check.\n this.options = options; // keep original options in case user wants to extend this type later\n this.tag = tag;\n this.kind = options['kind'] || null;\n this.resolve = options['resolve'] || function () { return true; };\n this.construct = options['construct'] || function (data) { return data; };\n this.instanceOf = options['instanceOf'] || null;\n this.predicate = options['predicate'] || null;\n this.represent = options['represent'] || null;\n this.representName = options['representName'] || null;\n this.defaultStyle = options['defaultStyle'] || null;\n this.multi = options['multi'] || false;\n this.styleAliases = compileStyleAliases(options['styleAliases'] || null);\n\n if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {\n throw new YAMLException('Unknown kind \"' + this.kind + '\" is specified for \"' + tag + '\" YAML type.');\n }\n}\n\nmodule.exports = Type;\n", "'use strict';\n\n/*eslint-disable max-len*/\n\nvar YAMLException = require('./exception');\nvar Type = require('./type');\n\n\nfunction compileList(schema, name) {\n var result = [];\n\n schema[name].forEach(function (currentType) {\n var newIndex = result.length;\n\n result.forEach(function (previousType, previousIndex) {\n if (previousType.tag === currentType.tag &&\n previousType.kind === currentType.kind &&\n previousType.multi === currentType.multi) {\n\n newIndex = previousIndex;\n }\n });\n\n result[newIndex] = currentType;\n });\n\n return result;\n}\n\n\nfunction compileMap(/* lists... */) {\n var result = {\n scalar: {},\n sequence: {},\n mapping: {},\n fallback: {},\n multi: {\n scalar: [],\n sequence: [],\n mapping: [],\n fallback: []\n }\n }, index, length;\n\n function collectType(type) {\n if (type.multi) {\n result.multi[type.kind].push(type);\n result.multi['fallback'].push(type);\n } else {\n result[type.kind][type.tag] = result['fallback'][type.tag] = type;\n }\n }\n\n for (index = 0, length = arguments.length; index < length; index += 1) {\n arguments[index].forEach(collectType);\n }\n return result;\n}\n\n\nfunction Schema(definition) {\n return this.extend(definition);\n}\n\n\nSchema.prototype.extend = function extend(definition) {\n var implicit = [];\n var explicit = [];\n\n if (definition instanceof Type) {\n // Schema.extend(type)\n explicit.push(definition);\n\n } else if (Array.isArray(definition)) {\n // Schema.extend([ type1, type2, ... ])\n explicit = explicit.concat(definition);\n\n } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {\n // Schema.extend({ explicit: [ type1, type2, ... ], implicit: [ type1, type2, ... ] })\n if (definition.implicit) implicit = implicit.concat(definition.implicit);\n if (definition.explicit) explicit = explicit.concat(definition.explicit);\n\n } else {\n throw new YAMLException('Schema.extend argument should be a Type, [ Type ], ' +\n 'or a schema definition ({ implicit: [...], explicit: [...] })');\n }\n\n implicit.forEach(function (type) {\n if (!(type instanceof Type)) {\n throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.');\n }\n\n if (type.loadKind && type.loadKind !== 'scalar') {\n throw new YAMLException('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.');\n }\n\n if (type.multi) {\n throw new YAMLException('There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.');\n }\n });\n\n explicit.forEach(function (type) {\n if (!(type instanceof Type)) {\n throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.');\n }\n });\n\n var result = Object.create(Schema.prototype);\n\n result.implicit = (this.implicit || []).concat(implicit);\n result.explicit = (this.explicit || []).concat(explicit);\n\n result.compiledImplicit = compileList(result, 'implicit');\n result.compiledExplicit = compileList(result, 'explicit');\n result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);\n\n return result;\n};\n\n\nmodule.exports = Schema;\n", "'use strict';\n\nvar Type = require('../type');\n\nmodule.exports = new Type('tag:yaml.org,2002:str', {\n kind: 'scalar',\n construct: function (data) { return data !== null ? data : ''; }\n});\n", "'use strict';\n\nvar Type = require('../type');\n\nmodule.exports = new Type('tag:yaml.org,2002:seq', {\n kind: 'sequence',\n construct: function (data) { return data !== null ? data : []; }\n});\n", "'use strict';\n\nvar Type = require('../type');\n\nmodule.exports = new Type('tag:yaml.org,2002:map', {\n kind: 'mapping',\n construct: function (data) { return data !== null ? data : {}; }\n});\n", "// Standard YAML's Failsafe schema.\n// http://www.yaml.org/spec/1.2/spec.html#id2802346\n\n\n'use strict';\n\n\nvar Schema = require('../schema');\n\n\nmodule.exports = new Schema({\n explicit: [\n require('../type/str'),\n require('../type/seq'),\n require('../type/map')\n ]\n});\n", "'use strict';\n\nvar Type = require('../type');\n\nfunction resolveYamlNull(data) {\n if (data === null) return true;\n\n var max = data.length;\n\n return (max === 1 && data === '~') ||\n (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL'));\n}\n\nfunction constructYamlNull() {\n return null;\n}\n\nfunction isNull(object) {\n return object === null;\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:null', {\n kind: 'scalar',\n resolve: resolveYamlNull,\n construct: constructYamlNull,\n predicate: isNull,\n represent: {\n canonical: function () { return '~'; },\n lowercase: function () { return 'null'; },\n uppercase: function () { return 'NULL'; },\n camelcase: function () { return 'Null'; },\n empty: function () { return ''; }\n },\n defaultStyle: 'lowercase'\n});\n", "'use strict';\n\nvar Type = require('../type');\n\nfunction resolveYamlBoolean(data) {\n if (data === null) return false;\n\n var max = data.length;\n\n return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) ||\n (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE'));\n}\n\nfunction constructYamlBoolean(data) {\n return data === 'true' ||\n data === 'True' ||\n data === 'TRUE';\n}\n\nfunction isBoolean(object) {\n return Object.prototype.toString.call(object) === '[object Boolean]';\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:bool', {\n kind: 'scalar',\n resolve: resolveYamlBoolean,\n construct: constructYamlBoolean,\n predicate: isBoolean,\n represent: {\n lowercase: function (object) { return object ? 'true' : 'false'; },\n uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; },\n camelcase: function (object) { return object ? 'True' : 'False'; }\n },\n defaultStyle: 'lowercase'\n});\n", "'use strict';\n\nvar common = require('../common');\nvar Type = require('../type');\n\nfunction isHexCode(c) {\n return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) ||\n ((0x41/* A */ <= c) && (c <= 0x46/* F */)) ||\n ((0x61/* a */ <= c) && (c <= 0x66/* f */));\n}\n\nfunction isOctCode(c) {\n return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */));\n}\n\nfunction isDecCode(c) {\n return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */));\n}\n\nfunction resolveYamlInteger(data) {\n if (data === null) return false;\n\n var max = data.length,\n index = 0,\n hasDigits = false,\n ch;\n\n if (!max) return false;\n\n ch = data[index];\n\n // sign\n if (ch === '-' || ch === '+') {\n ch = data[++index];\n }\n\n if (ch === '0') {\n // 0\n if (index + 1 === max) return true;\n ch = data[++index];\n\n // base 2, base 8, base 16\n\n if (ch === 'b') {\n // base 2\n index++;\n\n for (; index < max; index++) {\n ch = data[index];\n if (ch === '_') continue;\n if (ch !== '0' && ch !== '1') return false;\n hasDigits = true;\n }\n return hasDigits && ch !== '_';\n }\n\n\n if (ch === 'x') {\n // base 16\n index++;\n\n for (; index < max; index++) {\n ch = data[index];\n if (ch === '_') continue;\n if (!isHexCode(data.charCodeAt(index))) return false;\n hasDigits = true;\n }\n return hasDigits && ch !== '_';\n }\n\n\n if (ch === 'o') {\n // base 8\n index++;\n\n for (; index < max; index++) {\n ch = data[index];\n if (ch === '_') continue;\n if (!isOctCode(data.charCodeAt(index))) return false;\n hasDigits = true;\n }\n return hasDigits && ch !== '_';\n }\n }\n\n // base 10 (except 0)\n\n // value should not start with `_`;\n if (ch === '_') return false;\n\n for (; index < max; index++) {\n ch = data[index];\n if (ch === '_') continue;\n if (!isDecCode(data.charCodeAt(index))) {\n return false;\n }\n hasDigits = true;\n }\n\n // Should have digits and should not end with `_`\n if (!hasDigits || ch === '_') return false;\n\n return true;\n}\n\nfunction constructYamlInteger(data) {\n var value = data, sign = 1, ch;\n\n if (value.indexOf('_') !== -1) {\n value = value.replace(/_/g, '');\n }\n\n ch = value[0];\n\n if (ch === '-' || ch === '+') {\n if (ch === '-') sign = -1;\n value = value.slice(1);\n ch = value[0];\n }\n\n if (value === '0') return 0;\n\n if (ch === '0') {\n if (value[1] === 'b') return sign * parseInt(value.slice(2), 2);\n if (value[1] === 'x') return sign * parseInt(value.slice(2), 16);\n if (value[1] === 'o') return sign * parseInt(value.slice(2), 8);\n }\n\n return sign * parseInt(value, 10);\n}\n\nfunction isInteger(object) {\n return (Object.prototype.toString.call(object)) === '[object Number]' &&\n (object % 1 === 0 && !common.isNegativeZero(object));\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:int', {\n kind: 'scalar',\n resolve: resolveYamlInteger,\n construct: constructYamlInteger,\n predicate: isInteger,\n represent: {\n binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); },\n octal: function (obj) { return obj >= 0 ? '0o' + obj.toString(8) : '-0o' + obj.toString(8).slice(1); },\n decimal: function (obj) { return obj.toString(10); },\n /* eslint-disable max-len */\n hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); }\n },\n defaultStyle: 'decimal',\n styleAliases: {\n binary: [ 2, 'bin' ],\n octal: [ 8, 'oct' ],\n decimal: [ 10, 'dec' ],\n hexadecimal: [ 16, 'hex' ]\n }\n});\n", "'use strict';\n\nvar common = require('../common');\nvar Type = require('../type');\n\nvar YAML_FLOAT_PATTERN = new RegExp(\n // 2.5e4, 2.5 and integers\n '^(?:[-+]?(?:[0-9][0-9_]*)(?:\\\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' +\n // .2e4, .2\n // special case, seems not from spec\n '|\\\\.[0-9_]+(?:[eE][-+]?[0-9]+)?' +\n // .inf\n '|[-+]?\\\\.(?:inf|Inf|INF)' +\n // .nan\n '|\\\\.(?:nan|NaN|NAN))$');\n\nfunction resolveYamlFloat(data) {\n if (data === null) return false;\n\n if (!YAML_FLOAT_PATTERN.test(data) ||\n // Quick hack to not allow integers end with `_`\n // Probably should update regexp & check speed\n data[data.length - 1] === '_') {\n return false;\n }\n\n return true;\n}\n\nfunction constructYamlFloat(data) {\n var value, sign;\n\n value = data.replace(/_/g, '').toLowerCase();\n sign = value[0] === '-' ? -1 : 1;\n\n if ('+-'.indexOf(value[0]) >= 0) {\n value = value.slice(1);\n }\n\n if (value === '.inf') {\n return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;\n\n } else if (value === '.nan') {\n return NaN;\n }\n return sign * parseFloat(value, 10);\n}\n\n\nvar SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;\n\nfunction representYamlFloat(object, style) {\n var res;\n\n if (isNaN(object)) {\n switch (style) {\n case 'lowercase': return '.nan';\n case 'uppercase': return '.NAN';\n case 'camelcase': return '.NaN';\n }\n } else if (Number.POSITIVE_INFINITY === object) {\n switch (style) {\n case 'lowercase': return '.inf';\n case 'uppercase': return '.INF';\n case 'camelcase': return '.Inf';\n }\n } else if (Number.NEGATIVE_INFINITY === object) {\n switch (style) {\n case 'lowercase': return '-.inf';\n case 'uppercase': return '-.INF';\n case 'camelcase': return '-.Inf';\n }\n } else if (common.isNegativeZero(object)) {\n return '-0.0';\n }\n\n res = object.toString(10);\n\n // JS stringifier can build scientific format without dots: 5e-100,\n // while YAML requres dot: 5.e-100. Fix it with simple hack\n\n return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res;\n}\n\nfunction isFloat(object) {\n return (Object.prototype.toString.call(object) === '[object Number]') &&\n (object % 1 !== 0 || common.isNegativeZero(object));\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:float', {\n kind: 'scalar',\n resolve: resolveYamlFloat,\n construct: constructYamlFloat,\n predicate: isFloat,\n represent: representYamlFloat,\n defaultStyle: 'lowercase'\n});\n", "// Standard YAML's JSON schema.\n// http://www.yaml.org/spec/1.2/spec.html#id2803231\n//\n// NOTE: JS-YAML does not support schema-specific tag resolution restrictions.\n// So, this schema is not such strict as defined in the YAML specification.\n// It allows numbers in binary notaion, use `Null` and `NULL` as `null`, etc.\n\n\n'use strict';\n\n\nmodule.exports = require('./failsafe').extend({\n implicit: [\n require('../type/null'),\n require('../type/bool'),\n require('../type/int'),\n require('../type/float')\n ]\n});\n", "// Standard YAML's Core schema.\n// http://www.yaml.org/spec/1.2/spec.html#id2804923\n//\n// NOTE: JS-YAML does not support schema-specific tag resolution restrictions.\n// So, Core schema has no distinctions from JSON schema is JS-YAML.\n\n\n'use strict';\n\n\nmodule.exports = require('./json');\n", "'use strict';\n\nvar Type = require('../type');\n\nvar YAML_DATE_REGEXP = new RegExp(\n '^([0-9][0-9][0-9][0-9])' + // [1] year\n '-([0-9][0-9])' + // [2] month\n '-([0-9][0-9])$'); // [3] day\n\nvar YAML_TIMESTAMP_REGEXP = new RegExp(\n '^([0-9][0-9][0-9][0-9])' + // [1] year\n '-([0-9][0-9]?)' + // [2] month\n '-([0-9][0-9]?)' + // [3] day\n '(?:[Tt]|[ \\\\t]+)' + // ...\n '([0-9][0-9]?)' + // [4] hour\n ':([0-9][0-9])' + // [5] minute\n ':([0-9][0-9])' + // [6] second\n '(?:\\\\.([0-9]*))?' + // [7] fraction\n '(?:[ \\\\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour\n '(?::([0-9][0-9]))?))?$'); // [11] tz_minute\n\nfunction resolveYamlTimestamp(data) {\n if (data === null) return false;\n if (YAML_DATE_REGEXP.exec(data) !== null) return true;\n if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true;\n return false;\n}\n\nfunction constructYamlTimestamp(data) {\n var match, year, month, day, hour, minute, second, fraction = 0,\n delta = null, tz_hour, tz_minute, date;\n\n match = YAML_DATE_REGEXP.exec(data);\n if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);\n\n if (match === null) throw new Error('Date resolve error');\n\n // match: [1] year [2] month [3] day\n\n year = +(match[1]);\n month = +(match[2]) - 1; // JS month starts with 0\n day = +(match[3]);\n\n if (!match[4]) { // no hour\n return new Date(Date.UTC(year, month, day));\n }\n\n // match: [4] hour [5] minute [6] second [7] fraction\n\n hour = +(match[4]);\n minute = +(match[5]);\n second = +(match[6]);\n\n if (match[7]) {\n fraction = match[7].slice(0, 3);\n while (fraction.length < 3) { // milli-seconds\n fraction += '0';\n }\n fraction = +fraction;\n }\n\n // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute\n\n if (match[9]) {\n tz_hour = +(match[10]);\n tz_minute = +(match[11] || 0);\n delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds\n if (match[9] === '-') delta = -delta;\n }\n\n date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));\n\n if (delta) date.setTime(date.getTime() - delta);\n\n return date;\n}\n\nfunction representYamlTimestamp(object /*, style*/) {\n return object.toISOString();\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:timestamp', {\n kind: 'scalar',\n resolve: resolveYamlTimestamp,\n construct: constructYamlTimestamp,\n instanceOf: Date,\n represent: representYamlTimestamp\n});\n", "'use strict';\n\nvar Type = require('../type');\n\nfunction resolveYamlMerge(data) {\n return data === '<<' || data === null;\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:merge', {\n kind: 'scalar',\n resolve: resolveYamlMerge\n});\n", "'use strict';\n\n/*eslint-disable no-bitwise*/\n\n\nvar Type = require('../type');\n\n\n// [ 64, 65, 66 ] -> [ padding, CR, LF ]\nvar BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\\n\\r';\n\n\nfunction resolveYamlBinary(data) {\n if (data === null) return false;\n\n var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP;\n\n // Convert one by one.\n for (idx = 0; idx < max; idx++) {\n code = map.indexOf(data.charAt(idx));\n\n // Skip CR/LF\n if (code > 64) continue;\n\n // Fail on illegal characters\n if (code < 0) return false;\n\n bitlen += 6;\n }\n\n // If there are any bits left, source was corrupted\n return (bitlen % 8) === 0;\n}\n\nfunction constructYamlBinary(data) {\n var idx, tailbits,\n input = data.replace(/[\\r\\n=]/g, ''), // remove CR/LF & padding to simplify scan\n max = input.length,\n map = BASE64_MAP,\n bits = 0,\n result = [];\n\n // Collect by 6*4 bits (3 bytes)\n\n for (idx = 0; idx < max; idx++) {\n if ((idx % 4 === 0) && idx) {\n result.push((bits >> 16) & 0xFF);\n result.push((bits >> 8) & 0xFF);\n result.push(bits & 0xFF);\n }\n\n bits = (bits << 6) | map.indexOf(input.charAt(idx));\n }\n\n // Dump tail\n\n tailbits = (max % 4) * 6;\n\n if (tailbits === 0) {\n result.push((bits >> 16) & 0xFF);\n result.push((bits >> 8) & 0xFF);\n result.push(bits & 0xFF);\n } else if (tailbits === 18) {\n result.push((bits >> 10) & 0xFF);\n result.push((bits >> 2) & 0xFF);\n } else if (tailbits === 12) {\n result.push((bits >> 4) & 0xFF);\n }\n\n return new Uint8Array(result);\n}\n\nfunction representYamlBinary(object /*, style*/) {\n var result = '', bits = 0, idx, tail,\n max = object.length,\n map = BASE64_MAP;\n\n // Convert every three bytes to 4 ASCII characters.\n\n for (idx = 0; idx < max; idx++) {\n if ((idx % 3 === 0) && idx) {\n result += map[(bits >> 18) & 0x3F];\n result += map[(bits >> 12) & 0x3F];\n result += map[(bits >> 6) & 0x3F];\n result += map[bits & 0x3F];\n }\n\n bits = (bits << 8) + object[idx];\n }\n\n // Dump tail\n\n tail = max % 3;\n\n if (tail === 0) {\n result += map[(bits >> 18) & 0x3F];\n result += map[(bits >> 12) & 0x3F];\n result += map[(bits >> 6) & 0x3F];\n result += map[bits & 0x3F];\n } else if (tail === 2) {\n result += map[(bits >> 10) & 0x3F];\n result += map[(bits >> 4) & 0x3F];\n result += map[(bits << 2) & 0x3F];\n result += map[64];\n } else if (tail === 1) {\n result += map[(bits >> 2) & 0x3F];\n result += map[(bits << 4) & 0x3F];\n result += map[64];\n result += map[64];\n }\n\n return result;\n}\n\nfunction isBinary(obj) {\n return Object.prototype.toString.call(obj) === '[object Uint8Array]';\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:binary', {\n kind: 'scalar',\n resolve: resolveYamlBinary,\n construct: constructYamlBinary,\n predicate: isBinary,\n represent: representYamlBinary\n});\n", "'use strict';\n\nvar Type = require('../type');\n\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\nvar _toString = Object.prototype.toString;\n\nfunction resolveYamlOmap(data) {\n if (data === null) return true;\n\n var objectKeys = [], index, length, pair, pairKey, pairHasKey,\n object = data;\n\n for (index = 0, length = object.length; index < length; index += 1) {\n pair = object[index];\n pairHasKey = false;\n\n if (_toString.call(pair) !== '[object Object]') return false;\n\n for (pairKey in pair) {\n if (_hasOwnProperty.call(pair, pairKey)) {\n if (!pairHasKey) pairHasKey = true;\n else return false;\n }\n }\n\n if (!pairHasKey) return false;\n\n if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);\n else return false;\n }\n\n return true;\n}\n\nfunction constructYamlOmap(data) {\n return data !== null ? data : [];\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:omap', {\n kind: 'sequence',\n resolve: resolveYamlOmap,\n construct: constructYamlOmap\n});\n", "'use strict';\n\nvar Type = require('../type');\n\nvar _toString = Object.prototype.toString;\n\nfunction resolveYamlPairs(data) {\n if (data === null) return true;\n\n var index, length, pair, keys, result,\n object = data;\n\n result = new Array(object.length);\n\n for (index = 0, length = object.length; index < length; index += 1) {\n pair = object[index];\n\n if (_toString.call(pair) !== '[object Object]') return false;\n\n keys = Object.keys(pair);\n\n if (keys.length !== 1) return false;\n\n result[index] = [ keys[0], pair[keys[0]] ];\n }\n\n return true;\n}\n\nfunction constructYamlPairs(data) {\n if (data === null) return [];\n\n var index, length, pair, keys, result,\n object = data;\n\n result = new Array(object.length);\n\n for (index = 0, length = object.length; index < length; index += 1) {\n pair = object[index];\n\n keys = Object.keys(pair);\n\n result[index] = [ keys[0], pair[keys[0]] ];\n }\n\n return result;\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:pairs', {\n kind: 'sequence',\n resolve: resolveYamlPairs,\n construct: constructYamlPairs\n});\n", "'use strict';\n\nvar Type = require('../type');\n\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction resolveYamlSet(data) {\n if (data === null) return true;\n\n var key, object = data;\n\n for (key in object) {\n if (_hasOwnProperty.call(object, key)) {\n if (object[key] !== null) return false;\n }\n }\n\n return true;\n}\n\nfunction constructYamlSet(data) {\n return data !== null ? data : {};\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:set', {\n kind: 'mapping',\n resolve: resolveYamlSet,\n construct: constructYamlSet\n});\n", "// JS-YAML's default schema for `safeLoad` function.\n// It is not described in the YAML specification.\n//\n// This schema is based on standard YAML's Core schema and includes most of\n// extra types described at YAML tag repository. (http://yaml.org/type/)\n\n\n'use strict';\n\n\nmodule.exports = require('./core').extend({\n implicit: [\n require('../type/timestamp'),\n require('../type/merge')\n ],\n explicit: [\n require('../type/binary'),\n require('../type/omap'),\n require('../type/pairs'),\n require('../type/set')\n ]\n});\n", "'use strict';\n\n/*eslint-disable max-len,no-use-before-define*/\n\nvar common = require('./common');\nvar YAMLException = require('./exception');\nvar makeSnippet = require('./snippet');\nvar DEFAULT_SCHEMA = require('./schema/default');\n\n\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\n\n\nvar CONTEXT_FLOW_IN = 1;\nvar CONTEXT_FLOW_OUT = 2;\nvar CONTEXT_BLOCK_IN = 3;\nvar CONTEXT_BLOCK_OUT = 4;\n\n\nvar CHOMPING_CLIP = 1;\nvar CHOMPING_STRIP = 2;\nvar CHOMPING_KEEP = 3;\n\n\nvar PATTERN_NON_PRINTABLE = /[\\x00-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F-\\x84\\x86-\\x9F\\uFFFE\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/;\nvar PATTERN_NON_ASCII_LINE_BREAKS = /[\\x85\\u2028\\u2029]/;\nvar PATTERN_FLOW_INDICATORS = /[,\\[\\]\\{\\}]/;\nvar PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\\-]+!)$/i;\nvar PATTERN_TAG_URI = /^(?:!|[^,\\[\\]\\{\\}])(?:%[0-9a-f]{2}|[0-9a-z\\-#;\\/\\?:@&=\\+\\$,_\\.!~\\*'\\(\\)\\[\\]])*$/i;\n\n\nfunction _class(obj) { return Object.prototype.toString.call(obj); }\n\nfunction is_EOL(c) {\n return (c === 0x0A/* LF */) || (c === 0x0D/* CR */);\n}\n\nfunction is_WHITE_SPACE(c) {\n return (c === 0x09/* Tab */) || (c === 0x20/* Space */);\n}\n\nfunction is_WS_OR_EOL(c) {\n return (c === 0x09/* Tab */) ||\n (c === 0x20/* Space */) ||\n (c === 0x0A/* LF */) ||\n (c === 0x0D/* CR */);\n}\n\nfunction is_FLOW_INDICATOR(c) {\n return c === 0x2C/* , */ ||\n c === 0x5B/* [ */ ||\n c === 0x5D/* ] */ ||\n c === 0x7B/* { */ ||\n c === 0x7D/* } */;\n}\n\nfunction fromHexCode(c) {\n var lc;\n\n if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {\n return c - 0x30;\n }\n\n /*eslint-disable no-bitwise*/\n lc = c | 0x20;\n\n if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) {\n return lc - 0x61 + 10;\n }\n\n return -1;\n}\n\nfunction escapedHexLen(c) {\n if (c === 0x78/* x */) { return 2; }\n if (c === 0x75/* u */) { return 4; }\n if (c === 0x55/* U */) { return 8; }\n return 0;\n}\n\nfunction fromDecimalCode(c) {\n if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {\n return c - 0x30;\n }\n\n return -1;\n}\n\nfunction simpleEscapeSequence(c) {\n /* eslint-disable indent */\n return (c === 0x30/* 0 */) ? '\\x00' :\n (c === 0x61/* a */) ? '\\x07' :\n (c === 0x62/* b */) ? '\\x08' :\n (c === 0x74/* t */) ? '\\x09' :\n (c === 0x09/* Tab */) ? '\\x09' :\n (c === 0x6E/* n */) ? '\\x0A' :\n (c === 0x76/* v */) ? '\\x0B' :\n (c === 0x66/* f */) ? '\\x0C' :\n (c === 0x72/* r */) ? '\\x0D' :\n (c === 0x65/* e */) ? '\\x1B' :\n (c === 0x20/* Space */) ? ' ' :\n (c === 0x22/* \" */) ? '\\x22' :\n (c === 0x2F/* / */) ? '/' :\n (c === 0x5C/* \\ */) ? '\\x5C' :\n (c === 0x4E/* N */) ? '\\x85' :\n (c === 0x5F/* _ */) ? '\\xA0' :\n (c === 0x4C/* L */) ? '\\u2028' :\n (c === 0x50/* P */) ? '\\u2029' : '';\n}\n\nfunction charFromCodepoint(c) {\n if (c <= 0xFFFF) {\n return String.fromCharCode(c);\n }\n // Encode UTF-16 surrogate pair\n // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF\n return String.fromCharCode(\n ((c - 0x010000) >> 10) + 0xD800,\n ((c - 0x010000) & 0x03FF) + 0xDC00\n );\n}\n\nvar simpleEscapeCheck = new Array(256); // integer, for fast access\nvar simpleEscapeMap = new Array(256);\nfor (var i = 0; i < 256; i++) {\n simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;\n simpleEscapeMap[i] = simpleEscapeSequence(i);\n}\n\n\nfunction State(input, options) {\n this.input = input;\n\n this.filename = options['filename'] || null;\n this.schema = options['schema'] || DEFAULT_SCHEMA;\n this.onWarning = options['onWarning'] || null;\n // (Hidden) Remove? makes the loader to expect YAML 1.1 documents\n // if such documents have no explicit %YAML directive\n this.legacy = options['legacy'] || false;\n\n this.json = options['json'] || false;\n this.listener = options['listener'] || null;\n\n this.implicitTypes = this.schema.compiledImplicit;\n this.typeMap = this.schema.compiledTypeMap;\n\n this.length = input.length;\n this.position = 0;\n this.line = 0;\n this.lineStart = 0;\n this.lineIndent = 0;\n\n // position of first leading tab in the current line,\n // used to make sure there are no tabs in the indentation\n this.firstTabInLine = -1;\n\n this.documents = [];\n\n /*\n this.version;\n this.checkLineBreaks;\n this.tagMap;\n this.anchorMap;\n this.tag;\n this.anchor;\n this.kind;\n this.result;*/\n\n}\n\n\nfunction generateError(state, message) {\n var mark = {\n name: state.filename,\n buffer: state.input.slice(0, -1), // omit trailing \\0\n position: state.position,\n line: state.line,\n column: state.position - state.lineStart\n };\n\n mark.snippet = makeSnippet(mark);\n\n return new YAMLException(message, mark);\n}\n\nfunction throwError(state, message) {\n throw generateError(state, message);\n}\n\nfunction throwWarning(state, message) {\n if (state.onWarning) {\n state.onWarning.call(null, generateError(state, message));\n }\n}\n\n\nvar directiveHandlers = {\n\n YAML: function handleYamlDirective(state, name, args) {\n\n var match, major, minor;\n\n if (state.version !== null) {\n throwError(state, 'duplication of %YAML directive');\n }\n\n if (args.length !== 1) {\n throwError(state, 'YAML directive accepts exactly one argument');\n }\n\n match = /^([0-9]+)\\.([0-9]+)$/.exec(args[0]);\n\n if (match === null) {\n throwError(state, 'ill-formed argument of the YAML directive');\n }\n\n major = parseInt(match[1], 10);\n minor = parseInt(match[2], 10);\n\n if (major !== 1) {\n throwError(state, 'unacceptable YAML version of the document');\n }\n\n state.version = args[0];\n state.checkLineBreaks = (minor < 2);\n\n if (minor !== 1 && minor !== 2) {\n throwWarning(state, 'unsupported YAML version of the document');\n }\n },\n\n TAG: function handleTagDirective(state, name, args) {\n\n var handle, prefix;\n\n if (args.length !== 2) {\n throwError(state, 'TAG directive accepts exactly two arguments');\n }\n\n handle = args[0];\n prefix = args[1];\n\n if (!PATTERN_TAG_HANDLE.test(handle)) {\n throwError(state, 'ill-formed tag handle (first argument) of the TAG directive');\n }\n\n if (_hasOwnProperty.call(state.tagMap, handle)) {\n throwError(state, 'there is a previously declared suffix for \"' + handle + '\" tag handle');\n }\n\n if (!PATTERN_TAG_URI.test(prefix)) {\n throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive');\n }\n\n try {\n prefix = decodeURIComponent(prefix);\n } catch (err) {\n throwError(state, 'tag prefix is malformed: ' + prefix);\n }\n\n state.tagMap[handle] = prefix;\n }\n};\n\n\nfunction captureSegment(state, start, end, checkJson) {\n var _position, _length, _character, _result;\n\n if (start < end) {\n _result = state.input.slice(start, end);\n\n if (checkJson) {\n for (_position = 0, _length = _result.length; _position < _length; _position += 1) {\n _character = _result.charCodeAt(_position);\n if (!(_character === 0x09 ||\n (0x20 <= _character && _character <= 0x10FFFF))) {\n throwError(state, 'expected valid JSON character');\n }\n }\n } else if (PATTERN_NON_PRINTABLE.test(_result)) {\n throwError(state, 'the stream contains non-printable characters');\n }\n\n state.result += _result;\n }\n}\n\nfunction mergeMappings(state, destination, source, overridableKeys) {\n var sourceKeys, key, index, quantity;\n\n if (!common.isObject(source)) {\n throwError(state, 'cannot merge mappings; the provided source object is unacceptable');\n }\n\n sourceKeys = Object.keys(source);\n\n for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {\n key = sourceKeys[index];\n\n if (!_hasOwnProperty.call(destination, key)) {\n destination[key] = source[key];\n overridableKeys[key] = true;\n }\n }\n}\n\nfunction storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode,\n startLine, startLineStart, startPos) {\n\n var index, quantity;\n\n // The output is a plain object here, so keys can only be strings.\n // We need to convert keyNode to a string, but doing so can hang the process\n // (deeply nested arrays that explode exponentially using aliases).\n if (Array.isArray(keyNode)) {\n keyNode = Array.prototype.slice.call(keyNode);\n\n for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {\n if (Array.isArray(keyNode[index])) {\n throwError(state, 'nested arrays are not supported inside keys');\n }\n\n if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') {\n keyNode[index] = '[object Object]';\n }\n }\n }\n\n // Avoid code execution in load() via toString property\n // (still use its own toString for arrays, timestamps,\n // and whatever user schema extensions happen to have @@toStringTag)\n if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') {\n keyNode = '[object Object]';\n }\n\n\n keyNode = String(keyNode);\n\n if (_result === null) {\n _result = {};\n }\n\n if (keyTag === 'tag:yaml.org,2002:merge') {\n if (Array.isArray(valueNode)) {\n for (index = 0, quantity = valueNode.length; index < quantity; index += 1) {\n mergeMappings(state, _result, valueNode[index], overridableKeys);\n }\n } else {\n mergeMappings(state, _result, valueNode, overridableKeys);\n }\n } else {\n if (!state.json &&\n !_hasOwnProperty.call(overridableKeys, keyNode) &&\n _hasOwnProperty.call(_result, keyNode)) {\n state.line = startLine || state.line;\n state.lineStart = startLineStart || state.lineStart;\n state.position = startPos || state.position;\n throwError(state, 'duplicated mapping key');\n }\n\n // used for this specific key only because Object.defineProperty is slow\n if (keyNode === '__proto__') {\n Object.defineProperty(_result, keyNode, {\n configurable: true,\n enumerable: true,\n writable: true,\n value: valueNode\n });\n } else {\n _result[keyNode] = valueNode;\n }\n delete overridableKeys[keyNode];\n }\n\n return _result;\n}\n\nfunction readLineBreak(state) {\n var ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch === 0x0A/* LF */) {\n state.position++;\n } else if (ch === 0x0D/* CR */) {\n state.position++;\n if (state.input.charCodeAt(state.position) === 0x0A/* LF */) {\n state.position++;\n }\n } else {\n throwError(state, 'a line break is expected');\n }\n\n state.line += 1;\n state.lineStart = state.position;\n state.firstTabInLine = -1;\n}\n\nfunction skipSeparationSpace(state, allowComments, checkIndent) {\n var lineBreaks = 0,\n ch = state.input.charCodeAt(state.position);\n\n while (ch !== 0) {\n while (is_WHITE_SPACE(ch)) {\n if (ch === 0x09/* Tab */ && state.firstTabInLine === -1) {\n state.firstTabInLine = state.position;\n }\n ch = state.input.charCodeAt(++state.position);\n }\n\n if (allowComments && ch === 0x23/* # */) {\n do {\n ch = state.input.charCodeAt(++state.position);\n } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0);\n }\n\n if (is_EOL(ch)) {\n readLineBreak(state);\n\n ch = state.input.charCodeAt(state.position);\n lineBreaks++;\n state.lineIndent = 0;\n\n while (ch === 0x20/* Space */) {\n state.lineIndent++;\n ch = state.input.charCodeAt(++state.position);\n }\n } else {\n break;\n }\n }\n\n if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {\n throwWarning(state, 'deficient indentation');\n }\n\n return lineBreaks;\n}\n\nfunction testDocumentSeparator(state) {\n var _position = state.position,\n ch;\n\n ch = state.input.charCodeAt(_position);\n\n // Condition state.position === state.lineStart is tested\n // in parent on each call, for efficiency. No needs to test here again.\n if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) &&\n ch === state.input.charCodeAt(_position + 1) &&\n ch === state.input.charCodeAt(_position + 2)) {\n\n _position += 3;\n\n ch = state.input.charCodeAt(_position);\n\n if (ch === 0 || is_WS_OR_EOL(ch)) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction writeFoldedLines(state, count) {\n if (count === 1) {\n state.result += ' ';\n } else if (count > 1) {\n state.result += common.repeat('\\n', count - 1);\n }\n}\n\n\nfunction readPlainScalar(state, nodeIndent, withinFlowCollection) {\n var preceding,\n following,\n captureStart,\n captureEnd,\n hasPendingContent,\n _line,\n _lineStart,\n _lineIndent,\n _kind = state.kind,\n _result = state.result,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (is_WS_OR_EOL(ch) ||\n is_FLOW_INDICATOR(ch) ||\n ch === 0x23/* # */ ||\n ch === 0x26/* & */ ||\n ch === 0x2A/* * */ ||\n ch === 0x21/* ! */ ||\n ch === 0x7C/* | */ ||\n ch === 0x3E/* > */ ||\n ch === 0x27/* ' */ ||\n ch === 0x22/* \" */ ||\n ch === 0x25/* % */ ||\n ch === 0x40/* @ */ ||\n ch === 0x60/* ` */) {\n return false;\n }\n\n if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) {\n following = state.input.charCodeAt(state.position + 1);\n\n if (is_WS_OR_EOL(following) ||\n withinFlowCollection && is_FLOW_INDICATOR(following)) {\n return false;\n }\n }\n\n state.kind = 'scalar';\n state.result = '';\n captureStart = captureEnd = state.position;\n hasPendingContent = false;\n\n while (ch !== 0) {\n if (ch === 0x3A/* : */) {\n following = state.input.charCodeAt(state.position + 1);\n\n if (is_WS_OR_EOL(following) ||\n withinFlowCollection && is_FLOW_INDICATOR(following)) {\n break;\n }\n\n } else if (ch === 0x23/* # */) {\n preceding = state.input.charCodeAt(state.position - 1);\n\n if (is_WS_OR_EOL(preceding)) {\n break;\n }\n\n } else if ((state.position === state.lineStart && testDocumentSeparator(state)) ||\n withinFlowCollection && is_FLOW_INDICATOR(ch)) {\n break;\n\n } else if (is_EOL(ch)) {\n _line = state.line;\n _lineStart = state.lineStart;\n _lineIndent = state.lineIndent;\n skipSeparationSpace(state, false, -1);\n\n if (state.lineIndent >= nodeIndent) {\n hasPendingContent = true;\n ch = state.input.charCodeAt(state.position);\n continue;\n } else {\n state.position = captureEnd;\n state.line = _line;\n state.lineStart = _lineStart;\n state.lineIndent = _lineIndent;\n break;\n }\n }\n\n if (hasPendingContent) {\n captureSegment(state, captureStart, captureEnd, false);\n writeFoldedLines(state, state.line - _line);\n captureStart = captureEnd = state.position;\n hasPendingContent = false;\n }\n\n if (!is_WHITE_SPACE(ch)) {\n captureEnd = state.position + 1;\n }\n\n ch = state.input.charCodeAt(++state.position);\n }\n\n captureSegment(state, captureStart, captureEnd, false);\n\n if (state.result) {\n return true;\n }\n\n state.kind = _kind;\n state.result = _result;\n return false;\n}\n\nfunction readSingleQuotedScalar(state, nodeIndent) {\n var ch,\n captureStart, captureEnd;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch !== 0x27/* ' */) {\n return false;\n }\n\n state.kind = 'scalar';\n state.result = '';\n state.position++;\n captureStart = captureEnd = state.position;\n\n while ((ch = state.input.charCodeAt(state.position)) !== 0) {\n if (ch === 0x27/* ' */) {\n captureSegment(state, captureStart, state.position, true);\n ch = state.input.charCodeAt(++state.position);\n\n if (ch === 0x27/* ' */) {\n captureStart = state.position;\n state.position++;\n captureEnd = state.position;\n } else {\n return true;\n }\n\n } else if (is_EOL(ch)) {\n captureSegment(state, captureStart, captureEnd, true);\n writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));\n captureStart = captureEnd = state.position;\n\n } else if (state.position === state.lineStart && testDocumentSeparator(state)) {\n throwError(state, 'unexpected end of the document within a single quoted scalar');\n\n } else {\n state.position++;\n captureEnd = state.position;\n }\n }\n\n throwError(state, 'unexpected end of the stream within a single quoted scalar');\n}\n\nfunction readDoubleQuotedScalar(state, nodeIndent) {\n var captureStart,\n captureEnd,\n hexLength,\n hexResult,\n tmp,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch !== 0x22/* \" */) {\n return false;\n }\n\n state.kind = 'scalar';\n state.result = '';\n state.position++;\n captureStart = captureEnd = state.position;\n\n while ((ch = state.input.charCodeAt(state.position)) !== 0) {\n if (ch === 0x22/* \" */) {\n captureSegment(state, captureStart, state.position, true);\n state.position++;\n return true;\n\n } else if (ch === 0x5C/* \\ */) {\n captureSegment(state, captureStart, state.position, true);\n ch = state.input.charCodeAt(++state.position);\n\n if (is_EOL(ch)) {\n skipSeparationSpace(state, false, nodeIndent);\n\n // TODO: rework to inline fn with no type cast?\n } else if (ch < 256 && simpleEscapeCheck[ch]) {\n state.result += simpleEscapeMap[ch];\n state.position++;\n\n } else if ((tmp = escapedHexLen(ch)) > 0) {\n hexLength = tmp;\n hexResult = 0;\n\n for (; hexLength > 0; hexLength--) {\n ch = state.input.charCodeAt(++state.position);\n\n if ((tmp = fromHexCode(ch)) >= 0) {\n hexResult = (hexResult << 4) + tmp;\n\n } else {\n throwError(state, 'expected hexadecimal character');\n }\n }\n\n state.result += charFromCodepoint(hexResult);\n\n state.position++;\n\n } else {\n throwError(state, 'unknown escape sequence');\n }\n\n captureStart = captureEnd = state.position;\n\n } else if (is_EOL(ch)) {\n captureSegment(state, captureStart, captureEnd, true);\n writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));\n captureStart = captureEnd = state.position;\n\n } else if (state.position === state.lineStart && testDocumentSeparator(state)) {\n throwError(state, 'unexpected end of the document within a double quoted scalar');\n\n } else {\n state.position++;\n captureEnd = state.position;\n }\n }\n\n throwError(state, 'unexpected end of the stream within a double quoted scalar');\n}\n\nfunction readFlowCollection(state, nodeIndent) {\n var readNext = true,\n _line,\n _lineStart,\n _pos,\n _tag = state.tag,\n _result,\n _anchor = state.anchor,\n following,\n terminator,\n isPair,\n isExplicitPair,\n isMapping,\n overridableKeys = Object.create(null),\n keyNode,\n keyTag,\n valueNode,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch === 0x5B/* [ */) {\n terminator = 0x5D;/* ] */\n isMapping = false;\n _result = [];\n } else if (ch === 0x7B/* { */) {\n terminator = 0x7D;/* } */\n isMapping = true;\n _result = {};\n } else {\n return false;\n }\n\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = _result;\n }\n\n ch = state.input.charCodeAt(++state.position);\n\n while (ch !== 0) {\n skipSeparationSpace(state, true, nodeIndent);\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch === terminator) {\n state.position++;\n state.tag = _tag;\n state.anchor = _anchor;\n state.kind = isMapping ? 'mapping' : 'sequence';\n state.result = _result;\n return true;\n } else if (!readNext) {\n throwError(state, 'missed comma between flow collection entries');\n } else if (ch === 0x2C/* , */) {\n // \"flow collection entries can never be completely empty\", as per YAML 1.2, section 7.4\n throwError(state, \"expected the node content, but found ','\");\n }\n\n keyTag = keyNode = valueNode = null;\n isPair = isExplicitPair = false;\n\n if (ch === 0x3F/* ? */) {\n following = state.input.charCodeAt(state.position + 1);\n\n if (is_WS_OR_EOL(following)) {\n isPair = isExplicitPair = true;\n state.position++;\n skipSeparationSpace(state, true, nodeIndent);\n }\n }\n\n _line = state.line; // Save the current line.\n _lineStart = state.lineStart;\n _pos = state.position;\n composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);\n keyTag = state.tag;\n keyNode = state.result;\n skipSeparationSpace(state, true, nodeIndent);\n\n ch = state.input.charCodeAt(state.position);\n\n if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) {\n isPair = true;\n ch = state.input.charCodeAt(++state.position);\n skipSeparationSpace(state, true, nodeIndent);\n composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);\n valueNode = state.result;\n }\n\n if (isMapping) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);\n } else if (isPair) {\n _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));\n } else {\n _result.push(keyNode);\n }\n\n skipSeparationSpace(state, true, nodeIndent);\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch === 0x2C/* , */) {\n readNext = true;\n ch = state.input.charCodeAt(++state.position);\n } else {\n readNext = false;\n }\n }\n\n throwError(state, 'unexpected end of the stream within a flow collection');\n}\n\nfunction readBlockScalar(state, nodeIndent) {\n var captureStart,\n folding,\n chomping = CHOMPING_CLIP,\n didReadContent = false,\n detectedIndent = false,\n textIndent = nodeIndent,\n emptyLines = 0,\n atMoreIndented = false,\n tmp,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch === 0x7C/* | */) {\n folding = false;\n } else if (ch === 0x3E/* > */) {\n folding = true;\n } else {\n return false;\n }\n\n state.kind = 'scalar';\n state.result = '';\n\n while (ch !== 0) {\n ch = state.input.charCodeAt(++state.position);\n\n if (ch === 0x2B/* + */ || ch === 0x2D/* - */) {\n if (CHOMPING_CLIP === chomping) {\n chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP;\n } else {\n throwError(state, 'repeat of a chomping mode identifier');\n }\n\n } else if ((tmp = fromDecimalCode(ch)) >= 0) {\n if (tmp === 0) {\n throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one');\n } else if (!detectedIndent) {\n textIndent = nodeIndent + tmp - 1;\n detectedIndent = true;\n } else {\n throwError(state, 'repeat of an indentation width identifier');\n }\n\n } else {\n break;\n }\n }\n\n if (is_WHITE_SPACE(ch)) {\n do { ch = state.input.charCodeAt(++state.position); }\n while (is_WHITE_SPACE(ch));\n\n if (ch === 0x23/* # */) {\n do { ch = state.input.charCodeAt(++state.position); }\n while (!is_EOL(ch) && (ch !== 0));\n }\n }\n\n while (ch !== 0) {\n readLineBreak(state);\n state.lineIndent = 0;\n\n ch = state.input.charCodeAt(state.position);\n\n while ((!detectedIndent || state.lineIndent < textIndent) &&\n (ch === 0x20/* Space */)) {\n state.lineIndent++;\n ch = state.input.charCodeAt(++state.position);\n }\n\n if (!detectedIndent && state.lineIndent > textIndent) {\n textIndent = state.lineIndent;\n }\n\n if (is_EOL(ch)) {\n emptyLines++;\n continue;\n }\n\n // End of the scalar.\n if (state.lineIndent < textIndent) {\n\n // Perform the chomping.\n if (chomping === CHOMPING_KEEP) {\n state.result += common.repeat('\\n', didReadContent ? 1 + emptyLines : emptyLines);\n } else if (chomping === CHOMPING_CLIP) {\n if (didReadContent) { // i.e. only if the scalar is not empty.\n state.result += '\\n';\n }\n }\n\n // Break this `while` cycle and go to the funciton's epilogue.\n break;\n }\n\n // Folded style: use fancy rules to handle line breaks.\n if (folding) {\n\n // Lines starting with white space characters (more-indented lines) are not folded.\n if (is_WHITE_SPACE(ch)) {\n atMoreIndented = true;\n // except for the first content line (cf. Example 8.1)\n state.result += common.repeat('\\n', didReadContent ? 1 + emptyLines : emptyLines);\n\n // End of more-indented block.\n } else if (atMoreIndented) {\n atMoreIndented = false;\n state.result += common.repeat('\\n', emptyLines + 1);\n\n // Just one line break - perceive as the same line.\n } else if (emptyLines === 0) {\n if (didReadContent) { // i.e. only if we have already read some scalar content.\n state.result += ' ';\n }\n\n // Several line breaks - perceive as different lines.\n } else {\n state.result += common.repeat('\\n', emptyLines);\n }\n\n // Literal style: just add exact number of line breaks between content lines.\n } else {\n // Keep all line breaks except the header line break.\n state.result += common.repeat('\\n', didReadContent ? 1 + emptyLines : emptyLines);\n }\n\n didReadContent = true;\n detectedIndent = true;\n emptyLines = 0;\n captureStart = state.position;\n\n while (!is_EOL(ch) && (ch !== 0)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n captureSegment(state, captureStart, state.position, false);\n }\n\n return true;\n}\n\nfunction readBlockSequence(state, nodeIndent) {\n var _line,\n _tag = state.tag,\n _anchor = state.anchor,\n _result = [],\n following,\n detected = false,\n ch;\n\n // there is a leading tab before this token, so it can't be a block sequence/mapping;\n // it can still be flow sequence/mapping or a scalar\n if (state.firstTabInLine !== -1) return false;\n\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = _result;\n }\n\n ch = state.input.charCodeAt(state.position);\n\n while (ch !== 0) {\n if (state.firstTabInLine !== -1) {\n state.position = state.firstTabInLine;\n throwError(state, 'tab characters must not be used in indentation');\n }\n\n if (ch !== 0x2D/* - */) {\n break;\n }\n\n following = state.input.charCodeAt(state.position + 1);\n\n if (!is_WS_OR_EOL(following)) {\n break;\n }\n\n detected = true;\n state.position++;\n\n if (skipSeparationSpace(state, true, -1)) {\n if (state.lineIndent <= nodeIndent) {\n _result.push(null);\n ch = state.input.charCodeAt(state.position);\n continue;\n }\n }\n\n _line = state.line;\n composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);\n _result.push(state.result);\n skipSeparationSpace(state, true, -1);\n\n ch = state.input.charCodeAt(state.position);\n\n if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {\n throwError(state, 'bad indentation of a sequence entry');\n } else if (state.lineIndent < nodeIndent) {\n break;\n }\n }\n\n if (detected) {\n state.tag = _tag;\n state.anchor = _anchor;\n state.kind = 'sequence';\n state.result = _result;\n return true;\n }\n return false;\n}\n\nfunction readBlockMapping(state, nodeIndent, flowIndent) {\n var following,\n allowCompact,\n _line,\n _keyLine,\n _keyLineStart,\n _keyPos,\n _tag = state.tag,\n _anchor = state.anchor,\n _result = {},\n overridableKeys = Object.create(null),\n keyTag = null,\n keyNode = null,\n valueNode = null,\n atExplicitKey = false,\n detected = false,\n ch;\n\n // there is a leading tab before this token, so it can't be a block sequence/mapping;\n // it can still be flow sequence/mapping or a scalar\n if (state.firstTabInLine !== -1) return false;\n\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = _result;\n }\n\n ch = state.input.charCodeAt(state.position);\n\n while (ch !== 0) {\n if (!atExplicitKey && state.firstTabInLine !== -1) {\n state.position = state.firstTabInLine;\n throwError(state, 'tab characters must not be used in indentation');\n }\n\n following = state.input.charCodeAt(state.position + 1);\n _line = state.line; // Save the current line.\n\n //\n // Explicit notation case. There are two separate blocks:\n // first for the key (denoted by \"?\") and second for the value (denoted by \":\")\n //\n if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) {\n\n if (ch === 0x3F/* ? */) {\n if (atExplicitKey) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);\n keyTag = keyNode = valueNode = null;\n }\n\n detected = true;\n atExplicitKey = true;\n allowCompact = true;\n\n } else if (atExplicitKey) {\n // i.e. 0x3A/* : */ === character after the explicit key.\n atExplicitKey = false;\n allowCompact = true;\n\n } else {\n throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line');\n }\n\n state.position += 1;\n ch = following;\n\n //\n // Implicit notation case. Flow-style node as the key first, then \":\", and the value.\n //\n } else {\n _keyLine = state.line;\n _keyLineStart = state.lineStart;\n _keyPos = state.position;\n\n if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {\n // Neither implicit nor explicit notation.\n // Reading is done. Go to the epilogue.\n break;\n }\n\n if (state.line === _line) {\n ch = state.input.charCodeAt(state.position);\n\n while (is_WHITE_SPACE(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n if (ch === 0x3A/* : */) {\n ch = state.input.charCodeAt(++state.position);\n\n if (!is_WS_OR_EOL(ch)) {\n throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping');\n }\n\n if (atExplicitKey) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);\n keyTag = keyNode = valueNode = null;\n }\n\n detected = true;\n atExplicitKey = false;\n allowCompact = false;\n keyTag = state.tag;\n keyNode = state.result;\n\n } else if (detected) {\n throwError(state, 'can not read an implicit mapping pair; a colon is missed');\n\n } else {\n state.tag = _tag;\n state.anchor = _anchor;\n return true; // Keep the result of `composeNode`.\n }\n\n } else if (detected) {\n throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key');\n\n } else {\n state.tag = _tag;\n state.anchor = _anchor;\n return true; // Keep the result of `composeNode`.\n }\n }\n\n //\n // Common reading code for both explicit and implicit notations.\n //\n if (state.line === _line || state.lineIndent > nodeIndent) {\n if (atExplicitKey) {\n _keyLine = state.line;\n _keyLineStart = state.lineStart;\n _keyPos = state.position;\n }\n\n if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {\n if (atExplicitKey) {\n keyNode = state.result;\n } else {\n valueNode = state.result;\n }\n }\n\n if (!atExplicitKey) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);\n keyTag = keyNode = valueNode = null;\n }\n\n skipSeparationSpace(state, true, -1);\n ch = state.input.charCodeAt(state.position);\n }\n\n if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {\n throwError(state, 'bad indentation of a mapping entry');\n } else if (state.lineIndent < nodeIndent) {\n break;\n }\n }\n\n //\n // Epilogue.\n //\n\n // Special case: last mapping's node contains only the key in explicit notation.\n if (atExplicitKey) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);\n }\n\n // Expose the resulting mapping.\n if (detected) {\n state.tag = _tag;\n state.anchor = _anchor;\n state.kind = 'mapping';\n state.result = _result;\n }\n\n return detected;\n}\n\nfunction readTagProperty(state) {\n var _position,\n isVerbatim = false,\n isNamed = false,\n tagHandle,\n tagName,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch !== 0x21/* ! */) return false;\n\n if (state.tag !== null) {\n throwError(state, 'duplication of a tag property');\n }\n\n ch = state.input.charCodeAt(++state.position);\n\n if (ch === 0x3C/* < */) {\n isVerbatim = true;\n ch = state.input.charCodeAt(++state.position);\n\n } else if (ch === 0x21/* ! */) {\n isNamed = true;\n tagHandle = '!!';\n ch = state.input.charCodeAt(++state.position);\n\n } else {\n tagHandle = '!';\n }\n\n _position = state.position;\n\n if (isVerbatim) {\n do { ch = state.input.charCodeAt(++state.position); }\n while (ch !== 0 && ch !== 0x3E/* > */);\n\n if (state.position < state.length) {\n tagName = state.input.slice(_position, state.position);\n ch = state.input.charCodeAt(++state.position);\n } else {\n throwError(state, 'unexpected end of the stream within a verbatim tag');\n }\n } else {\n while (ch !== 0 && !is_WS_OR_EOL(ch)) {\n\n if (ch === 0x21/* ! */) {\n if (!isNamed) {\n tagHandle = state.input.slice(_position - 1, state.position + 1);\n\n if (!PATTERN_TAG_HANDLE.test(tagHandle)) {\n throwError(state, 'named tag handle cannot contain such characters');\n }\n\n isNamed = true;\n _position = state.position + 1;\n } else {\n throwError(state, 'tag suffix cannot contain exclamation marks');\n }\n }\n\n ch = state.input.charCodeAt(++state.position);\n }\n\n tagName = state.input.slice(_position, state.position);\n\n if (PATTERN_FLOW_INDICATORS.test(tagName)) {\n throwError(state, 'tag suffix cannot contain flow indicator characters');\n }\n }\n\n if (tagName && !PATTERN_TAG_URI.test(tagName)) {\n throwError(state, 'tag name cannot contain such characters: ' + tagName);\n }\n\n try {\n tagName = decodeURIComponent(tagName);\n } catch (err) {\n throwError(state, 'tag name is malformed: ' + tagName);\n }\n\n if (isVerbatim) {\n state.tag = tagName;\n\n } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {\n state.tag = state.tagMap[tagHandle] + tagName;\n\n } else if (tagHandle === '!') {\n state.tag = '!' + tagName;\n\n } else if (tagHandle === '!!') {\n state.tag = 'tag:yaml.org,2002:' + tagName;\n\n } else {\n throwError(state, 'undeclared tag handle \"' + tagHandle + '\"');\n }\n\n return true;\n}\n\nfunction readAnchorProperty(state) {\n var _position,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch !== 0x26/* & */) return false;\n\n if (state.anchor !== null) {\n throwError(state, 'duplication of an anchor property');\n }\n\n ch = state.input.charCodeAt(++state.position);\n _position = state.position;\n\n while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n if (state.position === _position) {\n throwError(state, 'name of an anchor node must contain at least one character');\n }\n\n state.anchor = state.input.slice(_position, state.position);\n return true;\n}\n\nfunction readAlias(state) {\n var _position, alias,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch !== 0x2A/* * */) return false;\n\n ch = state.input.charCodeAt(++state.position);\n _position = state.position;\n\n while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n if (state.position === _position) {\n throwError(state, 'name of an alias node must contain at least one character');\n }\n\n alias = state.input.slice(_position, state.position);\n\n if (!_hasOwnProperty.call(state.anchorMap, alias)) {\n throwError(state, 'unidentified alias \"' + alias + '\"');\n }\n\n state.result = state.anchorMap[alias];\n skipSeparationSpace(state, true, -1);\n return true;\n}\n\nfunction composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {\n var allowBlockStyles,\n allowBlockScalars,\n allowBlockCollections,\n indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this parentIndent) {\n indentStatus = 1;\n } else if (state.lineIndent === parentIndent) {\n indentStatus = 0;\n } else if (state.lineIndent < parentIndent) {\n indentStatus = -1;\n }\n }\n }\n\n if (indentStatus === 1) {\n while (readTagProperty(state) || readAnchorProperty(state)) {\n if (skipSeparationSpace(state, true, -1)) {\n atNewLine = true;\n allowBlockCollections = allowBlockStyles;\n\n if (state.lineIndent > parentIndent) {\n indentStatus = 1;\n } else if (state.lineIndent === parentIndent) {\n indentStatus = 0;\n } else if (state.lineIndent < parentIndent) {\n indentStatus = -1;\n }\n } else {\n allowBlockCollections = false;\n }\n }\n }\n\n if (allowBlockCollections) {\n allowBlockCollections = atNewLine || allowCompact;\n }\n\n if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {\n if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {\n flowIndent = parentIndent;\n } else {\n flowIndent = parentIndent + 1;\n }\n\n blockIndent = state.position - state.lineStart;\n\n if (indentStatus === 1) {\n if (allowBlockCollections &&\n (readBlockSequence(state, blockIndent) ||\n readBlockMapping(state, blockIndent, flowIndent)) ||\n readFlowCollection(state, flowIndent)) {\n hasContent = true;\n } else {\n if ((allowBlockScalars && readBlockScalar(state, flowIndent)) ||\n readSingleQuotedScalar(state, flowIndent) ||\n readDoubleQuotedScalar(state, flowIndent)) {\n hasContent = true;\n\n } else if (readAlias(state)) {\n hasContent = true;\n\n if (state.tag !== null || state.anchor !== null) {\n throwError(state, 'alias node should not have any properties');\n }\n\n } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {\n hasContent = true;\n\n if (state.tag === null) {\n state.tag = '?';\n }\n }\n\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = state.result;\n }\n }\n } else if (indentStatus === 0) {\n // Special case: block sequences are allowed to have same indentation level as the parent.\n // http://www.yaml.org/spec/1.2/spec.html#id2799784\n hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);\n }\n }\n\n if (state.tag === null) {\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = state.result;\n }\n\n } else if (state.tag === '?') {\n // Implicit resolving is not allowed for non-scalar types, and '?'\n // non-specific tag is only automatically assigned to plain scalars.\n //\n // We only need to check kind conformity in case user explicitly assigns '?'\n // tag, for example like this: \"! [0]\"\n //\n if (state.result !== null && state.kind !== 'scalar') {\n throwError(state, 'unacceptable node kind for ! tag; it should be \"scalar\", not \"' + state.kind + '\"');\n }\n\n for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {\n type = state.implicitTypes[typeIndex];\n\n if (type.resolve(state.result)) { // `state.result` updated in resolver if matched\n state.result = type.construct(state.result);\n state.tag = type.tag;\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = state.result;\n }\n break;\n }\n }\n } else if (state.tag !== '!') {\n if (_hasOwnProperty.call(state.typeMap[state.kind || 'fallback'], state.tag)) {\n type = state.typeMap[state.kind || 'fallback'][state.tag];\n } else {\n // looking for multi type\n type = null;\n typeList = state.typeMap.multi[state.kind || 'fallback'];\n\n for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) {\n if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {\n type = typeList[typeIndex];\n break;\n }\n }\n }\n\n if (!type) {\n throwError(state, 'unknown tag !<' + state.tag + '>');\n }\n\n if (state.result !== null && type.kind !== state.kind) {\n throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be \"' + type.kind + '\", not \"' + state.kind + '\"');\n }\n\n if (!type.resolve(state.result, state.tag)) { // `state.result` updated in resolver if matched\n throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag');\n } else {\n state.result = type.construct(state.result, state.tag);\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = state.result;\n }\n }\n }\n\n if (state.listener !== null) {\n state.listener('close', state);\n }\n return state.tag !== null || state.anchor !== null || hasContent;\n}\n\nfunction readDocument(state) {\n var documentStart = state.position,\n _position,\n directiveName,\n directiveArgs,\n hasDirectives = false,\n ch;\n\n state.version = null;\n state.checkLineBreaks = state.legacy;\n state.tagMap = Object.create(null);\n state.anchorMap = Object.create(null);\n\n while ((ch = state.input.charCodeAt(state.position)) !== 0) {\n skipSeparationSpace(state, true, -1);\n\n ch = state.input.charCodeAt(state.position);\n\n if (state.lineIndent > 0 || ch !== 0x25/* % */) {\n break;\n }\n\n hasDirectives = true;\n ch = state.input.charCodeAt(++state.position);\n _position = state.position;\n\n while (ch !== 0 && !is_WS_OR_EOL(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n directiveName = state.input.slice(_position, state.position);\n directiveArgs = [];\n\n if (directiveName.length < 1) {\n throwError(state, 'directive name must not be less than one character in length');\n }\n\n while (ch !== 0) {\n while (is_WHITE_SPACE(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n if (ch === 0x23/* # */) {\n do { ch = state.input.charCodeAt(++state.position); }\n while (ch !== 0 && !is_EOL(ch));\n break;\n }\n\n if (is_EOL(ch)) break;\n\n _position = state.position;\n\n while (ch !== 0 && !is_WS_OR_EOL(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n directiveArgs.push(state.input.slice(_position, state.position));\n }\n\n if (ch !== 0) readLineBreak(state);\n\n if (_hasOwnProperty.call(directiveHandlers, directiveName)) {\n directiveHandlers[directiveName](state, directiveName, directiveArgs);\n } else {\n throwWarning(state, 'unknown document directive \"' + directiveName + '\"');\n }\n }\n\n skipSeparationSpace(state, true, -1);\n\n if (state.lineIndent === 0 &&\n state.input.charCodeAt(state.position) === 0x2D/* - */ &&\n state.input.charCodeAt(state.position + 1) === 0x2D/* - */ &&\n state.input.charCodeAt(state.position + 2) === 0x2D/* - */) {\n state.position += 3;\n skipSeparationSpace(state, true, -1);\n\n } else if (hasDirectives) {\n throwError(state, 'directives end mark is expected');\n }\n\n composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);\n skipSeparationSpace(state, true, -1);\n\n if (state.checkLineBreaks &&\n PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {\n throwWarning(state, 'non-ASCII line breaks are interpreted as content');\n }\n\n state.documents.push(state.result);\n\n if (state.position === state.lineStart && testDocumentSeparator(state)) {\n\n if (state.input.charCodeAt(state.position) === 0x2E/* . */) {\n state.position += 3;\n skipSeparationSpace(state, true, -1);\n }\n return;\n }\n\n if (state.position < (state.length - 1)) {\n throwError(state, 'end of the stream or a document separator is expected');\n } else {\n return;\n }\n}\n\n\nfunction loadDocuments(input, options) {\n input = String(input);\n options = options || {};\n\n if (input.length !== 0) {\n\n // Add tailing `\\n` if not exists\n if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ &&\n input.charCodeAt(input.length - 1) !== 0x0D/* CR */) {\n input += '\\n';\n }\n\n // Strip BOM\n if (input.charCodeAt(0) === 0xFEFF) {\n input = input.slice(1);\n }\n }\n\n var state = new State(input, options);\n\n var nullpos = input.indexOf('\\0');\n\n if (nullpos !== -1) {\n state.position = nullpos;\n throwError(state, 'null byte is not allowed in input');\n }\n\n // Use 0 as string terminator. That significantly simplifies bounds check.\n state.input += '\\0';\n\n while (state.input.charCodeAt(state.position) === 0x20/* Space */) {\n state.lineIndent += 1;\n state.position += 1;\n }\n\n while (state.position < (state.length - 1)) {\n readDocument(state);\n }\n\n return state.documents;\n}\n\n\nfunction loadAll(input, iterator, options) {\n if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') {\n options = iterator;\n iterator = null;\n }\n\n var documents = loadDocuments(input, options);\n\n if (typeof iterator !== 'function') {\n return documents;\n }\n\n for (var index = 0, length = documents.length; index < length; index += 1) {\n iterator(documents[index]);\n }\n}\n\n\nfunction load(input, options) {\n var documents = loadDocuments(input, options);\n\n if (documents.length === 0) {\n /*eslint-disable no-undefined*/\n return undefined;\n } else if (documents.length === 1) {\n return documents[0];\n }\n throw new YAMLException('expected a single document in the stream, but found more');\n}\n\n\nmodule.exports.loadAll = loadAll;\nmodule.exports.load = load;\n", "'use strict';\n\n/*eslint-disable no-use-before-define*/\n\nvar common = require('./common');\nvar YAMLException = require('./exception');\nvar DEFAULT_SCHEMA = require('./schema/default');\n\nvar _toString = Object.prototype.toString;\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar CHAR_BOM = 0xFEFF;\nvar CHAR_TAB = 0x09; /* Tab */\nvar CHAR_LINE_FEED = 0x0A; /* LF */\nvar CHAR_CARRIAGE_RETURN = 0x0D; /* CR */\nvar CHAR_SPACE = 0x20; /* Space */\nvar CHAR_EXCLAMATION = 0x21; /* ! */\nvar CHAR_DOUBLE_QUOTE = 0x22; /* \" */\nvar CHAR_SHARP = 0x23; /* # */\nvar CHAR_PERCENT = 0x25; /* % */\nvar CHAR_AMPERSAND = 0x26; /* & */\nvar CHAR_SINGLE_QUOTE = 0x27; /* ' */\nvar CHAR_ASTERISK = 0x2A; /* * */\nvar CHAR_COMMA = 0x2C; /* , */\nvar CHAR_MINUS = 0x2D; /* - */\nvar CHAR_COLON = 0x3A; /* : */\nvar CHAR_EQUALS = 0x3D; /* = */\nvar CHAR_GREATER_THAN = 0x3E; /* > */\nvar CHAR_QUESTION = 0x3F; /* ? */\nvar CHAR_COMMERCIAL_AT = 0x40; /* @ */\nvar CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */\nvar CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */\nvar CHAR_GRAVE_ACCENT = 0x60; /* ` */\nvar CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */\nvar CHAR_VERTICAL_LINE = 0x7C; /* | */\nvar CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */\n\nvar ESCAPE_SEQUENCES = {};\n\nESCAPE_SEQUENCES[0x00] = '\\\\0';\nESCAPE_SEQUENCES[0x07] = '\\\\a';\nESCAPE_SEQUENCES[0x08] = '\\\\b';\nESCAPE_SEQUENCES[0x09] = '\\\\t';\nESCAPE_SEQUENCES[0x0A] = '\\\\n';\nESCAPE_SEQUENCES[0x0B] = '\\\\v';\nESCAPE_SEQUENCES[0x0C] = '\\\\f';\nESCAPE_SEQUENCES[0x0D] = '\\\\r';\nESCAPE_SEQUENCES[0x1B] = '\\\\e';\nESCAPE_SEQUENCES[0x22] = '\\\\\"';\nESCAPE_SEQUENCES[0x5C] = '\\\\\\\\';\nESCAPE_SEQUENCES[0x85] = '\\\\N';\nESCAPE_SEQUENCES[0xA0] = '\\\\_';\nESCAPE_SEQUENCES[0x2028] = '\\\\L';\nESCAPE_SEQUENCES[0x2029] = '\\\\P';\n\nvar DEPRECATED_BOOLEANS_SYNTAX = [\n 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON',\n 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF'\n];\n\nvar DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\\.[0-9_]*)?$/;\n\nfunction compileStyleMap(schema, map) {\n var result, keys, index, length, tag, style, type;\n\n if (map === null) return {};\n\n result = {};\n keys = Object.keys(map);\n\n for (index = 0, length = keys.length; index < length; index += 1) {\n tag = keys[index];\n style = String(map[tag]);\n\n if (tag.slice(0, 2) === '!!') {\n tag = 'tag:yaml.org,2002:' + tag.slice(2);\n }\n type = schema.compiledTypeMap['fallback'][tag];\n\n if (type && _hasOwnProperty.call(type.styleAliases, style)) {\n style = type.styleAliases[style];\n }\n\n result[tag] = style;\n }\n\n return result;\n}\n\nfunction encodeHex(character) {\n var string, handle, length;\n\n string = character.toString(16).toUpperCase();\n\n if (character <= 0xFF) {\n handle = 'x';\n length = 2;\n } else if (character <= 0xFFFF) {\n handle = 'u';\n length = 4;\n } else if (character <= 0xFFFFFFFF) {\n handle = 'U';\n length = 8;\n } else {\n throw new YAMLException('code point within a string may not be greater than 0xFFFFFFFF');\n }\n\n return '\\\\' + handle + common.repeat('0', length - string.length) + string;\n}\n\n\nvar QUOTING_TYPE_SINGLE = 1,\n QUOTING_TYPE_DOUBLE = 2;\n\nfunction State(options) {\n this.schema = options['schema'] || DEFAULT_SCHEMA;\n this.indent = Math.max(1, (options['indent'] || 2));\n this.noArrayIndent = options['noArrayIndent'] || false;\n this.skipInvalid = options['skipInvalid'] || false;\n this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']);\n this.styleMap = compileStyleMap(this.schema, options['styles'] || null);\n this.sortKeys = options['sortKeys'] || false;\n this.lineWidth = options['lineWidth'] || 80;\n this.noRefs = options['noRefs'] || false;\n this.noCompatMode = options['noCompatMode'] || false;\n this.condenseFlow = options['condenseFlow'] || false;\n this.quotingType = options['quotingType'] === '\"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE;\n this.forceQuotes = options['forceQuotes'] || false;\n this.replacer = typeof options['replacer'] === 'function' ? options['replacer'] : null;\n\n this.implicitTypes = this.schema.compiledImplicit;\n this.explicitTypes = this.schema.compiledExplicit;\n\n this.tag = null;\n this.result = '';\n\n this.duplicates = [];\n this.usedDuplicates = null;\n}\n\n// Indents every line in a string. Empty lines (\\n only) are not indented.\nfunction indentString(string, spaces) {\n var ind = common.repeat(' ', spaces),\n position = 0,\n next = -1,\n result = '',\n line,\n length = string.length;\n\n while (position < length) {\n next = string.indexOf('\\n', position);\n if (next === -1) {\n line = string.slice(position);\n position = length;\n } else {\n line = string.slice(position, next + 1);\n position = next + 1;\n }\n\n if (line.length && line !== '\\n') result += ind;\n\n result += line;\n }\n\n return result;\n}\n\nfunction generateNextLine(state, level) {\n return '\\n' + common.repeat(' ', state.indent * level);\n}\n\nfunction testImplicitResolving(state, str) {\n var index, length, type;\n\n for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {\n type = state.implicitTypes[index];\n\n if (type.resolve(str)) {\n return true;\n }\n }\n\n return false;\n}\n\n// [33] s-white ::= s-space | s-tab\nfunction isWhitespace(c) {\n return c === CHAR_SPACE || c === CHAR_TAB;\n}\n\n// Returns true if the character can be printed without escaping.\n// From YAML 1.2: \"any allowed characters known to be non-printable\n// should also be escaped. [However,] This isn\u2019t mandatory\"\n// Derived from nb-char - \\t - #x85 - #xA0 - #x2028 - #x2029.\nfunction isPrintable(c) {\n return (0x00020 <= c && c <= 0x00007E)\n || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029)\n || ((0x0E000 <= c && c <= 0x00FFFD) && c !== CHAR_BOM)\n || (0x10000 <= c && c <= 0x10FFFF);\n}\n\n// [34] ns-char ::= nb-char - s-white\n// [27] nb-char ::= c-printable - b-char - c-byte-order-mark\n// [26] b-char ::= b-line-feed | b-carriage-return\n// Including s-white (for some reason, examples doesn't match specs in this aspect)\n// ns-char ::= c-printable - b-line-feed - b-carriage-return - c-byte-order-mark\nfunction isNsCharOrWhitespace(c) {\n return isPrintable(c)\n && c !== CHAR_BOM\n // - b-char\n && c !== CHAR_CARRIAGE_RETURN\n && c !== CHAR_LINE_FEED;\n}\n\n// [127] ns-plain-safe(c) ::= c = flow-out \u21D2 ns-plain-safe-out\n// c = flow-in \u21D2 ns-plain-safe-in\n// c = block-key \u21D2 ns-plain-safe-out\n// c = flow-key \u21D2 ns-plain-safe-in\n// [128] ns-plain-safe-out ::= ns-char\n// [129] ns-plain-safe-in ::= ns-char - c-flow-indicator\n// [130] ns-plain-char(c) ::= ( ns-plain-safe(c) - \u201C:\u201D - \u201C#\u201D )\n// | ( /* An ns-char preceding */ \u201C#\u201D )\n// | ( \u201C:\u201D /* Followed by an ns-plain-safe(c) */ )\nfunction isPlainSafe(c, prev, inblock) {\n var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);\n var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);\n return (\n // ns-plain-safe\n inblock ? // c = flow-in\n cIsNsCharOrWhitespace\n : cIsNsCharOrWhitespace\n // - c-flow-indicator\n && c !== CHAR_COMMA\n && c !== CHAR_LEFT_SQUARE_BRACKET\n && c !== CHAR_RIGHT_SQUARE_BRACKET\n && c !== CHAR_LEFT_CURLY_BRACKET\n && c !== CHAR_RIGHT_CURLY_BRACKET\n )\n // ns-plain-char\n && c !== CHAR_SHARP // false on '#'\n && !(prev === CHAR_COLON && !cIsNsChar) // false on ': '\n || (isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP) // change to true on '[^ ]#'\n || (prev === CHAR_COLON && cIsNsChar); // change to true on ':[^ ]'\n}\n\n// Simplified test for values allowed as the first character in plain style.\nfunction isPlainSafeFirst(c) {\n // Uses a subset of ns-char - c-indicator\n // where ns-char = nb-char - s-white.\n // No support of ( ( \u201C?\u201D | \u201C:\u201D | \u201C-\u201D ) /* Followed by an ns-plain-safe(c)) */ ) part\n return isPrintable(c) && c !== CHAR_BOM\n && !isWhitespace(c) // - s-white\n // - (c-indicator ::=\n // \u201C-\u201D | \u201C?\u201D | \u201C:\u201D | \u201C,\u201D | \u201C[\u201D | \u201C]\u201D | \u201C{\u201D | \u201C}\u201D\n && c !== CHAR_MINUS\n && c !== CHAR_QUESTION\n && c !== CHAR_COLON\n && c !== CHAR_COMMA\n && c !== CHAR_LEFT_SQUARE_BRACKET\n && c !== CHAR_RIGHT_SQUARE_BRACKET\n && c !== CHAR_LEFT_CURLY_BRACKET\n && c !== CHAR_RIGHT_CURLY_BRACKET\n // | \u201C#\u201D | \u201C&\u201D | \u201C*\u201D | \u201C!\u201D | \u201C|\u201D | \u201C=\u201D | \u201C>\u201D | \u201C'\u201D | \u201C\"\u201D\n && c !== CHAR_SHARP\n && c !== CHAR_AMPERSAND\n && c !== CHAR_ASTERISK\n && c !== CHAR_EXCLAMATION\n && c !== CHAR_VERTICAL_LINE\n && c !== CHAR_EQUALS\n && c !== CHAR_GREATER_THAN\n && c !== CHAR_SINGLE_QUOTE\n && c !== CHAR_DOUBLE_QUOTE\n // | \u201C%\u201D | \u201C@\u201D | \u201C`\u201D)\n && c !== CHAR_PERCENT\n && c !== CHAR_COMMERCIAL_AT\n && c !== CHAR_GRAVE_ACCENT;\n}\n\n// Simplified test for values allowed as the last character in plain style.\nfunction isPlainSafeLast(c) {\n // just not whitespace or colon, it will be checked to be plain character later\n return !isWhitespace(c) && c !== CHAR_COLON;\n}\n\n// Same as 'string'.codePointAt(pos), but works in older browsers.\nfunction codePointAt(string, pos) {\n var first = string.charCodeAt(pos), second;\n if (first >= 0xD800 && first <= 0xDBFF && pos + 1 < string.length) {\n second = string.charCodeAt(pos + 1);\n if (second >= 0xDC00 && second <= 0xDFFF) {\n // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae\n return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;\n }\n }\n return first;\n}\n\n// Determines whether block indentation indicator is required.\nfunction needIndentIndicator(string) {\n var leadingSpaceRe = /^\\n* /;\n return leadingSpaceRe.test(string);\n}\n\nvar STYLE_PLAIN = 1,\n STYLE_SINGLE = 2,\n STYLE_LITERAL = 3,\n STYLE_FOLDED = 4,\n STYLE_DOUBLE = 5;\n\n// Determines which scalar styles are possible and returns the preferred style.\n// lineWidth = -1 => no limit.\n// Pre-conditions: str.length > 0.\n// Post-conditions:\n// STYLE_PLAIN or STYLE_SINGLE => no \\n are in the string.\n// STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1).\n// STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1).\nfunction chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth,\n testAmbiguousType, quotingType, forceQuotes, inblock) {\n\n var i;\n var char = 0;\n var prevChar = null;\n var hasLineBreak = false;\n var hasFoldableLine = false; // only checked if shouldTrackWidth\n var shouldTrackWidth = lineWidth !== -1;\n var previousLineBreak = -1; // count the first line correctly\n var plain = isPlainSafeFirst(codePointAt(string, 0))\n && isPlainSafeLast(codePointAt(string, string.length - 1));\n\n if (singleLineOnly || forceQuotes) {\n // Case: no block styles.\n // Check for disallowed characters to rule out plain and single.\n for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {\n char = codePointAt(string, i);\n if (!isPrintable(char)) {\n return STYLE_DOUBLE;\n }\n plain = plain && isPlainSafe(char, prevChar, inblock);\n prevChar = char;\n }\n } else {\n // Case: block styles permitted.\n for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {\n char = codePointAt(string, i);\n if (char === CHAR_LINE_FEED) {\n hasLineBreak = true;\n // Check if any line can be folded.\n if (shouldTrackWidth) {\n hasFoldableLine = hasFoldableLine ||\n // Foldable line = too long, and not more-indented.\n (i - previousLineBreak - 1 > lineWidth &&\n string[previousLineBreak + 1] !== ' ');\n previousLineBreak = i;\n }\n } else if (!isPrintable(char)) {\n return STYLE_DOUBLE;\n }\n plain = plain && isPlainSafe(char, prevChar, inblock);\n prevChar = char;\n }\n // in case the end is missing a \\n\n hasFoldableLine = hasFoldableLine || (shouldTrackWidth &&\n (i - previousLineBreak - 1 > lineWidth &&\n string[previousLineBreak + 1] !== ' '));\n }\n // Although every style can represent \\n without escaping, prefer block styles\n // for multiline, since they're more readable and they don't add empty lines.\n // Also prefer folding a super-long line.\n if (!hasLineBreak && !hasFoldableLine) {\n // Strings interpretable as another type have to be quoted;\n // e.g. the string 'true' vs. the boolean true.\n if (plain && !forceQuotes && !testAmbiguousType(string)) {\n return STYLE_PLAIN;\n }\n return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;\n }\n // Edge case: block indentation indicator can only have one digit.\n if (indentPerLevel > 9 && needIndentIndicator(string)) {\n return STYLE_DOUBLE;\n }\n // At this point we know block styles are valid.\n // Prefer literal style unless we want to fold.\n if (!forceQuotes) {\n return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;\n }\n return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;\n}\n\n// Note: line breaking/folding is implemented for only the folded style.\n// NB. We drop the last trailing newline (if any) of a returned block scalar\n// since the dumper adds its own newline. This always works:\n// \u2022 No ending newline => unaffected; already using strip \"-\" chomping.\n// \u2022 Ending newline => removed then restored.\n// Importantly, this keeps the \"+\" chomp indicator from gaining an extra line.\nfunction writeScalar(state, string, level, iskey, inblock) {\n state.dump = (function () {\n if (string.length === 0) {\n return state.quotingType === QUOTING_TYPE_DOUBLE ? '\"\"' : \"''\";\n }\n if (!state.noCompatMode) {\n if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {\n return state.quotingType === QUOTING_TYPE_DOUBLE ? ('\"' + string + '\"') : (\"'\" + string + \"'\");\n }\n }\n\n var indent = state.indent * Math.max(1, level); // no 0-indent scalars\n // As indentation gets deeper, let the width decrease monotonically\n // to the lower bound min(state.lineWidth, 40).\n // Note that this implies\n // state.lineWidth \u2264 40 + state.indent: width is fixed at the lower bound.\n // state.lineWidth > 40 + state.indent: width decreases until the lower bound.\n // This behaves better than a constant minimum width which disallows narrower options,\n // or an indent threshold which causes the width to suddenly increase.\n var lineWidth = state.lineWidth === -1\n ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);\n\n // Without knowing if keys are implicit/explicit, assume implicit for safety.\n var singleLineOnly = iskey\n // No block styles in flow mode.\n || (state.flowLevel > -1 && level >= state.flowLevel);\n function testAmbiguity(string) {\n return testImplicitResolving(state, string);\n }\n\n switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth,\n testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) {\n\n case STYLE_PLAIN:\n return string;\n case STYLE_SINGLE:\n return \"'\" + string.replace(/'/g, \"''\") + \"'\";\n case STYLE_LITERAL:\n return '|' + blockHeader(string, state.indent)\n + dropEndingNewline(indentString(string, indent));\n case STYLE_FOLDED:\n return '>' + blockHeader(string, state.indent)\n + dropEndingNewline(indentString(foldString(string, lineWidth), indent));\n case STYLE_DOUBLE:\n return '\"' + escapeString(string, lineWidth) + '\"';\n default:\n throw new YAMLException('impossible error: invalid scalar style');\n }\n }());\n}\n\n// Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9.\nfunction blockHeader(string, indentPerLevel) {\n var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : '';\n\n // note the special case: the string '\\n' counts as a \"trailing\" empty line.\n var clip = string[string.length - 1] === '\\n';\n var keep = clip && (string[string.length - 2] === '\\n' || string === '\\n');\n var chomp = keep ? '+' : (clip ? '' : '-');\n\n return indentIndicator + chomp + '\\n';\n}\n\n// (See the note for writeScalar.)\nfunction dropEndingNewline(string) {\n return string[string.length - 1] === '\\n' ? string.slice(0, -1) : string;\n}\n\n// Note: a long line without a suitable break point will exceed the width limit.\n// Pre-conditions: every char in str isPrintable, str.length > 0, width > 0.\nfunction foldString(string, width) {\n // In folded style, $k$ consecutive newlines output as $k+1$ newlines\u2014\n // unless they're before or after a more-indented line, or at the very\n // beginning or end, in which case $k$ maps to $k$.\n // Therefore, parse each chunk as newline(s) followed by a content line.\n var lineRe = /(\\n+)([^\\n]*)/g;\n\n // first line (possibly an empty line)\n var result = (function () {\n var nextLF = string.indexOf('\\n');\n nextLF = nextLF !== -1 ? nextLF : string.length;\n lineRe.lastIndex = nextLF;\n return foldLine(string.slice(0, nextLF), width);\n }());\n // If we haven't reached the first content line yet, don't add an extra \\n.\n var prevMoreIndented = string[0] === '\\n' || string[0] === ' ';\n var moreIndented;\n\n // rest of the lines\n var match;\n while ((match = lineRe.exec(string))) {\n var prefix = match[1], line = match[2];\n moreIndented = (line[0] === ' ');\n result += prefix\n + (!prevMoreIndented && !moreIndented && line !== ''\n ? '\\n' : '')\n + foldLine(line, width);\n prevMoreIndented = moreIndented;\n }\n\n return result;\n}\n\n// Greedy line breaking.\n// Picks the longest line under the limit each time,\n// otherwise settles for the shortest line over the limit.\n// NB. More-indented lines *cannot* be folded, as that would add an extra \\n.\nfunction foldLine(line, width) {\n if (line === '' || line[0] === ' ') return line;\n\n // Since a more-indented line adds a \\n, breaks can't be followed by a space.\n var breakRe = / [^ ]/g; // note: the match index will always be <= length-2.\n var match;\n // start is an inclusive index. end, curr, and next are exclusive.\n var start = 0, end, curr = 0, next = 0;\n var result = '';\n\n // Invariants: 0 <= start <= length-1.\n // 0 <= curr <= next <= max(0, length-2). curr - start <= width.\n // Inside the loop:\n // A match implies length >= 2, so curr and next are <= length-2.\n while ((match = breakRe.exec(line))) {\n next = match.index;\n // maintain invariant: curr - start <= width\n if (next - start > width) {\n end = (curr > start) ? curr : next; // derive end <= length-2\n result += '\\n' + line.slice(start, end);\n // skip the space that was output as \\n\n start = end + 1; // derive start <= length-1\n }\n curr = next;\n }\n\n // By the invariants, start <= length-1, so there is something left over.\n // It is either the whole string or a part starting from non-whitespace.\n result += '\\n';\n // Insert a break if the remainder is too long and there is a break available.\n if (line.length - start > width && curr > start) {\n result += line.slice(start, curr) + '\\n' + line.slice(curr + 1);\n } else {\n result += line.slice(start);\n }\n\n return result.slice(1); // drop extra \\n joiner\n}\n\n// Escapes a double-quoted string.\nfunction escapeString(string) {\n var result = '';\n var char = 0;\n var escapeSeq;\n\n for (var i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {\n char = codePointAt(string, i);\n escapeSeq = ESCAPE_SEQUENCES[char];\n\n if (!escapeSeq && isPrintable(char)) {\n result += string[i];\n if (char >= 0x10000) result += string[i + 1];\n } else {\n result += escapeSeq || encodeHex(char);\n }\n }\n\n return result;\n}\n\nfunction writeFlowSequence(state, level, object) {\n var _result = '',\n _tag = state.tag,\n index,\n length,\n value;\n\n for (index = 0, length = object.length; index < length; index += 1) {\n value = object[index];\n\n if (state.replacer) {\n value = state.replacer.call(object, String(index), value);\n }\n\n // Write only valid elements, put null instead of invalid elements.\n if (writeNode(state, level, value, false, false) ||\n (typeof value === 'undefined' &&\n writeNode(state, level, null, false, false))) {\n\n if (_result !== '') _result += ',' + (!state.condenseFlow ? ' ' : '');\n _result += state.dump;\n }\n }\n\n state.tag = _tag;\n state.dump = '[' + _result + ']';\n}\n\nfunction writeBlockSequence(state, level, object, compact) {\n var _result = '',\n _tag = state.tag,\n index,\n length,\n value;\n\n for (index = 0, length = object.length; index < length; index += 1) {\n value = object[index];\n\n if (state.replacer) {\n value = state.replacer.call(object, String(index), value);\n }\n\n // Write only valid elements, put null instead of invalid elements.\n if (writeNode(state, level + 1, value, true, true, false, true) ||\n (typeof value === 'undefined' &&\n writeNode(state, level + 1, null, true, true, false, true))) {\n\n if (!compact || _result !== '') {\n _result += generateNextLine(state, level);\n }\n\n if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {\n _result += '-';\n } else {\n _result += '- ';\n }\n\n _result += state.dump;\n }\n }\n\n state.tag = _tag;\n state.dump = _result || '[]'; // Empty sequence if no valid values.\n}\n\nfunction writeFlowMapping(state, level, object) {\n var _result = '',\n _tag = state.tag,\n objectKeyList = Object.keys(object),\n index,\n length,\n objectKey,\n objectValue,\n pairBuffer;\n\n for (index = 0, length = objectKeyList.length; index < length; index += 1) {\n\n pairBuffer = '';\n if (_result !== '') pairBuffer += ', ';\n\n if (state.condenseFlow) pairBuffer += '\"';\n\n objectKey = objectKeyList[index];\n objectValue = object[objectKey];\n\n if (state.replacer) {\n objectValue = state.replacer.call(object, objectKey, objectValue);\n }\n\n if (!writeNode(state, level, objectKey, false, false)) {\n continue; // Skip this pair because of invalid key;\n }\n\n if (state.dump.length > 1024) pairBuffer += '? ';\n\n pairBuffer += state.dump + (state.condenseFlow ? '\"' : '') + ':' + (state.condenseFlow ? '' : ' ');\n\n if (!writeNode(state, level, objectValue, false, false)) {\n continue; // Skip this pair because of invalid value.\n }\n\n pairBuffer += state.dump;\n\n // Both key and value are valid.\n _result += pairBuffer;\n }\n\n state.tag = _tag;\n state.dump = '{' + _result + '}';\n}\n\nfunction writeBlockMapping(state, level, object, compact) {\n var _result = '',\n _tag = state.tag,\n objectKeyList = Object.keys(object),\n index,\n length,\n objectKey,\n objectValue,\n explicitPair,\n pairBuffer;\n\n // Allow sorting keys so that the output file is deterministic\n if (state.sortKeys === true) {\n // Default sorting\n objectKeyList.sort();\n } else if (typeof state.sortKeys === 'function') {\n // Custom sort function\n objectKeyList.sort(state.sortKeys);\n } else if (state.sortKeys) {\n // Something is wrong\n throw new YAMLException('sortKeys must be a boolean or a function');\n }\n\n for (index = 0, length = objectKeyList.length; index < length; index += 1) {\n pairBuffer = '';\n\n if (!compact || _result !== '') {\n pairBuffer += generateNextLine(state, level);\n }\n\n objectKey = objectKeyList[index];\n objectValue = object[objectKey];\n\n if (state.replacer) {\n objectValue = state.replacer.call(object, objectKey, objectValue);\n }\n\n if (!writeNode(state, level + 1, objectKey, true, true, true)) {\n continue; // Skip this pair because of invalid key.\n }\n\n explicitPair = (state.tag !== null && state.tag !== '?') ||\n (state.dump && state.dump.length > 1024);\n\n if (explicitPair) {\n if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {\n pairBuffer += '?';\n } else {\n pairBuffer += '? ';\n }\n }\n\n pairBuffer += state.dump;\n\n if (explicitPair) {\n pairBuffer += generateNextLine(state, level);\n }\n\n if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {\n continue; // Skip this pair because of invalid value.\n }\n\n if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {\n pairBuffer += ':';\n } else {\n pairBuffer += ': ';\n }\n\n pairBuffer += state.dump;\n\n // Both key and value are valid.\n _result += pairBuffer;\n }\n\n state.tag = _tag;\n state.dump = _result || '{}'; // Empty mapping if no valid pairs.\n}\n\nfunction detectType(state, object, explicit) {\n var _result, typeList, index, length, type, style;\n\n typeList = explicit ? state.explicitTypes : state.implicitTypes;\n\n for (index = 0, length = typeList.length; index < length; index += 1) {\n type = typeList[index];\n\n if ((type.instanceOf || type.predicate) &&\n (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) &&\n (!type.predicate || type.predicate(object))) {\n\n if (explicit) {\n if (type.multi && type.representName) {\n state.tag = type.representName(object);\n } else {\n state.tag = type.tag;\n }\n } else {\n state.tag = '?';\n }\n\n if (type.represent) {\n style = state.styleMap[type.tag] || type.defaultStyle;\n\n if (_toString.call(type.represent) === '[object Function]') {\n _result = type.represent(object, style);\n } else if (_hasOwnProperty.call(type.represent, style)) {\n _result = type.represent[style](object, style);\n } else {\n throw new YAMLException('!<' + type.tag + '> tag resolver accepts not \"' + style + '\" style');\n }\n\n state.dump = _result;\n }\n\n return true;\n }\n }\n\n return false;\n}\n\n// Serializes `object` and writes it to global `result`.\n// Returns true on success, or false on invalid object.\n//\nfunction writeNode(state, level, object, block, compact, iskey, isblockseq) {\n state.tag = null;\n state.dump = object;\n\n if (!detectType(state, object, false)) {\n detectType(state, object, true);\n }\n\n var type = _toString.call(state.dump);\n var inblock = block;\n var tagStr;\n\n if (block) {\n block = (state.flowLevel < 0 || state.flowLevel > level);\n }\n\n var objectOrArray = type === '[object Object]' || type === '[object Array]',\n duplicateIndex,\n duplicate;\n\n if (objectOrArray) {\n duplicateIndex = state.duplicates.indexOf(object);\n duplicate = duplicateIndex !== -1;\n }\n\n if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) {\n compact = false;\n }\n\n if (duplicate && state.usedDuplicates[duplicateIndex]) {\n state.dump = '*ref_' + duplicateIndex;\n } else {\n if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {\n state.usedDuplicates[duplicateIndex] = true;\n }\n if (type === '[object Object]') {\n if (block && (Object.keys(state.dump).length !== 0)) {\n writeBlockMapping(state, level, state.dump, compact);\n if (duplicate) {\n state.dump = '&ref_' + duplicateIndex + state.dump;\n }\n } else {\n writeFlowMapping(state, level, state.dump);\n if (duplicate) {\n state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;\n }\n }\n } else if (type === '[object Array]') {\n if (block && (state.dump.length !== 0)) {\n if (state.noArrayIndent && !isblockseq && level > 0) {\n writeBlockSequence(state, level - 1, state.dump, compact);\n } else {\n writeBlockSequence(state, level, state.dump, compact);\n }\n if (duplicate) {\n state.dump = '&ref_' + duplicateIndex + state.dump;\n }\n } else {\n writeFlowSequence(state, level, state.dump);\n if (duplicate) {\n state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;\n }\n }\n } else if (type === '[object String]') {\n if (state.tag !== '?') {\n writeScalar(state, state.dump, level, iskey, inblock);\n }\n } else if (type === '[object Undefined]') {\n return false;\n } else {\n if (state.skipInvalid) return false;\n throw new YAMLException('unacceptable kind of an object to dump ' + type);\n }\n\n if (state.tag !== null && state.tag !== '?') {\n // Need to encode all characters except those allowed by the spec:\n //\n // [35] ns-dec-digit ::= [#x30-#x39] /* 0-9 */\n // [36] ns-hex-digit ::= ns-dec-digit\n // | [#x41-#x46] /* A-F */ | [#x61-#x66] /* a-f */\n // [37] ns-ascii-letter ::= [#x41-#x5A] /* A-Z */ | [#x61-#x7A] /* a-z */\n // [38] ns-word-char ::= ns-dec-digit | ns-ascii-letter | \u201C-\u201D\n // [39] ns-uri-char ::= \u201C%\u201D ns-hex-digit ns-hex-digit | ns-word-char | \u201C#\u201D\n // | \u201C;\u201D | \u201C/\u201D | \u201C?\u201D | \u201C:\u201D | \u201C@\u201D | \u201C&\u201D | \u201C=\u201D | \u201C+\u201D | \u201C$\u201D | \u201C,\u201D\n // | \u201C_\u201D | \u201C.\u201D | \u201C!\u201D | \u201C~\u201D | \u201C*\u201D | \u201C'\u201D | \u201C(\u201D | \u201C)\u201D | \u201C[\u201D | \u201C]\u201D\n //\n // Also need to encode '!' because it has special meaning (end of tag prefix).\n //\n tagStr = encodeURI(\n state.tag[0] === '!' ? state.tag.slice(1) : state.tag\n ).replace(/!/g, '%21');\n\n if (state.tag[0] === '!') {\n tagStr = '!' + tagStr;\n } else if (tagStr.slice(0, 18) === 'tag:yaml.org,2002:') {\n tagStr = '!!' + tagStr.slice(18);\n } else {\n tagStr = '!<' + tagStr + '>';\n }\n\n state.dump = tagStr + ' ' + state.dump;\n }\n }\n\n return true;\n}\n\nfunction getDuplicateReferences(object, state) {\n var objects = [],\n duplicatesIndexes = [],\n index,\n length;\n\n inspectNode(object, objects, duplicatesIndexes);\n\n for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) {\n state.duplicates.push(objects[duplicatesIndexes[index]]);\n }\n state.usedDuplicates = new Array(length);\n}\n\nfunction inspectNode(object, objects, duplicatesIndexes) {\n var objectKeyList,\n index,\n length;\n\n if (object !== null && typeof object === 'object') {\n index = objects.indexOf(object);\n if (index !== -1) {\n if (duplicatesIndexes.indexOf(index) === -1) {\n duplicatesIndexes.push(index);\n }\n } else {\n objects.push(object);\n\n if (Array.isArray(object)) {\n for (index = 0, length = object.length; index < length; index += 1) {\n inspectNode(object[index], objects, duplicatesIndexes);\n }\n } else {\n objectKeyList = Object.keys(object);\n\n for (index = 0, length = objectKeyList.length; index < length; index += 1) {\n inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);\n }\n }\n }\n }\n}\n\nfunction dump(input, options) {\n options = options || {};\n\n var state = new State(options);\n\n if (!state.noRefs) getDuplicateReferences(input, state);\n\n var value = input;\n\n if (state.replacer) {\n value = state.replacer.call({ '': value }, '', value);\n }\n\n if (writeNode(state, 0, value, true, true)) return state.dump + '\\n';\n\n return '';\n}\n\nmodule.exports.dump = dump;\n", "'use strict';\n\n\nvar loader = require('./lib/loader');\nvar dumper = require('./lib/dumper');\n\n\nfunction renamed(from, to) {\n return function () {\n throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' +\n 'Use yaml.' + to + ' instead, which is now safe by default.');\n };\n}\n\n\nmodule.exports.Type = require('./lib/type');\nmodule.exports.Schema = require('./lib/schema');\nmodule.exports.FAILSAFE_SCHEMA = require('./lib/schema/failsafe');\nmodule.exports.JSON_SCHEMA = require('./lib/schema/json');\nmodule.exports.CORE_SCHEMA = require('./lib/schema/core');\nmodule.exports.DEFAULT_SCHEMA = require('./lib/schema/default');\nmodule.exports.load = loader.load;\nmodule.exports.loadAll = loader.loadAll;\nmodule.exports.dump = dumper.dump;\nmodule.exports.YAMLException = require('./lib/exception');\n\n// Re-export all types in case user wants to create custom schema\nmodule.exports.types = {\n binary: require('./lib/type/binary'),\n float: require('./lib/type/float'),\n map: require('./lib/type/map'),\n null: require('./lib/type/null'),\n pairs: require('./lib/type/pairs'),\n set: require('./lib/type/set'),\n timestamp: require('./lib/type/timestamp'),\n bool: require('./lib/type/bool'),\n int: require('./lib/type/int'),\n merge: require('./lib/type/merge'),\n omap: require('./lib/type/omap'),\n seq: require('./lib/type/seq'),\n str: require('./lib/type/str')\n};\n\n// Removed functions from JS-YAML 3.0.x\nmodule.exports.safeLoad = renamed('safeLoad', 'load');\nmodule.exports.safeLoadAll = renamed('safeLoadAll', 'loadAll');\nmodule.exports.safeDump = renamed('safeDump', 'dump');\n", "\"use strict\";\n\nconst jsYAML = require(\"js-yaml\");\n\nmodule.exports = form;\n\n/**\n * Finds all form fields and exposes them as properties.\n */\nfunction form () {\n form.form = $(\"#swagger-parser-form\");\n\n form.allow = {\n label: form.form.find(\"#allow-label\"),\n menu: form.form.find(\"#allow-menu\"),\n json: form.form.find(\"input[name=allow-json]\"),\n yaml: form.form.find(\"input[name=allow-yaml]\"),\n text: form.form.find(\"input[name=allow-text]\"),\n empty: form.form.find(\"input[name=allow-empty]\"),\n unknown: form.form.find(\"input[name=allow-unknown]\")\n };\n\n form.refs = {\n label: form.form.find(\"#refs-label\"),\n menu: form.form.find(\"#refs-menu\"),\n external: form.form.find(\"input[name=refs-external]\"),\n circular: form.form.find(\"input[name=refs-circular]\")\n };\n\n form.validate = {\n label: form.form.find(\"#validate-label\"),\n menu: form.form.find(\"#validate-menu\"),\n schema: form.form.find(\"input[name=validate-schema]\"),\n spec: form.form.find(\"input[name=validate-spec]\")\n };\n\n form.tabs = {\n url: form.form.find(\"#url-tab\"),\n text: form.form.find(\"#text-tab\")\n };\n\n form.method = {\n button: form.form.find(\"button[name=method]\"),\n menu: form.form.find(\"#method-menu\")\n };\n\n form.samples = {\n url: {\n container: form.form.find(\"#url-sample\"),\n link: form.form.find(\"#url-sample-link\"),\n },\n text: {\n container: form.form.find(\"#text-sample\"),\n link: form.form.find(\"#text-sample-link\"),\n }\n };\n\n form.url = form.form.find(\"input[name=url]\");\n form.textBox = null; // This is set in editors.js\n form.bookmark = form.form.find(\"#bookmark\");\n}\n\n/**\n * Returns a Swagger Parser options object,\n * set to the current values of all the form fields.\n */\nform.getOptions = function () {\n return {\n parse: {\n json: form.allow.json.is(\":checked\") ? {\n allowEmpty: form.allow.empty.is(\":checked\"),\n } : false,\n yaml: form.allow.yaml.is(\":checked\") ? {\n allowEmpty: form.allow.empty.is(\":checked\"),\n } : false,\n text: form.allow.text.is(\":checked\") ? {\n allowEmpty: form.allow.empty.is(\":checked\"),\n } : false,\n binary: form.allow.unknown.is(\":checked\") ? {\n allowEmpty: form.allow.empty.is(\":checked\"),\n } : false,\n },\n resolve: {\n external: form.refs.external.is(\":checked\"),\n },\n dereference: {\n circular: form.refs.circular.is(\":checked\"),\n },\n validate: {\n schema: form.validate.schema.is(\":checked\"),\n spec: form.validate.spec.is(\":checked\"),\n },\n };\n};\n\n/**\n * Returns the Swagger API or URL, depending on the current form fields.\n */\nform.getAPI = function () {\n // Determine which tab is selected\n if (form.tabs.url.parent().attr(\"class\").indexOf(\"active\") >= 0) {\n let url = form.url.val();\n if (url) {\n return url;\n }\n else {\n throw new URIError(\"Please specify the URL of your Swagger/OpenAPI definition\");\n }\n }\n else {\n let text = form.textBox.getValue();\n if (form.allow.yaml.is(\":checked\")) {\n return jsYAML.safeLoad(text);\n }\n else if (form.allow.json.is(\":checked\")) {\n return JSON.parse(text);\n }\n else {\n throw new SyntaxError(\"Unable to parse the API. Neither YAML nor JSON are allowed.\");\n }\n }\n};\n", "\"use strict\";\n\nconst form = require(\"./form\");\n\nmodule.exports = querystring;\n\n/**\n * Initializes the UI, based on the query-string in the URL\n */\nfunction querystring () {\n setFormFields();\n setBookmarkURL();\n form.bookmark.on(\"click focus mouseenter\", setBookmarkURL);\n}\n\n/**\n * Populates all form fields based on the query-string in the URL\n */\nfunction setFormFields () {\n const params = new URLSearchParams(window.location.search);\n let query = Object.fromEntries(params.entries());\n\n setCheckbox(form.allow.json, query[\"allow-json\"]);\n setCheckbox(form.allow.yaml, query[\"allow-yaml\"]);\n setCheckbox(form.allow.text, query[\"allow-text\"]);\n setCheckbox(form.allow.empty, query[\"allow-empty\"]);\n setCheckbox(form.allow.unknown, query[\"allow-unknown\"]);\n setCheckbox(form.refs.external, query[\"refs-external\"]);\n setCheckbox(form.refs.circular, query[\"refs-circular\"]);\n setCheckbox(form.validate.schema, query[\"validate-schema\"]);\n setCheckbox(form.validate.spec, query[\"validate-spec\"]);\n\n // If a custom URL is specified, then show the \"Your API\" tab\n if (query.url) {\n form.url.val(query.url);\n }\n\n // If a method is specified, then change the \"Validate!\" button\n if (query.method) {\n query.method = query.method.toLowerCase();\n if ([\"parse\", \"resolve\", \"bundle\", \"dereference\", \"validate\"].indexOf(query.method) !== -1) {\n form.method.button.val(query.method);\n }\n }\n}\n\n/**\n * Checks or unchecks the given checkbox, based on the given value.\n *\n * @param {jQuery} input\n * @param {*} value\n */\nfunction setCheckbox (input, value) {\n if (!value || value === \"true\" || value === \"on\") {\n value = \"yes\";\n }\n input.val([value]);\n}\n\n/**\n * Sets the href of the bookmark link, based on the values of each form field\n */\nfunction setBookmarkURL () {\n let query = {};\n let options = form.getOptions();\n options.parse.json || (query[\"allow-json\"] = \"no\");\n options.parse.yaml || (query[\"allow-yaml\"] = \"no\");\n options.parse.text || (query[\"allow-text\"] = \"no\");\n options.parse.json.allowEmpty || (query[\"allow-empty\"] = \"no\");\n options.parse.binary || (query[\"allow-unknown\"] = \"no\");\n options.resolve.external || (query[\"refs-external\"] = \"no\");\n options.dereference.circular || (query[\"refs-circular\"] = \"no\");\n options.validate.schema || (query[\"validate-schema\"] = \"no\");\n options.validate.spec || (query[\"validate-spec\"] = \"no\");\n\n let method = form.method.button.val();\n method === \"validate\" || (query.method = method);\n\n let url = form.url.val();\n url === \"\" || (query.url = url);\n\n const params = new URLSearchParams(query);\n let bookmark = \"?\" + params.toString();\n form.bookmark.attr(\"href\", bookmark);\n}\n", "\"use strict\";\n\nlet debug = location.hostname === \"localhost\";\n\nmodule.exports = analytics;\n\n/**\n * Initializes Google Analytics and sends a \"pageview\" hit\n */\nfunction analytics () {\n if (!debug) {\n if (typeof gtag === \"undefined\") {\n console.warn(\"Google Analytics is not enabled\");\n }\n }\n}\n\n/**\n * Tracks an event in Google Analytics\n *\n * @param {string} category - the object type (e.g. \"button\", \"menu\", \"link\", etc.)\n * @param {string} action - the action (e.g. \"click\", \"show\", \"hide\", etc.)\n * @param {string} [label] - label for categorization\n * @param {number} [value] - numeric value, such as a counter\n */\nanalytics.trackEvent = function (category, action, label, value) {\n try {\n console.log(\"Analytics event: \", category, action, label, value);\n\n if (!debug) {\n gtag(\"event\", action, {\n event_category: category, // eslint-disable-line camelcase\n event_label: label, // eslint-disable-line camelcase\n value\n });\n }\n }\n catch (error) {\n analytics.trackError(error);\n }\n};\n\n/**\n * Tracks an error in Google Analytics\n *\n * @param {Error} err\n */\nanalytics.trackError = function (err) {\n try {\n console.error(\"Analytics error: \", err);\n\n if (!debug) {\n gtag(\"event\", \"exception\", {\n name: err.name || \"Error\",\n description: err.message,\n stack: err.stack,\n });\n }\n }\n catch (error) {\n console.error(err);\n }\n};\n", "\"use strict\";\n\nconst form = require(\"./form\");\nconst analytics = require(\"./analytics\");\n\nmodule.exports = dropdowns;\n\n/**\n * Adds all the drop-down menu functionality\n */\nfunction dropdowns () {\n // Set the initial method name (in case it was set by the querystring module)\n setSelectedMethod(form.method.button.val());\n\n // Update each dropdown's label when its value(s) change\n onChange(form.allow.menu, setAllowLabel);\n onChange(form.refs.menu, setRefsLabel);\n onChange(form.validate.menu, setValidateLabel);\n\n // Track option changes\n trackCheckbox(form.allow.json);\n trackCheckbox(form.allow.yaml);\n trackCheckbox(form.allow.text);\n trackCheckbox(form.allow.empty);\n trackCheckbox(form.allow.unknown);\n trackCheckbox(form.refs.external);\n trackCheckbox(form.refs.circular);\n trackCheckbox(form.validate.schema);\n trackCheckbox(form.validate.spec);\n\n // Change the button text whenever a new method is selected\n form.method.menu.find(\"a\").on(\"click\", function (event) {\n form.method.menu.dropdown(\"toggle\");\n event.stopPropagation();\n let methodName = $(this).data(\"value\");\n setSelectedMethod(methodName);\n trackButtonLabel(methodName);\n });\n}\n\n/**\n * Calls the given function whenever the user selects (or deselects)\n * a value in the given drop-down menu.\n *\n * @param {jQuery} menu\n * @param {Function} setLabel\n */\nfunction onChange (menu, setLabel) {\n let dropdown = menu.parent(\".dropdown\");\n\n // Don't auto-close the menu when items are clicked\n menu.find(\"a\").on(\"click\", (event) => {\n event.stopPropagation();\n });\n\n // Set the label immediately, and again whenever the menu is closed\n setLabel();\n dropdown.on(\"hidden.bs.dropdown\", setLabel);\n\n // Track when a dropdown menu is shown\n dropdown.on(\"shown.bs.dropdown\", () => {\n analytics.trackEvent(\"options\", \"shown\", menu.attr(\"id\"));\n });\n}\n\n/**\n * Sets the \"allow\" label, based on which options are selected\n */\nfunction setAllowLabel () {\n let values = getCheckedAndUnchecked(\n form.allow.json, form.allow.yaml, form.allow.text, form.allow.empty, form.allow.unknown);\n\n switch (values.checked.length) {\n case 0:\n form.allow.label.text(\"No file types allowed\");\n break;\n case 1:\n form.allow.label.text(\"Only allow \" + values.checked[0] + \" files\");\n break;\n case 2:\n form.allow.label.text(\"Only allow \" + values.checked[0] + \" and \" + values.checked[1]);\n break;\n case 3:\n form.allow.label.text(\"Don't allow \" + values.unchecked[0] + \" or \" + values.unchecked[1]);\n break;\n case 4:\n form.allow.label.text(\"Don't allow \" + values.unchecked[0] + \" files\");\n break;\n case 5:\n form.allow.label.text(\"Allow all file types\");\n }\n}\n\n/**\n * Sets the \"refs\" label, based on which options are selected\n */\nfunction setRefsLabel () {\n let values = getCheckedAndUnchecked(form.refs.external, form.refs.circular);\n\n switch (values.checked.length) {\n case 0:\n form.refs.label.text(\"Only follow internal $refs\");\n break;\n case 1:\n form.refs.label.text(\"Don't follow \" + values.unchecked[0] + \" $refs\");\n break;\n case 2:\n form.refs.label.text(\"Follow all $refs\");\n }\n}\n\n/**\n * Sets the \"validate\" label, based on which options are selected\n */\nfunction setValidateLabel () {\n let values = getCheckedAndUnchecked(form.validate.schema, form.validate.spec);\n\n switch (values.checked.length) {\n case 0:\n form.validate.label.text(\"Don't validate anything\");\n break;\n case 1:\n form.validate.label.text(\"Don't validate Swagger \" + values.unchecked[0]);\n break;\n case 2:\n form.validate.label.text(\"Validate everything\");\n }\n}\n\n/**\n * Updates the UI to match the specified method name\n *\n * @param {string} methodName - The method name (e.g. \"validate\", \"dereference\", etc.)\n */\nfunction setSelectedMethod (methodName) {\n form.method.button.val(methodName.toLowerCase());\n\n methodName = methodName[0].toUpperCase() + methodName.substr(1);\n form.method.button.text(methodName + \" it!\");\n form.tabs.url.text(methodName + \" a URL\");\n form.tabs.text.text(methodName + \" Text\");\n}\n\n/**\n * Tracks changes to a checkbox option\n *\n * @param {jQuery} checkbox\n */\nfunction trackCheckbox (checkbox) {\n checkbox.on(\"change\", () => {\n let value = checkbox.is(\":checked\") ? 1 : 0;\n analytics.trackEvent(\"options\", \"changed\", checkbox.attr(\"name\"), value);\n });\n}\n\n/**\n * Tracks changes to the \"Validate!\" button\n *\n * @param {string} methodName - The method name (e.g. \"validate\", \"dereference\", etc.)\n */\nfunction trackButtonLabel (methodName) {\n let value = [\"\", \"parse\", \"resolve\", \"bundle\", \"dereference\", \"validate\"].indexOf(methodName);\n analytics.trackEvent(\"options\", \"changed\", \"method\", value);\n}\n\n/**\n * Examines the given checkboxes, and returns arrays of checked and unchecked values.\n *\n * @param {...jQuery} _checkboxes\n * @returns {{checked: string[], unchecked: string[]}}\n */\nfunction getCheckedAndUnchecked (_checkboxes) {\n let checked = [], unchecked = [];\n for (let i = 0; i < arguments.length; i++) {\n let checkbox = arguments[i];\n if (checkbox.is(\":checked\")) {\n checked.push(checkbox.data(\"value\"));\n }\n else {\n unchecked.push(checkbox.data(\"value\"));\n }\n }\n return { checked, unchecked };\n}\n", "\"use strict\";\n\nconst form = require(\"./form\");\nconst ACE_THEME = \"ace/theme/terminal\";\n\nmodule.exports = editors;\n\n/**\n * Initializes the ACE text editors\n */\nfunction editors () {\n editors.textBox = form.textBox = ace.edit(\"text-box\");\n form.textBox.setTheme(ACE_THEME);\n let session = form.textBox.getSession();\n session.setMode(\"ace/mode/yaml\");\n session.setTabSize(2);\n\n editors.results = $(\"#results\");\n editors.tabs = editors.results.find(\".nav-tabs\");\n editors.panes = editors.results.find(\".tab-content\");\n}\n\n/**\n * Removes all results tabs and editors\n */\neditors.clearResults = function () {\n editors.results.removeClass(\"error animated\").addClass(\"hidden\");\n editors.tabs.children().remove();\n editors.panes.children().remove();\n};\n\n/**\n * Displays a successful result\n *\n * @param {string} title - The title of the tab\n * @param {object|string} content - An object that will be displayed as JSON in the editor\n */\neditors.showResult = function (title, content) {\n editors.results.removeClass(\"hidden\");\n editors.addResult(title, content);\n showResults();\n};\n\n/**\n * Displays an error result\n *\n * @param {Error} err\n */\neditors.showError = function (err) {\n editors.results.removeClass(\"hidden\").addClass(\"error\");\n editors.addResult(\"Error!\", err);\n showResults();\n};\n\n/**\n * Adds a results tab with an Ace Editor containing the given content\n *\n * @param {string} title - The title of the tab\n * @param {object|string} content - An object that will be displayed as JSON in the editor\n */\neditors.addResult = function (title, content) {\n let index = editors.tabs.children().length;\n let titleId = \"results-tab-\" + index + \"-title\";\n let editorId = \"results-\" + index;\n let active = index === 0 ? \"active\" : \"\";\n\n // Add a tab and pane\n editors.tabs.append(\n '
  • ' +\n ' ' +\n \"
  • \"\n );\n editors.panes.append(\n '
    ' +\n '
    ' +\n    \"
    \"\n );\n\n // Set the tab title\n let shortTitle = getShortTitle(title) || \"Sample API\";\n editors.tabs.find(\"#\" + titleId).text(shortTitle).attr(\"title\", title);\n\n // Set the
     content\n  content = toText(content);\n  editors.panes.find(\"#\" + editorId).text(content.text);\n\n  // Turn the 
     into an Ace Editor\n  let editor = ace.edit(editorId);\n  editor.setTheme(ACE_THEME);\n  editor.session.setOption(\"useWorker\", false);\n  content.isJSON && editor.getSession().setMode(\"ace/mode/json\");\n  editor.setReadOnly(true);\n};\n\n/**\n * Returns a short version of the given title text, to better fit in a tab\n *\n * @param {string} title\n * @returns {string}\n */\nfunction getShortTitle (title) {\n  // Get just the file name\n  let lastSlash = title.lastIndexOf(\"/\");\n  if (lastSlash !== -1) {\n    title = title.substr(lastSlash + 1);\n  }\n\n  if (title.length > 15) {\n    // It's still too long, so, just return the first 10 characters\n    title = title.substr(0, 10) + \"...\";\n  }\n\n  return title;\n}\n\n/**\n * Ensures that the results are visible, and plays an animation to get the user's attention.\n */\nfunction showResults () {\n  let results = editors.results;\n\n  setTimeout(() => {\n    results[0].scrollIntoView();\n    results.addClass(\"animated\")\n      .one(\"webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend\", () => {\n        // Remove the \"animated\" class when the animation ends,\n        // so we can replay the animation again next time\n        results.removeClass(\"animated\");\n      });\n  });\n}\n\n/**\n * Converts the given object to text.\n * If possible, it is converted to JSON; otherwise, plain text.\n *\n * @param {object} obj\n * @returns {object}\n */\nfunction toText (obj) {\n  if (obj instanceof Error) {\n    return {\n      isJSON: false,\n      text: obj.message + \"\\n\\n\" + obj.stack\n    };\n  }\n  else {\n    try {\n      return {\n        isJSON: true,\n        text: JSON.stringify(obj, null, 2)\n      };\n    }\n    catch (e) {\n      return {\n        isJSON: false,\n        text: \"This API is valid, but it cannot be shown because it contains circular references\\n\\n\" + e.stack\n      };\n    }\n  }\n}\n", "\"use strict\";\n\nconst form = require(\"./form\");\n\nmodule.exports = samples;\n\n/**\n * Allows the user to use a sample URL or sample API text\n */\nfunction samples () {\n  form.samples.url.link.on(\"click\", (event) => {\n    event.preventDefault();\n    form.url.val(samples.url);\n  });\n\n  form.samples.text.link.on(\"click\", (event) => {\n    event.preventDefault();\n    form.textBox.setValue(samples.text, -1);\n    form.samples.text.container.hide();\n    form.textBox.focus();\n  });\n\n  form.textBox.on(\"input\", () => {\n    if (form.textBox.session.getValue().length === 0) {\n      form.samples.text.container.show();\n    }\n    else {\n      form.samples.text.container.hide();\n    }\n  });\n}\n\nsamples.url = \"https://apitools.dev/swagger-parser/online/sample/swagger.yaml\";\n\nsamples.text =\n  'swagger: \"2.0\"\\n' +\n  \"info:\\n\" +\n  \"  version: 1.0.0\\n\" +\n  \"  title: Swagger Petstore\\n\" +\n  \"  description: >\\n\" +\n  \"    A sample API that uses a petstore as an example\\n\" +\n  \"    to demonstrate features in the swagger-2.0 specification\\n\" +\n  \"consumes:\\n\" +\n  \"  - application/json\\n\" +\n  \"produces:\\n\" +\n  \"  - application/json\\n\" +\n  \"paths:\\n\" +\n  \"  /pets:\\n\" +\n  \"    get:\\n\" +\n  \"      description: Returns all pets from the petstore\\n\" +\n  \"      responses:\\n\" +\n  '        \"200\":\\n' +\n  \"          description: pet response\\n\" +\n  \"          schema:\\n\" +\n  \"            type: array\\n\" +\n  \"            items:\\n\" +\n  '              $ref: \"#/definitions/pet\"\\n' +\n  \"        default:\\n\" +\n  \"          description: unexpected error\\n\" +\n  \"          schema:\\n\" +\n  '            $ref: \"#/definitions/errorModel\"\\n' +\n  \"    post:\\n\" +\n  \"      description: Creates a new pet in the store\\n\" +\n  \"      parameters:\\n\" +\n  \"        - name: pet\\n\" +\n  \"          in: body\\n\" +\n  \"          description: Pet to add to the store\\n\" +\n  \"          required: true\\n\" +\n  \"          schema:\\n\" +\n  '            $ref: \"#/definitions/pet\"\\n' +\n  \"      responses:\\n\" +\n  '        \"200\":\\n' +\n  \"          description: pet response\\n\" +\n  \"          schema:\\n\" +\n  '            $ref: \"#/definitions/pet\"\\n' +\n  \"        default:\\n\" +\n  \"          description: unexpected error\\n\" +\n  \"          schema:\\n\" +\n  '            $ref: \"#/definitions/errorModel\"\\n' +\n  '  \"/pets/{name}\":\\n' +\n  \"    get:\\n\" +\n  \"      description: Returns a single pet by name\\n\" +\n  \"      parameters:\\n\" +\n  \"        - name: name\\n\" +\n  \"          in: path\\n\" +\n  \"          description: Name of the pet to fetch\\n\" +\n  \"          required: true\\n\" +\n  \"          type: string\\n\" +\n  \"      responses:\\n\" +\n  '        \"200\":\\n' +\n  \"          description: pet response\\n\" +\n  \"          schema:\\n\" +\n  '            $ref: \"#/definitions/pet\"\\n' +\n  \"        default:\\n\" +\n  \"          description: unexpected error\\n\" +\n  \"          schema:\\n\" +\n  '            $ref: \"#/definitions/errorModel\"\\n' +\n  \"definitions:\\n\" +\n  \"  pet:\\n\" +\n  \"    $ref: sample/pet.yaml\\n\" +\n  \"  pet-owner:\\n\" +\n  \"    $ref: sample/pet-owner.yaml\\n\" +\n  \"  errorModel:\\n\" +\n  \"    $ref: sample/error.json\\n\";\n", null, null, null, null, null, null, null, "var e,t,n,r=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:global,o=e={};function i(){throw new Error(\"setTimeout has not been defined\")}function u(){throw new Error(\"clearTimeout has not been defined\")}function c(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this||r,e,0)}}}!function(){try{t=\"function\"==typeof setTimeout?setTimeout:i;}catch(e){t=i;}try{n=\"function\"==typeof clearTimeout?clearTimeout:u;}catch(e){n=u;}}();var l,s=[],f=!1,a=-1;function h(){f&&l&&(f=!1,l.length?s=l.concat(s):a=-1,s.length&&d());}function d(){if(!f){var e=c(h);f=!0;for(var t=s.length;t;){for(l=s,s=[];++a1)for(var n=1;n=0&&\"[object Array]\"!==e.call(t)&&\"[object Function]\"===e.call(t.callee)},r=function(){return o(arguments)}();o.isLegacyArguments=n;var l=r?o:n;var t$1=Object.prototype.toString,o$1=Function.prototype.toString,n$1=/^\\s*(?:function)?\\*/,e$1=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.toStringTag,r$1=Object.getPrototypeOf,c=function(){if(!e$1)return !1;try{return Function(\"return function*() {}\")()}catch(t){}}(),u=c?r$1(c):{},i=function(c){return \"function\"==typeof c&&(!!n$1.test(o$1.call(c))||(e$1?r$1(c)===u:\"[object GeneratorFunction]\"===t$1.call(c)))};var t$2=\"function\"==typeof Object.create?function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}));}:function(t,e){if(e){t.super_=e;var o=function(){};o.prototype=e.prototype,t.prototype=new o,t.prototype.constructor=t;}};var i$1=function(e){return e&&\"object\"==typeof e&&\"function\"==typeof e.copy&&\"function\"==typeof e.fill&&\"function\"==typeof e.readUInt8},o$2={},u$1=i$1,f=l,a=i;function c$1(e){return e.call.bind(e)}var s=\"undefined\"!=typeof BigInt,p=\"undefined\"!=typeof Symbol,y=p&&void 0!==Symbol.toStringTag,l$1=\"undefined\"!=typeof Uint8Array,d=\"undefined\"!=typeof ArrayBuffer;if(l$1&&y)var g=Object.getPrototypeOf(Uint8Array.prototype),b=c$1(Object.getOwnPropertyDescriptor(g,Symbol.toStringTag).get);var m=c$1(Object.prototype.toString),h=c$1(Number.prototype.valueOf),j=c$1(String.prototype.valueOf),A=c$1(Boolean.prototype.valueOf);if(s)var w=c$1(BigInt.prototype.valueOf);if(p)var v=c$1(Symbol.prototype.valueOf);function O(e,t){if(\"object\"!=typeof e)return !1;try{return t(e),!0}catch(e){return !1}}function S(e){return l$1&&y?void 0!==b(e):B(e)||k(e)||E(e)||D(e)||U(e)||P(e)||x(e)||I(e)||M(e)||z(e)||F(e)}function B(e){return l$1&&y?\"Uint8Array\"===b(e):\"[object Uint8Array]\"===m(e)||u$1(e)&&void 0!==e.buffer}function k(e){return l$1&&y?\"Uint8ClampedArray\"===b(e):\"[object Uint8ClampedArray]\"===m(e)}function E(e){return l$1&&y?\"Uint16Array\"===b(e):\"[object Uint16Array]\"===m(e)}function D(e){return l$1&&y?\"Uint32Array\"===b(e):\"[object Uint32Array]\"===m(e)}function U(e){return l$1&&y?\"Int8Array\"===b(e):\"[object Int8Array]\"===m(e)}function P(e){return l$1&&y?\"Int16Array\"===b(e):\"[object Int16Array]\"===m(e)}function x(e){return l$1&&y?\"Int32Array\"===b(e):\"[object Int32Array]\"===m(e)}function I(e){return l$1&&y?\"Float32Array\"===b(e):\"[object Float32Array]\"===m(e)}function M(e){return l$1&&y?\"Float64Array\"===b(e):\"[object Float64Array]\"===m(e)}function z(e){return l$1&&y?\"BigInt64Array\"===b(e):\"[object BigInt64Array]\"===m(e)}function F(e){return l$1&&y?\"BigUint64Array\"===b(e):\"[object BigUint64Array]\"===m(e)}function T(e){return \"[object Map]\"===m(e)}function N(e){return \"[object Set]\"===m(e)}function W(e){return \"[object WeakMap]\"===m(e)}function $(e){return \"[object WeakSet]\"===m(e)}function C(e){return \"[object ArrayBuffer]\"===m(e)}function V(e){return \"undefined\"!=typeof ArrayBuffer&&(C.working?C(e):e instanceof ArrayBuffer)}function G(e){return \"[object DataView]\"===m(e)}function R(e){return \"undefined\"!=typeof DataView&&(G.working?G(e):e instanceof DataView)}function J(e){return \"[object SharedArrayBuffer]\"===m(e)}function _(e){return \"undefined\"!=typeof SharedArrayBuffer&&(J.working?J(e):e instanceof SharedArrayBuffer)}function H(e){return O(e,h)}function Z(e){return O(e,j)}function q(e){return O(e,A)}function K(e){return s&&O(e,w)}function L(e){return p&&O(e,v)}o$2.isArgumentsObject=f,o$2.isGeneratorFunction=a,o$2.isPromise=function(e){return \"undefined\"!=typeof Promise&&e instanceof Promise||null!==e&&\"object\"==typeof e&&\"function\"==typeof e.then&&\"function\"==typeof e.catch},o$2.isArrayBufferView=function(e){return d&&ArrayBuffer.isView?ArrayBuffer.isView(e):S(e)||R(e)},o$2.isTypedArray=S,o$2.isUint8Array=B,o$2.isUint8ClampedArray=k,o$2.isUint16Array=E,o$2.isUint32Array=D,o$2.isInt8Array=U,o$2.isInt16Array=P,o$2.isInt32Array=x,o$2.isFloat32Array=I,o$2.isFloat64Array=M,o$2.isBigInt64Array=z,o$2.isBigUint64Array=F,T.working=\"undefined\"!=typeof Map&&T(new Map),o$2.isMap=function(e){return \"undefined\"!=typeof Map&&(T.working?T(e):e instanceof Map)},N.working=\"undefined\"!=typeof Set&&N(new Set),o$2.isSet=function(e){return \"undefined\"!=typeof Set&&(N.working?N(e):e instanceof Set)},W.working=\"undefined\"!=typeof WeakMap&&W(new WeakMap),o$2.isWeakMap=function(e){return \"undefined\"!=typeof WeakMap&&(W.working?W(e):e instanceof WeakMap)},$.working=\"undefined\"!=typeof WeakSet&&$(new WeakSet),o$2.isWeakSet=function(e){return $(e)},C.working=\"undefined\"!=typeof ArrayBuffer&&C(new ArrayBuffer),o$2.isArrayBuffer=V,G.working=\"undefined\"!=typeof ArrayBuffer&&\"undefined\"!=typeof DataView&&G(new DataView(new ArrayBuffer(1),0,1)),o$2.isDataView=R,J.working=\"undefined\"!=typeof SharedArrayBuffer&&J(new SharedArrayBuffer),o$2.isSharedArrayBuffer=_,o$2.isAsyncFunction=function(e){return \"[object AsyncFunction]\"===m(e)},o$2.isMapIterator=function(e){return \"[object Map Iterator]\"===m(e)},o$2.isSetIterator=function(e){return \"[object Set Iterator]\"===m(e)},o$2.isGeneratorObject=function(e){return \"[object Generator]\"===m(e)},o$2.isWebAssemblyCompiledModule=function(e){return \"[object WebAssembly.Module]\"===m(e)},o$2.isNumberObject=H,o$2.isStringObject=Z,o$2.isBooleanObject=q,o$2.isBigIntObject=K,o$2.isSymbolObject=L,o$2.isBoxedPrimitive=function(e){return H(e)||Z(e)||q(e)||K(e)||L(e)},o$2.isAnyArrayBuffer=function(e){return l$1&&(V(e)||_(e))},[\"isProxy\",\"isExternal\",\"isModuleNamespaceObject\"].forEach((function(e){Object.defineProperty(o$2,e,{enumerable:!1,value:function(){throw new Error(e+\" is not supported in userland\")}});}));var Q=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:global,X={},Y=T$1,ee=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=i)return e;switch(e){case\"%s\":return String(n[r++]);case\"%d\":return Number(n[r++]);case\"%j\":try{return JSON.stringify(n[r++])}catch(e){return \"[Circular]\"}default:return e}})),u=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),ye(t)?r.showHidden=t:t&&X._extend(r,t),be(r.showHidden)&&(r.showHidden=!1),be(r.depth)&&(r.depth=2),be(r.colors)&&(r.colors=!1),be(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=ue),ae(r,e,r.depth)}function ue(e,t){var r=oe.styles[t];return r?\"\u001B[\"+oe.colors[r][0]+\"m\"+e+\"\u001B[\"+oe.colors[r][1]+\"m\":e}function fe(e,t){return e}function ae(e,t,r){if(e.customInspect&&t&&we(t.inspect)&&t.inspect!==X.inspect&&(!t.constructor||t.constructor.prototype!==t)){var n=t.inspect(r,e);return ge(n)||(n=ae(e,n,r)),n}var i=function(e,t){if(be(t))return e.stylize(\"undefined\",\"undefined\");if(ge(t)){var r=\"'\"+JSON.stringify(t).replace(/^\"|\"$/g,\"\").replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"')+\"'\";return e.stylize(r,\"string\")}if(de(t))return e.stylize(\"\"+t,\"number\");if(ye(t))return e.stylize(\"\"+t,\"boolean\");if(le(t))return e.stylize(\"null\",\"null\")}(e,t);if(i)return i;var o=Object.keys(t),u=function(e){var t={};return e.forEach((function(e,r){t[e]=!0;})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),Ae(t)&&(o.indexOf(\"message\")>=0||o.indexOf(\"description\")>=0))return ce(t);if(0===o.length){if(we(t)){var f=t.name?\": \"+t.name:\"\";return e.stylize(\"[Function\"+f+\"]\",\"special\")}if(me(t))return e.stylize(RegExp.prototype.toString.call(t),\"regexp\");if(je(t))return e.stylize(Date.prototype.toString.call(t),\"date\");if(Ae(t))return ce(t)}var a,c=\"\",s=!1,p=[\"{\",\"}\"];(pe(t)&&(s=!0,p=[\"[\",\"]\"]),we(t))&&(c=\" [Function\"+(t.name?\": \"+t.name:\"\")+\"]\");return me(t)&&(c=\" \"+RegExp.prototype.toString.call(t)),je(t)&&(c=\" \"+Date.prototype.toUTCString.call(t)),Ae(t)&&(c=\" \"+ce(t)),0!==o.length||s&&0!=t.length?r<0?me(t)?e.stylize(RegExp.prototype.toString.call(t),\"regexp\"):e.stylize(\"[Object]\",\"special\"):(e.seen.push(t),a=s?function(e,t,r,n,i){for(var o=[],u=0,f=t.length;u=0&&n++,e+t.replace(/\\u001b\\[\\d\\d?m/g,\"\").length+1}),0)>60)return r[0]+(\"\"===t?\"\":t+\"\\n \")+\" \"+e.join(\",\\n  \")+\" \"+r[1];return r[0]+t+\" \"+e.join(\", \")+\" \"+r[1]}(a,c,p)):p[0]+c+p[1]}function ce(e){return \"[\"+Error.prototype.toString.call(e)+\"]\"}function se(e,t,r,n,i,o){var u,f,a;if((a=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?f=a.set?e.stylize(\"[Getter/Setter]\",\"special\"):e.stylize(\"[Getter]\",\"special\"):a.set&&(f=e.stylize(\"[Setter]\",\"special\")),ke(n,i)||(u=\"[\"+i+\"]\"),f||(e.seen.indexOf(a.value)<0?(f=le(r)?ae(e,a.value,null):ae(e,a.value,r-1)).indexOf(\"\\n\")>-1&&(f=o?f.split(\"\\n\").map((function(e){return \"  \"+e})).join(\"\\n\").substr(2):\"\\n\"+f.split(\"\\n\").map((function(e){return \"   \"+e})).join(\"\\n\")):f=e.stylize(\"[Circular]\",\"special\")),be(u)){if(o&&i.match(/^\\d+$/))return f;(u=JSON.stringify(\"\"+i)).match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)?(u=u.substr(1,u.length-2),u=e.stylize(u,\"name\")):(u=u.replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"').replace(/(^\"|\"$)/g,\"'\"),u=e.stylize(u,\"string\"));}return u+\": \"+f}function pe(e){return Array.isArray(e)}function ye(e){return \"boolean\"==typeof e}function le(e){return null===e}function de(e){return \"number\"==typeof e}function ge(e){return \"string\"==typeof e}function be(e){return void 0===e}function me(e){return he(e)&&\"[object RegExp]\"===ve(e)}function he(e){return \"object\"==typeof e&&null!==e}function je(e){return he(e)&&\"[object Date]\"===ve(e)}function Ae(e){return he(e)&&(\"[object Error]\"===ve(e)||e instanceof Error)}function we(e){return \"function\"==typeof e}function ve(e){return Object.prototype.toString.call(e)}function Oe(e){return e<10?\"0\"+e.toString(10):e.toString(10)}X.debuglog=function(e){if(e=e.toUpperCase(),!re[e])if(ne.test(e)){var t=Y.pid;re[e]=function(){var r=X.format.apply(X,arguments);console.error(\"%s %d: %s\",e,t,r);};}else re[e]=function(){};return re[e]},X.inspect=oe,oe.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},oe.styles={special:\"cyan\",number:\"yellow\",boolean:\"yellow\",undefined:\"grey\",null:\"bold\",string:\"green\",date:\"magenta\",regexp:\"red\"},X.types=o$2,X.isArray=pe,X.isBoolean=ye,X.isNull=le,X.isNullOrUndefined=function(e){return null==e},X.isNumber=de,X.isString=ge,X.isSymbol=function(e){return \"symbol\"==typeof e},X.isUndefined=be,X.isRegExp=me,X.types.isRegExp=me,X.isObject=he,X.isDate=je,X.types.isDate=je,X.isError=Ae,X.types.isNativeError=Ae,X.isFunction=we,X.isPrimitive=function(e){return null===e||\"boolean\"==typeof e||\"number\"==typeof e||\"string\"==typeof e||\"symbol\"==typeof e||void 0===e},X.isBuffer=i$1;var Se=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];function Be(){var e=new Date,t=[Oe(e.getHours()),Oe(e.getMinutes()),Oe(e.getSeconds())].join(\":\");return [e.getDate(),Se[e.getMonth()],t].join(\" \")}function ke(e,t){return Object.prototype.hasOwnProperty.call(e,t)}X.log=function(){console.log(\"%s - %s\",Be(),X.format.apply(X,arguments));},X.inherits=t$2,X._extend=function(e,t){if(!t||!he(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var Ee=\"undefined\"!=typeof Symbol?Symbol(\"util.promisify.custom\"):void 0;function De(e,t){if(!e){var r=new Error(\"Promise was rejected with a falsy value\");r.reason=e,e=r;}return t(e)}X.promisify=function(e){if(\"function\"!=typeof e)throw new TypeError('The \"original\" argument must be of type Function');if(Ee&&e[Ee]){var t;if(\"function\"!=typeof(t=e[Ee]))throw new TypeError('The \"util.promisify.custom\" argument must be of type Function');return Object.defineProperty(t,Ee,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n;})),i=[],o=0;o new URL(u);\n\n/**\n * Regular Expression that matches Swagger path params.\n */\nexports.swaggerParamRegExp = /\\{([^/}]+)}/g;\n\n/**\n * List of HTTP verbs used for OperationItem as per the Swagger specification\n */\nconst operationsList = [\"get\", \"post\", \"put\", \"delete\", \"patch\", \"options\", \"head\", \"trace\"];\n\n/**\n * This function takes in a Server object, checks if it has relative path\n * and then fixes it as per the path url\n *\n * @param {object} server - The server object to be fixed\n * @param {string} path - The path (an http/https url) from where the file was downloaded\n * @returns {object} - The fixed server object\n */\nfunction fixServers (server, path) {\n  // Server url starting with \"/\" tells that it is not an http(s) url\n  if (server.url && server.url.startsWith(\"/\")) {\n    const inUrl = parse(path);\n    const finalUrl = inUrl.protocol + \"//\" + inUrl.hostname + server.url;\n    server.url = finalUrl;\n    return server;\n  }\n}\n\n/**\n * This function helps fix the relative servers in the API definition file\n * be at root, path or operation's level\n */\nfunction fixOasRelativeServers (schema, filePath) {\n  if (schema.openapi && (filePath && (filePath.startsWith(\"http:\") || filePath.startsWith(\"https:\")))) {\n    /**\n     * From OpenAPI v3 spec for Server object's url property: \"REQUIRED. A URL to the target host.\n     * This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where\n     * the OpenAPI document is being served.\"\n     * Further, the spec says that \"servers\" property can show up at root level, in 'Path Item' object or in 'Operation' object.\n     * However, interpretation of the spec says that relative paths for servers should take into account the hostname that\n     * serves the OpenAPI file.\n     */\n    if (schema.servers) {\n      schema.servers.map(server => fixServers(server, filePath)); // Root level servers array's fixup\n    }\n\n    // Path, Operation, or Webhook level servers array's fixup\n    [\"paths\", \"webhooks\"].forEach(component => {\n      Object.keys(schema[component] || []).forEach(path => {\n        const pathItem = schema[component][path];\n        Object.keys(pathItem).forEach(opItem => {\n          if (opItem === \"servers\") {\n            // servers at pathitem level\n            pathItem[opItem].map(server => fixServers(server, filePath));\n          }\n          else if (operationsList.includes(opItem)) {\n            // servers at operation level\n            if (pathItem[opItem].servers) {\n              pathItem[opItem].servers.map(server => fixServers(server, filePath));\n            }\n          }\n        });\n      });\n    });\n  }\n  else {\n    // Do nothing and return\n  }\n}\n\nexports.fixOasRelativeServers = fixOasRelativeServers;\n", "// eslint-disable-next-line @typescript-eslint/no-extraneous-class\nexport abstract class _CodeOrName {\n  abstract readonly str: string\n  abstract readonly names: UsedNames\n  abstract toString(): string\n  abstract emptyStr(): boolean\n}\n\nexport const IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i\n\nexport class Name extends _CodeOrName {\n  readonly str: string\n  constructor(s: string) {\n    super()\n    if (!IDENTIFIER.test(s)) throw new Error(\"CodeGen: name must be a valid identifier\")\n    this.str = s\n  }\n\n  toString(): string {\n    return this.str\n  }\n\n  emptyStr(): boolean {\n    return false\n  }\n\n  get names(): UsedNames {\n    return {[this.str]: 1}\n  }\n}\n\nexport class _Code extends _CodeOrName {\n  readonly _items: readonly CodeItem[]\n  private _str?: string\n  private _names?: UsedNames\n\n  constructor(code: string | readonly CodeItem[]) {\n    super()\n    this._items = typeof code === \"string\" ? [code] : code\n  }\n\n  toString(): string {\n    return this.str\n  }\n\n  emptyStr(): boolean {\n    if (this._items.length > 1) return false\n    const item = this._items[0]\n    return item === \"\" || item === '\"\"'\n  }\n\n  get str(): string {\n    return (this._str ??= this._items.reduce((s: string, c: CodeItem) => `${s}${c}`, \"\"))\n  }\n\n  get names(): UsedNames {\n    return (this._names ??= this._items.reduce((names: UsedNames, c) => {\n      if (c instanceof Name) names[c.str] = (names[c.str] || 0) + 1\n      return names\n    }, {}))\n  }\n}\n\nexport type CodeItem = Name | string | number | boolean | null\n\nexport type UsedNames = Record\n\nexport type Code = _Code | Name\n\nexport type SafeExpr = Code | number | boolean | null\n\nexport const nil = new _Code(\"\")\n\ntype CodeArg = SafeExpr | string | undefined\n\nexport function _(strs: TemplateStringsArray, ...args: CodeArg[]): _Code {\n  const code: CodeItem[] = [strs[0]]\n  let i = 0\n  while (i < args.length) {\n    addCodeArg(code, args[i])\n    code.push(strs[++i])\n  }\n  return new _Code(code)\n}\n\nconst plus = new _Code(\"+\")\n\nexport function str(strs: TemplateStringsArray, ...args: (CodeArg | string[])[]): _Code {\n  const expr: CodeItem[] = [safeStringify(strs[0])]\n  let i = 0\n  while (i < args.length) {\n    expr.push(plus)\n    addCodeArg(expr, args[i])\n    expr.push(plus, safeStringify(strs[++i]))\n  }\n  optimize(expr)\n  return new _Code(expr)\n}\n\nexport function addCodeArg(code: CodeItem[], arg: CodeArg | string[]): void {\n  if (arg instanceof _Code) code.push(...arg._items)\n  else if (arg instanceof Name) code.push(arg)\n  else code.push(interpolate(arg))\n}\n\nfunction optimize(expr: CodeItem[]): void {\n  let i = 1\n  while (i < expr.length - 1) {\n    if (expr[i] === plus) {\n      const res = mergeExprItems(expr[i - 1], expr[i + 1])\n      if (res !== undefined) {\n        expr.splice(i - 1, 3, res)\n        continue\n      }\n      expr[i++] = \"+\"\n    }\n    i++\n  }\n}\n\nfunction mergeExprItems(a: CodeItem, b: CodeItem): CodeItem | undefined {\n  if (b === '\"\"') return a\n  if (a === '\"\"') return b\n  if (typeof a == \"string\") {\n    if (b instanceof Name || a[a.length - 1] !== '\"') return\n    if (typeof b != \"string\") return `${a.slice(0, -1)}${b}\"`\n    if (b[0] === '\"') return a.slice(0, -1) + b.slice(1)\n    return\n  }\n  if (typeof b == \"string\" && b[0] === '\"' && !(a instanceof Name)) return `\"${a}${b.slice(1)}`\n  return\n}\n\nexport function strConcat(c1: Code, c2: Code): Code {\n  return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str`${c1}${c2}`\n}\n\n// TODO do not allow arrays here\nfunction interpolate(x?: string | string[] | number | boolean | null): SafeExpr | string {\n  return typeof x == \"number\" || typeof x == \"boolean\" || x === null\n    ? x\n    : safeStringify(Array.isArray(x) ? x.join(\",\") : x)\n}\n\nexport function stringify(x: unknown): Code {\n  return new _Code(safeStringify(x))\n}\n\nexport function safeStringify(x: unknown): string {\n  return JSON.stringify(x)\n    .replace(/\\u2028/g, \"\\\\u2028\")\n    .replace(/\\u2029/g, \"\\\\u2029\")\n}\n\nexport function getProperty(key: Code | string | number): Code {\n  return typeof key == \"string\" && IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]`\n}\n\n//Does best effort to format the name properly\nexport function getEsmExportName(key: Code | string | number): Code {\n  if (typeof key == \"string\" && IDENTIFIER.test(key)) {\n    return new _Code(`${key}`)\n  }\n  throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`)\n}\n\nexport function regexpCode(rx: RegExp): Code {\n  return new _Code(rx.toString())\n}\n", "import {_, nil, Code, Name} from \"./code\"\n\ninterface NameGroup {\n  prefix: string\n  index: number\n}\n\nexport interface NameValue {\n  ref: ValueReference // this is the reference to any value that can be referred to from generated code via `globals` var in the closure\n  key?: unknown // any key to identify a global to avoid duplicates, if not passed ref is used\n  code?: Code // this is the code creating the value needed for standalone code wit_out closure - can be a primitive value, function or import (`require`)\n}\n\nexport type ValueReference = unknown // possibly make CodeGen parameterized type on this type\n\nclass ValueError extends Error {\n  readonly value?: NameValue\n  constructor(name: ValueScopeName) {\n    super(`CodeGen: \"code\" for ${name} not defined`)\n    this.value = name.value\n  }\n}\n\ninterface ScopeOptions {\n  prefixes?: Set\n  parent?: Scope\n}\n\ninterface ValueScopeOptions extends ScopeOptions {\n  scope: ScopeStore\n  es5?: boolean\n  lines?: boolean\n}\n\nexport type ScopeStore = Record\n\ntype ScopeValues = {\n  [Prefix in string]?: Map\n}\n\nexport type ScopeValueSets = {\n  [Prefix in string]?: Set\n}\n\nexport enum UsedValueState {\n  Started,\n  Completed,\n}\n\nexport type UsedScopeValues = {\n  [Prefix in string]?: Map\n}\n\nexport const varKinds = {\n  const: new Name(\"const\"),\n  let: new Name(\"let\"),\n  var: new Name(\"var\"),\n}\n\nexport class Scope {\n  protected readonly _names: {[Prefix in string]?: NameGroup} = {}\n  protected readonly _prefixes?: Set\n  protected readonly _parent?: Scope\n\n  constructor({prefixes, parent}: ScopeOptions = {}) {\n    this._prefixes = prefixes\n    this._parent = parent\n  }\n\n  toName(nameOrPrefix: Name | string): Name {\n    return nameOrPrefix instanceof Name ? nameOrPrefix : this.name(nameOrPrefix)\n  }\n\n  name(prefix: string): Name {\n    return new Name(this._newName(prefix))\n  }\n\n  protected _newName(prefix: string): string {\n    const ng = this._names[prefix] || this._nameGroup(prefix)\n    return `${prefix}${ng.index++}`\n  }\n\n  private _nameGroup(prefix: string): NameGroup {\n    if (this._parent?._prefixes?.has(prefix) || (this._prefixes && !this._prefixes.has(prefix))) {\n      throw new Error(`CodeGen: prefix \"${prefix}\" is not allowed in this scope`)\n    }\n    return (this._names[prefix] = {prefix, index: 0})\n  }\n}\n\ninterface ScopePath {\n  property: string\n  itemIndex: number\n}\n\nexport class ValueScopeName extends Name {\n  readonly prefix: string\n  value?: NameValue\n  scopePath?: Code\n\n  constructor(prefix: string, nameStr: string) {\n    super(nameStr)\n    this.prefix = prefix\n  }\n\n  setValue(value: NameValue, {property, itemIndex}: ScopePath): void {\n    this.value = value\n    this.scopePath = _`.${new Name(property)}[${itemIndex}]`\n  }\n}\n\ninterface VSOptions extends ValueScopeOptions {\n  _n: Code\n}\n\nconst line = _`\\n`\n\nexport class ValueScope extends Scope {\n  protected readonly _values: ScopeValues = {}\n  protected readonly _scope: ScopeStore\n  readonly opts: VSOptions\n\n  constructor(opts: ValueScopeOptions) {\n    super(opts)\n    this._scope = opts.scope\n    this.opts = {...opts, _n: opts.lines ? line : nil}\n  }\n\n  get(): ScopeStore {\n    return this._scope\n  }\n\n  name(prefix: string): ValueScopeName {\n    return new ValueScopeName(prefix, this._newName(prefix))\n  }\n\n  value(nameOrPrefix: ValueScopeName | string, value: NameValue): ValueScopeName {\n    if (value.ref === undefined) throw new Error(\"CodeGen: ref must be passed in value\")\n    const name = this.toName(nameOrPrefix) as ValueScopeName\n    const {prefix} = name\n    const valueKey = value.key ?? value.ref\n    let vs = this._values[prefix]\n    if (vs) {\n      const _name = vs.get(valueKey)\n      if (_name) return _name\n    } else {\n      vs = this._values[prefix] = new Map()\n    }\n    vs.set(valueKey, name)\n\n    const s = this._scope[prefix] || (this._scope[prefix] = [])\n    const itemIndex = s.length\n    s[itemIndex] = value.ref\n    name.setValue(value, {property: prefix, itemIndex})\n    return name\n  }\n\n  getValue(prefix: string, keyOrRef: unknown): ValueScopeName | undefined {\n    const vs = this._values[prefix]\n    if (!vs) return\n    return vs.get(keyOrRef)\n  }\n\n  scopeRefs(scopeName: Name, values: ScopeValues | ScopeValueSets = this._values): Code {\n    return this._reduceValues(values, (name: ValueScopeName) => {\n      if (name.scopePath === undefined) throw new Error(`CodeGen: name \"${name}\" has no value`)\n      return _`${scopeName}${name.scopePath}`\n    })\n  }\n\n  scopeCode(\n    values: ScopeValues | ScopeValueSets = this._values,\n    usedValues?: UsedScopeValues,\n    getCode?: (n: ValueScopeName) => Code | undefined\n  ): Code {\n    return this._reduceValues(\n      values,\n      (name: ValueScopeName) => {\n        if (name.value === undefined) throw new Error(`CodeGen: name \"${name}\" has no value`)\n        return name.value.code\n      },\n      usedValues,\n      getCode\n    )\n  }\n\n  private _reduceValues(\n    values: ScopeValues | ScopeValueSets,\n    valueCode: (n: ValueScopeName) => Code | undefined,\n    usedValues: UsedScopeValues = {},\n    getCode?: (n: ValueScopeName) => Code | undefined\n  ): Code {\n    let code: Code = nil\n    for (const prefix in values) {\n      const vs = values[prefix]\n      if (!vs) continue\n      const nameSet = (usedValues[prefix] = usedValues[prefix] || new Map())\n      vs.forEach((name: ValueScopeName) => {\n        if (nameSet.has(name)) return\n        nameSet.set(name, UsedValueState.Started)\n        let c = valueCode(name)\n        if (c) {\n          const def = this.opts.es5 ? varKinds.var : varKinds.const\n          code = _`${code}${def} ${name} = ${c};${this.opts._n}`\n        } else if ((c = getCode?.(name))) {\n          code = _`${code}${c}${this.opts._n}`\n        } else {\n          throw new ValueError(name)\n        }\n        nameSet.set(name, UsedValueState.Completed)\n      })\n    }\n    return code\n  }\n}\n", "import type {ScopeValueSets, NameValue, ValueScope, ValueScopeName} from \"./scope\"\nimport {_, nil, _Code, Code, Name, UsedNames, CodeItem, addCodeArg, _CodeOrName} from \"./code\"\nimport {Scope, varKinds} from \"./scope\"\n\nexport {_, str, strConcat, nil, getProperty, stringify, regexpCode, Name, Code} from \"./code\"\nexport {Scope, ScopeStore, ValueScope, ValueScopeName, ScopeValueSets, varKinds} from \"./scope\"\n\n// type for expressions that can be safely inserted in code without quotes\nexport type SafeExpr = Code | number | boolean | null\n\n// type that is either Code of function that adds code to CodeGen instance using its methods\nexport type Block = Code | (() => void)\n\nexport const operators = {\n  GT: new _Code(\">\"),\n  GTE: new _Code(\">=\"),\n  LT: new _Code(\"<\"),\n  LTE: new _Code(\"<=\"),\n  EQ: new _Code(\"===\"),\n  NEQ: new _Code(\"!==\"),\n  NOT: new _Code(\"!\"),\n  OR: new _Code(\"||\"),\n  AND: new _Code(\"&&\"),\n  ADD: new _Code(\"+\"),\n}\n\nabstract class Node {\n  abstract readonly names: UsedNames\n\n  optimizeNodes(): this | ChildNode | ChildNode[] | undefined {\n    return this\n  }\n\n  optimizeNames(_names: UsedNames, _constants: Constants): this | undefined {\n    return this\n  }\n\n  // get count(): number {\n  //   return 1\n  // }\n}\n\nclass Def extends Node {\n  constructor(\n    private readonly varKind: Name,\n    private readonly name: Name,\n    private rhs?: SafeExpr\n  ) {\n    super()\n  }\n\n  render({es5, _n}: CGOptions): string {\n    const varKind = es5 ? varKinds.var : this.varKind\n    const rhs = this.rhs === undefined ? \"\" : ` = ${this.rhs}`\n    return `${varKind} ${this.name}${rhs};` + _n\n  }\n\n  optimizeNames(names: UsedNames, constants: Constants): this | undefined {\n    if (!names[this.name.str]) return\n    if (this.rhs) this.rhs = optimizeExpr(this.rhs, names, constants)\n    return this\n  }\n\n  get names(): UsedNames {\n    return this.rhs instanceof _CodeOrName ? this.rhs.names : {}\n  }\n}\n\nclass Assign extends Node {\n  constructor(\n    readonly lhs: Code,\n    public rhs: SafeExpr,\n    private readonly sideEffects?: boolean\n  ) {\n    super()\n  }\n\n  render({_n}: CGOptions): string {\n    return `${this.lhs} = ${this.rhs};` + _n\n  }\n\n  optimizeNames(names: UsedNames, constants: Constants): this | undefined {\n    if (this.lhs instanceof Name && !names[this.lhs.str] && !this.sideEffects) return\n    this.rhs = optimizeExpr(this.rhs, names, constants)\n    return this\n  }\n\n  get names(): UsedNames {\n    const names = this.lhs instanceof Name ? {} : {...this.lhs.names}\n    return addExprNames(names, this.rhs)\n  }\n}\n\nclass AssignOp extends Assign {\n  constructor(\n    lhs: Code,\n    private readonly op: Code,\n    rhs: SafeExpr,\n    sideEffects?: boolean\n  ) {\n    super(lhs, rhs, sideEffects)\n  }\n\n  render({_n}: CGOptions): string {\n    return `${this.lhs} ${this.op}= ${this.rhs};` + _n\n  }\n}\n\nclass Label extends Node {\n  readonly names: UsedNames = {}\n  constructor(readonly label: Name) {\n    super()\n  }\n\n  render({_n}: CGOptions): string {\n    return `${this.label}:` + _n\n  }\n}\n\nclass Break extends Node {\n  readonly names: UsedNames = {}\n  constructor(readonly label?: Code) {\n    super()\n  }\n\n  render({_n}: CGOptions): string {\n    const label = this.label ? ` ${this.label}` : \"\"\n    return `break${label};` + _n\n  }\n}\n\nclass Throw extends Node {\n  constructor(readonly error: Code) {\n    super()\n  }\n\n  render({_n}: CGOptions): string {\n    return `throw ${this.error};` + _n\n  }\n\n  get names(): UsedNames {\n    return this.error.names\n  }\n}\n\nclass AnyCode extends Node {\n  constructor(private code: SafeExpr) {\n    super()\n  }\n\n  render({_n}: CGOptions): string {\n    return `${this.code};` + _n\n  }\n\n  optimizeNodes(): this | undefined {\n    return `${this.code}` ? this : undefined\n  }\n\n  optimizeNames(names: UsedNames, constants: Constants): this {\n    this.code = optimizeExpr(this.code, names, constants)\n    return this\n  }\n\n  get names(): UsedNames {\n    return this.code instanceof _CodeOrName ? this.code.names : {}\n  }\n}\n\nabstract class ParentNode extends Node {\n  constructor(readonly nodes: ChildNode[] = []) {\n    super()\n  }\n\n  render(opts: CGOptions): string {\n    return this.nodes.reduce((code, n) => code + n.render(opts), \"\")\n  }\n\n  optimizeNodes(): this | ChildNode | ChildNode[] | undefined {\n    const {nodes} = this\n    let i = nodes.length\n    while (i--) {\n      const n = nodes[i].optimizeNodes()\n      if (Array.isArray(n)) nodes.splice(i, 1, ...n)\n      else if (n) nodes[i] = n\n      else nodes.splice(i, 1)\n    }\n    return nodes.length > 0 ? this : undefined\n  }\n\n  optimizeNames(names: UsedNames, constants: Constants): this | undefined {\n    const {nodes} = this\n    let i = nodes.length\n    while (i--) {\n      // iterating backwards improves 1-pass optimization\n      const n = nodes[i]\n      if (n.optimizeNames(names, constants)) continue\n      subtractNames(names, n.names)\n      nodes.splice(i, 1)\n    }\n    return nodes.length > 0 ? this : undefined\n  }\n\n  get names(): UsedNames {\n    return this.nodes.reduce((names: UsedNames, n) => addNames(names, n.names), {})\n  }\n\n  // get count(): number {\n  //   return this.nodes.reduce((c, n) => c + n.count, 1)\n  // }\n}\n\nabstract class BlockNode extends ParentNode {\n  render(opts: CGOptions): string {\n    return \"{\" + opts._n + super.render(opts) + \"}\" + opts._n\n  }\n}\n\nclass Root extends ParentNode {}\n\nclass Else extends BlockNode {\n  static readonly kind = \"else\"\n}\n\nclass If extends BlockNode {\n  static readonly kind = \"if\"\n  else?: If | Else\n  constructor(\n    private condition: Code | boolean,\n    nodes?: ChildNode[]\n  ) {\n    super(nodes)\n  }\n\n  render(opts: CGOptions): string {\n    let code = `if(${this.condition})` + super.render(opts)\n    if (this.else) code += \"else \" + this.else.render(opts)\n    return code\n  }\n\n  optimizeNodes(): If | ChildNode[] | undefined {\n    super.optimizeNodes()\n    const cond = this.condition\n    if (cond === true) return this.nodes // else is ignored here\n    let e = this.else\n    if (e) {\n      const ns = e.optimizeNodes()\n      e = this.else = Array.isArray(ns) ? new Else(ns) : (ns as Else | undefined)\n    }\n    if (e) {\n      if (cond === false) return e instanceof If ? e : e.nodes\n      if (this.nodes.length) return this\n      return new If(not(cond), e instanceof If ? [e] : e.nodes)\n    }\n    if (cond === false || !this.nodes.length) return undefined\n    return this\n  }\n\n  optimizeNames(names: UsedNames, constants: Constants): this | undefined {\n    this.else = this.else?.optimizeNames(names, constants)\n    if (!(super.optimizeNames(names, constants) || this.else)) return\n    this.condition = optimizeExpr(this.condition, names, constants)\n    return this\n  }\n\n  get names(): UsedNames {\n    const names = super.names\n    addExprNames(names, this.condition)\n    if (this.else) addNames(names, this.else.names)\n    return names\n  }\n\n  // get count(): number {\n  //   return super.count + (this.else?.count || 0)\n  // }\n}\n\nabstract class For extends BlockNode {\n  static readonly kind = \"for\"\n}\n\nclass ForLoop extends For {\n  constructor(private iteration: Code) {\n    super()\n  }\n\n  render(opts: CGOptions): string {\n    return `for(${this.iteration})` + super.render(opts)\n  }\n\n  optimizeNames(names: UsedNames, constants: Constants): this | undefined {\n    if (!super.optimizeNames(names, constants)) return\n    this.iteration = optimizeExpr(this.iteration, names, constants)\n    return this\n  }\n\n  get names(): UsedNames {\n    return addNames(super.names, this.iteration.names)\n  }\n}\n\nclass ForRange extends For {\n  constructor(\n    private readonly varKind: Name,\n    private readonly name: Name,\n    private readonly from: SafeExpr,\n    private readonly to: SafeExpr\n  ) {\n    super()\n  }\n\n  render(opts: CGOptions): string {\n    const varKind = opts.es5 ? varKinds.var : this.varKind\n    const {name, from, to} = this\n    return `for(${varKind} ${name}=${from}; ${name}<${to}; ${name}++)` + super.render(opts)\n  }\n\n  get names(): UsedNames {\n    const names = addExprNames(super.names, this.from)\n    return addExprNames(names, this.to)\n  }\n}\n\nclass ForIter extends For {\n  constructor(\n    private readonly loop: \"of\" | \"in\",\n    private readonly varKind: Name,\n    private readonly name: Name,\n    private iterable: Code\n  ) {\n    super()\n  }\n\n  render(opts: CGOptions): string {\n    return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(opts)\n  }\n\n  optimizeNames(names: UsedNames, constants: Constants): this | undefined {\n    if (!super.optimizeNames(names, constants)) return\n    this.iterable = optimizeExpr(this.iterable, names, constants)\n    return this\n  }\n\n  get names(): UsedNames {\n    return addNames(super.names, this.iterable.names)\n  }\n}\n\nclass Func extends BlockNode {\n  static readonly kind = \"func\"\n  constructor(\n    public name: Name,\n    public args: Code,\n    public async?: boolean\n  ) {\n    super()\n  }\n\n  render(opts: CGOptions): string {\n    const _async = this.async ? \"async \" : \"\"\n    return `${_async}function ${this.name}(${this.args})` + super.render(opts)\n  }\n}\n\nclass Return extends ParentNode {\n  static readonly kind = \"return\"\n\n  render(opts: CGOptions): string {\n    return \"return \" + super.render(opts)\n  }\n}\n\nclass Try extends BlockNode {\n  catch?: Catch\n  finally?: Finally\n\n  render(opts: CGOptions): string {\n    let code = \"try\" + super.render(opts)\n    if (this.catch) code += this.catch.render(opts)\n    if (this.finally) code += this.finally.render(opts)\n    return code\n  }\n\n  optimizeNodes(): this {\n    super.optimizeNodes()\n    this.catch?.optimizeNodes() as Catch | undefined\n    this.finally?.optimizeNodes() as Finally | undefined\n    return this\n  }\n\n  optimizeNames(names: UsedNames, constants: Constants): this {\n    super.optimizeNames(names, constants)\n    this.catch?.optimizeNames(names, constants)\n    this.finally?.optimizeNames(names, constants)\n    return this\n  }\n\n  get names(): UsedNames {\n    const names = super.names\n    if (this.catch) addNames(names, this.catch.names)\n    if (this.finally) addNames(names, this.finally.names)\n    return names\n  }\n\n  // get count(): number {\n  //   return super.count + (this.catch?.count || 0) + (this.finally?.count || 0)\n  // }\n}\n\nclass Catch extends BlockNode {\n  static readonly kind = \"catch\"\n  constructor(readonly error: Name) {\n    super()\n  }\n\n  render(opts: CGOptions): string {\n    return `catch(${this.error})` + super.render(opts)\n  }\n}\n\nclass Finally extends BlockNode {\n  static readonly kind = \"finally\"\n  render(opts: CGOptions): string {\n    return \"finally\" + super.render(opts)\n  }\n}\n\ntype StartBlockNode = If | For | Func | Return | Try\n\ntype LeafNode = Def | Assign | Label | Break | Throw | AnyCode\n\ntype ChildNode = StartBlockNode | LeafNode\n\ntype EndBlockNodeType =\n  | typeof If\n  | typeof Else\n  | typeof For\n  | typeof Func\n  | typeof Return\n  | typeof Catch\n  | typeof Finally\n\ntype Constants = Record\n\nexport interface CodeGenOptions {\n  es5?: boolean\n  lines?: boolean\n  ownProperties?: boolean\n}\n\ninterface CGOptions extends CodeGenOptions {\n  _n: \"\\n\" | \"\"\n}\n\nexport class CodeGen {\n  readonly _scope: Scope\n  readonly _extScope: ValueScope\n  readonly _values: ScopeValueSets = {}\n  private readonly _nodes: ParentNode[]\n  private readonly _blockStarts: number[] = []\n  private readonly _constants: Constants = {}\n  private readonly opts: CGOptions\n\n  constructor(extScope: ValueScope, opts: CodeGenOptions = {}) {\n    this.opts = {...opts, _n: opts.lines ? \"\\n\" : \"\"}\n    this._extScope = extScope\n    this._scope = new Scope({parent: extScope})\n    this._nodes = [new Root()]\n  }\n\n  toString(): string {\n    return this._root.render(this.opts)\n  }\n\n  // returns unique name in the internal scope\n  name(prefix: string): Name {\n    return this._scope.name(prefix)\n  }\n\n  // reserves unique name in the external scope\n  scopeName(prefix: string): ValueScopeName {\n    return this._extScope.name(prefix)\n  }\n\n  // reserves unique name in the external scope and assigns value to it\n  scopeValue(prefixOrName: ValueScopeName | string, value: NameValue): Name {\n    const name = this._extScope.value(prefixOrName, value)\n    const vs = this._values[name.prefix] || (this._values[name.prefix] = new Set())\n    vs.add(name)\n    return name\n  }\n\n  getScopeValue(prefix: string, keyOrRef: unknown): ValueScopeName | undefined {\n    return this._extScope.getValue(prefix, keyOrRef)\n  }\n\n  // return code that assigns values in the external scope to the names that are used internally\n  // (same names that were returned by gen.scopeName or gen.scopeValue)\n  scopeRefs(scopeName: Name): Code {\n    return this._extScope.scopeRefs(scopeName, this._values)\n  }\n\n  scopeCode(): Code {\n    return this._extScope.scopeCode(this._values)\n  }\n\n  private _def(\n    varKind: Name,\n    nameOrPrefix: Name | string,\n    rhs?: SafeExpr,\n    constant?: boolean\n  ): Name {\n    const name = this._scope.toName(nameOrPrefix)\n    if (rhs !== undefined && constant) this._constants[name.str] = rhs\n    this._leafNode(new Def(varKind, name, rhs))\n    return name\n  }\n\n  // `const` declaration (`var` in es5 mode)\n  const(nameOrPrefix: Name | string, rhs: SafeExpr, _constant?: boolean): Name {\n    return this._def(varKinds.const, nameOrPrefix, rhs, _constant)\n  }\n\n  // `let` declaration with optional assignment (`var` in es5 mode)\n  let(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean): Name {\n    return this._def(varKinds.let, nameOrPrefix, rhs, _constant)\n  }\n\n  // `var` declaration with optional assignment\n  var(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean): Name {\n    return this._def(varKinds.var, nameOrPrefix, rhs, _constant)\n  }\n\n  // assignment code\n  assign(lhs: Code, rhs: SafeExpr, sideEffects?: boolean): CodeGen {\n    return this._leafNode(new Assign(lhs, rhs, sideEffects))\n  }\n\n  // `+=` code\n  add(lhs: Code, rhs: SafeExpr): CodeGen {\n    return this._leafNode(new AssignOp(lhs, operators.ADD, rhs))\n  }\n\n  // appends passed SafeExpr to code or executes Block\n  code(c: Block | SafeExpr): CodeGen {\n    if (typeof c == \"function\") c()\n    else if (c !== nil) this._leafNode(new AnyCode(c))\n    return this\n  }\n\n  // returns code for object literal for the passed argument list of key-value pairs\n  object(...keyValues: [Name | string, SafeExpr | string][]): _Code {\n    const code: CodeItem[] = [\"{\"]\n    for (const [key, value] of keyValues) {\n      if (code.length > 1) code.push(\",\")\n      code.push(key)\n      if (key !== value || this.opts.es5) {\n        code.push(\":\")\n        addCodeArg(code, value)\n      }\n    }\n    code.push(\"}\")\n    return new _Code(code)\n  }\n\n  // `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed)\n  if(condition: Code | boolean, thenBody?: Block, elseBody?: Block): CodeGen {\n    this._blockNode(new If(condition))\n\n    if (thenBody && elseBody) {\n      this.code(thenBody).else().code(elseBody).endIf()\n    } else if (thenBody) {\n      this.code(thenBody).endIf()\n    } else if (elseBody) {\n      throw new Error('CodeGen: \"else\" body without \"then\" body')\n    }\n    return this\n  }\n\n  // `else if` clause - invalid without `if` or after `else` clauses\n  elseIf(condition: Code | boolean): CodeGen {\n    return this._elseNode(new If(condition))\n  }\n\n  // `else` clause - only valid after `if` or `else if` clauses\n  else(): CodeGen {\n    return this._elseNode(new Else())\n  }\n\n  // end `if` statement (needed if gen.if was used only with condition)\n  endIf(): CodeGen {\n    return this._endBlockNode(If, Else)\n  }\n\n  private _for(node: For, forBody?: Block): CodeGen {\n    this._blockNode(node)\n    if (forBody) this.code(forBody).endFor()\n    return this\n  }\n\n  // a generic `for` clause (or statement if `forBody` is passed)\n  for(iteration: Code, forBody?: Block): CodeGen {\n    return this._for(new ForLoop(iteration), forBody)\n  }\n\n  // `for` statement for a range of values\n  forRange(\n    nameOrPrefix: Name | string,\n    from: SafeExpr,\n    to: SafeExpr,\n    forBody: (index: Name) => void,\n    varKind: Code = this.opts.es5 ? varKinds.var : varKinds.let\n  ): CodeGen {\n    const name = this._scope.toName(nameOrPrefix)\n    return this._for(new ForRange(varKind, name, from, to), () => forBody(name))\n  }\n\n  // `for-of` statement (in es5 mode replace with a normal for loop)\n  forOf(\n    nameOrPrefix: Name | string,\n    iterable: Code,\n    forBody: (item: Name) => void,\n    varKind: Code = varKinds.const\n  ): CodeGen {\n    const name = this._scope.toName(nameOrPrefix)\n    if (this.opts.es5) {\n      const arr = iterable instanceof Name ? iterable : this.var(\"_arr\", iterable)\n      return this.forRange(\"_i\", 0, _`${arr}.length`, (i) => {\n        this.var(name, _`${arr}[${i}]`)\n        forBody(name)\n      })\n    }\n    return this._for(new ForIter(\"of\", varKind, name, iterable), () => forBody(name))\n  }\n\n  // `for-in` statement.\n  // With option `ownProperties` replaced with a `for-of` loop for object keys\n  forIn(\n    nameOrPrefix: Name | string,\n    obj: Code,\n    forBody: (item: Name) => void,\n    varKind: Code = this.opts.es5 ? varKinds.var : varKinds.const\n  ): CodeGen {\n    if (this.opts.ownProperties) {\n      return this.forOf(nameOrPrefix, _`Object.keys(${obj})`, forBody)\n    }\n    const name = this._scope.toName(nameOrPrefix)\n    return this._for(new ForIter(\"in\", varKind, name, obj), () => forBody(name))\n  }\n\n  // end `for` loop\n  endFor(): CodeGen {\n    return this._endBlockNode(For)\n  }\n\n  // `label` statement\n  label(label: Name): CodeGen {\n    return this._leafNode(new Label(label))\n  }\n\n  // `break` statement\n  break(label?: Code): CodeGen {\n    return this._leafNode(new Break(label))\n  }\n\n  // `return` statement\n  return(value: Block | SafeExpr): CodeGen {\n    const node = new Return()\n    this._blockNode(node)\n    this.code(value)\n    if (node.nodes.length !== 1) throw new Error('CodeGen: \"return\" should have one node')\n    return this._endBlockNode(Return)\n  }\n\n  // `try` statement\n  try(tryBody: Block, catchCode?: (e: Name) => void, finallyCode?: Block): CodeGen {\n    if (!catchCode && !finallyCode) throw new Error('CodeGen: \"try\" without \"catch\" and \"finally\"')\n    const node = new Try()\n    this._blockNode(node)\n    this.code(tryBody)\n    if (catchCode) {\n      const error = this.name(\"e\")\n      this._currNode = node.catch = new Catch(error)\n      catchCode(error)\n    }\n    if (finallyCode) {\n      this._currNode = node.finally = new Finally()\n      this.code(finallyCode)\n    }\n    return this._endBlockNode(Catch, Finally)\n  }\n\n  // `throw` statement\n  throw(error: Code): CodeGen {\n    return this._leafNode(new Throw(error))\n  }\n\n  // start self-balancing block\n  block(body?: Block, nodeCount?: number): CodeGen {\n    this._blockStarts.push(this._nodes.length)\n    if (body) this.code(body).endBlock(nodeCount)\n    return this\n  }\n\n  // end the current self-balancing block\n  endBlock(nodeCount?: number): CodeGen {\n    const len = this._blockStarts.pop()\n    if (len === undefined) throw new Error(\"CodeGen: not in self-balancing block\")\n    const toClose = this._nodes.length - len\n    if (toClose < 0 || (nodeCount !== undefined && toClose !== nodeCount)) {\n      throw new Error(`CodeGen: wrong number of nodes: ${toClose} vs ${nodeCount} expected`)\n    }\n    this._nodes.length = len\n    return this\n  }\n\n  // `function` heading (or definition if funcBody is passed)\n  func(name: Name, args: Code = nil, async?: boolean, funcBody?: Block): CodeGen {\n    this._blockNode(new Func(name, args, async))\n    if (funcBody) this.code(funcBody).endFunc()\n    return this\n  }\n\n  // end function definition\n  endFunc(): CodeGen {\n    return this._endBlockNode(Func)\n  }\n\n  optimize(n = 1): void {\n    while (n-- > 0) {\n      this._root.optimizeNodes()\n      this._root.optimizeNames(this._root.names, this._constants)\n    }\n  }\n\n  private _leafNode(node: LeafNode): CodeGen {\n    this._currNode.nodes.push(node)\n    return this\n  }\n\n  private _blockNode(node: StartBlockNode): void {\n    this._currNode.nodes.push(node)\n    this._nodes.push(node)\n  }\n\n  private _endBlockNode(N1: EndBlockNodeType, N2?: EndBlockNodeType): CodeGen {\n    const n = this._currNode\n    if (n instanceof N1 || (N2 && n instanceof N2)) {\n      this._nodes.pop()\n      return this\n    }\n    throw new Error(`CodeGen: not in block \"${N2 ? `${N1.kind}/${N2.kind}` : N1.kind}\"`)\n  }\n\n  private _elseNode(node: If | Else): CodeGen {\n    const n = this._currNode\n    if (!(n instanceof If)) {\n      throw new Error('CodeGen: \"else\" without \"if\"')\n    }\n    this._currNode = n.else = node\n    return this\n  }\n\n  private get _root(): Root {\n    return this._nodes[0] as Root\n  }\n\n  private get _currNode(): ParentNode {\n    const ns = this._nodes\n    return ns[ns.length - 1]\n  }\n\n  private set _currNode(node: ParentNode) {\n    const ns = this._nodes\n    ns[ns.length - 1] = node\n  }\n\n  // get nodeCount(): number {\n  //   return this._root.count\n  // }\n}\n\nfunction addNames(names: UsedNames, from: UsedNames): UsedNames {\n  for (const n in from) names[n] = (names[n] || 0) + (from[n] || 0)\n  return names\n}\n\nfunction addExprNames(names: UsedNames, from: SafeExpr): UsedNames {\n  return from instanceof _CodeOrName ? addNames(names, from.names) : names\n}\n\nfunction optimizeExpr(expr: T, names: UsedNames, constants: Constants): T\nfunction optimizeExpr(expr: SafeExpr, names: UsedNames, constants: Constants): SafeExpr {\n  if (expr instanceof Name) return replaceName(expr)\n  if (!canOptimize(expr)) return expr\n  return new _Code(\n    expr._items.reduce((items: CodeItem[], c: SafeExpr | string) => {\n      if (c instanceof Name) c = replaceName(c)\n      if (c instanceof _Code) items.push(...c._items)\n      else items.push(c)\n      return items\n    }, [])\n  )\n\n  function replaceName(n: Name): SafeExpr {\n    const c = constants[n.str]\n    if (c === undefined || names[n.str] !== 1) return n\n    delete names[n.str]\n    return c\n  }\n\n  function canOptimize(e: SafeExpr): e is _Code {\n    return (\n      e instanceof _Code &&\n      e._items.some(\n        (c) => c instanceof Name && names[c.str] === 1 && constants[c.str] !== undefined\n      )\n    )\n  }\n}\n\nfunction subtractNames(names: UsedNames, from: UsedNames): void {\n  for (const n in from) names[n] = (names[n] || 0) - (from[n] || 0)\n}\n\nexport function not(x: T): T\nexport function not(x: Code | SafeExpr): Code | SafeExpr {\n  return typeof x == \"boolean\" || typeof x == \"number\" || x === null ? !x : _`!${par(x)}`\n}\n\nconst andCode = mappend(operators.AND)\n\n// boolean AND (&&) expression with the passed arguments\nexport function and(...args: Code[]): Code {\n  return args.reduce(andCode)\n}\n\nconst orCode = mappend(operators.OR)\n\n// boolean OR (||) expression with the passed arguments\nexport function or(...args: Code[]): Code {\n  return args.reduce(orCode)\n}\n\ntype MAppend = (x: Code, y: Code) => Code\n\nfunction mappend(op: Code): MAppend {\n  return (x, y) => (x === nil ? y : y === nil ? x : _`${par(x)} ${op} ${par(y)}`)\n}\n\nfunction par(x: Code): Code {\n  return x instanceof Name ? x : _`(${x})`\n}\n", "import type {AnySchema, EvaluatedProperties, EvaluatedItems} from \"../types\"\nimport type {SchemaCxt, SchemaObjCxt} from \".\"\nimport {_, getProperty, Code, Name, CodeGen} from \"./codegen\"\nimport {_Code} from \"./codegen/code\"\nimport type {Rule, ValidationRules} from \"./rules\"\n\n// TODO refactor to use Set\nexport function toHash(arr: T[]): {[K in T]?: true} {\n  const hash: {[K in T]?: true} = {}\n  for (const item of arr) hash[item] = true\n  return hash\n}\n\nexport function alwaysValidSchema(it: SchemaCxt, schema: AnySchema): boolean | void {\n  if (typeof schema == \"boolean\") return schema\n  if (Object.keys(schema).length === 0) return true\n  checkUnknownRules(it, schema)\n  return !schemaHasRules(schema, it.self.RULES.all)\n}\n\nexport function checkUnknownRules(it: SchemaCxt, schema: AnySchema = it.schema): void {\n  const {opts, self} = it\n  if (!opts.strictSchema) return\n  if (typeof schema === \"boolean\") return\n  const rules = self.RULES.keywords\n  for (const key in schema) {\n    if (!rules[key]) checkStrictMode(it, `unknown keyword: \"${key}\"`)\n  }\n}\n\nexport function schemaHasRules(\n  schema: AnySchema,\n  rules: {[Key in string]?: boolean | Rule}\n): boolean {\n  if (typeof schema == \"boolean\") return !schema\n  for (const key in schema) if (rules[key]) return true\n  return false\n}\n\nexport function schemaHasRulesButRef(schema: AnySchema, RULES: ValidationRules): boolean {\n  if (typeof schema == \"boolean\") return !schema\n  for (const key in schema) if (key !== \"$ref\" && RULES.all[key]) return true\n  return false\n}\n\nexport function schemaRefOrVal(\n  {topSchemaRef, schemaPath}: SchemaObjCxt,\n  schema: unknown,\n  keyword: string,\n  $data?: string | false\n): Code | number | boolean {\n  if (!$data) {\n    if (typeof schema == \"number\" || typeof schema == \"boolean\") return schema\n    if (typeof schema == \"string\") return _`${schema}`\n  }\n  return _`${topSchemaRef}${schemaPath}${getProperty(keyword)}`\n}\n\nexport function unescapeFragment(str: string): string {\n  return unescapeJsonPointer(decodeURIComponent(str))\n}\n\nexport function escapeFragment(str: string | number): string {\n  return encodeURIComponent(escapeJsonPointer(str))\n}\n\nexport function escapeJsonPointer(str: string | number): string {\n  if (typeof str == \"number\") return `${str}`\n  return str.replace(/~/g, \"~0\").replace(/\\//g, \"~1\")\n}\n\nexport function unescapeJsonPointer(str: string): string {\n  return str.replace(/~1/g, \"/\").replace(/~0/g, \"~\")\n}\n\nexport function eachItem(xs: T | T[], f: (x: T) => void): void {\n  if (Array.isArray(xs)) {\n    for (const x of xs) f(x)\n  } else {\n    f(xs)\n  }\n}\n\ntype SomeEvaluated = EvaluatedProperties | EvaluatedItems\n\ntype MergeEvaluatedFunc = (\n  gen: CodeGen,\n  from: Name | T,\n  to: Name | Exclude | undefined,\n  toName?: typeof Name\n) => Name | T\n\ninterface MakeMergeFuncArgs {\n  mergeNames: (gen: CodeGen, from: Name, to: Name) => void\n  mergeToName: (gen: CodeGen, from: T, to: Name) => void\n  mergeValues: (from: T, to: Exclude) => T\n  resultToName: (gen: CodeGen, res?: T) => Name\n}\n\nfunction makeMergeEvaluated({\n  mergeNames,\n  mergeToName,\n  mergeValues,\n  resultToName,\n}: MakeMergeFuncArgs): MergeEvaluatedFunc {\n  return (gen, from, to, toName) => {\n    const res =\n      to === undefined\n        ? from\n        : to instanceof Name\n        ? (from instanceof Name ? mergeNames(gen, from, to) : mergeToName(gen, from, to), to)\n        : from instanceof Name\n        ? (mergeToName(gen, to, from), from)\n        : mergeValues(from, to)\n    return toName === Name && !(res instanceof Name) ? resultToName(gen, res) : res\n  }\n}\n\ninterface MergeEvaluated {\n  props: MergeEvaluatedFunc\n  items: MergeEvaluatedFunc\n}\n\nexport const mergeEvaluated: MergeEvaluated = {\n  props: makeMergeEvaluated({\n    mergeNames: (gen, from, to) =>\n      gen.if(_`${to} !== true && ${from} !== undefined`, () => {\n        gen.if(\n          _`${from} === true`,\n          () => gen.assign(to, true),\n          () => gen.assign(to, _`${to} || {}`).code(_`Object.assign(${to}, ${from})`)\n        )\n      }),\n    mergeToName: (gen, from, to) =>\n      gen.if(_`${to} !== true`, () => {\n        if (from === true) {\n          gen.assign(to, true)\n        } else {\n          gen.assign(to, _`${to} || {}`)\n          setEvaluated(gen, to, from)\n        }\n      }),\n    mergeValues: (from, to) => (from === true ? true : {...from, ...to}),\n    resultToName: evaluatedPropsToName,\n  }),\n  items: makeMergeEvaluated({\n    mergeNames: (gen, from, to) =>\n      gen.if(_`${to} !== true && ${from} !== undefined`, () =>\n        gen.assign(to, _`${from} === true ? true : ${to} > ${from} ? ${to} : ${from}`)\n      ),\n    mergeToName: (gen, from, to) =>\n      gen.if(_`${to} !== true`, () =>\n        gen.assign(to, from === true ? true : _`${to} > ${from} ? ${to} : ${from}`)\n      ),\n    mergeValues: (from, to) => (from === true ? true : Math.max(from, to)),\n    resultToName: (gen, items) => gen.var(\"items\", items),\n  }),\n}\n\nexport function evaluatedPropsToName(gen: CodeGen, ps?: EvaluatedProperties): Name {\n  if (ps === true) return gen.var(\"props\", true)\n  const props = gen.var(\"props\", _`{}`)\n  if (ps !== undefined) setEvaluated(gen, props, ps)\n  return props\n}\n\nexport function setEvaluated(gen: CodeGen, props: Name, ps: {[K in string]?: true}): void {\n  Object.keys(ps).forEach((p) => gen.assign(_`${props}${getProperty(p)}`, true))\n}\n\nconst snippets: {[S in string]?: _Code} = {}\n\nexport function useFunc(gen: CodeGen, f: {code: string}): Name {\n  return gen.scopeValue(\"func\", {\n    ref: f,\n    code: snippets[f.code] || (snippets[f.code] = new _Code(f.code)),\n  })\n}\n\nexport enum Type {\n  Num,\n  Str,\n}\n\nexport function getErrorPath(\n  dataProp: Name | string | number,\n  dataPropType?: Type,\n  jsPropertySyntax?: boolean\n): Code | string {\n  // let path\n  if (dataProp instanceof Name) {\n    const isNumber = dataPropType === Type.Num\n    return jsPropertySyntax\n      ? isNumber\n        ? _`\"[\" + ${dataProp} + \"]\"`\n        : _`\"['\" + ${dataProp} + \"']\"`\n      : isNumber\n      ? _`\"/\" + ${dataProp}`\n      : _`\"/\" + ${dataProp}.replace(/~/g, \"~0\").replace(/\\\\//g, \"~1\")` // TODO maybe use global escapePointer\n  }\n  return jsPropertySyntax ? getProperty(dataProp).toString() : \"/\" + escapeJsonPointer(dataProp)\n}\n\nexport function checkStrictMode(\n  it: SchemaCxt,\n  msg: string,\n  mode: boolean | \"log\" = it.opts.strictSchema\n): void {\n  if (!mode) return\n  msg = `strict mode: ${msg}`\n  if (mode === true) throw new Error(msg)\n  it.self.logger.warn(msg)\n}\n", "import {Name} from \"./codegen\"\n\nconst names = {\n  // validation function arguments\n  data: new Name(\"data\"), // data passed to validation function\n  // args passed from referencing schema\n  valCxt: new Name(\"valCxt\"), // validation/data context - should not be used directly, it is destructured to the names below\n  instancePath: new Name(\"instancePath\"),\n  parentData: new Name(\"parentData\"),\n  parentDataProperty: new Name(\"parentDataProperty\"),\n  rootData: new Name(\"rootData\"), // root data - same as the data passed to the first/top validation function\n  dynamicAnchors: new Name(\"dynamicAnchors\"), // used to support recursiveRef and dynamicRef\n  // function scoped variables\n  vErrors: new Name(\"vErrors\"), // null or array of validation errors\n  errors: new Name(\"errors\"), // counter of validation errors\n  this: new Name(\"this\"),\n  // \"globals\"\n  self: new Name(\"self\"),\n  scope: new Name(\"scope\"),\n  // JTD serialize/parse name for JSON string and position\n  json: new Name(\"json\"),\n  jsonPos: new Name(\"jsonPos\"),\n  jsonLen: new Name(\"jsonLen\"),\n  jsonPart: new Name(\"jsonPart\"),\n}\n\nexport default names\n", "import type {KeywordErrorCxt, KeywordErrorDefinition} from \"../types\"\nimport type {SchemaCxt} from \"./index\"\nimport {CodeGen, _, str, strConcat, Code, Name} from \"./codegen\"\nimport {SafeExpr} from \"./codegen/code\"\nimport {getErrorPath, Type} from \"./util\"\nimport N from \"./names\"\n\nexport const keywordError: KeywordErrorDefinition = {\n  message: ({keyword}) => str`must pass \"${keyword}\" keyword validation`,\n}\n\nexport const keyword$DataError: KeywordErrorDefinition = {\n  message: ({keyword, schemaType}) =>\n    schemaType\n      ? str`\"${keyword}\" keyword must be ${schemaType} ($data)`\n      : str`\"${keyword}\" keyword is invalid ($data)`,\n}\n\nexport interface ErrorPaths {\n  instancePath?: Code\n  schemaPath?: string\n  parentSchema?: boolean\n}\n\nexport function reportError(\n  cxt: KeywordErrorCxt,\n  error: KeywordErrorDefinition = keywordError,\n  errorPaths?: ErrorPaths,\n  overrideAllErrors?: boolean\n): void {\n  const {it} = cxt\n  const {gen, compositeRule, allErrors} = it\n  const errObj = errorObjectCode(cxt, error, errorPaths)\n  if (overrideAllErrors ?? (compositeRule || allErrors)) {\n    addError(gen, errObj)\n  } else {\n    returnErrors(it, _`[${errObj}]`)\n  }\n}\n\nexport function reportExtraError(\n  cxt: KeywordErrorCxt,\n  error: KeywordErrorDefinition = keywordError,\n  errorPaths?: ErrorPaths\n): void {\n  const {it} = cxt\n  const {gen, compositeRule, allErrors} = it\n  const errObj = errorObjectCode(cxt, error, errorPaths)\n  addError(gen, errObj)\n  if (!(compositeRule || allErrors)) {\n    returnErrors(it, N.vErrors)\n  }\n}\n\nexport function resetErrorsCount(gen: CodeGen, errsCount: Name): void {\n  gen.assign(N.errors, errsCount)\n  gen.if(_`${N.vErrors} !== null`, () =>\n    gen.if(\n      errsCount,\n      () => gen.assign(_`${N.vErrors}.length`, errsCount),\n      () => gen.assign(N.vErrors, null)\n    )\n  )\n}\n\nexport function extendErrors({\n  gen,\n  keyword,\n  schemaValue,\n  data,\n  errsCount,\n  it,\n}: KeywordErrorCxt): void {\n  /* istanbul ignore if */\n  if (errsCount === undefined) throw new Error(\"ajv implementation error\")\n  const err = gen.name(\"err\")\n  gen.forRange(\"i\", errsCount, N.errors, (i) => {\n    gen.const(err, _`${N.vErrors}[${i}]`)\n    gen.if(_`${err}.instancePath === undefined`, () =>\n      gen.assign(_`${err}.instancePath`, strConcat(N.instancePath, it.errorPath))\n    )\n    gen.assign(_`${err}.schemaPath`, str`${it.errSchemaPath}/${keyword}`)\n    if (it.opts.verbose) {\n      gen.assign(_`${err}.schema`, schemaValue)\n      gen.assign(_`${err}.data`, data)\n    }\n  })\n}\n\nfunction addError(gen: CodeGen, errObj: Code): void {\n  const err = gen.const(\"err\", errObj)\n  gen.if(\n    _`${N.vErrors} === null`,\n    () => gen.assign(N.vErrors, _`[${err}]`),\n    _`${N.vErrors}.push(${err})`\n  )\n  gen.code(_`${N.errors}++`)\n}\n\nfunction returnErrors(it: SchemaCxt, errs: Code): void {\n  const {gen, validateName, schemaEnv} = it\n  if (schemaEnv.$async) {\n    gen.throw(_`new ${it.ValidationError as Name}(${errs})`)\n  } else {\n    gen.assign(_`${validateName}.errors`, errs)\n    gen.return(false)\n  }\n}\n\nconst E = {\n  keyword: new Name(\"keyword\"),\n  schemaPath: new Name(\"schemaPath\"), // also used in JTD errors\n  params: new Name(\"params\"),\n  propertyName: new Name(\"propertyName\"),\n  message: new Name(\"message\"),\n  schema: new Name(\"schema\"),\n  parentSchema: new Name(\"parentSchema\"),\n}\n\nfunction errorObjectCode(\n  cxt: KeywordErrorCxt,\n  error: KeywordErrorDefinition,\n  errorPaths?: ErrorPaths\n): Code {\n  const {createErrors} = cxt.it\n  if (createErrors === false) return _`{}`\n  return errorObject(cxt, error, errorPaths)\n}\n\nfunction errorObject(\n  cxt: KeywordErrorCxt,\n  error: KeywordErrorDefinition,\n  errorPaths: ErrorPaths = {}\n): Code {\n  const {gen, it} = cxt\n  const keyValues: [Name, SafeExpr | string][] = [\n    errorInstancePath(it, errorPaths),\n    errorSchemaPath(cxt, errorPaths),\n  ]\n  extraErrorProps(cxt, error, keyValues)\n  return gen.object(...keyValues)\n}\n\nfunction errorInstancePath({errorPath}: SchemaCxt, {instancePath}: ErrorPaths): [Name, Code] {\n  const instPath = instancePath\n    ? str`${errorPath}${getErrorPath(instancePath, Type.Str)}`\n    : errorPath\n  return [N.instancePath, strConcat(N.instancePath, instPath)]\n}\n\nfunction errorSchemaPath(\n  {keyword, it: {errSchemaPath}}: KeywordErrorCxt,\n  {schemaPath, parentSchema}: ErrorPaths\n): [Name, string | Code] {\n  let schPath = parentSchema ? errSchemaPath : str`${errSchemaPath}/${keyword}`\n  if (schemaPath) {\n    schPath = str`${schPath}${getErrorPath(schemaPath, Type.Str)}`\n  }\n  return [E.schemaPath, schPath]\n}\n\nfunction extraErrorProps(\n  cxt: KeywordErrorCxt,\n  {params, message}: KeywordErrorDefinition,\n  keyValues: [Name, SafeExpr | string][]\n): void {\n  const {keyword, data, schemaValue, it} = cxt\n  const {opts, propertyName, topSchemaRef, schemaPath} = it\n  keyValues.push(\n    [E.keyword, keyword],\n    [E.params, typeof params == \"function\" ? params(cxt) : params || _`{}`]\n  )\n  if (opts.messages) {\n    keyValues.push([E.message, typeof message == \"function\" ? message(cxt) : message])\n  }\n  if (opts.verbose) {\n    keyValues.push(\n      [E.schema, schemaValue],\n      [E.parentSchema, _`${topSchemaRef}${schemaPath}`],\n      [N.data, data]\n    )\n  }\n  if (propertyName) keyValues.push([E.propertyName, propertyName])\n}\n", "import type {KeywordErrorDefinition, KeywordErrorCxt} from \"../../types\"\nimport type {SchemaCxt} from \"..\"\nimport {reportError} from \"../errors\"\nimport {_, Name} from \"../codegen\"\nimport N from \"../names\"\n\nconst boolError: KeywordErrorDefinition = {\n  message: \"boolean schema is false\",\n}\n\nexport function topBoolOrEmptySchema(it: SchemaCxt): void {\n  const {gen, schema, validateName} = it\n  if (schema === false) {\n    falseSchemaError(it, false)\n  } else if (typeof schema == \"object\" && schema.$async === true) {\n    gen.return(N.data)\n  } else {\n    gen.assign(_`${validateName}.errors`, null)\n    gen.return(true)\n  }\n}\n\nexport function boolOrEmptySchema(it: SchemaCxt, valid: Name): void {\n  const {gen, schema} = it\n  if (schema === false) {\n    gen.var(valid, false) // TODO var\n    falseSchemaError(it)\n  } else {\n    gen.var(valid, true) // TODO var\n  }\n}\n\nfunction falseSchemaError(it: SchemaCxt, overrideAllErrors?: boolean): void {\n  const {gen, data} = it\n  // TODO maybe some other interface should be used for non-keyword validation errors...\n  const cxt: KeywordErrorCxt = {\n    gen,\n    keyword: \"false schema\",\n    data,\n    schema: false,\n    schemaCode: false,\n    schemaValue: false,\n    params: {},\n    it,\n  }\n  reportError(cxt, boolError, undefined, overrideAllErrors)\n}\n", "import type {AddedKeywordDefinition} from \"../types\"\n\nconst _jsonTypes = [\"string\", \"number\", \"integer\", \"boolean\", \"null\", \"object\", \"array\"] as const\n\nexport type JSONType = (typeof _jsonTypes)[number]\n\nconst jsonTypes: Set = new Set(_jsonTypes)\n\nexport function isJSONType(x: unknown): x is JSONType {\n  return typeof x == \"string\" && jsonTypes.has(x)\n}\n\ntype ValidationTypes = {\n  [K in JSONType]: boolean | RuleGroup | undefined\n}\n\nexport interface ValidationRules {\n  rules: RuleGroup[]\n  post: RuleGroup\n  all: {[Key in string]?: boolean | Rule} // rules that have to be validated\n  keywords: {[Key in string]?: boolean} // all known keywords (superset of \"all\")\n  types: ValidationTypes\n}\n\nexport interface RuleGroup {\n  type?: JSONType\n  rules: Rule[]\n}\n\n// This interface wraps KeywordDefinition because definition can have multiple keywords\nexport interface Rule {\n  keyword: string\n  definition: AddedKeywordDefinition\n}\n\nexport function getRules(): ValidationRules {\n  const groups: Record<\"number\" | \"string\" | \"array\" | \"object\", RuleGroup> = {\n    number: {type: \"number\", rules: []},\n    string: {type: \"string\", rules: []},\n    array: {type: \"array\", rules: []},\n    object: {type: \"object\", rules: []},\n  }\n  return {\n    types: {...groups, integer: true, boolean: true, null: true},\n    rules: [{rules: []}, groups.number, groups.string, groups.array, groups.object],\n    post: {rules: []},\n    all: {},\n    keywords: {},\n  }\n}\n", "import type {AnySchemaObject} from \"../../types\"\nimport type {SchemaObjCxt} from \"..\"\nimport type {JSONType, RuleGroup, Rule} from \"../rules\"\n\nexport function schemaHasRulesForType(\n  {schema, self}: SchemaObjCxt,\n  type: JSONType\n): boolean | undefined {\n  const group = self.RULES.types[type]\n  return group && group !== true && shouldUseGroup(schema, group)\n}\n\nexport function shouldUseGroup(schema: AnySchemaObject, group: RuleGroup): boolean {\n  return group.rules.some((rule) => shouldUseRule(schema, rule))\n}\n\nexport function shouldUseRule(schema: AnySchemaObject, rule: Rule): boolean | undefined {\n  return (\n    schema[rule.keyword] !== undefined ||\n    rule.definition.implements?.some((kwd) => schema[kwd] !== undefined)\n  )\n}\n", "import type {\n  KeywordErrorDefinition,\n  KeywordErrorCxt,\n  ErrorObject,\n  AnySchemaObject,\n} from \"../../types\"\nimport type {SchemaObjCxt} from \"..\"\nimport {isJSONType, JSONType} from \"../rules\"\nimport {schemaHasRulesForType} from \"./applicability\"\nimport {reportError} from \"../errors\"\nimport {_, nil, and, not, operators, Code, Name} from \"../codegen\"\nimport {toHash, schemaRefOrVal} from \"../util\"\n\nexport enum DataType {\n  Correct,\n  Wrong,\n}\n\nexport function getSchemaTypes(schema: AnySchemaObject): JSONType[] {\n  const types = getJSONTypes(schema.type)\n  const hasNull = types.includes(\"null\")\n  if (hasNull) {\n    if (schema.nullable === false) throw new Error(\"type: null contradicts nullable: false\")\n  } else {\n    if (!types.length && schema.nullable !== undefined) {\n      throw new Error('\"nullable\" cannot be used without \"type\"')\n    }\n    if (schema.nullable === true) types.push(\"null\")\n  }\n  return types\n}\n\n// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\nexport function getJSONTypes(ts: unknown | unknown[]): JSONType[] {\n  const types: unknown[] = Array.isArray(ts) ? ts : ts ? [ts] : []\n  if (types.every(isJSONType)) return types\n  throw new Error(\"type must be JSONType or JSONType[]: \" + types.join(\",\"))\n}\n\nexport function coerceAndCheckDataType(it: SchemaObjCxt, types: JSONType[]): boolean {\n  const {gen, data, opts} = it\n  const coerceTo = coerceToTypes(types, opts.coerceTypes)\n  const checkTypes =\n    types.length > 0 &&\n    !(coerceTo.length === 0 && types.length === 1 && schemaHasRulesForType(it, types[0]))\n  if (checkTypes) {\n    const wrongType = checkDataTypes(types, data, opts.strictNumbers, DataType.Wrong)\n    gen.if(wrongType, () => {\n      if (coerceTo.length) coerceData(it, types, coerceTo)\n      else reportTypeError(it)\n    })\n  }\n  return checkTypes\n}\n\nconst COERCIBLE: Set = new Set([\"string\", \"number\", \"integer\", \"boolean\", \"null\"])\nfunction coerceToTypes(types: JSONType[], coerceTypes?: boolean | \"array\"): JSONType[] {\n  return coerceTypes\n    ? types.filter((t) => COERCIBLE.has(t) || (coerceTypes === \"array\" && t === \"array\"))\n    : []\n}\n\nfunction coerceData(it: SchemaObjCxt, types: JSONType[], coerceTo: JSONType[]): void {\n  const {gen, data, opts} = it\n  const dataType = gen.let(\"dataType\", _`typeof ${data}`)\n  const coerced = gen.let(\"coerced\", _`undefined`)\n  if (opts.coerceTypes === \"array\") {\n    gen.if(_`${dataType} == 'object' && Array.isArray(${data}) && ${data}.length == 1`, () =>\n      gen\n        .assign(data, _`${data}[0]`)\n        .assign(dataType, _`typeof ${data}`)\n        .if(checkDataTypes(types, data, opts.strictNumbers), () => gen.assign(coerced, data))\n    )\n  }\n  gen.if(_`${coerced} !== undefined`)\n  for (const t of coerceTo) {\n    if (COERCIBLE.has(t) || (t === \"array\" && opts.coerceTypes === \"array\")) {\n      coerceSpecificType(t)\n    }\n  }\n  gen.else()\n  reportTypeError(it)\n  gen.endIf()\n\n  gen.if(_`${coerced} !== undefined`, () => {\n    gen.assign(data, coerced)\n    assignParentData(it, coerced)\n  })\n\n  function coerceSpecificType(t: string): void {\n    switch (t) {\n      case \"string\":\n        gen\n          .elseIf(_`${dataType} == \"number\" || ${dataType} == \"boolean\"`)\n          .assign(coerced, _`\"\" + ${data}`)\n          .elseIf(_`${data} === null`)\n          .assign(coerced, _`\"\"`)\n        return\n      case \"number\":\n        gen\n          .elseIf(\n            _`${dataType} == \"boolean\" || ${data} === null\n              || (${dataType} == \"string\" && ${data} && ${data} == +${data})`\n          )\n          .assign(coerced, _`+${data}`)\n        return\n      case \"integer\":\n        gen\n          .elseIf(\n            _`${dataType} === \"boolean\" || ${data} === null\n              || (${dataType} === \"string\" && ${data} && ${data} == +${data} && !(${data} % 1))`\n          )\n          .assign(coerced, _`+${data}`)\n        return\n      case \"boolean\":\n        gen\n          .elseIf(_`${data} === \"false\" || ${data} === 0 || ${data} === null`)\n          .assign(coerced, false)\n          .elseIf(_`${data} === \"true\" || ${data} === 1`)\n          .assign(coerced, true)\n        return\n      case \"null\":\n        gen.elseIf(_`${data} === \"\" || ${data} === 0 || ${data} === false`)\n        gen.assign(coerced, null)\n        return\n\n      case \"array\":\n        gen\n          .elseIf(\n            _`${dataType} === \"string\" || ${dataType} === \"number\"\n              || ${dataType} === \"boolean\" || ${data} === null`\n          )\n          .assign(coerced, _`[${data}]`)\n    }\n  }\n}\n\nfunction assignParentData({gen, parentData, parentDataProperty}: SchemaObjCxt, expr: Name): void {\n  // TODO use gen.property\n  gen.if(_`${parentData} !== undefined`, () =>\n    gen.assign(_`${parentData}[${parentDataProperty}]`, expr)\n  )\n}\n\nexport function checkDataType(\n  dataType: JSONType,\n  data: Name,\n  strictNums?: boolean | \"log\",\n  correct = DataType.Correct\n): Code {\n  const EQ = correct === DataType.Correct ? operators.EQ : operators.NEQ\n  let cond: Code\n  switch (dataType) {\n    case \"null\":\n      return _`${data} ${EQ} null`\n    case \"array\":\n      cond = _`Array.isArray(${data})`\n      break\n    case \"object\":\n      cond = _`${data} && typeof ${data} == \"object\" && !Array.isArray(${data})`\n      break\n    case \"integer\":\n      cond = numCond(_`!(${data} % 1) && !isNaN(${data})`)\n      break\n    case \"number\":\n      cond = numCond()\n      break\n    default:\n      return _`typeof ${data} ${EQ} ${dataType}`\n  }\n  return correct === DataType.Correct ? cond : not(cond)\n\n  function numCond(_cond: Code = nil): Code {\n    return and(_`typeof ${data} == \"number\"`, _cond, strictNums ? _`isFinite(${data})` : nil)\n  }\n}\n\nexport function checkDataTypes(\n  dataTypes: JSONType[],\n  data: Name,\n  strictNums?: boolean | \"log\",\n  correct?: DataType\n): Code {\n  if (dataTypes.length === 1) {\n    return checkDataType(dataTypes[0], data, strictNums, correct)\n  }\n  let cond: Code\n  const types = toHash(dataTypes)\n  if (types.array && types.object) {\n    const notObj = _`typeof ${data} != \"object\"`\n    cond = types.null ? notObj : _`!${data} || ${notObj}`\n    delete types.null\n    delete types.array\n    delete types.object\n  } else {\n    cond = nil\n  }\n  if (types.number) delete types.integer\n  for (const t in types) cond = and(cond, checkDataType(t as JSONType, data, strictNums, correct))\n  return cond\n}\n\nexport type TypeError = ErrorObject<\"type\", {type: string}>\n\nconst typeError: KeywordErrorDefinition = {\n  message: ({schema}) => `must be ${schema}`,\n  params: ({schema, schemaValue}) =>\n    typeof schema == \"string\" ? _`{type: ${schema}}` : _`{type: ${schemaValue}}`,\n}\n\nexport function reportTypeError(it: SchemaObjCxt): void {\n  const cxt = getTypeErrorContext(it)\n  reportError(cxt, typeError)\n}\n\nfunction getTypeErrorContext(it: SchemaObjCxt): KeywordErrorCxt {\n  const {gen, data, schema} = it\n  const schemaCode = schemaRefOrVal(it, schema, \"type\")\n  return {\n    gen,\n    keyword: \"type\",\n    data,\n    schema: schema.type,\n    schemaCode,\n    schemaValue: schemaCode,\n    parentSchema: schema,\n    params: {},\n    it,\n  }\n}\n", "import type {SchemaObjCxt} from \"..\"\nimport {_, getProperty, stringify} from \"../codegen\"\nimport {checkStrictMode} from \"../util\"\n\nexport function assignDefaults(it: SchemaObjCxt, ty?: string): void {\n  const {properties, items} = it.schema\n  if (ty === \"object\" && properties) {\n    for (const key in properties) {\n      assignDefault(it, key, properties[key].default)\n    }\n  } else if (ty === \"array\" && Array.isArray(items)) {\n    items.forEach((sch, i: number) => assignDefault(it, i, sch.default))\n  }\n}\n\nfunction assignDefault(it: SchemaObjCxt, prop: string | number, defaultValue: unknown): void {\n  const {gen, compositeRule, data, opts} = it\n  if (defaultValue === undefined) return\n  const childData = _`${data}${getProperty(prop)}`\n  if (compositeRule) {\n    checkStrictMode(it, `default is ignored for: ${childData}`)\n    return\n  }\n\n  let condition = _`${childData} === undefined`\n  if (opts.useDefaults === \"empty\") {\n    condition = _`${condition} || ${childData} === null || ${childData} === \"\"`\n  }\n  // `${childData} === undefined` +\n  // (opts.useDefaults === \"empty\" ? ` || ${childData} === null || ${childData} === \"\"` : \"\")\n  gen.if(condition, _`${childData} = ${stringify(defaultValue)}`)\n}\n", "import type {AnySchema, SchemaMap} from \"../types\"\nimport type {SchemaCxt} from \"../compile\"\nimport type {KeywordCxt} from \"../compile/validate\"\nimport {CodeGen, _, and, or, not, nil, strConcat, getProperty, Code, Name} from \"../compile/codegen\"\nimport {alwaysValidSchema, Type} from \"../compile/util\"\nimport N from \"../compile/names\"\nimport {useFunc} from \"../compile/util\"\nexport function checkReportMissingProp(cxt: KeywordCxt, prop: string): void {\n  const {gen, data, it} = cxt\n  gen.if(noPropertyInData(gen, data, prop, it.opts.ownProperties), () => {\n    cxt.setParams({missingProperty: _`${prop}`}, true)\n    cxt.error()\n  })\n}\n\nexport function checkMissingProp(\n  {gen, data, it: {opts}}: KeywordCxt,\n  properties: string[],\n  missing: Name\n): Code {\n  return or(\n    ...properties.map((prop) =>\n      and(noPropertyInData(gen, data, prop, opts.ownProperties), _`${missing} = ${prop}`)\n    )\n  )\n}\n\nexport function reportMissingProp(cxt: KeywordCxt, missing: Name): void {\n  cxt.setParams({missingProperty: missing}, true)\n  cxt.error()\n}\n\nexport function hasPropFunc(gen: CodeGen): Name {\n  return gen.scopeValue(\"func\", {\n    // eslint-disable-next-line @typescript-eslint/unbound-method\n    ref: Object.prototype.hasOwnProperty,\n    code: _`Object.prototype.hasOwnProperty`,\n  })\n}\n\nexport function isOwnProperty(gen: CodeGen, data: Name, property: Name | string): Code {\n  return _`${hasPropFunc(gen)}.call(${data}, ${property})`\n}\n\nexport function propertyInData(\n  gen: CodeGen,\n  data: Name,\n  property: Name | string,\n  ownProperties?: boolean\n): Code {\n  const cond = _`${data}${getProperty(property)} !== undefined`\n  return ownProperties ? _`${cond} && ${isOwnProperty(gen, data, property)}` : cond\n}\n\nexport function noPropertyInData(\n  gen: CodeGen,\n  data: Name,\n  property: Name | string,\n  ownProperties?: boolean\n): Code {\n  const cond = _`${data}${getProperty(property)} === undefined`\n  return ownProperties ? or(cond, not(isOwnProperty(gen, data, property))) : cond\n}\n\nexport function allSchemaProperties(schemaMap?: SchemaMap): string[] {\n  return schemaMap ? Object.keys(schemaMap).filter((p) => p !== \"__proto__\") : []\n}\n\nexport function schemaProperties(it: SchemaCxt, schemaMap: SchemaMap): string[] {\n  return allSchemaProperties(schemaMap).filter(\n    (p) => !alwaysValidSchema(it, schemaMap[p] as AnySchema)\n  )\n}\n\nexport function callValidateCode(\n  {schemaCode, data, it: {gen, topSchemaRef, schemaPath, errorPath}, it}: KeywordCxt,\n  func: Code,\n  context: Code,\n  passSchema?: boolean\n): Code {\n  const dataAndSchema = passSchema ? _`${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data\n  const valCxt: [Name, Code | number][] = [\n    [N.instancePath, strConcat(N.instancePath, errorPath)],\n    [N.parentData, it.parentData],\n    [N.parentDataProperty, it.parentDataProperty],\n    [N.rootData, N.rootData],\n  ]\n  if (it.opts.dynamicRef) valCxt.push([N.dynamicAnchors, N.dynamicAnchors])\n  const args = _`${dataAndSchema}, ${gen.object(...valCxt)}`\n  return context !== nil ? _`${func}.call(${context}, ${args})` : _`${func}(${args})`\n}\n\nconst newRegExp = _`new RegExp`\n\nexport function usePattern({gen, it: {opts}}: KeywordCxt, pattern: string): Name {\n  const u = opts.unicodeRegExp ? \"u\" : \"\"\n  const {regExp} = opts.code\n  const rx = regExp(pattern, u)\n\n  return gen.scopeValue(\"pattern\", {\n    key: rx.toString(),\n    ref: rx,\n    code: _`${regExp.code === \"new RegExp\" ? newRegExp : useFunc(gen, regExp)}(${pattern}, ${u})`,\n  })\n}\n\nexport function validateArray(cxt: KeywordCxt): Name {\n  const {gen, data, keyword, it} = cxt\n  const valid = gen.name(\"valid\")\n  if (it.allErrors) {\n    const validArr = gen.let(\"valid\", true)\n    validateItems(() => gen.assign(validArr, false))\n    return validArr\n  }\n  gen.var(valid, true)\n  validateItems(() => gen.break())\n  return valid\n\n  function validateItems(notValid: () => void): void {\n    const len = gen.const(\"len\", _`${data}.length`)\n    gen.forRange(\"i\", 0, len, (i) => {\n      cxt.subschema(\n        {\n          keyword,\n          dataProp: i,\n          dataPropType: Type.Num,\n        },\n        valid\n      )\n      gen.if(not(valid), notValid)\n    })\n  }\n}\n\nexport function validateUnion(cxt: KeywordCxt): void {\n  const {gen, schema, keyword, it} = cxt\n  /* istanbul ignore if */\n  if (!Array.isArray(schema)) throw new Error(\"ajv implementation error\")\n  const alwaysValid = schema.some((sch: AnySchema) => alwaysValidSchema(it, sch))\n  if (alwaysValid && !it.opts.unevaluated) return\n\n  const valid = gen.let(\"valid\", false)\n  const schValid = gen.name(\"_valid\")\n\n  gen.block(() =>\n    schema.forEach((_sch: AnySchema, i: number) => {\n      const schCxt = cxt.subschema(\n        {\n          keyword,\n          schemaProp: i,\n          compositeRule: true,\n        },\n        schValid\n      )\n      gen.assign(valid, _`${valid} || ${schValid}`)\n      const merged = cxt.mergeValidEvaluated(schCxt, schValid)\n      // can short-circuit if `unevaluatedProperties/Items` not supported (opts.unevaluated !== true)\n      // or if all properties and items were evaluated (it.props === true && it.items === true)\n      if (!merged) gen.if(not(valid))\n    })\n  )\n\n  cxt.result(\n    valid,\n    () => cxt.reset(),\n    () => cxt.error(true)\n  )\n}\n", "import type {KeywordCxt} from \".\"\nimport type {\n  AnySchema,\n  SchemaValidateFunction,\n  AnyValidateFunction,\n  AddedKeywordDefinition,\n  MacroKeywordDefinition,\n  FuncKeywordDefinition,\n} from \"../../types\"\nimport type {SchemaObjCxt} from \"..\"\nimport {_, nil, not, stringify, Code, Name, CodeGen} from \"../codegen\"\nimport N from \"../names\"\nimport type {JSONType} from \"../rules\"\nimport {callValidateCode} from \"../../vocabularies/code\"\nimport {extendErrors} from \"../errors\"\n\ntype KeywordCompilationResult = AnySchema | SchemaValidateFunction | AnyValidateFunction\n\nexport function macroKeywordCode(cxt: KeywordCxt, def: MacroKeywordDefinition): void {\n  const {gen, keyword, schema, parentSchema, it} = cxt\n  const macroSchema = def.macro.call(it.self, schema, parentSchema, it)\n  const schemaRef = useKeyword(gen, keyword, macroSchema)\n  if (it.opts.validateSchema !== false) it.self.validateSchema(macroSchema, true)\n\n  const valid = gen.name(\"valid\")\n  cxt.subschema(\n    {\n      schema: macroSchema,\n      schemaPath: nil,\n      errSchemaPath: `${it.errSchemaPath}/${keyword}`,\n      topSchemaRef: schemaRef,\n      compositeRule: true,\n    },\n    valid\n  )\n  cxt.pass(valid, () => cxt.error(true))\n}\n\nexport function funcKeywordCode(cxt: KeywordCxt, def: FuncKeywordDefinition): void {\n  const {gen, keyword, schema, parentSchema, $data, it} = cxt\n  checkAsyncKeyword(it, def)\n  const validate =\n    !$data && def.compile ? def.compile.call(it.self, schema, parentSchema, it) : def.validate\n  const validateRef = useKeyword(gen, keyword, validate)\n  const valid = gen.let(\"valid\")\n  cxt.block$data(valid, validateKeyword)\n  cxt.ok(def.valid ?? valid)\n\n  function validateKeyword(): void {\n    if (def.errors === false) {\n      assignValid()\n      if (def.modifying) modifyData(cxt)\n      reportErrs(() => cxt.error())\n    } else {\n      const ruleErrs = def.async ? validateAsync() : validateSync()\n      if (def.modifying) modifyData(cxt)\n      reportErrs(() => addErrs(cxt, ruleErrs))\n    }\n  }\n\n  function validateAsync(): Name {\n    const ruleErrs = gen.let(\"ruleErrs\", null)\n    gen.try(\n      () => assignValid(_`await `),\n      (e) =>\n        gen.assign(valid, false).if(\n          _`${e} instanceof ${it.ValidationError as Name}`,\n          () => gen.assign(ruleErrs, _`${e}.errors`),\n          () => gen.throw(e)\n        )\n    )\n    return ruleErrs\n  }\n\n  function validateSync(): Code {\n    const validateErrs = _`${validateRef}.errors`\n    gen.assign(validateErrs, null)\n    assignValid(nil)\n    return validateErrs\n  }\n\n  function assignValid(_await: Code = def.async ? _`await ` : nil): void {\n    const passCxt = it.opts.passContext ? N.this : N.self\n    const passSchema = !((\"compile\" in def && !$data) || def.schema === false)\n    gen.assign(\n      valid,\n      _`${_await}${callValidateCode(cxt, validateRef, passCxt, passSchema)}`,\n      def.modifying\n    )\n  }\n\n  function reportErrs(errors: () => void): void {\n    gen.if(not(def.valid ?? valid), errors)\n  }\n}\n\nfunction modifyData(cxt: KeywordCxt): void {\n  const {gen, data, it} = cxt\n  gen.if(it.parentData, () => gen.assign(data, _`${it.parentData}[${it.parentDataProperty}]`))\n}\n\nfunction addErrs(cxt: KeywordCxt, errs: Code): void {\n  const {gen} = cxt\n  gen.if(\n    _`Array.isArray(${errs})`,\n    () => {\n      gen\n        .assign(N.vErrors, _`${N.vErrors} === null ? ${errs} : ${N.vErrors}.concat(${errs})`)\n        .assign(N.errors, _`${N.vErrors}.length`)\n      extendErrors(cxt)\n    },\n    () => cxt.error()\n  )\n}\n\nfunction checkAsyncKeyword({schemaEnv}: SchemaObjCxt, def: FuncKeywordDefinition): void {\n  if (def.async && !schemaEnv.$async) throw new Error(\"async keyword in sync schema\")\n}\n\nfunction useKeyword(gen: CodeGen, keyword: string, result?: KeywordCompilationResult): Name {\n  if (result === undefined) throw new Error(`keyword \"${keyword}\" failed to compile`)\n  return gen.scopeValue(\n    \"keyword\",\n    typeof result == \"function\" ? {ref: result} : {ref: result, code: stringify(result)}\n  )\n}\n\nexport function validSchemaType(\n  schema: unknown,\n  schemaType: JSONType[],\n  allowUndefined = false\n): boolean {\n  // TODO add tests\n  return (\n    !schemaType.length ||\n    schemaType.some((st) =>\n      st === \"array\"\n        ? Array.isArray(schema)\n        : st === \"object\"\n        ? schema && typeof schema == \"object\" && !Array.isArray(schema)\n        : typeof schema == st || (allowUndefined && typeof schema == \"undefined\")\n    )\n  )\n}\n\nexport function validateKeywordUsage(\n  {schema, opts, self, errSchemaPath}: SchemaObjCxt,\n  def: AddedKeywordDefinition,\n  keyword: string\n): void {\n  /* istanbul ignore if */\n  if (Array.isArray(def.keyword) ? !def.keyword.includes(keyword) : def.keyword !== keyword) {\n    throw new Error(\"ajv implementation error\")\n  }\n\n  const deps = def.dependencies\n  if (deps?.some((kwd) => !Object.prototype.hasOwnProperty.call(schema, kwd))) {\n    throw new Error(`parent schema must have dependencies of ${keyword}: ${deps.join(\",\")}`)\n  }\n\n  if (def.validateSchema) {\n    const valid = def.validateSchema(schema[keyword])\n    if (!valid) {\n      const msg =\n        `keyword \"${keyword}\" value is invalid at path \"${errSchemaPath}\": ` +\n        self.errorsText(def.validateSchema.errors)\n      if (opts.validateSchema === \"log\") self.logger.error(msg)\n      else throw new Error(msg)\n    }\n  }\n}\n", "import type {AnySchema} from \"../../types\"\nimport type {SchemaObjCxt} from \"..\"\nimport {_, str, getProperty, Code, Name} from \"../codegen\"\nimport {escapeFragment, getErrorPath, Type} from \"../util\"\nimport type {JSONType} from \"../rules\"\n\nexport interface SubschemaContext {\n  // TODO use Optional? align with SchemCxt property types\n  schema: AnySchema\n  schemaPath: Code\n  errSchemaPath: string\n  topSchemaRef?: Code\n  errorPath?: Code\n  dataLevel?: number\n  dataTypes?: JSONType[]\n  data?: Name\n  parentData?: Name\n  parentDataProperty?: Code | number\n  dataNames?: Name[]\n  dataPathArr?: (Code | number)[]\n  propertyName?: Name\n  jtdDiscriminator?: string\n  jtdMetadata?: boolean\n  compositeRule?: true\n  createErrors?: boolean\n  allErrors?: boolean\n}\n\nexport type SubschemaArgs = Partial<{\n  keyword: string\n  schemaProp: string | number\n  schema: AnySchema\n  schemaPath: Code\n  errSchemaPath: string\n  topSchemaRef: Code\n  data: Name | Code\n  dataProp: Code | string | number\n  dataTypes: JSONType[]\n  definedProperties: Set\n  propertyName: Name\n  dataPropType: Type\n  jtdDiscriminator: string\n  jtdMetadata: boolean\n  compositeRule: true\n  createErrors: boolean\n  allErrors: boolean\n}>\n\nexport function getSubschema(\n  it: SchemaObjCxt,\n  {keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef}: SubschemaArgs\n): SubschemaContext {\n  if (keyword !== undefined && schema !== undefined) {\n    throw new Error('both \"keyword\" and \"schema\" passed, only one allowed')\n  }\n\n  if (keyword !== undefined) {\n    const sch = it.schema[keyword]\n    return schemaProp === undefined\n      ? {\n          schema: sch,\n          schemaPath: _`${it.schemaPath}${getProperty(keyword)}`,\n          errSchemaPath: `${it.errSchemaPath}/${keyword}`,\n        }\n      : {\n          schema: sch[schemaProp],\n          schemaPath: _`${it.schemaPath}${getProperty(keyword)}${getProperty(schemaProp)}`,\n          errSchemaPath: `${it.errSchemaPath}/${keyword}/${escapeFragment(schemaProp)}`,\n        }\n  }\n\n  if (schema !== undefined) {\n    if (schemaPath === undefined || errSchemaPath === undefined || topSchemaRef === undefined) {\n      throw new Error('\"schemaPath\", \"errSchemaPath\" and \"topSchemaRef\" are required with \"schema\"')\n    }\n    return {\n      schema,\n      schemaPath,\n      topSchemaRef,\n      errSchemaPath,\n    }\n  }\n\n  throw new Error('either \"keyword\" or \"schema\" must be passed')\n}\n\nexport function extendSubschemaData(\n  subschema: SubschemaContext,\n  it: SchemaObjCxt,\n  {dataProp, dataPropType: dpType, data, dataTypes, propertyName}: SubschemaArgs\n): void {\n  if (data !== undefined && dataProp !== undefined) {\n    throw new Error('both \"data\" and \"dataProp\" passed, only one allowed')\n  }\n\n  const {gen} = it\n\n  if (dataProp !== undefined) {\n    const {errorPath, dataPathArr, opts} = it\n    const nextData = gen.let(\"data\", _`${it.data}${getProperty(dataProp)}`, true)\n    dataContextProps(nextData)\n    subschema.errorPath = str`${errorPath}${getErrorPath(dataProp, dpType, opts.jsPropertySyntax)}`\n    subschema.parentDataProperty = _`${dataProp}`\n    subschema.dataPathArr = [...dataPathArr, subschema.parentDataProperty]\n  }\n\n  if (data !== undefined) {\n    const nextData = data instanceof Name ? data : gen.let(\"data\", data, true) // replaceable if used once?\n    dataContextProps(nextData)\n    if (propertyName !== undefined) subschema.propertyName = propertyName\n    // TODO something is possibly wrong here with not changing parentDataProperty and not appending dataPathArr\n  }\n\n  if (dataTypes) subschema.dataTypes = dataTypes\n\n  function dataContextProps(_nextData: Name): void {\n    subschema.data = _nextData\n    subschema.dataLevel = it.dataLevel + 1\n    subschema.dataTypes = []\n    it.definedProperties = new Set()\n    subschema.parentData = it.data\n    subschema.dataNames = [...it.dataNames, _nextData]\n  }\n}\n\nexport function extendSubschemaMode(\n  subschema: SubschemaContext,\n  {jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors}: SubschemaArgs\n): void {\n  if (compositeRule !== undefined) subschema.compositeRule = compositeRule\n  if (createErrors !== undefined) subschema.createErrors = createErrors\n  if (allErrors !== undefined) subschema.allErrors = allErrors\n  subschema.jtdDiscriminator = jtdDiscriminator // not inherited\n  subschema.jtdMetadata = jtdMetadata // not inherited\n}\n", "'use strict';\n\n// do not edit .js files directly - edit src/index.jst\n\n\n\nmodule.exports = function equal(a, b) {\n  if (a === b) return true;\n\n  if (a && b && typeof a == 'object' && typeof b == 'object') {\n    if (a.constructor !== b.constructor) return false;\n\n    var length, i, keys;\n    if (Array.isArray(a)) {\n      length = a.length;\n      if (length != b.length) return false;\n      for (i = length; i-- !== 0;)\n        if (!equal(a[i], b[i])) return false;\n      return true;\n    }\n\n\n\n    if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n    if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();\n    if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();\n\n    keys = Object.keys(a);\n    length = keys.length;\n    if (length !== Object.keys(b).length) return false;\n\n    for (i = length; i-- !== 0;)\n      if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n\n    for (i = length; i-- !== 0;) {\n      var key = keys[i];\n\n      if (!equal(a[key], b[key])) return false;\n    }\n\n    return true;\n  }\n\n  // true if both NaN, false otherwise\n  return a!==a && b!==b;\n};\n", "'use strict';\n\nvar traverse = module.exports = function (schema, opts, cb) {\n  // Legacy support for v0.3.1 and earlier.\n  if (typeof opts == 'function') {\n    cb = opts;\n    opts = {};\n  }\n\n  cb = opts.cb || cb;\n  var pre = (typeof cb == 'function') ? cb : cb.pre || function() {};\n  var post = cb.post || function() {};\n\n  _traverse(opts, pre, post, schema, '', schema);\n};\n\n\ntraverse.keywords = {\n  additionalItems: true,\n  items: true,\n  contains: true,\n  additionalProperties: true,\n  propertyNames: true,\n  not: true,\n  if: true,\n  then: true,\n  else: true\n};\n\ntraverse.arrayKeywords = {\n  items: true,\n  allOf: true,\n  anyOf: true,\n  oneOf: true\n};\n\ntraverse.propsKeywords = {\n  $defs: true,\n  definitions: true,\n  properties: true,\n  patternProperties: true,\n  dependencies: true\n};\n\ntraverse.skipKeywords = {\n  default: true,\n  enum: true,\n  const: true,\n  required: true,\n  maximum: true,\n  minimum: true,\n  exclusiveMaximum: true,\n  exclusiveMinimum: true,\n  multipleOf: true,\n  maxLength: true,\n  minLength: true,\n  pattern: true,\n  format: true,\n  maxItems: true,\n  minItems: true,\n  uniqueItems: true,\n  maxProperties: true,\n  minProperties: true\n};\n\n\nfunction _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {\n  if (schema && typeof schema == 'object' && !Array.isArray(schema)) {\n    pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);\n    for (var key in schema) {\n      var sch = schema[key];\n      if (Array.isArray(sch)) {\n        if (key in traverse.arrayKeywords) {\n          for (var i=0; i (count += countKeys(sch)))\n    }\n    if (count === Infinity) return Infinity\n  }\n  return count\n}\n\nexport function getFullPath(resolver: UriResolver, id = \"\", normalize?: boolean): string {\n  if (normalize !== false) id = normalizeId(id)\n  const p = resolver.parse(id)\n  return _getFullPath(resolver, p)\n}\n\nexport function _getFullPath(resolver: UriResolver, p: URIComponent): string {\n  const serialized = resolver.serialize(p)\n  return serialized.split(\"#\")[0] + \"#\"\n}\n\nconst TRAILING_SLASH_HASH = /#\\/?$/\nexport function normalizeId(id: string | undefined): string {\n  return id ? id.replace(TRAILING_SLASH_HASH, \"\") : \"\"\n}\n\nexport function resolveUrl(resolver: UriResolver, baseId: string, id: string): string {\n  id = normalizeId(id)\n  return resolver.resolve(baseId, id)\n}\n\nconst ANCHOR = /^[a-z_][-a-z0-9._]*$/i\n\nexport function getSchemaRefs(this: Ajv, schema: AnySchema, baseId: string): LocalRefs {\n  if (typeof schema == \"boolean\") return {}\n  const {schemaId, uriResolver} = this.opts\n  const schId = normalizeId(schema[schemaId] || baseId)\n  const baseIds: {[JsonPtr in string]?: string} = {\"\": schId}\n  const pathPrefix = getFullPath(uriResolver, schId, false)\n  const localRefs: LocalRefs = {}\n  const schemaRefs: Set = new Set()\n\n  traverse(schema, {allKeys: true}, (sch, jsonPtr, _, parentJsonPtr) => {\n    if (parentJsonPtr === undefined) return\n    const fullPath = pathPrefix + jsonPtr\n    let innerBaseId = baseIds[parentJsonPtr]\n    if (typeof sch[schemaId] == \"string\") innerBaseId = addRef.call(this, sch[schemaId])\n    addAnchor.call(this, sch.$anchor)\n    addAnchor.call(this, sch.$dynamicAnchor)\n    baseIds[jsonPtr] = innerBaseId\n\n    function addRef(this: Ajv, ref: string): string {\n      // eslint-disable-next-line @typescript-eslint/unbound-method\n      const _resolve = this.opts.uriResolver.resolve\n      ref = normalizeId(innerBaseId ? _resolve(innerBaseId, ref) : ref)\n      if (schemaRefs.has(ref)) throw ambiguos(ref)\n      schemaRefs.add(ref)\n      let schOrRef = this.refs[ref]\n      if (typeof schOrRef == \"string\") schOrRef = this.refs[schOrRef]\n      if (typeof schOrRef == \"object\") {\n        checkAmbiguosRef(sch, schOrRef.schema, ref)\n      } else if (ref !== normalizeId(fullPath)) {\n        if (ref[0] === \"#\") {\n          checkAmbiguosRef(sch, localRefs[ref], ref)\n          localRefs[ref] = sch\n        } else {\n          this.refs[ref] = fullPath\n        }\n      }\n      return ref\n    }\n\n    function addAnchor(this: Ajv, anchor: unknown): void {\n      if (typeof anchor == \"string\") {\n        if (!ANCHOR.test(anchor)) throw new Error(`invalid anchor \"${anchor}\"`)\n        addRef.call(this, `#${anchor}`)\n      }\n    }\n  })\n\n  return localRefs\n\n  function checkAmbiguosRef(sch1: AnySchema, sch2: AnySchema | undefined, ref: string): void {\n    if (sch2 !== undefined && !equal(sch1, sch2)) throw ambiguos(ref)\n  }\n\n  function ambiguos(ref: string): Error {\n    return new Error(`reference \"${ref}\" resolves to more than one schema`)\n  }\n}\n", "import type {\n  AddedKeywordDefinition,\n  AnySchema,\n  AnySchemaObject,\n  KeywordErrorCxt,\n  KeywordCxtParams,\n} from \"../../types\"\nimport type {SchemaCxt, SchemaObjCxt} from \"..\"\nimport type {InstanceOptions} from \"../../core\"\nimport {boolOrEmptySchema, topBoolOrEmptySchema} from \"./boolSchema\"\nimport {coerceAndCheckDataType, getSchemaTypes} from \"./dataType\"\nimport {shouldUseGroup, shouldUseRule} from \"./applicability\"\nimport {checkDataType, checkDataTypes, reportTypeError, DataType} from \"./dataType\"\nimport {assignDefaults} from \"./defaults\"\nimport {funcKeywordCode, macroKeywordCode, validateKeywordUsage, validSchemaType} from \"./keyword\"\nimport {getSubschema, extendSubschemaData, SubschemaArgs, extendSubschemaMode} from \"./subschema\"\nimport {_, nil, str, or, not, getProperty, Block, Code, Name, CodeGen} from \"../codegen\"\nimport N from \"../names\"\nimport {resolveUrl} from \"../resolve\"\nimport {\n  schemaRefOrVal,\n  schemaHasRulesButRef,\n  checkUnknownRules,\n  checkStrictMode,\n  unescapeJsonPointer,\n  mergeEvaluated,\n} from \"../util\"\nimport type {JSONType, Rule, RuleGroup} from \"../rules\"\nimport {\n  ErrorPaths,\n  reportError,\n  reportExtraError,\n  resetErrorsCount,\n  keyword$DataError,\n} from \"../errors\"\n\n// schema compilation - generates validation function, subschemaCode (below) is used for subschemas\nexport function validateFunctionCode(it: SchemaCxt): void {\n  if (isSchemaObj(it)) {\n    checkKeywords(it)\n    if (schemaCxtHasRules(it)) {\n      topSchemaObjCode(it)\n      return\n    }\n  }\n  validateFunction(it, () => topBoolOrEmptySchema(it))\n}\n\nfunction validateFunction(\n  {gen, validateName, schema, schemaEnv, opts}: SchemaCxt,\n  body: Block\n): void {\n  if (opts.code.es5) {\n    gen.func(validateName, _`${N.data}, ${N.valCxt}`, schemaEnv.$async, () => {\n      gen.code(_`\"use strict\"; ${funcSourceUrl(schema, opts)}`)\n      destructureValCxtES5(gen, opts)\n      gen.code(body)\n    })\n  } else {\n    gen.func(validateName, _`${N.data}, ${destructureValCxt(opts)}`, schemaEnv.$async, () =>\n      gen.code(funcSourceUrl(schema, opts)).code(body)\n    )\n  }\n}\n\nfunction destructureValCxt(opts: InstanceOptions): Code {\n  return _`{${N.instancePath}=\"\", ${N.parentData}, ${N.parentDataProperty}, ${N.rootData}=${\n    N.data\n  }${opts.dynamicRef ? _`, ${N.dynamicAnchors}={}` : nil}}={}`\n}\n\nfunction destructureValCxtES5(gen: CodeGen, opts: InstanceOptions): void {\n  gen.if(\n    N.valCxt,\n    () => {\n      gen.var(N.instancePath, _`${N.valCxt}.${N.instancePath}`)\n      gen.var(N.parentData, _`${N.valCxt}.${N.parentData}`)\n      gen.var(N.parentDataProperty, _`${N.valCxt}.${N.parentDataProperty}`)\n      gen.var(N.rootData, _`${N.valCxt}.${N.rootData}`)\n      if (opts.dynamicRef) gen.var(N.dynamicAnchors, _`${N.valCxt}.${N.dynamicAnchors}`)\n    },\n    () => {\n      gen.var(N.instancePath, _`\"\"`)\n      gen.var(N.parentData, _`undefined`)\n      gen.var(N.parentDataProperty, _`undefined`)\n      gen.var(N.rootData, N.data)\n      if (opts.dynamicRef) gen.var(N.dynamicAnchors, _`{}`)\n    }\n  )\n}\n\nfunction topSchemaObjCode(it: SchemaObjCxt): void {\n  const {schema, opts, gen} = it\n  validateFunction(it, () => {\n    if (opts.$comment && schema.$comment) commentKeyword(it)\n    checkNoDefault(it)\n    gen.let(N.vErrors, null)\n    gen.let(N.errors, 0)\n    if (opts.unevaluated) resetEvaluated(it)\n    typeAndKeywords(it)\n    returnResults(it)\n  })\n  return\n}\n\nfunction resetEvaluated(it: SchemaObjCxt): void {\n  // TODO maybe some hook to execute it in the end to check whether props/items are Name, as in assignEvaluated\n  const {gen, validateName} = it\n  it.evaluated = gen.const(\"evaluated\", _`${validateName}.evaluated`)\n  gen.if(_`${it.evaluated}.dynamicProps`, () => gen.assign(_`${it.evaluated}.props`, _`undefined`))\n  gen.if(_`${it.evaluated}.dynamicItems`, () => gen.assign(_`${it.evaluated}.items`, _`undefined`))\n}\n\nfunction funcSourceUrl(schema: AnySchema, opts: InstanceOptions): Code {\n  const schId = typeof schema == \"object\" && schema[opts.schemaId]\n  return schId && (opts.code.source || opts.code.process) ? _`/*# sourceURL=${schId} */` : nil\n}\n\n// schema compilation - this function is used recursively to generate code for sub-schemas\nfunction subschemaCode(it: SchemaCxt, valid: Name): void {\n  if (isSchemaObj(it)) {\n    checkKeywords(it)\n    if (schemaCxtHasRules(it)) {\n      subSchemaObjCode(it, valid)\n      return\n    }\n  }\n  boolOrEmptySchema(it, valid)\n}\n\nfunction schemaCxtHasRules({schema, self}: SchemaCxt): boolean {\n  if (typeof schema == \"boolean\") return !schema\n  for (const key in schema) if (self.RULES.all[key]) return true\n  return false\n}\n\nfunction isSchemaObj(it: SchemaCxt): it is SchemaObjCxt {\n  return typeof it.schema != \"boolean\"\n}\n\nfunction subSchemaObjCode(it: SchemaObjCxt, valid: Name): void {\n  const {schema, gen, opts} = it\n  if (opts.$comment && schema.$comment) commentKeyword(it)\n  updateContext(it)\n  checkAsyncSchema(it)\n  const errsCount = gen.const(\"_errs\", N.errors)\n  typeAndKeywords(it, errsCount)\n  // TODO var\n  gen.var(valid, _`${errsCount} === ${N.errors}`)\n}\n\nfunction checkKeywords(it: SchemaObjCxt): void {\n  checkUnknownRules(it)\n  checkRefsAndKeywords(it)\n}\n\nfunction typeAndKeywords(it: SchemaObjCxt, errsCount?: Name): void {\n  if (it.opts.jtd) return schemaKeywords(it, [], false, errsCount)\n  const types = getSchemaTypes(it.schema)\n  const checkedTypes = coerceAndCheckDataType(it, types)\n  schemaKeywords(it, types, !checkedTypes, errsCount)\n}\n\nfunction checkRefsAndKeywords(it: SchemaObjCxt): void {\n  const {schema, errSchemaPath, opts, self} = it\n  if (schema.$ref && opts.ignoreKeywordsWithRef && schemaHasRulesButRef(schema, self.RULES)) {\n    self.logger.warn(`$ref: keywords ignored in schema at path \"${errSchemaPath}\"`)\n  }\n}\n\nfunction checkNoDefault(it: SchemaObjCxt): void {\n  const {schema, opts} = it\n  if (schema.default !== undefined && opts.useDefaults && opts.strictSchema) {\n    checkStrictMode(it, \"default is ignored in the schema root\")\n  }\n}\n\nfunction updateContext(it: SchemaObjCxt): void {\n  const schId = it.schema[it.opts.schemaId]\n  if (schId) it.baseId = resolveUrl(it.opts.uriResolver, it.baseId, schId)\n}\n\nfunction checkAsyncSchema(it: SchemaObjCxt): void {\n  if (it.schema.$async && !it.schemaEnv.$async) throw new Error(\"async schema in sync schema\")\n}\n\nfunction commentKeyword({gen, schemaEnv, schema, errSchemaPath, opts}: SchemaObjCxt): void {\n  const msg = schema.$comment\n  if (opts.$comment === true) {\n    gen.code(_`${N.self}.logger.log(${msg})`)\n  } else if (typeof opts.$comment == \"function\") {\n    const schemaPath = str`${errSchemaPath}/$comment`\n    const rootName = gen.scopeValue(\"root\", {ref: schemaEnv.root})\n    gen.code(_`${N.self}.opts.$comment(${msg}, ${schemaPath}, ${rootName}.schema)`)\n  }\n}\n\nfunction returnResults(it: SchemaCxt): void {\n  const {gen, schemaEnv, validateName, ValidationError, opts} = it\n  if (schemaEnv.$async) {\n    // TODO assign unevaluated\n    gen.if(\n      _`${N.errors} === 0`,\n      () => gen.return(N.data),\n      () => gen.throw(_`new ${ValidationError as Name}(${N.vErrors})`)\n    )\n  } else {\n    gen.assign(_`${validateName}.errors`, N.vErrors)\n    if (opts.unevaluated) assignEvaluated(it)\n    gen.return(_`${N.errors} === 0`)\n  }\n}\n\nfunction assignEvaluated({gen, evaluated, props, items}: SchemaCxt): void {\n  if (props instanceof Name) gen.assign(_`${evaluated}.props`, props)\n  if (items instanceof Name) gen.assign(_`${evaluated}.items`, items)\n}\n\nfunction schemaKeywords(\n  it: SchemaObjCxt,\n  types: JSONType[],\n  typeErrors: boolean,\n  errsCount?: Name\n): void {\n  const {gen, schema, data, allErrors, opts, self} = it\n  const {RULES} = self\n  if (schema.$ref && (opts.ignoreKeywordsWithRef || !schemaHasRulesButRef(schema, RULES))) {\n    gen.block(() => keywordCode(it, \"$ref\", (RULES.all.$ref as Rule).definition)) // TODO typecast\n    return\n  }\n  if (!opts.jtd) checkStrictTypes(it, types)\n  gen.block(() => {\n    for (const group of RULES.rules) groupKeywords(group)\n    groupKeywords(RULES.post)\n  })\n\n  function groupKeywords(group: RuleGroup): void {\n    if (!shouldUseGroup(schema, group)) return\n    if (group.type) {\n      gen.if(checkDataType(group.type, data, opts.strictNumbers))\n      iterateKeywords(it, group)\n      if (types.length === 1 && types[0] === group.type && typeErrors) {\n        gen.else()\n        reportTypeError(it)\n      }\n      gen.endIf()\n    } else {\n      iterateKeywords(it, group)\n    }\n    // TODO make it \"ok\" call?\n    if (!allErrors) gen.if(_`${N.errors} === ${errsCount || 0}`)\n  }\n}\n\nfunction iterateKeywords(it: SchemaObjCxt, group: RuleGroup): void {\n  const {\n    gen,\n    schema,\n    opts: {useDefaults},\n  } = it\n  if (useDefaults) assignDefaults(it, group.type)\n  gen.block(() => {\n    for (const rule of group.rules) {\n      if (shouldUseRule(schema, rule)) {\n        keywordCode(it, rule.keyword, rule.definition, group.type)\n      }\n    }\n  })\n}\n\nfunction checkStrictTypes(it: SchemaObjCxt, types: JSONType[]): void {\n  if (it.schemaEnv.meta || !it.opts.strictTypes) return\n  checkContextTypes(it, types)\n  if (!it.opts.allowUnionTypes) checkMultipleTypes(it, types)\n  checkKeywordTypes(it, it.dataTypes)\n}\n\nfunction checkContextTypes(it: SchemaObjCxt, types: JSONType[]): void {\n  if (!types.length) return\n  if (!it.dataTypes.length) {\n    it.dataTypes = types\n    return\n  }\n  types.forEach((t) => {\n    if (!includesType(it.dataTypes, t)) {\n      strictTypesError(it, `type \"${t}\" not allowed by context \"${it.dataTypes.join(\",\")}\"`)\n    }\n  })\n  narrowSchemaTypes(it, types)\n}\n\nfunction checkMultipleTypes(it: SchemaObjCxt, ts: JSONType[]): void {\n  if (ts.length > 1 && !(ts.length === 2 && ts.includes(\"null\"))) {\n    strictTypesError(it, \"use allowUnionTypes to allow union type keyword\")\n  }\n}\n\nfunction checkKeywordTypes(it: SchemaObjCxt, ts: JSONType[]): void {\n  const rules = it.self.RULES.all\n  for (const keyword in rules) {\n    const rule = rules[keyword]\n    if (typeof rule == \"object\" && shouldUseRule(it.schema, rule)) {\n      const {type} = rule.definition\n      if (type.length && !type.some((t) => hasApplicableType(ts, t))) {\n        strictTypesError(it, `missing type \"${type.join(\",\")}\" for keyword \"${keyword}\"`)\n      }\n    }\n  }\n}\n\nfunction hasApplicableType(schTs: JSONType[], kwdT: JSONType): boolean {\n  return schTs.includes(kwdT) || (kwdT === \"number\" && schTs.includes(\"integer\"))\n}\n\nfunction includesType(ts: JSONType[], t: JSONType): boolean {\n  return ts.includes(t) || (t === \"integer\" && ts.includes(\"number\"))\n}\n\nfunction narrowSchemaTypes(it: SchemaObjCxt, withTypes: JSONType[]): void {\n  const ts: JSONType[] = []\n  for (const t of it.dataTypes) {\n    if (includesType(withTypes, t)) ts.push(t)\n    else if (withTypes.includes(\"integer\") && t === \"number\") ts.push(\"integer\")\n  }\n  it.dataTypes = ts\n}\n\nfunction strictTypesError(it: SchemaObjCxt, msg: string): void {\n  const schemaPath = it.schemaEnv.baseId + it.errSchemaPath\n  msg += ` at \"${schemaPath}\" (strictTypes)`\n  checkStrictMode(it, msg, it.opts.strictTypes)\n}\n\nexport class KeywordCxt implements KeywordErrorCxt {\n  readonly gen: CodeGen\n  readonly allErrors?: boolean\n  readonly keyword: string\n  readonly data: Name // Name referencing the current level of the data instance\n  readonly $data?: string | false\n  schema: any // keyword value in the schema\n  readonly schemaValue: Code | number | boolean // Code reference to keyword schema value or primitive value\n  readonly schemaCode: Code | number | boolean // Code reference to resolved schema value (different if schema is $data)\n  readonly schemaType: JSONType[] // allowed type(s) of keyword value in the schema\n  readonly parentSchema: AnySchemaObject\n  readonly errsCount?: Name // Name reference to the number of validation errors collected before this keyword,\n  // requires option trackErrors in keyword definition\n  params: KeywordCxtParams // object to pass parameters to error messages from keyword code\n  readonly it: SchemaObjCxt // schema compilation context (schema is guaranteed to be an object, not boolean)\n  readonly def: AddedKeywordDefinition\n\n  constructor(it: SchemaObjCxt, def: AddedKeywordDefinition, keyword: string) {\n    validateKeywordUsage(it, def, keyword)\n    this.gen = it.gen\n    this.allErrors = it.allErrors\n    this.keyword = keyword\n    this.data = it.data\n    this.schema = it.schema[keyword]\n    this.$data = def.$data && it.opts.$data && this.schema && this.schema.$data\n    this.schemaValue = schemaRefOrVal(it, this.schema, keyword, this.$data)\n    this.schemaType = def.schemaType\n    this.parentSchema = it.schema\n    this.params = {}\n    this.it = it\n    this.def = def\n\n    if (this.$data) {\n      this.schemaCode = it.gen.const(\"vSchema\", getData(this.$data, it))\n    } else {\n      this.schemaCode = this.schemaValue\n      if (!validSchemaType(this.schema, def.schemaType, def.allowUndefined)) {\n        throw new Error(`${keyword} value must be ${JSON.stringify(def.schemaType)}`)\n      }\n    }\n\n    if (\"code\" in def ? def.trackErrors : def.errors !== false) {\n      this.errsCount = it.gen.const(\"_errs\", N.errors)\n    }\n  }\n\n  result(condition: Code, successAction?: () => void, failAction?: () => void): void {\n    this.failResult(not(condition), successAction, failAction)\n  }\n\n  failResult(condition: Code, successAction?: () => void, failAction?: () => void): void {\n    this.gen.if(condition)\n    if (failAction) failAction()\n    else this.error()\n    if (successAction) {\n      this.gen.else()\n      successAction()\n      if (this.allErrors) this.gen.endIf()\n    } else {\n      if (this.allErrors) this.gen.endIf()\n      else this.gen.else()\n    }\n  }\n\n  pass(condition: Code, failAction?: () => void): void {\n    this.failResult(not(condition), undefined, failAction)\n  }\n\n  fail(condition?: Code): void {\n    if (condition === undefined) {\n      this.error()\n      if (!this.allErrors) this.gen.if(false) // this branch will be removed by gen.optimize\n      return\n    }\n    this.gen.if(condition)\n    this.error()\n    if (this.allErrors) this.gen.endIf()\n    else this.gen.else()\n  }\n\n  fail$data(condition: Code): void {\n    if (!this.$data) return this.fail(condition)\n    const {schemaCode} = this\n    this.fail(_`${schemaCode} !== undefined && (${or(this.invalid$data(), condition)})`)\n  }\n\n  error(append?: boolean, errorParams?: KeywordCxtParams, errorPaths?: ErrorPaths): void {\n    if (errorParams) {\n      this.setParams(errorParams)\n      this._error(append, errorPaths)\n      this.setParams({})\n      return\n    }\n    this._error(append, errorPaths)\n  }\n\n  private _error(append?: boolean, errorPaths?: ErrorPaths): void {\n    ;(append ? reportExtraError : reportError)(this, this.def.error, errorPaths)\n  }\n\n  $dataError(): void {\n    reportError(this, this.def.$dataError || keyword$DataError)\n  }\n\n  reset(): void {\n    if (this.errsCount === undefined) throw new Error('add \"trackErrors\" to keyword definition')\n    resetErrorsCount(this.gen, this.errsCount)\n  }\n\n  ok(cond: Code | boolean): void {\n    if (!this.allErrors) this.gen.if(cond)\n  }\n\n  setParams(obj: KeywordCxtParams, assign?: true): void {\n    if (assign) Object.assign(this.params, obj)\n    else this.params = obj\n  }\n\n  block$data(valid: Name, codeBlock: () => void, $dataValid: Code = nil): void {\n    this.gen.block(() => {\n      this.check$data(valid, $dataValid)\n      codeBlock()\n    })\n  }\n\n  check$data(valid: Name = nil, $dataValid: Code = nil): void {\n    if (!this.$data) return\n    const {gen, schemaCode, schemaType, def} = this\n    gen.if(or(_`${schemaCode} === undefined`, $dataValid))\n    if (valid !== nil) gen.assign(valid, true)\n    if (schemaType.length || def.validateSchema) {\n      gen.elseIf(this.invalid$data())\n      this.$dataError()\n      if (valid !== nil) gen.assign(valid, false)\n    }\n    gen.else()\n  }\n\n  invalid$data(): Code {\n    const {gen, schemaCode, schemaType, def, it} = this\n    return or(wrong$DataType(), invalid$DataSchema())\n\n    function wrong$DataType(): Code {\n      if (schemaType.length) {\n        /* istanbul ignore if */\n        if (!(schemaCode instanceof Name)) throw new Error(\"ajv implementation error\")\n        const st = Array.isArray(schemaType) ? schemaType : [schemaType]\n        return _`${checkDataTypes(st, schemaCode, it.opts.strictNumbers, DataType.Wrong)}`\n      }\n      return nil\n    }\n\n    function invalid$DataSchema(): Code {\n      if (def.validateSchema) {\n        const validateSchemaRef = gen.scopeValue(\"validate$data\", {ref: def.validateSchema}) // TODO value.code for standalone\n        return _`!${validateSchemaRef}(${schemaCode})`\n      }\n      return nil\n    }\n  }\n\n  subschema(appl: SubschemaArgs, valid: Name): SchemaCxt {\n    const subschema = getSubschema(this.it, appl)\n    extendSubschemaData(subschema, this.it, appl)\n    extendSubschemaMode(subschema, appl)\n    const nextContext = {...this.it, ...subschema, items: undefined, props: undefined}\n    subschemaCode(nextContext, valid)\n    return nextContext\n  }\n\n  mergeEvaluated(schemaCxt: SchemaCxt, toName?: typeof Name): void {\n    const {it, gen} = this\n    if (!it.opts.unevaluated) return\n    if (it.props !== true && schemaCxt.props !== undefined) {\n      it.props = mergeEvaluated.props(gen, schemaCxt.props, it.props, toName)\n    }\n    if (it.items !== true && schemaCxt.items !== undefined) {\n      it.items = mergeEvaluated.items(gen, schemaCxt.items, it.items, toName)\n    }\n  }\n\n  mergeValidEvaluated(schemaCxt: SchemaCxt, valid: Name): boolean | void {\n    const {it, gen} = this\n    if (it.opts.unevaluated && (it.props !== true || it.items !== true)) {\n      gen.if(valid, () => this.mergeEvaluated(schemaCxt, Name))\n      return true\n    }\n  }\n}\n\nfunction keywordCode(\n  it: SchemaObjCxt,\n  keyword: string,\n  def: AddedKeywordDefinition,\n  ruleType?: JSONType\n): void {\n  const cxt = new KeywordCxt(it, def, keyword)\n  if (\"code\" in def) {\n    def.code(cxt, ruleType)\n  } else if (cxt.$data && def.validate) {\n    funcKeywordCode(cxt, def)\n  } else if (\"macro\" in def) {\n    macroKeywordCode(cxt, def)\n  } else if (def.compile || def.validate) {\n    funcKeywordCode(cxt, def)\n  }\n}\n\nconst JSON_POINTER = /^\\/(?:[^~]|~0|~1)*$/\nconst RELATIVE_JSON_POINTER = /^([0-9]+)(#|\\/(?:[^~]|~0|~1)*)?$/\nexport function getData(\n  $data: string,\n  {dataLevel, dataNames, dataPathArr}: SchemaCxt\n): Code | number {\n  let jsonPointer\n  let data: Code\n  if ($data === \"\") return N.rootData\n  if ($data[0] === \"/\") {\n    if (!JSON_POINTER.test($data)) throw new Error(`Invalid JSON-pointer: ${$data}`)\n    jsonPointer = $data\n    data = N.rootData\n  } else {\n    const matches = RELATIVE_JSON_POINTER.exec($data)\n    if (!matches) throw new Error(`Invalid JSON-pointer: ${$data}`)\n    const up: number = +matches[1]\n    jsonPointer = matches[2]\n    if (jsonPointer === \"#\") {\n      if (up >= dataLevel) throw new Error(errorMsg(\"property/index\", up))\n      return dataPathArr[dataLevel - up]\n    }\n    if (up > dataLevel) throw new Error(errorMsg(\"data\", up))\n    data = dataNames[dataLevel - up]\n    if (!jsonPointer) return data\n  }\n\n  let expr = data\n  const segments = jsonPointer.split(\"/\")\n  for (const segment of segments) {\n    if (segment) {\n      data = _`${data}${getProperty(unescapeJsonPointer(segment))}`\n      expr = _`${expr} && ${data}`\n    }\n  }\n  return expr\n\n  function errorMsg(pointerType: string, up: number): string {\n    return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`\n  }\n}\n", "import type {ErrorObject} from \"../types\"\n\nexport default class ValidationError extends Error {\n  readonly errors: Partial[]\n  readonly ajv: true\n  readonly validation: true\n\n  constructor(errors: Partial[]) {\n    super(\"validation failed\")\n    this.errors = errors\n    this.ajv = this.validation = true\n  }\n}\n", "import {resolveUrl, normalizeId, getFullPath} from \"./resolve\"\nimport type {UriResolver} from \"../types\"\n\nexport default class MissingRefError extends Error {\n  readonly missingRef: string\n  readonly missingSchema: string\n\n  constructor(resolver: UriResolver, baseId: string, ref: string, msg?: string) {\n    super(msg || `can't resolve reference ${ref} from id ${baseId}`)\n    this.missingRef = resolveUrl(resolver, baseId, ref)\n    this.missingSchema = normalizeId(getFullPath(resolver, this.missingRef))\n  }\n}\n", "import type {\n  AnySchema,\n  AnySchemaObject,\n  AnyValidateFunction,\n  AsyncValidateFunction,\n  EvaluatedProperties,\n  EvaluatedItems,\n} from \"../types\"\nimport type Ajv from \"../core\"\nimport type {InstanceOptions} from \"../core\"\nimport {CodeGen, _, nil, stringify, Name, Code, ValueScopeName} from \"./codegen\"\nimport ValidationError from \"../runtime/validation_error\"\nimport N from \"./names\"\nimport {LocalRefs, getFullPath, _getFullPath, inlineRef, normalizeId, resolveUrl} from \"./resolve\"\nimport {schemaHasRulesButRef, unescapeFragment} from \"./util\"\nimport {validateFunctionCode} from \"./validate\"\nimport {URIComponent} from \"fast-uri\"\nimport {JSONType} from \"./rules\"\n\nexport type SchemaRefs = {\n  [Ref in string]?: SchemaEnv | AnySchema\n}\n\nexport interface SchemaCxt {\n  readonly gen: CodeGen\n  readonly allErrors?: boolean // validation mode - whether to collect all errors or break on error\n  readonly data: Name // Name with reference to the current part of data instance\n  readonly parentData: Name // should be used in keywords modifying data\n  readonly parentDataProperty: Code | number // should be used in keywords modifying data\n  readonly dataNames: Name[]\n  readonly dataPathArr: (Code | number)[]\n  readonly dataLevel: number // the level of the currently validated data,\n  // it can be used to access both the property names and the data on all levels from the top.\n  dataTypes: JSONType[] // data types applied to the current part of data instance\n  definedProperties: Set // set of properties to keep track of for required checks\n  readonly topSchemaRef: Code\n  readonly validateName: Name\n  evaluated?: Name\n  readonly ValidationError?: Name\n  readonly schema: AnySchema // current schema object - equal to parentSchema passed via KeywordCxt\n  readonly schemaEnv: SchemaEnv\n  readonly rootId: string\n  baseId: string // the current schema base URI that should be used as the base for resolving URIs in references (\\$ref)\n  readonly schemaPath: Code // the run-time expression that evaluates to the property name of the current schema\n  readonly errSchemaPath: string // this is actual string, should not be changed to Code\n  readonly errorPath: Code\n  readonly propertyName?: Name\n  readonly compositeRule?: boolean // true indicates that the current schema is inside the compound keyword,\n  // where failing some rule doesn't mean validation failure (`anyOf`, `oneOf`, `not`, `if`).\n  // This flag is used to determine whether you can return validation result immediately after any error in case the option `allErrors` is not `true.\n  // You only need to use it if you have many steps in your keywords and potentially can define multiple errors.\n  props?: EvaluatedProperties | Name // properties evaluated by this schema - used by parent schema or assigned to validation function\n  items?: EvaluatedItems | Name // last item evaluated by this schema - used by parent schema or assigned to validation function\n  jtdDiscriminator?: string\n  jtdMetadata?: boolean\n  readonly createErrors?: boolean\n  readonly opts: InstanceOptions // Ajv instance option.\n  readonly self: Ajv // current Ajv instance\n}\n\nexport interface SchemaObjCxt extends SchemaCxt {\n  readonly schema: AnySchemaObject\n}\ninterface SchemaEnvArgs {\n  readonly schema: AnySchema\n  readonly schemaId?: \"$id\" | \"id\"\n  readonly root?: SchemaEnv\n  readonly baseId?: string\n  readonly schemaPath?: string\n  readonly localRefs?: LocalRefs\n  readonly meta?: boolean\n}\n\nexport class SchemaEnv implements SchemaEnvArgs {\n  readonly schema: AnySchema\n  readonly schemaId?: \"$id\" | \"id\"\n  readonly root: SchemaEnv\n  baseId: string // TODO possibly, it should be readonly\n  schemaPath?: string\n  localRefs?: LocalRefs\n  readonly meta?: boolean\n  readonly $async?: boolean // true if the current schema is asynchronous.\n  readonly refs: SchemaRefs = {}\n  readonly dynamicAnchors: {[Ref in string]?: true} = {}\n  validate?: AnyValidateFunction\n  validateName?: ValueScopeName\n  serialize?: (data: unknown) => string\n  serializeName?: ValueScopeName\n  parse?: (data: string) => unknown\n  parseName?: ValueScopeName\n\n  constructor(env: SchemaEnvArgs) {\n    let schema: AnySchemaObject | undefined\n    if (typeof env.schema == \"object\") schema = env.schema\n    this.schema = env.schema\n    this.schemaId = env.schemaId\n    this.root = env.root || this\n    this.baseId = env.baseId ?? normalizeId(schema?.[env.schemaId || \"$id\"])\n    this.schemaPath = env.schemaPath\n    this.localRefs = env.localRefs\n    this.meta = env.meta\n    this.$async = schema?.$async\n    this.refs = {}\n  }\n}\n\n// let codeSize = 0\n// let nodeCount = 0\n\n// Compiles schema in SchemaEnv\nexport function compileSchema(this: Ajv, sch: SchemaEnv): SchemaEnv {\n  // TODO refactor - remove compilations\n  const _sch = getCompilingSchema.call(this, sch)\n  if (_sch) return _sch\n  const rootId = getFullPath(this.opts.uriResolver, sch.root.baseId) // TODO if getFullPath removed 1 tests fails\n  const {es5, lines} = this.opts.code\n  const {ownProperties} = this.opts\n  const gen = new CodeGen(this.scope, {es5, lines, ownProperties})\n  let _ValidationError\n  if (sch.$async) {\n    _ValidationError = gen.scopeValue(\"Error\", {\n      ref: ValidationError,\n      code: _`require(\"ajv/dist/runtime/validation_error\").default`,\n    })\n  }\n\n  const validateName = gen.scopeName(\"validate\")\n  sch.validateName = validateName\n\n  const schemaCxt: SchemaCxt = {\n    gen,\n    allErrors: this.opts.allErrors,\n    data: N.data,\n    parentData: N.parentData,\n    parentDataProperty: N.parentDataProperty,\n    dataNames: [N.data],\n    dataPathArr: [nil], // TODO can its length be used as dataLevel if nil is removed?\n    dataLevel: 0,\n    dataTypes: [],\n    definedProperties: new Set(),\n    topSchemaRef: gen.scopeValue(\n      \"schema\",\n      this.opts.code.source === true\n        ? {ref: sch.schema, code: stringify(sch.schema)}\n        : {ref: sch.schema}\n    ),\n    validateName,\n    ValidationError: _ValidationError,\n    schema: sch.schema,\n    schemaEnv: sch,\n    rootId,\n    baseId: sch.baseId || rootId,\n    schemaPath: nil,\n    errSchemaPath: sch.schemaPath || (this.opts.jtd ? \"\" : \"#\"),\n    errorPath: _`\"\"`,\n    opts: this.opts,\n    self: this,\n  }\n\n  let sourceCode: string | undefined\n  try {\n    this._compilations.add(sch)\n    validateFunctionCode(schemaCxt)\n    gen.optimize(this.opts.code.optimize)\n    // gen.optimize(1)\n    const validateCode = gen.toString()\n    sourceCode = `${gen.scopeRefs(N.scope)}return ${validateCode}`\n    // console.log((codeSize += sourceCode.length), (nodeCount += gen.nodeCount))\n    if (this.opts.code.process) sourceCode = this.opts.code.process(sourceCode, sch)\n    // console.log(\"\\n\\n\\n *** \\n\", sourceCode)\n    const makeValidate = new Function(`${N.self}`, `${N.scope}`, sourceCode)\n    const validate: AnyValidateFunction = makeValidate(this, this.scope.get())\n    this.scope.value(validateName, {ref: validate})\n\n    validate.errors = null\n    validate.schema = sch.schema\n    validate.schemaEnv = sch\n    if (sch.$async) (validate as AsyncValidateFunction).$async = true\n    if (this.opts.code.source === true) {\n      validate.source = {validateName, validateCode, scopeValues: gen._values}\n    }\n    if (this.opts.unevaluated) {\n      const {props, items} = schemaCxt\n      validate.evaluated = {\n        props: props instanceof Name ? undefined : props,\n        items: items instanceof Name ? undefined : items,\n        dynamicProps: props instanceof Name,\n        dynamicItems: items instanceof Name,\n      }\n      if (validate.source) validate.source.evaluated = stringify(validate.evaluated)\n    }\n    sch.validate = validate\n    return sch\n  } catch (e) {\n    delete sch.validate\n    delete sch.validateName\n    if (sourceCode) this.logger.error(\"Error compiling schema, function code:\", sourceCode)\n    // console.log(\"\\n\\n\\n *** \\n\", sourceCode, this.opts)\n    throw e\n  } finally {\n    this._compilations.delete(sch)\n  }\n}\n\nexport function resolveRef(\n  this: Ajv,\n  root: SchemaEnv,\n  baseId: string,\n  ref: string\n): AnySchema | SchemaEnv | undefined {\n  ref = resolveUrl(this.opts.uriResolver, baseId, ref)\n  const schOrFunc = root.refs[ref]\n  if (schOrFunc) return schOrFunc\n\n  let _sch = resolve.call(this, root, ref)\n  if (_sch === undefined) {\n    const schema = root.localRefs?.[ref] // TODO maybe localRefs should hold SchemaEnv\n    const {schemaId} = this.opts\n    if (schema) _sch = new SchemaEnv({schema, schemaId, root, baseId})\n  }\n\n  if (_sch === undefined) return\n  return (root.refs[ref] = inlineOrCompile.call(this, _sch))\n}\n\nfunction inlineOrCompile(this: Ajv, sch: SchemaEnv): AnySchema | SchemaEnv {\n  if (inlineRef(sch.schema, this.opts.inlineRefs)) return sch.schema\n  return sch.validate ? sch : compileSchema.call(this, sch)\n}\n\n// Index of schema compilation in the currently compiled list\nexport function getCompilingSchema(this: Ajv, schEnv: SchemaEnv): SchemaEnv | void {\n  for (const sch of this._compilations) {\n    if (sameSchemaEnv(sch, schEnv)) return sch\n  }\n}\n\nfunction sameSchemaEnv(s1: SchemaEnv, s2: SchemaEnv): boolean {\n  return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId\n}\n\n// resolve and compile the references ($ref)\n// TODO returns AnySchemaObject (if the schema can be inlined) or validation function\nfunction resolve(\n  this: Ajv,\n  root: SchemaEnv, // information about the root schema for the current schema\n  ref: string // reference to resolve\n): SchemaEnv | undefined {\n  let sch\n  while (typeof (sch = this.refs[ref]) == \"string\") ref = sch\n  return sch || this.schemas[ref] || resolveSchema.call(this, root, ref)\n}\n\n// Resolve schema, its root and baseId\nexport function resolveSchema(\n  this: Ajv,\n  root: SchemaEnv, // root object with properties schema, refs TODO below SchemaEnv is assigned to it\n  ref: string // reference to resolve\n): SchemaEnv | undefined {\n  const p = this.opts.uriResolver.parse(ref)\n  const refPath = _getFullPath(this.opts.uriResolver, p)\n  let baseId = getFullPath(this.opts.uriResolver, root.baseId, undefined)\n  // TODO `Object.keys(root.schema).length > 0` should not be needed - but removing breaks 2 tests\n  if (Object.keys(root.schema).length > 0 && refPath === baseId) {\n    return getJsonPointer.call(this, p, root)\n  }\n\n  const id = normalizeId(refPath)\n  const schOrRef = this.refs[id] || this.schemas[id]\n  if (typeof schOrRef == \"string\") {\n    const sch = resolveSchema.call(this, root, schOrRef)\n    if (typeof sch?.schema !== \"object\") return\n    return getJsonPointer.call(this, p, sch)\n  }\n\n  if (typeof schOrRef?.schema !== \"object\") return\n  if (!schOrRef.validate) compileSchema.call(this, schOrRef)\n  if (id === normalizeId(ref)) {\n    const {schema} = schOrRef\n    const {schemaId} = this.opts\n    const schId = schema[schemaId]\n    if (schId) baseId = resolveUrl(this.opts.uriResolver, baseId, schId)\n    return new SchemaEnv({schema, schemaId, root, baseId})\n  }\n  return getJsonPointer.call(this, p, schOrRef)\n}\n\nconst PREVENT_SCOPE_CHANGE = new Set([\n  \"properties\",\n  \"patternProperties\",\n  \"enum\",\n  \"dependencies\",\n  \"definitions\",\n])\n\nfunction getJsonPointer(\n  this: Ajv,\n  parsedRef: URIComponent,\n  {baseId, schema, root}: SchemaEnv\n): SchemaEnv | undefined {\n  if (parsedRef.fragment?.[0] !== \"/\") return\n  for (const part of parsedRef.fragment.slice(1).split(\"/\")) {\n    if (typeof schema === \"boolean\") return\n    const partSchema = schema[unescapeFragment(part)]\n    if (partSchema === undefined) return\n    schema = partSchema\n    // TODO PREVENT_SCOPE_CHANGE could be defined in keyword def?\n    const schId = typeof schema === \"object\" && schema[this.opts.schemaId]\n    if (!PREVENT_SCOPE_CHANGE.has(part) && schId) {\n      baseId = resolveUrl(this.opts.uriResolver, baseId, schId)\n    }\n  }\n  let env: SchemaEnv | undefined\n  if (typeof schema != \"boolean\" && schema.$ref && !schemaHasRulesButRef(schema, this.RULES)) {\n    const $ref = resolveUrl(this.opts.uriResolver, baseId, schema.$ref)\n    env = resolveSchema.call(this, root, $ref)\n  }\n  // even though resolution failed we need to return SchemaEnv to throw exception\n  // so that compileAsync loads missing schema.\n  const {schemaId} = this.opts\n  env = env || new SchemaEnv({schema, schemaId, root, baseId})\n  if (env.schema !== env.root.schema) return env\n  return undefined\n}\n", "{\n  \"$id\": \"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#\",\n  \"description\": \"Meta-schema for $data reference (JSON AnySchema extension proposal)\",\n  \"type\": \"object\",\n  \"required\": [\"$data\"],\n  \"properties\": {\n    \"$data\": {\n      \"type\": \"string\",\n      \"anyOf\": [{\"format\": \"relative-json-pointer\"}, {\"format\": \"json-pointer\"}]\n    }\n  },\n  \"additionalProperties\": false\n}\n", "'use strict'\n\nconst HEX = {\n  0: 0,\n  1: 1,\n  2: 2,\n  3: 3,\n  4: 4,\n  5: 5,\n  6: 6,\n  7: 7,\n  8: 8,\n  9: 9,\n  a: 10,\n  A: 10,\n  b: 11,\n  B: 11,\n  c: 12,\n  C: 12,\n  d: 13,\n  D: 13,\n  e: 14,\n  E: 14,\n  f: 15,\n  F: 15\n}\n\nmodule.exports = {\n  HEX\n}\n", "'use strict'\n\nconst { HEX } = require('./scopedChars')\n\nfunction normalizeIPv4 (host) {\n  if (findToken(host, '.') < 3) { return { host, isIPV4: false } }\n  const matches = host.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) || []\n  const [address] = matches\n  if (address) {\n    return { host: stripLeadingZeros(address, '.'), isIPV4: true }\n  } else {\n    return { host, isIPV4: false }\n  }\n}\n\n/**\n * @param {string[]} input\n * @param {boolean} [keepZero=false]\n * @returns {string|undefined}\n */\nfunction stringArrayToHexStripped (input, keepZero = false) {\n  let acc = ''\n  let strip = true\n  for (const c of input) {\n    if (HEX[c] === undefined) return undefined\n    if (c !== '0' && strip === true) strip = false\n    if (!strip) acc += c\n  }\n  if (keepZero && acc.length === 0) acc = '0'\n  return acc\n}\n\nfunction getIPV6 (input) {\n  let tokenCount = 0\n  const output = { error: false, address: '', zone: '' }\n  const address = []\n  const buffer = []\n  let isZone = false\n  let endipv6Encountered = false\n  let endIpv6 = false\n\n  function consume () {\n    if (buffer.length) {\n      if (isZone === false) {\n        const hex = stringArrayToHexStripped(buffer)\n        if (hex !== undefined) {\n          address.push(hex)\n        } else {\n          output.error = true\n          return false\n        }\n      }\n      buffer.length = 0\n    }\n    return true\n  }\n\n  for (let i = 0; i < input.length; i++) {\n    const cursor = input[i]\n    if (cursor === '[' || cursor === ']') { continue }\n    if (cursor === ':') {\n      if (endipv6Encountered === true) {\n        endIpv6 = true\n      }\n      if (!consume()) { break }\n      tokenCount++\n      address.push(':')\n      if (tokenCount > 7) {\n        // not valid\n        output.error = true\n        break\n      }\n      if (i - 1 >= 0 && input[i - 1] === ':') {\n        endipv6Encountered = true\n      }\n      continue\n    } else if (cursor === '%') {\n      if (!consume()) { break }\n      // switch to zone detection\n      isZone = true\n    } else {\n      buffer.push(cursor)\n      continue\n    }\n  }\n  if (buffer.length) {\n    if (isZone) {\n      output.zone = buffer.join('')\n    } else if (endIpv6) {\n      address.push(buffer.join(''))\n    } else {\n      address.push(stringArrayToHexStripped(buffer))\n    }\n  }\n  output.address = address.join('')\n  return output\n}\n\nfunction normalizeIPv6 (host, opts = {}) {\n  if (findToken(host, ':') < 2) { return { host, isIPV6: false } }\n  const ipv6 = getIPV6(host)\n\n  if (!ipv6.error) {\n    let newHost = ipv6.address\n    let escapedHost = ipv6.address\n    if (ipv6.zone) {\n      newHost += '%' + ipv6.zone\n      escapedHost += '%25' + ipv6.zone\n    }\n    return { host: newHost, escapedHost, isIPV6: true }\n  } else {\n    return { host, isIPV6: false }\n  }\n}\n\nfunction stripLeadingZeros (str, token) {\n  let out = ''\n  let skip = true\n  const l = str.length\n  for (let i = 0; i < l; i++) {\n    const c = str[i]\n    if (c === '0' && skip) {\n      if ((i + 1 <= l && str[i + 1] === token) || i + 1 === l) {\n        out += c\n        skip = false\n      }\n    } else {\n      if (c === token) {\n        skip = true\n      } else {\n        skip = false\n      }\n      out += c\n    }\n  }\n  return out\n}\n\nfunction findToken (str, token) {\n  let ind = 0\n  for (let i = 0; i < str.length; i++) {\n    if (str[i] === token) ind++\n  }\n  return ind\n}\n\nconst RDS1 = /^\\.\\.?\\//u\nconst RDS2 = /^\\/\\.(?:\\/|$)/u\nconst RDS3 = /^\\/\\.\\.(?:\\/|$)/u\nconst RDS5 = /^\\/?(?:.|\\n)*?(?=\\/|$)/u\n\nfunction removeDotSegments (input) {\n  const output = []\n\n  while (input.length) {\n    if (input.match(RDS1)) {\n      input = input.replace(RDS1, '')\n    } else if (input.match(RDS2)) {\n      input = input.replace(RDS2, '/')\n    } else if (input.match(RDS3)) {\n      input = input.replace(RDS3, '/')\n      output.pop()\n    } else if (input === '.' || input === '..') {\n      input = ''\n    } else {\n      const im = input.match(RDS5)\n      if (im) {\n        const s = im[0]\n        input = input.slice(s.length)\n        output.push(s)\n      } else {\n        throw new Error('Unexpected dot segment condition')\n      }\n    }\n  }\n  return output.join('')\n}\n\nfunction normalizeComponentEncoding (components, esc) {\n  const func = esc !== true ? escape : unescape\n  if (components.scheme !== undefined) {\n    components.scheme = func(components.scheme)\n  }\n  if (components.userinfo !== undefined) {\n    components.userinfo = func(components.userinfo)\n  }\n  if (components.host !== undefined) {\n    components.host = func(components.host)\n  }\n  if (components.path !== undefined) {\n    components.path = func(components.path)\n  }\n  if (components.query !== undefined) {\n    components.query = func(components.query)\n  }\n  if (components.fragment !== undefined) {\n    components.fragment = func(components.fragment)\n  }\n  return components\n}\n\nfunction recomposeAuthority (components, options) {\n  const uriTokens = []\n\n  if (components.userinfo !== undefined) {\n    uriTokens.push(components.userinfo)\n    uriTokens.push('@')\n  }\n\n  if (components.host !== undefined) {\n    let host = unescape(components.host)\n    const ipV4res = normalizeIPv4(host)\n\n    if (ipV4res.isIPV4) {\n      host = ipV4res.host\n    } else {\n      const ipV6res = normalizeIPv6(ipV4res.host, { isIPV4: false })\n      if (ipV6res.isIPV6 === true) {\n        host = `[${ipV6res.escapedHost}]`\n      } else {\n        host = components.host\n      }\n    }\n    uriTokens.push(host)\n  }\n\n  if (typeof components.port === 'number' || typeof components.port === 'string') {\n    uriTokens.push(':')\n    uriTokens.push(String(components.port))\n  }\n\n  return uriTokens.length ? uriTokens.join('') : undefined\n};\n\nmodule.exports = {\n  recomposeAuthority,\n  normalizeComponentEncoding,\n  removeDotSegments,\n  normalizeIPv4,\n  normalizeIPv6,\n  stringArrayToHexStripped\n}\n", "'use strict'\n\nconst UUID_REG = /^[\\da-f]{8}\\b-[\\da-f]{4}\\b-[\\da-f]{4}\\b-[\\da-f]{4}\\b-[\\da-f]{12}$/iu\nconst URN_REG = /([\\da-z][\\d\\-a-z]{0,31}):((?:[\\w!$'()*+,\\-.:;=@]|%[\\da-f]{2})+)/iu\n\nfunction isSecure (wsComponents) {\n  return typeof wsComponents.secure === 'boolean' ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === 'wss'\n}\n\nfunction httpParse (components) {\n  if (!components.host) {\n    components.error = components.error || 'HTTP URIs must have a host.'\n  }\n\n  return components\n}\n\nfunction httpSerialize (components) {\n  const secure = String(components.scheme).toLowerCase() === 'https'\n\n  // normalize the default port\n  if (components.port === (secure ? 443 : 80) || components.port === '') {\n    components.port = undefined\n  }\n\n  // normalize the empty path\n  if (!components.path) {\n    components.path = '/'\n  }\n\n  // NOTE: We do not parse query strings for HTTP URIs\n  // as WWW Form Url Encoded query strings are part of the HTML4+ spec,\n  // and not the HTTP spec.\n\n  return components\n}\n\nfunction wsParse (wsComponents) {\n// indicate if the secure flag is set\n  wsComponents.secure = isSecure(wsComponents)\n\n  // construct resouce name\n  wsComponents.resourceName = (wsComponents.path || '/') + (wsComponents.query ? '?' + wsComponents.query : '')\n  wsComponents.path = undefined\n  wsComponents.query = undefined\n\n  return wsComponents\n}\n\nfunction wsSerialize (wsComponents) {\n// normalize the default port\n  if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === '') {\n    wsComponents.port = undefined\n  }\n\n  // ensure scheme matches secure flag\n  if (typeof wsComponents.secure === 'boolean') {\n    wsComponents.scheme = (wsComponents.secure ? 'wss' : 'ws')\n    wsComponents.secure = undefined\n  }\n\n  // reconstruct path from resource name\n  if (wsComponents.resourceName) {\n    const [path, query] = wsComponents.resourceName.split('?')\n    wsComponents.path = (path && path !== '/' ? path : undefined)\n    wsComponents.query = query\n    wsComponents.resourceName = undefined\n  }\n\n  // forbid fragment component\n  wsComponents.fragment = undefined\n\n  return wsComponents\n}\n\nfunction urnParse (urnComponents, options) {\n  if (!urnComponents.path) {\n    urnComponents.error = 'URN can not be parsed'\n    return urnComponents\n  }\n  const matches = urnComponents.path.match(URN_REG)\n  if (matches) {\n    const scheme = options.scheme || urnComponents.scheme || 'urn'\n    urnComponents.nid = matches[1].toLowerCase()\n    urnComponents.nss = matches[2]\n    const urnScheme = `${scheme}:${options.nid || urnComponents.nid}`\n    const schemeHandler = SCHEMES[urnScheme]\n    urnComponents.path = undefined\n\n    if (schemeHandler) {\n      urnComponents = schemeHandler.parse(urnComponents, options)\n    }\n  } else {\n    urnComponents.error = urnComponents.error || 'URN can not be parsed.'\n  }\n\n  return urnComponents\n}\n\nfunction urnSerialize (urnComponents, options) {\n  const scheme = options.scheme || urnComponents.scheme || 'urn'\n  const nid = urnComponents.nid.toLowerCase()\n  const urnScheme = `${scheme}:${options.nid || nid}`\n  const schemeHandler = SCHEMES[urnScheme]\n\n  if (schemeHandler) {\n    urnComponents = schemeHandler.serialize(urnComponents, options)\n  }\n\n  const uriComponents = urnComponents\n  const nss = urnComponents.nss\n  uriComponents.path = `${nid || options.nid}:${nss}`\n\n  options.skipEscape = true\n  return uriComponents\n}\n\nfunction urnuuidParse (urnComponents, options) {\n  const uuidComponents = urnComponents\n  uuidComponents.uuid = uuidComponents.nss\n  uuidComponents.nss = undefined\n\n  if (!options.tolerant && (!uuidComponents.uuid || !UUID_REG.test(uuidComponents.uuid))) {\n    uuidComponents.error = uuidComponents.error || 'UUID is not valid.'\n  }\n\n  return uuidComponents\n}\n\nfunction urnuuidSerialize (uuidComponents) {\n  const urnComponents = uuidComponents\n  // normalize UUID\n  urnComponents.nss = (uuidComponents.uuid || '').toLowerCase()\n  return urnComponents\n}\n\nconst http = {\n  scheme: 'http',\n  domainHost: true,\n  parse: httpParse,\n  serialize: httpSerialize\n}\n\nconst https = {\n  scheme: 'https',\n  domainHost: http.domainHost,\n  parse: httpParse,\n  serialize: httpSerialize\n}\n\nconst ws = {\n  scheme: 'ws',\n  domainHost: true,\n  parse: wsParse,\n  serialize: wsSerialize\n}\n\nconst wss = {\n  scheme: 'wss',\n  domainHost: ws.domainHost,\n  parse: ws.parse,\n  serialize: ws.serialize\n}\n\nconst urn = {\n  scheme: 'urn',\n  parse: urnParse,\n  serialize: urnSerialize,\n  skipNormalize: true\n}\n\nconst urnuuid = {\n  scheme: 'urn:uuid',\n  parse: urnuuidParse,\n  serialize: urnuuidSerialize,\n  skipNormalize: true\n}\n\nconst SCHEMES = {\n  http,\n  https,\n  ws,\n  wss,\n  urn,\n  'urn:uuid': urnuuid\n}\n\nmodule.exports = SCHEMES\n", "'use strict'\n\nconst { normalizeIPv6, normalizeIPv4, removeDotSegments, recomposeAuthority, normalizeComponentEncoding } = require('./lib/utils')\nconst SCHEMES = require('./lib/schemes')\n\nfunction normalize (uri, options) {\n  if (typeof uri === 'string') {\n    uri = serialize(parse(uri, options), options)\n  } else if (typeof uri === 'object') {\n    uri = parse(serialize(uri, options), options)\n  }\n  return uri\n}\n\nfunction resolve (baseURI, relativeURI, options) {\n  const schemelessOptions = Object.assign({ scheme: 'null' }, options)\n  const resolved = resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true)\n  return serialize(resolved, { ...schemelessOptions, skipEscape: true })\n}\n\nfunction resolveComponents (base, relative, options, skipNormalization) {\n  const target = {}\n  if (!skipNormalization) {\n    base = parse(serialize(base, options), options) // normalize base components\n    relative = parse(serialize(relative, options), options) // normalize relative components\n  }\n  options = options || {}\n\n  if (!options.tolerant && relative.scheme) {\n    target.scheme = relative.scheme\n    // target.authority = relative.authority;\n    target.userinfo = relative.userinfo\n    target.host = relative.host\n    target.port = relative.port\n    target.path = removeDotSegments(relative.path || '')\n    target.query = relative.query\n  } else {\n    if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {\n      // target.authority = relative.authority;\n      target.userinfo = relative.userinfo\n      target.host = relative.host\n      target.port = relative.port\n      target.path = removeDotSegments(relative.path || '')\n      target.query = relative.query\n    } else {\n      if (!relative.path) {\n        target.path = base.path\n        if (relative.query !== undefined) {\n          target.query = relative.query\n        } else {\n          target.query = base.query\n        }\n      } else {\n        if (relative.path.charAt(0) === '/') {\n          target.path = removeDotSegments(relative.path)\n        } else {\n          if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {\n            target.path = '/' + relative.path\n          } else if (!base.path) {\n            target.path = relative.path\n          } else {\n            target.path = base.path.slice(0, base.path.lastIndexOf('/') + 1) + relative.path\n          }\n          target.path = removeDotSegments(target.path)\n        }\n        target.query = relative.query\n      }\n      // target.authority = base.authority;\n      target.userinfo = base.userinfo\n      target.host = base.host\n      target.port = base.port\n    }\n    target.scheme = base.scheme\n  }\n\n  target.fragment = relative.fragment\n\n  return target\n}\n\nfunction equal (uriA, uriB, options) {\n  if (typeof uriA === 'string') {\n    uriA = unescape(uriA)\n    uriA = serialize(normalizeComponentEncoding(parse(uriA, options), true), { ...options, skipEscape: true })\n  } else if (typeof uriA === 'object') {\n    uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true })\n  }\n\n  if (typeof uriB === 'string') {\n    uriB = unescape(uriB)\n    uriB = serialize(normalizeComponentEncoding(parse(uriB, options), true), { ...options, skipEscape: true })\n  } else if (typeof uriB === 'object') {\n    uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true })\n  }\n\n  return uriA.toLowerCase() === uriB.toLowerCase()\n}\n\nfunction serialize (cmpts, opts) {\n  const components = {\n    host: cmpts.host,\n    scheme: cmpts.scheme,\n    userinfo: cmpts.userinfo,\n    port: cmpts.port,\n    path: cmpts.path,\n    query: cmpts.query,\n    nid: cmpts.nid,\n    nss: cmpts.nss,\n    uuid: cmpts.uuid,\n    fragment: cmpts.fragment,\n    reference: cmpts.reference,\n    resourceName: cmpts.resourceName,\n    secure: cmpts.secure,\n    error: ''\n  }\n  const options = Object.assign({}, opts)\n  const uriTokens = []\n\n  // find scheme handler\n  const schemeHandler = SCHEMES[(options.scheme || components.scheme || '').toLowerCase()]\n\n  // perform scheme specific serialization\n  if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options)\n\n  if (components.path !== undefined) {\n    if (!options.skipEscape) {\n      components.path = escape(components.path)\n\n      if (components.scheme !== undefined) {\n        components.path = components.path.split('%3A').join(':')\n      }\n    } else {\n      components.path = unescape(components.path)\n    }\n  }\n\n  if (options.reference !== 'suffix' && components.scheme) {\n    uriTokens.push(components.scheme, ':')\n  }\n\n  const authority = recomposeAuthority(components, options)\n  if (authority !== undefined) {\n    if (options.reference !== 'suffix') {\n      uriTokens.push('//')\n    }\n\n    uriTokens.push(authority)\n\n    if (components.path && components.path.charAt(0) !== '/') {\n      uriTokens.push('/')\n    }\n  }\n  if (components.path !== undefined) {\n    let s = components.path\n\n    if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {\n      s = removeDotSegments(s)\n    }\n\n    if (authority === undefined) {\n      s = s.replace(/^\\/\\//u, '/%2F') // don't allow the path to start with \"//\"\n    }\n\n    uriTokens.push(s)\n  }\n\n  if (components.query !== undefined) {\n    uriTokens.push('?', components.query)\n  }\n\n  if (components.fragment !== undefined) {\n    uriTokens.push('#', components.fragment)\n  }\n  return uriTokens.join('')\n}\n\nconst hexLookUp = Array.from({ length: 127 }, (v, k) => /[^!\"$&'()*+,\\-.;=_`a-z{}~]/u.test(String.fromCharCode(k)))\n\nfunction nonSimpleDomain (value) {\n  let code = 0\n  for (let i = 0, len = value.length; i < len; ++i) {\n    code = value.charCodeAt(i)\n    if (code > 126 || hexLookUp[code]) {\n      return true\n    }\n  }\n  return false\n}\n\nconst URI_PARSE = /^(?:([^#/:?]+):)?(?:\\/\\/((?:([^#/?@]*)@)?(\\[[^#/?\\]]+\\]|[^#/:?]*)(?::(\\d*))?))?([^#?]*)(?:\\?([^#]*))?(?:#((?:.|[\\n\\r])*))?/u\n\nfunction parse (uri, opts) {\n  const options = Object.assign({}, opts)\n  const parsed = {\n    scheme: undefined,\n    userinfo: undefined,\n    host: '',\n    port: undefined,\n    path: '',\n    query: undefined,\n    fragment: undefined\n  }\n  const gotEncoding = uri.indexOf('%') !== -1\n  let isIP = false\n  if (options.reference === 'suffix') uri = (options.scheme ? options.scheme + ':' : '') + '//' + uri\n\n  const matches = uri.match(URI_PARSE)\n\n  if (matches) {\n    // store each component\n    parsed.scheme = matches[1]\n    parsed.userinfo = matches[3]\n    parsed.host = matches[4]\n    parsed.port = parseInt(matches[5], 10)\n    parsed.path = matches[6] || ''\n    parsed.query = matches[7]\n    parsed.fragment = matches[8]\n\n    // fix port number\n    if (isNaN(parsed.port)) {\n      parsed.port = matches[5]\n    }\n    if (parsed.host) {\n      const ipv4result = normalizeIPv4(parsed.host)\n      if (ipv4result.isIPV4 === false) {\n        const ipv6result = normalizeIPv6(ipv4result.host, { isIPV4: false })\n        parsed.host = ipv6result.host.toLowerCase()\n        isIP = ipv6result.isIPV6\n      } else {\n        parsed.host = ipv4result.host\n        isIP = true\n      }\n    }\n    if (parsed.scheme === undefined && parsed.userinfo === undefined && parsed.host === undefined && parsed.port === undefined && !parsed.path && parsed.query === undefined) {\n      parsed.reference = 'same-document'\n    } else if (parsed.scheme === undefined) {\n      parsed.reference = 'relative'\n    } else if (parsed.fragment === undefined) {\n      parsed.reference = 'absolute'\n    } else {\n      parsed.reference = 'uri'\n    }\n\n    // check for reference errors\n    if (options.reference && options.reference !== 'suffix' && options.reference !== parsed.reference) {\n      parsed.error = parsed.error || 'URI is not a ' + options.reference + ' reference.'\n    }\n\n    // find scheme handler\n    const schemeHandler = SCHEMES[(options.scheme || parsed.scheme || '').toLowerCase()]\n\n    // check if scheme can't handle IRIs\n    if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {\n      // if host component is a domain name\n      if (parsed.host && (options.domainHost || (schemeHandler && schemeHandler.domainHost)) && isIP === false && nonSimpleDomain(parsed.host)) {\n        // convert Unicode IDN -> ASCII IDN\n        try {\n          parsed.host = URL.domainToASCII(parsed.host.toLowerCase())\n        } catch (e) {\n          parsed.error = parsed.error || \"Host's domain name can not be converted to ASCII: \" + e\n        }\n      }\n      // convert IRI -> URI\n    }\n\n    if (!schemeHandler || (schemeHandler && !schemeHandler.skipNormalize)) {\n      if (gotEncoding && parsed.scheme !== undefined) {\n        parsed.scheme = unescape(parsed.scheme)\n      }\n      if (gotEncoding && parsed.host !== undefined) {\n        parsed.host = unescape(parsed.host)\n      }\n      if (parsed.path !== undefined && parsed.path.length) {\n        parsed.path = escape(unescape(parsed.path))\n      }\n      if (parsed.fragment !== undefined && parsed.fragment.length) {\n        parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment))\n      }\n    }\n\n    // perform scheme specific parsing\n    if (schemeHandler && schemeHandler.parse) {\n      schemeHandler.parse(parsed, options)\n    }\n  } else {\n    parsed.error = parsed.error || 'URI can not be parsed.'\n  }\n  return parsed\n}\n\nconst fastUri = {\n  SCHEMES,\n  normalize,\n  resolve,\n  resolveComponents,\n  equal,\n  serialize,\n  parse\n}\n\nmodule.exports = fastUri\nmodule.exports.default = fastUri\nmodule.exports.fastUri = fastUri\n", "import * as uri from \"fast-uri\"\n\ntype URI = typeof uri & {code: string}\n;(uri as URI).code = 'require(\"ajv/dist/runtime/uri\").default'\n\nexport default uri as URI\n", "export {\n  Format,\n  FormatDefinition,\n  AsyncFormatDefinition,\n  KeywordDefinition,\n  KeywordErrorDefinition,\n  CodeKeywordDefinition,\n  MacroKeywordDefinition,\n  FuncKeywordDefinition,\n  Vocabulary,\n  Schema,\n  SchemaObject,\n  AnySchemaObject,\n  AsyncSchema,\n  AnySchema,\n  ValidateFunction,\n  AsyncValidateFunction,\n  AnyValidateFunction,\n  ErrorObject,\n  ErrorNoParams,\n} from \"./types\"\n\nexport {SchemaCxt, SchemaObjCxt} from \"./compile\"\nexport interface Plugin {\n  (ajv: Ajv, options?: Opts): Ajv\n  [prop: string]: any\n}\n\nexport {KeywordCxt} from \"./compile/validate\"\nexport {DefinedError} from \"./vocabularies/errors\"\nexport {JSONType} from \"./compile/rules\"\nexport {JSONSchemaType} from \"./types/json-schema\"\nexport {JTDSchemaType, SomeJTDSchemaType, JTDDataType} from \"./types/jtd-schema\"\nexport {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from \"./compile/codegen\"\n\nimport type {\n  Schema,\n  AnySchema,\n  AnySchemaObject,\n  SchemaObject,\n  AsyncSchema,\n  Vocabulary,\n  KeywordDefinition,\n  AddedKeywordDefinition,\n  AnyValidateFunction,\n  ValidateFunction,\n  AsyncValidateFunction,\n  ErrorObject,\n  Format,\n  AddedFormat,\n  RegExpEngine,\n  UriResolver,\n} from \"./types\"\nimport type {JSONSchemaType} from \"./types/json-schema\"\nimport type {JTDSchemaType, SomeJTDSchemaType, JTDDataType} from \"./types/jtd-schema\"\nimport ValidationError from \"./runtime/validation_error\"\nimport MissingRefError from \"./compile/ref_error\"\nimport {getRules, ValidationRules, Rule, RuleGroup, JSONType} from \"./compile/rules\"\nimport {SchemaEnv, compileSchema, resolveSchema} from \"./compile\"\nimport {Code, ValueScope} from \"./compile/codegen\"\nimport {normalizeId, getSchemaRefs} from \"./compile/resolve\"\nimport {getJSONTypes} from \"./compile/validate/dataType\"\nimport {eachItem} from \"./compile/util\"\nimport * as $dataRefSchema from \"./refs/data.json\"\n\nimport DefaultUriResolver from \"./runtime/uri\"\n\nconst defaultRegExp: RegExpEngine = (str, flags) => new RegExp(str, flags)\ndefaultRegExp.code = \"new RegExp\"\n\nconst META_IGNORE_OPTIONS: (keyof Options)[] = [\"removeAdditional\", \"useDefaults\", \"coerceTypes\"]\nconst EXT_SCOPE_NAMES = new Set([\n  \"validate\",\n  \"serialize\",\n  \"parse\",\n  \"wrapper\",\n  \"root\",\n  \"schema\",\n  \"keyword\",\n  \"pattern\",\n  \"formats\",\n  \"validate$data\",\n  \"func\",\n  \"obj\",\n  \"Error\",\n])\n\nexport type Options = CurrentOptions & DeprecatedOptions\n\nexport interface CurrentOptions {\n  // strict mode options (NEW)\n  strict?: boolean | \"log\"\n  strictSchema?: boolean | \"log\"\n  strictNumbers?: boolean | \"log\"\n  strictTypes?: boolean | \"log\"\n  strictTuples?: boolean | \"log\"\n  strictRequired?: boolean | \"log\"\n  allowMatchingProperties?: boolean // disables a strict mode restriction\n  allowUnionTypes?: boolean\n  validateFormats?: boolean\n  // validation and reporting options:\n  $data?: boolean\n  allErrors?: boolean\n  verbose?: boolean\n  discriminator?: boolean\n  unicodeRegExp?: boolean\n  timestamp?: \"string\" | \"date\" // JTD only\n  parseDate?: boolean // JTD only\n  allowDate?: boolean // JTD only\n  $comment?:\n    | true\n    | ((comment: string, schemaPath?: string, rootSchema?: AnySchemaObject) => unknown)\n  formats?: {[Name in string]?: Format}\n  keywords?: Vocabulary\n  schemas?: AnySchema[] | {[Key in string]?: AnySchema}\n  logger?: Logger | false\n  loadSchema?: (uri: string) => Promise\n  // options to modify validated data:\n  removeAdditional?: boolean | \"all\" | \"failing\"\n  useDefaults?: boolean | \"empty\"\n  coerceTypes?: boolean | \"array\"\n  // advanced options:\n  next?: boolean // NEW\n  unevaluated?: boolean // NEW\n  dynamicRef?: boolean // NEW\n  schemaId?: \"id\" | \"$id\"\n  jtd?: boolean // NEW\n  meta?: SchemaObject | boolean\n  defaultMeta?: string | AnySchemaObject\n  validateSchema?: boolean | \"log\"\n  addUsedSchema?: boolean\n  inlineRefs?: boolean | number\n  passContext?: boolean\n  loopRequired?: number\n  loopEnum?: number // NEW\n  ownProperties?: boolean\n  multipleOfPrecision?: number\n  int32range?: boolean // JTD only\n  messages?: boolean\n  code?: CodeOptions // NEW\n  uriResolver?: UriResolver\n}\n\nexport interface CodeOptions {\n  es5?: boolean\n  esm?: boolean\n  lines?: boolean\n  optimize?: boolean | number\n  formats?: Code // code to require (or construct) map of available formats - for standalone code\n  source?: boolean\n  process?: (code: string, schema?: SchemaEnv) => string\n  regExp?: RegExpEngine\n}\n\ninterface InstanceCodeOptions extends CodeOptions {\n  regExp: RegExpEngine\n  optimize: number\n}\n\ninterface DeprecatedOptions {\n  /** @deprecated */\n  ignoreKeywordsWithRef?: boolean\n  /** @deprecated */\n  jsPropertySyntax?: boolean // added instead of jsonPointers\n  /** @deprecated */\n  unicode?: boolean\n}\n\ninterface RemovedOptions {\n  format?: boolean\n  errorDataPath?: \"object\" | \"property\"\n  nullable?: boolean // \"nullable\" keyword is supported by default\n  jsonPointers?: boolean\n  extendRefs?: true | \"ignore\" | \"fail\"\n  missingRefs?: true | \"ignore\" | \"fail\"\n  processCode?: (code: string, schema?: SchemaEnv) => string\n  sourceCode?: boolean\n  strictDefaults?: boolean\n  strictKeywords?: boolean\n  uniqueItems?: boolean\n  unknownFormats?: true | string[] | \"ignore\"\n  cache?: any\n  serialize?: (schema: AnySchema) => unknown\n  ajvErrors?: boolean\n}\n\ntype OptionsInfo = {\n  [K in keyof T]-?: string | undefined\n}\n\nconst removedOptions: OptionsInfo = {\n  errorDataPath: \"\",\n  format: \"`validateFormats: false` can be used instead.\",\n  nullable: '\"nullable\" keyword is supported by default.',\n  jsonPointers: \"Deprecated jsPropertySyntax can be used instead.\",\n  extendRefs: \"Deprecated ignoreKeywordsWithRef can be used instead.\",\n  missingRefs: \"Pass empty schema with $id that should be ignored to ajv.addSchema.\",\n  processCode: \"Use option `code: {process: (code, schemaEnv: object) => string}`\",\n  sourceCode: \"Use option `code: {source: true}`\",\n  strictDefaults: \"It is default now, see option `strict`.\",\n  strictKeywords: \"It is default now, see option `strict`.\",\n  uniqueItems: '\"uniqueItems\" keyword is always validated.',\n  unknownFormats: \"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).\",\n  cache: \"Map is used as cache, schema object as key.\",\n  serialize: \"Map is used as cache, schema object as key.\",\n  ajvErrors: \"It is default now.\",\n}\n\nconst deprecatedOptions: OptionsInfo = {\n  ignoreKeywordsWithRef: \"\",\n  jsPropertySyntax: \"\",\n  unicode: '\"minLength\"/\"maxLength\" account for unicode characters by default.',\n}\n\ntype RequiredInstanceOptions = {\n  [K in\n    | \"strictSchema\"\n    | \"strictNumbers\"\n    | \"strictTypes\"\n    | \"strictTuples\"\n    | \"strictRequired\"\n    | \"inlineRefs\"\n    | \"loopRequired\"\n    | \"loopEnum\"\n    | \"meta\"\n    | \"messages\"\n    | \"schemaId\"\n    | \"addUsedSchema\"\n    | \"validateSchema\"\n    | \"validateFormats\"\n    | \"int32range\"\n    | \"unicodeRegExp\"\n    | \"uriResolver\"]: NonNullable\n} & {code: InstanceCodeOptions}\n\nexport type InstanceOptions = Options & RequiredInstanceOptions\n\nconst MAX_EXPRESSION = 200\n\n// eslint-disable-next-line complexity\nfunction requiredOptions(o: Options): RequiredInstanceOptions {\n  const s = o.strict\n  const _optz = o.code?.optimize\n  const optimize = _optz === true || _optz === undefined ? 1 : _optz || 0\n  const regExp = o.code?.regExp ?? defaultRegExp\n  const uriResolver = o.uriResolver ?? DefaultUriResolver\n  return {\n    strictSchema: o.strictSchema ?? s ?? true,\n    strictNumbers: o.strictNumbers ?? s ?? true,\n    strictTypes: o.strictTypes ?? s ?? \"log\",\n    strictTuples: o.strictTuples ?? s ?? \"log\",\n    strictRequired: o.strictRequired ?? s ?? false,\n    code: o.code ? {...o.code, optimize, regExp} : {optimize, regExp},\n    loopRequired: o.loopRequired ?? MAX_EXPRESSION,\n    loopEnum: o.loopEnum ?? MAX_EXPRESSION,\n    meta: o.meta ?? true,\n    messages: o.messages ?? true,\n    inlineRefs: o.inlineRefs ?? true,\n    schemaId: o.schemaId ?? \"$id\",\n    addUsedSchema: o.addUsedSchema ?? true,\n    validateSchema: o.validateSchema ?? true,\n    validateFormats: o.validateFormats ?? true,\n    unicodeRegExp: o.unicodeRegExp ?? true,\n    int32range: o.int32range ?? true,\n    uriResolver: uriResolver,\n  }\n}\n\nexport interface Logger {\n  log(...args: unknown[]): unknown\n  warn(...args: unknown[]): unknown\n  error(...args: unknown[]): unknown\n}\n\nexport default class Ajv {\n  opts: InstanceOptions\n  errors?: ErrorObject[] | null // errors from the last validation\n  logger: Logger\n  // shared external scope values for compiled functions\n  readonly scope: ValueScope\n  readonly schemas: {[Key in string]?: SchemaEnv} = {}\n  readonly refs: {[Ref in string]?: SchemaEnv | string} = {}\n  readonly formats: {[Name in string]?: AddedFormat} = {}\n  readonly RULES: ValidationRules\n  readonly _compilations: Set = new Set()\n  private readonly _loading: {[Ref in string]?: Promise} = {}\n  private readonly _cache: Map = new Map()\n  private readonly _metaOpts: InstanceOptions\n\n  static ValidationError = ValidationError\n  static MissingRefError = MissingRefError\n\n  constructor(opts: Options = {}) {\n    opts = this.opts = {...opts, ...requiredOptions(opts)}\n    const {es5, lines} = this.opts.code\n\n    this.scope = new ValueScope({scope: {}, prefixes: EXT_SCOPE_NAMES, es5, lines})\n    this.logger = getLogger(opts.logger)\n    const formatOpt = opts.validateFormats\n    opts.validateFormats = false\n\n    this.RULES = getRules()\n    checkOptions.call(this, removedOptions, opts, \"NOT SUPPORTED\")\n    checkOptions.call(this, deprecatedOptions, opts, \"DEPRECATED\", \"warn\")\n    this._metaOpts = getMetaSchemaOptions.call(this)\n\n    if (opts.formats) addInitialFormats.call(this)\n    this._addVocabularies()\n    this._addDefaultMetaSchema()\n    if (opts.keywords) addInitialKeywords.call(this, opts.keywords)\n    if (typeof opts.meta == \"object\") this.addMetaSchema(opts.meta)\n    addInitialSchemas.call(this)\n    opts.validateFormats = formatOpt\n  }\n\n  _addVocabularies(): void {\n    this.addKeyword(\"$async\")\n  }\n\n  _addDefaultMetaSchema(): void {\n    const {$data, meta, schemaId} = this.opts\n    let _dataRefSchema: SchemaObject = $dataRefSchema\n    if (schemaId === \"id\") {\n      _dataRefSchema = {...$dataRefSchema}\n      _dataRefSchema.id = _dataRefSchema.$id\n      delete _dataRefSchema.$id\n    }\n    if (meta && $data) this.addMetaSchema(_dataRefSchema, _dataRefSchema[schemaId], false)\n  }\n\n  defaultMeta(): string | AnySchemaObject | undefined {\n    const {meta, schemaId} = this.opts\n    return (this.opts.defaultMeta = typeof meta == \"object\" ? meta[schemaId] || meta : undefined)\n  }\n\n  // Validate data using schema\n  // AnySchema will be compiled and cached using schema itself as a key for Map\n  validate(schema: Schema | string, data: unknown): boolean\n  validate(schemaKeyRef: AnySchema | string, data: unknown): boolean | Promise\n  validate(schema: Schema | JSONSchemaType | string, data: unknown): data is T\n  // Separated for type inference to work\n  // eslint-disable-next-line @typescript-eslint/unified-signatures\n  validate(schema: JTDSchemaType, data: unknown): data is T\n  // This overload is only intended for typescript inference, the first\n  // argument prevents manual type annotation from matching this overload\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  validate(\n    schema: T,\n    data: unknown\n  ): data is JTDDataType\n  // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\n  validate(schema: AsyncSchema, data: unknown | T): Promise\n  validate(schemaKeyRef: AnySchema | string, data: unknown): data is T | Promise\n  validate(\n    schemaKeyRef: AnySchema | string, // key, ref or schema object\n    // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\n    data: unknown | T // to be validated\n  ): boolean | Promise {\n    let v: AnyValidateFunction | undefined\n    if (typeof schemaKeyRef == \"string\") {\n      v = this.getSchema(schemaKeyRef)\n      if (!v) throw new Error(`no schema with key or ref \"${schemaKeyRef}\"`)\n    } else {\n      v = this.compile(schemaKeyRef)\n    }\n\n    const valid = v(data)\n    if (!(\"$async\" in v)) this.errors = v.errors\n    return valid\n  }\n\n  // Create validation function for passed schema\n  // _meta: true if schema is a meta-schema. Used internally to compile meta schemas of user-defined keywords.\n  compile(schema: Schema | JSONSchemaType, _meta?: boolean): ValidateFunction\n  // Separated for type inference to work\n  // eslint-disable-next-line @typescript-eslint/unified-signatures\n  compile(schema: JTDSchemaType, _meta?: boolean): ValidateFunction\n  // This overload is only intended for typescript inference, the first\n  // argument prevents manual type annotation from matching this overload\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  compile(\n    schema: T,\n    _meta?: boolean\n  ): ValidateFunction>\n  compile(schema: AsyncSchema, _meta?: boolean): AsyncValidateFunction\n  compile(schema: AnySchema, _meta?: boolean): AnyValidateFunction\n  compile(schema: AnySchema, _meta?: boolean): AnyValidateFunction {\n    const sch = this._addSchema(schema, _meta)\n    return (sch.validate || this._compileSchemaEnv(sch)) as AnyValidateFunction\n  }\n\n  // Creates validating function for passed schema with asynchronous loading of missing schemas.\n  // `loadSchema` option should be a function that accepts schema uri and returns promise that resolves with the schema.\n  // TODO allow passing schema URI\n  // meta - optional true to compile meta-schema\n  compileAsync(\n    schema: SchemaObject | JSONSchemaType,\n    _meta?: boolean\n  ): Promise>\n  // Separated for type inference to work\n  // eslint-disable-next-line @typescript-eslint/unified-signatures\n  compileAsync(schema: JTDSchemaType, _meta?: boolean): Promise>\n  compileAsync(schema: AsyncSchema, meta?: boolean): Promise>\n  // eslint-disable-next-line @typescript-eslint/unified-signatures\n  compileAsync(\n    schema: AnySchemaObject,\n    meta?: boolean\n  ): Promise>\n  compileAsync(\n    schema: AnySchemaObject,\n    meta?: boolean\n  ): Promise> {\n    if (typeof this.opts.loadSchema != \"function\") {\n      throw new Error(\"options.loadSchema should be a function\")\n    }\n    const {loadSchema} = this.opts\n    return runCompileAsync.call(this, schema, meta)\n\n    async function runCompileAsync(\n      this: Ajv,\n      _schema: AnySchemaObject,\n      _meta?: boolean\n    ): Promise {\n      await loadMetaSchema.call(this, _schema.$schema)\n      const sch = this._addSchema(_schema, _meta)\n      return sch.validate || _compileAsync.call(this, sch)\n    }\n\n    async function loadMetaSchema(this: Ajv, $ref?: string): Promise {\n      if ($ref && !this.getSchema($ref)) {\n        await runCompileAsync.call(this, {$ref}, true)\n      }\n    }\n\n    async function _compileAsync(this: Ajv, sch: SchemaEnv): Promise {\n      try {\n        return this._compileSchemaEnv(sch)\n      } catch (e) {\n        if (!(e instanceof MissingRefError)) throw e\n        checkLoaded.call(this, e)\n        await loadMissingSchema.call(this, e.missingSchema)\n        return _compileAsync.call(this, sch)\n      }\n    }\n\n    function checkLoaded(this: Ajv, {missingSchema: ref, missingRef}: MissingRefError): void {\n      if (this.refs[ref]) {\n        throw new Error(`AnySchema ${ref} is loaded but ${missingRef} cannot be resolved`)\n      }\n    }\n\n    async function loadMissingSchema(this: Ajv, ref: string): Promise {\n      const _schema = await _loadSchema.call(this, ref)\n      if (!this.refs[ref]) await loadMetaSchema.call(this, _schema.$schema)\n      if (!this.refs[ref]) this.addSchema(_schema, ref, meta)\n    }\n\n    async function _loadSchema(this: Ajv, ref: string): Promise {\n      const p = this._loading[ref]\n      if (p) return p\n      try {\n        return await (this._loading[ref] = loadSchema(ref))\n      } finally {\n        delete this._loading[ref]\n      }\n    }\n  }\n\n  // Adds schema to the instance\n  addSchema(\n    schema: AnySchema | AnySchema[], // If array is passed, `key` will be ignored\n    key?: string, // Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`.\n    _meta?: boolean, // true if schema is a meta-schema. Used internally, addMetaSchema should be used instead.\n    _validateSchema = this.opts.validateSchema // false to skip schema validation. Used internally, option validateSchema should be used instead.\n  ): Ajv {\n    if (Array.isArray(schema)) {\n      for (const sch of schema) this.addSchema(sch, undefined, _meta, _validateSchema)\n      return this\n    }\n    let id: string | undefined\n    if (typeof schema === \"object\") {\n      const {schemaId} = this.opts\n      id = schema[schemaId]\n      if (id !== undefined && typeof id != \"string\") {\n        throw new Error(`schema ${schemaId} must be string`)\n      }\n    }\n    key = normalizeId(key || id)\n    this._checkUnique(key)\n    this.schemas[key] = this._addSchema(schema, _meta, key, _validateSchema, true)\n    return this\n  }\n\n  // Add schema that will be used to validate other schemas\n  // options in META_IGNORE_OPTIONS are alway set to false\n  addMetaSchema(\n    schema: AnySchemaObject,\n    key?: string, // schema key\n    _validateSchema = this.opts.validateSchema // false to skip schema validation, can be used to override validateSchema option for meta-schema\n  ): Ajv {\n    this.addSchema(schema, key, true, _validateSchema)\n    return this\n  }\n\n  //  Validate schema against its meta-schema\n  validateSchema(schema: AnySchema, throwOrLogError?: boolean): boolean | Promise {\n    if (typeof schema == \"boolean\") return true\n    let $schema: string | AnySchemaObject | undefined\n    $schema = schema.$schema\n    if ($schema !== undefined && typeof $schema != \"string\") {\n      throw new Error(\"$schema must be a string\")\n    }\n    $schema = $schema || this.opts.defaultMeta || this.defaultMeta()\n    if (!$schema) {\n      this.logger.warn(\"meta-schema not available\")\n      this.errors = null\n      return true\n    }\n    const valid = this.validate($schema, schema)\n    if (!valid && throwOrLogError) {\n      const message = \"schema is invalid: \" + this.errorsText()\n      if (this.opts.validateSchema === \"log\") this.logger.error(message)\n      else throw new Error(message)\n    }\n    return valid\n  }\n\n  // Get compiled schema by `key` or `ref`.\n  // (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id)\n  getSchema(keyRef: string): AnyValidateFunction | undefined {\n    let sch\n    while (typeof (sch = getSchEnv.call(this, keyRef)) == \"string\") keyRef = sch\n    if (sch === undefined) {\n      const {schemaId} = this.opts\n      const root = new SchemaEnv({schema: {}, schemaId})\n      sch = resolveSchema.call(this, root, keyRef)\n      if (!sch) return\n      this.refs[keyRef] = sch\n    }\n    return (sch.validate || this._compileSchemaEnv(sch)) as AnyValidateFunction | undefined\n  }\n\n  // Remove cached schema(s).\n  // If no parameter is passed all schemas but meta-schemas are removed.\n  // If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed.\n  // Even if schema is referenced by other schemas it still can be removed as other schemas have local references.\n  removeSchema(schemaKeyRef?: AnySchema | string | RegExp): Ajv {\n    if (schemaKeyRef instanceof RegExp) {\n      this._removeAllSchemas(this.schemas, schemaKeyRef)\n      this._removeAllSchemas(this.refs, schemaKeyRef)\n      return this\n    }\n    switch (typeof schemaKeyRef) {\n      case \"undefined\":\n        this._removeAllSchemas(this.schemas)\n        this._removeAllSchemas(this.refs)\n        this._cache.clear()\n        return this\n      case \"string\": {\n        const sch = getSchEnv.call(this, schemaKeyRef)\n        if (typeof sch == \"object\") this._cache.delete(sch.schema)\n        delete this.schemas[schemaKeyRef]\n        delete this.refs[schemaKeyRef]\n        return this\n      }\n      case \"object\": {\n        const cacheKey = schemaKeyRef\n        this._cache.delete(cacheKey)\n        let id = schemaKeyRef[this.opts.schemaId]\n        if (id) {\n          id = normalizeId(id)\n          delete this.schemas[id]\n          delete this.refs[id]\n        }\n        return this\n      }\n      default:\n        throw new Error(\"ajv.removeSchema: invalid parameter\")\n    }\n  }\n\n  // add \"vocabulary\" - a collection of keywords\n  addVocabulary(definitions: Vocabulary): Ajv {\n    for (const def of definitions) this.addKeyword(def)\n    return this\n  }\n\n  addKeyword(\n    kwdOrDef: string | KeywordDefinition,\n    def?: KeywordDefinition // deprecated\n  ): Ajv {\n    let keyword: string | string[]\n    if (typeof kwdOrDef == \"string\") {\n      keyword = kwdOrDef\n      if (typeof def == \"object\") {\n        this.logger.warn(\"these parameters are deprecated, see docs for addKeyword\")\n        def.keyword = keyword\n      }\n    } else if (typeof kwdOrDef == \"object\" && def === undefined) {\n      def = kwdOrDef\n      keyword = def.keyword\n      if (Array.isArray(keyword) && !keyword.length) {\n        throw new Error(\"addKeywords: keyword must be string or non-empty array\")\n      }\n    } else {\n      throw new Error(\"invalid addKeywords parameters\")\n    }\n\n    checkKeyword.call(this, keyword, def)\n    if (!def) {\n      eachItem(keyword, (kwd) => addRule.call(this, kwd))\n      return this\n    }\n    keywordMetaschema.call(this, def)\n    const definition: AddedKeywordDefinition = {\n      ...def,\n      type: getJSONTypes(def.type),\n      schemaType: getJSONTypes(def.schemaType),\n    }\n    eachItem(\n      keyword,\n      definition.type.length === 0\n        ? (k) => addRule.call(this, k, definition)\n        : (k) => definition.type.forEach((t) => addRule.call(this, k, definition, t))\n    )\n    return this\n  }\n\n  getKeyword(keyword: string): AddedKeywordDefinition | boolean {\n    const rule = this.RULES.all[keyword]\n    return typeof rule == \"object\" ? rule.definition : !!rule\n  }\n\n  // Remove keyword\n  removeKeyword(keyword: string): Ajv {\n    // TODO return type should be Ajv\n    const {RULES} = this\n    delete RULES.keywords[keyword]\n    delete RULES.all[keyword]\n    for (const group of RULES.rules) {\n      const i = group.rules.findIndex((rule) => rule.keyword === keyword)\n      if (i >= 0) group.rules.splice(i, 1)\n    }\n    return this\n  }\n\n  // Add format\n  addFormat(name: string, format: Format): Ajv {\n    if (typeof format == \"string\") format = new RegExp(format)\n    this.formats[name] = format\n    return this\n  }\n\n  errorsText(\n    errors: ErrorObject[] | null | undefined = this.errors, // optional array of validation errors\n    {separator = \", \", dataVar = \"data\"}: ErrorsTextOptions = {} // optional options with properties `separator` and `dataVar`\n  ): string {\n    if (!errors || errors.length === 0) return \"No errors\"\n    return errors\n      .map((e) => `${dataVar}${e.instancePath} ${e.message}`)\n      .reduce((text, msg) => text + separator + msg)\n  }\n\n  $dataMetaSchema(metaSchema: AnySchemaObject, keywordsJsonPointers: string[]): AnySchemaObject {\n    const rules = this.RULES.all\n    metaSchema = JSON.parse(JSON.stringify(metaSchema))\n    for (const jsonPointer of keywordsJsonPointers) {\n      const segments = jsonPointer.split(\"/\").slice(1) // first segment is an empty string\n      let keywords = metaSchema\n      for (const seg of segments) keywords = keywords[seg] as AnySchemaObject\n\n      for (const key in rules) {\n        const rule = rules[key]\n        if (typeof rule != \"object\") continue\n        const {$data} = rule.definition\n        const schema = keywords[key] as AnySchemaObject | undefined\n        if ($data && schema) keywords[key] = schemaOrData(schema)\n      }\n    }\n\n    return metaSchema\n  }\n\n  private _removeAllSchemas(schemas: {[Ref in string]?: SchemaEnv | string}, regex?: RegExp): void {\n    for (const keyRef in schemas) {\n      const sch = schemas[keyRef]\n      if (!regex || regex.test(keyRef)) {\n        if (typeof sch == \"string\") {\n          delete schemas[keyRef]\n        } else if (sch && !sch.meta) {\n          this._cache.delete(sch.schema)\n          delete schemas[keyRef]\n        }\n      }\n    }\n  }\n\n  _addSchema(\n    schema: AnySchema,\n    meta?: boolean,\n    baseId?: string,\n    validateSchema = this.opts.validateSchema,\n    addSchema = this.opts.addUsedSchema\n  ): SchemaEnv {\n    let id: string | undefined\n    const {schemaId} = this.opts\n    if (typeof schema == \"object\") {\n      id = schema[schemaId]\n    } else {\n      if (this.opts.jtd) throw new Error(\"schema must be object\")\n      else if (typeof schema != \"boolean\") throw new Error(\"schema must be object or boolean\")\n    }\n    let sch = this._cache.get(schema)\n    if (sch !== undefined) return sch\n\n    baseId = normalizeId(id || baseId)\n    const localRefs = getSchemaRefs.call(this, schema, baseId)\n    sch = new SchemaEnv({schema, schemaId, meta, baseId, localRefs})\n    this._cache.set(sch.schema, sch)\n    if (addSchema && !baseId.startsWith(\"#\")) {\n      // TODO atm it is allowed to overwrite schemas without id (instead of not adding them)\n      if (baseId) this._checkUnique(baseId)\n      this.refs[baseId] = sch\n    }\n    if (validateSchema) this.validateSchema(schema, true)\n    return sch\n  }\n\n  private _checkUnique(id: string): void {\n    if (this.schemas[id] || this.refs[id]) {\n      throw new Error(`schema with key or id \"${id}\" already exists`)\n    }\n  }\n\n  private _compileSchemaEnv(sch: SchemaEnv): AnyValidateFunction {\n    if (sch.meta) this._compileMetaSchema(sch)\n    else compileSchema.call(this, sch)\n\n    /* istanbul ignore if */\n    if (!sch.validate) throw new Error(\"ajv implementation error\")\n    return sch.validate\n  }\n\n  private _compileMetaSchema(sch: SchemaEnv): void {\n    const currentOpts = this.opts\n    this.opts = this._metaOpts\n    try {\n      compileSchema.call(this, sch)\n    } finally {\n      this.opts = currentOpts\n    }\n  }\n}\n\nexport interface ErrorsTextOptions {\n  separator?: string\n  dataVar?: string\n}\n\nfunction checkOptions(\n  this: Ajv,\n  checkOpts: OptionsInfo,\n  options: Options & RemovedOptions,\n  msg: string,\n  log: \"warn\" | \"error\" = \"error\"\n): void {\n  for (const key in checkOpts) {\n    const opt = key as keyof typeof checkOpts\n    if (opt in options) this.logger[log](`${msg}: option ${key}. ${checkOpts[opt]}`)\n  }\n}\n\nfunction getSchEnv(this: Ajv, keyRef: string): SchemaEnv | string | undefined {\n  keyRef = normalizeId(keyRef) // TODO tests fail without this line\n  return this.schemas[keyRef] || this.refs[keyRef]\n}\n\nfunction addInitialSchemas(this: Ajv): void {\n  const optsSchemas = this.opts.schemas\n  if (!optsSchemas) return\n  if (Array.isArray(optsSchemas)) this.addSchema(optsSchemas)\n  else for (const key in optsSchemas) this.addSchema(optsSchemas[key] as AnySchema, key)\n}\n\nfunction addInitialFormats(this: Ajv): void {\n  for (const name in this.opts.formats) {\n    const format = this.opts.formats[name]\n    if (format) this.addFormat(name, format)\n  }\n}\n\nfunction addInitialKeywords(\n  this: Ajv,\n  defs: Vocabulary | {[K in string]?: KeywordDefinition}\n): void {\n  if (Array.isArray(defs)) {\n    this.addVocabulary(defs)\n    return\n  }\n  this.logger.warn(\"keywords option as map is deprecated, pass array\")\n  for (const keyword in defs) {\n    const def = defs[keyword] as KeywordDefinition\n    if (!def.keyword) def.keyword = keyword\n    this.addKeyword(def)\n  }\n}\n\nfunction getMetaSchemaOptions(this: Ajv): InstanceOptions {\n  const metaOpts = {...this.opts}\n  for (const opt of META_IGNORE_OPTIONS) delete metaOpts[opt]\n  return metaOpts\n}\n\nconst noLogs = {log() {}, warn() {}, error() {}}\n\nfunction getLogger(logger?: Partial | false): Logger {\n  if (logger === false) return noLogs\n  if (logger === undefined) return console\n  if (logger.log && logger.warn && logger.error) return logger as Logger\n  throw new Error(\"logger must implement log, warn and error methods\")\n}\n\nconst KEYWORD_NAME = /^[a-z_$][a-z0-9_$:-]*$/i\n\nfunction checkKeyword(this: Ajv, keyword: string | string[], def?: KeywordDefinition): void {\n  const {RULES} = this\n  eachItem(keyword, (kwd) => {\n    if (RULES.keywords[kwd]) throw new Error(`Keyword ${kwd} is already defined`)\n    if (!KEYWORD_NAME.test(kwd)) throw new Error(`Keyword ${kwd} has invalid name`)\n  })\n  if (!def) return\n  if (def.$data && !(\"code\" in def || \"validate\" in def)) {\n    throw new Error('$data keyword must have \"code\" or \"validate\" function')\n  }\n}\n\nfunction addRule(\n  this: Ajv,\n  keyword: string,\n  definition?: AddedKeywordDefinition,\n  dataType?: JSONType\n): void {\n  const post = definition?.post\n  if (dataType && post) throw new Error('keyword with \"post\" flag cannot have \"type\"')\n  const {RULES} = this\n  let ruleGroup = post ? RULES.post : RULES.rules.find(({type: t}) => t === dataType)\n  if (!ruleGroup) {\n    ruleGroup = {type: dataType, rules: []}\n    RULES.rules.push(ruleGroup)\n  }\n  RULES.keywords[keyword] = true\n  if (!definition) return\n\n  const rule: Rule = {\n    keyword,\n    definition: {\n      ...definition,\n      type: getJSONTypes(definition.type),\n      schemaType: getJSONTypes(definition.schemaType),\n    },\n  }\n  if (definition.before) addBeforeRule.call(this, ruleGroup, rule, definition.before)\n  else ruleGroup.rules.push(rule)\n  RULES.all[keyword] = rule\n  definition.implements?.forEach((kwd) => this.addKeyword(kwd))\n}\n\nfunction addBeforeRule(this: Ajv, ruleGroup: RuleGroup, rule: Rule, before: string): void {\n  const i = ruleGroup.rules.findIndex((_rule) => _rule.keyword === before)\n  if (i >= 0) {\n    ruleGroup.rules.splice(i, 0, rule)\n  } else {\n    ruleGroup.rules.push(rule)\n    this.logger.warn(`rule ${before} is not defined`)\n  }\n}\n\nfunction keywordMetaschema(this: Ajv, def: KeywordDefinition): void {\n  let {metaSchema} = def\n  if (metaSchema === undefined) return\n  if (def.$data && this.opts.$data) metaSchema = schemaOrData(metaSchema)\n  def.validateSchema = this.compile(metaSchema, true)\n}\n\nconst $dataRef = {\n  $ref: \"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#\",\n}\n\nfunction schemaOrData(schema: AnySchema): AnySchemaObject {\n  return {anyOf: [schema, $dataRef]}\n}\n", "import type {CodeKeywordDefinition, AnySchema} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport MissingRefError from \"../../compile/ref_error\"\nimport {callValidateCode} from \"../code\"\nimport {_, nil, stringify, Code, Name} from \"../../compile/codegen\"\nimport N from \"../../compile/names\"\nimport {SchemaEnv, resolveRef} from \"../../compile\"\nimport {mergeEvaluated} from \"../../compile/util\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"$ref\",\n  schemaType: \"string\",\n  code(cxt: KeywordCxt): void {\n    const {gen, schema: $ref, it} = cxt\n    const {baseId, schemaEnv: env, validateName, opts, self} = it\n    const {root} = env\n    if (($ref === \"#\" || $ref === \"#/\") && baseId === root.baseId) return callRootRef()\n    const schOrEnv = resolveRef.call(self, root, baseId, $ref)\n    if (schOrEnv === undefined) throw new MissingRefError(it.opts.uriResolver, baseId, $ref)\n    if (schOrEnv instanceof SchemaEnv) return callValidate(schOrEnv)\n    return inlineRefSchema(schOrEnv)\n\n    function callRootRef(): void {\n      if (env === root) return callRef(cxt, validateName, env, env.$async)\n      const rootName = gen.scopeValue(\"root\", {ref: root})\n      return callRef(cxt, _`${rootName}.validate`, root, root.$async)\n    }\n\n    function callValidate(sch: SchemaEnv): void {\n      const v = getValidate(cxt, sch)\n      callRef(cxt, v, sch, sch.$async)\n    }\n\n    function inlineRefSchema(sch: AnySchema): void {\n      const schName = gen.scopeValue(\n        \"schema\",\n        opts.code.source === true ? {ref: sch, code: stringify(sch)} : {ref: sch}\n      )\n      const valid = gen.name(\"valid\")\n      const schCxt = cxt.subschema(\n        {\n          schema: sch,\n          dataTypes: [],\n          schemaPath: nil,\n          topSchemaRef: schName,\n          errSchemaPath: $ref,\n        },\n        valid\n      )\n      cxt.mergeEvaluated(schCxt)\n      cxt.ok(valid)\n    }\n  },\n}\n\nexport function getValidate(cxt: KeywordCxt, sch: SchemaEnv): Code {\n  const {gen} = cxt\n  return sch.validate\n    ? gen.scopeValue(\"validate\", {ref: sch.validate})\n    : _`${gen.scopeValue(\"wrapper\", {ref: sch})}.validate`\n}\n\nexport function callRef(cxt: KeywordCxt, v: Code, sch?: SchemaEnv, $async?: boolean): void {\n  const {gen, it} = cxt\n  const {allErrors, schemaEnv: env, opts} = it\n  const passCxt = opts.passContext ? N.this : nil\n  if ($async) callAsyncRef()\n  else callSyncRef()\n\n  function callAsyncRef(): void {\n    if (!env.$async) throw new Error(\"async schema referenced by sync schema\")\n    const valid = gen.let(\"valid\")\n    gen.try(\n      () => {\n        gen.code(_`await ${callValidateCode(cxt, v, passCxt)}`)\n        addEvaluatedFrom(v) // TODO will not work with async, it has to be returned with the result\n        if (!allErrors) gen.assign(valid, true)\n      },\n      (e) => {\n        gen.if(_`!(${e} instanceof ${it.ValidationError as Name})`, () => gen.throw(e))\n        addErrorsFrom(e)\n        if (!allErrors) gen.assign(valid, false)\n      }\n    )\n    cxt.ok(valid)\n  }\n\n  function callSyncRef(): void {\n    cxt.result(\n      callValidateCode(cxt, v, passCxt),\n      () => addEvaluatedFrom(v),\n      () => addErrorsFrom(v)\n    )\n  }\n\n  function addErrorsFrom(source: Code): void {\n    const errs = _`${source}.errors`\n    gen.assign(N.vErrors, _`${N.vErrors} === null ? ${errs} : ${N.vErrors}.concat(${errs})`) // TODO tagged\n    gen.assign(N.errors, _`${N.vErrors}.length`)\n  }\n\n  function addEvaluatedFrom(source: Code): void {\n    if (!it.opts.unevaluated) return\n    const schEvaluated = sch?.validate?.evaluated\n    // TODO refactor\n    if (it.props !== true) {\n      if (schEvaluated && !schEvaluated.dynamicProps) {\n        if (schEvaluated.props !== undefined) {\n          it.props = mergeEvaluated.props(gen, schEvaluated.props, it.props)\n        }\n      } else {\n        const props = gen.var(\"props\", _`${source}.evaluated.props`)\n        it.props = mergeEvaluated.props(gen, props, it.props, Name)\n      }\n    }\n    if (it.items !== true) {\n      if (schEvaluated && !schEvaluated.dynamicItems) {\n        if (schEvaluated.items !== undefined) {\n          it.items = mergeEvaluated.items(gen, schEvaluated.items, it.items)\n        }\n      } else {\n        const items = gen.var(\"items\", _`${source}.evaluated.items`)\n        it.items = mergeEvaluated.items(gen, items, it.items, Name)\n      }\n    }\n  }\n}\n\nexport default def\n", "import type {Vocabulary} from \"ajv/dist/core\"\nimport refKeyword from \"ajv/dist/vocabularies/core/ref\"\n\nconst core: Vocabulary = [\n  \"$schema\",\n  \"id\",\n  \"$defs\",\n  {keyword: \"$comment\"},\n  \"definitions\",\n  refKeyword,\n]\n\nexport default core\n", "import type {\n  CodeKeywordDefinition,\n  ErrorObject,\n  KeywordCxt,\n  KeywordErrorDefinition,\n} from \"ajv/dist/core\"\nimport type {KeywordErrorCxt} from \"ajv/dist/types\"\nimport {_, str, Code} from \"ajv/dist/core\"\nimport {operators} from \"ajv/dist/compile/codegen\"\n\nconst ops = operators\n\nexport type LimitKwd = \"maximum\" | \"minimum\"\n\nexport type ExclusiveLimitKwd = \"exclusiveMaximum\" | \"exclusiveMinimum\"\n\ntype Comparison = \"<=\" | \">=\" | \"<\" | \">\"\n\ninterface KwdOp {\n  okStr: Comparison\n  ok: Code\n  fail: Code\n}\n\ninterface KwdDef {\n  exclusive: ExclusiveLimitKwd\n  ops: [KwdOp, KwdOp]\n}\n\nconst KWDs: {[K in LimitKwd]: KwdDef} = {\n  maximum: {\n    exclusive: \"exclusiveMaximum\",\n    ops: [\n      {okStr: \"<=\", ok: ops.LTE, fail: ops.GT},\n      {okStr: \"<\", ok: ops.LT, fail: ops.GTE},\n    ],\n  },\n  minimum: {\n    exclusive: \"exclusiveMinimum\",\n    ops: [\n      {okStr: \">=\", ok: ops.GTE, fail: ops.LT},\n      {okStr: \">\", ok: ops.GT, fail: ops.LTE},\n    ],\n  },\n}\n\nexport type LimitNumberError = ErrorObject<\n  LimitKwd,\n  {limit: number; comparison: Comparison},\n  number | {$data: string}\n>\n\nconst error: KeywordErrorDefinition = {\n  message: (cxt) => str`must be ${kwdOp(cxt).okStr} ${cxt.schemaCode}`,\n  params: (cxt) => _`{comparison: ${kwdOp(cxt).okStr}, limit: ${cxt.schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: Object.keys(KWDs),\n  type: \"number\",\n  schemaType: \"number\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {data, schemaCode} = cxt\n    cxt.fail$data(_`${data} ${kwdOp(cxt).fail} ${schemaCode} || isNaN(${data})`)\n  },\n}\n\nfunction kwdOp(cxt: KeywordErrorCxt): KwdOp {\n  const keyword = cxt.keyword as LimitKwd\n  const opsIdx = cxt.parentSchema?.[KWDs[keyword].exclusive] ? 1 : 0\n  return KWDs[keyword].ops[opsIdx]\n}\n\nexport default def\n", "import type {\n  CodeKeywordDefinition,\n  // ErrorObject,\n  KeywordCxt,\n  // KeywordErrorDefinition,\n} from \"ajv/dist/core\"\nimport {LimitKwd, ExclusiveLimitKwd} from \"./limitNumber\"\n\nconst KWDs: {[K in ExclusiveLimitKwd]: LimitKwd} = {\n  exclusiveMaximum: \"maximum\",\n  exclusiveMinimum: \"minimum\",\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: Object.keys(KWDs),\n  type: \"number\",\n  schemaType: \"boolean\",\n  code({keyword, parentSchema}: KeywordCxt) {\n    const limitKwd = KWDs[keyword as ExclusiveLimitKwd]\n    if (parentSchema[limitKwd] === undefined) {\n      throw new Error(`${keyword} can only be used with ${limitKwd}`)\n    }\n  },\n}\n\nexport default def\n", "import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str} from \"../../compile/codegen\"\n\nexport type MultipleOfError = ErrorObject<\n  \"multipleOf\",\n  {multipleOf: number},\n  number | {$data: string}\n>\n\nconst error: KeywordErrorDefinition = {\n  message: ({schemaCode}) => str`must be multiple of ${schemaCode}`,\n  params: ({schemaCode}) => _`{multipleOf: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"multipleOf\",\n  type: \"number\",\n  schemaType: \"number\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, data, schemaCode, it} = cxt\n    // const bdt = bad$DataType(schemaCode, def.schemaType, $data)\n    const prec = it.opts.multipleOfPrecision\n    const res = gen.let(\"res\")\n    const invalid = prec\n      ? _`Math.abs(Math.round(${res}) - ${res}) > 1e-${prec}`\n      : _`${res} !== parseInt(${res})`\n    cxt.fail$data(_`(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`)\n  },\n}\n\nexport default def\n", "// https://mathiasbynens.be/notes/javascript-encoding\n// https://github.com/bestiejs/punycode.js - punycode.ucs2.decode\nexport default function ucs2length(str: string): number {\n  const len = str.length\n  let length = 0\n  let pos = 0\n  let value: number\n  while (pos < len) {\n    length++\n    value = str.charCodeAt(pos++)\n    if (value >= 0xd800 && value <= 0xdbff && pos < len) {\n      // high surrogate, and there is a next character\n      value = str.charCodeAt(pos)\n      if ((value & 0xfc00) === 0xdc00) pos++ // low surrogate\n    }\n  }\n  return length\n}\n\nucs2length.code = 'require(\"ajv/dist/runtime/ucs2length\").default'\n", "import type {CodeKeywordDefinition, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, operators} from \"../../compile/codegen\"\nimport {useFunc} from \"../../compile/util\"\nimport ucs2length from \"../../runtime/ucs2length\"\n\nconst error: KeywordErrorDefinition = {\n  message({keyword, schemaCode}) {\n    const comp = keyword === \"maxLength\" ? \"more\" : \"fewer\"\n    return str`must NOT have ${comp} than ${schemaCode} characters`\n  },\n  params: ({schemaCode}) => _`{limit: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: [\"maxLength\", \"minLength\"],\n  type: \"string\",\n  schemaType: \"number\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {keyword, data, schemaCode, it} = cxt\n    const op = keyword === \"maxLength\" ? operators.GT : operators.LT\n    const len =\n      it.opts.unicode === false ? _`${data}.length` : _`${useFunc(cxt.gen, ucs2length)}(${data})`\n    cxt.fail$data(_`${len} ${op} ${schemaCode}`)\n  },\n}\n\nexport default def\n", "import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {usePattern} from \"../code\"\nimport {_, str} from \"../../compile/codegen\"\n\nexport type PatternError = ErrorObject<\"pattern\", {pattern: string}, string | {$data: string}>\n\nconst error: KeywordErrorDefinition = {\n  message: ({schemaCode}) => str`must match pattern \"${schemaCode}\"`,\n  params: ({schemaCode}) => _`{pattern: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"pattern\",\n  type: \"string\",\n  schemaType: \"string\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {data, $data, schema, schemaCode, it} = cxt\n    // TODO regexp should be wrapped in try/catchs\n    const u = it.opts.unicodeRegExp ? \"u\" : \"\"\n    const regExp = $data ? _`(new RegExp(${schemaCode}, ${u}))` : usePattern(cxt, schema)\n    cxt.fail$data(_`!${regExp}.test(${data})`)\n  },\n}\n\nexport default def\n", "import type {CodeKeywordDefinition, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, operators} from \"../../compile/codegen\"\n\nconst error: KeywordErrorDefinition = {\n  message({keyword, schemaCode}) {\n    const comp = keyword === \"maxProperties\" ? \"more\" : \"fewer\"\n    return str`must NOT have ${comp} than ${schemaCode} properties`\n  },\n  params: ({schemaCode}) => _`{limit: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: [\"maxProperties\", \"minProperties\"],\n  type: \"object\",\n  schemaType: \"number\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {keyword, data, schemaCode} = cxt\n    const op = keyword === \"maxProperties\" ? operators.GT : operators.LT\n    cxt.fail$data(_`Object.keys(${data}).length ${op} ${schemaCode}`)\n  },\n}\n\nexport default def\n", "import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {\n  checkReportMissingProp,\n  checkMissingProp,\n  reportMissingProp,\n  propertyInData,\n  noPropertyInData,\n} from \"../code\"\nimport {_, str, nil, not, Name, Code} from \"../../compile/codegen\"\nimport {checkStrictMode} from \"../../compile/util\"\n\nexport type RequiredError = ErrorObject<\n  \"required\",\n  {missingProperty: string},\n  string[] | {$data: string}\n>\n\nconst error: KeywordErrorDefinition = {\n  message: ({params: {missingProperty}}) => str`must have required property '${missingProperty}'`,\n  params: ({params: {missingProperty}}) => _`{missingProperty: ${missingProperty}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"required\",\n  type: \"object\",\n  schemaType: \"array\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, schema, schemaCode, data, $data, it} = cxt\n    const {opts} = it\n    if (!$data && schema.length === 0) return\n    const useLoop = schema.length >= opts.loopRequired\n    if (it.allErrors) allErrorsMode()\n    else exitOnErrorMode()\n\n    if (opts.strictRequired) {\n      const props = cxt.parentSchema.properties\n      const {definedProperties} = cxt.it\n      for (const requiredKey of schema) {\n        if (props?.[requiredKey] === undefined && !definedProperties.has(requiredKey)) {\n          const schemaPath = it.schemaEnv.baseId + it.errSchemaPath\n          const msg = `required property \"${requiredKey}\" is not defined at \"${schemaPath}\" (strictRequired)`\n          checkStrictMode(it, msg, it.opts.strictRequired)\n        }\n      }\n    }\n\n    function allErrorsMode(): void {\n      if (useLoop || $data) {\n        cxt.block$data(nil, loopAllRequired)\n      } else {\n        for (const prop of schema) {\n          checkReportMissingProp(cxt, prop)\n        }\n      }\n    }\n\n    function exitOnErrorMode(): void {\n      const missing = gen.let(\"missing\")\n      if (useLoop || $data) {\n        const valid = gen.let(\"valid\", true)\n        cxt.block$data(valid, () => loopUntilMissing(missing, valid))\n        cxt.ok(valid)\n      } else {\n        gen.if(checkMissingProp(cxt, schema, missing))\n        reportMissingProp(cxt, missing)\n        gen.else()\n      }\n    }\n\n    function loopAllRequired(): void {\n      gen.forOf(\"prop\", schemaCode as Code, (prop) => {\n        cxt.setParams({missingProperty: prop})\n        gen.if(noPropertyInData(gen, data, prop, opts.ownProperties), () => cxt.error())\n      })\n    }\n\n    function loopUntilMissing(missing: Name, valid: Name): void {\n      cxt.setParams({missingProperty: missing})\n      gen.forOf(\n        missing,\n        schemaCode as Code,\n        () => {\n          gen.assign(valid, propertyInData(gen, data, missing, opts.ownProperties))\n          gen.if(not(valid), () => {\n            cxt.error()\n            gen.break()\n          })\n        },\n        nil\n      )\n    }\n  },\n}\n\nexport default def\n", "import type {CodeKeywordDefinition, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, operators} from \"../../compile/codegen\"\n\nconst error: KeywordErrorDefinition = {\n  message({keyword, schemaCode}) {\n    const comp = keyword === \"maxItems\" ? \"more\" : \"fewer\"\n    return str`must NOT have ${comp} than ${schemaCode} items`\n  },\n  params: ({schemaCode}) => _`{limit: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: [\"maxItems\", \"minItems\"],\n  type: \"array\",\n  schemaType: \"number\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {keyword, data, schemaCode} = cxt\n    const op = keyword === \"maxItems\" ? operators.GT : operators.LT\n    cxt.fail$data(_`${data}.length ${op} ${schemaCode}`)\n  },\n}\n\nexport default def\n", "// https://github.com/ajv-validator/ajv/issues/889\nimport * as equal from \"fast-deep-equal\"\n\ntype Equal = typeof equal & {code: string}\n;(equal as Equal).code = 'require(\"ajv/dist/runtime/equal\").default'\n\nexport default equal as Equal\n", "import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {checkDataTypes, getSchemaTypes, DataType} from \"../../compile/validate/dataType\"\nimport {_, str, Name} from \"../../compile/codegen\"\nimport {useFunc} from \"../../compile/util\"\nimport equal from \"../../runtime/equal\"\n\nexport type UniqueItemsError = ErrorObject<\n  \"uniqueItems\",\n  {i: number; j: number},\n  boolean | {$data: string}\n>\n\nconst error: KeywordErrorDefinition = {\n  message: ({params: {i, j}}) =>\n    str`must NOT have duplicate items (items ## ${j} and ${i} are identical)`,\n  params: ({params: {i, j}}) => _`{i: ${i}, j: ${j}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"uniqueItems\",\n  type: \"array\",\n  schemaType: \"boolean\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, data, $data, schema, parentSchema, schemaCode, it} = cxt\n    if (!$data && !schema) return\n    const valid = gen.let(\"valid\")\n    const itemTypes = parentSchema.items ? getSchemaTypes(parentSchema.items) : []\n    cxt.block$data(valid, validateUniqueItems, _`${schemaCode} === false`)\n    cxt.ok(valid)\n\n    function validateUniqueItems(): void {\n      const i = gen.let(\"i\", _`${data}.length`)\n      const j = gen.let(\"j\")\n      cxt.setParams({i, j})\n      gen.assign(valid, true)\n      gen.if(_`${i} > 1`, () => (canOptimize() ? loopN : loopN2)(i, j))\n    }\n\n    function canOptimize(): boolean {\n      return itemTypes.length > 0 && !itemTypes.some((t) => t === \"object\" || t === \"array\")\n    }\n\n    function loopN(i: Name, j: Name): void {\n      const item = gen.name(\"item\")\n      const wrongType = checkDataTypes(itemTypes, item, it.opts.strictNumbers, DataType.Wrong)\n      const indices = gen.const(\"indices\", _`{}`)\n      gen.for(_`;${i}--;`, () => {\n        gen.let(item, _`${data}[${i}]`)\n        gen.if(wrongType, _`continue`)\n        if (itemTypes.length > 1) gen.if(_`typeof ${item} == \"string\"`, _`${item} += \"_\"`)\n        gen\n          .if(_`typeof ${indices}[${item}] == \"number\"`, () => {\n            gen.assign(j, _`${indices}[${item}]`)\n            cxt.error()\n            gen.assign(valid, false).break()\n          })\n          .code(_`${indices}[${item}] = ${i}`)\n      })\n    }\n\n    function loopN2(i: Name, j: Name): void {\n      const eql = useFunc(gen, equal)\n      const outer = gen.name(\"outer\")\n      gen.label(outer).for(_`;${i}--;`, () =>\n        gen.for(_`${j} = ${i}; ${j}--;`, () =>\n          gen.if(_`${eql}(${data}[${i}], ${data}[${j}])`, () => {\n            cxt.error()\n            gen.assign(valid, false).break(outer)\n          })\n        )\n      )\n    }\n  },\n}\n\nexport default def\n", "import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_} from \"../../compile/codegen\"\nimport {useFunc} from \"../../compile/util\"\nimport equal from \"../../runtime/equal\"\n\nexport type ConstError = ErrorObject<\"const\", {allowedValue: any}>\n\nconst error: KeywordErrorDefinition = {\n  message: \"must be equal to constant\",\n  params: ({schemaCode}) => _`{allowedValue: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"const\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, data, $data, schemaCode, schema} = cxt\n    if ($data || (schema && typeof schema == \"object\")) {\n      cxt.fail$data(_`!${useFunc(gen, equal)}(${data}, ${schemaCode})`)\n    } else {\n      cxt.fail(_`${schema} !== ${data}`)\n    }\n  },\n}\n\nexport default def\n", "import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, or, Name, Code} from \"../../compile/codegen\"\nimport {useFunc} from \"../../compile/util\"\nimport equal from \"../../runtime/equal\"\n\nexport type EnumError = ErrorObject<\"enum\", {allowedValues: any[]}, any[] | {$data: string}>\n\nconst error: KeywordErrorDefinition = {\n  message: \"must be equal to one of the allowed values\",\n  params: ({schemaCode}) => _`{allowedValues: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"enum\",\n  schemaType: \"array\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, data, $data, schema, schemaCode, it} = cxt\n    if (!$data && schema.length === 0) throw new Error(\"enum must have non-empty array\")\n    const useLoop = schema.length >= it.opts.loopEnum\n    let eql: Name | undefined\n    const getEql = (): Name => (eql ??= useFunc(gen, equal))\n\n    let valid: Code\n    if (useLoop || $data) {\n      valid = gen.let(\"valid\")\n      cxt.block$data(valid, loopEnum)\n    } else {\n      /* istanbul ignore if */\n      if (!Array.isArray(schema)) throw new Error(\"ajv implementation error\")\n      const vSchema = gen.const(\"vSchema\", schemaCode)\n      valid = or(...schema.map((_x: unknown, i: number) => equalCode(vSchema, i)))\n    }\n    cxt.pass(valid)\n\n    function loopEnum(): void {\n      gen.assign(valid, false)\n      gen.forOf(\"v\", schemaCode as Code, (v) =>\n        gen.if(_`${getEql()}(${data}, ${v})`, () => gen.assign(valid, true).break())\n      )\n    }\n\n    function equalCode(vSchema: Name, i: number): Code {\n      const sch = schema[i]\n      return typeof sch === \"object\" && sch !== null\n        ? _`${getEql()}(${data}, ${vSchema}[${i}])`\n        : _`${data} === ${sch}`\n    }\n  },\n}\n\nexport default def\n", "import type {ErrorObject, Vocabulary} from \"ajv/dist/core\"\nimport limitNumber, {LimitNumberError} from \"./limitNumber\"\nimport limitNumberExclusive from \"./limitNumberExclusive\"\nimport multipleOf, {MultipleOfError} from \"ajv/dist/vocabularies/validation/multipleOf\"\nimport limitLength from \"ajv/dist/vocabularies/validation/limitLength\"\nimport pattern, {PatternError} from \"ajv/dist/vocabularies/validation/pattern\"\nimport limitProperties from \"ajv/dist/vocabularies/validation/limitProperties\"\nimport required, {RequiredError} from \"ajv/dist/vocabularies/validation/required\"\nimport limitItems from \"ajv/dist/vocabularies/validation/limitItems\"\nimport uniqueItems, {UniqueItemsError} from \"ajv/dist/vocabularies/validation/uniqueItems\"\nimport constKeyword, {ConstError} from \"ajv/dist/vocabularies/validation/const\"\nimport enumKeyword, {EnumError} from \"ajv/dist/vocabularies/validation/enum\"\n\nconst validation: Vocabulary = [\n  // number\n  limitNumber,\n  limitNumberExclusive,\n  multipleOf,\n  // string\n  limitLength,\n  pattern,\n  // object\n  limitProperties,\n  required,\n  // array\n  limitItems,\n  uniqueItems,\n  // any\n  {keyword: \"type\", schemaType: [\"string\", \"array\"]},\n  {keyword: \"nullable\", schemaType: \"boolean\"},\n  constKeyword,\n  enumKeyword,\n]\n\nexport default validation\n\ntype LimitError = ErrorObject<\n  \"maxItems\" | \"minItems\" | \"minProperties\" | \"maxProperties\" | \"minLength\" | \"maxLength\",\n  {limit: number},\n  number | {$data: string}\n>\n\nexport type ValidationKeywordError =\n  | LimitError\n  | LimitNumberError\n  | MultipleOfError\n  | PatternError\n  | RequiredError\n  | UniqueItemsError\n  | ConstError\n  | EnumError\n", "import type {\n  CodeKeywordDefinition,\n  ErrorObject,\n  KeywordErrorDefinition,\n  AnySchema,\n} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, not, Name} from \"../../compile/codegen\"\nimport {alwaysValidSchema, checkStrictMode, Type} from \"../../compile/util\"\n\nexport type AdditionalItemsError = ErrorObject<\"additionalItems\", {limit: number}, AnySchema>\n\nconst error: KeywordErrorDefinition = {\n  message: ({params: {len}}) => str`must NOT have more than ${len} items`,\n  params: ({params: {len}}) => _`{limit: ${len}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"additionalItems\" as const,\n  type: \"array\",\n  schemaType: [\"boolean\", \"object\"],\n  before: \"uniqueItems\",\n  error,\n  code(cxt: KeywordCxt) {\n    const {parentSchema, it} = cxt\n    const {items} = parentSchema\n    if (!Array.isArray(items)) {\n      checkStrictMode(it, '\"additionalItems\" is ignored when \"items\" is not an array of schemas')\n      return\n    }\n    validateAdditionalItems(cxt, items)\n  },\n}\n\nexport function validateAdditionalItems(cxt: KeywordCxt, items: AnySchema[]): void {\n  const {gen, schema, data, keyword, it} = cxt\n  it.items = true\n  const len = gen.const(\"len\", _`${data}.length`)\n  if (schema === false) {\n    cxt.setParams({len: items.length})\n    cxt.pass(_`${len} <= ${items.length}`)\n  } else if (typeof schema == \"object\" && !alwaysValidSchema(it, schema)) {\n    const valid = gen.var(\"valid\", _`${len} <= ${items.length}`) // TODO var\n    gen.if(not(valid), () => validateItems(valid))\n    cxt.ok(valid)\n  }\n\n  function validateItems(valid: Name): void {\n    gen.forRange(\"i\", items.length, len, (i) => {\n      cxt.subschema({keyword, dataProp: i, dataPropType: Type.Num}, valid)\n      if (!it.allErrors) gen.if(not(valid), () => gen.break())\n    })\n  }\n}\n\nexport default def\n", "import type {CodeKeywordDefinition, AnySchema, AnySchemaObject} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_} from \"../../compile/codegen\"\nimport {alwaysValidSchema, mergeEvaluated, checkStrictMode} from \"../../compile/util\"\nimport {validateArray} from \"../code\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"items\",\n  type: \"array\",\n  schemaType: [\"object\", \"array\", \"boolean\"],\n  before: \"uniqueItems\",\n  code(cxt: KeywordCxt) {\n    const {schema, it} = cxt\n    if (Array.isArray(schema)) return validateTuple(cxt, \"additionalItems\", schema)\n    it.items = true\n    if (alwaysValidSchema(it, schema)) return\n    cxt.ok(validateArray(cxt))\n  },\n}\n\nexport function validateTuple(\n  cxt: KeywordCxt,\n  extraItems: string,\n  schArr: AnySchema[] = cxt.schema\n): void {\n  const {gen, parentSchema, data, keyword, it} = cxt\n  checkStrictTuple(parentSchema)\n  if (it.opts.unevaluated && schArr.length && it.items !== true) {\n    it.items = mergeEvaluated.items(gen, schArr.length, it.items)\n  }\n  const valid = gen.name(\"valid\")\n  const len = gen.const(\"len\", _`${data}.length`)\n  schArr.forEach((sch: AnySchema, i: number) => {\n    if (alwaysValidSchema(it, sch)) return\n    gen.if(_`${len} > ${i}`, () =>\n      cxt.subschema(\n        {\n          keyword,\n          schemaProp: i,\n          dataProp: i,\n        },\n        valid\n      )\n    )\n    cxt.ok(valid)\n  })\n\n  function checkStrictTuple(sch: AnySchemaObject): void {\n    const {opts, errSchemaPath} = it\n    const l = schArr.length\n    const fullTuple = l === sch.minItems && (l === sch.maxItems || sch[extraItems] === false)\n    if (opts.strictTuples && !fullTuple) {\n      const msg = `\"${keyword}\" is ${l}-tuple, but minItems or maxItems/${extraItems} are not specified or different at path \"${errSchemaPath}\"`\n      checkStrictMode(it, msg, opts.strictTuples)\n    }\n  }\n}\n\nexport default def\n", "import type {CodeKeywordDefinition} from \"../../types\"\nimport {validateTuple} from \"./items\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"prefixItems\",\n  type: \"array\",\n  schemaType: [\"array\"],\n  before: \"uniqueItems\",\n  code: (cxt) => validateTuple(cxt, \"items\"),\n}\n\nexport default def\n", "import type {\n  CodeKeywordDefinition,\n  KeywordErrorDefinition,\n  ErrorObject,\n  AnySchema,\n} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str} from \"../../compile/codegen\"\nimport {alwaysValidSchema} from \"../../compile/util\"\nimport {validateArray} from \"../code\"\nimport {validateAdditionalItems} from \"./additionalItems\"\n\nexport type ItemsError = ErrorObject<\"items\", {limit: number}, AnySchema>\n\nconst error: KeywordErrorDefinition = {\n  message: ({params: {len}}) => str`must NOT have more than ${len} items`,\n  params: ({params: {len}}) => _`{limit: ${len}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"items\",\n  type: \"array\",\n  schemaType: [\"object\", \"boolean\"],\n  before: \"uniqueItems\",\n  error,\n  code(cxt: KeywordCxt) {\n    const {schema, parentSchema, it} = cxt\n    const {prefixItems} = parentSchema\n    it.items = true\n    if (alwaysValidSchema(it, schema)) return\n    if (prefixItems) validateAdditionalItems(cxt, prefixItems)\n    else cxt.ok(validateArray(cxt))\n  },\n}\n\nexport default def\n", "import type {\n  CodeKeywordDefinition,\n  KeywordErrorDefinition,\n  ErrorObject,\n  AnySchema,\n} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, Name} from \"../../compile/codegen\"\nimport {alwaysValidSchema, checkStrictMode, Type} from \"../../compile/util\"\n\nexport type ContainsError = ErrorObject<\n  \"contains\",\n  {minContains: number; maxContains?: number},\n  AnySchema\n>\n\nconst error: KeywordErrorDefinition = {\n  message: ({params: {min, max}}) =>\n    max === undefined\n      ? str`must contain at least ${min} valid item(s)`\n      : str`must contain at least ${min} and no more than ${max} valid item(s)`,\n  params: ({params: {min, max}}) =>\n    max === undefined ? _`{minContains: ${min}}` : _`{minContains: ${min}, maxContains: ${max}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"contains\",\n  type: \"array\",\n  schemaType: [\"object\", \"boolean\"],\n  before: \"uniqueItems\",\n  trackErrors: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, schema, parentSchema, data, it} = cxt\n    let min: number\n    let max: number | undefined\n    const {minContains, maxContains} = parentSchema\n    if (it.opts.next) {\n      min = minContains === undefined ? 1 : minContains\n      max = maxContains\n    } else {\n      min = 1\n    }\n    const len = gen.const(\"len\", _`${data}.length`)\n    cxt.setParams({min, max})\n    if (max === undefined && min === 0) {\n      checkStrictMode(it, `\"minContains\" == 0 without \"maxContains\": \"contains\" keyword ignored`)\n      return\n    }\n    if (max !== undefined && min > max) {\n      checkStrictMode(it, `\"minContains\" > \"maxContains\" is always invalid`)\n      cxt.fail()\n      return\n    }\n    if (alwaysValidSchema(it, schema)) {\n      let cond = _`${len} >= ${min}`\n      if (max !== undefined) cond = _`${cond} && ${len} <= ${max}`\n      cxt.pass(cond)\n      return\n    }\n\n    it.items = true\n    const valid = gen.name(\"valid\")\n    if (max === undefined && min === 1) {\n      validateItems(valid, () => gen.if(valid, () => gen.break()))\n    } else if (min === 0) {\n      gen.let(valid, true)\n      if (max !== undefined) gen.if(_`${data}.length > 0`, validateItemsWithCount)\n    } else {\n      gen.let(valid, false)\n      validateItemsWithCount()\n    }\n    cxt.result(valid, () => cxt.reset())\n\n    function validateItemsWithCount(): void {\n      const schValid = gen.name(\"_valid\")\n      const count = gen.let(\"count\", 0)\n      validateItems(schValid, () => gen.if(schValid, () => checkLimits(count)))\n    }\n\n    function validateItems(_valid: Name, block: () => void): void {\n      gen.forRange(\"i\", 0, len, (i) => {\n        cxt.subschema(\n          {\n            keyword: \"contains\",\n            dataProp: i,\n            dataPropType: Type.Num,\n            compositeRule: true,\n          },\n          _valid\n        )\n        block()\n      })\n    }\n\n    function checkLimits(count: Name): void {\n      gen.code(_`${count}++`)\n      if (max === undefined) {\n        gen.if(_`${count} >= ${min}`, () => gen.assign(valid, true).break())\n      } else {\n        gen.if(_`${count} > ${max}`, () => gen.assign(valid, false).break())\n        if (min === 1) gen.assign(valid, true)\n        else gen.if(_`${count} >= ${min}`, () => gen.assign(valid, true))\n      }\n    }\n  },\n}\n\nexport default def\n", "import type {\n  CodeKeywordDefinition,\n  ErrorObject,\n  KeywordErrorDefinition,\n  SchemaMap,\n  AnySchema,\n} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str} from \"../../compile/codegen\"\nimport {alwaysValidSchema} from \"../../compile/util\"\nimport {checkReportMissingProp, checkMissingProp, reportMissingProp, propertyInData} from \"../code\"\n\nexport type PropertyDependencies = {[K in string]?: string[]}\n\nexport interface DependenciesErrorParams {\n  property: string\n  missingProperty: string\n  depsCount: number\n  deps: string // TODO change to string[]\n}\n\ntype SchemaDependencies = SchemaMap\n\nexport type DependenciesError = ErrorObject<\n  \"dependencies\",\n  DependenciesErrorParams,\n  {[K in string]?: string[] | AnySchema}\n>\n\nexport const error: KeywordErrorDefinition = {\n  message: ({params: {property, depsCount, deps}}) => {\n    const property_ies = depsCount === 1 ? \"property\" : \"properties\"\n    return str`must have ${property_ies} ${deps} when property ${property} is present`\n  },\n  params: ({params: {property, depsCount, deps, missingProperty}}) =>\n    _`{property: ${property},\n    missingProperty: ${missingProperty},\n    depsCount: ${depsCount},\n    deps: ${deps}}`, // TODO change to reference\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"dependencies\",\n  type: \"object\",\n  schemaType: \"object\",\n  error,\n  code(cxt: KeywordCxt) {\n    const [propDeps, schDeps] = splitDependencies(cxt)\n    validatePropertyDeps(cxt, propDeps)\n    validateSchemaDeps(cxt, schDeps)\n  },\n}\n\nfunction splitDependencies({schema}: KeywordCxt): [PropertyDependencies, SchemaDependencies] {\n  const propertyDeps: PropertyDependencies = {}\n  const schemaDeps: SchemaDependencies = {}\n  for (const key in schema) {\n    if (key === \"__proto__\") continue\n    const deps = Array.isArray(schema[key]) ? propertyDeps : schemaDeps\n    deps[key] = schema[key]\n  }\n  return [propertyDeps, schemaDeps]\n}\n\nexport function validatePropertyDeps(\n  cxt: KeywordCxt,\n  propertyDeps: {[K in string]?: string[]} = cxt.schema\n): void {\n  const {gen, data, it} = cxt\n  if (Object.keys(propertyDeps).length === 0) return\n  const missing = gen.let(\"missing\")\n  for (const prop in propertyDeps) {\n    const deps = propertyDeps[prop] as string[]\n    if (deps.length === 0) continue\n    const hasProperty = propertyInData(gen, data, prop, it.opts.ownProperties)\n    cxt.setParams({\n      property: prop,\n      depsCount: deps.length,\n      deps: deps.join(\", \"),\n    })\n    if (it.allErrors) {\n      gen.if(hasProperty, () => {\n        for (const depProp of deps) {\n          checkReportMissingProp(cxt, depProp)\n        }\n      })\n    } else {\n      gen.if(_`${hasProperty} && (${checkMissingProp(cxt, deps, missing)})`)\n      reportMissingProp(cxt, missing)\n      gen.else()\n    }\n  }\n}\n\nexport function validateSchemaDeps(cxt: KeywordCxt, schemaDeps: SchemaMap = cxt.schema): void {\n  const {gen, data, keyword, it} = cxt\n  const valid = gen.name(\"valid\")\n  for (const prop in schemaDeps) {\n    if (alwaysValidSchema(it, schemaDeps[prop] as AnySchema)) continue\n    gen.if(\n      propertyInData(gen, data, prop, it.opts.ownProperties),\n      () => {\n        const schCxt = cxt.subschema({keyword, schemaProp: prop}, valid)\n        cxt.mergeValidEvaluated(schCxt, valid)\n      },\n      () => gen.var(valid, true) // TODO var\n    )\n    cxt.ok(valid)\n  }\n}\n\nexport default def\n", "import type {\n  CodeKeywordDefinition,\n  ErrorObject,\n  KeywordErrorDefinition,\n  AnySchema,\n} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, not} from \"../../compile/codegen\"\nimport {alwaysValidSchema} from \"../../compile/util\"\n\nexport type PropertyNamesError = ErrorObject<\"propertyNames\", {propertyName: string}, AnySchema>\n\nconst error: KeywordErrorDefinition = {\n  message: \"property name must be valid\",\n  params: ({params}) => _`{propertyName: ${params.propertyName}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"propertyNames\",\n  type: \"object\",\n  schemaType: [\"object\", \"boolean\"],\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, schema, data, it} = cxt\n    if (alwaysValidSchema(it, schema)) return\n    const valid = gen.name(\"valid\")\n\n    gen.forIn(\"key\", data, (key) => {\n      cxt.setParams({propertyName: key})\n      cxt.subschema(\n        {\n          keyword: \"propertyNames\",\n          data: key,\n          dataTypes: [\"string\"],\n          propertyName: key,\n          compositeRule: true,\n        },\n        valid\n      )\n      gen.if(not(valid), () => {\n        cxt.error(true)\n        if (!it.allErrors) gen.break()\n      })\n    })\n\n    cxt.ok(valid)\n  },\n}\n\nexport default def\n", "import type {\n  CodeKeywordDefinition,\n  AddedKeywordDefinition,\n  ErrorObject,\n  KeywordErrorDefinition,\n  AnySchema,\n} from \"../../types\"\nimport {allSchemaProperties, usePattern, isOwnProperty} from \"../code\"\nimport {_, nil, or, not, Code, Name} from \"../../compile/codegen\"\nimport N from \"../../compile/names\"\nimport type {SubschemaArgs} from \"../../compile/validate/subschema\"\nimport {alwaysValidSchema, schemaRefOrVal, Type} from \"../../compile/util\"\n\nexport type AdditionalPropertiesError = ErrorObject<\n  \"additionalProperties\",\n  {additionalProperty: string},\n  AnySchema\n>\n\nconst error: KeywordErrorDefinition = {\n  message: \"must NOT have additional properties\",\n  params: ({params}) => _`{additionalProperty: ${params.additionalProperty}}`,\n}\n\nconst def: CodeKeywordDefinition & AddedKeywordDefinition = {\n  keyword: \"additionalProperties\",\n  type: [\"object\"],\n  schemaType: [\"boolean\", \"object\"],\n  allowUndefined: true,\n  trackErrors: true,\n  error,\n  code(cxt) {\n    const {gen, schema, parentSchema, data, errsCount, it} = cxt\n    /* istanbul ignore if */\n    if (!errsCount) throw new Error(\"ajv implementation error\")\n    const {allErrors, opts} = it\n    it.props = true\n    if (opts.removeAdditional !== \"all\" && alwaysValidSchema(it, schema)) return\n    const props = allSchemaProperties(parentSchema.properties)\n    const patProps = allSchemaProperties(parentSchema.patternProperties)\n    checkAdditionalProperties()\n    cxt.ok(_`${errsCount} === ${N.errors}`)\n\n    function checkAdditionalProperties(): void {\n      gen.forIn(\"key\", data, (key: Name) => {\n        if (!props.length && !patProps.length) additionalPropertyCode(key)\n        else gen.if(isAdditional(key), () => additionalPropertyCode(key))\n      })\n    }\n\n    function isAdditional(key: Name): Code {\n      let definedProp: Code\n      if (props.length > 8) {\n        // TODO maybe an option instead of hard-coded 8?\n        const propsSchema = schemaRefOrVal(it, parentSchema.properties, \"properties\")\n        definedProp = isOwnProperty(gen, propsSchema as Code, key)\n      } else if (props.length) {\n        definedProp = or(...props.map((p) => _`${key} === ${p}`))\n      } else {\n        definedProp = nil\n      }\n      if (patProps.length) {\n        definedProp = or(definedProp, ...patProps.map((p) => _`${usePattern(cxt, p)}.test(${key})`))\n      }\n      return not(definedProp)\n    }\n\n    function deleteAdditional(key: Name): void {\n      gen.code(_`delete ${data}[${key}]`)\n    }\n\n    function additionalPropertyCode(key: Name): void {\n      if (opts.removeAdditional === \"all\" || (opts.removeAdditional && schema === false)) {\n        deleteAdditional(key)\n        return\n      }\n\n      if (schema === false) {\n        cxt.setParams({additionalProperty: key})\n        cxt.error()\n        if (!allErrors) gen.break()\n        return\n      }\n\n      if (typeof schema == \"object\" && !alwaysValidSchema(it, schema)) {\n        const valid = gen.name(\"valid\")\n        if (opts.removeAdditional === \"failing\") {\n          applyAdditionalSchema(key, valid, false)\n          gen.if(not(valid), () => {\n            cxt.reset()\n            deleteAdditional(key)\n          })\n        } else {\n          applyAdditionalSchema(key, valid)\n          if (!allErrors) gen.if(not(valid), () => gen.break())\n        }\n      }\n    }\n\n    function applyAdditionalSchema(key: Name, valid: Name, errors?: false): void {\n      const subschema: SubschemaArgs = {\n        keyword: \"additionalProperties\",\n        dataProp: key,\n        dataPropType: Type.Str,\n      }\n      if (errors === false) {\n        Object.assign(subschema, {\n          compositeRule: true,\n          createErrors: false,\n          allErrors: false,\n        })\n      }\n      cxt.subschema(subschema, valid)\n    }\n  },\n}\n\nexport default def\n", "import type {CodeKeywordDefinition} from \"../../types\"\nimport {KeywordCxt} from \"../../compile/validate\"\nimport {propertyInData, allSchemaProperties} from \"../code\"\nimport {alwaysValidSchema, toHash, mergeEvaluated} from \"../../compile/util\"\nimport apDef from \"./additionalProperties\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"properties\",\n  type: \"object\",\n  schemaType: \"object\",\n  code(cxt: KeywordCxt) {\n    const {gen, schema, parentSchema, data, it} = cxt\n    if (it.opts.removeAdditional === \"all\" && parentSchema.additionalProperties === undefined) {\n      apDef.code(new KeywordCxt(it, apDef, \"additionalProperties\"))\n    }\n    const allProps = allSchemaProperties(schema)\n    for (const prop of allProps) {\n      it.definedProperties.add(prop)\n    }\n    if (it.opts.unevaluated && allProps.length && it.props !== true) {\n      it.props = mergeEvaluated.props(gen, toHash(allProps), it.props)\n    }\n    const properties = allProps.filter((p) => !alwaysValidSchema(it, schema[p]))\n    if (properties.length === 0) return\n    const valid = gen.name(\"valid\")\n\n    for (const prop of properties) {\n      if (hasDefault(prop)) {\n        applyPropertySchema(prop)\n      } else {\n        gen.if(propertyInData(gen, data, prop, it.opts.ownProperties))\n        applyPropertySchema(prop)\n        if (!it.allErrors) gen.else().var(valid, true)\n        gen.endIf()\n      }\n      cxt.it.definedProperties.add(prop)\n      cxt.ok(valid)\n    }\n\n    function hasDefault(prop: string): boolean | undefined {\n      return it.opts.useDefaults && !it.compositeRule && schema[prop].default !== undefined\n    }\n\n    function applyPropertySchema(prop: string): void {\n      cxt.subschema(\n        {\n          keyword: \"properties\",\n          schemaProp: prop,\n          dataProp: prop,\n        },\n        valid\n      )\n    }\n  },\n}\n\nexport default def\n", "import type {CodeKeywordDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {allSchemaProperties, usePattern} from \"../code\"\nimport {_, not, Name} from \"../../compile/codegen\"\nimport {alwaysValidSchema, checkStrictMode} from \"../../compile/util\"\nimport {evaluatedPropsToName, Type} from \"../../compile/util\"\nimport {AnySchema} from \"../../types\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"patternProperties\",\n  type: \"object\",\n  schemaType: \"object\",\n  code(cxt: KeywordCxt) {\n    const {gen, schema, data, parentSchema, it} = cxt\n    const {opts} = it\n    const patterns = allSchemaProperties(schema)\n    const alwaysValidPatterns = patterns.filter((p) =>\n      alwaysValidSchema(it, schema[p] as AnySchema)\n    )\n\n    if (\n      patterns.length === 0 ||\n      (alwaysValidPatterns.length === patterns.length &&\n        (!it.opts.unevaluated || it.props === true))\n    ) {\n      return\n    }\n\n    const checkProperties =\n      opts.strictSchema && !opts.allowMatchingProperties && parentSchema.properties\n    const valid = gen.name(\"valid\")\n    if (it.props !== true && !(it.props instanceof Name)) {\n      it.props = evaluatedPropsToName(gen, it.props)\n    }\n    const {props} = it\n    validatePatternProperties()\n\n    function validatePatternProperties(): void {\n      for (const pat of patterns) {\n        if (checkProperties) checkMatchingProperties(pat)\n        if (it.allErrors) {\n          validateProperties(pat)\n        } else {\n          gen.var(valid, true) // TODO var\n          validateProperties(pat)\n          gen.if(valid)\n        }\n      }\n    }\n\n    function checkMatchingProperties(pat: string): void {\n      for (const prop in checkProperties) {\n        if (new RegExp(pat).test(prop)) {\n          checkStrictMode(\n            it,\n            `property ${prop} matches pattern ${pat} (use allowMatchingProperties)`\n          )\n        }\n      }\n    }\n\n    function validateProperties(pat: string): void {\n      gen.forIn(\"key\", data, (key) => {\n        gen.if(_`${usePattern(cxt, pat)}.test(${key})`, () => {\n          const alwaysValid = alwaysValidPatterns.includes(pat)\n          if (!alwaysValid) {\n            cxt.subschema(\n              {\n                keyword: \"patternProperties\",\n                schemaProp: pat,\n                dataProp: key,\n                dataPropType: Type.Str,\n              },\n              valid\n            )\n          }\n\n          if (it.opts.unevaluated && props !== true) {\n            gen.assign(_`${props}[${key}]`, true)\n          } else if (!alwaysValid && !it.allErrors) {\n            // can short-circuit if `unevaluatedProperties` is not supported (opts.next === false)\n            // or if all properties were evaluated (props === true)\n            gen.if(not(valid), () => gen.break())\n          }\n        })\n      })\n    }\n  },\n}\n\nexport default def\n", "import type {CodeKeywordDefinition, ErrorNoParams, AnySchema} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {alwaysValidSchema} from \"../../compile/util\"\n\nexport type NotKeywordError = ErrorNoParams<\"not\", AnySchema>\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"not\",\n  schemaType: [\"object\", \"boolean\"],\n  trackErrors: true,\n  code(cxt: KeywordCxt) {\n    const {gen, schema, it} = cxt\n    if (alwaysValidSchema(it, schema)) {\n      cxt.fail()\n      return\n    }\n\n    const valid = gen.name(\"valid\")\n    cxt.subschema(\n      {\n        keyword: \"not\",\n        compositeRule: true,\n        createErrors: false,\n        allErrors: false,\n      },\n      valid\n    )\n\n    cxt.failResult(\n      valid,\n      () => cxt.reset(),\n      () => cxt.error()\n    )\n  },\n  error: {message: \"must NOT be valid\"},\n}\n\nexport default def\n", "import type {CodeKeywordDefinition, ErrorNoParams, AnySchema} from \"../../types\"\nimport {validateUnion} from \"../code\"\n\nexport type AnyOfError = ErrorNoParams<\"anyOf\", AnySchema[]>\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"anyOf\",\n  schemaType: \"array\",\n  trackErrors: true,\n  code: validateUnion,\n  error: {message: \"must match a schema in anyOf\"},\n}\n\nexport default def\n", "import type {\n  CodeKeywordDefinition,\n  ErrorObject,\n  KeywordErrorDefinition,\n  AnySchema,\n} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, Name} from \"../../compile/codegen\"\nimport {alwaysValidSchema} from \"../../compile/util\"\nimport {SchemaCxt} from \"../../compile\"\n\nexport type OneOfError = ErrorObject<\n  \"oneOf\",\n  {passingSchemas: [number, number] | null},\n  AnySchema[]\n>\n\nconst error: KeywordErrorDefinition = {\n  message: \"must match exactly one schema in oneOf\",\n  params: ({params}) => _`{passingSchemas: ${params.passing}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"oneOf\",\n  schemaType: \"array\",\n  trackErrors: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, schema, parentSchema, it} = cxt\n    /* istanbul ignore if */\n    if (!Array.isArray(schema)) throw new Error(\"ajv implementation error\")\n    if (it.opts.discriminator && parentSchema.discriminator) return\n    const schArr: AnySchema[] = schema\n    const valid = gen.let(\"valid\", false)\n    const passing = gen.let(\"passing\", null)\n    const schValid = gen.name(\"_valid\")\n    cxt.setParams({passing})\n    // TODO possibly fail straight away (with warning or exception) if there are two empty always valid schemas\n\n    gen.block(validateOneOf)\n\n    cxt.result(\n      valid,\n      () => cxt.reset(),\n      () => cxt.error(true)\n    )\n\n    function validateOneOf(): void {\n      schArr.forEach((sch: AnySchema, i: number) => {\n        let schCxt: SchemaCxt | undefined\n        if (alwaysValidSchema(it, sch)) {\n          gen.var(schValid, true)\n        } else {\n          schCxt = cxt.subschema(\n            {\n              keyword: \"oneOf\",\n              schemaProp: i,\n              compositeRule: true,\n            },\n            schValid\n          )\n        }\n\n        if (i > 0) {\n          gen\n            .if(_`${schValid} && ${valid}`)\n            .assign(valid, false)\n            .assign(passing, _`[${passing}, ${i}]`)\n            .else()\n        }\n\n        gen.if(schValid, () => {\n          gen.assign(valid, true)\n          gen.assign(passing, i)\n          if (schCxt) cxt.mergeEvaluated(schCxt, Name)\n        })\n      })\n    }\n  },\n}\n\nexport default def\n", "import type {CodeKeywordDefinition, AnySchema} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {alwaysValidSchema} from \"../../compile/util\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"allOf\",\n  schemaType: \"array\",\n  code(cxt: KeywordCxt) {\n    const {gen, schema, it} = cxt\n    /* istanbul ignore if */\n    if (!Array.isArray(schema)) throw new Error(\"ajv implementation error\")\n    const valid = gen.name(\"valid\")\n    schema.forEach((sch: AnySchema, i: number) => {\n      if (alwaysValidSchema(it, sch)) return\n      const schCxt = cxt.subschema({keyword: \"allOf\", schemaProp: i}, valid)\n      cxt.ok(valid)\n      cxt.mergeEvaluated(schCxt)\n    })\n  },\n}\n\nexport default def\n", "import type {\n  CodeKeywordDefinition,\n  ErrorObject,\n  KeywordErrorDefinition,\n  AnySchema,\n} from \"../../types\"\nimport type {SchemaObjCxt} from \"../../compile\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, not, Name} from \"../../compile/codegen\"\nimport {alwaysValidSchema, checkStrictMode} from \"../../compile/util\"\n\nexport type IfKeywordError = ErrorObject<\"if\", {failingKeyword: string}, AnySchema>\n\nconst error: KeywordErrorDefinition = {\n  message: ({params}) => str`must match \"${params.ifClause}\" schema`,\n  params: ({params}) => _`{failingKeyword: ${params.ifClause}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"if\",\n  schemaType: [\"object\", \"boolean\"],\n  trackErrors: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, parentSchema, it} = cxt\n    if (parentSchema.then === undefined && parentSchema.else === undefined) {\n      checkStrictMode(it, '\"if\" without \"then\" and \"else\" is ignored')\n    }\n    const hasThen = hasSchema(it, \"then\")\n    const hasElse = hasSchema(it, \"else\")\n    if (!hasThen && !hasElse) return\n\n    const valid = gen.let(\"valid\", true)\n    const schValid = gen.name(\"_valid\")\n    validateIf()\n    cxt.reset()\n\n    if (hasThen && hasElse) {\n      const ifClause = gen.let(\"ifClause\")\n      cxt.setParams({ifClause})\n      gen.if(schValid, validateClause(\"then\", ifClause), validateClause(\"else\", ifClause))\n    } else if (hasThen) {\n      gen.if(schValid, validateClause(\"then\"))\n    } else {\n      gen.if(not(schValid), validateClause(\"else\"))\n    }\n\n    cxt.pass(valid, () => cxt.error(true))\n\n    function validateIf(): void {\n      const schCxt = cxt.subschema(\n        {\n          keyword: \"if\",\n          compositeRule: true,\n          createErrors: false,\n          allErrors: false,\n        },\n        schValid\n      )\n      cxt.mergeEvaluated(schCxt)\n    }\n\n    function validateClause(keyword: string, ifClause?: Name): () => void {\n      return () => {\n        const schCxt = cxt.subschema({keyword}, schValid)\n        gen.assign(valid, schValid)\n        cxt.mergeValidEvaluated(schCxt, valid)\n        if (ifClause) gen.assign(ifClause, _`${keyword}`)\n        else cxt.setParams({ifClause: keyword})\n      }\n    }\n  },\n}\n\nfunction hasSchema(it: SchemaObjCxt, keyword: string): boolean {\n  const schema = it.schema[keyword]\n  return schema !== undefined && !alwaysValidSchema(it, schema)\n}\n\nexport default def\n", "import type {CodeKeywordDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {checkStrictMode} from \"../../compile/util\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: [\"then\", \"else\"],\n  schemaType: [\"object\", \"boolean\"],\n  code({keyword, parentSchema, it}: KeywordCxt) {\n    if (parentSchema.if === undefined) checkStrictMode(it, `\"${keyword}\" without \"if\" is ignored`)\n  },\n}\n\nexport default def\n", "import type {ErrorNoParams, Vocabulary} from \"../../types\"\nimport additionalItems, {AdditionalItemsError} from \"./additionalItems\"\nimport prefixItems from \"./prefixItems\"\nimport items from \"./items\"\nimport items2020, {ItemsError} from \"./items2020\"\nimport contains, {ContainsError} from \"./contains\"\nimport dependencies, {DependenciesError} from \"./dependencies\"\nimport propertyNames, {PropertyNamesError} from \"./propertyNames\"\nimport additionalProperties, {AdditionalPropertiesError} from \"./additionalProperties\"\nimport properties from \"./properties\"\nimport patternProperties from \"./patternProperties\"\nimport notKeyword, {NotKeywordError} from \"./not\"\nimport anyOf, {AnyOfError} from \"./anyOf\"\nimport oneOf, {OneOfError} from \"./oneOf\"\nimport allOf from \"./allOf\"\nimport ifKeyword, {IfKeywordError} from \"./if\"\nimport thenElse from \"./thenElse\"\n\nexport default function getApplicator(draft2020 = false): Vocabulary {\n  const applicator = [\n    // any\n    notKeyword,\n    anyOf,\n    oneOf,\n    allOf,\n    ifKeyword,\n    thenElse,\n    // object\n    propertyNames,\n    additionalProperties,\n    dependencies,\n    properties,\n    patternProperties,\n  ]\n  // array\n  if (draft2020) applicator.push(prefixItems, items2020)\n  else applicator.push(additionalItems, items)\n  applicator.push(contains)\n  return applicator\n}\n\nexport type ApplicatorKeywordError =\n  | ErrorNoParams<\"false schema\">\n  | AdditionalItemsError\n  | ItemsError\n  | ContainsError\n  | AdditionalPropertiesError\n  | DependenciesError\n  | IfKeywordError\n  | AnyOfError\n  | OneOfError\n  | NotKeywordError\n  | PropertyNamesError\n", "import type {\n  AddedFormat,\n  FormatValidator,\n  AsyncFormatValidator,\n  CodeKeywordDefinition,\n  KeywordErrorDefinition,\n  ErrorObject,\n} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, nil, or, Code, getProperty, regexpCode} from \"../../compile/codegen\"\n\ntype FormatValidate =\n  | FormatValidator\n  | FormatValidator\n  | AsyncFormatValidator\n  | AsyncFormatValidator\n  | RegExp\n  | string\n  | true\n\nexport type FormatError = ErrorObject<\"format\", {format: string}, string | {$data: string}>\n\nconst error: KeywordErrorDefinition = {\n  message: ({schemaCode}) => str`must match format \"${schemaCode}\"`,\n  params: ({schemaCode}) => _`{format: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"format\",\n  type: [\"number\", \"string\"],\n  schemaType: \"string\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt, ruleType?: string) {\n    const {gen, data, $data, schema, schemaCode, it} = cxt\n    const {opts, errSchemaPath, schemaEnv, self} = it\n    if (!opts.validateFormats) return\n\n    if ($data) validate$DataFormat()\n    else validateFormat()\n\n    function validate$DataFormat(): void {\n      const fmts = gen.scopeValue(\"formats\", {\n        ref: self.formats,\n        code: opts.code.formats,\n      })\n      const fDef = gen.const(\"fDef\", _`${fmts}[${schemaCode}]`)\n      const fType = gen.let(\"fType\")\n      const format = gen.let(\"format\")\n      // TODO simplify\n      gen.if(\n        _`typeof ${fDef} == \"object\" && !(${fDef} instanceof RegExp)`,\n        () => gen.assign(fType, _`${fDef}.type || \"string\"`).assign(format, _`${fDef}.validate`),\n        () => gen.assign(fType, _`\"string\"`).assign(format, fDef)\n      )\n      cxt.fail$data(or(unknownFmt(), invalidFmt()))\n\n      function unknownFmt(): Code {\n        if (opts.strictSchema === false) return nil\n        return _`${schemaCode} && !${format}`\n      }\n\n      function invalidFmt(): Code {\n        const callFormat = schemaEnv.$async\n          ? _`(${fDef}.async ? await ${format}(${data}) : ${format}(${data}))`\n          : _`${format}(${data})`\n        const validData = _`(typeof ${format} == \"function\" ? ${callFormat} : ${format}.test(${data}))`\n        return _`${format} && ${format} !== true && ${fType} === ${ruleType} && !${validData}`\n      }\n    }\n\n    function validateFormat(): void {\n      const formatDef: AddedFormat | undefined = self.formats[schema]\n      if (!formatDef) {\n        unknownFormat()\n        return\n      }\n      if (formatDef === true) return\n      const [fmtType, format, fmtRef] = getFormat(formatDef)\n      if (fmtType === ruleType) cxt.pass(validCondition())\n\n      function unknownFormat(): void {\n        if (opts.strictSchema === false) {\n          self.logger.warn(unknownMsg())\n          return\n        }\n        throw new Error(unknownMsg())\n\n        function unknownMsg(): string {\n          return `unknown format \"${schema as string}\" ignored in schema at path \"${errSchemaPath}\"`\n        }\n      }\n\n      function getFormat(fmtDef: AddedFormat): [string, FormatValidate, Code] {\n        const code =\n          fmtDef instanceof RegExp\n            ? regexpCode(fmtDef)\n            : opts.code.formats\n            ? _`${opts.code.formats}${getProperty(schema)}`\n            : undefined\n        const fmt = gen.scopeValue(\"formats\", {key: schema, ref: fmtDef, code})\n        if (typeof fmtDef == \"object\" && !(fmtDef instanceof RegExp)) {\n          return [fmtDef.type || \"string\", fmtDef.validate, _`${fmt}.validate`]\n        }\n\n        return [\"string\", fmtDef, fmt]\n      }\n\n      function validCondition(): Code {\n        if (typeof formatDef == \"object\" && !(formatDef instanceof RegExp) && formatDef.async) {\n          if (!schemaEnv.$async) throw new Error(\"async format in sync schema\")\n          return _`await ${fmtRef}(${data})`\n        }\n        return typeof format == \"function\" ? _`${fmtRef}(${data})` : _`${fmtRef}.test(${data})`\n      }\n    }\n  },\n}\n\nexport default def\n", "import type {Vocabulary} from \"../../types\"\nimport formatKeyword from \"./format\"\n\nconst format: Vocabulary = [formatKeyword]\n\nexport default format\n", "import type {Vocabulary} from \"ajv/dist/core\"\nimport coreVocabulary from \"./core\"\nimport validationDraft4 from \"./validation\"\nimport getApplicatorVocabulary from \"ajv/dist/vocabularies/applicator\"\nimport formatVocabulary from \"ajv/dist/vocabularies/format\"\n\nconst metadataVocabulary: Vocabulary = [\"title\", \"description\", \"default\"]\n\nconst draft4Vocabularies: Vocabulary[] = [\n  coreVocabulary,\n  validationDraft4,\n  getApplicatorVocabulary(),\n  formatVocabulary,\n  metadataVocabulary,\n]\n\nexport default draft4Vocabularies\n", "import type {ErrorObject} from \"../../types\"\n\nexport enum DiscrError {\n  Tag = \"tag\",\n  Mapping = \"mapping\",\n}\n\nexport type DiscrErrorObj = ErrorObject<\n  \"discriminator\",\n  {error: E; tag: string; tagValue: unknown},\n  string\n>\n", "import type {CodeKeywordDefinition, AnySchemaObject, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, getProperty, Name} from \"../../compile/codegen\"\nimport {DiscrError, DiscrErrorObj} from \"../discriminator/types\"\nimport {resolveRef, SchemaEnv} from \"../../compile\"\nimport MissingRefError from \"../../compile/ref_error\"\nimport {schemaHasRulesButRef} from \"../../compile/util\"\n\nexport type DiscriminatorError = DiscrErrorObj | DiscrErrorObj\n\nconst error: KeywordErrorDefinition = {\n  message: ({params: {discrError, tagName}}) =>\n    discrError === DiscrError.Tag\n      ? `tag \"${tagName}\" must be string`\n      : `value of tag \"${tagName}\" must be in oneOf`,\n  params: ({params: {discrError, tag, tagName}}) =>\n    _`{error: ${discrError}, tag: ${tagName}, tagValue: ${tag}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"discriminator\",\n  type: \"object\",\n  schemaType: \"object\",\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, data, schema, parentSchema, it} = cxt\n    const {oneOf} = parentSchema\n    if (!it.opts.discriminator) {\n      throw new Error(\"discriminator: requires discriminator option\")\n    }\n    const tagName = schema.propertyName\n    if (typeof tagName != \"string\") throw new Error(\"discriminator: requires propertyName\")\n    if (schema.mapping) throw new Error(\"discriminator: mapping is not supported\")\n    if (!oneOf) throw new Error(\"discriminator: requires oneOf keyword\")\n    const valid = gen.let(\"valid\", false)\n    const tag = gen.const(\"tag\", _`${data}${getProperty(tagName)}`)\n    gen.if(\n      _`typeof ${tag} == \"string\"`,\n      () => validateMapping(),\n      () => cxt.error(false, {discrError: DiscrError.Tag, tag, tagName})\n    )\n    cxt.ok(valid)\n\n    function validateMapping(): void {\n      const mapping = getMapping()\n      gen.if(false)\n      for (const tagValue in mapping) {\n        gen.elseIf(_`${tag} === ${tagValue}`)\n        gen.assign(valid, applyTagSchema(mapping[tagValue]))\n      }\n      gen.else()\n      cxt.error(false, {discrError: DiscrError.Mapping, tag, tagName})\n      gen.endIf()\n    }\n\n    function applyTagSchema(schemaProp?: number): Name {\n      const _valid = gen.name(\"valid\")\n      const schCxt = cxt.subschema({keyword: \"oneOf\", schemaProp}, _valid)\n      cxt.mergeEvaluated(schCxt, Name)\n      return _valid\n    }\n\n    function getMapping(): {[T in string]?: number} {\n      const oneOfMapping: {[T in string]?: number} = {}\n      const topRequired = hasRequired(parentSchema)\n      let tagRequired = true\n      for (let i = 0; i < oneOf.length; i++) {\n        let sch = oneOf[i]\n        if (sch?.$ref && !schemaHasRulesButRef(sch, it.self.RULES)) {\n          const ref = sch.$ref\n          sch = resolveRef.call(it.self, it.schemaEnv.root, it.baseId, ref)\n          if (sch instanceof SchemaEnv) sch = sch.schema\n          if (sch === undefined) throw new MissingRefError(it.opts.uriResolver, it.baseId, ref)\n        }\n        const propSch = sch?.properties?.[tagName]\n        if (typeof propSch != \"object\") {\n          throw new Error(\n            `discriminator: oneOf subschemas (or referenced schemas) must have \"properties/${tagName}\"`\n          )\n        }\n        tagRequired = tagRequired && (topRequired || hasRequired(sch))\n        addMappings(propSch, i)\n      }\n      if (!tagRequired) throw new Error(`discriminator: \"${tagName}\" must be required`)\n      return oneOfMapping\n\n      function hasRequired({required}: AnySchemaObject): boolean {\n        return Array.isArray(required) && required.includes(tagName)\n      }\n\n      function addMappings(sch: AnySchemaObject, i: number): void {\n        if (sch.const) {\n          addMapping(sch.const, i)\n        } else if (sch.enum) {\n          for (const tagValue of sch.enum) {\n            addMapping(tagValue, i)\n          }\n        } else {\n          throw new Error(`discriminator: \"properties/${tagName}\" must have \"const\" or \"enum\"`)\n        }\n      }\n\n      function addMapping(tagValue: unknown, i: number): void {\n        if (typeof tagValue != \"string\" || tagValue in oneOfMapping) {\n          throw new Error(`discriminator: \"${tagName}\" values must be unique strings`)\n        }\n        oneOfMapping[tagValue] = i\n      }\n    }\n  },\n}\n\nexport default def\n", "{\n  \"id\": \"http://json-schema.org/draft-04/schema#\",\n  \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n  \"description\": \"Core schema meta-schema\",\n  \"definitions\": {\n    \"schemaArray\": {\n      \"type\": \"array\",\n      \"minItems\": 1,\n      \"items\": {\"$ref\": \"#\"}\n    },\n    \"positiveInteger\": {\n      \"type\": \"integer\",\n      \"minimum\": 0\n    },\n    \"positiveIntegerDefault0\": {\n      \"allOf\": [{\"$ref\": \"#/definitions/positiveInteger\"}, {\"default\": 0}]\n    },\n    \"simpleTypes\": {\n      \"enum\": [\"array\", \"boolean\", \"integer\", \"null\", \"number\", \"object\", \"string\"]\n    },\n    \"stringArray\": {\n      \"type\": \"array\",\n      \"items\": {\"type\": \"string\"},\n      \"minItems\": 1,\n      \"uniqueItems\": true\n    }\n  },\n  \"type\": \"object\",\n  \"properties\": {\n    \"id\": {\n      \"type\": \"string\",\n      \"format\": \"uri\"\n    },\n    \"$schema\": {\n      \"type\": \"string\",\n      \"format\": \"uri\"\n    },\n    \"title\": {\n      \"type\": \"string\"\n    },\n    \"description\": {\n      \"type\": \"string\"\n    },\n    \"default\": {},\n    \"multipleOf\": {\n      \"type\": \"number\",\n      \"minimum\": 0,\n      \"exclusiveMinimum\": true\n    },\n    \"maximum\": {\n      \"type\": \"number\"\n    },\n    \"exclusiveMaximum\": {\n      \"type\": \"boolean\",\n      \"default\": false\n    },\n    \"minimum\": {\n      \"type\": \"number\"\n    },\n    \"exclusiveMinimum\": {\n      \"type\": \"boolean\",\n      \"default\": false\n    },\n    \"maxLength\": {\"$ref\": \"#/definitions/positiveInteger\"},\n    \"minLength\": {\"$ref\": \"#/definitions/positiveIntegerDefault0\"},\n    \"pattern\": {\n      \"type\": \"string\",\n      \"format\": \"regex\"\n    },\n    \"additionalItems\": {\n      \"anyOf\": [{\"type\": \"boolean\"}, {\"$ref\": \"#\"}],\n      \"default\": {}\n    },\n    \"items\": {\n      \"anyOf\": [{\"$ref\": \"#\"}, {\"$ref\": \"#/definitions/schemaArray\"}],\n      \"default\": {}\n    },\n    \"maxItems\": {\"$ref\": \"#/definitions/positiveInteger\"},\n    \"minItems\": {\"$ref\": \"#/definitions/positiveIntegerDefault0\"},\n    \"uniqueItems\": {\n      \"type\": \"boolean\",\n      \"default\": false\n    },\n    \"maxProperties\": {\"$ref\": \"#/definitions/positiveInteger\"},\n    \"minProperties\": {\"$ref\": \"#/definitions/positiveIntegerDefault0\"},\n    \"required\": {\"$ref\": \"#/definitions/stringArray\"},\n    \"additionalProperties\": {\n      \"anyOf\": [{\"type\": \"boolean\"}, {\"$ref\": \"#\"}],\n      \"default\": {}\n    },\n    \"definitions\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\"$ref\": \"#\"},\n      \"default\": {}\n    },\n    \"properties\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\"$ref\": \"#\"},\n      \"default\": {}\n    },\n    \"patternProperties\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\"$ref\": \"#\"},\n      \"default\": {}\n    },\n    \"dependencies\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"anyOf\": [{\"$ref\": \"#\"}, {\"$ref\": \"#/definitions/stringArray\"}]\n      }\n    },\n    \"enum\": {\n      \"type\": \"array\",\n      \"minItems\": 1,\n      \"uniqueItems\": true\n    },\n    \"type\": {\n      \"anyOf\": [\n        {\"$ref\": \"#/definitions/simpleTypes\"},\n        {\n          \"type\": \"array\",\n          \"items\": {\"$ref\": \"#/definitions/simpleTypes\"},\n          \"minItems\": 1,\n          \"uniqueItems\": true\n        }\n      ]\n    },\n    \"allOf\": {\"$ref\": \"#/definitions/schemaArray\"},\n    \"anyOf\": {\"$ref\": \"#/definitions/schemaArray\"},\n    \"oneOf\": {\"$ref\": \"#/definitions/schemaArray\"},\n    \"not\": {\"$ref\": \"#\"}\n  },\n  \"dependencies\": {\n    \"exclusiveMaximum\": [\"maximum\"],\n    \"exclusiveMinimum\": [\"minimum\"]\n  },\n  \"default\": {}\n}\n", "import type {AnySchemaObject, Options} from \"ajv/dist/core\"\nimport AjvCore from \"ajv/dist/core\"\nimport draft4Vocabularies from \"./vocabulary/draft4\"\nimport discriminator from \"ajv/dist/vocabularies/discriminator\"\nimport * as draft4MetaSchema from \"./refs/json-schema-draft-04.json\"\n\nconst META_SUPPORT_DATA = [\"/properties\"]\n\nconst META_SCHEMA_ID = \"http://json-schema.org/draft-04/schema\"\n\nclass Ajv extends AjvCore {\n  constructor(opts: Options = {}) {\n    super({\n      ...opts,\n      schemaId: \"id\",\n    })\n  }\n\n  _addVocabularies(): void {\n    super._addVocabularies()\n    draft4Vocabularies.forEach((v) => this.addVocabulary(v))\n    if (this.opts.discriminator) this.addKeyword(discriminator)\n  }\n\n  _addDefaultMetaSchema(): void {\n    super._addDefaultMetaSchema()\n    if (!this.opts.meta) return\n    const metaSchema = this.opts.$data\n      ? this.$dataMetaSchema(draft4MetaSchema, META_SUPPORT_DATA)\n      : draft4MetaSchema\n    this.addMetaSchema(metaSchema, META_SCHEMA_ID, false)\n    this.refs[\"http://json-schema.org/schema\"] = META_SCHEMA_ID\n  }\n\n  defaultMeta(): string | AnySchemaObject | undefined {\n    return (this.opts.defaultMeta =\n      super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined))\n  }\n}\n\nmodule.exports = exports = Ajv\nObject.defineProperty(exports, \"__esModule\", {value: true})\n\nexport default Ajv\n\nexport {\n  Format,\n  FormatDefinition,\n  AsyncFormatDefinition,\n  KeywordDefinition,\n  KeywordErrorDefinition,\n  CodeKeywordDefinition,\n  MacroKeywordDefinition,\n  FuncKeywordDefinition,\n  Vocabulary,\n  Schema,\n  SchemaObject,\n  AnySchemaObject,\n  AsyncSchema,\n  AnySchema,\n  ValidateFunction,\n  AsyncValidateFunction,\n  SchemaValidateFunction,\n  ErrorObject,\n  ErrorNoParams,\n} from \"ajv/dist/types\"\n\nexport {\n  Plugin,\n  Options,\n  CodeOptions,\n  InstanceOptions,\n  Logger,\n  ErrorsTextOptions,\n} from \"ajv/dist/core\"\nexport {SchemaCxt, SchemaObjCxt} from \"ajv/dist/core\"\nexport {KeywordCxt} from \"ajv/dist/core\"\nexport {DefinedError} from \"ajv/dist/core\"\nexport {JSONType} from \"ajv/dist/core\"\nexport {JSONSchemaType} from \"ajv/dist/core\"\nexport {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from \"ajv/dist/core\"\n", "import type {CodeKeywordDefinition} from \"../../types\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"id\",\n  code() {\n    throw new Error('NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID')\n  },\n}\n\nexport default def\n", "import type {Vocabulary} from \"../../types\"\nimport idKeyword from \"./id\"\nimport refKeyword from \"./ref\"\n\nconst core: Vocabulary = [\n  \"$schema\",\n  \"$id\",\n  \"$defs\",\n  \"$vocabulary\",\n  {keyword: \"$comment\"},\n  \"definitions\",\n  idKeyword,\n  refKeyword,\n]\n\nexport default core\n", "import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, operators, Code} from \"../../compile/codegen\"\n\nconst ops = operators\n\ntype Kwd = \"maximum\" | \"minimum\" | \"exclusiveMaximum\" | \"exclusiveMinimum\"\n\ntype Comparison = \"<=\" | \">=\" | \"<\" | \">\"\n\nconst KWDs: {[K in Kwd]: {okStr: Comparison; ok: Code; fail: Code}} = {\n  maximum: {okStr: \"<=\", ok: ops.LTE, fail: ops.GT},\n  minimum: {okStr: \">=\", ok: ops.GTE, fail: ops.LT},\n  exclusiveMaximum: {okStr: \"<\", ok: ops.LT, fail: ops.GTE},\n  exclusiveMinimum: {okStr: \">\", ok: ops.GT, fail: ops.LTE},\n}\n\nexport type LimitNumberError = ErrorObject<\n  Kwd,\n  {limit: number; comparison: Comparison},\n  number | {$data: string}\n>\n\nconst error: KeywordErrorDefinition = {\n  message: ({keyword, schemaCode}) => str`must be ${KWDs[keyword as Kwd].okStr} ${schemaCode}`,\n  params: ({keyword, schemaCode}) =>\n    _`{comparison: ${KWDs[keyword as Kwd].okStr}, limit: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: Object.keys(KWDs),\n  type: \"number\",\n  schemaType: \"number\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {keyword, data, schemaCode} = cxt\n    cxt.fail$data(_`${data} ${KWDs[keyword as Kwd].fail} ${schemaCode} || isNaN(${data})`)\n  },\n}\n\nexport default def\n", "import type {ErrorObject, Vocabulary} from \"../../types\"\nimport limitNumber, {LimitNumberError} from \"./limitNumber\"\nimport multipleOf, {MultipleOfError} from \"./multipleOf\"\nimport limitLength from \"./limitLength\"\nimport pattern, {PatternError} from \"./pattern\"\nimport limitProperties from \"./limitProperties\"\nimport required, {RequiredError} from \"./required\"\nimport limitItems from \"./limitItems\"\nimport uniqueItems, {UniqueItemsError} from \"./uniqueItems\"\nimport constKeyword, {ConstError} from \"./const\"\nimport enumKeyword, {EnumError} from \"./enum\"\n\nconst validation: Vocabulary = [\n  // number\n  limitNumber,\n  multipleOf,\n  // string\n  limitLength,\n  pattern,\n  // object\n  limitProperties,\n  required,\n  // array\n  limitItems,\n  uniqueItems,\n  // any\n  {keyword: \"type\", schemaType: [\"string\", \"array\"]},\n  {keyword: \"nullable\", schemaType: \"boolean\"},\n  constKeyword,\n  enumKeyword,\n]\n\nexport default validation\n\ntype LimitError = ErrorObject<\n  \"maxItems\" | \"minItems\" | \"minProperties\" | \"maxProperties\" | \"minLength\" | \"maxLength\",\n  {limit: number},\n  number | {$data: string}\n>\n\nexport type ValidationKeywordError =\n  | LimitError\n  | LimitNumberError\n  | MultipleOfError\n  | PatternError\n  | RequiredError\n  | UniqueItemsError\n  | ConstError\n  | EnumError\n", "import type {CodeKeywordDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, getProperty, Code} from \"../../compile/codegen\"\nimport N from \"../../compile/names\"\nimport {SchemaEnv, compileSchema} from \"../../compile\"\nimport {getValidate} from \"../core/ref\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"$dynamicAnchor\",\n  schemaType: \"string\",\n  code: (cxt) => dynamicAnchor(cxt, cxt.schema),\n}\n\nexport function dynamicAnchor(cxt: KeywordCxt, anchor: string): void {\n  const {gen, it} = cxt\n  it.schemaEnv.root.dynamicAnchors[anchor] = true\n  const v = _`${N.dynamicAnchors}${getProperty(anchor)}`\n  const validate = it.errSchemaPath === \"#\" ? it.validateName : _getValidate(cxt)\n  gen.if(_`!${v}`, () => gen.assign(v, validate))\n}\n\nfunction _getValidate(cxt: KeywordCxt): Code {\n  const {schemaEnv, schema, self} = cxt.it\n  const {root, baseId, localRefs, meta} = schemaEnv.root\n  const {schemaId} = self.opts\n  const sch = new SchemaEnv({schema, schemaId, root, baseId, localRefs, meta})\n  compileSchema.call(self, sch)\n  return getValidate(cxt, sch)\n}\n\nexport default def\n", "import type {CodeKeywordDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, getProperty, Code, Name} from \"../../compile/codegen\"\nimport N from \"../../compile/names\"\nimport {callRef} from \"../core/ref\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"$dynamicRef\",\n  schemaType: \"string\",\n  code: (cxt) => dynamicRef(cxt, cxt.schema),\n}\n\nexport function dynamicRef(cxt: KeywordCxt, ref: string): void {\n  const {gen, keyword, it} = cxt\n  if (ref[0] !== \"#\") throw new Error(`\"${keyword}\" only supports hash fragment reference`)\n  const anchor = ref.slice(1)\n  if (it.allErrors) {\n    _dynamicRef()\n  } else {\n    const valid = gen.let(\"valid\", false)\n    _dynamicRef(valid)\n    cxt.ok(valid)\n  }\n\n  function _dynamicRef(valid?: Name): void {\n    // TODO the assumption here is that `recursiveRef: #` always points to the root\n    // of the schema object, which is not correct, because there may be $id that\n    // makes # point to it, and the target schema may not contain dynamic/recursiveAnchor.\n    // Because of that 2 tests in recursiveRef.json fail.\n    // This is a similar problem to #815 (`$id` doesn't alter resolution scope for `{ \"$ref\": \"#\" }`).\n    // (This problem is not tested in JSON-Schema-Test-Suite)\n    if (it.schemaEnv.root.dynamicAnchors[anchor]) {\n      const v = gen.let(\"_v\", _`${N.dynamicAnchors}${getProperty(anchor)}`)\n      gen.if(v, _callRef(v, valid), _callRef(it.validateName, valid))\n    } else {\n      _callRef(it.validateName, valid)()\n    }\n  }\n\n  function _callRef(validate: Code, valid?: Name): () => void {\n    return valid\n      ? () =>\n          gen.block(() => {\n            callRef(cxt, validate)\n            gen.let(valid, true)\n          })\n      : () => callRef(cxt, validate)\n  }\n}\n\nexport default def\n", "import type {CodeKeywordDefinition} from \"../../types\"\nimport {dynamicAnchor} from \"./dynamicAnchor\"\nimport {checkStrictMode} from \"../../compile/util\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"$recursiveAnchor\",\n  schemaType: \"boolean\",\n  code(cxt) {\n    if (cxt.schema) dynamicAnchor(cxt, \"\")\n    else checkStrictMode(cxt.it, \"$recursiveAnchor: false is ignored\")\n  },\n}\n\nexport default def\n", "import type {CodeKeywordDefinition} from \"../../types\"\nimport {dynamicRef} from \"./dynamicRef\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"$recursiveRef\",\n  schemaType: \"string\",\n  code: (cxt) => dynamicRef(cxt, cxt.schema),\n}\n\nexport default def\n", "import type {Vocabulary} from \"../../types\"\nimport dynamicAnchor from \"./dynamicAnchor\"\nimport dynamicRef from \"./dynamicRef\"\nimport recursiveAnchor from \"./recursiveAnchor\"\nimport recursiveRef from \"./recursiveRef\"\n\nconst dynamic: Vocabulary = [dynamicAnchor, dynamicRef, recursiveAnchor, recursiveRef]\n\nexport default dynamic\n", "import type {CodeKeywordDefinition, ErrorObject} from \"../../types\"\nimport {\n  validatePropertyDeps,\n  error,\n  DependenciesErrorParams,\n  PropertyDependencies,\n} from \"../applicator/dependencies\"\n\nexport type DependentRequiredError = ErrorObject<\n  \"dependentRequired\",\n  DependenciesErrorParams,\n  PropertyDependencies\n>\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"dependentRequired\",\n  type: \"object\",\n  schemaType: \"object\",\n  error,\n  code: (cxt) => validatePropertyDeps(cxt),\n}\n\nexport default def\n", "import type {CodeKeywordDefinition} from \"../../types\"\nimport {validateSchemaDeps} from \"./dependencies\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"dependentSchemas\",\n  type: \"object\",\n  schemaType: \"object\",\n  code: (cxt) => validateSchemaDeps(cxt),\n}\n\nexport default def\n", "import type {CodeKeywordDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {checkStrictMode} from \"../../compile/util\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: [\"maxContains\", \"minContains\"],\n  type: \"array\",\n  schemaType: \"number\",\n  code({keyword, parentSchema, it}: KeywordCxt) {\n    if (parentSchema.contains === undefined) {\n      checkStrictMode(it, `\"${keyword}\" without \"contains\" is ignored`)\n    }\n  },\n}\n\nexport default def\n", "import type {Vocabulary} from \"../types\"\nimport dependentRequired from \"./validation/dependentRequired\"\nimport dependentSchemas from \"./applicator/dependentSchemas\"\nimport limitContains from \"./validation/limitContains\"\n\nconst next: Vocabulary = [dependentRequired, dependentSchemas, limitContains]\n\nexport default next\n", "import type {\n  CodeKeywordDefinition,\n  KeywordErrorDefinition,\n  ErrorObject,\n  AnySchema,\n} from \"../../types\"\nimport {_, not, and, Name, Code} from \"../../compile/codegen\"\nimport {alwaysValidSchema, Type} from \"../../compile/util\"\nimport N from \"../../compile/names\"\n\nexport type UnevaluatedPropertiesError = ErrorObject<\n  \"unevaluatedProperties\",\n  {unevaluatedProperty: string},\n  AnySchema\n>\n\nconst error: KeywordErrorDefinition = {\n  message: \"must NOT have unevaluated properties\",\n  params: ({params}) => _`{unevaluatedProperty: ${params.unevaluatedProperty}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"unevaluatedProperties\",\n  type: \"object\",\n  schemaType: [\"boolean\", \"object\"],\n  trackErrors: true,\n  error,\n  code(cxt) {\n    const {gen, schema, data, errsCount, it} = cxt\n    /* istanbul ignore if */\n    if (!errsCount) throw new Error(\"ajv implementation error\")\n    const {allErrors, props} = it\n    if (props instanceof Name) {\n      gen.if(_`${props} !== true`, () =>\n        gen.forIn(\"key\", data, (key: Name) =>\n          gen.if(unevaluatedDynamic(props, key), () => unevaluatedPropCode(key))\n        )\n      )\n    } else if (props !== true) {\n      gen.forIn(\"key\", data, (key: Name) =>\n        props === undefined\n          ? unevaluatedPropCode(key)\n          : gen.if(unevaluatedStatic(props, key), () => unevaluatedPropCode(key))\n      )\n    }\n    it.props = true\n    cxt.ok(_`${errsCount} === ${N.errors}`)\n\n    function unevaluatedPropCode(key: Name): void {\n      if (schema === false) {\n        cxt.setParams({unevaluatedProperty: key})\n        cxt.error()\n        if (!allErrors) gen.break()\n        return\n      }\n\n      if (!alwaysValidSchema(it, schema)) {\n        const valid = gen.name(\"valid\")\n        cxt.subschema(\n          {\n            keyword: \"unevaluatedProperties\",\n            dataProp: key,\n            dataPropType: Type.Str,\n          },\n          valid\n        )\n        if (!allErrors) gen.if(not(valid), () => gen.break())\n      }\n    }\n\n    function unevaluatedDynamic(evaluatedProps: Name, key: Name): Code {\n      return _`!${evaluatedProps} || !${evaluatedProps}[${key}]`\n    }\n\n    function unevaluatedStatic(evaluatedProps: {[K in string]?: true}, key: Name): Code {\n      const ps: Code[] = []\n      for (const p in evaluatedProps) {\n        if (evaluatedProps[p] === true) ps.push(_`${key} !== ${p}`)\n      }\n      return and(...ps)\n    }\n  },\n}\n\nexport default def\n", "import type {\n  CodeKeywordDefinition,\n  ErrorObject,\n  KeywordErrorDefinition,\n  AnySchema,\n} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, not, Name} from \"../../compile/codegen\"\nimport {alwaysValidSchema, Type} from \"../../compile/util\"\n\nexport type UnevaluatedItemsError = ErrorObject<\"unevaluatedItems\", {limit: number}, AnySchema>\n\nconst error: KeywordErrorDefinition = {\n  message: ({params: {len}}) => str`must NOT have more than ${len} items`,\n  params: ({params: {len}}) => _`{limit: ${len}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"unevaluatedItems\",\n  type: \"array\",\n  schemaType: [\"boolean\", \"object\"],\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, schema, data, it} = cxt\n    const items = it.items || 0\n    if (items === true) return\n    const len = gen.const(\"len\", _`${data}.length`)\n    if (schema === false) {\n      cxt.setParams({len: items})\n      cxt.fail(_`${len} > ${items}`)\n    } else if (typeof schema == \"object\" && !alwaysValidSchema(it, schema)) {\n      const valid = gen.var(\"valid\", _`${len} <= ${items}`)\n      gen.if(not(valid), () => validateItems(valid, items))\n      cxt.ok(valid)\n    }\n    it.items = true\n\n    function validateItems(valid: Name, from: Name | number): void {\n      gen.forRange(\"i\", from, len, (i) => {\n        cxt.subschema({keyword: \"unevaluatedItems\", dataProp: i, dataPropType: Type.Num}, valid)\n        if (!it.allErrors) gen.if(not(valid), () => gen.break())\n      })\n    }\n  },\n}\n\nexport default def\n", "import type {Vocabulary} from \"../../types\"\nimport unevaluatedProperties from \"./unevaluatedProperties\"\nimport unevaluatedItems from \"./unevaluatedItems\"\n\nconst unevaluated: Vocabulary = [unevaluatedProperties, unevaluatedItems]\n\nexport default unevaluated\n", "import type {Vocabulary} from \"../types\"\n\nexport const metadataVocabulary: Vocabulary = [\n  \"title\",\n  \"description\",\n  \"default\",\n  \"deprecated\",\n  \"readOnly\",\n  \"writeOnly\",\n  \"examples\",\n]\n\nexport const contentVocabulary: Vocabulary = [\n  \"contentMediaType\",\n  \"contentEncoding\",\n  \"contentSchema\",\n]\n", "import type {Vocabulary} from \"../types\"\nimport coreVocabulary from \"./core\"\nimport validationVocabulary from \"./validation\"\nimport getApplicatorVocabulary from \"./applicator\"\nimport dynamicVocabulary from \"./dynamic\"\nimport nextVocabulary from \"./next\"\nimport unevaluatedVocabulary from \"./unevaluated\"\nimport formatVocabulary from \"./format\"\nimport {metadataVocabulary, contentVocabulary} from \"./metadata\"\n\nconst draft2020Vocabularies: Vocabulary[] = [\n  dynamicVocabulary,\n  coreVocabulary,\n  validationVocabulary,\n  getApplicatorVocabulary(true),\n  formatVocabulary,\n  metadataVocabulary,\n  contentVocabulary,\n  nextVocabulary,\n  unevaluatedVocabulary,\n]\n\nexport default draft2020Vocabularies\n", "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"$id\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"$vocabulary\": {\n    \"https://json-schema.org/draft/2020-12/vocab/core\": true,\n    \"https://json-schema.org/draft/2020-12/vocab/applicator\": true,\n    \"https://json-schema.org/draft/2020-12/vocab/unevaluated\": true,\n    \"https://json-schema.org/draft/2020-12/vocab/validation\": true,\n    \"https://json-schema.org/draft/2020-12/vocab/meta-data\": true,\n    \"https://json-schema.org/draft/2020-12/vocab/format-annotation\": true,\n    \"https://json-schema.org/draft/2020-12/vocab/content\": true\n  },\n  \"$dynamicAnchor\": \"meta\",\n\n  \"title\": \"Core and Validation specifications meta-schema\",\n  \"allOf\": [\n    {\"$ref\": \"meta/core\"},\n    {\"$ref\": \"meta/applicator\"},\n    {\"$ref\": \"meta/unevaluated\"},\n    {\"$ref\": \"meta/validation\"},\n    {\"$ref\": \"meta/meta-data\"},\n    {\"$ref\": \"meta/format-annotation\"},\n    {\"$ref\": \"meta/content\"}\n  ],\n  \"type\": [\"object\", \"boolean\"],\n  \"$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.\",\n  \"properties\": {\n    \"definitions\": {\n      \"$comment\": \"\\\"definitions\\\" has been replaced by \\\"$defs\\\".\",\n      \"type\": \"object\",\n      \"additionalProperties\": {\"$dynamicRef\": \"#meta\"},\n      \"deprecated\": true,\n      \"default\": {}\n    },\n    \"dependencies\": {\n      \"$comment\": \"\\\"dependencies\\\" has been split and replaced by \\\"dependentSchemas\\\" and \\\"dependentRequired\\\" in order to serve their differing semantics.\",\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"anyOf\": [{\"$dynamicRef\": \"#meta\"}, {\"$ref\": \"meta/validation#/$defs/stringArray\"}]\n      },\n      \"deprecated\": true,\n      \"default\": {}\n    },\n    \"$recursiveAnchor\": {\n      \"$comment\": \"\\\"$recursiveAnchor\\\" has been replaced by \\\"$dynamicAnchor\\\".\",\n      \"$ref\": \"meta/core#/$defs/anchorString\",\n      \"deprecated\": true\n    },\n    \"$recursiveRef\": {\n      \"$comment\": \"\\\"$recursiveRef\\\" has been replaced by \\\"$dynamicRef\\\".\",\n      \"$ref\": \"meta/core#/$defs/uriReferenceString\",\n      \"deprecated\": true\n    }\n  }\n}\n", "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"$id\": \"https://json-schema.org/draft/2020-12/meta/applicator\",\n  \"$vocabulary\": {\n    \"https://json-schema.org/draft/2020-12/vocab/applicator\": true\n  },\n  \"$dynamicAnchor\": \"meta\",\n\n  \"title\": \"Applicator vocabulary meta-schema\",\n  \"type\": [\"object\", \"boolean\"],\n  \"properties\": {\n    \"prefixItems\": {\"$ref\": \"#/$defs/schemaArray\"},\n    \"items\": {\"$dynamicRef\": \"#meta\"},\n    \"contains\": {\"$dynamicRef\": \"#meta\"},\n    \"additionalProperties\": {\"$dynamicRef\": \"#meta\"},\n    \"properties\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\"$dynamicRef\": \"#meta\"},\n      \"default\": {}\n    },\n    \"patternProperties\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\"$dynamicRef\": \"#meta\"},\n      \"propertyNames\": {\"format\": \"regex\"},\n      \"default\": {}\n    },\n    \"dependentSchemas\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\"$dynamicRef\": \"#meta\"},\n      \"default\": {}\n    },\n    \"propertyNames\": {\"$dynamicRef\": \"#meta\"},\n    \"if\": {\"$dynamicRef\": \"#meta\"},\n    \"then\": {\"$dynamicRef\": \"#meta\"},\n    \"else\": {\"$dynamicRef\": \"#meta\"},\n    \"allOf\": {\"$ref\": \"#/$defs/schemaArray\"},\n    \"anyOf\": {\"$ref\": \"#/$defs/schemaArray\"},\n    \"oneOf\": {\"$ref\": \"#/$defs/schemaArray\"},\n    \"not\": {\"$dynamicRef\": \"#meta\"}\n  },\n  \"$defs\": {\n    \"schemaArray\": {\n      \"type\": \"array\",\n      \"minItems\": 1,\n      \"items\": {\"$dynamicRef\": \"#meta\"}\n    }\n  }\n}\n", "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"$id\": \"https://json-schema.org/draft/2020-12/meta/unevaluated\",\n  \"$vocabulary\": {\n    \"https://json-schema.org/draft/2020-12/vocab/unevaluated\": true\n  },\n  \"$dynamicAnchor\": \"meta\",\n\n  \"title\": \"Unevaluated applicator vocabulary meta-schema\",\n  \"type\": [\"object\", \"boolean\"],\n  \"properties\": {\n    \"unevaluatedItems\": {\"$dynamicRef\": \"#meta\"},\n    \"unevaluatedProperties\": {\"$dynamicRef\": \"#meta\"}\n  }\n}\n", "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"$id\": \"https://json-schema.org/draft/2020-12/meta/content\",\n  \"$vocabulary\": {\n    \"https://json-schema.org/draft/2020-12/vocab/content\": true\n  },\n  \"$dynamicAnchor\": \"meta\",\n\n  \"title\": \"Content vocabulary meta-schema\",\n\n  \"type\": [\"object\", \"boolean\"],\n  \"properties\": {\n    \"contentEncoding\": {\"type\": \"string\"},\n    \"contentMediaType\": {\"type\": \"string\"},\n    \"contentSchema\": {\"$dynamicRef\": \"#meta\"}\n  }\n}\n", "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"$id\": \"https://json-schema.org/draft/2020-12/meta/core\",\n  \"$vocabulary\": {\n    \"https://json-schema.org/draft/2020-12/vocab/core\": true\n  },\n  \"$dynamicAnchor\": \"meta\",\n\n  \"title\": \"Core vocabulary meta-schema\",\n  \"type\": [\"object\", \"boolean\"],\n  \"properties\": {\n    \"$id\": {\n      \"$ref\": \"#/$defs/uriReferenceString\",\n      \"$comment\": \"Non-empty fragments not allowed.\",\n      \"pattern\": \"^[^#]*#?$\"\n    },\n    \"$schema\": {\"$ref\": \"#/$defs/uriString\"},\n    \"$ref\": {\"$ref\": \"#/$defs/uriReferenceString\"},\n    \"$anchor\": {\"$ref\": \"#/$defs/anchorString\"},\n    \"$dynamicRef\": {\"$ref\": \"#/$defs/uriReferenceString\"},\n    \"$dynamicAnchor\": {\"$ref\": \"#/$defs/anchorString\"},\n    \"$vocabulary\": {\n      \"type\": \"object\",\n      \"propertyNames\": {\"$ref\": \"#/$defs/uriString\"},\n      \"additionalProperties\": {\n        \"type\": \"boolean\"\n      }\n    },\n    \"$comment\": {\n      \"type\": \"string\"\n    },\n    \"$defs\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\"$dynamicRef\": \"#meta\"}\n    }\n  },\n  \"$defs\": {\n    \"anchorString\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z_][-A-Za-z0-9._]*$\"\n    },\n    \"uriString\": {\n      \"type\": \"string\",\n      \"format\": \"uri\"\n    },\n    \"uriReferenceString\": {\n      \"type\": \"string\",\n      \"format\": \"uri-reference\"\n    }\n  }\n}\n", "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"$id\": \"https://json-schema.org/draft/2020-12/meta/format-annotation\",\n  \"$vocabulary\": {\n    \"https://json-schema.org/draft/2020-12/vocab/format-annotation\": true\n  },\n  \"$dynamicAnchor\": \"meta\",\n\n  \"title\": \"Format vocabulary meta-schema for annotation results\",\n  \"type\": [\"object\", \"boolean\"],\n  \"properties\": {\n    \"format\": {\"type\": \"string\"}\n  }\n}\n", "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"$id\": \"https://json-schema.org/draft/2020-12/meta/meta-data\",\n  \"$vocabulary\": {\n    \"https://json-schema.org/draft/2020-12/vocab/meta-data\": true\n  },\n  \"$dynamicAnchor\": \"meta\",\n\n  \"title\": \"Meta-data vocabulary meta-schema\",\n\n  \"type\": [\"object\", \"boolean\"],\n  \"properties\": {\n    \"title\": {\n      \"type\": \"string\"\n    },\n    \"description\": {\n      \"type\": \"string\"\n    },\n    \"default\": true,\n    \"deprecated\": {\n      \"type\": \"boolean\",\n      \"default\": false\n    },\n    \"readOnly\": {\n      \"type\": \"boolean\",\n      \"default\": false\n    },\n    \"writeOnly\": {\n      \"type\": \"boolean\",\n      \"default\": false\n    },\n    \"examples\": {\n      \"type\": \"array\",\n      \"items\": true\n    }\n  }\n}\n", "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"$id\": \"https://json-schema.org/draft/2020-12/meta/validation\",\n  \"$vocabulary\": {\n    \"https://json-schema.org/draft/2020-12/vocab/validation\": true\n  },\n  \"$dynamicAnchor\": \"meta\",\n\n  \"title\": \"Validation vocabulary meta-schema\",\n  \"type\": [\"object\", \"boolean\"],\n  \"properties\": {\n    \"type\": {\n      \"anyOf\": [\n        {\"$ref\": \"#/$defs/simpleTypes\"},\n        {\n          \"type\": \"array\",\n          \"items\": {\"$ref\": \"#/$defs/simpleTypes\"},\n          \"minItems\": 1,\n          \"uniqueItems\": true\n        }\n      ]\n    },\n    \"const\": true,\n    \"enum\": {\n      \"type\": \"array\",\n      \"items\": true\n    },\n    \"multipleOf\": {\n      \"type\": \"number\",\n      \"exclusiveMinimum\": 0\n    },\n    \"maximum\": {\n      \"type\": \"number\"\n    },\n    \"exclusiveMaximum\": {\n      \"type\": \"number\"\n    },\n    \"minimum\": {\n      \"type\": \"number\"\n    },\n    \"exclusiveMinimum\": {\n      \"type\": \"number\"\n    },\n    \"maxLength\": {\"$ref\": \"#/$defs/nonNegativeInteger\"},\n    \"minLength\": {\"$ref\": \"#/$defs/nonNegativeIntegerDefault0\"},\n    \"pattern\": {\n      \"type\": \"string\",\n      \"format\": \"regex\"\n    },\n    \"maxItems\": {\"$ref\": \"#/$defs/nonNegativeInteger\"},\n    \"minItems\": {\"$ref\": \"#/$defs/nonNegativeIntegerDefault0\"},\n    \"uniqueItems\": {\n      \"type\": \"boolean\",\n      \"default\": false\n    },\n    \"maxContains\": {\"$ref\": \"#/$defs/nonNegativeInteger\"},\n    \"minContains\": {\n      \"$ref\": \"#/$defs/nonNegativeInteger\",\n      \"default\": 1\n    },\n    \"maxProperties\": {\"$ref\": \"#/$defs/nonNegativeInteger\"},\n    \"minProperties\": {\"$ref\": \"#/$defs/nonNegativeIntegerDefault0\"},\n    \"required\": {\"$ref\": \"#/$defs/stringArray\"},\n    \"dependentRequired\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"$ref\": \"#/$defs/stringArray\"\n      }\n    }\n  },\n  \"$defs\": {\n    \"nonNegativeInteger\": {\n      \"type\": \"integer\",\n      \"minimum\": 0\n    },\n    \"nonNegativeIntegerDefault0\": {\n      \"$ref\": \"#/$defs/nonNegativeInteger\",\n      \"default\": 0\n    },\n    \"simpleTypes\": {\n      \"enum\": [\"array\", \"boolean\", \"integer\", \"null\", \"number\", \"object\", \"string\"]\n    },\n    \"stringArray\": {\n      \"type\": \"array\",\n      \"items\": {\"type\": \"string\"},\n      \"uniqueItems\": true,\n      \"default\": []\n    }\n  }\n}\n", "import type Ajv from \"../../core\"\nimport type {AnySchemaObject} from \"../../types\"\nimport * as metaSchema from \"./schema.json\"\nimport * as applicator from \"./meta/applicator.json\"\nimport * as unevaluated from \"./meta/unevaluated.json\"\nimport * as content from \"./meta/content.json\"\nimport * as core from \"./meta/core.json\"\nimport * as format from \"./meta/format-annotation.json\"\nimport * as metadata from \"./meta/meta-data.json\"\nimport * as validation from \"./meta/validation.json\"\n\nconst META_SUPPORT_DATA = [\"/properties\"]\n\nexport default function addMetaSchema2020(this: Ajv, $data?: boolean): Ajv {\n  ;[\n    metaSchema,\n    applicator,\n    unevaluated,\n    content,\n    core,\n    with$data(this, format),\n    metadata,\n    with$data(this, validation),\n  ].forEach((sch) => this.addMetaSchema(sch, undefined, false))\n  return this\n\n  function with$data(ajv: Ajv, sch: AnySchemaObject): AnySchemaObject {\n    return $data ? ajv.$dataMetaSchema(sch, META_SUPPORT_DATA) : sch\n  }\n}\n", "import type {AnySchemaObject} from \"./types\"\nimport AjvCore, {Options} from \"./core\"\n\nimport draft2020Vocabularies from \"./vocabularies/draft2020\"\nimport discriminator from \"./vocabularies/discriminator\"\nimport addMetaSchema2020 from \"./refs/json-schema-2020-12\"\n\nconst META_SCHEMA_ID = \"https://json-schema.org/draft/2020-12/schema\"\n\nexport class Ajv2020 extends AjvCore {\n  constructor(opts: Options = {}) {\n    super({\n      ...opts,\n      dynamicRef: true,\n      next: true,\n      unevaluated: true,\n    })\n  }\n\n  _addVocabularies(): void {\n    super._addVocabularies()\n    draft2020Vocabularies.forEach((v) => this.addVocabulary(v))\n    if (this.opts.discriminator) this.addKeyword(discriminator)\n  }\n\n  _addDefaultMetaSchema(): void {\n    super._addDefaultMetaSchema()\n    const {$data, meta} = this.opts\n    if (!meta) return\n    addMetaSchema2020.call(this, $data)\n    this.refs[\"http://json-schema.org/schema\"] = META_SCHEMA_ID\n  }\n\n  defaultMeta(): string | AnySchemaObject | undefined {\n    return (this.opts.defaultMeta =\n      super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined))\n  }\n}\n\nmodule.exports = exports = Ajv2020\nmodule.exports.Ajv2020 = Ajv2020\nObject.defineProperty(exports, \"__esModule\", {value: true})\n\nexport default Ajv2020\n\nexport {\n  Format,\n  FormatDefinition,\n  AsyncFormatDefinition,\n  KeywordDefinition,\n  KeywordErrorDefinition,\n  CodeKeywordDefinition,\n  MacroKeywordDefinition,\n  FuncKeywordDefinition,\n  Vocabulary,\n  Schema,\n  SchemaObject,\n  AnySchemaObject,\n  AsyncSchema,\n  AnySchema,\n  ValidateFunction,\n  AsyncValidateFunction,\n  ErrorObject,\n  ErrorNoParams,\n} from \"./types\"\n\nexport {Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions} from \"./core\"\nexport {SchemaCxt, SchemaObjCxt} from \"./compile\"\nexport {KeywordCxt} from \"./compile/validate\"\nexport {DefinedError} from \"./vocabularies/errors\"\nexport {JSONType} from \"./compile/rules\"\nexport {JSONSchemaType} from \"./types/json-schema\"\nexport {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from \"./compile/codegen\"\nexport {default as ValidationError} from \"./runtime/validation_error\"\nexport {default as MissingRefError} from \"./compile/ref_error\"\n", "{\n    \"id\": \"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v1.2/apiDeclaration.json#\",\n    \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n    \"type\": \"object\",\n    \"required\": [ \"swaggerVersion\", \"basePath\", \"apis\" ],\n    \"properties\": {\n        \"swaggerVersion\": { \"enum\": [ \"1.2\" ] },\n        \"apiVersion\": { \"type\": \"string\" },\n        \"basePath\": {\n            \"type\": \"string\",\n            \"format\": \"uri\",\n            \"pattern\": \"^https?://\"\n        },\n        \"resourcePath\": {\n            \"type\": \"string\",\n            \"format\": \"uri\",\n            \"pattern\": \"^/\"\n        },\n        \"apis\": {\n            \"type\": \"array\",\n            \"items\": { \"$ref\": \"#/definitions/apiObject\" }\n        },\n        \"models\": {\n            \"type\": \"object\",\n            \"additionalProperties\": {\n                \"$ref\": \"modelsObject.json#\"\n            }\n        },\n        \"produces\": { \"$ref\": \"#/definitions/mimeTypeArray\" },\n        \"consumes\": { \"$ref\": \"#/definitions/mimeTypeArray\" },\n        \"authorizations\": { \"$ref\": \"authorizationObject.json#\" }\n    },\n    \"additionalProperties\": false,\n    \"definitions\": {\n        \"apiObject\": {\n            \"type\": \"object\",\n            \"required\": [ \"path\", \"operations\" ],\n            \"properties\": {\n                \"path\": {\n                    \"type\": \"string\",\n                    \"format\": \"uri-template\",\n                    \"pattern\": \"^/\"\n                },\n                \"description\": { \"type\": \"string\" },\n                \"operations\": {\n                    \"type\": \"array\",\n                    \"items\": { \"$ref\": \"operationObject.json#\" }\n                }\n            },\n            \"additionalProperties\": false\n        },\n        \"mimeTypeArray\": {\n            \"type\": \"array\",\n            \"items\": {\n                \"type\": \"string\",\n                \"format\": \"mime-type\"\n            },\n            \"uniqueItems\": true\n        }\n    }\n}\n", "{\n  \"title\": \"A JSON Schema for Swagger 2.0 API.\",\n  \"id\": \"http://swagger.io/v2/schema.json#\",\n  \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n  \"type\": \"object\",\n  \"required\": [\n    \"swagger\",\n    \"info\",\n    \"paths\"\n  ],\n  \"additionalProperties\": false,\n  \"patternProperties\": {\n    \"^x-\": {\n      \"$ref\": \"#/definitions/vendorExtension\"\n    }\n  },\n  \"properties\": {\n    \"swagger\": {\n      \"type\": \"string\",\n      \"enum\": [\n        \"2.0\"\n      ],\n      \"description\": \"The Swagger version of this document.\"\n    },\n    \"info\": {\n      \"$ref\": \"#/definitions/info\"\n    },\n    \"host\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[^{}/ :\\\\\\\\]+(?::\\\\d+)?$\",\n      \"description\": \"The host (name or ip) of the API. Example: 'swagger.io'\"\n    },\n    \"basePath\": {\n      \"type\": \"string\",\n      \"pattern\": \"^/\",\n      \"description\": \"The base path to the API. Example: '/api'.\"\n    },\n    \"schemes\": {\n      \"$ref\": \"#/definitions/schemesList\"\n    },\n    \"consumes\": {\n      \"description\": \"A list of MIME types accepted by the API.\",\n      \"allOf\": [\n        {\n          \"$ref\": \"#/definitions/mediaTypeList\"\n        }\n      ]\n    },\n    \"produces\": {\n      \"description\": \"A list of MIME types the API can produce.\",\n      \"allOf\": [\n        {\n          \"$ref\": \"#/definitions/mediaTypeList\"\n        }\n      ]\n    },\n    \"paths\": {\n      \"$ref\": \"#/definitions/paths\"\n    },\n    \"definitions\": {\n      \"$ref\": \"#/definitions/definitions\"\n    },\n    \"parameters\": {\n      \"$ref\": \"#/definitions/parameterDefinitions\"\n    },\n    \"responses\": {\n      \"$ref\": \"#/definitions/responseDefinitions\"\n    },\n    \"security\": {\n      \"$ref\": \"#/definitions/security\"\n    },\n    \"securityDefinitions\": {\n      \"$ref\": \"#/definitions/securityDefinitions\"\n    },\n    \"tags\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"$ref\": \"#/definitions/tag\"\n      },\n      \"uniqueItems\": true\n    },\n    \"externalDocs\": {\n      \"$ref\": \"#/definitions/externalDocs\"\n    }\n  },\n  \"definitions\": {\n    \"info\": {\n      \"type\": \"object\",\n      \"description\": \"General information about the API.\",\n      \"required\": [\n        \"version\",\n        \"title\"\n      ],\n      \"additionalProperties\": false,\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      },\n      \"properties\": {\n        \"title\": {\n          \"type\": \"string\",\n          \"description\": \"A unique and precise title of the API.\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"description\": \"A semantic version number of the API.\"\n        },\n        \"description\": {\n          \"type\": \"string\",\n          \"description\": \"A longer description of the API. Should be different from the title.  GitHub Flavored Markdown is allowed.\"\n        },\n        \"termsOfService\": {\n          \"type\": \"string\",\n          \"description\": \"The terms of service for the API.\"\n        },\n        \"contact\": {\n          \"$ref\": \"#/definitions/contact\"\n        },\n        \"license\": {\n          \"$ref\": \"#/definitions/license\"\n        }\n      }\n    },\n    \"contact\": {\n      \"type\": \"object\",\n      \"description\": \"Contact information for the owners of the API.\",\n      \"additionalProperties\": false,\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\",\n          \"description\": \"The identifying name of the contact person/organization.\"\n        },\n        \"url\": {\n          \"type\": \"string\",\n          \"description\": \"The URL pointing to the contact information.\",\n          \"format\": \"uri\"\n        },\n        \"email\": {\n          \"type\": \"string\",\n          \"description\": \"The email address of the contact person/organization.\",\n          \"format\": \"email\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"license\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"name\"\n      ],\n      \"additionalProperties\": false,\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\",\n          \"description\": \"The name of the license type. It's encouraged to use an OSI compatible license.\"\n        },\n        \"url\": {\n          \"type\": \"string\",\n          \"description\": \"The URL pointing to the license.\",\n          \"format\": \"uri\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"paths\": {\n      \"type\": \"object\",\n      \"description\": \"Relative paths to the individual endpoints. They must be relative to the 'basePath'.\",\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        },\n        \"^/\": {\n          \"$ref\": \"#/definitions/pathItem\"\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"definitions\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"$ref\": \"#/definitions/schema\"\n      },\n      \"description\": \"One or more JSON objects describing the schemas being consumed and produced by the API.\"\n    },\n    \"parameterDefinitions\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"$ref\": \"#/definitions/parameter\"\n      },\n      \"description\": \"One or more JSON representations for parameters\"\n    },\n    \"responseDefinitions\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"$ref\": \"#/definitions/response\"\n      },\n      \"description\": \"One or more JSON representations for responses\"\n    },\n    \"externalDocs\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"description\": \"information about external documentation\",\n      \"required\": [\n        \"url\"\n      ],\n      \"properties\": {\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"url\": {\n          \"type\": \"string\",\n          \"format\": \"uri\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"examples\": {\n      \"type\": \"object\",\n      \"additionalProperties\": true\n    },\n    \"mimeType\": {\n      \"type\": \"string\",\n      \"description\": \"The MIME type of the HTTP message.\"\n    },\n    \"operation\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"responses\"\n      ],\n      \"additionalProperties\": false,\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      },\n      \"properties\": {\n        \"tags\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"type\": \"string\"\n          },\n          \"uniqueItems\": true\n        },\n        \"summary\": {\n          \"type\": \"string\",\n          \"description\": \"A brief summary of the operation.\"\n        },\n        \"description\": {\n          \"type\": \"string\",\n          \"description\": \"A longer description of the operation, GitHub Flavored Markdown is allowed.\"\n        },\n        \"externalDocs\": {\n          \"$ref\": \"#/definitions/externalDocs\"\n        },\n        \"operationId\": {\n          \"type\": \"string\",\n          \"description\": \"A unique identifier of the operation.\"\n        },\n        \"produces\": {\n          \"description\": \"A list of MIME types the API can produce.\",\n          \"allOf\": [\n            {\n              \"$ref\": \"#/definitions/mediaTypeList\"\n            }\n          ]\n        },\n        \"consumes\": {\n          \"description\": \"A list of MIME types the API can consume.\",\n          \"allOf\": [\n            {\n              \"$ref\": \"#/definitions/mediaTypeList\"\n            }\n          ]\n        },\n        \"parameters\": {\n          \"$ref\": \"#/definitions/parametersList\"\n        },\n        \"responses\": {\n          \"$ref\": \"#/definitions/responses\"\n        },\n        \"schemes\": {\n          \"$ref\": \"#/definitions/schemesList\"\n        },\n        \"deprecated\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"security\": {\n          \"$ref\": \"#/definitions/security\"\n        }\n      }\n    },\n    \"pathItem\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      },\n      \"properties\": {\n        \"$ref\": {\n          \"type\": \"string\"\n        },\n        \"get\": {\n          \"$ref\": \"#/definitions/operation\"\n        },\n        \"put\": {\n          \"$ref\": \"#/definitions/operation\"\n        },\n        \"post\": {\n          \"$ref\": \"#/definitions/operation\"\n        },\n        \"delete\": {\n          \"$ref\": \"#/definitions/operation\"\n        },\n        \"options\": {\n          \"$ref\": \"#/definitions/operation\"\n        },\n        \"head\": {\n          \"$ref\": \"#/definitions/operation\"\n        },\n        \"patch\": {\n          \"$ref\": \"#/definitions/operation\"\n        },\n        \"parameters\": {\n          \"$ref\": \"#/definitions/parametersList\"\n        }\n      }\n    },\n    \"responses\": {\n      \"type\": \"object\",\n      \"description\": \"Response objects names can either be any valid HTTP status code or 'default'.\",\n      \"minProperties\": 1,\n      \"additionalProperties\": false,\n      \"patternProperties\": {\n        \"^([0-9]{3})$|^(default)$\": {\n          \"$ref\": \"#/definitions/responseValue\"\n        },\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      },\n      \"not\": {\n        \"type\": \"object\",\n        \"additionalProperties\": false,\n        \"patternProperties\": {\n          \"^x-\": {\n            \"$ref\": \"#/definitions/vendorExtension\"\n          }\n        }\n      }\n    },\n    \"responseValue\": {\n      \"oneOf\": [\n        {\n          \"$ref\": \"#/definitions/response\"\n        },\n        {\n          \"$ref\": \"#/definitions/jsonReference\"\n        }\n      ]\n    },\n    \"response\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"description\"\n      ],\n      \"properties\": {\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"schema\": {\n          \"oneOf\": [\n            {\n              \"$ref\": \"#/definitions/schema\"\n            },\n            {\n              \"$ref\": \"#/definitions/fileSchema\"\n            }\n          ]\n        },\n        \"headers\": {\n          \"$ref\": \"#/definitions/headers\"\n        },\n        \"examples\": {\n          \"$ref\": \"#/definitions/examples\"\n        }\n      },\n      \"additionalProperties\": false,\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"headers\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"$ref\": \"#/definitions/header\"\n      }\n    },\n    \"header\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"required\": [\n        \"type\"\n      ],\n      \"properties\": {\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"string\",\n            \"number\",\n            \"integer\",\n            \"boolean\",\n            \"array\"\n          ]\n        },\n        \"format\": {\n          \"type\": \"string\"\n        },\n        \"items\": {\n          \"$ref\": \"#/definitions/primitivesItems\"\n        },\n        \"collectionFormat\": {\n          \"$ref\": \"#/definitions/collectionFormat\"\n        },\n        \"default\": {\n          \"$ref\": \"#/definitions/default\"\n        },\n        \"maximum\": {\n          \"$ref\": \"#/definitions/maximum\"\n        },\n        \"exclusiveMaximum\": {\n          \"$ref\": \"#/definitions/exclusiveMaximum\"\n        },\n        \"minimum\": {\n          \"$ref\": \"#/definitions/minimum\"\n        },\n        \"exclusiveMinimum\": {\n          \"$ref\": \"#/definitions/exclusiveMinimum\"\n        },\n        \"maxLength\": {\n          \"$ref\": \"#/definitions/maxLength\"\n        },\n        \"minLength\": {\n          \"$ref\": \"#/definitions/minLength\"\n        },\n        \"pattern\": {\n          \"$ref\": \"#/definitions/pattern\"\n        },\n        \"maxItems\": {\n          \"$ref\": \"#/definitions/maxItems\"\n        },\n        \"minItems\": {\n          \"$ref\": \"#/definitions/minItems\"\n        },\n        \"uniqueItems\": {\n          \"$ref\": \"#/definitions/uniqueItems\"\n        },\n        \"enum\": {\n          \"$ref\": \"#/definitions/enum\"\n        },\n        \"multipleOf\": {\n          \"$ref\": \"#/definitions/multipleOf\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"vendorExtension\": {\n      \"description\": \"Any property starting with x- is valid.\",\n      \"additionalProperties\": true,\n      \"additionalItems\": true\n    },\n    \"bodyParameter\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"name\",\n        \"in\",\n        \"schema\"\n      ],\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      },\n      \"properties\": {\n        \"description\": {\n          \"type\": \"string\",\n          \"description\": \"A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed.\"\n        },\n        \"name\": {\n          \"type\": \"string\",\n          \"description\": \"The name of the parameter.\"\n        },\n        \"in\": {\n          \"type\": \"string\",\n          \"description\": \"Determines the location of the parameter.\",\n          \"enum\": [\n            \"body\"\n          ]\n        },\n        \"required\": {\n          \"type\": \"boolean\",\n          \"description\": \"Determines whether or not this parameter is required or optional.\",\n          \"default\": false\n        },\n        \"schema\": {\n          \"$ref\": \"#/definitions/schema\"\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"headerParameterSubSchema\": {\n      \"additionalProperties\": false,\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      },\n      \"properties\": {\n        \"required\": {\n          \"type\": \"boolean\",\n          \"description\": \"Determines whether or not this parameter is required or optional.\",\n          \"default\": false\n        },\n        \"in\": {\n          \"type\": \"string\",\n          \"description\": \"Determines the location of the parameter.\",\n          \"enum\": [\n            \"header\"\n          ]\n        },\n        \"description\": {\n          \"type\": \"string\",\n          \"description\": \"A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed.\"\n        },\n        \"name\": {\n          \"type\": \"string\",\n          \"description\": \"The name of the parameter.\"\n        },\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"string\",\n            \"number\",\n            \"boolean\",\n            \"integer\",\n            \"array\"\n          ]\n        },\n        \"format\": {\n          \"type\": \"string\"\n        },\n        \"items\": {\n          \"$ref\": \"#/definitions/primitivesItems\"\n        },\n        \"collectionFormat\": {\n          \"$ref\": \"#/definitions/collectionFormat\"\n        },\n        \"default\": {\n          \"$ref\": \"#/definitions/default\"\n        },\n        \"maximum\": {\n          \"$ref\": \"#/definitions/maximum\"\n        },\n        \"exclusiveMaximum\": {\n          \"$ref\": \"#/definitions/exclusiveMaximum\"\n        },\n        \"minimum\": {\n          \"$ref\": \"#/definitions/minimum\"\n        },\n        \"exclusiveMinimum\": {\n          \"$ref\": \"#/definitions/exclusiveMinimum\"\n        },\n        \"maxLength\": {\n          \"$ref\": \"#/definitions/maxLength\"\n        },\n        \"minLength\": {\n          \"$ref\": \"#/definitions/minLength\"\n        },\n        \"pattern\": {\n          \"$ref\": \"#/definitions/pattern\"\n        },\n        \"maxItems\": {\n          \"$ref\": \"#/definitions/maxItems\"\n        },\n        \"minItems\": {\n          \"$ref\": \"#/definitions/minItems\"\n        },\n        \"uniqueItems\": {\n          \"$ref\": \"#/definitions/uniqueItems\"\n        },\n        \"enum\": {\n          \"$ref\": \"#/definitions/enum\"\n        },\n        \"multipleOf\": {\n          \"$ref\": \"#/definitions/multipleOf\"\n        }\n      }\n    },\n    \"queryParameterSubSchema\": {\n      \"additionalProperties\": false,\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      },\n      \"properties\": {\n        \"required\": {\n          \"type\": \"boolean\",\n          \"description\": \"Determines whether or not this parameter is required or optional.\",\n          \"default\": false\n        },\n        \"in\": {\n          \"type\": \"string\",\n          \"description\": \"Determines the location of the parameter.\",\n          \"enum\": [\n            \"query\"\n          ]\n        },\n        \"description\": {\n          \"type\": \"string\",\n          \"description\": \"A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed.\"\n        },\n        \"name\": {\n          \"type\": \"string\",\n          \"description\": \"The name of the parameter.\"\n        },\n        \"allowEmptyValue\": {\n          \"type\": \"boolean\",\n          \"default\": false,\n          \"description\": \"allows sending a parameter by name only or with an empty value.\"\n        },\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"string\",\n            \"number\",\n            \"boolean\",\n            \"integer\",\n            \"array\"\n          ]\n        },\n        \"format\": {\n          \"type\": \"string\"\n        },\n        \"items\": {\n          \"$ref\": \"#/definitions/primitivesItems\"\n        },\n        \"collectionFormat\": {\n          \"$ref\": \"#/definitions/collectionFormatWithMulti\"\n        },\n        \"default\": {\n          \"$ref\": \"#/definitions/default\"\n        },\n        \"maximum\": {\n          \"$ref\": \"#/definitions/maximum\"\n        },\n        \"exclusiveMaximum\": {\n          \"$ref\": \"#/definitions/exclusiveMaximum\"\n        },\n        \"minimum\": {\n          \"$ref\": \"#/definitions/minimum\"\n        },\n        \"exclusiveMinimum\": {\n          \"$ref\": \"#/definitions/exclusiveMinimum\"\n        },\n        \"maxLength\": {\n          \"$ref\": \"#/definitions/maxLength\"\n        },\n        \"minLength\": {\n          \"$ref\": \"#/definitions/minLength\"\n        },\n        \"pattern\": {\n          \"$ref\": \"#/definitions/pattern\"\n        },\n        \"maxItems\": {\n          \"$ref\": \"#/definitions/maxItems\"\n        },\n        \"minItems\": {\n          \"$ref\": \"#/definitions/minItems\"\n        },\n        \"uniqueItems\": {\n          \"$ref\": \"#/definitions/uniqueItems\"\n        },\n        \"enum\": {\n          \"$ref\": \"#/definitions/enum\"\n        },\n        \"multipleOf\": {\n          \"$ref\": \"#/definitions/multipleOf\"\n        }\n      }\n    },\n    \"formDataParameterSubSchema\": {\n      \"additionalProperties\": false,\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      },\n      \"properties\": {\n        \"required\": {\n          \"type\": \"boolean\",\n          \"description\": \"Determines whether or not this parameter is required or optional.\",\n          \"default\": false\n        },\n        \"in\": {\n          \"type\": \"string\",\n          \"description\": \"Determines the location of the parameter.\",\n          \"enum\": [\n            \"formData\"\n          ]\n        },\n        \"description\": {\n          \"type\": \"string\",\n          \"description\": \"A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed.\"\n        },\n        \"name\": {\n          \"type\": \"string\",\n          \"description\": \"The name of the parameter.\"\n        },\n        \"allowEmptyValue\": {\n          \"type\": \"boolean\",\n          \"default\": false,\n          \"description\": \"allows sending a parameter by name only or with an empty value.\"\n        },\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"string\",\n            \"number\",\n            \"boolean\",\n            \"integer\",\n            \"array\",\n            \"file\"\n          ]\n        },\n        \"format\": {\n          \"type\": \"string\"\n        },\n        \"items\": {\n          \"$ref\": \"#/definitions/primitivesItems\"\n        },\n        \"collectionFormat\": {\n          \"$ref\": \"#/definitions/collectionFormatWithMulti\"\n        },\n        \"default\": {\n          \"$ref\": \"#/definitions/default\"\n        },\n        \"maximum\": {\n          \"$ref\": \"#/definitions/maximum\"\n        },\n        \"exclusiveMaximum\": {\n          \"$ref\": \"#/definitions/exclusiveMaximum\"\n        },\n        \"minimum\": {\n          \"$ref\": \"#/definitions/minimum\"\n        },\n        \"exclusiveMinimum\": {\n          \"$ref\": \"#/definitions/exclusiveMinimum\"\n        },\n        \"maxLength\": {\n          \"$ref\": \"#/definitions/maxLength\"\n        },\n        \"minLength\": {\n          \"$ref\": \"#/definitions/minLength\"\n        },\n        \"pattern\": {\n          \"$ref\": \"#/definitions/pattern\"\n        },\n        \"maxItems\": {\n          \"$ref\": \"#/definitions/maxItems\"\n        },\n        \"minItems\": {\n          \"$ref\": \"#/definitions/minItems\"\n        },\n        \"uniqueItems\": {\n          \"$ref\": \"#/definitions/uniqueItems\"\n        },\n        \"enum\": {\n          \"$ref\": \"#/definitions/enum\"\n        },\n        \"multipleOf\": {\n          \"$ref\": \"#/definitions/multipleOf\"\n        }\n      }\n    },\n    \"pathParameterSubSchema\": {\n      \"additionalProperties\": false,\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      },\n      \"required\": [\n        \"required\"\n      ],\n      \"properties\": {\n        \"required\": {\n          \"type\": \"boolean\",\n          \"enum\": [\n            true\n          ],\n          \"description\": \"Determines whether or not this parameter is required or optional.\"\n        },\n        \"in\": {\n          \"type\": \"string\",\n          \"description\": \"Determines the location of the parameter.\",\n          \"enum\": [\n            \"path\"\n          ]\n        },\n        \"description\": {\n          \"type\": \"string\",\n          \"description\": \"A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed.\"\n        },\n        \"name\": {\n          \"type\": \"string\",\n          \"description\": \"The name of the parameter.\"\n        },\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"string\",\n            \"number\",\n            \"boolean\",\n            \"integer\",\n            \"array\"\n          ]\n        },\n        \"format\": {\n          \"type\": \"string\"\n        },\n        \"items\": {\n          \"$ref\": \"#/definitions/primitivesItems\"\n        },\n        \"collectionFormat\": {\n          \"$ref\": \"#/definitions/collectionFormat\"\n        },\n        \"default\": {\n          \"$ref\": \"#/definitions/default\"\n        },\n        \"maximum\": {\n          \"$ref\": \"#/definitions/maximum\"\n        },\n        \"exclusiveMaximum\": {\n          \"$ref\": \"#/definitions/exclusiveMaximum\"\n        },\n        \"minimum\": {\n          \"$ref\": \"#/definitions/minimum\"\n        },\n        \"exclusiveMinimum\": {\n          \"$ref\": \"#/definitions/exclusiveMinimum\"\n        },\n        \"maxLength\": {\n          \"$ref\": \"#/definitions/maxLength\"\n        },\n        \"minLength\": {\n          \"$ref\": \"#/definitions/minLength\"\n        },\n        \"pattern\": {\n          \"$ref\": \"#/definitions/pattern\"\n        },\n        \"maxItems\": {\n          \"$ref\": \"#/definitions/maxItems\"\n        },\n        \"minItems\": {\n          \"$ref\": \"#/definitions/minItems\"\n        },\n        \"uniqueItems\": {\n          \"$ref\": \"#/definitions/uniqueItems\"\n        },\n        \"enum\": {\n          \"$ref\": \"#/definitions/enum\"\n        },\n        \"multipleOf\": {\n          \"$ref\": \"#/definitions/multipleOf\"\n        }\n      }\n    },\n    \"nonBodyParameter\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"name\",\n        \"in\",\n        \"type\"\n      ],\n      \"oneOf\": [\n        {\n          \"$ref\": \"#/definitions/headerParameterSubSchema\"\n        },\n        {\n          \"$ref\": \"#/definitions/formDataParameterSubSchema\"\n        },\n        {\n          \"$ref\": \"#/definitions/queryParameterSubSchema\"\n        },\n        {\n          \"$ref\": \"#/definitions/pathParameterSubSchema\"\n        }\n      ]\n    },\n    \"parameter\": {\n      \"oneOf\": [\n        {\n          \"$ref\": \"#/definitions/bodyParameter\"\n        },\n        {\n          \"$ref\": \"#/definitions/nonBodyParameter\"\n        }\n      ]\n    },\n    \"schema\": {\n      \"type\": \"object\",\n      \"description\": \"A deterministic version of a JSON Schema object.\",\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      },\n      \"properties\": {\n        \"$ref\": {\n          \"type\": \"string\"\n        },\n        \"format\": {\n          \"type\": \"string\"\n        },\n        \"title\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/title\"\n        },\n        \"description\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/description\"\n        },\n        \"default\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/default\"\n        },\n        \"multipleOf\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/multipleOf\"\n        },\n        \"maximum\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/maximum\"\n        },\n        \"exclusiveMaximum\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum\"\n        },\n        \"minimum\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/minimum\"\n        },\n        \"exclusiveMinimum\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum\"\n        },\n        \"maxLength\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveInteger\"\n        },\n        \"minLength\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0\"\n        },\n        \"pattern\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/pattern\"\n        },\n        \"maxItems\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveInteger\"\n        },\n        \"minItems\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0\"\n        },\n        \"uniqueItems\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/uniqueItems\"\n        },\n        \"maxProperties\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveInteger\"\n        },\n        \"minProperties\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0\"\n        },\n        \"required\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/stringArray\"\n        },\n        \"enum\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/enum\"\n        },\n        \"additionalProperties\": {\n          \"anyOf\": [\n            {\n              \"$ref\": \"#/definitions/schema\"\n            },\n            {\n              \"type\": \"boolean\"\n            }\n          ],\n          \"default\": {}\n        },\n        \"type\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/type\"\n        },\n        \"items\": {\n          \"anyOf\": [\n            {\n              \"$ref\": \"#/definitions/schema\"\n            },\n            {\n              \"type\": \"array\",\n              \"minItems\": 1,\n              \"items\": {\n                \"$ref\": \"#/definitions/schema\"\n              }\n            }\n          ],\n          \"default\": {}\n        },\n        \"allOf\": {\n          \"type\": \"array\",\n          \"minItems\": 1,\n          \"items\": {\n            \"$ref\": \"#/definitions/schema\"\n          }\n        },\n        \"properties\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/definitions/schema\"\n          },\n          \"default\": {}\n        },\n        \"discriminator\": {\n          \"type\": \"string\"\n        },\n        \"readOnly\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"xml\": {\n          \"$ref\": \"#/definitions/xml\"\n        },\n        \"externalDocs\": {\n          \"$ref\": \"#/definitions/externalDocs\"\n        },\n        \"example\": {}\n      },\n      \"additionalProperties\": false\n    },\n    \"fileSchema\": {\n      \"type\": \"object\",\n      \"description\": \"A deterministic version of a JSON Schema object.\",\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      },\n      \"required\": [\n        \"type\"\n      ],\n      \"properties\": {\n        \"format\": {\n          \"type\": \"string\"\n        },\n        \"title\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/title\"\n        },\n        \"description\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/description\"\n        },\n        \"default\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/default\"\n        },\n        \"required\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/stringArray\"\n        },\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"file\"\n          ]\n        },\n        \"readOnly\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"externalDocs\": {\n          \"$ref\": \"#/definitions/externalDocs\"\n        },\n        \"example\": {}\n      },\n      \"additionalProperties\": false\n    },\n    \"primitivesItems\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"properties\": {\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"string\",\n            \"number\",\n            \"integer\",\n            \"boolean\",\n            \"array\"\n          ]\n        },\n        \"format\": {\n          \"type\": \"string\"\n        },\n        \"items\": {\n          \"$ref\": \"#/definitions/primitivesItems\"\n        },\n        \"collectionFormat\": {\n          \"$ref\": \"#/definitions/collectionFormat\"\n        },\n        \"default\": {\n          \"$ref\": \"#/definitions/default\"\n        },\n        \"maximum\": {\n          \"$ref\": \"#/definitions/maximum\"\n        },\n        \"exclusiveMaximum\": {\n          \"$ref\": \"#/definitions/exclusiveMaximum\"\n        },\n        \"minimum\": {\n          \"$ref\": \"#/definitions/minimum\"\n        },\n        \"exclusiveMinimum\": {\n          \"$ref\": \"#/definitions/exclusiveMinimum\"\n        },\n        \"maxLength\": {\n          \"$ref\": \"#/definitions/maxLength\"\n        },\n        \"minLength\": {\n          \"$ref\": \"#/definitions/minLength\"\n        },\n        \"pattern\": {\n          \"$ref\": \"#/definitions/pattern\"\n        },\n        \"maxItems\": {\n          \"$ref\": \"#/definitions/maxItems\"\n        },\n        \"minItems\": {\n          \"$ref\": \"#/definitions/minItems\"\n        },\n        \"uniqueItems\": {\n          \"$ref\": \"#/definitions/uniqueItems\"\n        },\n        \"enum\": {\n          \"$ref\": \"#/definitions/enum\"\n        },\n        \"multipleOf\": {\n          \"$ref\": \"#/definitions/multipleOf\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"security\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"$ref\": \"#/definitions/securityRequirement\"\n      },\n      \"uniqueItems\": true\n    },\n    \"securityRequirement\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"type\": \"array\",\n        \"items\": {\n          \"type\": \"string\"\n        },\n        \"uniqueItems\": true\n      }\n    },\n    \"xml\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"namespace\": {\n          \"type\": \"string\"\n        },\n        \"prefix\": {\n          \"type\": \"string\"\n        },\n        \"attribute\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"wrapped\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"tag\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"required\": [\n        \"name\"\n      ],\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"externalDocs\": {\n          \"$ref\": \"#/definitions/externalDocs\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"securityDefinitions\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"oneOf\": [\n          {\n            \"$ref\": \"#/definitions/basicAuthenticationSecurity\"\n          },\n          {\n            \"$ref\": \"#/definitions/apiKeySecurity\"\n          },\n          {\n            \"$ref\": \"#/definitions/oauth2ImplicitSecurity\"\n          },\n          {\n            \"$ref\": \"#/definitions/oauth2PasswordSecurity\"\n          },\n          {\n            \"$ref\": \"#/definitions/oauth2ApplicationSecurity\"\n          },\n          {\n            \"$ref\": \"#/definitions/oauth2AccessCodeSecurity\"\n          }\n        ]\n      }\n    },\n    \"basicAuthenticationSecurity\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"required\": [\n        \"type\"\n      ],\n      \"properties\": {\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"basic\"\n          ]\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"apiKeySecurity\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"required\": [\n        \"type\",\n        \"name\",\n        \"in\"\n      ],\n      \"properties\": {\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"apiKey\"\n          ]\n        },\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"in\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"header\",\n            \"query\"\n          ]\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"oauth2ImplicitSecurity\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"required\": [\n        \"type\",\n        \"flow\",\n        \"authorizationUrl\"\n      ],\n      \"properties\": {\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"oauth2\"\n          ]\n        },\n        \"flow\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"implicit\"\n          ]\n        },\n        \"scopes\": {\n          \"$ref\": \"#/definitions/oauth2Scopes\"\n        },\n        \"authorizationUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"oauth2PasswordSecurity\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"required\": [\n        \"type\",\n        \"flow\",\n        \"tokenUrl\"\n      ],\n      \"properties\": {\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"oauth2\"\n          ]\n        },\n        \"flow\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"password\"\n          ]\n        },\n        \"scopes\": {\n          \"$ref\": \"#/definitions/oauth2Scopes\"\n        },\n        \"tokenUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"oauth2ApplicationSecurity\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"required\": [\n        \"type\",\n        \"flow\",\n        \"tokenUrl\"\n      ],\n      \"properties\": {\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"oauth2\"\n          ]\n        },\n        \"flow\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"application\"\n          ]\n        },\n        \"scopes\": {\n          \"$ref\": \"#/definitions/oauth2Scopes\"\n        },\n        \"tokenUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"oauth2AccessCodeSecurity\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"required\": [\n        \"type\",\n        \"flow\",\n        \"authorizationUrl\",\n        \"tokenUrl\"\n      ],\n      \"properties\": {\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"oauth2\"\n          ]\n        },\n        \"flow\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"accessCode\"\n          ]\n        },\n        \"scopes\": {\n          \"$ref\": \"#/definitions/oauth2Scopes\"\n        },\n        \"authorizationUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri\"\n        },\n        \"tokenUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"oauth2Scopes\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"type\": \"string\"\n      }\n    },\n    \"mediaTypeList\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"$ref\": \"#/definitions/mimeType\"\n      },\n      \"uniqueItems\": true\n    },\n    \"parametersList\": {\n      \"type\": \"array\",\n      \"description\": \"The parameters needed to send a valid API call.\",\n      \"additionalItems\": false,\n      \"items\": {\n        \"oneOf\": [\n          {\n            \"$ref\": \"#/definitions/parameter\"\n          },\n          {\n            \"$ref\": \"#/definitions/jsonReference\"\n          }\n        ]\n      },\n      \"uniqueItems\": true\n    },\n    \"schemesList\": {\n      \"type\": \"array\",\n      \"description\": \"The transfer protocol of the API.\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"http\",\n          \"https\",\n          \"ws\",\n          \"wss\"\n        ]\n      },\n      \"uniqueItems\": true\n    },\n    \"collectionFormat\": {\n      \"type\": \"string\",\n      \"enum\": [\n        \"csv\",\n        \"ssv\",\n        \"tsv\",\n        \"pipes\"\n      ],\n      \"default\": \"csv\"\n    },\n    \"collectionFormatWithMulti\": {\n      \"type\": \"string\",\n      \"enum\": [\n        \"csv\",\n        \"ssv\",\n        \"tsv\",\n        \"pipes\",\n        \"multi\"\n      ],\n      \"default\": \"csv\"\n    },\n    \"title\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/title\"\n    },\n    \"description\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/description\"\n    },\n    \"default\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/default\"\n    },\n    \"multipleOf\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/multipleOf\"\n    },\n    \"maximum\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/maximum\"\n    },\n    \"exclusiveMaximum\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum\"\n    },\n    \"minimum\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/minimum\"\n    },\n    \"exclusiveMinimum\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum\"\n    },\n    \"maxLength\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveInteger\"\n    },\n    \"minLength\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0\"\n    },\n    \"pattern\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/pattern\"\n    },\n    \"maxItems\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveInteger\"\n    },\n    \"minItems\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0\"\n    },\n    \"uniqueItems\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/uniqueItems\"\n    },\n    \"enum\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/enum\"\n    },\n    \"jsonReference\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"$ref\"\n      ],\n      \"additionalProperties\": false,\n      \"properties\": {\n        \"$ref\": {\n          \"type\": \"string\"\n        }\n      }\n    }\n  }\n}", "{\n  \"id\": \"https://spec.openapis.org/oas/3.0/schema/2019-04-02\",\n  \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n  \"description\": \"Validation schema for OpenAPI Specification 3.0.X.\",\n  \"type\": \"object\",\n  \"required\": [\n    \"openapi\",\n    \"info\",\n    \"paths\"\n  ],\n  \"properties\": {\n    \"openapi\": {\n      \"type\": \"string\",\n      \"pattern\": \"^3\\\\.0\\\\.\\\\d(-.+)?$\"\n    },\n    \"info\": {\n      \"$ref\": \"#/definitions/Info\"\n    },\n    \"externalDocs\": {\n      \"$ref\": \"#/definitions/ExternalDocumentation\"\n    },\n    \"servers\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"$ref\": \"#/definitions/Server\"\n      }\n    },\n    \"security\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"$ref\": \"#/definitions/SecurityRequirement\"\n      }\n    },\n    \"tags\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"$ref\": \"#/definitions/Tag\"\n      },\n      \"uniqueItems\": true\n    },\n    \"paths\": {\n      \"$ref\": \"#/definitions/Paths\"\n    },\n    \"components\": {\n      \"$ref\": \"#/definitions/Components\"\n    }\n  },\n  \"patternProperties\": {\n    \"^x-\": {\n    }\n  },\n  \"additionalProperties\": false,\n  \"definitions\": {\n    \"Reference\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"$ref\"\n      ],\n      \"patternProperties\": {\n        \"^\\\\$ref$\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        }\n      }\n    },\n    \"Info\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"title\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"title\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"termsOfService\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"contact\": {\n          \"$ref\": \"#/definitions/Contact\"\n        },\n        \"license\": {\n          \"$ref\": \"#/definitions/License\"\n        },\n        \"version\": {\n          \"type\": \"string\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"Contact\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"url\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"email\": {\n          \"type\": \"string\",\n          \"format\": \"email\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"License\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"name\"\n      ],\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"url\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"Server\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"url\"\n      ],\n      \"properties\": {\n        \"url\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"variables\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/definitions/ServerVariable\"\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"ServerVariable\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"default\"\n      ],\n      \"properties\": {\n        \"enum\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"type\": \"string\"\n          }\n        },\n        \"default\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"Components\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"schemas\": {\n          \"type\": \"object\",\n          \"patternProperties\": {\n            \"^[a-zA-Z0-9\\\\.\\\\-_]+$\": {\n              \"oneOf\": [\n                {\n                  \"$ref\": \"#/definitions/Schema\"\n                },\n                {\n                  \"$ref\": \"#/definitions/Reference\"\n                }\n              ]\n            }\n          }\n        },\n        \"responses\": {\n          \"type\": \"object\",\n          \"patternProperties\": {\n            \"^[a-zA-Z0-9\\\\.\\\\-_]+$\": {\n              \"oneOf\": [\n                {\n                  \"$ref\": \"#/definitions/Reference\"\n                },\n                {\n                  \"$ref\": \"#/definitions/Response\"\n                }\n              ]\n            }\n          }\n        },\n        \"parameters\": {\n          \"type\": \"object\",\n          \"patternProperties\": {\n            \"^[a-zA-Z0-9\\\\.\\\\-_]+$\": {\n              \"oneOf\": [\n                {\n                  \"$ref\": \"#/definitions/Reference\"\n                },\n                {\n                  \"$ref\": \"#/definitions/Parameter\"\n                }\n              ]\n            }\n          }\n        },\n        \"examples\": {\n          \"type\": \"object\",\n          \"patternProperties\": {\n            \"^[a-zA-Z0-9\\\\.\\\\-_]+$\": {\n              \"oneOf\": [\n                {\n                  \"$ref\": \"#/definitions/Reference\"\n                },\n                {\n                  \"$ref\": \"#/definitions/Example\"\n                }\n              ]\n            }\n          }\n        },\n        \"requestBodies\": {\n          \"type\": \"object\",\n          \"patternProperties\": {\n            \"^[a-zA-Z0-9\\\\.\\\\-_]+$\": {\n              \"oneOf\": [\n                {\n                  \"$ref\": \"#/definitions/Reference\"\n                },\n                {\n                  \"$ref\": \"#/definitions/RequestBody\"\n                }\n              ]\n            }\n          }\n        },\n        \"headers\": {\n          \"type\": \"object\",\n          \"patternProperties\": {\n            \"^[a-zA-Z0-9\\\\.\\\\-_]+$\": {\n              \"oneOf\": [\n                {\n                  \"$ref\": \"#/definitions/Reference\"\n                },\n                {\n                  \"$ref\": \"#/definitions/Header\"\n                }\n              ]\n            }\n          }\n        },\n        \"securitySchemes\": {\n          \"type\": \"object\",\n          \"patternProperties\": {\n            \"^[a-zA-Z0-9\\\\.\\\\-_]+$\": {\n              \"oneOf\": [\n                {\n                  \"$ref\": \"#/definitions/Reference\"\n                },\n                {\n                  \"$ref\": \"#/definitions/SecurityScheme\"\n                }\n              ]\n            }\n          }\n        },\n        \"links\": {\n          \"type\": \"object\",\n          \"patternProperties\": {\n            \"^[a-zA-Z0-9\\\\.\\\\-_]+$\": {\n              \"oneOf\": [\n                {\n                  \"$ref\": \"#/definitions/Reference\"\n                },\n                {\n                  \"$ref\": \"#/definitions/Link\"\n                }\n              ]\n            }\n          }\n        },\n        \"callbacks\": {\n          \"type\": \"object\",\n          \"patternProperties\": {\n            \"^[a-zA-Z0-9\\\\.\\\\-_]+$\": {\n              \"oneOf\": [\n                {\n                  \"$ref\": \"#/definitions/Reference\"\n                },\n                {\n                  \"$ref\": \"#/definitions/Callback\"\n                }\n              ]\n            }\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"Schema\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"title\": {\n          \"type\": \"string\"\n        },\n        \"multipleOf\": {\n          \"type\": \"number\",\n          \"minimum\": 0,\n          \"exclusiveMinimum\": true\n        },\n        \"maximum\": {\n          \"type\": \"number\"\n        },\n        \"exclusiveMaximum\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"minimum\": {\n          \"type\": \"number\"\n        },\n        \"exclusiveMinimum\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"maxLength\": {\n          \"type\": \"integer\",\n          \"minimum\": 0\n        },\n        \"minLength\": {\n          \"type\": \"integer\",\n          \"minimum\": 0,\n          \"default\": 0\n        },\n        \"pattern\": {\n          \"type\": \"string\",\n          \"format\": \"regex\"\n        },\n        \"maxItems\": {\n          \"type\": \"integer\",\n          \"minimum\": 0\n        },\n        \"minItems\": {\n          \"type\": \"integer\",\n          \"minimum\": 0,\n          \"default\": 0\n        },\n        \"uniqueItems\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"maxProperties\": {\n          \"type\": \"integer\",\n          \"minimum\": 0\n        },\n        \"minProperties\": {\n          \"type\": \"integer\",\n          \"minimum\": 0,\n          \"default\": 0\n        },\n        \"required\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"type\": \"string\"\n          },\n          \"minItems\": 1,\n          \"uniqueItems\": true\n        },\n        \"enum\": {\n          \"type\": \"array\",\n          \"items\": {\n          },\n          \"minItems\": 1,\n          \"uniqueItems\": false\n        },\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"array\",\n            \"boolean\",\n            \"integer\",\n            \"number\",\n            \"object\",\n            \"string\"\n          ]\n        },\n        \"not\": {\n          \"oneOf\": [\n            {\n              \"$ref\": \"#/definitions/Schema\"\n            },\n            {\n              \"$ref\": \"#/definitions/Reference\"\n            }\n          ]\n        },\n        \"allOf\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/definitions/Schema\"\n              },\n              {\n                \"$ref\": \"#/definitions/Reference\"\n              }\n            ]\n          }\n        },\n        \"oneOf\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/definitions/Schema\"\n              },\n              {\n                \"$ref\": \"#/definitions/Reference\"\n              }\n            ]\n          }\n        },\n        \"anyOf\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/definitions/Schema\"\n              },\n              {\n                \"$ref\": \"#/definitions/Reference\"\n              }\n            ]\n          }\n        },\n        \"items\": {\n          \"oneOf\": [\n            {\n              \"$ref\": \"#/definitions/Schema\"\n            },\n            {\n              \"$ref\": \"#/definitions/Reference\"\n            }\n          ]\n        },\n        \"properties\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/definitions/Schema\"\n              },\n              {\n                \"$ref\": \"#/definitions/Reference\"\n              }\n            ]\n          }\n        },\n        \"additionalProperties\": {\n          \"oneOf\": [\n            {\n              \"$ref\": \"#/definitions/Schema\"\n            },\n            {\n              \"$ref\": \"#/definitions/Reference\"\n            },\n            {\n              \"type\": \"boolean\"\n            }\n          ],\n          \"default\": true\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"format\": {\n          \"type\": \"string\"\n        },\n        \"default\": {\n        },\n        \"nullable\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"discriminator\": {\n          \"$ref\": \"#/definitions/Discriminator\"\n        },\n        \"readOnly\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"writeOnly\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"example\": {\n        },\n        \"externalDocs\": {\n          \"$ref\": \"#/definitions/ExternalDocumentation\"\n        },\n        \"deprecated\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"xml\": {\n          \"$ref\": \"#/definitions/XML\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"Discriminator\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"propertyName\"\n      ],\n      \"properties\": {\n        \"propertyName\": {\n          \"type\": \"string\"\n        },\n        \"mapping\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"type\": \"string\"\n          }\n        }\n      }\n    },\n    \"XML\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"namespace\": {\n          \"type\": \"string\",\n          \"format\": \"uri\"\n        },\n        \"prefix\": {\n          \"type\": \"string\"\n        },\n        \"attribute\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"wrapped\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"Response\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"description\"\n      ],\n      \"properties\": {\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"headers\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/definitions/Header\"\n              },\n              {\n                \"$ref\": \"#/definitions/Reference\"\n              }\n            ]\n          }\n        },\n        \"content\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/definitions/MediaType\"\n          }\n        },\n        \"links\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/definitions/Link\"\n              },\n              {\n                \"$ref\": \"#/definitions/Reference\"\n              }\n            ]\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"MediaType\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"schema\": {\n          \"oneOf\": [\n            {\n              \"$ref\": \"#/definitions/Schema\"\n            },\n            {\n              \"$ref\": \"#/definitions/Reference\"\n            }\n          ]\n        },\n        \"example\": {\n        },\n        \"examples\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/definitions/Example\"\n              },\n              {\n                \"$ref\": \"#/definitions/Reference\"\n              }\n            ]\n          }\n        },\n        \"encoding\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/definitions/Encoding\"\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false,\n      \"allOf\": [\n        {\n          \"$ref\": \"#/definitions/ExampleXORExamples\"\n        }\n      ]\n    },\n    \"Example\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"summary\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"value\": {\n        },\n        \"externalValue\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"Header\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"required\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"deprecated\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"allowEmptyValue\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"style\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"simple\"\n          ],\n          \"default\": \"simple\"\n        },\n        \"explode\": {\n          \"type\": \"boolean\"\n        },\n        \"allowReserved\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"schema\": {\n          \"oneOf\": [\n            {\n              \"$ref\": \"#/definitions/Schema\"\n            },\n            {\n              \"$ref\": \"#/definitions/Reference\"\n            }\n          ]\n        },\n        \"content\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/definitions/MediaType\"\n          },\n          \"minProperties\": 1,\n          \"maxProperties\": 1\n        },\n        \"example\": {\n        },\n        \"examples\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/definitions/Example\"\n              },\n              {\n                \"$ref\": \"#/definitions/Reference\"\n              }\n            ]\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false,\n      \"allOf\": [\n        {\n          \"$ref\": \"#/definitions/ExampleXORExamples\"\n        },\n        {\n          \"$ref\": \"#/definitions/SchemaXORContent\"\n        }\n      ]\n    },\n    \"Paths\": {\n      \"type\": \"object\",\n      \"patternProperties\": {\n        \"^\\\\/\": {\n          \"$ref\": \"#/definitions/PathItem\"\n        },\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"PathItem\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"$ref\": {\n          \"type\": \"string\"\n        },\n        \"summary\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"servers\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"$ref\": \"#/definitions/Server\"\n          }\n        },\n        \"parameters\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/definitions/Parameter\"\n              },\n              {\n                \"$ref\": \"#/definitions/Reference\"\n              }\n            ]\n          },\n          \"uniqueItems\": true\n        }\n      },\n      \"patternProperties\": {\n        \"^(get|put|post|delete|options|head|patch|trace)$\": {\n          \"$ref\": \"#/definitions/Operation\"\n        },\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"Operation\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"responses\"\n      ],\n      \"properties\": {\n        \"tags\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"type\": \"string\"\n          }\n        },\n        \"summary\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"externalDocs\": {\n          \"$ref\": \"#/definitions/ExternalDocumentation\"\n        },\n        \"operationId\": {\n          \"type\": \"string\"\n        },\n        \"parameters\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/definitions/Parameter\"\n              },\n              {\n                \"$ref\": \"#/definitions/Reference\"\n              }\n            ]\n          },\n          \"uniqueItems\": true\n        },\n        \"requestBody\": {\n          \"oneOf\": [\n            {\n              \"$ref\": \"#/definitions/RequestBody\"\n            },\n            {\n              \"$ref\": \"#/definitions/Reference\"\n            }\n          ]\n        },\n        \"responses\": {\n          \"$ref\": \"#/definitions/Responses\"\n        },\n        \"callbacks\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/definitions/Callback\"\n              },\n              {\n                \"$ref\": \"#/definitions/Reference\"\n              }\n            ]\n          }\n        },\n        \"deprecated\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"security\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"$ref\": \"#/definitions/SecurityRequirement\"\n          }\n        },\n        \"servers\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"$ref\": \"#/definitions/Server\"\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"Responses\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"default\": {\n          \"oneOf\": [\n            {\n              \"$ref\": \"#/definitions/Response\"\n            },\n            {\n              \"$ref\": \"#/definitions/Reference\"\n            }\n          ]\n        }\n      },\n      \"patternProperties\": {\n        \"^[1-5](?:\\\\d{2}|XX)$\": {\n          \"oneOf\": [\n            {\n              \"$ref\": \"#/definitions/Response\"\n            },\n            {\n              \"$ref\": \"#/definitions/Reference\"\n            }\n          ]\n        },\n        \"^x-\": {\n        }\n      },\n      \"minProperties\": 1,\n      \"additionalProperties\": false\n    },\n    \"SecurityRequirement\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"type\": \"array\",\n        \"items\": {\n          \"type\": \"string\"\n        }\n      }\n    },\n    \"Tag\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"name\"\n      ],\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"externalDocs\": {\n          \"$ref\": \"#/definitions/ExternalDocumentation\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"ExternalDocumentation\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"url\"\n      ],\n      \"properties\": {\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"url\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"ExampleXORExamples\": {\n      \"description\": \"Example and examples are mutually exclusive\",\n      \"not\": {\n        \"required\": [\n          \"example\",\n          \"examples\"\n        ]\n      }\n    },\n    \"SchemaXORContent\": {\n      \"description\": \"Schema and content are mutually exclusive, at least one is required\",\n      \"not\": {\n        \"required\": [\n          \"schema\",\n          \"content\"\n        ]\n      },\n      \"oneOf\": [\n        {\n          \"required\": [\n            \"schema\"\n          ]\n        },\n        {\n          \"required\": [\n            \"content\"\n          ],\n          \"description\": \"Some properties are not allowed if content is present\",\n          \"allOf\": [\n            {\n              \"not\": {\n                \"required\": [\n                  \"style\"\n                ]\n              }\n            },\n            {\n              \"not\": {\n                \"required\": [\n                  \"explode\"\n                ]\n              }\n            },\n            {\n              \"not\": {\n                \"required\": [\n                  \"allowReserved\"\n                ]\n              }\n            },\n            {\n              \"not\": {\n                \"required\": [\n                  \"example\"\n                ]\n              }\n            },\n            {\n              \"not\": {\n                \"required\": [\n                  \"examples\"\n                ]\n              }\n            }\n          ]\n        }\n      ]\n    },\n    \"Parameter\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"in\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"required\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"deprecated\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"allowEmptyValue\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"style\": {\n          \"type\": \"string\"\n        },\n        \"explode\": {\n          \"type\": \"boolean\"\n        },\n        \"allowReserved\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"schema\": {\n          \"oneOf\": [\n            {\n              \"$ref\": \"#/definitions/Schema\"\n            },\n            {\n              \"$ref\": \"#/definitions/Reference\"\n            }\n          ]\n        },\n        \"content\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/definitions/MediaType\"\n          },\n          \"minProperties\": 1,\n          \"maxProperties\": 1\n        },\n        \"example\": {\n        },\n        \"examples\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/definitions/Example\"\n              },\n              {\n                \"$ref\": \"#/definitions/Reference\"\n              }\n            ]\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false,\n      \"required\": [\n        \"name\",\n        \"in\"\n      ],\n      \"allOf\": [\n        {\n          \"$ref\": \"#/definitions/ExampleXORExamples\"\n        },\n        {\n          \"$ref\": \"#/definitions/SchemaXORContent\"\n        },\n        {\n          \"$ref\": \"#/definitions/ParameterLocation\"\n        }\n      ]\n    },\n    \"ParameterLocation\": {\n      \"description\": \"Parameter location\",\n      \"oneOf\": [\n        {\n          \"description\": \"Parameter in path\",\n          \"required\": [\n            \"required\"\n          ],\n          \"properties\": {\n            \"in\": {\n              \"enum\": [\n                \"path\"\n              ]\n            },\n            \"style\": {\n              \"enum\": [\n                \"matrix\",\n                \"label\",\n                \"simple\"\n              ],\n              \"default\": \"simple\"\n            },\n            \"required\": {\n              \"enum\": [\n                true\n              ]\n            }\n          }\n        },\n        {\n          \"description\": \"Parameter in query\",\n          \"properties\": {\n            \"in\": {\n              \"enum\": [\n                \"query\"\n              ]\n            },\n            \"style\": {\n              \"enum\": [\n                \"form\",\n                \"spaceDelimited\",\n                \"pipeDelimited\",\n                \"deepObject\"\n              ],\n              \"default\": \"form\"\n            }\n          }\n        },\n        {\n          \"description\": \"Parameter in header\",\n          \"properties\": {\n            \"in\": {\n              \"enum\": [\n                \"header\"\n              ]\n            },\n            \"style\": {\n              \"enum\": [\n                \"simple\"\n              ],\n              \"default\": \"simple\"\n            }\n          }\n        },\n        {\n          \"description\": \"Parameter in cookie\",\n          \"properties\": {\n            \"in\": {\n              \"enum\": [\n                \"cookie\"\n              ]\n            },\n            \"style\": {\n              \"enum\": [\n                \"form\"\n              ],\n              \"default\": \"form\"\n            }\n          }\n        }\n      ]\n    },\n    \"RequestBody\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"content\"\n      ],\n      \"properties\": {\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"content\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/definitions/MediaType\"\n          }\n        },\n        \"required\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"SecurityScheme\": {\n      \"oneOf\": [\n        {\n          \"$ref\": \"#/definitions/APIKeySecurityScheme\"\n        },\n        {\n          \"$ref\": \"#/definitions/HTTPSecurityScheme\"\n        },\n        {\n          \"$ref\": \"#/definitions/OAuth2SecurityScheme\"\n        },\n        {\n          \"$ref\": \"#/definitions/OpenIdConnectSecurityScheme\"\n        }\n      ]\n    },\n    \"APIKeySecurityScheme\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"type\",\n        \"name\",\n        \"in\"\n      ],\n      \"properties\": {\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"apiKey\"\n          ]\n        },\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"in\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"header\",\n            \"query\",\n            \"cookie\"\n          ]\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"HTTPSecurityScheme\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"scheme\",\n        \"type\"\n      ],\n      \"properties\": {\n        \"scheme\": {\n          \"type\": \"string\"\n        },\n        \"bearerFormat\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"http\"\n          ]\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false,\n      \"oneOf\": [\n        {\n          \"description\": \"Bearer\",\n          \"properties\": {\n            \"scheme\": {\n              \"enum\": [\n                \"bearer\"\n              ]\n            }\n          }\n        },\n        {\n          \"description\": \"Non Bearer\",\n          \"not\": {\n            \"required\": [\n              \"bearerFormat\"\n            ]\n          },\n          \"properties\": {\n            \"scheme\": {\n              \"not\": {\n                \"enum\": [\n                  \"bearer\"\n                ]\n              }\n            }\n          }\n        }\n      ]\n    },\n    \"OAuth2SecurityScheme\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"type\",\n        \"flows\"\n      ],\n      \"properties\": {\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"oauth2\"\n          ]\n        },\n        \"flows\": {\n          \"$ref\": \"#/definitions/OAuthFlows\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"OpenIdConnectSecurityScheme\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"type\",\n        \"openIdConnectUrl\"\n      ],\n      \"properties\": {\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"openIdConnect\"\n          ]\n        },\n        \"openIdConnectUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"OAuthFlows\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"implicit\": {\n          \"$ref\": \"#/definitions/ImplicitOAuthFlow\"\n        },\n        \"password\": {\n          \"$ref\": \"#/definitions/PasswordOAuthFlow\"\n        },\n        \"clientCredentials\": {\n          \"$ref\": \"#/definitions/ClientCredentialsFlow\"\n        },\n        \"authorizationCode\": {\n          \"$ref\": \"#/definitions/AuthorizationCodeOAuthFlow\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"ImplicitOAuthFlow\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"authorizationUrl\",\n        \"scopes\"\n      ],\n      \"properties\": {\n        \"authorizationUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"refreshUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"scopes\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"type\": \"string\"\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"PasswordOAuthFlow\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"tokenUrl\"\n      ],\n      \"properties\": {\n        \"tokenUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"refreshUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"scopes\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"type\": \"string\"\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"ClientCredentialsFlow\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"tokenUrl\"\n      ],\n      \"properties\": {\n        \"tokenUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"refreshUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"scopes\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"type\": \"string\"\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"AuthorizationCodeOAuthFlow\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"authorizationUrl\",\n        \"tokenUrl\"\n      ],\n      \"properties\": {\n        \"authorizationUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"tokenUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"refreshUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"scopes\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"type\": \"string\"\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"Link\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"operationId\": {\n          \"type\": \"string\"\n        },\n        \"operationRef\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"parameters\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n          }\n        },\n        \"requestBody\": {\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"server\": {\n          \"$ref\": \"#/definitions/Server\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false,\n      \"not\": {\n        \"description\": \"Operation Id and Operation Ref are mutually exclusive\",\n        \"required\": [\n          \"operationId\",\n          \"operationRef\"\n        ]\n      }\n    },\n    \"Callback\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"$ref\": \"#/definitions/PathItem\"\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      }\n    },\n    \"Encoding\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"contentType\": {\n          \"type\": \"string\"\n        },\n        \"headers\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/definitions/Header\"\n          }\n        },\n        \"style\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"form\",\n            \"spaceDelimited\",\n            \"pipeDelimited\",\n            \"deepObject\"\n          ]\n        },\n        \"explode\": {\n          \"type\": \"boolean\"\n        },\n        \"allowReserved\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        }\n      },\n      \"additionalProperties\": false\n    }\n  }\n}", "{\n  \"$id\": \"https://spec.openapis.org/oas/3.1/schema/2021-04-15\",\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"type\": \"object\",\n  \"properties\": {\n    \"openapi\": {\n      \"type\": \"string\",\n      \"pattern\": \"^3\\\\.1\\\\.\\\\d+(-.+)?$\"\n    },\n    \"info\": {\n      \"$ref\": \"#/$defs/info\"\n    },\n    \"jsonSchemaDialect\": {\n      \"$ref\": \"#/$defs/uri\",\n      \"default\": \"https://spec.openapis.org/oas/3.1/dialect/base\"\n    },\n    \"servers\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"$ref\": \"#/$defs/server\"\n      }\n    },\n    \"paths\": {\n      \"$ref\": \"#/$defs/paths\"\n    },\n    \"webhooks\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"$ref\": \"#/$defs/path-item-or-reference\"\n      }\n    },\n    \"components\": {\n      \"$ref\": \"#/$defs/components\"\n    },\n    \"security\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"$ref\": \"#/$defs/security-requirement\"\n      }\n    },\n    \"tags\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"$ref\": \"#/$defs/tag\"\n      }\n    },\n    \"externalDocs\": {\n      \"$ref\": \"#/$defs/external-documentation\"\n    }\n  },\n  \"required\": [\n    \"openapi\",\n    \"info\"\n  ],\n  \"anyOf\": [\n    {\n      \"required\": [\n        \"paths\"\n      ]\n    },\n    {\n      \"required\": [\n        \"components\"\n      ]\n    },\n    {\n      \"required\": [\n        \"webhooks\"\n      ]\n    }\n  ],\n  \"$ref\": \"#/$defs/specification-extensions\",\n  \"unevaluatedProperties\": false,\n  \"$defs\": {\n    \"info\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"title\": {\n          \"type\": \"string\"\n        },\n        \"summary\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"termsOfService\": {\n          \"type\": \"string\"\n        },\n        \"contact\": {\n          \"$ref\": \"#/$defs/contact\"\n        },\n        \"license\": {\n          \"$ref\": \"#/$defs/license\"\n        },\n        \"version\": {\n          \"type\": \"string\"\n        }\n      },\n      \"required\": [\n        \"title\",\n        \"version\"\n      ],\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"contact\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"url\": {\n          \"type\": \"string\"\n        },\n        \"email\": {\n          \"type\": \"string\"\n        }\n      },\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"license\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"identifier\": {\n          \"type\": \"string\"\n        },\n        \"url\": {\n          \"$ref\": \"#/$defs/uri\"\n        }\n      },\n      \"required\": [\n        \"name\"\n      ],\n      \"oneOf\": [\n        {\n          \"required\": [\n            \"identifier\"\n          ]\n        },\n        {\n          \"required\": [\n            \"url\"\n          ]\n        }\n      ],\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"server\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"url\": {\n          \"$ref\": \"#/$defs/uri\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"variables\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/server-variable\"\n          }\n        }\n      },\n      \"required\": [\n        \"url\"\n      ],\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"server-variable\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"enum\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"type\": \"string\"\n          },\n          \"minItems\": 1\n        },\n        \"default\": {\n          \"type\": \"string\"\n        },\n        \"descriptions\": {\n          \"type\": \"string\"\n        }\n      },\n      \"required\": [\n        \"default\"\n      ],\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"components\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"schemas\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$dynamicRef\": \"#meta\"\n          }\n        },\n        \"responses\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/response-or-reference\"\n          }\n        },\n        \"parameters\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/parameter-or-reference\"\n          }\n        },\n        \"examples\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/example-or-reference\"\n          }\n        },\n        \"requestBodies\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/request-body-or-reference\"\n          }\n        },\n        \"headers\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/header-or-reference\"\n          }\n        },\n        \"securitySchemes\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/security-scheme-or-reference\"\n          }\n        },\n        \"links\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/link-or-reference\"\n          }\n        },\n        \"callbacks\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/callbacks-or-reference\"\n          }\n        },\n        \"pathItems\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/path-item-or-reference\"\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$\": {\n          \"$comment\": \"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected\",\n          \"propertyNames\": {\n            \"pattern\": \"^[a-zA-Z0-9._-]+$\"\n          }\n        }\n      },\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"paths\": {\n      \"type\": \"object\",\n      \"patternProperties\": {\n        \"^/\": {\n          \"$ref\": \"#/$defs/path-item\"\n        }\n      },\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"path-item\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"summary\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"servers\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"$ref\": \"#/$defs/server\"\n          }\n        },\n        \"parameters\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"$ref\": \"#/$defs/parameter-or-reference\"\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^(get|put|post|delete|options|head|patch|trace)$\": {\n          \"$ref\": \"#/$defs/operation\"\n        }\n      },\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"path-item-or-reference\": {\n      \"if\": {\n        \"required\": [\n          \"$ref\"\n        ]\n      },\n      \"then\": {\n        \"$ref\": \"#/$defs/reference\"\n      },\n      \"else\": {\n        \"$ref\": \"#/$defs/path-item\"\n      }\n    },\n    \"operation\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"tags\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"type\": \"string\"\n          }\n        },\n        \"summary\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"externalDocs\": {\n          \"$ref\": \"#/$defs/external-documentation\"\n        },\n        \"operationId\": {\n          \"type\": \"string\"\n        },\n        \"parameters\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"$ref\": \"#/$defs/parameter-or-reference\"\n          }\n        },\n        \"requestBody\": {\n          \"$ref\": \"#/$defs/request-body-or-reference\"\n        },\n        \"responses\": {\n          \"$ref\": \"#/$defs/responses\"\n        },\n        \"callbacks\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/callbacks-or-reference\"\n          }\n        },\n        \"deprecated\": {\n          \"default\": false,\n          \"type\": \"boolean\"\n        },\n        \"security\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"$ref\": \"#/$defs/security-requirement\"\n          }\n        },\n        \"servers\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"$ref\": \"#/$defs/server\"\n          }\n        }\n      },\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"external-documentation\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"url\": {\n          \"$ref\": \"#/$defs/uri\"\n        }\n      },\n      \"required\": [\n        \"url\"\n      ],\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"parameter\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"in\": {\n          \"enum\": [\n            \"query\",\n            \"header\",\n            \"path\",\n            \"cookie\"\n          ]\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"required\": {\n          \"default\": false,\n          \"type\": \"boolean\"\n        },\n        \"deprecated\": {\n          \"default\": false,\n          \"type\": \"boolean\"\n        },\n        \"allowEmptyValue\": {\n          \"default\": false,\n          \"type\": \"boolean\"\n        },\n        \"schema\": {\n          \"$dynamicRef\": \"#meta\"\n        },\n        \"content\": {\n          \"$ref\": \"#/$defs/content\"\n        }\n      },\n      \"required\": [\n        \"in\"\n      ],\n      \"oneOf\": [\n        {\n          \"required\": [\n            \"schema\"\n          ]\n        },\n        {\n          \"required\": [\n            \"content\"\n          ]\n        }\n      ],\n      \"dependentSchemas\": {\n        \"schema\": {\n          \"properties\": {\n            \"style\": {\n              \"type\": \"string\"\n            },\n            \"explode\": {\n              \"type\": \"boolean\"\n            },\n            \"allowReserved\": {\n              \"default\": false,\n              \"type\": \"boolean\"\n            }\n          },\n          \"allOf\": [\n            {\n              \"$ref\": \"#/$defs/examples\"\n            },\n            {\n              \"$ref\": \"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path\"\n            },\n            {\n              \"$ref\": \"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header\"\n            },\n            {\n              \"$ref\": \"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query\"\n            },\n            {\n              \"$ref\": \"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie\"\n            },\n            {\n              \"$ref\": \"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-form\"\n            }\n          ],\n          \"$defs\": {\n            \"styles-for-path\": {\n              \"if\": {\n                \"properties\": {\n                  \"in\": {\n                    \"const\": \"path\"\n                  }\n                },\n                \"required\": [\n                  \"in\"\n                ]\n              },\n              \"then\": {\n                \"properties\": {\n                  \"style\": {\n                    \"default\": \"simple\",\n                    \"enum\": [\n                      \"matrix\",\n                      \"label\",\n                      \"simple\"\n                    ]\n                  },\n                  \"required\": {\n                    \"const\": true\n                  }\n                },\n                \"required\": [\n                  \"required\"\n                ]\n              }\n            },\n            \"styles-for-header\": {\n              \"if\": {\n                \"properties\": {\n                  \"in\": {\n                    \"const\": \"header\"\n                  }\n                },\n                \"required\": [\n                  \"in\"\n                ]\n              },\n              \"then\": {\n                \"properties\": {\n                  \"style\": {\n                    \"default\": \"simple\",\n                    \"enum\": [\n                      \"simple\"\n                    ]\n                  }\n                }\n              }\n            },\n            \"styles-for-query\": {\n              \"if\": {\n                \"properties\": {\n                  \"in\": {\n                    \"const\": \"query\"\n                  }\n                },\n                \"required\": [\n                  \"in\"\n                ]\n              },\n              \"then\": {\n                \"properties\": {\n                  \"style\": {\n                    \"default\": \"form\",\n                    \"enum\": [\n                      \"form\",\n                      \"spaceDelimited\",\n                      \"pipeDelimited\",\n                      \"deepObject\"\n                    ]\n                  }\n                }\n              }\n            },\n            \"styles-for-cookie\": {\n              \"if\": {\n                \"properties\": {\n                  \"in\": {\n                    \"const\": \"cookie\"\n                  }\n                },\n                \"required\": [\n                  \"in\"\n                ]\n              },\n              \"then\": {\n                \"properties\": {\n                  \"style\": {\n                    \"default\": \"form\",\n                    \"enum\": [\n                      \"form\"\n                    ]\n                  }\n                }\n              }\n            },\n            \"styles-for-form\": {\n              \"if\": {\n                \"properties\": {\n                  \"style\": {\n                    \"const\": \"form\"\n                  }\n                },\n                \"required\": [\n                  \"style\"\n                ]\n              },\n              \"then\": {\n                \"properties\": {\n                  \"explode\": {\n                    \"default\": true\n                  }\n                }\n              },\n              \"else\": {\n                \"properties\": {\n                  \"explode\": {\n                    \"default\": false\n                  }\n                }\n              }\n            }\n          }\n        }\n      },\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"parameter-or-reference\": {\n      \"if\": {\n        \"required\": [\n          \"$ref\"\n        ]\n      },\n      \"then\": {\n        \"$ref\": \"#/$defs/reference\"\n      },\n      \"else\": {\n        \"$ref\": \"#/$defs/parameter\"\n      }\n    },\n    \"request-body\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"content\": {\n          \"$ref\": \"#/$defs/content\"\n        },\n        \"required\": {\n          \"default\": false,\n          \"type\": \"boolean\"\n        }\n      },\n      \"required\": [\n        \"content\"\n      ],\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"request-body-or-reference\": {\n      \"if\": {\n        \"required\": [\n          \"$ref\"\n        ]\n      },\n      \"then\": {\n        \"$ref\": \"#/$defs/reference\"\n      },\n      \"else\": {\n        \"$ref\": \"#/$defs/request-body\"\n      }\n    },\n    \"content\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"$ref\": \"#/$defs/media-type\"\n      },\n      \"propertyNames\": {\n        \"format\": \"media-range\"\n      }\n    },\n    \"media-type\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"schema\": {\n          \"$dynamicRef\": \"#meta\"\n        },\n        \"encoding\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/encoding\"\n          }\n        }\n      },\n      \"allOf\": [\n        {\n          \"$ref\": \"#/$defs/specification-extensions\"\n        },\n        {\n          \"$ref\": \"#/$defs/examples\"\n        }\n      ],\n      \"unevaluatedProperties\": false\n    },\n    \"encoding\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"contentType\": {\n          \"type\": \"string\",\n          \"format\": \"media-range\"\n        },\n        \"headers\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/header-or-reference\"\n          }\n        },\n        \"style\": {\n          \"default\": \"form\",\n          \"enum\": [\n            \"form\",\n            \"spaceDelimited\",\n            \"pipeDelimited\",\n            \"deepObject\"\n          ]\n        },\n        \"explode\": {\n          \"type\": \"boolean\"\n        },\n        \"allowReserved\": {\n          \"default\": false,\n          \"type\": \"boolean\"\n        }\n      },\n      \"allOf\": [\n        {\n          \"$ref\": \"#/$defs/specification-extensions\"\n        },\n        {\n          \"$ref\": \"#/$defs/encoding/$defs/explode-default\"\n        }\n      ],\n      \"unevaluatedProperties\": false,\n      \"$defs\": {\n        \"explode-default\": {\n          \"if\": {\n            \"properties\": {\n              \"style\": {\n                \"const\": \"form\"\n              }\n            },\n            \"required\": [\n              \"style\"\n            ]\n          },\n          \"then\": {\n            \"properties\": {\n              \"explode\": {\n                \"default\": true\n              }\n            }\n          },\n          \"else\": {\n            \"properties\": {\n              \"explode\": {\n                \"default\": false\n              }\n            }\n          }\n        }\n      }\n    },\n    \"responses\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"default\": {\n          \"$ref\": \"#/$defs/response-or-reference\"\n        }\n      },\n      \"patternProperties\": {\n        \"^[1-5][0-9X]{2}$\": {\n          \"$ref\": \"#/$defs/response-or-reference\"\n        }\n      },\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"response\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"headers\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/header-or-reference\"\n          }\n        },\n        \"content\": {\n          \"$ref\": \"#/$defs/content\"\n        },\n        \"links\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/link-or-reference\"\n          }\n        }\n      },\n      \"required\": [\n        \"description\"\n      ],\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"response-or-reference\": {\n      \"if\": {\n        \"required\": [\n          \"$ref\"\n        ]\n      },\n      \"then\": {\n        \"$ref\": \"#/$defs/reference\"\n      },\n      \"else\": {\n        \"$ref\": \"#/$defs/response\"\n      }\n    },\n    \"callbacks\": {\n      \"type\": \"object\",\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"additionalProperties\": {\n        \"$ref\": \"#/$defs/path-item-or-reference\"\n      }\n    },\n    \"callbacks-or-reference\": {\n      \"if\": {\n        \"required\": [\n          \"$ref\"\n        ]\n      },\n      \"then\": {\n        \"$ref\": \"#/$defs/reference\"\n      },\n      \"else\": {\n        \"$ref\": \"#/$defs/callbacks\"\n      }\n    },\n    \"example\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"summary\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"value\": true,\n        \"externalValue\": {\n          \"$ref\": \"#/$defs/uri\"\n        }\n      },\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"example-or-reference\": {\n      \"if\": {\n        \"required\": [\n          \"$ref\"\n        ]\n      },\n      \"then\": {\n        \"$ref\": \"#/$defs/reference\"\n      },\n      \"else\": {\n        \"$ref\": \"#/$defs/example\"\n      }\n    },\n    \"link\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"operationRef\": {\n          \"$ref\": \"#/$defs/uri\"\n        },\n        \"operationId\": true,\n        \"parameters\": {\n          \"$ref\": \"#/$defs/map-of-strings\"\n        },\n        \"requestBody\": true,\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"body\": {\n          \"$ref\": \"#/$defs/server\"\n        }\n      },\n      \"oneOf\": [\n        {\n          \"required\": [\n            \"operationRef\"\n          ]\n        },\n        {\n          \"required\": [\n            \"operationId\"\n          ]\n        }\n      ],\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"link-or-reference\": {\n      \"if\": {\n        \"required\": [\n          \"$ref\"\n        ]\n      },\n      \"then\": {\n        \"$ref\": \"#/$defs/reference\"\n      },\n      \"else\": {\n        \"$ref\": \"#/$defs/link\"\n      }\n    },\n    \"header\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"required\": {\n          \"default\": false,\n          \"type\": \"boolean\"\n        },\n        \"deprecated\": {\n          \"default\": false,\n          \"type\": \"boolean\"\n        },\n        \"allowEmptyValue\": {\n          \"default\": false,\n          \"type\": \"boolean\"\n        }\n      },\n      \"dependentSchemas\": {\n        \"schema\": {\n          \"properties\": {\n            \"style\": {\n              \"default\": \"simple\",\n              \"enum\": [\n                \"simple\"\n              ]\n            },\n            \"explode\": {\n              \"default\": false,\n              \"type\": \"boolean\"\n            },\n            \"allowReserved\": {\n              \"default\": false,\n              \"type\": \"boolean\"\n            },\n            \"schema\": {\n              \"$dynamicRef\": \"#meta\"\n            }\n          },\n          \"$ref\": \"#/$defs/examples\"\n        },\n        \"content\": {\n          \"properties\": {\n            \"content\": {\n              \"$ref\": \"#/$defs/content\"\n            }\n          }\n        }\n      },\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"header-or-reference\": {\n      \"if\": {\n        \"required\": [\n          \"$ref\"\n        ]\n      },\n      \"then\": {\n        \"$ref\": \"#/$defs/reference\"\n      },\n      \"else\": {\n        \"$ref\": \"#/$defs/header\"\n      }\n    },\n    \"tag\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"externalDocs\": {\n          \"$ref\": \"#/$defs/external-documentation\"\n        }\n      },\n      \"required\": [\n        \"name\"\n      ],\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"reference\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"$ref\": {\n          \"$ref\": \"#/$defs/uri\"\n        },\n        \"summary\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"unevaluatedProperties\": false\n    },\n    \"schema\": {\n      \"$dynamicAnchor\": \"meta\",\n      \"type\": [\n        \"object\",\n        \"boolean\"\n      ]\n    },\n    \"security-scheme\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"type\": {\n          \"enum\": [\n            \"apiKey\",\n            \"http\",\n            \"mutualTLS\",\n            \"oauth2\",\n            \"openIdConnect\"\n          ]\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"required\": [\n        \"type\"\n      ],\n      \"allOf\": [\n        {\n          \"$ref\": \"#/$defs/specification-extensions\"\n        },\n        {\n          \"$ref\": \"#/$defs/security-scheme/$defs/type-apikey\"\n        },\n        {\n          \"$ref\": \"#/$defs/security-scheme/$defs/type-http\"\n        },\n        {\n          \"$ref\": \"#/$defs/security-scheme/$defs/type-http-bearer\"\n        },\n        {\n          \"$ref\": \"#/$defs/security-scheme/$defs/type-oauth2\"\n        },\n        {\n          \"$ref\": \"#/$defs/security-scheme/$defs/type-oidc\"\n        }\n      ],\n      \"unevaluatedProperties\": false,\n      \"$defs\": {\n        \"type-apikey\": {\n          \"if\": {\n            \"properties\": {\n              \"type\": {\n                \"const\": \"apiKey\"\n              }\n            },\n            \"required\": [\n              \"type\"\n            ]\n          },\n          \"then\": {\n            \"properties\": {\n              \"name\": {\n                \"type\": \"string\"\n              },\n              \"in\": {\n                \"enum\": [\n                  \"query\",\n                  \"header\",\n                  \"cookie\"\n                ]\n              }\n            },\n            \"required\": [\n              \"name\",\n              \"in\"\n            ]\n          }\n        },\n        \"type-http\": {\n          \"if\": {\n            \"properties\": {\n              \"type\": {\n                \"const\": \"http\"\n              }\n            },\n            \"required\": [\n              \"type\"\n            ]\n          },\n          \"then\": {\n            \"properties\": {\n              \"scheme\": {\n                \"type\": \"string\"\n              }\n            },\n            \"required\": [\n              \"scheme\"\n            ]\n          }\n        },\n        \"type-http-bearer\": {\n          \"if\": {\n            \"properties\": {\n              \"type\": {\n                \"const\": \"http\"\n              },\n              \"scheme\": {\n                \"const\": \"bearer\"\n              }\n            },\n            \"required\": [\n              \"type\",\n              \"scheme\"\n            ]\n          },\n          \"then\": {\n            \"properties\": {\n              \"bearerFormat\": {\n                \"type\": \"string\"\n              }\n            },\n            \"required\": [\n              \"scheme\"\n            ]\n          }\n        },\n        \"type-oauth2\": {\n          \"if\": {\n            \"properties\": {\n              \"type\": {\n                \"const\": \"oauth2\"\n              }\n            },\n            \"required\": [\n              \"type\"\n            ]\n          },\n          \"then\": {\n            \"properties\": {\n              \"flows\": {\n                \"$ref\": \"#/$defs/oauth-flows\"\n              }\n            },\n            \"required\": [\n              \"flows\"\n            ]\n          }\n        },\n        \"type-oidc\": {\n          \"if\": {\n            \"properties\": {\n              \"type\": {\n                \"const\": \"openIdConnect\"\n              }\n            },\n            \"required\": [\n              \"type\"\n            ]\n          },\n          \"then\": {\n            \"properties\": {\n              \"openIdConnectUrl\": {\n                \"$ref\": \"#/$defs/uri\"\n              }\n            },\n            \"required\": [\n              \"openIdConnectUrl\"\n            ]\n          }\n        }\n      }\n    },\n    \"security-scheme-or-reference\": {\n      \"if\": {\n        \"required\": [\n          \"$ref\"\n        ]\n      },\n      \"then\": {\n        \"$ref\": \"#/$defs/reference\"\n      },\n      \"else\": {\n        \"$ref\": \"#/$defs/security-scheme\"\n      }\n    },\n    \"oauth-flows\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"implicit\": {\n          \"$ref\": \"#/$defs/oauth-flows/$defs/implicit\"\n        },\n        \"password\": {\n          \"$ref\": \"#/$defs/oauth-flows/$defs/password\"\n        },\n        \"clientCredentials\": {\n          \"$ref\": \"#/$defs/oauth-flows/$defs/client-credentials\"\n        },\n        \"authorizationCode\": {\n          \"$ref\": \"#/$defs/oauth-flows/$defs/authorization-code\"\n        }\n      },\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false,\n      \"$defs\": {\n        \"implicit\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"authorizationUrl\": {\n              \"type\": \"string\"\n            },\n            \"refreshUrl\": {\n              \"type\": \"string\"\n            },\n            \"scopes\": {\n              \"$ref\": \"#/$defs/map-of-strings\"\n            }\n          },\n          \"required\": [\n            \"authorizationUrl\",\n            \"scopes\"\n          ],\n          \"$ref\": \"#/$defs/specification-extensions\",\n          \"unevaluatedProperties\": false\n        },\n        \"password\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"tokenUrl\": {\n              \"type\": \"string\"\n            },\n            \"refreshUrl\": {\n              \"type\": \"string\"\n            },\n            \"scopes\": {\n              \"$ref\": \"#/$defs/map-of-strings\"\n            }\n          },\n          \"required\": [\n            \"tokenUrl\",\n            \"scopes\"\n          ],\n          \"$ref\": \"#/$defs/specification-extensions\",\n          \"unevaluatedProperties\": false\n        },\n        \"client-credentials\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"tokenUrl\": {\n              \"type\": \"string\"\n            },\n            \"refreshUrl\": {\n              \"type\": \"string\"\n            },\n            \"scopes\": {\n              \"$ref\": \"#/$defs/map-of-strings\"\n            }\n          },\n          \"required\": [\n            \"tokenUrl\",\n            \"scopes\"\n          ],\n          \"$ref\": \"#/$defs/specification-extensions\",\n          \"unevaluatedProperties\": false\n        },\n        \"authorization-code\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"authorizationUrl\": {\n              \"type\": \"string\"\n            },\n            \"tokenUrl\": {\n              \"type\": \"string\"\n            },\n            \"refreshUrl\": {\n              \"type\": \"string\"\n            },\n            \"scopes\": {\n              \"$ref\": \"#/$defs/map-of-strings\"\n            }\n          },\n          \"required\": [\n            \"authorizationUrl\",\n            \"tokenUrl\",\n            \"scopes\"\n          ],\n          \"$ref\": \"#/$defs/specification-extensions\",\n          \"unevaluatedProperties\": false\n        }\n      }\n    },\n    \"security-requirement\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"type\": \"array\",\n        \"items\": {\n          \"type\": \"string\"\n        }\n      }\n    },\n    \"specification-extensions\": {\n      \"patternProperties\": {\n        \"^x-\": true\n      }\n    },\n    \"examples\": {\n      \"properties\": {\n        \"example\": true,\n        \"examples\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/example-or-reference\"\n          }\n        }\n      }\n    },\n    \"uri\": {\n      \"type\": \"string\",\n      \"format\": \"uri\"\n    },\n    \"map-of-strings\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"type\": \"string\"\n      }\n    }\n  }\n}\n", null, "\"use strict\";\n\nconst util = require(\"../util\");\nconst { ono } = require(\"@jsdevtools/ono\");\nconst AjvDraft4 = require(\"ajv-draft-04\");\nconst Ajv = require(\"ajv/dist/2020\");\nconst { openapi } = require(\"@apidevtools/openapi-schemas\");\n\nmodule.exports = validateSchema;\n\n/**\n * Validates the given Swagger API against the Swagger 2.0 or OpenAPI 3.0 and 3.1 schemas.\n *\n * @param {SwaggerObject} api\n */\nfunction validateSchema (api) {\n  let ajv;\n\n  // Choose the appropriate schema (Swagger or OpenAPI)\n  let schema;\n\n  if (api.swagger) {\n    schema = openapi.v2;\n    ajv = initializeAjv();\n  }\n  else {\n    if (api.openapi.startsWith(\"3.1\")) {\n      schema = openapi.v31;\n\n      // There's a bug with Ajv in how it handles `$dynamicRef` in the way that it's used within the 3.1 schema so we\n      // need to do some adhoc workarounds.\n      // https://github.com/OAI/OpenAPI-Specification/issues/2689\n      // https://github.com/ajv-validator/ajv/issues/1573\n      const schemaDynamicRef = schema.$defs.schema;\n      delete schemaDynamicRef.$dynamicAnchor;\n\n      schema.$defs.components.properties.schemas.additionalProperties = schemaDynamicRef;\n      schema.$defs.header.dependentSchemas.schema.properties.schema = schemaDynamicRef;\n      schema.$defs[\"media-type\"].properties.schema = schemaDynamicRef;\n      schema.$defs.parameter.properties.schema = schemaDynamicRef;\n\n      ajv = initializeAjv(false);\n    }\n    else {\n      schema = openapi.v3;\n      ajv = initializeAjv();\n    }\n  }\n\n  // Validate against the schema\n  let isValid = ajv.validate(schema, api);\n  if (!isValid) {\n    let err = ajv.errors;\n    let message = \"Swagger schema validation failed.\\n\" + formatAjvError(err);\n    throw ono.syntax(err, { details: err }, message);\n  }\n}\n\n/**\n * Determines which version of Ajv to load and prepares it for use.\n *\n * @param {bool} draft04\n * @returns {Ajv}\n */\nfunction initializeAjv (draft04 = true) {\n  const opts = {\n    allErrors: true,\n    strict: false,\n    validateFormats: false,\n  };\n\n  if (draft04) {\n    return new AjvDraft4(opts);\n  }\n\n  return new Ajv(opts);\n}\n\n/**\n * Run through a set of Ajv errors and compile them into an error message string.\n *\n * @param {object[]}  errors     - The Ajv errors\n * @param {string}    [indent]   - The whitespace used to indent the error message\n * @returns {string}\n */\nfunction formatAjvError (errors, indent) {\n  indent = indent || \"  \";\n  let message = \"\";\n  for (let error of errors) {\n    message += util.format(`${indent}#${error.instancePath.length ? error.instancePath : \"/\"} ${error.message}\\n`);\n  }\n  return message;\n}\n", "\"use strict\";\n\nmodule.exports = [\n  \"get\", \"put\", \"post\", \"delete\", \"options\", \"head\", \"patch\"\n];\n", "\"use strict\";\n\nconst util = require(\"../util\");\nconst { ono } = require(\"@jsdevtools/ono\");\nconst swaggerMethods = require(\"@apidevtools/swagger-methods\");\nconst primitiveTypes = [\"array\", \"boolean\", \"integer\", \"number\", \"string\"];\nconst schemaTypes = [\"array\", \"boolean\", \"integer\", \"number\", \"string\", \"object\", \"null\", undefined];\n\nmodule.exports = validateSpec;\n\n/**\n * Validates parts of the Swagger 2.0 spec that aren't covered by the Swagger 2.0 JSON Schema.\n *\n * @param {SwaggerObject} api\n */\nfunction validateSpec (api) {\n  if (api.openapi) {\n    // We don't (yet) support validating against the OpenAPI spec\n    return;\n  }\n\n  let paths = Object.keys(api.paths || {});\n  let operationIds = [];\n  for (let pathName of paths) {\n    let path = api.paths[pathName];\n    let pathId = \"/paths\" + pathName;\n\n    if (path && pathName.indexOf(\"/\") === 0) {\n      validatePath(api, path, pathId, operationIds);\n    }\n  }\n\n  let definitions = Object.keys(api.definitions || {});\n  for (let definitionName of definitions) {\n    let definition = api.definitions[definitionName];\n    let definitionId = \"/definitions/\" + definitionName;\n    validateRequiredPropertiesExist(definition, definitionId);\n  }\n}\n\n/**\n * Validates the given path.\n *\n * @param {SwaggerObject} api           - The entire Swagger API object\n * @param {object}        path          - A Path object, from the Swagger API\n * @param {string}        pathId        - A value that uniquely identifies the path\n * @param {string}        operationIds  - An array of collected operationIds found in other paths\n */\nfunction validatePath (api, path, pathId, operationIds) {\n  for (let operationName of swaggerMethods) {\n    let operation = path[operationName];\n    let operationId = pathId + \"/\" + operationName;\n\n    if (operation) {\n      let declaredOperationId = operation.operationId;\n      if (declaredOperationId) {\n        if (operationIds.indexOf(declaredOperationId) === -1) {\n          operationIds.push(declaredOperationId);\n        }\n        else {\n          throw ono.syntax(`Validation failed. Duplicate operation id '${declaredOperationId}'`);\n        }\n      }\n      validateParameters(api, path, pathId, operation, operationId);\n\n      let responses = Object.keys(operation.responses || {});\n      for (let responseName of responses) {\n        let response = operation.responses[responseName];\n        let responseId = operationId + \"/responses/\" + responseName;\n        validateResponse(responseName, (response || {}), responseId);\n      }\n    }\n  }\n}\n\n/**\n * Validates the parameters for the given operation.\n *\n * @param {SwaggerObject} api           - The entire Swagger API object\n * @param {object}        path          - A Path object, from the Swagger API\n * @param {string}        pathId        - A value that uniquely identifies the path\n * @param {object}        operation     - An Operation object, from the Swagger API\n * @param {string}        operationId   - A value that uniquely identifies the operation\n */\nfunction validateParameters (api, path, pathId, operation, operationId) {\n  let pathParams = path.parameters || [];\n  let operationParams = operation.parameters || [];\n\n  // Check for duplicate path parameters\n  try {\n    checkForDuplicates(pathParams);\n  }\n  catch (e) {\n    throw ono.syntax(e, `Validation failed. ${pathId} has duplicate parameters`);\n  }\n\n  // Check for duplicate operation parameters\n  try {\n    checkForDuplicates(operationParams);\n  }\n  catch (e) {\n    throw ono.syntax(e, `Validation failed. ${operationId} has duplicate parameters`);\n  }\n\n  // Combine the path and operation parameters,\n  // with the operation params taking precedence over the path params\n  let params = pathParams.reduce((combinedParams, value) => {\n    let duplicate = combinedParams.some((param) => {\n      return param.in === value.in && param.name === value.name;\n    });\n    if (!duplicate) {\n      combinedParams.push(value);\n    }\n    return combinedParams;\n  }, operationParams.slice());\n\n  validateBodyParameters(params, operationId);\n  validatePathParameters(params, pathId, operationId);\n  validateParameterTypes(params, api, operation, operationId);\n}\n\n/**\n * Validates body and formData parameters for the given operation.\n *\n * @param   {object[]}  params       -  An array of Parameter objects\n * @param   {string}    operationId  -  A value that uniquely identifies the operation\n */\nfunction validateBodyParameters (params, operationId) {\n  let bodyParams = params.filter((param) => { return param.in === \"body\"; });\n  let formParams = params.filter((param) => { return param.in === \"formData\"; });\n\n  // There can only be one \"body\" parameter\n  if (bodyParams.length > 1) {\n    throw ono.syntax(\n      `Validation failed. ${operationId} has ${bodyParams.length} body parameters. Only one is allowed.`,\n    );\n  }\n  else if (bodyParams.length > 0 && formParams.length > 0) {\n    // \"body\" params and \"formData\" params are mutually exclusive\n    throw ono.syntax(\n      `Validation failed. ${operationId} has body parameters and formData parameters. Only one or the other is allowed.`,\n    );\n  }\n}\n\n/**\n * Validates path parameters for the given path.\n *\n * @param   {object[]}  params        - An array of Parameter objects\n * @param   {string}    pathId        - A value that uniquely identifies the path\n * @param   {string}    operationId   - A value that uniquely identifies the operation\n */\nfunction validatePathParameters (params, pathId, operationId) {\n  // Find all {placeholders} in the path string\n  let placeholders = pathId.match(util.swaggerParamRegExp) || [];\n\n  // Check for duplicates\n  for (let i = 0; i < placeholders.length; i++) {\n    for (let j = i + 1; j < placeholders.length; j++) {\n      if (placeholders[i] === placeholders[j]) {\n        throw ono.syntax(\n          `Validation failed. ${operationId} has multiple path placeholders named ${placeholders[i]}`);\n      }\n    }\n  }\n\n  params = params.filter((param) => { return param.in === \"path\"; });\n\n  for (let param of params) {\n    if (param.required !== true) {\n      throw ono.syntax(\n        \"Validation failed. Path parameters cannot be optional. \" +\n        `Set required=true for the \"${param.name}\" parameter at ${operationId}`,\n      );\n    }\n    let match = placeholders.indexOf(\"{\" + param.name + \"}\");\n    if (match === -1) {\n      throw ono.syntax(\n        `Validation failed. ${operationId} has a path parameter named \"${param.name}\", ` +\n        `but there is no corresponding {${param.name}} in the path string`\n      );\n    }\n    placeholders.splice(match, 1);\n  }\n\n  if (placeholders.length > 0) {\n    throw ono.syntax(`Validation failed. ${operationId} is missing path parameter(s) for ${placeholders}`);\n  }\n}\n\n/**\n * Validates data types of parameters for the given operation.\n *\n * @param   {object[]}  params       -  An array of Parameter objects\n * @param   {object}    api          -  The entire Swagger API object\n * @param   {object}    operation    -  An Operation object, from the Swagger API\n * @param   {string}    operationId  -  A value that uniquely identifies the operation\n */\nfunction validateParameterTypes (params, api, operation, operationId) {\n  for (let param of params) {\n    let parameterId = operationId + \"/parameters/\" + param.name;\n    let schema, validTypes;\n\n    switch (param.in) {\n      case \"body\":\n        schema = param.schema;\n        validTypes = schemaTypes;\n        break;\n      case \"formData\":\n        schema = param;\n        validTypes = primitiveTypes.concat(\"file\");\n        break;\n      default:\n        schema = param;\n        validTypes = primitiveTypes;\n    }\n\n    validateSchema(schema, parameterId, validTypes);\n    validateRequiredPropertiesExist(schema, parameterId);\n\n    if (schema.type === \"file\") {\n      // \"file\" params must consume at least one of these MIME types\n      let formData = /multipart\\/(.*\\+)?form-data/;\n      let urlEncoded = /application\\/(.*\\+)?x-www-form-urlencoded/;\n\n      let consumes = operation.consumes || api.consumes || [];\n\n      let hasValidMimeType = consumes.some((consume) => {\n        return formData.test(consume) || urlEncoded.test(consume);\n      });\n\n      if (!hasValidMimeType) {\n        throw ono.syntax(\n          `Validation failed. ${operationId} has a file parameter, so it must consume multipart/form-data ` +\n          \"or application/x-www-form-urlencoded\",\n        );\n      }\n    }\n  }\n}\n\n/**\n * Checks the given parameter list for duplicates, and throws an error if found.\n *\n * @param   {object[]}  params  - An array of Parameter objects\n */\nfunction checkForDuplicates (params) {\n  for (let i = 0; i < params.length - 1; i++) {\n    let outer = params[i];\n    for (let j = i + 1; j < params.length; j++) {\n      let inner = params[j];\n      if (outer.name === inner.name && outer.in === inner.in) {\n        throw ono.syntax(`Validation failed. Found multiple ${outer.in} parameters named \"${outer.name}\"`);\n      }\n    }\n  }\n}\n\n/**\n * Validates the given response object.\n *\n * @param   {string}    code        -  The HTTP response code (or \"default\")\n * @param   {object}    response    -  A Response object, from the Swagger API\n * @param   {string}    responseId  -  A value that uniquely identifies the response\n */\nfunction validateResponse (code, response, responseId) {\n  if (code !== \"default\" && (code < 100 || code > 599)) {\n    throw ono.syntax(`Validation failed. ${responseId} has an invalid response code (${code})`);\n  }\n\n  let headers = Object.keys(response.headers || {});\n  for (let headerName of headers) {\n    let header = response.headers[headerName];\n    let headerId = responseId + \"/headers/\" + headerName;\n    validateSchema(header, headerId, primitiveTypes);\n  }\n\n  if (response.schema) {\n    let validTypes = schemaTypes.concat(\"file\");\n    if (validTypes.indexOf(response.schema.type) === -1) {\n      throw ono.syntax(\n        `Validation failed. ${responseId} has an invalid response schema type (${response.schema.type})`);\n    }\n    else {\n      validateSchema(response.schema, responseId + \"/schema\", validTypes);\n    }\n  }\n}\n\n/**\n * Validates the given Swagger schema object.\n *\n * @param {object}    schema      - A Schema object, from the Swagger API\n * @param {string}    schemaId    - A value that uniquely identifies the schema object\n * @param {string[]}  validTypes  - An array of the allowed schema types\n */\nfunction validateSchema (schema, schemaId, validTypes) {\n  if (validTypes.indexOf(schema.type) === -1) {\n    throw ono.syntax(\n      `Validation failed. ${schemaId} has an invalid type (${schema.type})`);\n  }\n\n  if (schema.type === \"array\" && !schema.items) {\n    throw ono.syntax(`Validation failed. ${schemaId} is an array, so it must include an \"items\" schema`);\n  }\n}\n\n/**\n * Validates that the declared properties of the given Swagger schema object actually exist.\n *\n * @param {object}    schema      - A Schema object, from the Swagger API\n * @param {string}    schemaId    - A value that uniquely identifies the schema object\n */\nfunction validateRequiredPropertiesExist (schema, schemaId) {\n  /**\n   * Recursively collects all properties of the schema and its ancestors. They are added to the props object.\n   */\n  function collectProperties (schemaObj, props) {\n    if (schemaObj.properties) {\n      for (let property in schemaObj.properties) {\n        if (schemaObj.properties.hasOwnProperty(property)) {\n          props[property] = schemaObj.properties[property];\n        }\n      }\n    }\n    if (schemaObj.allOf) {\n      for (let parent of schemaObj.allOf) {\n        collectProperties(parent, props);\n      }\n    }\n  }\n\n  // The \"required\" keyword is only applicable for objects\n  if (Array.isArray(schema.type) && !schema.type.includes(\"object\")) {\n    return;\n  }\n  else if (!Array.isArray(schema.type) && schema.type !== \"object\") {\n    return;\n  }\n\n  if (schema.required && Array.isArray(schema.required)) {\n    let props = {};\n    collectProperties(schema, props);\n    for (let requiredProperty of schema.required) {\n      if (!props[requiredProperty]) {\n        throw ono.syntax(\n          `Validation failed. Property '${requiredProperty}' listed as required but does not exist in '${schemaId}'`\n        );\n      }\n    }\n  }\n}\n", "var exports = {},\n    _dewExec = false;\n\nvar _global = typeof globalThis !== \"undefined\" ? globalThis : typeof self !== \"undefined\" ? self : global;\n\nfunction dew() {\n  if (_dewExec) return exports;\n  _dewExec = true;\n  // shim for using process in browser\n  var process = exports = {}; // cached from whatever global is present so that test runners that stub it\n  // don't break things.  But we need to wrap it in a try catch in case it is\n  // wrapped in strict mode code which doesn't define any globals.  It's inside a\n  // function because try/catches deoptimize in certain engines.\n\n  var cachedSetTimeout;\n  var cachedClearTimeout;\n\n  function defaultSetTimout() {\n    throw new Error(\"setTimeout has not been defined\");\n  }\n\n  function defaultClearTimeout() {\n    throw new Error(\"clearTimeout has not been defined\");\n  }\n\n  (function () {\n    try {\n      if (typeof setTimeout === \"function\") {\n        cachedSetTimeout = setTimeout;\n      } else {\n        cachedSetTimeout = defaultSetTimout;\n      }\n    } catch (e) {\n      cachedSetTimeout = defaultSetTimout;\n    }\n\n    try {\n      if (typeof clearTimeout === \"function\") {\n        cachedClearTimeout = clearTimeout;\n      } else {\n        cachedClearTimeout = defaultClearTimeout;\n      }\n    } catch (e) {\n      cachedClearTimeout = defaultClearTimeout;\n    }\n  })();\n\n  function runTimeout(fun) {\n    if (cachedSetTimeout === setTimeout) {\n      //normal enviroments in sane situations\n      return setTimeout(fun, 0);\n    } // if setTimeout wasn't available but was latter defined\n\n\n    if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n      cachedSetTimeout = setTimeout;\n      return setTimeout(fun, 0);\n    }\n\n    try {\n      // when when somebody has screwed with setTimeout but no I.E. maddness\n      return cachedSetTimeout(fun, 0);\n    } catch (e) {\n      try {\n        // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n        return cachedSetTimeout.call(null, fun, 0);\n      } catch (e) {\n        // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n        return cachedSetTimeout.call(this || _global, fun, 0);\n      }\n    }\n  }\n\n  function runClearTimeout(marker) {\n    if (cachedClearTimeout === clearTimeout) {\n      //normal enviroments in sane situations\n      return clearTimeout(marker);\n    } // if clearTimeout wasn't available but was latter defined\n\n\n    if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n      cachedClearTimeout = clearTimeout;\n      return clearTimeout(marker);\n    }\n\n    try {\n      // when when somebody has screwed with setTimeout but no I.E. maddness\n      return cachedClearTimeout(marker);\n    } catch (e) {\n      try {\n        // When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally\n        return cachedClearTimeout.call(null, marker);\n      } catch (e) {\n        // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n        // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n        return cachedClearTimeout.call(this || _global, marker);\n      }\n    }\n  }\n\n  var queue = [];\n  var draining = false;\n  var currentQueue;\n  var queueIndex = -1;\n\n  function cleanUpNextTick() {\n    if (!draining || !currentQueue) {\n      return;\n    }\n\n    draining = false;\n\n    if (currentQueue.length) {\n      queue = currentQueue.concat(queue);\n    } else {\n      queueIndex = -1;\n    }\n\n    if (queue.length) {\n      drainQueue();\n    }\n  }\n\n  function drainQueue() {\n    if (draining) {\n      return;\n    }\n\n    var timeout = runTimeout(cleanUpNextTick);\n    draining = true;\n    var len = queue.length;\n\n    while (len) {\n      currentQueue = queue;\n      queue = [];\n\n      while (++queueIndex < len) {\n        if (currentQueue) {\n          currentQueue[queueIndex].run();\n        }\n      }\n\n      queueIndex = -1;\n      len = queue.length;\n    }\n\n    currentQueue = null;\n    draining = false;\n    runClearTimeout(timeout);\n  }\n\n  process.nextTick = function (fun) {\n    var args = new Array(arguments.length - 1);\n\n    if (arguments.length > 1) {\n      for (var i = 1; i < arguments.length; i++) {\n        args[i - 1] = arguments[i];\n      }\n    }\n\n    queue.push(new Item(fun, args));\n\n    if (queue.length === 1 && !draining) {\n      runTimeout(drainQueue);\n    }\n  }; // v8 likes predictible objects\n\n\n  function Item(fun, array) {\n    (this || _global).fun = fun;\n    (this || _global).array = array;\n  }\n\n  Item.prototype.run = function () {\n    (this || _global).fun.apply(null, (this || _global).array);\n  };\n\n  process.title = \"browser\";\n  process.browser = true;\n  process.env = {};\n  process.argv = [];\n  process.version = \"\"; // empty string to avoid regexp issues\n\n  process.versions = {};\n\n  function noop() {}\n\n  process.on = noop;\n  process.addListener = noop;\n  process.once = noop;\n  process.off = noop;\n  process.removeListener = noop;\n  process.removeAllListeners = noop;\n  process.emit = noop;\n  process.prependListener = noop;\n  process.prependOnceListener = noop;\n\n  process.listeners = function (name) {\n    return [];\n  };\n\n  process.binding = function (name) {\n    throw new Error(\"process.binding is not supported\");\n  };\n\n  process.cwd = function () {\n    return \"/\";\n  };\n\n  process.chdir = function (dir) {\n    throw new Error(\"process.chdir is not supported\");\n  };\n\n  process.umask = function () {\n    return 0;\n  };\n\n  return exports;\n}\n\nvar process = dew();\n\nprocess.platform = 'browser';\nprocess.addListener;\nprocess.argv;\nprocess.binding;\nprocess.browser;\nprocess.chdir;\nprocess.cwd;\nprocess.emit;\nprocess.env;\nprocess.listeners;\nprocess.nextTick;\nprocess.off;\nprocess.on;\nprocess.once;\nprocess.prependListener;\nprocess.prependOnceListener;\nprocess.removeAllListeners;\nprocess.removeListener;\nprocess.title;\nprocess.umask;\nprocess.version;\nprocess.versions;\n\nexport { process as p };\n", "import { p as process } from './chunk-2eac56ff.js';\n\nvar exports$1 = {},\n    _dewExec = false;\nfunction dew() {\n  if (_dewExec) return exports$1;\n  _dewExec = true;\n  var process$1 = process;\n\n  function assertPath(path) {\n    if (typeof path !== \"string\") {\n      throw new TypeError(\"Path must be a string. Received \" + JSON.stringify(path));\n    }\n  } // Resolves . and .. elements in a path with directory names\n\n\n  function normalizeStringPosix(path, allowAboveRoot) {\n    var res = \"\";\n    var lastSegmentLength = 0;\n    var lastSlash = -1;\n    var dots = 0;\n    var code;\n\n    for (var i = 0; i <= path.length; ++i) {\n      if (i < path.length) code = path.charCodeAt(i);else if (code === 47\n      /*/*/\n      ) break;else code = 47\n      /*/*/\n      ;\n\n      if (code === 47\n      /*/*/\n      ) {\n        if (lastSlash === i - 1 || dots === 1) ; else if (lastSlash !== i - 1 && dots === 2) {\n          if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== 46\n          /*.*/\n          || res.charCodeAt(res.length - 2) !== 46\n          /*.*/\n          ) {\n            if (res.length > 2) {\n              var lastSlashIndex = res.lastIndexOf(\"/\");\n\n              if (lastSlashIndex !== res.length - 1) {\n                if (lastSlashIndex === -1) {\n                  res = \"\";\n                  lastSegmentLength = 0;\n                } else {\n                  res = res.slice(0, lastSlashIndex);\n                  lastSegmentLength = res.length - 1 - res.lastIndexOf(\"/\");\n                }\n\n                lastSlash = i;\n                dots = 0;\n                continue;\n              }\n            } else if (res.length === 2 || res.length === 1) {\n              res = \"\";\n              lastSegmentLength = 0;\n              lastSlash = i;\n              dots = 0;\n              continue;\n            }\n          }\n\n          if (allowAboveRoot) {\n            if (res.length > 0) res += \"/..\";else res = \"..\";\n            lastSegmentLength = 2;\n          }\n        } else {\n          if (res.length > 0) res += \"/\" + path.slice(lastSlash + 1, i);else res = path.slice(lastSlash + 1, i);\n          lastSegmentLength = i - lastSlash - 1;\n        }\n\n        lastSlash = i;\n        dots = 0;\n      } else if (code === 46\n      /*.*/\n      && dots !== -1) {\n        ++dots;\n      } else {\n        dots = -1;\n      }\n    }\n\n    return res;\n  }\n\n  function _format(sep, pathObject) {\n    var dir = pathObject.dir || pathObject.root;\n    var base = pathObject.base || (pathObject.name || \"\") + (pathObject.ext || \"\");\n\n    if (!dir) {\n      return base;\n    }\n\n    if (dir === pathObject.root) {\n      return dir + base;\n    }\n\n    return dir + sep + base;\n  }\n\n  var posix = {\n    // path.resolve([from ...], to)\n    resolve: function resolve() {\n      var resolvedPath = \"\";\n      var resolvedAbsolute = false;\n      var cwd;\n\n      for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n        var path;\n        if (i >= 0) path = arguments[i];else {\n          if (cwd === undefined) cwd = process$1.cwd();\n          path = cwd;\n        }\n        assertPath(path); // Skip empty entries\n\n        if (path.length === 0) {\n          continue;\n        }\n\n        resolvedPath = path + \"/\" + resolvedPath;\n        resolvedAbsolute = path.charCodeAt(0) === 47\n        /*/*/\n        ;\n      } // At this point the path should be resolved to a full absolute path, but\n      // handle relative paths to be safe (might happen when process.cwd() fails)\n      // Normalize the path\n\n\n      resolvedPath = normalizeStringPosix(resolvedPath, !resolvedAbsolute);\n\n      if (resolvedAbsolute) {\n        if (resolvedPath.length > 0) return \"/\" + resolvedPath;else return \"/\";\n      } else if (resolvedPath.length > 0) {\n        return resolvedPath;\n      } else {\n        return \".\";\n      }\n    },\n    normalize: function normalize(path) {\n      assertPath(path);\n      if (path.length === 0) return \".\";\n      var isAbsolute = path.charCodeAt(0) === 47\n      /*/*/\n      ;\n      var trailingSeparator = path.charCodeAt(path.length - 1) === 47\n      /*/*/\n      ; // Normalize the path\n\n      path = normalizeStringPosix(path, !isAbsolute);\n      if (path.length === 0 && !isAbsolute) path = \".\";\n      if (path.length > 0 && trailingSeparator) path += \"/\";\n      if (isAbsolute) return \"/\" + path;\n      return path;\n    },\n    isAbsolute: function isAbsolute(path) {\n      assertPath(path);\n      return path.length > 0 && path.charCodeAt(0) === 47\n      /*/*/\n      ;\n    },\n    join: function join() {\n      if (arguments.length === 0) return \".\";\n      var joined;\n\n      for (var i = 0; i < arguments.length; ++i) {\n        var arg = arguments[i];\n        assertPath(arg);\n\n        if (arg.length > 0) {\n          if (joined === undefined) joined = arg;else joined += \"/\" + arg;\n        }\n      }\n\n      if (joined === undefined) return \".\";\n      return posix.normalize(joined);\n    },\n    relative: function relative(from, to) {\n      assertPath(from);\n      assertPath(to);\n      if (from === to) return \"\";\n      from = posix.resolve(from);\n      to = posix.resolve(to);\n      if (from === to) return \"\"; // Trim any leading backslashes\n\n      var fromStart = 1;\n\n      for (; fromStart < from.length; ++fromStart) {\n        if (from.charCodeAt(fromStart) !== 47\n        /*/*/\n        ) break;\n      }\n\n      var fromEnd = from.length;\n      var fromLen = fromEnd - fromStart; // Trim any leading backslashes\n\n      var toStart = 1;\n\n      for (; toStart < to.length; ++toStart) {\n        if (to.charCodeAt(toStart) !== 47\n        /*/*/\n        ) break;\n      }\n\n      var toEnd = to.length;\n      var toLen = toEnd - toStart; // Compare paths to find the longest common path from root\n\n      var length = fromLen < toLen ? fromLen : toLen;\n      var lastCommonSep = -1;\n      var i = 0;\n\n      for (; i <= length; ++i) {\n        if (i === length) {\n          if (toLen > length) {\n            if (to.charCodeAt(toStart + i) === 47\n            /*/*/\n            ) {\n              // We get here if `from` is the exact base path for `to`.\n              // For example: from='/foo/bar'; to='/foo/bar/baz'\n              return to.slice(toStart + i + 1);\n            } else if (i === 0) {\n              // We get here if `from` is the root\n              // For example: from='/'; to='/foo'\n              return to.slice(toStart + i);\n            }\n          } else if (fromLen > length) {\n            if (from.charCodeAt(fromStart + i) === 47\n            /*/*/\n            ) {\n              // We get here if `to` is the exact base path for `from`.\n              // For example: from='/foo/bar/baz'; to='/foo/bar'\n              lastCommonSep = i;\n            } else if (i === 0) {\n              // We get here if `to` is the root.\n              // For example: from='/foo'; to='/'\n              lastCommonSep = 0;\n            }\n          }\n\n          break;\n        }\n\n        var fromCode = from.charCodeAt(fromStart + i);\n        var toCode = to.charCodeAt(toStart + i);\n        if (fromCode !== toCode) break;else if (fromCode === 47\n        /*/*/\n        ) lastCommonSep = i;\n      }\n\n      var out = \"\"; // Generate the relative path based on the path difference between `to`\n      // and `from`\n\n      for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {\n        if (i === fromEnd || from.charCodeAt(i) === 47\n        /*/*/\n        ) {\n          if (out.length === 0) out += \"..\";else out += \"/..\";\n        }\n      } // Lastly, append the rest of the destination (`to`) path that comes after\n      // the common path parts\n\n\n      if (out.length > 0) return out + to.slice(toStart + lastCommonSep);else {\n        toStart += lastCommonSep;\n        if (to.charCodeAt(toStart) === 47\n        /*/*/\n        ) ++toStart;\n        return to.slice(toStart);\n      }\n    },\n    _makeLong: function _makeLong(path) {\n      return path;\n    },\n    dirname: function dirname(path) {\n      assertPath(path);\n      if (path.length === 0) return \".\";\n      var code = path.charCodeAt(0);\n      var hasRoot = code === 47\n      /*/*/\n      ;\n      var end = -1;\n      var matchedSlash = true;\n\n      for (var i = path.length - 1; i >= 1; --i) {\n        code = path.charCodeAt(i);\n\n        if (code === 47\n        /*/*/\n        ) {\n          if (!matchedSlash) {\n            end = i;\n            break;\n          }\n        } else {\n          // We saw the first non-path separator\n          matchedSlash = false;\n        }\n      }\n\n      if (end === -1) return hasRoot ? \"/\" : \".\";\n      if (hasRoot && end === 1) return \"//\";\n      return path.slice(0, end);\n    },\n    basename: function basename(path, ext) {\n      if (ext !== undefined && typeof ext !== \"string\") throw new TypeError(\"\\\"ext\\\" argument must be a string\");\n      assertPath(path);\n      var start = 0;\n      var end = -1;\n      var matchedSlash = true;\n      var i;\n\n      if (ext !== undefined && ext.length > 0 && ext.length <= path.length) {\n        if (ext.length === path.length && ext === path) return \"\";\n        var extIdx = ext.length - 1;\n        var firstNonSlashEnd = -1;\n\n        for (i = path.length - 1; i >= 0; --i) {\n          var code = path.charCodeAt(i);\n\n          if (code === 47\n          /*/*/\n          ) {\n            // If we reached a path separator that was not part of a set of path\n            // separators at the end of the string, stop now\n            if (!matchedSlash) {\n              start = i + 1;\n              break;\n            }\n          } else {\n            if (firstNonSlashEnd === -1) {\n              // We saw the first non-path separator, remember this index in case\n              // we need it if the extension ends up not matching\n              matchedSlash = false;\n              firstNonSlashEnd = i + 1;\n            }\n\n            if (extIdx >= 0) {\n              // Try to match the explicit extension\n              if (code === ext.charCodeAt(extIdx)) {\n                if (--extIdx === -1) {\n                  // We matched the extension, so mark this as the end of our path\n                  // component\n                  end = i;\n                }\n              } else {\n                // Extension does not match, so our result is the entire path\n                // component\n                extIdx = -1;\n                end = firstNonSlashEnd;\n              }\n            }\n          }\n        }\n\n        if (start === end) end = firstNonSlashEnd;else if (end === -1) end = path.length;\n        return path.slice(start, end);\n      } else {\n        for (i = path.length - 1; i >= 0; --i) {\n          if (path.charCodeAt(i) === 47\n          /*/*/\n          ) {\n            // If we reached a path separator that was not part of a set of path\n            // separators at the end of the string, stop now\n            if (!matchedSlash) {\n              start = i + 1;\n              break;\n            }\n          } else if (end === -1) {\n            // We saw the first non-path separator, mark this as the end of our\n            // path component\n            matchedSlash = false;\n            end = i + 1;\n          }\n        }\n\n        if (end === -1) return \"\";\n        return path.slice(start, end);\n      }\n    },\n    extname: function extname(path) {\n      assertPath(path);\n      var startDot = -1;\n      var startPart = 0;\n      var end = -1;\n      var matchedSlash = true; // Track the state of characters (if any) we see before our first dot and\n      // after any path separator we find\n\n      var preDotState = 0;\n\n      for (var i = path.length - 1; i >= 0; --i) {\n        var code = path.charCodeAt(i);\n\n        if (code === 47\n        /*/*/\n        ) {\n          // If we reached a path separator that was not part of a set of path\n          // separators at the end of the string, stop now\n          if (!matchedSlash) {\n            startPart = i + 1;\n            break;\n          }\n\n          continue;\n        }\n\n        if (end === -1) {\n          // We saw the first non-path separator, mark this as the end of our\n          // extension\n          matchedSlash = false;\n          end = i + 1;\n        }\n\n        if (code === 46\n        /*.*/\n        ) {\n          // If this is our first dot, mark it as the start of our extension\n          if (startDot === -1) startDot = i;else if (preDotState !== 1) preDotState = 1;\n        } else if (startDot !== -1) {\n          // We saw a non-dot and non-path separator before our dot, so we should\n          // have a good chance at having a non-empty extension\n          preDotState = -1;\n        }\n      }\n\n      if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot\n      preDotState === 0 || // The (right-most) trimmed path component is exactly '..'\n      preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {\n        return \"\";\n      }\n\n      return path.slice(startDot, end);\n    },\n    format: function format(pathObject) {\n      if (pathObject === null || typeof pathObject !== \"object\") {\n        throw new TypeError(\"The \\\"pathObject\\\" argument must be of type Object. Received type \" + typeof pathObject);\n      }\n\n      return _format(\"/\", pathObject);\n    },\n    parse: function parse(path) {\n      assertPath(path);\n      var ret = {\n        root: \"\",\n        dir: \"\",\n        base: \"\",\n        ext: \"\",\n        name: \"\"\n      };\n      if (path.length === 0) return ret;\n      var code = path.charCodeAt(0);\n      var isAbsolute = code === 47\n      /*/*/\n      ;\n      var start;\n\n      if (isAbsolute) {\n        ret.root = \"/\";\n        start = 1;\n      } else {\n        start = 0;\n      }\n\n      var startDot = -1;\n      var startPart = 0;\n      var end = -1;\n      var matchedSlash = true;\n      var i = path.length - 1; // Track the state of characters (if any) we see before our first dot and\n      // after any path separator we find\n\n      var preDotState = 0; // Get non-dir info\n\n      for (; i >= start; --i) {\n        code = path.charCodeAt(i);\n\n        if (code === 47\n        /*/*/\n        ) {\n          // If we reached a path separator that was not part of a set of path\n          // separators at the end of the string, stop now\n          if (!matchedSlash) {\n            startPart = i + 1;\n            break;\n          }\n\n          continue;\n        }\n\n        if (end === -1) {\n          // We saw the first non-path separator, mark this as the end of our\n          // extension\n          matchedSlash = false;\n          end = i + 1;\n        }\n\n        if (code === 46\n        /*.*/\n        ) {\n          // If this is our first dot, mark it as the start of our extension\n          if (startDot === -1) startDot = i;else if (preDotState !== 1) preDotState = 1;\n        } else if (startDot !== -1) {\n          // We saw a non-dot and non-path separator before our dot, so we should\n          // have a good chance at having a non-empty extension\n          preDotState = -1;\n        }\n      }\n\n      if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot\n      preDotState === 0 || // The (right-most) trimmed path component is exactly '..'\n      preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {\n        if (end !== -1) {\n          if (startPart === 0 && isAbsolute) ret.base = ret.name = path.slice(1, end);else ret.base = ret.name = path.slice(startPart, end);\n        }\n      } else {\n        if (startPart === 0 && isAbsolute) {\n          ret.name = path.slice(1, startDot);\n          ret.base = path.slice(1, end);\n        } else {\n          ret.name = path.slice(startPart, startDot);\n          ret.base = path.slice(startPart, end);\n        }\n\n        ret.ext = path.slice(startDot, end);\n      }\n\n      if (startPart > 0) ret.dir = path.slice(0, startPart - 1);else if (isAbsolute) ret.dir = \"/\";\n      return ret;\n    },\n    sep: \"/\",\n    delimiter: \":\",\n    win32: null,\n    posix: null\n  };\n  posix.posix = posix;\n  exports$1 = posix;\n  return exports$1;\n}\n\nconst exports = dew();\n\nexport { exports as e };\n", "import { e as exports } from './chunk-23dbec7b.js';\nexport { e as default } from './chunk-23dbec7b.js';\nimport './chunk-2eac56ff.js';\n\nvar _makeLong = exports._makeLong;\r\nvar basename = exports.basename;\r\nvar delimiter = exports.delimiter;\r\nvar dirname = exports.dirname;\r\nvar extname = exports.extname;\r\nvar format = exports.format;\r\nvar isAbsolute = exports.isAbsolute;\r\nvar join = exports.join;\r\nvar normalize = exports.normalize;\r\nvar parse = exports.parse;\r\nvar posix = exports.posix;\r\nvar relative = exports.relative;\r\nvar resolve = exports.resolve;\r\nvar sep = exports.sep;\r\nvar win32 = exports.win32;\n\nexport { _makeLong, basename, delimiter, dirname, extname, format, isAbsolute, join, normalize, parse, posix, relative, resolve, sep, win32 };\n", "\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = convertPathToPosix;\nconst path_1 = __importDefault(require(\"path\"));\nfunction convertPathToPosix(filePath) {\n    const isExtendedLengthPath = filePath.startsWith(\"\\\\\\\\?\\\\\");\n    if (isExtendedLengthPath) {\n        return filePath;\n    }\n    return filePath.split(path_1.default?.win32?.sep).join(path_1.default?.posix?.sep ?? \"/\");\n}\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isWindows = void 0;\nconst isWindowsConst = /^win/.test(globalThis.process ? globalThis.process.platform : \"\");\nconst isWindows = () => isWindowsConst;\nexports.isWindows = isWindows;\n", "\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.parse = void 0;\nexports.resolve = resolve;\nexports.cwd = cwd;\nexports.getProtocol = getProtocol;\nexports.getExtension = getExtension;\nexports.stripQuery = stripQuery;\nexports.getHash = getHash;\nexports.stripHash = stripHash;\nexports.isHttp = isHttp;\nexports.isFileSystemPath = isFileSystemPath;\nexports.fromFileSystemPath = fromFileSystemPath;\nexports.toFileSystemPath = toFileSystemPath;\nexports.safePointerToPath = safePointerToPath;\nexports.relative = relative;\nconst convert_path_to_posix_1 = __importDefault(require(\"./convert-path-to-posix\"));\nconst path_1 = __importStar(require(\"path\"));\nconst forwardSlashPattern = /\\//g;\nconst protocolPattern = /^(\\w{2,}):\\/\\//i;\nconst jsonPointerSlash = /~1/g;\nconst jsonPointerTilde = /~0/g;\nconst path_2 = require(\"path\");\nconst is_windows_1 = require(\"./is-windows\");\n// RegExp patterns to URL-encode special characters in local filesystem paths\nconst urlEncodePatterns = [\n    [/\\?/g, \"%3F\"],\n    [/#/g, \"%23\"],\n];\n// RegExp patterns to URL-decode special characters for local filesystem paths\nconst urlDecodePatterns = [/%23/g, \"#\", /%24/g, \"$\", /%26/g, \"&\", /%2C/g, \",\", /%40/g, \"@\"];\nconst parse = (u) => new URL(u);\nexports.parse = parse;\n/**\n * Returns resolved target URL relative to a base URL in a manner similar to that of a Web browser resolving an anchor tag HREF.\n *\n * @returns\n */\nfunction resolve(from, to) {\n    const fromUrl = new URL((0, convert_path_to_posix_1.default)(from), \"resolve://\");\n    const resolvedUrl = new URL((0, convert_path_to_posix_1.default)(to), fromUrl);\n    const endSpaces = to.match(/(\\s*)$/)?.[1] || \"\";\n    if (resolvedUrl.protocol === \"resolve:\") {\n        // `from` is a relative URL.\n        const { pathname, search, hash } = resolvedUrl;\n        return pathname + search + hash + endSpaces;\n    }\n    return resolvedUrl.toString() + endSpaces;\n}\n/**\n * Returns the current working directory (in Node) or the current page URL (in browsers).\n *\n * @returns\n */\nfunction cwd() {\n    if (typeof window !== \"undefined\") {\n        return location.href;\n    }\n    const path = process.cwd();\n    const lastChar = path.slice(-1);\n    if (lastChar === \"/\" || lastChar === \"\\\\\") {\n        return path;\n    }\n    else {\n        return path + \"/\";\n    }\n}\n/**\n * Returns the protocol of the given URL, or `undefined` if it has no protocol.\n *\n * @param path\n * @returns\n */\nfunction getProtocol(path) {\n    const match = protocolPattern.exec(path || \"\");\n    if (match) {\n        return match[1].toLowerCase();\n    }\n    return undefined;\n}\n/**\n * Returns the lowercased file extension of the given URL,\n * or an empty string if it has no extension.\n *\n * @param path\n * @returns\n */\nfunction getExtension(path) {\n    const lastDot = path.lastIndexOf(\".\");\n    if (lastDot >= 0) {\n        return stripQuery(path.substr(lastDot).toLowerCase());\n    }\n    return \"\";\n}\n/**\n * Removes the query, if any, from the given path.\n *\n * @param path\n * @returns\n */\nfunction stripQuery(path) {\n    const queryIndex = path.indexOf(\"?\");\n    if (queryIndex >= 0) {\n        path = path.substr(0, queryIndex);\n    }\n    return path;\n}\n/**\n * Returns the hash (URL fragment), of the given path.\n * If there is no hash, then the root hash (\"#\") is returned.\n *\n * @param path\n * @returns\n */\nfunction getHash(path) {\n    if (!path) {\n        return \"#\";\n    }\n    const hashIndex = path.indexOf(\"#\");\n    if (hashIndex >= 0) {\n        return path.substring(hashIndex);\n    }\n    return \"#\";\n}\n/**\n * Removes the hash (URL fragment), if any, from the given path.\n *\n * @param path\n * @returns\n */\nfunction stripHash(path) {\n    if (!path) {\n        return \"\";\n    }\n    const hashIndex = path.indexOf(\"#\");\n    if (hashIndex >= 0) {\n        path = path.substring(0, hashIndex);\n    }\n    return path;\n}\n/**\n * Determines whether the given path is an HTTP(S) URL.\n *\n * @param path\n * @returns\n */\nfunction isHttp(path) {\n    const protocol = getProtocol(path);\n    if (protocol === \"http\" || protocol === \"https\") {\n        return true;\n    }\n    else if (protocol === undefined) {\n        // There is no protocol.  If we're running in a browser, then assume it's HTTP.\n        return typeof window !== \"undefined\";\n    }\n    else {\n        // It's some other protocol, such as \"ftp://\", \"mongodb://\", etc.\n        return false;\n    }\n}\n/**\n * Determines whether the given path is a filesystem path.\n * This includes \"file://\" URLs.\n *\n * @param path\n * @returns\n */\nfunction isFileSystemPath(path) {\n    // @ts-ignore\n    if (typeof window !== \"undefined\" || (typeof process !== \"undefined\" && process.browser)) {\n        // We're running in a browser, so assume that all paths are URLs.\n        // This way, even relative paths will be treated as URLs rather than as filesystem paths\n        return false;\n    }\n    const protocol = getProtocol(path);\n    return protocol === undefined || protocol === \"file\";\n}\n/**\n * Converts a filesystem path to a properly-encoded URL.\n *\n * This is intended to handle situations where JSON Schema $Ref Parser is called\n * with a filesystem path that contains characters which are not allowed in URLs.\n *\n * @example\n * The following filesystem paths would be converted to the following URLs:\n *\n *    <\"!@#$%^&*+=?'>.json              ==>   %3C%22!@%23$%25%5E&*+=%3F\\'%3E.json\n *    C:\\\\My Documents\\\\File (1).json   ==>   C:/My%20Documents/File%20(1).json\n *    file://Project #42/file.json      ==>   file://Project%20%2342/file.json\n *\n * @param path\n * @returns\n */\nfunction fromFileSystemPath(path) {\n    // Step 1: On Windows, replace backslashes with forward slashes,\n    // rather than encoding them as \"%5C\"\n    if ((0, is_windows_1.isWindows)()) {\n        const projectDir = cwd();\n        const upperPath = path.toUpperCase();\n        const projectDirPosixPath = (0, convert_path_to_posix_1.default)(projectDir);\n        const posixUpper = projectDirPosixPath.toUpperCase();\n        const hasProjectDir = upperPath.includes(posixUpper);\n        const hasProjectUri = upperPath.includes(posixUpper);\n        const isAbsolutePath = path_1.win32?.isAbsolute(path) ||\n            path.startsWith(\"http://\") ||\n            path.startsWith(\"https://\") ||\n            path.startsWith(\"file://\");\n        if (!(hasProjectDir || hasProjectUri || isAbsolutePath) && !projectDir.startsWith(\"http\")) {\n            path = (0, path_2.join)(projectDir, path);\n        }\n        path = (0, convert_path_to_posix_1.default)(path);\n    }\n    // Step 2: `encodeURI` will take care of MOST characters\n    path = encodeURI(path);\n    // Step 3: Manually encode characters that are not encoded by `encodeURI`.\n    // This includes characters such as \"#\" and \"?\", which have special meaning in URLs,\n    // but are just normal characters in a filesystem path.\n    for (const pattern of urlEncodePatterns) {\n        path = path.replace(pattern[0], pattern[1]);\n    }\n    return path;\n}\n/**\n * Converts a URL to a local filesystem path.\n */\nfunction toFileSystemPath(path, keepFileProtocol) {\n    // Step 1: `decodeURI` will decode characters such as Cyrillic characters, spaces, etc.\n    path = decodeURI(path);\n    // Step 2: Manually decode characters that are not decoded by `decodeURI`.\n    // This includes characters such as \"#\" and \"?\", which have special meaning in URLs,\n    // but are just normal characters in a filesystem path.\n    for (let i = 0; i < urlDecodePatterns.length; i += 2) {\n        path = path.replace(urlDecodePatterns[i], urlDecodePatterns[i + 1]);\n    }\n    // Step 3: If it's a \"file://\" URL, then format it consistently\n    // or convert it to a local filesystem path\n    let isFileUrl = path.substr(0, 7).toLowerCase() === \"file://\";\n    if (isFileUrl) {\n        // Strip-off the protocol, and the initial \"/\", if there is one\n        path = path[7] === \"/\" ? path.substr(8) : path.substr(7);\n        // insert a colon (\":\") after the drive letter on Windows\n        if ((0, is_windows_1.isWindows)() && path[1] === \"/\") {\n            path = path[0] + \":\" + path.substr(1);\n        }\n        if (keepFileProtocol) {\n            // Return the consistently-formatted \"file://\" URL\n            path = \"file:///\" + path;\n        }\n        else {\n            // Convert the \"file://\" URL to a local filesystem path.\n            // On Windows, it will start with something like \"C:/\".\n            // On Posix, it will start with \"/\"\n            isFileUrl = false;\n            path = (0, is_windows_1.isWindows)() ? path : \"/\" + path;\n        }\n    }\n    // Step 4: Normalize Windows paths (unless it's a \"file://\" URL)\n    if ((0, is_windows_1.isWindows)() && !isFileUrl) {\n        // Replace forward slashes with backslashes\n        path = path.replace(forwardSlashPattern, \"\\\\\");\n        // Capitalize the drive letter\n        if (path.substr(1, 2) === \":\\\\\") {\n            path = path[0].toUpperCase() + path.substr(1);\n        }\n    }\n    return path;\n}\n/**\n * Converts a $ref pointer to a valid JSON Path.\n *\n * @param pointer\n * @returns\n */\nfunction safePointerToPath(pointer) {\n    if (pointer.length <= 1 || pointer[0] !== \"#\" || pointer[1] !== \"/\") {\n        return [];\n    }\n    return pointer\n        .slice(2)\n        .split(\"/\")\n        .map((value) => {\n        return decodeURIComponent(value).replace(jsonPointerSlash, \"/\").replace(jsonPointerTilde, \"~\");\n    });\n}\nfunction relative(from, to) {\n    if (!isFileSystemPath(from) || !isFileSystemPath(to)) {\n        return resolve(from, to);\n    }\n    const fromDir = path_1.default.dirname(stripHash(from));\n    const toPath = stripHash(to);\n    const result = path_1.default.relative(fromDir, toPath);\n    return result + getHash(to);\n}\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.InvalidPointerError = exports.TimeoutError = exports.MissingPointerError = exports.UnmatchedResolverError = exports.ResolverError = exports.UnmatchedParserError = exports.ParserError = exports.JSONParserErrorGroup = exports.JSONParserError = void 0;\nexports.isHandledError = isHandledError;\nexports.normalizeError = normalizeError;\nconst ono_1 = require(\"@jsdevtools/ono\");\nconst url_js_1 = require(\"./url.js\");\nclass JSONParserError extends Error {\n    constructor(message, source) {\n        super();\n        this.code = \"EUNKNOWN\";\n        this.name = \"JSONParserError\";\n        this.message = message;\n        this.source = source;\n        this.path = null;\n        ono_1.Ono.extend(this);\n    }\n    get footprint() {\n        return `${this.path}+${this.source}+${this.code}+${this.message}`;\n    }\n}\nexports.JSONParserError = JSONParserError;\nclass JSONParserErrorGroup extends Error {\n    constructor(parser) {\n        super();\n        this.files = parser;\n        this.name = \"JSONParserErrorGroup\";\n        this.message = `${this.errors.length} error${this.errors.length > 1 ? \"s\" : \"\"} occurred while reading '${(0, url_js_1.toFileSystemPath)(parser.$refs._root$Ref.path)}'`;\n        ono_1.Ono.extend(this);\n    }\n    static getParserErrors(parser) {\n        const errors = [];\n        for (const $ref of Object.values(parser.$refs._$refs)) {\n            if ($ref.errors) {\n                errors.push(...$ref.errors);\n            }\n        }\n        return errors;\n    }\n    get errors() {\n        return JSONParserErrorGroup.getParserErrors(this.files);\n    }\n}\nexports.JSONParserErrorGroup = JSONParserErrorGroup;\nclass ParserError extends JSONParserError {\n    constructor(message, source) {\n        super(`Error parsing ${source}: ${message}`, source);\n        this.code = \"EPARSER\";\n        this.name = \"ParserError\";\n    }\n}\nexports.ParserError = ParserError;\nclass UnmatchedParserError extends JSONParserError {\n    constructor(source) {\n        super(`Could not find parser for \"${source}\"`, source);\n        this.code = \"EUNMATCHEDPARSER\";\n        this.name = \"UnmatchedParserError\";\n    }\n}\nexports.UnmatchedParserError = UnmatchedParserError;\nclass ResolverError extends JSONParserError {\n    constructor(ex, source) {\n        super(ex.message || `Error reading file \"${source}\"`, source);\n        this.code = \"ERESOLVER\";\n        this.name = \"ResolverError\";\n        if (\"code\" in ex) {\n            this.ioErrorCode = String(ex.code);\n        }\n    }\n}\nexports.ResolverError = ResolverError;\nclass UnmatchedResolverError extends JSONParserError {\n    constructor(source) {\n        super(`Could not find resolver for \"${source}\"`, source);\n        this.code = \"EUNMATCHEDRESOLVER\";\n        this.name = \"UnmatchedResolverError\";\n    }\n}\nexports.UnmatchedResolverError = UnmatchedResolverError;\nclass MissingPointerError extends JSONParserError {\n    constructor(token, path) {\n        super(`Token \"${token}\" does not exist.`, (0, url_js_1.stripHash)(path));\n        this.code = \"EUNMATCHEDRESOLVER\";\n        this.name = \"MissingPointerError\";\n    }\n}\nexports.MissingPointerError = MissingPointerError;\nclass TimeoutError extends JSONParserError {\n    constructor(timeout) {\n        super(`Dereferencing timeout reached: ${timeout}ms`);\n        this.code = \"ETIMEOUT\";\n        this.name = \"TimeoutError\";\n    }\n}\nexports.TimeoutError = TimeoutError;\nclass InvalidPointerError extends JSONParserError {\n    constructor(pointer, path) {\n        super(`Invalid $ref pointer \"${pointer}\". Pointers must begin with \"#/\"`, (0, url_js_1.stripHash)(path));\n        this.code = \"EUNMATCHEDRESOLVER\";\n        this.name = \"InvalidPointerError\";\n    }\n}\nexports.InvalidPointerError = InvalidPointerError;\nfunction isHandledError(err) {\n    return err instanceof JSONParserError || err instanceof JSONParserErrorGroup;\n}\nfunction normalizeError(err) {\n    if (err.path === null) {\n        err.path = [];\n    }\n    return err;\n}\n", "\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst ref_js_1 = __importDefault(require(\"./ref.js\"));\nconst url = __importStar(require(\"./util/url.js\"));\nconst errors_js_1 = require(\"./util/errors.js\");\nconst slashes = /\\//g;\nconst tildes = /~/g;\nconst escapedSlash = /~1/g;\nconst escapedTilde = /~0/g;\nconst safeDecodeURIComponent = (encodedURIComponent) => {\n    try {\n        return decodeURIComponent(encodedURIComponent);\n    }\n    catch {\n        return encodedURIComponent;\n    }\n};\n/**\n * This class represents a single JSON pointer and its resolved value.\n *\n * @param $ref\n * @param path\n * @param [friendlyPath] - The original user-specified path (used for error messages)\n * @class\n */\nclass Pointer {\n    constructor($ref, path, friendlyPath) {\n        this.$ref = $ref;\n        this.path = path;\n        this.originalPath = friendlyPath || path;\n        this.value = undefined;\n        this.circular = false;\n        this.indirections = 0;\n    }\n    /**\n     * Resolves the value of a nested property within the given object.\n     *\n     * @param obj - The object that will be crawled\n     * @param options\n     * @param pathFromRoot - the path of place that initiated resolving\n     *\n     * @returns\n     * Returns a JSON pointer whose {@link Pointer#value} is the resolved value.\n     * If resolving this value required resolving other JSON references, then\n     * the {@link Pointer#$ref} and {@link Pointer#path} will reflect the resolution path\n     * of the resolved value.\n     */\n    resolve(obj, options, pathFromRoot) {\n        const tokens = Pointer.parse(this.path, this.originalPath);\n        // Crawl the object, one token at a time\n        this.value = unwrapOrThrow(obj);\n        for (let i = 0; i < tokens.length; i++) {\n            if (resolveIf$Ref(this, options, pathFromRoot)) {\n                // The $ref path has changed, so append the remaining tokens to the path\n                this.path = Pointer.join(this.path, tokens.slice(i));\n            }\n            if (typeof this.value === \"object\" && this.value !== null && !isRootPath(pathFromRoot) && \"$ref\" in this.value) {\n                return this;\n            }\n            const token = tokens[i];\n            if (this.value[token] === undefined || (this.value[token] === null && i === tokens.length - 1)) {\n                // one final case is if the entry itself includes slashes, and was parsed out as a token - we can join the remaining tokens and try again\n                let didFindSubstringSlashMatch = false;\n                for (let j = tokens.length - 1; j > i; j--) {\n                    const joinedToken = tokens.slice(i, j + 1).join(\"/\");\n                    if (this.value[joinedToken] !== undefined) {\n                        this.value = this.value[joinedToken];\n                        i = j;\n                        didFindSubstringSlashMatch = true;\n                        break;\n                    }\n                }\n                if (didFindSubstringSlashMatch) {\n                    continue;\n                }\n                this.value = null;\n                throw new errors_js_1.MissingPointerError(token, decodeURI(this.originalPath));\n            }\n            else {\n                this.value = this.value[token];\n            }\n        }\n        // Resolve the final value\n        if (!this.value || (this.value.$ref && url.resolve(this.path, this.value.$ref) !== pathFromRoot)) {\n            resolveIf$Ref(this, options, pathFromRoot);\n        }\n        return this;\n    }\n    /**\n     * Sets the value of a nested property within the given object.\n     *\n     * @param obj - The object that will be crawled\n     * @param value - the value to assign\n     * @param options\n     *\n     * @returns\n     * Returns the modified object, or an entirely new object if the entire object is overwritten.\n     */\n    set(obj, value, options) {\n        const tokens = Pointer.parse(this.path);\n        let token;\n        if (tokens.length === 0) {\n            // There are no tokens, replace the entire object with the new value\n            this.value = value;\n            return value;\n        }\n        // Crawl the object, one token at a time\n        this.value = unwrapOrThrow(obj);\n        for (let i = 0; i < tokens.length - 1; i++) {\n            resolveIf$Ref(this, options);\n            token = tokens[i];\n            if (this.value && this.value[token] !== undefined) {\n                // The token exists\n                this.value = this.value[token];\n            }\n            else {\n                // The token doesn't exist, so create it\n                this.value = setValue(this, token, {});\n            }\n        }\n        // Set the value of the final token\n        resolveIf$Ref(this, options);\n        token = tokens[tokens.length - 1];\n        setValue(this, token, value);\n        // Return the updated object\n        return obj;\n    }\n    /**\n     * Parses a JSON pointer (or a path containing a JSON pointer in the hash)\n     * and returns an array of the pointer's tokens.\n     * (e.g. \"schema.json#/definitions/person/name\" => [\"definitions\", \"person\", \"name\"])\n     *\n     * The pointer is parsed according to RFC 6901\n     * {@link https://tools.ietf.org/html/rfc6901#section-3}\n     *\n     * @param path\n     * @param [originalPath]\n     * @returns\n     */\n    static parse(path, originalPath) {\n        // Get the JSON pointer from the path's hash\n        const pointer = url.getHash(path).substring(1);\n        // If there's no pointer, then there are no tokens,\n        // so return an empty array\n        if (!pointer) {\n            return [];\n        }\n        // Split into an array\n        const split = pointer.split(\"/\");\n        // Decode each part, according to RFC 6901\n        for (let i = 0; i < split.length; i++) {\n            split[i] = safeDecodeURIComponent(split[i].replace(escapedSlash, \"/\").replace(escapedTilde, \"~\"));\n        }\n        if (split[0] !== \"\") {\n            throw new errors_js_1.InvalidPointerError(split, originalPath === undefined ? path : originalPath);\n        }\n        return split.slice(1);\n    }\n    /**\n     * Creates a JSON pointer path, by joining one or more tokens to a base path.\n     *\n     * @param base - The base path (e.g. \"schema.json#/definitions/person\")\n     * @param tokens - The token(s) to append (e.g. [\"name\", \"first\"])\n     * @returns\n     */\n    static join(base, tokens) {\n        // Ensure that the base path contains a hash\n        if (base.indexOf(\"#\") === -1) {\n            base += \"#\";\n        }\n        // Append each token to the base path\n        tokens = Array.isArray(tokens) ? tokens : [tokens];\n        for (let i = 0; i < tokens.length; i++) {\n            const token = tokens[i];\n            // Encode the token, according to RFC 6901\n            base += \"/\" + encodeURIComponent(token.replace(tildes, \"~0\").replace(slashes, \"~1\"));\n        }\n        return base;\n    }\n}\n/**\n * If the given pointer's {@link Pointer#value} is a JSON reference,\n * then the reference is resolved and {@link Pointer#value} is replaced with the resolved value.\n * In addition, {@link Pointer#path} and {@link Pointer#$ref} are updated to reflect the\n * resolution path of the new value.\n *\n * @param pointer\n * @param options\n * @param [pathFromRoot] - the path of place that initiated resolving\n * @returns - Returns `true` if the resolution path changed\n */\nfunction resolveIf$Ref(pointer, options, pathFromRoot) {\n    // Is the value a JSON reference? (and allowed?)\n    if (ref_js_1.default.isAllowed$Ref(pointer.value, options)) {\n        const $refPath = url.resolve(pointer.path, pointer.value.$ref);\n        if ($refPath === pointer.path && !isRootPath(pathFromRoot)) {\n            // The value is a reference to itself, so there's nothing to do.\n            pointer.circular = true;\n        }\n        else {\n            const resolved = pointer.$ref.$refs._resolve($refPath, pointer.path, options);\n            if (resolved === null) {\n                return false;\n            }\n            pointer.indirections += resolved.indirections + 1;\n            if (ref_js_1.default.isExtended$Ref(pointer.value)) {\n                // This JSON reference \"extends\" the resolved value, rather than simply pointing to it.\n                // So the resolved path does NOT change.  Just the value does.\n                pointer.value = ref_js_1.default.dereference(pointer.value, resolved.value);\n                return false;\n            }\n            else {\n                // Resolve the reference\n                pointer.$ref = resolved.$ref;\n                pointer.path = resolved.path;\n                pointer.value = resolved.value;\n            }\n            return true;\n        }\n    }\n    return undefined;\n}\nexports.default = Pointer;\n/**\n * Sets the specified token value of the {@link Pointer#value}.\n *\n * The token is evaluated according to RFC 6901.\n * {@link https://tools.ietf.org/html/rfc6901#section-4}\n *\n * @param pointer - The JSON Pointer whose value will be modified\n * @param token - A JSON Pointer token that indicates how to modify `obj`\n * @param value - The value to assign\n * @returns - Returns the assigned value\n */\nfunction setValue(pointer, token, value) {\n    if (pointer.value && typeof pointer.value === \"object\") {\n        if (token === \"-\" && Array.isArray(pointer.value)) {\n            pointer.value.push(value);\n        }\n        else {\n            pointer.value[token] = value;\n        }\n    }\n    else {\n        throw new errors_js_1.JSONParserError(`Error assigning $ref pointer \"${pointer.path}\". \\nCannot set \"${token}\" of a non-object.`);\n    }\n    return value;\n}\nfunction unwrapOrThrow(value) {\n    if ((0, errors_js_1.isHandledError)(value)) {\n        throw value;\n    }\n    return value;\n}\nfunction isRootPath(pathFromRoot) {\n    return typeof pathFromRoot == \"string\" && Pointer.parse(pathFromRoot).length == 0;\n}\n", "\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst pointer_js_1 = __importDefault(require(\"./pointer.js\"));\nconst errors_js_1 = require(\"./util/errors.js\");\nconst url_js_1 = require(\"./util/url.js\");\n/**\n * This class represents a single JSON reference and its resolved value.\n *\n * @class\n */\nclass $Ref {\n    constructor($refs) {\n        /**\n         * List of all errors. Undefined if no errors.\n         */\n        this.errors = [];\n        this.$refs = $refs;\n    }\n    /**\n     * Pushes an error to errors array.\n     *\n     * @param err - The error to be pushed\n     * @returns\n     */\n    addError(err) {\n        if (this.errors === undefined) {\n            this.errors = [];\n        }\n        const existingErrors = this.errors.map(({ footprint }) => footprint);\n        // the path has been almost certainly set at this point,\n        // but just in case something went wrong, normalizeError injects path if necessary\n        // moreover, certain errors might point at the same spot, so filter them out to reduce noise\n        if (\"errors\" in err && Array.isArray(err.errors)) {\n            this.errors.push(...err.errors.map(errors_js_1.normalizeError).filter(({ footprint }) => !existingErrors.includes(footprint)));\n        }\n        else if (!(\"footprint\" in err) || !existingErrors.includes(err.footprint)) {\n            this.errors.push((0, errors_js_1.normalizeError)(err));\n        }\n    }\n    /**\n     * Determines whether the given JSON reference exists within this {@link $Ref#value}.\n     *\n     * @param path - The full path being resolved, optionally with a JSON pointer in the hash\n     * @param options\n     * @returns\n     */\n    exists(path, options) {\n        try {\n            this.resolve(path, options);\n            return true;\n        }\n        catch {\n            return false;\n        }\n    }\n    /**\n     * Resolves the given JSON reference within this {@link $Ref#value} and returns the resolved value.\n     *\n     * @param path - The full path being resolved, optionally with a JSON pointer in the hash\n     * @param options\n     * @returns - Returns the resolved value\n     */\n    get(path, options) {\n        return this.resolve(path, options)?.value;\n    }\n    /**\n     * Resolves the given JSON reference within this {@link $Ref#value}.\n     *\n     * @param path - The full path being resolved, optionally with a JSON pointer in the hash\n     * @param options\n     * @param friendlyPath - The original user-specified path (used for error messages)\n     * @param pathFromRoot - The path of `obj` from the schema root\n     * @returns\n     */\n    resolve(path, options, friendlyPath, pathFromRoot) {\n        const pointer = new pointer_js_1.default(this, path, friendlyPath);\n        try {\n            return pointer.resolve(this.value, options, pathFromRoot);\n        }\n        catch (err) {\n            if (!options || !options.continueOnError || !(0, errors_js_1.isHandledError)(err)) {\n                throw err;\n            }\n            if (err.path === null) {\n                err.path = (0, url_js_1.safePointerToPath)((0, url_js_1.getHash)(pathFromRoot));\n            }\n            if (err instanceof errors_js_1.InvalidPointerError) {\n                err.source = decodeURI((0, url_js_1.stripHash)(pathFromRoot));\n            }\n            this.addError(err);\n            return null;\n        }\n    }\n    /**\n     * Sets the value of a nested property within this {@link $Ref#value}.\n     * If the property, or any of its parents don't exist, they will be created.\n     *\n     * @param path - The full path of the property to set, optionally with a JSON pointer in the hash\n     * @param value - The value to assign\n     */\n    set(path, value) {\n        const pointer = new pointer_js_1.default(this, path);\n        this.value = pointer.set(this.value, value);\n    }\n    /**\n     * Determines whether the given value is a JSON reference.\n     *\n     * @param value - The value to inspect\n     * @returns\n     */\n    static is$Ref(value) {\n        return (Boolean(value) &&\n            typeof value === \"object\" &&\n            value !== null &&\n            \"$ref\" in value &&\n            typeof value.$ref === \"string\" &&\n            value.$ref.length > 0);\n    }\n    /**\n     * Determines whether the given value is an external JSON reference.\n     *\n     * @param value - The value to inspect\n     * @returns\n     */\n    static isExternal$Ref(value) {\n        return $Ref.is$Ref(value) && value.$ref[0] !== \"#\";\n    }\n    /**\n     * Determines whether the given value is a JSON reference, and whether it is allowed by the options.\n     * For example, if it references an external file, then options.resolve.external must be true.\n     *\n     * @param value - The value to inspect\n     * @param options\n     * @returns\n     */\n    static isAllowed$Ref(value, options) {\n        if (this.is$Ref(value)) {\n            if (value.$ref.substring(0, 2) === \"#/\" || value.$ref === \"#\") {\n                // It's a JSON Pointer reference, which is always allowed\n                return true;\n            }\n            else if (value.$ref[0] !== \"#\" && (!options || options.resolve?.external)) {\n                // It's an external reference, which is allowed by the options\n                return true;\n            }\n        }\n        return undefined;\n    }\n    /**\n     * Determines whether the given value is a JSON reference that \"extends\" its resolved value.\n     * That is, it has extra properties (in addition to \"$ref\"), so rather than simply pointing to\n     * an existing value, this $ref actually creates a NEW value that is a shallow copy of the resolved\n     * value, plus the extra properties.\n     *\n     * @example: {\n       person: {\n         properties: {\n           firstName: { type: string }\n           lastName: { type: string }\n         }\n       }\n       employee: {\n         properties: {\n           $ref: #/person/properties\n           salary: { type: number }\n         }\n       }\n     }\n     *  In this example, \"employee\" is an extended $ref, since it extends \"person\" with an additional\n     *  property (salary).  The result is a NEW value that looks like this:\n     *\n     *  {\n     *    properties: {\n     *      firstName: { type: string }\n     *      lastName: { type: string }\n     *      salary: { type: number }\n     *    }\n     *  }\n     *\n     * @param value - The value to inspect\n     * @returns\n     */\n    static isExtended$Ref(value) {\n        return $Ref.is$Ref(value) && Object.keys(value).length > 1;\n    }\n    /**\n     * Returns the resolved value of a JSON Reference.\n     * If necessary, the resolved value is merged with the JSON Reference to create a new object\n     *\n     * @example: {\n    person: {\n      properties: {\n        firstName: { type: string }\n        lastName: { type: string }\n      }\n    }\n    employee: {\n      properties: {\n        $ref: #/person/properties\n        salary: { type: number }\n      }\n    }\n    } When \"person\" and \"employee\" are merged, you end up with the following object:\n     *\n     *  {\n     *    properties: {\n     *      firstName: { type: string }\n     *      lastName: { type: string }\n     *      salary: { type: number }\n     *    }\n     *  }\n     *\n     * @param $ref - The JSON reference object (the one with the \"$ref\" property)\n     * @param resolvedValue - The resolved value, which can be any type\n     * @returns - Returns the dereferenced value\n     */\n    static dereference($ref, resolvedValue) {\n        if (resolvedValue && typeof resolvedValue === \"object\" && $Ref.isExtended$Ref($ref)) {\n            const merged = {};\n            for (const key of Object.keys($ref)) {\n                if (key !== \"$ref\") {\n                    // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message\n                    merged[key] = $ref[key];\n                }\n            }\n            for (const key of Object.keys(resolvedValue)) {\n                if (!(key in merged)) {\n                    // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message\n                    merged[key] = resolvedValue[key];\n                }\n            }\n            return merged;\n        }\n        else {\n            // Completely replace the original reference with the resolved value\n            return resolvedValue;\n        }\n    }\n}\nexports.default = $Ref;\n", "\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst ono_1 = require(\"@jsdevtools/ono\");\nconst ref_js_1 = __importDefault(require(\"./ref.js\"));\nconst url = __importStar(require(\"./util/url.js\"));\nconst convert_path_to_posix_1 = __importDefault(require(\"./util/convert-path-to-posix\"));\n/**\n * When you call the resolve method, the value that gets passed to the callback function (or Promise) is a $Refs object. This same object is accessible via the parser.$refs property of $RefParser objects.\n *\n * This object is a map of JSON References and their resolved values. It also has several convenient helper methods that make it easy for you to navigate and manipulate the JSON References.\n *\n * See https://apitools.dev/json-schema-ref-parser/docs/refs.html\n */\nclass $Refs {\n    /**\n     * Returns the paths/URLs of all the files in your schema (including the main schema file).\n     *\n     * See https://apitools.dev/json-schema-ref-parser/docs/refs.html#pathstypes\n     *\n     * @param types (optional) Optionally only return certain types of paths (\"file\", \"http\", etc.)\n     */\n    paths(...types) {\n        const paths = getPaths(this._$refs, types.flat());\n        return paths.map((path) => {\n            return (0, convert_path_to_posix_1.default)(path.decoded);\n        });\n    }\n    /**\n     * Returns a map of paths/URLs and their correspond values.\n     *\n     * See https://apitools.dev/json-schema-ref-parser/docs/refs.html#valuestypes\n     *\n     * @param types (optional) Optionally only return values from certain locations (\"file\", \"http\", etc.)\n     */\n    values(...types) {\n        const $refs = this._$refs;\n        const paths = getPaths($refs, types.flat());\n        return paths.reduce((obj, path) => {\n            obj[(0, convert_path_to_posix_1.default)(path.decoded)] = $refs[path.encoded].value;\n            return obj;\n        }, {});\n    }\n    /**\n     * Returns `true` if the given path exists in the schema; otherwise, returns `false`\n     *\n     * See https://apitools.dev/json-schema-ref-parser/docs/refs.html#existsref\n     *\n     * @param $ref The JSON Reference path, optionally with a JSON Pointer in the hash\n     */\n    /**\n     * Determines whether the given JSON reference exists.\n     *\n     * @param path - The path being resolved, optionally with a JSON pointer in the hash\n     * @param [options]\n     * @returns\n     */\n    exists(path, options) {\n        try {\n            this._resolve(path, \"\", options);\n            return true;\n        }\n        catch {\n            return false;\n        }\n    }\n    /**\n     * Resolves the given JSON reference and returns the resolved value.\n     *\n     * @param path - The path being resolved, with a JSON pointer in the hash\n     * @param [options]\n     * @returns - Returns the resolved value\n     */\n    get(path, options) {\n        return this._resolve(path, \"\", options).value;\n    }\n    /**\n     * Sets the value at the given path in the schema. If the property, or any of its parents, don't exist, they will be created.\n     *\n     * @param path The JSON Reference path, optionally with a JSON Pointer in the hash\n     * @param value The value to assign. Can be anything (object, string, number, etc.)\n     */\n    set(path, value) {\n        const absPath = url.resolve(this._root$Ref.path, path);\n        const withoutHash = url.stripHash(absPath);\n        const $ref = this._$refs[withoutHash];\n        if (!$ref) {\n            throw (0, ono_1.ono)(`Error resolving $ref pointer \"${path}\". \\n\"${withoutHash}\" not found.`);\n        }\n        $ref.set(absPath, value);\n    }\n    /**\n     * Returns the specified {@link $Ref} object, or undefined.\n     *\n     * @param path - The path being resolved, optionally with a JSON pointer in the hash\n     * @returns\n     * @protected\n     */\n    _get$Ref(path) {\n        path = url.resolve(this._root$Ref.path, path);\n        const withoutHash = url.stripHash(path);\n        return this._$refs[withoutHash];\n    }\n    /**\n     * Creates a new {@link $Ref} object and adds it to this {@link $Refs} object.\n     *\n     * @param path  - The file path or URL of the referenced file\n     */\n    _add(path) {\n        const withoutHash = url.stripHash(path);\n        const $ref = new ref_js_1.default(this);\n        $ref.path = withoutHash;\n        this._$refs[withoutHash] = $ref;\n        this._root$Ref = this._root$Ref || $ref;\n        return $ref;\n    }\n    /**\n     * Resolves the given JSON reference.\n     *\n     * @param path - The path being resolved, optionally with a JSON pointer in the hash\n     * @param pathFromRoot - The path of `obj` from the schema root\n     * @param [options]\n     * @returns\n     * @protected\n     */\n    _resolve(path, pathFromRoot, options) {\n        const absPath = url.resolve(this._root$Ref.path, path);\n        const withoutHash = url.stripHash(absPath);\n        const $ref = this._$refs[withoutHash];\n        if (!$ref) {\n            throw (0, ono_1.ono)(`Error resolving $ref pointer \"${path}\". \\n\"${withoutHash}\" not found.`);\n        }\n        return $ref.resolve(absPath, options, path, pathFromRoot);\n    }\n    constructor() {\n        /**\n         * A map of paths/urls to {@link $Ref} objects\n         *\n         * @type {object}\n         * @protected\n         */\n        this._$refs = {};\n        /**\n         * Returns the paths of all the files/URLs that are referenced by the JSON schema,\n         * including the schema itself.\n         *\n         * @param [types] - Only return paths of the given types (\"file\", \"http\", etc.)\n         * @returns\n         */\n        /**\n         * Returns the map of JSON references and their resolved values.\n         *\n         * @param [types] - Only return references of the given types (\"file\", \"http\", etc.)\n         * @returns\n         */\n        /**\n         * Returns a POJO (plain old JavaScript object) for serialization as JSON.\n         *\n         * @returns {object}\n         */\n        this.toJSON = this.values;\n        /**\n         * Indicates whether the schema contains any circular references.\n         *\n         * @type {boolean}\n         */\n        this.circular = false;\n        this._$refs = {};\n        // @ts-ignore\n        this._root$Ref = null;\n    }\n}\nexports.default = $Refs;\n/**\n * Returns the encoded and decoded paths keys of the given object.\n *\n * @param $refs - The object whose keys are URL-encoded paths\n * @param [types] - Only return paths of the given types (\"file\", \"http\", etc.)\n * @returns\n */\nfunction getPaths($refs, types) {\n    let paths = Object.keys($refs);\n    // Filter the paths by type\n    types = Array.isArray(types[0]) ? types[0] : Array.prototype.slice.call(types);\n    if (types.length > 0 && types[0]) {\n        paths = paths.filter((key) => {\n            return types.includes($refs[key].pathType);\n        });\n    }\n    // Decode local filesystem paths\n    return paths.map((path) => {\n        return {\n            encoded: path,\n            decoded: $refs[path].pathType === \"file\" ? url.toFileSystemPath(path, true) : path,\n        };\n    });\n}\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.all = all;\nexports.filter = filter;\nexports.sort = sort;\nexports.run = run;\n/**\n * Returns the given plugins as an array, rather than an object map.\n * All other methods in this module expect an array of plugins rather than an object map.\n *\n * @returns\n */\nfunction all(plugins) {\n    return Object.keys(plugins || {})\n        .filter((key) => {\n        return typeof plugins[key] === \"object\";\n    })\n        .map((key) => {\n        plugins[key].name = key;\n        return plugins[key];\n    });\n}\n/**\n * Filters the given plugins, returning only the ones return `true` for the given method.\n */\nfunction filter(plugins, method, file) {\n    return plugins.filter((plugin) => {\n        return !!getResult(plugin, method, file);\n    });\n}\n/**\n * Sorts the given plugins, in place, by their `order` property.\n */\nfunction sort(plugins) {\n    for (const plugin of plugins) {\n        plugin.order = plugin.order || Number.MAX_SAFE_INTEGER;\n    }\n    return plugins.sort((a, b) => {\n        return a.order - b.order;\n    });\n}\n/**\n * Runs the specified method of the given plugins, in order, until one of them returns a successful result.\n * Each method can return a synchronous value, a Promise, or call an error-first callback.\n * If the promise resolves successfully, or the callback is called without an error, then the result\n * is immediately returned and no further plugins are called.\n * If the promise rejects, or the callback is called with an error, then the next plugin is called.\n * If ALL plugins fail, then the last error is thrown.\n */\nasync function run(plugins, method, file, $refs) {\n    let plugin;\n    let lastError;\n    let index = 0;\n    return new Promise((resolve, reject) => {\n        runNextPlugin();\n        function runNextPlugin() {\n            plugin = plugins[index++];\n            if (!plugin) {\n                // There are no more functions, so re-throw the last error\n                return reject(lastError);\n            }\n            try {\n                // console.log('  %s', plugin.name);\n                const result = getResult(plugin, method, file, callback, $refs);\n                if (result && typeof result.then === \"function\") {\n                    // A promise was returned\n                    result.then(onSuccess, onError);\n                }\n                else if (result !== undefined) {\n                    // A synchronous result was returned\n                    onSuccess(result);\n                }\n                else if (index === plugins.length) {\n                    throw new Error(\"No promise has been returned or callback has been called.\");\n                }\n            }\n            catch (e) {\n                onError(e);\n            }\n        }\n        function callback(err, result) {\n            if (err) {\n                onError(err);\n            }\n            else {\n                onSuccess(result);\n            }\n        }\n        function onSuccess(result) {\n            // console.log('    success');\n            resolve({\n                plugin,\n                result,\n            });\n        }\n        function onError(error) {\n            // console.log('    %s', err.message || err);\n            lastError = {\n                plugin,\n                error,\n            };\n            runNextPlugin();\n        }\n    });\n}\n/**\n * Returns the value of the given property.\n * If the property is a function, then the result of the function is returned.\n * If the value is a RegExp, then it will be tested against the file URL.\n * If the value is an array, then it will be compared against the file extension.\n */\nfunction getResult(obj, prop, file, callback, $refs) {\n    const value = obj[prop];\n    if (typeof value === \"function\") {\n        return value.apply(obj, [file, callback, $refs]);\n    }\n    if (!callback) {\n        // The synchronous plugin functions (canParse and canRead)\n        // allow a \"shorthand\" syntax, where the user can match\n        // files by RegExp or by file extension.\n        if (value instanceof RegExp) {\n            return value.test(file.url);\n        }\n        else if (typeof value === \"string\") {\n            return value === file.extension;\n        }\n        else if (Array.isArray(value)) {\n            return value.indexOf(file.extension) !== -1;\n        }\n    }\n    return value;\n}\n", "\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst ono_1 = require(\"@jsdevtools/ono\");\nconst url = __importStar(require(\"./util/url.js\"));\nconst plugins = __importStar(require(\"./util/plugins.js\"));\nconst errors_js_1 = require(\"./util/errors.js\");\n/**\n * Reads and parses the specified file path or URL.\n */\nasync function parse(path, $refs, options) {\n    // Remove the URL fragment, if any\n    const hashIndex = path.indexOf(\"#\");\n    let hash = \"\";\n    if (hashIndex >= 0) {\n        hash = path.substring(hashIndex);\n        // Remove the URL fragment, if any\n        path = path.substring(0, hashIndex);\n    }\n    // Add a new $Ref for this file, even though we don't have the value yet.\n    // This ensures that we don't simultaneously read & parse the same file multiple times\n    const $ref = $refs._add(path);\n    // This \"file object\" will be passed to all resolvers and parsers.\n    const file = {\n        url: path,\n        hash,\n        extension: url.getExtension(path),\n    };\n    // Read the file and then parse the data\n    try {\n        const resolver = await readFile(file, options, $refs);\n        $ref.pathType = resolver.plugin.name;\n        file.data = resolver.result;\n        const parser = await parseFile(file, options, $refs);\n        $ref.value = parser.result;\n        return parser.result;\n    }\n    catch (err) {\n        if ((0, errors_js_1.isHandledError)(err)) {\n            $ref.value = err;\n        }\n        throw err;\n    }\n}\n/**\n * Reads the given file, using the configured resolver plugins\n *\n * @param file           - An object containing information about the referenced file\n * @param file.url       - The full URL of the referenced file\n * @param file.extension - The lowercased file extension (e.g. \".txt\", \".html\", etc.)\n * @param options\n * @param $refs\n * @returns\n * The promise resolves with the raw file contents and the resolver that was used.\n */\nasync function readFile(file, options, $refs) {\n    // console.log('Reading %s', file.url);\n    // Find the resolvers that can read this file\n    let resolvers = plugins.all(options.resolve);\n    resolvers = plugins.filter(resolvers, \"canRead\", file);\n    // Run the resolvers, in order, until one of them succeeds\n    plugins.sort(resolvers);\n    try {\n        const data = await plugins.run(resolvers, \"read\", file, $refs);\n        return data;\n    }\n    catch (err) {\n        if (!err && options.continueOnError) {\n            // No resolver could be matched\n            throw new errors_js_1.UnmatchedResolverError(file.url);\n        }\n        else if (!err || !(\"error\" in err)) {\n            // Throw a generic, friendly error.\n            throw ono_1.ono.syntax(`Unable to resolve $ref pointer \"${file.url}\"`);\n        }\n        // Throw the original error, if it's one of our own (user-friendly) errors.\n        else if (err.error instanceof errors_js_1.ResolverError) {\n            throw err.error;\n        }\n        else {\n            throw new errors_js_1.ResolverError(err, file.url);\n        }\n    }\n}\n/**\n * Parses the given file's contents, using the configured parser plugins.\n *\n * @param file           - An object containing information about the referenced file\n * @param file.url       - The full URL of the referenced file\n * @param file.extension - The lowercased file extension (e.g. \".txt\", \".html\", etc.)\n * @param file.data      - The file contents. This will be whatever data type was returned by the resolver\n * @param options\n * @param $refs\n *\n * @returns\n * The promise resolves with the parsed file contents and the parser that was used.\n */\nasync function parseFile(file, options, $refs) {\n    // Find the parsers that can read this file type.\n    // If none of the parsers are an exact match for this file, then we'll try ALL of them.\n    // This handles situations where the file IS a supported type, just with an unknown extension.\n    const allParsers = plugins.all(options.parse);\n    const filteredParsers = plugins.filter(allParsers, \"canParse\", file);\n    const parsers = filteredParsers.length > 0 ? filteredParsers : allParsers;\n    // Run the parsers, in order, until one of them succeeds\n    plugins.sort(parsers);\n    try {\n        const parser = await plugins.run(parsers, \"parse\", file, $refs);\n        if (!parser.plugin.allowEmpty && isEmpty(parser.result)) {\n            throw ono_1.ono.syntax(`Error parsing \"${file.url}\" as ${parser.plugin.name}. \\nParsed value is empty`);\n        }\n        else {\n            return parser;\n        }\n    }\n    catch (err) {\n        if (!err && options.continueOnError) {\n            // No resolver could be matched\n            throw new errors_js_1.UnmatchedParserError(file.url);\n        }\n        else if (err && err.message && err.message.startsWith(\"Error parsing\")) {\n            throw err;\n        }\n        else if (!err || !(\"error\" in err)) {\n            throw ono_1.ono.syntax(`Unable to parse ${file.url}`);\n        }\n        else if (err.error instanceof errors_js_1.ParserError) {\n            throw err.error;\n        }\n        else {\n            throw new errors_js_1.ParserError(err.error.message, file.url);\n        }\n    }\n}\n/**\n * Determines whether the parsed value is \"empty\".\n *\n * @param value\n * @returns\n */\nfunction isEmpty(value) {\n    return (value === undefined ||\n        (typeof value === \"object\" && Object.keys(value).length === 0) ||\n        (typeof value === \"string\" && value.trim().length === 0) ||\n        (Buffer.isBuffer(value) && value.length === 0));\n}\nexports.default = parse;\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst errors_js_1 = require(\"../util/errors.js\");\nexports.default = {\n    /**\n     * The order that this parser will run, in relation to other parsers.\n     */\n    order: 100,\n    /**\n     * Whether to allow \"empty\" files. This includes zero-byte files, as well as empty JSON objects.\n     */\n    allowEmpty: true,\n    /**\n     * Determines whether this parser can parse a given file reference.\n     * Parsers that match will be tried, in order, until one successfully parses the file.\n     * Parsers that don't match will be skipped, UNLESS none of the parsers match, in which case\n     * every parser will be tried.\n     */\n    canParse: \".json\",\n    /**\n     * Allow JSON files with byte order marks (BOM)\n     */\n    allowBOM: true,\n    /**\n     * Parses the given file as JSON\n     */\n    async parse(file) {\n        let data = file.data;\n        if (Buffer.isBuffer(data)) {\n            data = data.toString();\n        }\n        if (typeof data === \"string\") {\n            if (data.trim().length === 0) {\n                return; // This mirrors the YAML behavior\n            }\n            else {\n                try {\n                    return JSON.parse(data);\n                }\n                catch (e) {\n                    if (this.allowBOM) {\n                        try {\n                            // find the first curly brace\n                            const firstCurlyBrace = data.indexOf(\"{\");\n                            // remove any characters before the first curly brace\n                            data = data.slice(firstCurlyBrace);\n                            return JSON.parse(data);\n                        }\n                        catch (e) {\n                            throw new errors_js_1.ParserError(e.message, file.url);\n                        }\n                    }\n                    throw new errors_js_1.ParserError(e.message, file.url);\n                }\n            }\n        }\n        else {\n            // data is already a JavaScript value (object, array, number, null, NaN, etc.)\n            return data;\n        }\n    },\n};\n", "\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst errors_js_1 = require(\"../util/errors.js\");\nconst js_yaml_1 = __importDefault(require(\"js-yaml\"));\nconst js_yaml_2 = require(\"js-yaml\");\nexports.default = {\n    /**\n     * The order that this parser will run, in relation to other parsers.\n     */\n    order: 200,\n    /**\n     * Whether to allow \"empty\" files. This includes zero-byte files, as well as empty JSON objects.\n     */\n    allowEmpty: true,\n    /**\n     * Determines whether this parser can parse a given file reference.\n     * Parsers that match will be tried, in order, until one successfully parses the file.\n     * Parsers that don't match will be skipped, UNLESS none of the parsers match, in which case\n     * every parser will be tried.\n     */\n    canParse: [\".yaml\", \".yml\", \".json\"], // JSON is valid YAML\n    /**\n     * Parses the given file as YAML\n     *\n     * @param file           - An object containing information about the referenced file\n     * @param file.url       - The full URL of the referenced file\n     * @param file.extension - The lowercased file extension (e.g. \".txt\", \".html\", etc.)\n     * @param file.data      - The file contents. This will be whatever data type was returned by the resolver\n     * @returns\n     */\n    async parse(file) {\n        let data = file.data;\n        if (Buffer.isBuffer(data)) {\n            data = data.toString();\n        }\n        if (typeof data === \"string\") {\n            try {\n                return js_yaml_1.default.load(data, { schema: js_yaml_2.JSON_SCHEMA });\n            }\n            catch (e) {\n                throw new errors_js_1.ParserError(e?.message || \"Parser Error\", file.url);\n            }\n        }\n        else {\n            // data is already a JavaScript value (object, array, number, null, NaN, etc.)\n            return data;\n        }\n    },\n};\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst errors_js_1 = require(\"../util/errors.js\");\nconst TEXT_REGEXP = /\\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;\nexports.default = {\n    /**\n     * The order that this parser will run, in relation to other parsers.\n     */\n    order: 300,\n    /**\n     * Whether to allow \"empty\" files (zero bytes).\n     */\n    allowEmpty: true,\n    /**\n     * The encoding that the text is expected to be in.\n     */\n    encoding: \"utf8\",\n    /**\n     * Determines whether this parser can parse a given file reference.\n     * Parsers that return true will be tried, in order, until one successfully parses the file.\n     * Parsers that return false will be skipped, UNLESS all parsers returned false, in which case\n     * every parser will be tried.\n     */\n    canParse(file) {\n        // Use this parser if the file is a string or Buffer, and has a known text-based extension\n        return (typeof file.data === \"string\" || Buffer.isBuffer(file.data)) && TEXT_REGEXP.test(file.url);\n    },\n    /**\n     * Parses the given file as text\n     */\n    parse(file) {\n        if (typeof file.data === \"string\") {\n            return file.data;\n        }\n        else if (Buffer.isBuffer(file.data)) {\n            return file.data.toString(this.encoding);\n        }\n        else {\n            throw new errors_js_1.ParserError(\"data is not text\", file.url);\n        }\n    },\n};\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst BINARY_REGEXP = /\\.(jpeg|jpg|gif|png|bmp|ico)$/i;\nexports.default = {\n    /**\n     * The order that this parser will run, in relation to other parsers.\n     */\n    order: 400,\n    /**\n     * Whether to allow \"empty\" files (zero bytes).\n     */\n    allowEmpty: true,\n    /**\n     * Determines whether this parser can parse a given file reference.\n     * Parsers that return true will be tried, in order, until one successfully parses the file.\n     * Parsers that return false will be skipped, UNLESS all parsers returned false, in which case\n     * every parser will be tried.\n     */\n    canParse(file) {\n        // Use this parser if the file is a Buffer, and has a known binary extension\n        return Buffer.isBuffer(file.data) && BINARY_REGEXP.test(file.url);\n    },\n    /**\n     * Parses the given data as a Buffer (byte array).\n     */\n    parse(file) {\n        if (Buffer.isBuffer(file.data)) {\n            return file.data;\n        }\n        else {\n            // This will reject if data is anything other than a string or typed array\n            return Buffer.from(file.data);\n        }\n    },\n};\n", "export default {};\n", "\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst fs_1 = __importDefault(require(\"fs\"));\nconst ono_1 = require(\"@jsdevtools/ono\");\nconst url = __importStar(require(\"../util/url.js\"));\nconst errors_js_1 = require(\"../util/errors.js\");\nexports.default = {\n    /**\n     * The order that this resolver will run, in relation to other resolvers.\n     */\n    order: 100,\n    /**\n     * Determines whether this resolver can read a given file reference.\n     * Resolvers that return true will be tried, in order, until one successfully resolves the file.\n     * Resolvers that return false will not be given a chance to resolve the file.\n     */\n    canRead(file) {\n        return url.isFileSystemPath(file.url);\n    },\n    /**\n     * Reads the given file and returns its raw contents as a Buffer.\n     */\n    async read(file) {\n        let path;\n        try {\n            path = url.toFileSystemPath(file.url);\n        }\n        catch (err) {\n            throw new errors_js_1.ResolverError(ono_1.ono.uri(err, `Malformed URI: ${file.url}`), file.url);\n        }\n        try {\n            return await fs_1.default.promises.readFile(path);\n        }\n        catch (err) {\n            throw new errors_js_1.ResolverError((0, ono_1.ono)(err, `Error opening file \"${path}\"`), path);\n        }\n    },\n};\n", "\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst ono_1 = require(\"@jsdevtools/ono\");\nconst url = __importStar(require(\"../util/url.js\"));\nconst errors_js_1 = require(\"../util/errors.js\");\nexports.default = {\n    /**\n     * The order that this resolver will run, in relation to other resolvers.\n     */\n    order: 200,\n    /**\n     * HTTP headers to send when downloading files.\n     *\n     * @example:\n     * {\n     *   \"User-Agent\": \"JSON Schema $Ref Parser\",\n     *   Accept: \"application/json\"\n     * }\n     */\n    headers: null,\n    /**\n     * HTTP request timeout (in milliseconds).\n     */\n    timeout: 60000, // 60 seconds\n    /**\n     * The maximum number of HTTP redirects to follow.\n     * To disable automatic following of redirects, set this to zero.\n     */\n    redirects: 5,\n    /**\n     * The `withCredentials` option of XMLHttpRequest.\n     * Set this to `true` if you're downloading files from a CORS-enabled server that requires authentication\n     */\n    withCredentials: false,\n    /**\n     * Determines whether this resolver can read a given file reference.\n     * Resolvers that return true will be tried in order, until one successfully resolves the file.\n     * Resolvers that return false will not be given a chance to resolve the file.\n     */\n    canRead(file) {\n        return url.isHttp(file.url);\n    },\n    /**\n     * Reads the given URL and returns its raw contents as a Buffer.\n     */\n    read(file) {\n        const u = url.parse(file.url);\n        if (typeof window !== \"undefined\" && !u.protocol) {\n            // Use the protocol of the current page\n            u.protocol = url.parse(location.href).protocol;\n        }\n        return download(u, this);\n    },\n};\n/**\n * Downloads the given file.\n * @returns\n * The promise resolves with the raw downloaded data, or rejects if there is an HTTP error.\n */\nasync function download(u, httpOptions, _redirects) {\n    u = url.parse(u);\n    const redirects = _redirects || [];\n    redirects.push(u.href);\n    try {\n        const res = await get(u, httpOptions);\n        if (res.status >= 400) {\n            throw (0, ono_1.ono)({ status: res.status }, `HTTP ERROR ${res.status}`);\n        }\n        else if (res.status >= 300) {\n            if (!Number.isNaN(httpOptions.redirects) && redirects.length > httpOptions.redirects) {\n                throw new errors_js_1.ResolverError((0, ono_1.ono)({ status: res.status }, `Error downloading ${redirects[0]}. \\nToo many redirects: \\n  ${redirects.join(\" \\n  \")}`));\n            }\n            else if (!(\"location\" in res.headers) || !res.headers.location) {\n                throw (0, ono_1.ono)({ status: res.status }, `HTTP ${res.status} redirect with no location header`);\n            }\n            else {\n                const redirectTo = url.resolve(u.href, res.headers.location);\n                return download(redirectTo, httpOptions, redirects);\n            }\n        }\n        else {\n            if (res.body) {\n                const buf = await res.arrayBuffer();\n                return Buffer.from(buf);\n            }\n            return Buffer.alloc(0);\n        }\n    }\n    catch (err) {\n        throw new errors_js_1.ResolverError((0, ono_1.ono)(err, `Error downloading ${u.href}`), u.href);\n    }\n}\n/**\n * Sends an HTTP GET request.\n * The promise resolves with the HTTP Response object.\n */\nasync function get(u, httpOptions) {\n    let controller;\n    let timeoutId;\n    if (httpOptions.timeout) {\n        controller = new AbortController();\n        timeoutId = setTimeout(() => controller.abort(), httpOptions.timeout);\n    }\n    const response = await fetch(u, {\n        method: \"GET\",\n        headers: httpOptions.headers || {},\n        credentials: httpOptions.withCredentials ? \"include\" : \"same-origin\",\n        signal: controller ? controller.signal : null,\n    });\n    if (timeoutId) {\n        clearTimeout(timeoutId);\n    }\n    return response;\n}\n", "\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getNewOptions = exports.getJsonSchemaRefParserDefaultOptions = void 0;\nconst json_js_1 = __importDefault(require(\"./parsers/json.js\"));\nconst yaml_js_1 = __importDefault(require(\"./parsers/yaml.js\"));\nconst text_js_1 = __importDefault(require(\"./parsers/text.js\"));\nconst binary_js_1 = __importDefault(require(\"./parsers/binary.js\"));\nconst file_js_1 = __importDefault(require(\"./resolvers/file.js\"));\nconst http_js_1 = __importDefault(require(\"./resolvers/http.js\"));\nconst getJsonSchemaRefParserDefaultOptions = () => {\n    const defaults = {\n        /**\n         * Determines how different types of files will be parsed.\n         *\n         * You can add additional parsers of your own, replace an existing one with\n         * your own implementation, or disable any parser by setting it to false.\n         */\n        parse: {\n            json: { ...json_js_1.default },\n            yaml: { ...yaml_js_1.default },\n            text: { ...text_js_1.default },\n            binary: { ...binary_js_1.default },\n        },\n        /**\n         * Determines how JSON References will be resolved.\n         *\n         * You can add additional resolvers of your own, replace an existing one with\n         * your own implementation, or disable any resolver by setting it to false.\n         */\n        resolve: {\n            file: { ...file_js_1.default },\n            http: { ...http_js_1.default },\n            /**\n             * Determines whether external $ref pointers will be resolved.\n             * If this option is disabled, then none of above resolvers will be called.\n             * Instead, external $ref pointers will simply be ignored.\n             *\n             * @type {boolean}\n             */\n            external: true,\n        },\n        /**\n         * By default, JSON Schema $Ref Parser throws the first error it encounters. Setting `continueOnError` to `true`\n         * causes it to keep processing as much as possible and then throw a single error that contains all errors\n         * that were encountered.\n         */\n        continueOnError: false,\n        /**\n         * Determines the types of JSON references that are allowed.\n         */\n        dereference: {\n            /**\n             * Dereference circular (recursive) JSON references?\n             * If false, then a {@link ReferenceError} will be thrown if a circular reference is found.\n             * If \"ignore\", then circular references will not be dereferenced.\n             *\n             * @type {boolean|string}\n             */\n            circular: true,\n            /**\n             * A function, called for each path, which can return true to stop this path and all\n             * subpaths from being dereferenced further. This is useful in schemas where some\n             * subpaths contain literal $ref keys that should not be dereferenced.\n             *\n             * @type {function}\n             */\n            excludedPathMatcher: () => false,\n            referenceResolution: \"relative\",\n        },\n        mutateInputSchema: true,\n    };\n    return defaults;\n};\nexports.getJsonSchemaRefParserDefaultOptions = getJsonSchemaRefParserDefaultOptions;\nconst getNewOptions = (options) => {\n    const newOptions = (0, exports.getJsonSchemaRefParserDefaultOptions)();\n    if (options) {\n        merge(newOptions, options);\n    }\n    return newOptions;\n};\nexports.getNewOptions = getNewOptions;\n/**\n * Merges the properties of the source object into the target object.\n *\n * @param target - The object that we're populating\n * @param source - The options that are being merged\n * @returns\n */\nfunction merge(target, source) {\n    if (isMergeable(source)) {\n        // prevent prototype pollution\n        const keys = Object.keys(source).filter((key) => ![\"__proto__\", \"constructor\", \"prototype\"].includes(key));\n        for (let i = 0; i < keys.length; i++) {\n            const key = keys[i];\n            const sourceSetting = source[key];\n            const targetSetting = target[key];\n            if (isMergeable(sourceSetting)) {\n                // It's a nested object, so merge it recursively\n                target[key] = merge(targetSetting || {}, sourceSetting);\n            }\n            else if (sourceSetting !== undefined) {\n                // It's a scalar value, function, or array. No merging necessary. Just overwrite the target value.\n                target[key] = sourceSetting;\n            }\n        }\n    }\n    return target;\n}\n/**\n * Determines whether the given value can be merged,\n * or if it is a scalar value that should just override the target value.\n *\n * @param val\n * @returns\n */\nfunction isMergeable(val) {\n    return val && typeof val === \"object\" && !Array.isArray(val) && !(val instanceof RegExp) && !(val instanceof Date);\n}\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.normalizeArgs = normalizeArgs;\nconst options_js_1 = require(\"./options.js\");\n/**\n * Normalizes the given arguments, accounting for optional args.\n */\nfunction normalizeArgs(_args) {\n    let path;\n    let schema;\n    let options;\n    let callback;\n    const args = Array.prototype.slice.call(_args);\n    if (typeof args[args.length - 1] === \"function\") {\n        // The last parameter is a callback function\n        callback = args.pop();\n    }\n    if (typeof args[0] === \"string\") {\n        // The first parameter is the path\n        path = args[0];\n        if (typeof args[2] === \"object\") {\n            // The second parameter is the schema, and the third parameter is the options\n            schema = args[1];\n            options = args[2];\n        }\n        else {\n            // The second parameter is the options\n            schema = undefined;\n            options = args[1];\n        }\n    }\n    else {\n        // The first parameter is the schema\n        path = \"\";\n        schema = args[0];\n        options = args[1];\n    }\n    try {\n        options = (0, options_js_1.getNewOptions)(options);\n    }\n    catch (e) {\n        console.error(`JSON Schema Ref Parser: Error normalizing options: ${e}`);\n    }\n    if (!options.mutateInputSchema && typeof schema === \"object\") {\n        // Make a deep clone of the schema, so that we don't alter the original object\n        schema = JSON.parse(JSON.stringify(schema));\n    }\n    return {\n        path,\n        schema,\n        options,\n        callback,\n    };\n}\nexports.default = normalizeArgs;\n", "\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst ref_js_1 = __importDefault(require(\"./ref.js\"));\nconst pointer_js_1 = __importDefault(require(\"./pointer.js\"));\nconst parse_js_1 = __importDefault(require(\"./parse.js\"));\nconst url = __importStar(require(\"./util/url.js\"));\nconst errors_js_1 = require(\"./util/errors.js\");\n/**\n * Crawls the JSON schema, finds all external JSON references, and resolves their values.\n * This method does not mutate the JSON schema. The resolved values are added to {@link $RefParser#$refs}.\n *\n * NOTE: We only care about EXTERNAL references here. INTERNAL references are only relevant when dereferencing.\n *\n * @returns\n * The promise resolves once all JSON references in the schema have been resolved,\n * including nested references that are contained in externally-referenced files.\n */\nfunction resolveExternal(parser, options) {\n    if (!options.resolve?.external) {\n        // Nothing to resolve, so exit early\n        return Promise.resolve();\n    }\n    try {\n        // console.log('Resolving $ref pointers in %s', parser.$refs._root$Ref.path);\n        const promises = crawl(parser.schema, parser.$refs._root$Ref.path + \"#\", parser.$refs, options);\n        return Promise.all(promises);\n    }\n    catch (e) {\n        return Promise.reject(e);\n    }\n}\n/**\n * Recursively crawls the given value, and resolves any external JSON references.\n *\n * @param obj - The value to crawl. If it's not an object or array, it will be ignored.\n * @param path - The full path of `obj`, possibly with a JSON Pointer in the hash\n * @param {boolean} external - Whether `obj` was found in an external document.\n * @param $refs\n * @param options\n * @param seen - Internal.\n *\n * @returns\n * Returns an array of promises. There will be one promise for each JSON reference in `obj`.\n * If `obj` does not contain any JSON references, then the array will be empty.\n * If any of the JSON references point to files that contain additional JSON references,\n * then the corresponding promise will internally reference an array of promises.\n */\nfunction crawl(obj, path, $refs, options, seen, external) {\n    seen || (seen = new Set());\n    let promises = [];\n    if (obj && typeof obj === \"object\" && !ArrayBuffer.isView(obj) && !seen.has(obj)) {\n        seen.add(obj); // Track previously seen objects to avoid infinite recursion\n        if (ref_js_1.default.isExternal$Ref(obj)) {\n            promises.push(resolve$Ref(obj, path, $refs, options));\n        }\n        const keys = Object.keys(obj);\n        for (const key of keys) {\n            const keyPath = pointer_js_1.default.join(path, key);\n            const value = obj[key];\n            promises = promises.concat(crawl(value, keyPath, $refs, options, seen, external));\n        }\n    }\n    return promises;\n}\n/**\n * Resolves the given JSON Reference, and then crawls the resulting value.\n *\n * @param $ref - The JSON Reference to resolve\n * @param path - The full path of `$ref`, possibly with a JSON Pointer in the hash\n * @param $refs\n * @param options\n *\n * @returns\n * The promise resolves once all JSON references in the object have been resolved,\n * including nested references that are contained in externally-referenced files.\n */\nasync function resolve$Ref($ref, path, $refs, options) {\n    const shouldResolveOnCwd = options.dereference?.externalReferenceResolution === \"root\";\n    const resolvedPath = url.resolve(shouldResolveOnCwd ? url.cwd() : path, $ref.$ref);\n    const withoutHash = url.stripHash(resolvedPath);\n    // $ref.$ref = url.relative($refs._root$Ref.path, resolvedPath);\n    // Do we already have this $ref?\n    const ref = $refs._$refs[withoutHash];\n    if (ref) {\n        // We've already parsed this $ref, so use the existing value\n        return Promise.resolve(ref.value);\n    }\n    // Parse the $referenced file/url\n    try {\n        const result = await (0, parse_js_1.default)(resolvedPath, $refs, options);\n        // Crawl the parsed value\n        // console.log('Resolving $ref pointers in %s', withoutHash);\n        const promises = crawl(result, withoutHash + \"#\", $refs, options, new Set(), true);\n        return Promise.all(promises);\n    }\n    catch (err) {\n        if (!options?.continueOnError || !(0, errors_js_1.isHandledError)(err)) {\n            throw err;\n        }\n        if ($refs._$refs[withoutHash]) {\n            err.source = decodeURI(url.stripHash(path));\n            err.path = url.safePointerToPath(url.getHash(path));\n        }\n        return [];\n    }\n}\nexports.default = resolveExternal;\n", "\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst ref_js_1 = __importDefault(require(\"./ref.js\"));\nconst pointer_js_1 = __importDefault(require(\"./pointer.js\"));\nconst url = __importStar(require(\"./util/url.js\"));\n/**\n * Bundles all external JSON references into the main JSON schema, thus resulting in a schema that\n * only has *internal* references, not any *external* references.\n * This method mutates the JSON schema object, adding new references and re-mapping existing ones.\n *\n * @param parser\n * @param options\n */\nfunction bundle(parser, options) {\n    // console.log('Bundling $ref pointers in %s', parser.$refs._root$Ref.path);\n    // Build an inventory of all $ref pointers in the JSON Schema\n    const inventory = [];\n    crawl(parser, \"schema\", parser.$refs._root$Ref.path + \"#\", \"#\", 0, inventory, parser.$refs, options);\n    // Remap all $ref pointers\n    remap(inventory);\n}\n/**\n * Recursively crawls the given value, and inventories all JSON references.\n *\n * @param parent - The object containing the value to crawl. If the value is not an object or array, it will be ignored.\n * @param key - The property key of `parent` to be crawled\n * @param path - The full path of the property being crawled, possibly with a JSON Pointer in the hash\n * @param pathFromRoot - The path of the property being crawled, from the schema root\n * @param indirections\n * @param inventory - An array of already-inventoried $ref pointers\n * @param $refs\n * @param options\n */\nfunction crawl(parent, key, path, pathFromRoot, indirections, inventory, $refs, options) {\n    const obj = key === null ? parent : parent[key];\n    if (obj && typeof obj === \"object\" && !ArrayBuffer.isView(obj)) {\n        if (ref_js_1.default.isAllowed$Ref(obj)) {\n            inventory$Ref(parent, key, path, pathFromRoot, indirections, inventory, $refs, options);\n        }\n        else {\n            // Crawl the object in a specific order that's optimized for bundling.\n            // This is important because it determines how `pathFromRoot` gets built,\n            // which later determines which keys get dereferenced and which ones get remapped\n            const keys = Object.keys(obj).sort((a, b) => {\n                // Most people will expect references to be bundled into the the \"definitions\" property,\n                // so we always crawl that property first, if it exists.\n                if (a === \"definitions\") {\n                    return -1;\n                }\n                else if (b === \"definitions\") {\n                    return 1;\n                }\n                else {\n                    // Otherwise, crawl the keys based on their length.\n                    // This produces the shortest possible bundled references\n                    return a.length - b.length;\n                }\n            });\n            for (const key of keys) {\n                const keyPath = pointer_js_1.default.join(path, key);\n                const keyPathFromRoot = pointer_js_1.default.join(pathFromRoot, key);\n                const value = obj[key];\n                if (ref_js_1.default.isAllowed$Ref(value)) {\n                    inventory$Ref(obj, key, path, keyPathFromRoot, indirections, inventory, $refs, options);\n                }\n                else {\n                    crawl(obj, key, keyPath, keyPathFromRoot, indirections, inventory, $refs, options);\n                }\n            }\n        }\n    }\n}\n/**\n * Inventories the given JSON Reference (i.e. records detailed information about it so we can\n * optimize all $refs in the schema), and then crawls the resolved value.\n *\n * @param $refParent - The object that contains a JSON Reference as one of its keys\n * @param $refKey - The key in `$refParent` that is a JSON Reference\n * @param path - The full path of the JSON Reference at `$refKey`, possibly with a JSON Pointer in the hash\n * @param indirections - unknown\n * @param pathFromRoot - The path of the JSON Reference at `$refKey`, from the schema root\n * @param inventory - An array of already-inventoried $ref pointers\n * @param $refs\n * @param options\n */\nfunction inventory$Ref($refParent, $refKey, path, pathFromRoot, indirections, inventory, $refs, options) {\n    const $ref = $refKey === null ? $refParent : $refParent[$refKey];\n    const $refPath = url.resolve(path, $ref.$ref);\n    const pointer = $refs._resolve($refPath, pathFromRoot, options);\n    if (pointer === null) {\n        return;\n    }\n    const parsed = pointer_js_1.default.parse(pathFromRoot);\n    const depth = parsed.length;\n    const file = url.stripHash(pointer.path);\n    const hash = url.getHash(pointer.path);\n    const external = file !== $refs._root$Ref.path;\n    const extended = ref_js_1.default.isExtended$Ref($ref);\n    indirections += pointer.indirections;\n    const existingEntry = findInInventory(inventory, $refParent, $refKey);\n    if (existingEntry) {\n        // This $Ref has already been inventoried, so we don't need to process it again\n        if (depth < existingEntry.depth || indirections < existingEntry.indirections) {\n            removeFromInventory(inventory, existingEntry);\n        }\n        else {\n            return;\n        }\n    }\n    inventory.push({\n        $ref, // The JSON Reference (e.g. {$ref: string})\n        parent: $refParent, // The object that contains this $ref pointer\n        key: $refKey, // The key in `parent` that is the $ref pointer\n        pathFromRoot, // The path to the $ref pointer, from the JSON Schema root\n        depth, // How far from the JSON Schema root is this $ref pointer?\n        file, // The file that the $ref pointer resolves to\n        hash, // The hash within `file` that the $ref pointer resolves to\n        value: pointer.value, // The resolved value of the $ref pointer\n        circular: pointer.circular, // Is this $ref pointer DIRECTLY circular? (i.e. it references itself)\n        extended, // Does this $ref extend its resolved value? (i.e. it has extra properties, in addition to \"$ref\")\n        external, // Does this $ref pointer point to a file other than the main JSON Schema file?\n        indirections, // The number of indirect references that were traversed to resolve the value\n    });\n    // Recursively crawl the resolved value\n    if (!existingEntry || external) {\n        crawl(pointer.value, null, pointer.path, pathFromRoot, indirections + 1, inventory, $refs, options);\n    }\n}\n/**\n * Re-maps every $ref pointer, so that they're all relative to the root of the JSON Schema.\n * Each referenced value is dereferenced EXACTLY ONCE.  All subsequent references to the same\n * value are re-mapped to point to the first reference.\n *\n * @example: {\n *    first: { $ref: somefile.json#/some/part },\n *    second: { $ref: somefile.json#/another/part },\n *    third: { $ref: somefile.json },\n *    fourth: { $ref: somefile.json#/some/part/sub/part }\n *  }\n *\n * In this example, there are four references to the same file, but since the third reference points\n * to the ENTIRE file, that's the only one we need to dereference.  The other three can just be\n * remapped to point inside the third one.\n *\n * On the other hand, if the third reference DIDN'T exist, then the first and second would both need\n * to be dereferenced, since they point to different parts of the file. The fourth reference does NOT\n * need to be dereferenced, because it can be remapped to point inside the first one.\n *\n * @param inventory\n */\nfunction remap(inventory) {\n    // Group & sort all the $ref pointers, so they're in the order that we need to dereference/remap them\n    inventory.sort((a, b) => {\n        if (a.file !== b.file) {\n            // Group all the $refs that point to the same file\n            return a.file < b.file ? -1 : +1;\n        }\n        else if (a.hash !== b.hash) {\n            // Group all the $refs that point to the same part of the file\n            return a.hash < b.hash ? -1 : +1;\n        }\n        else if (a.circular !== b.circular) {\n            // If the $ref points to itself, then sort it higher than other $refs that point to this $ref\n            return a.circular ? -1 : +1;\n        }\n        else if (a.extended !== b.extended) {\n            // If the $ref extends the resolved value, then sort it lower than other $refs that don't extend the value\n            return a.extended ? +1 : -1;\n        }\n        else if (a.indirections !== b.indirections) {\n            // Sort direct references higher than indirect references\n            return a.indirections - b.indirections;\n        }\n        else if (a.depth !== b.depth) {\n            // Sort $refs by how close they are to the JSON Schema root\n            return a.depth - b.depth;\n        }\n        else {\n            // Determine how far each $ref is from the \"definitions\" property.\n            // Most people will expect references to be bundled into the the \"definitions\" property if possible.\n            const aDefinitionsIndex = a.pathFromRoot.lastIndexOf(\"/definitions\");\n            const bDefinitionsIndex = b.pathFromRoot.lastIndexOf(\"/definitions\");\n            if (aDefinitionsIndex !== bDefinitionsIndex) {\n                // Give higher priority to the $ref that's closer to the \"definitions\" property\n                return bDefinitionsIndex - aDefinitionsIndex;\n            }\n            else {\n                // All else is equal, so use the shorter path, which will produce the shortest possible reference\n                return a.pathFromRoot.length - b.pathFromRoot.length;\n            }\n        }\n    });\n    let file, hash, pathFromRoot;\n    for (const entry of inventory) {\n        // console.log('Re-mapping $ref pointer \"%s\" at %s', entry.$ref.$ref, entry.pathFromRoot);\n        if (!entry.external) {\n            // This $ref already resolves to the main JSON Schema file\n            entry.$ref.$ref = entry.hash;\n        }\n        else if (entry.file === file && entry.hash === hash) {\n            // This $ref points to the same value as the prevous $ref, so remap it to the same path\n            entry.$ref.$ref = pathFromRoot;\n        }\n        else if (entry.file === file && entry.hash.indexOf(hash + \"/\") === 0) {\n            // This $ref points to a sub-value of the prevous $ref, so remap it beneath that path\n            entry.$ref.$ref = pointer_js_1.default.join(pathFromRoot, pointer_js_1.default.parse(entry.hash.replace(hash, \"#\")));\n        }\n        else {\n            // We've moved to a new file or new hash\n            file = entry.file;\n            hash = entry.hash;\n            pathFromRoot = entry.pathFromRoot;\n            // This is the first $ref to point to this value, so dereference the value.\n            // Any other $refs that point to the same value will point to this $ref instead\n            entry.$ref = entry.parent[entry.key] = ref_js_1.default.dereference(entry.$ref, entry.value);\n            if (entry.circular) {\n                // This $ref points to itself\n                entry.$ref.$ref = entry.pathFromRoot;\n            }\n        }\n    }\n    // we want to ensure that any $refs that point to another $ref are remapped to point to the final value\n    // let hadChange = true;\n    // while (hadChange) {\n    //   hadChange = false;\n    //   for (const entry of inventory) {\n    //     if (entry.$ref && typeof entry.$ref === \"object\" && \"$ref\" in entry.$ref) {\n    //       const resolved = inventory.find((e: InventoryEntry) => e.pathFromRoot === entry.$ref.$ref);\n    //       if (resolved) {\n    //         const resolvedPointsToAnotherRef =\n    //           resolved.$ref && typeof resolved.$ref === \"object\" && \"$ref\" in resolved.$ref;\n    //         if (resolvedPointsToAnotherRef && entry.$ref.$ref !== resolved.$ref.$ref) {\n    //           // console.log('Re-mapping $ref pointer \"%s\" at %s', entry.$ref.$ref, entry.pathFromRoot);\n    //           entry.$ref.$ref = resolved.$ref.$ref;\n    //           hadChange = true;\n    //         }\n    //       }\n    //     }\n    //   }\n    // }\n}\n/**\n * TODO\n */\nfunction findInInventory(inventory, $refParent, $refKey) {\n    for (const existingEntry of inventory) {\n        if (existingEntry && existingEntry.parent === $refParent && existingEntry.key === $refKey) {\n            return existingEntry;\n        }\n    }\n    return undefined;\n}\nfunction removeFromInventory(inventory, entry) {\n    const index = inventory.indexOf(entry);\n    inventory.splice(index, 1);\n}\nexports.default = bundle;\n", "\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst ref_js_1 = __importDefault(require(\"./ref.js\"));\nconst pointer_js_1 = __importDefault(require(\"./pointer.js\"));\nconst ono_1 = require(\"@jsdevtools/ono\");\nconst url = __importStar(require(\"./util/url.js\"));\nconst errors_1 = require(\"./util/errors\");\nexports.default = dereference;\n/**\n * Crawls the JSON schema, finds all JSON references, and dereferences them.\n * This method mutates the JSON schema object, replacing JSON references with their resolved value.\n *\n * @param parser\n * @param options\n */\nfunction dereference(parser, options) {\n    const start = Date.now();\n    // console.log('Dereferencing $ref pointers in %s', parser.$refs._root$Ref.path);\n    const dereferenced = crawl(parser.schema, parser.$refs._root$Ref.path, \"#\", new Set(), new Set(), new Map(), parser.$refs, options, start);\n    parser.$refs.circular = dereferenced.circular;\n    parser.schema = dereferenced.value;\n}\n/**\n * Recursively crawls the given value, and dereferences any JSON references.\n *\n * @param obj - The value to crawl. If it's not an object or array, it will be ignored.\n * @param path - The full path of `obj`, possibly with a JSON Pointer in the hash\n * @param pathFromRoot - The path of `obj` from the schema root\n * @param parents - An array of the parent objects that have already been dereferenced\n * @param processedObjects - An array of all the objects that have already been processed\n * @param dereferencedCache - An map of all the dereferenced objects\n * @param $refs\n * @param options\n * @param startTime - The time when the dereferencing started\n * @returns\n */\nfunction crawl(obj, path, pathFromRoot, parents, processedObjects, dereferencedCache, $refs, options, startTime) {\n    let dereferenced;\n    const result = {\n        value: obj,\n        circular: false,\n    };\n    if (options && options.timeoutMs) {\n        if (Date.now() - startTime > options.timeoutMs) {\n            throw new errors_1.TimeoutError(options.timeoutMs);\n        }\n    }\n    const derefOptions = (options.dereference || {});\n    const isExcludedPath = derefOptions.excludedPathMatcher || (() => false);\n    if (derefOptions?.circular === \"ignore\" || !processedObjects.has(obj)) {\n        if (obj && typeof obj === \"object\" && !ArrayBuffer.isView(obj) && !isExcludedPath(pathFromRoot)) {\n            parents.add(obj);\n            processedObjects.add(obj);\n            if (ref_js_1.default.isAllowed$Ref(obj, options)) {\n                dereferenced = dereference$Ref(obj, path, pathFromRoot, parents, processedObjects, dereferencedCache, $refs, options, startTime);\n                result.circular = dereferenced.circular;\n                result.value = dereferenced.value;\n            }\n            else {\n                for (const key of Object.keys(obj)) {\n                    const keyPath = pointer_js_1.default.join(path, key);\n                    const keyPathFromRoot = pointer_js_1.default.join(pathFromRoot, key);\n                    if (isExcludedPath(keyPathFromRoot)) {\n                        continue;\n                    }\n                    const value = obj[key];\n                    let circular = false;\n                    if (ref_js_1.default.isAllowed$Ref(value, options)) {\n                        dereferenced = dereference$Ref(value, keyPath, keyPathFromRoot, parents, processedObjects, dereferencedCache, $refs, options, startTime);\n                        circular = dereferenced.circular;\n                        // Avoid pointless mutations; breaks frozen objects to no profit\n                        if (obj[key] !== dereferenced.value) {\n                            obj[key] = dereferenced.value;\n                            derefOptions?.onDereference?.(value.$ref, obj[key], obj, key);\n                        }\n                    }\n                    else {\n                        if (!parents.has(value)) {\n                            dereferenced = crawl(value, keyPath, keyPathFromRoot, parents, processedObjects, dereferencedCache, $refs, options, startTime);\n                            circular = dereferenced.circular;\n                            // Avoid pointless mutations; breaks frozen objects to no profit\n                            if (obj[key] !== dereferenced.value) {\n                                obj[key] = dereferenced.value;\n                            }\n                        }\n                        else {\n                            circular = foundCircularReference(keyPath, $refs, options);\n                        }\n                    }\n                    // Set the \"isCircular\" flag if this or any other property is circular\n                    result.circular = result.circular || circular;\n                }\n            }\n            parents.delete(obj);\n        }\n    }\n    return result;\n}\n/**\n * Dereferences the given JSON Reference, and then crawls the resulting value.\n *\n * @param $ref - The JSON Reference to resolve\n * @param path - The full path of `$ref`, possibly with a JSON Pointer in the hash\n * @param pathFromRoot - The path of `$ref` from the schema root\n * @param parents - An array of the parent objects that have already been dereferenced\n * @param processedObjects - An array of all the objects that have already been dereferenced\n * @param dereferencedCache - An map of all the dereferenced objects\n * @param $refs\n * @param options\n * @returns\n */\nfunction dereference$Ref($ref, path, pathFromRoot, parents, processedObjects, dereferencedCache, $refs, options, startTime) {\n    const isExternalRef = ref_js_1.default.isExternal$Ref($ref);\n    const shouldResolveOnCwd = isExternalRef && options?.dereference?.externalReferenceResolution === \"root\";\n    const $refPath = url.resolve(shouldResolveOnCwd ? url.cwd() : path, $ref.$ref);\n    const cache = dereferencedCache.get($refPath);\n    if (cache && !cache.circular) {\n        const refKeys = Object.keys($ref);\n        if (refKeys.length > 1) {\n            const extraKeys = {};\n            for (const key of refKeys) {\n                if (key !== \"$ref\" && !(key in cache.value)) {\n                    // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message\n                    extraKeys[key] = $ref[key];\n                }\n            }\n            return {\n                circular: cache.circular,\n                value: Object.assign({}, cache.value, extraKeys),\n            };\n        }\n        return cache;\n    }\n    const pointer = $refs._resolve($refPath, path, options);\n    if (pointer === null) {\n        return {\n            circular: false,\n            value: null,\n        };\n    }\n    // Check for circular references\n    const directCircular = pointer.circular;\n    let circular = directCircular || parents.has(pointer.value);\n    if (circular) {\n        foundCircularReference(path, $refs, options);\n    }\n    // Dereference the JSON reference\n    let dereferencedValue = ref_js_1.default.dereference($ref, pointer.value);\n    // Crawl the dereferenced value (unless it's circular)\n    if (!circular) {\n        // Determine if the dereferenced value is circular\n        const dereferenced = crawl(dereferencedValue, pointer.path, pathFromRoot, parents, processedObjects, dereferencedCache, $refs, options, startTime);\n        circular = dereferenced.circular;\n        dereferencedValue = dereferenced.value;\n    }\n    if (circular && !directCircular && options.dereference?.circular === \"ignore\") {\n        // The user has chosen to \"ignore\" circular references, so don't change the value\n        dereferencedValue = $ref;\n    }\n    if (directCircular) {\n        // The pointer is a DIRECT circular reference (i.e. it references itself).\n        // So replace the $ref path with the absolute path from the JSON Schema root\n        dereferencedValue.$ref = pathFromRoot;\n    }\n    const dereferencedObject = {\n        circular,\n        value: dereferencedValue,\n    };\n    // only cache if no extra properties than $ref\n    if (Object.keys($ref).length === 1) {\n        dereferencedCache.set($refPath, dereferencedObject);\n    }\n    return dereferencedObject;\n}\n/**\n * Called when a circular reference is found.\n * It sets the {@link $Refs#circular} flag, and throws an error if options.dereference.circular is false.\n *\n * @param keyPath - The JSON Reference path of the circular reference\n * @param $refs\n * @param options\n * @returns - always returns true, to indicate that a circular reference was found\n */\nfunction foundCircularReference(keyPath, $refs, options) {\n    $refs.circular = true;\n    if (!options.dereference.circular) {\n        throw ono_1.ono.reference(`Circular $ref pointer found at ${keyPath}`);\n    }\n    return true;\n}\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction makeNext() {\n    if (typeof process === \"object\" && typeof process.nextTick === \"function\") {\n        return process.nextTick;\n    }\n    else if (typeof setImmediate === \"function\") {\n        return setImmediate;\n    }\n    else {\n        return function next(f) {\n            setTimeout(f, 0);\n        };\n    }\n}\nexports.default = makeNext();\n", "\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = maybe;\nconst next_js_1 = __importDefault(require(\"./next.js\"));\nfunction maybe(cb, promise) {\n    if (cb) {\n        promise.then(function (result) {\n            (0, next_js_1.default)(function () {\n                cb(null, result);\n            });\n        }, function (err) {\n            (0, next_js_1.default)(function () {\n                cb(err);\n            });\n        });\n        return undefined;\n    }\n    else {\n        return promise;\n    }\n}\n", "\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getJsonSchemaRefParserDefaultOptions = exports.jsonSchemaParserNormalizeArgs = exports.dereferenceInternal = exports.JSONParserErrorGroup = exports.isHandledError = exports.UnmatchedParserError = exports.ParserError = exports.ResolverError = exports.MissingPointerError = exports.InvalidPointerError = exports.JSONParserError = exports.UnmatchedResolverError = exports.dereference = exports.bundle = exports.resolve = exports.parse = exports.$RefParser = void 0;\nconst refs_js_1 = __importDefault(require(\"./refs.js\"));\nconst parse_js_1 = __importDefault(require(\"./parse.js\"));\nconst normalize_args_js_1 = __importDefault(require(\"./normalize-args.js\"));\nexports.jsonSchemaParserNormalizeArgs = normalize_args_js_1.default;\nconst resolve_external_js_1 = __importDefault(require(\"./resolve-external.js\"));\nconst bundle_js_1 = __importDefault(require(\"./bundle.js\"));\nconst dereference_js_1 = __importDefault(require(\"./dereference.js\"));\nexports.dereferenceInternal = dereference_js_1.default;\nconst url = __importStar(require(\"./util/url.js\"));\nconst errors_js_1 = require(\"./util/errors.js\");\nObject.defineProperty(exports, \"JSONParserError\", { enumerable: true, get: function () { return errors_js_1.JSONParserError; } });\nObject.defineProperty(exports, \"InvalidPointerError\", { enumerable: true, get: function () { return errors_js_1.InvalidPointerError; } });\nObject.defineProperty(exports, \"MissingPointerError\", { enumerable: true, get: function () { return errors_js_1.MissingPointerError; } });\nObject.defineProperty(exports, \"ResolverError\", { enumerable: true, get: function () { return errors_js_1.ResolverError; } });\nObject.defineProperty(exports, \"ParserError\", { enumerable: true, get: function () { return errors_js_1.ParserError; } });\nObject.defineProperty(exports, \"UnmatchedParserError\", { enumerable: true, get: function () { return errors_js_1.UnmatchedParserError; } });\nObject.defineProperty(exports, \"UnmatchedResolverError\", { enumerable: true, get: function () { return errors_js_1.UnmatchedResolverError; } });\nObject.defineProperty(exports, \"isHandledError\", { enumerable: true, get: function () { return errors_js_1.isHandledError; } });\nObject.defineProperty(exports, \"JSONParserErrorGroup\", { enumerable: true, get: function () { return errors_js_1.JSONParserErrorGroup; } });\nconst ono_1 = require(\"@jsdevtools/ono\");\nconst maybe_js_1 = __importDefault(require(\"./util/maybe.js\"));\nconst options_js_1 = require(\"./options.js\");\nObject.defineProperty(exports, \"getJsonSchemaRefParserDefaultOptions\", { enumerable: true, get: function () { return options_js_1.getJsonSchemaRefParserDefaultOptions; } });\n/**\n * This class parses a JSON schema, builds a map of its JSON references and their resolved values,\n * and provides methods for traversing, manipulating, and dereferencing those references.\n *\n * @class\n */\nclass $RefParser {\n    constructor() {\n        /**\n         * The parsed (and possibly dereferenced) JSON schema object\n         *\n         * @type {object}\n         * @readonly\n         */\n        this.schema = null;\n        /**\n         * The resolved JSON references\n         *\n         * @type {$Refs}\n         * @readonly\n         */\n        this.$refs = new refs_js_1.default();\n    }\n    async parse() {\n        const args = (0, normalize_args_js_1.default)(arguments);\n        let promise;\n        if (!args.path && !args.schema) {\n            const err = (0, ono_1.ono)(`Expected a file path, URL, or object. Got ${args.path || args.schema}`);\n            return (0, maybe_js_1.default)(args.callback, Promise.reject(err));\n        }\n        // Reset everything\n        this.schema = null;\n        this.$refs = new refs_js_1.default();\n        // If the path is a filesystem path, then convert it to a URL.\n        // NOTE: According to the JSON Reference spec, these should already be URLs,\n        // but, in practice, many people use local filesystem paths instead.\n        // So we're being generous here and doing the conversion automatically.\n        // This is not intended to be a 100% bulletproof solution.\n        // If it doesn't work for your use-case, then use a URL instead.\n        let pathType = \"http\";\n        if (url.isFileSystemPath(args.path)) {\n            args.path = url.fromFileSystemPath(args.path);\n            pathType = \"file\";\n        }\n        else if (!args.path && args.schema && \"$id\" in args.schema && args.schema.$id) {\n            // when schema id has defined an URL should use that hostname to request the references,\n            // instead of using the current page URL\n            const params = url.parse(args.schema.$id);\n            const port = params.protocol === \"https:\" ? 443 : 80;\n            args.path = `${params.protocol}//${params.hostname}:${port}`;\n        }\n        // Resolve the absolute path of the schema\n        args.path = url.resolve(url.cwd(), args.path);\n        if (args.schema && typeof args.schema === \"object\") {\n            // A schema object was passed-in.\n            // So immediately add a new $Ref with the schema object as its value\n            const $ref = this.$refs._add(args.path);\n            $ref.value = args.schema;\n            $ref.pathType = pathType;\n            promise = Promise.resolve(args.schema);\n        }\n        else {\n            // Parse the schema file/url\n            promise = (0, parse_js_1.default)(args.path, this.$refs, args.options);\n        }\n        try {\n            const result = await promise;\n            if (result !== null && typeof result === \"object\" && !Buffer.isBuffer(result)) {\n                this.schema = result;\n                return (0, maybe_js_1.default)(args.callback, Promise.resolve(this.schema));\n            }\n            else if (args.options.continueOnError) {\n                this.schema = null; // it's already set to null at line 79, but let's set it again for the sake of readability\n                return (0, maybe_js_1.default)(args.callback, Promise.resolve(this.schema));\n            }\n            else {\n                throw ono_1.ono.syntax(`\"${this.$refs._root$Ref.path || result}\" is not a valid JSON Schema`);\n            }\n        }\n        catch (err) {\n            if (!args.options.continueOnError || !(0, errors_js_1.isHandledError)(err)) {\n                return (0, maybe_js_1.default)(args.callback, Promise.reject(err));\n            }\n            if (this.$refs._$refs[url.stripHash(args.path)]) {\n                this.$refs._$refs[url.stripHash(args.path)].addError(err);\n            }\n            return (0, maybe_js_1.default)(args.callback, Promise.resolve(null));\n        }\n    }\n    static parse() {\n        const parser = new $RefParser();\n        return parser.parse.apply(parser, arguments);\n    }\n    async resolve() {\n        const args = (0, normalize_args_js_1.default)(arguments);\n        try {\n            await this.parse(args.path, args.schema, args.options);\n            await (0, resolve_external_js_1.default)(this, args.options);\n            finalize(this);\n            return (0, maybe_js_1.default)(args.callback, Promise.resolve(this.$refs));\n        }\n        catch (err) {\n            return (0, maybe_js_1.default)(args.callback, Promise.reject(err));\n        }\n    }\n    static resolve() {\n        const instance = new $RefParser();\n        return instance.resolve.apply(instance, arguments);\n    }\n    static bundle() {\n        const instance = new $RefParser();\n        return instance.bundle.apply(instance, arguments);\n    }\n    async bundle() {\n        const args = (0, normalize_args_js_1.default)(arguments);\n        try {\n            await this.resolve(args.path, args.schema, args.options);\n            (0, bundle_js_1.default)(this, args.options);\n            finalize(this);\n            return (0, maybe_js_1.default)(args.callback, Promise.resolve(this.schema));\n        }\n        catch (err) {\n            return (0, maybe_js_1.default)(args.callback, Promise.reject(err));\n        }\n    }\n    static dereference() {\n        const instance = new $RefParser();\n        return instance.dereference.apply(instance, arguments);\n    }\n    async dereference() {\n        const args = (0, normalize_args_js_1.default)(arguments);\n        try {\n            await this.resolve(args.path, args.schema, args.options);\n            (0, dereference_js_1.default)(this, args.options);\n            finalize(this);\n            return (0, maybe_js_1.default)(args.callback, Promise.resolve(this.schema));\n        }\n        catch (err) {\n            return (0, maybe_js_1.default)(args.callback, Promise.reject(err));\n        }\n    }\n}\nexports.$RefParser = $RefParser;\nexports.default = $RefParser;\nfunction finalize(parser) {\n    const errors = errors_js_1.JSONParserErrorGroup.getParserErrors(parser);\n    if (errors.length > 0) {\n        throw new errors_js_1.JSONParserErrorGroup(parser);\n    }\n}\nexports.parse = $RefParser.parse;\nexports.resolve = $RefParser.resolve;\nexports.bundle = $RefParser.bundle;\nexports.dereference = $RefParser.dereference;\n", "\"use strict\";\n\nconst { getJsonSchemaRefParserDefaultOptions } = require(\"@apidevtools/json-schema-ref-parser\");\nconst schemaValidator = require(\"./validators/schema\");\nconst specValidator = require(\"./validators/spec\");\n\nmodule.exports = ParserOptions;\n\n\n\n/**\n * Merges the properties of the source object into the target object.\n *\n * @param target - The object that we're populating\n * @param source - The options that are being merged\n * @returns\n */\nfunction merge (target, source) {\n  if (isMergeable(source)) {\n    // prevent prototype pollution\n    const keys = Object.keys(source).filter((key) => ![\"__proto__\", \"constructor\", \"prototype\"].includes(key));\n    for (let i = 0; i < keys.length; i++) {\n      const key = keys[i];\n      const sourceSetting = source[key];\n      const targetSetting = target[key];\n\n      if (isMergeable(sourceSetting)) {\n        // It's a nested object, so merge it recursively\n        target[key] = merge(targetSetting || {}, sourceSetting);\n      }\n      else if (sourceSetting !== undefined) {\n        // It's a scalar value, function, or array. No merging necessary. Just overwrite the target value.\n        target[key] = sourceSetting;\n      }\n    }\n  }\n  return target;\n}\n/**\n * Determines whether the given value can be merged,\n * or if it is a scalar value that should just override the target value.\n *\n * @param val\n * @returns\n */\nfunction isMergeable (val) {\n  return val && typeof val === \"object\" && !Array.isArray(val) && !(val instanceof RegExp) && !(val instanceof Date);\n}\n\n/**\n * Options that determine how Swagger APIs are parsed, resolved, dereferenced, and validated.\n *\n * @param {object|ParserOptions} [_options] - Overridden options\n * @class\n * @augments $RefParserOptions\n */\nfunction ParserOptions (_options) {\n  const defaultOptions = getJsonSchemaRefParserDefaultOptions();\n  const options = merge(defaultOptions, ParserOptions.defaults);\n  return merge(options, _options);\n}\n\nParserOptions.defaults = {\n  /**\n   * Determines how the API definition will be validated.\n   *\n   * You can add additional validators of your own, replace an existing one with\n   * your own implemenation, or disable any validator by setting it to false.\n   */\n  validate: {\n    schema: schemaValidator,\n    spec: specValidator,\n  },\n};\n", "'use strict'\n\nfunction makeNext () {\n  if (typeof process === 'object' && typeof process.nextTick === 'function') {\n    return process.nextTick\n  } else if (typeof setImmediate === 'function') {\n    return setImmediate\n  } else {\n    return function next (f) {\n      setTimeout(f, 0)\n    }\n  }\n}\n\nmodule.exports = makeNext()\n", "\"use strict\"\n\nvar next = require('./next.js')\n\nmodule.exports = function maybe (cb, promise) {\n  if (cb) {\n    promise\n      .then(function (result) {\n        next(function () { cb(null, result) })\n      }, function (err) {\n        next(function () { cb(err) })\n      })\n    return undefined\n  }\n  else {\n    return promise\n  }\n}\n", "/* eslint-disable no-unused-vars */\n\"use strict\";\n\nconst validateSchema = require(\"./validators/schema\");\nconst validateSpec = require(\"./validators/spec\");\nconst { jsonSchemaParserNormalizeArgs: normalizeArgs } = require(\"@apidevtools/json-schema-ref-parser\");\nconst util = require(\"./util\");\nconst Options = require(\"./options\");\nconst maybe = require(\"call-me-maybe\");\nconst { ono } = require(\"@jsdevtools/ono\");\nconst { $RefParser } = require(\"@apidevtools/json-schema-ref-parser\");\nconst { dereferenceInternal: dereference } = require(\"@apidevtools/json-schema-ref-parser\");\n\n/**\n * This class parses a Swagger 2.0 or 3.0 API, resolves its JSON references and their resolved values,\n * and provides methods for traversing, dereferencing, and validating the API.\n *\n * @class\n * @augments $RefParser\n */\nclass SwaggerParser extends $RefParser {\n\n  /**\n   * Parses the given Swagger API.\n   * This method does not resolve any JSON references.\n   * It just reads a single file in JSON or YAML format, and parse it as a JavaScript object.\n   *\n   * @param {string} [path] - The file path or URL of the JSON schema\n   * @param {object} [api] - The Swagger API object. This object will be used instead of reading from `path`.\n   * @param {ParserOptions} [options] - Options that determine how the API is parsed\n   * @param {Function} [callback] - An error-first callback. The second parameter is the parsed API object.\n   * @returns {Promise} - The returned promise resolves with the parsed API object.\n   */\n  async parse (path, api, options, callback) {\n    let args = normalizeArgs(arguments);\n    args.options = new Options(args.options);\n\n    try {\n      let schema = await super.parse(args.path, args.schema, args.options);\n\n      if (schema.swagger) {\n        // Verify that the parsed object is a Swagger API\n        if (schema.swagger === undefined || schema.info === undefined || schema.paths === undefined) {\n          throw ono.syntax(`${args.path || args.schema} is not a valid Swagger API definition`);\n        }\n        else if (typeof schema.swagger === \"number\") {\n          // This is a very common mistake, so give a helpful error message\n          throw ono.syntax('Swagger version number must be a string (e.g. \"2.0\") not a number.');\n        }\n        else if (typeof schema.info.version === \"number\") {\n          // This is a very common mistake, so give a helpful error message\n          throw ono.syntax('API version number must be a string (e.g. \"1.0.0\") not a number.');\n        }\n        else if (schema.swagger !== \"2.0\") {\n          throw ono.syntax(`Unrecognized Swagger version: ${schema.swagger}. Expected 2.0`);\n        }\n      }\n      else {\n        let supportedVersions = [\"3.0.0\", \"3.0.1\", \"3.0.2\", \"3.0.3\", \"3.1.0\"];\n\n        // Verify that the parsed object is a Openapi API\n        if (schema.openapi === undefined || schema.info === undefined) {\n          throw ono.syntax(`${args.path || args.schema} is not a valid Openapi API definition`);\n        }\n        else if (schema.paths === undefined) {\n          if (schema.openapi === \"3.1.0\") {\n            if (schema.webhooks === undefined) {\n              throw ono.syntax(`${args.path || args.schema} is not a valid Openapi API definition`);\n            }\n          }\n          else {\n            throw ono.syntax(`${args.path || args.schema} is not a valid Openapi API definition`);\n          }\n        }\n        else if (typeof schema.openapi === \"number\") {\n          // This is a very common mistake, so give a helpful error message\n          throw ono.syntax('Openapi version number must be a string (e.g. \"3.0.0\") not a number.');\n        }\n        else if (typeof schema.info.version === \"number\") {\n          // This is a very common mistake, so give a helpful error message\n          throw ono.syntax('API version number must be a string (e.g. \"1.0.0\") not a number.');\n        }\n        else if (supportedVersions.indexOf(schema.openapi) === -1) {\n          throw ono.syntax(\n            `Unsupported OpenAPI version: ${schema.openapi}. ` +\n            `Swagger Parser only supports versions ${supportedVersions.join(\", \")}`\n          );\n        }\n\n        // This is an OpenAPI v3 schema, check if the \"servers\" have any relative paths and\n        // fix them if the content was pulled from a web resource\n        util.fixOasRelativeServers(schema, args.path);\n      }\n\n      // Looks good!\n      return maybe(args.callback, Promise.resolve(schema));\n    }\n    catch (err) {\n      return maybe(args.callback, Promise.reject(err));\n    }\n  }\n\n  /**\n   * Parses, dereferences, and validates the given Swagger API.\n   * Depending on the options, validation can include JSON Schema validation and/or Swagger Spec validation.\n   *\n   * @param {string} [path] - The file path or URL of the JSON schema\n   * @param {object} [api] - The Swagger API object. This object will be used instead of reading from `path`.\n   * @param {ParserOptions} [options] - Options that determine how the API is parsed, dereferenced, and validated\n   * @param {Function} [callback] - An error-first callback. The second parameter is the parsed API object.\n   * @returns {Promise} - The returned promise resolves with the parsed API object.\n   */\n  async validate (path, api, options, callback) {\n    let me = this;\n    let args = normalizeArgs(arguments);\n    args.options = new Options(args.options);\n\n    // ZSchema doesn't support circular objects, so don't dereference circular $refs yet\n    // (see https://github.com/zaggino/z-schema/issues/137)\n    let circular$RefOption = args.options.dereference.circular;\n    args.options.validate.schema && (args.options.dereference.circular = \"ignore\");\n\n    try {\n      await this.dereference(args.path, args.schema, args.options);\n\n      // Restore the original options, now that we're done dereferencing\n      args.options.dereference.circular = circular$RefOption;\n\n      if (args.options.validate.schema) {\n        // Validate the API against the Swagger schema\n        // NOTE: This is safe to do, because we haven't dereferenced circular $refs yet\n        validateSchema(me.api);\n\n        if (me.$refs.circular) {\n          if (circular$RefOption === true) {\n            // The API has circular references,\n            // so we need to do a second-pass to fully-dereference it\n            dereference(me, args.options);\n          }\n          else if (circular$RefOption === false) {\n            // The API has circular references, and they're not allowed, so throw an error\n            throw ono.reference(\"The API contains circular references\");\n          }\n        }\n      }\n\n      if (args.options.validate.spec) {\n        // Validate the API against the Swagger spec\n        validateSpec(me.api);\n      }\n\n      return maybe(args.callback, Promise.resolve(me.schema));\n    }\n    catch (err) {\n      return maybe(args.callback, Promise.reject(err));\n    }\n  }\n}\n\n\n/**\n * Alias {@link $RefParser#schema} as {@link SwaggerParser#api}\n */\nObject.defineProperty(SwaggerParser.prototype, \"api\", {\n  configurable: true,\n  enumerable: true,\n  get () {\n    return this.schema;\n  }\n});\n\n/**\n * The Swagger object\n * https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#swagger-object\n *\n * @typedef {{swagger: string, info: {}, paths: {}}} SwaggerObject\n */\n\nconst defaultExport = SwaggerParser;\n\ndefaultExport.validate = (...args) => {\n  const defaultInstance = new SwaggerParser();\n  return defaultInstance.validate(...args);\n};\ndefaultExport.dereference = (...args) => {\n  const defaultInstance = new SwaggerParser();\n  return defaultInstance.dereference(...args);\n};\ndefaultExport.bundle = (...args) => {\n  const defaultInstance = new SwaggerParser();\n  return defaultInstance.bundle(...args);\n};\ndefaultExport.parse = (...args) => {\n  const defaultInstance = new SwaggerParser();\n  return defaultInstance.parse(...args);\n};\ndefaultExport.resolve = (...args) => {\n  const defaultInstance = new SwaggerParser();\n  return defaultInstance.resolve(...args);\n};\ndefaultExport.default = defaultExport;\ndefaultExport.SwaggerParser = defaultExport;\n\nmodule.exports = defaultExport;\n", "\"use strict\";\n\nconst form = require(\"./form\");\nconst editors = require(\"./editors\");\nconst analytics = require(\"./analytics\");\nconst { ono } = require(\"@jsdevtools/ono\");\nconst SwaggerParser = require(\"../../../\");\n\nlet swaggerParser = null;\nlet counters = { parse: 0, resolve: 0, bundle: 0, dereference: 0, validate: 0 };\n\nmodule.exports = parser;\n\n/**\n * Adds event handlers to trigger Swagger Parser methods\n */\nfunction parser () {\n  // When the form is submitted, parse the Swagger API\n  form.form.on(\"submit\", (event) => {\n    event.preventDefault();\n    parseSwagger();\n  });\n\n  // When the \"x\" button is clicked, discard the results\n  $(\"#clear\").on(\"click\", () => {\n    swaggerParser = null;\n    editors.clearResults();\n    analytics.trackEvent(\"results\", \"clear\");\n  });\n}\n\n/**\n * This function is called when the \"Validate it!\" button is clicked.\n * It calls Swagger Parser, passing it all the options selected on the form.\n */\nfunction parseSwagger () {\n  try {\n    // Clear any previous results\n    editors.clearResults();\n\n    // Get all the parameters\n    swaggerParser = swaggerParser || new SwaggerParser();\n    let options = form.getOptions();\n    let method = form.method.button.val();\n    let api = form.getAPI();\n\n    // Call Swagger Parser\n    swaggerParser[method](api, options)\n      .then(() => {\n        // Show the results\n        let results = swaggerParser.$refs.values();\n        Object.keys(results).forEach((key) => {\n          editors.showResult(key, results[key]);\n        });\n      })\n      .catch((err) => {\n        editors.showError(ono(err));\n        analytics.trackError(err);\n      });\n\n    // Track the operation\n    counters[method]++;\n    analytics.trackEvent(\"button\", \"click\", method, counters[method]);\n  }\n  catch (err) {\n    editors.showError(ono(err));\n    analytics.trackError(err);\n  }\n}\n", "\"use strict\";\n\nconst form = require(\"./form\");\nconst querystring = require(\"./querystring\");\nconst dropdowns = require(\"./dropdowns\");\nconst editors = require(\"./editors\");\nconst samples = require(\"./samples\");\nconst parser = require(\"./parser\");\nconst analytics = require(\"./analytics\");\n\n$(() => {\n  form();\n  querystring();\n  dropdowns();\n  editors();\n  samples();\n  parser();\n  analytics();\n});\n"],
    -  "mappings": "2hBAAA,IAAAA,EAAAC,GAAA,QCAA,IAAAC,EAAA,GAAAC,GAAAD,EAAA,eAAAE,GAAA,kBAAAC,GAAA,YAAAC,GAAA,iBAAAC,GAAA,aAAAC,GAAA,qBAAAC,GAAA,sBAAAC,GAAA,uBA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qB,CACnB,wBAAyB,CACvB,MAAS,CACP,CACE,KAAQ,yBACV,EACA,CACE,KAAQ,wBACV,CACF,CACF,CACF,CACF,EACA,WAAc,CACZ,KAAQ,SACR,kBAAqB,CACnB,wBAAyB,CACvB,MAAS,CACP,CACE,KAAQ,yBACV,EACA,CACE,KAAQ,yBACV,CACF,CACF,CACF,CACF,EACA,SAAY,CACV,KAAQ,SACR,kBAAqB,CACnB,wBAAyB,CACvB,MAAS,CACP,CACE,KAAQ,yBACV,EACA,CACE,KAAQ,uBACV,CACF,CACF,CACF,CACF,EACA,cAAiB,CACf,KAAQ,SACR,kBAAqB,CACnB,wBAAyB,CACvB,MAAS,CACP,CACE,KAAQ,yBACV,EACA,CACE,KAAQ,2BACV,CACF,CACF,CACF,CACF,EACA,QAAW,CACT,KAAQ,SACR,kBAAqB,CACnB,wBAAyB,CACvB,MAAS,CACP,CACE,KAAQ,yBACV,EACA,CACE,KAAQ,sBACV,CACF,CACF,CACF,CACF,EACA,gBAAmB,CACjB,KAAQ,SACR,kBAAqB,CACnB,wBAAyB,CACvB,MAAS,CACP,CACE,KAAQ,yBACV,EACA,CACE,KAAQ,8BACV,CACF,CACF,CACF,CACF,EACA,MAAS,CACP,KAAQ,SACR,kBAAqB,CACnB,wBAAyB,CACvB,MAAS,CACP,CACE,KAAQ,yBACV,EACA,CACE,KAAQ,oBACV,CACF,CACF,CACF,CACF,EACA,UAAa,CACX,KAAQ,SACR,kBAAqB,CACnB,wBAAyB,CACvB,MAAS,CACP,CACE,KAAQ,yBACV,EACA,CACE,KAAQ,wBACV,CACF,CACF,CACF,CACF,CACF,EACA,kBAAqB,CACnB,MAAO,CACP,CACF,EACA,qBAAwB,EAC1B,EACA,OAAU,CACR,KAAQ,SACR,WAAc,CACZ,MAAS,CACP,KAAQ,QACV,EACA,WAAc,CACZ,KAAQ,SACR,QAAW,EACX,iBAAoB,EACtB,EACA,QAAW,CACT,KAAQ,QACV,EACA,iBAAoB,CAClB,KAAQ,UACR,QAAW,EACb,EACA,QAAW,CACT,KAAQ,QACV,EACA,iBAAoB,CAClB,KAAQ,UACR,QAAW,EACb,EACA,UAAa,CACX,KAAQ,UACR,QAAW,CACb,EACA,UAAa,CACX,KAAQ,UACR,QAAW,EACX,QAAW,CACb,EACA,QAAW,CACT,KAAQ,SACR,OAAU,OACZ,EACA,SAAY,CACV,KAAQ,UACR,QAAW,CACb,EACA,SAAY,CACV,KAAQ,UACR,QAAW,EACX,QAAW,CACb,EACA,YAAe,CACb,KAAQ,UACR,QAAW,EACb,EACA,cAAiB,CACf,KAAQ,UACR,QAAW,CACb,EACA,cAAiB,CACf,KAAQ,UACR,QAAW,EACX,QAAW,CACb,EACA,SAAY,CACV,KAAQ,QACR,MAAS,CACP,KAAQ,QACV,EACA,SAAY,EACZ,YAAe,EACjB,EACA,KAAQ,CACN,KAAQ,QACR,MAAS,CACT,EACA,SAAY,EACZ,YAAe,EACjB,EACA,KAAQ,CACN,KAAQ,SACR,KAAQ,CACN,QACA,UACA,UACA,SACA,SACA,QACF,CACF,EACA,IAAO,CACL,MAAS,CACP,CACE,KAAQ,sBACV,EACA,CACE,KAAQ,yBACV,CACF,CACF,EACA,MAAS,CACP,KAAQ,QACR,MAAS,CACP,MAAS,CACP,CACE,KAAQ,sBACV,EACA,CACE,KAAQ,yBACV,CACF,CACF,CACF,EACA,MAAS,CACP,KAAQ,QACR,MAAS,CACP,MAAS,CACP,CACE,KAAQ,sBACV,EACA,CACE,KAAQ,yBACV,CACF,CACF,CACF,EACA,MAAS,CACP,KAAQ,QACR,MAAS,CACP,MAAS,CACP,CACE,KAAQ,sBACV,EACA,CACE,KAAQ,yBACV,CACF,CACF,CACF,EACA,MAAS,CACP,MAAS,CACP,CACE,KAAQ,sBACV,EACA,CACE,KAAQ,yBACV,CACF,CACF,EACA,WAAc,CACZ,KAAQ,SACR,qBAAwB,CACtB,MAAS,CACP,CACE,KAAQ,sBACV,EACA,CACE,KAAQ,yBACV,CACF,CACF,CACF,EACA,qBAA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,CACF,CACF,EACA,WAAc,CACZ,KAAQ,UACR,QAAW,EACb,EACA,SAAY,CACV,KAAQ,QACR,MAAS,CACP,KAAQ,mCACV,CACF,EACA,QAAW,CACT,KAAQ,QACR,MAAS,CACP,KAAQ,sBACV,CACF,CACF,EACA,kBAAqB,CACnB,MAAO,CACP,CACF,EACA,qBAAwB,EAC1B,EACA,UAAa,CACX,KAAQ,SACR,WAAc,CACZ,QAAW,CACT,MAAS,CACP,CACE,KAAQ,wBACV,EACA,CACE,KAAQ,yBACV,CACF,CACF,CACF,EACA,kBAAqB,CACnB,uBAAwB,CACtB,MAAS,CACP,CACE,KAAQ,wBACV,EACA,CACE,KAAQ,yBACV,CACF,CACF,EACA,MAAO,CACP,CACF,EACA,cAAiB,EACjB,qBAAwB,EAC1B,EACA,oBAAuB,CACrB,KAAQ,SACR,qBAAwB,CACtB,KAAQ,QACR,MAAS,CACP,KAAQ,QACV,CACF,CACF,EACA,IAAO,CACL,KAAQ,SACR,SAAY,CACV,MACF,EACA,WAAc,CACZ,KAAQ,CACN,KAAQ,QACV,EACA,YAAe,CACb,KAAQ,QACV,EACA,aAAgB,CACd,KAAQ,qCACV,CACF,EACA,kBAAqB,CACnB,MAAO,CACP,CACF,EACA,qBAAwB,EAC1B,EACA,sBAAyB,CACvB,KAAQ,SACR,SAAY,CACV,KACF,EACA,WAAc,CACZ,YAAe,CACb,KAAQ,QACV,EACA,IAAO,CACL,KAAQ,SACR,OAAU,eACZ,CACF,EACA,kBAAqB,CACnB,MAAO,CACP,CACF,EACA,qBAAwB,EAC1B,EACA,mBAAsB,CACpB,YAAe,8CACf,IAAO,CACL,SAAY,CACV,UACA,UACF,CACF,CACF,EACA,iBAAoB,CAClB,YAAe,sEACf,IAAO,CACL,SAAY,CACV,SACA,SACF,CACF,EACA,MAAS,CACP,CACE,SAAY,CACV,QACF,CACF,EACA,CACE,SAAY,CACV,SACF,EACA,YAAe,wDACf,MAAS,CACP,CACE,IAAO,CACL,SAAY,CACV,OACF,CACF,CACF,EACA,CACE,IAAO,CACL,SAAY,CACV,SACF,CACF,CACF,EACA,CACE,IAAO,CACL,SAAY,CACV,eACF,CACF,CACF,EACA,CACE,IAAO,CACL,SAAY,CACV,SACF,CACF,CACF,EACA,CACE,IAAO,CACL,SAAY,CACV,UACF,CACF,CACF,CACF,CACF,CACF,CACF,EACA,UAAa,CACX,KAAQ,SACR,WAAc,CACZ,KAAQ,CACN,KAAQ,QACV,EACA,GAAM,CACJ,KAAQ,QACV,EACA,YAAe,CACb,KAAQ,QACV,EACA,SAAY,CACV,KAAQ,UACR,QAAW,EACb,EACA,WAAc,CACZ,KAAQ,UACR,QAAW,EACb,EACA,gBAAmB,CACjB,KAAQ,UACR,QAAW,EACb,EACA,MAAS,CACP,KAAQ,QACV,EACA,QAAW,CACT,KAAQ,SACV,EACA,cAAiB,CACf,KAAQ,UACR,QAAW,EACb,EACA,OAAU,CACR,MAAS,CACP,CACE,KAAQ,sBACV,EACA,CACE,KAAQ,yBACV,CACF,CACF,EACA,QAAW,CACT,KAAQ,SACR,qBAAwB,CACtB,KAAQ,yBACV,EACA,cAAiB,EACjB,cAAiB,CACnB,EACA,QAAW,CACX,EACA,SAAY,CACV,KAAQ,SACR,qBAAwB,CACtB,MAAS,CACP,CACE,KAAQ,uBACV,EACA,CACE,KAAQ,yBACV,CACF,CACF,CACF,CACF,EACA,kBAAqB,CACnB,MAAO,CACP,CACF,EACA,qBAAwB,GACxB,SAAY,CACV,OACA,IACF,EACA,MAAS,CACP,CACE,KAAQ,kCACV,EACA,CACE,KAAQ,gCACV,EACA,CACE,KAAQ,iCACV,CACF,CACF,EACA,kBAAqB,CACnB,YAAe,qBACf,MAAS,CACP,CACE,YAAe,oBACf,SAAY,CACV,UACF,EACA,WAAc,CACZ,GAAM,CACJ,KAAQ,CACN,MACF,CACF,EACA,MAAS,CACP,KAAQ,CACN,SACA,QACA,QACF,EACA,QAAW,QACb,EACA,SAAY,CACV,KAAQ,CACN,EACF,CACF,CACF,CACF,EACA,CACE,YAAe,qBACf,WAAc,CACZ,GAAM,CACJ,KAAQ,CACN,OACF,CACF,EACA,MAAS,CACP,KAAQ,CACN,OACA,iBACA,gBACA,YACF,EACA,QAAW,MACb,CACF,CACF,EACA,CACE,YAAe,sBACf,WAAc,CACZ,GAAM,CACJ,KAAQ,CACN,QACF,CACF,EACA,MAAS,CACP,KAAQ,CACN,QACF,EACA,QAAW,QACb,CACF,CACF,EACA,CACE,YAAe,sBACf,WAAc,CACZ,GAAM,CACJ,KAAQ,CACN,QACF,CACF,EACA,MAAS,CACP,KAAQ,CACN,MACF,EACA,QAAW,MACb,CACF,CACF,CACF,CACF,EACA,YAAe,CACb,KAAQ,SACR,SAAY,CACV,SACF,EACA,WAAc,CACZ,YAAe,CACb,KAAQ,QACV,EACA,QAAW,CACT,KAAQ,SACR,qBAAwB,CACtB,KAAQ,yBACV,CACF,EACA,SAAY,CACV,KAAQ,UACR,QAAW,EACb,CACF,EACA,kBAAqB,CACnB,MAAO,CACP,CACF,EACA,qBAAwB,EAC1B,EACA,eAAkB,CAChB,MAAS,CACP,CACE,KAAQ,oCACV,EACA,CACE,KAAQ,kCACV,EACA,CACE,KAAQ,oCACV,EACA,CACE,KAAQ,2CACV,CACF,CACF,EACA,qBAAwB,CACtB,KAAQ,SACR,SAAY,CACV,OACA,OACA,IACF,EACA,WAAc,CACZ,KAAQ,CACN,KAAQ,SACR,KAAQ,CACN,QACF,CACF,EACA,KAAQ,CACN,KAAQ,QACV,EACA,GAAM,CACJ,KAAQ,SACR,KAAQ,CACN,SACA,QACA,QACF,CACF,EACA,YAAe,CACb,KAAQ,QACV,CACF,EACA,kBAAqB,CACnB,MAAO,CACP,CACF,EACA,qBAAwB,EAC1B,EACA,mBAAsB,CACpB,KAAQ,SACR,SAAY,CACV,SACA,MACF,EACA,WAAc,CACZ,OAAU,CACR,KAAQ,QACV,EACA,aAAgB,CACd,KAAQ,QACV,EACA,YAAe,CACb,KAAQ,QACV,EACA,KAAQ,CACN,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,CACF,EACA,MAAS,CACP,kBAAmB,CACjB,GAAM,CACJ,WAAc,CACZ,GAAM,CACJ,MAAS,MACX,CACF,EACA,SAAY,CACV,IACF,CACF,EACA,KAAQ,CACN,WAAc,CACZ,MAAS,CACP,QAAW,SACX,KAAQ,CACN,SACA,QACA,QACF,CACF,EACA,SAAY,CACV,MAAS,EACX,CACF,EACA,SAAY,CACV,UACF,CACF,CACF,EACA,oBAAqB,CACnB,GAAM,CACJ,WAAc,CACZ,GAAM,CACJ,MAAS,QACX,CACF,EACA,SAAY,CACV,IACF,CACF,EACA,KAAQ,CACN,WAAc,CACZ,MAAS,CACP,QAAW,SACX,KAAQ,CACN,QACF,CACF,CACF,CACF,CACF,EACA,mBAAoB,CAClB,GAAM,CACJ,WAAc,CACZ,GAAM,CACJ,MAAS,OACX,CACF,EACA,SAAY,CACV,IACF,CACF,EACA,KAAQ,CACN,WAAc,CACZ,MAAS,CACP,QAAW,OACX,KAAQ,CACN,OACA,iBACA,gBACA,YACF,CACF,CACF,CACF,CACF,EACA,oBAAqB,CACnB,GAAM,CACJ,WAAc,CACZ,GAAM,CACJ,MAAS,QACX,CACF,EACA,SAAY,CACV,IACF,CACF,EACA,KAAQ,CACN,WAAc,CACZ,MAAS,CACP,QAAW,OACX,KAAQ,CACN,MACF,CACF,CACF,CACF,CACF,EACA,kBAAmB,CACjB,GAAM,CACJ,WAAc,CACZ,MAAS,CACP,MAAS,MACX,CACF,EACA,SAAY,CACV,OACF,CACF,EACA,KAAQ,CACN,WAAc,CACZ,QAAW,CACT,QAAW,EACb,CACF,CACF,EACA,KAAQ,CACN,WAAc,CACZ,QAAW,CACT,QAAW,EACb,CACF,CACF,CACF,CACF,CACF,CACF,EACA,KAAQ,mCACR,sBAAyB,EAC3B,EACA,yBAA0B,CACxB,GAAM,CACJ,SAAY,CACV,MACF,CACF,EACA,KAAQ,CACN,KAAQ,mBACV,EACA,KAAQ,CACN,KAAQ,mBACV,CACF,EACA,eAAgB,CACd,KAAQ,S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,CACb,KAAQ,QACV,CACF,EACA,SAAY,CACV,MACF,EACA,MAAS,CACP,CACE,KAAQ,kCACV,EACA,CACE,KAAQ,2CACV,EACA,CACE,KAAQ,yCACV,EACA,CACE,KAAQ,gDACV,EACA,CACE,KAAQ,2CACV,EACA,CACE,KAAQ,yCACV,CACF,EACA,sBAAyB,GACzB,MAAS,CACP,cAAe,CACb,GAAM,CACJ,WAAc,CACZ,KAAQ,CACN,MAAS,QACX,CACF,EACA,SAAY,CACV,MACF,CACF,EACA,KAAQ,CACN,WAAc,CACZ,KAAQ,CACN,KAAQ,QACV,EACA,GAAM,CACJ,KAAQ,CACN,QACA,SACA,QACF,CACF,CACF,EACA,SAAY,CACV,OACA,IACF,CACF,CACF,EACA,YAAa,CACX,GAAM,CACJ,WAAc,CACZ,KAAQ,CACN,MAAS,MACX,CACF,EACA,SAAY,CACV,MACF,CACF,EACA,KAAQ,CACN,WAAc,CACZ,OAAU,CACR,KAAQ,QACV,CACF,EACA,SAAY,CACV,QACF,CACF,CACF,EACA,mBAAoB,CAClB,GAAM,CACJ,WAAc,CACZ,KAAQ,CACN,MAAS,MACX,EACA,OAAU,CACR,MAAS,QACX,CACF,EACA,SAAY,CACV,OACA,QACF,CACF,EACA,KAAQ,CACN,WAAc,CACZ,aAAgB,CACd,KAAQ,QACV,CACF,EACA,SAAY,CACV,QACF,CACF,CACF,EACA,cAAe,CACb,GAAM,CACJ,WAAc,CACZ,KAAQ,CACN,MAAS,QACX,CACF,EACA,SAAY,CACV,MACF,CACF,EACA,KAAQ,CACN,WAAc,CACZ,MAAS,CACP,KAAQ,qBACV,CACF,EACA,SAAY,CACV,OACF,CACF,CACF,EACA,YAAa,CACX,GAAM,CACJ,WAAc,CACZ,KAAQ,CACN,MAAS,eACX,CACF,EACA,SAAY,CACV,MACF,CACF,EACA,KAAQ,CACN,WAAc,CACZ,iBAAoB,CAClB,KAAQ,aACV,CACF,EACA,SAAY,CACV,kBACF,CACF,CACF,CACF,CACF,EACA,+BA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CACH,CAAC,EACA,MAAOC,GAAQ,CACdd,GAAQ,UAAUE,GAAIY,CAAG,CAAC,EAC1Bb,GAAU,WAAWa,CAAG,CAC1B,CAAC,EAGHT,GAASK,CAAM,IACfT,GAAU,WAAW,SAAU,QAASS,EAAQL,GAASK,CAAM,CAAC,CAClE,OACOI,EAAK,CACVd,GAAQ,UAAUE,GAAIY,CAAG,CAAC,EAC1Bb,GAAU,WAAWa,CAAG,CAC1B,CACF,ICpEAC,IAAAC,IAAAC,IAEA,IAAMC,GAAO,KACPC,GAAc,KACdC,GAAY,KACZC,GAAU,KACVC,GAAU,KACVC,GAAS,KACTC,GAAY,KAElB,EAAE,IAAM,CACNN,GAAK,EACLC,GAAY,EACZC,GAAU,EACVC,GAAQ,EACRC,GAAQ,EACRC,GAAO,EACPC,GAAU,CACZ,CAAC",
    -  "names": ["init_dirname", "__esmMin", "process_exports", "__export", "_debugEnd", "_debugProcess", "_events", "_eventsCount", "_exiting", "_fatalExceptions", "_getActiveHandles", "_getActiveRequests", "_kill", "_linkedBinding", "_maxListeners", "_preload_modules", "_rawDebug", "_startProfilerIdleNotifier", "_stopProfilerIdleNotifier", "_tickCallback", "abort", "addListener", "allowedNodeEnvironmentFlags", "arch", "argv", "argv0", "assert", "binding", "chdir", "config", "cpuUsage", "cwd", "debugPort", "process", "dlopen", "domain", "emit", "emitWarning", "env", "execArgv", "execPath", "exit", "features", "hasUncaughtExceptionCaptureCallback", "hrtime", "kill", "listeners", "memoryUsage", "moduleLoadList", "nextTick", "off", "on", "once", "openStdin", "pid", "platform", "ppid", "prependListener", "prependOnceListener", "reallyExit", "release", "removeAllListeners", "removeListener", "resourceUsage", "setSourceMapsEnabled", "setUncaughtExceptionCaptureCallback", "stderr", "stdin", "stdout", "title", "umask", "uptime", "version", "versions", "unimplemented", "name", "cleanUpNextTick", "draining", "currentQueue", "queue", "queueIndex", "drainQueue", "timeout", "len", "fun", "args", "i", "Item", "array", "noop", "condition", "message", "_performance", "previousTimestamp", "baseNow", "clocktime", "seconds", "nanoseconds", "nanoPerSec", "nowOffset", "init_process", "__esmMin", "init_dirname", "init_buffer", "type", "mask", "dir", "time", "diff", "init_process", "__esmMin", "dew$2", "_dewExec$2", "exports$3", "byteLength", "toByteArray", "fromByteArray", "lookup", "revLookup", "Arr", "code", "len", "getLens", "b64", "validLen", "placeHoldersLen", "lens", "_byteLength", "tmp", "arr", "curByte", "i", "tripletToBase64", "num", "encodeChunk", "uint8", "start", "end", "output", "extraBytes", "parts", "maxChunkLength", "len2", "dew$1", "_dewExec$1", "exports$2", "buffer", "offset", "isLE", "mLen", "nBytes", "e", "m", "eLen", "eMax", "eBias", "nBits", "d", "s", "value", "c", "rt", "dew", "_dewExec", "exports$1", "base64", "ieee754", "customInspectSymbol", "Buffer", "SlowBuffer", "K_MAX_LENGTH", "typedArraySupport", "proto", "createBuffer", "length", "buf", "arg", "encodingOrOffset", "allocUnsafe", "from", "fromString", "fromArrayView", "isInstance", "fromArrayBuffer", "valueOf", "b", "fromObject", "assertSize", "size", "alloc", "fill", "encoding", "checked", "string", "actual", "fromArrayLike", "array", "arrayView", "copy", "byteOffset", "obj", "numberIsNaN", "a", "x", "y", "list", "pos", "mustMatch", "loweredCase", "utf8ToBytes", "base64ToBytes", "slowToString", "hexSlice", "utf8Slice", "asciiSlice", "latin1Slice", "base64Slice", "utf16leSlice", "swap", "n", "str", "max", "target", "thisStart", "thisEnd", "thisCopy", "targetCopy", "bidirectionalIndexOf", "val", "dir", "arrayIndexOf", "indexSize", "arrLength", "valLength", "read", "foundIndex", "found", "j", "hexWrite", "remaining", "strLen", "parsed", "utf8Write", "blitBuffer", "asciiWrite", "asciiToBytes", "base64Write", "ucs2Write", "utf16leToBytes", "res", "firstByte", "codePoint", "bytesPerSequence", "secondByte", "thirdByte", "fourthByte", "tempCodePoint", "decodeCodePointsArray", "MAX_ARGUMENTS_LENGTH", "codePoints", "ret", "out", "hexSliceLookupTable", "bytes", "newBuf", "checkOffset", "ext", "noAssert", "mul", "defineBigIntMethod", "validateNumber", "first", "last", "boundsError", "lo", "hi", "checkInt", "min", "maxBytes", "wrtBigUInt64LE", "checkIntBI", "wrtBigUInt64BE", "limit", "sub", "checkIEEE754", "writeFloat", "littleEndian", "writeDouble", "targetStart", "errors", "E", "sym", "getMessage", "Base", "name", "range", "input", "msg", "received", "addNumericalSeparator", "checkBounds", "type", "INVALID_BASE64_RE", "base64clean", "units", "leadSurrogate", "byteArray", "src", "dst", "alphabet", "table", "i16", "fn", "BufferBigIntNotDefined", "exports", "INSPECT_MAX_BYTES", "kMaxLength", "init_buffer", "__esmMin", "init_dirname", "init_process", "init_buffer", "__esmMin", "require_common", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "isNothing", "subject", "isObject", "toArray", "sequence", "extend", "target", "source", "index", "length", "key", "sourceKeys", "repeat", "string", "count", "result", "cycle", "isNegativeZero", "number", "require_exception", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "formatError", "exception", "compact", "where", "message", "YAMLException", "reason", "mark", "require_snippet", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "common", "getLine", "buffer", "lineStart", "lineEnd", "position", "maxLineLength", "head", "tail", "maxHalfLength", "padStart", "string", "max", "makeSnippet", "mark", "options", "re", "lineStarts", "lineEnds", "match", "foundLineNo", "result", "i", "line", "lineNoLength", "require_type", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "YAMLException", "TYPE_CONSTRUCTOR_OPTIONS", "YAML_NODE_KINDS", "compileStyleAliases", "map", "result", "style", "alias", "Type", "tag", "options", "name", "data", "require_schema", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "YAMLException", "Type", "compileList", "schema", "name", "result", "currentType", "newIndex", "previousType", "previousIndex", "compileMap", "index", "length", "collectType", "type", "Schema", "definition", "implicit", "explicit", "require_str", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "Type", "data", "require_seq", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "Type", "data", "require_map", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "Type", "data", "require_failsafe", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "Schema", "require_null", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "Type", "resolveYamlNull", "data", "max", "constructYamlNull", "isNull", "object", "require_bool", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "Type", "resolveYamlBoolean", "data", "max", "constructYamlBoolean", "isBoolean", "object", "require_int", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "common", "Type", "isHexCode", "c", "isOctCode", "isDecCode", "resolveYamlInteger", "data", "max", "index", "hasDigits", "ch", "constructYamlInteger", "value", "sign", "isInteger", "object", "obj", "require_float", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "common", "Type", "YAML_FLOAT_PATTERN", "resolveYamlFloat", "data", "constructYamlFloat", "value", "sign", "SCIENTIFIC_WITHOUT_DOT", "representYamlFloat", "object", "style", "res", "isFloat", "require_json", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "require_core", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "require_timestamp", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "Type", "YAML_DATE_REGEXP", "YAML_TIMESTAMP_REGEXP", "resolveYamlTimestamp", "data", "constructYamlTimestamp", "match", "year", "month", "day", "hour", "minute", "second", "fraction", "delta", "tz_hour", "tz_minute", "date", "representYamlTimestamp", "object", "require_merge", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "Type", "resolveYamlMerge", "data", "require_binary", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "Type", "BASE64_MAP", "resolveYamlBinary", "data", "code", "idx", "bitlen", "max", "map", "constructYamlBinary", "tailbits", "input", "bits", "result", "representYamlBinary", "object", "tail", "isBinary", "obj", "require_omap", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "Type", "_hasOwnProperty", "_toString", "resolveYamlOmap", "data", "objectKeys", "index", "length", "pair", "pairKey", "pairHasKey", "object", "constructYamlOmap", "require_pairs", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "Type", "_toString", "resolveYamlPairs", "data", "index", "length", "pair", "keys", "result", "object", "constructYamlPairs", "require_set", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "Type", "_hasOwnProperty", "resolveYamlSet", "data", "key", "object", "constructYamlSet", "require_default", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "require_loader", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "common", "YAMLException", "makeSnippet", "DEFAULT_SCHEMA", "_hasOwnProperty", "CONTEXT_FLOW_IN", "CONTEXT_FLOW_OUT", "CONTEXT_BLOCK_IN", "CONTEXT_BLOCK_OUT", "CHOMPING_CLIP", "CHOMPING_STRIP", "CHOMPING_KEEP", "PATTERN_NON_PRINTABLE", "PATTERN_NON_ASCII_LINE_BREAKS", "PATTERN_FLOW_INDICATORS", "PATTERN_TAG_HANDLE", "PATTERN_TAG_URI", "_class", "obj", "is_EOL", "c", "is_WHITE_SPACE", "is_WS_OR_EOL", "is_FLOW_INDICATOR", "fromHexCode", "lc", "escapedHexLen", "fromDecimalCode", "simpleEscapeSequence", "charFromCodepoint", "simpleEscapeCheck", "simpleEscapeMap", "i", "State", "input", "options", "generateError", "state", "message", "mark", "throwError", "throwWarning", "directiveHandlers", "name", "args", "match", "major", "minor", "handle", "prefix", "err", "captureSegment", "start", "end", "checkJson", "_position", "_length", "_character", "_result", "mergeMappings", "destination", "source", "overridableKeys", "sourceKeys", "key", "index", "quantity", "storeMappingPair", "keyTag", "keyNode", "valueNode", "startLine", "startLineStart", "startPos", "readLineBreak", "ch", "skipSeparationSpace", "allowComments", "checkIndent", "lineBreaks", "testDocumentSeparator", "writeFoldedLines", "count", "readPlainScalar", "nodeIndent", "withinFlowCollection", "preceding", "following", "captureStart", "captureEnd", "hasPendingContent", "_line", "_lineStart", "_lineIndent", "_kind", "readSingleQuotedScalar", "readDoubleQuotedScalar", "hexLength", "hexResult", "tmp", "readFlowCollection", "readNext", "_pos", "_tag", "_anchor", "terminator", "isPair", "isExplicitPair", "isMapping", "composeNode", "readBlockScalar", "folding", "chomping", "didReadContent", "detectedIndent", "textIndent", "emptyLines", "atMoreIndented", "readBlockSequence", "detected", "readBlockMapping", "flowIndent", "allowCompact", "_keyLine", "_keyLineStart", "_keyPos", "atExplicitKey", "readTagProperty", "isVerbatim", "isNamed", "tagHandle", "tagName", "readAnchorProperty", "readAlias", "alias", "parentIndent", "nodeContext", "allowToSeek", "allowBlockStyles", "allowBlockScalars", "allowBlockCollections", "indentStatus", "atNewLine", "hasContent", "typeIndex", "typeQuantity", "typeList", "type", "blockIndent", "readDocument", "documentStart", "directiveName", "directiveArgs", "hasDirectives", "loadDocuments", "nullpos", "loadAll", "iterator", "documents", "length", "load", "require_dumper", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "common", "YAMLException", "DEFAULT_SCHEMA", "_toString", "_hasOwnProperty", "CHAR_BOM", "CHAR_TAB", "CHAR_LINE_FEED", "CHAR_CARRIAGE_RETURN", "CHAR_SPACE", "CHAR_EXCLAMATION", "CHAR_DOUBLE_QUOTE", "CHAR_SHARP", "CHAR_PERCENT", "CHAR_AMPERSAND", "CHAR_SINGLE_QUOTE", "CHAR_ASTERISK", "CHAR_COMMA", "CHAR_MINUS", "CHAR_COLON", "CHAR_EQUALS", "CHAR_GREATER_THAN", "CHAR_QUESTION", "CHAR_COMMERCIAL_AT", "CHAR_LEFT_SQUARE_BRACKET", "CHAR_RIGHT_SQUARE_BRACKET", "CHAR_GRAVE_ACCENT", "CHAR_LEFT_CURLY_BRACKET", "CHAR_VERTICAL_LINE", "CHAR_RIGHT_CURLY_BRACKET", "ESCAPE_SEQUENCES", "DEPRECATED_BOOLEANS_SYNTAX", "DEPRECATED_BASE60_SYNTAX", "compileStyleMap", "schema", "map", "result", "keys", "index", "length", "tag", "style", "type", "encodeHex", "character", "string", "handle", "QUOTING_TYPE_SINGLE", "QUOTING_TYPE_DOUBLE", "State", "options", "indentString", "spaces", "ind", "position", "next", "line", "generateNextLine", "state", "level", "testImplicitResolving", "str", "isWhitespace", "c", "isPrintable", "isNsCharOrWhitespace", "isPlainSafe", "prev", "inblock", "cIsNsCharOrWhitespace", "cIsNsChar", "isPlainSafeFirst", "isPlainSafeLast", "codePointAt", "pos", "first", "second", "needIndentIndicator", "leadingSpaceRe", "STYLE_PLAIN", "STYLE_SINGLE", "STYLE_LITERAL", "STYLE_FOLDED", "STYLE_DOUBLE", "chooseScalarStyle", "singleLineOnly", "indentPerLevel", "lineWidth", "testAmbiguousType", "quotingType", "forceQuotes", "i", "char", "prevChar", "hasLineBreak", "hasFoldableLine", "shouldTrackWidth", "previousLineBreak", "plain", "writeScalar", "iskey", "indent", "testAmbiguity", "blockHeader", "dropEndingNewline", "foldString", "escapeString", "indentIndicator", "clip", "keep", "chomp", "width", "lineRe", "nextLF", "foldLine", "prevMoreIndented", "moreIndented", "match", "prefix", "breakRe", "start", "end", "curr", "escapeSeq", "writeFlowSequence", "object", "_result", "_tag", "value", "writeNode", "writeBlockSequence", "compact", "writeFlowMapping", "objectKeyList", "objectKey", "objectValue", "pairBuffer", "writeBlockMapping", "explicitPair", "detectType", "explicit", "typeList", "block", "isblockseq", "tagStr", "objectOrArray", "duplicateIndex", "duplicate", "getDuplicateReferences", "objects", "duplicatesIndexes", "inspectNode", "dump", "input", "require_js_yaml", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "loader", "dumper", "renamed", "from", "to", "require_form", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "jsYAML", "form", "url", "text", "require_querystring", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "form", "querystring", "setFormFields", "setBookmarkURL", "params", "query", "setCheckbox", "input", "value", "options", "method", "url", "bookmark", "require_analytics", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "debug", "analytics", "category", "action", "label", "value", "error", "err", "require_dropdowns", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "form", "analytics", "dropdowns", "setSelectedMethod", "onChange", "setAllowLabel", "setRefsLabel", "setValidateLabel", "trackCheckbox", "event", "methodName", "trackButtonLabel", "menu", "setLabel", "dropdown", "values", "getCheckedAndUnchecked", "checkbox", "value", "_checkboxes", "checked", "unchecked", "i", "require_editors", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "form", "ACE_THEME", "editors", "session", "title", "content", "showResults", "err", "index", "titleId", "editorId", "active", "shortTitle", "getShortTitle", "toText", "editor", "lastSlash", "results", "obj", "e", "require_samples", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "form", "samples", "event", "exports", "newline", "onoCall", "isLazyStack", "stackProp", "exports", "isWritableStack", "joinStacks", "newError", "originalError", "newStack", "popStack", "originalStack", "lazyJoinStacks", "lazyStack", "lazyPopStack", "stack", "lines", "onoStart", "i", "line", "error", "nonJsonTypes", "protectedProps", "objectPrototype", "toJSON", "pojo", "error", "key", "getDeepKeys", "value", "type", "exports", "obj", "omit", "keys", "uniqueKeys", "isomorphic_node_1", "stack_1", "to_json_1", "protectedProps", "extendError", "error", "originalError", "props", "onoError", "extendStack", "mergeErrors", "exports", "newError", "stackProp", "keys", "_newError", "_originalError", "key", "e", "isomorphic_node_1", "normalizeOptions", "options", "exports", "normalizeArgs", "args", "originalError", "props", "formatArgs", "message", "extend_error_1", "normalize_1", "to_json_1", "constructor", "Ono", "exports", "ErrorConstructor", "options", "ono", "args", "originalError", "props", "message", "newError", "error", "constructor_1", "singleton", "ono", "exports", "onoMap", "args", "originalError", "typedOno", "species", "i", "u", "c", "t", "n", "r", "h", "f", "l", "s", "a", "d", "e", "m", "p", "o", "T", "init_chunk_5decc758", "__esmMin", "init_dirname", "init_buffer", "init_process", "c$1", "O", "t", "e", "S", "l$1", "y", "b", "B", "k", "E", "D", "U", "P", "x", "I", "M", "z", "F", "m", "u$1", "T", "N", "W", "$", "C", "V", "G", "R", "J", "_", "H", "h", "Z", "j", "q", "A", "K", "s", "w", "L", "p", "v", "oe", "r", "fe", "ye", "X", "be", "ue", "ae", "we", "ge", "de", "le", "o", "u", "Ae", "ce", "f", "me", "je", "a", "c", "pe", "n", "i", "ke", "se", "he", "ve", "Oe", "Be", "Se", "De", "l", "t$1", "o$1", "n$1", "e$1", "r$1", "t$2", "i$1", "o$2", "d", "Q", "Y", "ee", "te", "re", "ne", "ie", "Ee", "init_chunk_b4205b57", "__esmMin", "init_dirname", "init_buffer", "init_process", "init_chunk_5decc758", "g", "_extend", "callbackify", "debuglog", "deprecate", "format", "inherits", "inspect", "isArray", "isBoolean", "isBuffer", "isDate", "isError", "isFunction", "isNull", "isNullOrUndefined", "isNumber", "isObject", "isPrimitive", "isRegExp", "isString", "isSymbol", "isUndefined", "log", "promisify", "types", "TextEncoder", "TextDecoder", "init_chunk_ce0fbc82", "__esmMin", "init_dirname", "init_buffer", "init_process", "init_chunk_b4205b57", "init_chunk_5decc758", "X", "util_exports", "__export", "TextDecoder", "TextEncoder", "_extend", "callbackify", "debuglog", "X", "deprecate", "format", "inherits", "inspect", "isArray", "isBoolean", "isBuffer", "isDate", "isError", "isFunction", "isNull", "isNullOrUndefined", "isNumber", "isObject", "isPrimitive", "isRegExp", "isString", "isSymbol", "isUndefined", "log", "promisify", "types", "init_util", "__esmMin", "init_dirname", "init_buffer", "init_process", "init_chunk_ce0fbc82", "init_chunk_b4205b57", "init_chunk_5decc758", "util_1", "singleton_1", "exports", "constructor_1", "__exportStar", "module", "require_util", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "util", "parse", "u", "operationsList", "fixServers", "server", "path", "inUrl", "finalUrl", "fixOasRelativeServers", "schema", "filePath", "component", "pathItem", "opItem", "_CodeOrName", "exports", "Name", "s", "_Code", "code", "item", "_a", "c", "names", "_", "strs", "args", "i", "addCodeArg", "plus", "str", "expr", "safeStringify", "optimize", "arg", "interpolate", "res", "mergeExprItems", "a", "b", "strConcat", "c1", "c2", "x", "stringify", "getProperty", "key", "getEsmExportName", "regexpCode", "rx", "code_1", "ValueError", "name", "UsedValueState", "exports", "Scope", "prefixes", "parent", "nameOrPrefix", "prefix", "ng", "_b", "_a", "ValueScopeName", "nameStr", "value", "property", "itemIndex", "line", "ValueScope", "opts", "valueKey", "vs", "_name", "s", "keyOrRef", "scopeName", "values", "usedValues", "getCode", "valueCode", "code", "nameSet", "c", "def", "code_1", "scope_1", "code_2", "exports", "scope_2", "Node", "_names", "_constants", "Def", "varKind", "name", "rhs", "es5", "_n", "names", "constants", "optimizeExpr", "Assign", "lhs", "sideEffects", "addExprNames", "AssignOp", "op", "Label", "label", "Break", "Throw", "error", "AnyCode", "code", "ParentNode", "nodes", "opts", "i", "n", "subtractNames", "addNames", "BlockNode", "Root", "Else", "If", "_If", "condition", "cond", "e", "ns", "not", "_a", "For", "ForLoop", "iteration", "ForRange", "from", "to", "ForIter", "loop", "iterable", "Func", "args", "async", "Return", "Try", "_b", "Catch", "Finally", "CodeGen", "extScope", "prefix", "prefixOrName", "value", "keyOrRef", "scopeName", "nameOrPrefix", "constant", "_constant", "c", "keyValues", "key", "thenBody", "elseBody", "node", "forBody", "arr", "obj", "tryBody", "catchCode", "finallyCode", "body", "nodeCount", "len", "toClose", "funcBody", "N1", "N2", "expr", "replaceName", "canOptimize", "items", "x", "par", "andCode", "mappend", "and", "orCode", "or", "y", "codegen_1", "code_1", "toHash", "arr", "hash", "item", "exports", "alwaysValidSchema", "it", "schema", "checkUnknownRules", "schemaHasRules", "opts", "self", "rules", "key", "checkStrictMode", "schemaHasRulesButRef", "RULES", "schemaRefOrVal", "topSchemaRef", "schemaPath", "keyword", "$data", "unescapeFragment", "str", "unescapeJsonPointer", "escapeFragment", "escapeJsonPointer", "eachItem", "xs", "f", "x", "makeMergeEvaluated", "mergeNames", "mergeToName", "mergeValues", "resultToName", "gen", "from", "to", "toName", "res", "setEvaluated", "evaluatedPropsToName", "items", "ps", "props", "p", "snippets", "useFunc", "Type", "getErrorPath", "dataProp", "dataPropType", "jsPropertySyntax", "isNumber", "msg", "mode", "codegen_1", "names", "exports", "codegen_1", "util_1", "names_1", "exports", "keyword", "schemaType", "reportError", "cxt", "error", "errorPaths", "overrideAllErrors", "it", "gen", "compositeRule", "allErrors", "errObj", "errorObjectCode", "addError", "returnErrors", "reportExtraError", "resetErrorsCount", "errsCount", "extendErrors", "schemaValue", "data", "err", "i", "errs", "validateName", "schemaEnv", "E", "createErrors", "errorObject", "keyValues", "errorInstancePath", "errorSchemaPath", "extraErrorProps", "errorPath", "instancePath", "instPath", "errSchemaPath", "schemaPath", "parentSchema", "schPath", "params", "message", "opts", "propertyName", "topSchemaRef", "errors_1", "codegen_1", "names_1", "boolError", "topBoolOrEmptySchema", "it", "gen", "schema", "validateName", "falseSchemaError", "exports", "boolOrEmptySchema", "valid", "overrideAllErrors", "data", "cxt", "_jsonTypes", "jsonTypes", "isJSONType", "x", "exports", "getRules", "groups", "schemaHasRulesForType", "schema", "self", "type", "group", "shouldUseGroup", "exports", "rule", "shouldUseRule", "_a", "kwd", "rules_1", "applicability_1", "errors_1", "codegen_1", "util_1", "DataType", "exports", "getSchemaTypes", "schema", "types", "getJSONTypes", "ts", "coerceAndCheckDataType", "it", "gen", "data", "opts", "coerceTo", "coerceToTypes", "checkTypes", "wrongType", "checkDataTypes", "coerceData", "reportTypeError", "COERCIBLE", "coerceTypes", "dataType", "coerced", "t", "coerceSpecificType", "assignParentData", "parentData", "parentDataProperty", "expr", "checkDataType", "strictNums", "correct", "EQ", "cond", "numCond", "_cond", "dataTypes", "notObj", "typeError", "schemaValue", "cxt", "getTypeErrorContext", "schemaCode", "codegen_1", "util_1", "assignDefaults", "it", "ty", "properties", "items", "key", "assignDefault", "sch", "i", "exports", "prop", "defaultValue", "gen", "compositeRule", "data", "opts", "childData", "condition", "codegen_1", "util_1", "names_1", "util_2", "checkReportMissingProp", "cxt", "prop", "gen", "data", "it", "noPropertyInData", "exports", "checkMissingProp", "opts", "properties", "missing", "reportMissingProp", "hasPropFunc", "isOwnProperty", "property", "propertyInData", "ownProperties", "cond", "allSchemaProperties", "schemaMap", "p", "schemaProperties", "callValidateCode", "schemaCode", "topSchemaRef", "schemaPath", "errorPath", "func", "context", "passSchema", "dataAndSchema", "valCxt", "args", "newRegExp", "usePattern", "pattern", "u", "regExp", "rx", "validateArray", "keyword", "valid", "validArr", "validateItems", "notValid", "len", "i", "validateUnion", "schema", "sch", "schValid", "_sch", "schCxt", "codegen_1", "names_1", "code_1", "errors_1", "macroKeywordCode", "cxt", "def", "gen", "keyword", "schema", "parentSchema", "it", "macroSchema", "schemaRef", "useKeyword", "valid", "exports", "funcKeywordCode", "$data", "checkAsyncKeyword", "validate", "validateRef", "validateKeyword", "_a", "assignValid", "modifyData", "reportErrs", "ruleErrs", "validateAsync", "validateSync", "addErrs", "e", "validateErrs", "_await", "passCxt", "passSchema", "errors", "data", "errs", "schemaEnv", "result", "validSchemaType", "schemaType", "allowUndefined", "st", "validateKeywordUsage", "opts", "self", "errSchemaPath", "deps", "kwd", "msg", "codegen_1", "util_1", "getSubschema", "it", "keyword", "schemaProp", "schema", "schemaPath", "errSchemaPath", "topSchemaRef", "sch", "exports", "extendSubschemaData", "subschema", "dataProp", "dpType", "data", "dataTypes", "propertyName", "gen", "errorPath", "dataPathArr", "opts", "nextData", "dataContextProps", "_nextData", "extendSubschemaMode", "jtdDiscriminator", "jtdMetadata", "compositeRule", "createErrors", "allErrors", "require_fast_deep_equal", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "equal", "a", "b", "length", "keys", "key", "require_json_schema_traverse", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "traverse", "schema", "opts", "cb", "pre", "post", "_traverse", "jsonPtr", "rootSchema", "parentJsonPtr", "parentKeyword", "parentSchema", "keyIndex", "key", "sch", "i", "prop", "escapeJsonPtr", "str", "util_1", "equal", "traverse", "SIMPLE_INLINED", "inlineRef", "schema", "limit", "hasRef", "countKeys", "exports", "REF_KEYWORDS", "key", "sch", "count", "getFullPath", "resolver", "id", "normalize", "normalizeId", "p", "_getFullPath", "TRAILING_SLASH_HASH", "resolveUrl", "baseId", "ANCHOR", "getSchemaRefs", "schemaId", "uriResolver", "schId", "baseIds", "pathPrefix", "localRefs", "schemaRefs", "jsonPtr", "parentJsonPtr", "fullPath", "innerBaseId", "addRef", "addAnchor", "ref", "_resolve", "ambiguos", "schOrRef", "checkAmbiguosRef", "anchor", "sch1", "sch2", "boolSchema_1", "dataType_1", "applicability_1", "dataType_2", "defaults_1", "keyword_1", "subschema_1", "codegen_1", "names_1", "resolve_1", "util_1", "errors_1", "validateFunctionCode", "it", "isSchemaObj", "checkKeywords", "schemaCxtHasRules", "topSchemaObjCode", "validateFunction", "exports", "gen", "validateName", "schema", "schemaEnv", "opts", "body", "funcSourceUrl", "destructureValCxtES5", "destructureValCxt", "commentKeyword", "checkNoDefault", "resetEvaluated", "typeAndKeywords", "returnResults", "schId", "subschemaCode", "valid", "subSchemaObjCode", "self", "key", "updateContext", "checkAsyncSchema", "errsCount", "checkRefsAndKeywords", "schemaKeywords", "types", "checkedTypes", "errSchemaPath", "msg", "schemaPath", "rootName", "ValidationError", "assignEvaluated", "evaluated", "props", "items", "typeErrors", "data", "allErrors", "RULES", "keywordCode", "checkStrictTypes", "group", "groupKeywords", "iterateKeywords", "useDefaults", "rule", "checkContextTypes", "checkMultipleTypes", "checkKeywordTypes", "includesType", "strictTypesError", "narrowSchemaTypes", "ts", "rules", "keyword", "type", "t", "hasApplicableType", "schTs", "kwdT", "withTypes", "KeywordCxt", "def", "getData", "condition", "successAction", "failAction", "schemaCode", "append", "errorParams", "errorPaths", "cond", "obj", "assign", "codeBlock", "$dataValid", "schemaType", "wrong$DataType", "invalid$DataSchema", "st", "validateSchemaRef", "appl", "subschema", "nextContext", "schemaCxt", "toName", "ruleType", "cxt", "JSON_POINTER", "RELATIVE_JSON_POINTER", "$data", "dataLevel", "dataNames", "dataPathArr", "jsonPointer", "matches", "up", "errorMsg", "expr", "segments", "segment", "pointerType", "ValidationError", "errors", "exports", "resolve_1", "MissingRefError", "resolver", "baseId", "ref", "msg", "exports", "codegen_1", "validation_error_1", "names_1", "resolve_1", "util_1", "validate_1", "SchemaEnv", "env", "schema", "_a", "exports", "compileSchema", "sch", "_sch", "getCompilingSchema", "rootId", "es5", "lines", "ownProperties", "gen", "_ValidationError", "validateName", "schemaCxt", "sourceCode", "validateCode", "validate", "props", "items", "e", "resolveRef", "root", "baseId", "ref", "schOrFunc", "resolve", "schemaId", "inlineOrCompile", "schEnv", "sameSchemaEnv", "s1", "s2", "resolveSchema", "p", "refPath", "getJsonPointer", "id", "schOrRef", "schId", "PREVENT_SCOPE_CHANGE", "parsedRef", "part", "partSchema", "$ref", "require_data", "__commonJSMin", "exports", "module", "require_scopedChars", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "HEX", "require_utils", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "HEX", "normalizeIPv4", "host", "findToken", "matches", "address", "stripLeadingZeros", "stringArrayToHexStripped", "input", "keepZero", "acc", "strip", "c", "getIPV6", "tokenCount", "output", "buffer", "isZone", "endipv6Encountered", "endIpv6", "consume", "hex", "i", "cursor", "normalizeIPv6", "opts", "ipv6", "newHost", "escapedHost", "str", "token", "out", "skip", "l", "ind", "RDS1", "RDS2", "RDS3", "RDS5", "removeDotSegments", "im", "s", "normalizeComponentEncoding", "components", "esc", "func", "recomposeAuthority", "options", "uriTokens", "ipV4res", "ipV6res", "require_schemes", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "UUID_REG", "URN_REG", "isSecure", "wsComponents", "httpParse", "components", "httpSerialize", "secure", "wsParse", "wsSerialize", "path", "query", "urnParse", "urnComponents", "options", "matches", "scheme", "urnScheme", "schemeHandler", "SCHEMES", "urnSerialize", "nid", "uriComponents", "nss", "urnuuidParse", "uuidComponents", "urnuuidSerialize", "http", "https", "ws", "wss", "urn", "urnuuid", "require_fast_uri", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "normalizeIPv6", "normalizeIPv4", "removeDotSegments", "recomposeAuthority", "normalizeComponentEncoding", "SCHEMES", "normalize", "uri", "options", "serialize", "parse", "resolve", "baseURI", "relativeURI", "schemelessOptions", "resolved", "resolveComponents", "base", "relative", "skipNormalization", "target", "equal", "uriA", "uriB", "cmpts", "opts", "components", "uriTokens", "schemeHandler", "authority", "s", "hexLookUp", "v", "k", "nonSimpleDomain", "value", "code", "i", "len", "URI_PARSE", "parsed", "gotEncoding", "isIP", "matches", "ipv4result", "ipv6result", "e", "fastUri", "uri", "exports", "validate_1", "exports", "codegen_1", "validation_error_1", "ref_error_1", "rules_1", "compile_1", "codegen_2", "resolve_1", "dataType_1", "util_1", "$dataRefSchema", "uri_1", "defaultRegExp", "str", "flags", "META_IGNORE_OPTIONS", "EXT_SCOPE_NAMES", "removedOptions", "deprecatedOptions", "MAX_EXPRESSION", "requiredOptions", "o", "s", "_optz", "_a", "optimize", "regExp", "_c", "_b", "uriResolver", "_d", "_f", "_e", "_h", "_g", "_k", "_j", "_m", "_l", "_p", "_o", "_q", "_r", "_s", "_t", "_u", "_v", "_w", "_x", "_y", "_z", "_0", "Ajv", "opts", "es5", "lines", "getLogger", "formatOpt", "checkOptions", "getMetaSchemaOptions", "addInitialFormats", "addInitialKeywords", "addInitialSchemas", "$data", "meta", "schemaId", "_dataRefSchema", "schemaKeyRef", "data", "v", "valid", "schema", "_meta", "sch", "loadSchema", "runCompileAsync", "_schema", "loadMetaSchema", "_compileAsync", "$ref", "e", "checkLoaded", "loadMissingSchema", "ref", "missingRef", "_loadSchema", "p", "key", "_validateSchema", "id", "throwOrLogError", "$schema", "message", "keyRef", "getSchEnv", "root", "cacheKey", "definitions", "def", "kwdOrDef", "keyword", "checkKeyword", "kwd", "addRule", "keywordMetaschema", "definition", "k", "t", "rule", "RULES", "group", "name", "format", "errors", "separator", "dataVar", "text", "msg", "metaSchema", "keywordsJsonPointers", "rules", "jsonPointer", "segments", "keywords", "seg", "schemaOrData", "schemas", "regex", "baseId", "validateSchema", "addSchema", "localRefs", "currentOpts", "checkOpts", "options", "log", "opt", "optsSchemas", "defs", "metaOpts", "noLogs", "logger", "KEYWORD_NAME", "dataType", "post", "ruleGroup", "addBeforeRule", "before", "i", "_rule", "$dataRef", "ref_error_1", "code_1", "codegen_1", "names_1", "compile_1", "util_1", "def", "cxt", "gen", "$ref", "it", "baseId", "env", "validateName", "opts", "self", "root", "callRootRef", "schOrEnv", "callValidate", "inlineRefSchema", "callRef", "rootName", "sch", "v", "getValidate", "schName", "valid", "schCxt", "exports", "$async", "allErrors", "passCxt", "callAsyncRef", "callSyncRef", "addEvaluatedFrom", "e", "addErrorsFrom", "source", "errs", "schEvaluated", "_a", "props", "items", "ref_1", "core", "exports", "core_1", "codegen_1", "ops", "KWDs", "error", "cxt", "kwdOp", "def", "data", "schemaCode", "keyword", "opsIdx", "_a", "exports", "KWDs", "def", "keyword", "parentSchema", "limitKwd", "exports", "codegen_1", "error", "schemaCode", "def", "cxt", "gen", "data", "it", "prec", "res", "invalid", "exports", "ucs2length", "str", "len", "length", "pos", "value", "exports", "codegen_1", "util_1", "ucs2length_1", "error", "keyword", "schemaCode", "comp", "def", "cxt", "data", "it", "op", "len", "exports", "code_1", "codegen_1", "error", "schemaCode", "def", "cxt", "data", "$data", "schema", "it", "u", "regExp", "exports", "codegen_1", "error", "keyword", "schemaCode", "comp", "def", "cxt", "data", "op", "exports", "code_1", "codegen_1", "util_1", "error", "missingProperty", "def", "cxt", "gen", "schema", "schemaCode", "data", "$data", "it", "opts", "useLoop", "allErrorsMode", "exitOnErrorMode", "props", "definedProperties", "requiredKey", "schemaPath", "msg", "loopAllRequired", "prop", "missing", "valid", "loopUntilMissing", "exports", "codegen_1", "error", "keyword", "schemaCode", "comp", "def", "cxt", "data", "op", "exports", "equal", "exports", "dataType_1", "codegen_1", "util_1", "equal_1", "error", "i", "j", "def", "cxt", "gen", "data", "$data", "schema", "parentSchema", "schemaCode", "it", "valid", "itemTypes", "validateUniqueItems", "canOptimize", "loopN", "loopN2", "t", "item", "wrongType", "indices", "eql", "outer", "exports", "codegen_1", "util_1", "equal_1", "error", "schemaCode", "def", "cxt", "gen", "data", "$data", "schema", "exports", "codegen_1", "util_1", "equal_1", "error", "schemaCode", "def", "cxt", "gen", "data", "$data", "schema", "it", "useLoop", "eql", "getEql", "valid", "loopEnum", "vSchema", "_x", "i", "equalCode", "v", "sch", "exports", "limitNumber_1", "limitNumberExclusive_1", "multipleOf_1", "limitLength_1", "pattern_1", "limitProperties_1", "required_1", "limitItems_1", "uniqueItems_1", "const_1", "enum_1", "validation", "exports", "codegen_1", "util_1", "error", "len", "def", "cxt", "parentSchema", "it", "items", "validateAdditionalItems", "gen", "schema", "data", "keyword", "valid", "validateItems", "i", "exports", "codegen_1", "util_1", "code_1", "def", "cxt", "schema", "it", "validateTuple", "extraItems", "schArr", "gen", "parentSchema", "data", "keyword", "checkStrictTuple", "valid", "len", "sch", "i", "opts", "errSchemaPath", "l", "fullTuple", "msg", "exports", "items_1", "def", "cxt", "exports", "codegen_1", "util_1", "code_1", "additionalItems_1", "error", "len", "def", "cxt", "schema", "parentSchema", "it", "prefixItems", "exports", "codegen_1", "util_1", "error", "min", "max", "def", "cxt", "gen", "schema", "parentSchema", "data", "it", "minContains", "maxContains", "len", "cond", "valid", "validateItems", "validateItemsWithCount", "schValid", "count", "checkLimits", "_valid", "block", "i", "exports", "codegen_1", "util_1", "code_1", "exports", "property", "depsCount", "deps", "property_ies", "missingProperty", "def", "cxt", "propDeps", "schDeps", "splitDependencies", "validatePropertyDeps", "validateSchemaDeps", "schema", "propertyDeps", "schemaDeps", "key", "gen", "data", "it", "missing", "prop", "hasProperty", "depProp", "keyword", "valid", "schCxt", "codegen_1", "util_1", "error", "params", "def", "cxt", "gen", "schema", "data", "it", "valid", "key", "exports", "code_1", "codegen_1", "names_1", "util_1", "error", "params", "def", "cxt", "gen", "schema", "parentSchema", "data", "errsCount", "it", "allErrors", "opts", "props", "patProps", "checkAdditionalProperties", "key", "additionalPropertyCode", "isAdditional", "definedProp", "propsSchema", "p", "deleteAdditional", "valid", "applyAdditionalSchema", "errors", "subschema", "exports", "validate_1", "code_1", "util_1", "additionalProperties_1", "def", "cxt", "gen", "schema", "parentSchema", "data", "it", "allProps", "prop", "properties", "p", "valid", "hasDefault", "applyPropertySchema", "exports", "code_1", "codegen_1", "util_1", "util_2", "def", "cxt", "gen", "schema", "data", "parentSchema", "it", "opts", "patterns", "alwaysValidPatterns", "p", "checkProperties", "valid", "props", "validatePatternProperties", "pat", "checkMatchingProperties", "validateProperties", "prop", "key", "alwaysValid", "exports", "util_1", "def", "cxt", "gen", "schema", "it", "valid", "exports", "code_1", "def", "exports", "codegen_1", "util_1", "error", "params", "def", "cxt", "gen", "schema", "parentSchema", "it", "schArr", "valid", "passing", "schValid", "validateOneOf", "sch", "i", "schCxt", "exports", "util_1", "def", "cxt", "gen", "schema", "it", "valid", "sch", "i", "schCxt", "exports", "codegen_1", "util_1", "error", "params", "def", "cxt", "gen", "parentSchema", "it", "hasThen", "hasSchema", "hasElse", "valid", "schValid", "validateIf", "ifClause", "validateClause", "schCxt", "keyword", "schema", "exports", "util_1", "def", "keyword", "parentSchema", "it", "exports", "additionalItems_1", "prefixItems_1", "items_1", "items2020_1", "contains_1", "dependencies_1", "propertyNames_1", "additionalProperties_1", "properties_1", "patternProperties_1", "not_1", "anyOf_1", "oneOf_1", "allOf_1", "if_1", "thenElse_1", "getApplicator", "draft2020", "applicator", "exports", "codegen_1", "error", "schemaCode", "def", "cxt", "ruleType", "gen", "data", "$data", "schema", "it", "opts", "errSchemaPath", "schemaEnv", "self", "validate$DataFormat", "validateFormat", "fmts", "fDef", "fType", "format", "unknownFmt", "invalidFmt", "callFormat", "validData", "formatDef", "unknownFormat", "fmtType", "fmtRef", "getFormat", "validCondition", "unknownMsg", "fmtDef", "code", "fmt", "exports", "format_1", "format", "exports", "core_1", "validation_1", "applicator_1", "format_1", "metadataVocabulary", "draft4Vocabularies", "exports", "DiscrError", "exports", "codegen_1", "types_1", "compile_1", "ref_error_1", "util_1", "error", "discrError", "tagName", "tag", "def", "cxt", "gen", "data", "schema", "parentSchema", "it", "oneOf", "valid", "validateMapping", "mapping", "getMapping", "tagValue", "applyTagSchema", "schemaProp", "_valid", "schCxt", "oneOfMapping", "topRequired", "hasRequired", "tagRequired", "i", "sch", "ref", "propSch", "_a", "addMappings", "required", "addMapping", "exports", "require_json_schema_draft_04", "__commonJSMin", "exports", "module", "core_1", "draft4_1", "discriminator_1", "draft4MetaSchema", "META_SUPPORT_DATA", "META_SCHEMA_ID", "Ajv", "opts", "v", "metaSchema", "module", "exports", "core_2", "core_3", "def", "exports", "id_1", "ref_1", "core", "exports", "codegen_1", "ops", "KWDs", "error", "keyword", "schemaCode", "def", "cxt", "data", "exports", "limitNumber_1", "multipleOf_1", "limitLength_1", "pattern_1", "limitProperties_1", "required_1", "limitItems_1", "uniqueItems_1", "const_1", "enum_1", "validation", "exports", "codegen_1", "names_1", "compile_1", "ref_1", "def", "cxt", "dynamicAnchor", "anchor", "gen", "it", "v", "validate", "_getValidate", "exports", "schemaEnv", "schema", "self", "root", "baseId", "localRefs", "meta", "schemaId", "sch", "codegen_1", "names_1", "ref_1", "def", "cxt", "dynamicRef", "ref", "gen", "keyword", "it", "anchor", "_dynamicRef", "valid", "v", "_callRef", "validate", "exports", "dynamicAnchor_1", "util_1", "def", "cxt", "exports", "dynamicRef_1", "def", "cxt", "exports", "dynamicAnchor_1", "dynamicRef_1", "recursiveAnchor_1", "recursiveRef_1", "dynamic", "exports", "dependencies_1", "def", "cxt", "exports", "dependencies_1", "def", "cxt", "exports", "util_1", "def", "keyword", "parentSchema", "it", "exports", "dependentRequired_1", "dependentSchemas_1", "limitContains_1", "next", "exports", "codegen_1", "util_1", "names_1", "error", "params", "def", "cxt", "gen", "schema", "data", "errsCount", "it", "allErrors", "props", "key", "unevaluatedDynamic", "unevaluatedPropCode", "unevaluatedStatic", "valid", "evaluatedProps", "ps", "p", "exports", "codegen_1", "util_1", "error", "len", "def", "cxt", "gen", "schema", "data", "it", "items", "valid", "validateItems", "from", "i", "exports", "unevaluatedProperties_1", "unevaluatedItems_1", "unevaluated", "exports", "exports", "core_1", "validation_1", "applicator_1", "dynamic_1", "next_1", "unevaluated_1", "format_1", "metadata_1", "draft2020Vocabularies", "exports", "require_schema", "__commonJSMin", "exports", "module", "require_applicator", "__commonJSMin", "exports", "module", "require_unevaluated", "__commonJSMin", "exports", "module", "require_content", "__commonJSMin", "exports", "module", "require_core", "__commonJSMin", "exports", "module", "require_format_annotation", "__commonJSMin", "exports", "module", "require_meta_data", "__commonJSMin", "exports", "module", "require_validation", "__commonJSMin", "exports", "module", "metaSchema", "applicator", "unevaluated", "content", "core", "format", "metadata", "validation", "META_SUPPORT_DATA", "addMetaSchema2020", "$data", "with$data", "sch", "ajv", "exports", "core_1", "draft2020_1", "discriminator_1", "json_schema_2020_12_1", "META_SCHEMA_ID", "Ajv2020", "opts", "v", "$data", "meta", "exports", "module", "validate_1", "codegen_1", "validation_error_1", "ref_error_1", "require_apiDeclaration", "__commonJSMin", "exports", "module", "require_schema", "__commonJSMin", "exports", "module", "require_schema", "__commonJSMin", "exports", "module", "require_schema", "__commonJSMin", "exports", "module", "exports", "module", "require_schema", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "util", "ono", "AjvDraft4", "Ajv", "openapi", "validateSchema", "api", "ajv", "schema", "initializeAjv", "schemaDynamicRef", "err", "message", "formatAjvError", "draft04", "opts", "errors", "indent", "error", "require_lib", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "require_spec", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "util", "ono", "swaggerMethods", "primitiveTypes", "schemaTypes", "validateSpec", "api", "paths", "operationIds", "pathName", "path", "pathId", "validatePath", "definitions", "definitionName", "definition", "definitionId", "validateRequiredPropertiesExist", "operationName", "operation", "operationId", "declaredOperationId", "validateParameters", "responses", "responseName", "response", "responseId", "validateResponse", "pathParams", "operationParams", "checkForDuplicates", "e", "params", "combinedParams", "value", "param", "validateBodyParameters", "validatePathParameters", "validateParameterTypes", "bodyParams", "formParams", "placeholders", "j", "match", "parameterId", "schema", "validTypes", "validateSchema", "formData", "urlEncoded", "consume", "i", "outer", "inner", "code", "headers", "headerName", "header", "headerId", "schemaId", "collectProperties", "schemaObj", "props", "property", "parent", "requiredProperty", "dew", "_dewExec", "exports", "process", "cachedSetTimeout", "cachedClearTimeout", "defaultSetTimout", "defaultClearTimeout", "e", "runTimeout", "fun", "_global", "runClearTimeout", "marker", "queue", "draining", "currentQueue", "queueIndex", "cleanUpNextTick", "drainQueue", "timeout", "len", "args", "i", "Item", "array", "noop", "name", "dir", "init_chunk_2eac56ff", "__esmMin", "init_dirname", "init_buffer", "init_process", "dew", "_dewExec", "exports$1", "process$1", "process", "assertPath", "path", "normalizeStringPosix", "allowAboveRoot", "res", "lastSegmentLength", "lastSlash", "dots", "code", "i", "lastSlashIndex", "_format", "sep", "pathObject", "dir", "base", "posix", "resolvedPath", "resolvedAbsolute", "cwd", "isAbsolute", "trailingSeparator", "joined", "arg", "from", "to", "fromStart", "fromEnd", "fromLen", "toStart", "toEnd", "toLen", "length", "lastCommonSep", "fromCode", "toCode", "out", "hasRoot", "end", "matchedSlash", "ext", "start", "extIdx", "firstNonSlashEnd", "startDot", "startPart", "preDotState", "ret", "exports", "init_chunk_23dbec7b", "__esmMin", "init_dirname", "init_buffer", "init_process", "init_chunk_2eac56ff", "path_exports", "__export", "_makeLong", "basename", "exports", "delimiter", "dirname", "extname", "format", "isAbsolute", "join", "normalize", "parse", "posix", "relative", "resolve", "sep", "win32", "init_path", "__esmMin", "init_dirname", "init_buffer", "init_process", "init_chunk_23dbec7b", "init_chunk_2eac56ff", "require_convert_path_to_posix", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__importDefault", "mod", "convertPathToPosix", "path_1", "filePath", "_a", "_b", "_c", "_d", "_e", "require_is_windows", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "isWindowsConst", "isWindows", "require_url", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__createBinding", "o", "m", "k", "k2", "desc", "__setModuleDefault", "v", "__importStar", "mod", "result", "__importDefault", "resolve", "cwd", "getProtocol", "getExtension", "stripQuery", "getHash", "stripHash", "isHttp", "isFileSystemPath", "fromFileSystemPath", "toFileSystemPath", "safePointerToPath", "relative", "convert_path_to_posix_1", "path_1", "forwardSlashPattern", "protocolPattern", "jsonPointerSlash", "jsonPointerTilde", "path_2", "is_windows_1", "urlEncodePatterns", "urlDecodePatterns", "parse", "u", "from", "to", "_a", "fromUrl", "resolvedUrl", "endSpaces", "pathname", "search", "hash", "path", "process_exports", "lastChar", "match", "lastDot", "queryIndex", "hashIndex", "protocol", "projectDir", "upperPath", "posixUpper", "hasProjectDir", "hasProjectUri", "isAbsolutePath", "pattern", "keepFileProtocol", "i", "isFileUrl", "pointer", "value", "fromDir", "toPath", "require_errors", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "isHandledError", "normalizeError", "ono_1", "url_js_1", "JSONParserError", "message", "source", "JSONParserErrorGroup", "_JSONParserErrorGroup", "parser", "errors", "$ref", "ParserError", "UnmatchedParserError", "ResolverError", "ex", "UnmatchedResolverError", "MissingPointerError", "token", "path", "TimeoutError", "timeout", "InvalidPointerError", "pointer", "err", "require_pointer", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__createBinding", "o", "m", "k", "k2", "desc", "__setModuleDefault", "v", "__importStar", "mod", "result", "__importDefault", "ref_js_1", "url", "errors_js_1", "slashes", "tildes", "escapedSlash", "escapedTilde", "safeDecodeURIComponent", "encodedURIComponent", "e", "Pointer", "_Pointer", "$ref", "path", "friendlyPath", "obj", "options", "pathFromRoot", "tokens", "unwrapOrThrow", "i", "resolveIf$Ref", "isRootPath", "token", "didFindSubstringSlashMatch", "j", "joinedToken", "value", "setValue", "originalPath", "pointer", "split", "base", "$refPath", "resolved", "require_ref", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__importDefault", "mod", "pointer_js_1", "errors_js_1", "url_js_1", "$Ref", "_$Ref", "$refs", "err", "existingErrors", "footprint", "path", "options", "e", "_a", "friendlyPath", "pathFromRoot", "pointer", "value", "$ref", "resolvedValue", "merged", "key", "require_refs", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__createBinding", "o", "m", "k", "k2", "desc", "__setModuleDefault", "v", "__importStar", "mod", "result", "__importDefault", "ono_1", "ref_js_1", "url", "convert_path_to_posix_1", "$Refs", "types", "getPaths", "path", "$refs", "obj", "options", "e", "value", "absPath", "withoutHash", "$ref", "pathFromRoot", "paths", "key", "require_plugins", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "all", "filter", "sort", "run", "plugins", "key", "method", "file", "plugin", "getResult", "a", "b", "$refs", "lastError", "index", "resolve", "reject", "runNextPlugin", "result", "callback", "onSuccess", "onError", "e", "err", "error", "obj", "prop", "value", "require_parse", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__createBinding", "o", "m", "k", "k2", "desc", "__setModuleDefault", "v", "__importStar", "mod", "result", "ono_1", "url", "plugins", "errors_js_1", "parse", "path", "$refs", "options", "hashIndex", "hash", "$ref", "file", "resolver", "readFile", "parser", "parseFile", "err", "resolvers", "allParsers", "filteredParsers", "parsers", "isEmpty", "value", "Buffer", "require_json", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "errors_js_1", "file", "data", "Buffer", "e", "firstCurlyBrace", "require_yaml", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__importDefault", "mod", "errors_js_1", "js_yaml_1", "js_yaml_2", "file", "data", "Buffer", "e", "require_text", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "errors_js_1", "TEXT_REGEXP", "file", "Buffer", "require_binary", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "BINARY_REGEXP", "file", "Buffer", "empty_exports", "__export", "empty_default", "init_empty", "__esmMin", "init_dirname", "init_buffer", "init_process", "require_file", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__createBinding", "o", "m", "k", "k2", "desc", "__setModuleDefault", "v", "__importStar", "mod", "result", "__importDefault", "fs_1", "ono_1", "url", "errors_js_1", "file", "path", "err", "require_http", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__createBinding", "o", "m", "k", "k2", "desc", "__setModuleDefault", "v", "__importStar", "mod", "result", "ono_1", "url", "errors_js_1", "file", "u", "download", "httpOptions", "_redirects", "redirects", "res", "get", "redirectTo", "buf", "Buffer", "err", "controller", "timeoutId", "response", "require_options", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__importDefault", "mod", "json_js_1", "yaml_js_1", "text_js_1", "binary_js_1", "file_js_1", "http_js_1", "getJsonSchemaRefParserDefaultOptions", "getNewOptions", "options", "newOptions", "merge", "target", "source", "isMergeable", "keys", "key", "i", "sourceSetting", "targetSetting", "val", "require_normalize_args", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "normalizeArgs", "options_js_1", "_args", "path", "schema", "options", "callback", "args", "e", "require_resolve_external", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__createBinding", "o", "m", "k", "k2", "desc", "__setModuleDefault", "v", "__importStar", "mod", "result", "__importDefault", "ref_js_1", "pointer_js_1", "parse_js_1", "url", "errors_js_1", "resolveExternal", "parser", "options", "_a", "promises", "crawl", "e", "obj", "path", "$refs", "seen", "external", "resolve$Ref", "keys", "key", "keyPath", "value", "$ref", "shouldResolveOnCwd", "resolvedPath", "withoutHash", "ref", "err", "require_bundle", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__createBinding", "o", "m", "k", "k2", "desc", "__setModuleDefault", "v", "__importStar", "mod", "result", "__importDefault", "ref_js_1", "pointer_js_1", "url", "bundle", "parser", "options", "inventory", "crawl", "remap", "parent", "key", "path", "pathFromRoot", "indirections", "$refs", "obj", "inventory$Ref", "keys", "a", "b", "keyPath", "keyPathFromRoot", "value", "$refParent", "$refKey", "$ref", "$refPath", "pointer", "depth", "file", "hash", "external", "extended", "existingEntry", "findInInventory", "removeFromInventory", "aDefinitionsIndex", "bDefinitionsIndex", "entry", "index", "require_dereference", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__createBinding", "o", "m", "k", "k2", "desc", "__setModuleDefault", "v", "__importStar", "mod", "result", "__importDefault", "ref_js_1", "pointer_js_1", "ono_1", "url", "errors_1", "dereference", "parser", "options", "start", "dereferenced", "crawl", "obj", "path", "pathFromRoot", "parents", "processedObjects", "dereferencedCache", "$refs", "startTime", "_a", "derefOptions", "isExcludedPath", "dereference$Ref", "key", "keyPath", "keyPathFromRoot", "value", "circular", "foundCircularReference", "$ref", "_b", "shouldResolveOnCwd", "$refPath", "cache", "refKeys", "extraKeys", "pointer", "directCircular", "dereferencedValue", "dereferencedObject", "require_next", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "makeNext", "process_exports", "f", "require_maybe", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__importDefault", "mod", "maybe", "next_js_1", "cb", "promise", "result", "err", "require_lib", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__createBinding", "o", "m", "k", "k2", "desc", "__setModuleDefault", "v", "__importStar", "mod", "result", "__importDefault", "refs_js_1", "parse_js_1", "normalize_args_js_1", "resolve_external_js_1", "bundle_js_1", "dereference_js_1", "url", "errors_js_1", "ono_1", "maybe_js_1", "options_js_1", "$RefParser", "_$RefParser", "args", "promise", "err", "pathType", "params", "port", "$ref", "Buffer", "parser", "finalize", "instance", "require_options", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "getJsonSchemaRefParserDefaultOptions", "schemaValidator", "specValidator", "ParserOptions", "merge", "target", "source", "isMergeable", "keys", "key", "i", "sourceSetting", "targetSetting", "val", "_options", "defaultOptions", "options", "require_next", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "makeNext", "process_exports", "f", "require_maybe", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "next", "cb", "promise", "result", "err", "require_lib", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "validateSchema", "validateSpec", "normalizeArgs", "util", "Options", "maybe", "ono", "$RefParser", "dereference", "SwaggerParser", "path", "api", "options", "callback", "args", "schema", "supportedVersions", "err", "me", "circular$RefOption", "defaultExport", "require_parser", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "form", "editors", "analytics", "ono", "SwaggerParser", "swaggerParser", "counters", "parser", "event", "parseSwagger", "options", "method", "api", "results", "key", "err", "init_dirname", "init_buffer", "init_process", "form", "querystring", "dropdowns", "editors", "samples", "parser", "analytics"]
    +  "sourcesContent": ["export const __dirname = \"/\";\n", "function unimplemented(name) {\r\n  throw new Error('Node.js process ' + name + ' is not supported by JSPM core outside of Node.js');\r\n}\r\n\r\nvar queue = [];\r\nvar draining = false;\r\nvar currentQueue;\r\nvar queueIndex = -1;\r\n\r\nfunction cleanUpNextTick() {\r\n  if (!draining || !currentQueue)\r\n    return;\r\n  draining = false;\r\n  if (currentQueue.length) {\r\n    queue = currentQueue.concat(queue);\r\n  }\r\n  else {\r\n    queueIndex = -1;\r\n  }\r\n  if (queue.length)\r\n    drainQueue();\r\n}\r\n\r\nfunction drainQueue() {\r\n  if (draining)\r\n    return;\r\n  var timeout = setTimeout(cleanUpNextTick, 0);\r\n  draining = true;\r\n\r\n  var len = queue.length;\r\n  while(len) {\r\n    currentQueue = queue;\r\n    queue = [];\r\n    while (++queueIndex < len) {\r\n      if (currentQueue)\r\n        currentQueue[queueIndex].run();\r\n    }\r\n    queueIndex = -1;\r\n    len = queue.length;\r\n  }\r\n  currentQueue = null;\r\n  draining = false;\r\n  clearTimeout(timeout);\r\n}\r\n\r\nfunction nextTick (fun) {\r\n  var args = new Array(arguments.length - 1);\r\n  if (arguments.length > 1) {\r\n    for (var i = 1; i < arguments.length; i++)\r\n      args[i - 1] = arguments[i];\r\n  }\r\n  queue.push(new Item(fun, args));\r\n  if (queue.length === 1 && !draining)\r\n    setTimeout(drainQueue, 0);\r\n}\r\n// v8 likes predictible objects\r\nfunction Item(fun, array) {\r\n  this.fun = fun;\r\n  this.array = array;\r\n}\r\nItem.prototype.run = function () {\r\n  this.fun.apply(null, this.array);\r\n};\r\n\r\nvar title = 'browser';\r\nvar arch = 'x64';\r\nvar platform = 'browser';\r\nvar env = {\r\n  PATH: '/usr/bin',\r\n  LANG: navigator.language + '.UTF-8',\r\n  PWD: '/',\r\n  HOME: '/home',\r\n  TMP: '/tmp',\r\n};\r\nvar argv = ['/usr/bin/node'];\r\nvar execArgv = [];\r\nvar version = 'v16.8.0';\r\nvar versions = {};\r\n\r\nvar emitWarning = function(message, type) {\r\n  console.warn((type ? (type + ': ') : '') + message);\r\n};\r\n\r\nvar binding = function(name) { unimplemented('binding'); };\r\n\r\nvar umask = function(mask) { return 0; };\r\n\r\nvar cwd = function() { return '/'; };\r\nvar chdir = function(dir) {};\r\n\r\nvar release = {\r\n  name: 'node',\r\n  sourceUrl: '',\r\n  headersUrl: '',\r\n  libUrl: '',\r\n};\r\n\r\nfunction noop() {}\r\n\r\nvar _rawDebug = noop;\r\nvar moduleLoadList = [];\r\nfunction _linkedBinding(name) { unimplemented('_linkedBinding'); }\r\nvar domain = {};\r\nvar _exiting = false;\r\nvar config = {};\r\nfunction dlopen(name) { unimplemented('dlopen'); }\r\nfunction _getActiveRequests() { return []; }\r\nfunction _getActiveHandles() { return []; }\r\nvar reallyExit = noop;\r\nvar _kill = noop;\r\nvar cpuUsage = function() { return {}; };\r\nvar resourceUsage = cpuUsage;\r\nvar memoryUsage = cpuUsage;\r\nvar kill = noop;\r\nvar exit = noop;\r\nvar openStdin = noop;\r\nvar allowedNodeEnvironmentFlags = {};\r\nfunction assert(condition, message) {\r\n  if (!condition) throw new Error(message || 'assertion error');\r\n}\r\nvar features = {\r\n  inspector: false,\r\n  debug: false,\r\n  uv: false,\r\n  ipv6: false,\r\n  tls_alpn: false,\r\n  tls_sni: false,\r\n  tls_ocsp: false,\r\n  tls: false,\r\n  cached_builtins: true,\r\n};\r\nvar _fatalExceptions = noop;\r\nvar setUncaughtExceptionCaptureCallback = noop;\r\nfunction hasUncaughtExceptionCaptureCallback() { return false; }var _tickCallback = noop;\r\nvar _debugProcess = noop;\r\nvar _debugEnd = noop;\r\nvar _startProfilerIdleNotifier = noop;\r\nvar _stopProfilerIdleNotifier = noop;\r\nvar stdout = undefined;\r\nvar stderr = undefined;\r\nvar stdin = undefined;\r\nvar abort = noop;\r\nvar pid = 2;\r\nvar ppid = 1;\r\nvar execPath = '/bin/usr/node';\r\nvar debugPort = 9229;\r\nvar argv0 = 'node';\r\nvar _preload_modules = [];\r\nvar setSourceMapsEnabled = noop;\r\n\r\nvar _performance = {\r\n  now: typeof performance !== 'undefined' ? performance.now.bind(performance) : undefined,\r\n  timing: typeof performance !== 'undefined' ? performance.timing : undefined,\r\n};\r\nif (_performance.now === undefined) {\r\n  var nowOffset = Date.now();\r\n\r\n  if (_performance.timing && _performance.timing.navigationStart) {\r\n    nowOffset = _performance.timing.navigationStart;\r\n  }\r\n  _performance.now = () => Date.now() - nowOffset;\r\n}\r\n\r\nfunction uptime() {\r\n  return _performance.now() / 1000;\r\n}\r\n\r\nvar nanoPerSec = 1000000000;\r\nfunction hrtime(previousTimestamp) {\r\n  var baseNow = Math.floor((Date.now() - _performance.now()) * 1e-3);\r\n  var clocktime = _performance.now() * 1e-3;\r\n  var seconds = Math.floor(clocktime) + baseNow;\r\n  var nanoseconds = Math.floor((clocktime % 1) * 1e9);\r\n  if (previousTimestamp) {\r\n    seconds = seconds - previousTimestamp[0];\r\n    nanoseconds = nanoseconds - previousTimestamp[1];\r\n    if (nanoseconds < 0) {\r\n      seconds--;\r\n      nanoseconds += nanoPerSec;\r\n    }\r\n  }\r\n  return [seconds, nanoseconds];\r\n}hrtime.bigint = function(time) {\r\n  var diff = hrtime(time);\r\n  if (typeof BigInt === 'undefined') {\r\n    return diff[0] * nanoPerSec + diff[1];\r\n  }\r\n  return BigInt(diff[0] * nanoPerSec) + BigInt(diff[1]);\r\n};\r\n\r\nvar _maxListeners = 10;\r\nvar _events = {};\r\nvar _eventsCount = 0;\r\nfunction on () { return process }var addListener = on;\r\nvar once = on;\r\nvar off = on;\r\nvar removeListener = on;\r\nvar removeAllListeners = on;\r\nvar emit = noop;\r\nvar prependListener = on;\r\nvar prependOnceListener = on;\r\nfunction listeners (name) { return []; }\r\nvar process = {\r\n  version,\r\n  versions,\r\n  arch,\r\n  platform,\r\n  release,\r\n  _rawDebug,\r\n  moduleLoadList,\r\n  binding,\r\n  _linkedBinding,\r\n  _events,\r\n  _eventsCount,\r\n  _maxListeners,\r\n  on,\r\n  addListener,\r\n  once,\r\n  off,\r\n  removeListener,\r\n  removeAllListeners,\r\n  emit,\r\n  prependListener,\r\n  prependOnceListener,\r\n  listeners,\r\n  domain,\r\n  _exiting,\r\n  config,\r\n  dlopen,\r\n  uptime,\r\n  _getActiveRequests,\r\n  _getActiveHandles,\r\n  reallyExit,\r\n  _kill,\r\n  cpuUsage,\r\n  resourceUsage,\r\n  memoryUsage,\r\n  kill,\r\n  exit,\r\n  openStdin,\r\n  allowedNodeEnvironmentFlags,\r\n  assert,\r\n  features,\r\n  _fatalExceptions,\r\n  setUncaughtExceptionCaptureCallback,\r\n  hasUncaughtExceptionCaptureCallback,\r\n  emitWarning,\r\n  nextTick,\r\n  _tickCallback,\r\n  _debugProcess,\r\n  _debugEnd,\r\n  _startProfilerIdleNotifier,\r\n  _stopProfilerIdleNotifier,\r\n  stdout,\r\n  stdin,\r\n  stderr,\r\n  abort,\r\n  umask,\r\n  chdir,\r\n  cwd,\r\n  env,\r\n  title,\r\n  argv,\r\n  execArgv,\r\n  pid,\r\n  ppid,\r\n  execPath,\r\n  debugPort,\r\n  hrtime,\r\n  argv0,\r\n  _preload_modules,\r\n  setSourceMapsEnabled,\r\n};\n\nexport { _debugEnd, _debugProcess, _events, _eventsCount, _exiting, _fatalExceptions, _getActiveHandles, _getActiveRequests, _kill, _linkedBinding, _maxListeners, _preload_modules, _rawDebug, _startProfilerIdleNotifier, _stopProfilerIdleNotifier, _tickCallback, abort, addListener, allowedNodeEnvironmentFlags, arch, argv, argv0, assert, binding, chdir, config, cpuUsage, cwd, debugPort, process as default, dlopen, domain, emit, emitWarning, env, execArgv, execPath, exit, features, hasUncaughtExceptionCaptureCallback, hrtime, kill, listeners, memoryUsage, moduleLoadList, nextTick, off, on, once, openStdin, pid, platform, ppid, prependListener, prependOnceListener, reallyExit, release, removeAllListeners, removeListener, resourceUsage, setSourceMapsEnabled, setUncaughtExceptionCaptureCallback, stderr, stdin, stdout, title, umask, uptime, version, versions };\n", "export * as process from \"process\";\n", "var exports$3 = {},\n    _dewExec$2 = false;\nfunction dew$2() {\n  if (_dewExec$2) return exports$3;\n  _dewExec$2 = true;\n  exports$3.byteLength = byteLength;\n  exports$3.toByteArray = toByteArray;\n  exports$3.fromByteArray = fromByteArray;\n  var lookup = [];\n  var revLookup = [];\n  var Arr = typeof Uint8Array !== \"undefined\" ? Uint8Array : Array;\n  var code = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n\n  for (var i = 0, len = code.length; i < len; ++i) {\n    lookup[i] = code[i];\n    revLookup[code.charCodeAt(i)] = i;\n  } // Support decoding URL-safe base64 strings, as Node.js does.\n  // See: https://en.wikipedia.org/wiki/Base64#URL_applications\n\n\n  revLookup[\"-\".charCodeAt(0)] = 62;\n  revLookup[\"_\".charCodeAt(0)] = 63;\n\n  function getLens(b64) {\n    var len = b64.length;\n\n    if (len % 4 > 0) {\n      throw new Error(\"Invalid string. Length must be a multiple of 4\");\n    } // Trim off extra bytes after placeholder bytes are found\n    // See: https://github.com/beatgammit/base64-js/issues/42\n\n\n    var validLen = b64.indexOf(\"=\");\n    if (validLen === -1) validLen = len;\n    var placeHoldersLen = validLen === len ? 0 : 4 - validLen % 4;\n    return [validLen, placeHoldersLen];\n  } // base64 is 4/3 + up to two characters of the original data\n\n\n  function byteLength(b64) {\n    var lens = getLens(b64);\n    var validLen = lens[0];\n    var placeHoldersLen = lens[1];\n    return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;\n  }\n\n  function _byteLength(b64, validLen, placeHoldersLen) {\n    return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;\n  }\n\n  function toByteArray(b64) {\n    var tmp;\n    var lens = getLens(b64);\n    var validLen = lens[0];\n    var placeHoldersLen = lens[1];\n    var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen));\n    var curByte = 0; // if there are placeholders, only get up to the last complete 4 chars\n\n    var len = placeHoldersLen > 0 ? validLen - 4 : validLen;\n    var i;\n\n    for (i = 0; i < len; i += 4) {\n      tmp = revLookup[b64.charCodeAt(i)] << 18 | revLookup[b64.charCodeAt(i + 1)] << 12 | revLookup[b64.charCodeAt(i + 2)] << 6 | revLookup[b64.charCodeAt(i + 3)];\n      arr[curByte++] = tmp >> 16 & 255;\n      arr[curByte++] = tmp >> 8 & 255;\n      arr[curByte++] = tmp & 255;\n    }\n\n    if (placeHoldersLen === 2) {\n      tmp = revLookup[b64.charCodeAt(i)] << 2 | revLookup[b64.charCodeAt(i + 1)] >> 4;\n      arr[curByte++] = tmp & 255;\n    }\n\n    if (placeHoldersLen === 1) {\n      tmp = revLookup[b64.charCodeAt(i)] << 10 | revLookup[b64.charCodeAt(i + 1)] << 4 | revLookup[b64.charCodeAt(i + 2)] >> 2;\n      arr[curByte++] = tmp >> 8 & 255;\n      arr[curByte++] = tmp & 255;\n    }\n\n    return arr;\n  }\n\n  function tripletToBase64(num) {\n    return lookup[num >> 18 & 63] + lookup[num >> 12 & 63] + lookup[num >> 6 & 63] + lookup[num & 63];\n  }\n\n  function encodeChunk(uint8, start, end) {\n    var tmp;\n    var output = [];\n\n    for (var i = start; i < end; i += 3) {\n      tmp = (uint8[i] << 16 & 16711680) + (uint8[i + 1] << 8 & 65280) + (uint8[i + 2] & 255);\n      output.push(tripletToBase64(tmp));\n    }\n\n    return output.join(\"\");\n  }\n\n  function fromByteArray(uint8) {\n    var tmp;\n    var len = uint8.length;\n    var extraBytes = len % 3; // if we have 1 byte left, pad 2 bytes\n\n    var parts = [];\n    var maxChunkLength = 16383; // must be multiple of 3\n    // go through the array every three bytes, we'll deal with trailing stuff later\n\n    for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n      parts.push(encodeChunk(uint8, i, i + maxChunkLength > len2 ? len2 : i + maxChunkLength));\n    } // pad the end with zeros, but make sure to not forget the extra bytes\n\n\n    if (extraBytes === 1) {\n      tmp = uint8[len - 1];\n      parts.push(lookup[tmp >> 2] + lookup[tmp << 4 & 63] + \"==\");\n    } else if (extraBytes === 2) {\n      tmp = (uint8[len - 2] << 8) + uint8[len - 1];\n      parts.push(lookup[tmp >> 10] + lookup[tmp >> 4 & 63] + lookup[tmp << 2 & 63] + \"=\");\n    }\n\n    return parts.join(\"\");\n  }\n\n  return exports$3;\n}\n\nvar exports$2 = {},\n    _dewExec$1 = false;\nfunction dew$1() {\n  if (_dewExec$1) return exports$2;\n  _dewExec$1 = true;\n\n  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh  */\n  exports$2.read = function (buffer, offset, isLE, mLen, nBytes) {\n    var e, m;\n    var eLen = nBytes * 8 - mLen - 1;\n    var eMax = (1 << eLen) - 1;\n    var eBias = eMax >> 1;\n    var nBits = -7;\n    var i = isLE ? nBytes - 1 : 0;\n    var d = isLE ? -1 : 1;\n    var s = buffer[offset + i];\n    i += d;\n    e = s & (1 << -nBits) - 1;\n    s >>= -nBits;\n    nBits += eLen;\n\n    for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n    m = e & (1 << -nBits) - 1;\n    e >>= -nBits;\n    nBits += mLen;\n\n    for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n    if (e === 0) {\n      e = 1 - eBias;\n    } else if (e === eMax) {\n      return m ? NaN : (s ? -1 : 1) * Infinity;\n    } else {\n      m = m + Math.pow(2, mLen);\n      e = e - eBias;\n    }\n\n    return (s ? -1 : 1) * m * Math.pow(2, e - mLen);\n  };\n\n  exports$2.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n    var e, m, c;\n    var eLen = nBytes * 8 - mLen - 1;\n    var eMax = (1 << eLen) - 1;\n    var eBias = eMax >> 1;\n    var rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;\n    var i = isLE ? 0 : nBytes - 1;\n    var d = isLE ? 1 : -1;\n    var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;\n    value = Math.abs(value);\n\n    if (isNaN(value) || value === Infinity) {\n      m = isNaN(value) ? 1 : 0;\n      e = eMax;\n    } else {\n      e = Math.floor(Math.log(value) / Math.LN2);\n\n      if (value * (c = Math.pow(2, -e)) < 1) {\n        e--;\n        c *= 2;\n      }\n\n      if (e + eBias >= 1) {\n        value += rt / c;\n      } else {\n        value += rt * Math.pow(2, 1 - eBias);\n      }\n\n      if (value * c >= 2) {\n        e++;\n        c /= 2;\n      }\n\n      if (e + eBias >= eMax) {\n        m = 0;\n        e = eMax;\n      } else if (e + eBias >= 1) {\n        m = (value * c - 1) * Math.pow(2, mLen);\n        e = e + eBias;\n      } else {\n        m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);\n        e = 0;\n      }\n    }\n\n    for (; mLen >= 8; buffer[offset + i] = m & 255, i += d, m /= 256, mLen -= 8) {}\n\n    e = e << mLen | m;\n    eLen += mLen;\n\n    for (; eLen > 0; buffer[offset + i] = e & 255, i += d, e /= 256, eLen -= 8) {}\n\n    buffer[offset + i - d] |= s * 128;\n  };\n\n  return exports$2;\n}\n\nvar exports$1 = {},\n    _dewExec = false;\nfunction dew() {\n  if (_dewExec) return exports$1;\n  _dewExec = true;\n\n  const base64 = dew$2();\n\n  const ieee754 = dew$1();\n\n  const customInspectSymbol = typeof Symbol === \"function\" && typeof Symbol[\"for\"] === \"function\" ? Symbol[\"for\"](\"nodejs.util.inspect.custom\") // eslint-disable-line dot-notation\n  : null;\n  exports$1.Buffer = Buffer;\n  exports$1.SlowBuffer = SlowBuffer;\n  exports$1.INSPECT_MAX_BYTES = 50;\n  const K_MAX_LENGTH = 2147483647;\n  exports$1.kMaxLength = K_MAX_LENGTH;\n  /**\n   * If `Buffer.TYPED_ARRAY_SUPPORT`:\n   *   === true    Use Uint8Array implementation (fastest)\n   *   === false   Print warning and recommend using `buffer` v4.x which has an Object\n   *               implementation (most compatible, even IE6)\n   *\n   * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n   * Opera 11.6+, iOS 4.2+.\n   *\n   * We report that the browser does not support typed arrays if the are not subclassable\n   * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\n   * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\n   * for __proto__ and has a buggy typed array implementation.\n   */\n\n  Buffer.TYPED_ARRAY_SUPPORT = typedArraySupport();\n\n  if (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== \"undefined\" && typeof console.error === \"function\") {\n    console.error(\"This browser lacks typed array (Uint8Array) support which is required by \" + \"`buffer` v5.x. Use `buffer` v4.x if you require old browser support.\");\n  }\n\n  function typedArraySupport() {\n    // Can typed array instances can be augmented?\n    try {\n      const arr = new Uint8Array(1);\n      const proto = {\n        foo: function () {\n          return 42;\n        }\n      };\n      Object.setPrototypeOf(proto, Uint8Array.prototype);\n      Object.setPrototypeOf(arr, proto);\n      return arr.foo() === 42;\n    } catch (e) {\n      return false;\n    }\n  }\n\n  Object.defineProperty(Buffer.prototype, \"parent\", {\n    enumerable: true,\n    get: function () {\n      if (!Buffer.isBuffer(this)) return undefined;\n      return this.buffer;\n    }\n  });\n  Object.defineProperty(Buffer.prototype, \"offset\", {\n    enumerable: true,\n    get: function () {\n      if (!Buffer.isBuffer(this)) return undefined;\n      return this.byteOffset;\n    }\n  });\n\n  function createBuffer(length) {\n    if (length > K_MAX_LENGTH) {\n      throw new RangeError(\"The value \\\"\" + length + \"\\\" is invalid for option \\\"size\\\"\");\n    } // Return an augmented `Uint8Array` instance\n\n\n    const buf = new Uint8Array(length);\n    Object.setPrototypeOf(buf, Buffer.prototype);\n    return buf;\n  }\n  /**\n   * The Buffer constructor returns instances of `Uint8Array` that have their\n   * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n   * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n   * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n   * returns a single octet.\n   *\n   * The `Uint8Array` prototype remains unmodified.\n   */\n\n\n  function Buffer(arg, encodingOrOffset, length) {\n    // Common case.\n    if (typeof arg === \"number\") {\n      if (typeof encodingOrOffset === \"string\") {\n        throw new TypeError(\"The \\\"string\\\" argument must be of type string. Received type number\");\n      }\n\n      return allocUnsafe(arg);\n    }\n\n    return from(arg, encodingOrOffset, length);\n  }\n\n  Buffer.poolSize = 8192; // not used by this implementation\n\n  function from(value, encodingOrOffset, length) {\n    if (typeof value === \"string\") {\n      return fromString(value, encodingOrOffset);\n    }\n\n    if (ArrayBuffer.isView(value)) {\n      return fromArrayView(value);\n    }\n\n    if (value == null) {\n      throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, \" + \"or Array-like Object. Received type \" + typeof value);\n    }\n\n    if (isInstance(value, ArrayBuffer) || value && isInstance(value.buffer, ArrayBuffer)) {\n      return fromArrayBuffer(value, encodingOrOffset, length);\n    }\n\n    if (typeof SharedArrayBuffer !== \"undefined\" && (isInstance(value, SharedArrayBuffer) || value && isInstance(value.buffer, SharedArrayBuffer))) {\n      return fromArrayBuffer(value, encodingOrOffset, length);\n    }\n\n    if (typeof value === \"number\") {\n      throw new TypeError(\"The \\\"value\\\" argument must not be of type number. Received type number\");\n    }\n\n    const valueOf = value.valueOf && value.valueOf();\n\n    if (valueOf != null && valueOf !== value) {\n      return Buffer.from(valueOf, encodingOrOffset, length);\n    }\n\n    const b = fromObject(value);\n    if (b) return b;\n\n    if (typeof Symbol !== \"undefined\" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === \"function\") {\n      return Buffer.from(value[Symbol.toPrimitive](\"string\"), encodingOrOffset, length);\n    }\n\n    throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, \" + \"or Array-like Object. Received type \" + typeof value);\n  }\n  /**\n   * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n   * if value is a number.\n   * Buffer.from(str[, encoding])\n   * Buffer.from(array)\n   * Buffer.from(buffer)\n   * Buffer.from(arrayBuffer[, byteOffset[, length]])\n   **/\n\n\n  Buffer.from = function (value, encodingOrOffset, length) {\n    return from(value, encodingOrOffset, length);\n  }; // Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:\n  // https://github.com/feross/buffer/pull/148\n\n\n  Object.setPrototypeOf(Buffer.prototype, Uint8Array.prototype);\n  Object.setPrototypeOf(Buffer, Uint8Array);\n\n  function assertSize(size) {\n    if (typeof size !== \"number\") {\n      throw new TypeError(\"\\\"size\\\" argument must be of type number\");\n    } else if (size < 0) {\n      throw new RangeError(\"The value \\\"\" + size + \"\\\" is invalid for option \\\"size\\\"\");\n    }\n  }\n\n  function alloc(size, fill, encoding) {\n    assertSize(size);\n\n    if (size <= 0) {\n      return createBuffer(size);\n    }\n\n    if (fill !== undefined) {\n      // Only pay attention to encoding if it's a string. This\n      // prevents accidentally sending in a number that would\n      // be interpreted as a start offset.\n      return typeof encoding === \"string\" ? createBuffer(size).fill(fill, encoding) : createBuffer(size).fill(fill);\n    }\n\n    return createBuffer(size);\n  }\n  /**\n   * Creates a new filled Buffer instance.\n   * alloc(size[, fill[, encoding]])\n   **/\n\n\n  Buffer.alloc = function (size, fill, encoding) {\n    return alloc(size, fill, encoding);\n  };\n\n  function allocUnsafe(size) {\n    assertSize(size);\n    return createBuffer(size < 0 ? 0 : checked(size) | 0);\n  }\n  /**\n   * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n   * */\n\n\n  Buffer.allocUnsafe = function (size) {\n    return allocUnsafe(size);\n  };\n  /**\n   * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n   */\n\n\n  Buffer.allocUnsafeSlow = function (size) {\n    return allocUnsafe(size);\n  };\n\n  function fromString(string, encoding) {\n    if (typeof encoding !== \"string\" || encoding === \"\") {\n      encoding = \"utf8\";\n    }\n\n    if (!Buffer.isEncoding(encoding)) {\n      throw new TypeError(\"Unknown encoding: \" + encoding);\n    }\n\n    const length = byteLength(string, encoding) | 0;\n    let buf = createBuffer(length);\n    const actual = buf.write(string, encoding);\n\n    if (actual !== length) {\n      // Writing a hex string, for example, that contains invalid characters will\n      // cause everything after the first invalid character to be ignored. (e.g.\n      // 'abxxcd' will be treated as 'ab')\n      buf = buf.slice(0, actual);\n    }\n\n    return buf;\n  }\n\n  function fromArrayLike(array) {\n    const length = array.length < 0 ? 0 : checked(array.length) | 0;\n    const buf = createBuffer(length);\n\n    for (let i = 0; i < length; i += 1) {\n      buf[i] = array[i] & 255;\n    }\n\n    return buf;\n  }\n\n  function fromArrayView(arrayView) {\n    if (isInstance(arrayView, Uint8Array)) {\n      const copy = new Uint8Array(arrayView);\n      return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength);\n    }\n\n    return fromArrayLike(arrayView);\n  }\n\n  function fromArrayBuffer(array, byteOffset, length) {\n    if (byteOffset < 0 || array.byteLength < byteOffset) {\n      throw new RangeError(\"\\\"offset\\\" is outside of buffer bounds\");\n    }\n\n    if (array.byteLength < byteOffset + (length || 0)) {\n      throw new RangeError(\"\\\"length\\\" is outside of buffer bounds\");\n    }\n\n    let buf;\n\n    if (byteOffset === undefined && length === undefined) {\n      buf = new Uint8Array(array);\n    } else if (length === undefined) {\n      buf = new Uint8Array(array, byteOffset);\n    } else {\n      buf = new Uint8Array(array, byteOffset, length);\n    } // Return an augmented `Uint8Array` instance\n\n\n    Object.setPrototypeOf(buf, Buffer.prototype);\n    return buf;\n  }\n\n  function fromObject(obj) {\n    if (Buffer.isBuffer(obj)) {\n      const len = checked(obj.length) | 0;\n      const buf = createBuffer(len);\n\n      if (buf.length === 0) {\n        return buf;\n      }\n\n      obj.copy(buf, 0, 0, len);\n      return buf;\n    }\n\n    if (obj.length !== undefined) {\n      if (typeof obj.length !== \"number\" || numberIsNaN(obj.length)) {\n        return createBuffer(0);\n      }\n\n      return fromArrayLike(obj);\n    }\n\n    if (obj.type === \"Buffer\" && Array.isArray(obj.data)) {\n      return fromArrayLike(obj.data);\n    }\n  }\n\n  function checked(length) {\n    // Note: cannot use `length < K_MAX_LENGTH` here because that fails when\n    // length is NaN (which is otherwise coerced to zero.)\n    if (length >= K_MAX_LENGTH) {\n      throw new RangeError(\"Attempt to allocate Buffer larger than maximum \" + \"size: 0x\" + K_MAX_LENGTH.toString(16) + \" bytes\");\n    }\n\n    return length | 0;\n  }\n\n  function SlowBuffer(length) {\n    if (+length != length) {\n      // eslint-disable-line eqeqeq\n      length = 0;\n    }\n\n    return Buffer.alloc(+length);\n  }\n\n  Buffer.isBuffer = function isBuffer(b) {\n    return b != null && b._isBuffer === true && b !== Buffer.prototype; // so Buffer.isBuffer(Buffer.prototype) will be false\n  };\n\n  Buffer.compare = function compare(a, b) {\n    if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength);\n    if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength);\n\n    if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n      throw new TypeError(\"The \\\"buf1\\\", \\\"buf2\\\" arguments must be one of type Buffer or Uint8Array\");\n    }\n\n    if (a === b) return 0;\n    let x = a.length;\n    let y = b.length;\n\n    for (let i = 0, len = Math.min(x, y); i < len; ++i) {\n      if (a[i] !== b[i]) {\n        x = a[i];\n        y = b[i];\n        break;\n      }\n    }\n\n    if (x < y) return -1;\n    if (y < x) return 1;\n    return 0;\n  };\n\n  Buffer.isEncoding = function isEncoding(encoding) {\n    switch (String(encoding).toLowerCase()) {\n      case \"hex\":\n      case \"utf8\":\n      case \"utf-8\":\n      case \"ascii\":\n      case \"latin1\":\n      case \"binary\":\n      case \"base64\":\n      case \"ucs2\":\n      case \"ucs-2\":\n      case \"utf16le\":\n      case \"utf-16le\":\n        return true;\n\n      default:\n        return false;\n    }\n  };\n\n  Buffer.concat = function concat(list, length) {\n    if (!Array.isArray(list)) {\n      throw new TypeError(\"\\\"list\\\" argument must be an Array of Buffers\");\n    }\n\n    if (list.length === 0) {\n      return Buffer.alloc(0);\n    }\n\n    let i;\n\n    if (length === undefined) {\n      length = 0;\n\n      for (i = 0; i < list.length; ++i) {\n        length += list[i].length;\n      }\n    }\n\n    const buffer = Buffer.allocUnsafe(length);\n    let pos = 0;\n\n    for (i = 0; i < list.length; ++i) {\n      let buf = list[i];\n\n      if (isInstance(buf, Uint8Array)) {\n        if (pos + buf.length > buffer.length) {\n          if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf);\n          buf.copy(buffer, pos);\n        } else {\n          Uint8Array.prototype.set.call(buffer, buf, pos);\n        }\n      } else if (!Buffer.isBuffer(buf)) {\n        throw new TypeError(\"\\\"list\\\" argument must be an Array of Buffers\");\n      } else {\n        buf.copy(buffer, pos);\n      }\n\n      pos += buf.length;\n    }\n\n    return buffer;\n  };\n\n  function byteLength(string, encoding) {\n    if (Buffer.isBuffer(string)) {\n      return string.length;\n    }\n\n    if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {\n      return string.byteLength;\n    }\n\n    if (typeof string !== \"string\") {\n      throw new TypeError(\"The \\\"string\\\" argument must be one of type string, Buffer, or ArrayBuffer. \" + \"Received type \" + typeof string);\n    }\n\n    const len = string.length;\n    const mustMatch = arguments.length > 2 && arguments[2] === true;\n    if (!mustMatch && len === 0) return 0; // Use a for loop to avoid recursion\n\n    let loweredCase = false;\n\n    for (;;) {\n      switch (encoding) {\n        case \"ascii\":\n        case \"latin1\":\n        case \"binary\":\n          return len;\n\n        case \"utf8\":\n        case \"utf-8\":\n          return utf8ToBytes(string).length;\n\n        case \"ucs2\":\n        case \"ucs-2\":\n        case \"utf16le\":\n        case \"utf-16le\":\n          return len * 2;\n\n        case \"hex\":\n          return len >>> 1;\n\n        case \"base64\":\n          return base64ToBytes(string).length;\n\n        default:\n          if (loweredCase) {\n            return mustMatch ? -1 : utf8ToBytes(string).length; // assume utf8\n          }\n\n          encoding = (\"\" + encoding).toLowerCase();\n          loweredCase = true;\n      }\n    }\n  }\n\n  Buffer.byteLength = byteLength;\n\n  function slowToString(encoding, start, end) {\n    let loweredCase = false; // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n    // property of a typed array.\n    // This behaves neither like String nor Uint8Array in that we set start/end\n    // to their upper/lower bounds if the value passed is out of range.\n    // undefined is handled specially as per ECMA-262 6th Edition,\n    // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n\n    if (start === undefined || start < 0) {\n      start = 0;\n    } // Return early if start > this.length. Done here to prevent potential uint32\n    // coercion fail below.\n\n\n    if (start > this.length) {\n      return \"\";\n    }\n\n    if (end === undefined || end > this.length) {\n      end = this.length;\n    }\n\n    if (end <= 0) {\n      return \"\";\n    } // Force coercion to uint32. This will also coerce falsey/NaN values to 0.\n\n\n    end >>>= 0;\n    start >>>= 0;\n\n    if (end <= start) {\n      return \"\";\n    }\n\n    if (!encoding) encoding = \"utf8\";\n\n    while (true) {\n      switch (encoding) {\n        case \"hex\":\n          return hexSlice(this, start, end);\n\n        case \"utf8\":\n        case \"utf-8\":\n          return utf8Slice(this, start, end);\n\n        case \"ascii\":\n          return asciiSlice(this, start, end);\n\n        case \"latin1\":\n        case \"binary\":\n          return latin1Slice(this, start, end);\n\n        case \"base64\":\n          return base64Slice(this, start, end);\n\n        case \"ucs2\":\n        case \"ucs-2\":\n        case \"utf16le\":\n        case \"utf-16le\":\n          return utf16leSlice(this, start, end);\n\n        default:\n          if (loweredCase) throw new TypeError(\"Unknown encoding: \" + encoding);\n          encoding = (encoding + \"\").toLowerCase();\n          loweredCase = true;\n      }\n    }\n  } // This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)\n  // to detect a Buffer instance. It's not possible to use `instanceof Buffer`\n  // reliably in a browserify context because there could be multiple different\n  // copies of the 'buffer' package in use. This method works even for Buffer\n  // instances that were created from another copy of the `buffer` package.\n  // See: https://github.com/feross/buffer/issues/154\n\n\n  Buffer.prototype._isBuffer = true;\n\n  function swap(b, n, m) {\n    const i = b[n];\n    b[n] = b[m];\n    b[m] = i;\n  }\n\n  Buffer.prototype.swap16 = function swap16() {\n    const len = this.length;\n\n    if (len % 2 !== 0) {\n      throw new RangeError(\"Buffer size must be a multiple of 16-bits\");\n    }\n\n    for (let i = 0; i < len; i += 2) {\n      swap(this, i, i + 1);\n    }\n\n    return this;\n  };\n\n  Buffer.prototype.swap32 = function swap32() {\n    const len = this.length;\n\n    if (len % 4 !== 0) {\n      throw new RangeError(\"Buffer size must be a multiple of 32-bits\");\n    }\n\n    for (let i = 0; i < len; i += 4) {\n      swap(this, i, i + 3);\n      swap(this, i + 1, i + 2);\n    }\n\n    return this;\n  };\n\n  Buffer.prototype.swap64 = function swap64() {\n    const len = this.length;\n\n    if (len % 8 !== 0) {\n      throw new RangeError(\"Buffer size must be a multiple of 64-bits\");\n    }\n\n    for (let i = 0; i < len; i += 8) {\n      swap(this, i, i + 7);\n      swap(this, i + 1, i + 6);\n      swap(this, i + 2, i + 5);\n      swap(this, i + 3, i + 4);\n    }\n\n    return this;\n  };\n\n  Buffer.prototype.toString = function toString() {\n    const length = this.length;\n    if (length === 0) return \"\";\n    if (arguments.length === 0) return utf8Slice(this, 0, length);\n    return slowToString.apply(this, arguments);\n  };\n\n  Buffer.prototype.toLocaleString = Buffer.prototype.toString;\n\n  Buffer.prototype.equals = function equals(b) {\n    if (!Buffer.isBuffer(b)) throw new TypeError(\"Argument must be a Buffer\");\n    if (this === b) return true;\n    return Buffer.compare(this, b) === 0;\n  };\n\n  Buffer.prototype.inspect = function inspect() {\n    let str = \"\";\n    const max = exports$1.INSPECT_MAX_BYTES;\n    str = this.toString(\"hex\", 0, max).replace(/(.{2})/g, \"$1 \").trim();\n    if (this.length > max) str += \" ... \";\n    return \"\";\n  };\n\n  if (customInspectSymbol) {\n    Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect;\n  }\n\n  Buffer.prototype.compare = function compare(target, start, end, thisStart, thisEnd) {\n    if (isInstance(target, Uint8Array)) {\n      target = Buffer.from(target, target.offset, target.byteLength);\n    }\n\n    if (!Buffer.isBuffer(target)) {\n      throw new TypeError(\"The \\\"target\\\" argument must be one of type Buffer or Uint8Array. \" + \"Received type \" + typeof target);\n    }\n\n    if (start === undefined) {\n      start = 0;\n    }\n\n    if (end === undefined) {\n      end = target ? target.length : 0;\n    }\n\n    if (thisStart === undefined) {\n      thisStart = 0;\n    }\n\n    if (thisEnd === undefined) {\n      thisEnd = this.length;\n    }\n\n    if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n      throw new RangeError(\"out of range index\");\n    }\n\n    if (thisStart >= thisEnd && start >= end) {\n      return 0;\n    }\n\n    if (thisStart >= thisEnd) {\n      return -1;\n    }\n\n    if (start >= end) {\n      return 1;\n    }\n\n    start >>>= 0;\n    end >>>= 0;\n    thisStart >>>= 0;\n    thisEnd >>>= 0;\n    if (this === target) return 0;\n    let x = thisEnd - thisStart;\n    let y = end - start;\n    const len = Math.min(x, y);\n    const thisCopy = this.slice(thisStart, thisEnd);\n    const targetCopy = target.slice(start, end);\n\n    for (let i = 0; i < len; ++i) {\n      if (thisCopy[i] !== targetCopy[i]) {\n        x = thisCopy[i];\n        y = targetCopy[i];\n        break;\n      }\n    }\n\n    if (x < y) return -1;\n    if (y < x) return 1;\n    return 0;\n  }; // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n  // OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n  //\n  // Arguments:\n  // - buffer - a Buffer to search\n  // - val - a string, Buffer, or number\n  // - byteOffset - an index into `buffer`; will be clamped to an int32\n  // - encoding - an optional encoding, relevant is val is a string\n  // - dir - true for indexOf, false for lastIndexOf\n\n\n  function bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) {\n    // Empty buffer means no match\n    if (buffer.length === 0) return -1; // Normalize byteOffset\n\n    if (typeof byteOffset === \"string\") {\n      encoding = byteOffset;\n      byteOffset = 0;\n    } else if (byteOffset > 2147483647) {\n      byteOffset = 2147483647;\n    } else if (byteOffset < -2147483648) {\n      byteOffset = -2147483648;\n    }\n\n    byteOffset = +byteOffset; // Coerce to Number.\n\n    if (numberIsNaN(byteOffset)) {\n      // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n      byteOffset = dir ? 0 : buffer.length - 1;\n    } // Normalize byteOffset: negative offsets start from the end of the buffer\n\n\n    if (byteOffset < 0) byteOffset = buffer.length + byteOffset;\n\n    if (byteOffset >= buffer.length) {\n      if (dir) return -1;else byteOffset = buffer.length - 1;\n    } else if (byteOffset < 0) {\n      if (dir) byteOffset = 0;else return -1;\n    } // Normalize val\n\n\n    if (typeof val === \"string\") {\n      val = Buffer.from(val, encoding);\n    } // Finally, search either indexOf (if dir is true) or lastIndexOf\n\n\n    if (Buffer.isBuffer(val)) {\n      // Special case: looking for empty string/buffer always fails\n      if (val.length === 0) {\n        return -1;\n      }\n\n      return arrayIndexOf(buffer, val, byteOffset, encoding, dir);\n    } else if (typeof val === \"number\") {\n      val = val & 255; // Search for a byte value [0-255]\n\n      if (typeof Uint8Array.prototype.indexOf === \"function\") {\n        if (dir) {\n          return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset);\n        } else {\n          return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset);\n        }\n      }\n\n      return arrayIndexOf(buffer, [val], byteOffset, encoding, dir);\n    }\n\n    throw new TypeError(\"val must be string, number or Buffer\");\n  }\n\n  function arrayIndexOf(arr, val, byteOffset, encoding, dir) {\n    let indexSize = 1;\n    let arrLength = arr.length;\n    let valLength = val.length;\n\n    if (encoding !== undefined) {\n      encoding = String(encoding).toLowerCase();\n\n      if (encoding === \"ucs2\" || encoding === \"ucs-2\" || encoding === \"utf16le\" || encoding === \"utf-16le\") {\n        if (arr.length < 2 || val.length < 2) {\n          return -1;\n        }\n\n        indexSize = 2;\n        arrLength /= 2;\n        valLength /= 2;\n        byteOffset /= 2;\n      }\n    }\n\n    function read(buf, i) {\n      if (indexSize === 1) {\n        return buf[i];\n      } else {\n        return buf.readUInt16BE(i * indexSize);\n      }\n    }\n\n    let i;\n\n    if (dir) {\n      let foundIndex = -1;\n\n      for (i = byteOffset; i < arrLength; i++) {\n        if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n          if (foundIndex === -1) foundIndex = i;\n          if (i - foundIndex + 1 === valLength) return foundIndex * indexSize;\n        } else {\n          if (foundIndex !== -1) i -= i - foundIndex;\n          foundIndex = -1;\n        }\n      }\n    } else {\n      if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength;\n\n      for (i = byteOffset; i >= 0; i--) {\n        let found = true;\n\n        for (let j = 0; j < valLength; j++) {\n          if (read(arr, i + j) !== read(val, j)) {\n            found = false;\n            break;\n          }\n        }\n\n        if (found) return i;\n      }\n    }\n\n    return -1;\n  }\n\n  Buffer.prototype.includes = function includes(val, byteOffset, encoding) {\n    return this.indexOf(val, byteOffset, encoding) !== -1;\n  };\n\n  Buffer.prototype.indexOf = function indexOf(val, byteOffset, encoding) {\n    return bidirectionalIndexOf(this, val, byteOffset, encoding, true);\n  };\n\n  Buffer.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) {\n    return bidirectionalIndexOf(this, val, byteOffset, encoding, false);\n  };\n\n  function hexWrite(buf, string, offset, length) {\n    offset = Number(offset) || 0;\n    const remaining = buf.length - offset;\n\n    if (!length) {\n      length = remaining;\n    } else {\n      length = Number(length);\n\n      if (length > remaining) {\n        length = remaining;\n      }\n    }\n\n    const strLen = string.length;\n\n    if (length > strLen / 2) {\n      length = strLen / 2;\n    }\n\n    let i;\n\n    for (i = 0; i < length; ++i) {\n      const parsed = parseInt(string.substr(i * 2, 2), 16);\n      if (numberIsNaN(parsed)) return i;\n      buf[offset + i] = parsed;\n    }\n\n    return i;\n  }\n\n  function utf8Write(buf, string, offset, length) {\n    return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length);\n  }\n\n  function asciiWrite(buf, string, offset, length) {\n    return blitBuffer(asciiToBytes(string), buf, offset, length);\n  }\n\n  function base64Write(buf, string, offset, length) {\n    return blitBuffer(base64ToBytes(string), buf, offset, length);\n  }\n\n  function ucs2Write(buf, string, offset, length) {\n    return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length);\n  }\n\n  Buffer.prototype.write = function write(string, offset, length, encoding) {\n    // Buffer#write(string)\n    if (offset === undefined) {\n      encoding = \"utf8\";\n      length = this.length;\n      offset = 0; // Buffer#write(string, encoding)\n    } else if (length === undefined && typeof offset === \"string\") {\n      encoding = offset;\n      length = this.length;\n      offset = 0; // Buffer#write(string, offset[, length][, encoding])\n    } else if (isFinite(offset)) {\n      offset = offset >>> 0;\n\n      if (isFinite(length)) {\n        length = length >>> 0;\n        if (encoding === undefined) encoding = \"utf8\";\n      } else {\n        encoding = length;\n        length = undefined;\n      }\n    } else {\n      throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");\n    }\n\n    const remaining = this.length - offset;\n    if (length === undefined || length > remaining) length = remaining;\n\n    if (string.length > 0 && (length < 0 || offset < 0) || offset > this.length) {\n      throw new RangeError(\"Attempt to write outside buffer bounds\");\n    }\n\n    if (!encoding) encoding = \"utf8\";\n    let loweredCase = false;\n\n    for (;;) {\n      switch (encoding) {\n        case \"hex\":\n          return hexWrite(this, string, offset, length);\n\n        case \"utf8\":\n        case \"utf-8\":\n          return utf8Write(this, string, offset, length);\n\n        case \"ascii\":\n        case \"latin1\":\n        case \"binary\":\n          return asciiWrite(this, string, offset, length);\n\n        case \"base64\":\n          // Warning: maxLength not taken into account in base64Write\n          return base64Write(this, string, offset, length);\n\n        case \"ucs2\":\n        case \"ucs-2\":\n        case \"utf16le\":\n        case \"utf-16le\":\n          return ucs2Write(this, string, offset, length);\n\n        default:\n          if (loweredCase) throw new TypeError(\"Unknown encoding: \" + encoding);\n          encoding = (\"\" + encoding).toLowerCase();\n          loweredCase = true;\n      }\n    }\n  };\n\n  Buffer.prototype.toJSON = function toJSON() {\n    return {\n      type: \"Buffer\",\n      data: Array.prototype.slice.call(this._arr || this, 0)\n    };\n  };\n\n  function base64Slice(buf, start, end) {\n    if (start === 0 && end === buf.length) {\n      return base64.fromByteArray(buf);\n    } else {\n      return base64.fromByteArray(buf.slice(start, end));\n    }\n  }\n\n  function utf8Slice(buf, start, end) {\n    end = Math.min(buf.length, end);\n    const res = [];\n    let i = start;\n\n    while (i < end) {\n      const firstByte = buf[i];\n      let codePoint = null;\n      let bytesPerSequence = firstByte > 239 ? 4 : firstByte > 223 ? 3 : firstByte > 191 ? 2 : 1;\n\n      if (i + bytesPerSequence <= end) {\n        let secondByte, thirdByte, fourthByte, tempCodePoint;\n\n        switch (bytesPerSequence) {\n          case 1:\n            if (firstByte < 128) {\n              codePoint = firstByte;\n            }\n\n            break;\n\n          case 2:\n            secondByte = buf[i + 1];\n\n            if ((secondByte & 192) === 128) {\n              tempCodePoint = (firstByte & 31) << 6 | secondByte & 63;\n\n              if (tempCodePoint > 127) {\n                codePoint = tempCodePoint;\n              }\n            }\n\n            break;\n\n          case 3:\n            secondByte = buf[i + 1];\n            thirdByte = buf[i + 2];\n\n            if ((secondByte & 192) === 128 && (thirdByte & 192) === 128) {\n              tempCodePoint = (firstByte & 15) << 12 | (secondByte & 63) << 6 | thirdByte & 63;\n\n              if (tempCodePoint > 2047 && (tempCodePoint < 55296 || tempCodePoint > 57343)) {\n                codePoint = tempCodePoint;\n              }\n            }\n\n            break;\n\n          case 4:\n            secondByte = buf[i + 1];\n            thirdByte = buf[i + 2];\n            fourthByte = buf[i + 3];\n\n            if ((secondByte & 192) === 128 && (thirdByte & 192) === 128 && (fourthByte & 192) === 128) {\n              tempCodePoint = (firstByte & 15) << 18 | (secondByte & 63) << 12 | (thirdByte & 63) << 6 | fourthByte & 63;\n\n              if (tempCodePoint > 65535 && tempCodePoint < 1114112) {\n                codePoint = tempCodePoint;\n              }\n            }\n\n        }\n      }\n\n      if (codePoint === null) {\n        // we did not generate a valid codePoint so insert a\n        // replacement char (U+FFFD) and advance only 1 byte\n        codePoint = 65533;\n        bytesPerSequence = 1;\n      } else if (codePoint > 65535) {\n        // encode to utf16 (surrogate pair dance)\n        codePoint -= 65536;\n        res.push(codePoint >>> 10 & 1023 | 55296);\n        codePoint = 56320 | codePoint & 1023;\n      }\n\n      res.push(codePoint);\n      i += bytesPerSequence;\n    }\n\n    return decodeCodePointsArray(res);\n  } // Based on http://stackoverflow.com/a/22747272/680742, the browser with\n  // the lowest limit is Chrome, with 0x10000 args.\n  // We go 1 magnitude less, for safety\n\n\n  const MAX_ARGUMENTS_LENGTH = 4096;\n\n  function decodeCodePointsArray(codePoints) {\n    const len = codePoints.length;\n\n    if (len <= MAX_ARGUMENTS_LENGTH) {\n      return String.fromCharCode.apply(String, codePoints); // avoid extra slice()\n    } // Decode in chunks to avoid \"call stack size exceeded\".\n\n\n    let res = \"\";\n    let i = 0;\n\n    while (i < len) {\n      res += String.fromCharCode.apply(String, codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH));\n    }\n\n    return res;\n  }\n\n  function asciiSlice(buf, start, end) {\n    let ret = \"\";\n    end = Math.min(buf.length, end);\n\n    for (let i = start; i < end; ++i) {\n      ret += String.fromCharCode(buf[i] & 127);\n    }\n\n    return ret;\n  }\n\n  function latin1Slice(buf, start, end) {\n    let ret = \"\";\n    end = Math.min(buf.length, end);\n\n    for (let i = start; i < end; ++i) {\n      ret += String.fromCharCode(buf[i]);\n    }\n\n    return ret;\n  }\n\n  function hexSlice(buf, start, end) {\n    const len = buf.length;\n    if (!start || start < 0) start = 0;\n    if (!end || end < 0 || end > len) end = len;\n    let out = \"\";\n\n    for (let i = start; i < end; ++i) {\n      out += hexSliceLookupTable[buf[i]];\n    }\n\n    return out;\n  }\n\n  function utf16leSlice(buf, start, end) {\n    const bytes = buf.slice(start, end);\n    let res = \"\"; // If bytes.length is odd, the last 8 bits must be ignored (same as node.js)\n\n    for (let i = 0; i < bytes.length - 1; i += 2) {\n      res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256);\n    }\n\n    return res;\n  }\n\n  Buffer.prototype.slice = function slice(start, end) {\n    const len = this.length;\n    start = ~~start;\n    end = end === undefined ? len : ~~end;\n\n    if (start < 0) {\n      start += len;\n      if (start < 0) start = 0;\n    } else if (start > len) {\n      start = len;\n    }\n\n    if (end < 0) {\n      end += len;\n      if (end < 0) end = 0;\n    } else if (end > len) {\n      end = len;\n    }\n\n    if (end < start) end = start;\n    const newBuf = this.subarray(start, end); // Return an augmented `Uint8Array` instance\n\n    Object.setPrototypeOf(newBuf, Buffer.prototype);\n    return newBuf;\n  };\n  /*\n   * Need to make sure that buffer isn't trying to write out of bounds.\n   */\n\n\n  function checkOffset(offset, ext, length) {\n    if (offset % 1 !== 0 || offset < 0) throw new RangeError(\"offset is not uint\");\n    if (offset + ext > length) throw new RangeError(\"Trying to access beyond buffer length\");\n  }\n\n  Buffer.prototype.readUintLE = Buffer.prototype.readUIntLE = function readUIntLE(offset, byteLength, noAssert) {\n    offset = offset >>> 0;\n    byteLength = byteLength >>> 0;\n    if (!noAssert) checkOffset(offset, byteLength, this.length);\n    let val = this[offset];\n    let mul = 1;\n    let i = 0;\n\n    while (++i < byteLength && (mul *= 256)) {\n      val += this[offset + i] * mul;\n    }\n\n    return val;\n  };\n\n  Buffer.prototype.readUintBE = Buffer.prototype.readUIntBE = function readUIntBE(offset, byteLength, noAssert) {\n    offset = offset >>> 0;\n    byteLength = byteLength >>> 0;\n\n    if (!noAssert) {\n      checkOffset(offset, byteLength, this.length);\n    }\n\n    let val = this[offset + --byteLength];\n    let mul = 1;\n\n    while (byteLength > 0 && (mul *= 256)) {\n      val += this[offset + --byteLength] * mul;\n    }\n\n    return val;\n  };\n\n  Buffer.prototype.readUint8 = Buffer.prototype.readUInt8 = function readUInt8(offset, noAssert) {\n    offset = offset >>> 0;\n    if (!noAssert) checkOffset(offset, 1, this.length);\n    return this[offset];\n  };\n\n  Buffer.prototype.readUint16LE = Buffer.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) {\n    offset = offset >>> 0;\n    if (!noAssert) checkOffset(offset, 2, this.length);\n    return this[offset] | this[offset + 1] << 8;\n  };\n\n  Buffer.prototype.readUint16BE = Buffer.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) {\n    offset = offset >>> 0;\n    if (!noAssert) checkOffset(offset, 2, this.length);\n    return this[offset] << 8 | this[offset + 1];\n  };\n\n  Buffer.prototype.readUint32LE = Buffer.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) {\n    offset = offset >>> 0;\n    if (!noAssert) checkOffset(offset, 4, this.length);\n    return (this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16) + this[offset + 3] * 16777216;\n  };\n\n  Buffer.prototype.readUint32BE = Buffer.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) {\n    offset = offset >>> 0;\n    if (!noAssert) checkOffset(offset, 4, this.length);\n    return this[offset] * 16777216 + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]);\n  };\n\n  Buffer.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE(offset) {\n    offset = offset >>> 0;\n    validateNumber(offset, \"offset\");\n    const first = this[offset];\n    const last = this[offset + 7];\n\n    if (first === undefined || last === undefined) {\n      boundsError(offset, this.length - 8);\n    }\n\n    const lo = first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24;\n    const hi = this[++offset] + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + last * 2 ** 24;\n    return BigInt(lo) + (BigInt(hi) << BigInt(32));\n  });\n  Buffer.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE(offset) {\n    offset = offset >>> 0;\n    validateNumber(offset, \"offset\");\n    const first = this[offset];\n    const last = this[offset + 7];\n\n    if (first === undefined || last === undefined) {\n      boundsError(offset, this.length - 8);\n    }\n\n    const hi = first * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];\n    const lo = this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last;\n    return (BigInt(hi) << BigInt(32)) + BigInt(lo);\n  });\n\n  Buffer.prototype.readIntLE = function readIntLE(offset, byteLength, noAssert) {\n    offset = offset >>> 0;\n    byteLength = byteLength >>> 0;\n    if (!noAssert) checkOffset(offset, byteLength, this.length);\n    let val = this[offset];\n    let mul = 1;\n    let i = 0;\n\n    while (++i < byteLength && (mul *= 256)) {\n      val += this[offset + i] * mul;\n    }\n\n    mul *= 128;\n    if (val >= mul) val -= Math.pow(2, 8 * byteLength);\n    return val;\n  };\n\n  Buffer.prototype.readIntBE = function readIntBE(offset, byteLength, noAssert) {\n    offset = offset >>> 0;\n    byteLength = byteLength >>> 0;\n    if (!noAssert) checkOffset(offset, byteLength, this.length);\n    let i = byteLength;\n    let mul = 1;\n    let val = this[offset + --i];\n\n    while (i > 0 && (mul *= 256)) {\n      val += this[offset + --i] * mul;\n    }\n\n    mul *= 128;\n    if (val >= mul) val -= Math.pow(2, 8 * byteLength);\n    return val;\n  };\n\n  Buffer.prototype.readInt8 = function readInt8(offset, noAssert) {\n    offset = offset >>> 0;\n    if (!noAssert) checkOffset(offset, 1, this.length);\n    if (!(this[offset] & 128)) return this[offset];\n    return (255 - this[offset] + 1) * -1;\n  };\n\n  Buffer.prototype.readInt16LE = function readInt16LE(offset, noAssert) {\n    offset = offset >>> 0;\n    if (!noAssert) checkOffset(offset, 2, this.length);\n    const val = this[offset] | this[offset + 1] << 8;\n    return val & 32768 ? val | 4294901760 : val;\n  };\n\n  Buffer.prototype.readInt16BE = function readInt16BE(offset, noAssert) {\n    offset = offset >>> 0;\n    if (!noAssert) checkOffset(offset, 2, this.length);\n    const val = this[offset + 1] | this[offset] << 8;\n    return val & 32768 ? val | 4294901760 : val;\n  };\n\n  Buffer.prototype.readInt32LE = function readInt32LE(offset, noAssert) {\n    offset = offset >>> 0;\n    if (!noAssert) checkOffset(offset, 4, this.length);\n    return this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16 | this[offset + 3] << 24;\n  };\n\n  Buffer.prototype.readInt32BE = function readInt32BE(offset, noAssert) {\n    offset = offset >>> 0;\n    if (!noAssert) checkOffset(offset, 4, this.length);\n    return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3];\n  };\n\n  Buffer.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE(offset) {\n    offset = offset >>> 0;\n    validateNumber(offset, \"offset\");\n    const first = this[offset];\n    const last = this[offset + 7];\n\n    if (first === undefined || last === undefined) {\n      boundsError(offset, this.length - 8);\n    }\n\n    const val = this[offset + 4] + this[offset + 5] * 2 ** 8 + this[offset + 6] * 2 ** 16 + (last << 24); // Overflow\n\n    return (BigInt(val) << BigInt(32)) + BigInt(first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24);\n  });\n  Buffer.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE(offset) {\n    offset = offset >>> 0;\n    validateNumber(offset, \"offset\");\n    const first = this[offset];\n    const last = this[offset + 7];\n\n    if (first === undefined || last === undefined) {\n      boundsError(offset, this.length - 8);\n    }\n\n    const val = (first << 24) + // Overflow\n    this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];\n    return (BigInt(val) << BigInt(32)) + BigInt(this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last);\n  });\n\n  Buffer.prototype.readFloatLE = function readFloatLE(offset, noAssert) {\n    offset = offset >>> 0;\n    if (!noAssert) checkOffset(offset, 4, this.length);\n    return ieee754.read(this, offset, true, 23, 4);\n  };\n\n  Buffer.prototype.readFloatBE = function readFloatBE(offset, noAssert) {\n    offset = offset >>> 0;\n    if (!noAssert) checkOffset(offset, 4, this.length);\n    return ieee754.read(this, offset, false, 23, 4);\n  };\n\n  Buffer.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) {\n    offset = offset >>> 0;\n    if (!noAssert) checkOffset(offset, 8, this.length);\n    return ieee754.read(this, offset, true, 52, 8);\n  };\n\n  Buffer.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) {\n    offset = offset >>> 0;\n    if (!noAssert) checkOffset(offset, 8, this.length);\n    return ieee754.read(this, offset, false, 52, 8);\n  };\n\n  function checkInt(buf, value, offset, ext, max, min) {\n    if (!Buffer.isBuffer(buf)) throw new TypeError(\"\\\"buffer\\\" argument must be a Buffer instance\");\n    if (value > max || value < min) throw new RangeError(\"\\\"value\\\" argument is out of bounds\");\n    if (offset + ext > buf.length) throw new RangeError(\"Index out of range\");\n  }\n\n  Buffer.prototype.writeUintLE = Buffer.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength, noAssert) {\n    value = +value;\n    offset = offset >>> 0;\n    byteLength = byteLength >>> 0;\n\n    if (!noAssert) {\n      const maxBytes = Math.pow(2, 8 * byteLength) - 1;\n      checkInt(this, value, offset, byteLength, maxBytes, 0);\n    }\n\n    let mul = 1;\n    let i = 0;\n    this[offset] = value & 255;\n\n    while (++i < byteLength && (mul *= 256)) {\n      this[offset + i] = value / mul & 255;\n    }\n\n    return offset + byteLength;\n  };\n\n  Buffer.prototype.writeUintBE = Buffer.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength, noAssert) {\n    value = +value;\n    offset = offset >>> 0;\n    byteLength = byteLength >>> 0;\n\n    if (!noAssert) {\n      const maxBytes = Math.pow(2, 8 * byteLength) - 1;\n      checkInt(this, value, offset, byteLength, maxBytes, 0);\n    }\n\n    let i = byteLength - 1;\n    let mul = 1;\n    this[offset + i] = value & 255;\n\n    while (--i >= 0 && (mul *= 256)) {\n      this[offset + i] = value / mul & 255;\n    }\n\n    return offset + byteLength;\n  };\n\n  Buffer.prototype.writeUint8 = Buffer.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) {\n    value = +value;\n    offset = offset >>> 0;\n    if (!noAssert) checkInt(this, value, offset, 1, 255, 0);\n    this[offset] = value & 255;\n    return offset + 1;\n  };\n\n  Buffer.prototype.writeUint16LE = Buffer.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) {\n    value = +value;\n    offset = offset >>> 0;\n    if (!noAssert) checkInt(this, value, offset, 2, 65535, 0);\n    this[offset] = value & 255;\n    this[offset + 1] = value >>> 8;\n    return offset + 2;\n  };\n\n  Buffer.prototype.writeUint16BE = Buffer.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) {\n    value = +value;\n    offset = offset >>> 0;\n    if (!noAssert) checkInt(this, value, offset, 2, 65535, 0);\n    this[offset] = value >>> 8;\n    this[offset + 1] = value & 255;\n    return offset + 2;\n  };\n\n  Buffer.prototype.writeUint32LE = Buffer.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) {\n    value = +value;\n    offset = offset >>> 0;\n    if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0);\n    this[offset + 3] = value >>> 24;\n    this[offset + 2] = value >>> 16;\n    this[offset + 1] = value >>> 8;\n    this[offset] = value & 255;\n    return offset + 4;\n  };\n\n  Buffer.prototype.writeUint32BE = Buffer.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) {\n    value = +value;\n    offset = offset >>> 0;\n    if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0);\n    this[offset] = value >>> 24;\n    this[offset + 1] = value >>> 16;\n    this[offset + 2] = value >>> 8;\n    this[offset + 3] = value & 255;\n    return offset + 4;\n  };\n\n  function wrtBigUInt64LE(buf, value, offset, min, max) {\n    checkIntBI(value, min, max, buf, offset, 7);\n    let lo = Number(value & BigInt(4294967295));\n    buf[offset++] = lo;\n    lo = lo >> 8;\n    buf[offset++] = lo;\n    lo = lo >> 8;\n    buf[offset++] = lo;\n    lo = lo >> 8;\n    buf[offset++] = lo;\n    let hi = Number(value >> BigInt(32) & BigInt(4294967295));\n    buf[offset++] = hi;\n    hi = hi >> 8;\n    buf[offset++] = hi;\n    hi = hi >> 8;\n    buf[offset++] = hi;\n    hi = hi >> 8;\n    buf[offset++] = hi;\n    return offset;\n  }\n\n  function wrtBigUInt64BE(buf, value, offset, min, max) {\n    checkIntBI(value, min, max, buf, offset, 7);\n    let lo = Number(value & BigInt(4294967295));\n    buf[offset + 7] = lo;\n    lo = lo >> 8;\n    buf[offset + 6] = lo;\n    lo = lo >> 8;\n    buf[offset + 5] = lo;\n    lo = lo >> 8;\n    buf[offset + 4] = lo;\n    let hi = Number(value >> BigInt(32) & BigInt(4294967295));\n    buf[offset + 3] = hi;\n    hi = hi >> 8;\n    buf[offset + 2] = hi;\n    hi = hi >> 8;\n    buf[offset + 1] = hi;\n    hi = hi >> 8;\n    buf[offset] = hi;\n    return offset + 8;\n  }\n\n  Buffer.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE(value, offset = 0) {\n    return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt(\"0xffffffffffffffff\"));\n  });\n  Buffer.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE(value, offset = 0) {\n    return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt(\"0xffffffffffffffff\"));\n  });\n\n  Buffer.prototype.writeIntLE = function writeIntLE(value, offset, byteLength, noAssert) {\n    value = +value;\n    offset = offset >>> 0;\n\n    if (!noAssert) {\n      const limit = Math.pow(2, 8 * byteLength - 1);\n      checkInt(this, value, offset, byteLength, limit - 1, -limit);\n    }\n\n    let i = 0;\n    let mul = 1;\n    let sub = 0;\n    this[offset] = value & 255;\n\n    while (++i < byteLength && (mul *= 256)) {\n      if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n        sub = 1;\n      }\n\n      this[offset + i] = (value / mul >> 0) - sub & 255;\n    }\n\n    return offset + byteLength;\n  };\n\n  Buffer.prototype.writeIntBE = function writeIntBE(value, offset, byteLength, noAssert) {\n    value = +value;\n    offset = offset >>> 0;\n\n    if (!noAssert) {\n      const limit = Math.pow(2, 8 * byteLength - 1);\n      checkInt(this, value, offset, byteLength, limit - 1, -limit);\n    }\n\n    let i = byteLength - 1;\n    let mul = 1;\n    let sub = 0;\n    this[offset + i] = value & 255;\n\n    while (--i >= 0 && (mul *= 256)) {\n      if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n        sub = 1;\n      }\n\n      this[offset + i] = (value / mul >> 0) - sub & 255;\n    }\n\n    return offset + byteLength;\n  };\n\n  Buffer.prototype.writeInt8 = function writeInt8(value, offset, noAssert) {\n    value = +value;\n    offset = offset >>> 0;\n    if (!noAssert) checkInt(this, value, offset, 1, 127, -128);\n    if (value < 0) value = 255 + value + 1;\n    this[offset] = value & 255;\n    return offset + 1;\n  };\n\n  Buffer.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) {\n    value = +value;\n    offset = offset >>> 0;\n    if (!noAssert) checkInt(this, value, offset, 2, 32767, -32768);\n    this[offset] = value & 255;\n    this[offset + 1] = value >>> 8;\n    return offset + 2;\n  };\n\n  Buffer.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) {\n    value = +value;\n    offset = offset >>> 0;\n    if (!noAssert) checkInt(this, value, offset, 2, 32767, -32768);\n    this[offset] = value >>> 8;\n    this[offset + 1] = value & 255;\n    return offset + 2;\n  };\n\n  Buffer.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) {\n    value = +value;\n    offset = offset >>> 0;\n    if (!noAssert) checkInt(this, value, offset, 4, 2147483647, -2147483648);\n    this[offset] = value & 255;\n    this[offset + 1] = value >>> 8;\n    this[offset + 2] = value >>> 16;\n    this[offset + 3] = value >>> 24;\n    return offset + 4;\n  };\n\n  Buffer.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) {\n    value = +value;\n    offset = offset >>> 0;\n    if (!noAssert) checkInt(this, value, offset, 4, 2147483647, -2147483648);\n    if (value < 0) value = 4294967295 + value + 1;\n    this[offset] = value >>> 24;\n    this[offset + 1] = value >>> 16;\n    this[offset + 2] = value >>> 8;\n    this[offset + 3] = value & 255;\n    return offset + 4;\n  };\n\n  Buffer.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE(value, offset = 0) {\n    return wrtBigUInt64LE(this, value, offset, -BigInt(\"0x8000000000000000\"), BigInt(\"0x7fffffffffffffff\"));\n  });\n  Buffer.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE(value, offset = 0) {\n    return wrtBigUInt64BE(this, value, offset, -BigInt(\"0x8000000000000000\"), BigInt(\"0x7fffffffffffffff\"));\n  });\n\n  function checkIEEE754(buf, value, offset, ext, max, min) {\n    if (offset + ext > buf.length) throw new RangeError(\"Index out of range\");\n    if (offset < 0) throw new RangeError(\"Index out of range\");\n  }\n\n  function writeFloat(buf, value, offset, littleEndian, noAssert) {\n    value = +value;\n    offset = offset >>> 0;\n\n    if (!noAssert) {\n      checkIEEE754(buf, value, offset, 4);\n    }\n\n    ieee754.write(buf, value, offset, littleEndian, 23, 4);\n    return offset + 4;\n  }\n\n  Buffer.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) {\n    return writeFloat(this, value, offset, true, noAssert);\n  };\n\n  Buffer.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) {\n    return writeFloat(this, value, offset, false, noAssert);\n  };\n\n  function writeDouble(buf, value, offset, littleEndian, noAssert) {\n    value = +value;\n    offset = offset >>> 0;\n\n    if (!noAssert) {\n      checkIEEE754(buf, value, offset, 8);\n    }\n\n    ieee754.write(buf, value, offset, littleEndian, 52, 8);\n    return offset + 8;\n  }\n\n  Buffer.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) {\n    return writeDouble(this, value, offset, true, noAssert);\n  };\n\n  Buffer.prototype.writeDoubleBE = function writeDoubleBE(value, offset, noAssert) {\n    return writeDouble(this, value, offset, false, noAssert);\n  }; // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\n\n\n  Buffer.prototype.copy = function copy(target, targetStart, start, end) {\n    if (!Buffer.isBuffer(target)) throw new TypeError(\"argument should be a Buffer\");\n    if (!start) start = 0;\n    if (!end && end !== 0) end = this.length;\n    if (targetStart >= target.length) targetStart = target.length;\n    if (!targetStart) targetStart = 0;\n    if (end > 0 && end < start) end = start; // Copy 0 bytes; we're done\n\n    if (end === start) return 0;\n    if (target.length === 0 || this.length === 0) return 0; // Fatal error conditions\n\n    if (targetStart < 0) {\n      throw new RangeError(\"targetStart out of bounds\");\n    }\n\n    if (start < 0 || start >= this.length) throw new RangeError(\"Index out of range\");\n    if (end < 0) throw new RangeError(\"sourceEnd out of bounds\"); // Are we oob?\n\n    if (end > this.length) end = this.length;\n\n    if (target.length - targetStart < end - start) {\n      end = target.length - targetStart + start;\n    }\n\n    const len = end - start;\n\n    if (this === target && typeof Uint8Array.prototype.copyWithin === \"function\") {\n      // Use built-in when available, missing from IE11\n      this.copyWithin(targetStart, start, end);\n    } else {\n      Uint8Array.prototype.set.call(target, this.subarray(start, end), targetStart);\n    }\n\n    return len;\n  }; // Usage:\n  //    buffer.fill(number[, offset[, end]])\n  //    buffer.fill(buffer[, offset[, end]])\n  //    buffer.fill(string[, offset[, end]][, encoding])\n\n\n  Buffer.prototype.fill = function fill(val, start, end, encoding) {\n    // Handle string cases:\n    if (typeof val === \"string\") {\n      if (typeof start === \"string\") {\n        encoding = start;\n        start = 0;\n        end = this.length;\n      } else if (typeof end === \"string\") {\n        encoding = end;\n        end = this.length;\n      }\n\n      if (encoding !== undefined && typeof encoding !== \"string\") {\n        throw new TypeError(\"encoding must be a string\");\n      }\n\n      if (typeof encoding === \"string\" && !Buffer.isEncoding(encoding)) {\n        throw new TypeError(\"Unknown encoding: \" + encoding);\n      }\n\n      if (val.length === 1) {\n        const code = val.charCodeAt(0);\n\n        if (encoding === \"utf8\" && code < 128 || encoding === \"latin1\") {\n          // Fast path: If `val` fits into a single byte, use that numeric value.\n          val = code;\n        }\n      }\n    } else if (typeof val === \"number\") {\n      val = val & 255;\n    } else if (typeof val === \"boolean\") {\n      val = Number(val);\n    } // Invalid ranges are not set to a default, so can range check early.\n\n\n    if (start < 0 || this.length < start || this.length < end) {\n      throw new RangeError(\"Out of range index\");\n    }\n\n    if (end <= start) {\n      return this;\n    }\n\n    start = start >>> 0;\n    end = end === undefined ? this.length : end >>> 0;\n    if (!val) val = 0;\n    let i;\n\n    if (typeof val === \"number\") {\n      for (i = start; i < end; ++i) {\n        this[i] = val;\n      }\n    } else {\n      const bytes = Buffer.isBuffer(val) ? val : Buffer.from(val, encoding);\n      const len = bytes.length;\n\n      if (len === 0) {\n        throw new TypeError(\"The value \\\"\" + val + \"\\\" is invalid for argument \\\"value\\\"\");\n      }\n\n      for (i = 0; i < end - start; ++i) {\n        this[i + start] = bytes[i % len];\n      }\n    }\n\n    return this;\n  }; // CUSTOM ERRORS\n  // =============\n  // Simplified versions from Node, changed for Buffer-only usage\n\n\n  const errors = {};\n\n  function E(sym, getMessage, Base) {\n    errors[sym] = class NodeError extends Base {\n      constructor() {\n        super();\n        Object.defineProperty(this, \"message\", {\n          value: getMessage.apply(this, arguments),\n          writable: true,\n          configurable: true\n        }); // Add the error code to the name to include it in the stack trace.\n\n        this.name = `${this.name} [${sym}]`; // Access the stack to generate the error message including the error code\n        // from the name.\n\n        this.stack; // eslint-disable-line no-unused-expressions\n        // Reset the name to the actual name.\n\n        delete this.name;\n      }\n\n      get code() {\n        return sym;\n      }\n\n      set code(value) {\n        Object.defineProperty(this, \"code\", {\n          configurable: true,\n          enumerable: true,\n          value,\n          writable: true\n        });\n      }\n\n      toString() {\n        return `${this.name} [${sym}]: ${this.message}`;\n      }\n\n    };\n  }\n\n  E(\"ERR_BUFFER_OUT_OF_BOUNDS\", function (name) {\n    if (name) {\n      return `${name} is outside of buffer bounds`;\n    }\n\n    return \"Attempt to access memory outside buffer bounds\";\n  }, RangeError);\n  E(\"ERR_INVALID_ARG_TYPE\", function (name, actual) {\n    return `The \"${name}\" argument must be of type number. Received type ${typeof actual}`;\n  }, TypeError);\n  E(\"ERR_OUT_OF_RANGE\", function (str, range, input) {\n    let msg = `The value of \"${str}\" is out of range.`;\n    let received = input;\n\n    if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {\n      received = addNumericalSeparator(String(input));\n    } else if (typeof input === \"bigint\") {\n      received = String(input);\n\n      if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {\n        received = addNumericalSeparator(received);\n      }\n\n      received += \"n\";\n    }\n\n    msg += ` It must be ${range}. Received ${received}`;\n    return msg;\n  }, RangeError);\n\n  function addNumericalSeparator(val) {\n    let res = \"\";\n    let i = val.length;\n    const start = val[0] === \"-\" ? 1 : 0;\n\n    for (; i >= start + 4; i -= 3) {\n      res = `_${val.slice(i - 3, i)}${res}`;\n    }\n\n    return `${val.slice(0, i)}${res}`;\n  } // CHECK FUNCTIONS\n  // ===============\n\n\n  function checkBounds(buf, offset, byteLength) {\n    validateNumber(offset, \"offset\");\n\n    if (buf[offset] === undefined || buf[offset + byteLength] === undefined) {\n      boundsError(offset, buf.length - (byteLength + 1));\n    }\n  }\n\n  function checkIntBI(value, min, max, buf, offset, byteLength) {\n    if (value > max || value < min) {\n      const n = typeof min === \"bigint\" ? \"n\" : \"\";\n      let range;\n\n      if (byteLength > 3) {\n        if (min === 0 || min === BigInt(0)) {\n          range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`;\n        } else {\n          range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and < 2 ** ` + `${(byteLength + 1) * 8 - 1}${n}`;\n        }\n      } else {\n        range = `>= ${min}${n} and <= ${max}${n}`;\n      }\n\n      throw new errors.ERR_OUT_OF_RANGE(\"value\", range, value);\n    }\n\n    checkBounds(buf, offset, byteLength);\n  }\n\n  function validateNumber(value, name) {\n    if (typeof value !== \"number\") {\n      throw new errors.ERR_INVALID_ARG_TYPE(name, \"number\", value);\n    }\n  }\n\n  function boundsError(value, length, type) {\n    if (Math.floor(value) !== value) {\n      validateNumber(value, type);\n      throw new errors.ERR_OUT_OF_RANGE(type || \"offset\", \"an integer\", value);\n    }\n\n    if (length < 0) {\n      throw new errors.ERR_BUFFER_OUT_OF_BOUNDS();\n    }\n\n    throw new errors.ERR_OUT_OF_RANGE(type || \"offset\", `>= ${type ? 1 : 0} and <= ${length}`, value);\n  } // HELPER FUNCTIONS\n  // ================\n\n\n  const INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g;\n\n  function base64clean(str) {\n    // Node takes equal signs as end of the Base64 encoding\n    str = str.split(\"=\")[0]; // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n\n    str = str.trim().replace(INVALID_BASE64_RE, \"\"); // Node converts strings with length < 2 to ''\n\n    if (str.length < 2) return \"\"; // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n\n    while (str.length % 4 !== 0) {\n      str = str + \"=\";\n    }\n\n    return str;\n  }\n\n  function utf8ToBytes(string, units) {\n    units = units || Infinity;\n    let codePoint;\n    const length = string.length;\n    let leadSurrogate = null;\n    const bytes = [];\n\n    for (let i = 0; i < length; ++i) {\n      codePoint = string.charCodeAt(i); // is surrogate component\n\n      if (codePoint > 55295 && codePoint < 57344) {\n        // last char was a lead\n        if (!leadSurrogate) {\n          // no lead yet\n          if (codePoint > 56319) {\n            // unexpected trail\n            if ((units -= 3) > -1) bytes.push(239, 191, 189);\n            continue;\n          } else if (i + 1 === length) {\n            // unpaired lead\n            if ((units -= 3) > -1) bytes.push(239, 191, 189);\n            continue;\n          } // valid lead\n\n\n          leadSurrogate = codePoint;\n          continue;\n        } // 2 leads in a row\n\n\n        if (codePoint < 56320) {\n          if ((units -= 3) > -1) bytes.push(239, 191, 189);\n          leadSurrogate = codePoint;\n          continue;\n        } // valid surrogate pair\n\n\n        codePoint = (leadSurrogate - 55296 << 10 | codePoint - 56320) + 65536;\n      } else if (leadSurrogate) {\n        // valid bmp char, but last char was a lead\n        if ((units -= 3) > -1) bytes.push(239, 191, 189);\n      }\n\n      leadSurrogate = null; // encode utf8\n\n      if (codePoint < 128) {\n        if ((units -= 1) < 0) break;\n        bytes.push(codePoint);\n      } else if (codePoint < 2048) {\n        if ((units -= 2) < 0) break;\n        bytes.push(codePoint >> 6 | 192, codePoint & 63 | 128);\n      } else if (codePoint < 65536) {\n        if ((units -= 3) < 0) break;\n        bytes.push(codePoint >> 12 | 224, codePoint >> 6 & 63 | 128, codePoint & 63 | 128);\n      } else if (codePoint < 1114112) {\n        if ((units -= 4) < 0) break;\n        bytes.push(codePoint >> 18 | 240, codePoint >> 12 & 63 | 128, codePoint >> 6 & 63 | 128, codePoint & 63 | 128);\n      } else {\n        throw new Error(\"Invalid code point\");\n      }\n    }\n\n    return bytes;\n  }\n\n  function asciiToBytes(str) {\n    const byteArray = [];\n\n    for (let i = 0; i < str.length; ++i) {\n      // Node's code seems to be doing this and not & 0x7F..\n      byteArray.push(str.charCodeAt(i) & 255);\n    }\n\n    return byteArray;\n  }\n\n  function utf16leToBytes(str, units) {\n    let c, hi, lo;\n    const byteArray = [];\n\n    for (let i = 0; i < str.length; ++i) {\n      if ((units -= 2) < 0) break;\n      c = str.charCodeAt(i);\n      hi = c >> 8;\n      lo = c % 256;\n      byteArray.push(lo);\n      byteArray.push(hi);\n    }\n\n    return byteArray;\n  }\n\n  function base64ToBytes(str) {\n    return base64.toByteArray(base64clean(str));\n  }\n\n  function blitBuffer(src, dst, offset, length) {\n    let i;\n\n    for (i = 0; i < length; ++i) {\n      if (i + offset >= dst.length || i >= src.length) break;\n      dst[i + offset] = src[i];\n    }\n\n    return i;\n  } // ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass\n  // the `instanceof` check but they should be treated as of that type.\n  // See: https://github.com/feross/buffer/issues/166\n\n\n  function isInstance(obj, type) {\n    return obj instanceof type || obj != null && obj.constructor != null && obj.constructor.name != null && obj.constructor.name === type.name;\n  }\n\n  function numberIsNaN(obj) {\n    // For IE11 support\n    return obj !== obj; // eslint-disable-line no-self-compare\n  } // Create lookup table for `toString('hex')`\n  // See: https://github.com/feross/buffer/issues/219\n\n\n  const hexSliceLookupTable = function () {\n    const alphabet = \"0123456789abcdef\";\n    const table = new Array(256);\n\n    for (let i = 0; i < 16; ++i) {\n      const i16 = i * 16;\n\n      for (let j = 0; j < 16; ++j) {\n        table[i16 + j] = alphabet[i] + alphabet[j];\n      }\n    }\n\n    return table;\n  }(); // Return not function with Error if BigInt not supported\n\n\n  function defineBigIntMethod(fn) {\n    return typeof BigInt === \"undefined\" ? BufferBigIntNotDefined : fn;\n  }\n\n  function BufferBigIntNotDefined() {\n    throw new Error(\"BigInt not supported\");\n  }\n\n  return exports$1;\n}\n\nconst exports = dew();\nexports['Buffer']; exports['SlowBuffer']; exports['INSPECT_MAX_BYTES']; exports['kMaxLength'];\n\nvar Buffer = exports.Buffer;\r\nvar INSPECT_MAX_BYTES = exports.INSPECT_MAX_BYTES;\r\nvar kMaxLength = exports.kMaxLength;\n\nexport { Buffer, INSPECT_MAX_BYTES, exports as default, kMaxLength };\n", "export { Buffer } from \"buffer\";\n", "'use strict';\n\n\nfunction isNothing(subject) {\n  return (typeof subject === 'undefined') || (subject === null);\n}\n\n\nfunction isObject(subject) {\n  return (typeof subject === 'object') && (subject !== null);\n}\n\n\nfunction toArray(sequence) {\n  if (Array.isArray(sequence)) return sequence;\n  else if (isNothing(sequence)) return [];\n\n  return [ sequence ];\n}\n\n\nfunction extend(target, source) {\n  var index, length, key, sourceKeys;\n\n  if (source) {\n    sourceKeys = Object.keys(source);\n\n    for (index = 0, length = sourceKeys.length; index < length; index += 1) {\n      key = sourceKeys[index];\n      target[key] = source[key];\n    }\n  }\n\n  return target;\n}\n\n\nfunction repeat(string, count) {\n  var result = '', cycle;\n\n  for (cycle = 0; cycle < count; cycle += 1) {\n    result += string;\n  }\n\n  return result;\n}\n\n\nfunction isNegativeZero(number) {\n  return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number);\n}\n\n\nmodule.exports.isNothing      = isNothing;\nmodule.exports.isObject       = isObject;\nmodule.exports.toArray        = toArray;\nmodule.exports.repeat         = repeat;\nmodule.exports.isNegativeZero = isNegativeZero;\nmodule.exports.extend         = extend;\n", "// YAML error class. http://stackoverflow.com/questions/8458984\n//\n'use strict';\n\n\nfunction formatError(exception, compact) {\n  var where = '', message = exception.reason || '(unknown reason)';\n\n  if (!exception.mark) return message;\n\n  if (exception.mark.name) {\n    where += 'in \"' + exception.mark.name + '\" ';\n  }\n\n  where += '(' + (exception.mark.line + 1) + ':' + (exception.mark.column + 1) + ')';\n\n  if (!compact && exception.mark.snippet) {\n    where += '\\n\\n' + exception.mark.snippet;\n  }\n\n  return message + ' ' + where;\n}\n\n\nfunction YAMLException(reason, mark) {\n  // Super constructor\n  Error.call(this);\n\n  this.name = 'YAMLException';\n  this.reason = reason;\n  this.mark = mark;\n  this.message = formatError(this, false);\n\n  // Include stack trace in error object\n  if (Error.captureStackTrace) {\n    // Chrome and NodeJS\n    Error.captureStackTrace(this, this.constructor);\n  } else {\n    // FF, IE 10+ and Safari 6+. Fallback for others\n    this.stack = (new Error()).stack || '';\n  }\n}\n\n\n// Inherit from Error\nYAMLException.prototype = Object.create(Error.prototype);\nYAMLException.prototype.constructor = YAMLException;\n\n\nYAMLException.prototype.toString = function toString(compact) {\n  return this.name + ': ' + formatError(this, compact);\n};\n\n\nmodule.exports = YAMLException;\n", "'use strict';\n\n\nvar common = require('./common');\n\n\n// get snippet for a single line, respecting maxLength\nfunction getLine(buffer, lineStart, lineEnd, position, maxLineLength) {\n  var head = '';\n  var tail = '';\n  var maxHalfLength = Math.floor(maxLineLength / 2) - 1;\n\n  if (position - lineStart > maxHalfLength) {\n    head = ' ... ';\n    lineStart = position - maxHalfLength + head.length;\n  }\n\n  if (lineEnd - position > maxHalfLength) {\n    tail = ' ...';\n    lineEnd = position + maxHalfLength - tail.length;\n  }\n\n  return {\n    str: head + buffer.slice(lineStart, lineEnd).replace(/\\t/g, '\u2192') + tail,\n    pos: position - lineStart + head.length // relative position\n  };\n}\n\n\nfunction padStart(string, max) {\n  return common.repeat(' ', max - string.length) + string;\n}\n\n\nfunction makeSnippet(mark, options) {\n  options = Object.create(options || null);\n\n  if (!mark.buffer) return null;\n\n  if (!options.maxLength) options.maxLength = 79;\n  if (typeof options.indent      !== 'number') options.indent      = 1;\n  if (typeof options.linesBefore !== 'number') options.linesBefore = 3;\n  if (typeof options.linesAfter  !== 'number') options.linesAfter  = 2;\n\n  var re = /\\r?\\n|\\r|\\0/g;\n  var lineStarts = [ 0 ];\n  var lineEnds = [];\n  var match;\n  var foundLineNo = -1;\n\n  while ((match = re.exec(mark.buffer))) {\n    lineEnds.push(match.index);\n    lineStarts.push(match.index + match[0].length);\n\n    if (mark.position <= match.index && foundLineNo < 0) {\n      foundLineNo = lineStarts.length - 2;\n    }\n  }\n\n  if (foundLineNo < 0) foundLineNo = lineStarts.length - 1;\n\n  var result = '', i, line;\n  var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;\n  var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);\n\n  for (i = 1; i <= options.linesBefore; i++) {\n    if (foundLineNo - i < 0) break;\n    line = getLine(\n      mark.buffer,\n      lineStarts[foundLineNo - i],\n      lineEnds[foundLineNo - i],\n      mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]),\n      maxLineLength\n    );\n    result = common.repeat(' ', options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) +\n      ' | ' + line.str + '\\n' + result;\n  }\n\n  line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);\n  result += common.repeat(' ', options.indent) + padStart((mark.line + 1).toString(), lineNoLength) +\n    ' | ' + line.str + '\\n';\n  result += common.repeat('-', options.indent + lineNoLength + 3 + line.pos) + '^' + '\\n';\n\n  for (i = 1; i <= options.linesAfter; i++) {\n    if (foundLineNo + i >= lineEnds.length) break;\n    line = getLine(\n      mark.buffer,\n      lineStarts[foundLineNo + i],\n      lineEnds[foundLineNo + i],\n      mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]),\n      maxLineLength\n    );\n    result += common.repeat(' ', options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) +\n      ' | ' + line.str + '\\n';\n  }\n\n  return result.replace(/\\n$/, '');\n}\n\n\nmodule.exports = makeSnippet;\n", "'use strict';\n\nvar YAMLException = require('./exception');\n\nvar TYPE_CONSTRUCTOR_OPTIONS = [\n  'kind',\n  'multi',\n  'resolve',\n  'construct',\n  'instanceOf',\n  'predicate',\n  'represent',\n  'representName',\n  'defaultStyle',\n  'styleAliases'\n];\n\nvar YAML_NODE_KINDS = [\n  'scalar',\n  'sequence',\n  'mapping'\n];\n\nfunction compileStyleAliases(map) {\n  var result = {};\n\n  if (map !== null) {\n    Object.keys(map).forEach(function (style) {\n      map[style].forEach(function (alias) {\n        result[String(alias)] = style;\n      });\n    });\n  }\n\n  return result;\n}\n\nfunction Type(tag, options) {\n  options = options || {};\n\n  Object.keys(options).forEach(function (name) {\n    if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {\n      throw new YAMLException('Unknown option \"' + name + '\" is met in definition of \"' + tag + '\" YAML type.');\n    }\n  });\n\n  // TODO: Add tag format check.\n  this.options       = options; // keep original options in case user wants to extend this type later\n  this.tag           = tag;\n  this.kind          = options['kind']          || null;\n  this.resolve       = options['resolve']       || function () { return true; };\n  this.construct     = options['construct']     || function (data) { return data; };\n  this.instanceOf    = options['instanceOf']    || null;\n  this.predicate     = options['predicate']     || null;\n  this.represent     = options['represent']     || null;\n  this.representName = options['representName'] || null;\n  this.defaultStyle  = options['defaultStyle']  || null;\n  this.multi         = options['multi']         || false;\n  this.styleAliases  = compileStyleAliases(options['styleAliases'] || null);\n\n  if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {\n    throw new YAMLException('Unknown kind \"' + this.kind + '\" is specified for \"' + tag + '\" YAML type.');\n  }\n}\n\nmodule.exports = Type;\n", "'use strict';\n\n/*eslint-disable max-len*/\n\nvar YAMLException = require('./exception');\nvar Type          = require('./type');\n\n\nfunction compileList(schema, name) {\n  var result = [];\n\n  schema[name].forEach(function (currentType) {\n    var newIndex = result.length;\n\n    result.forEach(function (previousType, previousIndex) {\n      if (previousType.tag === currentType.tag &&\n          previousType.kind === currentType.kind &&\n          previousType.multi === currentType.multi) {\n\n        newIndex = previousIndex;\n      }\n    });\n\n    result[newIndex] = currentType;\n  });\n\n  return result;\n}\n\n\nfunction compileMap(/* lists... */) {\n  var result = {\n        scalar: {},\n        sequence: {},\n        mapping: {},\n        fallback: {},\n        multi: {\n          scalar: [],\n          sequence: [],\n          mapping: [],\n          fallback: []\n        }\n      }, index, length;\n\n  function collectType(type) {\n    if (type.multi) {\n      result.multi[type.kind].push(type);\n      result.multi['fallback'].push(type);\n    } else {\n      result[type.kind][type.tag] = result['fallback'][type.tag] = type;\n    }\n  }\n\n  for (index = 0, length = arguments.length; index < length; index += 1) {\n    arguments[index].forEach(collectType);\n  }\n  return result;\n}\n\n\nfunction Schema(definition) {\n  return this.extend(definition);\n}\n\n\nSchema.prototype.extend = function extend(definition) {\n  var implicit = [];\n  var explicit = [];\n\n  if (definition instanceof Type) {\n    // Schema.extend(type)\n    explicit.push(definition);\n\n  } else if (Array.isArray(definition)) {\n    // Schema.extend([ type1, type2, ... ])\n    explicit = explicit.concat(definition);\n\n  } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {\n    // Schema.extend({ explicit: [ type1, type2, ... ], implicit: [ type1, type2, ... ] })\n    if (definition.implicit) implicit = implicit.concat(definition.implicit);\n    if (definition.explicit) explicit = explicit.concat(definition.explicit);\n\n  } else {\n    throw new YAMLException('Schema.extend argument should be a Type, [ Type ], ' +\n      'or a schema definition ({ implicit: [...], explicit: [...] })');\n  }\n\n  implicit.forEach(function (type) {\n    if (!(type instanceof Type)) {\n      throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.');\n    }\n\n    if (type.loadKind && type.loadKind !== 'scalar') {\n      throw new YAMLException('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.');\n    }\n\n    if (type.multi) {\n      throw new YAMLException('There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.');\n    }\n  });\n\n  explicit.forEach(function (type) {\n    if (!(type instanceof Type)) {\n      throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.');\n    }\n  });\n\n  var result = Object.create(Schema.prototype);\n\n  result.implicit = (this.implicit || []).concat(implicit);\n  result.explicit = (this.explicit || []).concat(explicit);\n\n  result.compiledImplicit = compileList(result, 'implicit');\n  result.compiledExplicit = compileList(result, 'explicit');\n  result.compiledTypeMap  = compileMap(result.compiledImplicit, result.compiledExplicit);\n\n  return result;\n};\n\n\nmodule.exports = Schema;\n", "'use strict';\n\nvar Type = require('../type');\n\nmodule.exports = new Type('tag:yaml.org,2002:str', {\n  kind: 'scalar',\n  construct: function (data) { return data !== null ? data : ''; }\n});\n", "'use strict';\n\nvar Type = require('../type');\n\nmodule.exports = new Type('tag:yaml.org,2002:seq', {\n  kind: 'sequence',\n  construct: function (data) { return data !== null ? data : []; }\n});\n", "'use strict';\n\nvar Type = require('../type');\n\nmodule.exports = new Type('tag:yaml.org,2002:map', {\n  kind: 'mapping',\n  construct: function (data) { return data !== null ? data : {}; }\n});\n", "// Standard YAML's Failsafe schema.\n// http://www.yaml.org/spec/1.2/spec.html#id2802346\n\n\n'use strict';\n\n\nvar Schema = require('../schema');\n\n\nmodule.exports = new Schema({\n  explicit: [\n    require('../type/str'),\n    require('../type/seq'),\n    require('../type/map')\n  ]\n});\n", "'use strict';\n\nvar Type = require('../type');\n\nfunction resolveYamlNull(data) {\n  if (data === null) return true;\n\n  var max = data.length;\n\n  return (max === 1 && data === '~') ||\n         (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL'));\n}\n\nfunction constructYamlNull() {\n  return null;\n}\n\nfunction isNull(object) {\n  return object === null;\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:null', {\n  kind: 'scalar',\n  resolve: resolveYamlNull,\n  construct: constructYamlNull,\n  predicate: isNull,\n  represent: {\n    canonical: function () { return '~';    },\n    lowercase: function () { return 'null'; },\n    uppercase: function () { return 'NULL'; },\n    camelcase: function () { return 'Null'; },\n    empty:     function () { return '';     }\n  },\n  defaultStyle: 'lowercase'\n});\n", "'use strict';\n\nvar Type = require('../type');\n\nfunction resolveYamlBoolean(data) {\n  if (data === null) return false;\n\n  var max = data.length;\n\n  return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) ||\n         (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE'));\n}\n\nfunction constructYamlBoolean(data) {\n  return data === 'true' ||\n         data === 'True' ||\n         data === 'TRUE';\n}\n\nfunction isBoolean(object) {\n  return Object.prototype.toString.call(object) === '[object Boolean]';\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:bool', {\n  kind: 'scalar',\n  resolve: resolveYamlBoolean,\n  construct: constructYamlBoolean,\n  predicate: isBoolean,\n  represent: {\n    lowercase: function (object) { return object ? 'true' : 'false'; },\n    uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; },\n    camelcase: function (object) { return object ? 'True' : 'False'; }\n  },\n  defaultStyle: 'lowercase'\n});\n", "'use strict';\n\nvar common = require('../common');\nvar Type   = require('../type');\n\nfunction isHexCode(c) {\n  return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) ||\n         ((0x41/* A */ <= c) && (c <= 0x46/* F */)) ||\n         ((0x61/* a */ <= c) && (c <= 0x66/* f */));\n}\n\nfunction isOctCode(c) {\n  return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */));\n}\n\nfunction isDecCode(c) {\n  return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */));\n}\n\nfunction resolveYamlInteger(data) {\n  if (data === null) return false;\n\n  var max = data.length,\n      index = 0,\n      hasDigits = false,\n      ch;\n\n  if (!max) return false;\n\n  ch = data[index];\n\n  // sign\n  if (ch === '-' || ch === '+') {\n    ch = data[++index];\n  }\n\n  if (ch === '0') {\n    // 0\n    if (index + 1 === max) return true;\n    ch = data[++index];\n\n    // base 2, base 8, base 16\n\n    if (ch === 'b') {\n      // base 2\n      index++;\n\n      for (; index < max; index++) {\n        ch = data[index];\n        if (ch === '_') continue;\n        if (ch !== '0' && ch !== '1') return false;\n        hasDigits = true;\n      }\n      return hasDigits && ch !== '_';\n    }\n\n\n    if (ch === 'x') {\n      // base 16\n      index++;\n\n      for (; index < max; index++) {\n        ch = data[index];\n        if (ch === '_') continue;\n        if (!isHexCode(data.charCodeAt(index))) return false;\n        hasDigits = true;\n      }\n      return hasDigits && ch !== '_';\n    }\n\n\n    if (ch === 'o') {\n      // base 8\n      index++;\n\n      for (; index < max; index++) {\n        ch = data[index];\n        if (ch === '_') continue;\n        if (!isOctCode(data.charCodeAt(index))) return false;\n        hasDigits = true;\n      }\n      return hasDigits && ch !== '_';\n    }\n  }\n\n  // base 10 (except 0)\n\n  // value should not start with `_`;\n  if (ch === '_') return false;\n\n  for (; index < max; index++) {\n    ch = data[index];\n    if (ch === '_') continue;\n    if (!isDecCode(data.charCodeAt(index))) {\n      return false;\n    }\n    hasDigits = true;\n  }\n\n  // Should have digits and should not end with `_`\n  if (!hasDigits || ch === '_') return false;\n\n  return true;\n}\n\nfunction constructYamlInteger(data) {\n  var value = data, sign = 1, ch;\n\n  if (value.indexOf('_') !== -1) {\n    value = value.replace(/_/g, '');\n  }\n\n  ch = value[0];\n\n  if (ch === '-' || ch === '+') {\n    if (ch === '-') sign = -1;\n    value = value.slice(1);\n    ch = value[0];\n  }\n\n  if (value === '0') return 0;\n\n  if (ch === '0') {\n    if (value[1] === 'b') return sign * parseInt(value.slice(2), 2);\n    if (value[1] === 'x') return sign * parseInt(value.slice(2), 16);\n    if (value[1] === 'o') return sign * parseInt(value.slice(2), 8);\n  }\n\n  return sign * parseInt(value, 10);\n}\n\nfunction isInteger(object) {\n  return (Object.prototype.toString.call(object)) === '[object Number]' &&\n         (object % 1 === 0 && !common.isNegativeZero(object));\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:int', {\n  kind: 'scalar',\n  resolve: resolveYamlInteger,\n  construct: constructYamlInteger,\n  predicate: isInteger,\n  represent: {\n    binary:      function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); },\n    octal:       function (obj) { return obj >= 0 ? '0o'  + obj.toString(8) : '-0o'  + obj.toString(8).slice(1); },\n    decimal:     function (obj) { return obj.toString(10); },\n    /* eslint-disable max-len */\n    hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() :  '-0x' + obj.toString(16).toUpperCase().slice(1); }\n  },\n  defaultStyle: 'decimal',\n  styleAliases: {\n    binary:      [ 2,  'bin' ],\n    octal:       [ 8,  'oct' ],\n    decimal:     [ 10, 'dec' ],\n    hexadecimal: [ 16, 'hex' ]\n  }\n});\n", "'use strict';\n\nvar common = require('../common');\nvar Type   = require('../type');\n\nvar YAML_FLOAT_PATTERN = new RegExp(\n  // 2.5e4, 2.5 and integers\n  '^(?:[-+]?(?:[0-9][0-9_]*)(?:\\\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' +\n  // .2e4, .2\n  // special case, seems not from spec\n  '|\\\\.[0-9_]+(?:[eE][-+]?[0-9]+)?' +\n  // .inf\n  '|[-+]?\\\\.(?:inf|Inf|INF)' +\n  // .nan\n  '|\\\\.(?:nan|NaN|NAN))$');\n\nfunction resolveYamlFloat(data) {\n  if (data === null) return false;\n\n  if (!YAML_FLOAT_PATTERN.test(data) ||\n      // Quick hack to not allow integers end with `_`\n      // Probably should update regexp & check speed\n      data[data.length - 1] === '_') {\n    return false;\n  }\n\n  return true;\n}\n\nfunction constructYamlFloat(data) {\n  var value, sign;\n\n  value  = data.replace(/_/g, '').toLowerCase();\n  sign   = value[0] === '-' ? -1 : 1;\n\n  if ('+-'.indexOf(value[0]) >= 0) {\n    value = value.slice(1);\n  }\n\n  if (value === '.inf') {\n    return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;\n\n  } else if (value === '.nan') {\n    return NaN;\n  }\n  return sign * parseFloat(value, 10);\n}\n\n\nvar SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;\n\nfunction representYamlFloat(object, style) {\n  var res;\n\n  if (isNaN(object)) {\n    switch (style) {\n      case 'lowercase': return '.nan';\n      case 'uppercase': return '.NAN';\n      case 'camelcase': return '.NaN';\n    }\n  } else if (Number.POSITIVE_INFINITY === object) {\n    switch (style) {\n      case 'lowercase': return '.inf';\n      case 'uppercase': return '.INF';\n      case 'camelcase': return '.Inf';\n    }\n  } else if (Number.NEGATIVE_INFINITY === object) {\n    switch (style) {\n      case 'lowercase': return '-.inf';\n      case 'uppercase': return '-.INF';\n      case 'camelcase': return '-.Inf';\n    }\n  } else if (common.isNegativeZero(object)) {\n    return '-0.0';\n  }\n\n  res = object.toString(10);\n\n  // JS stringifier can build scientific format without dots: 5e-100,\n  // while YAML requres dot: 5.e-100. Fix it with simple hack\n\n  return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res;\n}\n\nfunction isFloat(object) {\n  return (Object.prototype.toString.call(object) === '[object Number]') &&\n         (object % 1 !== 0 || common.isNegativeZero(object));\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:float', {\n  kind: 'scalar',\n  resolve: resolveYamlFloat,\n  construct: constructYamlFloat,\n  predicate: isFloat,\n  represent: representYamlFloat,\n  defaultStyle: 'lowercase'\n});\n", "// Standard YAML's JSON schema.\n// http://www.yaml.org/spec/1.2/spec.html#id2803231\n//\n// NOTE: JS-YAML does not support schema-specific tag resolution restrictions.\n// So, this schema is not such strict as defined in the YAML specification.\n// It allows numbers in binary notaion, use `Null` and `NULL` as `null`, etc.\n\n\n'use strict';\n\n\nmodule.exports = require('./failsafe').extend({\n  implicit: [\n    require('../type/null'),\n    require('../type/bool'),\n    require('../type/int'),\n    require('../type/float')\n  ]\n});\n", "// Standard YAML's Core schema.\n// http://www.yaml.org/spec/1.2/spec.html#id2804923\n//\n// NOTE: JS-YAML does not support schema-specific tag resolution restrictions.\n// So, Core schema has no distinctions from JSON schema is JS-YAML.\n\n\n'use strict';\n\n\nmodule.exports = require('./json');\n", "'use strict';\n\nvar Type = require('../type');\n\nvar YAML_DATE_REGEXP = new RegExp(\n  '^([0-9][0-9][0-9][0-9])'          + // [1] year\n  '-([0-9][0-9])'                    + // [2] month\n  '-([0-9][0-9])$');                   // [3] day\n\nvar YAML_TIMESTAMP_REGEXP = new RegExp(\n  '^([0-9][0-9][0-9][0-9])'          + // [1] year\n  '-([0-9][0-9]?)'                   + // [2] month\n  '-([0-9][0-9]?)'                   + // [3] day\n  '(?:[Tt]|[ \\\\t]+)'                 + // ...\n  '([0-9][0-9]?)'                    + // [4] hour\n  ':([0-9][0-9])'                    + // [5] minute\n  ':([0-9][0-9])'                    + // [6] second\n  '(?:\\\\.([0-9]*))?'                 + // [7] fraction\n  '(?:[ \\\\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour\n  '(?::([0-9][0-9]))?))?$');           // [11] tz_minute\n\nfunction resolveYamlTimestamp(data) {\n  if (data === null) return false;\n  if (YAML_DATE_REGEXP.exec(data) !== null) return true;\n  if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true;\n  return false;\n}\n\nfunction constructYamlTimestamp(data) {\n  var match, year, month, day, hour, minute, second, fraction = 0,\n      delta = null, tz_hour, tz_minute, date;\n\n  match = YAML_DATE_REGEXP.exec(data);\n  if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);\n\n  if (match === null) throw new Error('Date resolve error');\n\n  // match: [1] year [2] month [3] day\n\n  year = +(match[1]);\n  month = +(match[2]) - 1; // JS month starts with 0\n  day = +(match[3]);\n\n  if (!match[4]) { // no hour\n    return new Date(Date.UTC(year, month, day));\n  }\n\n  // match: [4] hour [5] minute [6] second [7] fraction\n\n  hour = +(match[4]);\n  minute = +(match[5]);\n  second = +(match[6]);\n\n  if (match[7]) {\n    fraction = match[7].slice(0, 3);\n    while (fraction.length < 3) { // milli-seconds\n      fraction += '0';\n    }\n    fraction = +fraction;\n  }\n\n  // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute\n\n  if (match[9]) {\n    tz_hour = +(match[10]);\n    tz_minute = +(match[11] || 0);\n    delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds\n    if (match[9] === '-') delta = -delta;\n  }\n\n  date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));\n\n  if (delta) date.setTime(date.getTime() - delta);\n\n  return date;\n}\n\nfunction representYamlTimestamp(object /*, style*/) {\n  return object.toISOString();\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:timestamp', {\n  kind: 'scalar',\n  resolve: resolveYamlTimestamp,\n  construct: constructYamlTimestamp,\n  instanceOf: Date,\n  represent: representYamlTimestamp\n});\n", "'use strict';\n\nvar Type = require('../type');\n\nfunction resolveYamlMerge(data) {\n  return data === '<<' || data === null;\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:merge', {\n  kind: 'scalar',\n  resolve: resolveYamlMerge\n});\n", "'use strict';\n\n/*eslint-disable no-bitwise*/\n\n\nvar Type = require('../type');\n\n\n// [ 64, 65, 66 ] -> [ padding, CR, LF ]\nvar BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\\n\\r';\n\n\nfunction resolveYamlBinary(data) {\n  if (data === null) return false;\n\n  var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP;\n\n  // Convert one by one.\n  for (idx = 0; idx < max; idx++) {\n    code = map.indexOf(data.charAt(idx));\n\n    // Skip CR/LF\n    if (code > 64) continue;\n\n    // Fail on illegal characters\n    if (code < 0) return false;\n\n    bitlen += 6;\n  }\n\n  // If there are any bits left, source was corrupted\n  return (bitlen % 8) === 0;\n}\n\nfunction constructYamlBinary(data) {\n  var idx, tailbits,\n      input = data.replace(/[\\r\\n=]/g, ''), // remove CR/LF & padding to simplify scan\n      max = input.length,\n      map = BASE64_MAP,\n      bits = 0,\n      result = [];\n\n  // Collect by 6*4 bits (3 bytes)\n\n  for (idx = 0; idx < max; idx++) {\n    if ((idx % 4 === 0) && idx) {\n      result.push((bits >> 16) & 0xFF);\n      result.push((bits >> 8) & 0xFF);\n      result.push(bits & 0xFF);\n    }\n\n    bits = (bits << 6) | map.indexOf(input.charAt(idx));\n  }\n\n  // Dump tail\n\n  tailbits = (max % 4) * 6;\n\n  if (tailbits === 0) {\n    result.push((bits >> 16) & 0xFF);\n    result.push((bits >> 8) & 0xFF);\n    result.push(bits & 0xFF);\n  } else if (tailbits === 18) {\n    result.push((bits >> 10) & 0xFF);\n    result.push((bits >> 2) & 0xFF);\n  } else if (tailbits === 12) {\n    result.push((bits >> 4) & 0xFF);\n  }\n\n  return new Uint8Array(result);\n}\n\nfunction representYamlBinary(object /*, style*/) {\n  var result = '', bits = 0, idx, tail,\n      max = object.length,\n      map = BASE64_MAP;\n\n  // Convert every three bytes to 4 ASCII characters.\n\n  for (idx = 0; idx < max; idx++) {\n    if ((idx % 3 === 0) && idx) {\n      result += map[(bits >> 18) & 0x3F];\n      result += map[(bits >> 12) & 0x3F];\n      result += map[(bits >> 6) & 0x3F];\n      result += map[bits & 0x3F];\n    }\n\n    bits = (bits << 8) + object[idx];\n  }\n\n  // Dump tail\n\n  tail = max % 3;\n\n  if (tail === 0) {\n    result += map[(bits >> 18) & 0x3F];\n    result += map[(bits >> 12) & 0x3F];\n    result += map[(bits >> 6) & 0x3F];\n    result += map[bits & 0x3F];\n  } else if (tail === 2) {\n    result += map[(bits >> 10) & 0x3F];\n    result += map[(bits >> 4) & 0x3F];\n    result += map[(bits << 2) & 0x3F];\n    result += map[64];\n  } else if (tail === 1) {\n    result += map[(bits >> 2) & 0x3F];\n    result += map[(bits << 4) & 0x3F];\n    result += map[64];\n    result += map[64];\n  }\n\n  return result;\n}\n\nfunction isBinary(obj) {\n  return Object.prototype.toString.call(obj) ===  '[object Uint8Array]';\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:binary', {\n  kind: 'scalar',\n  resolve: resolveYamlBinary,\n  construct: constructYamlBinary,\n  predicate: isBinary,\n  represent: representYamlBinary\n});\n", "'use strict';\n\nvar Type = require('../type');\n\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\nvar _toString       = Object.prototype.toString;\n\nfunction resolveYamlOmap(data) {\n  if (data === null) return true;\n\n  var objectKeys = [], index, length, pair, pairKey, pairHasKey,\n      object = data;\n\n  for (index = 0, length = object.length; index < length; index += 1) {\n    pair = object[index];\n    pairHasKey = false;\n\n    if (_toString.call(pair) !== '[object Object]') return false;\n\n    for (pairKey in pair) {\n      if (_hasOwnProperty.call(pair, pairKey)) {\n        if (!pairHasKey) pairHasKey = true;\n        else return false;\n      }\n    }\n\n    if (!pairHasKey) return false;\n\n    if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);\n    else return false;\n  }\n\n  return true;\n}\n\nfunction constructYamlOmap(data) {\n  return data !== null ? data : [];\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:omap', {\n  kind: 'sequence',\n  resolve: resolveYamlOmap,\n  construct: constructYamlOmap\n});\n", "'use strict';\n\nvar Type = require('../type');\n\nvar _toString = Object.prototype.toString;\n\nfunction resolveYamlPairs(data) {\n  if (data === null) return true;\n\n  var index, length, pair, keys, result,\n      object = data;\n\n  result = new Array(object.length);\n\n  for (index = 0, length = object.length; index < length; index += 1) {\n    pair = object[index];\n\n    if (_toString.call(pair) !== '[object Object]') return false;\n\n    keys = Object.keys(pair);\n\n    if (keys.length !== 1) return false;\n\n    result[index] = [ keys[0], pair[keys[0]] ];\n  }\n\n  return true;\n}\n\nfunction constructYamlPairs(data) {\n  if (data === null) return [];\n\n  var index, length, pair, keys, result,\n      object = data;\n\n  result = new Array(object.length);\n\n  for (index = 0, length = object.length; index < length; index += 1) {\n    pair = object[index];\n\n    keys = Object.keys(pair);\n\n    result[index] = [ keys[0], pair[keys[0]] ];\n  }\n\n  return result;\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:pairs', {\n  kind: 'sequence',\n  resolve: resolveYamlPairs,\n  construct: constructYamlPairs\n});\n", "'use strict';\n\nvar Type = require('../type');\n\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction resolveYamlSet(data) {\n  if (data === null) return true;\n\n  var key, object = data;\n\n  for (key in object) {\n    if (_hasOwnProperty.call(object, key)) {\n      if (object[key] !== null) return false;\n    }\n  }\n\n  return true;\n}\n\nfunction constructYamlSet(data) {\n  return data !== null ? data : {};\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:set', {\n  kind: 'mapping',\n  resolve: resolveYamlSet,\n  construct: constructYamlSet\n});\n", "// JS-YAML's default schema for `safeLoad` function.\n// It is not described in the YAML specification.\n//\n// This schema is based on standard YAML's Core schema and includes most of\n// extra types described at YAML tag repository. (http://yaml.org/type/)\n\n\n'use strict';\n\n\nmodule.exports = require('./core').extend({\n  implicit: [\n    require('../type/timestamp'),\n    require('../type/merge')\n  ],\n  explicit: [\n    require('../type/binary'),\n    require('../type/omap'),\n    require('../type/pairs'),\n    require('../type/set')\n  ]\n});\n", "'use strict';\n\n/*eslint-disable max-len,no-use-before-define*/\n\nvar common              = require('./common');\nvar YAMLException       = require('./exception');\nvar makeSnippet         = require('./snippet');\nvar DEFAULT_SCHEMA      = require('./schema/default');\n\n\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\n\n\nvar CONTEXT_FLOW_IN   = 1;\nvar CONTEXT_FLOW_OUT  = 2;\nvar CONTEXT_BLOCK_IN  = 3;\nvar CONTEXT_BLOCK_OUT = 4;\n\n\nvar CHOMPING_CLIP  = 1;\nvar CHOMPING_STRIP = 2;\nvar CHOMPING_KEEP  = 3;\n\n\nvar PATTERN_NON_PRINTABLE         = /[\\x00-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F-\\x84\\x86-\\x9F\\uFFFE\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/;\nvar PATTERN_NON_ASCII_LINE_BREAKS = /[\\x85\\u2028\\u2029]/;\nvar PATTERN_FLOW_INDICATORS       = /[,\\[\\]\\{\\}]/;\nvar PATTERN_TAG_HANDLE            = /^(?:!|!!|![a-z\\-]+!)$/i;\nvar PATTERN_TAG_URI               = /^(?:!|[^,\\[\\]\\{\\}])(?:%[0-9a-f]{2}|[0-9a-z\\-#;\\/\\?:@&=\\+\\$,_\\.!~\\*'\\(\\)\\[\\]])*$/i;\n\n\nfunction _class(obj) { return Object.prototype.toString.call(obj); }\n\nfunction is_EOL(c) {\n  return (c === 0x0A/* LF */) || (c === 0x0D/* CR */);\n}\n\nfunction is_WHITE_SPACE(c) {\n  return (c === 0x09/* Tab */) || (c === 0x20/* Space */);\n}\n\nfunction is_WS_OR_EOL(c) {\n  return (c === 0x09/* Tab */) ||\n         (c === 0x20/* Space */) ||\n         (c === 0x0A/* LF */) ||\n         (c === 0x0D/* CR */);\n}\n\nfunction is_FLOW_INDICATOR(c) {\n  return c === 0x2C/* , */ ||\n         c === 0x5B/* [ */ ||\n         c === 0x5D/* ] */ ||\n         c === 0x7B/* { */ ||\n         c === 0x7D/* } */;\n}\n\nfunction fromHexCode(c) {\n  var lc;\n\n  if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {\n    return c - 0x30;\n  }\n\n  /*eslint-disable no-bitwise*/\n  lc = c | 0x20;\n\n  if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) {\n    return lc - 0x61 + 10;\n  }\n\n  return -1;\n}\n\nfunction escapedHexLen(c) {\n  if (c === 0x78/* x */) { return 2; }\n  if (c === 0x75/* u */) { return 4; }\n  if (c === 0x55/* U */) { return 8; }\n  return 0;\n}\n\nfunction fromDecimalCode(c) {\n  if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {\n    return c - 0x30;\n  }\n\n  return -1;\n}\n\nfunction simpleEscapeSequence(c) {\n  /* eslint-disable indent */\n  return (c === 0x30/* 0 */) ? '\\x00' :\n        (c === 0x61/* a */) ? '\\x07' :\n        (c === 0x62/* b */) ? '\\x08' :\n        (c === 0x74/* t */) ? '\\x09' :\n        (c === 0x09/* Tab */) ? '\\x09' :\n        (c === 0x6E/* n */) ? '\\x0A' :\n        (c === 0x76/* v */) ? '\\x0B' :\n        (c === 0x66/* f */) ? '\\x0C' :\n        (c === 0x72/* r */) ? '\\x0D' :\n        (c === 0x65/* e */) ? '\\x1B' :\n        (c === 0x20/* Space */) ? ' ' :\n        (c === 0x22/* \" */) ? '\\x22' :\n        (c === 0x2F/* / */) ? '/' :\n        (c === 0x5C/* \\ */) ? '\\x5C' :\n        (c === 0x4E/* N */) ? '\\x85' :\n        (c === 0x5F/* _ */) ? '\\xA0' :\n        (c === 0x4C/* L */) ? '\\u2028' :\n        (c === 0x50/* P */) ? '\\u2029' : '';\n}\n\nfunction charFromCodepoint(c) {\n  if (c <= 0xFFFF) {\n    return String.fromCharCode(c);\n  }\n  // Encode UTF-16 surrogate pair\n  // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF\n  return String.fromCharCode(\n    ((c - 0x010000) >> 10) + 0xD800,\n    ((c - 0x010000) & 0x03FF) + 0xDC00\n  );\n}\n\nvar simpleEscapeCheck = new Array(256); // integer, for fast access\nvar simpleEscapeMap = new Array(256);\nfor (var i = 0; i < 256; i++) {\n  simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;\n  simpleEscapeMap[i] = simpleEscapeSequence(i);\n}\n\n\nfunction State(input, options) {\n  this.input = input;\n\n  this.filename  = options['filename']  || null;\n  this.schema    = options['schema']    || DEFAULT_SCHEMA;\n  this.onWarning = options['onWarning'] || null;\n  // (Hidden) Remove? makes the loader to expect YAML 1.1 documents\n  // if such documents have no explicit %YAML directive\n  this.legacy    = options['legacy']    || false;\n\n  this.json      = options['json']      || false;\n  this.listener  = options['listener']  || null;\n\n  this.implicitTypes = this.schema.compiledImplicit;\n  this.typeMap       = this.schema.compiledTypeMap;\n\n  this.length     = input.length;\n  this.position   = 0;\n  this.line       = 0;\n  this.lineStart  = 0;\n  this.lineIndent = 0;\n\n  // position of first leading tab in the current line,\n  // used to make sure there are no tabs in the indentation\n  this.firstTabInLine = -1;\n\n  this.documents = [];\n\n  /*\n  this.version;\n  this.checkLineBreaks;\n  this.tagMap;\n  this.anchorMap;\n  this.tag;\n  this.anchor;\n  this.kind;\n  this.result;*/\n\n}\n\n\nfunction generateError(state, message) {\n  var mark = {\n    name:     state.filename,\n    buffer:   state.input.slice(0, -1), // omit trailing \\0\n    position: state.position,\n    line:     state.line,\n    column:   state.position - state.lineStart\n  };\n\n  mark.snippet = makeSnippet(mark);\n\n  return new YAMLException(message, mark);\n}\n\nfunction throwError(state, message) {\n  throw generateError(state, message);\n}\n\nfunction throwWarning(state, message) {\n  if (state.onWarning) {\n    state.onWarning.call(null, generateError(state, message));\n  }\n}\n\n\nvar directiveHandlers = {\n\n  YAML: function handleYamlDirective(state, name, args) {\n\n    var match, major, minor;\n\n    if (state.version !== null) {\n      throwError(state, 'duplication of %YAML directive');\n    }\n\n    if (args.length !== 1) {\n      throwError(state, 'YAML directive accepts exactly one argument');\n    }\n\n    match = /^([0-9]+)\\.([0-9]+)$/.exec(args[0]);\n\n    if (match === null) {\n      throwError(state, 'ill-formed argument of the YAML directive');\n    }\n\n    major = parseInt(match[1], 10);\n    minor = parseInt(match[2], 10);\n\n    if (major !== 1) {\n      throwError(state, 'unacceptable YAML version of the document');\n    }\n\n    state.version = args[0];\n    state.checkLineBreaks = (minor < 2);\n\n    if (minor !== 1 && minor !== 2) {\n      throwWarning(state, 'unsupported YAML version of the document');\n    }\n  },\n\n  TAG: function handleTagDirective(state, name, args) {\n\n    var handle, prefix;\n\n    if (args.length !== 2) {\n      throwError(state, 'TAG directive accepts exactly two arguments');\n    }\n\n    handle = args[0];\n    prefix = args[1];\n\n    if (!PATTERN_TAG_HANDLE.test(handle)) {\n      throwError(state, 'ill-formed tag handle (first argument) of the TAG directive');\n    }\n\n    if (_hasOwnProperty.call(state.tagMap, handle)) {\n      throwError(state, 'there is a previously declared suffix for \"' + handle + '\" tag handle');\n    }\n\n    if (!PATTERN_TAG_URI.test(prefix)) {\n      throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive');\n    }\n\n    try {\n      prefix = decodeURIComponent(prefix);\n    } catch (err) {\n      throwError(state, 'tag prefix is malformed: ' + prefix);\n    }\n\n    state.tagMap[handle] = prefix;\n  }\n};\n\n\nfunction captureSegment(state, start, end, checkJson) {\n  var _position, _length, _character, _result;\n\n  if (start < end) {\n    _result = state.input.slice(start, end);\n\n    if (checkJson) {\n      for (_position = 0, _length = _result.length; _position < _length; _position += 1) {\n        _character = _result.charCodeAt(_position);\n        if (!(_character === 0x09 ||\n              (0x20 <= _character && _character <= 0x10FFFF))) {\n          throwError(state, 'expected valid JSON character');\n        }\n      }\n    } else if (PATTERN_NON_PRINTABLE.test(_result)) {\n      throwError(state, 'the stream contains non-printable characters');\n    }\n\n    state.result += _result;\n  }\n}\n\nfunction mergeMappings(state, destination, source, overridableKeys) {\n  var sourceKeys, key, index, quantity;\n\n  if (!common.isObject(source)) {\n    throwError(state, 'cannot merge mappings; the provided source object is unacceptable');\n  }\n\n  sourceKeys = Object.keys(source);\n\n  for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {\n    key = sourceKeys[index];\n\n    if (!_hasOwnProperty.call(destination, key)) {\n      destination[key] = source[key];\n      overridableKeys[key] = true;\n    }\n  }\n}\n\nfunction storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode,\n  startLine, startLineStart, startPos) {\n\n  var index, quantity;\n\n  // The output is a plain object here, so keys can only be strings.\n  // We need to convert keyNode to a string, but doing so can hang the process\n  // (deeply nested arrays that explode exponentially using aliases).\n  if (Array.isArray(keyNode)) {\n    keyNode = Array.prototype.slice.call(keyNode);\n\n    for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {\n      if (Array.isArray(keyNode[index])) {\n        throwError(state, 'nested arrays are not supported inside keys');\n      }\n\n      if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') {\n        keyNode[index] = '[object Object]';\n      }\n    }\n  }\n\n  // Avoid code execution in load() via toString property\n  // (still use its own toString for arrays, timestamps,\n  // and whatever user schema extensions happen to have @@toStringTag)\n  if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') {\n    keyNode = '[object Object]';\n  }\n\n\n  keyNode = String(keyNode);\n\n  if (_result === null) {\n    _result = {};\n  }\n\n  if (keyTag === 'tag:yaml.org,2002:merge') {\n    if (Array.isArray(valueNode)) {\n      for (index = 0, quantity = valueNode.length; index < quantity; index += 1) {\n        mergeMappings(state, _result, valueNode[index], overridableKeys);\n      }\n    } else {\n      mergeMappings(state, _result, valueNode, overridableKeys);\n    }\n  } else {\n    if (!state.json &&\n        !_hasOwnProperty.call(overridableKeys, keyNode) &&\n        _hasOwnProperty.call(_result, keyNode)) {\n      state.line = startLine || state.line;\n      state.lineStart = startLineStart || state.lineStart;\n      state.position = startPos || state.position;\n      throwError(state, 'duplicated mapping key');\n    }\n\n    // used for this specific key only because Object.defineProperty is slow\n    if (keyNode === '__proto__') {\n      Object.defineProperty(_result, keyNode, {\n        configurable: true,\n        enumerable: true,\n        writable: true,\n        value: valueNode\n      });\n    } else {\n      _result[keyNode] = valueNode;\n    }\n    delete overridableKeys[keyNode];\n  }\n\n  return _result;\n}\n\nfunction readLineBreak(state) {\n  var ch;\n\n  ch = state.input.charCodeAt(state.position);\n\n  if (ch === 0x0A/* LF */) {\n    state.position++;\n  } else if (ch === 0x0D/* CR */) {\n    state.position++;\n    if (state.input.charCodeAt(state.position) === 0x0A/* LF */) {\n      state.position++;\n    }\n  } else {\n    throwError(state, 'a line break is expected');\n  }\n\n  state.line += 1;\n  state.lineStart = state.position;\n  state.firstTabInLine = -1;\n}\n\nfunction skipSeparationSpace(state, allowComments, checkIndent) {\n  var lineBreaks = 0,\n      ch = state.input.charCodeAt(state.position);\n\n  while (ch !== 0) {\n    while (is_WHITE_SPACE(ch)) {\n      if (ch === 0x09/* Tab */ && state.firstTabInLine === -1) {\n        state.firstTabInLine = state.position;\n      }\n      ch = state.input.charCodeAt(++state.position);\n    }\n\n    if (allowComments && ch === 0x23/* # */) {\n      do {\n        ch = state.input.charCodeAt(++state.position);\n      } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0);\n    }\n\n    if (is_EOL(ch)) {\n      readLineBreak(state);\n\n      ch = state.input.charCodeAt(state.position);\n      lineBreaks++;\n      state.lineIndent = 0;\n\n      while (ch === 0x20/* Space */) {\n        state.lineIndent++;\n        ch = state.input.charCodeAt(++state.position);\n      }\n    } else {\n      break;\n    }\n  }\n\n  if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {\n    throwWarning(state, 'deficient indentation');\n  }\n\n  return lineBreaks;\n}\n\nfunction testDocumentSeparator(state) {\n  var _position = state.position,\n      ch;\n\n  ch = state.input.charCodeAt(_position);\n\n  // Condition state.position === state.lineStart is tested\n  // in parent on each call, for efficiency. No needs to test here again.\n  if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) &&\n      ch === state.input.charCodeAt(_position + 1) &&\n      ch === state.input.charCodeAt(_position + 2)) {\n\n    _position += 3;\n\n    ch = state.input.charCodeAt(_position);\n\n    if (ch === 0 || is_WS_OR_EOL(ch)) {\n      return true;\n    }\n  }\n\n  return false;\n}\n\nfunction writeFoldedLines(state, count) {\n  if (count === 1) {\n    state.result += ' ';\n  } else if (count > 1) {\n    state.result += common.repeat('\\n', count - 1);\n  }\n}\n\n\nfunction readPlainScalar(state, nodeIndent, withinFlowCollection) {\n  var preceding,\n      following,\n      captureStart,\n      captureEnd,\n      hasPendingContent,\n      _line,\n      _lineStart,\n      _lineIndent,\n      _kind = state.kind,\n      _result = state.result,\n      ch;\n\n  ch = state.input.charCodeAt(state.position);\n\n  if (is_WS_OR_EOL(ch)      ||\n      is_FLOW_INDICATOR(ch) ||\n      ch === 0x23/* # */    ||\n      ch === 0x26/* & */    ||\n      ch === 0x2A/* * */    ||\n      ch === 0x21/* ! */    ||\n      ch === 0x7C/* | */    ||\n      ch === 0x3E/* > */    ||\n      ch === 0x27/* ' */    ||\n      ch === 0x22/* \" */    ||\n      ch === 0x25/* % */    ||\n      ch === 0x40/* @ */    ||\n      ch === 0x60/* ` */) {\n    return false;\n  }\n\n  if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) {\n    following = state.input.charCodeAt(state.position + 1);\n\n    if (is_WS_OR_EOL(following) ||\n        withinFlowCollection && is_FLOW_INDICATOR(following)) {\n      return false;\n    }\n  }\n\n  state.kind = 'scalar';\n  state.result = '';\n  captureStart = captureEnd = state.position;\n  hasPendingContent = false;\n\n  while (ch !== 0) {\n    if (ch === 0x3A/* : */) {\n      following = state.input.charCodeAt(state.position + 1);\n\n      if (is_WS_OR_EOL(following) ||\n          withinFlowCollection && is_FLOW_INDICATOR(following)) {\n        break;\n      }\n\n    } else if (ch === 0x23/* # */) {\n      preceding = state.input.charCodeAt(state.position - 1);\n\n      if (is_WS_OR_EOL(preceding)) {\n        break;\n      }\n\n    } else if ((state.position === state.lineStart && testDocumentSeparator(state)) ||\n               withinFlowCollection && is_FLOW_INDICATOR(ch)) {\n      break;\n\n    } else if (is_EOL(ch)) {\n      _line = state.line;\n      _lineStart = state.lineStart;\n      _lineIndent = state.lineIndent;\n      skipSeparationSpace(state, false, -1);\n\n      if (state.lineIndent >= nodeIndent) {\n        hasPendingContent = true;\n        ch = state.input.charCodeAt(state.position);\n        continue;\n      } else {\n        state.position = captureEnd;\n        state.line = _line;\n        state.lineStart = _lineStart;\n        state.lineIndent = _lineIndent;\n        break;\n      }\n    }\n\n    if (hasPendingContent) {\n      captureSegment(state, captureStart, captureEnd, false);\n      writeFoldedLines(state, state.line - _line);\n      captureStart = captureEnd = state.position;\n      hasPendingContent = false;\n    }\n\n    if (!is_WHITE_SPACE(ch)) {\n      captureEnd = state.position + 1;\n    }\n\n    ch = state.input.charCodeAt(++state.position);\n  }\n\n  captureSegment(state, captureStart, captureEnd, false);\n\n  if (state.result) {\n    return true;\n  }\n\n  state.kind = _kind;\n  state.result = _result;\n  return false;\n}\n\nfunction readSingleQuotedScalar(state, nodeIndent) {\n  var ch,\n      captureStart, captureEnd;\n\n  ch = state.input.charCodeAt(state.position);\n\n  if (ch !== 0x27/* ' */) {\n    return false;\n  }\n\n  state.kind = 'scalar';\n  state.result = '';\n  state.position++;\n  captureStart = captureEnd = state.position;\n\n  while ((ch = state.input.charCodeAt(state.position)) !== 0) {\n    if (ch === 0x27/* ' */) {\n      captureSegment(state, captureStart, state.position, true);\n      ch = state.input.charCodeAt(++state.position);\n\n      if (ch === 0x27/* ' */) {\n        captureStart = state.position;\n        state.position++;\n        captureEnd = state.position;\n      } else {\n        return true;\n      }\n\n    } else if (is_EOL(ch)) {\n      captureSegment(state, captureStart, captureEnd, true);\n      writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));\n      captureStart = captureEnd = state.position;\n\n    } else if (state.position === state.lineStart && testDocumentSeparator(state)) {\n      throwError(state, 'unexpected end of the document within a single quoted scalar');\n\n    } else {\n      state.position++;\n      captureEnd = state.position;\n    }\n  }\n\n  throwError(state, 'unexpected end of the stream within a single quoted scalar');\n}\n\nfunction readDoubleQuotedScalar(state, nodeIndent) {\n  var captureStart,\n      captureEnd,\n      hexLength,\n      hexResult,\n      tmp,\n      ch;\n\n  ch = state.input.charCodeAt(state.position);\n\n  if (ch !== 0x22/* \" */) {\n    return false;\n  }\n\n  state.kind = 'scalar';\n  state.result = '';\n  state.position++;\n  captureStart = captureEnd = state.position;\n\n  while ((ch = state.input.charCodeAt(state.position)) !== 0) {\n    if (ch === 0x22/* \" */) {\n      captureSegment(state, captureStart, state.position, true);\n      state.position++;\n      return true;\n\n    } else if (ch === 0x5C/* \\ */) {\n      captureSegment(state, captureStart, state.position, true);\n      ch = state.input.charCodeAt(++state.position);\n\n      if (is_EOL(ch)) {\n        skipSeparationSpace(state, false, nodeIndent);\n\n        // TODO: rework to inline fn with no type cast?\n      } else if (ch < 256 && simpleEscapeCheck[ch]) {\n        state.result += simpleEscapeMap[ch];\n        state.position++;\n\n      } else if ((tmp = escapedHexLen(ch)) > 0) {\n        hexLength = tmp;\n        hexResult = 0;\n\n        for (; hexLength > 0; hexLength--) {\n          ch = state.input.charCodeAt(++state.position);\n\n          if ((tmp = fromHexCode(ch)) >= 0) {\n            hexResult = (hexResult << 4) + tmp;\n\n          } else {\n            throwError(state, 'expected hexadecimal character');\n          }\n        }\n\n        state.result += charFromCodepoint(hexResult);\n\n        state.position++;\n\n      } else {\n        throwError(state, 'unknown escape sequence');\n      }\n\n      captureStart = captureEnd = state.position;\n\n    } else if (is_EOL(ch)) {\n      captureSegment(state, captureStart, captureEnd, true);\n      writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));\n      captureStart = captureEnd = state.position;\n\n    } else if (state.position === state.lineStart && testDocumentSeparator(state)) {\n      throwError(state, 'unexpected end of the document within a double quoted scalar');\n\n    } else {\n      state.position++;\n      captureEnd = state.position;\n    }\n  }\n\n  throwError(state, 'unexpected end of the stream within a double quoted scalar');\n}\n\nfunction readFlowCollection(state, nodeIndent) {\n  var readNext = true,\n      _line,\n      _lineStart,\n      _pos,\n      _tag     = state.tag,\n      _result,\n      _anchor  = state.anchor,\n      following,\n      terminator,\n      isPair,\n      isExplicitPair,\n      isMapping,\n      overridableKeys = Object.create(null),\n      keyNode,\n      keyTag,\n      valueNode,\n      ch;\n\n  ch = state.input.charCodeAt(state.position);\n\n  if (ch === 0x5B/* [ */) {\n    terminator = 0x5D;/* ] */\n    isMapping = false;\n    _result = [];\n  } else if (ch === 0x7B/* { */) {\n    terminator = 0x7D;/* } */\n    isMapping = true;\n    _result = {};\n  } else {\n    return false;\n  }\n\n  if (state.anchor !== null) {\n    state.anchorMap[state.anchor] = _result;\n  }\n\n  ch = state.input.charCodeAt(++state.position);\n\n  while (ch !== 0) {\n    skipSeparationSpace(state, true, nodeIndent);\n\n    ch = state.input.charCodeAt(state.position);\n\n    if (ch === terminator) {\n      state.position++;\n      state.tag = _tag;\n      state.anchor = _anchor;\n      state.kind = isMapping ? 'mapping' : 'sequence';\n      state.result = _result;\n      return true;\n    } else if (!readNext) {\n      throwError(state, 'missed comma between flow collection entries');\n    } else if (ch === 0x2C/* , */) {\n      // \"flow collection entries can never be completely empty\", as per YAML 1.2, section 7.4\n      throwError(state, \"expected the node content, but found ','\");\n    }\n\n    keyTag = keyNode = valueNode = null;\n    isPair = isExplicitPair = false;\n\n    if (ch === 0x3F/* ? */) {\n      following = state.input.charCodeAt(state.position + 1);\n\n      if (is_WS_OR_EOL(following)) {\n        isPair = isExplicitPair = true;\n        state.position++;\n        skipSeparationSpace(state, true, nodeIndent);\n      }\n    }\n\n    _line = state.line; // Save the current line.\n    _lineStart = state.lineStart;\n    _pos = state.position;\n    composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);\n    keyTag = state.tag;\n    keyNode = state.result;\n    skipSeparationSpace(state, true, nodeIndent);\n\n    ch = state.input.charCodeAt(state.position);\n\n    if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) {\n      isPair = true;\n      ch = state.input.charCodeAt(++state.position);\n      skipSeparationSpace(state, true, nodeIndent);\n      composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);\n      valueNode = state.result;\n    }\n\n    if (isMapping) {\n      storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);\n    } else if (isPair) {\n      _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));\n    } else {\n      _result.push(keyNode);\n    }\n\n    skipSeparationSpace(state, true, nodeIndent);\n\n    ch = state.input.charCodeAt(state.position);\n\n    if (ch === 0x2C/* , */) {\n      readNext = true;\n      ch = state.input.charCodeAt(++state.position);\n    } else {\n      readNext = false;\n    }\n  }\n\n  throwError(state, 'unexpected end of the stream within a flow collection');\n}\n\nfunction readBlockScalar(state, nodeIndent) {\n  var captureStart,\n      folding,\n      chomping       = CHOMPING_CLIP,\n      didReadContent = false,\n      detectedIndent = false,\n      textIndent     = nodeIndent,\n      emptyLines     = 0,\n      atMoreIndented = false,\n      tmp,\n      ch;\n\n  ch = state.input.charCodeAt(state.position);\n\n  if (ch === 0x7C/* | */) {\n    folding = false;\n  } else if (ch === 0x3E/* > */) {\n    folding = true;\n  } else {\n    return false;\n  }\n\n  state.kind = 'scalar';\n  state.result = '';\n\n  while (ch !== 0) {\n    ch = state.input.charCodeAt(++state.position);\n\n    if (ch === 0x2B/* + */ || ch === 0x2D/* - */) {\n      if (CHOMPING_CLIP === chomping) {\n        chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP;\n      } else {\n        throwError(state, 'repeat of a chomping mode identifier');\n      }\n\n    } else if ((tmp = fromDecimalCode(ch)) >= 0) {\n      if (tmp === 0) {\n        throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one');\n      } else if (!detectedIndent) {\n        textIndent = nodeIndent + tmp - 1;\n        detectedIndent = true;\n      } else {\n        throwError(state, 'repeat of an indentation width identifier');\n      }\n\n    } else {\n      break;\n    }\n  }\n\n  if (is_WHITE_SPACE(ch)) {\n    do { ch = state.input.charCodeAt(++state.position); }\n    while (is_WHITE_SPACE(ch));\n\n    if (ch === 0x23/* # */) {\n      do { ch = state.input.charCodeAt(++state.position); }\n      while (!is_EOL(ch) && (ch !== 0));\n    }\n  }\n\n  while (ch !== 0) {\n    readLineBreak(state);\n    state.lineIndent = 0;\n\n    ch = state.input.charCodeAt(state.position);\n\n    while ((!detectedIndent || state.lineIndent < textIndent) &&\n           (ch === 0x20/* Space */)) {\n      state.lineIndent++;\n      ch = state.input.charCodeAt(++state.position);\n    }\n\n    if (!detectedIndent && state.lineIndent > textIndent) {\n      textIndent = state.lineIndent;\n    }\n\n    if (is_EOL(ch)) {\n      emptyLines++;\n      continue;\n    }\n\n    // End of the scalar.\n    if (state.lineIndent < textIndent) {\n\n      // Perform the chomping.\n      if (chomping === CHOMPING_KEEP) {\n        state.result += common.repeat('\\n', didReadContent ? 1 + emptyLines : emptyLines);\n      } else if (chomping === CHOMPING_CLIP) {\n        if (didReadContent) { // i.e. only if the scalar is not empty.\n          state.result += '\\n';\n        }\n      }\n\n      // Break this `while` cycle and go to the funciton's epilogue.\n      break;\n    }\n\n    // Folded style: use fancy rules to handle line breaks.\n    if (folding) {\n\n      // Lines starting with white space characters (more-indented lines) are not folded.\n      if (is_WHITE_SPACE(ch)) {\n        atMoreIndented = true;\n        // except for the first content line (cf. Example 8.1)\n        state.result += common.repeat('\\n', didReadContent ? 1 + emptyLines : emptyLines);\n\n      // End of more-indented block.\n      } else if (atMoreIndented) {\n        atMoreIndented = false;\n        state.result += common.repeat('\\n', emptyLines + 1);\n\n      // Just one line break - perceive as the same line.\n      } else if (emptyLines === 0) {\n        if (didReadContent) { // i.e. only if we have already read some scalar content.\n          state.result += ' ';\n        }\n\n      // Several line breaks - perceive as different lines.\n      } else {\n        state.result += common.repeat('\\n', emptyLines);\n      }\n\n    // Literal style: just add exact number of line breaks between content lines.\n    } else {\n      // Keep all line breaks except the header line break.\n      state.result += common.repeat('\\n', didReadContent ? 1 + emptyLines : emptyLines);\n    }\n\n    didReadContent = true;\n    detectedIndent = true;\n    emptyLines = 0;\n    captureStart = state.position;\n\n    while (!is_EOL(ch) && (ch !== 0)) {\n      ch = state.input.charCodeAt(++state.position);\n    }\n\n    captureSegment(state, captureStart, state.position, false);\n  }\n\n  return true;\n}\n\nfunction readBlockSequence(state, nodeIndent) {\n  var _line,\n      _tag      = state.tag,\n      _anchor   = state.anchor,\n      _result   = [],\n      following,\n      detected  = false,\n      ch;\n\n  // there is a leading tab before this token, so it can't be a block sequence/mapping;\n  // it can still be flow sequence/mapping or a scalar\n  if (state.firstTabInLine !== -1) return false;\n\n  if (state.anchor !== null) {\n    state.anchorMap[state.anchor] = _result;\n  }\n\n  ch = state.input.charCodeAt(state.position);\n\n  while (ch !== 0) {\n    if (state.firstTabInLine !== -1) {\n      state.position = state.firstTabInLine;\n      throwError(state, 'tab characters must not be used in indentation');\n    }\n\n    if (ch !== 0x2D/* - */) {\n      break;\n    }\n\n    following = state.input.charCodeAt(state.position + 1);\n\n    if (!is_WS_OR_EOL(following)) {\n      break;\n    }\n\n    detected = true;\n    state.position++;\n\n    if (skipSeparationSpace(state, true, -1)) {\n      if (state.lineIndent <= nodeIndent) {\n        _result.push(null);\n        ch = state.input.charCodeAt(state.position);\n        continue;\n      }\n    }\n\n    _line = state.line;\n    composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);\n    _result.push(state.result);\n    skipSeparationSpace(state, true, -1);\n\n    ch = state.input.charCodeAt(state.position);\n\n    if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {\n      throwError(state, 'bad indentation of a sequence entry');\n    } else if (state.lineIndent < nodeIndent) {\n      break;\n    }\n  }\n\n  if (detected) {\n    state.tag = _tag;\n    state.anchor = _anchor;\n    state.kind = 'sequence';\n    state.result = _result;\n    return true;\n  }\n  return false;\n}\n\nfunction readBlockMapping(state, nodeIndent, flowIndent) {\n  var following,\n      allowCompact,\n      _line,\n      _keyLine,\n      _keyLineStart,\n      _keyPos,\n      _tag          = state.tag,\n      _anchor       = state.anchor,\n      _result       = {},\n      overridableKeys = Object.create(null),\n      keyTag        = null,\n      keyNode       = null,\n      valueNode     = null,\n      atExplicitKey = false,\n      detected      = false,\n      ch;\n\n  // there is a leading tab before this token, so it can't be a block sequence/mapping;\n  // it can still be flow sequence/mapping or a scalar\n  if (state.firstTabInLine !== -1) return false;\n\n  if (state.anchor !== null) {\n    state.anchorMap[state.anchor] = _result;\n  }\n\n  ch = state.input.charCodeAt(state.position);\n\n  while (ch !== 0) {\n    if (!atExplicitKey && state.firstTabInLine !== -1) {\n      state.position = state.firstTabInLine;\n      throwError(state, 'tab characters must not be used in indentation');\n    }\n\n    following = state.input.charCodeAt(state.position + 1);\n    _line = state.line; // Save the current line.\n\n    //\n    // Explicit notation case. There are two separate blocks:\n    // first for the key (denoted by \"?\") and second for the value (denoted by \":\")\n    //\n    if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) {\n\n      if (ch === 0x3F/* ? */) {\n        if (atExplicitKey) {\n          storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);\n          keyTag = keyNode = valueNode = null;\n        }\n\n        detected = true;\n        atExplicitKey = true;\n        allowCompact = true;\n\n      } else if (atExplicitKey) {\n        // i.e. 0x3A/* : */ === character after the explicit key.\n        atExplicitKey = false;\n        allowCompact = true;\n\n      } else {\n        throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line');\n      }\n\n      state.position += 1;\n      ch = following;\n\n    //\n    // Implicit notation case. Flow-style node as the key first, then \":\", and the value.\n    //\n    } else {\n      _keyLine = state.line;\n      _keyLineStart = state.lineStart;\n      _keyPos = state.position;\n\n      if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {\n        // Neither implicit nor explicit notation.\n        // Reading is done. Go to the epilogue.\n        break;\n      }\n\n      if (state.line === _line) {\n        ch = state.input.charCodeAt(state.position);\n\n        while (is_WHITE_SPACE(ch)) {\n          ch = state.input.charCodeAt(++state.position);\n        }\n\n        if (ch === 0x3A/* : */) {\n          ch = state.input.charCodeAt(++state.position);\n\n          if (!is_WS_OR_EOL(ch)) {\n            throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping');\n          }\n\n          if (atExplicitKey) {\n            storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);\n            keyTag = keyNode = valueNode = null;\n          }\n\n          detected = true;\n          atExplicitKey = false;\n          allowCompact = false;\n          keyTag = state.tag;\n          keyNode = state.result;\n\n        } else if (detected) {\n          throwError(state, 'can not read an implicit mapping pair; a colon is missed');\n\n        } else {\n          state.tag = _tag;\n          state.anchor = _anchor;\n          return true; // Keep the result of `composeNode`.\n        }\n\n      } else if (detected) {\n        throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key');\n\n      } else {\n        state.tag = _tag;\n        state.anchor = _anchor;\n        return true; // Keep the result of `composeNode`.\n      }\n    }\n\n    //\n    // Common reading code for both explicit and implicit notations.\n    //\n    if (state.line === _line || state.lineIndent > nodeIndent) {\n      if (atExplicitKey) {\n        _keyLine = state.line;\n        _keyLineStart = state.lineStart;\n        _keyPos = state.position;\n      }\n\n      if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {\n        if (atExplicitKey) {\n          keyNode = state.result;\n        } else {\n          valueNode = state.result;\n        }\n      }\n\n      if (!atExplicitKey) {\n        storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);\n        keyTag = keyNode = valueNode = null;\n      }\n\n      skipSeparationSpace(state, true, -1);\n      ch = state.input.charCodeAt(state.position);\n    }\n\n    if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {\n      throwError(state, 'bad indentation of a mapping entry');\n    } else if (state.lineIndent < nodeIndent) {\n      break;\n    }\n  }\n\n  //\n  // Epilogue.\n  //\n\n  // Special case: last mapping's node contains only the key in explicit notation.\n  if (atExplicitKey) {\n    storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);\n  }\n\n  // Expose the resulting mapping.\n  if (detected) {\n    state.tag = _tag;\n    state.anchor = _anchor;\n    state.kind = 'mapping';\n    state.result = _result;\n  }\n\n  return detected;\n}\n\nfunction readTagProperty(state) {\n  var _position,\n      isVerbatim = false,\n      isNamed    = false,\n      tagHandle,\n      tagName,\n      ch;\n\n  ch = state.input.charCodeAt(state.position);\n\n  if (ch !== 0x21/* ! */) return false;\n\n  if (state.tag !== null) {\n    throwError(state, 'duplication of a tag property');\n  }\n\n  ch = state.input.charCodeAt(++state.position);\n\n  if (ch === 0x3C/* < */) {\n    isVerbatim = true;\n    ch = state.input.charCodeAt(++state.position);\n\n  } else if (ch === 0x21/* ! */) {\n    isNamed = true;\n    tagHandle = '!!';\n    ch = state.input.charCodeAt(++state.position);\n\n  } else {\n    tagHandle = '!';\n  }\n\n  _position = state.position;\n\n  if (isVerbatim) {\n    do { ch = state.input.charCodeAt(++state.position); }\n    while (ch !== 0 && ch !== 0x3E/* > */);\n\n    if (state.position < state.length) {\n      tagName = state.input.slice(_position, state.position);\n      ch = state.input.charCodeAt(++state.position);\n    } else {\n      throwError(state, 'unexpected end of the stream within a verbatim tag');\n    }\n  } else {\n    while (ch !== 0 && !is_WS_OR_EOL(ch)) {\n\n      if (ch === 0x21/* ! */) {\n        if (!isNamed) {\n          tagHandle = state.input.slice(_position - 1, state.position + 1);\n\n          if (!PATTERN_TAG_HANDLE.test(tagHandle)) {\n            throwError(state, 'named tag handle cannot contain such characters');\n          }\n\n          isNamed = true;\n          _position = state.position + 1;\n        } else {\n          throwError(state, 'tag suffix cannot contain exclamation marks');\n        }\n      }\n\n      ch = state.input.charCodeAt(++state.position);\n    }\n\n    tagName = state.input.slice(_position, state.position);\n\n    if (PATTERN_FLOW_INDICATORS.test(tagName)) {\n      throwError(state, 'tag suffix cannot contain flow indicator characters');\n    }\n  }\n\n  if (tagName && !PATTERN_TAG_URI.test(tagName)) {\n    throwError(state, 'tag name cannot contain such characters: ' + tagName);\n  }\n\n  try {\n    tagName = decodeURIComponent(tagName);\n  } catch (err) {\n    throwError(state, 'tag name is malformed: ' + tagName);\n  }\n\n  if (isVerbatim) {\n    state.tag = tagName;\n\n  } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {\n    state.tag = state.tagMap[tagHandle] + tagName;\n\n  } else if (tagHandle === '!') {\n    state.tag = '!' + tagName;\n\n  } else if (tagHandle === '!!') {\n    state.tag = 'tag:yaml.org,2002:' + tagName;\n\n  } else {\n    throwError(state, 'undeclared tag handle \"' + tagHandle + '\"');\n  }\n\n  return true;\n}\n\nfunction readAnchorProperty(state) {\n  var _position,\n      ch;\n\n  ch = state.input.charCodeAt(state.position);\n\n  if (ch !== 0x26/* & */) return false;\n\n  if (state.anchor !== null) {\n    throwError(state, 'duplication of an anchor property');\n  }\n\n  ch = state.input.charCodeAt(++state.position);\n  _position = state.position;\n\n  while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {\n    ch = state.input.charCodeAt(++state.position);\n  }\n\n  if (state.position === _position) {\n    throwError(state, 'name of an anchor node must contain at least one character');\n  }\n\n  state.anchor = state.input.slice(_position, state.position);\n  return true;\n}\n\nfunction readAlias(state) {\n  var _position, alias,\n      ch;\n\n  ch = state.input.charCodeAt(state.position);\n\n  if (ch !== 0x2A/* * */) return false;\n\n  ch = state.input.charCodeAt(++state.position);\n  _position = state.position;\n\n  while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {\n    ch = state.input.charCodeAt(++state.position);\n  }\n\n  if (state.position === _position) {\n    throwError(state, 'name of an alias node must contain at least one character');\n  }\n\n  alias = state.input.slice(_position, state.position);\n\n  if (!_hasOwnProperty.call(state.anchorMap, alias)) {\n    throwError(state, 'unidentified alias \"' + alias + '\"');\n  }\n\n  state.result = state.anchorMap[alias];\n  skipSeparationSpace(state, true, -1);\n  return true;\n}\n\nfunction composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {\n  var allowBlockStyles,\n      allowBlockScalars,\n      allowBlockCollections,\n      indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this parentIndent) {\n        indentStatus = 1;\n      } else if (state.lineIndent === parentIndent) {\n        indentStatus = 0;\n      } else if (state.lineIndent < parentIndent) {\n        indentStatus = -1;\n      }\n    }\n  }\n\n  if (indentStatus === 1) {\n    while (readTagProperty(state) || readAnchorProperty(state)) {\n      if (skipSeparationSpace(state, true, -1)) {\n        atNewLine = true;\n        allowBlockCollections = allowBlockStyles;\n\n        if (state.lineIndent > parentIndent) {\n          indentStatus = 1;\n        } else if (state.lineIndent === parentIndent) {\n          indentStatus = 0;\n        } else if (state.lineIndent < parentIndent) {\n          indentStatus = -1;\n        }\n      } else {\n        allowBlockCollections = false;\n      }\n    }\n  }\n\n  if (allowBlockCollections) {\n    allowBlockCollections = atNewLine || allowCompact;\n  }\n\n  if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {\n    if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {\n      flowIndent = parentIndent;\n    } else {\n      flowIndent = parentIndent + 1;\n    }\n\n    blockIndent = state.position - state.lineStart;\n\n    if (indentStatus === 1) {\n      if (allowBlockCollections &&\n          (readBlockSequence(state, blockIndent) ||\n           readBlockMapping(state, blockIndent, flowIndent)) ||\n          readFlowCollection(state, flowIndent)) {\n        hasContent = true;\n      } else {\n        if ((allowBlockScalars && readBlockScalar(state, flowIndent)) ||\n            readSingleQuotedScalar(state, flowIndent) ||\n            readDoubleQuotedScalar(state, flowIndent)) {\n          hasContent = true;\n\n        } else if (readAlias(state)) {\n          hasContent = true;\n\n          if (state.tag !== null || state.anchor !== null) {\n            throwError(state, 'alias node should not have any properties');\n          }\n\n        } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {\n          hasContent = true;\n\n          if (state.tag === null) {\n            state.tag = '?';\n          }\n        }\n\n        if (state.anchor !== null) {\n          state.anchorMap[state.anchor] = state.result;\n        }\n      }\n    } else if (indentStatus === 0) {\n      // Special case: block sequences are allowed to have same indentation level as the parent.\n      // http://www.yaml.org/spec/1.2/spec.html#id2799784\n      hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);\n    }\n  }\n\n  if (state.tag === null) {\n    if (state.anchor !== null) {\n      state.anchorMap[state.anchor] = state.result;\n    }\n\n  } else if (state.tag === '?') {\n    // Implicit resolving is not allowed for non-scalar types, and '?'\n    // non-specific tag is only automatically assigned to plain scalars.\n    //\n    // We only need to check kind conformity in case user explicitly assigns '?'\n    // tag, for example like this: \"! [0]\"\n    //\n    if (state.result !== null && state.kind !== 'scalar') {\n      throwError(state, 'unacceptable node kind for ! tag; it should be \"scalar\", not \"' + state.kind + '\"');\n    }\n\n    for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {\n      type = state.implicitTypes[typeIndex];\n\n      if (type.resolve(state.result)) { // `state.result` updated in resolver if matched\n        state.result = type.construct(state.result);\n        state.tag = type.tag;\n        if (state.anchor !== null) {\n          state.anchorMap[state.anchor] = state.result;\n        }\n        break;\n      }\n    }\n  } else if (state.tag !== '!') {\n    if (_hasOwnProperty.call(state.typeMap[state.kind || 'fallback'], state.tag)) {\n      type = state.typeMap[state.kind || 'fallback'][state.tag];\n    } else {\n      // looking for multi type\n      type = null;\n      typeList = state.typeMap.multi[state.kind || 'fallback'];\n\n      for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) {\n        if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {\n          type = typeList[typeIndex];\n          break;\n        }\n      }\n    }\n\n    if (!type) {\n      throwError(state, 'unknown tag !<' + state.tag + '>');\n    }\n\n    if (state.result !== null && type.kind !== state.kind) {\n      throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be \"' + type.kind + '\", not \"' + state.kind + '\"');\n    }\n\n    if (!type.resolve(state.result, state.tag)) { // `state.result` updated in resolver if matched\n      throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag');\n    } else {\n      state.result = type.construct(state.result, state.tag);\n      if (state.anchor !== null) {\n        state.anchorMap[state.anchor] = state.result;\n      }\n    }\n  }\n\n  if (state.listener !== null) {\n    state.listener('close', state);\n  }\n  return state.tag !== null ||  state.anchor !== null || hasContent;\n}\n\nfunction readDocument(state) {\n  var documentStart = state.position,\n      _position,\n      directiveName,\n      directiveArgs,\n      hasDirectives = false,\n      ch;\n\n  state.version = null;\n  state.checkLineBreaks = state.legacy;\n  state.tagMap = Object.create(null);\n  state.anchorMap = Object.create(null);\n\n  while ((ch = state.input.charCodeAt(state.position)) !== 0) {\n    skipSeparationSpace(state, true, -1);\n\n    ch = state.input.charCodeAt(state.position);\n\n    if (state.lineIndent > 0 || ch !== 0x25/* % */) {\n      break;\n    }\n\n    hasDirectives = true;\n    ch = state.input.charCodeAt(++state.position);\n    _position = state.position;\n\n    while (ch !== 0 && !is_WS_OR_EOL(ch)) {\n      ch = state.input.charCodeAt(++state.position);\n    }\n\n    directiveName = state.input.slice(_position, state.position);\n    directiveArgs = [];\n\n    if (directiveName.length < 1) {\n      throwError(state, 'directive name must not be less than one character in length');\n    }\n\n    while (ch !== 0) {\n      while (is_WHITE_SPACE(ch)) {\n        ch = state.input.charCodeAt(++state.position);\n      }\n\n      if (ch === 0x23/* # */) {\n        do { ch = state.input.charCodeAt(++state.position); }\n        while (ch !== 0 && !is_EOL(ch));\n        break;\n      }\n\n      if (is_EOL(ch)) break;\n\n      _position = state.position;\n\n      while (ch !== 0 && !is_WS_OR_EOL(ch)) {\n        ch = state.input.charCodeAt(++state.position);\n      }\n\n      directiveArgs.push(state.input.slice(_position, state.position));\n    }\n\n    if (ch !== 0) readLineBreak(state);\n\n    if (_hasOwnProperty.call(directiveHandlers, directiveName)) {\n      directiveHandlers[directiveName](state, directiveName, directiveArgs);\n    } else {\n      throwWarning(state, 'unknown document directive \"' + directiveName + '\"');\n    }\n  }\n\n  skipSeparationSpace(state, true, -1);\n\n  if (state.lineIndent === 0 &&\n      state.input.charCodeAt(state.position)     === 0x2D/* - */ &&\n      state.input.charCodeAt(state.position + 1) === 0x2D/* - */ &&\n      state.input.charCodeAt(state.position + 2) === 0x2D/* - */) {\n    state.position += 3;\n    skipSeparationSpace(state, true, -1);\n\n  } else if (hasDirectives) {\n    throwError(state, 'directives end mark is expected');\n  }\n\n  composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);\n  skipSeparationSpace(state, true, -1);\n\n  if (state.checkLineBreaks &&\n      PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {\n    throwWarning(state, 'non-ASCII line breaks are interpreted as content');\n  }\n\n  state.documents.push(state.result);\n\n  if (state.position === state.lineStart && testDocumentSeparator(state)) {\n\n    if (state.input.charCodeAt(state.position) === 0x2E/* . */) {\n      state.position += 3;\n      skipSeparationSpace(state, true, -1);\n    }\n    return;\n  }\n\n  if (state.position < (state.length - 1)) {\n    throwError(state, 'end of the stream or a document separator is expected');\n  } else {\n    return;\n  }\n}\n\n\nfunction loadDocuments(input, options) {\n  input = String(input);\n  options = options || {};\n\n  if (input.length !== 0) {\n\n    // Add tailing `\\n` if not exists\n    if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ &&\n        input.charCodeAt(input.length - 1) !== 0x0D/* CR */) {\n      input += '\\n';\n    }\n\n    // Strip BOM\n    if (input.charCodeAt(0) === 0xFEFF) {\n      input = input.slice(1);\n    }\n  }\n\n  var state = new State(input, options);\n\n  var nullpos = input.indexOf('\\0');\n\n  if (nullpos !== -1) {\n    state.position = nullpos;\n    throwError(state, 'null byte is not allowed in input');\n  }\n\n  // Use 0 as string terminator. That significantly simplifies bounds check.\n  state.input += '\\0';\n\n  while (state.input.charCodeAt(state.position) === 0x20/* Space */) {\n    state.lineIndent += 1;\n    state.position += 1;\n  }\n\n  while (state.position < (state.length - 1)) {\n    readDocument(state);\n  }\n\n  return state.documents;\n}\n\n\nfunction loadAll(input, iterator, options) {\n  if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') {\n    options = iterator;\n    iterator = null;\n  }\n\n  var documents = loadDocuments(input, options);\n\n  if (typeof iterator !== 'function') {\n    return documents;\n  }\n\n  for (var index = 0, length = documents.length; index < length; index += 1) {\n    iterator(documents[index]);\n  }\n}\n\n\nfunction load(input, options) {\n  var documents = loadDocuments(input, options);\n\n  if (documents.length === 0) {\n    /*eslint-disable no-undefined*/\n    return undefined;\n  } else if (documents.length === 1) {\n    return documents[0];\n  }\n  throw new YAMLException('expected a single document in the stream, but found more');\n}\n\n\nmodule.exports.loadAll = loadAll;\nmodule.exports.load    = load;\n", "'use strict';\n\n/*eslint-disable no-use-before-define*/\n\nvar common              = require('./common');\nvar YAMLException       = require('./exception');\nvar DEFAULT_SCHEMA      = require('./schema/default');\n\nvar _toString       = Object.prototype.toString;\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar CHAR_BOM                  = 0xFEFF;\nvar CHAR_TAB                  = 0x09; /* Tab */\nvar CHAR_LINE_FEED            = 0x0A; /* LF */\nvar CHAR_CARRIAGE_RETURN      = 0x0D; /* CR */\nvar CHAR_SPACE                = 0x20; /* Space */\nvar CHAR_EXCLAMATION          = 0x21; /* ! */\nvar CHAR_DOUBLE_QUOTE         = 0x22; /* \" */\nvar CHAR_SHARP                = 0x23; /* # */\nvar CHAR_PERCENT              = 0x25; /* % */\nvar CHAR_AMPERSAND            = 0x26; /* & */\nvar CHAR_SINGLE_QUOTE         = 0x27; /* ' */\nvar CHAR_ASTERISK             = 0x2A; /* * */\nvar CHAR_COMMA                = 0x2C; /* , */\nvar CHAR_MINUS                = 0x2D; /* - */\nvar CHAR_COLON                = 0x3A; /* : */\nvar CHAR_EQUALS               = 0x3D; /* = */\nvar CHAR_GREATER_THAN         = 0x3E; /* > */\nvar CHAR_QUESTION             = 0x3F; /* ? */\nvar CHAR_COMMERCIAL_AT        = 0x40; /* @ */\nvar CHAR_LEFT_SQUARE_BRACKET  = 0x5B; /* [ */\nvar CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */\nvar CHAR_GRAVE_ACCENT         = 0x60; /* ` */\nvar CHAR_LEFT_CURLY_BRACKET   = 0x7B; /* { */\nvar CHAR_VERTICAL_LINE        = 0x7C; /* | */\nvar CHAR_RIGHT_CURLY_BRACKET  = 0x7D; /* } */\n\nvar ESCAPE_SEQUENCES = {};\n\nESCAPE_SEQUENCES[0x00]   = '\\\\0';\nESCAPE_SEQUENCES[0x07]   = '\\\\a';\nESCAPE_SEQUENCES[0x08]   = '\\\\b';\nESCAPE_SEQUENCES[0x09]   = '\\\\t';\nESCAPE_SEQUENCES[0x0A]   = '\\\\n';\nESCAPE_SEQUENCES[0x0B]   = '\\\\v';\nESCAPE_SEQUENCES[0x0C]   = '\\\\f';\nESCAPE_SEQUENCES[0x0D]   = '\\\\r';\nESCAPE_SEQUENCES[0x1B]   = '\\\\e';\nESCAPE_SEQUENCES[0x22]   = '\\\\\"';\nESCAPE_SEQUENCES[0x5C]   = '\\\\\\\\';\nESCAPE_SEQUENCES[0x85]   = '\\\\N';\nESCAPE_SEQUENCES[0xA0]   = '\\\\_';\nESCAPE_SEQUENCES[0x2028] = '\\\\L';\nESCAPE_SEQUENCES[0x2029] = '\\\\P';\n\nvar DEPRECATED_BOOLEANS_SYNTAX = [\n  'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON',\n  'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF'\n];\n\nvar DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\\.[0-9_]*)?$/;\n\nfunction compileStyleMap(schema, map) {\n  var result, keys, index, length, tag, style, type;\n\n  if (map === null) return {};\n\n  result = {};\n  keys = Object.keys(map);\n\n  for (index = 0, length = keys.length; index < length; index += 1) {\n    tag = keys[index];\n    style = String(map[tag]);\n\n    if (tag.slice(0, 2) === '!!') {\n      tag = 'tag:yaml.org,2002:' + tag.slice(2);\n    }\n    type = schema.compiledTypeMap['fallback'][tag];\n\n    if (type && _hasOwnProperty.call(type.styleAliases, style)) {\n      style = type.styleAliases[style];\n    }\n\n    result[tag] = style;\n  }\n\n  return result;\n}\n\nfunction encodeHex(character) {\n  var string, handle, length;\n\n  string = character.toString(16).toUpperCase();\n\n  if (character <= 0xFF) {\n    handle = 'x';\n    length = 2;\n  } else if (character <= 0xFFFF) {\n    handle = 'u';\n    length = 4;\n  } else if (character <= 0xFFFFFFFF) {\n    handle = 'U';\n    length = 8;\n  } else {\n    throw new YAMLException('code point within a string may not be greater than 0xFFFFFFFF');\n  }\n\n  return '\\\\' + handle + common.repeat('0', length - string.length) + string;\n}\n\n\nvar QUOTING_TYPE_SINGLE = 1,\n    QUOTING_TYPE_DOUBLE = 2;\n\nfunction State(options) {\n  this.schema        = options['schema'] || DEFAULT_SCHEMA;\n  this.indent        = Math.max(1, (options['indent'] || 2));\n  this.noArrayIndent = options['noArrayIndent'] || false;\n  this.skipInvalid   = options['skipInvalid'] || false;\n  this.flowLevel     = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']);\n  this.styleMap      = compileStyleMap(this.schema, options['styles'] || null);\n  this.sortKeys      = options['sortKeys'] || false;\n  this.lineWidth     = options['lineWidth'] || 80;\n  this.noRefs        = options['noRefs'] || false;\n  this.noCompatMode  = options['noCompatMode'] || false;\n  this.condenseFlow  = options['condenseFlow'] || false;\n  this.quotingType   = options['quotingType'] === '\"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE;\n  this.forceQuotes   = options['forceQuotes'] || false;\n  this.replacer      = typeof options['replacer'] === 'function' ? options['replacer'] : null;\n\n  this.implicitTypes = this.schema.compiledImplicit;\n  this.explicitTypes = this.schema.compiledExplicit;\n\n  this.tag = null;\n  this.result = '';\n\n  this.duplicates = [];\n  this.usedDuplicates = null;\n}\n\n// Indents every line in a string. Empty lines (\\n only) are not indented.\nfunction indentString(string, spaces) {\n  var ind = common.repeat(' ', spaces),\n      position = 0,\n      next = -1,\n      result = '',\n      line,\n      length = string.length;\n\n  while (position < length) {\n    next = string.indexOf('\\n', position);\n    if (next === -1) {\n      line = string.slice(position);\n      position = length;\n    } else {\n      line = string.slice(position, next + 1);\n      position = next + 1;\n    }\n\n    if (line.length && line !== '\\n') result += ind;\n\n    result += line;\n  }\n\n  return result;\n}\n\nfunction generateNextLine(state, level) {\n  return '\\n' + common.repeat(' ', state.indent * level);\n}\n\nfunction testImplicitResolving(state, str) {\n  var index, length, type;\n\n  for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {\n    type = state.implicitTypes[index];\n\n    if (type.resolve(str)) {\n      return true;\n    }\n  }\n\n  return false;\n}\n\n// [33] s-white ::= s-space | s-tab\nfunction isWhitespace(c) {\n  return c === CHAR_SPACE || c === CHAR_TAB;\n}\n\n// Returns true if the character can be printed without escaping.\n// From YAML 1.2: \"any allowed characters known to be non-printable\n// should also be escaped. [However,] This isn\u2019t mandatory\"\n// Derived from nb-char - \\t - #x85 - #xA0 - #x2028 - #x2029.\nfunction isPrintable(c) {\n  return  (0x00020 <= c && c <= 0x00007E)\n      || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029)\n      || ((0x0E000 <= c && c <= 0x00FFFD) && c !== CHAR_BOM)\n      ||  (0x10000 <= c && c <= 0x10FFFF);\n}\n\n// [34] ns-char ::= nb-char - s-white\n// [27] nb-char ::= c-printable - b-char - c-byte-order-mark\n// [26] b-char  ::= b-line-feed | b-carriage-return\n// Including s-white (for some reason, examples doesn't match specs in this aspect)\n// ns-char ::= c-printable - b-line-feed - b-carriage-return - c-byte-order-mark\nfunction isNsCharOrWhitespace(c) {\n  return isPrintable(c)\n    && c !== CHAR_BOM\n    // - b-char\n    && c !== CHAR_CARRIAGE_RETURN\n    && c !== CHAR_LINE_FEED;\n}\n\n// [127]  ns-plain-safe(c) ::= c = flow-out  \u21D2 ns-plain-safe-out\n//                             c = flow-in   \u21D2 ns-plain-safe-in\n//                             c = block-key \u21D2 ns-plain-safe-out\n//                             c = flow-key  \u21D2 ns-plain-safe-in\n// [128] ns-plain-safe-out ::= ns-char\n// [129]  ns-plain-safe-in ::= ns-char - c-flow-indicator\n// [130]  ns-plain-char(c) ::=  ( ns-plain-safe(c) - \u201C:\u201D - \u201C#\u201D )\n//                            | ( /* An ns-char preceding */ \u201C#\u201D )\n//                            | ( \u201C:\u201D /* Followed by an ns-plain-safe(c) */ )\nfunction isPlainSafe(c, prev, inblock) {\n  var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);\n  var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);\n  return (\n    // ns-plain-safe\n    inblock ? // c = flow-in\n      cIsNsCharOrWhitespace\n      : cIsNsCharOrWhitespace\n        // - c-flow-indicator\n        && c !== CHAR_COMMA\n        && c !== CHAR_LEFT_SQUARE_BRACKET\n        && c !== CHAR_RIGHT_SQUARE_BRACKET\n        && c !== CHAR_LEFT_CURLY_BRACKET\n        && c !== CHAR_RIGHT_CURLY_BRACKET\n  )\n    // ns-plain-char\n    && c !== CHAR_SHARP // false on '#'\n    && !(prev === CHAR_COLON && !cIsNsChar) // false on ': '\n    || (isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP) // change to true on '[^ ]#'\n    || (prev === CHAR_COLON && cIsNsChar); // change to true on ':[^ ]'\n}\n\n// Simplified test for values allowed as the first character in plain style.\nfunction isPlainSafeFirst(c) {\n  // Uses a subset of ns-char - c-indicator\n  // where ns-char = nb-char - s-white.\n  // No support of ( ( \u201C?\u201D | \u201C:\u201D | \u201C-\u201D ) /* Followed by an ns-plain-safe(c)) */ ) part\n  return isPrintable(c) && c !== CHAR_BOM\n    && !isWhitespace(c) // - s-white\n    // - (c-indicator ::=\n    // \u201C-\u201D | \u201C?\u201D | \u201C:\u201D | \u201C,\u201D | \u201C[\u201D | \u201C]\u201D | \u201C{\u201D | \u201C}\u201D\n    && c !== CHAR_MINUS\n    && c !== CHAR_QUESTION\n    && c !== CHAR_COLON\n    && c !== CHAR_COMMA\n    && c !== CHAR_LEFT_SQUARE_BRACKET\n    && c !== CHAR_RIGHT_SQUARE_BRACKET\n    && c !== CHAR_LEFT_CURLY_BRACKET\n    && c !== CHAR_RIGHT_CURLY_BRACKET\n    // | \u201C#\u201D | \u201C&\u201D | \u201C*\u201D | \u201C!\u201D | \u201C|\u201D | \u201C=\u201D | \u201C>\u201D | \u201C'\u201D | \u201C\"\u201D\n    && c !== CHAR_SHARP\n    && c !== CHAR_AMPERSAND\n    && c !== CHAR_ASTERISK\n    && c !== CHAR_EXCLAMATION\n    && c !== CHAR_VERTICAL_LINE\n    && c !== CHAR_EQUALS\n    && c !== CHAR_GREATER_THAN\n    && c !== CHAR_SINGLE_QUOTE\n    && c !== CHAR_DOUBLE_QUOTE\n    // | \u201C%\u201D | \u201C@\u201D | \u201C`\u201D)\n    && c !== CHAR_PERCENT\n    && c !== CHAR_COMMERCIAL_AT\n    && c !== CHAR_GRAVE_ACCENT;\n}\n\n// Simplified test for values allowed as the last character in plain style.\nfunction isPlainSafeLast(c) {\n  // just not whitespace or colon, it will be checked to be plain character later\n  return !isWhitespace(c) && c !== CHAR_COLON;\n}\n\n// Same as 'string'.codePointAt(pos), but works in older browsers.\nfunction codePointAt(string, pos) {\n  var first = string.charCodeAt(pos), second;\n  if (first >= 0xD800 && first <= 0xDBFF && pos + 1 < string.length) {\n    second = string.charCodeAt(pos + 1);\n    if (second >= 0xDC00 && second <= 0xDFFF) {\n      // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae\n      return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;\n    }\n  }\n  return first;\n}\n\n// Determines whether block indentation indicator is required.\nfunction needIndentIndicator(string) {\n  var leadingSpaceRe = /^\\n* /;\n  return leadingSpaceRe.test(string);\n}\n\nvar STYLE_PLAIN   = 1,\n    STYLE_SINGLE  = 2,\n    STYLE_LITERAL = 3,\n    STYLE_FOLDED  = 4,\n    STYLE_DOUBLE  = 5;\n\n// Determines which scalar styles are possible and returns the preferred style.\n// lineWidth = -1 => no limit.\n// Pre-conditions: str.length > 0.\n// Post-conditions:\n//    STYLE_PLAIN or STYLE_SINGLE => no \\n are in the string.\n//    STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1).\n//    STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1).\nfunction chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth,\n  testAmbiguousType, quotingType, forceQuotes, inblock) {\n\n  var i;\n  var char = 0;\n  var prevChar = null;\n  var hasLineBreak = false;\n  var hasFoldableLine = false; // only checked if shouldTrackWidth\n  var shouldTrackWidth = lineWidth !== -1;\n  var previousLineBreak = -1; // count the first line correctly\n  var plain = isPlainSafeFirst(codePointAt(string, 0))\n          && isPlainSafeLast(codePointAt(string, string.length - 1));\n\n  if (singleLineOnly || forceQuotes) {\n    // Case: no block styles.\n    // Check for disallowed characters to rule out plain and single.\n    for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {\n      char = codePointAt(string, i);\n      if (!isPrintable(char)) {\n        return STYLE_DOUBLE;\n      }\n      plain = plain && isPlainSafe(char, prevChar, inblock);\n      prevChar = char;\n    }\n  } else {\n    // Case: block styles permitted.\n    for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {\n      char = codePointAt(string, i);\n      if (char === CHAR_LINE_FEED) {\n        hasLineBreak = true;\n        // Check if any line can be folded.\n        if (shouldTrackWidth) {\n          hasFoldableLine = hasFoldableLine ||\n            // Foldable line = too long, and not more-indented.\n            (i - previousLineBreak - 1 > lineWidth &&\n             string[previousLineBreak + 1] !== ' ');\n          previousLineBreak = i;\n        }\n      } else if (!isPrintable(char)) {\n        return STYLE_DOUBLE;\n      }\n      plain = plain && isPlainSafe(char, prevChar, inblock);\n      prevChar = char;\n    }\n    // in case the end is missing a \\n\n    hasFoldableLine = hasFoldableLine || (shouldTrackWidth &&\n      (i - previousLineBreak - 1 > lineWidth &&\n       string[previousLineBreak + 1] !== ' '));\n  }\n  // Although every style can represent \\n without escaping, prefer block styles\n  // for multiline, since they're more readable and they don't add empty lines.\n  // Also prefer folding a super-long line.\n  if (!hasLineBreak && !hasFoldableLine) {\n    // Strings interpretable as another type have to be quoted;\n    // e.g. the string 'true' vs. the boolean true.\n    if (plain && !forceQuotes && !testAmbiguousType(string)) {\n      return STYLE_PLAIN;\n    }\n    return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;\n  }\n  // Edge case: block indentation indicator can only have one digit.\n  if (indentPerLevel > 9 && needIndentIndicator(string)) {\n    return STYLE_DOUBLE;\n  }\n  // At this point we know block styles are valid.\n  // Prefer literal style unless we want to fold.\n  if (!forceQuotes) {\n    return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;\n  }\n  return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;\n}\n\n// Note: line breaking/folding is implemented for only the folded style.\n// NB. We drop the last trailing newline (if any) of a returned block scalar\n//  since the dumper adds its own newline. This always works:\n//    \u2022 No ending newline => unaffected; already using strip \"-\" chomping.\n//    \u2022 Ending newline    => removed then restored.\n//  Importantly, this keeps the \"+\" chomp indicator from gaining an extra line.\nfunction writeScalar(state, string, level, iskey, inblock) {\n  state.dump = (function () {\n    if (string.length === 0) {\n      return state.quotingType === QUOTING_TYPE_DOUBLE ? '\"\"' : \"''\";\n    }\n    if (!state.noCompatMode) {\n      if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {\n        return state.quotingType === QUOTING_TYPE_DOUBLE ? ('\"' + string + '\"') : (\"'\" + string + \"'\");\n      }\n    }\n\n    var indent = state.indent * Math.max(1, level); // no 0-indent scalars\n    // As indentation gets deeper, let the width decrease monotonically\n    // to the lower bound min(state.lineWidth, 40).\n    // Note that this implies\n    //  state.lineWidth \u2264 40 + state.indent: width is fixed at the lower bound.\n    //  state.lineWidth > 40 + state.indent: width decreases until the lower bound.\n    // This behaves better than a constant minimum width which disallows narrower options,\n    // or an indent threshold which causes the width to suddenly increase.\n    var lineWidth = state.lineWidth === -1\n      ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);\n\n    // Without knowing if keys are implicit/explicit, assume implicit for safety.\n    var singleLineOnly = iskey\n      // No block styles in flow mode.\n      || (state.flowLevel > -1 && level >= state.flowLevel);\n    function testAmbiguity(string) {\n      return testImplicitResolving(state, string);\n    }\n\n    switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth,\n      testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) {\n\n      case STYLE_PLAIN:\n        return string;\n      case STYLE_SINGLE:\n        return \"'\" + string.replace(/'/g, \"''\") + \"'\";\n      case STYLE_LITERAL:\n        return '|' + blockHeader(string, state.indent)\n          + dropEndingNewline(indentString(string, indent));\n      case STYLE_FOLDED:\n        return '>' + blockHeader(string, state.indent)\n          + dropEndingNewline(indentString(foldString(string, lineWidth), indent));\n      case STYLE_DOUBLE:\n        return '\"' + escapeString(string, lineWidth) + '\"';\n      default:\n        throw new YAMLException('impossible error: invalid scalar style');\n    }\n  }());\n}\n\n// Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9.\nfunction blockHeader(string, indentPerLevel) {\n  var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : '';\n\n  // note the special case: the string '\\n' counts as a \"trailing\" empty line.\n  var clip =          string[string.length - 1] === '\\n';\n  var keep = clip && (string[string.length - 2] === '\\n' || string === '\\n');\n  var chomp = keep ? '+' : (clip ? '' : '-');\n\n  return indentIndicator + chomp + '\\n';\n}\n\n// (See the note for writeScalar.)\nfunction dropEndingNewline(string) {\n  return string[string.length - 1] === '\\n' ? string.slice(0, -1) : string;\n}\n\n// Note: a long line without a suitable break point will exceed the width limit.\n// Pre-conditions: every char in str isPrintable, str.length > 0, width > 0.\nfunction foldString(string, width) {\n  // In folded style, $k$ consecutive newlines output as $k+1$ newlines\u2014\n  // unless they're before or after a more-indented line, or at the very\n  // beginning or end, in which case $k$ maps to $k$.\n  // Therefore, parse each chunk as newline(s) followed by a content line.\n  var lineRe = /(\\n+)([^\\n]*)/g;\n\n  // first line (possibly an empty line)\n  var result = (function () {\n    var nextLF = string.indexOf('\\n');\n    nextLF = nextLF !== -1 ? nextLF : string.length;\n    lineRe.lastIndex = nextLF;\n    return foldLine(string.slice(0, nextLF), width);\n  }());\n  // If we haven't reached the first content line yet, don't add an extra \\n.\n  var prevMoreIndented = string[0] === '\\n' || string[0] === ' ';\n  var moreIndented;\n\n  // rest of the lines\n  var match;\n  while ((match = lineRe.exec(string))) {\n    var prefix = match[1], line = match[2];\n    moreIndented = (line[0] === ' ');\n    result += prefix\n      + (!prevMoreIndented && !moreIndented && line !== ''\n        ? '\\n' : '')\n      + foldLine(line, width);\n    prevMoreIndented = moreIndented;\n  }\n\n  return result;\n}\n\n// Greedy line breaking.\n// Picks the longest line under the limit each time,\n// otherwise settles for the shortest line over the limit.\n// NB. More-indented lines *cannot* be folded, as that would add an extra \\n.\nfunction foldLine(line, width) {\n  if (line === '' || line[0] === ' ') return line;\n\n  // Since a more-indented line adds a \\n, breaks can't be followed by a space.\n  var breakRe = / [^ ]/g; // note: the match index will always be <= length-2.\n  var match;\n  // start is an inclusive index. end, curr, and next are exclusive.\n  var start = 0, end, curr = 0, next = 0;\n  var result = '';\n\n  // Invariants: 0 <= start <= length-1.\n  //   0 <= curr <= next <= max(0, length-2). curr - start <= width.\n  // Inside the loop:\n  //   A match implies length >= 2, so curr and next are <= length-2.\n  while ((match = breakRe.exec(line))) {\n    next = match.index;\n    // maintain invariant: curr - start <= width\n    if (next - start > width) {\n      end = (curr > start) ? curr : next; // derive end <= length-2\n      result += '\\n' + line.slice(start, end);\n      // skip the space that was output as \\n\n      start = end + 1;                    // derive start <= length-1\n    }\n    curr = next;\n  }\n\n  // By the invariants, start <= length-1, so there is something left over.\n  // It is either the whole string or a part starting from non-whitespace.\n  result += '\\n';\n  // Insert a break if the remainder is too long and there is a break available.\n  if (line.length - start > width && curr > start) {\n    result += line.slice(start, curr) + '\\n' + line.slice(curr + 1);\n  } else {\n    result += line.slice(start);\n  }\n\n  return result.slice(1); // drop extra \\n joiner\n}\n\n// Escapes a double-quoted string.\nfunction escapeString(string) {\n  var result = '';\n  var char = 0;\n  var escapeSeq;\n\n  for (var i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {\n    char = codePointAt(string, i);\n    escapeSeq = ESCAPE_SEQUENCES[char];\n\n    if (!escapeSeq && isPrintable(char)) {\n      result += string[i];\n      if (char >= 0x10000) result += string[i + 1];\n    } else {\n      result += escapeSeq || encodeHex(char);\n    }\n  }\n\n  return result;\n}\n\nfunction writeFlowSequence(state, level, object) {\n  var _result = '',\n      _tag    = state.tag,\n      index,\n      length,\n      value;\n\n  for (index = 0, length = object.length; index < length; index += 1) {\n    value = object[index];\n\n    if (state.replacer) {\n      value = state.replacer.call(object, String(index), value);\n    }\n\n    // Write only valid elements, put null instead of invalid elements.\n    if (writeNode(state, level, value, false, false) ||\n        (typeof value === 'undefined' &&\n         writeNode(state, level, null, false, false))) {\n\n      if (_result !== '') _result += ',' + (!state.condenseFlow ? ' ' : '');\n      _result += state.dump;\n    }\n  }\n\n  state.tag = _tag;\n  state.dump = '[' + _result + ']';\n}\n\nfunction writeBlockSequence(state, level, object, compact) {\n  var _result = '',\n      _tag    = state.tag,\n      index,\n      length,\n      value;\n\n  for (index = 0, length = object.length; index < length; index += 1) {\n    value = object[index];\n\n    if (state.replacer) {\n      value = state.replacer.call(object, String(index), value);\n    }\n\n    // Write only valid elements, put null instead of invalid elements.\n    if (writeNode(state, level + 1, value, true, true, false, true) ||\n        (typeof value === 'undefined' &&\n         writeNode(state, level + 1, null, true, true, false, true))) {\n\n      if (!compact || _result !== '') {\n        _result += generateNextLine(state, level);\n      }\n\n      if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {\n        _result += '-';\n      } else {\n        _result += '- ';\n      }\n\n      _result += state.dump;\n    }\n  }\n\n  state.tag = _tag;\n  state.dump = _result || '[]'; // Empty sequence if no valid values.\n}\n\nfunction writeFlowMapping(state, level, object) {\n  var _result       = '',\n      _tag          = state.tag,\n      objectKeyList = Object.keys(object),\n      index,\n      length,\n      objectKey,\n      objectValue,\n      pairBuffer;\n\n  for (index = 0, length = objectKeyList.length; index < length; index += 1) {\n\n    pairBuffer = '';\n    if (_result !== '') pairBuffer += ', ';\n\n    if (state.condenseFlow) pairBuffer += '\"';\n\n    objectKey = objectKeyList[index];\n    objectValue = object[objectKey];\n\n    if (state.replacer) {\n      objectValue = state.replacer.call(object, objectKey, objectValue);\n    }\n\n    if (!writeNode(state, level, objectKey, false, false)) {\n      continue; // Skip this pair because of invalid key;\n    }\n\n    if (state.dump.length > 1024) pairBuffer += '? ';\n\n    pairBuffer += state.dump + (state.condenseFlow ? '\"' : '') + ':' + (state.condenseFlow ? '' : ' ');\n\n    if (!writeNode(state, level, objectValue, false, false)) {\n      continue; // Skip this pair because of invalid value.\n    }\n\n    pairBuffer += state.dump;\n\n    // Both key and value are valid.\n    _result += pairBuffer;\n  }\n\n  state.tag = _tag;\n  state.dump = '{' + _result + '}';\n}\n\nfunction writeBlockMapping(state, level, object, compact) {\n  var _result       = '',\n      _tag          = state.tag,\n      objectKeyList = Object.keys(object),\n      index,\n      length,\n      objectKey,\n      objectValue,\n      explicitPair,\n      pairBuffer;\n\n  // Allow sorting keys so that the output file is deterministic\n  if (state.sortKeys === true) {\n    // Default sorting\n    objectKeyList.sort();\n  } else if (typeof state.sortKeys === 'function') {\n    // Custom sort function\n    objectKeyList.sort(state.sortKeys);\n  } else if (state.sortKeys) {\n    // Something is wrong\n    throw new YAMLException('sortKeys must be a boolean or a function');\n  }\n\n  for (index = 0, length = objectKeyList.length; index < length; index += 1) {\n    pairBuffer = '';\n\n    if (!compact || _result !== '') {\n      pairBuffer += generateNextLine(state, level);\n    }\n\n    objectKey = objectKeyList[index];\n    objectValue = object[objectKey];\n\n    if (state.replacer) {\n      objectValue = state.replacer.call(object, objectKey, objectValue);\n    }\n\n    if (!writeNode(state, level + 1, objectKey, true, true, true)) {\n      continue; // Skip this pair because of invalid key.\n    }\n\n    explicitPair = (state.tag !== null && state.tag !== '?') ||\n                   (state.dump && state.dump.length > 1024);\n\n    if (explicitPair) {\n      if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {\n        pairBuffer += '?';\n      } else {\n        pairBuffer += '? ';\n      }\n    }\n\n    pairBuffer += state.dump;\n\n    if (explicitPair) {\n      pairBuffer += generateNextLine(state, level);\n    }\n\n    if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {\n      continue; // Skip this pair because of invalid value.\n    }\n\n    if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {\n      pairBuffer += ':';\n    } else {\n      pairBuffer += ': ';\n    }\n\n    pairBuffer += state.dump;\n\n    // Both key and value are valid.\n    _result += pairBuffer;\n  }\n\n  state.tag = _tag;\n  state.dump = _result || '{}'; // Empty mapping if no valid pairs.\n}\n\nfunction detectType(state, object, explicit) {\n  var _result, typeList, index, length, type, style;\n\n  typeList = explicit ? state.explicitTypes : state.implicitTypes;\n\n  for (index = 0, length = typeList.length; index < length; index += 1) {\n    type = typeList[index];\n\n    if ((type.instanceOf  || type.predicate) &&\n        (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) &&\n        (!type.predicate  || type.predicate(object))) {\n\n      if (explicit) {\n        if (type.multi && type.representName) {\n          state.tag = type.representName(object);\n        } else {\n          state.tag = type.tag;\n        }\n      } else {\n        state.tag = '?';\n      }\n\n      if (type.represent) {\n        style = state.styleMap[type.tag] || type.defaultStyle;\n\n        if (_toString.call(type.represent) === '[object Function]') {\n          _result = type.represent(object, style);\n        } else if (_hasOwnProperty.call(type.represent, style)) {\n          _result = type.represent[style](object, style);\n        } else {\n          throw new YAMLException('!<' + type.tag + '> tag resolver accepts not \"' + style + '\" style');\n        }\n\n        state.dump = _result;\n      }\n\n      return true;\n    }\n  }\n\n  return false;\n}\n\n// Serializes `object` and writes it to global `result`.\n// Returns true on success, or false on invalid object.\n//\nfunction writeNode(state, level, object, block, compact, iskey, isblockseq) {\n  state.tag = null;\n  state.dump = object;\n\n  if (!detectType(state, object, false)) {\n    detectType(state, object, true);\n  }\n\n  var type = _toString.call(state.dump);\n  var inblock = block;\n  var tagStr;\n\n  if (block) {\n    block = (state.flowLevel < 0 || state.flowLevel > level);\n  }\n\n  var objectOrArray = type === '[object Object]' || type === '[object Array]',\n      duplicateIndex,\n      duplicate;\n\n  if (objectOrArray) {\n    duplicateIndex = state.duplicates.indexOf(object);\n    duplicate = duplicateIndex !== -1;\n  }\n\n  if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) {\n    compact = false;\n  }\n\n  if (duplicate && state.usedDuplicates[duplicateIndex]) {\n    state.dump = '*ref_' + duplicateIndex;\n  } else {\n    if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {\n      state.usedDuplicates[duplicateIndex] = true;\n    }\n    if (type === '[object Object]') {\n      if (block && (Object.keys(state.dump).length !== 0)) {\n        writeBlockMapping(state, level, state.dump, compact);\n        if (duplicate) {\n          state.dump = '&ref_' + duplicateIndex + state.dump;\n        }\n      } else {\n        writeFlowMapping(state, level, state.dump);\n        if (duplicate) {\n          state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;\n        }\n      }\n    } else if (type === '[object Array]') {\n      if (block && (state.dump.length !== 0)) {\n        if (state.noArrayIndent && !isblockseq && level > 0) {\n          writeBlockSequence(state, level - 1, state.dump, compact);\n        } else {\n          writeBlockSequence(state, level, state.dump, compact);\n        }\n        if (duplicate) {\n          state.dump = '&ref_' + duplicateIndex + state.dump;\n        }\n      } else {\n        writeFlowSequence(state, level, state.dump);\n        if (duplicate) {\n          state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;\n        }\n      }\n    } else if (type === '[object String]') {\n      if (state.tag !== '?') {\n        writeScalar(state, state.dump, level, iskey, inblock);\n      }\n    } else if (type === '[object Undefined]') {\n      return false;\n    } else {\n      if (state.skipInvalid) return false;\n      throw new YAMLException('unacceptable kind of an object to dump ' + type);\n    }\n\n    if (state.tag !== null && state.tag !== '?') {\n      // Need to encode all characters except those allowed by the spec:\n      //\n      // [35] ns-dec-digit    ::=  [#x30-#x39] /* 0-9 */\n      // [36] ns-hex-digit    ::=  ns-dec-digit\n      //                         | [#x41-#x46] /* A-F */ | [#x61-#x66] /* a-f */\n      // [37] ns-ascii-letter ::=  [#x41-#x5A] /* A-Z */ | [#x61-#x7A] /* a-z */\n      // [38] ns-word-char    ::=  ns-dec-digit | ns-ascii-letter | \u201C-\u201D\n      // [39] ns-uri-char     ::=  \u201C%\u201D ns-hex-digit ns-hex-digit | ns-word-char | \u201C#\u201D\n      //                         | \u201C;\u201D | \u201C/\u201D | \u201C?\u201D | \u201C:\u201D | \u201C@\u201D | \u201C&\u201D | \u201C=\u201D | \u201C+\u201D | \u201C$\u201D | \u201C,\u201D\n      //                         | \u201C_\u201D | \u201C.\u201D | \u201C!\u201D | \u201C~\u201D | \u201C*\u201D | \u201C'\u201D | \u201C(\u201D | \u201C)\u201D | \u201C[\u201D | \u201C]\u201D\n      //\n      // Also need to encode '!' because it has special meaning (end of tag prefix).\n      //\n      tagStr = encodeURI(\n        state.tag[0] === '!' ? state.tag.slice(1) : state.tag\n      ).replace(/!/g, '%21');\n\n      if (state.tag[0] === '!') {\n        tagStr = '!' + tagStr;\n      } else if (tagStr.slice(0, 18) === 'tag:yaml.org,2002:') {\n        tagStr = '!!' + tagStr.slice(18);\n      } else {\n        tagStr = '!<' + tagStr + '>';\n      }\n\n      state.dump = tagStr + ' ' + state.dump;\n    }\n  }\n\n  return true;\n}\n\nfunction getDuplicateReferences(object, state) {\n  var objects = [],\n      duplicatesIndexes = [],\n      index,\n      length;\n\n  inspectNode(object, objects, duplicatesIndexes);\n\n  for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) {\n    state.duplicates.push(objects[duplicatesIndexes[index]]);\n  }\n  state.usedDuplicates = new Array(length);\n}\n\nfunction inspectNode(object, objects, duplicatesIndexes) {\n  var objectKeyList,\n      index,\n      length;\n\n  if (object !== null && typeof object === 'object') {\n    index = objects.indexOf(object);\n    if (index !== -1) {\n      if (duplicatesIndexes.indexOf(index) === -1) {\n        duplicatesIndexes.push(index);\n      }\n    } else {\n      objects.push(object);\n\n      if (Array.isArray(object)) {\n        for (index = 0, length = object.length; index < length; index += 1) {\n          inspectNode(object[index], objects, duplicatesIndexes);\n        }\n      } else {\n        objectKeyList = Object.keys(object);\n\n        for (index = 0, length = objectKeyList.length; index < length; index += 1) {\n          inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);\n        }\n      }\n    }\n  }\n}\n\nfunction dump(input, options) {\n  options = options || {};\n\n  var state = new State(options);\n\n  if (!state.noRefs) getDuplicateReferences(input, state);\n\n  var value = input;\n\n  if (state.replacer) {\n    value = state.replacer.call({ '': value }, '', value);\n  }\n\n  if (writeNode(state, 0, value, true, true)) return state.dump + '\\n';\n\n  return '';\n}\n\nmodule.exports.dump = dump;\n", "'use strict';\n\n\nvar loader = require('./lib/loader');\nvar dumper = require('./lib/dumper');\n\n\nfunction renamed(from, to) {\n  return function () {\n    throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' +\n      'Use yaml.' + to + ' instead, which is now safe by default.');\n  };\n}\n\n\nmodule.exports.Type                = require('./lib/type');\nmodule.exports.Schema              = require('./lib/schema');\nmodule.exports.FAILSAFE_SCHEMA     = require('./lib/schema/failsafe');\nmodule.exports.JSON_SCHEMA         = require('./lib/schema/json');\nmodule.exports.CORE_SCHEMA         = require('./lib/schema/core');\nmodule.exports.DEFAULT_SCHEMA      = require('./lib/schema/default');\nmodule.exports.load                = loader.load;\nmodule.exports.loadAll             = loader.loadAll;\nmodule.exports.dump                = dumper.dump;\nmodule.exports.YAMLException       = require('./lib/exception');\n\n// Re-export all types in case user wants to create custom schema\nmodule.exports.types = {\n  binary:    require('./lib/type/binary'),\n  float:     require('./lib/type/float'),\n  map:       require('./lib/type/map'),\n  null:      require('./lib/type/null'),\n  pairs:     require('./lib/type/pairs'),\n  set:       require('./lib/type/set'),\n  timestamp: require('./lib/type/timestamp'),\n  bool:      require('./lib/type/bool'),\n  int:       require('./lib/type/int'),\n  merge:     require('./lib/type/merge'),\n  omap:      require('./lib/type/omap'),\n  seq:       require('./lib/type/seq'),\n  str:       require('./lib/type/str')\n};\n\n// Removed functions from JS-YAML 3.0.x\nmodule.exports.safeLoad            = renamed('safeLoad', 'load');\nmodule.exports.safeLoadAll         = renamed('safeLoadAll', 'loadAll');\nmodule.exports.safeDump            = renamed('safeDump', 'dump');\n", "\"use strict\";\n\nconst jsYAML = require(\"js-yaml\");\n\nmodule.exports = form;\n\n/**\n * Finds all form fields and exposes them as properties.\n */\nfunction form () {\n  form.form = $(\"#swagger-parser-form\");\n\n  form.allow = {\n    label: form.form.find(\"#allow-label\"),\n    menu: form.form.find(\"#allow-menu\"),\n    json: form.form.find(\"input[name=allow-json]\"),\n    yaml: form.form.find(\"input[name=allow-yaml]\"),\n    text: form.form.find(\"input[name=allow-text]\"),\n    empty: form.form.find(\"input[name=allow-empty]\"),\n    unknown: form.form.find(\"input[name=allow-unknown]\")\n  };\n\n  form.refs = {\n    label: form.form.find(\"#refs-label\"),\n    menu: form.form.find(\"#refs-menu\"),\n    external: form.form.find(\"input[name=refs-external]\"),\n    circular: form.form.find(\"input[name=refs-circular]\")\n  };\n\n  form.validate = {\n    label: form.form.find(\"#validate-label\"),\n    menu: form.form.find(\"#validate-menu\"),\n    schema: form.form.find(\"input[name=validate-schema]\"),\n    spec: form.form.find(\"input[name=validate-spec]\")\n  };\n\n  form.tabs = {\n    url: form.form.find(\"#url-tab\"),\n    text: form.form.find(\"#text-tab\")\n  };\n\n  form.method = {\n    button: form.form.find(\"button[name=method]\"),\n    menu: form.form.find(\"#method-menu\")\n  };\n\n  form.samples = {\n    url: {\n      container: form.form.find(\"#url-sample\"),\n      link: form.form.find(\"#url-sample-link\"),\n    },\n    text: {\n      container: form.form.find(\"#text-sample\"),\n      link: form.form.find(\"#text-sample-link\"),\n    }\n  };\n\n  form.url = form.form.find(\"input[name=url]\");\n  form.textBox = null; // This is set in editors.js\n  form.bookmark = form.form.find(\"#bookmark\");\n}\n\n/**\n * Returns a Swagger Parser options object,\n * set to the current values of all the form fields.\n */\nform.getOptions = function () {\n  return {\n    parse: {\n      json: form.allow.json.is(\":checked\") ? {\n        allowEmpty: form.allow.empty.is(\":checked\"),\n      } : false,\n      yaml: form.allow.yaml.is(\":checked\") ? {\n        allowEmpty: form.allow.empty.is(\":checked\"),\n      } : false,\n      text: form.allow.text.is(\":checked\") ? {\n        allowEmpty: form.allow.empty.is(\":checked\"),\n      } : false,\n      binary: form.allow.unknown.is(\":checked\") ? {\n        allowEmpty: form.allow.empty.is(\":checked\"),\n      } : false,\n    },\n    resolve: {\n      external: form.refs.external.is(\":checked\"),\n    },\n    dereference: {\n      circular: form.refs.circular.is(\":checked\"),\n    },\n    validate: {\n      schema: form.validate.schema.is(\":checked\"),\n      spec: form.validate.spec.is(\":checked\"),\n    },\n  };\n};\n\n/**\n * Returns the Swagger API or URL, depending on the current form fields.\n */\nform.getAPI = function () {\n  // Determine which tab is selected\n  if (form.tabs.url.parent().attr(\"class\").indexOf(\"active\") >= 0) {\n    let url = form.url.val();\n    if (url) {\n      return url;\n    }\n    else {\n      throw new URIError(\"Please specify the URL of your Swagger/OpenAPI definition\");\n    }\n  }\n  else {\n    let text = form.textBox.getValue();\n    if (form.allow.yaml.is(\":checked\")) {\n      return jsYAML.safeLoad(text);\n    }\n    else if (form.allow.json.is(\":checked\")) {\n      return JSON.parse(text);\n    }\n    else {\n      throw new SyntaxError(\"Unable to parse the API. Neither YAML nor JSON are allowed.\");\n    }\n  }\n};\n", "\"use strict\";\n\nconst form = require(\"./form\");\n\nmodule.exports = querystring;\n\n/**\n * Initializes the UI, based on the query-string in the URL\n */\nfunction querystring () {\n  setFormFields();\n  setBookmarkURL();\n  form.bookmark.on(\"click focus mouseenter\", setBookmarkURL);\n}\n\n/**\n * Populates all form fields based on the query-string in the URL\n */\nfunction setFormFields () {\n  const params = new URLSearchParams(window.location.search);\n  let query = Object.fromEntries(params.entries());\n\n  setCheckbox(form.allow.json, query[\"allow-json\"]);\n  setCheckbox(form.allow.yaml, query[\"allow-yaml\"]);\n  setCheckbox(form.allow.text, query[\"allow-text\"]);\n  setCheckbox(form.allow.empty, query[\"allow-empty\"]);\n  setCheckbox(form.allow.unknown, query[\"allow-unknown\"]);\n  setCheckbox(form.refs.external, query[\"refs-external\"]);\n  setCheckbox(form.refs.circular, query[\"refs-circular\"]);\n  setCheckbox(form.validate.schema, query[\"validate-schema\"]);\n  setCheckbox(form.validate.spec, query[\"validate-spec\"]);\n\n  // If a custom URL is specified, then show the \"Your API\" tab\n  if (query.url) {\n    form.url.val(query.url);\n  }\n\n  // If a method is specified, then change the \"Validate!\" button\n  if (query.method) {\n    query.method = query.method.toLowerCase();\n    if ([\"parse\", \"resolve\", \"bundle\", \"dereference\", \"validate\"].indexOf(query.method) !== -1) {\n      form.method.button.val(query.method);\n    }\n  }\n}\n\n/**\n * Checks or unchecks the given checkbox, based on the given value.\n *\n * @param {jQuery} input\n * @param {*} value\n */\nfunction setCheckbox (input, value) {\n  if (!value || value === \"true\" || value === \"on\") {\n    value = \"yes\";\n  }\n  input.val([value]);\n}\n\n/**\n * Sets the href of the bookmark link, based on the values of each form field\n */\nfunction setBookmarkURL () {\n  let query = {};\n  let options = form.getOptions();\n  options.parse.json || (query[\"allow-json\"] = \"no\");\n  options.parse.yaml || (query[\"allow-yaml\"] = \"no\");\n  options.parse.text || (query[\"allow-text\"] = \"no\");\n  options.parse.json.allowEmpty || (query[\"allow-empty\"] = \"no\");\n  options.parse.binary || (query[\"allow-unknown\"] = \"no\");\n  options.resolve.external || (query[\"refs-external\"] = \"no\");\n  options.dereference.circular || (query[\"refs-circular\"] = \"no\");\n  options.validate.schema || (query[\"validate-schema\"] = \"no\");\n  options.validate.spec || (query[\"validate-spec\"] = \"no\");\n\n  let method = form.method.button.val();\n  method === \"validate\" || (query.method = method);\n\n  let url = form.url.val();\n  url === \"\" || (query.url = url);\n\n  const params = new URLSearchParams(query);\n  let bookmark = \"?\" + params.toString();\n  form.bookmark.attr(\"href\", bookmark);\n}\n", "\"use strict\";\n\nlet debug = location.hostname === \"localhost\";\n\nmodule.exports = analytics;\n\n/**\n * Initializes Google Analytics and sends a \"pageview\" hit\n */\nfunction analytics () {\n  if (!debug) {\n    if (typeof gtag === \"undefined\") {\n      console.warn(\"Google Analytics is not enabled\");\n    }\n  }\n}\n\n/**\n * Tracks an event in Google Analytics\n *\n * @param {string} category - the object type (e.g. \"button\", \"menu\", \"link\", etc.)\n * @param {string} action - the action (e.g. \"click\", \"show\", \"hide\", etc.)\n * @param {string} [label] - label for categorization\n * @param {number} [value] - numeric value, such as a counter\n */\nanalytics.trackEvent = function (category, action, label, value) {\n  try {\n    console.log(\"Analytics event: \", category, action, label, value);\n\n    if (!debug) {\n      gtag(\"event\", action, {\n        event_category: category,   // eslint-disable-line camelcase\n        event_label: label,         // eslint-disable-line camelcase\n        value\n      });\n    }\n  }\n  catch (error) {\n    analytics.trackError(error);\n  }\n};\n\n/**\n * Tracks an error in Google Analytics\n *\n * @param {Error} err\n */\nanalytics.trackError = function (err) {\n  try {\n    console.error(\"Analytics error: \", err);\n\n    if (!debug) {\n      gtag(\"event\", \"exception\", {\n        name: err.name || \"Error\",\n        description: err.message,\n        stack: err.stack,\n      });\n    }\n  }\n  catch (error) {\n    console.error(err);\n  }\n};\n", "\"use strict\";\n\nconst form = require(\"./form\");\nconst analytics = require(\"./analytics\");\n\nmodule.exports = dropdowns;\n\n/**\n * Adds all the drop-down menu functionality\n */\nfunction dropdowns () {\n  // Set the initial method name (in case it was set by the querystring module)\n  setSelectedMethod(form.method.button.val());\n\n  // Update each dropdown's label when its value(s) change\n  onChange(form.allow.menu, setAllowLabel);\n  onChange(form.refs.menu, setRefsLabel);\n  onChange(form.validate.menu, setValidateLabel);\n\n  // Track option changes\n  trackCheckbox(form.allow.json);\n  trackCheckbox(form.allow.yaml);\n  trackCheckbox(form.allow.text);\n  trackCheckbox(form.allow.empty);\n  trackCheckbox(form.allow.unknown);\n  trackCheckbox(form.refs.external);\n  trackCheckbox(form.refs.circular);\n  trackCheckbox(form.validate.schema);\n  trackCheckbox(form.validate.spec);\n\n  // Change the button text whenever a new method is selected\n  form.method.menu.find(\"a\").on(\"click\", function (event) {\n    form.method.menu.dropdown(\"toggle\");\n    event.stopPropagation();\n    let methodName = $(this).data(\"value\");\n    setSelectedMethod(methodName);\n    trackButtonLabel(methodName);\n  });\n}\n\n/**\n * Calls the given function whenever the user selects (or deselects)\n * a value in the given drop-down menu.\n *\n * @param {jQuery} menu\n * @param {Function} setLabel\n */\nfunction onChange (menu, setLabel) {\n  let dropdown = menu.parent(\".dropdown\");\n\n  // Don't auto-close the menu when items are clicked\n  menu.find(\"a\").on(\"click\", (event) => {\n    event.stopPropagation();\n  });\n\n  // Set the label immediately, and again whenever the menu is closed\n  setLabel();\n  dropdown.on(\"hidden.bs.dropdown\", setLabel);\n\n  // Track when a dropdown menu is shown\n  dropdown.on(\"shown.bs.dropdown\", () => {\n    analytics.trackEvent(\"options\", \"shown\", menu.attr(\"id\"));\n  });\n}\n\n/**\n * Sets the \"allow\" label, based on which options are selected\n */\nfunction setAllowLabel () {\n  let values = getCheckedAndUnchecked(\n    form.allow.json, form.allow.yaml, form.allow.text, form.allow.empty, form.allow.unknown);\n\n  switch (values.checked.length) {\n    case 0:\n      form.allow.label.text(\"No file types allowed\");\n      break;\n    case 1:\n      form.allow.label.text(\"Only allow \" + values.checked[0] + \" files\");\n      break;\n    case 2:\n      form.allow.label.text(\"Only allow \" + values.checked[0] + \" and \" + values.checked[1]);\n      break;\n    case 3:\n      form.allow.label.text(\"Don't allow \" + values.unchecked[0] + \" or \" + values.unchecked[1]);\n      break;\n    case 4:\n      form.allow.label.text(\"Don't allow \" + values.unchecked[0] + \" files\");\n      break;\n    case 5:\n      form.allow.label.text(\"Allow all file types\");\n  }\n}\n\n/**\n * Sets the \"refs\" label, based on which options are selected\n */\nfunction setRefsLabel () {\n  let values = getCheckedAndUnchecked(form.refs.external, form.refs.circular);\n\n  switch (values.checked.length) {\n    case 0:\n      form.refs.label.text(\"Only follow internal $refs\");\n      break;\n    case 1:\n      form.refs.label.text(\"Don't follow \" + values.unchecked[0] + \" $refs\");\n      break;\n    case 2:\n      form.refs.label.text(\"Follow all $refs\");\n  }\n}\n\n/**\n * Sets the \"validate\" label, based on which options are selected\n */\nfunction setValidateLabel () {\n  let values = getCheckedAndUnchecked(form.validate.schema, form.validate.spec);\n\n  switch (values.checked.length) {\n    case 0:\n      form.validate.label.text(\"Don't validate anything\");\n      break;\n    case 1:\n      form.validate.label.text(\"Don't validate Swagger \" + values.unchecked[0]);\n      break;\n    case 2:\n      form.validate.label.text(\"Validate everything\");\n  }\n}\n\n/**\n * Updates the UI to match the specified method name\n *\n * @param {string} methodName - The method name (e.g. \"validate\", \"dereference\", etc.)\n */\nfunction setSelectedMethod (methodName) {\n  form.method.button.val(methodName.toLowerCase());\n\n  methodName = methodName[0].toUpperCase() + methodName.substr(1);\n  form.method.button.text(methodName + \" it!\");\n  form.tabs.url.text(methodName + \" a URL\");\n  form.tabs.text.text(methodName + \" Text\");\n}\n\n/**\n * Tracks changes to a checkbox option\n *\n * @param {jQuery} checkbox\n */\nfunction trackCheckbox (checkbox) {\n  checkbox.on(\"change\", () => {\n    let value = checkbox.is(\":checked\") ? 1 : 0;\n    analytics.trackEvent(\"options\", \"changed\", checkbox.attr(\"name\"), value);\n  });\n}\n\n/**\n * Tracks changes to the \"Validate!\" button\n *\n * @param {string} methodName - The method name (e.g. \"validate\", \"dereference\", etc.)\n */\nfunction trackButtonLabel (methodName) {\n  let value = [\"\", \"parse\", \"resolve\", \"bundle\", \"dereference\", \"validate\"].indexOf(methodName);\n  analytics.trackEvent(\"options\", \"changed\", \"method\", value);\n}\n\n/**\n * Examines the given checkboxes, and returns arrays of checked and unchecked values.\n *\n * @param {...jQuery} _checkboxes\n * @returns {{checked: string[], unchecked: string[]}}\n */\nfunction getCheckedAndUnchecked (_checkboxes) {\n  let checked = [], unchecked = [];\n  for (let i = 0; i < arguments.length; i++) {\n    let checkbox = arguments[i];\n    if (checkbox.is(\":checked\")) {\n      checked.push(checkbox.data(\"value\"));\n    }\n    else {\n      unchecked.push(checkbox.data(\"value\"));\n    }\n  }\n  return { checked, unchecked };\n}\n", "\"use strict\";\n\nconst form = require(\"./form\");\nconst ACE_THEME = \"ace/theme/terminal\";\n\nmodule.exports = editors;\n\n/**\n * Initializes the ACE text editors\n */\nfunction editors () {\n  editors.textBox = form.textBox = ace.edit(\"text-box\");\n  form.textBox.setTheme(ACE_THEME);\n  let session = form.textBox.getSession();\n  session.setMode(\"ace/mode/yaml\");\n  session.setTabSize(2);\n\n  editors.results = $(\"#results\");\n  editors.tabs = editors.results.find(\".nav-tabs\");\n  editors.panes = editors.results.find(\".tab-content\");\n}\n\n/**\n * Removes all results tabs and editors\n */\neditors.clearResults = function () {\n  editors.results.removeClass(\"error animated\").addClass(\"hidden\");\n  editors.tabs.children().remove();\n  editors.panes.children().remove();\n};\n\n/**\n * Displays a successful result\n *\n * @param {string} title - The title of the tab\n * @param {object|string} content - An object that will be displayed as JSON in the editor\n */\neditors.showResult = function (title, content) {\n  editors.results.removeClass(\"hidden\");\n  editors.addResult(title, content);\n  showResults();\n};\n\n/**\n * Displays an error result\n *\n * @param {Error} err\n */\neditors.showError = function (err) {\n  editors.results.removeClass(\"hidden\").addClass(\"error\");\n  editors.addResult(\"Error!\", err);\n  showResults();\n};\n\n/**\n * Adds a results tab with an Ace Editor containing the given content\n *\n * @param {string} title - The title of the tab\n * @param {object|string} content - An object that will be displayed as JSON in the editor\n */\neditors.addResult = function (title, content) {\n  let index = editors.tabs.children().length;\n  let titleId = \"results-tab-\" + index + \"-title\";\n  let editorId = \"results-\" + index;\n  let active = index === 0 ? \"active\" : \"\";\n\n  // Add a tab and pane\n  editors.tabs.append(\n    '
  • ' +\n ' ' +\n \"
  • \"\n );\n editors.panes.append(\n '
    ' +\n '
    ' +\n    \"
    \"\n );\n\n // Set the tab title\n let shortTitle = getShortTitle(title) || \"Sample API\";\n editors.tabs.find(\"#\" + titleId).text(shortTitle).attr(\"title\", title);\n\n // Set the
     content\n  content = toText(content);\n  editors.panes.find(\"#\" + editorId).text(content.text);\n\n  // Turn the 
     into an Ace Editor\n  let editor = ace.edit(editorId);\n  editor.setTheme(ACE_THEME);\n  editor.session.setOption(\"useWorker\", false);\n  content.isJSON && editor.getSession().setMode(\"ace/mode/json\");\n  editor.setReadOnly(true);\n};\n\n/**\n * Returns a short version of the given title text, to better fit in a tab\n *\n * @param {string} title\n * @returns {string}\n */\nfunction getShortTitle (title) {\n  // Get just the file name\n  let lastSlash = title.lastIndexOf(\"/\");\n  if (lastSlash !== -1) {\n    title = title.substr(lastSlash + 1);\n  }\n\n  if (title.length > 15) {\n    // It's still too long, so, just return the first 10 characters\n    title = title.substr(0, 10) + \"...\";\n  }\n\n  return title;\n}\n\n/**\n * Ensures that the results are visible, and plays an animation to get the user's attention.\n */\nfunction showResults () {\n  let results = editors.results;\n\n  setTimeout(() => {\n    results[0].scrollIntoView();\n    results.addClass(\"animated\")\n      .one(\"webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend\", () => {\n        // Remove the \"animated\" class when the animation ends,\n        // so we can replay the animation again next time\n        results.removeClass(\"animated\");\n      });\n  });\n}\n\n/**\n * Converts the given object to text.\n * If possible, it is converted to JSON; otherwise, plain text.\n *\n * @param {object} obj\n * @returns {object}\n */\nfunction toText (obj) {\n  if (obj instanceof Error) {\n    return {\n      isJSON: false,\n      text: obj.message + \"\\n\\n\" + obj.stack\n    };\n  }\n  else {\n    try {\n      return {\n        isJSON: true,\n        text: JSON.stringify(obj, null, 2)\n      };\n    }\n    catch (e) {\n      return {\n        isJSON: false,\n        text: \"This API is valid, but it cannot be shown because it contains circular references\\n\\n\" + e.stack\n      };\n    }\n  }\n}\n", "\"use strict\";\n\nconst form = require(\"./form\");\n\nmodule.exports = samples;\n\n/**\n * Allows the user to use a sample URL or sample API text\n */\nfunction samples () {\n  form.samples.url.link.on(\"click\", (event) => {\n    event.preventDefault();\n    form.url.val(samples.url);\n  });\n\n  form.samples.text.link.on(\"click\", (event) => {\n    event.preventDefault();\n    form.textBox.setValue(samples.text, -1);\n    form.samples.text.container.hide();\n    form.textBox.focus();\n  });\n\n  form.textBox.on(\"input\", () => {\n    if (form.textBox.session.getValue().length === 0) {\n      form.samples.text.container.show();\n    }\n    else {\n      form.samples.text.container.hide();\n    }\n  });\n}\n\nsamples.url = \"https://apitools.dev/swagger-parser/online/sample/swagger.yaml\";\n\nsamples.text =\n  'swagger: \"2.0\"\\n' +\n  \"info:\\n\" +\n  \"  version: 1.0.0\\n\" +\n  \"  title: Swagger Petstore\\n\" +\n  \"  description: >\\n\" +\n  \"    A sample API that uses a petstore as an example\\n\" +\n  \"    to demonstrate features in the swagger-2.0 specification\\n\" +\n  \"consumes:\\n\" +\n  \"  - application/json\\n\" +\n  \"produces:\\n\" +\n  \"  - application/json\\n\" +\n  \"paths:\\n\" +\n  \"  /pets:\\n\" +\n  \"    get:\\n\" +\n  \"      description: Returns all pets from the petstore\\n\" +\n  \"      responses:\\n\" +\n  '        \"200\":\\n' +\n  \"          description: pet response\\n\" +\n  \"          schema:\\n\" +\n  \"            type: array\\n\" +\n  \"            items:\\n\" +\n  '              $ref: \"#/definitions/pet\"\\n' +\n  \"        default:\\n\" +\n  \"          description: unexpected error\\n\" +\n  \"          schema:\\n\" +\n  '            $ref: \"#/definitions/errorModel\"\\n' +\n  \"    post:\\n\" +\n  \"      description: Creates a new pet in the store\\n\" +\n  \"      parameters:\\n\" +\n  \"        - name: pet\\n\" +\n  \"          in: body\\n\" +\n  \"          description: Pet to add to the store\\n\" +\n  \"          required: true\\n\" +\n  \"          schema:\\n\" +\n  '            $ref: \"#/definitions/pet\"\\n' +\n  \"      responses:\\n\" +\n  '        \"200\":\\n' +\n  \"          description: pet response\\n\" +\n  \"          schema:\\n\" +\n  '            $ref: \"#/definitions/pet\"\\n' +\n  \"        default:\\n\" +\n  \"          description: unexpected error\\n\" +\n  \"          schema:\\n\" +\n  '            $ref: \"#/definitions/errorModel\"\\n' +\n  '  \"/pets/{name}\":\\n' +\n  \"    get:\\n\" +\n  \"      description: Returns a single pet by name\\n\" +\n  \"      parameters:\\n\" +\n  \"        - name: name\\n\" +\n  \"          in: path\\n\" +\n  \"          description: Name of the pet to fetch\\n\" +\n  \"          required: true\\n\" +\n  \"          type: string\\n\" +\n  \"      responses:\\n\" +\n  '        \"200\":\\n' +\n  \"          description: pet response\\n\" +\n  \"          schema:\\n\" +\n  '            $ref: \"#/definitions/pet\"\\n' +\n  \"        default:\\n\" +\n  \"          description: unexpected error\\n\" +\n  \"          schema:\\n\" +\n  '            $ref: \"#/definitions/errorModel\"\\n' +\n  \"definitions:\\n\" +\n  \"  pet:\\n\" +\n  \"    $ref: sample/pet.yaml\\n\" +\n  \"  pet-owner:\\n\" +\n  \"    $ref: sample/pet-owner.yaml\\n\" +\n  \"  errorModel:\\n\" +\n  \"    $ref: sample/error.json\\n\";\n", null, null, null, null, null, null, null, "var e,t,n,r=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:global,o=e={};function i(){throw new Error(\"setTimeout has not been defined\")}function u(){throw new Error(\"clearTimeout has not been defined\")}function c(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this||r,e,0)}}}!function(){try{t=\"function\"==typeof setTimeout?setTimeout:i;}catch(e){t=i;}try{n=\"function\"==typeof clearTimeout?clearTimeout:u;}catch(e){n=u;}}();var l,s=[],f=!1,a=-1;function h(){f&&l&&(f=!1,l.length?s=l.concat(s):a=-1,s.length&&d());}function d(){if(!f){var e=c(h);f=!0;for(var t=s.length;t;){for(l=s,s=[];++a1)for(var n=1;n=0&&\"[object Array]\"!==e.call(t)&&\"[object Function]\"===e.call(t.callee)},r=function(){return o(arguments)}();o.isLegacyArguments=n;var l=r?o:n;var t$1=Object.prototype.toString,o$1=Function.prototype.toString,n$1=/^\\s*(?:function)?\\*/,e$1=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.toStringTag,r$1=Object.getPrototypeOf,c=function(){if(!e$1)return !1;try{return Function(\"return function*() {}\")()}catch(t){}}(),u=c?r$1(c):{},i=function(c){return \"function\"==typeof c&&(!!n$1.test(o$1.call(c))||(e$1?r$1(c)===u:\"[object GeneratorFunction]\"===t$1.call(c)))};var t$2=\"function\"==typeof Object.create?function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}));}:function(t,e){if(e){t.super_=e;var o=function(){};o.prototype=e.prototype,t.prototype=new o,t.prototype.constructor=t;}};var i$1=function(e){return e&&\"object\"==typeof e&&\"function\"==typeof e.copy&&\"function\"==typeof e.fill&&\"function\"==typeof e.readUInt8},o$2={},u$1=i$1,f=l,a=i;function c$1(e){return e.call.bind(e)}var s=\"undefined\"!=typeof BigInt,p=\"undefined\"!=typeof Symbol,y=p&&void 0!==Symbol.toStringTag,l$1=\"undefined\"!=typeof Uint8Array,d=\"undefined\"!=typeof ArrayBuffer;if(l$1&&y)var g=Object.getPrototypeOf(Uint8Array.prototype),b=c$1(Object.getOwnPropertyDescriptor(g,Symbol.toStringTag).get);var m=c$1(Object.prototype.toString),h=c$1(Number.prototype.valueOf),j=c$1(String.prototype.valueOf),A=c$1(Boolean.prototype.valueOf);if(s)var w=c$1(BigInt.prototype.valueOf);if(p)var v=c$1(Symbol.prototype.valueOf);function O(e,t){if(\"object\"!=typeof e)return !1;try{return t(e),!0}catch(e){return !1}}function S(e){return l$1&&y?void 0!==b(e):B(e)||k(e)||E(e)||D(e)||U(e)||P(e)||x(e)||I(e)||M(e)||z(e)||F(e)}function B(e){return l$1&&y?\"Uint8Array\"===b(e):\"[object Uint8Array]\"===m(e)||u$1(e)&&void 0!==e.buffer}function k(e){return l$1&&y?\"Uint8ClampedArray\"===b(e):\"[object Uint8ClampedArray]\"===m(e)}function E(e){return l$1&&y?\"Uint16Array\"===b(e):\"[object Uint16Array]\"===m(e)}function D(e){return l$1&&y?\"Uint32Array\"===b(e):\"[object Uint32Array]\"===m(e)}function U(e){return l$1&&y?\"Int8Array\"===b(e):\"[object Int8Array]\"===m(e)}function P(e){return l$1&&y?\"Int16Array\"===b(e):\"[object Int16Array]\"===m(e)}function x(e){return l$1&&y?\"Int32Array\"===b(e):\"[object Int32Array]\"===m(e)}function I(e){return l$1&&y?\"Float32Array\"===b(e):\"[object Float32Array]\"===m(e)}function M(e){return l$1&&y?\"Float64Array\"===b(e):\"[object Float64Array]\"===m(e)}function z(e){return l$1&&y?\"BigInt64Array\"===b(e):\"[object BigInt64Array]\"===m(e)}function F(e){return l$1&&y?\"BigUint64Array\"===b(e):\"[object BigUint64Array]\"===m(e)}function T(e){return \"[object Map]\"===m(e)}function N(e){return \"[object Set]\"===m(e)}function W(e){return \"[object WeakMap]\"===m(e)}function $(e){return \"[object WeakSet]\"===m(e)}function C(e){return \"[object ArrayBuffer]\"===m(e)}function V(e){return \"undefined\"!=typeof ArrayBuffer&&(C.working?C(e):e instanceof ArrayBuffer)}function G(e){return \"[object DataView]\"===m(e)}function R(e){return \"undefined\"!=typeof DataView&&(G.working?G(e):e instanceof DataView)}function J(e){return \"[object SharedArrayBuffer]\"===m(e)}function _(e){return \"undefined\"!=typeof SharedArrayBuffer&&(J.working?J(e):e instanceof SharedArrayBuffer)}function H(e){return O(e,h)}function Z(e){return O(e,j)}function q(e){return O(e,A)}function K(e){return s&&O(e,w)}function L(e){return p&&O(e,v)}o$2.isArgumentsObject=f,o$2.isGeneratorFunction=a,o$2.isPromise=function(e){return \"undefined\"!=typeof Promise&&e instanceof Promise||null!==e&&\"object\"==typeof e&&\"function\"==typeof e.then&&\"function\"==typeof e.catch},o$2.isArrayBufferView=function(e){return d&&ArrayBuffer.isView?ArrayBuffer.isView(e):S(e)||R(e)},o$2.isTypedArray=S,o$2.isUint8Array=B,o$2.isUint8ClampedArray=k,o$2.isUint16Array=E,o$2.isUint32Array=D,o$2.isInt8Array=U,o$2.isInt16Array=P,o$2.isInt32Array=x,o$2.isFloat32Array=I,o$2.isFloat64Array=M,o$2.isBigInt64Array=z,o$2.isBigUint64Array=F,T.working=\"undefined\"!=typeof Map&&T(new Map),o$2.isMap=function(e){return \"undefined\"!=typeof Map&&(T.working?T(e):e instanceof Map)},N.working=\"undefined\"!=typeof Set&&N(new Set),o$2.isSet=function(e){return \"undefined\"!=typeof Set&&(N.working?N(e):e instanceof Set)},W.working=\"undefined\"!=typeof WeakMap&&W(new WeakMap),o$2.isWeakMap=function(e){return \"undefined\"!=typeof WeakMap&&(W.working?W(e):e instanceof WeakMap)},$.working=\"undefined\"!=typeof WeakSet&&$(new WeakSet),o$2.isWeakSet=function(e){return $(e)},C.working=\"undefined\"!=typeof ArrayBuffer&&C(new ArrayBuffer),o$2.isArrayBuffer=V,G.working=\"undefined\"!=typeof ArrayBuffer&&\"undefined\"!=typeof DataView&&G(new DataView(new ArrayBuffer(1),0,1)),o$2.isDataView=R,J.working=\"undefined\"!=typeof SharedArrayBuffer&&J(new SharedArrayBuffer),o$2.isSharedArrayBuffer=_,o$2.isAsyncFunction=function(e){return \"[object AsyncFunction]\"===m(e)},o$2.isMapIterator=function(e){return \"[object Map Iterator]\"===m(e)},o$2.isSetIterator=function(e){return \"[object Set Iterator]\"===m(e)},o$2.isGeneratorObject=function(e){return \"[object Generator]\"===m(e)},o$2.isWebAssemblyCompiledModule=function(e){return \"[object WebAssembly.Module]\"===m(e)},o$2.isNumberObject=H,o$2.isStringObject=Z,o$2.isBooleanObject=q,o$2.isBigIntObject=K,o$2.isSymbolObject=L,o$2.isBoxedPrimitive=function(e){return H(e)||Z(e)||q(e)||K(e)||L(e)},o$2.isAnyArrayBuffer=function(e){return l$1&&(V(e)||_(e))},[\"isProxy\",\"isExternal\",\"isModuleNamespaceObject\"].forEach((function(e){Object.defineProperty(o$2,e,{enumerable:!1,value:function(){throw new Error(e+\" is not supported in userland\")}});}));var Q=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:global,X={},Y=T$1,ee=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=i)return e;switch(e){case\"%s\":return String(n[r++]);case\"%d\":return Number(n[r++]);case\"%j\":try{return JSON.stringify(n[r++])}catch(e){return \"[Circular]\"}default:return e}})),u=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),ye(t)?r.showHidden=t:t&&X._extend(r,t),be(r.showHidden)&&(r.showHidden=!1),be(r.depth)&&(r.depth=2),be(r.colors)&&(r.colors=!1),be(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=ue),ae(r,e,r.depth)}function ue(e,t){var r=oe.styles[t];return r?\"\u001B[\"+oe.colors[r][0]+\"m\"+e+\"\u001B[\"+oe.colors[r][1]+\"m\":e}function fe(e,t){return e}function ae(e,t,r){if(e.customInspect&&t&&we(t.inspect)&&t.inspect!==X.inspect&&(!t.constructor||t.constructor.prototype!==t)){var n=t.inspect(r,e);return ge(n)||(n=ae(e,n,r)),n}var i=function(e,t){if(be(t))return e.stylize(\"undefined\",\"undefined\");if(ge(t)){var r=\"'\"+JSON.stringify(t).replace(/^\"|\"$/g,\"\").replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"')+\"'\";return e.stylize(r,\"string\")}if(de(t))return e.stylize(\"\"+t,\"number\");if(ye(t))return e.stylize(\"\"+t,\"boolean\");if(le(t))return e.stylize(\"null\",\"null\")}(e,t);if(i)return i;var o=Object.keys(t),u=function(e){var t={};return e.forEach((function(e,r){t[e]=!0;})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),Ae(t)&&(o.indexOf(\"message\")>=0||o.indexOf(\"description\")>=0))return ce(t);if(0===o.length){if(we(t)){var f=t.name?\": \"+t.name:\"\";return e.stylize(\"[Function\"+f+\"]\",\"special\")}if(me(t))return e.stylize(RegExp.prototype.toString.call(t),\"regexp\");if(je(t))return e.stylize(Date.prototype.toString.call(t),\"date\");if(Ae(t))return ce(t)}var a,c=\"\",s=!1,p=[\"{\",\"}\"];(pe(t)&&(s=!0,p=[\"[\",\"]\"]),we(t))&&(c=\" [Function\"+(t.name?\": \"+t.name:\"\")+\"]\");return me(t)&&(c=\" \"+RegExp.prototype.toString.call(t)),je(t)&&(c=\" \"+Date.prototype.toUTCString.call(t)),Ae(t)&&(c=\" \"+ce(t)),0!==o.length||s&&0!=t.length?r<0?me(t)?e.stylize(RegExp.prototype.toString.call(t),\"regexp\"):e.stylize(\"[Object]\",\"special\"):(e.seen.push(t),a=s?function(e,t,r,n,i){for(var o=[],u=0,f=t.length;u=0&&n++,e+t.replace(/\\u001b\\[\\d\\d?m/g,\"\").length+1}),0)>60)return r[0]+(\"\"===t?\"\":t+\"\\n \")+\" \"+e.join(\",\\n  \")+\" \"+r[1];return r[0]+t+\" \"+e.join(\", \")+\" \"+r[1]}(a,c,p)):p[0]+c+p[1]}function ce(e){return \"[\"+Error.prototype.toString.call(e)+\"]\"}function se(e,t,r,n,i,o){var u,f,a;if((a=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?f=a.set?e.stylize(\"[Getter/Setter]\",\"special\"):e.stylize(\"[Getter]\",\"special\"):a.set&&(f=e.stylize(\"[Setter]\",\"special\")),ke(n,i)||(u=\"[\"+i+\"]\"),f||(e.seen.indexOf(a.value)<0?(f=le(r)?ae(e,a.value,null):ae(e,a.value,r-1)).indexOf(\"\\n\")>-1&&(f=o?f.split(\"\\n\").map((function(e){return \"  \"+e})).join(\"\\n\").substr(2):\"\\n\"+f.split(\"\\n\").map((function(e){return \"   \"+e})).join(\"\\n\")):f=e.stylize(\"[Circular]\",\"special\")),be(u)){if(o&&i.match(/^\\d+$/))return f;(u=JSON.stringify(\"\"+i)).match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)?(u=u.substr(1,u.length-2),u=e.stylize(u,\"name\")):(u=u.replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"').replace(/(^\"|\"$)/g,\"'\"),u=e.stylize(u,\"string\"));}return u+\": \"+f}function pe(e){return Array.isArray(e)}function ye(e){return \"boolean\"==typeof e}function le(e){return null===e}function de(e){return \"number\"==typeof e}function ge(e){return \"string\"==typeof e}function be(e){return void 0===e}function me(e){return he(e)&&\"[object RegExp]\"===ve(e)}function he(e){return \"object\"==typeof e&&null!==e}function je(e){return he(e)&&\"[object Date]\"===ve(e)}function Ae(e){return he(e)&&(\"[object Error]\"===ve(e)||e instanceof Error)}function we(e){return \"function\"==typeof e}function ve(e){return Object.prototype.toString.call(e)}function Oe(e){return e<10?\"0\"+e.toString(10):e.toString(10)}X.debuglog=function(e){if(e=e.toUpperCase(),!re[e])if(ne.test(e)){var t=Y.pid;re[e]=function(){var r=X.format.apply(X,arguments);console.error(\"%s %d: %s\",e,t,r);};}else re[e]=function(){};return re[e]},X.inspect=oe,oe.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},oe.styles={special:\"cyan\",number:\"yellow\",boolean:\"yellow\",undefined:\"grey\",null:\"bold\",string:\"green\",date:\"magenta\",regexp:\"red\"},X.types=o$2,X.isArray=pe,X.isBoolean=ye,X.isNull=le,X.isNullOrUndefined=function(e){return null==e},X.isNumber=de,X.isString=ge,X.isSymbol=function(e){return \"symbol\"==typeof e},X.isUndefined=be,X.isRegExp=me,X.types.isRegExp=me,X.isObject=he,X.isDate=je,X.types.isDate=je,X.isError=Ae,X.types.isNativeError=Ae,X.isFunction=we,X.isPrimitive=function(e){return null===e||\"boolean\"==typeof e||\"number\"==typeof e||\"string\"==typeof e||\"symbol\"==typeof e||void 0===e},X.isBuffer=i$1;var Se=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];function Be(){var e=new Date,t=[Oe(e.getHours()),Oe(e.getMinutes()),Oe(e.getSeconds())].join(\":\");return [e.getDate(),Se[e.getMonth()],t].join(\" \")}function ke(e,t){return Object.prototype.hasOwnProperty.call(e,t)}X.log=function(){console.log(\"%s - %s\",Be(),X.format.apply(X,arguments));},X.inherits=t$2,X._extend=function(e,t){if(!t||!he(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var Ee=\"undefined\"!=typeof Symbol?Symbol(\"util.promisify.custom\"):void 0;function De(e,t){if(!e){var r=new Error(\"Promise was rejected with a falsy value\");r.reason=e,e=r;}return t(e)}X.promisify=function(e){if(\"function\"!=typeof e)throw new TypeError('The \"original\" argument must be of type Function');if(Ee&&e[Ee]){var t;if(\"function\"!=typeof(t=e[Ee]))throw new TypeError('The \"util.promisify.custom\" argument must be of type Function');return Object.defineProperty(t,Ee,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n;})),i=[],o=0;o new URL(u);\n\n/**\n * Regular Expression that matches Swagger path params.\n */\nexports.swaggerParamRegExp = /\\{([^/}]+)}/g;\n\n/**\n * List of HTTP verbs used for OperationItem as per the Swagger specification\n */\nconst operationsList = [\"get\", \"post\", \"put\", \"delete\", \"patch\", \"options\", \"head\", \"trace\"];\n\n/**\n * This function takes in a Server object, checks if it has relative path\n * and then fixes it as per the path url\n *\n * @param {object} server - The server object to be fixed\n * @param {string} path - The path (an http/https url) from where the file was downloaded\n * @returns {object} - The fixed server object\n */\nfunction fixServers (server, path) {\n  // Server url starting with \"/\" tells that it is not an http(s) url\n  if (server.url && server.url.startsWith(\"/\")) {\n    const inUrl = parse(path);\n    const finalUrl = inUrl.protocol + \"//\" + inUrl.hostname + server.url;\n    server.url = finalUrl;\n    return server;\n  }\n}\n\n/**\n * This function helps fix the relative servers in the API definition file\n * be at root, path or operation's level\n */\nfunction fixOasRelativeServers (schema, filePath) {\n  if (schema.openapi && (filePath && (filePath.startsWith(\"http:\") || filePath.startsWith(\"https:\")))) {\n    /**\n     * From OpenAPI v3 spec for Server object's url property: \"REQUIRED. A URL to the target host.\n     * This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where\n     * the OpenAPI document is being served.\"\n     * Further, the spec says that \"servers\" property can show up at root level, in 'Path Item' object or in 'Operation' object.\n     * However, interpretation of the spec says that relative paths for servers should take into account the hostname that\n     * serves the OpenAPI file.\n     */\n    if (schema.servers) {\n      schema.servers.map(server => fixServers(server, filePath)); // Root level servers array's fixup\n    }\n\n    // Path, Operation, or Webhook level servers array's fixup\n    [\"paths\", \"webhooks\"].forEach(component => {\n      Object.keys(schema[component] || []).forEach(path => {\n        const pathItem = schema[component][path];\n        Object.keys(pathItem).forEach(opItem => {\n          if (opItem === \"servers\") {\n            // servers at pathitem level\n            pathItem[opItem].map(server => fixServers(server, filePath));\n          }\n          else if (operationsList.includes(opItem)) {\n            // servers at operation level\n            if (pathItem[opItem].servers) {\n              pathItem[opItem].servers.map(server => fixServers(server, filePath));\n            }\n          }\n        });\n      });\n    });\n  }\n  else {\n    // Do nothing and return\n  }\n}\n\nexports.fixOasRelativeServers = fixOasRelativeServers;\n", "// eslint-disable-next-line @typescript-eslint/no-extraneous-class\nexport abstract class _CodeOrName {\n  abstract readonly str: string\n  abstract readonly names: UsedNames\n  abstract toString(): string\n  abstract emptyStr(): boolean\n}\n\nexport const IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i\n\nexport class Name extends _CodeOrName {\n  readonly str: string\n  constructor(s: string) {\n    super()\n    if (!IDENTIFIER.test(s)) throw new Error(\"CodeGen: name must be a valid identifier\")\n    this.str = s\n  }\n\n  toString(): string {\n    return this.str\n  }\n\n  emptyStr(): boolean {\n    return false\n  }\n\n  get names(): UsedNames {\n    return {[this.str]: 1}\n  }\n}\n\nexport class _Code extends _CodeOrName {\n  readonly _items: readonly CodeItem[]\n  private _str?: string\n  private _names?: UsedNames\n\n  constructor(code: string | readonly CodeItem[]) {\n    super()\n    this._items = typeof code === \"string\" ? [code] : code\n  }\n\n  toString(): string {\n    return this.str\n  }\n\n  emptyStr(): boolean {\n    if (this._items.length > 1) return false\n    const item = this._items[0]\n    return item === \"\" || item === '\"\"'\n  }\n\n  get str(): string {\n    return (this._str ??= this._items.reduce((s: string, c: CodeItem) => `${s}${c}`, \"\"))\n  }\n\n  get names(): UsedNames {\n    return (this._names ??= this._items.reduce((names: UsedNames, c) => {\n      if (c instanceof Name) names[c.str] = (names[c.str] || 0) + 1\n      return names\n    }, {}))\n  }\n}\n\nexport type CodeItem = Name | string | number | boolean | null\n\nexport type UsedNames = Record\n\nexport type Code = _Code | Name\n\nexport type SafeExpr = Code | number | boolean | null\n\nexport const nil = new _Code(\"\")\n\ntype CodeArg = SafeExpr | string | undefined\n\nexport function _(strs: TemplateStringsArray, ...args: CodeArg[]): _Code {\n  const code: CodeItem[] = [strs[0]]\n  let i = 0\n  while (i < args.length) {\n    addCodeArg(code, args[i])\n    code.push(strs[++i])\n  }\n  return new _Code(code)\n}\n\nconst plus = new _Code(\"+\")\n\nexport function str(strs: TemplateStringsArray, ...args: (CodeArg | string[])[]): _Code {\n  const expr: CodeItem[] = [safeStringify(strs[0])]\n  let i = 0\n  while (i < args.length) {\n    expr.push(plus)\n    addCodeArg(expr, args[i])\n    expr.push(plus, safeStringify(strs[++i]))\n  }\n  optimize(expr)\n  return new _Code(expr)\n}\n\nexport function addCodeArg(code: CodeItem[], arg: CodeArg | string[]): void {\n  if (arg instanceof _Code) code.push(...arg._items)\n  else if (arg instanceof Name) code.push(arg)\n  else code.push(interpolate(arg))\n}\n\nfunction optimize(expr: CodeItem[]): void {\n  let i = 1\n  while (i < expr.length - 1) {\n    if (expr[i] === plus) {\n      const res = mergeExprItems(expr[i - 1], expr[i + 1])\n      if (res !== undefined) {\n        expr.splice(i - 1, 3, res)\n        continue\n      }\n      expr[i++] = \"+\"\n    }\n    i++\n  }\n}\n\nfunction mergeExprItems(a: CodeItem, b: CodeItem): CodeItem | undefined {\n  if (b === '\"\"') return a\n  if (a === '\"\"') return b\n  if (typeof a == \"string\") {\n    if (b instanceof Name || a[a.length - 1] !== '\"') return\n    if (typeof b != \"string\") return `${a.slice(0, -1)}${b}\"`\n    if (b[0] === '\"') return a.slice(0, -1) + b.slice(1)\n    return\n  }\n  if (typeof b == \"string\" && b[0] === '\"' && !(a instanceof Name)) return `\"${a}${b.slice(1)}`\n  return\n}\n\nexport function strConcat(c1: Code, c2: Code): Code {\n  return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str`${c1}${c2}`\n}\n\n// TODO do not allow arrays here\nfunction interpolate(x?: string | string[] | number | boolean | null): SafeExpr | string {\n  return typeof x == \"number\" || typeof x == \"boolean\" || x === null\n    ? x\n    : safeStringify(Array.isArray(x) ? x.join(\",\") : x)\n}\n\nexport function stringify(x: unknown): Code {\n  return new _Code(safeStringify(x))\n}\n\nexport function safeStringify(x: unknown): string {\n  return JSON.stringify(x)\n    .replace(/\\u2028/g, \"\\\\u2028\")\n    .replace(/\\u2029/g, \"\\\\u2029\")\n}\n\nexport function getProperty(key: Code | string | number): Code {\n  return typeof key == \"string\" && IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]`\n}\n\n//Does best effort to format the name properly\nexport function getEsmExportName(key: Code | string | number): Code {\n  if (typeof key == \"string\" && IDENTIFIER.test(key)) {\n    return new _Code(`${key}`)\n  }\n  throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`)\n}\n\nexport function regexpCode(rx: RegExp): Code {\n  return new _Code(rx.toString())\n}\n", "import {_, nil, Code, Name} from \"./code\"\n\ninterface NameGroup {\n  prefix: string\n  index: number\n}\n\nexport interface NameValue {\n  ref: ValueReference // this is the reference to any value that can be referred to from generated code via `globals` var in the closure\n  key?: unknown // any key to identify a global to avoid duplicates, if not passed ref is used\n  code?: Code // this is the code creating the value needed for standalone code wit_out closure - can be a primitive value, function or import (`require`)\n}\n\nexport type ValueReference = unknown // possibly make CodeGen parameterized type on this type\n\nclass ValueError extends Error {\n  readonly value?: NameValue\n  constructor(name: ValueScopeName) {\n    super(`CodeGen: \"code\" for ${name} not defined`)\n    this.value = name.value\n  }\n}\n\ninterface ScopeOptions {\n  prefixes?: Set\n  parent?: Scope\n}\n\ninterface ValueScopeOptions extends ScopeOptions {\n  scope: ScopeStore\n  es5?: boolean\n  lines?: boolean\n}\n\nexport type ScopeStore = Record\n\ntype ScopeValues = {\n  [Prefix in string]?: Map\n}\n\nexport type ScopeValueSets = {\n  [Prefix in string]?: Set\n}\n\nexport enum UsedValueState {\n  Started,\n  Completed,\n}\n\nexport type UsedScopeValues = {\n  [Prefix in string]?: Map\n}\n\nexport const varKinds = {\n  const: new Name(\"const\"),\n  let: new Name(\"let\"),\n  var: new Name(\"var\"),\n}\n\nexport class Scope {\n  protected readonly _names: {[Prefix in string]?: NameGroup} = {}\n  protected readonly _prefixes?: Set\n  protected readonly _parent?: Scope\n\n  constructor({prefixes, parent}: ScopeOptions = {}) {\n    this._prefixes = prefixes\n    this._parent = parent\n  }\n\n  toName(nameOrPrefix: Name | string): Name {\n    return nameOrPrefix instanceof Name ? nameOrPrefix : this.name(nameOrPrefix)\n  }\n\n  name(prefix: string): Name {\n    return new Name(this._newName(prefix))\n  }\n\n  protected _newName(prefix: string): string {\n    const ng = this._names[prefix] || this._nameGroup(prefix)\n    return `${prefix}${ng.index++}`\n  }\n\n  private _nameGroup(prefix: string): NameGroup {\n    if (this._parent?._prefixes?.has(prefix) || (this._prefixes && !this._prefixes.has(prefix))) {\n      throw new Error(`CodeGen: prefix \"${prefix}\" is not allowed in this scope`)\n    }\n    return (this._names[prefix] = {prefix, index: 0})\n  }\n}\n\ninterface ScopePath {\n  property: string\n  itemIndex: number\n}\n\nexport class ValueScopeName extends Name {\n  readonly prefix: string\n  value?: NameValue\n  scopePath?: Code\n\n  constructor(prefix: string, nameStr: string) {\n    super(nameStr)\n    this.prefix = prefix\n  }\n\n  setValue(value: NameValue, {property, itemIndex}: ScopePath): void {\n    this.value = value\n    this.scopePath = _`.${new Name(property)}[${itemIndex}]`\n  }\n}\n\ninterface VSOptions extends ValueScopeOptions {\n  _n: Code\n}\n\nconst line = _`\\n`\n\nexport class ValueScope extends Scope {\n  protected readonly _values: ScopeValues = {}\n  protected readonly _scope: ScopeStore\n  readonly opts: VSOptions\n\n  constructor(opts: ValueScopeOptions) {\n    super(opts)\n    this._scope = opts.scope\n    this.opts = {...opts, _n: opts.lines ? line : nil}\n  }\n\n  get(): ScopeStore {\n    return this._scope\n  }\n\n  name(prefix: string): ValueScopeName {\n    return new ValueScopeName(prefix, this._newName(prefix))\n  }\n\n  value(nameOrPrefix: ValueScopeName | string, value: NameValue): ValueScopeName {\n    if (value.ref === undefined) throw new Error(\"CodeGen: ref must be passed in value\")\n    const name = this.toName(nameOrPrefix) as ValueScopeName\n    const {prefix} = name\n    const valueKey = value.key ?? value.ref\n    let vs = this._values[prefix]\n    if (vs) {\n      const _name = vs.get(valueKey)\n      if (_name) return _name\n    } else {\n      vs = this._values[prefix] = new Map()\n    }\n    vs.set(valueKey, name)\n\n    const s = this._scope[prefix] || (this._scope[prefix] = [])\n    const itemIndex = s.length\n    s[itemIndex] = value.ref\n    name.setValue(value, {property: prefix, itemIndex})\n    return name\n  }\n\n  getValue(prefix: string, keyOrRef: unknown): ValueScopeName | undefined {\n    const vs = this._values[prefix]\n    if (!vs) return\n    return vs.get(keyOrRef)\n  }\n\n  scopeRefs(scopeName: Name, values: ScopeValues | ScopeValueSets = this._values): Code {\n    return this._reduceValues(values, (name: ValueScopeName) => {\n      if (name.scopePath === undefined) throw new Error(`CodeGen: name \"${name}\" has no value`)\n      return _`${scopeName}${name.scopePath}`\n    })\n  }\n\n  scopeCode(\n    values: ScopeValues | ScopeValueSets = this._values,\n    usedValues?: UsedScopeValues,\n    getCode?: (n: ValueScopeName) => Code | undefined\n  ): Code {\n    return this._reduceValues(\n      values,\n      (name: ValueScopeName) => {\n        if (name.value === undefined) throw new Error(`CodeGen: name \"${name}\" has no value`)\n        return name.value.code\n      },\n      usedValues,\n      getCode\n    )\n  }\n\n  private _reduceValues(\n    values: ScopeValues | ScopeValueSets,\n    valueCode: (n: ValueScopeName) => Code | undefined,\n    usedValues: UsedScopeValues = {},\n    getCode?: (n: ValueScopeName) => Code | undefined\n  ): Code {\n    let code: Code = nil\n    for (const prefix in values) {\n      const vs = values[prefix]\n      if (!vs) continue\n      const nameSet = (usedValues[prefix] = usedValues[prefix] || new Map())\n      vs.forEach((name: ValueScopeName) => {\n        if (nameSet.has(name)) return\n        nameSet.set(name, UsedValueState.Started)\n        let c = valueCode(name)\n        if (c) {\n          const def = this.opts.es5 ? varKinds.var : varKinds.const\n          code = _`${code}${def} ${name} = ${c};${this.opts._n}`\n        } else if ((c = getCode?.(name))) {\n          code = _`${code}${c}${this.opts._n}`\n        } else {\n          throw new ValueError(name)\n        }\n        nameSet.set(name, UsedValueState.Completed)\n      })\n    }\n    return code\n  }\n}\n", "import type {ScopeValueSets, NameValue, ValueScope, ValueScopeName} from \"./scope\"\nimport {_, nil, _Code, Code, Name, UsedNames, CodeItem, addCodeArg, _CodeOrName} from \"./code\"\nimport {Scope, varKinds} from \"./scope\"\n\nexport {_, str, strConcat, nil, getProperty, stringify, regexpCode, Name, Code} from \"./code\"\nexport {Scope, ScopeStore, ValueScope, ValueScopeName, ScopeValueSets, varKinds} from \"./scope\"\n\n// type for expressions that can be safely inserted in code without quotes\nexport type SafeExpr = Code | number | boolean | null\n\n// type that is either Code of function that adds code to CodeGen instance using its methods\nexport type Block = Code | (() => void)\n\nexport const operators = {\n  GT: new _Code(\">\"),\n  GTE: new _Code(\">=\"),\n  LT: new _Code(\"<\"),\n  LTE: new _Code(\"<=\"),\n  EQ: new _Code(\"===\"),\n  NEQ: new _Code(\"!==\"),\n  NOT: new _Code(\"!\"),\n  OR: new _Code(\"||\"),\n  AND: new _Code(\"&&\"),\n  ADD: new _Code(\"+\"),\n}\n\nabstract class Node {\n  abstract readonly names: UsedNames\n\n  optimizeNodes(): this | ChildNode | ChildNode[] | undefined {\n    return this\n  }\n\n  optimizeNames(_names: UsedNames, _constants: Constants): this | undefined {\n    return this\n  }\n\n  // get count(): number {\n  //   return 1\n  // }\n}\n\nclass Def extends Node {\n  constructor(\n    private readonly varKind: Name,\n    private readonly name: Name,\n    private rhs?: SafeExpr\n  ) {\n    super()\n  }\n\n  render({es5, _n}: CGOptions): string {\n    const varKind = es5 ? varKinds.var : this.varKind\n    const rhs = this.rhs === undefined ? \"\" : ` = ${this.rhs}`\n    return `${varKind} ${this.name}${rhs};` + _n\n  }\n\n  optimizeNames(names: UsedNames, constants: Constants): this | undefined {\n    if (!names[this.name.str]) return\n    if (this.rhs) this.rhs = optimizeExpr(this.rhs, names, constants)\n    return this\n  }\n\n  get names(): UsedNames {\n    return this.rhs instanceof _CodeOrName ? this.rhs.names : {}\n  }\n}\n\nclass Assign extends Node {\n  constructor(\n    readonly lhs: Code,\n    public rhs: SafeExpr,\n    private readonly sideEffects?: boolean\n  ) {\n    super()\n  }\n\n  render({_n}: CGOptions): string {\n    return `${this.lhs} = ${this.rhs};` + _n\n  }\n\n  optimizeNames(names: UsedNames, constants: Constants): this | undefined {\n    if (this.lhs instanceof Name && !names[this.lhs.str] && !this.sideEffects) return\n    this.rhs = optimizeExpr(this.rhs, names, constants)\n    return this\n  }\n\n  get names(): UsedNames {\n    const names = this.lhs instanceof Name ? {} : {...this.lhs.names}\n    return addExprNames(names, this.rhs)\n  }\n}\n\nclass AssignOp extends Assign {\n  constructor(\n    lhs: Code,\n    private readonly op: Code,\n    rhs: SafeExpr,\n    sideEffects?: boolean\n  ) {\n    super(lhs, rhs, sideEffects)\n  }\n\n  render({_n}: CGOptions): string {\n    return `${this.lhs} ${this.op}= ${this.rhs};` + _n\n  }\n}\n\nclass Label extends Node {\n  readonly names: UsedNames = {}\n  constructor(readonly label: Name) {\n    super()\n  }\n\n  render({_n}: CGOptions): string {\n    return `${this.label}:` + _n\n  }\n}\n\nclass Break extends Node {\n  readonly names: UsedNames = {}\n  constructor(readonly label?: Code) {\n    super()\n  }\n\n  render({_n}: CGOptions): string {\n    const label = this.label ? ` ${this.label}` : \"\"\n    return `break${label};` + _n\n  }\n}\n\nclass Throw extends Node {\n  constructor(readonly error: Code) {\n    super()\n  }\n\n  render({_n}: CGOptions): string {\n    return `throw ${this.error};` + _n\n  }\n\n  get names(): UsedNames {\n    return this.error.names\n  }\n}\n\nclass AnyCode extends Node {\n  constructor(private code: SafeExpr) {\n    super()\n  }\n\n  render({_n}: CGOptions): string {\n    return `${this.code};` + _n\n  }\n\n  optimizeNodes(): this | undefined {\n    return `${this.code}` ? this : undefined\n  }\n\n  optimizeNames(names: UsedNames, constants: Constants): this {\n    this.code = optimizeExpr(this.code, names, constants)\n    return this\n  }\n\n  get names(): UsedNames {\n    return this.code instanceof _CodeOrName ? this.code.names : {}\n  }\n}\n\nabstract class ParentNode extends Node {\n  constructor(readonly nodes: ChildNode[] = []) {\n    super()\n  }\n\n  render(opts: CGOptions): string {\n    return this.nodes.reduce((code, n) => code + n.render(opts), \"\")\n  }\n\n  optimizeNodes(): this | ChildNode | ChildNode[] | undefined {\n    const {nodes} = this\n    let i = nodes.length\n    while (i--) {\n      const n = nodes[i].optimizeNodes()\n      if (Array.isArray(n)) nodes.splice(i, 1, ...n)\n      else if (n) nodes[i] = n\n      else nodes.splice(i, 1)\n    }\n    return nodes.length > 0 ? this : undefined\n  }\n\n  optimizeNames(names: UsedNames, constants: Constants): this | undefined {\n    const {nodes} = this\n    let i = nodes.length\n    while (i--) {\n      // iterating backwards improves 1-pass optimization\n      const n = nodes[i]\n      if (n.optimizeNames(names, constants)) continue\n      subtractNames(names, n.names)\n      nodes.splice(i, 1)\n    }\n    return nodes.length > 0 ? this : undefined\n  }\n\n  get names(): UsedNames {\n    return this.nodes.reduce((names: UsedNames, n) => addNames(names, n.names), {})\n  }\n\n  // get count(): number {\n  //   return this.nodes.reduce((c, n) => c + n.count, 1)\n  // }\n}\n\nabstract class BlockNode extends ParentNode {\n  render(opts: CGOptions): string {\n    return \"{\" + opts._n + super.render(opts) + \"}\" + opts._n\n  }\n}\n\nclass Root extends ParentNode {}\n\nclass Else extends BlockNode {\n  static readonly kind = \"else\"\n}\n\nclass If extends BlockNode {\n  static readonly kind = \"if\"\n  else?: If | Else\n  constructor(\n    private condition: Code | boolean,\n    nodes?: ChildNode[]\n  ) {\n    super(nodes)\n  }\n\n  render(opts: CGOptions): string {\n    let code = `if(${this.condition})` + super.render(opts)\n    if (this.else) code += \"else \" + this.else.render(opts)\n    return code\n  }\n\n  optimizeNodes(): If | ChildNode[] | undefined {\n    super.optimizeNodes()\n    const cond = this.condition\n    if (cond === true) return this.nodes // else is ignored here\n    let e = this.else\n    if (e) {\n      const ns = e.optimizeNodes()\n      e = this.else = Array.isArray(ns) ? new Else(ns) : (ns as Else | undefined)\n    }\n    if (e) {\n      if (cond === false) return e instanceof If ? e : e.nodes\n      if (this.nodes.length) return this\n      return new If(not(cond), e instanceof If ? [e] : e.nodes)\n    }\n    if (cond === false || !this.nodes.length) return undefined\n    return this\n  }\n\n  optimizeNames(names: UsedNames, constants: Constants): this | undefined {\n    this.else = this.else?.optimizeNames(names, constants)\n    if (!(super.optimizeNames(names, constants) || this.else)) return\n    this.condition = optimizeExpr(this.condition, names, constants)\n    return this\n  }\n\n  get names(): UsedNames {\n    const names = super.names\n    addExprNames(names, this.condition)\n    if (this.else) addNames(names, this.else.names)\n    return names\n  }\n\n  // get count(): number {\n  //   return super.count + (this.else?.count || 0)\n  // }\n}\n\nabstract class For extends BlockNode {\n  static readonly kind = \"for\"\n}\n\nclass ForLoop extends For {\n  constructor(private iteration: Code) {\n    super()\n  }\n\n  render(opts: CGOptions): string {\n    return `for(${this.iteration})` + super.render(opts)\n  }\n\n  optimizeNames(names: UsedNames, constants: Constants): this | undefined {\n    if (!super.optimizeNames(names, constants)) return\n    this.iteration = optimizeExpr(this.iteration, names, constants)\n    return this\n  }\n\n  get names(): UsedNames {\n    return addNames(super.names, this.iteration.names)\n  }\n}\n\nclass ForRange extends For {\n  constructor(\n    private readonly varKind: Name,\n    private readonly name: Name,\n    private readonly from: SafeExpr,\n    private readonly to: SafeExpr\n  ) {\n    super()\n  }\n\n  render(opts: CGOptions): string {\n    const varKind = opts.es5 ? varKinds.var : this.varKind\n    const {name, from, to} = this\n    return `for(${varKind} ${name}=${from}; ${name}<${to}; ${name}++)` + super.render(opts)\n  }\n\n  get names(): UsedNames {\n    const names = addExprNames(super.names, this.from)\n    return addExprNames(names, this.to)\n  }\n}\n\nclass ForIter extends For {\n  constructor(\n    private readonly loop: \"of\" | \"in\",\n    private readonly varKind: Name,\n    private readonly name: Name,\n    private iterable: Code\n  ) {\n    super()\n  }\n\n  render(opts: CGOptions): string {\n    return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(opts)\n  }\n\n  optimizeNames(names: UsedNames, constants: Constants): this | undefined {\n    if (!super.optimizeNames(names, constants)) return\n    this.iterable = optimizeExpr(this.iterable, names, constants)\n    return this\n  }\n\n  get names(): UsedNames {\n    return addNames(super.names, this.iterable.names)\n  }\n}\n\nclass Func extends BlockNode {\n  static readonly kind = \"func\"\n  constructor(\n    public name: Name,\n    public args: Code,\n    public async?: boolean\n  ) {\n    super()\n  }\n\n  render(opts: CGOptions): string {\n    const _async = this.async ? \"async \" : \"\"\n    return `${_async}function ${this.name}(${this.args})` + super.render(opts)\n  }\n}\n\nclass Return extends ParentNode {\n  static readonly kind = \"return\"\n\n  render(opts: CGOptions): string {\n    return \"return \" + super.render(opts)\n  }\n}\n\nclass Try extends BlockNode {\n  catch?: Catch\n  finally?: Finally\n\n  render(opts: CGOptions): string {\n    let code = \"try\" + super.render(opts)\n    if (this.catch) code += this.catch.render(opts)\n    if (this.finally) code += this.finally.render(opts)\n    return code\n  }\n\n  optimizeNodes(): this {\n    super.optimizeNodes()\n    this.catch?.optimizeNodes() as Catch | undefined\n    this.finally?.optimizeNodes() as Finally | undefined\n    return this\n  }\n\n  optimizeNames(names: UsedNames, constants: Constants): this {\n    super.optimizeNames(names, constants)\n    this.catch?.optimizeNames(names, constants)\n    this.finally?.optimizeNames(names, constants)\n    return this\n  }\n\n  get names(): UsedNames {\n    const names = super.names\n    if (this.catch) addNames(names, this.catch.names)\n    if (this.finally) addNames(names, this.finally.names)\n    return names\n  }\n\n  // get count(): number {\n  //   return super.count + (this.catch?.count || 0) + (this.finally?.count || 0)\n  // }\n}\n\nclass Catch extends BlockNode {\n  static readonly kind = \"catch\"\n  constructor(readonly error: Name) {\n    super()\n  }\n\n  render(opts: CGOptions): string {\n    return `catch(${this.error})` + super.render(opts)\n  }\n}\n\nclass Finally extends BlockNode {\n  static readonly kind = \"finally\"\n  render(opts: CGOptions): string {\n    return \"finally\" + super.render(opts)\n  }\n}\n\ntype StartBlockNode = If | For | Func | Return | Try\n\ntype LeafNode = Def | Assign | Label | Break | Throw | AnyCode\n\ntype ChildNode = StartBlockNode | LeafNode\n\ntype EndBlockNodeType =\n  | typeof If\n  | typeof Else\n  | typeof For\n  | typeof Func\n  | typeof Return\n  | typeof Catch\n  | typeof Finally\n\ntype Constants = Record\n\nexport interface CodeGenOptions {\n  es5?: boolean\n  lines?: boolean\n  ownProperties?: boolean\n}\n\ninterface CGOptions extends CodeGenOptions {\n  _n: \"\\n\" | \"\"\n}\n\nexport class CodeGen {\n  readonly _scope: Scope\n  readonly _extScope: ValueScope\n  readonly _values: ScopeValueSets = {}\n  private readonly _nodes: ParentNode[]\n  private readonly _blockStarts: number[] = []\n  private readonly _constants: Constants = {}\n  private readonly opts: CGOptions\n\n  constructor(extScope: ValueScope, opts: CodeGenOptions = {}) {\n    this.opts = {...opts, _n: opts.lines ? \"\\n\" : \"\"}\n    this._extScope = extScope\n    this._scope = new Scope({parent: extScope})\n    this._nodes = [new Root()]\n  }\n\n  toString(): string {\n    return this._root.render(this.opts)\n  }\n\n  // returns unique name in the internal scope\n  name(prefix: string): Name {\n    return this._scope.name(prefix)\n  }\n\n  // reserves unique name in the external scope\n  scopeName(prefix: string): ValueScopeName {\n    return this._extScope.name(prefix)\n  }\n\n  // reserves unique name in the external scope and assigns value to it\n  scopeValue(prefixOrName: ValueScopeName | string, value: NameValue): Name {\n    const name = this._extScope.value(prefixOrName, value)\n    const vs = this._values[name.prefix] || (this._values[name.prefix] = new Set())\n    vs.add(name)\n    return name\n  }\n\n  getScopeValue(prefix: string, keyOrRef: unknown): ValueScopeName | undefined {\n    return this._extScope.getValue(prefix, keyOrRef)\n  }\n\n  // return code that assigns values in the external scope to the names that are used internally\n  // (same names that were returned by gen.scopeName or gen.scopeValue)\n  scopeRefs(scopeName: Name): Code {\n    return this._extScope.scopeRefs(scopeName, this._values)\n  }\n\n  scopeCode(): Code {\n    return this._extScope.scopeCode(this._values)\n  }\n\n  private _def(\n    varKind: Name,\n    nameOrPrefix: Name | string,\n    rhs?: SafeExpr,\n    constant?: boolean\n  ): Name {\n    const name = this._scope.toName(nameOrPrefix)\n    if (rhs !== undefined && constant) this._constants[name.str] = rhs\n    this._leafNode(new Def(varKind, name, rhs))\n    return name\n  }\n\n  // `const` declaration (`var` in es5 mode)\n  const(nameOrPrefix: Name | string, rhs: SafeExpr, _constant?: boolean): Name {\n    return this._def(varKinds.const, nameOrPrefix, rhs, _constant)\n  }\n\n  // `let` declaration with optional assignment (`var` in es5 mode)\n  let(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean): Name {\n    return this._def(varKinds.let, nameOrPrefix, rhs, _constant)\n  }\n\n  // `var` declaration with optional assignment\n  var(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean): Name {\n    return this._def(varKinds.var, nameOrPrefix, rhs, _constant)\n  }\n\n  // assignment code\n  assign(lhs: Code, rhs: SafeExpr, sideEffects?: boolean): CodeGen {\n    return this._leafNode(new Assign(lhs, rhs, sideEffects))\n  }\n\n  // `+=` code\n  add(lhs: Code, rhs: SafeExpr): CodeGen {\n    return this._leafNode(new AssignOp(lhs, operators.ADD, rhs))\n  }\n\n  // appends passed SafeExpr to code or executes Block\n  code(c: Block | SafeExpr): CodeGen {\n    if (typeof c == \"function\") c()\n    else if (c !== nil) this._leafNode(new AnyCode(c))\n    return this\n  }\n\n  // returns code for object literal for the passed argument list of key-value pairs\n  object(...keyValues: [Name | string, SafeExpr | string][]): _Code {\n    const code: CodeItem[] = [\"{\"]\n    for (const [key, value] of keyValues) {\n      if (code.length > 1) code.push(\",\")\n      code.push(key)\n      if (key !== value || this.opts.es5) {\n        code.push(\":\")\n        addCodeArg(code, value)\n      }\n    }\n    code.push(\"}\")\n    return new _Code(code)\n  }\n\n  // `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed)\n  if(condition: Code | boolean, thenBody?: Block, elseBody?: Block): CodeGen {\n    this._blockNode(new If(condition))\n\n    if (thenBody && elseBody) {\n      this.code(thenBody).else().code(elseBody).endIf()\n    } else if (thenBody) {\n      this.code(thenBody).endIf()\n    } else if (elseBody) {\n      throw new Error('CodeGen: \"else\" body without \"then\" body')\n    }\n    return this\n  }\n\n  // `else if` clause - invalid without `if` or after `else` clauses\n  elseIf(condition: Code | boolean): CodeGen {\n    return this._elseNode(new If(condition))\n  }\n\n  // `else` clause - only valid after `if` or `else if` clauses\n  else(): CodeGen {\n    return this._elseNode(new Else())\n  }\n\n  // end `if` statement (needed if gen.if was used only with condition)\n  endIf(): CodeGen {\n    return this._endBlockNode(If, Else)\n  }\n\n  private _for(node: For, forBody?: Block): CodeGen {\n    this._blockNode(node)\n    if (forBody) this.code(forBody).endFor()\n    return this\n  }\n\n  // a generic `for` clause (or statement if `forBody` is passed)\n  for(iteration: Code, forBody?: Block): CodeGen {\n    return this._for(new ForLoop(iteration), forBody)\n  }\n\n  // `for` statement for a range of values\n  forRange(\n    nameOrPrefix: Name | string,\n    from: SafeExpr,\n    to: SafeExpr,\n    forBody: (index: Name) => void,\n    varKind: Code = this.opts.es5 ? varKinds.var : varKinds.let\n  ): CodeGen {\n    const name = this._scope.toName(nameOrPrefix)\n    return this._for(new ForRange(varKind, name, from, to), () => forBody(name))\n  }\n\n  // `for-of` statement (in es5 mode replace with a normal for loop)\n  forOf(\n    nameOrPrefix: Name | string,\n    iterable: Code,\n    forBody: (item: Name) => void,\n    varKind: Code = varKinds.const\n  ): CodeGen {\n    const name = this._scope.toName(nameOrPrefix)\n    if (this.opts.es5) {\n      const arr = iterable instanceof Name ? iterable : this.var(\"_arr\", iterable)\n      return this.forRange(\"_i\", 0, _`${arr}.length`, (i) => {\n        this.var(name, _`${arr}[${i}]`)\n        forBody(name)\n      })\n    }\n    return this._for(new ForIter(\"of\", varKind, name, iterable), () => forBody(name))\n  }\n\n  // `for-in` statement.\n  // With option `ownProperties` replaced with a `for-of` loop for object keys\n  forIn(\n    nameOrPrefix: Name | string,\n    obj: Code,\n    forBody: (item: Name) => void,\n    varKind: Code = this.opts.es5 ? varKinds.var : varKinds.const\n  ): CodeGen {\n    if (this.opts.ownProperties) {\n      return this.forOf(nameOrPrefix, _`Object.keys(${obj})`, forBody)\n    }\n    const name = this._scope.toName(nameOrPrefix)\n    return this._for(new ForIter(\"in\", varKind, name, obj), () => forBody(name))\n  }\n\n  // end `for` loop\n  endFor(): CodeGen {\n    return this._endBlockNode(For)\n  }\n\n  // `label` statement\n  label(label: Name): CodeGen {\n    return this._leafNode(new Label(label))\n  }\n\n  // `break` statement\n  break(label?: Code): CodeGen {\n    return this._leafNode(new Break(label))\n  }\n\n  // `return` statement\n  return(value: Block | SafeExpr): CodeGen {\n    const node = new Return()\n    this._blockNode(node)\n    this.code(value)\n    if (node.nodes.length !== 1) throw new Error('CodeGen: \"return\" should have one node')\n    return this._endBlockNode(Return)\n  }\n\n  // `try` statement\n  try(tryBody: Block, catchCode?: (e: Name) => void, finallyCode?: Block): CodeGen {\n    if (!catchCode && !finallyCode) throw new Error('CodeGen: \"try\" without \"catch\" and \"finally\"')\n    const node = new Try()\n    this._blockNode(node)\n    this.code(tryBody)\n    if (catchCode) {\n      const error = this.name(\"e\")\n      this._currNode = node.catch = new Catch(error)\n      catchCode(error)\n    }\n    if (finallyCode) {\n      this._currNode = node.finally = new Finally()\n      this.code(finallyCode)\n    }\n    return this._endBlockNode(Catch, Finally)\n  }\n\n  // `throw` statement\n  throw(error: Code): CodeGen {\n    return this._leafNode(new Throw(error))\n  }\n\n  // start self-balancing block\n  block(body?: Block, nodeCount?: number): CodeGen {\n    this._blockStarts.push(this._nodes.length)\n    if (body) this.code(body).endBlock(nodeCount)\n    return this\n  }\n\n  // end the current self-balancing block\n  endBlock(nodeCount?: number): CodeGen {\n    const len = this._blockStarts.pop()\n    if (len === undefined) throw new Error(\"CodeGen: not in self-balancing block\")\n    const toClose = this._nodes.length - len\n    if (toClose < 0 || (nodeCount !== undefined && toClose !== nodeCount)) {\n      throw new Error(`CodeGen: wrong number of nodes: ${toClose} vs ${nodeCount} expected`)\n    }\n    this._nodes.length = len\n    return this\n  }\n\n  // `function` heading (or definition if funcBody is passed)\n  func(name: Name, args: Code = nil, async?: boolean, funcBody?: Block): CodeGen {\n    this._blockNode(new Func(name, args, async))\n    if (funcBody) this.code(funcBody).endFunc()\n    return this\n  }\n\n  // end function definition\n  endFunc(): CodeGen {\n    return this._endBlockNode(Func)\n  }\n\n  optimize(n = 1): void {\n    while (n-- > 0) {\n      this._root.optimizeNodes()\n      this._root.optimizeNames(this._root.names, this._constants)\n    }\n  }\n\n  private _leafNode(node: LeafNode): CodeGen {\n    this._currNode.nodes.push(node)\n    return this\n  }\n\n  private _blockNode(node: StartBlockNode): void {\n    this._currNode.nodes.push(node)\n    this._nodes.push(node)\n  }\n\n  private _endBlockNode(N1: EndBlockNodeType, N2?: EndBlockNodeType): CodeGen {\n    const n = this._currNode\n    if (n instanceof N1 || (N2 && n instanceof N2)) {\n      this._nodes.pop()\n      return this\n    }\n    throw new Error(`CodeGen: not in block \"${N2 ? `${N1.kind}/${N2.kind}` : N1.kind}\"`)\n  }\n\n  private _elseNode(node: If | Else): CodeGen {\n    const n = this._currNode\n    if (!(n instanceof If)) {\n      throw new Error('CodeGen: \"else\" without \"if\"')\n    }\n    this._currNode = n.else = node\n    return this\n  }\n\n  private get _root(): Root {\n    return this._nodes[0] as Root\n  }\n\n  private get _currNode(): ParentNode {\n    const ns = this._nodes\n    return ns[ns.length - 1]\n  }\n\n  private set _currNode(node: ParentNode) {\n    const ns = this._nodes\n    ns[ns.length - 1] = node\n  }\n\n  // get nodeCount(): number {\n  //   return this._root.count\n  // }\n}\n\nfunction addNames(names: UsedNames, from: UsedNames): UsedNames {\n  for (const n in from) names[n] = (names[n] || 0) + (from[n] || 0)\n  return names\n}\n\nfunction addExprNames(names: UsedNames, from: SafeExpr): UsedNames {\n  return from instanceof _CodeOrName ? addNames(names, from.names) : names\n}\n\nfunction optimizeExpr(expr: T, names: UsedNames, constants: Constants): T\nfunction optimizeExpr(expr: SafeExpr, names: UsedNames, constants: Constants): SafeExpr {\n  if (expr instanceof Name) return replaceName(expr)\n  if (!canOptimize(expr)) return expr\n  return new _Code(\n    expr._items.reduce((items: CodeItem[], c: SafeExpr | string) => {\n      if (c instanceof Name) c = replaceName(c)\n      if (c instanceof _Code) items.push(...c._items)\n      else items.push(c)\n      return items\n    }, [])\n  )\n\n  function replaceName(n: Name): SafeExpr {\n    const c = constants[n.str]\n    if (c === undefined || names[n.str] !== 1) return n\n    delete names[n.str]\n    return c\n  }\n\n  function canOptimize(e: SafeExpr): e is _Code {\n    return (\n      e instanceof _Code &&\n      e._items.some(\n        (c) => c instanceof Name && names[c.str] === 1 && constants[c.str] !== undefined\n      )\n    )\n  }\n}\n\nfunction subtractNames(names: UsedNames, from: UsedNames): void {\n  for (const n in from) names[n] = (names[n] || 0) - (from[n] || 0)\n}\n\nexport function not(x: T): T\nexport function not(x: Code | SafeExpr): Code | SafeExpr {\n  return typeof x == \"boolean\" || typeof x == \"number\" || x === null ? !x : _`!${par(x)}`\n}\n\nconst andCode = mappend(operators.AND)\n\n// boolean AND (&&) expression with the passed arguments\nexport function and(...args: Code[]): Code {\n  return args.reduce(andCode)\n}\n\nconst orCode = mappend(operators.OR)\n\n// boolean OR (||) expression with the passed arguments\nexport function or(...args: Code[]): Code {\n  return args.reduce(orCode)\n}\n\ntype MAppend = (x: Code, y: Code) => Code\n\nfunction mappend(op: Code): MAppend {\n  return (x, y) => (x === nil ? y : y === nil ? x : _`${par(x)} ${op} ${par(y)}`)\n}\n\nfunction par(x: Code): Code {\n  return x instanceof Name ? x : _`(${x})`\n}\n", "import type {AnySchema, EvaluatedProperties, EvaluatedItems} from \"../types\"\nimport type {SchemaCxt, SchemaObjCxt} from \".\"\nimport {_, getProperty, Code, Name, CodeGen} from \"./codegen\"\nimport {_Code} from \"./codegen/code\"\nimport type {Rule, ValidationRules} from \"./rules\"\n\n// TODO refactor to use Set\nexport function toHash(arr: T[]): {[K in T]?: true} {\n  const hash: {[K in T]?: true} = {}\n  for (const item of arr) hash[item] = true\n  return hash\n}\n\nexport function alwaysValidSchema(it: SchemaCxt, schema: AnySchema): boolean | void {\n  if (typeof schema == \"boolean\") return schema\n  if (Object.keys(schema).length === 0) return true\n  checkUnknownRules(it, schema)\n  return !schemaHasRules(schema, it.self.RULES.all)\n}\n\nexport function checkUnknownRules(it: SchemaCxt, schema: AnySchema = it.schema): void {\n  const {opts, self} = it\n  if (!opts.strictSchema) return\n  if (typeof schema === \"boolean\") return\n  const rules = self.RULES.keywords\n  for (const key in schema) {\n    if (!rules[key]) checkStrictMode(it, `unknown keyword: \"${key}\"`)\n  }\n}\n\nexport function schemaHasRules(\n  schema: AnySchema,\n  rules: {[Key in string]?: boolean | Rule}\n): boolean {\n  if (typeof schema == \"boolean\") return !schema\n  for (const key in schema) if (rules[key]) return true\n  return false\n}\n\nexport function schemaHasRulesButRef(schema: AnySchema, RULES: ValidationRules): boolean {\n  if (typeof schema == \"boolean\") return !schema\n  for (const key in schema) if (key !== \"$ref\" && RULES.all[key]) return true\n  return false\n}\n\nexport function schemaRefOrVal(\n  {topSchemaRef, schemaPath}: SchemaObjCxt,\n  schema: unknown,\n  keyword: string,\n  $data?: string | false\n): Code | number | boolean {\n  if (!$data) {\n    if (typeof schema == \"number\" || typeof schema == \"boolean\") return schema\n    if (typeof schema == \"string\") return _`${schema}`\n  }\n  return _`${topSchemaRef}${schemaPath}${getProperty(keyword)}`\n}\n\nexport function unescapeFragment(str: string): string {\n  return unescapeJsonPointer(decodeURIComponent(str))\n}\n\nexport function escapeFragment(str: string | number): string {\n  return encodeURIComponent(escapeJsonPointer(str))\n}\n\nexport function escapeJsonPointer(str: string | number): string {\n  if (typeof str == \"number\") return `${str}`\n  return str.replace(/~/g, \"~0\").replace(/\\//g, \"~1\")\n}\n\nexport function unescapeJsonPointer(str: string): string {\n  return str.replace(/~1/g, \"/\").replace(/~0/g, \"~\")\n}\n\nexport function eachItem(xs: T | T[], f: (x: T) => void): void {\n  if (Array.isArray(xs)) {\n    for (const x of xs) f(x)\n  } else {\n    f(xs)\n  }\n}\n\ntype SomeEvaluated = EvaluatedProperties | EvaluatedItems\n\ntype MergeEvaluatedFunc = (\n  gen: CodeGen,\n  from: Name | T,\n  to: Name | Exclude | undefined,\n  toName?: typeof Name\n) => Name | T\n\ninterface MakeMergeFuncArgs {\n  mergeNames: (gen: CodeGen, from: Name, to: Name) => void\n  mergeToName: (gen: CodeGen, from: T, to: Name) => void\n  mergeValues: (from: T, to: Exclude) => T\n  resultToName: (gen: CodeGen, res?: T) => Name\n}\n\nfunction makeMergeEvaluated({\n  mergeNames,\n  mergeToName,\n  mergeValues,\n  resultToName,\n}: MakeMergeFuncArgs): MergeEvaluatedFunc {\n  return (gen, from, to, toName) => {\n    const res =\n      to === undefined\n        ? from\n        : to instanceof Name\n        ? (from instanceof Name ? mergeNames(gen, from, to) : mergeToName(gen, from, to), to)\n        : from instanceof Name\n        ? (mergeToName(gen, to, from), from)\n        : mergeValues(from, to)\n    return toName === Name && !(res instanceof Name) ? resultToName(gen, res) : res\n  }\n}\n\ninterface MergeEvaluated {\n  props: MergeEvaluatedFunc\n  items: MergeEvaluatedFunc\n}\n\nexport const mergeEvaluated: MergeEvaluated = {\n  props: makeMergeEvaluated({\n    mergeNames: (gen, from, to) =>\n      gen.if(_`${to} !== true && ${from} !== undefined`, () => {\n        gen.if(\n          _`${from} === true`,\n          () => gen.assign(to, true),\n          () => gen.assign(to, _`${to} || {}`).code(_`Object.assign(${to}, ${from})`)\n        )\n      }),\n    mergeToName: (gen, from, to) =>\n      gen.if(_`${to} !== true`, () => {\n        if (from === true) {\n          gen.assign(to, true)\n        } else {\n          gen.assign(to, _`${to} || {}`)\n          setEvaluated(gen, to, from)\n        }\n      }),\n    mergeValues: (from, to) => (from === true ? true : {...from, ...to}),\n    resultToName: evaluatedPropsToName,\n  }),\n  items: makeMergeEvaluated({\n    mergeNames: (gen, from, to) =>\n      gen.if(_`${to} !== true && ${from} !== undefined`, () =>\n        gen.assign(to, _`${from} === true ? true : ${to} > ${from} ? ${to} : ${from}`)\n      ),\n    mergeToName: (gen, from, to) =>\n      gen.if(_`${to} !== true`, () =>\n        gen.assign(to, from === true ? true : _`${to} > ${from} ? ${to} : ${from}`)\n      ),\n    mergeValues: (from, to) => (from === true ? true : Math.max(from, to)),\n    resultToName: (gen, items) => gen.var(\"items\", items),\n  }),\n}\n\nexport function evaluatedPropsToName(gen: CodeGen, ps?: EvaluatedProperties): Name {\n  if (ps === true) return gen.var(\"props\", true)\n  const props = gen.var(\"props\", _`{}`)\n  if (ps !== undefined) setEvaluated(gen, props, ps)\n  return props\n}\n\nexport function setEvaluated(gen: CodeGen, props: Name, ps: {[K in string]?: true}): void {\n  Object.keys(ps).forEach((p) => gen.assign(_`${props}${getProperty(p)}`, true))\n}\n\nconst snippets: {[S in string]?: _Code} = {}\n\nexport function useFunc(gen: CodeGen, f: {code: string}): Name {\n  return gen.scopeValue(\"func\", {\n    ref: f,\n    code: snippets[f.code] || (snippets[f.code] = new _Code(f.code)),\n  })\n}\n\nexport enum Type {\n  Num,\n  Str,\n}\n\nexport function getErrorPath(\n  dataProp: Name | string | number,\n  dataPropType?: Type,\n  jsPropertySyntax?: boolean\n): Code | string {\n  // let path\n  if (dataProp instanceof Name) {\n    const isNumber = dataPropType === Type.Num\n    return jsPropertySyntax\n      ? isNumber\n        ? _`\"[\" + ${dataProp} + \"]\"`\n        : _`\"['\" + ${dataProp} + \"']\"`\n      : isNumber\n      ? _`\"/\" + ${dataProp}`\n      : _`\"/\" + ${dataProp}.replace(/~/g, \"~0\").replace(/\\\\//g, \"~1\")` // TODO maybe use global escapePointer\n  }\n  return jsPropertySyntax ? getProperty(dataProp).toString() : \"/\" + escapeJsonPointer(dataProp)\n}\n\nexport function checkStrictMode(\n  it: SchemaCxt,\n  msg: string,\n  mode: boolean | \"log\" = it.opts.strictSchema\n): void {\n  if (!mode) return\n  msg = `strict mode: ${msg}`\n  if (mode === true) throw new Error(msg)\n  it.self.logger.warn(msg)\n}\n", "import {Name} from \"./codegen\"\n\nconst names = {\n  // validation function arguments\n  data: new Name(\"data\"), // data passed to validation function\n  // args passed from referencing schema\n  valCxt: new Name(\"valCxt\"), // validation/data context - should not be used directly, it is destructured to the names below\n  instancePath: new Name(\"instancePath\"),\n  parentData: new Name(\"parentData\"),\n  parentDataProperty: new Name(\"parentDataProperty\"),\n  rootData: new Name(\"rootData\"), // root data - same as the data passed to the first/top validation function\n  dynamicAnchors: new Name(\"dynamicAnchors\"), // used to support recursiveRef and dynamicRef\n  // function scoped variables\n  vErrors: new Name(\"vErrors\"), // null or array of validation errors\n  errors: new Name(\"errors\"), // counter of validation errors\n  this: new Name(\"this\"),\n  // \"globals\"\n  self: new Name(\"self\"),\n  scope: new Name(\"scope\"),\n  // JTD serialize/parse name for JSON string and position\n  json: new Name(\"json\"),\n  jsonPos: new Name(\"jsonPos\"),\n  jsonLen: new Name(\"jsonLen\"),\n  jsonPart: new Name(\"jsonPart\"),\n}\n\nexport default names\n", "import type {KeywordErrorCxt, KeywordErrorDefinition} from \"../types\"\nimport type {SchemaCxt} from \"./index\"\nimport {CodeGen, _, str, strConcat, Code, Name} from \"./codegen\"\nimport {SafeExpr} from \"./codegen/code\"\nimport {getErrorPath, Type} from \"./util\"\nimport N from \"./names\"\n\nexport const keywordError: KeywordErrorDefinition = {\n  message: ({keyword}) => str`must pass \"${keyword}\" keyword validation`,\n}\n\nexport const keyword$DataError: KeywordErrorDefinition = {\n  message: ({keyword, schemaType}) =>\n    schemaType\n      ? str`\"${keyword}\" keyword must be ${schemaType} ($data)`\n      : str`\"${keyword}\" keyword is invalid ($data)`,\n}\n\nexport interface ErrorPaths {\n  instancePath?: Code\n  schemaPath?: string\n  parentSchema?: boolean\n}\n\nexport function reportError(\n  cxt: KeywordErrorCxt,\n  error: KeywordErrorDefinition = keywordError,\n  errorPaths?: ErrorPaths,\n  overrideAllErrors?: boolean\n): void {\n  const {it} = cxt\n  const {gen, compositeRule, allErrors} = it\n  const errObj = errorObjectCode(cxt, error, errorPaths)\n  if (overrideAllErrors ?? (compositeRule || allErrors)) {\n    addError(gen, errObj)\n  } else {\n    returnErrors(it, _`[${errObj}]`)\n  }\n}\n\nexport function reportExtraError(\n  cxt: KeywordErrorCxt,\n  error: KeywordErrorDefinition = keywordError,\n  errorPaths?: ErrorPaths\n): void {\n  const {it} = cxt\n  const {gen, compositeRule, allErrors} = it\n  const errObj = errorObjectCode(cxt, error, errorPaths)\n  addError(gen, errObj)\n  if (!(compositeRule || allErrors)) {\n    returnErrors(it, N.vErrors)\n  }\n}\n\nexport function resetErrorsCount(gen: CodeGen, errsCount: Name): void {\n  gen.assign(N.errors, errsCount)\n  gen.if(_`${N.vErrors} !== null`, () =>\n    gen.if(\n      errsCount,\n      () => gen.assign(_`${N.vErrors}.length`, errsCount),\n      () => gen.assign(N.vErrors, null)\n    )\n  )\n}\n\nexport function extendErrors({\n  gen,\n  keyword,\n  schemaValue,\n  data,\n  errsCount,\n  it,\n}: KeywordErrorCxt): void {\n  /* istanbul ignore if */\n  if (errsCount === undefined) throw new Error(\"ajv implementation error\")\n  const err = gen.name(\"err\")\n  gen.forRange(\"i\", errsCount, N.errors, (i) => {\n    gen.const(err, _`${N.vErrors}[${i}]`)\n    gen.if(_`${err}.instancePath === undefined`, () =>\n      gen.assign(_`${err}.instancePath`, strConcat(N.instancePath, it.errorPath))\n    )\n    gen.assign(_`${err}.schemaPath`, str`${it.errSchemaPath}/${keyword}`)\n    if (it.opts.verbose) {\n      gen.assign(_`${err}.schema`, schemaValue)\n      gen.assign(_`${err}.data`, data)\n    }\n  })\n}\n\nfunction addError(gen: CodeGen, errObj: Code): void {\n  const err = gen.const(\"err\", errObj)\n  gen.if(\n    _`${N.vErrors} === null`,\n    () => gen.assign(N.vErrors, _`[${err}]`),\n    _`${N.vErrors}.push(${err})`\n  )\n  gen.code(_`${N.errors}++`)\n}\n\nfunction returnErrors(it: SchemaCxt, errs: Code): void {\n  const {gen, validateName, schemaEnv} = it\n  if (schemaEnv.$async) {\n    gen.throw(_`new ${it.ValidationError as Name}(${errs})`)\n  } else {\n    gen.assign(_`${validateName}.errors`, errs)\n    gen.return(false)\n  }\n}\n\nconst E = {\n  keyword: new Name(\"keyword\"),\n  schemaPath: new Name(\"schemaPath\"), // also used in JTD errors\n  params: new Name(\"params\"),\n  propertyName: new Name(\"propertyName\"),\n  message: new Name(\"message\"),\n  schema: new Name(\"schema\"),\n  parentSchema: new Name(\"parentSchema\"),\n}\n\nfunction errorObjectCode(\n  cxt: KeywordErrorCxt,\n  error: KeywordErrorDefinition,\n  errorPaths?: ErrorPaths\n): Code {\n  const {createErrors} = cxt.it\n  if (createErrors === false) return _`{}`\n  return errorObject(cxt, error, errorPaths)\n}\n\nfunction errorObject(\n  cxt: KeywordErrorCxt,\n  error: KeywordErrorDefinition,\n  errorPaths: ErrorPaths = {}\n): Code {\n  const {gen, it} = cxt\n  const keyValues: [Name, SafeExpr | string][] = [\n    errorInstancePath(it, errorPaths),\n    errorSchemaPath(cxt, errorPaths),\n  ]\n  extraErrorProps(cxt, error, keyValues)\n  return gen.object(...keyValues)\n}\n\nfunction errorInstancePath({errorPath}: SchemaCxt, {instancePath}: ErrorPaths): [Name, Code] {\n  const instPath = instancePath\n    ? str`${errorPath}${getErrorPath(instancePath, Type.Str)}`\n    : errorPath\n  return [N.instancePath, strConcat(N.instancePath, instPath)]\n}\n\nfunction errorSchemaPath(\n  {keyword, it: {errSchemaPath}}: KeywordErrorCxt,\n  {schemaPath, parentSchema}: ErrorPaths\n): [Name, string | Code] {\n  let schPath = parentSchema ? errSchemaPath : str`${errSchemaPath}/${keyword}`\n  if (schemaPath) {\n    schPath = str`${schPath}${getErrorPath(schemaPath, Type.Str)}`\n  }\n  return [E.schemaPath, schPath]\n}\n\nfunction extraErrorProps(\n  cxt: KeywordErrorCxt,\n  {params, message}: KeywordErrorDefinition,\n  keyValues: [Name, SafeExpr | string][]\n): void {\n  const {keyword, data, schemaValue, it} = cxt\n  const {opts, propertyName, topSchemaRef, schemaPath} = it\n  keyValues.push(\n    [E.keyword, keyword],\n    [E.params, typeof params == \"function\" ? params(cxt) : params || _`{}`]\n  )\n  if (opts.messages) {\n    keyValues.push([E.message, typeof message == \"function\" ? message(cxt) : message])\n  }\n  if (opts.verbose) {\n    keyValues.push(\n      [E.schema, schemaValue],\n      [E.parentSchema, _`${topSchemaRef}${schemaPath}`],\n      [N.data, data]\n    )\n  }\n  if (propertyName) keyValues.push([E.propertyName, propertyName])\n}\n", "import type {KeywordErrorDefinition, KeywordErrorCxt} from \"../../types\"\nimport type {SchemaCxt} from \"..\"\nimport {reportError} from \"../errors\"\nimport {_, Name} from \"../codegen\"\nimport N from \"../names\"\n\nconst boolError: KeywordErrorDefinition = {\n  message: \"boolean schema is false\",\n}\n\nexport function topBoolOrEmptySchema(it: SchemaCxt): void {\n  const {gen, schema, validateName} = it\n  if (schema === false) {\n    falseSchemaError(it, false)\n  } else if (typeof schema == \"object\" && schema.$async === true) {\n    gen.return(N.data)\n  } else {\n    gen.assign(_`${validateName}.errors`, null)\n    gen.return(true)\n  }\n}\n\nexport function boolOrEmptySchema(it: SchemaCxt, valid: Name): void {\n  const {gen, schema} = it\n  if (schema === false) {\n    gen.var(valid, false) // TODO var\n    falseSchemaError(it)\n  } else {\n    gen.var(valid, true) // TODO var\n  }\n}\n\nfunction falseSchemaError(it: SchemaCxt, overrideAllErrors?: boolean): void {\n  const {gen, data} = it\n  // TODO maybe some other interface should be used for non-keyword validation errors...\n  const cxt: KeywordErrorCxt = {\n    gen,\n    keyword: \"false schema\",\n    data,\n    schema: false,\n    schemaCode: false,\n    schemaValue: false,\n    params: {},\n    it,\n  }\n  reportError(cxt, boolError, undefined, overrideAllErrors)\n}\n", "import type {AddedKeywordDefinition} from \"../types\"\n\nconst _jsonTypes = [\"string\", \"number\", \"integer\", \"boolean\", \"null\", \"object\", \"array\"] as const\n\nexport type JSONType = (typeof _jsonTypes)[number]\n\nconst jsonTypes: Set = new Set(_jsonTypes)\n\nexport function isJSONType(x: unknown): x is JSONType {\n  return typeof x == \"string\" && jsonTypes.has(x)\n}\n\ntype ValidationTypes = {\n  [K in JSONType]: boolean | RuleGroup | undefined\n}\n\nexport interface ValidationRules {\n  rules: RuleGroup[]\n  post: RuleGroup\n  all: {[Key in string]?: boolean | Rule} // rules that have to be validated\n  keywords: {[Key in string]?: boolean} // all known keywords (superset of \"all\")\n  types: ValidationTypes\n}\n\nexport interface RuleGroup {\n  type?: JSONType\n  rules: Rule[]\n}\n\n// This interface wraps KeywordDefinition because definition can have multiple keywords\nexport interface Rule {\n  keyword: string\n  definition: AddedKeywordDefinition\n}\n\nexport function getRules(): ValidationRules {\n  const groups: Record<\"number\" | \"string\" | \"array\" | \"object\", RuleGroup> = {\n    number: {type: \"number\", rules: []},\n    string: {type: \"string\", rules: []},\n    array: {type: \"array\", rules: []},\n    object: {type: \"object\", rules: []},\n  }\n  return {\n    types: {...groups, integer: true, boolean: true, null: true},\n    rules: [{rules: []}, groups.number, groups.string, groups.array, groups.object],\n    post: {rules: []},\n    all: {},\n    keywords: {},\n  }\n}\n", "import type {AnySchemaObject} from \"../../types\"\nimport type {SchemaObjCxt} from \"..\"\nimport type {JSONType, RuleGroup, Rule} from \"../rules\"\n\nexport function schemaHasRulesForType(\n  {schema, self}: SchemaObjCxt,\n  type: JSONType\n): boolean | undefined {\n  const group = self.RULES.types[type]\n  return group && group !== true && shouldUseGroup(schema, group)\n}\n\nexport function shouldUseGroup(schema: AnySchemaObject, group: RuleGroup): boolean {\n  return group.rules.some((rule) => shouldUseRule(schema, rule))\n}\n\nexport function shouldUseRule(schema: AnySchemaObject, rule: Rule): boolean | undefined {\n  return (\n    schema[rule.keyword] !== undefined ||\n    rule.definition.implements?.some((kwd) => schema[kwd] !== undefined)\n  )\n}\n", "import type {\n  KeywordErrorDefinition,\n  KeywordErrorCxt,\n  ErrorObject,\n  AnySchemaObject,\n} from \"../../types\"\nimport type {SchemaObjCxt} from \"..\"\nimport {isJSONType, JSONType} from \"../rules\"\nimport {schemaHasRulesForType} from \"./applicability\"\nimport {reportError} from \"../errors\"\nimport {_, nil, and, not, operators, Code, Name} from \"../codegen\"\nimport {toHash, schemaRefOrVal} from \"../util\"\n\nexport enum DataType {\n  Correct,\n  Wrong,\n}\n\nexport function getSchemaTypes(schema: AnySchemaObject): JSONType[] {\n  const types = getJSONTypes(schema.type)\n  const hasNull = types.includes(\"null\")\n  if (hasNull) {\n    if (schema.nullable === false) throw new Error(\"type: null contradicts nullable: false\")\n  } else {\n    if (!types.length && schema.nullable !== undefined) {\n      throw new Error('\"nullable\" cannot be used without \"type\"')\n    }\n    if (schema.nullable === true) types.push(\"null\")\n  }\n  return types\n}\n\n// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\nexport function getJSONTypes(ts: unknown | unknown[]): JSONType[] {\n  const types: unknown[] = Array.isArray(ts) ? ts : ts ? [ts] : []\n  if (types.every(isJSONType)) return types\n  throw new Error(\"type must be JSONType or JSONType[]: \" + types.join(\",\"))\n}\n\nexport function coerceAndCheckDataType(it: SchemaObjCxt, types: JSONType[]): boolean {\n  const {gen, data, opts} = it\n  const coerceTo = coerceToTypes(types, opts.coerceTypes)\n  const checkTypes =\n    types.length > 0 &&\n    !(coerceTo.length === 0 && types.length === 1 && schemaHasRulesForType(it, types[0]))\n  if (checkTypes) {\n    const wrongType = checkDataTypes(types, data, opts.strictNumbers, DataType.Wrong)\n    gen.if(wrongType, () => {\n      if (coerceTo.length) coerceData(it, types, coerceTo)\n      else reportTypeError(it)\n    })\n  }\n  return checkTypes\n}\n\nconst COERCIBLE: Set = new Set([\"string\", \"number\", \"integer\", \"boolean\", \"null\"])\nfunction coerceToTypes(types: JSONType[], coerceTypes?: boolean | \"array\"): JSONType[] {\n  return coerceTypes\n    ? types.filter((t) => COERCIBLE.has(t) || (coerceTypes === \"array\" && t === \"array\"))\n    : []\n}\n\nfunction coerceData(it: SchemaObjCxt, types: JSONType[], coerceTo: JSONType[]): void {\n  const {gen, data, opts} = it\n  const dataType = gen.let(\"dataType\", _`typeof ${data}`)\n  const coerced = gen.let(\"coerced\", _`undefined`)\n  if (opts.coerceTypes === \"array\") {\n    gen.if(_`${dataType} == 'object' && Array.isArray(${data}) && ${data}.length == 1`, () =>\n      gen\n        .assign(data, _`${data}[0]`)\n        .assign(dataType, _`typeof ${data}`)\n        .if(checkDataTypes(types, data, opts.strictNumbers), () => gen.assign(coerced, data))\n    )\n  }\n  gen.if(_`${coerced} !== undefined`)\n  for (const t of coerceTo) {\n    if (COERCIBLE.has(t) || (t === \"array\" && opts.coerceTypes === \"array\")) {\n      coerceSpecificType(t)\n    }\n  }\n  gen.else()\n  reportTypeError(it)\n  gen.endIf()\n\n  gen.if(_`${coerced} !== undefined`, () => {\n    gen.assign(data, coerced)\n    assignParentData(it, coerced)\n  })\n\n  function coerceSpecificType(t: string): void {\n    switch (t) {\n      case \"string\":\n        gen\n          .elseIf(_`${dataType} == \"number\" || ${dataType} == \"boolean\"`)\n          .assign(coerced, _`\"\" + ${data}`)\n          .elseIf(_`${data} === null`)\n          .assign(coerced, _`\"\"`)\n        return\n      case \"number\":\n        gen\n          .elseIf(\n            _`${dataType} == \"boolean\" || ${data} === null\n              || (${dataType} == \"string\" && ${data} && ${data} == +${data})`\n          )\n          .assign(coerced, _`+${data}`)\n        return\n      case \"integer\":\n        gen\n          .elseIf(\n            _`${dataType} === \"boolean\" || ${data} === null\n              || (${dataType} === \"string\" && ${data} && ${data} == +${data} && !(${data} % 1))`\n          )\n          .assign(coerced, _`+${data}`)\n        return\n      case \"boolean\":\n        gen\n          .elseIf(_`${data} === \"false\" || ${data} === 0 || ${data} === null`)\n          .assign(coerced, false)\n          .elseIf(_`${data} === \"true\" || ${data} === 1`)\n          .assign(coerced, true)\n        return\n      case \"null\":\n        gen.elseIf(_`${data} === \"\" || ${data} === 0 || ${data} === false`)\n        gen.assign(coerced, null)\n        return\n\n      case \"array\":\n        gen\n          .elseIf(\n            _`${dataType} === \"string\" || ${dataType} === \"number\"\n              || ${dataType} === \"boolean\" || ${data} === null`\n          )\n          .assign(coerced, _`[${data}]`)\n    }\n  }\n}\n\nfunction assignParentData({gen, parentData, parentDataProperty}: SchemaObjCxt, expr: Name): void {\n  // TODO use gen.property\n  gen.if(_`${parentData} !== undefined`, () =>\n    gen.assign(_`${parentData}[${parentDataProperty}]`, expr)\n  )\n}\n\nexport function checkDataType(\n  dataType: JSONType,\n  data: Name,\n  strictNums?: boolean | \"log\",\n  correct = DataType.Correct\n): Code {\n  const EQ = correct === DataType.Correct ? operators.EQ : operators.NEQ\n  let cond: Code\n  switch (dataType) {\n    case \"null\":\n      return _`${data} ${EQ} null`\n    case \"array\":\n      cond = _`Array.isArray(${data})`\n      break\n    case \"object\":\n      cond = _`${data} && typeof ${data} == \"object\" && !Array.isArray(${data})`\n      break\n    case \"integer\":\n      cond = numCond(_`!(${data} % 1) && !isNaN(${data})`)\n      break\n    case \"number\":\n      cond = numCond()\n      break\n    default:\n      return _`typeof ${data} ${EQ} ${dataType}`\n  }\n  return correct === DataType.Correct ? cond : not(cond)\n\n  function numCond(_cond: Code = nil): Code {\n    return and(_`typeof ${data} == \"number\"`, _cond, strictNums ? _`isFinite(${data})` : nil)\n  }\n}\n\nexport function checkDataTypes(\n  dataTypes: JSONType[],\n  data: Name,\n  strictNums?: boolean | \"log\",\n  correct?: DataType\n): Code {\n  if (dataTypes.length === 1) {\n    return checkDataType(dataTypes[0], data, strictNums, correct)\n  }\n  let cond: Code\n  const types = toHash(dataTypes)\n  if (types.array && types.object) {\n    const notObj = _`typeof ${data} != \"object\"`\n    cond = types.null ? notObj : _`!${data} || ${notObj}`\n    delete types.null\n    delete types.array\n    delete types.object\n  } else {\n    cond = nil\n  }\n  if (types.number) delete types.integer\n  for (const t in types) cond = and(cond, checkDataType(t as JSONType, data, strictNums, correct))\n  return cond\n}\n\nexport type TypeError = ErrorObject<\"type\", {type: string}>\n\nconst typeError: KeywordErrorDefinition = {\n  message: ({schema}) => `must be ${schema}`,\n  params: ({schema, schemaValue}) =>\n    typeof schema == \"string\" ? _`{type: ${schema}}` : _`{type: ${schemaValue}}`,\n}\n\nexport function reportTypeError(it: SchemaObjCxt): void {\n  const cxt = getTypeErrorContext(it)\n  reportError(cxt, typeError)\n}\n\nfunction getTypeErrorContext(it: SchemaObjCxt): KeywordErrorCxt {\n  const {gen, data, schema} = it\n  const schemaCode = schemaRefOrVal(it, schema, \"type\")\n  return {\n    gen,\n    keyword: \"type\",\n    data,\n    schema: schema.type,\n    schemaCode,\n    schemaValue: schemaCode,\n    parentSchema: schema,\n    params: {},\n    it,\n  }\n}\n", "import type {SchemaObjCxt} from \"..\"\nimport {_, getProperty, stringify} from \"../codegen\"\nimport {checkStrictMode} from \"../util\"\n\nexport function assignDefaults(it: SchemaObjCxt, ty?: string): void {\n  const {properties, items} = it.schema\n  if (ty === \"object\" && properties) {\n    for (const key in properties) {\n      assignDefault(it, key, properties[key].default)\n    }\n  } else if (ty === \"array\" && Array.isArray(items)) {\n    items.forEach((sch, i: number) => assignDefault(it, i, sch.default))\n  }\n}\n\nfunction assignDefault(it: SchemaObjCxt, prop: string | number, defaultValue: unknown): void {\n  const {gen, compositeRule, data, opts} = it\n  if (defaultValue === undefined) return\n  const childData = _`${data}${getProperty(prop)}`\n  if (compositeRule) {\n    checkStrictMode(it, `default is ignored for: ${childData}`)\n    return\n  }\n\n  let condition = _`${childData} === undefined`\n  if (opts.useDefaults === \"empty\") {\n    condition = _`${condition} || ${childData} === null || ${childData} === \"\"`\n  }\n  // `${childData} === undefined` +\n  // (opts.useDefaults === \"empty\" ? ` || ${childData} === null || ${childData} === \"\"` : \"\")\n  gen.if(condition, _`${childData} = ${stringify(defaultValue)}`)\n}\n", "import type {AnySchema, SchemaMap} from \"../types\"\nimport type {SchemaCxt} from \"../compile\"\nimport type {KeywordCxt} from \"../compile/validate\"\nimport {CodeGen, _, and, or, not, nil, strConcat, getProperty, Code, Name} from \"../compile/codegen\"\nimport {alwaysValidSchema, Type} from \"../compile/util\"\nimport N from \"../compile/names\"\nimport {useFunc} from \"../compile/util\"\nexport function checkReportMissingProp(cxt: KeywordCxt, prop: string): void {\n  const {gen, data, it} = cxt\n  gen.if(noPropertyInData(gen, data, prop, it.opts.ownProperties), () => {\n    cxt.setParams({missingProperty: _`${prop}`}, true)\n    cxt.error()\n  })\n}\n\nexport function checkMissingProp(\n  {gen, data, it: {opts}}: KeywordCxt,\n  properties: string[],\n  missing: Name\n): Code {\n  return or(\n    ...properties.map((prop) =>\n      and(noPropertyInData(gen, data, prop, opts.ownProperties), _`${missing} = ${prop}`)\n    )\n  )\n}\n\nexport function reportMissingProp(cxt: KeywordCxt, missing: Name): void {\n  cxt.setParams({missingProperty: missing}, true)\n  cxt.error()\n}\n\nexport function hasPropFunc(gen: CodeGen): Name {\n  return gen.scopeValue(\"func\", {\n    // eslint-disable-next-line @typescript-eslint/unbound-method\n    ref: Object.prototype.hasOwnProperty,\n    code: _`Object.prototype.hasOwnProperty`,\n  })\n}\n\nexport function isOwnProperty(gen: CodeGen, data: Name, property: Name | string): Code {\n  return _`${hasPropFunc(gen)}.call(${data}, ${property})`\n}\n\nexport function propertyInData(\n  gen: CodeGen,\n  data: Name,\n  property: Name | string,\n  ownProperties?: boolean\n): Code {\n  const cond = _`${data}${getProperty(property)} !== undefined`\n  return ownProperties ? _`${cond} && ${isOwnProperty(gen, data, property)}` : cond\n}\n\nexport function noPropertyInData(\n  gen: CodeGen,\n  data: Name,\n  property: Name | string,\n  ownProperties?: boolean\n): Code {\n  const cond = _`${data}${getProperty(property)} === undefined`\n  return ownProperties ? or(cond, not(isOwnProperty(gen, data, property))) : cond\n}\n\nexport function allSchemaProperties(schemaMap?: SchemaMap): string[] {\n  return schemaMap ? Object.keys(schemaMap).filter((p) => p !== \"__proto__\") : []\n}\n\nexport function schemaProperties(it: SchemaCxt, schemaMap: SchemaMap): string[] {\n  return allSchemaProperties(schemaMap).filter(\n    (p) => !alwaysValidSchema(it, schemaMap[p] as AnySchema)\n  )\n}\n\nexport function callValidateCode(\n  {schemaCode, data, it: {gen, topSchemaRef, schemaPath, errorPath}, it}: KeywordCxt,\n  func: Code,\n  context: Code,\n  passSchema?: boolean\n): Code {\n  const dataAndSchema = passSchema ? _`${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data\n  const valCxt: [Name, Code | number][] = [\n    [N.instancePath, strConcat(N.instancePath, errorPath)],\n    [N.parentData, it.parentData],\n    [N.parentDataProperty, it.parentDataProperty],\n    [N.rootData, N.rootData],\n  ]\n  if (it.opts.dynamicRef) valCxt.push([N.dynamicAnchors, N.dynamicAnchors])\n  const args = _`${dataAndSchema}, ${gen.object(...valCxt)}`\n  return context !== nil ? _`${func}.call(${context}, ${args})` : _`${func}(${args})`\n}\n\nconst newRegExp = _`new RegExp`\n\nexport function usePattern({gen, it: {opts}}: KeywordCxt, pattern: string): Name {\n  const u = opts.unicodeRegExp ? \"u\" : \"\"\n  const {regExp} = opts.code\n  const rx = regExp(pattern, u)\n\n  return gen.scopeValue(\"pattern\", {\n    key: rx.toString(),\n    ref: rx,\n    code: _`${regExp.code === \"new RegExp\" ? newRegExp : useFunc(gen, regExp)}(${pattern}, ${u})`,\n  })\n}\n\nexport function validateArray(cxt: KeywordCxt): Name {\n  const {gen, data, keyword, it} = cxt\n  const valid = gen.name(\"valid\")\n  if (it.allErrors) {\n    const validArr = gen.let(\"valid\", true)\n    validateItems(() => gen.assign(validArr, false))\n    return validArr\n  }\n  gen.var(valid, true)\n  validateItems(() => gen.break())\n  return valid\n\n  function validateItems(notValid: () => void): void {\n    const len = gen.const(\"len\", _`${data}.length`)\n    gen.forRange(\"i\", 0, len, (i) => {\n      cxt.subschema(\n        {\n          keyword,\n          dataProp: i,\n          dataPropType: Type.Num,\n        },\n        valid\n      )\n      gen.if(not(valid), notValid)\n    })\n  }\n}\n\nexport function validateUnion(cxt: KeywordCxt): void {\n  const {gen, schema, keyword, it} = cxt\n  /* istanbul ignore if */\n  if (!Array.isArray(schema)) throw new Error(\"ajv implementation error\")\n  const alwaysValid = schema.some((sch: AnySchema) => alwaysValidSchema(it, sch))\n  if (alwaysValid && !it.opts.unevaluated) return\n\n  const valid = gen.let(\"valid\", false)\n  const schValid = gen.name(\"_valid\")\n\n  gen.block(() =>\n    schema.forEach((_sch: AnySchema, i: number) => {\n      const schCxt = cxt.subschema(\n        {\n          keyword,\n          schemaProp: i,\n          compositeRule: true,\n        },\n        schValid\n      )\n      gen.assign(valid, _`${valid} || ${schValid}`)\n      const merged = cxt.mergeValidEvaluated(schCxt, schValid)\n      // can short-circuit if `unevaluatedProperties/Items` not supported (opts.unevaluated !== true)\n      // or if all properties and items were evaluated (it.props === true && it.items === true)\n      if (!merged) gen.if(not(valid))\n    })\n  )\n\n  cxt.result(\n    valid,\n    () => cxt.reset(),\n    () => cxt.error(true)\n  )\n}\n", "import type {KeywordCxt} from \".\"\nimport type {\n  AnySchema,\n  SchemaValidateFunction,\n  AnyValidateFunction,\n  AddedKeywordDefinition,\n  MacroKeywordDefinition,\n  FuncKeywordDefinition,\n} from \"../../types\"\nimport type {SchemaObjCxt} from \"..\"\nimport {_, nil, not, stringify, Code, Name, CodeGen} from \"../codegen\"\nimport N from \"../names\"\nimport type {JSONType} from \"../rules\"\nimport {callValidateCode} from \"../../vocabularies/code\"\nimport {extendErrors} from \"../errors\"\n\ntype KeywordCompilationResult = AnySchema | SchemaValidateFunction | AnyValidateFunction\n\nexport function macroKeywordCode(cxt: KeywordCxt, def: MacroKeywordDefinition): void {\n  const {gen, keyword, schema, parentSchema, it} = cxt\n  const macroSchema = def.macro.call(it.self, schema, parentSchema, it)\n  const schemaRef = useKeyword(gen, keyword, macroSchema)\n  if (it.opts.validateSchema !== false) it.self.validateSchema(macroSchema, true)\n\n  const valid = gen.name(\"valid\")\n  cxt.subschema(\n    {\n      schema: macroSchema,\n      schemaPath: nil,\n      errSchemaPath: `${it.errSchemaPath}/${keyword}`,\n      topSchemaRef: schemaRef,\n      compositeRule: true,\n    },\n    valid\n  )\n  cxt.pass(valid, () => cxt.error(true))\n}\n\nexport function funcKeywordCode(cxt: KeywordCxt, def: FuncKeywordDefinition): void {\n  const {gen, keyword, schema, parentSchema, $data, it} = cxt\n  checkAsyncKeyword(it, def)\n  const validate =\n    !$data && def.compile ? def.compile.call(it.self, schema, parentSchema, it) : def.validate\n  const validateRef = useKeyword(gen, keyword, validate)\n  const valid = gen.let(\"valid\")\n  cxt.block$data(valid, validateKeyword)\n  cxt.ok(def.valid ?? valid)\n\n  function validateKeyword(): void {\n    if (def.errors === false) {\n      assignValid()\n      if (def.modifying) modifyData(cxt)\n      reportErrs(() => cxt.error())\n    } else {\n      const ruleErrs = def.async ? validateAsync() : validateSync()\n      if (def.modifying) modifyData(cxt)\n      reportErrs(() => addErrs(cxt, ruleErrs))\n    }\n  }\n\n  function validateAsync(): Name {\n    const ruleErrs = gen.let(\"ruleErrs\", null)\n    gen.try(\n      () => assignValid(_`await `),\n      (e) =>\n        gen.assign(valid, false).if(\n          _`${e} instanceof ${it.ValidationError as Name}`,\n          () => gen.assign(ruleErrs, _`${e}.errors`),\n          () => gen.throw(e)\n        )\n    )\n    return ruleErrs\n  }\n\n  function validateSync(): Code {\n    const validateErrs = _`${validateRef}.errors`\n    gen.assign(validateErrs, null)\n    assignValid(nil)\n    return validateErrs\n  }\n\n  function assignValid(_await: Code = def.async ? _`await ` : nil): void {\n    const passCxt = it.opts.passContext ? N.this : N.self\n    const passSchema = !((\"compile\" in def && !$data) || def.schema === false)\n    gen.assign(\n      valid,\n      _`${_await}${callValidateCode(cxt, validateRef, passCxt, passSchema)}`,\n      def.modifying\n    )\n  }\n\n  function reportErrs(errors: () => void): void {\n    gen.if(not(def.valid ?? valid), errors)\n  }\n}\n\nfunction modifyData(cxt: KeywordCxt): void {\n  const {gen, data, it} = cxt\n  gen.if(it.parentData, () => gen.assign(data, _`${it.parentData}[${it.parentDataProperty}]`))\n}\n\nfunction addErrs(cxt: KeywordCxt, errs: Code): void {\n  const {gen} = cxt\n  gen.if(\n    _`Array.isArray(${errs})`,\n    () => {\n      gen\n        .assign(N.vErrors, _`${N.vErrors} === null ? ${errs} : ${N.vErrors}.concat(${errs})`)\n        .assign(N.errors, _`${N.vErrors}.length`)\n      extendErrors(cxt)\n    },\n    () => cxt.error()\n  )\n}\n\nfunction checkAsyncKeyword({schemaEnv}: SchemaObjCxt, def: FuncKeywordDefinition): void {\n  if (def.async && !schemaEnv.$async) throw new Error(\"async keyword in sync schema\")\n}\n\nfunction useKeyword(gen: CodeGen, keyword: string, result?: KeywordCompilationResult): Name {\n  if (result === undefined) throw new Error(`keyword \"${keyword}\" failed to compile`)\n  return gen.scopeValue(\n    \"keyword\",\n    typeof result == \"function\" ? {ref: result} : {ref: result, code: stringify(result)}\n  )\n}\n\nexport function validSchemaType(\n  schema: unknown,\n  schemaType: JSONType[],\n  allowUndefined = false\n): boolean {\n  // TODO add tests\n  return (\n    !schemaType.length ||\n    schemaType.some((st) =>\n      st === \"array\"\n        ? Array.isArray(schema)\n        : st === \"object\"\n        ? schema && typeof schema == \"object\" && !Array.isArray(schema)\n        : typeof schema == st || (allowUndefined && typeof schema == \"undefined\")\n    )\n  )\n}\n\nexport function validateKeywordUsage(\n  {schema, opts, self, errSchemaPath}: SchemaObjCxt,\n  def: AddedKeywordDefinition,\n  keyword: string\n): void {\n  /* istanbul ignore if */\n  if (Array.isArray(def.keyword) ? !def.keyword.includes(keyword) : def.keyword !== keyword) {\n    throw new Error(\"ajv implementation error\")\n  }\n\n  const deps = def.dependencies\n  if (deps?.some((kwd) => !Object.prototype.hasOwnProperty.call(schema, kwd))) {\n    throw new Error(`parent schema must have dependencies of ${keyword}: ${deps.join(\",\")}`)\n  }\n\n  if (def.validateSchema) {\n    const valid = def.validateSchema(schema[keyword])\n    if (!valid) {\n      const msg =\n        `keyword \"${keyword}\" value is invalid at path \"${errSchemaPath}\": ` +\n        self.errorsText(def.validateSchema.errors)\n      if (opts.validateSchema === \"log\") self.logger.error(msg)\n      else throw new Error(msg)\n    }\n  }\n}\n", "import type {AnySchema} from \"../../types\"\nimport type {SchemaObjCxt} from \"..\"\nimport {_, str, getProperty, Code, Name} from \"../codegen\"\nimport {escapeFragment, getErrorPath, Type} from \"../util\"\nimport type {JSONType} from \"../rules\"\n\nexport interface SubschemaContext {\n  // TODO use Optional? align with SchemCxt property types\n  schema: AnySchema\n  schemaPath: Code\n  errSchemaPath: string\n  topSchemaRef?: Code\n  errorPath?: Code\n  dataLevel?: number\n  dataTypes?: JSONType[]\n  data?: Name\n  parentData?: Name\n  parentDataProperty?: Code | number\n  dataNames?: Name[]\n  dataPathArr?: (Code | number)[]\n  propertyName?: Name\n  jtdDiscriminator?: string\n  jtdMetadata?: boolean\n  compositeRule?: true\n  createErrors?: boolean\n  allErrors?: boolean\n}\n\nexport type SubschemaArgs = Partial<{\n  keyword: string\n  schemaProp: string | number\n  schema: AnySchema\n  schemaPath: Code\n  errSchemaPath: string\n  topSchemaRef: Code\n  data: Name | Code\n  dataProp: Code | string | number\n  dataTypes: JSONType[]\n  definedProperties: Set\n  propertyName: Name\n  dataPropType: Type\n  jtdDiscriminator: string\n  jtdMetadata: boolean\n  compositeRule: true\n  createErrors: boolean\n  allErrors: boolean\n}>\n\nexport function getSubschema(\n  it: SchemaObjCxt,\n  {keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef}: SubschemaArgs\n): SubschemaContext {\n  if (keyword !== undefined && schema !== undefined) {\n    throw new Error('both \"keyword\" and \"schema\" passed, only one allowed')\n  }\n\n  if (keyword !== undefined) {\n    const sch = it.schema[keyword]\n    return schemaProp === undefined\n      ? {\n          schema: sch,\n          schemaPath: _`${it.schemaPath}${getProperty(keyword)}`,\n          errSchemaPath: `${it.errSchemaPath}/${keyword}`,\n        }\n      : {\n          schema: sch[schemaProp],\n          schemaPath: _`${it.schemaPath}${getProperty(keyword)}${getProperty(schemaProp)}`,\n          errSchemaPath: `${it.errSchemaPath}/${keyword}/${escapeFragment(schemaProp)}`,\n        }\n  }\n\n  if (schema !== undefined) {\n    if (schemaPath === undefined || errSchemaPath === undefined || topSchemaRef === undefined) {\n      throw new Error('\"schemaPath\", \"errSchemaPath\" and \"topSchemaRef\" are required with \"schema\"')\n    }\n    return {\n      schema,\n      schemaPath,\n      topSchemaRef,\n      errSchemaPath,\n    }\n  }\n\n  throw new Error('either \"keyword\" or \"schema\" must be passed')\n}\n\nexport function extendSubschemaData(\n  subschema: SubschemaContext,\n  it: SchemaObjCxt,\n  {dataProp, dataPropType: dpType, data, dataTypes, propertyName}: SubschemaArgs\n): void {\n  if (data !== undefined && dataProp !== undefined) {\n    throw new Error('both \"data\" and \"dataProp\" passed, only one allowed')\n  }\n\n  const {gen} = it\n\n  if (dataProp !== undefined) {\n    const {errorPath, dataPathArr, opts} = it\n    const nextData = gen.let(\"data\", _`${it.data}${getProperty(dataProp)}`, true)\n    dataContextProps(nextData)\n    subschema.errorPath = str`${errorPath}${getErrorPath(dataProp, dpType, opts.jsPropertySyntax)}`\n    subschema.parentDataProperty = _`${dataProp}`\n    subschema.dataPathArr = [...dataPathArr, subschema.parentDataProperty]\n  }\n\n  if (data !== undefined) {\n    const nextData = data instanceof Name ? data : gen.let(\"data\", data, true) // replaceable if used once?\n    dataContextProps(nextData)\n    if (propertyName !== undefined) subschema.propertyName = propertyName\n    // TODO something is possibly wrong here with not changing parentDataProperty and not appending dataPathArr\n  }\n\n  if (dataTypes) subschema.dataTypes = dataTypes\n\n  function dataContextProps(_nextData: Name): void {\n    subschema.data = _nextData\n    subschema.dataLevel = it.dataLevel + 1\n    subschema.dataTypes = []\n    it.definedProperties = new Set()\n    subschema.parentData = it.data\n    subschema.dataNames = [...it.dataNames, _nextData]\n  }\n}\n\nexport function extendSubschemaMode(\n  subschema: SubschemaContext,\n  {jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors}: SubschemaArgs\n): void {\n  if (compositeRule !== undefined) subschema.compositeRule = compositeRule\n  if (createErrors !== undefined) subschema.createErrors = createErrors\n  if (allErrors !== undefined) subschema.allErrors = allErrors\n  subschema.jtdDiscriminator = jtdDiscriminator // not inherited\n  subschema.jtdMetadata = jtdMetadata // not inherited\n}\n", "'use strict';\n\n// do not edit .js files directly - edit src/index.jst\n\n\n\nmodule.exports = function equal(a, b) {\n  if (a === b) return true;\n\n  if (a && b && typeof a == 'object' && typeof b == 'object') {\n    if (a.constructor !== b.constructor) return false;\n\n    var length, i, keys;\n    if (Array.isArray(a)) {\n      length = a.length;\n      if (length != b.length) return false;\n      for (i = length; i-- !== 0;)\n        if (!equal(a[i], b[i])) return false;\n      return true;\n    }\n\n\n\n    if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n    if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();\n    if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();\n\n    keys = Object.keys(a);\n    length = keys.length;\n    if (length !== Object.keys(b).length) return false;\n\n    for (i = length; i-- !== 0;)\n      if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n\n    for (i = length; i-- !== 0;) {\n      var key = keys[i];\n\n      if (!equal(a[key], b[key])) return false;\n    }\n\n    return true;\n  }\n\n  // true if both NaN, false otherwise\n  return a!==a && b!==b;\n};\n", "'use strict';\n\nvar traverse = module.exports = function (schema, opts, cb) {\n  // Legacy support for v0.3.1 and earlier.\n  if (typeof opts == 'function') {\n    cb = opts;\n    opts = {};\n  }\n\n  cb = opts.cb || cb;\n  var pre = (typeof cb == 'function') ? cb : cb.pre || function() {};\n  var post = cb.post || function() {};\n\n  _traverse(opts, pre, post, schema, '', schema);\n};\n\n\ntraverse.keywords = {\n  additionalItems: true,\n  items: true,\n  contains: true,\n  additionalProperties: true,\n  propertyNames: true,\n  not: true,\n  if: true,\n  then: true,\n  else: true\n};\n\ntraverse.arrayKeywords = {\n  items: true,\n  allOf: true,\n  anyOf: true,\n  oneOf: true\n};\n\ntraverse.propsKeywords = {\n  $defs: true,\n  definitions: true,\n  properties: true,\n  patternProperties: true,\n  dependencies: true\n};\n\ntraverse.skipKeywords = {\n  default: true,\n  enum: true,\n  const: true,\n  required: true,\n  maximum: true,\n  minimum: true,\n  exclusiveMaximum: true,\n  exclusiveMinimum: true,\n  multipleOf: true,\n  maxLength: true,\n  minLength: true,\n  pattern: true,\n  format: true,\n  maxItems: true,\n  minItems: true,\n  uniqueItems: true,\n  maxProperties: true,\n  minProperties: true\n};\n\n\nfunction _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {\n  if (schema && typeof schema == 'object' && !Array.isArray(schema)) {\n    pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);\n    for (var key in schema) {\n      var sch = schema[key];\n      if (Array.isArray(sch)) {\n        if (key in traverse.arrayKeywords) {\n          for (var i=0; i (count += countKeys(sch)))\n    }\n    if (count === Infinity) return Infinity\n  }\n  return count\n}\n\nexport function getFullPath(resolver: UriResolver, id = \"\", normalize?: boolean): string {\n  if (normalize !== false) id = normalizeId(id)\n  const p = resolver.parse(id)\n  return _getFullPath(resolver, p)\n}\n\nexport function _getFullPath(resolver: UriResolver, p: URIComponent): string {\n  const serialized = resolver.serialize(p)\n  return serialized.split(\"#\")[0] + \"#\"\n}\n\nconst TRAILING_SLASH_HASH = /#\\/?$/\nexport function normalizeId(id: string | undefined): string {\n  return id ? id.replace(TRAILING_SLASH_HASH, \"\") : \"\"\n}\n\nexport function resolveUrl(resolver: UriResolver, baseId: string, id: string): string {\n  id = normalizeId(id)\n  return resolver.resolve(baseId, id)\n}\n\nconst ANCHOR = /^[a-z_][-a-z0-9._]*$/i\n\nexport function getSchemaRefs(this: Ajv, schema: AnySchema, baseId: string): LocalRefs {\n  if (typeof schema == \"boolean\") return {}\n  const {schemaId, uriResolver} = this.opts\n  const schId = normalizeId(schema[schemaId] || baseId)\n  const baseIds: {[JsonPtr in string]?: string} = {\"\": schId}\n  const pathPrefix = getFullPath(uriResolver, schId, false)\n  const localRefs: LocalRefs = {}\n  const schemaRefs: Set = new Set()\n\n  traverse(schema, {allKeys: true}, (sch, jsonPtr, _, parentJsonPtr) => {\n    if (parentJsonPtr === undefined) return\n    const fullPath = pathPrefix + jsonPtr\n    let innerBaseId = baseIds[parentJsonPtr]\n    if (typeof sch[schemaId] == \"string\") innerBaseId = addRef.call(this, sch[schemaId])\n    addAnchor.call(this, sch.$anchor)\n    addAnchor.call(this, sch.$dynamicAnchor)\n    baseIds[jsonPtr] = innerBaseId\n\n    function addRef(this: Ajv, ref: string): string {\n      // eslint-disable-next-line @typescript-eslint/unbound-method\n      const _resolve = this.opts.uriResolver.resolve\n      ref = normalizeId(innerBaseId ? _resolve(innerBaseId, ref) : ref)\n      if (schemaRefs.has(ref)) throw ambiguos(ref)\n      schemaRefs.add(ref)\n      let schOrRef = this.refs[ref]\n      if (typeof schOrRef == \"string\") schOrRef = this.refs[schOrRef]\n      if (typeof schOrRef == \"object\") {\n        checkAmbiguosRef(sch, schOrRef.schema, ref)\n      } else if (ref !== normalizeId(fullPath)) {\n        if (ref[0] === \"#\") {\n          checkAmbiguosRef(sch, localRefs[ref], ref)\n          localRefs[ref] = sch\n        } else {\n          this.refs[ref] = fullPath\n        }\n      }\n      return ref\n    }\n\n    function addAnchor(this: Ajv, anchor: unknown): void {\n      if (typeof anchor == \"string\") {\n        if (!ANCHOR.test(anchor)) throw new Error(`invalid anchor \"${anchor}\"`)\n        addRef.call(this, `#${anchor}`)\n      }\n    }\n  })\n\n  return localRefs\n\n  function checkAmbiguosRef(sch1: AnySchema, sch2: AnySchema | undefined, ref: string): void {\n    if (sch2 !== undefined && !equal(sch1, sch2)) throw ambiguos(ref)\n  }\n\n  function ambiguos(ref: string): Error {\n    return new Error(`reference \"${ref}\" resolves to more than one schema`)\n  }\n}\n", "import type {\n  AddedKeywordDefinition,\n  AnySchema,\n  AnySchemaObject,\n  KeywordErrorCxt,\n  KeywordCxtParams,\n} from \"../../types\"\nimport type {SchemaCxt, SchemaObjCxt} from \"..\"\nimport type {InstanceOptions} from \"../../core\"\nimport {boolOrEmptySchema, topBoolOrEmptySchema} from \"./boolSchema\"\nimport {coerceAndCheckDataType, getSchemaTypes} from \"./dataType\"\nimport {shouldUseGroup, shouldUseRule} from \"./applicability\"\nimport {checkDataType, checkDataTypes, reportTypeError, DataType} from \"./dataType\"\nimport {assignDefaults} from \"./defaults\"\nimport {funcKeywordCode, macroKeywordCode, validateKeywordUsage, validSchemaType} from \"./keyword\"\nimport {getSubschema, extendSubschemaData, SubschemaArgs, extendSubschemaMode} from \"./subschema\"\nimport {_, nil, str, or, not, getProperty, Block, Code, Name, CodeGen} from \"../codegen\"\nimport N from \"../names\"\nimport {resolveUrl} from \"../resolve\"\nimport {\n  schemaRefOrVal,\n  schemaHasRulesButRef,\n  checkUnknownRules,\n  checkStrictMode,\n  unescapeJsonPointer,\n  mergeEvaluated,\n} from \"../util\"\nimport type {JSONType, Rule, RuleGroup} from \"../rules\"\nimport {\n  ErrorPaths,\n  reportError,\n  reportExtraError,\n  resetErrorsCount,\n  keyword$DataError,\n} from \"../errors\"\n\n// schema compilation - generates validation function, subschemaCode (below) is used for subschemas\nexport function validateFunctionCode(it: SchemaCxt): void {\n  if (isSchemaObj(it)) {\n    checkKeywords(it)\n    if (schemaCxtHasRules(it)) {\n      topSchemaObjCode(it)\n      return\n    }\n  }\n  validateFunction(it, () => topBoolOrEmptySchema(it))\n}\n\nfunction validateFunction(\n  {gen, validateName, schema, schemaEnv, opts}: SchemaCxt,\n  body: Block\n): void {\n  if (opts.code.es5) {\n    gen.func(validateName, _`${N.data}, ${N.valCxt}`, schemaEnv.$async, () => {\n      gen.code(_`\"use strict\"; ${funcSourceUrl(schema, opts)}`)\n      destructureValCxtES5(gen, opts)\n      gen.code(body)\n    })\n  } else {\n    gen.func(validateName, _`${N.data}, ${destructureValCxt(opts)}`, schemaEnv.$async, () =>\n      gen.code(funcSourceUrl(schema, opts)).code(body)\n    )\n  }\n}\n\nfunction destructureValCxt(opts: InstanceOptions): Code {\n  return _`{${N.instancePath}=\"\", ${N.parentData}, ${N.parentDataProperty}, ${N.rootData}=${\n    N.data\n  }${opts.dynamicRef ? _`, ${N.dynamicAnchors}={}` : nil}}={}`\n}\n\nfunction destructureValCxtES5(gen: CodeGen, opts: InstanceOptions): void {\n  gen.if(\n    N.valCxt,\n    () => {\n      gen.var(N.instancePath, _`${N.valCxt}.${N.instancePath}`)\n      gen.var(N.parentData, _`${N.valCxt}.${N.parentData}`)\n      gen.var(N.parentDataProperty, _`${N.valCxt}.${N.parentDataProperty}`)\n      gen.var(N.rootData, _`${N.valCxt}.${N.rootData}`)\n      if (opts.dynamicRef) gen.var(N.dynamicAnchors, _`${N.valCxt}.${N.dynamicAnchors}`)\n    },\n    () => {\n      gen.var(N.instancePath, _`\"\"`)\n      gen.var(N.parentData, _`undefined`)\n      gen.var(N.parentDataProperty, _`undefined`)\n      gen.var(N.rootData, N.data)\n      if (opts.dynamicRef) gen.var(N.dynamicAnchors, _`{}`)\n    }\n  )\n}\n\nfunction topSchemaObjCode(it: SchemaObjCxt): void {\n  const {schema, opts, gen} = it\n  validateFunction(it, () => {\n    if (opts.$comment && schema.$comment) commentKeyword(it)\n    checkNoDefault(it)\n    gen.let(N.vErrors, null)\n    gen.let(N.errors, 0)\n    if (opts.unevaluated) resetEvaluated(it)\n    typeAndKeywords(it)\n    returnResults(it)\n  })\n  return\n}\n\nfunction resetEvaluated(it: SchemaObjCxt): void {\n  // TODO maybe some hook to execute it in the end to check whether props/items are Name, as in assignEvaluated\n  const {gen, validateName} = it\n  it.evaluated = gen.const(\"evaluated\", _`${validateName}.evaluated`)\n  gen.if(_`${it.evaluated}.dynamicProps`, () => gen.assign(_`${it.evaluated}.props`, _`undefined`))\n  gen.if(_`${it.evaluated}.dynamicItems`, () => gen.assign(_`${it.evaluated}.items`, _`undefined`))\n}\n\nfunction funcSourceUrl(schema: AnySchema, opts: InstanceOptions): Code {\n  const schId = typeof schema == \"object\" && schema[opts.schemaId]\n  return schId && (opts.code.source || opts.code.process) ? _`/*# sourceURL=${schId} */` : nil\n}\n\n// schema compilation - this function is used recursively to generate code for sub-schemas\nfunction subschemaCode(it: SchemaCxt, valid: Name): void {\n  if (isSchemaObj(it)) {\n    checkKeywords(it)\n    if (schemaCxtHasRules(it)) {\n      subSchemaObjCode(it, valid)\n      return\n    }\n  }\n  boolOrEmptySchema(it, valid)\n}\n\nfunction schemaCxtHasRules({schema, self}: SchemaCxt): boolean {\n  if (typeof schema == \"boolean\") return !schema\n  for (const key in schema) if (self.RULES.all[key]) return true\n  return false\n}\n\nfunction isSchemaObj(it: SchemaCxt): it is SchemaObjCxt {\n  return typeof it.schema != \"boolean\"\n}\n\nfunction subSchemaObjCode(it: SchemaObjCxt, valid: Name): void {\n  const {schema, gen, opts} = it\n  if (opts.$comment && schema.$comment) commentKeyword(it)\n  updateContext(it)\n  checkAsyncSchema(it)\n  const errsCount = gen.const(\"_errs\", N.errors)\n  typeAndKeywords(it, errsCount)\n  // TODO var\n  gen.var(valid, _`${errsCount} === ${N.errors}`)\n}\n\nfunction checkKeywords(it: SchemaObjCxt): void {\n  checkUnknownRules(it)\n  checkRefsAndKeywords(it)\n}\n\nfunction typeAndKeywords(it: SchemaObjCxt, errsCount?: Name): void {\n  if (it.opts.jtd) return schemaKeywords(it, [], false, errsCount)\n  const types = getSchemaTypes(it.schema)\n  const checkedTypes = coerceAndCheckDataType(it, types)\n  schemaKeywords(it, types, !checkedTypes, errsCount)\n}\n\nfunction checkRefsAndKeywords(it: SchemaObjCxt): void {\n  const {schema, errSchemaPath, opts, self} = it\n  if (schema.$ref && opts.ignoreKeywordsWithRef && schemaHasRulesButRef(schema, self.RULES)) {\n    self.logger.warn(`$ref: keywords ignored in schema at path \"${errSchemaPath}\"`)\n  }\n}\n\nfunction checkNoDefault(it: SchemaObjCxt): void {\n  const {schema, opts} = it\n  if (schema.default !== undefined && opts.useDefaults && opts.strictSchema) {\n    checkStrictMode(it, \"default is ignored in the schema root\")\n  }\n}\n\nfunction updateContext(it: SchemaObjCxt): void {\n  const schId = it.schema[it.opts.schemaId]\n  if (schId) it.baseId = resolveUrl(it.opts.uriResolver, it.baseId, schId)\n}\n\nfunction checkAsyncSchema(it: SchemaObjCxt): void {\n  if (it.schema.$async && !it.schemaEnv.$async) throw new Error(\"async schema in sync schema\")\n}\n\nfunction commentKeyword({gen, schemaEnv, schema, errSchemaPath, opts}: SchemaObjCxt): void {\n  const msg = schema.$comment\n  if (opts.$comment === true) {\n    gen.code(_`${N.self}.logger.log(${msg})`)\n  } else if (typeof opts.$comment == \"function\") {\n    const schemaPath = str`${errSchemaPath}/$comment`\n    const rootName = gen.scopeValue(\"root\", {ref: schemaEnv.root})\n    gen.code(_`${N.self}.opts.$comment(${msg}, ${schemaPath}, ${rootName}.schema)`)\n  }\n}\n\nfunction returnResults(it: SchemaCxt): void {\n  const {gen, schemaEnv, validateName, ValidationError, opts} = it\n  if (schemaEnv.$async) {\n    // TODO assign unevaluated\n    gen.if(\n      _`${N.errors} === 0`,\n      () => gen.return(N.data),\n      () => gen.throw(_`new ${ValidationError as Name}(${N.vErrors})`)\n    )\n  } else {\n    gen.assign(_`${validateName}.errors`, N.vErrors)\n    if (opts.unevaluated) assignEvaluated(it)\n    gen.return(_`${N.errors} === 0`)\n  }\n}\n\nfunction assignEvaluated({gen, evaluated, props, items}: SchemaCxt): void {\n  if (props instanceof Name) gen.assign(_`${evaluated}.props`, props)\n  if (items instanceof Name) gen.assign(_`${evaluated}.items`, items)\n}\n\nfunction schemaKeywords(\n  it: SchemaObjCxt,\n  types: JSONType[],\n  typeErrors: boolean,\n  errsCount?: Name\n): void {\n  const {gen, schema, data, allErrors, opts, self} = it\n  const {RULES} = self\n  if (schema.$ref && (opts.ignoreKeywordsWithRef || !schemaHasRulesButRef(schema, RULES))) {\n    gen.block(() => keywordCode(it, \"$ref\", (RULES.all.$ref as Rule).definition)) // TODO typecast\n    return\n  }\n  if (!opts.jtd) checkStrictTypes(it, types)\n  gen.block(() => {\n    for (const group of RULES.rules) groupKeywords(group)\n    groupKeywords(RULES.post)\n  })\n\n  function groupKeywords(group: RuleGroup): void {\n    if (!shouldUseGroup(schema, group)) return\n    if (group.type) {\n      gen.if(checkDataType(group.type, data, opts.strictNumbers))\n      iterateKeywords(it, group)\n      if (types.length === 1 && types[0] === group.type && typeErrors) {\n        gen.else()\n        reportTypeError(it)\n      }\n      gen.endIf()\n    } else {\n      iterateKeywords(it, group)\n    }\n    // TODO make it \"ok\" call?\n    if (!allErrors) gen.if(_`${N.errors} === ${errsCount || 0}`)\n  }\n}\n\nfunction iterateKeywords(it: SchemaObjCxt, group: RuleGroup): void {\n  const {\n    gen,\n    schema,\n    opts: {useDefaults},\n  } = it\n  if (useDefaults) assignDefaults(it, group.type)\n  gen.block(() => {\n    for (const rule of group.rules) {\n      if (shouldUseRule(schema, rule)) {\n        keywordCode(it, rule.keyword, rule.definition, group.type)\n      }\n    }\n  })\n}\n\nfunction checkStrictTypes(it: SchemaObjCxt, types: JSONType[]): void {\n  if (it.schemaEnv.meta || !it.opts.strictTypes) return\n  checkContextTypes(it, types)\n  if (!it.opts.allowUnionTypes) checkMultipleTypes(it, types)\n  checkKeywordTypes(it, it.dataTypes)\n}\n\nfunction checkContextTypes(it: SchemaObjCxt, types: JSONType[]): void {\n  if (!types.length) return\n  if (!it.dataTypes.length) {\n    it.dataTypes = types\n    return\n  }\n  types.forEach((t) => {\n    if (!includesType(it.dataTypes, t)) {\n      strictTypesError(it, `type \"${t}\" not allowed by context \"${it.dataTypes.join(\",\")}\"`)\n    }\n  })\n  narrowSchemaTypes(it, types)\n}\n\nfunction checkMultipleTypes(it: SchemaObjCxt, ts: JSONType[]): void {\n  if (ts.length > 1 && !(ts.length === 2 && ts.includes(\"null\"))) {\n    strictTypesError(it, \"use allowUnionTypes to allow union type keyword\")\n  }\n}\n\nfunction checkKeywordTypes(it: SchemaObjCxt, ts: JSONType[]): void {\n  const rules = it.self.RULES.all\n  for (const keyword in rules) {\n    const rule = rules[keyword]\n    if (typeof rule == \"object\" && shouldUseRule(it.schema, rule)) {\n      const {type} = rule.definition\n      if (type.length && !type.some((t) => hasApplicableType(ts, t))) {\n        strictTypesError(it, `missing type \"${type.join(\",\")}\" for keyword \"${keyword}\"`)\n      }\n    }\n  }\n}\n\nfunction hasApplicableType(schTs: JSONType[], kwdT: JSONType): boolean {\n  return schTs.includes(kwdT) || (kwdT === \"number\" && schTs.includes(\"integer\"))\n}\n\nfunction includesType(ts: JSONType[], t: JSONType): boolean {\n  return ts.includes(t) || (t === \"integer\" && ts.includes(\"number\"))\n}\n\nfunction narrowSchemaTypes(it: SchemaObjCxt, withTypes: JSONType[]): void {\n  const ts: JSONType[] = []\n  for (const t of it.dataTypes) {\n    if (includesType(withTypes, t)) ts.push(t)\n    else if (withTypes.includes(\"integer\") && t === \"number\") ts.push(\"integer\")\n  }\n  it.dataTypes = ts\n}\n\nfunction strictTypesError(it: SchemaObjCxt, msg: string): void {\n  const schemaPath = it.schemaEnv.baseId + it.errSchemaPath\n  msg += ` at \"${schemaPath}\" (strictTypes)`\n  checkStrictMode(it, msg, it.opts.strictTypes)\n}\n\nexport class KeywordCxt implements KeywordErrorCxt {\n  readonly gen: CodeGen\n  readonly allErrors?: boolean\n  readonly keyword: string\n  readonly data: Name // Name referencing the current level of the data instance\n  readonly $data?: string | false\n  schema: any // keyword value in the schema\n  readonly schemaValue: Code | number | boolean // Code reference to keyword schema value or primitive value\n  readonly schemaCode: Code | number | boolean // Code reference to resolved schema value (different if schema is $data)\n  readonly schemaType: JSONType[] // allowed type(s) of keyword value in the schema\n  readonly parentSchema: AnySchemaObject\n  readonly errsCount?: Name // Name reference to the number of validation errors collected before this keyword,\n  // requires option trackErrors in keyword definition\n  params: KeywordCxtParams // object to pass parameters to error messages from keyword code\n  readonly it: SchemaObjCxt // schema compilation context (schema is guaranteed to be an object, not boolean)\n  readonly def: AddedKeywordDefinition\n\n  constructor(it: SchemaObjCxt, def: AddedKeywordDefinition, keyword: string) {\n    validateKeywordUsage(it, def, keyword)\n    this.gen = it.gen\n    this.allErrors = it.allErrors\n    this.keyword = keyword\n    this.data = it.data\n    this.schema = it.schema[keyword]\n    this.$data = def.$data && it.opts.$data && this.schema && this.schema.$data\n    this.schemaValue = schemaRefOrVal(it, this.schema, keyword, this.$data)\n    this.schemaType = def.schemaType\n    this.parentSchema = it.schema\n    this.params = {}\n    this.it = it\n    this.def = def\n\n    if (this.$data) {\n      this.schemaCode = it.gen.const(\"vSchema\", getData(this.$data, it))\n    } else {\n      this.schemaCode = this.schemaValue\n      if (!validSchemaType(this.schema, def.schemaType, def.allowUndefined)) {\n        throw new Error(`${keyword} value must be ${JSON.stringify(def.schemaType)}`)\n      }\n    }\n\n    if (\"code\" in def ? def.trackErrors : def.errors !== false) {\n      this.errsCount = it.gen.const(\"_errs\", N.errors)\n    }\n  }\n\n  result(condition: Code, successAction?: () => void, failAction?: () => void): void {\n    this.failResult(not(condition), successAction, failAction)\n  }\n\n  failResult(condition: Code, successAction?: () => void, failAction?: () => void): void {\n    this.gen.if(condition)\n    if (failAction) failAction()\n    else this.error()\n    if (successAction) {\n      this.gen.else()\n      successAction()\n      if (this.allErrors) this.gen.endIf()\n    } else {\n      if (this.allErrors) this.gen.endIf()\n      else this.gen.else()\n    }\n  }\n\n  pass(condition: Code, failAction?: () => void): void {\n    this.failResult(not(condition), undefined, failAction)\n  }\n\n  fail(condition?: Code): void {\n    if (condition === undefined) {\n      this.error()\n      if (!this.allErrors) this.gen.if(false) // this branch will be removed by gen.optimize\n      return\n    }\n    this.gen.if(condition)\n    this.error()\n    if (this.allErrors) this.gen.endIf()\n    else this.gen.else()\n  }\n\n  fail$data(condition: Code): void {\n    if (!this.$data) return this.fail(condition)\n    const {schemaCode} = this\n    this.fail(_`${schemaCode} !== undefined && (${or(this.invalid$data(), condition)})`)\n  }\n\n  error(append?: boolean, errorParams?: KeywordCxtParams, errorPaths?: ErrorPaths): void {\n    if (errorParams) {\n      this.setParams(errorParams)\n      this._error(append, errorPaths)\n      this.setParams({})\n      return\n    }\n    this._error(append, errorPaths)\n  }\n\n  private _error(append?: boolean, errorPaths?: ErrorPaths): void {\n    ;(append ? reportExtraError : reportError)(this, this.def.error, errorPaths)\n  }\n\n  $dataError(): void {\n    reportError(this, this.def.$dataError || keyword$DataError)\n  }\n\n  reset(): void {\n    if (this.errsCount === undefined) throw new Error('add \"trackErrors\" to keyword definition')\n    resetErrorsCount(this.gen, this.errsCount)\n  }\n\n  ok(cond: Code | boolean): void {\n    if (!this.allErrors) this.gen.if(cond)\n  }\n\n  setParams(obj: KeywordCxtParams, assign?: true): void {\n    if (assign) Object.assign(this.params, obj)\n    else this.params = obj\n  }\n\n  block$data(valid: Name, codeBlock: () => void, $dataValid: Code = nil): void {\n    this.gen.block(() => {\n      this.check$data(valid, $dataValid)\n      codeBlock()\n    })\n  }\n\n  check$data(valid: Name = nil, $dataValid: Code = nil): void {\n    if (!this.$data) return\n    const {gen, schemaCode, schemaType, def} = this\n    gen.if(or(_`${schemaCode} === undefined`, $dataValid))\n    if (valid !== nil) gen.assign(valid, true)\n    if (schemaType.length || def.validateSchema) {\n      gen.elseIf(this.invalid$data())\n      this.$dataError()\n      if (valid !== nil) gen.assign(valid, false)\n    }\n    gen.else()\n  }\n\n  invalid$data(): Code {\n    const {gen, schemaCode, schemaType, def, it} = this\n    return or(wrong$DataType(), invalid$DataSchema())\n\n    function wrong$DataType(): Code {\n      if (schemaType.length) {\n        /* istanbul ignore if */\n        if (!(schemaCode instanceof Name)) throw new Error(\"ajv implementation error\")\n        const st = Array.isArray(schemaType) ? schemaType : [schemaType]\n        return _`${checkDataTypes(st, schemaCode, it.opts.strictNumbers, DataType.Wrong)}`\n      }\n      return nil\n    }\n\n    function invalid$DataSchema(): Code {\n      if (def.validateSchema) {\n        const validateSchemaRef = gen.scopeValue(\"validate$data\", {ref: def.validateSchema}) // TODO value.code for standalone\n        return _`!${validateSchemaRef}(${schemaCode})`\n      }\n      return nil\n    }\n  }\n\n  subschema(appl: SubschemaArgs, valid: Name): SchemaCxt {\n    const subschema = getSubschema(this.it, appl)\n    extendSubschemaData(subschema, this.it, appl)\n    extendSubschemaMode(subschema, appl)\n    const nextContext = {...this.it, ...subschema, items: undefined, props: undefined}\n    subschemaCode(nextContext, valid)\n    return nextContext\n  }\n\n  mergeEvaluated(schemaCxt: SchemaCxt, toName?: typeof Name): void {\n    const {it, gen} = this\n    if (!it.opts.unevaluated) return\n    if (it.props !== true && schemaCxt.props !== undefined) {\n      it.props = mergeEvaluated.props(gen, schemaCxt.props, it.props, toName)\n    }\n    if (it.items !== true && schemaCxt.items !== undefined) {\n      it.items = mergeEvaluated.items(gen, schemaCxt.items, it.items, toName)\n    }\n  }\n\n  mergeValidEvaluated(schemaCxt: SchemaCxt, valid: Name): boolean | void {\n    const {it, gen} = this\n    if (it.opts.unevaluated && (it.props !== true || it.items !== true)) {\n      gen.if(valid, () => this.mergeEvaluated(schemaCxt, Name))\n      return true\n    }\n  }\n}\n\nfunction keywordCode(\n  it: SchemaObjCxt,\n  keyword: string,\n  def: AddedKeywordDefinition,\n  ruleType?: JSONType\n): void {\n  const cxt = new KeywordCxt(it, def, keyword)\n  if (\"code\" in def) {\n    def.code(cxt, ruleType)\n  } else if (cxt.$data && def.validate) {\n    funcKeywordCode(cxt, def)\n  } else if (\"macro\" in def) {\n    macroKeywordCode(cxt, def)\n  } else if (def.compile || def.validate) {\n    funcKeywordCode(cxt, def)\n  }\n}\n\nconst JSON_POINTER = /^\\/(?:[^~]|~0|~1)*$/\nconst RELATIVE_JSON_POINTER = /^([0-9]+)(#|\\/(?:[^~]|~0|~1)*)?$/\nexport function getData(\n  $data: string,\n  {dataLevel, dataNames, dataPathArr}: SchemaCxt\n): Code | number {\n  let jsonPointer\n  let data: Code\n  if ($data === \"\") return N.rootData\n  if ($data[0] === \"/\") {\n    if (!JSON_POINTER.test($data)) throw new Error(`Invalid JSON-pointer: ${$data}`)\n    jsonPointer = $data\n    data = N.rootData\n  } else {\n    const matches = RELATIVE_JSON_POINTER.exec($data)\n    if (!matches) throw new Error(`Invalid JSON-pointer: ${$data}`)\n    const up: number = +matches[1]\n    jsonPointer = matches[2]\n    if (jsonPointer === \"#\") {\n      if (up >= dataLevel) throw new Error(errorMsg(\"property/index\", up))\n      return dataPathArr[dataLevel - up]\n    }\n    if (up > dataLevel) throw new Error(errorMsg(\"data\", up))\n    data = dataNames[dataLevel - up]\n    if (!jsonPointer) return data\n  }\n\n  let expr = data\n  const segments = jsonPointer.split(\"/\")\n  for (const segment of segments) {\n    if (segment) {\n      data = _`${data}${getProperty(unescapeJsonPointer(segment))}`\n      expr = _`${expr} && ${data}`\n    }\n  }\n  return expr\n\n  function errorMsg(pointerType: string, up: number): string {\n    return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`\n  }\n}\n", "import type {ErrorObject} from \"../types\"\n\nexport default class ValidationError extends Error {\n  readonly errors: Partial[]\n  readonly ajv: true\n  readonly validation: true\n\n  constructor(errors: Partial[]) {\n    super(\"validation failed\")\n    this.errors = errors\n    this.ajv = this.validation = true\n  }\n}\n", "import {resolveUrl, normalizeId, getFullPath} from \"./resolve\"\nimport type {UriResolver} from \"../types\"\n\nexport default class MissingRefError extends Error {\n  readonly missingRef: string\n  readonly missingSchema: string\n\n  constructor(resolver: UriResolver, baseId: string, ref: string, msg?: string) {\n    super(msg || `can't resolve reference ${ref} from id ${baseId}`)\n    this.missingRef = resolveUrl(resolver, baseId, ref)\n    this.missingSchema = normalizeId(getFullPath(resolver, this.missingRef))\n  }\n}\n", "import type {\n  AnySchema,\n  AnySchemaObject,\n  AnyValidateFunction,\n  AsyncValidateFunction,\n  EvaluatedProperties,\n  EvaluatedItems,\n} from \"../types\"\nimport type Ajv from \"../core\"\nimport type {InstanceOptions} from \"../core\"\nimport {CodeGen, _, nil, stringify, Name, Code, ValueScopeName} from \"./codegen\"\nimport ValidationError from \"../runtime/validation_error\"\nimport N from \"./names\"\nimport {LocalRefs, getFullPath, _getFullPath, inlineRef, normalizeId, resolveUrl} from \"./resolve\"\nimport {schemaHasRulesButRef, unescapeFragment} from \"./util\"\nimport {validateFunctionCode} from \"./validate\"\nimport {URIComponent} from \"fast-uri\"\nimport {JSONType} from \"./rules\"\n\nexport type SchemaRefs = {\n  [Ref in string]?: SchemaEnv | AnySchema\n}\n\nexport interface SchemaCxt {\n  readonly gen: CodeGen\n  readonly allErrors?: boolean // validation mode - whether to collect all errors or break on error\n  readonly data: Name // Name with reference to the current part of data instance\n  readonly parentData: Name // should be used in keywords modifying data\n  readonly parentDataProperty: Code | number // should be used in keywords modifying data\n  readonly dataNames: Name[]\n  readonly dataPathArr: (Code | number)[]\n  readonly dataLevel: number // the level of the currently validated data,\n  // it can be used to access both the property names and the data on all levels from the top.\n  dataTypes: JSONType[] // data types applied to the current part of data instance\n  definedProperties: Set // set of properties to keep track of for required checks\n  readonly topSchemaRef: Code\n  readonly validateName: Name\n  evaluated?: Name\n  readonly ValidationError?: Name\n  readonly schema: AnySchema // current schema object - equal to parentSchema passed via KeywordCxt\n  readonly schemaEnv: SchemaEnv\n  readonly rootId: string\n  baseId: string // the current schema base URI that should be used as the base for resolving URIs in references (\\$ref)\n  readonly schemaPath: Code // the run-time expression that evaluates to the property name of the current schema\n  readonly errSchemaPath: string // this is actual string, should not be changed to Code\n  readonly errorPath: Code\n  readonly propertyName?: Name\n  readonly compositeRule?: boolean // true indicates that the current schema is inside the compound keyword,\n  // where failing some rule doesn't mean validation failure (`anyOf`, `oneOf`, `not`, `if`).\n  // This flag is used to determine whether you can return validation result immediately after any error in case the option `allErrors` is not `true.\n  // You only need to use it if you have many steps in your keywords and potentially can define multiple errors.\n  props?: EvaluatedProperties | Name // properties evaluated by this schema - used by parent schema or assigned to validation function\n  items?: EvaluatedItems | Name // last item evaluated by this schema - used by parent schema or assigned to validation function\n  jtdDiscriminator?: string\n  jtdMetadata?: boolean\n  readonly createErrors?: boolean\n  readonly opts: InstanceOptions // Ajv instance option.\n  readonly self: Ajv // current Ajv instance\n}\n\nexport interface SchemaObjCxt extends SchemaCxt {\n  readonly schema: AnySchemaObject\n}\ninterface SchemaEnvArgs {\n  readonly schema: AnySchema\n  readonly schemaId?: \"$id\" | \"id\"\n  readonly root?: SchemaEnv\n  readonly baseId?: string\n  readonly schemaPath?: string\n  readonly localRefs?: LocalRefs\n  readonly meta?: boolean\n}\n\nexport class SchemaEnv implements SchemaEnvArgs {\n  readonly schema: AnySchema\n  readonly schemaId?: \"$id\" | \"id\"\n  readonly root: SchemaEnv\n  baseId: string // TODO possibly, it should be readonly\n  schemaPath?: string\n  localRefs?: LocalRefs\n  readonly meta?: boolean\n  readonly $async?: boolean // true if the current schema is asynchronous.\n  readonly refs: SchemaRefs = {}\n  readonly dynamicAnchors: {[Ref in string]?: true} = {}\n  validate?: AnyValidateFunction\n  validateName?: ValueScopeName\n  serialize?: (data: unknown) => string\n  serializeName?: ValueScopeName\n  parse?: (data: string) => unknown\n  parseName?: ValueScopeName\n\n  constructor(env: SchemaEnvArgs) {\n    let schema: AnySchemaObject | undefined\n    if (typeof env.schema == \"object\") schema = env.schema\n    this.schema = env.schema\n    this.schemaId = env.schemaId\n    this.root = env.root || this\n    this.baseId = env.baseId ?? normalizeId(schema?.[env.schemaId || \"$id\"])\n    this.schemaPath = env.schemaPath\n    this.localRefs = env.localRefs\n    this.meta = env.meta\n    this.$async = schema?.$async\n    this.refs = {}\n  }\n}\n\n// let codeSize = 0\n// let nodeCount = 0\n\n// Compiles schema in SchemaEnv\nexport function compileSchema(this: Ajv, sch: SchemaEnv): SchemaEnv {\n  // TODO refactor - remove compilations\n  const _sch = getCompilingSchema.call(this, sch)\n  if (_sch) return _sch\n  const rootId = getFullPath(this.opts.uriResolver, sch.root.baseId) // TODO if getFullPath removed 1 tests fails\n  const {es5, lines} = this.opts.code\n  const {ownProperties} = this.opts\n  const gen = new CodeGen(this.scope, {es5, lines, ownProperties})\n  let _ValidationError\n  if (sch.$async) {\n    _ValidationError = gen.scopeValue(\"Error\", {\n      ref: ValidationError,\n      code: _`require(\"ajv/dist/runtime/validation_error\").default`,\n    })\n  }\n\n  const validateName = gen.scopeName(\"validate\")\n  sch.validateName = validateName\n\n  const schemaCxt: SchemaCxt = {\n    gen,\n    allErrors: this.opts.allErrors,\n    data: N.data,\n    parentData: N.parentData,\n    parentDataProperty: N.parentDataProperty,\n    dataNames: [N.data],\n    dataPathArr: [nil], // TODO can its length be used as dataLevel if nil is removed?\n    dataLevel: 0,\n    dataTypes: [],\n    definedProperties: new Set(),\n    topSchemaRef: gen.scopeValue(\n      \"schema\",\n      this.opts.code.source === true\n        ? {ref: sch.schema, code: stringify(sch.schema)}\n        : {ref: sch.schema}\n    ),\n    validateName,\n    ValidationError: _ValidationError,\n    schema: sch.schema,\n    schemaEnv: sch,\n    rootId,\n    baseId: sch.baseId || rootId,\n    schemaPath: nil,\n    errSchemaPath: sch.schemaPath || (this.opts.jtd ? \"\" : \"#\"),\n    errorPath: _`\"\"`,\n    opts: this.opts,\n    self: this,\n  }\n\n  let sourceCode: string | undefined\n  try {\n    this._compilations.add(sch)\n    validateFunctionCode(schemaCxt)\n    gen.optimize(this.opts.code.optimize)\n    // gen.optimize(1)\n    const validateCode = gen.toString()\n    sourceCode = `${gen.scopeRefs(N.scope)}return ${validateCode}`\n    // console.log((codeSize += sourceCode.length), (nodeCount += gen.nodeCount))\n    if (this.opts.code.process) sourceCode = this.opts.code.process(sourceCode, sch)\n    // console.log(\"\\n\\n\\n *** \\n\", sourceCode)\n    const makeValidate = new Function(`${N.self}`, `${N.scope}`, sourceCode)\n    const validate: AnyValidateFunction = makeValidate(this, this.scope.get())\n    this.scope.value(validateName, {ref: validate})\n\n    validate.errors = null\n    validate.schema = sch.schema\n    validate.schemaEnv = sch\n    if (sch.$async) (validate as AsyncValidateFunction).$async = true\n    if (this.opts.code.source === true) {\n      validate.source = {validateName, validateCode, scopeValues: gen._values}\n    }\n    if (this.opts.unevaluated) {\n      const {props, items} = schemaCxt\n      validate.evaluated = {\n        props: props instanceof Name ? undefined : props,\n        items: items instanceof Name ? undefined : items,\n        dynamicProps: props instanceof Name,\n        dynamicItems: items instanceof Name,\n      }\n      if (validate.source) validate.source.evaluated = stringify(validate.evaluated)\n    }\n    sch.validate = validate\n    return sch\n  } catch (e) {\n    delete sch.validate\n    delete sch.validateName\n    if (sourceCode) this.logger.error(\"Error compiling schema, function code:\", sourceCode)\n    // console.log(\"\\n\\n\\n *** \\n\", sourceCode, this.opts)\n    throw e\n  } finally {\n    this._compilations.delete(sch)\n  }\n}\n\nexport function resolveRef(\n  this: Ajv,\n  root: SchemaEnv,\n  baseId: string,\n  ref: string\n): AnySchema | SchemaEnv | undefined {\n  ref = resolveUrl(this.opts.uriResolver, baseId, ref)\n  const schOrFunc = root.refs[ref]\n  if (schOrFunc) return schOrFunc\n\n  let _sch = resolve.call(this, root, ref)\n  if (_sch === undefined) {\n    const schema = root.localRefs?.[ref] // TODO maybe localRefs should hold SchemaEnv\n    const {schemaId} = this.opts\n    if (schema) _sch = new SchemaEnv({schema, schemaId, root, baseId})\n  }\n\n  if (_sch === undefined) return\n  return (root.refs[ref] = inlineOrCompile.call(this, _sch))\n}\n\nfunction inlineOrCompile(this: Ajv, sch: SchemaEnv): AnySchema | SchemaEnv {\n  if (inlineRef(sch.schema, this.opts.inlineRefs)) return sch.schema\n  return sch.validate ? sch : compileSchema.call(this, sch)\n}\n\n// Index of schema compilation in the currently compiled list\nexport function getCompilingSchema(this: Ajv, schEnv: SchemaEnv): SchemaEnv | void {\n  for (const sch of this._compilations) {\n    if (sameSchemaEnv(sch, schEnv)) return sch\n  }\n}\n\nfunction sameSchemaEnv(s1: SchemaEnv, s2: SchemaEnv): boolean {\n  return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId\n}\n\n// resolve and compile the references ($ref)\n// TODO returns AnySchemaObject (if the schema can be inlined) or validation function\nfunction resolve(\n  this: Ajv,\n  root: SchemaEnv, // information about the root schema for the current schema\n  ref: string // reference to resolve\n): SchemaEnv | undefined {\n  let sch\n  while (typeof (sch = this.refs[ref]) == \"string\") ref = sch\n  return sch || this.schemas[ref] || resolveSchema.call(this, root, ref)\n}\n\n// Resolve schema, its root and baseId\nexport function resolveSchema(\n  this: Ajv,\n  root: SchemaEnv, // root object with properties schema, refs TODO below SchemaEnv is assigned to it\n  ref: string // reference to resolve\n): SchemaEnv | undefined {\n  const p = this.opts.uriResolver.parse(ref)\n  const refPath = _getFullPath(this.opts.uriResolver, p)\n  let baseId = getFullPath(this.opts.uriResolver, root.baseId, undefined)\n  // TODO `Object.keys(root.schema).length > 0` should not be needed - but removing breaks 2 tests\n  if (Object.keys(root.schema).length > 0 && refPath === baseId) {\n    return getJsonPointer.call(this, p, root)\n  }\n\n  const id = normalizeId(refPath)\n  const schOrRef = this.refs[id] || this.schemas[id]\n  if (typeof schOrRef == \"string\") {\n    const sch = resolveSchema.call(this, root, schOrRef)\n    if (typeof sch?.schema !== \"object\") return\n    return getJsonPointer.call(this, p, sch)\n  }\n\n  if (typeof schOrRef?.schema !== \"object\") return\n  if (!schOrRef.validate) compileSchema.call(this, schOrRef)\n  if (id === normalizeId(ref)) {\n    const {schema} = schOrRef\n    const {schemaId} = this.opts\n    const schId = schema[schemaId]\n    if (schId) baseId = resolveUrl(this.opts.uriResolver, baseId, schId)\n    return new SchemaEnv({schema, schemaId, root, baseId})\n  }\n  return getJsonPointer.call(this, p, schOrRef)\n}\n\nconst PREVENT_SCOPE_CHANGE = new Set([\n  \"properties\",\n  \"patternProperties\",\n  \"enum\",\n  \"dependencies\",\n  \"definitions\",\n])\n\nfunction getJsonPointer(\n  this: Ajv,\n  parsedRef: URIComponent,\n  {baseId, schema, root}: SchemaEnv\n): SchemaEnv | undefined {\n  if (parsedRef.fragment?.[0] !== \"/\") return\n  for (const part of parsedRef.fragment.slice(1).split(\"/\")) {\n    if (typeof schema === \"boolean\") return\n    const partSchema = schema[unescapeFragment(part)]\n    if (partSchema === undefined) return\n    schema = partSchema\n    // TODO PREVENT_SCOPE_CHANGE could be defined in keyword def?\n    const schId = typeof schema === \"object\" && schema[this.opts.schemaId]\n    if (!PREVENT_SCOPE_CHANGE.has(part) && schId) {\n      baseId = resolveUrl(this.opts.uriResolver, baseId, schId)\n    }\n  }\n  let env: SchemaEnv | undefined\n  if (typeof schema != \"boolean\" && schema.$ref && !schemaHasRulesButRef(schema, this.RULES)) {\n    const $ref = resolveUrl(this.opts.uriResolver, baseId, schema.$ref)\n    env = resolveSchema.call(this, root, $ref)\n  }\n  // even though resolution failed we need to return SchemaEnv to throw exception\n  // so that compileAsync loads missing schema.\n  const {schemaId} = this.opts\n  env = env || new SchemaEnv({schema, schemaId, root, baseId})\n  if (env.schema !== env.root.schema) return env\n  return undefined\n}\n", "{\n  \"$id\": \"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#\",\n  \"description\": \"Meta-schema for $data reference (JSON AnySchema extension proposal)\",\n  \"type\": \"object\",\n  \"required\": [\"$data\"],\n  \"properties\": {\n    \"$data\": {\n      \"type\": \"string\",\n      \"anyOf\": [{\"format\": \"relative-json-pointer\"}, {\"format\": \"json-pointer\"}]\n    }\n  },\n  \"additionalProperties\": false\n}\n", "'use strict'\n\nconst HEX = {\n  0: 0,\n  1: 1,\n  2: 2,\n  3: 3,\n  4: 4,\n  5: 5,\n  6: 6,\n  7: 7,\n  8: 8,\n  9: 9,\n  a: 10,\n  A: 10,\n  b: 11,\n  B: 11,\n  c: 12,\n  C: 12,\n  d: 13,\n  D: 13,\n  e: 14,\n  E: 14,\n  f: 15,\n  F: 15\n}\n\nmodule.exports = {\n  HEX\n}\n", "'use strict'\n\nconst { HEX } = require('./scopedChars')\n\nfunction normalizeIPv4 (host) {\n  if (findToken(host, '.') < 3) { return { host, isIPV4: false } }\n  const matches = host.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) || []\n  const [address] = matches\n  if (address) {\n    return { host: stripLeadingZeros(address, '.'), isIPV4: true }\n  } else {\n    return { host, isIPV4: false }\n  }\n}\n\n/**\n * @param {string[]} input\n * @param {boolean} [keepZero=false]\n * @returns {string|undefined}\n */\nfunction stringArrayToHexStripped (input, keepZero = false) {\n  let acc = ''\n  let strip = true\n  for (const c of input) {\n    if (HEX[c] === undefined) return undefined\n    if (c !== '0' && strip === true) strip = false\n    if (!strip) acc += c\n  }\n  if (keepZero && acc.length === 0) acc = '0'\n  return acc\n}\n\nfunction getIPV6 (input) {\n  let tokenCount = 0\n  const output = { error: false, address: '', zone: '' }\n  const address = []\n  const buffer = []\n  let isZone = false\n  let endipv6Encountered = false\n  let endIpv6 = false\n\n  function consume () {\n    if (buffer.length) {\n      if (isZone === false) {\n        const hex = stringArrayToHexStripped(buffer)\n        if (hex !== undefined) {\n          address.push(hex)\n        } else {\n          output.error = true\n          return false\n        }\n      }\n      buffer.length = 0\n    }\n    return true\n  }\n\n  for (let i = 0; i < input.length; i++) {\n    const cursor = input[i]\n    if (cursor === '[' || cursor === ']') { continue }\n    if (cursor === ':') {\n      if (endipv6Encountered === true) {\n        endIpv6 = true\n      }\n      if (!consume()) { break }\n      tokenCount++\n      address.push(':')\n      if (tokenCount > 7) {\n        // not valid\n        output.error = true\n        break\n      }\n      if (i - 1 >= 0 && input[i - 1] === ':') {\n        endipv6Encountered = true\n      }\n      continue\n    } else if (cursor === '%') {\n      if (!consume()) { break }\n      // switch to zone detection\n      isZone = true\n    } else {\n      buffer.push(cursor)\n      continue\n    }\n  }\n  if (buffer.length) {\n    if (isZone) {\n      output.zone = buffer.join('')\n    } else if (endIpv6) {\n      address.push(buffer.join(''))\n    } else {\n      address.push(stringArrayToHexStripped(buffer))\n    }\n  }\n  output.address = address.join('')\n  return output\n}\n\nfunction normalizeIPv6 (host, opts = {}) {\n  if (findToken(host, ':') < 2) { return { host, isIPV6: false } }\n  const ipv6 = getIPV6(host)\n\n  if (!ipv6.error) {\n    let newHost = ipv6.address\n    let escapedHost = ipv6.address\n    if (ipv6.zone) {\n      newHost += '%' + ipv6.zone\n      escapedHost += '%25' + ipv6.zone\n    }\n    return { host: newHost, escapedHost, isIPV6: true }\n  } else {\n    return { host, isIPV6: false }\n  }\n}\n\nfunction stripLeadingZeros (str, token) {\n  let out = ''\n  let skip = true\n  const l = str.length\n  for (let i = 0; i < l; i++) {\n    const c = str[i]\n    if (c === '0' && skip) {\n      if ((i + 1 <= l && str[i + 1] === token) || i + 1 === l) {\n        out += c\n        skip = false\n      }\n    } else {\n      if (c === token) {\n        skip = true\n      } else {\n        skip = false\n      }\n      out += c\n    }\n  }\n  return out\n}\n\nfunction findToken (str, token) {\n  let ind = 0\n  for (let i = 0; i < str.length; i++) {\n    if (str[i] === token) ind++\n  }\n  return ind\n}\n\nconst RDS1 = /^\\.\\.?\\//u\nconst RDS2 = /^\\/\\.(?:\\/|$)/u\nconst RDS3 = /^\\/\\.\\.(?:\\/|$)/u\nconst RDS5 = /^\\/?(?:.|\\n)*?(?=\\/|$)/u\n\nfunction removeDotSegments (input) {\n  const output = []\n\n  while (input.length) {\n    if (input.match(RDS1)) {\n      input = input.replace(RDS1, '')\n    } else if (input.match(RDS2)) {\n      input = input.replace(RDS2, '/')\n    } else if (input.match(RDS3)) {\n      input = input.replace(RDS3, '/')\n      output.pop()\n    } else if (input === '.' || input === '..') {\n      input = ''\n    } else {\n      const im = input.match(RDS5)\n      if (im) {\n        const s = im[0]\n        input = input.slice(s.length)\n        output.push(s)\n      } else {\n        throw new Error('Unexpected dot segment condition')\n      }\n    }\n  }\n  return output.join('')\n}\n\nfunction normalizeComponentEncoding (components, esc) {\n  const func = esc !== true ? escape : unescape\n  if (components.scheme !== undefined) {\n    components.scheme = func(components.scheme)\n  }\n  if (components.userinfo !== undefined) {\n    components.userinfo = func(components.userinfo)\n  }\n  if (components.host !== undefined) {\n    components.host = func(components.host)\n  }\n  if (components.path !== undefined) {\n    components.path = func(components.path)\n  }\n  if (components.query !== undefined) {\n    components.query = func(components.query)\n  }\n  if (components.fragment !== undefined) {\n    components.fragment = func(components.fragment)\n  }\n  return components\n}\n\nfunction recomposeAuthority (components, options) {\n  const uriTokens = []\n\n  if (components.userinfo !== undefined) {\n    uriTokens.push(components.userinfo)\n    uriTokens.push('@')\n  }\n\n  if (components.host !== undefined) {\n    let host = unescape(components.host)\n    const ipV4res = normalizeIPv4(host)\n\n    if (ipV4res.isIPV4) {\n      host = ipV4res.host\n    } else {\n      const ipV6res = normalizeIPv6(ipV4res.host, { isIPV4: false })\n      if (ipV6res.isIPV6 === true) {\n        host = `[${ipV6res.escapedHost}]`\n      } else {\n        host = components.host\n      }\n    }\n    uriTokens.push(host)\n  }\n\n  if (typeof components.port === 'number' || typeof components.port === 'string') {\n    uriTokens.push(':')\n    uriTokens.push(String(components.port))\n  }\n\n  return uriTokens.length ? uriTokens.join('') : undefined\n};\n\nmodule.exports = {\n  recomposeAuthority,\n  normalizeComponentEncoding,\n  removeDotSegments,\n  normalizeIPv4,\n  normalizeIPv6,\n  stringArrayToHexStripped\n}\n", "'use strict'\n\nconst UUID_REG = /^[\\da-f]{8}\\b-[\\da-f]{4}\\b-[\\da-f]{4}\\b-[\\da-f]{4}\\b-[\\da-f]{12}$/iu\nconst URN_REG = /([\\da-z][\\d\\-a-z]{0,31}):((?:[\\w!$'()*+,\\-.:;=@]|%[\\da-f]{2})+)/iu\n\nfunction isSecure (wsComponents) {\n  return typeof wsComponents.secure === 'boolean' ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === 'wss'\n}\n\nfunction httpParse (components) {\n  if (!components.host) {\n    components.error = components.error || 'HTTP URIs must have a host.'\n  }\n\n  return components\n}\n\nfunction httpSerialize (components) {\n  const secure = String(components.scheme).toLowerCase() === 'https'\n\n  // normalize the default port\n  if (components.port === (secure ? 443 : 80) || components.port === '') {\n    components.port = undefined\n  }\n\n  // normalize the empty path\n  if (!components.path) {\n    components.path = '/'\n  }\n\n  // NOTE: We do not parse query strings for HTTP URIs\n  // as WWW Form Url Encoded query strings are part of the HTML4+ spec,\n  // and not the HTTP spec.\n\n  return components\n}\n\nfunction wsParse (wsComponents) {\n// indicate if the secure flag is set\n  wsComponents.secure = isSecure(wsComponents)\n\n  // construct resouce name\n  wsComponents.resourceName = (wsComponents.path || '/') + (wsComponents.query ? '?' + wsComponents.query : '')\n  wsComponents.path = undefined\n  wsComponents.query = undefined\n\n  return wsComponents\n}\n\nfunction wsSerialize (wsComponents) {\n// normalize the default port\n  if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === '') {\n    wsComponents.port = undefined\n  }\n\n  // ensure scheme matches secure flag\n  if (typeof wsComponents.secure === 'boolean') {\n    wsComponents.scheme = (wsComponents.secure ? 'wss' : 'ws')\n    wsComponents.secure = undefined\n  }\n\n  // reconstruct path from resource name\n  if (wsComponents.resourceName) {\n    const [path, query] = wsComponents.resourceName.split('?')\n    wsComponents.path = (path && path !== '/' ? path : undefined)\n    wsComponents.query = query\n    wsComponents.resourceName = undefined\n  }\n\n  // forbid fragment component\n  wsComponents.fragment = undefined\n\n  return wsComponents\n}\n\nfunction urnParse (urnComponents, options) {\n  if (!urnComponents.path) {\n    urnComponents.error = 'URN can not be parsed'\n    return urnComponents\n  }\n  const matches = urnComponents.path.match(URN_REG)\n  if (matches) {\n    const scheme = options.scheme || urnComponents.scheme || 'urn'\n    urnComponents.nid = matches[1].toLowerCase()\n    urnComponents.nss = matches[2]\n    const urnScheme = `${scheme}:${options.nid || urnComponents.nid}`\n    const schemeHandler = SCHEMES[urnScheme]\n    urnComponents.path = undefined\n\n    if (schemeHandler) {\n      urnComponents = schemeHandler.parse(urnComponents, options)\n    }\n  } else {\n    urnComponents.error = urnComponents.error || 'URN can not be parsed.'\n  }\n\n  return urnComponents\n}\n\nfunction urnSerialize (urnComponents, options) {\n  const scheme = options.scheme || urnComponents.scheme || 'urn'\n  const nid = urnComponents.nid.toLowerCase()\n  const urnScheme = `${scheme}:${options.nid || nid}`\n  const schemeHandler = SCHEMES[urnScheme]\n\n  if (schemeHandler) {\n    urnComponents = schemeHandler.serialize(urnComponents, options)\n  }\n\n  const uriComponents = urnComponents\n  const nss = urnComponents.nss\n  uriComponents.path = `${nid || options.nid}:${nss}`\n\n  options.skipEscape = true\n  return uriComponents\n}\n\nfunction urnuuidParse (urnComponents, options) {\n  const uuidComponents = urnComponents\n  uuidComponents.uuid = uuidComponents.nss\n  uuidComponents.nss = undefined\n\n  if (!options.tolerant && (!uuidComponents.uuid || !UUID_REG.test(uuidComponents.uuid))) {\n    uuidComponents.error = uuidComponents.error || 'UUID is not valid.'\n  }\n\n  return uuidComponents\n}\n\nfunction urnuuidSerialize (uuidComponents) {\n  const urnComponents = uuidComponents\n  // normalize UUID\n  urnComponents.nss = (uuidComponents.uuid || '').toLowerCase()\n  return urnComponents\n}\n\nconst http = {\n  scheme: 'http',\n  domainHost: true,\n  parse: httpParse,\n  serialize: httpSerialize\n}\n\nconst https = {\n  scheme: 'https',\n  domainHost: http.domainHost,\n  parse: httpParse,\n  serialize: httpSerialize\n}\n\nconst ws = {\n  scheme: 'ws',\n  domainHost: true,\n  parse: wsParse,\n  serialize: wsSerialize\n}\n\nconst wss = {\n  scheme: 'wss',\n  domainHost: ws.domainHost,\n  parse: ws.parse,\n  serialize: ws.serialize\n}\n\nconst urn = {\n  scheme: 'urn',\n  parse: urnParse,\n  serialize: urnSerialize,\n  skipNormalize: true\n}\n\nconst urnuuid = {\n  scheme: 'urn:uuid',\n  parse: urnuuidParse,\n  serialize: urnuuidSerialize,\n  skipNormalize: true\n}\n\nconst SCHEMES = {\n  http,\n  https,\n  ws,\n  wss,\n  urn,\n  'urn:uuid': urnuuid\n}\n\nmodule.exports = SCHEMES\n", "'use strict'\n\nconst { normalizeIPv6, normalizeIPv4, removeDotSegments, recomposeAuthority, normalizeComponentEncoding } = require('./lib/utils')\nconst SCHEMES = require('./lib/schemes')\n\nfunction normalize (uri, options) {\n  if (typeof uri === 'string') {\n    uri = serialize(parse(uri, options), options)\n  } else if (typeof uri === 'object') {\n    uri = parse(serialize(uri, options), options)\n  }\n  return uri\n}\n\nfunction resolve (baseURI, relativeURI, options) {\n  const schemelessOptions = Object.assign({ scheme: 'null' }, options)\n  const resolved = resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true)\n  return serialize(resolved, { ...schemelessOptions, skipEscape: true })\n}\n\nfunction resolveComponents (base, relative, options, skipNormalization) {\n  const target = {}\n  if (!skipNormalization) {\n    base = parse(serialize(base, options), options) // normalize base components\n    relative = parse(serialize(relative, options), options) // normalize relative components\n  }\n  options = options || {}\n\n  if (!options.tolerant && relative.scheme) {\n    target.scheme = relative.scheme\n    // target.authority = relative.authority;\n    target.userinfo = relative.userinfo\n    target.host = relative.host\n    target.port = relative.port\n    target.path = removeDotSegments(relative.path || '')\n    target.query = relative.query\n  } else {\n    if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {\n      // target.authority = relative.authority;\n      target.userinfo = relative.userinfo\n      target.host = relative.host\n      target.port = relative.port\n      target.path = removeDotSegments(relative.path || '')\n      target.query = relative.query\n    } else {\n      if (!relative.path) {\n        target.path = base.path\n        if (relative.query !== undefined) {\n          target.query = relative.query\n        } else {\n          target.query = base.query\n        }\n      } else {\n        if (relative.path.charAt(0) === '/') {\n          target.path = removeDotSegments(relative.path)\n        } else {\n          if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {\n            target.path = '/' + relative.path\n          } else if (!base.path) {\n            target.path = relative.path\n          } else {\n            target.path = base.path.slice(0, base.path.lastIndexOf('/') + 1) + relative.path\n          }\n          target.path = removeDotSegments(target.path)\n        }\n        target.query = relative.query\n      }\n      // target.authority = base.authority;\n      target.userinfo = base.userinfo\n      target.host = base.host\n      target.port = base.port\n    }\n    target.scheme = base.scheme\n  }\n\n  target.fragment = relative.fragment\n\n  return target\n}\n\nfunction equal (uriA, uriB, options) {\n  if (typeof uriA === 'string') {\n    uriA = unescape(uriA)\n    uriA = serialize(normalizeComponentEncoding(parse(uriA, options), true), { ...options, skipEscape: true })\n  } else if (typeof uriA === 'object') {\n    uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true })\n  }\n\n  if (typeof uriB === 'string') {\n    uriB = unescape(uriB)\n    uriB = serialize(normalizeComponentEncoding(parse(uriB, options), true), { ...options, skipEscape: true })\n  } else if (typeof uriB === 'object') {\n    uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true })\n  }\n\n  return uriA.toLowerCase() === uriB.toLowerCase()\n}\n\nfunction serialize (cmpts, opts) {\n  const components = {\n    host: cmpts.host,\n    scheme: cmpts.scheme,\n    userinfo: cmpts.userinfo,\n    port: cmpts.port,\n    path: cmpts.path,\n    query: cmpts.query,\n    nid: cmpts.nid,\n    nss: cmpts.nss,\n    uuid: cmpts.uuid,\n    fragment: cmpts.fragment,\n    reference: cmpts.reference,\n    resourceName: cmpts.resourceName,\n    secure: cmpts.secure,\n    error: ''\n  }\n  const options = Object.assign({}, opts)\n  const uriTokens = []\n\n  // find scheme handler\n  const schemeHandler = SCHEMES[(options.scheme || components.scheme || '').toLowerCase()]\n\n  // perform scheme specific serialization\n  if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options)\n\n  if (components.path !== undefined) {\n    if (!options.skipEscape) {\n      components.path = escape(components.path)\n\n      if (components.scheme !== undefined) {\n        components.path = components.path.split('%3A').join(':')\n      }\n    } else {\n      components.path = unescape(components.path)\n    }\n  }\n\n  if (options.reference !== 'suffix' && components.scheme) {\n    uriTokens.push(components.scheme, ':')\n  }\n\n  const authority = recomposeAuthority(components, options)\n  if (authority !== undefined) {\n    if (options.reference !== 'suffix') {\n      uriTokens.push('//')\n    }\n\n    uriTokens.push(authority)\n\n    if (components.path && components.path.charAt(0) !== '/') {\n      uriTokens.push('/')\n    }\n  }\n  if (components.path !== undefined) {\n    let s = components.path\n\n    if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {\n      s = removeDotSegments(s)\n    }\n\n    if (authority === undefined) {\n      s = s.replace(/^\\/\\//u, '/%2F') // don't allow the path to start with \"//\"\n    }\n\n    uriTokens.push(s)\n  }\n\n  if (components.query !== undefined) {\n    uriTokens.push('?', components.query)\n  }\n\n  if (components.fragment !== undefined) {\n    uriTokens.push('#', components.fragment)\n  }\n  return uriTokens.join('')\n}\n\nconst hexLookUp = Array.from({ length: 127 }, (v, k) => /[^!\"$&'()*+,\\-.;=_`a-z{}~]/u.test(String.fromCharCode(k)))\n\nfunction nonSimpleDomain (value) {\n  let code = 0\n  for (let i = 0, len = value.length; i < len; ++i) {\n    code = value.charCodeAt(i)\n    if (code > 126 || hexLookUp[code]) {\n      return true\n    }\n  }\n  return false\n}\n\nconst URI_PARSE = /^(?:([^#/:?]+):)?(?:\\/\\/((?:([^#/?@]*)@)?(\\[[^#/?\\]]+\\]|[^#/:?]*)(?::(\\d*))?))?([^#?]*)(?:\\?([^#]*))?(?:#((?:.|[\\n\\r])*))?/u\n\nfunction parse (uri, opts) {\n  const options = Object.assign({}, opts)\n  const parsed = {\n    scheme: undefined,\n    userinfo: undefined,\n    host: '',\n    port: undefined,\n    path: '',\n    query: undefined,\n    fragment: undefined\n  }\n  const gotEncoding = uri.indexOf('%') !== -1\n  let isIP = false\n  if (options.reference === 'suffix') uri = (options.scheme ? options.scheme + ':' : '') + '//' + uri\n\n  const matches = uri.match(URI_PARSE)\n\n  if (matches) {\n    // store each component\n    parsed.scheme = matches[1]\n    parsed.userinfo = matches[3]\n    parsed.host = matches[4]\n    parsed.port = parseInt(matches[5], 10)\n    parsed.path = matches[6] || ''\n    parsed.query = matches[7]\n    parsed.fragment = matches[8]\n\n    // fix port number\n    if (isNaN(parsed.port)) {\n      parsed.port = matches[5]\n    }\n    if (parsed.host) {\n      const ipv4result = normalizeIPv4(parsed.host)\n      if (ipv4result.isIPV4 === false) {\n        const ipv6result = normalizeIPv6(ipv4result.host, { isIPV4: false })\n        parsed.host = ipv6result.host.toLowerCase()\n        isIP = ipv6result.isIPV6\n      } else {\n        parsed.host = ipv4result.host\n        isIP = true\n      }\n    }\n    if (parsed.scheme === undefined && parsed.userinfo === undefined && parsed.host === undefined && parsed.port === undefined && !parsed.path && parsed.query === undefined) {\n      parsed.reference = 'same-document'\n    } else if (parsed.scheme === undefined) {\n      parsed.reference = 'relative'\n    } else if (parsed.fragment === undefined) {\n      parsed.reference = 'absolute'\n    } else {\n      parsed.reference = 'uri'\n    }\n\n    // check for reference errors\n    if (options.reference && options.reference !== 'suffix' && options.reference !== parsed.reference) {\n      parsed.error = parsed.error || 'URI is not a ' + options.reference + ' reference.'\n    }\n\n    // find scheme handler\n    const schemeHandler = SCHEMES[(options.scheme || parsed.scheme || '').toLowerCase()]\n\n    // check if scheme can't handle IRIs\n    if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {\n      // if host component is a domain name\n      if (parsed.host && (options.domainHost || (schemeHandler && schemeHandler.domainHost)) && isIP === false && nonSimpleDomain(parsed.host)) {\n        // convert Unicode IDN -> ASCII IDN\n        try {\n          parsed.host = URL.domainToASCII(parsed.host.toLowerCase())\n        } catch (e) {\n          parsed.error = parsed.error || \"Host's domain name can not be converted to ASCII: \" + e\n        }\n      }\n      // convert IRI -> URI\n    }\n\n    if (!schemeHandler || (schemeHandler && !schemeHandler.skipNormalize)) {\n      if (gotEncoding && parsed.scheme !== undefined) {\n        parsed.scheme = unescape(parsed.scheme)\n      }\n      if (gotEncoding && parsed.host !== undefined) {\n        parsed.host = unescape(parsed.host)\n      }\n      if (parsed.path !== undefined && parsed.path.length) {\n        parsed.path = escape(unescape(parsed.path))\n      }\n      if (parsed.fragment !== undefined && parsed.fragment.length) {\n        parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment))\n      }\n    }\n\n    // perform scheme specific parsing\n    if (schemeHandler && schemeHandler.parse) {\n      schemeHandler.parse(parsed, options)\n    }\n  } else {\n    parsed.error = parsed.error || 'URI can not be parsed.'\n  }\n  return parsed\n}\n\nconst fastUri = {\n  SCHEMES,\n  normalize,\n  resolve,\n  resolveComponents,\n  equal,\n  serialize,\n  parse\n}\n\nmodule.exports = fastUri\nmodule.exports.default = fastUri\nmodule.exports.fastUri = fastUri\n", "import * as uri from \"fast-uri\"\n\ntype URI = typeof uri & {code: string}\n;(uri as URI).code = 'require(\"ajv/dist/runtime/uri\").default'\n\nexport default uri as URI\n", "export {\n  Format,\n  FormatDefinition,\n  AsyncFormatDefinition,\n  KeywordDefinition,\n  KeywordErrorDefinition,\n  CodeKeywordDefinition,\n  MacroKeywordDefinition,\n  FuncKeywordDefinition,\n  Vocabulary,\n  Schema,\n  SchemaObject,\n  AnySchemaObject,\n  AsyncSchema,\n  AnySchema,\n  ValidateFunction,\n  AsyncValidateFunction,\n  AnyValidateFunction,\n  ErrorObject,\n  ErrorNoParams,\n} from \"./types\"\n\nexport {SchemaCxt, SchemaObjCxt} from \"./compile\"\nexport interface Plugin {\n  (ajv: Ajv, options?: Opts): Ajv\n  [prop: string]: any\n}\n\nexport {KeywordCxt} from \"./compile/validate\"\nexport {DefinedError} from \"./vocabularies/errors\"\nexport {JSONType} from \"./compile/rules\"\nexport {JSONSchemaType} from \"./types/json-schema\"\nexport {JTDSchemaType, SomeJTDSchemaType, JTDDataType} from \"./types/jtd-schema\"\nexport {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from \"./compile/codegen\"\n\nimport type {\n  Schema,\n  AnySchema,\n  AnySchemaObject,\n  SchemaObject,\n  AsyncSchema,\n  Vocabulary,\n  KeywordDefinition,\n  AddedKeywordDefinition,\n  AnyValidateFunction,\n  ValidateFunction,\n  AsyncValidateFunction,\n  ErrorObject,\n  Format,\n  AddedFormat,\n  RegExpEngine,\n  UriResolver,\n} from \"./types\"\nimport type {JSONSchemaType} from \"./types/json-schema\"\nimport type {JTDSchemaType, SomeJTDSchemaType, JTDDataType} from \"./types/jtd-schema\"\nimport ValidationError from \"./runtime/validation_error\"\nimport MissingRefError from \"./compile/ref_error\"\nimport {getRules, ValidationRules, Rule, RuleGroup, JSONType} from \"./compile/rules\"\nimport {SchemaEnv, compileSchema, resolveSchema} from \"./compile\"\nimport {Code, ValueScope} from \"./compile/codegen\"\nimport {normalizeId, getSchemaRefs} from \"./compile/resolve\"\nimport {getJSONTypes} from \"./compile/validate/dataType\"\nimport {eachItem} from \"./compile/util\"\nimport * as $dataRefSchema from \"./refs/data.json\"\n\nimport DefaultUriResolver from \"./runtime/uri\"\n\nconst defaultRegExp: RegExpEngine = (str, flags) => new RegExp(str, flags)\ndefaultRegExp.code = \"new RegExp\"\n\nconst META_IGNORE_OPTIONS: (keyof Options)[] = [\"removeAdditional\", \"useDefaults\", \"coerceTypes\"]\nconst EXT_SCOPE_NAMES = new Set([\n  \"validate\",\n  \"serialize\",\n  \"parse\",\n  \"wrapper\",\n  \"root\",\n  \"schema\",\n  \"keyword\",\n  \"pattern\",\n  \"formats\",\n  \"validate$data\",\n  \"func\",\n  \"obj\",\n  \"Error\",\n])\n\nexport type Options = CurrentOptions & DeprecatedOptions\n\nexport interface CurrentOptions {\n  // strict mode options (NEW)\n  strict?: boolean | \"log\"\n  strictSchema?: boolean | \"log\"\n  strictNumbers?: boolean | \"log\"\n  strictTypes?: boolean | \"log\"\n  strictTuples?: boolean | \"log\"\n  strictRequired?: boolean | \"log\"\n  allowMatchingProperties?: boolean // disables a strict mode restriction\n  allowUnionTypes?: boolean\n  validateFormats?: boolean\n  // validation and reporting options:\n  $data?: boolean\n  allErrors?: boolean\n  verbose?: boolean\n  discriminator?: boolean\n  unicodeRegExp?: boolean\n  timestamp?: \"string\" | \"date\" // JTD only\n  parseDate?: boolean // JTD only\n  allowDate?: boolean // JTD only\n  $comment?:\n    | true\n    | ((comment: string, schemaPath?: string, rootSchema?: AnySchemaObject) => unknown)\n  formats?: {[Name in string]?: Format}\n  keywords?: Vocabulary\n  schemas?: AnySchema[] | {[Key in string]?: AnySchema}\n  logger?: Logger | false\n  loadSchema?: (uri: string) => Promise\n  // options to modify validated data:\n  removeAdditional?: boolean | \"all\" | \"failing\"\n  useDefaults?: boolean | \"empty\"\n  coerceTypes?: boolean | \"array\"\n  // advanced options:\n  next?: boolean // NEW\n  unevaluated?: boolean // NEW\n  dynamicRef?: boolean // NEW\n  schemaId?: \"id\" | \"$id\"\n  jtd?: boolean // NEW\n  meta?: SchemaObject | boolean\n  defaultMeta?: string | AnySchemaObject\n  validateSchema?: boolean | \"log\"\n  addUsedSchema?: boolean\n  inlineRefs?: boolean | number\n  passContext?: boolean\n  loopRequired?: number\n  loopEnum?: number // NEW\n  ownProperties?: boolean\n  multipleOfPrecision?: number\n  int32range?: boolean // JTD only\n  messages?: boolean\n  code?: CodeOptions // NEW\n  uriResolver?: UriResolver\n}\n\nexport interface CodeOptions {\n  es5?: boolean\n  esm?: boolean\n  lines?: boolean\n  optimize?: boolean | number\n  formats?: Code // code to require (or construct) map of available formats - for standalone code\n  source?: boolean\n  process?: (code: string, schema?: SchemaEnv) => string\n  regExp?: RegExpEngine\n}\n\ninterface InstanceCodeOptions extends CodeOptions {\n  regExp: RegExpEngine\n  optimize: number\n}\n\ninterface DeprecatedOptions {\n  /** @deprecated */\n  ignoreKeywordsWithRef?: boolean\n  /** @deprecated */\n  jsPropertySyntax?: boolean // added instead of jsonPointers\n  /** @deprecated */\n  unicode?: boolean\n}\n\ninterface RemovedOptions {\n  format?: boolean\n  errorDataPath?: \"object\" | \"property\"\n  nullable?: boolean // \"nullable\" keyword is supported by default\n  jsonPointers?: boolean\n  extendRefs?: true | \"ignore\" | \"fail\"\n  missingRefs?: true | \"ignore\" | \"fail\"\n  processCode?: (code: string, schema?: SchemaEnv) => string\n  sourceCode?: boolean\n  strictDefaults?: boolean\n  strictKeywords?: boolean\n  uniqueItems?: boolean\n  unknownFormats?: true | string[] | \"ignore\"\n  cache?: any\n  serialize?: (schema: AnySchema) => unknown\n  ajvErrors?: boolean\n}\n\ntype OptionsInfo = {\n  [K in keyof T]-?: string | undefined\n}\n\nconst removedOptions: OptionsInfo = {\n  errorDataPath: \"\",\n  format: \"`validateFormats: false` can be used instead.\",\n  nullable: '\"nullable\" keyword is supported by default.',\n  jsonPointers: \"Deprecated jsPropertySyntax can be used instead.\",\n  extendRefs: \"Deprecated ignoreKeywordsWithRef can be used instead.\",\n  missingRefs: \"Pass empty schema with $id that should be ignored to ajv.addSchema.\",\n  processCode: \"Use option `code: {process: (code, schemaEnv: object) => string}`\",\n  sourceCode: \"Use option `code: {source: true}`\",\n  strictDefaults: \"It is default now, see option `strict`.\",\n  strictKeywords: \"It is default now, see option `strict`.\",\n  uniqueItems: '\"uniqueItems\" keyword is always validated.',\n  unknownFormats: \"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).\",\n  cache: \"Map is used as cache, schema object as key.\",\n  serialize: \"Map is used as cache, schema object as key.\",\n  ajvErrors: \"It is default now.\",\n}\n\nconst deprecatedOptions: OptionsInfo = {\n  ignoreKeywordsWithRef: \"\",\n  jsPropertySyntax: \"\",\n  unicode: '\"minLength\"/\"maxLength\" account for unicode characters by default.',\n}\n\ntype RequiredInstanceOptions = {\n  [K in\n    | \"strictSchema\"\n    | \"strictNumbers\"\n    | \"strictTypes\"\n    | \"strictTuples\"\n    | \"strictRequired\"\n    | \"inlineRefs\"\n    | \"loopRequired\"\n    | \"loopEnum\"\n    | \"meta\"\n    | \"messages\"\n    | \"schemaId\"\n    | \"addUsedSchema\"\n    | \"validateSchema\"\n    | \"validateFormats\"\n    | \"int32range\"\n    | \"unicodeRegExp\"\n    | \"uriResolver\"]: NonNullable\n} & {code: InstanceCodeOptions}\n\nexport type InstanceOptions = Options & RequiredInstanceOptions\n\nconst MAX_EXPRESSION = 200\n\n// eslint-disable-next-line complexity\nfunction requiredOptions(o: Options): RequiredInstanceOptions {\n  const s = o.strict\n  const _optz = o.code?.optimize\n  const optimize = _optz === true || _optz === undefined ? 1 : _optz || 0\n  const regExp = o.code?.regExp ?? defaultRegExp\n  const uriResolver = o.uriResolver ?? DefaultUriResolver\n  return {\n    strictSchema: o.strictSchema ?? s ?? true,\n    strictNumbers: o.strictNumbers ?? s ?? true,\n    strictTypes: o.strictTypes ?? s ?? \"log\",\n    strictTuples: o.strictTuples ?? s ?? \"log\",\n    strictRequired: o.strictRequired ?? s ?? false,\n    code: o.code ? {...o.code, optimize, regExp} : {optimize, regExp},\n    loopRequired: o.loopRequired ?? MAX_EXPRESSION,\n    loopEnum: o.loopEnum ?? MAX_EXPRESSION,\n    meta: o.meta ?? true,\n    messages: o.messages ?? true,\n    inlineRefs: o.inlineRefs ?? true,\n    schemaId: o.schemaId ?? \"$id\",\n    addUsedSchema: o.addUsedSchema ?? true,\n    validateSchema: o.validateSchema ?? true,\n    validateFormats: o.validateFormats ?? true,\n    unicodeRegExp: o.unicodeRegExp ?? true,\n    int32range: o.int32range ?? true,\n    uriResolver: uriResolver,\n  }\n}\n\nexport interface Logger {\n  log(...args: unknown[]): unknown\n  warn(...args: unknown[]): unknown\n  error(...args: unknown[]): unknown\n}\n\nexport default class Ajv {\n  opts: InstanceOptions\n  errors?: ErrorObject[] | null // errors from the last validation\n  logger: Logger\n  // shared external scope values for compiled functions\n  readonly scope: ValueScope\n  readonly schemas: {[Key in string]?: SchemaEnv} = {}\n  readonly refs: {[Ref in string]?: SchemaEnv | string} = {}\n  readonly formats: {[Name in string]?: AddedFormat} = {}\n  readonly RULES: ValidationRules\n  readonly _compilations: Set = new Set()\n  private readonly _loading: {[Ref in string]?: Promise} = {}\n  private readonly _cache: Map = new Map()\n  private readonly _metaOpts: InstanceOptions\n\n  static ValidationError = ValidationError\n  static MissingRefError = MissingRefError\n\n  constructor(opts: Options = {}) {\n    opts = this.opts = {...opts, ...requiredOptions(opts)}\n    const {es5, lines} = this.opts.code\n\n    this.scope = new ValueScope({scope: {}, prefixes: EXT_SCOPE_NAMES, es5, lines})\n    this.logger = getLogger(opts.logger)\n    const formatOpt = opts.validateFormats\n    opts.validateFormats = false\n\n    this.RULES = getRules()\n    checkOptions.call(this, removedOptions, opts, \"NOT SUPPORTED\")\n    checkOptions.call(this, deprecatedOptions, opts, \"DEPRECATED\", \"warn\")\n    this._metaOpts = getMetaSchemaOptions.call(this)\n\n    if (opts.formats) addInitialFormats.call(this)\n    this._addVocabularies()\n    this._addDefaultMetaSchema()\n    if (opts.keywords) addInitialKeywords.call(this, opts.keywords)\n    if (typeof opts.meta == \"object\") this.addMetaSchema(opts.meta)\n    addInitialSchemas.call(this)\n    opts.validateFormats = formatOpt\n  }\n\n  _addVocabularies(): void {\n    this.addKeyword(\"$async\")\n  }\n\n  _addDefaultMetaSchema(): void {\n    const {$data, meta, schemaId} = this.opts\n    let _dataRefSchema: SchemaObject = $dataRefSchema\n    if (schemaId === \"id\") {\n      _dataRefSchema = {...$dataRefSchema}\n      _dataRefSchema.id = _dataRefSchema.$id\n      delete _dataRefSchema.$id\n    }\n    if (meta && $data) this.addMetaSchema(_dataRefSchema, _dataRefSchema[schemaId], false)\n  }\n\n  defaultMeta(): string | AnySchemaObject | undefined {\n    const {meta, schemaId} = this.opts\n    return (this.opts.defaultMeta = typeof meta == \"object\" ? meta[schemaId] || meta : undefined)\n  }\n\n  // Validate data using schema\n  // AnySchema will be compiled and cached using schema itself as a key for Map\n  validate(schema: Schema | string, data: unknown): boolean\n  validate(schemaKeyRef: AnySchema | string, data: unknown): boolean | Promise\n  validate(schema: Schema | JSONSchemaType | string, data: unknown): data is T\n  // Separated for type inference to work\n  // eslint-disable-next-line @typescript-eslint/unified-signatures\n  validate(schema: JTDSchemaType, data: unknown): data is T\n  // This overload is only intended for typescript inference, the first\n  // argument prevents manual type annotation from matching this overload\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  validate(\n    schema: T,\n    data: unknown\n  ): data is JTDDataType\n  // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\n  validate(schema: AsyncSchema, data: unknown | T): Promise\n  validate(schemaKeyRef: AnySchema | string, data: unknown): data is T | Promise\n  validate(\n    schemaKeyRef: AnySchema | string, // key, ref or schema object\n    // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\n    data: unknown | T // to be validated\n  ): boolean | Promise {\n    let v: AnyValidateFunction | undefined\n    if (typeof schemaKeyRef == \"string\") {\n      v = this.getSchema(schemaKeyRef)\n      if (!v) throw new Error(`no schema with key or ref \"${schemaKeyRef}\"`)\n    } else {\n      v = this.compile(schemaKeyRef)\n    }\n\n    const valid = v(data)\n    if (!(\"$async\" in v)) this.errors = v.errors\n    return valid\n  }\n\n  // Create validation function for passed schema\n  // _meta: true if schema is a meta-schema. Used internally to compile meta schemas of user-defined keywords.\n  compile(schema: Schema | JSONSchemaType, _meta?: boolean): ValidateFunction\n  // Separated for type inference to work\n  // eslint-disable-next-line @typescript-eslint/unified-signatures\n  compile(schema: JTDSchemaType, _meta?: boolean): ValidateFunction\n  // This overload is only intended for typescript inference, the first\n  // argument prevents manual type annotation from matching this overload\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  compile(\n    schema: T,\n    _meta?: boolean\n  ): ValidateFunction>\n  compile(schema: AsyncSchema, _meta?: boolean): AsyncValidateFunction\n  compile(schema: AnySchema, _meta?: boolean): AnyValidateFunction\n  compile(schema: AnySchema, _meta?: boolean): AnyValidateFunction {\n    const sch = this._addSchema(schema, _meta)\n    return (sch.validate || this._compileSchemaEnv(sch)) as AnyValidateFunction\n  }\n\n  // Creates validating function for passed schema with asynchronous loading of missing schemas.\n  // `loadSchema` option should be a function that accepts schema uri and returns promise that resolves with the schema.\n  // TODO allow passing schema URI\n  // meta - optional true to compile meta-schema\n  compileAsync(\n    schema: SchemaObject | JSONSchemaType,\n    _meta?: boolean\n  ): Promise>\n  // Separated for type inference to work\n  // eslint-disable-next-line @typescript-eslint/unified-signatures\n  compileAsync(schema: JTDSchemaType, _meta?: boolean): Promise>\n  compileAsync(schema: AsyncSchema, meta?: boolean): Promise>\n  // eslint-disable-next-line @typescript-eslint/unified-signatures\n  compileAsync(\n    schema: AnySchemaObject,\n    meta?: boolean\n  ): Promise>\n  compileAsync(\n    schema: AnySchemaObject,\n    meta?: boolean\n  ): Promise> {\n    if (typeof this.opts.loadSchema != \"function\") {\n      throw new Error(\"options.loadSchema should be a function\")\n    }\n    const {loadSchema} = this.opts\n    return runCompileAsync.call(this, schema, meta)\n\n    async function runCompileAsync(\n      this: Ajv,\n      _schema: AnySchemaObject,\n      _meta?: boolean\n    ): Promise {\n      await loadMetaSchema.call(this, _schema.$schema)\n      const sch = this._addSchema(_schema, _meta)\n      return sch.validate || _compileAsync.call(this, sch)\n    }\n\n    async function loadMetaSchema(this: Ajv, $ref?: string): Promise {\n      if ($ref && !this.getSchema($ref)) {\n        await runCompileAsync.call(this, {$ref}, true)\n      }\n    }\n\n    async function _compileAsync(this: Ajv, sch: SchemaEnv): Promise {\n      try {\n        return this._compileSchemaEnv(sch)\n      } catch (e) {\n        if (!(e instanceof MissingRefError)) throw e\n        checkLoaded.call(this, e)\n        await loadMissingSchema.call(this, e.missingSchema)\n        return _compileAsync.call(this, sch)\n      }\n    }\n\n    function checkLoaded(this: Ajv, {missingSchema: ref, missingRef}: MissingRefError): void {\n      if (this.refs[ref]) {\n        throw new Error(`AnySchema ${ref} is loaded but ${missingRef} cannot be resolved`)\n      }\n    }\n\n    async function loadMissingSchema(this: Ajv, ref: string): Promise {\n      const _schema = await _loadSchema.call(this, ref)\n      if (!this.refs[ref]) await loadMetaSchema.call(this, _schema.$schema)\n      if (!this.refs[ref]) this.addSchema(_schema, ref, meta)\n    }\n\n    async function _loadSchema(this: Ajv, ref: string): Promise {\n      const p = this._loading[ref]\n      if (p) return p\n      try {\n        return await (this._loading[ref] = loadSchema(ref))\n      } finally {\n        delete this._loading[ref]\n      }\n    }\n  }\n\n  // Adds schema to the instance\n  addSchema(\n    schema: AnySchema | AnySchema[], // If array is passed, `key` will be ignored\n    key?: string, // Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`.\n    _meta?: boolean, // true if schema is a meta-schema. Used internally, addMetaSchema should be used instead.\n    _validateSchema = this.opts.validateSchema // false to skip schema validation. Used internally, option validateSchema should be used instead.\n  ): Ajv {\n    if (Array.isArray(schema)) {\n      for (const sch of schema) this.addSchema(sch, undefined, _meta, _validateSchema)\n      return this\n    }\n    let id: string | undefined\n    if (typeof schema === \"object\") {\n      const {schemaId} = this.opts\n      id = schema[schemaId]\n      if (id !== undefined && typeof id != \"string\") {\n        throw new Error(`schema ${schemaId} must be string`)\n      }\n    }\n    key = normalizeId(key || id)\n    this._checkUnique(key)\n    this.schemas[key] = this._addSchema(schema, _meta, key, _validateSchema, true)\n    return this\n  }\n\n  // Add schema that will be used to validate other schemas\n  // options in META_IGNORE_OPTIONS are alway set to false\n  addMetaSchema(\n    schema: AnySchemaObject,\n    key?: string, // schema key\n    _validateSchema = this.opts.validateSchema // false to skip schema validation, can be used to override validateSchema option for meta-schema\n  ): Ajv {\n    this.addSchema(schema, key, true, _validateSchema)\n    return this\n  }\n\n  //  Validate schema against its meta-schema\n  validateSchema(schema: AnySchema, throwOrLogError?: boolean): boolean | Promise {\n    if (typeof schema == \"boolean\") return true\n    let $schema: string | AnySchemaObject | undefined\n    $schema = schema.$schema\n    if ($schema !== undefined && typeof $schema != \"string\") {\n      throw new Error(\"$schema must be a string\")\n    }\n    $schema = $schema || this.opts.defaultMeta || this.defaultMeta()\n    if (!$schema) {\n      this.logger.warn(\"meta-schema not available\")\n      this.errors = null\n      return true\n    }\n    const valid = this.validate($schema, schema)\n    if (!valid && throwOrLogError) {\n      const message = \"schema is invalid: \" + this.errorsText()\n      if (this.opts.validateSchema === \"log\") this.logger.error(message)\n      else throw new Error(message)\n    }\n    return valid\n  }\n\n  // Get compiled schema by `key` or `ref`.\n  // (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id)\n  getSchema(keyRef: string): AnyValidateFunction | undefined {\n    let sch\n    while (typeof (sch = getSchEnv.call(this, keyRef)) == \"string\") keyRef = sch\n    if (sch === undefined) {\n      const {schemaId} = this.opts\n      const root = new SchemaEnv({schema: {}, schemaId})\n      sch = resolveSchema.call(this, root, keyRef)\n      if (!sch) return\n      this.refs[keyRef] = sch\n    }\n    return (sch.validate || this._compileSchemaEnv(sch)) as AnyValidateFunction | undefined\n  }\n\n  // Remove cached schema(s).\n  // If no parameter is passed all schemas but meta-schemas are removed.\n  // If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed.\n  // Even if schema is referenced by other schemas it still can be removed as other schemas have local references.\n  removeSchema(schemaKeyRef?: AnySchema | string | RegExp): Ajv {\n    if (schemaKeyRef instanceof RegExp) {\n      this._removeAllSchemas(this.schemas, schemaKeyRef)\n      this._removeAllSchemas(this.refs, schemaKeyRef)\n      return this\n    }\n    switch (typeof schemaKeyRef) {\n      case \"undefined\":\n        this._removeAllSchemas(this.schemas)\n        this._removeAllSchemas(this.refs)\n        this._cache.clear()\n        return this\n      case \"string\": {\n        const sch = getSchEnv.call(this, schemaKeyRef)\n        if (typeof sch == \"object\") this._cache.delete(sch.schema)\n        delete this.schemas[schemaKeyRef]\n        delete this.refs[schemaKeyRef]\n        return this\n      }\n      case \"object\": {\n        const cacheKey = schemaKeyRef\n        this._cache.delete(cacheKey)\n        let id = schemaKeyRef[this.opts.schemaId]\n        if (id) {\n          id = normalizeId(id)\n          delete this.schemas[id]\n          delete this.refs[id]\n        }\n        return this\n      }\n      default:\n        throw new Error(\"ajv.removeSchema: invalid parameter\")\n    }\n  }\n\n  // add \"vocabulary\" - a collection of keywords\n  addVocabulary(definitions: Vocabulary): Ajv {\n    for (const def of definitions) this.addKeyword(def)\n    return this\n  }\n\n  addKeyword(\n    kwdOrDef: string | KeywordDefinition,\n    def?: KeywordDefinition // deprecated\n  ): Ajv {\n    let keyword: string | string[]\n    if (typeof kwdOrDef == \"string\") {\n      keyword = kwdOrDef\n      if (typeof def == \"object\") {\n        this.logger.warn(\"these parameters are deprecated, see docs for addKeyword\")\n        def.keyword = keyword\n      }\n    } else if (typeof kwdOrDef == \"object\" && def === undefined) {\n      def = kwdOrDef\n      keyword = def.keyword\n      if (Array.isArray(keyword) && !keyword.length) {\n        throw new Error(\"addKeywords: keyword must be string or non-empty array\")\n      }\n    } else {\n      throw new Error(\"invalid addKeywords parameters\")\n    }\n\n    checkKeyword.call(this, keyword, def)\n    if (!def) {\n      eachItem(keyword, (kwd) => addRule.call(this, kwd))\n      return this\n    }\n    keywordMetaschema.call(this, def)\n    const definition: AddedKeywordDefinition = {\n      ...def,\n      type: getJSONTypes(def.type),\n      schemaType: getJSONTypes(def.schemaType),\n    }\n    eachItem(\n      keyword,\n      definition.type.length === 0\n        ? (k) => addRule.call(this, k, definition)\n        : (k) => definition.type.forEach((t) => addRule.call(this, k, definition, t))\n    )\n    return this\n  }\n\n  getKeyword(keyword: string): AddedKeywordDefinition | boolean {\n    const rule = this.RULES.all[keyword]\n    return typeof rule == \"object\" ? rule.definition : !!rule\n  }\n\n  // Remove keyword\n  removeKeyword(keyword: string): Ajv {\n    // TODO return type should be Ajv\n    const {RULES} = this\n    delete RULES.keywords[keyword]\n    delete RULES.all[keyword]\n    for (const group of RULES.rules) {\n      const i = group.rules.findIndex((rule) => rule.keyword === keyword)\n      if (i >= 0) group.rules.splice(i, 1)\n    }\n    return this\n  }\n\n  // Add format\n  addFormat(name: string, format: Format): Ajv {\n    if (typeof format == \"string\") format = new RegExp(format)\n    this.formats[name] = format\n    return this\n  }\n\n  errorsText(\n    errors: ErrorObject[] | null | undefined = this.errors, // optional array of validation errors\n    {separator = \", \", dataVar = \"data\"}: ErrorsTextOptions = {} // optional options with properties `separator` and `dataVar`\n  ): string {\n    if (!errors || errors.length === 0) return \"No errors\"\n    return errors\n      .map((e) => `${dataVar}${e.instancePath} ${e.message}`)\n      .reduce((text, msg) => text + separator + msg)\n  }\n\n  $dataMetaSchema(metaSchema: AnySchemaObject, keywordsJsonPointers: string[]): AnySchemaObject {\n    const rules = this.RULES.all\n    metaSchema = JSON.parse(JSON.stringify(metaSchema))\n    for (const jsonPointer of keywordsJsonPointers) {\n      const segments = jsonPointer.split(\"/\").slice(1) // first segment is an empty string\n      let keywords = metaSchema\n      for (const seg of segments) keywords = keywords[seg] as AnySchemaObject\n\n      for (const key in rules) {\n        const rule = rules[key]\n        if (typeof rule != \"object\") continue\n        const {$data} = rule.definition\n        const schema = keywords[key] as AnySchemaObject | undefined\n        if ($data && schema) keywords[key] = schemaOrData(schema)\n      }\n    }\n\n    return metaSchema\n  }\n\n  private _removeAllSchemas(schemas: {[Ref in string]?: SchemaEnv | string}, regex?: RegExp): void {\n    for (const keyRef in schemas) {\n      const sch = schemas[keyRef]\n      if (!regex || regex.test(keyRef)) {\n        if (typeof sch == \"string\") {\n          delete schemas[keyRef]\n        } else if (sch && !sch.meta) {\n          this._cache.delete(sch.schema)\n          delete schemas[keyRef]\n        }\n      }\n    }\n  }\n\n  _addSchema(\n    schema: AnySchema,\n    meta?: boolean,\n    baseId?: string,\n    validateSchema = this.opts.validateSchema,\n    addSchema = this.opts.addUsedSchema\n  ): SchemaEnv {\n    let id: string | undefined\n    const {schemaId} = this.opts\n    if (typeof schema == \"object\") {\n      id = schema[schemaId]\n    } else {\n      if (this.opts.jtd) throw new Error(\"schema must be object\")\n      else if (typeof schema != \"boolean\") throw new Error(\"schema must be object or boolean\")\n    }\n    let sch = this._cache.get(schema)\n    if (sch !== undefined) return sch\n\n    baseId = normalizeId(id || baseId)\n    const localRefs = getSchemaRefs.call(this, schema, baseId)\n    sch = new SchemaEnv({schema, schemaId, meta, baseId, localRefs})\n    this._cache.set(sch.schema, sch)\n    if (addSchema && !baseId.startsWith(\"#\")) {\n      // TODO atm it is allowed to overwrite schemas without id (instead of not adding them)\n      if (baseId) this._checkUnique(baseId)\n      this.refs[baseId] = sch\n    }\n    if (validateSchema) this.validateSchema(schema, true)\n    return sch\n  }\n\n  private _checkUnique(id: string): void {\n    if (this.schemas[id] || this.refs[id]) {\n      throw new Error(`schema with key or id \"${id}\" already exists`)\n    }\n  }\n\n  private _compileSchemaEnv(sch: SchemaEnv): AnyValidateFunction {\n    if (sch.meta) this._compileMetaSchema(sch)\n    else compileSchema.call(this, sch)\n\n    /* istanbul ignore if */\n    if (!sch.validate) throw new Error(\"ajv implementation error\")\n    return sch.validate\n  }\n\n  private _compileMetaSchema(sch: SchemaEnv): void {\n    const currentOpts = this.opts\n    this.opts = this._metaOpts\n    try {\n      compileSchema.call(this, sch)\n    } finally {\n      this.opts = currentOpts\n    }\n  }\n}\n\nexport interface ErrorsTextOptions {\n  separator?: string\n  dataVar?: string\n}\n\nfunction checkOptions(\n  this: Ajv,\n  checkOpts: OptionsInfo,\n  options: Options & RemovedOptions,\n  msg: string,\n  log: \"warn\" | \"error\" = \"error\"\n): void {\n  for (const key in checkOpts) {\n    const opt = key as keyof typeof checkOpts\n    if (opt in options) this.logger[log](`${msg}: option ${key}. ${checkOpts[opt]}`)\n  }\n}\n\nfunction getSchEnv(this: Ajv, keyRef: string): SchemaEnv | string | undefined {\n  keyRef = normalizeId(keyRef) // TODO tests fail without this line\n  return this.schemas[keyRef] || this.refs[keyRef]\n}\n\nfunction addInitialSchemas(this: Ajv): void {\n  const optsSchemas = this.opts.schemas\n  if (!optsSchemas) return\n  if (Array.isArray(optsSchemas)) this.addSchema(optsSchemas)\n  else for (const key in optsSchemas) this.addSchema(optsSchemas[key] as AnySchema, key)\n}\n\nfunction addInitialFormats(this: Ajv): void {\n  for (const name in this.opts.formats) {\n    const format = this.opts.formats[name]\n    if (format) this.addFormat(name, format)\n  }\n}\n\nfunction addInitialKeywords(\n  this: Ajv,\n  defs: Vocabulary | {[K in string]?: KeywordDefinition}\n): void {\n  if (Array.isArray(defs)) {\n    this.addVocabulary(defs)\n    return\n  }\n  this.logger.warn(\"keywords option as map is deprecated, pass array\")\n  for (const keyword in defs) {\n    const def = defs[keyword] as KeywordDefinition\n    if (!def.keyword) def.keyword = keyword\n    this.addKeyword(def)\n  }\n}\n\nfunction getMetaSchemaOptions(this: Ajv): InstanceOptions {\n  const metaOpts = {...this.opts}\n  for (const opt of META_IGNORE_OPTIONS) delete metaOpts[opt]\n  return metaOpts\n}\n\nconst noLogs = {log() {}, warn() {}, error() {}}\n\nfunction getLogger(logger?: Partial | false): Logger {\n  if (logger === false) return noLogs\n  if (logger === undefined) return console\n  if (logger.log && logger.warn && logger.error) return logger as Logger\n  throw new Error(\"logger must implement log, warn and error methods\")\n}\n\nconst KEYWORD_NAME = /^[a-z_$][a-z0-9_$:-]*$/i\n\nfunction checkKeyword(this: Ajv, keyword: string | string[], def?: KeywordDefinition): void {\n  const {RULES} = this\n  eachItem(keyword, (kwd) => {\n    if (RULES.keywords[kwd]) throw new Error(`Keyword ${kwd} is already defined`)\n    if (!KEYWORD_NAME.test(kwd)) throw new Error(`Keyword ${kwd} has invalid name`)\n  })\n  if (!def) return\n  if (def.$data && !(\"code\" in def || \"validate\" in def)) {\n    throw new Error('$data keyword must have \"code\" or \"validate\" function')\n  }\n}\n\nfunction addRule(\n  this: Ajv,\n  keyword: string,\n  definition?: AddedKeywordDefinition,\n  dataType?: JSONType\n): void {\n  const post = definition?.post\n  if (dataType && post) throw new Error('keyword with \"post\" flag cannot have \"type\"')\n  const {RULES} = this\n  let ruleGroup = post ? RULES.post : RULES.rules.find(({type: t}) => t === dataType)\n  if (!ruleGroup) {\n    ruleGroup = {type: dataType, rules: []}\n    RULES.rules.push(ruleGroup)\n  }\n  RULES.keywords[keyword] = true\n  if (!definition) return\n\n  const rule: Rule = {\n    keyword,\n    definition: {\n      ...definition,\n      type: getJSONTypes(definition.type),\n      schemaType: getJSONTypes(definition.schemaType),\n    },\n  }\n  if (definition.before) addBeforeRule.call(this, ruleGroup, rule, definition.before)\n  else ruleGroup.rules.push(rule)\n  RULES.all[keyword] = rule\n  definition.implements?.forEach((kwd) => this.addKeyword(kwd))\n}\n\nfunction addBeforeRule(this: Ajv, ruleGroup: RuleGroup, rule: Rule, before: string): void {\n  const i = ruleGroup.rules.findIndex((_rule) => _rule.keyword === before)\n  if (i >= 0) {\n    ruleGroup.rules.splice(i, 0, rule)\n  } else {\n    ruleGroup.rules.push(rule)\n    this.logger.warn(`rule ${before} is not defined`)\n  }\n}\n\nfunction keywordMetaschema(this: Ajv, def: KeywordDefinition): void {\n  let {metaSchema} = def\n  if (metaSchema === undefined) return\n  if (def.$data && this.opts.$data) metaSchema = schemaOrData(metaSchema)\n  def.validateSchema = this.compile(metaSchema, true)\n}\n\nconst $dataRef = {\n  $ref: \"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#\",\n}\n\nfunction schemaOrData(schema: AnySchema): AnySchemaObject {\n  return {anyOf: [schema, $dataRef]}\n}\n", "import type {CodeKeywordDefinition, AnySchema} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport MissingRefError from \"../../compile/ref_error\"\nimport {callValidateCode} from \"../code\"\nimport {_, nil, stringify, Code, Name} from \"../../compile/codegen\"\nimport N from \"../../compile/names\"\nimport {SchemaEnv, resolveRef} from \"../../compile\"\nimport {mergeEvaluated} from \"../../compile/util\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"$ref\",\n  schemaType: \"string\",\n  code(cxt: KeywordCxt): void {\n    const {gen, schema: $ref, it} = cxt\n    const {baseId, schemaEnv: env, validateName, opts, self} = it\n    const {root} = env\n    if (($ref === \"#\" || $ref === \"#/\") && baseId === root.baseId) return callRootRef()\n    const schOrEnv = resolveRef.call(self, root, baseId, $ref)\n    if (schOrEnv === undefined) throw new MissingRefError(it.opts.uriResolver, baseId, $ref)\n    if (schOrEnv instanceof SchemaEnv) return callValidate(schOrEnv)\n    return inlineRefSchema(schOrEnv)\n\n    function callRootRef(): void {\n      if (env === root) return callRef(cxt, validateName, env, env.$async)\n      const rootName = gen.scopeValue(\"root\", {ref: root})\n      return callRef(cxt, _`${rootName}.validate`, root, root.$async)\n    }\n\n    function callValidate(sch: SchemaEnv): void {\n      const v = getValidate(cxt, sch)\n      callRef(cxt, v, sch, sch.$async)\n    }\n\n    function inlineRefSchema(sch: AnySchema): void {\n      const schName = gen.scopeValue(\n        \"schema\",\n        opts.code.source === true ? {ref: sch, code: stringify(sch)} : {ref: sch}\n      )\n      const valid = gen.name(\"valid\")\n      const schCxt = cxt.subschema(\n        {\n          schema: sch,\n          dataTypes: [],\n          schemaPath: nil,\n          topSchemaRef: schName,\n          errSchemaPath: $ref,\n        },\n        valid\n      )\n      cxt.mergeEvaluated(schCxt)\n      cxt.ok(valid)\n    }\n  },\n}\n\nexport function getValidate(cxt: KeywordCxt, sch: SchemaEnv): Code {\n  const {gen} = cxt\n  return sch.validate\n    ? gen.scopeValue(\"validate\", {ref: sch.validate})\n    : _`${gen.scopeValue(\"wrapper\", {ref: sch})}.validate`\n}\n\nexport function callRef(cxt: KeywordCxt, v: Code, sch?: SchemaEnv, $async?: boolean): void {\n  const {gen, it} = cxt\n  const {allErrors, schemaEnv: env, opts} = it\n  const passCxt = opts.passContext ? N.this : nil\n  if ($async) callAsyncRef()\n  else callSyncRef()\n\n  function callAsyncRef(): void {\n    if (!env.$async) throw new Error(\"async schema referenced by sync schema\")\n    const valid = gen.let(\"valid\")\n    gen.try(\n      () => {\n        gen.code(_`await ${callValidateCode(cxt, v, passCxt)}`)\n        addEvaluatedFrom(v) // TODO will not work with async, it has to be returned with the result\n        if (!allErrors) gen.assign(valid, true)\n      },\n      (e) => {\n        gen.if(_`!(${e} instanceof ${it.ValidationError as Name})`, () => gen.throw(e))\n        addErrorsFrom(e)\n        if (!allErrors) gen.assign(valid, false)\n      }\n    )\n    cxt.ok(valid)\n  }\n\n  function callSyncRef(): void {\n    cxt.result(\n      callValidateCode(cxt, v, passCxt),\n      () => addEvaluatedFrom(v),\n      () => addErrorsFrom(v)\n    )\n  }\n\n  function addErrorsFrom(source: Code): void {\n    const errs = _`${source}.errors`\n    gen.assign(N.vErrors, _`${N.vErrors} === null ? ${errs} : ${N.vErrors}.concat(${errs})`) // TODO tagged\n    gen.assign(N.errors, _`${N.vErrors}.length`)\n  }\n\n  function addEvaluatedFrom(source: Code): void {\n    if (!it.opts.unevaluated) return\n    const schEvaluated = sch?.validate?.evaluated\n    // TODO refactor\n    if (it.props !== true) {\n      if (schEvaluated && !schEvaluated.dynamicProps) {\n        if (schEvaluated.props !== undefined) {\n          it.props = mergeEvaluated.props(gen, schEvaluated.props, it.props)\n        }\n      } else {\n        const props = gen.var(\"props\", _`${source}.evaluated.props`)\n        it.props = mergeEvaluated.props(gen, props, it.props, Name)\n      }\n    }\n    if (it.items !== true) {\n      if (schEvaluated && !schEvaluated.dynamicItems) {\n        if (schEvaluated.items !== undefined) {\n          it.items = mergeEvaluated.items(gen, schEvaluated.items, it.items)\n        }\n      } else {\n        const items = gen.var(\"items\", _`${source}.evaluated.items`)\n        it.items = mergeEvaluated.items(gen, items, it.items, Name)\n      }\n    }\n  }\n}\n\nexport default def\n", "import type {Vocabulary} from \"ajv/dist/core\"\nimport refKeyword from \"ajv/dist/vocabularies/core/ref\"\n\nconst core: Vocabulary = [\n  \"$schema\",\n  \"id\",\n  \"$defs\",\n  {keyword: \"$comment\"},\n  \"definitions\",\n  refKeyword,\n]\n\nexport default core\n", "import type {\n  CodeKeywordDefinition,\n  ErrorObject,\n  KeywordCxt,\n  KeywordErrorDefinition,\n} from \"ajv/dist/core\"\nimport type {KeywordErrorCxt} from \"ajv/dist/types\"\nimport {_, str, Code} from \"ajv/dist/core\"\nimport {operators} from \"ajv/dist/compile/codegen\"\n\nconst ops = operators\n\nexport type LimitKwd = \"maximum\" | \"minimum\"\n\nexport type ExclusiveLimitKwd = \"exclusiveMaximum\" | \"exclusiveMinimum\"\n\ntype Comparison = \"<=\" | \">=\" | \"<\" | \">\"\n\ninterface KwdOp {\n  okStr: Comparison\n  ok: Code\n  fail: Code\n}\n\ninterface KwdDef {\n  exclusive: ExclusiveLimitKwd\n  ops: [KwdOp, KwdOp]\n}\n\nconst KWDs: {[K in LimitKwd]: KwdDef} = {\n  maximum: {\n    exclusive: \"exclusiveMaximum\",\n    ops: [\n      {okStr: \"<=\", ok: ops.LTE, fail: ops.GT},\n      {okStr: \"<\", ok: ops.LT, fail: ops.GTE},\n    ],\n  },\n  minimum: {\n    exclusive: \"exclusiveMinimum\",\n    ops: [\n      {okStr: \">=\", ok: ops.GTE, fail: ops.LT},\n      {okStr: \">\", ok: ops.GT, fail: ops.LTE},\n    ],\n  },\n}\n\nexport type LimitNumberError = ErrorObject<\n  LimitKwd,\n  {limit: number; comparison: Comparison},\n  number | {$data: string}\n>\n\nconst error: KeywordErrorDefinition = {\n  message: (cxt) => str`must be ${kwdOp(cxt).okStr} ${cxt.schemaCode}`,\n  params: (cxt) => _`{comparison: ${kwdOp(cxt).okStr}, limit: ${cxt.schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: Object.keys(KWDs),\n  type: \"number\",\n  schemaType: \"number\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {data, schemaCode} = cxt\n    cxt.fail$data(_`${data} ${kwdOp(cxt).fail} ${schemaCode} || isNaN(${data})`)\n  },\n}\n\nfunction kwdOp(cxt: KeywordErrorCxt): KwdOp {\n  const keyword = cxt.keyword as LimitKwd\n  const opsIdx = cxt.parentSchema?.[KWDs[keyword].exclusive] ? 1 : 0\n  return KWDs[keyword].ops[opsIdx]\n}\n\nexport default def\n", "import type {\n  CodeKeywordDefinition,\n  // ErrorObject,\n  KeywordCxt,\n  // KeywordErrorDefinition,\n} from \"ajv/dist/core\"\nimport {LimitKwd, ExclusiveLimitKwd} from \"./limitNumber\"\n\nconst KWDs: {[K in ExclusiveLimitKwd]: LimitKwd} = {\n  exclusiveMaximum: \"maximum\",\n  exclusiveMinimum: \"minimum\",\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: Object.keys(KWDs),\n  type: \"number\",\n  schemaType: \"boolean\",\n  code({keyword, parentSchema}: KeywordCxt) {\n    const limitKwd = KWDs[keyword as ExclusiveLimitKwd]\n    if (parentSchema[limitKwd] === undefined) {\n      throw new Error(`${keyword} can only be used with ${limitKwd}`)\n    }\n  },\n}\n\nexport default def\n", "import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str} from \"../../compile/codegen\"\n\nexport type MultipleOfError = ErrorObject<\n  \"multipleOf\",\n  {multipleOf: number},\n  number | {$data: string}\n>\n\nconst error: KeywordErrorDefinition = {\n  message: ({schemaCode}) => str`must be multiple of ${schemaCode}`,\n  params: ({schemaCode}) => _`{multipleOf: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"multipleOf\",\n  type: \"number\",\n  schemaType: \"number\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, data, schemaCode, it} = cxt\n    // const bdt = bad$DataType(schemaCode, def.schemaType, $data)\n    const prec = it.opts.multipleOfPrecision\n    const res = gen.let(\"res\")\n    const invalid = prec\n      ? _`Math.abs(Math.round(${res}) - ${res}) > 1e-${prec}`\n      : _`${res} !== parseInt(${res})`\n    cxt.fail$data(_`(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`)\n  },\n}\n\nexport default def\n", "// https://mathiasbynens.be/notes/javascript-encoding\n// https://github.com/bestiejs/punycode.js - punycode.ucs2.decode\nexport default function ucs2length(str: string): number {\n  const len = str.length\n  let length = 0\n  let pos = 0\n  let value: number\n  while (pos < len) {\n    length++\n    value = str.charCodeAt(pos++)\n    if (value >= 0xd800 && value <= 0xdbff && pos < len) {\n      // high surrogate, and there is a next character\n      value = str.charCodeAt(pos)\n      if ((value & 0xfc00) === 0xdc00) pos++ // low surrogate\n    }\n  }\n  return length\n}\n\nucs2length.code = 'require(\"ajv/dist/runtime/ucs2length\").default'\n", "import type {CodeKeywordDefinition, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, operators} from \"../../compile/codegen\"\nimport {useFunc} from \"../../compile/util\"\nimport ucs2length from \"../../runtime/ucs2length\"\n\nconst error: KeywordErrorDefinition = {\n  message({keyword, schemaCode}) {\n    const comp = keyword === \"maxLength\" ? \"more\" : \"fewer\"\n    return str`must NOT have ${comp} than ${schemaCode} characters`\n  },\n  params: ({schemaCode}) => _`{limit: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: [\"maxLength\", \"minLength\"],\n  type: \"string\",\n  schemaType: \"number\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {keyword, data, schemaCode, it} = cxt\n    const op = keyword === \"maxLength\" ? operators.GT : operators.LT\n    const len =\n      it.opts.unicode === false ? _`${data}.length` : _`${useFunc(cxt.gen, ucs2length)}(${data})`\n    cxt.fail$data(_`${len} ${op} ${schemaCode}`)\n  },\n}\n\nexport default def\n", "import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {usePattern} from \"../code\"\nimport {_, str} from \"../../compile/codegen\"\n\nexport type PatternError = ErrorObject<\"pattern\", {pattern: string}, string | {$data: string}>\n\nconst error: KeywordErrorDefinition = {\n  message: ({schemaCode}) => str`must match pattern \"${schemaCode}\"`,\n  params: ({schemaCode}) => _`{pattern: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"pattern\",\n  type: \"string\",\n  schemaType: \"string\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {data, $data, schema, schemaCode, it} = cxt\n    // TODO regexp should be wrapped in try/catchs\n    const u = it.opts.unicodeRegExp ? \"u\" : \"\"\n    const regExp = $data ? _`(new RegExp(${schemaCode}, ${u}))` : usePattern(cxt, schema)\n    cxt.fail$data(_`!${regExp}.test(${data})`)\n  },\n}\n\nexport default def\n", "import type {CodeKeywordDefinition, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, operators} from \"../../compile/codegen\"\n\nconst error: KeywordErrorDefinition = {\n  message({keyword, schemaCode}) {\n    const comp = keyword === \"maxProperties\" ? \"more\" : \"fewer\"\n    return str`must NOT have ${comp} than ${schemaCode} properties`\n  },\n  params: ({schemaCode}) => _`{limit: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: [\"maxProperties\", \"minProperties\"],\n  type: \"object\",\n  schemaType: \"number\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {keyword, data, schemaCode} = cxt\n    const op = keyword === \"maxProperties\" ? operators.GT : operators.LT\n    cxt.fail$data(_`Object.keys(${data}).length ${op} ${schemaCode}`)\n  },\n}\n\nexport default def\n", "import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {\n  checkReportMissingProp,\n  checkMissingProp,\n  reportMissingProp,\n  propertyInData,\n  noPropertyInData,\n} from \"../code\"\nimport {_, str, nil, not, Name, Code} from \"../../compile/codegen\"\nimport {checkStrictMode} from \"../../compile/util\"\n\nexport type RequiredError = ErrorObject<\n  \"required\",\n  {missingProperty: string},\n  string[] | {$data: string}\n>\n\nconst error: KeywordErrorDefinition = {\n  message: ({params: {missingProperty}}) => str`must have required property '${missingProperty}'`,\n  params: ({params: {missingProperty}}) => _`{missingProperty: ${missingProperty}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"required\",\n  type: \"object\",\n  schemaType: \"array\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, schema, schemaCode, data, $data, it} = cxt\n    const {opts} = it\n    if (!$data && schema.length === 0) return\n    const useLoop = schema.length >= opts.loopRequired\n    if (it.allErrors) allErrorsMode()\n    else exitOnErrorMode()\n\n    if (opts.strictRequired) {\n      const props = cxt.parentSchema.properties\n      const {definedProperties} = cxt.it\n      for (const requiredKey of schema) {\n        if (props?.[requiredKey] === undefined && !definedProperties.has(requiredKey)) {\n          const schemaPath = it.schemaEnv.baseId + it.errSchemaPath\n          const msg = `required property \"${requiredKey}\" is not defined at \"${schemaPath}\" (strictRequired)`\n          checkStrictMode(it, msg, it.opts.strictRequired)\n        }\n      }\n    }\n\n    function allErrorsMode(): void {\n      if (useLoop || $data) {\n        cxt.block$data(nil, loopAllRequired)\n      } else {\n        for (const prop of schema) {\n          checkReportMissingProp(cxt, prop)\n        }\n      }\n    }\n\n    function exitOnErrorMode(): void {\n      const missing = gen.let(\"missing\")\n      if (useLoop || $data) {\n        const valid = gen.let(\"valid\", true)\n        cxt.block$data(valid, () => loopUntilMissing(missing, valid))\n        cxt.ok(valid)\n      } else {\n        gen.if(checkMissingProp(cxt, schema, missing))\n        reportMissingProp(cxt, missing)\n        gen.else()\n      }\n    }\n\n    function loopAllRequired(): void {\n      gen.forOf(\"prop\", schemaCode as Code, (prop) => {\n        cxt.setParams({missingProperty: prop})\n        gen.if(noPropertyInData(gen, data, prop, opts.ownProperties), () => cxt.error())\n      })\n    }\n\n    function loopUntilMissing(missing: Name, valid: Name): void {\n      cxt.setParams({missingProperty: missing})\n      gen.forOf(\n        missing,\n        schemaCode as Code,\n        () => {\n          gen.assign(valid, propertyInData(gen, data, missing, opts.ownProperties))\n          gen.if(not(valid), () => {\n            cxt.error()\n            gen.break()\n          })\n        },\n        nil\n      )\n    }\n  },\n}\n\nexport default def\n", "import type {CodeKeywordDefinition, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, operators} from \"../../compile/codegen\"\n\nconst error: KeywordErrorDefinition = {\n  message({keyword, schemaCode}) {\n    const comp = keyword === \"maxItems\" ? \"more\" : \"fewer\"\n    return str`must NOT have ${comp} than ${schemaCode} items`\n  },\n  params: ({schemaCode}) => _`{limit: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: [\"maxItems\", \"minItems\"],\n  type: \"array\",\n  schemaType: \"number\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {keyword, data, schemaCode} = cxt\n    const op = keyword === \"maxItems\" ? operators.GT : operators.LT\n    cxt.fail$data(_`${data}.length ${op} ${schemaCode}`)\n  },\n}\n\nexport default def\n", "// https://github.com/ajv-validator/ajv/issues/889\nimport * as equal from \"fast-deep-equal\"\n\ntype Equal = typeof equal & {code: string}\n;(equal as Equal).code = 'require(\"ajv/dist/runtime/equal\").default'\n\nexport default equal as Equal\n", "import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {checkDataTypes, getSchemaTypes, DataType} from \"../../compile/validate/dataType\"\nimport {_, str, Name} from \"../../compile/codegen\"\nimport {useFunc} from \"../../compile/util\"\nimport equal from \"../../runtime/equal\"\n\nexport type UniqueItemsError = ErrorObject<\n  \"uniqueItems\",\n  {i: number; j: number},\n  boolean | {$data: string}\n>\n\nconst error: KeywordErrorDefinition = {\n  message: ({params: {i, j}}) =>\n    str`must NOT have duplicate items (items ## ${j} and ${i} are identical)`,\n  params: ({params: {i, j}}) => _`{i: ${i}, j: ${j}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"uniqueItems\",\n  type: \"array\",\n  schemaType: \"boolean\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, data, $data, schema, parentSchema, schemaCode, it} = cxt\n    if (!$data && !schema) return\n    const valid = gen.let(\"valid\")\n    const itemTypes = parentSchema.items ? getSchemaTypes(parentSchema.items) : []\n    cxt.block$data(valid, validateUniqueItems, _`${schemaCode} === false`)\n    cxt.ok(valid)\n\n    function validateUniqueItems(): void {\n      const i = gen.let(\"i\", _`${data}.length`)\n      const j = gen.let(\"j\")\n      cxt.setParams({i, j})\n      gen.assign(valid, true)\n      gen.if(_`${i} > 1`, () => (canOptimize() ? loopN : loopN2)(i, j))\n    }\n\n    function canOptimize(): boolean {\n      return itemTypes.length > 0 && !itemTypes.some((t) => t === \"object\" || t === \"array\")\n    }\n\n    function loopN(i: Name, j: Name): void {\n      const item = gen.name(\"item\")\n      const wrongType = checkDataTypes(itemTypes, item, it.opts.strictNumbers, DataType.Wrong)\n      const indices = gen.const(\"indices\", _`{}`)\n      gen.for(_`;${i}--;`, () => {\n        gen.let(item, _`${data}[${i}]`)\n        gen.if(wrongType, _`continue`)\n        if (itemTypes.length > 1) gen.if(_`typeof ${item} == \"string\"`, _`${item} += \"_\"`)\n        gen\n          .if(_`typeof ${indices}[${item}] == \"number\"`, () => {\n            gen.assign(j, _`${indices}[${item}]`)\n            cxt.error()\n            gen.assign(valid, false).break()\n          })\n          .code(_`${indices}[${item}] = ${i}`)\n      })\n    }\n\n    function loopN2(i: Name, j: Name): void {\n      const eql = useFunc(gen, equal)\n      const outer = gen.name(\"outer\")\n      gen.label(outer).for(_`;${i}--;`, () =>\n        gen.for(_`${j} = ${i}; ${j}--;`, () =>\n          gen.if(_`${eql}(${data}[${i}], ${data}[${j}])`, () => {\n            cxt.error()\n            gen.assign(valid, false).break(outer)\n          })\n        )\n      )\n    }\n  },\n}\n\nexport default def\n", "import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_} from \"../../compile/codegen\"\nimport {useFunc} from \"../../compile/util\"\nimport equal from \"../../runtime/equal\"\n\nexport type ConstError = ErrorObject<\"const\", {allowedValue: any}>\n\nconst error: KeywordErrorDefinition = {\n  message: \"must be equal to constant\",\n  params: ({schemaCode}) => _`{allowedValue: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"const\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, data, $data, schemaCode, schema} = cxt\n    if ($data || (schema && typeof schema == \"object\")) {\n      cxt.fail$data(_`!${useFunc(gen, equal)}(${data}, ${schemaCode})`)\n    } else {\n      cxt.fail(_`${schema} !== ${data}`)\n    }\n  },\n}\n\nexport default def\n", "import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, or, Name, Code} from \"../../compile/codegen\"\nimport {useFunc} from \"../../compile/util\"\nimport equal from \"../../runtime/equal\"\n\nexport type EnumError = ErrorObject<\"enum\", {allowedValues: any[]}, any[] | {$data: string}>\n\nconst error: KeywordErrorDefinition = {\n  message: \"must be equal to one of the allowed values\",\n  params: ({schemaCode}) => _`{allowedValues: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"enum\",\n  schemaType: \"array\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, data, $data, schema, schemaCode, it} = cxt\n    if (!$data && schema.length === 0) throw new Error(\"enum must have non-empty array\")\n    const useLoop = schema.length >= it.opts.loopEnum\n    let eql: Name | undefined\n    const getEql = (): Name => (eql ??= useFunc(gen, equal))\n\n    let valid: Code\n    if (useLoop || $data) {\n      valid = gen.let(\"valid\")\n      cxt.block$data(valid, loopEnum)\n    } else {\n      /* istanbul ignore if */\n      if (!Array.isArray(schema)) throw new Error(\"ajv implementation error\")\n      const vSchema = gen.const(\"vSchema\", schemaCode)\n      valid = or(...schema.map((_x: unknown, i: number) => equalCode(vSchema, i)))\n    }\n    cxt.pass(valid)\n\n    function loopEnum(): void {\n      gen.assign(valid, false)\n      gen.forOf(\"v\", schemaCode as Code, (v) =>\n        gen.if(_`${getEql()}(${data}, ${v})`, () => gen.assign(valid, true).break())\n      )\n    }\n\n    function equalCode(vSchema: Name, i: number): Code {\n      const sch = schema[i]\n      return typeof sch === \"object\" && sch !== null\n        ? _`${getEql()}(${data}, ${vSchema}[${i}])`\n        : _`${data} === ${sch}`\n    }\n  },\n}\n\nexport default def\n", "import type {ErrorObject, Vocabulary} from \"ajv/dist/core\"\nimport limitNumber, {LimitNumberError} from \"./limitNumber\"\nimport limitNumberExclusive from \"./limitNumberExclusive\"\nimport multipleOf, {MultipleOfError} from \"ajv/dist/vocabularies/validation/multipleOf\"\nimport limitLength from \"ajv/dist/vocabularies/validation/limitLength\"\nimport pattern, {PatternError} from \"ajv/dist/vocabularies/validation/pattern\"\nimport limitProperties from \"ajv/dist/vocabularies/validation/limitProperties\"\nimport required, {RequiredError} from \"ajv/dist/vocabularies/validation/required\"\nimport limitItems from \"ajv/dist/vocabularies/validation/limitItems\"\nimport uniqueItems, {UniqueItemsError} from \"ajv/dist/vocabularies/validation/uniqueItems\"\nimport constKeyword, {ConstError} from \"ajv/dist/vocabularies/validation/const\"\nimport enumKeyword, {EnumError} from \"ajv/dist/vocabularies/validation/enum\"\n\nconst validation: Vocabulary = [\n  // number\n  limitNumber,\n  limitNumberExclusive,\n  multipleOf,\n  // string\n  limitLength,\n  pattern,\n  // object\n  limitProperties,\n  required,\n  // array\n  limitItems,\n  uniqueItems,\n  // any\n  {keyword: \"type\", schemaType: [\"string\", \"array\"]},\n  {keyword: \"nullable\", schemaType: \"boolean\"},\n  constKeyword,\n  enumKeyword,\n]\n\nexport default validation\n\ntype LimitError = ErrorObject<\n  \"maxItems\" | \"minItems\" | \"minProperties\" | \"maxProperties\" | \"minLength\" | \"maxLength\",\n  {limit: number},\n  number | {$data: string}\n>\n\nexport type ValidationKeywordError =\n  | LimitError\n  | LimitNumberError\n  | MultipleOfError\n  | PatternError\n  | RequiredError\n  | UniqueItemsError\n  | ConstError\n  | EnumError\n", "import type {\n  CodeKeywordDefinition,\n  ErrorObject,\n  KeywordErrorDefinition,\n  AnySchema,\n} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, not, Name} from \"../../compile/codegen\"\nimport {alwaysValidSchema, checkStrictMode, Type} from \"../../compile/util\"\n\nexport type AdditionalItemsError = ErrorObject<\"additionalItems\", {limit: number}, AnySchema>\n\nconst error: KeywordErrorDefinition = {\n  message: ({params: {len}}) => str`must NOT have more than ${len} items`,\n  params: ({params: {len}}) => _`{limit: ${len}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"additionalItems\" as const,\n  type: \"array\",\n  schemaType: [\"boolean\", \"object\"],\n  before: \"uniqueItems\",\n  error,\n  code(cxt: KeywordCxt) {\n    const {parentSchema, it} = cxt\n    const {items} = parentSchema\n    if (!Array.isArray(items)) {\n      checkStrictMode(it, '\"additionalItems\" is ignored when \"items\" is not an array of schemas')\n      return\n    }\n    validateAdditionalItems(cxt, items)\n  },\n}\n\nexport function validateAdditionalItems(cxt: KeywordCxt, items: AnySchema[]): void {\n  const {gen, schema, data, keyword, it} = cxt\n  it.items = true\n  const len = gen.const(\"len\", _`${data}.length`)\n  if (schema === false) {\n    cxt.setParams({len: items.length})\n    cxt.pass(_`${len} <= ${items.length}`)\n  } else if (typeof schema == \"object\" && !alwaysValidSchema(it, schema)) {\n    const valid = gen.var(\"valid\", _`${len} <= ${items.length}`) // TODO var\n    gen.if(not(valid), () => validateItems(valid))\n    cxt.ok(valid)\n  }\n\n  function validateItems(valid: Name): void {\n    gen.forRange(\"i\", items.length, len, (i) => {\n      cxt.subschema({keyword, dataProp: i, dataPropType: Type.Num}, valid)\n      if (!it.allErrors) gen.if(not(valid), () => gen.break())\n    })\n  }\n}\n\nexport default def\n", "import type {CodeKeywordDefinition, AnySchema, AnySchemaObject} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_} from \"../../compile/codegen\"\nimport {alwaysValidSchema, mergeEvaluated, checkStrictMode} from \"../../compile/util\"\nimport {validateArray} from \"../code\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"items\",\n  type: \"array\",\n  schemaType: [\"object\", \"array\", \"boolean\"],\n  before: \"uniqueItems\",\n  code(cxt: KeywordCxt) {\n    const {schema, it} = cxt\n    if (Array.isArray(schema)) return validateTuple(cxt, \"additionalItems\", schema)\n    it.items = true\n    if (alwaysValidSchema(it, schema)) return\n    cxt.ok(validateArray(cxt))\n  },\n}\n\nexport function validateTuple(\n  cxt: KeywordCxt,\n  extraItems: string,\n  schArr: AnySchema[] = cxt.schema\n): void {\n  const {gen, parentSchema, data, keyword, it} = cxt\n  checkStrictTuple(parentSchema)\n  if (it.opts.unevaluated && schArr.length && it.items !== true) {\n    it.items = mergeEvaluated.items(gen, schArr.length, it.items)\n  }\n  const valid = gen.name(\"valid\")\n  const len = gen.const(\"len\", _`${data}.length`)\n  schArr.forEach((sch: AnySchema, i: number) => {\n    if (alwaysValidSchema(it, sch)) return\n    gen.if(_`${len} > ${i}`, () =>\n      cxt.subschema(\n        {\n          keyword,\n          schemaProp: i,\n          dataProp: i,\n        },\n        valid\n      )\n    )\n    cxt.ok(valid)\n  })\n\n  function checkStrictTuple(sch: AnySchemaObject): void {\n    const {opts, errSchemaPath} = it\n    const l = schArr.length\n    const fullTuple = l === sch.minItems && (l === sch.maxItems || sch[extraItems] === false)\n    if (opts.strictTuples && !fullTuple) {\n      const msg = `\"${keyword}\" is ${l}-tuple, but minItems or maxItems/${extraItems} are not specified or different at path \"${errSchemaPath}\"`\n      checkStrictMode(it, msg, opts.strictTuples)\n    }\n  }\n}\n\nexport default def\n", "import type {CodeKeywordDefinition} from \"../../types\"\nimport {validateTuple} from \"./items\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"prefixItems\",\n  type: \"array\",\n  schemaType: [\"array\"],\n  before: \"uniqueItems\",\n  code: (cxt) => validateTuple(cxt, \"items\"),\n}\n\nexport default def\n", "import type {\n  CodeKeywordDefinition,\n  KeywordErrorDefinition,\n  ErrorObject,\n  AnySchema,\n} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str} from \"../../compile/codegen\"\nimport {alwaysValidSchema} from \"../../compile/util\"\nimport {validateArray} from \"../code\"\nimport {validateAdditionalItems} from \"./additionalItems\"\n\nexport type ItemsError = ErrorObject<\"items\", {limit: number}, AnySchema>\n\nconst error: KeywordErrorDefinition = {\n  message: ({params: {len}}) => str`must NOT have more than ${len} items`,\n  params: ({params: {len}}) => _`{limit: ${len}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"items\",\n  type: \"array\",\n  schemaType: [\"object\", \"boolean\"],\n  before: \"uniqueItems\",\n  error,\n  code(cxt: KeywordCxt) {\n    const {schema, parentSchema, it} = cxt\n    const {prefixItems} = parentSchema\n    it.items = true\n    if (alwaysValidSchema(it, schema)) return\n    if (prefixItems) validateAdditionalItems(cxt, prefixItems)\n    else cxt.ok(validateArray(cxt))\n  },\n}\n\nexport default def\n", "import type {\n  CodeKeywordDefinition,\n  KeywordErrorDefinition,\n  ErrorObject,\n  AnySchema,\n} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, Name} from \"../../compile/codegen\"\nimport {alwaysValidSchema, checkStrictMode, Type} from \"../../compile/util\"\n\nexport type ContainsError = ErrorObject<\n  \"contains\",\n  {minContains: number; maxContains?: number},\n  AnySchema\n>\n\nconst error: KeywordErrorDefinition = {\n  message: ({params: {min, max}}) =>\n    max === undefined\n      ? str`must contain at least ${min} valid item(s)`\n      : str`must contain at least ${min} and no more than ${max} valid item(s)`,\n  params: ({params: {min, max}}) =>\n    max === undefined ? _`{minContains: ${min}}` : _`{minContains: ${min}, maxContains: ${max}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"contains\",\n  type: \"array\",\n  schemaType: [\"object\", \"boolean\"],\n  before: \"uniqueItems\",\n  trackErrors: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, schema, parentSchema, data, it} = cxt\n    let min: number\n    let max: number | undefined\n    const {minContains, maxContains} = parentSchema\n    if (it.opts.next) {\n      min = minContains === undefined ? 1 : minContains\n      max = maxContains\n    } else {\n      min = 1\n    }\n    const len = gen.const(\"len\", _`${data}.length`)\n    cxt.setParams({min, max})\n    if (max === undefined && min === 0) {\n      checkStrictMode(it, `\"minContains\" == 0 without \"maxContains\": \"contains\" keyword ignored`)\n      return\n    }\n    if (max !== undefined && min > max) {\n      checkStrictMode(it, `\"minContains\" > \"maxContains\" is always invalid`)\n      cxt.fail()\n      return\n    }\n    if (alwaysValidSchema(it, schema)) {\n      let cond = _`${len} >= ${min}`\n      if (max !== undefined) cond = _`${cond} && ${len} <= ${max}`\n      cxt.pass(cond)\n      return\n    }\n\n    it.items = true\n    const valid = gen.name(\"valid\")\n    if (max === undefined && min === 1) {\n      validateItems(valid, () => gen.if(valid, () => gen.break()))\n    } else if (min === 0) {\n      gen.let(valid, true)\n      if (max !== undefined) gen.if(_`${data}.length > 0`, validateItemsWithCount)\n    } else {\n      gen.let(valid, false)\n      validateItemsWithCount()\n    }\n    cxt.result(valid, () => cxt.reset())\n\n    function validateItemsWithCount(): void {\n      const schValid = gen.name(\"_valid\")\n      const count = gen.let(\"count\", 0)\n      validateItems(schValid, () => gen.if(schValid, () => checkLimits(count)))\n    }\n\n    function validateItems(_valid: Name, block: () => void): void {\n      gen.forRange(\"i\", 0, len, (i) => {\n        cxt.subschema(\n          {\n            keyword: \"contains\",\n            dataProp: i,\n            dataPropType: Type.Num,\n            compositeRule: true,\n          },\n          _valid\n        )\n        block()\n      })\n    }\n\n    function checkLimits(count: Name): void {\n      gen.code(_`${count}++`)\n      if (max === undefined) {\n        gen.if(_`${count} >= ${min}`, () => gen.assign(valid, true).break())\n      } else {\n        gen.if(_`${count} > ${max}`, () => gen.assign(valid, false).break())\n        if (min === 1) gen.assign(valid, true)\n        else gen.if(_`${count} >= ${min}`, () => gen.assign(valid, true))\n      }\n    }\n  },\n}\n\nexport default def\n", "import type {\n  CodeKeywordDefinition,\n  ErrorObject,\n  KeywordErrorDefinition,\n  SchemaMap,\n  AnySchema,\n} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str} from \"../../compile/codegen\"\nimport {alwaysValidSchema} from \"../../compile/util\"\nimport {checkReportMissingProp, checkMissingProp, reportMissingProp, propertyInData} from \"../code\"\n\nexport type PropertyDependencies = {[K in string]?: string[]}\n\nexport interface DependenciesErrorParams {\n  property: string\n  missingProperty: string\n  depsCount: number\n  deps: string // TODO change to string[]\n}\n\ntype SchemaDependencies = SchemaMap\n\nexport type DependenciesError = ErrorObject<\n  \"dependencies\",\n  DependenciesErrorParams,\n  {[K in string]?: string[] | AnySchema}\n>\n\nexport const error: KeywordErrorDefinition = {\n  message: ({params: {property, depsCount, deps}}) => {\n    const property_ies = depsCount === 1 ? \"property\" : \"properties\"\n    return str`must have ${property_ies} ${deps} when property ${property} is present`\n  },\n  params: ({params: {property, depsCount, deps, missingProperty}}) =>\n    _`{property: ${property},\n    missingProperty: ${missingProperty},\n    depsCount: ${depsCount},\n    deps: ${deps}}`, // TODO change to reference\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"dependencies\",\n  type: \"object\",\n  schemaType: \"object\",\n  error,\n  code(cxt: KeywordCxt) {\n    const [propDeps, schDeps] = splitDependencies(cxt)\n    validatePropertyDeps(cxt, propDeps)\n    validateSchemaDeps(cxt, schDeps)\n  },\n}\n\nfunction splitDependencies({schema}: KeywordCxt): [PropertyDependencies, SchemaDependencies] {\n  const propertyDeps: PropertyDependencies = {}\n  const schemaDeps: SchemaDependencies = {}\n  for (const key in schema) {\n    if (key === \"__proto__\") continue\n    const deps = Array.isArray(schema[key]) ? propertyDeps : schemaDeps\n    deps[key] = schema[key]\n  }\n  return [propertyDeps, schemaDeps]\n}\n\nexport function validatePropertyDeps(\n  cxt: KeywordCxt,\n  propertyDeps: {[K in string]?: string[]} = cxt.schema\n): void {\n  const {gen, data, it} = cxt\n  if (Object.keys(propertyDeps).length === 0) return\n  const missing = gen.let(\"missing\")\n  for (const prop in propertyDeps) {\n    const deps = propertyDeps[prop] as string[]\n    if (deps.length === 0) continue\n    const hasProperty = propertyInData(gen, data, prop, it.opts.ownProperties)\n    cxt.setParams({\n      property: prop,\n      depsCount: deps.length,\n      deps: deps.join(\", \"),\n    })\n    if (it.allErrors) {\n      gen.if(hasProperty, () => {\n        for (const depProp of deps) {\n          checkReportMissingProp(cxt, depProp)\n        }\n      })\n    } else {\n      gen.if(_`${hasProperty} && (${checkMissingProp(cxt, deps, missing)})`)\n      reportMissingProp(cxt, missing)\n      gen.else()\n    }\n  }\n}\n\nexport function validateSchemaDeps(cxt: KeywordCxt, schemaDeps: SchemaMap = cxt.schema): void {\n  const {gen, data, keyword, it} = cxt\n  const valid = gen.name(\"valid\")\n  for (const prop in schemaDeps) {\n    if (alwaysValidSchema(it, schemaDeps[prop] as AnySchema)) continue\n    gen.if(\n      propertyInData(gen, data, prop, it.opts.ownProperties),\n      () => {\n        const schCxt = cxt.subschema({keyword, schemaProp: prop}, valid)\n        cxt.mergeValidEvaluated(schCxt, valid)\n      },\n      () => gen.var(valid, true) // TODO var\n    )\n    cxt.ok(valid)\n  }\n}\n\nexport default def\n", "import type {\n  CodeKeywordDefinition,\n  ErrorObject,\n  KeywordErrorDefinition,\n  AnySchema,\n} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, not} from \"../../compile/codegen\"\nimport {alwaysValidSchema} from \"../../compile/util\"\n\nexport type PropertyNamesError = ErrorObject<\"propertyNames\", {propertyName: string}, AnySchema>\n\nconst error: KeywordErrorDefinition = {\n  message: \"property name must be valid\",\n  params: ({params}) => _`{propertyName: ${params.propertyName}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"propertyNames\",\n  type: \"object\",\n  schemaType: [\"object\", \"boolean\"],\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, schema, data, it} = cxt\n    if (alwaysValidSchema(it, schema)) return\n    const valid = gen.name(\"valid\")\n\n    gen.forIn(\"key\", data, (key) => {\n      cxt.setParams({propertyName: key})\n      cxt.subschema(\n        {\n          keyword: \"propertyNames\",\n          data: key,\n          dataTypes: [\"string\"],\n          propertyName: key,\n          compositeRule: true,\n        },\n        valid\n      )\n      gen.if(not(valid), () => {\n        cxt.error(true)\n        if (!it.allErrors) gen.break()\n      })\n    })\n\n    cxt.ok(valid)\n  },\n}\n\nexport default def\n", "import type {\n  CodeKeywordDefinition,\n  AddedKeywordDefinition,\n  ErrorObject,\n  KeywordErrorDefinition,\n  AnySchema,\n} from \"../../types\"\nimport {allSchemaProperties, usePattern, isOwnProperty} from \"../code\"\nimport {_, nil, or, not, Code, Name} from \"../../compile/codegen\"\nimport N from \"../../compile/names\"\nimport type {SubschemaArgs} from \"../../compile/validate/subschema\"\nimport {alwaysValidSchema, schemaRefOrVal, Type} from \"../../compile/util\"\n\nexport type AdditionalPropertiesError = ErrorObject<\n  \"additionalProperties\",\n  {additionalProperty: string},\n  AnySchema\n>\n\nconst error: KeywordErrorDefinition = {\n  message: \"must NOT have additional properties\",\n  params: ({params}) => _`{additionalProperty: ${params.additionalProperty}}`,\n}\n\nconst def: CodeKeywordDefinition & AddedKeywordDefinition = {\n  keyword: \"additionalProperties\",\n  type: [\"object\"],\n  schemaType: [\"boolean\", \"object\"],\n  allowUndefined: true,\n  trackErrors: true,\n  error,\n  code(cxt) {\n    const {gen, schema, parentSchema, data, errsCount, it} = cxt\n    /* istanbul ignore if */\n    if (!errsCount) throw new Error(\"ajv implementation error\")\n    const {allErrors, opts} = it\n    it.props = true\n    if (opts.removeAdditional !== \"all\" && alwaysValidSchema(it, schema)) return\n    const props = allSchemaProperties(parentSchema.properties)\n    const patProps = allSchemaProperties(parentSchema.patternProperties)\n    checkAdditionalProperties()\n    cxt.ok(_`${errsCount} === ${N.errors}`)\n\n    function checkAdditionalProperties(): void {\n      gen.forIn(\"key\", data, (key: Name) => {\n        if (!props.length && !patProps.length) additionalPropertyCode(key)\n        else gen.if(isAdditional(key), () => additionalPropertyCode(key))\n      })\n    }\n\n    function isAdditional(key: Name): Code {\n      let definedProp: Code\n      if (props.length > 8) {\n        // TODO maybe an option instead of hard-coded 8?\n        const propsSchema = schemaRefOrVal(it, parentSchema.properties, \"properties\")\n        definedProp = isOwnProperty(gen, propsSchema as Code, key)\n      } else if (props.length) {\n        definedProp = or(...props.map((p) => _`${key} === ${p}`))\n      } else {\n        definedProp = nil\n      }\n      if (patProps.length) {\n        definedProp = or(definedProp, ...patProps.map((p) => _`${usePattern(cxt, p)}.test(${key})`))\n      }\n      return not(definedProp)\n    }\n\n    function deleteAdditional(key: Name): void {\n      gen.code(_`delete ${data}[${key}]`)\n    }\n\n    function additionalPropertyCode(key: Name): void {\n      if (opts.removeAdditional === \"all\" || (opts.removeAdditional && schema === false)) {\n        deleteAdditional(key)\n        return\n      }\n\n      if (schema === false) {\n        cxt.setParams({additionalProperty: key})\n        cxt.error()\n        if (!allErrors) gen.break()\n        return\n      }\n\n      if (typeof schema == \"object\" && !alwaysValidSchema(it, schema)) {\n        const valid = gen.name(\"valid\")\n        if (opts.removeAdditional === \"failing\") {\n          applyAdditionalSchema(key, valid, false)\n          gen.if(not(valid), () => {\n            cxt.reset()\n            deleteAdditional(key)\n          })\n        } else {\n          applyAdditionalSchema(key, valid)\n          if (!allErrors) gen.if(not(valid), () => gen.break())\n        }\n      }\n    }\n\n    function applyAdditionalSchema(key: Name, valid: Name, errors?: false): void {\n      const subschema: SubschemaArgs = {\n        keyword: \"additionalProperties\",\n        dataProp: key,\n        dataPropType: Type.Str,\n      }\n      if (errors === false) {\n        Object.assign(subschema, {\n          compositeRule: true,\n          createErrors: false,\n          allErrors: false,\n        })\n      }\n      cxt.subschema(subschema, valid)\n    }\n  },\n}\n\nexport default def\n", "import type {CodeKeywordDefinition} from \"../../types\"\nimport {KeywordCxt} from \"../../compile/validate\"\nimport {propertyInData, allSchemaProperties} from \"../code\"\nimport {alwaysValidSchema, toHash, mergeEvaluated} from \"../../compile/util\"\nimport apDef from \"./additionalProperties\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"properties\",\n  type: \"object\",\n  schemaType: \"object\",\n  code(cxt: KeywordCxt) {\n    const {gen, schema, parentSchema, data, it} = cxt\n    if (it.opts.removeAdditional === \"all\" && parentSchema.additionalProperties === undefined) {\n      apDef.code(new KeywordCxt(it, apDef, \"additionalProperties\"))\n    }\n    const allProps = allSchemaProperties(schema)\n    for (const prop of allProps) {\n      it.definedProperties.add(prop)\n    }\n    if (it.opts.unevaluated && allProps.length && it.props !== true) {\n      it.props = mergeEvaluated.props(gen, toHash(allProps), it.props)\n    }\n    const properties = allProps.filter((p) => !alwaysValidSchema(it, schema[p]))\n    if (properties.length === 0) return\n    const valid = gen.name(\"valid\")\n\n    for (const prop of properties) {\n      if (hasDefault(prop)) {\n        applyPropertySchema(prop)\n      } else {\n        gen.if(propertyInData(gen, data, prop, it.opts.ownProperties))\n        applyPropertySchema(prop)\n        if (!it.allErrors) gen.else().var(valid, true)\n        gen.endIf()\n      }\n      cxt.it.definedProperties.add(prop)\n      cxt.ok(valid)\n    }\n\n    function hasDefault(prop: string): boolean | undefined {\n      return it.opts.useDefaults && !it.compositeRule && schema[prop].default !== undefined\n    }\n\n    function applyPropertySchema(prop: string): void {\n      cxt.subschema(\n        {\n          keyword: \"properties\",\n          schemaProp: prop,\n          dataProp: prop,\n        },\n        valid\n      )\n    }\n  },\n}\n\nexport default def\n", "import type {CodeKeywordDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {allSchemaProperties, usePattern} from \"../code\"\nimport {_, not, Name} from \"../../compile/codegen\"\nimport {alwaysValidSchema, checkStrictMode} from \"../../compile/util\"\nimport {evaluatedPropsToName, Type} from \"../../compile/util\"\nimport {AnySchema} from \"../../types\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"patternProperties\",\n  type: \"object\",\n  schemaType: \"object\",\n  code(cxt: KeywordCxt) {\n    const {gen, schema, data, parentSchema, it} = cxt\n    const {opts} = it\n    const patterns = allSchemaProperties(schema)\n    const alwaysValidPatterns = patterns.filter((p) =>\n      alwaysValidSchema(it, schema[p] as AnySchema)\n    )\n\n    if (\n      patterns.length === 0 ||\n      (alwaysValidPatterns.length === patterns.length &&\n        (!it.opts.unevaluated || it.props === true))\n    ) {\n      return\n    }\n\n    const checkProperties =\n      opts.strictSchema && !opts.allowMatchingProperties && parentSchema.properties\n    const valid = gen.name(\"valid\")\n    if (it.props !== true && !(it.props instanceof Name)) {\n      it.props = evaluatedPropsToName(gen, it.props)\n    }\n    const {props} = it\n    validatePatternProperties()\n\n    function validatePatternProperties(): void {\n      for (const pat of patterns) {\n        if (checkProperties) checkMatchingProperties(pat)\n        if (it.allErrors) {\n          validateProperties(pat)\n        } else {\n          gen.var(valid, true) // TODO var\n          validateProperties(pat)\n          gen.if(valid)\n        }\n      }\n    }\n\n    function checkMatchingProperties(pat: string): void {\n      for (const prop in checkProperties) {\n        if (new RegExp(pat).test(prop)) {\n          checkStrictMode(\n            it,\n            `property ${prop} matches pattern ${pat} (use allowMatchingProperties)`\n          )\n        }\n      }\n    }\n\n    function validateProperties(pat: string): void {\n      gen.forIn(\"key\", data, (key) => {\n        gen.if(_`${usePattern(cxt, pat)}.test(${key})`, () => {\n          const alwaysValid = alwaysValidPatterns.includes(pat)\n          if (!alwaysValid) {\n            cxt.subschema(\n              {\n                keyword: \"patternProperties\",\n                schemaProp: pat,\n                dataProp: key,\n                dataPropType: Type.Str,\n              },\n              valid\n            )\n          }\n\n          if (it.opts.unevaluated && props !== true) {\n            gen.assign(_`${props}[${key}]`, true)\n          } else if (!alwaysValid && !it.allErrors) {\n            // can short-circuit if `unevaluatedProperties` is not supported (opts.next === false)\n            // or if all properties were evaluated (props === true)\n            gen.if(not(valid), () => gen.break())\n          }\n        })\n      })\n    }\n  },\n}\n\nexport default def\n", "import type {CodeKeywordDefinition, ErrorNoParams, AnySchema} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {alwaysValidSchema} from \"../../compile/util\"\n\nexport type NotKeywordError = ErrorNoParams<\"not\", AnySchema>\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"not\",\n  schemaType: [\"object\", \"boolean\"],\n  trackErrors: true,\n  code(cxt: KeywordCxt) {\n    const {gen, schema, it} = cxt\n    if (alwaysValidSchema(it, schema)) {\n      cxt.fail()\n      return\n    }\n\n    const valid = gen.name(\"valid\")\n    cxt.subschema(\n      {\n        keyword: \"not\",\n        compositeRule: true,\n        createErrors: false,\n        allErrors: false,\n      },\n      valid\n    )\n\n    cxt.failResult(\n      valid,\n      () => cxt.reset(),\n      () => cxt.error()\n    )\n  },\n  error: {message: \"must NOT be valid\"},\n}\n\nexport default def\n", "import type {CodeKeywordDefinition, ErrorNoParams, AnySchema} from \"../../types\"\nimport {validateUnion} from \"../code\"\n\nexport type AnyOfError = ErrorNoParams<\"anyOf\", AnySchema[]>\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"anyOf\",\n  schemaType: \"array\",\n  trackErrors: true,\n  code: validateUnion,\n  error: {message: \"must match a schema in anyOf\"},\n}\n\nexport default def\n", "import type {\n  CodeKeywordDefinition,\n  ErrorObject,\n  KeywordErrorDefinition,\n  AnySchema,\n} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, Name} from \"../../compile/codegen\"\nimport {alwaysValidSchema} from \"../../compile/util\"\nimport {SchemaCxt} from \"../../compile\"\n\nexport type OneOfError = ErrorObject<\n  \"oneOf\",\n  {passingSchemas: [number, number] | null},\n  AnySchema[]\n>\n\nconst error: KeywordErrorDefinition = {\n  message: \"must match exactly one schema in oneOf\",\n  params: ({params}) => _`{passingSchemas: ${params.passing}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"oneOf\",\n  schemaType: \"array\",\n  trackErrors: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, schema, parentSchema, it} = cxt\n    /* istanbul ignore if */\n    if (!Array.isArray(schema)) throw new Error(\"ajv implementation error\")\n    if (it.opts.discriminator && parentSchema.discriminator) return\n    const schArr: AnySchema[] = schema\n    const valid = gen.let(\"valid\", false)\n    const passing = gen.let(\"passing\", null)\n    const schValid = gen.name(\"_valid\")\n    cxt.setParams({passing})\n    // TODO possibly fail straight away (with warning or exception) if there are two empty always valid schemas\n\n    gen.block(validateOneOf)\n\n    cxt.result(\n      valid,\n      () => cxt.reset(),\n      () => cxt.error(true)\n    )\n\n    function validateOneOf(): void {\n      schArr.forEach((sch: AnySchema, i: number) => {\n        let schCxt: SchemaCxt | undefined\n        if (alwaysValidSchema(it, sch)) {\n          gen.var(schValid, true)\n        } else {\n          schCxt = cxt.subschema(\n            {\n              keyword: \"oneOf\",\n              schemaProp: i,\n              compositeRule: true,\n            },\n            schValid\n          )\n        }\n\n        if (i > 0) {\n          gen\n            .if(_`${schValid} && ${valid}`)\n            .assign(valid, false)\n            .assign(passing, _`[${passing}, ${i}]`)\n            .else()\n        }\n\n        gen.if(schValid, () => {\n          gen.assign(valid, true)\n          gen.assign(passing, i)\n          if (schCxt) cxt.mergeEvaluated(schCxt, Name)\n        })\n      })\n    }\n  },\n}\n\nexport default def\n", "import type {CodeKeywordDefinition, AnySchema} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {alwaysValidSchema} from \"../../compile/util\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"allOf\",\n  schemaType: \"array\",\n  code(cxt: KeywordCxt) {\n    const {gen, schema, it} = cxt\n    /* istanbul ignore if */\n    if (!Array.isArray(schema)) throw new Error(\"ajv implementation error\")\n    const valid = gen.name(\"valid\")\n    schema.forEach((sch: AnySchema, i: number) => {\n      if (alwaysValidSchema(it, sch)) return\n      const schCxt = cxt.subschema({keyword: \"allOf\", schemaProp: i}, valid)\n      cxt.ok(valid)\n      cxt.mergeEvaluated(schCxt)\n    })\n  },\n}\n\nexport default def\n", "import type {\n  CodeKeywordDefinition,\n  ErrorObject,\n  KeywordErrorDefinition,\n  AnySchema,\n} from \"../../types\"\nimport type {SchemaObjCxt} from \"../../compile\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, not, Name} from \"../../compile/codegen\"\nimport {alwaysValidSchema, checkStrictMode} from \"../../compile/util\"\n\nexport type IfKeywordError = ErrorObject<\"if\", {failingKeyword: string}, AnySchema>\n\nconst error: KeywordErrorDefinition = {\n  message: ({params}) => str`must match \"${params.ifClause}\" schema`,\n  params: ({params}) => _`{failingKeyword: ${params.ifClause}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"if\",\n  schemaType: [\"object\", \"boolean\"],\n  trackErrors: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, parentSchema, it} = cxt\n    if (parentSchema.then === undefined && parentSchema.else === undefined) {\n      checkStrictMode(it, '\"if\" without \"then\" and \"else\" is ignored')\n    }\n    const hasThen = hasSchema(it, \"then\")\n    const hasElse = hasSchema(it, \"else\")\n    if (!hasThen && !hasElse) return\n\n    const valid = gen.let(\"valid\", true)\n    const schValid = gen.name(\"_valid\")\n    validateIf()\n    cxt.reset()\n\n    if (hasThen && hasElse) {\n      const ifClause = gen.let(\"ifClause\")\n      cxt.setParams({ifClause})\n      gen.if(schValid, validateClause(\"then\", ifClause), validateClause(\"else\", ifClause))\n    } else if (hasThen) {\n      gen.if(schValid, validateClause(\"then\"))\n    } else {\n      gen.if(not(schValid), validateClause(\"else\"))\n    }\n\n    cxt.pass(valid, () => cxt.error(true))\n\n    function validateIf(): void {\n      const schCxt = cxt.subschema(\n        {\n          keyword: \"if\",\n          compositeRule: true,\n          createErrors: false,\n          allErrors: false,\n        },\n        schValid\n      )\n      cxt.mergeEvaluated(schCxt)\n    }\n\n    function validateClause(keyword: string, ifClause?: Name): () => void {\n      return () => {\n        const schCxt = cxt.subschema({keyword}, schValid)\n        gen.assign(valid, schValid)\n        cxt.mergeValidEvaluated(schCxt, valid)\n        if (ifClause) gen.assign(ifClause, _`${keyword}`)\n        else cxt.setParams({ifClause: keyword})\n      }\n    }\n  },\n}\n\nfunction hasSchema(it: SchemaObjCxt, keyword: string): boolean {\n  const schema = it.schema[keyword]\n  return schema !== undefined && !alwaysValidSchema(it, schema)\n}\n\nexport default def\n", "import type {CodeKeywordDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {checkStrictMode} from \"../../compile/util\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: [\"then\", \"else\"],\n  schemaType: [\"object\", \"boolean\"],\n  code({keyword, parentSchema, it}: KeywordCxt) {\n    if (parentSchema.if === undefined) checkStrictMode(it, `\"${keyword}\" without \"if\" is ignored`)\n  },\n}\n\nexport default def\n", "import type {ErrorNoParams, Vocabulary} from \"../../types\"\nimport additionalItems, {AdditionalItemsError} from \"./additionalItems\"\nimport prefixItems from \"./prefixItems\"\nimport items from \"./items\"\nimport items2020, {ItemsError} from \"./items2020\"\nimport contains, {ContainsError} from \"./contains\"\nimport dependencies, {DependenciesError} from \"./dependencies\"\nimport propertyNames, {PropertyNamesError} from \"./propertyNames\"\nimport additionalProperties, {AdditionalPropertiesError} from \"./additionalProperties\"\nimport properties from \"./properties\"\nimport patternProperties from \"./patternProperties\"\nimport notKeyword, {NotKeywordError} from \"./not\"\nimport anyOf, {AnyOfError} from \"./anyOf\"\nimport oneOf, {OneOfError} from \"./oneOf\"\nimport allOf from \"./allOf\"\nimport ifKeyword, {IfKeywordError} from \"./if\"\nimport thenElse from \"./thenElse\"\n\nexport default function getApplicator(draft2020 = false): Vocabulary {\n  const applicator = [\n    // any\n    notKeyword,\n    anyOf,\n    oneOf,\n    allOf,\n    ifKeyword,\n    thenElse,\n    // object\n    propertyNames,\n    additionalProperties,\n    dependencies,\n    properties,\n    patternProperties,\n  ]\n  // array\n  if (draft2020) applicator.push(prefixItems, items2020)\n  else applicator.push(additionalItems, items)\n  applicator.push(contains)\n  return applicator\n}\n\nexport type ApplicatorKeywordError =\n  | ErrorNoParams<\"false schema\">\n  | AdditionalItemsError\n  | ItemsError\n  | ContainsError\n  | AdditionalPropertiesError\n  | DependenciesError\n  | IfKeywordError\n  | AnyOfError\n  | OneOfError\n  | NotKeywordError\n  | PropertyNamesError\n", "import type {\n  AddedFormat,\n  FormatValidator,\n  AsyncFormatValidator,\n  CodeKeywordDefinition,\n  KeywordErrorDefinition,\n  ErrorObject,\n} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, nil, or, Code, getProperty, regexpCode} from \"../../compile/codegen\"\n\ntype FormatValidate =\n  | FormatValidator\n  | FormatValidator\n  | AsyncFormatValidator\n  | AsyncFormatValidator\n  | RegExp\n  | string\n  | true\n\nexport type FormatError = ErrorObject<\"format\", {format: string}, string | {$data: string}>\n\nconst error: KeywordErrorDefinition = {\n  message: ({schemaCode}) => str`must match format \"${schemaCode}\"`,\n  params: ({schemaCode}) => _`{format: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"format\",\n  type: [\"number\", \"string\"],\n  schemaType: \"string\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt, ruleType?: string) {\n    const {gen, data, $data, schema, schemaCode, it} = cxt\n    const {opts, errSchemaPath, schemaEnv, self} = it\n    if (!opts.validateFormats) return\n\n    if ($data) validate$DataFormat()\n    else validateFormat()\n\n    function validate$DataFormat(): void {\n      const fmts = gen.scopeValue(\"formats\", {\n        ref: self.formats,\n        code: opts.code.formats,\n      })\n      const fDef = gen.const(\"fDef\", _`${fmts}[${schemaCode}]`)\n      const fType = gen.let(\"fType\")\n      const format = gen.let(\"format\")\n      // TODO simplify\n      gen.if(\n        _`typeof ${fDef} == \"object\" && !(${fDef} instanceof RegExp)`,\n        () => gen.assign(fType, _`${fDef}.type || \"string\"`).assign(format, _`${fDef}.validate`),\n        () => gen.assign(fType, _`\"string\"`).assign(format, fDef)\n      )\n      cxt.fail$data(or(unknownFmt(), invalidFmt()))\n\n      function unknownFmt(): Code {\n        if (opts.strictSchema === false) return nil\n        return _`${schemaCode} && !${format}`\n      }\n\n      function invalidFmt(): Code {\n        const callFormat = schemaEnv.$async\n          ? _`(${fDef}.async ? await ${format}(${data}) : ${format}(${data}))`\n          : _`${format}(${data})`\n        const validData = _`(typeof ${format} == \"function\" ? ${callFormat} : ${format}.test(${data}))`\n        return _`${format} && ${format} !== true && ${fType} === ${ruleType} && !${validData}`\n      }\n    }\n\n    function validateFormat(): void {\n      const formatDef: AddedFormat | undefined = self.formats[schema]\n      if (!formatDef) {\n        unknownFormat()\n        return\n      }\n      if (formatDef === true) return\n      const [fmtType, format, fmtRef] = getFormat(formatDef)\n      if (fmtType === ruleType) cxt.pass(validCondition())\n\n      function unknownFormat(): void {\n        if (opts.strictSchema === false) {\n          self.logger.warn(unknownMsg())\n          return\n        }\n        throw new Error(unknownMsg())\n\n        function unknownMsg(): string {\n          return `unknown format \"${schema as string}\" ignored in schema at path \"${errSchemaPath}\"`\n        }\n      }\n\n      function getFormat(fmtDef: AddedFormat): [string, FormatValidate, Code] {\n        const code =\n          fmtDef instanceof RegExp\n            ? regexpCode(fmtDef)\n            : opts.code.formats\n            ? _`${opts.code.formats}${getProperty(schema)}`\n            : undefined\n        const fmt = gen.scopeValue(\"formats\", {key: schema, ref: fmtDef, code})\n        if (typeof fmtDef == \"object\" && !(fmtDef instanceof RegExp)) {\n          return [fmtDef.type || \"string\", fmtDef.validate, _`${fmt}.validate`]\n        }\n\n        return [\"string\", fmtDef, fmt]\n      }\n\n      function validCondition(): Code {\n        if (typeof formatDef == \"object\" && !(formatDef instanceof RegExp) && formatDef.async) {\n          if (!schemaEnv.$async) throw new Error(\"async format in sync schema\")\n          return _`await ${fmtRef}(${data})`\n        }\n        return typeof format == \"function\" ? _`${fmtRef}(${data})` : _`${fmtRef}.test(${data})`\n      }\n    }\n  },\n}\n\nexport default def\n", "import type {Vocabulary} from \"../../types\"\nimport formatKeyword from \"./format\"\n\nconst format: Vocabulary = [formatKeyword]\n\nexport default format\n", "import type {Vocabulary} from \"ajv/dist/core\"\nimport coreVocabulary from \"./core\"\nimport validationDraft4 from \"./validation\"\nimport getApplicatorVocabulary from \"ajv/dist/vocabularies/applicator\"\nimport formatVocabulary from \"ajv/dist/vocabularies/format\"\n\nconst metadataVocabulary: Vocabulary = [\"title\", \"description\", \"default\"]\n\nconst draft4Vocabularies: Vocabulary[] = [\n  coreVocabulary,\n  validationDraft4,\n  getApplicatorVocabulary(),\n  formatVocabulary,\n  metadataVocabulary,\n]\n\nexport default draft4Vocabularies\n", "import type {ErrorObject} from \"../../types\"\n\nexport enum DiscrError {\n  Tag = \"tag\",\n  Mapping = \"mapping\",\n}\n\nexport type DiscrErrorObj = ErrorObject<\n  \"discriminator\",\n  {error: E; tag: string; tagValue: unknown},\n  string\n>\n", "import type {CodeKeywordDefinition, AnySchemaObject, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, getProperty, Name} from \"../../compile/codegen\"\nimport {DiscrError, DiscrErrorObj} from \"../discriminator/types\"\nimport {resolveRef, SchemaEnv} from \"../../compile\"\nimport MissingRefError from \"../../compile/ref_error\"\nimport {schemaHasRulesButRef} from \"../../compile/util\"\n\nexport type DiscriminatorError = DiscrErrorObj | DiscrErrorObj\n\nconst error: KeywordErrorDefinition = {\n  message: ({params: {discrError, tagName}}) =>\n    discrError === DiscrError.Tag\n      ? `tag \"${tagName}\" must be string`\n      : `value of tag \"${tagName}\" must be in oneOf`,\n  params: ({params: {discrError, tag, tagName}}) =>\n    _`{error: ${discrError}, tag: ${tagName}, tagValue: ${tag}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"discriminator\",\n  type: \"object\",\n  schemaType: \"object\",\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, data, schema, parentSchema, it} = cxt\n    const {oneOf} = parentSchema\n    if (!it.opts.discriminator) {\n      throw new Error(\"discriminator: requires discriminator option\")\n    }\n    const tagName = schema.propertyName\n    if (typeof tagName != \"string\") throw new Error(\"discriminator: requires propertyName\")\n    if (schema.mapping) throw new Error(\"discriminator: mapping is not supported\")\n    if (!oneOf) throw new Error(\"discriminator: requires oneOf keyword\")\n    const valid = gen.let(\"valid\", false)\n    const tag = gen.const(\"tag\", _`${data}${getProperty(tagName)}`)\n    gen.if(\n      _`typeof ${tag} == \"string\"`,\n      () => validateMapping(),\n      () => cxt.error(false, {discrError: DiscrError.Tag, tag, tagName})\n    )\n    cxt.ok(valid)\n\n    function validateMapping(): void {\n      const mapping = getMapping()\n      gen.if(false)\n      for (const tagValue in mapping) {\n        gen.elseIf(_`${tag} === ${tagValue}`)\n        gen.assign(valid, applyTagSchema(mapping[tagValue]))\n      }\n      gen.else()\n      cxt.error(false, {discrError: DiscrError.Mapping, tag, tagName})\n      gen.endIf()\n    }\n\n    function applyTagSchema(schemaProp?: number): Name {\n      const _valid = gen.name(\"valid\")\n      const schCxt = cxt.subschema({keyword: \"oneOf\", schemaProp}, _valid)\n      cxt.mergeEvaluated(schCxt, Name)\n      return _valid\n    }\n\n    function getMapping(): {[T in string]?: number} {\n      const oneOfMapping: {[T in string]?: number} = {}\n      const topRequired = hasRequired(parentSchema)\n      let tagRequired = true\n      for (let i = 0; i < oneOf.length; i++) {\n        let sch = oneOf[i]\n        if (sch?.$ref && !schemaHasRulesButRef(sch, it.self.RULES)) {\n          const ref = sch.$ref\n          sch = resolveRef.call(it.self, it.schemaEnv.root, it.baseId, ref)\n          if (sch instanceof SchemaEnv) sch = sch.schema\n          if (sch === undefined) throw new MissingRefError(it.opts.uriResolver, it.baseId, ref)\n        }\n        const propSch = sch?.properties?.[tagName]\n        if (typeof propSch != \"object\") {\n          throw new Error(\n            `discriminator: oneOf subschemas (or referenced schemas) must have \"properties/${tagName}\"`\n          )\n        }\n        tagRequired = tagRequired && (topRequired || hasRequired(sch))\n        addMappings(propSch, i)\n      }\n      if (!tagRequired) throw new Error(`discriminator: \"${tagName}\" must be required`)\n      return oneOfMapping\n\n      function hasRequired({required}: AnySchemaObject): boolean {\n        return Array.isArray(required) && required.includes(tagName)\n      }\n\n      function addMappings(sch: AnySchemaObject, i: number): void {\n        if (sch.const) {\n          addMapping(sch.const, i)\n        } else if (sch.enum) {\n          for (const tagValue of sch.enum) {\n            addMapping(tagValue, i)\n          }\n        } else {\n          throw new Error(`discriminator: \"properties/${tagName}\" must have \"const\" or \"enum\"`)\n        }\n      }\n\n      function addMapping(tagValue: unknown, i: number): void {\n        if (typeof tagValue != \"string\" || tagValue in oneOfMapping) {\n          throw new Error(`discriminator: \"${tagName}\" values must be unique strings`)\n        }\n        oneOfMapping[tagValue] = i\n      }\n    }\n  },\n}\n\nexport default def\n", "{\n  \"id\": \"http://json-schema.org/draft-04/schema#\",\n  \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n  \"description\": \"Core schema meta-schema\",\n  \"definitions\": {\n    \"schemaArray\": {\n      \"type\": \"array\",\n      \"minItems\": 1,\n      \"items\": {\"$ref\": \"#\"}\n    },\n    \"positiveInteger\": {\n      \"type\": \"integer\",\n      \"minimum\": 0\n    },\n    \"positiveIntegerDefault0\": {\n      \"allOf\": [{\"$ref\": \"#/definitions/positiveInteger\"}, {\"default\": 0}]\n    },\n    \"simpleTypes\": {\n      \"enum\": [\"array\", \"boolean\", \"integer\", \"null\", \"number\", \"object\", \"string\"]\n    },\n    \"stringArray\": {\n      \"type\": \"array\",\n      \"items\": {\"type\": \"string\"},\n      \"minItems\": 1,\n      \"uniqueItems\": true\n    }\n  },\n  \"type\": \"object\",\n  \"properties\": {\n    \"id\": {\n      \"type\": \"string\",\n      \"format\": \"uri\"\n    },\n    \"$schema\": {\n      \"type\": \"string\",\n      \"format\": \"uri\"\n    },\n    \"title\": {\n      \"type\": \"string\"\n    },\n    \"description\": {\n      \"type\": \"string\"\n    },\n    \"default\": {},\n    \"multipleOf\": {\n      \"type\": \"number\",\n      \"minimum\": 0,\n      \"exclusiveMinimum\": true\n    },\n    \"maximum\": {\n      \"type\": \"number\"\n    },\n    \"exclusiveMaximum\": {\n      \"type\": \"boolean\",\n      \"default\": false\n    },\n    \"minimum\": {\n      \"type\": \"number\"\n    },\n    \"exclusiveMinimum\": {\n      \"type\": \"boolean\",\n      \"default\": false\n    },\n    \"maxLength\": {\"$ref\": \"#/definitions/positiveInteger\"},\n    \"minLength\": {\"$ref\": \"#/definitions/positiveIntegerDefault0\"},\n    \"pattern\": {\n      \"type\": \"string\",\n      \"format\": \"regex\"\n    },\n    \"additionalItems\": {\n      \"anyOf\": [{\"type\": \"boolean\"}, {\"$ref\": \"#\"}],\n      \"default\": {}\n    },\n    \"items\": {\n      \"anyOf\": [{\"$ref\": \"#\"}, {\"$ref\": \"#/definitions/schemaArray\"}],\n      \"default\": {}\n    },\n    \"maxItems\": {\"$ref\": \"#/definitions/positiveInteger\"},\n    \"minItems\": {\"$ref\": \"#/definitions/positiveIntegerDefault0\"},\n    \"uniqueItems\": {\n      \"type\": \"boolean\",\n      \"default\": false\n    },\n    \"maxProperties\": {\"$ref\": \"#/definitions/positiveInteger\"},\n    \"minProperties\": {\"$ref\": \"#/definitions/positiveIntegerDefault0\"},\n    \"required\": {\"$ref\": \"#/definitions/stringArray\"},\n    \"additionalProperties\": {\n      \"anyOf\": [{\"type\": \"boolean\"}, {\"$ref\": \"#\"}],\n      \"default\": {}\n    },\n    \"definitions\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\"$ref\": \"#\"},\n      \"default\": {}\n    },\n    \"properties\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\"$ref\": \"#\"},\n      \"default\": {}\n    },\n    \"patternProperties\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\"$ref\": \"#\"},\n      \"default\": {}\n    },\n    \"dependencies\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"anyOf\": [{\"$ref\": \"#\"}, {\"$ref\": \"#/definitions/stringArray\"}]\n      }\n    },\n    \"enum\": {\n      \"type\": \"array\",\n      \"minItems\": 1,\n      \"uniqueItems\": true\n    },\n    \"type\": {\n      \"anyOf\": [\n        {\"$ref\": \"#/definitions/simpleTypes\"},\n        {\n          \"type\": \"array\",\n          \"items\": {\"$ref\": \"#/definitions/simpleTypes\"},\n          \"minItems\": 1,\n          \"uniqueItems\": true\n        }\n      ]\n    },\n    \"allOf\": {\"$ref\": \"#/definitions/schemaArray\"},\n    \"anyOf\": {\"$ref\": \"#/definitions/schemaArray\"},\n    \"oneOf\": {\"$ref\": \"#/definitions/schemaArray\"},\n    \"not\": {\"$ref\": \"#\"}\n  },\n  \"dependencies\": {\n    \"exclusiveMaximum\": [\"maximum\"],\n    \"exclusiveMinimum\": [\"minimum\"]\n  },\n  \"default\": {}\n}\n", "import type {AnySchemaObject, Options} from \"ajv/dist/core\"\nimport AjvCore from \"ajv/dist/core\"\nimport draft4Vocabularies from \"./vocabulary/draft4\"\nimport discriminator from \"ajv/dist/vocabularies/discriminator\"\nimport * as draft4MetaSchema from \"./refs/json-schema-draft-04.json\"\n\nconst META_SUPPORT_DATA = [\"/properties\"]\n\nconst META_SCHEMA_ID = \"http://json-schema.org/draft-04/schema\"\n\nclass Ajv extends AjvCore {\n  constructor(opts: Options = {}) {\n    super({\n      ...opts,\n      schemaId: \"id\",\n    })\n  }\n\n  _addVocabularies(): void {\n    super._addVocabularies()\n    draft4Vocabularies.forEach((v) => this.addVocabulary(v))\n    if (this.opts.discriminator) this.addKeyword(discriminator)\n  }\n\n  _addDefaultMetaSchema(): void {\n    super._addDefaultMetaSchema()\n    if (!this.opts.meta) return\n    const metaSchema = this.opts.$data\n      ? this.$dataMetaSchema(draft4MetaSchema, META_SUPPORT_DATA)\n      : draft4MetaSchema\n    this.addMetaSchema(metaSchema, META_SCHEMA_ID, false)\n    this.refs[\"http://json-schema.org/schema\"] = META_SCHEMA_ID\n  }\n\n  defaultMeta(): string | AnySchemaObject | undefined {\n    return (this.opts.defaultMeta =\n      super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined))\n  }\n}\n\nmodule.exports = exports = Ajv\nObject.defineProperty(exports, \"__esModule\", {value: true})\n\nexport default Ajv\n\nexport {\n  Format,\n  FormatDefinition,\n  AsyncFormatDefinition,\n  KeywordDefinition,\n  KeywordErrorDefinition,\n  CodeKeywordDefinition,\n  MacroKeywordDefinition,\n  FuncKeywordDefinition,\n  Vocabulary,\n  Schema,\n  SchemaObject,\n  AnySchemaObject,\n  AsyncSchema,\n  AnySchema,\n  ValidateFunction,\n  AsyncValidateFunction,\n  SchemaValidateFunction,\n  ErrorObject,\n  ErrorNoParams,\n} from \"ajv/dist/types\"\n\nexport {\n  Plugin,\n  Options,\n  CodeOptions,\n  InstanceOptions,\n  Logger,\n  ErrorsTextOptions,\n} from \"ajv/dist/core\"\nexport {SchemaCxt, SchemaObjCxt} from \"ajv/dist/core\"\nexport {KeywordCxt} from \"ajv/dist/core\"\nexport {DefinedError} from \"ajv/dist/core\"\nexport {JSONType} from \"ajv/dist/core\"\nexport {JSONSchemaType} from \"ajv/dist/core\"\nexport {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from \"ajv/dist/core\"\n", "import type {CodeKeywordDefinition} from \"../../types\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"id\",\n  code() {\n    throw new Error('NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID')\n  },\n}\n\nexport default def\n", "import type {Vocabulary} from \"../../types\"\nimport idKeyword from \"./id\"\nimport refKeyword from \"./ref\"\n\nconst core: Vocabulary = [\n  \"$schema\",\n  \"$id\",\n  \"$defs\",\n  \"$vocabulary\",\n  {keyword: \"$comment\"},\n  \"definitions\",\n  idKeyword,\n  refKeyword,\n]\n\nexport default core\n", "import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, operators, Code} from \"../../compile/codegen\"\n\nconst ops = operators\n\ntype Kwd = \"maximum\" | \"minimum\" | \"exclusiveMaximum\" | \"exclusiveMinimum\"\n\ntype Comparison = \"<=\" | \">=\" | \"<\" | \">\"\n\nconst KWDs: {[K in Kwd]: {okStr: Comparison; ok: Code; fail: Code}} = {\n  maximum: {okStr: \"<=\", ok: ops.LTE, fail: ops.GT},\n  minimum: {okStr: \">=\", ok: ops.GTE, fail: ops.LT},\n  exclusiveMaximum: {okStr: \"<\", ok: ops.LT, fail: ops.GTE},\n  exclusiveMinimum: {okStr: \">\", ok: ops.GT, fail: ops.LTE},\n}\n\nexport type LimitNumberError = ErrorObject<\n  Kwd,\n  {limit: number; comparison: Comparison},\n  number | {$data: string}\n>\n\nconst error: KeywordErrorDefinition = {\n  message: ({keyword, schemaCode}) => str`must be ${KWDs[keyword as Kwd].okStr} ${schemaCode}`,\n  params: ({keyword, schemaCode}) =>\n    _`{comparison: ${KWDs[keyword as Kwd].okStr}, limit: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: Object.keys(KWDs),\n  type: \"number\",\n  schemaType: \"number\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {keyword, data, schemaCode} = cxt\n    cxt.fail$data(_`${data} ${KWDs[keyword as Kwd].fail} ${schemaCode} || isNaN(${data})`)\n  },\n}\n\nexport default def\n", "import type {ErrorObject, Vocabulary} from \"../../types\"\nimport limitNumber, {LimitNumberError} from \"./limitNumber\"\nimport multipleOf, {MultipleOfError} from \"./multipleOf\"\nimport limitLength from \"./limitLength\"\nimport pattern, {PatternError} from \"./pattern\"\nimport limitProperties from \"./limitProperties\"\nimport required, {RequiredError} from \"./required\"\nimport limitItems from \"./limitItems\"\nimport uniqueItems, {UniqueItemsError} from \"./uniqueItems\"\nimport constKeyword, {ConstError} from \"./const\"\nimport enumKeyword, {EnumError} from \"./enum\"\n\nconst validation: Vocabulary = [\n  // number\n  limitNumber,\n  multipleOf,\n  // string\n  limitLength,\n  pattern,\n  // object\n  limitProperties,\n  required,\n  // array\n  limitItems,\n  uniqueItems,\n  // any\n  {keyword: \"type\", schemaType: [\"string\", \"array\"]},\n  {keyword: \"nullable\", schemaType: \"boolean\"},\n  constKeyword,\n  enumKeyword,\n]\n\nexport default validation\n\ntype LimitError = ErrorObject<\n  \"maxItems\" | \"minItems\" | \"minProperties\" | \"maxProperties\" | \"minLength\" | \"maxLength\",\n  {limit: number},\n  number | {$data: string}\n>\n\nexport type ValidationKeywordError =\n  | LimitError\n  | LimitNumberError\n  | MultipleOfError\n  | PatternError\n  | RequiredError\n  | UniqueItemsError\n  | ConstError\n  | EnumError\n", "import type {CodeKeywordDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, getProperty, Code} from \"../../compile/codegen\"\nimport N from \"../../compile/names\"\nimport {SchemaEnv, compileSchema} from \"../../compile\"\nimport {getValidate} from \"../core/ref\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"$dynamicAnchor\",\n  schemaType: \"string\",\n  code: (cxt) => dynamicAnchor(cxt, cxt.schema),\n}\n\nexport function dynamicAnchor(cxt: KeywordCxt, anchor: string): void {\n  const {gen, it} = cxt\n  it.schemaEnv.root.dynamicAnchors[anchor] = true\n  const v = _`${N.dynamicAnchors}${getProperty(anchor)}`\n  const validate = it.errSchemaPath === \"#\" ? it.validateName : _getValidate(cxt)\n  gen.if(_`!${v}`, () => gen.assign(v, validate))\n}\n\nfunction _getValidate(cxt: KeywordCxt): Code {\n  const {schemaEnv, schema, self} = cxt.it\n  const {root, baseId, localRefs, meta} = schemaEnv.root\n  const {schemaId} = self.opts\n  const sch = new SchemaEnv({schema, schemaId, root, baseId, localRefs, meta})\n  compileSchema.call(self, sch)\n  return getValidate(cxt, sch)\n}\n\nexport default def\n", "import type {CodeKeywordDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, getProperty, Code, Name} from \"../../compile/codegen\"\nimport N from \"../../compile/names\"\nimport {callRef} from \"../core/ref\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"$dynamicRef\",\n  schemaType: \"string\",\n  code: (cxt) => dynamicRef(cxt, cxt.schema),\n}\n\nexport function dynamicRef(cxt: KeywordCxt, ref: string): void {\n  const {gen, keyword, it} = cxt\n  if (ref[0] !== \"#\") throw new Error(`\"${keyword}\" only supports hash fragment reference`)\n  const anchor = ref.slice(1)\n  if (it.allErrors) {\n    _dynamicRef()\n  } else {\n    const valid = gen.let(\"valid\", false)\n    _dynamicRef(valid)\n    cxt.ok(valid)\n  }\n\n  function _dynamicRef(valid?: Name): void {\n    // TODO the assumption here is that `recursiveRef: #` always points to the root\n    // of the schema object, which is not correct, because there may be $id that\n    // makes # point to it, and the target schema may not contain dynamic/recursiveAnchor.\n    // Because of that 2 tests in recursiveRef.json fail.\n    // This is a similar problem to #815 (`$id` doesn't alter resolution scope for `{ \"$ref\": \"#\" }`).\n    // (This problem is not tested in JSON-Schema-Test-Suite)\n    if (it.schemaEnv.root.dynamicAnchors[anchor]) {\n      const v = gen.let(\"_v\", _`${N.dynamicAnchors}${getProperty(anchor)}`)\n      gen.if(v, _callRef(v, valid), _callRef(it.validateName, valid))\n    } else {\n      _callRef(it.validateName, valid)()\n    }\n  }\n\n  function _callRef(validate: Code, valid?: Name): () => void {\n    return valid\n      ? () =>\n          gen.block(() => {\n            callRef(cxt, validate)\n            gen.let(valid, true)\n          })\n      : () => callRef(cxt, validate)\n  }\n}\n\nexport default def\n", "import type {CodeKeywordDefinition} from \"../../types\"\nimport {dynamicAnchor} from \"./dynamicAnchor\"\nimport {checkStrictMode} from \"../../compile/util\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"$recursiveAnchor\",\n  schemaType: \"boolean\",\n  code(cxt) {\n    if (cxt.schema) dynamicAnchor(cxt, \"\")\n    else checkStrictMode(cxt.it, \"$recursiveAnchor: false is ignored\")\n  },\n}\n\nexport default def\n", "import type {CodeKeywordDefinition} from \"../../types\"\nimport {dynamicRef} from \"./dynamicRef\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"$recursiveRef\",\n  schemaType: \"string\",\n  code: (cxt) => dynamicRef(cxt, cxt.schema),\n}\n\nexport default def\n", "import type {Vocabulary} from \"../../types\"\nimport dynamicAnchor from \"./dynamicAnchor\"\nimport dynamicRef from \"./dynamicRef\"\nimport recursiveAnchor from \"./recursiveAnchor\"\nimport recursiveRef from \"./recursiveRef\"\n\nconst dynamic: Vocabulary = [dynamicAnchor, dynamicRef, recursiveAnchor, recursiveRef]\n\nexport default dynamic\n", "import type {CodeKeywordDefinition, ErrorObject} from \"../../types\"\nimport {\n  validatePropertyDeps,\n  error,\n  DependenciesErrorParams,\n  PropertyDependencies,\n} from \"../applicator/dependencies\"\n\nexport type DependentRequiredError = ErrorObject<\n  \"dependentRequired\",\n  DependenciesErrorParams,\n  PropertyDependencies\n>\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"dependentRequired\",\n  type: \"object\",\n  schemaType: \"object\",\n  error,\n  code: (cxt) => validatePropertyDeps(cxt),\n}\n\nexport default def\n", "import type {CodeKeywordDefinition} from \"../../types\"\nimport {validateSchemaDeps} from \"./dependencies\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"dependentSchemas\",\n  type: \"object\",\n  schemaType: \"object\",\n  code: (cxt) => validateSchemaDeps(cxt),\n}\n\nexport default def\n", "import type {CodeKeywordDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {checkStrictMode} from \"../../compile/util\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: [\"maxContains\", \"minContains\"],\n  type: \"array\",\n  schemaType: \"number\",\n  code({keyword, parentSchema, it}: KeywordCxt) {\n    if (parentSchema.contains === undefined) {\n      checkStrictMode(it, `\"${keyword}\" without \"contains\" is ignored`)\n    }\n  },\n}\n\nexport default def\n", "import type {Vocabulary} from \"../types\"\nimport dependentRequired from \"./validation/dependentRequired\"\nimport dependentSchemas from \"./applicator/dependentSchemas\"\nimport limitContains from \"./validation/limitContains\"\n\nconst next: Vocabulary = [dependentRequired, dependentSchemas, limitContains]\n\nexport default next\n", "import type {\n  CodeKeywordDefinition,\n  KeywordErrorDefinition,\n  ErrorObject,\n  AnySchema,\n} from \"../../types\"\nimport {_, not, and, Name, Code} from \"../../compile/codegen\"\nimport {alwaysValidSchema, Type} from \"../../compile/util\"\nimport N from \"../../compile/names\"\n\nexport type UnevaluatedPropertiesError = ErrorObject<\n  \"unevaluatedProperties\",\n  {unevaluatedProperty: string},\n  AnySchema\n>\n\nconst error: KeywordErrorDefinition = {\n  message: \"must NOT have unevaluated properties\",\n  params: ({params}) => _`{unevaluatedProperty: ${params.unevaluatedProperty}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"unevaluatedProperties\",\n  type: \"object\",\n  schemaType: [\"boolean\", \"object\"],\n  trackErrors: true,\n  error,\n  code(cxt) {\n    const {gen, schema, data, errsCount, it} = cxt\n    /* istanbul ignore if */\n    if (!errsCount) throw new Error(\"ajv implementation error\")\n    const {allErrors, props} = it\n    if (props instanceof Name) {\n      gen.if(_`${props} !== true`, () =>\n        gen.forIn(\"key\", data, (key: Name) =>\n          gen.if(unevaluatedDynamic(props, key), () => unevaluatedPropCode(key))\n        )\n      )\n    } else if (props !== true) {\n      gen.forIn(\"key\", data, (key: Name) =>\n        props === undefined\n          ? unevaluatedPropCode(key)\n          : gen.if(unevaluatedStatic(props, key), () => unevaluatedPropCode(key))\n      )\n    }\n    it.props = true\n    cxt.ok(_`${errsCount} === ${N.errors}`)\n\n    function unevaluatedPropCode(key: Name): void {\n      if (schema === false) {\n        cxt.setParams({unevaluatedProperty: key})\n        cxt.error()\n        if (!allErrors) gen.break()\n        return\n      }\n\n      if (!alwaysValidSchema(it, schema)) {\n        const valid = gen.name(\"valid\")\n        cxt.subschema(\n          {\n            keyword: \"unevaluatedProperties\",\n            dataProp: key,\n            dataPropType: Type.Str,\n          },\n          valid\n        )\n        if (!allErrors) gen.if(not(valid), () => gen.break())\n      }\n    }\n\n    function unevaluatedDynamic(evaluatedProps: Name, key: Name): Code {\n      return _`!${evaluatedProps} || !${evaluatedProps}[${key}]`\n    }\n\n    function unevaluatedStatic(evaluatedProps: {[K in string]?: true}, key: Name): Code {\n      const ps: Code[] = []\n      for (const p in evaluatedProps) {\n        if (evaluatedProps[p] === true) ps.push(_`${key} !== ${p}`)\n      }\n      return and(...ps)\n    }\n  },\n}\n\nexport default def\n", "import type {\n  CodeKeywordDefinition,\n  ErrorObject,\n  KeywordErrorDefinition,\n  AnySchema,\n} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, not, Name} from \"../../compile/codegen\"\nimport {alwaysValidSchema, Type} from \"../../compile/util\"\n\nexport type UnevaluatedItemsError = ErrorObject<\"unevaluatedItems\", {limit: number}, AnySchema>\n\nconst error: KeywordErrorDefinition = {\n  message: ({params: {len}}) => str`must NOT have more than ${len} items`,\n  params: ({params: {len}}) => _`{limit: ${len}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"unevaluatedItems\",\n  type: \"array\",\n  schemaType: [\"boolean\", \"object\"],\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, schema, data, it} = cxt\n    const items = it.items || 0\n    if (items === true) return\n    const len = gen.const(\"len\", _`${data}.length`)\n    if (schema === false) {\n      cxt.setParams({len: items})\n      cxt.fail(_`${len} > ${items}`)\n    } else if (typeof schema == \"object\" && !alwaysValidSchema(it, schema)) {\n      const valid = gen.var(\"valid\", _`${len} <= ${items}`)\n      gen.if(not(valid), () => validateItems(valid, items))\n      cxt.ok(valid)\n    }\n    it.items = true\n\n    function validateItems(valid: Name, from: Name | number): void {\n      gen.forRange(\"i\", from, len, (i) => {\n        cxt.subschema({keyword: \"unevaluatedItems\", dataProp: i, dataPropType: Type.Num}, valid)\n        if (!it.allErrors) gen.if(not(valid), () => gen.break())\n      })\n    }\n  },\n}\n\nexport default def\n", "import type {Vocabulary} from \"../../types\"\nimport unevaluatedProperties from \"./unevaluatedProperties\"\nimport unevaluatedItems from \"./unevaluatedItems\"\n\nconst unevaluated: Vocabulary = [unevaluatedProperties, unevaluatedItems]\n\nexport default unevaluated\n", "import type {Vocabulary} from \"../types\"\n\nexport const metadataVocabulary: Vocabulary = [\n  \"title\",\n  \"description\",\n  \"default\",\n  \"deprecated\",\n  \"readOnly\",\n  \"writeOnly\",\n  \"examples\",\n]\n\nexport const contentVocabulary: Vocabulary = [\n  \"contentMediaType\",\n  \"contentEncoding\",\n  \"contentSchema\",\n]\n", "import type {Vocabulary} from \"../types\"\nimport coreVocabulary from \"./core\"\nimport validationVocabulary from \"./validation\"\nimport getApplicatorVocabulary from \"./applicator\"\nimport dynamicVocabulary from \"./dynamic\"\nimport nextVocabulary from \"./next\"\nimport unevaluatedVocabulary from \"./unevaluated\"\nimport formatVocabulary from \"./format\"\nimport {metadataVocabulary, contentVocabulary} from \"./metadata\"\n\nconst draft2020Vocabularies: Vocabulary[] = [\n  dynamicVocabulary,\n  coreVocabulary,\n  validationVocabulary,\n  getApplicatorVocabulary(true),\n  formatVocabulary,\n  metadataVocabulary,\n  contentVocabulary,\n  nextVocabulary,\n  unevaluatedVocabulary,\n]\n\nexport default draft2020Vocabularies\n", "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"$id\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"$vocabulary\": {\n    \"https://json-schema.org/draft/2020-12/vocab/core\": true,\n    \"https://json-schema.org/draft/2020-12/vocab/applicator\": true,\n    \"https://json-schema.org/draft/2020-12/vocab/unevaluated\": true,\n    \"https://json-schema.org/draft/2020-12/vocab/validation\": true,\n    \"https://json-schema.org/draft/2020-12/vocab/meta-data\": true,\n    \"https://json-schema.org/draft/2020-12/vocab/format-annotation\": true,\n    \"https://json-schema.org/draft/2020-12/vocab/content\": true\n  },\n  \"$dynamicAnchor\": \"meta\",\n\n  \"title\": \"Core and Validation specifications meta-schema\",\n  \"allOf\": [\n    {\"$ref\": \"meta/core\"},\n    {\"$ref\": \"meta/applicator\"},\n    {\"$ref\": \"meta/unevaluated\"},\n    {\"$ref\": \"meta/validation\"},\n    {\"$ref\": \"meta/meta-data\"},\n    {\"$ref\": \"meta/format-annotation\"},\n    {\"$ref\": \"meta/content\"}\n  ],\n  \"type\": [\"object\", \"boolean\"],\n  \"$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.\",\n  \"properties\": {\n    \"definitions\": {\n      \"$comment\": \"\\\"definitions\\\" has been replaced by \\\"$defs\\\".\",\n      \"type\": \"object\",\n      \"additionalProperties\": {\"$dynamicRef\": \"#meta\"},\n      \"deprecated\": true,\n      \"default\": {}\n    },\n    \"dependencies\": {\n      \"$comment\": \"\\\"dependencies\\\" has been split and replaced by \\\"dependentSchemas\\\" and \\\"dependentRequired\\\" in order to serve their differing semantics.\",\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"anyOf\": [{\"$dynamicRef\": \"#meta\"}, {\"$ref\": \"meta/validation#/$defs/stringArray\"}]\n      },\n      \"deprecated\": true,\n      \"default\": {}\n    },\n    \"$recursiveAnchor\": {\n      \"$comment\": \"\\\"$recursiveAnchor\\\" has been replaced by \\\"$dynamicAnchor\\\".\",\n      \"$ref\": \"meta/core#/$defs/anchorString\",\n      \"deprecated\": true\n    },\n    \"$recursiveRef\": {\n      \"$comment\": \"\\\"$recursiveRef\\\" has been replaced by \\\"$dynamicRef\\\".\",\n      \"$ref\": \"meta/core#/$defs/uriReferenceString\",\n      \"deprecated\": true\n    }\n  }\n}\n", "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"$id\": \"https://json-schema.org/draft/2020-12/meta/applicator\",\n  \"$vocabulary\": {\n    \"https://json-schema.org/draft/2020-12/vocab/applicator\": true\n  },\n  \"$dynamicAnchor\": \"meta\",\n\n  \"title\": \"Applicator vocabulary meta-schema\",\n  \"type\": [\"object\", \"boolean\"],\n  \"properties\": {\n    \"prefixItems\": {\"$ref\": \"#/$defs/schemaArray\"},\n    \"items\": {\"$dynamicRef\": \"#meta\"},\n    \"contains\": {\"$dynamicRef\": \"#meta\"},\n    \"additionalProperties\": {\"$dynamicRef\": \"#meta\"},\n    \"properties\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\"$dynamicRef\": \"#meta\"},\n      \"default\": {}\n    },\n    \"patternProperties\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\"$dynamicRef\": \"#meta\"},\n      \"propertyNames\": {\"format\": \"regex\"},\n      \"default\": {}\n    },\n    \"dependentSchemas\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\"$dynamicRef\": \"#meta\"},\n      \"default\": {}\n    },\n    \"propertyNames\": {\"$dynamicRef\": \"#meta\"},\n    \"if\": {\"$dynamicRef\": \"#meta\"},\n    \"then\": {\"$dynamicRef\": \"#meta\"},\n    \"else\": {\"$dynamicRef\": \"#meta\"},\n    \"allOf\": {\"$ref\": \"#/$defs/schemaArray\"},\n    \"anyOf\": {\"$ref\": \"#/$defs/schemaArray\"},\n    \"oneOf\": {\"$ref\": \"#/$defs/schemaArray\"},\n    \"not\": {\"$dynamicRef\": \"#meta\"}\n  },\n  \"$defs\": {\n    \"schemaArray\": {\n      \"type\": \"array\",\n      \"minItems\": 1,\n      \"items\": {\"$dynamicRef\": \"#meta\"}\n    }\n  }\n}\n", "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"$id\": \"https://json-schema.org/draft/2020-12/meta/unevaluated\",\n  \"$vocabulary\": {\n    \"https://json-schema.org/draft/2020-12/vocab/unevaluated\": true\n  },\n  \"$dynamicAnchor\": \"meta\",\n\n  \"title\": \"Unevaluated applicator vocabulary meta-schema\",\n  \"type\": [\"object\", \"boolean\"],\n  \"properties\": {\n    \"unevaluatedItems\": {\"$dynamicRef\": \"#meta\"},\n    \"unevaluatedProperties\": {\"$dynamicRef\": \"#meta\"}\n  }\n}\n", "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"$id\": \"https://json-schema.org/draft/2020-12/meta/content\",\n  \"$vocabulary\": {\n    \"https://json-schema.org/draft/2020-12/vocab/content\": true\n  },\n  \"$dynamicAnchor\": \"meta\",\n\n  \"title\": \"Content vocabulary meta-schema\",\n\n  \"type\": [\"object\", \"boolean\"],\n  \"properties\": {\n    \"contentEncoding\": {\"type\": \"string\"},\n    \"contentMediaType\": {\"type\": \"string\"},\n    \"contentSchema\": {\"$dynamicRef\": \"#meta\"}\n  }\n}\n", "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"$id\": \"https://json-schema.org/draft/2020-12/meta/core\",\n  \"$vocabulary\": {\n    \"https://json-schema.org/draft/2020-12/vocab/core\": true\n  },\n  \"$dynamicAnchor\": \"meta\",\n\n  \"title\": \"Core vocabulary meta-schema\",\n  \"type\": [\"object\", \"boolean\"],\n  \"properties\": {\n    \"$id\": {\n      \"$ref\": \"#/$defs/uriReferenceString\",\n      \"$comment\": \"Non-empty fragments not allowed.\",\n      \"pattern\": \"^[^#]*#?$\"\n    },\n    \"$schema\": {\"$ref\": \"#/$defs/uriString\"},\n    \"$ref\": {\"$ref\": \"#/$defs/uriReferenceString\"},\n    \"$anchor\": {\"$ref\": \"#/$defs/anchorString\"},\n    \"$dynamicRef\": {\"$ref\": \"#/$defs/uriReferenceString\"},\n    \"$dynamicAnchor\": {\"$ref\": \"#/$defs/anchorString\"},\n    \"$vocabulary\": {\n      \"type\": \"object\",\n      \"propertyNames\": {\"$ref\": \"#/$defs/uriString\"},\n      \"additionalProperties\": {\n        \"type\": \"boolean\"\n      }\n    },\n    \"$comment\": {\n      \"type\": \"string\"\n    },\n    \"$defs\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\"$dynamicRef\": \"#meta\"}\n    }\n  },\n  \"$defs\": {\n    \"anchorString\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[A-Za-z_][-A-Za-z0-9._]*$\"\n    },\n    \"uriString\": {\n      \"type\": \"string\",\n      \"format\": \"uri\"\n    },\n    \"uriReferenceString\": {\n      \"type\": \"string\",\n      \"format\": \"uri-reference\"\n    }\n  }\n}\n", "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"$id\": \"https://json-schema.org/draft/2020-12/meta/format-annotation\",\n  \"$vocabulary\": {\n    \"https://json-schema.org/draft/2020-12/vocab/format-annotation\": true\n  },\n  \"$dynamicAnchor\": \"meta\",\n\n  \"title\": \"Format vocabulary meta-schema for annotation results\",\n  \"type\": [\"object\", \"boolean\"],\n  \"properties\": {\n    \"format\": {\"type\": \"string\"}\n  }\n}\n", "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"$id\": \"https://json-schema.org/draft/2020-12/meta/meta-data\",\n  \"$vocabulary\": {\n    \"https://json-schema.org/draft/2020-12/vocab/meta-data\": true\n  },\n  \"$dynamicAnchor\": \"meta\",\n\n  \"title\": \"Meta-data vocabulary meta-schema\",\n\n  \"type\": [\"object\", \"boolean\"],\n  \"properties\": {\n    \"title\": {\n      \"type\": \"string\"\n    },\n    \"description\": {\n      \"type\": \"string\"\n    },\n    \"default\": true,\n    \"deprecated\": {\n      \"type\": \"boolean\",\n      \"default\": false\n    },\n    \"readOnly\": {\n      \"type\": \"boolean\",\n      \"default\": false\n    },\n    \"writeOnly\": {\n      \"type\": \"boolean\",\n      \"default\": false\n    },\n    \"examples\": {\n      \"type\": \"array\",\n      \"items\": true\n    }\n  }\n}\n", "{\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"$id\": \"https://json-schema.org/draft/2020-12/meta/validation\",\n  \"$vocabulary\": {\n    \"https://json-schema.org/draft/2020-12/vocab/validation\": true\n  },\n  \"$dynamicAnchor\": \"meta\",\n\n  \"title\": \"Validation vocabulary meta-schema\",\n  \"type\": [\"object\", \"boolean\"],\n  \"properties\": {\n    \"type\": {\n      \"anyOf\": [\n        {\"$ref\": \"#/$defs/simpleTypes\"},\n        {\n          \"type\": \"array\",\n          \"items\": {\"$ref\": \"#/$defs/simpleTypes\"},\n          \"minItems\": 1,\n          \"uniqueItems\": true\n        }\n      ]\n    },\n    \"const\": true,\n    \"enum\": {\n      \"type\": \"array\",\n      \"items\": true\n    },\n    \"multipleOf\": {\n      \"type\": \"number\",\n      \"exclusiveMinimum\": 0\n    },\n    \"maximum\": {\n      \"type\": \"number\"\n    },\n    \"exclusiveMaximum\": {\n      \"type\": \"number\"\n    },\n    \"minimum\": {\n      \"type\": \"number\"\n    },\n    \"exclusiveMinimum\": {\n      \"type\": \"number\"\n    },\n    \"maxLength\": {\"$ref\": \"#/$defs/nonNegativeInteger\"},\n    \"minLength\": {\"$ref\": \"#/$defs/nonNegativeIntegerDefault0\"},\n    \"pattern\": {\n      \"type\": \"string\",\n      \"format\": \"regex\"\n    },\n    \"maxItems\": {\"$ref\": \"#/$defs/nonNegativeInteger\"},\n    \"minItems\": {\"$ref\": \"#/$defs/nonNegativeIntegerDefault0\"},\n    \"uniqueItems\": {\n      \"type\": \"boolean\",\n      \"default\": false\n    },\n    \"maxContains\": {\"$ref\": \"#/$defs/nonNegativeInteger\"},\n    \"minContains\": {\n      \"$ref\": \"#/$defs/nonNegativeInteger\",\n      \"default\": 1\n    },\n    \"maxProperties\": {\"$ref\": \"#/$defs/nonNegativeInteger\"},\n    \"minProperties\": {\"$ref\": \"#/$defs/nonNegativeIntegerDefault0\"},\n    \"required\": {\"$ref\": \"#/$defs/stringArray\"},\n    \"dependentRequired\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"$ref\": \"#/$defs/stringArray\"\n      }\n    }\n  },\n  \"$defs\": {\n    \"nonNegativeInteger\": {\n      \"type\": \"integer\",\n      \"minimum\": 0\n    },\n    \"nonNegativeIntegerDefault0\": {\n      \"$ref\": \"#/$defs/nonNegativeInteger\",\n      \"default\": 0\n    },\n    \"simpleTypes\": {\n      \"enum\": [\"array\", \"boolean\", \"integer\", \"null\", \"number\", \"object\", \"string\"]\n    },\n    \"stringArray\": {\n      \"type\": \"array\",\n      \"items\": {\"type\": \"string\"},\n      \"uniqueItems\": true,\n      \"default\": []\n    }\n  }\n}\n", "import type Ajv from \"../../core\"\nimport type {AnySchemaObject} from \"../../types\"\nimport * as metaSchema from \"./schema.json\"\nimport * as applicator from \"./meta/applicator.json\"\nimport * as unevaluated from \"./meta/unevaluated.json\"\nimport * as content from \"./meta/content.json\"\nimport * as core from \"./meta/core.json\"\nimport * as format from \"./meta/format-annotation.json\"\nimport * as metadata from \"./meta/meta-data.json\"\nimport * as validation from \"./meta/validation.json\"\n\nconst META_SUPPORT_DATA = [\"/properties\"]\n\nexport default function addMetaSchema2020(this: Ajv, $data?: boolean): Ajv {\n  ;[\n    metaSchema,\n    applicator,\n    unevaluated,\n    content,\n    core,\n    with$data(this, format),\n    metadata,\n    with$data(this, validation),\n  ].forEach((sch) => this.addMetaSchema(sch, undefined, false))\n  return this\n\n  function with$data(ajv: Ajv, sch: AnySchemaObject): AnySchemaObject {\n    return $data ? ajv.$dataMetaSchema(sch, META_SUPPORT_DATA) : sch\n  }\n}\n", "import type {AnySchemaObject} from \"./types\"\nimport AjvCore, {Options} from \"./core\"\n\nimport draft2020Vocabularies from \"./vocabularies/draft2020\"\nimport discriminator from \"./vocabularies/discriminator\"\nimport addMetaSchema2020 from \"./refs/json-schema-2020-12\"\n\nconst META_SCHEMA_ID = \"https://json-schema.org/draft/2020-12/schema\"\n\nexport class Ajv2020 extends AjvCore {\n  constructor(opts: Options = {}) {\n    super({\n      ...opts,\n      dynamicRef: true,\n      next: true,\n      unevaluated: true,\n    })\n  }\n\n  _addVocabularies(): void {\n    super._addVocabularies()\n    draft2020Vocabularies.forEach((v) => this.addVocabulary(v))\n    if (this.opts.discriminator) this.addKeyword(discriminator)\n  }\n\n  _addDefaultMetaSchema(): void {\n    super._addDefaultMetaSchema()\n    const {$data, meta} = this.opts\n    if (!meta) return\n    addMetaSchema2020.call(this, $data)\n    this.refs[\"http://json-schema.org/schema\"] = META_SCHEMA_ID\n  }\n\n  defaultMeta(): string | AnySchemaObject | undefined {\n    return (this.opts.defaultMeta =\n      super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined))\n  }\n}\n\nmodule.exports = exports = Ajv2020\nmodule.exports.Ajv2020 = Ajv2020\nObject.defineProperty(exports, \"__esModule\", {value: true})\n\nexport default Ajv2020\n\nexport {\n  Format,\n  FormatDefinition,\n  AsyncFormatDefinition,\n  KeywordDefinition,\n  KeywordErrorDefinition,\n  CodeKeywordDefinition,\n  MacroKeywordDefinition,\n  FuncKeywordDefinition,\n  Vocabulary,\n  Schema,\n  SchemaObject,\n  AnySchemaObject,\n  AsyncSchema,\n  AnySchema,\n  ValidateFunction,\n  AsyncValidateFunction,\n  ErrorObject,\n  ErrorNoParams,\n} from \"./types\"\n\nexport {Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions} from \"./core\"\nexport {SchemaCxt, SchemaObjCxt} from \"./compile\"\nexport {KeywordCxt} from \"./compile/validate\"\nexport {DefinedError} from \"./vocabularies/errors\"\nexport {JSONType} from \"./compile/rules\"\nexport {JSONSchemaType} from \"./types/json-schema\"\nexport {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from \"./compile/codegen\"\nexport {default as ValidationError} from \"./runtime/validation_error\"\nexport {default as MissingRefError} from \"./compile/ref_error\"\n", "{\n    \"id\": \"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v1.2/apiDeclaration.json#\",\n    \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n    \"type\": \"object\",\n    \"required\": [ \"swaggerVersion\", \"basePath\", \"apis\" ],\n    \"properties\": {\n        \"swaggerVersion\": { \"enum\": [ \"1.2\" ] },\n        \"apiVersion\": { \"type\": \"string\" },\n        \"basePath\": {\n            \"type\": \"string\",\n            \"format\": \"uri\",\n            \"pattern\": \"^https?://\"\n        },\n        \"resourcePath\": {\n            \"type\": \"string\",\n            \"format\": \"uri\",\n            \"pattern\": \"^/\"\n        },\n        \"apis\": {\n            \"type\": \"array\",\n            \"items\": { \"$ref\": \"#/definitions/apiObject\" }\n        },\n        \"models\": {\n            \"type\": \"object\",\n            \"additionalProperties\": {\n                \"$ref\": \"modelsObject.json#\"\n            }\n        },\n        \"produces\": { \"$ref\": \"#/definitions/mimeTypeArray\" },\n        \"consumes\": { \"$ref\": \"#/definitions/mimeTypeArray\" },\n        \"authorizations\": { \"$ref\": \"authorizationObject.json#\" }\n    },\n    \"additionalProperties\": false,\n    \"definitions\": {\n        \"apiObject\": {\n            \"type\": \"object\",\n            \"required\": [ \"path\", \"operations\" ],\n            \"properties\": {\n                \"path\": {\n                    \"type\": \"string\",\n                    \"format\": \"uri-template\",\n                    \"pattern\": \"^/\"\n                },\n                \"description\": { \"type\": \"string\" },\n                \"operations\": {\n                    \"type\": \"array\",\n                    \"items\": { \"$ref\": \"operationObject.json#\" }\n                }\n            },\n            \"additionalProperties\": false\n        },\n        \"mimeTypeArray\": {\n            \"type\": \"array\",\n            \"items\": {\n                \"type\": \"string\",\n                \"format\": \"mime-type\"\n            },\n            \"uniqueItems\": true\n        }\n    }\n}\n", "{\n  \"title\": \"A JSON Schema for Swagger 2.0 API.\",\n  \"id\": \"http://swagger.io/v2/schema.json#\",\n  \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n  \"type\": \"object\",\n  \"required\": [\n    \"swagger\",\n    \"info\",\n    \"paths\"\n  ],\n  \"additionalProperties\": false,\n  \"patternProperties\": {\n    \"^x-\": {\n      \"$ref\": \"#/definitions/vendorExtension\"\n    }\n  },\n  \"properties\": {\n    \"swagger\": {\n      \"type\": \"string\",\n      \"enum\": [\n        \"2.0\"\n      ],\n      \"description\": \"The Swagger version of this document.\"\n    },\n    \"info\": {\n      \"$ref\": \"#/definitions/info\"\n    },\n    \"host\": {\n      \"type\": \"string\",\n      \"pattern\": \"^[^{}/ :\\\\\\\\]+(?::\\\\d+)?$\",\n      \"description\": \"The host (name or ip) of the API. Example: 'swagger.io'\"\n    },\n    \"basePath\": {\n      \"type\": \"string\",\n      \"pattern\": \"^/\",\n      \"description\": \"The base path to the API. Example: '/api'.\"\n    },\n    \"schemes\": {\n      \"$ref\": \"#/definitions/schemesList\"\n    },\n    \"consumes\": {\n      \"description\": \"A list of MIME types accepted by the API.\",\n      \"allOf\": [\n        {\n          \"$ref\": \"#/definitions/mediaTypeList\"\n        }\n      ]\n    },\n    \"produces\": {\n      \"description\": \"A list of MIME types the API can produce.\",\n      \"allOf\": [\n        {\n          \"$ref\": \"#/definitions/mediaTypeList\"\n        }\n      ]\n    },\n    \"paths\": {\n      \"$ref\": \"#/definitions/paths\"\n    },\n    \"definitions\": {\n      \"$ref\": \"#/definitions/definitions\"\n    },\n    \"parameters\": {\n      \"$ref\": \"#/definitions/parameterDefinitions\"\n    },\n    \"responses\": {\n      \"$ref\": \"#/definitions/responseDefinitions\"\n    },\n    \"security\": {\n      \"$ref\": \"#/definitions/security\"\n    },\n    \"securityDefinitions\": {\n      \"$ref\": \"#/definitions/securityDefinitions\"\n    },\n    \"tags\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"$ref\": \"#/definitions/tag\"\n      },\n      \"uniqueItems\": true\n    },\n    \"externalDocs\": {\n      \"$ref\": \"#/definitions/externalDocs\"\n    }\n  },\n  \"definitions\": {\n    \"info\": {\n      \"type\": \"object\",\n      \"description\": \"General information about the API.\",\n      \"required\": [\n        \"version\",\n        \"title\"\n      ],\n      \"additionalProperties\": false,\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      },\n      \"properties\": {\n        \"title\": {\n          \"type\": \"string\",\n          \"description\": \"A unique and precise title of the API.\"\n        },\n        \"version\": {\n          \"type\": \"string\",\n          \"description\": \"A semantic version number of the API.\"\n        },\n        \"description\": {\n          \"type\": \"string\",\n          \"description\": \"A longer description of the API. Should be different from the title.  GitHub Flavored Markdown is allowed.\"\n        },\n        \"termsOfService\": {\n          \"type\": \"string\",\n          \"description\": \"The terms of service for the API.\"\n        },\n        \"contact\": {\n          \"$ref\": \"#/definitions/contact\"\n        },\n        \"license\": {\n          \"$ref\": \"#/definitions/license\"\n        }\n      }\n    },\n    \"contact\": {\n      \"type\": \"object\",\n      \"description\": \"Contact information for the owners of the API.\",\n      \"additionalProperties\": false,\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\",\n          \"description\": \"The identifying name of the contact person/organization.\"\n        },\n        \"url\": {\n          \"type\": \"string\",\n          \"description\": \"The URL pointing to the contact information.\",\n          \"format\": \"uri\"\n        },\n        \"email\": {\n          \"type\": \"string\",\n          \"description\": \"The email address of the contact person/organization.\",\n          \"format\": \"email\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"license\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"name\"\n      ],\n      \"additionalProperties\": false,\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\",\n          \"description\": \"The name of the license type. It's encouraged to use an OSI compatible license.\"\n        },\n        \"url\": {\n          \"type\": \"string\",\n          \"description\": \"The URL pointing to the license.\",\n          \"format\": \"uri\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"paths\": {\n      \"type\": \"object\",\n      \"description\": \"Relative paths to the individual endpoints. They must be relative to the 'basePath'.\",\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        },\n        \"^/\": {\n          \"$ref\": \"#/definitions/pathItem\"\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"definitions\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"$ref\": \"#/definitions/schema\"\n      },\n      \"description\": \"One or more JSON objects describing the schemas being consumed and produced by the API.\"\n    },\n    \"parameterDefinitions\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"$ref\": \"#/definitions/parameter\"\n      },\n      \"description\": \"One or more JSON representations for parameters\"\n    },\n    \"responseDefinitions\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"$ref\": \"#/definitions/response\"\n      },\n      \"description\": \"One or more JSON representations for responses\"\n    },\n    \"externalDocs\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"description\": \"information about external documentation\",\n      \"required\": [\n        \"url\"\n      ],\n      \"properties\": {\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"url\": {\n          \"type\": \"string\",\n          \"format\": \"uri\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"examples\": {\n      \"type\": \"object\",\n      \"additionalProperties\": true\n    },\n    \"mimeType\": {\n      \"type\": \"string\",\n      \"description\": \"The MIME type of the HTTP message.\"\n    },\n    \"operation\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"responses\"\n      ],\n      \"additionalProperties\": false,\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      },\n      \"properties\": {\n        \"tags\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"type\": \"string\"\n          },\n          \"uniqueItems\": true\n        },\n        \"summary\": {\n          \"type\": \"string\",\n          \"description\": \"A brief summary of the operation.\"\n        },\n        \"description\": {\n          \"type\": \"string\",\n          \"description\": \"A longer description of the operation, GitHub Flavored Markdown is allowed.\"\n        },\n        \"externalDocs\": {\n          \"$ref\": \"#/definitions/externalDocs\"\n        },\n        \"operationId\": {\n          \"type\": \"string\",\n          \"description\": \"A unique identifier of the operation.\"\n        },\n        \"produces\": {\n          \"description\": \"A list of MIME types the API can produce.\",\n          \"allOf\": [\n            {\n              \"$ref\": \"#/definitions/mediaTypeList\"\n            }\n          ]\n        },\n        \"consumes\": {\n          \"description\": \"A list of MIME types the API can consume.\",\n          \"allOf\": [\n            {\n              \"$ref\": \"#/definitions/mediaTypeList\"\n            }\n          ]\n        },\n        \"parameters\": {\n          \"$ref\": \"#/definitions/parametersList\"\n        },\n        \"responses\": {\n          \"$ref\": \"#/definitions/responses\"\n        },\n        \"schemes\": {\n          \"$ref\": \"#/definitions/schemesList\"\n        },\n        \"deprecated\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"security\": {\n          \"$ref\": \"#/definitions/security\"\n        }\n      }\n    },\n    \"pathItem\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      },\n      \"properties\": {\n        \"$ref\": {\n          \"type\": \"string\"\n        },\n        \"get\": {\n          \"$ref\": \"#/definitions/operation\"\n        },\n        \"put\": {\n          \"$ref\": \"#/definitions/operation\"\n        },\n        \"post\": {\n          \"$ref\": \"#/definitions/operation\"\n        },\n        \"delete\": {\n          \"$ref\": \"#/definitions/operation\"\n        },\n        \"options\": {\n          \"$ref\": \"#/definitions/operation\"\n        },\n        \"head\": {\n          \"$ref\": \"#/definitions/operation\"\n        },\n        \"patch\": {\n          \"$ref\": \"#/definitions/operation\"\n        },\n        \"parameters\": {\n          \"$ref\": \"#/definitions/parametersList\"\n        }\n      }\n    },\n    \"responses\": {\n      \"type\": \"object\",\n      \"description\": \"Response objects names can either be any valid HTTP status code or 'default'.\",\n      \"minProperties\": 1,\n      \"additionalProperties\": false,\n      \"patternProperties\": {\n        \"^([0-9]{3})$|^(default)$\": {\n          \"$ref\": \"#/definitions/responseValue\"\n        },\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      },\n      \"not\": {\n        \"type\": \"object\",\n        \"additionalProperties\": false,\n        \"patternProperties\": {\n          \"^x-\": {\n            \"$ref\": \"#/definitions/vendorExtension\"\n          }\n        }\n      }\n    },\n    \"responseValue\": {\n      \"oneOf\": [\n        {\n          \"$ref\": \"#/definitions/response\"\n        },\n        {\n          \"$ref\": \"#/definitions/jsonReference\"\n        }\n      ]\n    },\n    \"response\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"description\"\n      ],\n      \"properties\": {\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"schema\": {\n          \"oneOf\": [\n            {\n              \"$ref\": \"#/definitions/schema\"\n            },\n            {\n              \"$ref\": \"#/definitions/fileSchema\"\n            }\n          ]\n        },\n        \"headers\": {\n          \"$ref\": \"#/definitions/headers\"\n        },\n        \"examples\": {\n          \"$ref\": \"#/definitions/examples\"\n        }\n      },\n      \"additionalProperties\": false,\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"headers\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"$ref\": \"#/definitions/header\"\n      }\n    },\n    \"header\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"required\": [\n        \"type\"\n      ],\n      \"properties\": {\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"string\",\n            \"number\",\n            \"integer\",\n            \"boolean\",\n            \"array\"\n          ]\n        },\n        \"format\": {\n          \"type\": \"string\"\n        },\n        \"items\": {\n          \"$ref\": \"#/definitions/primitivesItems\"\n        },\n        \"collectionFormat\": {\n          \"$ref\": \"#/definitions/collectionFormat\"\n        },\n        \"default\": {\n          \"$ref\": \"#/definitions/default\"\n        },\n        \"maximum\": {\n          \"$ref\": \"#/definitions/maximum\"\n        },\n        \"exclusiveMaximum\": {\n          \"$ref\": \"#/definitions/exclusiveMaximum\"\n        },\n        \"minimum\": {\n          \"$ref\": \"#/definitions/minimum\"\n        },\n        \"exclusiveMinimum\": {\n          \"$ref\": \"#/definitions/exclusiveMinimum\"\n        },\n        \"maxLength\": {\n          \"$ref\": \"#/definitions/maxLength\"\n        },\n        \"minLength\": {\n          \"$ref\": \"#/definitions/minLength\"\n        },\n        \"pattern\": {\n          \"$ref\": \"#/definitions/pattern\"\n        },\n        \"maxItems\": {\n          \"$ref\": \"#/definitions/maxItems\"\n        },\n        \"minItems\": {\n          \"$ref\": \"#/definitions/minItems\"\n        },\n        \"uniqueItems\": {\n          \"$ref\": \"#/definitions/uniqueItems\"\n        },\n        \"enum\": {\n          \"$ref\": \"#/definitions/enum\"\n        },\n        \"multipleOf\": {\n          \"$ref\": \"#/definitions/multipleOf\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"vendorExtension\": {\n      \"description\": \"Any property starting with x- is valid.\",\n      \"additionalProperties\": true,\n      \"additionalItems\": true\n    },\n    \"bodyParameter\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"name\",\n        \"in\",\n        \"schema\"\n      ],\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      },\n      \"properties\": {\n        \"description\": {\n          \"type\": \"string\",\n          \"description\": \"A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed.\"\n        },\n        \"name\": {\n          \"type\": \"string\",\n          \"description\": \"The name of the parameter.\"\n        },\n        \"in\": {\n          \"type\": \"string\",\n          \"description\": \"Determines the location of the parameter.\",\n          \"enum\": [\n            \"body\"\n          ]\n        },\n        \"required\": {\n          \"type\": \"boolean\",\n          \"description\": \"Determines whether or not this parameter is required or optional.\",\n          \"default\": false\n        },\n        \"schema\": {\n          \"$ref\": \"#/definitions/schema\"\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"headerParameterSubSchema\": {\n      \"additionalProperties\": false,\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      },\n      \"properties\": {\n        \"required\": {\n          \"type\": \"boolean\",\n          \"description\": \"Determines whether or not this parameter is required or optional.\",\n          \"default\": false\n        },\n        \"in\": {\n          \"type\": \"string\",\n          \"description\": \"Determines the location of the parameter.\",\n          \"enum\": [\n            \"header\"\n          ]\n        },\n        \"description\": {\n          \"type\": \"string\",\n          \"description\": \"A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed.\"\n        },\n        \"name\": {\n          \"type\": \"string\",\n          \"description\": \"The name of the parameter.\"\n        },\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"string\",\n            \"number\",\n            \"boolean\",\n            \"integer\",\n            \"array\"\n          ]\n        },\n        \"format\": {\n          \"type\": \"string\"\n        },\n        \"items\": {\n          \"$ref\": \"#/definitions/primitivesItems\"\n        },\n        \"collectionFormat\": {\n          \"$ref\": \"#/definitions/collectionFormat\"\n        },\n        \"default\": {\n          \"$ref\": \"#/definitions/default\"\n        },\n        \"maximum\": {\n          \"$ref\": \"#/definitions/maximum\"\n        },\n        \"exclusiveMaximum\": {\n          \"$ref\": \"#/definitions/exclusiveMaximum\"\n        },\n        \"minimum\": {\n          \"$ref\": \"#/definitions/minimum\"\n        },\n        \"exclusiveMinimum\": {\n          \"$ref\": \"#/definitions/exclusiveMinimum\"\n        },\n        \"maxLength\": {\n          \"$ref\": \"#/definitions/maxLength\"\n        },\n        \"minLength\": {\n          \"$ref\": \"#/definitions/minLength\"\n        },\n        \"pattern\": {\n          \"$ref\": \"#/definitions/pattern\"\n        },\n        \"maxItems\": {\n          \"$ref\": \"#/definitions/maxItems\"\n        },\n        \"minItems\": {\n          \"$ref\": \"#/definitions/minItems\"\n        },\n        \"uniqueItems\": {\n          \"$ref\": \"#/definitions/uniqueItems\"\n        },\n        \"enum\": {\n          \"$ref\": \"#/definitions/enum\"\n        },\n        \"multipleOf\": {\n          \"$ref\": \"#/definitions/multipleOf\"\n        }\n      }\n    },\n    \"queryParameterSubSchema\": {\n      \"additionalProperties\": false,\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      },\n      \"properties\": {\n        \"required\": {\n          \"type\": \"boolean\",\n          \"description\": \"Determines whether or not this parameter is required or optional.\",\n          \"default\": false\n        },\n        \"in\": {\n          \"type\": \"string\",\n          \"description\": \"Determines the location of the parameter.\",\n          \"enum\": [\n            \"query\"\n          ]\n        },\n        \"description\": {\n          \"type\": \"string\",\n          \"description\": \"A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed.\"\n        },\n        \"name\": {\n          \"type\": \"string\",\n          \"description\": \"The name of the parameter.\"\n        },\n        \"allowEmptyValue\": {\n          \"type\": \"boolean\",\n          \"default\": false,\n          \"description\": \"allows sending a parameter by name only or with an empty value.\"\n        },\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"string\",\n            \"number\",\n            \"boolean\",\n            \"integer\",\n            \"array\"\n          ]\n        },\n        \"format\": {\n          \"type\": \"string\"\n        },\n        \"items\": {\n          \"$ref\": \"#/definitions/primitivesItems\"\n        },\n        \"collectionFormat\": {\n          \"$ref\": \"#/definitions/collectionFormatWithMulti\"\n        },\n        \"default\": {\n          \"$ref\": \"#/definitions/default\"\n        },\n        \"maximum\": {\n          \"$ref\": \"#/definitions/maximum\"\n        },\n        \"exclusiveMaximum\": {\n          \"$ref\": \"#/definitions/exclusiveMaximum\"\n        },\n        \"minimum\": {\n          \"$ref\": \"#/definitions/minimum\"\n        },\n        \"exclusiveMinimum\": {\n          \"$ref\": \"#/definitions/exclusiveMinimum\"\n        },\n        \"maxLength\": {\n          \"$ref\": \"#/definitions/maxLength\"\n        },\n        \"minLength\": {\n          \"$ref\": \"#/definitions/minLength\"\n        },\n        \"pattern\": {\n          \"$ref\": \"#/definitions/pattern\"\n        },\n        \"maxItems\": {\n          \"$ref\": \"#/definitions/maxItems\"\n        },\n        \"minItems\": {\n          \"$ref\": \"#/definitions/minItems\"\n        },\n        \"uniqueItems\": {\n          \"$ref\": \"#/definitions/uniqueItems\"\n        },\n        \"enum\": {\n          \"$ref\": \"#/definitions/enum\"\n        },\n        \"multipleOf\": {\n          \"$ref\": \"#/definitions/multipleOf\"\n        }\n      }\n    },\n    \"formDataParameterSubSchema\": {\n      \"additionalProperties\": false,\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      },\n      \"properties\": {\n        \"required\": {\n          \"type\": \"boolean\",\n          \"description\": \"Determines whether or not this parameter is required or optional.\",\n          \"default\": false\n        },\n        \"in\": {\n          \"type\": \"string\",\n          \"description\": \"Determines the location of the parameter.\",\n          \"enum\": [\n            \"formData\"\n          ]\n        },\n        \"description\": {\n          \"type\": \"string\",\n          \"description\": \"A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed.\"\n        },\n        \"name\": {\n          \"type\": \"string\",\n          \"description\": \"The name of the parameter.\"\n        },\n        \"allowEmptyValue\": {\n          \"type\": \"boolean\",\n          \"default\": false,\n          \"description\": \"allows sending a parameter by name only or with an empty value.\"\n        },\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"string\",\n            \"number\",\n            \"boolean\",\n            \"integer\",\n            \"array\",\n            \"file\"\n          ]\n        },\n        \"format\": {\n          \"type\": \"string\"\n        },\n        \"items\": {\n          \"$ref\": \"#/definitions/primitivesItems\"\n        },\n        \"collectionFormat\": {\n          \"$ref\": \"#/definitions/collectionFormatWithMulti\"\n        },\n        \"default\": {\n          \"$ref\": \"#/definitions/default\"\n        },\n        \"maximum\": {\n          \"$ref\": \"#/definitions/maximum\"\n        },\n        \"exclusiveMaximum\": {\n          \"$ref\": \"#/definitions/exclusiveMaximum\"\n        },\n        \"minimum\": {\n          \"$ref\": \"#/definitions/minimum\"\n        },\n        \"exclusiveMinimum\": {\n          \"$ref\": \"#/definitions/exclusiveMinimum\"\n        },\n        \"maxLength\": {\n          \"$ref\": \"#/definitions/maxLength\"\n        },\n        \"minLength\": {\n          \"$ref\": \"#/definitions/minLength\"\n        },\n        \"pattern\": {\n          \"$ref\": \"#/definitions/pattern\"\n        },\n        \"maxItems\": {\n          \"$ref\": \"#/definitions/maxItems\"\n        },\n        \"minItems\": {\n          \"$ref\": \"#/definitions/minItems\"\n        },\n        \"uniqueItems\": {\n          \"$ref\": \"#/definitions/uniqueItems\"\n        },\n        \"enum\": {\n          \"$ref\": \"#/definitions/enum\"\n        },\n        \"multipleOf\": {\n          \"$ref\": \"#/definitions/multipleOf\"\n        }\n      }\n    },\n    \"pathParameterSubSchema\": {\n      \"additionalProperties\": false,\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      },\n      \"required\": [\n        \"required\"\n      ],\n      \"properties\": {\n        \"required\": {\n          \"type\": \"boolean\",\n          \"enum\": [\n            true\n          ],\n          \"description\": \"Determines whether or not this parameter is required or optional.\"\n        },\n        \"in\": {\n          \"type\": \"string\",\n          \"description\": \"Determines the location of the parameter.\",\n          \"enum\": [\n            \"path\"\n          ]\n        },\n        \"description\": {\n          \"type\": \"string\",\n          \"description\": \"A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed.\"\n        },\n        \"name\": {\n          \"type\": \"string\",\n          \"description\": \"The name of the parameter.\"\n        },\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"string\",\n            \"number\",\n            \"boolean\",\n            \"integer\",\n            \"array\"\n          ]\n        },\n        \"format\": {\n          \"type\": \"string\"\n        },\n        \"items\": {\n          \"$ref\": \"#/definitions/primitivesItems\"\n        },\n        \"collectionFormat\": {\n          \"$ref\": \"#/definitions/collectionFormat\"\n        },\n        \"default\": {\n          \"$ref\": \"#/definitions/default\"\n        },\n        \"maximum\": {\n          \"$ref\": \"#/definitions/maximum\"\n        },\n        \"exclusiveMaximum\": {\n          \"$ref\": \"#/definitions/exclusiveMaximum\"\n        },\n        \"minimum\": {\n          \"$ref\": \"#/definitions/minimum\"\n        },\n        \"exclusiveMinimum\": {\n          \"$ref\": \"#/definitions/exclusiveMinimum\"\n        },\n        \"maxLength\": {\n          \"$ref\": \"#/definitions/maxLength\"\n        },\n        \"minLength\": {\n          \"$ref\": \"#/definitions/minLength\"\n        },\n        \"pattern\": {\n          \"$ref\": \"#/definitions/pattern\"\n        },\n        \"maxItems\": {\n          \"$ref\": \"#/definitions/maxItems\"\n        },\n        \"minItems\": {\n          \"$ref\": \"#/definitions/minItems\"\n        },\n        \"uniqueItems\": {\n          \"$ref\": \"#/definitions/uniqueItems\"\n        },\n        \"enum\": {\n          \"$ref\": \"#/definitions/enum\"\n        },\n        \"multipleOf\": {\n          \"$ref\": \"#/definitions/multipleOf\"\n        }\n      }\n    },\n    \"nonBodyParameter\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"name\",\n        \"in\",\n        \"type\"\n      ],\n      \"oneOf\": [\n        {\n          \"$ref\": \"#/definitions/headerParameterSubSchema\"\n        },\n        {\n          \"$ref\": \"#/definitions/formDataParameterSubSchema\"\n        },\n        {\n          \"$ref\": \"#/definitions/queryParameterSubSchema\"\n        },\n        {\n          \"$ref\": \"#/definitions/pathParameterSubSchema\"\n        }\n      ]\n    },\n    \"parameter\": {\n      \"oneOf\": [\n        {\n          \"$ref\": \"#/definitions/bodyParameter\"\n        },\n        {\n          \"$ref\": \"#/definitions/nonBodyParameter\"\n        }\n      ]\n    },\n    \"schema\": {\n      \"type\": \"object\",\n      \"description\": \"A deterministic version of a JSON Schema object.\",\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      },\n      \"properties\": {\n        \"$ref\": {\n          \"type\": \"string\"\n        },\n        \"format\": {\n          \"type\": \"string\"\n        },\n        \"title\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/title\"\n        },\n        \"description\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/description\"\n        },\n        \"default\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/default\"\n        },\n        \"multipleOf\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/multipleOf\"\n        },\n        \"maximum\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/maximum\"\n        },\n        \"exclusiveMaximum\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum\"\n        },\n        \"minimum\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/minimum\"\n        },\n        \"exclusiveMinimum\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum\"\n        },\n        \"maxLength\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveInteger\"\n        },\n        \"minLength\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0\"\n        },\n        \"pattern\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/pattern\"\n        },\n        \"maxItems\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveInteger\"\n        },\n        \"minItems\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0\"\n        },\n        \"uniqueItems\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/uniqueItems\"\n        },\n        \"maxProperties\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveInteger\"\n        },\n        \"minProperties\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0\"\n        },\n        \"required\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/stringArray\"\n        },\n        \"enum\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/enum\"\n        },\n        \"additionalProperties\": {\n          \"anyOf\": [\n            {\n              \"$ref\": \"#/definitions/schema\"\n            },\n            {\n              \"type\": \"boolean\"\n            }\n          ],\n          \"default\": {}\n        },\n        \"type\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/type\"\n        },\n        \"items\": {\n          \"anyOf\": [\n            {\n              \"$ref\": \"#/definitions/schema\"\n            },\n            {\n              \"type\": \"array\",\n              \"minItems\": 1,\n              \"items\": {\n                \"$ref\": \"#/definitions/schema\"\n              }\n            }\n          ],\n          \"default\": {}\n        },\n        \"allOf\": {\n          \"type\": \"array\",\n          \"minItems\": 1,\n          \"items\": {\n            \"$ref\": \"#/definitions/schema\"\n          }\n        },\n        \"properties\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/definitions/schema\"\n          },\n          \"default\": {}\n        },\n        \"discriminator\": {\n          \"type\": \"string\"\n        },\n        \"readOnly\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"xml\": {\n          \"$ref\": \"#/definitions/xml\"\n        },\n        \"externalDocs\": {\n          \"$ref\": \"#/definitions/externalDocs\"\n        },\n        \"example\": {}\n      },\n      \"additionalProperties\": false\n    },\n    \"fileSchema\": {\n      \"type\": \"object\",\n      \"description\": \"A deterministic version of a JSON Schema object.\",\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      },\n      \"required\": [\n        \"type\"\n      ],\n      \"properties\": {\n        \"format\": {\n          \"type\": \"string\"\n        },\n        \"title\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/title\"\n        },\n        \"description\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/description\"\n        },\n        \"default\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/default\"\n        },\n        \"required\": {\n          \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/stringArray\"\n        },\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"file\"\n          ]\n        },\n        \"readOnly\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"externalDocs\": {\n          \"$ref\": \"#/definitions/externalDocs\"\n        },\n        \"example\": {}\n      },\n      \"additionalProperties\": false\n    },\n    \"primitivesItems\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"properties\": {\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"string\",\n            \"number\",\n            \"integer\",\n            \"boolean\",\n            \"array\"\n          ]\n        },\n        \"format\": {\n          \"type\": \"string\"\n        },\n        \"items\": {\n          \"$ref\": \"#/definitions/primitivesItems\"\n        },\n        \"collectionFormat\": {\n          \"$ref\": \"#/definitions/collectionFormat\"\n        },\n        \"default\": {\n          \"$ref\": \"#/definitions/default\"\n        },\n        \"maximum\": {\n          \"$ref\": \"#/definitions/maximum\"\n        },\n        \"exclusiveMaximum\": {\n          \"$ref\": \"#/definitions/exclusiveMaximum\"\n        },\n        \"minimum\": {\n          \"$ref\": \"#/definitions/minimum\"\n        },\n        \"exclusiveMinimum\": {\n          \"$ref\": \"#/definitions/exclusiveMinimum\"\n        },\n        \"maxLength\": {\n          \"$ref\": \"#/definitions/maxLength\"\n        },\n        \"minLength\": {\n          \"$ref\": \"#/definitions/minLength\"\n        },\n        \"pattern\": {\n          \"$ref\": \"#/definitions/pattern\"\n        },\n        \"maxItems\": {\n          \"$ref\": \"#/definitions/maxItems\"\n        },\n        \"minItems\": {\n          \"$ref\": \"#/definitions/minItems\"\n        },\n        \"uniqueItems\": {\n          \"$ref\": \"#/definitions/uniqueItems\"\n        },\n        \"enum\": {\n          \"$ref\": \"#/definitions/enum\"\n        },\n        \"multipleOf\": {\n          \"$ref\": \"#/definitions/multipleOf\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"security\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"$ref\": \"#/definitions/securityRequirement\"\n      },\n      \"uniqueItems\": true\n    },\n    \"securityRequirement\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"type\": \"array\",\n        \"items\": {\n          \"type\": \"string\"\n        },\n        \"uniqueItems\": true\n      }\n    },\n    \"xml\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"namespace\": {\n          \"type\": \"string\"\n        },\n        \"prefix\": {\n          \"type\": \"string\"\n        },\n        \"attribute\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"wrapped\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"tag\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"required\": [\n        \"name\"\n      ],\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"externalDocs\": {\n          \"$ref\": \"#/definitions/externalDocs\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"securityDefinitions\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"oneOf\": [\n          {\n            \"$ref\": \"#/definitions/basicAuthenticationSecurity\"\n          },\n          {\n            \"$ref\": \"#/definitions/apiKeySecurity\"\n          },\n          {\n            \"$ref\": \"#/definitions/oauth2ImplicitSecurity\"\n          },\n          {\n            \"$ref\": \"#/definitions/oauth2PasswordSecurity\"\n          },\n          {\n            \"$ref\": \"#/definitions/oauth2ApplicationSecurity\"\n          },\n          {\n            \"$ref\": \"#/definitions/oauth2AccessCodeSecurity\"\n          }\n        ]\n      }\n    },\n    \"basicAuthenticationSecurity\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"required\": [\n        \"type\"\n      ],\n      \"properties\": {\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"basic\"\n          ]\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"apiKeySecurity\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"required\": [\n        \"type\",\n        \"name\",\n        \"in\"\n      ],\n      \"properties\": {\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"apiKey\"\n          ]\n        },\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"in\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"header\",\n            \"query\"\n          ]\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"oauth2ImplicitSecurity\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"required\": [\n        \"type\",\n        \"flow\",\n        \"authorizationUrl\"\n      ],\n      \"properties\": {\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"oauth2\"\n          ]\n        },\n        \"flow\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"implicit\"\n          ]\n        },\n        \"scopes\": {\n          \"$ref\": \"#/definitions/oauth2Scopes\"\n        },\n        \"authorizationUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"oauth2PasswordSecurity\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"required\": [\n        \"type\",\n        \"flow\",\n        \"tokenUrl\"\n      ],\n      \"properties\": {\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"oauth2\"\n          ]\n        },\n        \"flow\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"password\"\n          ]\n        },\n        \"scopes\": {\n          \"$ref\": \"#/definitions/oauth2Scopes\"\n        },\n        \"tokenUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"oauth2ApplicationSecurity\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"required\": [\n        \"type\",\n        \"flow\",\n        \"tokenUrl\"\n      ],\n      \"properties\": {\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"oauth2\"\n          ]\n        },\n        \"flow\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"application\"\n          ]\n        },\n        \"scopes\": {\n          \"$ref\": \"#/definitions/oauth2Scopes\"\n        },\n        \"tokenUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"oauth2AccessCodeSecurity\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"required\": [\n        \"type\",\n        \"flow\",\n        \"authorizationUrl\",\n        \"tokenUrl\"\n      ],\n      \"properties\": {\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"oauth2\"\n          ]\n        },\n        \"flow\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"accessCode\"\n          ]\n        },\n        \"scopes\": {\n          \"$ref\": \"#/definitions/oauth2Scopes\"\n        },\n        \"authorizationUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri\"\n        },\n        \"tokenUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n          \"$ref\": \"#/definitions/vendorExtension\"\n        }\n      }\n    },\n    \"oauth2Scopes\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"type\": \"string\"\n      }\n    },\n    \"mediaTypeList\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"$ref\": \"#/definitions/mimeType\"\n      },\n      \"uniqueItems\": true\n    },\n    \"parametersList\": {\n      \"type\": \"array\",\n      \"description\": \"The parameters needed to send a valid API call.\",\n      \"additionalItems\": false,\n      \"items\": {\n        \"oneOf\": [\n          {\n            \"$ref\": \"#/definitions/parameter\"\n          },\n          {\n            \"$ref\": \"#/definitions/jsonReference\"\n          }\n        ]\n      },\n      \"uniqueItems\": true\n    },\n    \"schemesList\": {\n      \"type\": \"array\",\n      \"description\": \"The transfer protocol of the API.\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"http\",\n          \"https\",\n          \"ws\",\n          \"wss\"\n        ]\n      },\n      \"uniqueItems\": true\n    },\n    \"collectionFormat\": {\n      \"type\": \"string\",\n      \"enum\": [\n        \"csv\",\n        \"ssv\",\n        \"tsv\",\n        \"pipes\"\n      ],\n      \"default\": \"csv\"\n    },\n    \"collectionFormatWithMulti\": {\n      \"type\": \"string\",\n      \"enum\": [\n        \"csv\",\n        \"ssv\",\n        \"tsv\",\n        \"pipes\",\n        \"multi\"\n      ],\n      \"default\": \"csv\"\n    },\n    \"title\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/title\"\n    },\n    \"description\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/description\"\n    },\n    \"default\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/default\"\n    },\n    \"multipleOf\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/multipleOf\"\n    },\n    \"maximum\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/maximum\"\n    },\n    \"exclusiveMaximum\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum\"\n    },\n    \"minimum\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/minimum\"\n    },\n    \"exclusiveMinimum\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum\"\n    },\n    \"maxLength\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveInteger\"\n    },\n    \"minLength\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0\"\n    },\n    \"pattern\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/pattern\"\n    },\n    \"maxItems\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveInteger\"\n    },\n    \"minItems\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0\"\n    },\n    \"uniqueItems\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/uniqueItems\"\n    },\n    \"enum\": {\n      \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/enum\"\n    },\n    \"jsonReference\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"$ref\"\n      ],\n      \"additionalProperties\": false,\n      \"properties\": {\n        \"$ref\": {\n          \"type\": \"string\"\n        }\n      }\n    }\n  }\n}", "{\n  \"id\": \"https://spec.openapis.org/oas/3.0/schema/2019-04-02\",\n  \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n  \"description\": \"Validation schema for OpenAPI Specification 3.0.X.\",\n  \"type\": \"object\",\n  \"required\": [\n    \"openapi\",\n    \"info\",\n    \"paths\"\n  ],\n  \"properties\": {\n    \"openapi\": {\n      \"type\": \"string\",\n      \"pattern\": \"^3\\\\.0\\\\.\\\\d(-.+)?$\"\n    },\n    \"info\": {\n      \"$ref\": \"#/definitions/Info\"\n    },\n    \"externalDocs\": {\n      \"$ref\": \"#/definitions/ExternalDocumentation\"\n    },\n    \"servers\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"$ref\": \"#/definitions/Server\"\n      }\n    },\n    \"security\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"$ref\": \"#/definitions/SecurityRequirement\"\n      }\n    },\n    \"tags\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"$ref\": \"#/definitions/Tag\"\n      },\n      \"uniqueItems\": true\n    },\n    \"paths\": {\n      \"$ref\": \"#/definitions/Paths\"\n    },\n    \"components\": {\n      \"$ref\": \"#/definitions/Components\"\n    }\n  },\n  \"patternProperties\": {\n    \"^x-\": {\n    }\n  },\n  \"additionalProperties\": false,\n  \"definitions\": {\n    \"Reference\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"$ref\"\n      ],\n      \"patternProperties\": {\n        \"^\\\\$ref$\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        }\n      }\n    },\n    \"Info\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"title\",\n        \"version\"\n      ],\n      \"properties\": {\n        \"title\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"termsOfService\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"contact\": {\n          \"$ref\": \"#/definitions/Contact\"\n        },\n        \"license\": {\n          \"$ref\": \"#/definitions/License\"\n        },\n        \"version\": {\n          \"type\": \"string\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"Contact\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"url\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"email\": {\n          \"type\": \"string\",\n          \"format\": \"email\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"License\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"name\"\n      ],\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"url\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"Server\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"url\"\n      ],\n      \"properties\": {\n        \"url\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"variables\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/definitions/ServerVariable\"\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"ServerVariable\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"default\"\n      ],\n      \"properties\": {\n        \"enum\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"type\": \"string\"\n          }\n        },\n        \"default\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"Components\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"schemas\": {\n          \"type\": \"object\",\n          \"patternProperties\": {\n            \"^[a-zA-Z0-9\\\\.\\\\-_]+$\": {\n              \"oneOf\": [\n                {\n                  \"$ref\": \"#/definitions/Schema\"\n                },\n                {\n                  \"$ref\": \"#/definitions/Reference\"\n                }\n              ]\n            }\n          }\n        },\n        \"responses\": {\n          \"type\": \"object\",\n          \"patternProperties\": {\n            \"^[a-zA-Z0-9\\\\.\\\\-_]+$\": {\n              \"oneOf\": [\n                {\n                  \"$ref\": \"#/definitions/Reference\"\n                },\n                {\n                  \"$ref\": \"#/definitions/Response\"\n                }\n              ]\n            }\n          }\n        },\n        \"parameters\": {\n          \"type\": \"object\",\n          \"patternProperties\": {\n            \"^[a-zA-Z0-9\\\\.\\\\-_]+$\": {\n              \"oneOf\": [\n                {\n                  \"$ref\": \"#/definitions/Reference\"\n                },\n                {\n                  \"$ref\": \"#/definitions/Parameter\"\n                }\n              ]\n            }\n          }\n        },\n        \"examples\": {\n          \"type\": \"object\",\n          \"patternProperties\": {\n            \"^[a-zA-Z0-9\\\\.\\\\-_]+$\": {\n              \"oneOf\": [\n                {\n                  \"$ref\": \"#/definitions/Reference\"\n                },\n                {\n                  \"$ref\": \"#/definitions/Example\"\n                }\n              ]\n            }\n          }\n        },\n        \"requestBodies\": {\n          \"type\": \"object\",\n          \"patternProperties\": {\n            \"^[a-zA-Z0-9\\\\.\\\\-_]+$\": {\n              \"oneOf\": [\n                {\n                  \"$ref\": \"#/definitions/Reference\"\n                },\n                {\n                  \"$ref\": \"#/definitions/RequestBody\"\n                }\n              ]\n            }\n          }\n        },\n        \"headers\": {\n          \"type\": \"object\",\n          \"patternProperties\": {\n            \"^[a-zA-Z0-9\\\\.\\\\-_]+$\": {\n              \"oneOf\": [\n                {\n                  \"$ref\": \"#/definitions/Reference\"\n                },\n                {\n                  \"$ref\": \"#/definitions/Header\"\n                }\n              ]\n            }\n          }\n        },\n        \"securitySchemes\": {\n          \"type\": \"object\",\n          \"patternProperties\": {\n            \"^[a-zA-Z0-9\\\\.\\\\-_]+$\": {\n              \"oneOf\": [\n                {\n                  \"$ref\": \"#/definitions/Reference\"\n                },\n                {\n                  \"$ref\": \"#/definitions/SecurityScheme\"\n                }\n              ]\n            }\n          }\n        },\n        \"links\": {\n          \"type\": \"object\",\n          \"patternProperties\": {\n            \"^[a-zA-Z0-9\\\\.\\\\-_]+$\": {\n              \"oneOf\": [\n                {\n                  \"$ref\": \"#/definitions/Reference\"\n                },\n                {\n                  \"$ref\": \"#/definitions/Link\"\n                }\n              ]\n            }\n          }\n        },\n        \"callbacks\": {\n          \"type\": \"object\",\n          \"patternProperties\": {\n            \"^[a-zA-Z0-9\\\\.\\\\-_]+$\": {\n              \"oneOf\": [\n                {\n                  \"$ref\": \"#/definitions/Reference\"\n                },\n                {\n                  \"$ref\": \"#/definitions/Callback\"\n                }\n              ]\n            }\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"Schema\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"title\": {\n          \"type\": \"string\"\n        },\n        \"multipleOf\": {\n          \"type\": \"number\",\n          \"minimum\": 0,\n          \"exclusiveMinimum\": true\n        },\n        \"maximum\": {\n          \"type\": \"number\"\n        },\n        \"exclusiveMaximum\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"minimum\": {\n          \"type\": \"number\"\n        },\n        \"exclusiveMinimum\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"maxLength\": {\n          \"type\": \"integer\",\n          \"minimum\": 0\n        },\n        \"minLength\": {\n          \"type\": \"integer\",\n          \"minimum\": 0,\n          \"default\": 0\n        },\n        \"pattern\": {\n          \"type\": \"string\",\n          \"format\": \"regex\"\n        },\n        \"maxItems\": {\n          \"type\": \"integer\",\n          \"minimum\": 0\n        },\n        \"minItems\": {\n          \"type\": \"integer\",\n          \"minimum\": 0,\n          \"default\": 0\n        },\n        \"uniqueItems\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"maxProperties\": {\n          \"type\": \"integer\",\n          \"minimum\": 0\n        },\n        \"minProperties\": {\n          \"type\": \"integer\",\n          \"minimum\": 0,\n          \"default\": 0\n        },\n        \"required\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"type\": \"string\"\n          },\n          \"minItems\": 1,\n          \"uniqueItems\": true\n        },\n        \"enum\": {\n          \"type\": \"array\",\n          \"items\": {\n          },\n          \"minItems\": 1,\n          \"uniqueItems\": false\n        },\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"array\",\n            \"boolean\",\n            \"integer\",\n            \"number\",\n            \"object\",\n            \"string\"\n          ]\n        },\n        \"not\": {\n          \"oneOf\": [\n            {\n              \"$ref\": \"#/definitions/Schema\"\n            },\n            {\n              \"$ref\": \"#/definitions/Reference\"\n            }\n          ]\n        },\n        \"allOf\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/definitions/Schema\"\n              },\n              {\n                \"$ref\": \"#/definitions/Reference\"\n              }\n            ]\n          }\n        },\n        \"oneOf\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/definitions/Schema\"\n              },\n              {\n                \"$ref\": \"#/definitions/Reference\"\n              }\n            ]\n          }\n        },\n        \"anyOf\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/definitions/Schema\"\n              },\n              {\n                \"$ref\": \"#/definitions/Reference\"\n              }\n            ]\n          }\n        },\n        \"items\": {\n          \"oneOf\": [\n            {\n              \"$ref\": \"#/definitions/Schema\"\n            },\n            {\n              \"$ref\": \"#/definitions/Reference\"\n            }\n          ]\n        },\n        \"properties\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/definitions/Schema\"\n              },\n              {\n                \"$ref\": \"#/definitions/Reference\"\n              }\n            ]\n          }\n        },\n        \"additionalProperties\": {\n          \"oneOf\": [\n            {\n              \"$ref\": \"#/definitions/Schema\"\n            },\n            {\n              \"$ref\": \"#/definitions/Reference\"\n            },\n            {\n              \"type\": \"boolean\"\n            }\n          ],\n          \"default\": true\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"format\": {\n          \"type\": \"string\"\n        },\n        \"default\": {\n        },\n        \"nullable\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"discriminator\": {\n          \"$ref\": \"#/definitions/Discriminator\"\n        },\n        \"readOnly\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"writeOnly\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"example\": {\n        },\n        \"externalDocs\": {\n          \"$ref\": \"#/definitions/ExternalDocumentation\"\n        },\n        \"deprecated\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"xml\": {\n          \"$ref\": \"#/definitions/XML\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"Discriminator\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"propertyName\"\n      ],\n      \"properties\": {\n        \"propertyName\": {\n          \"type\": \"string\"\n        },\n        \"mapping\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"type\": \"string\"\n          }\n        }\n      }\n    },\n    \"XML\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"namespace\": {\n          \"type\": \"string\",\n          \"format\": \"uri\"\n        },\n        \"prefix\": {\n          \"type\": \"string\"\n        },\n        \"attribute\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"wrapped\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"Response\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"description\"\n      ],\n      \"properties\": {\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"headers\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/definitions/Header\"\n              },\n              {\n                \"$ref\": \"#/definitions/Reference\"\n              }\n            ]\n          }\n        },\n        \"content\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/definitions/MediaType\"\n          }\n        },\n        \"links\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/definitions/Link\"\n              },\n              {\n                \"$ref\": \"#/definitions/Reference\"\n              }\n            ]\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"MediaType\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"schema\": {\n          \"oneOf\": [\n            {\n              \"$ref\": \"#/definitions/Schema\"\n            },\n            {\n              \"$ref\": \"#/definitions/Reference\"\n            }\n          ]\n        },\n        \"example\": {\n        },\n        \"examples\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/definitions/Example\"\n              },\n              {\n                \"$ref\": \"#/definitions/Reference\"\n              }\n            ]\n          }\n        },\n        \"encoding\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/definitions/Encoding\"\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false,\n      \"allOf\": [\n        {\n          \"$ref\": \"#/definitions/ExampleXORExamples\"\n        }\n      ]\n    },\n    \"Example\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"summary\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"value\": {\n        },\n        \"externalValue\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"Header\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"required\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"deprecated\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"allowEmptyValue\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"style\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"simple\"\n          ],\n          \"default\": \"simple\"\n        },\n        \"explode\": {\n          \"type\": \"boolean\"\n        },\n        \"allowReserved\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"schema\": {\n          \"oneOf\": [\n            {\n              \"$ref\": \"#/definitions/Schema\"\n            },\n            {\n              \"$ref\": \"#/definitions/Reference\"\n            }\n          ]\n        },\n        \"content\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/definitions/MediaType\"\n          },\n          \"minProperties\": 1,\n          \"maxProperties\": 1\n        },\n        \"example\": {\n        },\n        \"examples\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/definitions/Example\"\n              },\n              {\n                \"$ref\": \"#/definitions/Reference\"\n              }\n            ]\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false,\n      \"allOf\": [\n        {\n          \"$ref\": \"#/definitions/ExampleXORExamples\"\n        },\n        {\n          \"$ref\": \"#/definitions/SchemaXORContent\"\n        }\n      ]\n    },\n    \"Paths\": {\n      \"type\": \"object\",\n      \"patternProperties\": {\n        \"^\\\\/\": {\n          \"$ref\": \"#/definitions/PathItem\"\n        },\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"PathItem\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"$ref\": {\n          \"type\": \"string\"\n        },\n        \"summary\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"servers\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"$ref\": \"#/definitions/Server\"\n          }\n        },\n        \"parameters\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/definitions/Parameter\"\n              },\n              {\n                \"$ref\": \"#/definitions/Reference\"\n              }\n            ]\n          },\n          \"uniqueItems\": true\n        }\n      },\n      \"patternProperties\": {\n        \"^(get|put|post|delete|options|head|patch|trace)$\": {\n          \"$ref\": \"#/definitions/Operation\"\n        },\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"Operation\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"responses\"\n      ],\n      \"properties\": {\n        \"tags\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"type\": \"string\"\n          }\n        },\n        \"summary\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"externalDocs\": {\n          \"$ref\": \"#/definitions/ExternalDocumentation\"\n        },\n        \"operationId\": {\n          \"type\": \"string\"\n        },\n        \"parameters\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/definitions/Parameter\"\n              },\n              {\n                \"$ref\": \"#/definitions/Reference\"\n              }\n            ]\n          },\n          \"uniqueItems\": true\n        },\n        \"requestBody\": {\n          \"oneOf\": [\n            {\n              \"$ref\": \"#/definitions/RequestBody\"\n            },\n            {\n              \"$ref\": \"#/definitions/Reference\"\n            }\n          ]\n        },\n        \"responses\": {\n          \"$ref\": \"#/definitions/Responses\"\n        },\n        \"callbacks\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/definitions/Callback\"\n              },\n              {\n                \"$ref\": \"#/definitions/Reference\"\n              }\n            ]\n          }\n        },\n        \"deprecated\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"security\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"$ref\": \"#/definitions/SecurityRequirement\"\n          }\n        },\n        \"servers\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"$ref\": \"#/definitions/Server\"\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"Responses\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"default\": {\n          \"oneOf\": [\n            {\n              \"$ref\": \"#/definitions/Response\"\n            },\n            {\n              \"$ref\": \"#/definitions/Reference\"\n            }\n          ]\n        }\n      },\n      \"patternProperties\": {\n        \"^[1-5](?:\\\\d{2}|XX)$\": {\n          \"oneOf\": [\n            {\n              \"$ref\": \"#/definitions/Response\"\n            },\n            {\n              \"$ref\": \"#/definitions/Reference\"\n            }\n          ]\n        },\n        \"^x-\": {\n        }\n      },\n      \"minProperties\": 1,\n      \"additionalProperties\": false\n    },\n    \"SecurityRequirement\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"type\": \"array\",\n        \"items\": {\n          \"type\": \"string\"\n        }\n      }\n    },\n    \"Tag\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"name\"\n      ],\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"externalDocs\": {\n          \"$ref\": \"#/definitions/ExternalDocumentation\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"ExternalDocumentation\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"url\"\n      ],\n      \"properties\": {\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"url\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"ExampleXORExamples\": {\n      \"description\": \"Example and examples are mutually exclusive\",\n      \"not\": {\n        \"required\": [\n          \"example\",\n          \"examples\"\n        ]\n      }\n    },\n    \"SchemaXORContent\": {\n      \"description\": \"Schema and content are mutually exclusive, at least one is required\",\n      \"not\": {\n        \"required\": [\n          \"schema\",\n          \"content\"\n        ]\n      },\n      \"oneOf\": [\n        {\n          \"required\": [\n            \"schema\"\n          ]\n        },\n        {\n          \"required\": [\n            \"content\"\n          ],\n          \"description\": \"Some properties are not allowed if content is present\",\n          \"allOf\": [\n            {\n              \"not\": {\n                \"required\": [\n                  \"style\"\n                ]\n              }\n            },\n            {\n              \"not\": {\n                \"required\": [\n                  \"explode\"\n                ]\n              }\n            },\n            {\n              \"not\": {\n                \"required\": [\n                  \"allowReserved\"\n                ]\n              }\n            },\n            {\n              \"not\": {\n                \"required\": [\n                  \"example\"\n                ]\n              }\n            },\n            {\n              \"not\": {\n                \"required\": [\n                  \"examples\"\n                ]\n              }\n            }\n          ]\n        }\n      ]\n    },\n    \"Parameter\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"in\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"required\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"deprecated\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"allowEmptyValue\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"style\": {\n          \"type\": \"string\"\n        },\n        \"explode\": {\n          \"type\": \"boolean\"\n        },\n        \"allowReserved\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        },\n        \"schema\": {\n          \"oneOf\": [\n            {\n              \"$ref\": \"#/definitions/Schema\"\n            },\n            {\n              \"$ref\": \"#/definitions/Reference\"\n            }\n          ]\n        },\n        \"content\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/definitions/MediaType\"\n          },\n          \"minProperties\": 1,\n          \"maxProperties\": 1\n        },\n        \"example\": {\n        },\n        \"examples\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/definitions/Example\"\n              },\n              {\n                \"$ref\": \"#/definitions/Reference\"\n              }\n            ]\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false,\n      \"required\": [\n        \"name\",\n        \"in\"\n      ],\n      \"allOf\": [\n        {\n          \"$ref\": \"#/definitions/ExampleXORExamples\"\n        },\n        {\n          \"$ref\": \"#/definitions/SchemaXORContent\"\n        },\n        {\n          \"$ref\": \"#/definitions/ParameterLocation\"\n        }\n      ]\n    },\n    \"ParameterLocation\": {\n      \"description\": \"Parameter location\",\n      \"oneOf\": [\n        {\n          \"description\": \"Parameter in path\",\n          \"required\": [\n            \"required\"\n          ],\n          \"properties\": {\n            \"in\": {\n              \"enum\": [\n                \"path\"\n              ]\n            },\n            \"style\": {\n              \"enum\": [\n                \"matrix\",\n                \"label\",\n                \"simple\"\n              ],\n              \"default\": \"simple\"\n            },\n            \"required\": {\n              \"enum\": [\n                true\n              ]\n            }\n          }\n        },\n        {\n          \"description\": \"Parameter in query\",\n          \"properties\": {\n            \"in\": {\n              \"enum\": [\n                \"query\"\n              ]\n            },\n            \"style\": {\n              \"enum\": [\n                \"form\",\n                \"spaceDelimited\",\n                \"pipeDelimited\",\n                \"deepObject\"\n              ],\n              \"default\": \"form\"\n            }\n          }\n        },\n        {\n          \"description\": \"Parameter in header\",\n          \"properties\": {\n            \"in\": {\n              \"enum\": [\n                \"header\"\n              ]\n            },\n            \"style\": {\n              \"enum\": [\n                \"simple\"\n              ],\n              \"default\": \"simple\"\n            }\n          }\n        },\n        {\n          \"description\": \"Parameter in cookie\",\n          \"properties\": {\n            \"in\": {\n              \"enum\": [\n                \"cookie\"\n              ]\n            },\n            \"style\": {\n              \"enum\": [\n                \"form\"\n              ],\n              \"default\": \"form\"\n            }\n          }\n        }\n      ]\n    },\n    \"RequestBody\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"content\"\n      ],\n      \"properties\": {\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"content\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/definitions/MediaType\"\n          }\n        },\n        \"required\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"SecurityScheme\": {\n      \"oneOf\": [\n        {\n          \"$ref\": \"#/definitions/APIKeySecurityScheme\"\n        },\n        {\n          \"$ref\": \"#/definitions/HTTPSecurityScheme\"\n        },\n        {\n          \"$ref\": \"#/definitions/OAuth2SecurityScheme\"\n        },\n        {\n          \"$ref\": \"#/definitions/OpenIdConnectSecurityScheme\"\n        }\n      ]\n    },\n    \"APIKeySecurityScheme\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"type\",\n        \"name\",\n        \"in\"\n      ],\n      \"properties\": {\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"apiKey\"\n          ]\n        },\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"in\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"header\",\n            \"query\",\n            \"cookie\"\n          ]\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"HTTPSecurityScheme\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"scheme\",\n        \"type\"\n      ],\n      \"properties\": {\n        \"scheme\": {\n          \"type\": \"string\"\n        },\n        \"bearerFormat\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"http\"\n          ]\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false,\n      \"oneOf\": [\n        {\n          \"description\": \"Bearer\",\n          \"properties\": {\n            \"scheme\": {\n              \"enum\": [\n                \"bearer\"\n              ]\n            }\n          }\n        },\n        {\n          \"description\": \"Non Bearer\",\n          \"not\": {\n            \"required\": [\n              \"bearerFormat\"\n            ]\n          },\n          \"properties\": {\n            \"scheme\": {\n              \"not\": {\n                \"enum\": [\n                  \"bearer\"\n                ]\n              }\n            }\n          }\n        }\n      ]\n    },\n    \"OAuth2SecurityScheme\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"type\",\n        \"flows\"\n      ],\n      \"properties\": {\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"oauth2\"\n          ]\n        },\n        \"flows\": {\n          \"$ref\": \"#/definitions/OAuthFlows\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"OpenIdConnectSecurityScheme\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"type\",\n        \"openIdConnectUrl\"\n      ],\n      \"properties\": {\n        \"type\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"openIdConnect\"\n          ]\n        },\n        \"openIdConnectUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"OAuthFlows\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"implicit\": {\n          \"$ref\": \"#/definitions/ImplicitOAuthFlow\"\n        },\n        \"password\": {\n          \"$ref\": \"#/definitions/PasswordOAuthFlow\"\n        },\n        \"clientCredentials\": {\n          \"$ref\": \"#/definitions/ClientCredentialsFlow\"\n        },\n        \"authorizationCode\": {\n          \"$ref\": \"#/definitions/AuthorizationCodeOAuthFlow\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"ImplicitOAuthFlow\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"authorizationUrl\",\n        \"scopes\"\n      ],\n      \"properties\": {\n        \"authorizationUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"refreshUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"scopes\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"type\": \"string\"\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"PasswordOAuthFlow\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"tokenUrl\"\n      ],\n      \"properties\": {\n        \"tokenUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"refreshUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"scopes\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"type\": \"string\"\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"ClientCredentialsFlow\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"tokenUrl\"\n      ],\n      \"properties\": {\n        \"tokenUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"refreshUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"scopes\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"type\": \"string\"\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"AuthorizationCodeOAuthFlow\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"authorizationUrl\",\n        \"tokenUrl\"\n      ],\n      \"properties\": {\n        \"authorizationUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"tokenUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"refreshUrl\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"scopes\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"type\": \"string\"\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false\n    },\n    \"Link\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"operationId\": {\n          \"type\": \"string\"\n        },\n        \"operationRef\": {\n          \"type\": \"string\",\n          \"format\": \"uri-reference\"\n        },\n        \"parameters\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n          }\n        },\n        \"requestBody\": {\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"server\": {\n          \"$ref\": \"#/definitions/Server\"\n        }\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      },\n      \"additionalProperties\": false,\n      \"not\": {\n        \"description\": \"Operation Id and Operation Ref are mutually exclusive\",\n        \"required\": [\n          \"operationId\",\n          \"operationRef\"\n        ]\n      }\n    },\n    \"Callback\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"$ref\": \"#/definitions/PathItem\"\n      },\n      \"patternProperties\": {\n        \"^x-\": {\n        }\n      }\n    },\n    \"Encoding\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"contentType\": {\n          \"type\": \"string\"\n        },\n        \"headers\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/definitions/Header\"\n          }\n        },\n        \"style\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"form\",\n            \"spaceDelimited\",\n            \"pipeDelimited\",\n            \"deepObject\"\n          ]\n        },\n        \"explode\": {\n          \"type\": \"boolean\"\n        },\n        \"allowReserved\": {\n          \"type\": \"boolean\",\n          \"default\": false\n        }\n      },\n      \"additionalProperties\": false\n    }\n  }\n}", "{\n  \"$id\": \"https://spec.openapis.org/oas/3.1/schema/2021-04-15\",\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n  \"type\": \"object\",\n  \"properties\": {\n    \"openapi\": {\n      \"type\": \"string\",\n      \"pattern\": \"^3\\\\.1\\\\.\\\\d+(-.+)?$\"\n    },\n    \"info\": {\n      \"$ref\": \"#/$defs/info\"\n    },\n    \"jsonSchemaDialect\": {\n      \"$ref\": \"#/$defs/uri\",\n      \"default\": \"https://spec.openapis.org/oas/3.1/dialect/base\"\n    },\n    \"servers\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"$ref\": \"#/$defs/server\"\n      }\n    },\n    \"paths\": {\n      \"$ref\": \"#/$defs/paths\"\n    },\n    \"webhooks\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"$ref\": \"#/$defs/path-item-or-reference\"\n      }\n    },\n    \"components\": {\n      \"$ref\": \"#/$defs/components\"\n    },\n    \"security\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"$ref\": \"#/$defs/security-requirement\"\n      }\n    },\n    \"tags\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"$ref\": \"#/$defs/tag\"\n      }\n    },\n    \"externalDocs\": {\n      \"$ref\": \"#/$defs/external-documentation\"\n    }\n  },\n  \"required\": [\n    \"openapi\",\n    \"info\"\n  ],\n  \"anyOf\": [\n    {\n      \"required\": [\n        \"paths\"\n      ]\n    },\n    {\n      \"required\": [\n        \"components\"\n      ]\n    },\n    {\n      \"required\": [\n        \"webhooks\"\n      ]\n    }\n  ],\n  \"$ref\": \"#/$defs/specification-extensions\",\n  \"unevaluatedProperties\": false,\n  \"$defs\": {\n    \"info\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"title\": {\n          \"type\": \"string\"\n        },\n        \"summary\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"termsOfService\": {\n          \"type\": \"string\"\n        },\n        \"contact\": {\n          \"$ref\": \"#/$defs/contact\"\n        },\n        \"license\": {\n          \"$ref\": \"#/$defs/license\"\n        },\n        \"version\": {\n          \"type\": \"string\"\n        }\n      },\n      \"required\": [\n        \"title\",\n        \"version\"\n      ],\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"contact\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"url\": {\n          \"type\": \"string\"\n        },\n        \"email\": {\n          \"type\": \"string\"\n        }\n      },\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"license\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"identifier\": {\n          \"type\": \"string\"\n        },\n        \"url\": {\n          \"$ref\": \"#/$defs/uri\"\n        }\n      },\n      \"required\": [\n        \"name\"\n      ],\n      \"oneOf\": [\n        {\n          \"required\": [\n            \"identifier\"\n          ]\n        },\n        {\n          \"required\": [\n            \"url\"\n          ]\n        }\n      ],\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"server\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"url\": {\n          \"$ref\": \"#/$defs/uri\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"variables\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/server-variable\"\n          }\n        }\n      },\n      \"required\": [\n        \"url\"\n      ],\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"server-variable\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"enum\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"type\": \"string\"\n          },\n          \"minItems\": 1\n        },\n        \"default\": {\n          \"type\": \"string\"\n        },\n        \"descriptions\": {\n          \"type\": \"string\"\n        }\n      },\n      \"required\": [\n        \"default\"\n      ],\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"components\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"schemas\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$dynamicRef\": \"#meta\"\n          }\n        },\n        \"responses\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/response-or-reference\"\n          }\n        },\n        \"parameters\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/parameter-or-reference\"\n          }\n        },\n        \"examples\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/example-or-reference\"\n          }\n        },\n        \"requestBodies\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/request-body-or-reference\"\n          }\n        },\n        \"headers\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/header-or-reference\"\n          }\n        },\n        \"securitySchemes\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/security-scheme-or-reference\"\n          }\n        },\n        \"links\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/link-or-reference\"\n          }\n        },\n        \"callbacks\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/callbacks-or-reference\"\n          }\n        },\n        \"pathItems\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/path-item-or-reference\"\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$\": {\n          \"$comment\": \"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected\",\n          \"propertyNames\": {\n            \"pattern\": \"^[a-zA-Z0-9._-]+$\"\n          }\n        }\n      },\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"paths\": {\n      \"type\": \"object\",\n      \"patternProperties\": {\n        \"^/\": {\n          \"$ref\": \"#/$defs/path-item\"\n        }\n      },\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"path-item\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"summary\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"servers\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"$ref\": \"#/$defs/server\"\n          }\n        },\n        \"parameters\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"$ref\": \"#/$defs/parameter-or-reference\"\n          }\n        }\n      },\n      \"patternProperties\": {\n        \"^(get|put|post|delete|options|head|patch|trace)$\": {\n          \"$ref\": \"#/$defs/operation\"\n        }\n      },\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"path-item-or-reference\": {\n      \"if\": {\n        \"required\": [\n          \"$ref\"\n        ]\n      },\n      \"then\": {\n        \"$ref\": \"#/$defs/reference\"\n      },\n      \"else\": {\n        \"$ref\": \"#/$defs/path-item\"\n      }\n    },\n    \"operation\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"tags\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"type\": \"string\"\n          }\n        },\n        \"summary\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"externalDocs\": {\n          \"$ref\": \"#/$defs/external-documentation\"\n        },\n        \"operationId\": {\n          \"type\": \"string\"\n        },\n        \"parameters\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"$ref\": \"#/$defs/parameter-or-reference\"\n          }\n        },\n        \"requestBody\": {\n          \"$ref\": \"#/$defs/request-body-or-reference\"\n        },\n        \"responses\": {\n          \"$ref\": \"#/$defs/responses\"\n        },\n        \"callbacks\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/callbacks-or-reference\"\n          }\n        },\n        \"deprecated\": {\n          \"default\": false,\n          \"type\": \"boolean\"\n        },\n        \"security\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"$ref\": \"#/$defs/security-requirement\"\n          }\n        },\n        \"servers\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"$ref\": \"#/$defs/server\"\n          }\n        }\n      },\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"external-documentation\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"url\": {\n          \"$ref\": \"#/$defs/uri\"\n        }\n      },\n      \"required\": [\n        \"url\"\n      ],\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"parameter\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"in\": {\n          \"enum\": [\n            \"query\",\n            \"header\",\n            \"path\",\n            \"cookie\"\n          ]\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"required\": {\n          \"default\": false,\n          \"type\": \"boolean\"\n        },\n        \"deprecated\": {\n          \"default\": false,\n          \"type\": \"boolean\"\n        },\n        \"allowEmptyValue\": {\n          \"default\": false,\n          \"type\": \"boolean\"\n        },\n        \"schema\": {\n          \"$dynamicRef\": \"#meta\"\n        },\n        \"content\": {\n          \"$ref\": \"#/$defs/content\"\n        }\n      },\n      \"required\": [\n        \"in\"\n      ],\n      \"oneOf\": [\n        {\n          \"required\": [\n            \"schema\"\n          ]\n        },\n        {\n          \"required\": [\n            \"content\"\n          ]\n        }\n      ],\n      \"dependentSchemas\": {\n        \"schema\": {\n          \"properties\": {\n            \"style\": {\n              \"type\": \"string\"\n            },\n            \"explode\": {\n              \"type\": \"boolean\"\n            },\n            \"allowReserved\": {\n              \"default\": false,\n              \"type\": \"boolean\"\n            }\n          },\n          \"allOf\": [\n            {\n              \"$ref\": \"#/$defs/examples\"\n            },\n            {\n              \"$ref\": \"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path\"\n            },\n            {\n              \"$ref\": \"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header\"\n            },\n            {\n              \"$ref\": \"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query\"\n            },\n            {\n              \"$ref\": \"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie\"\n            },\n            {\n              \"$ref\": \"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-form\"\n            }\n          ],\n          \"$defs\": {\n            \"styles-for-path\": {\n              \"if\": {\n                \"properties\": {\n                  \"in\": {\n                    \"const\": \"path\"\n                  }\n                },\n                \"required\": [\n                  \"in\"\n                ]\n              },\n              \"then\": {\n                \"properties\": {\n                  \"style\": {\n                    \"default\": \"simple\",\n                    \"enum\": [\n                      \"matrix\",\n                      \"label\",\n                      \"simple\"\n                    ]\n                  },\n                  \"required\": {\n                    \"const\": true\n                  }\n                },\n                \"required\": [\n                  \"required\"\n                ]\n              }\n            },\n            \"styles-for-header\": {\n              \"if\": {\n                \"properties\": {\n                  \"in\": {\n                    \"const\": \"header\"\n                  }\n                },\n                \"required\": [\n                  \"in\"\n                ]\n              },\n              \"then\": {\n                \"properties\": {\n                  \"style\": {\n                    \"default\": \"simple\",\n                    \"enum\": [\n                      \"simple\"\n                    ]\n                  }\n                }\n              }\n            },\n            \"styles-for-query\": {\n              \"if\": {\n                \"properties\": {\n                  \"in\": {\n                    \"const\": \"query\"\n                  }\n                },\n                \"required\": [\n                  \"in\"\n                ]\n              },\n              \"then\": {\n                \"properties\": {\n                  \"style\": {\n                    \"default\": \"form\",\n                    \"enum\": [\n                      \"form\",\n                      \"spaceDelimited\",\n                      \"pipeDelimited\",\n                      \"deepObject\"\n                    ]\n                  }\n                }\n              }\n            },\n            \"styles-for-cookie\": {\n              \"if\": {\n                \"properties\": {\n                  \"in\": {\n                    \"const\": \"cookie\"\n                  }\n                },\n                \"required\": [\n                  \"in\"\n                ]\n              },\n              \"then\": {\n                \"properties\": {\n                  \"style\": {\n                    \"default\": \"form\",\n                    \"enum\": [\n                      \"form\"\n                    ]\n                  }\n                }\n              }\n            },\n            \"styles-for-form\": {\n              \"if\": {\n                \"properties\": {\n                  \"style\": {\n                    \"const\": \"form\"\n                  }\n                },\n                \"required\": [\n                  \"style\"\n                ]\n              },\n              \"then\": {\n                \"properties\": {\n                  \"explode\": {\n                    \"default\": true\n                  }\n                }\n              },\n              \"else\": {\n                \"properties\": {\n                  \"explode\": {\n                    \"default\": false\n                  }\n                }\n              }\n            }\n          }\n        }\n      },\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"parameter-or-reference\": {\n      \"if\": {\n        \"required\": [\n          \"$ref\"\n        ]\n      },\n      \"then\": {\n        \"$ref\": \"#/$defs/reference\"\n      },\n      \"else\": {\n        \"$ref\": \"#/$defs/parameter\"\n      }\n    },\n    \"request-body\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"content\": {\n          \"$ref\": \"#/$defs/content\"\n        },\n        \"required\": {\n          \"default\": false,\n          \"type\": \"boolean\"\n        }\n      },\n      \"required\": [\n        \"content\"\n      ],\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"request-body-or-reference\": {\n      \"if\": {\n        \"required\": [\n          \"$ref\"\n        ]\n      },\n      \"then\": {\n        \"$ref\": \"#/$defs/reference\"\n      },\n      \"else\": {\n        \"$ref\": \"#/$defs/request-body\"\n      }\n    },\n    \"content\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"$ref\": \"#/$defs/media-type\"\n      },\n      \"propertyNames\": {\n        \"format\": \"media-range\"\n      }\n    },\n    \"media-type\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"schema\": {\n          \"$dynamicRef\": \"#meta\"\n        },\n        \"encoding\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/encoding\"\n          }\n        }\n      },\n      \"allOf\": [\n        {\n          \"$ref\": \"#/$defs/specification-extensions\"\n        },\n        {\n          \"$ref\": \"#/$defs/examples\"\n        }\n      ],\n      \"unevaluatedProperties\": false\n    },\n    \"encoding\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"contentType\": {\n          \"type\": \"string\",\n          \"format\": \"media-range\"\n        },\n        \"headers\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/header-or-reference\"\n          }\n        },\n        \"style\": {\n          \"default\": \"form\",\n          \"enum\": [\n            \"form\",\n            \"spaceDelimited\",\n            \"pipeDelimited\",\n            \"deepObject\"\n          ]\n        },\n        \"explode\": {\n          \"type\": \"boolean\"\n        },\n        \"allowReserved\": {\n          \"default\": false,\n          \"type\": \"boolean\"\n        }\n      },\n      \"allOf\": [\n        {\n          \"$ref\": \"#/$defs/specification-extensions\"\n        },\n        {\n          \"$ref\": \"#/$defs/encoding/$defs/explode-default\"\n        }\n      ],\n      \"unevaluatedProperties\": false,\n      \"$defs\": {\n        \"explode-default\": {\n          \"if\": {\n            \"properties\": {\n              \"style\": {\n                \"const\": \"form\"\n              }\n            },\n            \"required\": [\n              \"style\"\n            ]\n          },\n          \"then\": {\n            \"properties\": {\n              \"explode\": {\n                \"default\": true\n              }\n            }\n          },\n          \"else\": {\n            \"properties\": {\n              \"explode\": {\n                \"default\": false\n              }\n            }\n          }\n        }\n      }\n    },\n    \"responses\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"default\": {\n          \"$ref\": \"#/$defs/response-or-reference\"\n        }\n      },\n      \"patternProperties\": {\n        \"^[1-5][0-9X]{2}$\": {\n          \"$ref\": \"#/$defs/response-or-reference\"\n        }\n      },\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"response\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"headers\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/header-or-reference\"\n          }\n        },\n        \"content\": {\n          \"$ref\": \"#/$defs/content\"\n        },\n        \"links\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/link-or-reference\"\n          }\n        }\n      },\n      \"required\": [\n        \"description\"\n      ],\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"response-or-reference\": {\n      \"if\": {\n        \"required\": [\n          \"$ref\"\n        ]\n      },\n      \"then\": {\n        \"$ref\": \"#/$defs/reference\"\n      },\n      \"else\": {\n        \"$ref\": \"#/$defs/response\"\n      }\n    },\n    \"callbacks\": {\n      \"type\": \"object\",\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"additionalProperties\": {\n        \"$ref\": \"#/$defs/path-item-or-reference\"\n      }\n    },\n    \"callbacks-or-reference\": {\n      \"if\": {\n        \"required\": [\n          \"$ref\"\n        ]\n      },\n      \"then\": {\n        \"$ref\": \"#/$defs/reference\"\n      },\n      \"else\": {\n        \"$ref\": \"#/$defs/callbacks\"\n      }\n    },\n    \"example\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"summary\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"value\": true,\n        \"externalValue\": {\n          \"$ref\": \"#/$defs/uri\"\n        }\n      },\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"example-or-reference\": {\n      \"if\": {\n        \"required\": [\n          \"$ref\"\n        ]\n      },\n      \"then\": {\n        \"$ref\": \"#/$defs/reference\"\n      },\n      \"else\": {\n        \"$ref\": \"#/$defs/example\"\n      }\n    },\n    \"link\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"operationRef\": {\n          \"$ref\": \"#/$defs/uri\"\n        },\n        \"operationId\": true,\n        \"parameters\": {\n          \"$ref\": \"#/$defs/map-of-strings\"\n        },\n        \"requestBody\": true,\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"body\": {\n          \"$ref\": \"#/$defs/server\"\n        }\n      },\n      \"oneOf\": [\n        {\n          \"required\": [\n            \"operationRef\"\n          ]\n        },\n        {\n          \"required\": [\n            \"operationId\"\n          ]\n        }\n      ],\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"link-or-reference\": {\n      \"if\": {\n        \"required\": [\n          \"$ref\"\n        ]\n      },\n      \"then\": {\n        \"$ref\": \"#/$defs/reference\"\n      },\n      \"else\": {\n        \"$ref\": \"#/$defs/link\"\n      }\n    },\n    \"header\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"required\": {\n          \"default\": false,\n          \"type\": \"boolean\"\n        },\n        \"deprecated\": {\n          \"default\": false,\n          \"type\": \"boolean\"\n        },\n        \"allowEmptyValue\": {\n          \"default\": false,\n          \"type\": \"boolean\"\n        }\n      },\n      \"dependentSchemas\": {\n        \"schema\": {\n          \"properties\": {\n            \"style\": {\n              \"default\": \"simple\",\n              \"enum\": [\n                \"simple\"\n              ]\n            },\n            \"explode\": {\n              \"default\": false,\n              \"type\": \"boolean\"\n            },\n            \"allowReserved\": {\n              \"default\": false,\n              \"type\": \"boolean\"\n            },\n            \"schema\": {\n              \"$dynamicRef\": \"#meta\"\n            }\n          },\n          \"$ref\": \"#/$defs/examples\"\n        },\n        \"content\": {\n          \"properties\": {\n            \"content\": {\n              \"$ref\": \"#/$defs/content\"\n            }\n          }\n        }\n      },\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"header-or-reference\": {\n      \"if\": {\n        \"required\": [\n          \"$ref\"\n        ]\n      },\n      \"then\": {\n        \"$ref\": \"#/$defs/reference\"\n      },\n      \"else\": {\n        \"$ref\": \"#/$defs/header\"\n      }\n    },\n    \"tag\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"externalDocs\": {\n          \"$ref\": \"#/$defs/external-documentation\"\n        }\n      },\n      \"required\": [\n        \"name\"\n      ],\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false\n    },\n    \"reference\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"$ref\": {\n          \"$ref\": \"#/$defs/uri\"\n        },\n        \"summary\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"unevaluatedProperties\": false\n    },\n    \"schema\": {\n      \"$dynamicAnchor\": \"meta\",\n      \"type\": [\n        \"object\",\n        \"boolean\"\n      ]\n    },\n    \"security-scheme\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"type\": {\n          \"enum\": [\n            \"apiKey\",\n            \"http\",\n            \"mutualTLS\",\n            \"oauth2\",\n            \"openIdConnect\"\n          ]\n        },\n        \"description\": {\n          \"type\": \"string\"\n        }\n      },\n      \"required\": [\n        \"type\"\n      ],\n      \"allOf\": [\n        {\n          \"$ref\": \"#/$defs/specification-extensions\"\n        },\n        {\n          \"$ref\": \"#/$defs/security-scheme/$defs/type-apikey\"\n        },\n        {\n          \"$ref\": \"#/$defs/security-scheme/$defs/type-http\"\n        },\n        {\n          \"$ref\": \"#/$defs/security-scheme/$defs/type-http-bearer\"\n        },\n        {\n          \"$ref\": \"#/$defs/security-scheme/$defs/type-oauth2\"\n        },\n        {\n          \"$ref\": \"#/$defs/security-scheme/$defs/type-oidc\"\n        }\n      ],\n      \"unevaluatedProperties\": false,\n      \"$defs\": {\n        \"type-apikey\": {\n          \"if\": {\n            \"properties\": {\n              \"type\": {\n                \"const\": \"apiKey\"\n              }\n            },\n            \"required\": [\n              \"type\"\n            ]\n          },\n          \"then\": {\n            \"properties\": {\n              \"name\": {\n                \"type\": \"string\"\n              },\n              \"in\": {\n                \"enum\": [\n                  \"query\",\n                  \"header\",\n                  \"cookie\"\n                ]\n              }\n            },\n            \"required\": [\n              \"name\",\n              \"in\"\n            ]\n          }\n        },\n        \"type-http\": {\n          \"if\": {\n            \"properties\": {\n              \"type\": {\n                \"const\": \"http\"\n              }\n            },\n            \"required\": [\n              \"type\"\n            ]\n          },\n          \"then\": {\n            \"properties\": {\n              \"scheme\": {\n                \"type\": \"string\"\n              }\n            },\n            \"required\": [\n              \"scheme\"\n            ]\n          }\n        },\n        \"type-http-bearer\": {\n          \"if\": {\n            \"properties\": {\n              \"type\": {\n                \"const\": \"http\"\n              },\n              \"scheme\": {\n                \"const\": \"bearer\"\n              }\n            },\n            \"required\": [\n              \"type\",\n              \"scheme\"\n            ]\n          },\n          \"then\": {\n            \"properties\": {\n              \"bearerFormat\": {\n                \"type\": \"string\"\n              }\n            },\n            \"required\": [\n              \"scheme\"\n            ]\n          }\n        },\n        \"type-oauth2\": {\n          \"if\": {\n            \"properties\": {\n              \"type\": {\n                \"const\": \"oauth2\"\n              }\n            },\n            \"required\": [\n              \"type\"\n            ]\n          },\n          \"then\": {\n            \"properties\": {\n              \"flows\": {\n                \"$ref\": \"#/$defs/oauth-flows\"\n              }\n            },\n            \"required\": [\n              \"flows\"\n            ]\n          }\n        },\n        \"type-oidc\": {\n          \"if\": {\n            \"properties\": {\n              \"type\": {\n                \"const\": \"openIdConnect\"\n              }\n            },\n            \"required\": [\n              \"type\"\n            ]\n          },\n          \"then\": {\n            \"properties\": {\n              \"openIdConnectUrl\": {\n                \"$ref\": \"#/$defs/uri\"\n              }\n            },\n            \"required\": [\n              \"openIdConnectUrl\"\n            ]\n          }\n        }\n      }\n    },\n    \"security-scheme-or-reference\": {\n      \"if\": {\n        \"required\": [\n          \"$ref\"\n        ]\n      },\n      \"then\": {\n        \"$ref\": \"#/$defs/reference\"\n      },\n      \"else\": {\n        \"$ref\": \"#/$defs/security-scheme\"\n      }\n    },\n    \"oauth-flows\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"implicit\": {\n          \"$ref\": \"#/$defs/oauth-flows/$defs/implicit\"\n        },\n        \"password\": {\n          \"$ref\": \"#/$defs/oauth-flows/$defs/password\"\n        },\n        \"clientCredentials\": {\n          \"$ref\": \"#/$defs/oauth-flows/$defs/client-credentials\"\n        },\n        \"authorizationCode\": {\n          \"$ref\": \"#/$defs/oauth-flows/$defs/authorization-code\"\n        }\n      },\n      \"$ref\": \"#/$defs/specification-extensions\",\n      \"unevaluatedProperties\": false,\n      \"$defs\": {\n        \"implicit\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"authorizationUrl\": {\n              \"type\": \"string\"\n            },\n            \"refreshUrl\": {\n              \"type\": \"string\"\n            },\n            \"scopes\": {\n              \"$ref\": \"#/$defs/map-of-strings\"\n            }\n          },\n          \"required\": [\n            \"authorizationUrl\",\n            \"scopes\"\n          ],\n          \"$ref\": \"#/$defs/specification-extensions\",\n          \"unevaluatedProperties\": false\n        },\n        \"password\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"tokenUrl\": {\n              \"type\": \"string\"\n            },\n            \"refreshUrl\": {\n              \"type\": \"string\"\n            },\n            \"scopes\": {\n              \"$ref\": \"#/$defs/map-of-strings\"\n            }\n          },\n          \"required\": [\n            \"tokenUrl\",\n            \"scopes\"\n          ],\n          \"$ref\": \"#/$defs/specification-extensions\",\n          \"unevaluatedProperties\": false\n        },\n        \"client-credentials\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"tokenUrl\": {\n              \"type\": \"string\"\n            },\n            \"refreshUrl\": {\n              \"type\": \"string\"\n            },\n            \"scopes\": {\n              \"$ref\": \"#/$defs/map-of-strings\"\n            }\n          },\n          \"required\": [\n            \"tokenUrl\",\n            \"scopes\"\n          ],\n          \"$ref\": \"#/$defs/specification-extensions\",\n          \"unevaluatedProperties\": false\n        },\n        \"authorization-code\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"authorizationUrl\": {\n              \"type\": \"string\"\n            },\n            \"tokenUrl\": {\n              \"type\": \"string\"\n            },\n            \"refreshUrl\": {\n              \"type\": \"string\"\n            },\n            \"scopes\": {\n              \"$ref\": \"#/$defs/map-of-strings\"\n            }\n          },\n          \"required\": [\n            \"authorizationUrl\",\n            \"tokenUrl\",\n            \"scopes\"\n          ],\n          \"$ref\": \"#/$defs/specification-extensions\",\n          \"unevaluatedProperties\": false\n        }\n      }\n    },\n    \"security-requirement\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"type\": \"array\",\n        \"items\": {\n          \"type\": \"string\"\n        }\n      }\n    },\n    \"specification-extensions\": {\n      \"patternProperties\": {\n        \"^x-\": true\n      }\n    },\n    \"examples\": {\n      \"properties\": {\n        \"example\": true,\n        \"examples\": {\n          \"type\": \"object\",\n          \"additionalProperties\": {\n            \"$ref\": \"#/$defs/example-or-reference\"\n          }\n        }\n      }\n    },\n    \"uri\": {\n      \"type\": \"string\",\n      \"format\": \"uri\"\n    },\n    \"map-of-strings\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"type\": \"string\"\n      }\n    }\n  }\n}\n", null, "\"use strict\";\n\nconst util = require(\"../util\");\nconst { ono } = require(\"@jsdevtools/ono\");\nconst AjvDraft4 = require(\"ajv-draft-04\");\nconst Ajv = require(\"ajv/dist/2020\");\nconst { openapi } = require(\"@apidevtools/openapi-schemas\");\n\nmodule.exports = validateSchema;\n\n/**\n * Validates the given Swagger API against the Swagger 2.0 or OpenAPI 3.0 and 3.1 schemas.\n *\n * @param {SwaggerObject} api\n */\nfunction validateSchema (api) {\n  let ajv;\n\n  // Choose the appropriate schema (Swagger or OpenAPI)\n  let schema;\n\n  if (api.swagger) {\n    schema = openapi.v2;\n    ajv = initializeAjv();\n  }\n  else {\n    if (api.openapi.startsWith(\"3.1\")) {\n      schema = openapi.v31;\n\n      // There's a bug with Ajv in how it handles `$dynamicRef` in the way that it's used within the 3.1 schema so we\n      // need to do some adhoc workarounds.\n      // https://github.com/OAI/OpenAPI-Specification/issues/2689\n      // https://github.com/ajv-validator/ajv/issues/1573\n      const schemaDynamicRef = schema.$defs.schema;\n      delete schemaDynamicRef.$dynamicAnchor;\n\n      schema.$defs.components.properties.schemas.additionalProperties = schemaDynamicRef;\n      schema.$defs.header.dependentSchemas.schema.properties.schema = schemaDynamicRef;\n      schema.$defs[\"media-type\"].properties.schema = schemaDynamicRef;\n      schema.$defs.parameter.properties.schema = schemaDynamicRef;\n\n      ajv = initializeAjv(false);\n    }\n    else {\n      schema = openapi.v3;\n      ajv = initializeAjv();\n    }\n  }\n\n  // Validate against the schema\n  let isValid = ajv.validate(schema, api);\n  if (!isValid) {\n    let err = ajv.errors;\n    let message = \"Swagger schema validation failed.\\n\" + formatAjvError(err);\n    throw ono.syntax(err, { details: err }, message);\n  }\n}\n\n/**\n * Determines which version of Ajv to load and prepares it for use.\n *\n * @param {bool} draft04\n * @returns {Ajv}\n */\nfunction initializeAjv (draft04 = true) {\n  const opts = {\n    allErrors: true,\n    strict: false,\n    validateFormats: false,\n  };\n\n  if (draft04) {\n    return new AjvDraft4(opts);\n  }\n\n  return new Ajv(opts);\n}\n\n/**\n * Run through a set of Ajv errors and compile them into an error message string.\n *\n * @param {object[]}  errors     - The Ajv errors\n * @param {string}    [indent]   - The whitespace used to indent the error message\n * @returns {string}\n */\nfunction formatAjvError (errors, indent) {\n  indent = indent || \"  \";\n  let message = \"\";\n  for (let error of errors) {\n    message += util.format(`${indent}#${error.instancePath.length ? error.instancePath : \"/\"} ${error.message}\\n`);\n  }\n  return message;\n}\n", "\"use strict\";\n\nmodule.exports = [\n  \"get\", \"put\", \"post\", \"delete\", \"options\", \"head\", \"patch\"\n];\n", "\"use strict\";\n\nconst util = require(\"../util\");\nconst { ono } = require(\"@jsdevtools/ono\");\nconst swaggerMethods = require(\"@apidevtools/swagger-methods\");\nconst primitiveTypes = [\"array\", \"boolean\", \"integer\", \"number\", \"string\"];\nconst schemaTypes = [\"array\", \"boolean\", \"integer\", \"number\", \"string\", \"object\", \"null\", undefined];\n\nmodule.exports = validateSpec;\n\n/**\n * Validates parts of the Swagger 2.0 spec that aren't covered by the Swagger 2.0 JSON Schema.\n *\n * @param {SwaggerObject} api\n */\nfunction validateSpec (api) {\n  if (api.openapi) {\n    // We don't (yet) support validating against the OpenAPI spec\n    return;\n  }\n\n  let paths = Object.keys(api.paths || {});\n  let operationIds = [];\n  for (let pathName of paths) {\n    let path = api.paths[pathName];\n    let pathId = \"/paths\" + pathName;\n\n    if (path && pathName.indexOf(\"/\") === 0) {\n      validatePath(api, path, pathId, operationIds);\n    }\n  }\n\n  let definitions = Object.keys(api.definitions || {});\n  for (let definitionName of definitions) {\n    let definition = api.definitions[definitionName];\n    let definitionId = \"/definitions/\" + definitionName;\n    validateRequiredPropertiesExist(definition, definitionId);\n  }\n}\n\n/**\n * Validates the given path.\n *\n * @param {SwaggerObject} api           - The entire Swagger API object\n * @param {object}        path          - A Path object, from the Swagger API\n * @param {string}        pathId        - A value that uniquely identifies the path\n * @param {string}        operationIds  - An array of collected operationIds found in other paths\n */\nfunction validatePath (api, path, pathId, operationIds) {\n  for (let operationName of swaggerMethods) {\n    let operation = path[operationName];\n    let operationId = pathId + \"/\" + operationName;\n\n    if (operation) {\n      let declaredOperationId = operation.operationId;\n      if (declaredOperationId) {\n        if (operationIds.indexOf(declaredOperationId) === -1) {\n          operationIds.push(declaredOperationId);\n        }\n        else {\n          throw ono.syntax(`Validation failed. Duplicate operation id '${declaredOperationId}'`);\n        }\n      }\n      validateParameters(api, path, pathId, operation, operationId);\n\n      let responses = Object.keys(operation.responses || {});\n      for (let responseName of responses) {\n        let response = operation.responses[responseName];\n        let responseId = operationId + \"/responses/\" + responseName;\n        validateResponse(responseName, (response || {}), responseId);\n      }\n    }\n  }\n}\n\n/**\n * Validates the parameters for the given operation.\n *\n * @param {SwaggerObject} api           - The entire Swagger API object\n * @param {object}        path          - A Path object, from the Swagger API\n * @param {string}        pathId        - A value that uniquely identifies the path\n * @param {object}        operation     - An Operation object, from the Swagger API\n * @param {string}        operationId   - A value that uniquely identifies the operation\n */\nfunction validateParameters (api, path, pathId, operation, operationId) {\n  let pathParams = path.parameters || [];\n  let operationParams = operation.parameters || [];\n\n  // Check for duplicate path parameters\n  try {\n    checkForDuplicates(pathParams);\n  }\n  catch (e) {\n    throw ono.syntax(e, `Validation failed. ${pathId} has duplicate parameters`);\n  }\n\n  // Check for duplicate operation parameters\n  try {\n    checkForDuplicates(operationParams);\n  }\n  catch (e) {\n    throw ono.syntax(e, `Validation failed. ${operationId} has duplicate parameters`);\n  }\n\n  // Combine the path and operation parameters,\n  // with the operation params taking precedence over the path params\n  let params = pathParams.reduce((combinedParams, value) => {\n    let duplicate = combinedParams.some((param) => {\n      return param.in === value.in && param.name === value.name;\n    });\n    if (!duplicate) {\n      combinedParams.push(value);\n    }\n    return combinedParams;\n  }, operationParams.slice());\n\n  validateBodyParameters(params, operationId);\n  validatePathParameters(params, pathId, operationId);\n  validateParameterTypes(params, api, operation, operationId);\n}\n\n/**\n * Validates body and formData parameters for the given operation.\n *\n * @param   {object[]}  params       -  An array of Parameter objects\n * @param   {string}    operationId  -  A value that uniquely identifies the operation\n */\nfunction validateBodyParameters (params, operationId) {\n  let bodyParams = params.filter((param) => { return param.in === \"body\"; });\n  let formParams = params.filter((param) => { return param.in === \"formData\"; });\n\n  // There can only be one \"body\" parameter\n  if (bodyParams.length > 1) {\n    throw ono.syntax(\n      `Validation failed. ${operationId} has ${bodyParams.length} body parameters. Only one is allowed.`,\n    );\n  }\n  else if (bodyParams.length > 0 && formParams.length > 0) {\n    // \"body\" params and \"formData\" params are mutually exclusive\n    throw ono.syntax(\n      `Validation failed. ${operationId} has body parameters and formData parameters. Only one or the other is allowed.`,\n    );\n  }\n}\n\n/**\n * Validates path parameters for the given path.\n *\n * @param   {object[]}  params        - An array of Parameter objects\n * @param   {string}    pathId        - A value that uniquely identifies the path\n * @param   {string}    operationId   - A value that uniquely identifies the operation\n */\nfunction validatePathParameters (params, pathId, operationId) {\n  // Find all {placeholders} in the path string\n  let placeholders = pathId.match(util.swaggerParamRegExp) || [];\n\n  // Check for duplicates\n  for (let i = 0; i < placeholders.length; i++) {\n    for (let j = i + 1; j < placeholders.length; j++) {\n      if (placeholders[i] === placeholders[j]) {\n        throw ono.syntax(\n          `Validation failed. ${operationId} has multiple path placeholders named ${placeholders[i]}`);\n      }\n    }\n  }\n\n  params = params.filter((param) => { return param.in === \"path\"; });\n\n  for (let param of params) {\n    if (param.required !== true) {\n      throw ono.syntax(\n        \"Validation failed. Path parameters cannot be optional. \" +\n        `Set required=true for the \"${param.name}\" parameter at ${operationId}`,\n      );\n    }\n    let match = placeholders.indexOf(\"{\" + param.name + \"}\");\n    if (match === -1) {\n      throw ono.syntax(\n        `Validation failed. ${operationId} has a path parameter named \"${param.name}\", ` +\n        `but there is no corresponding {${param.name}} in the path string`\n      );\n    }\n    placeholders.splice(match, 1);\n  }\n\n  if (placeholders.length > 0) {\n    throw ono.syntax(`Validation failed. ${operationId} is missing path parameter(s) for ${placeholders}`);\n  }\n}\n\n/**\n * Validates data types of parameters for the given operation.\n *\n * @param   {object[]}  params       -  An array of Parameter objects\n * @param   {object}    api          -  The entire Swagger API object\n * @param   {object}    operation    -  An Operation object, from the Swagger API\n * @param   {string}    operationId  -  A value that uniquely identifies the operation\n */\nfunction validateParameterTypes (params, api, operation, operationId) {\n  for (let param of params) {\n    let parameterId = operationId + \"/parameters/\" + param.name;\n    let schema, validTypes;\n\n    switch (param.in) {\n      case \"body\":\n        schema = param.schema;\n        validTypes = schemaTypes;\n        break;\n      case \"formData\":\n        schema = param;\n        validTypes = primitiveTypes.concat(\"file\");\n        break;\n      default:\n        schema = param;\n        validTypes = primitiveTypes;\n    }\n\n    validateSchema(schema, parameterId, validTypes);\n    validateRequiredPropertiesExist(schema, parameterId);\n\n    if (schema.type === \"file\") {\n      // \"file\" params must consume at least one of these MIME types\n      let formData = /multipart\\/(.*\\+)?form-data/;\n      let urlEncoded = /application\\/(.*\\+)?x-www-form-urlencoded/;\n\n      let consumes = operation.consumes || api.consumes || [];\n\n      let hasValidMimeType = consumes.some((consume) => {\n        return formData.test(consume) || urlEncoded.test(consume);\n      });\n\n      if (!hasValidMimeType) {\n        throw ono.syntax(\n          `Validation failed. ${operationId} has a file parameter, so it must consume multipart/form-data ` +\n          \"or application/x-www-form-urlencoded\",\n        );\n      }\n    }\n  }\n}\n\n/**\n * Checks the given parameter list for duplicates, and throws an error if found.\n *\n * @param   {object[]}  params  - An array of Parameter objects\n */\nfunction checkForDuplicates (params) {\n  for (let i = 0; i < params.length - 1; i++) {\n    let outer = params[i];\n    for (let j = i + 1; j < params.length; j++) {\n      let inner = params[j];\n      if (outer.name === inner.name && outer.in === inner.in) {\n        throw ono.syntax(`Validation failed. Found multiple ${outer.in} parameters named \"${outer.name}\"`);\n      }\n    }\n  }\n}\n\n/**\n * Validates the given response object.\n *\n * @param   {string}    code        -  The HTTP response code (or \"default\")\n * @param   {object}    response    -  A Response object, from the Swagger API\n * @param   {string}    responseId  -  A value that uniquely identifies the response\n */\nfunction validateResponse (code, response, responseId) {\n  if (code !== \"default\" && (code < 100 || code > 599)) {\n    throw ono.syntax(`Validation failed. ${responseId} has an invalid response code (${code})`);\n  }\n\n  let headers = Object.keys(response.headers || {});\n  for (let headerName of headers) {\n    let header = response.headers[headerName];\n    let headerId = responseId + \"/headers/\" + headerName;\n    validateSchema(header, headerId, primitiveTypes);\n  }\n\n  if (response.schema) {\n    let validTypes = schemaTypes.concat(\"file\");\n    if (validTypes.indexOf(response.schema.type) === -1) {\n      throw ono.syntax(\n        `Validation failed. ${responseId} has an invalid response schema type (${response.schema.type})`);\n    }\n    else {\n      validateSchema(response.schema, responseId + \"/schema\", validTypes);\n    }\n  }\n}\n\n/**\n * Validates the given Swagger schema object.\n *\n * @param {object}    schema      - A Schema object, from the Swagger API\n * @param {string}    schemaId    - A value that uniquely identifies the schema object\n * @param {string[]}  validTypes  - An array of the allowed schema types\n */\nfunction validateSchema (schema, schemaId, validTypes) {\n  if (validTypes.indexOf(schema.type) === -1) {\n    throw ono.syntax(\n      `Validation failed. ${schemaId} has an invalid type (${schema.type})`);\n  }\n\n  if (schema.type === \"array\" && !schema.items) {\n    throw ono.syntax(`Validation failed. ${schemaId} is an array, so it must include an \"items\" schema`);\n  }\n}\n\n/**\n * Validates that the declared properties of the given Swagger schema object actually exist.\n *\n * @param {object}    schema      - A Schema object, from the Swagger API\n * @param {string}    schemaId    - A value that uniquely identifies the schema object\n */\nfunction validateRequiredPropertiesExist (schema, schemaId) {\n  /**\n   * Recursively collects all properties of the schema and its ancestors. They are added to the props object.\n   */\n  function collectProperties (schemaObj, props) {\n    if (schemaObj.properties) {\n      for (let property in schemaObj.properties) {\n        if (schemaObj.properties.hasOwnProperty(property)) {\n          props[property] = schemaObj.properties[property];\n        }\n      }\n    }\n    if (schemaObj.allOf) {\n      for (let parent of schemaObj.allOf) {\n        collectProperties(parent, props);\n      }\n    }\n  }\n\n  // The \"required\" keyword is only applicable for objects\n  if (Array.isArray(schema.type) && !schema.type.includes(\"object\")) {\n    return;\n  }\n  else if (!Array.isArray(schema.type) && schema.type !== \"object\") {\n    return;\n  }\n\n  if (schema.required && Array.isArray(schema.required)) {\n    let props = {};\n    collectProperties(schema, props);\n    for (let requiredProperty of schema.required) {\n      if (!props[requiredProperty]) {\n        throw ono.syntax(\n          `Validation failed. Property '${requiredProperty}' listed as required but does not exist in '${schemaId}'`\n        );\n      }\n    }\n  }\n}\n", "var exports = {},\n    _dewExec = false;\n\nvar _global = typeof globalThis !== \"undefined\" ? globalThis : typeof self !== \"undefined\" ? self : global;\n\nfunction dew() {\n  if (_dewExec) return exports;\n  _dewExec = true;\n  // shim for using process in browser\n  var process = exports = {}; // cached from whatever global is present so that test runners that stub it\n  // don't break things.  But we need to wrap it in a try catch in case it is\n  // wrapped in strict mode code which doesn't define any globals.  It's inside a\n  // function because try/catches deoptimize in certain engines.\n\n  var cachedSetTimeout;\n  var cachedClearTimeout;\n\n  function defaultSetTimout() {\n    throw new Error(\"setTimeout has not been defined\");\n  }\n\n  function defaultClearTimeout() {\n    throw new Error(\"clearTimeout has not been defined\");\n  }\n\n  (function () {\n    try {\n      if (typeof setTimeout === \"function\") {\n        cachedSetTimeout = setTimeout;\n      } else {\n        cachedSetTimeout = defaultSetTimout;\n      }\n    } catch (e) {\n      cachedSetTimeout = defaultSetTimout;\n    }\n\n    try {\n      if (typeof clearTimeout === \"function\") {\n        cachedClearTimeout = clearTimeout;\n      } else {\n        cachedClearTimeout = defaultClearTimeout;\n      }\n    } catch (e) {\n      cachedClearTimeout = defaultClearTimeout;\n    }\n  })();\n\n  function runTimeout(fun) {\n    if (cachedSetTimeout === setTimeout) {\n      //normal enviroments in sane situations\n      return setTimeout(fun, 0);\n    } // if setTimeout wasn't available but was latter defined\n\n\n    if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n      cachedSetTimeout = setTimeout;\n      return setTimeout(fun, 0);\n    }\n\n    try {\n      // when when somebody has screwed with setTimeout but no I.E. maddness\n      return cachedSetTimeout(fun, 0);\n    } catch (e) {\n      try {\n        // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n        return cachedSetTimeout.call(null, fun, 0);\n      } catch (e) {\n        // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n        return cachedSetTimeout.call(this || _global, fun, 0);\n      }\n    }\n  }\n\n  function runClearTimeout(marker) {\n    if (cachedClearTimeout === clearTimeout) {\n      //normal enviroments in sane situations\n      return clearTimeout(marker);\n    } // if clearTimeout wasn't available but was latter defined\n\n\n    if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n      cachedClearTimeout = clearTimeout;\n      return clearTimeout(marker);\n    }\n\n    try {\n      // when when somebody has screwed with setTimeout but no I.E. maddness\n      return cachedClearTimeout(marker);\n    } catch (e) {\n      try {\n        // When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally\n        return cachedClearTimeout.call(null, marker);\n      } catch (e) {\n        // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n        // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n        return cachedClearTimeout.call(this || _global, marker);\n      }\n    }\n  }\n\n  var queue = [];\n  var draining = false;\n  var currentQueue;\n  var queueIndex = -1;\n\n  function cleanUpNextTick() {\n    if (!draining || !currentQueue) {\n      return;\n    }\n\n    draining = false;\n\n    if (currentQueue.length) {\n      queue = currentQueue.concat(queue);\n    } else {\n      queueIndex = -1;\n    }\n\n    if (queue.length) {\n      drainQueue();\n    }\n  }\n\n  function drainQueue() {\n    if (draining) {\n      return;\n    }\n\n    var timeout = runTimeout(cleanUpNextTick);\n    draining = true;\n    var len = queue.length;\n\n    while (len) {\n      currentQueue = queue;\n      queue = [];\n\n      while (++queueIndex < len) {\n        if (currentQueue) {\n          currentQueue[queueIndex].run();\n        }\n      }\n\n      queueIndex = -1;\n      len = queue.length;\n    }\n\n    currentQueue = null;\n    draining = false;\n    runClearTimeout(timeout);\n  }\n\n  process.nextTick = function (fun) {\n    var args = new Array(arguments.length - 1);\n\n    if (arguments.length > 1) {\n      for (var i = 1; i < arguments.length; i++) {\n        args[i - 1] = arguments[i];\n      }\n    }\n\n    queue.push(new Item(fun, args));\n\n    if (queue.length === 1 && !draining) {\n      runTimeout(drainQueue);\n    }\n  }; // v8 likes predictible objects\n\n\n  function Item(fun, array) {\n    (this || _global).fun = fun;\n    (this || _global).array = array;\n  }\n\n  Item.prototype.run = function () {\n    (this || _global).fun.apply(null, (this || _global).array);\n  };\n\n  process.title = \"browser\";\n  process.browser = true;\n  process.env = {};\n  process.argv = [];\n  process.version = \"\"; // empty string to avoid regexp issues\n\n  process.versions = {};\n\n  function noop() {}\n\n  process.on = noop;\n  process.addListener = noop;\n  process.once = noop;\n  process.off = noop;\n  process.removeListener = noop;\n  process.removeAllListeners = noop;\n  process.emit = noop;\n  process.prependListener = noop;\n  process.prependOnceListener = noop;\n\n  process.listeners = function (name) {\n    return [];\n  };\n\n  process.binding = function (name) {\n    throw new Error(\"process.binding is not supported\");\n  };\n\n  process.cwd = function () {\n    return \"/\";\n  };\n\n  process.chdir = function (dir) {\n    throw new Error(\"process.chdir is not supported\");\n  };\n\n  process.umask = function () {\n    return 0;\n  };\n\n  return exports;\n}\n\nvar process = dew();\n\nprocess.platform = 'browser';\nprocess.addListener;\nprocess.argv;\nprocess.binding;\nprocess.browser;\nprocess.chdir;\nprocess.cwd;\nprocess.emit;\nprocess.env;\nprocess.listeners;\nprocess.nextTick;\nprocess.off;\nprocess.on;\nprocess.once;\nprocess.prependListener;\nprocess.prependOnceListener;\nprocess.removeAllListeners;\nprocess.removeListener;\nprocess.title;\nprocess.umask;\nprocess.version;\nprocess.versions;\n\nexport { process as p };\n", "import { p as process } from './chunk-2eac56ff.js';\n\nvar exports$1 = {},\n    _dewExec = false;\nfunction dew() {\n  if (_dewExec) return exports$1;\n  _dewExec = true;\n  var process$1 = process;\n\n  function assertPath(path) {\n    if (typeof path !== \"string\") {\n      throw new TypeError(\"Path must be a string. Received \" + JSON.stringify(path));\n    }\n  } // Resolves . and .. elements in a path with directory names\n\n\n  function normalizeStringPosix(path, allowAboveRoot) {\n    var res = \"\";\n    var lastSegmentLength = 0;\n    var lastSlash = -1;\n    var dots = 0;\n    var code;\n\n    for (var i = 0; i <= path.length; ++i) {\n      if (i < path.length) code = path.charCodeAt(i);else if (code === 47\n      /*/*/\n      ) break;else code = 47\n      /*/*/\n      ;\n\n      if (code === 47\n      /*/*/\n      ) {\n        if (lastSlash === i - 1 || dots === 1) ; else if (lastSlash !== i - 1 && dots === 2) {\n          if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== 46\n          /*.*/\n          || res.charCodeAt(res.length - 2) !== 46\n          /*.*/\n          ) {\n            if (res.length > 2) {\n              var lastSlashIndex = res.lastIndexOf(\"/\");\n\n              if (lastSlashIndex !== res.length - 1) {\n                if (lastSlashIndex === -1) {\n                  res = \"\";\n                  lastSegmentLength = 0;\n                } else {\n                  res = res.slice(0, lastSlashIndex);\n                  lastSegmentLength = res.length - 1 - res.lastIndexOf(\"/\");\n                }\n\n                lastSlash = i;\n                dots = 0;\n                continue;\n              }\n            } else if (res.length === 2 || res.length === 1) {\n              res = \"\";\n              lastSegmentLength = 0;\n              lastSlash = i;\n              dots = 0;\n              continue;\n            }\n          }\n\n          if (allowAboveRoot) {\n            if (res.length > 0) res += \"/..\";else res = \"..\";\n            lastSegmentLength = 2;\n          }\n        } else {\n          if (res.length > 0) res += \"/\" + path.slice(lastSlash + 1, i);else res = path.slice(lastSlash + 1, i);\n          lastSegmentLength = i - lastSlash - 1;\n        }\n\n        lastSlash = i;\n        dots = 0;\n      } else if (code === 46\n      /*.*/\n      && dots !== -1) {\n        ++dots;\n      } else {\n        dots = -1;\n      }\n    }\n\n    return res;\n  }\n\n  function _format(sep, pathObject) {\n    var dir = pathObject.dir || pathObject.root;\n    var base = pathObject.base || (pathObject.name || \"\") + (pathObject.ext || \"\");\n\n    if (!dir) {\n      return base;\n    }\n\n    if (dir === pathObject.root) {\n      return dir + base;\n    }\n\n    return dir + sep + base;\n  }\n\n  var posix = {\n    // path.resolve([from ...], to)\n    resolve: function resolve() {\n      var resolvedPath = \"\";\n      var resolvedAbsolute = false;\n      var cwd;\n\n      for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n        var path;\n        if (i >= 0) path = arguments[i];else {\n          if (cwd === undefined) cwd = process$1.cwd();\n          path = cwd;\n        }\n        assertPath(path); // Skip empty entries\n\n        if (path.length === 0) {\n          continue;\n        }\n\n        resolvedPath = path + \"/\" + resolvedPath;\n        resolvedAbsolute = path.charCodeAt(0) === 47\n        /*/*/\n        ;\n      } // At this point the path should be resolved to a full absolute path, but\n      // handle relative paths to be safe (might happen when process.cwd() fails)\n      // Normalize the path\n\n\n      resolvedPath = normalizeStringPosix(resolvedPath, !resolvedAbsolute);\n\n      if (resolvedAbsolute) {\n        if (resolvedPath.length > 0) return \"/\" + resolvedPath;else return \"/\";\n      } else if (resolvedPath.length > 0) {\n        return resolvedPath;\n      } else {\n        return \".\";\n      }\n    },\n    normalize: function normalize(path) {\n      assertPath(path);\n      if (path.length === 0) return \".\";\n      var isAbsolute = path.charCodeAt(0) === 47\n      /*/*/\n      ;\n      var trailingSeparator = path.charCodeAt(path.length - 1) === 47\n      /*/*/\n      ; // Normalize the path\n\n      path = normalizeStringPosix(path, !isAbsolute);\n      if (path.length === 0 && !isAbsolute) path = \".\";\n      if (path.length > 0 && trailingSeparator) path += \"/\";\n      if (isAbsolute) return \"/\" + path;\n      return path;\n    },\n    isAbsolute: function isAbsolute(path) {\n      assertPath(path);\n      return path.length > 0 && path.charCodeAt(0) === 47\n      /*/*/\n      ;\n    },\n    join: function join() {\n      if (arguments.length === 0) return \".\";\n      var joined;\n\n      for (var i = 0; i < arguments.length; ++i) {\n        var arg = arguments[i];\n        assertPath(arg);\n\n        if (arg.length > 0) {\n          if (joined === undefined) joined = arg;else joined += \"/\" + arg;\n        }\n      }\n\n      if (joined === undefined) return \".\";\n      return posix.normalize(joined);\n    },\n    relative: function relative(from, to) {\n      assertPath(from);\n      assertPath(to);\n      if (from === to) return \"\";\n      from = posix.resolve(from);\n      to = posix.resolve(to);\n      if (from === to) return \"\"; // Trim any leading backslashes\n\n      var fromStart = 1;\n\n      for (; fromStart < from.length; ++fromStart) {\n        if (from.charCodeAt(fromStart) !== 47\n        /*/*/\n        ) break;\n      }\n\n      var fromEnd = from.length;\n      var fromLen = fromEnd - fromStart; // Trim any leading backslashes\n\n      var toStart = 1;\n\n      for (; toStart < to.length; ++toStart) {\n        if (to.charCodeAt(toStart) !== 47\n        /*/*/\n        ) break;\n      }\n\n      var toEnd = to.length;\n      var toLen = toEnd - toStart; // Compare paths to find the longest common path from root\n\n      var length = fromLen < toLen ? fromLen : toLen;\n      var lastCommonSep = -1;\n      var i = 0;\n\n      for (; i <= length; ++i) {\n        if (i === length) {\n          if (toLen > length) {\n            if (to.charCodeAt(toStart + i) === 47\n            /*/*/\n            ) {\n              // We get here if `from` is the exact base path for `to`.\n              // For example: from='/foo/bar'; to='/foo/bar/baz'\n              return to.slice(toStart + i + 1);\n            } else if (i === 0) {\n              // We get here if `from` is the root\n              // For example: from='/'; to='/foo'\n              return to.slice(toStart + i);\n            }\n          } else if (fromLen > length) {\n            if (from.charCodeAt(fromStart + i) === 47\n            /*/*/\n            ) {\n              // We get here if `to` is the exact base path for `from`.\n              // For example: from='/foo/bar/baz'; to='/foo/bar'\n              lastCommonSep = i;\n            } else if (i === 0) {\n              // We get here if `to` is the root.\n              // For example: from='/foo'; to='/'\n              lastCommonSep = 0;\n            }\n          }\n\n          break;\n        }\n\n        var fromCode = from.charCodeAt(fromStart + i);\n        var toCode = to.charCodeAt(toStart + i);\n        if (fromCode !== toCode) break;else if (fromCode === 47\n        /*/*/\n        ) lastCommonSep = i;\n      }\n\n      var out = \"\"; // Generate the relative path based on the path difference between `to`\n      // and `from`\n\n      for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {\n        if (i === fromEnd || from.charCodeAt(i) === 47\n        /*/*/\n        ) {\n          if (out.length === 0) out += \"..\";else out += \"/..\";\n        }\n      } // Lastly, append the rest of the destination (`to`) path that comes after\n      // the common path parts\n\n\n      if (out.length > 0) return out + to.slice(toStart + lastCommonSep);else {\n        toStart += lastCommonSep;\n        if (to.charCodeAt(toStart) === 47\n        /*/*/\n        ) ++toStart;\n        return to.slice(toStart);\n      }\n    },\n    _makeLong: function _makeLong(path) {\n      return path;\n    },\n    dirname: function dirname(path) {\n      assertPath(path);\n      if (path.length === 0) return \".\";\n      var code = path.charCodeAt(0);\n      var hasRoot = code === 47\n      /*/*/\n      ;\n      var end = -1;\n      var matchedSlash = true;\n\n      for (var i = path.length - 1; i >= 1; --i) {\n        code = path.charCodeAt(i);\n\n        if (code === 47\n        /*/*/\n        ) {\n          if (!matchedSlash) {\n            end = i;\n            break;\n          }\n        } else {\n          // We saw the first non-path separator\n          matchedSlash = false;\n        }\n      }\n\n      if (end === -1) return hasRoot ? \"/\" : \".\";\n      if (hasRoot && end === 1) return \"//\";\n      return path.slice(0, end);\n    },\n    basename: function basename(path, ext) {\n      if (ext !== undefined && typeof ext !== \"string\") throw new TypeError(\"\\\"ext\\\" argument must be a string\");\n      assertPath(path);\n      var start = 0;\n      var end = -1;\n      var matchedSlash = true;\n      var i;\n\n      if (ext !== undefined && ext.length > 0 && ext.length <= path.length) {\n        if (ext.length === path.length && ext === path) return \"\";\n        var extIdx = ext.length - 1;\n        var firstNonSlashEnd = -1;\n\n        for (i = path.length - 1; i >= 0; --i) {\n          var code = path.charCodeAt(i);\n\n          if (code === 47\n          /*/*/\n          ) {\n            // If we reached a path separator that was not part of a set of path\n            // separators at the end of the string, stop now\n            if (!matchedSlash) {\n              start = i + 1;\n              break;\n            }\n          } else {\n            if (firstNonSlashEnd === -1) {\n              // We saw the first non-path separator, remember this index in case\n              // we need it if the extension ends up not matching\n              matchedSlash = false;\n              firstNonSlashEnd = i + 1;\n            }\n\n            if (extIdx >= 0) {\n              // Try to match the explicit extension\n              if (code === ext.charCodeAt(extIdx)) {\n                if (--extIdx === -1) {\n                  // We matched the extension, so mark this as the end of our path\n                  // component\n                  end = i;\n                }\n              } else {\n                // Extension does not match, so our result is the entire path\n                // component\n                extIdx = -1;\n                end = firstNonSlashEnd;\n              }\n            }\n          }\n        }\n\n        if (start === end) end = firstNonSlashEnd;else if (end === -1) end = path.length;\n        return path.slice(start, end);\n      } else {\n        for (i = path.length - 1; i >= 0; --i) {\n          if (path.charCodeAt(i) === 47\n          /*/*/\n          ) {\n            // If we reached a path separator that was not part of a set of path\n            // separators at the end of the string, stop now\n            if (!matchedSlash) {\n              start = i + 1;\n              break;\n            }\n          } else if (end === -1) {\n            // We saw the first non-path separator, mark this as the end of our\n            // path component\n            matchedSlash = false;\n            end = i + 1;\n          }\n        }\n\n        if (end === -1) return \"\";\n        return path.slice(start, end);\n      }\n    },\n    extname: function extname(path) {\n      assertPath(path);\n      var startDot = -1;\n      var startPart = 0;\n      var end = -1;\n      var matchedSlash = true; // Track the state of characters (if any) we see before our first dot and\n      // after any path separator we find\n\n      var preDotState = 0;\n\n      for (var i = path.length - 1; i >= 0; --i) {\n        var code = path.charCodeAt(i);\n\n        if (code === 47\n        /*/*/\n        ) {\n          // If we reached a path separator that was not part of a set of path\n          // separators at the end of the string, stop now\n          if (!matchedSlash) {\n            startPart = i + 1;\n            break;\n          }\n\n          continue;\n        }\n\n        if (end === -1) {\n          // We saw the first non-path separator, mark this as the end of our\n          // extension\n          matchedSlash = false;\n          end = i + 1;\n        }\n\n        if (code === 46\n        /*.*/\n        ) {\n          // If this is our first dot, mark it as the start of our extension\n          if (startDot === -1) startDot = i;else if (preDotState !== 1) preDotState = 1;\n        } else if (startDot !== -1) {\n          // We saw a non-dot and non-path separator before our dot, so we should\n          // have a good chance at having a non-empty extension\n          preDotState = -1;\n        }\n      }\n\n      if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot\n      preDotState === 0 || // The (right-most) trimmed path component is exactly '..'\n      preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {\n        return \"\";\n      }\n\n      return path.slice(startDot, end);\n    },\n    format: function format(pathObject) {\n      if (pathObject === null || typeof pathObject !== \"object\") {\n        throw new TypeError(\"The \\\"pathObject\\\" argument must be of type Object. Received type \" + typeof pathObject);\n      }\n\n      return _format(\"/\", pathObject);\n    },\n    parse: function parse(path) {\n      assertPath(path);\n      var ret = {\n        root: \"\",\n        dir: \"\",\n        base: \"\",\n        ext: \"\",\n        name: \"\"\n      };\n      if (path.length === 0) return ret;\n      var code = path.charCodeAt(0);\n      var isAbsolute = code === 47\n      /*/*/\n      ;\n      var start;\n\n      if (isAbsolute) {\n        ret.root = \"/\";\n        start = 1;\n      } else {\n        start = 0;\n      }\n\n      var startDot = -1;\n      var startPart = 0;\n      var end = -1;\n      var matchedSlash = true;\n      var i = path.length - 1; // Track the state of characters (if any) we see before our first dot and\n      // after any path separator we find\n\n      var preDotState = 0; // Get non-dir info\n\n      for (; i >= start; --i) {\n        code = path.charCodeAt(i);\n\n        if (code === 47\n        /*/*/\n        ) {\n          // If we reached a path separator that was not part of a set of path\n          // separators at the end of the string, stop now\n          if (!matchedSlash) {\n            startPart = i + 1;\n            break;\n          }\n\n          continue;\n        }\n\n        if (end === -1) {\n          // We saw the first non-path separator, mark this as the end of our\n          // extension\n          matchedSlash = false;\n          end = i + 1;\n        }\n\n        if (code === 46\n        /*.*/\n        ) {\n          // If this is our first dot, mark it as the start of our extension\n          if (startDot === -1) startDot = i;else if (preDotState !== 1) preDotState = 1;\n        } else if (startDot !== -1) {\n          // We saw a non-dot and non-path separator before our dot, so we should\n          // have a good chance at having a non-empty extension\n          preDotState = -1;\n        }\n      }\n\n      if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot\n      preDotState === 0 || // The (right-most) trimmed path component is exactly '..'\n      preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {\n        if (end !== -1) {\n          if (startPart === 0 && isAbsolute) ret.base = ret.name = path.slice(1, end);else ret.base = ret.name = path.slice(startPart, end);\n        }\n      } else {\n        if (startPart === 0 && isAbsolute) {\n          ret.name = path.slice(1, startDot);\n          ret.base = path.slice(1, end);\n        } else {\n          ret.name = path.slice(startPart, startDot);\n          ret.base = path.slice(startPart, end);\n        }\n\n        ret.ext = path.slice(startDot, end);\n      }\n\n      if (startPart > 0) ret.dir = path.slice(0, startPart - 1);else if (isAbsolute) ret.dir = \"/\";\n      return ret;\n    },\n    sep: \"/\",\n    delimiter: \":\",\n    win32: null,\n    posix: null\n  };\n  posix.posix = posix;\n  exports$1 = posix;\n  return exports$1;\n}\n\nconst exports = dew();\n\nexport { exports as e };\n", "import { e as exports } from './chunk-23dbec7b.js';\nexport { e as default } from './chunk-23dbec7b.js';\nimport './chunk-2eac56ff.js';\n\nvar _makeLong = exports._makeLong;\r\nvar basename = exports.basename;\r\nvar delimiter = exports.delimiter;\r\nvar dirname = exports.dirname;\r\nvar extname = exports.extname;\r\nvar format = exports.format;\r\nvar isAbsolute = exports.isAbsolute;\r\nvar join = exports.join;\r\nvar normalize = exports.normalize;\r\nvar parse = exports.parse;\r\nvar posix = exports.posix;\r\nvar relative = exports.relative;\r\nvar resolve = exports.resolve;\r\nvar sep = exports.sep;\r\nvar win32 = exports.win32;\n\nexport { _makeLong, basename, delimiter, dirname, extname, format, isAbsolute, join, normalize, parse, posix, relative, resolve, sep, win32 };\n", "\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = convertPathToPosix;\nconst path_1 = __importDefault(require(\"path\"));\nfunction convertPathToPosix(filePath) {\n    const isExtendedLengthPath = filePath.startsWith(\"\\\\\\\\?\\\\\");\n    if (isExtendedLengthPath) {\n        return filePath;\n    }\n    return filePath.split(path_1.default?.win32?.sep).join(path_1.default?.posix?.sep ?? \"/\");\n}\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isWindows = void 0;\nconst isWindowsConst = /^win/.test(globalThis.process ? globalThis.process.platform : \"\");\nconst isWindows = () => isWindowsConst;\nexports.isWindows = isWindows;\n", "\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.parse = void 0;\nexports.resolve = resolve;\nexports.cwd = cwd;\nexports.getProtocol = getProtocol;\nexports.getExtension = getExtension;\nexports.stripQuery = stripQuery;\nexports.getHash = getHash;\nexports.stripHash = stripHash;\nexports.isHttp = isHttp;\nexports.isFileSystemPath = isFileSystemPath;\nexports.fromFileSystemPath = fromFileSystemPath;\nexports.toFileSystemPath = toFileSystemPath;\nexports.safePointerToPath = safePointerToPath;\nexports.relative = relative;\nconst convert_path_to_posix_1 = __importDefault(require(\"./convert-path-to-posix\"));\nconst path_1 = __importStar(require(\"path\"));\nconst forwardSlashPattern = /\\//g;\nconst protocolPattern = /^(\\w{2,}):\\/\\//i;\nconst jsonPointerSlash = /~1/g;\nconst jsonPointerTilde = /~0/g;\nconst path_2 = require(\"path\");\nconst is_windows_1 = require(\"./is-windows\");\n// RegExp patterns to URL-encode special characters in local filesystem paths\nconst urlEncodePatterns = [\n    [/\\?/g, \"%3F\"],\n    [/#/g, \"%23\"],\n];\n// RegExp patterns to URL-decode special characters for local filesystem paths\nconst urlDecodePatterns = [/%23/g, \"#\", /%24/g, \"$\", /%26/g, \"&\", /%2C/g, \",\", /%40/g, \"@\"];\nconst parse = (u) => new URL(u);\nexports.parse = parse;\n/**\n * Returns resolved target URL relative to a base URL in a manner similar to that of a Web browser resolving an anchor tag HREF.\n *\n * @returns\n */\nfunction resolve(from, to) {\n    const fromUrl = new URL((0, convert_path_to_posix_1.default)(from), \"resolve://\");\n    const resolvedUrl = new URL((0, convert_path_to_posix_1.default)(to), fromUrl);\n    const endSpaces = to.match(/(\\s*)$/)?.[1] || \"\";\n    if (resolvedUrl.protocol === \"resolve:\") {\n        // `from` is a relative URL.\n        const { pathname, search, hash } = resolvedUrl;\n        return pathname + search + hash + endSpaces;\n    }\n    return resolvedUrl.toString() + endSpaces;\n}\n/**\n * Returns the current working directory (in Node) or the current page URL (in browsers).\n *\n * @returns\n */\nfunction cwd() {\n    if (typeof window !== \"undefined\") {\n        return location.href;\n    }\n    const path = process.cwd();\n    const lastChar = path.slice(-1);\n    if (lastChar === \"/\" || lastChar === \"\\\\\") {\n        return path;\n    }\n    else {\n        return path + \"/\";\n    }\n}\n/**\n * Returns the protocol of the given URL, or `undefined` if it has no protocol.\n *\n * @param path\n * @returns\n */\nfunction getProtocol(path) {\n    const match = protocolPattern.exec(path || \"\");\n    if (match) {\n        return match[1].toLowerCase();\n    }\n    return undefined;\n}\n/**\n * Returns the lowercased file extension of the given URL,\n * or an empty string if it has no extension.\n *\n * @param path\n * @returns\n */\nfunction getExtension(path) {\n    const lastDot = path.lastIndexOf(\".\");\n    if (lastDot >= 0) {\n        return stripQuery(path.substr(lastDot).toLowerCase());\n    }\n    return \"\";\n}\n/**\n * Removes the query, if any, from the given path.\n *\n * @param path\n * @returns\n */\nfunction stripQuery(path) {\n    const queryIndex = path.indexOf(\"?\");\n    if (queryIndex >= 0) {\n        path = path.substr(0, queryIndex);\n    }\n    return path;\n}\n/**\n * Returns the hash (URL fragment), of the given path.\n * If there is no hash, then the root hash (\"#\") is returned.\n *\n * @param path\n * @returns\n */\nfunction getHash(path) {\n    if (!path) {\n        return \"#\";\n    }\n    const hashIndex = path.indexOf(\"#\");\n    if (hashIndex >= 0) {\n        return path.substring(hashIndex);\n    }\n    return \"#\";\n}\n/**\n * Removes the hash (URL fragment), if any, from the given path.\n *\n * @param path\n * @returns\n */\nfunction stripHash(path) {\n    if (!path) {\n        return \"\";\n    }\n    const hashIndex = path.indexOf(\"#\");\n    if (hashIndex >= 0) {\n        path = path.substring(0, hashIndex);\n    }\n    return path;\n}\n/**\n * Determines whether the given path is an HTTP(S) URL.\n *\n * @param path\n * @returns\n */\nfunction isHttp(path) {\n    const protocol = getProtocol(path);\n    if (protocol === \"http\" || protocol === \"https\") {\n        return true;\n    }\n    else if (protocol === undefined) {\n        // There is no protocol.  If we're running in a browser, then assume it's HTTP.\n        return typeof window !== \"undefined\";\n    }\n    else {\n        // It's some other protocol, such as \"ftp://\", \"mongodb://\", etc.\n        return false;\n    }\n}\n/**\n * Determines whether the given path is a filesystem path.\n * This includes \"file://\" URLs.\n *\n * @param path\n * @returns\n */\nfunction isFileSystemPath(path) {\n    // @ts-ignore\n    if (typeof window !== \"undefined\" || (typeof process !== \"undefined\" && process.browser)) {\n        // We're running in a browser, so assume that all paths are URLs.\n        // This way, even relative paths will be treated as URLs rather than as filesystem paths\n        return false;\n    }\n    const protocol = getProtocol(path);\n    return protocol === undefined || protocol === \"file\";\n}\n/**\n * Converts a filesystem path to a properly-encoded URL.\n *\n * This is intended to handle situations where JSON Schema $Ref Parser is called\n * with a filesystem path that contains characters which are not allowed in URLs.\n *\n * @example\n * The following filesystem paths would be converted to the following URLs:\n *\n *    <\"!@#$%^&*+=?'>.json              ==>   %3C%22!@%23$%25%5E&*+=%3F\\'%3E.json\n *    C:\\\\My Documents\\\\File (1).json   ==>   C:/My%20Documents/File%20(1).json\n *    file://Project #42/file.json      ==>   file://Project%20%2342/file.json\n *\n * @param path\n * @returns\n */\nfunction fromFileSystemPath(path) {\n    // Step 1: On Windows, replace backslashes with forward slashes,\n    // rather than encoding them as \"%5C\"\n    if ((0, is_windows_1.isWindows)()) {\n        const projectDir = cwd();\n        const upperPath = path.toUpperCase();\n        const projectDirPosixPath = (0, convert_path_to_posix_1.default)(projectDir);\n        const posixUpper = projectDirPosixPath.toUpperCase();\n        const hasProjectDir = upperPath.includes(posixUpper);\n        const hasProjectUri = upperPath.includes(posixUpper);\n        const isAbsolutePath = path_1.win32?.isAbsolute(path) ||\n            path.startsWith(\"http://\") ||\n            path.startsWith(\"https://\") ||\n            path.startsWith(\"file://\");\n        if (!(hasProjectDir || hasProjectUri || isAbsolutePath) && !projectDir.startsWith(\"http\")) {\n            path = (0, path_2.join)(projectDir, path);\n        }\n        path = (0, convert_path_to_posix_1.default)(path);\n    }\n    // Step 2: `encodeURI` will take care of MOST characters\n    path = encodeURI(path);\n    // Step 3: Manually encode characters that are not encoded by `encodeURI`.\n    // This includes characters such as \"#\" and \"?\", which have special meaning in URLs,\n    // but are just normal characters in a filesystem path.\n    for (const pattern of urlEncodePatterns) {\n        path = path.replace(pattern[0], pattern[1]);\n    }\n    return path;\n}\n/**\n * Converts a URL to a local filesystem path.\n */\nfunction toFileSystemPath(path, keepFileProtocol) {\n    // Step 1: `decodeURI` will decode characters such as Cyrillic characters, spaces, etc.\n    path = decodeURI(path);\n    // Step 2: Manually decode characters that are not decoded by `decodeURI`.\n    // This includes characters such as \"#\" and \"?\", which have special meaning in URLs,\n    // but are just normal characters in a filesystem path.\n    for (let i = 0; i < urlDecodePatterns.length; i += 2) {\n        path = path.replace(urlDecodePatterns[i], urlDecodePatterns[i + 1]);\n    }\n    // Step 3: If it's a \"file://\" URL, then format it consistently\n    // or convert it to a local filesystem path\n    let isFileUrl = path.substr(0, 7).toLowerCase() === \"file://\";\n    if (isFileUrl) {\n        // Strip-off the protocol, and the initial \"/\", if there is one\n        path = path[7] === \"/\" ? path.substr(8) : path.substr(7);\n        // insert a colon (\":\") after the drive letter on Windows\n        if ((0, is_windows_1.isWindows)() && path[1] === \"/\") {\n            path = path[0] + \":\" + path.substr(1);\n        }\n        if (keepFileProtocol) {\n            // Return the consistently-formatted \"file://\" URL\n            path = \"file:///\" + path;\n        }\n        else {\n            // Convert the \"file://\" URL to a local filesystem path.\n            // On Windows, it will start with something like \"C:/\".\n            // On Posix, it will start with \"/\"\n            isFileUrl = false;\n            path = (0, is_windows_1.isWindows)() ? path : \"/\" + path;\n        }\n    }\n    // Step 4: Normalize Windows paths (unless it's a \"file://\" URL)\n    if ((0, is_windows_1.isWindows)() && !isFileUrl) {\n        // Replace forward slashes with backslashes\n        path = path.replace(forwardSlashPattern, \"\\\\\");\n        // Capitalize the drive letter\n        if (path.substr(1, 2) === \":\\\\\") {\n            path = path[0].toUpperCase() + path.substr(1);\n        }\n    }\n    return path;\n}\n/**\n * Converts a $ref pointer to a valid JSON Path.\n *\n * @param pointer\n * @returns\n */\nfunction safePointerToPath(pointer) {\n    if (pointer.length <= 1 || pointer[0] !== \"#\" || pointer[1] !== \"/\") {\n        return [];\n    }\n    return pointer\n        .slice(2)\n        .split(\"/\")\n        .map((value) => {\n        return decodeURIComponent(value).replace(jsonPointerSlash, \"/\").replace(jsonPointerTilde, \"~\");\n    });\n}\nfunction relative(from, to) {\n    if (!isFileSystemPath(from) || !isFileSystemPath(to)) {\n        return resolve(from, to);\n    }\n    const fromDir = path_1.default.dirname(stripHash(from));\n    const toPath = stripHash(to);\n    const result = path_1.default.relative(fromDir, toPath);\n    return result + getHash(to);\n}\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.InvalidPointerError = exports.TimeoutError = exports.MissingPointerError = exports.UnmatchedResolverError = exports.ResolverError = exports.UnmatchedParserError = exports.ParserError = exports.JSONParserErrorGroup = exports.JSONParserError = void 0;\nexports.isHandledError = isHandledError;\nexports.normalizeError = normalizeError;\nconst ono_1 = require(\"@jsdevtools/ono\");\nconst url_js_1 = require(\"./url.js\");\nclass JSONParserError extends Error {\n    constructor(message, source) {\n        super();\n        this.code = \"EUNKNOWN\";\n        this.name = \"JSONParserError\";\n        this.message = message;\n        this.source = source;\n        this.path = null;\n        ono_1.Ono.extend(this);\n    }\n    get footprint() {\n        return `${this.path}+${this.source}+${this.code}+${this.message}`;\n    }\n}\nexports.JSONParserError = JSONParserError;\nclass JSONParserErrorGroup extends Error {\n    constructor(parser) {\n        super();\n        this.files = parser;\n        this.name = \"JSONParserErrorGroup\";\n        this.message = `${this.errors.length} error${this.errors.length > 1 ? \"s\" : \"\"} occurred while reading '${(0, url_js_1.toFileSystemPath)(parser.$refs._root$Ref.path)}'`;\n        ono_1.Ono.extend(this);\n    }\n    static getParserErrors(parser) {\n        const errors = [];\n        for (const $ref of Object.values(parser.$refs._$refs)) {\n            if ($ref.errors) {\n                errors.push(...$ref.errors);\n            }\n        }\n        return errors;\n    }\n    get errors() {\n        return JSONParserErrorGroup.getParserErrors(this.files);\n    }\n}\nexports.JSONParserErrorGroup = JSONParserErrorGroup;\nclass ParserError extends JSONParserError {\n    constructor(message, source) {\n        super(`Error parsing ${source}: ${message}`, source);\n        this.code = \"EPARSER\";\n        this.name = \"ParserError\";\n    }\n}\nexports.ParserError = ParserError;\nclass UnmatchedParserError extends JSONParserError {\n    constructor(source) {\n        super(`Could not find parser for \"${source}\"`, source);\n        this.code = \"EUNMATCHEDPARSER\";\n        this.name = \"UnmatchedParserError\";\n    }\n}\nexports.UnmatchedParserError = UnmatchedParserError;\nclass ResolverError extends JSONParserError {\n    constructor(ex, source) {\n        super(ex.message || `Error reading file \"${source}\"`, source);\n        this.code = \"ERESOLVER\";\n        this.name = \"ResolverError\";\n        if (\"code\" in ex) {\n            this.ioErrorCode = String(ex.code);\n        }\n    }\n}\nexports.ResolverError = ResolverError;\nclass UnmatchedResolverError extends JSONParserError {\n    constructor(source) {\n        super(`Could not find resolver for \"${source}\"`, source);\n        this.code = \"EUNMATCHEDRESOLVER\";\n        this.name = \"UnmatchedResolverError\";\n    }\n}\nexports.UnmatchedResolverError = UnmatchedResolverError;\nclass MissingPointerError extends JSONParserError {\n    constructor(token, path) {\n        super(`Token \"${token}\" does not exist.`, (0, url_js_1.stripHash)(path));\n        this.code = \"EUNMATCHEDRESOLVER\";\n        this.name = \"MissingPointerError\";\n    }\n}\nexports.MissingPointerError = MissingPointerError;\nclass TimeoutError extends JSONParserError {\n    constructor(timeout) {\n        super(`Dereferencing timeout reached: ${timeout}ms`);\n        this.code = \"ETIMEOUT\";\n        this.name = \"TimeoutError\";\n    }\n}\nexports.TimeoutError = TimeoutError;\nclass InvalidPointerError extends JSONParserError {\n    constructor(pointer, path) {\n        super(`Invalid $ref pointer \"${pointer}\". Pointers must begin with \"#/\"`, (0, url_js_1.stripHash)(path));\n        this.code = \"EUNMATCHEDRESOLVER\";\n        this.name = \"InvalidPointerError\";\n    }\n}\nexports.InvalidPointerError = InvalidPointerError;\nfunction isHandledError(err) {\n    return err instanceof JSONParserError || err instanceof JSONParserErrorGroup;\n}\nfunction normalizeError(err) {\n    if (err.path === null) {\n        err.path = [];\n    }\n    return err;\n}\n", "\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst ref_js_1 = __importDefault(require(\"./ref.js\"));\nconst url = __importStar(require(\"./util/url.js\"));\nconst errors_js_1 = require(\"./util/errors.js\");\nconst slashes = /\\//g;\nconst tildes = /~/g;\nconst escapedSlash = /~1/g;\nconst escapedTilde = /~0/g;\nconst safeDecodeURIComponent = (encodedURIComponent) => {\n    try {\n        return decodeURIComponent(encodedURIComponent);\n    }\n    catch {\n        return encodedURIComponent;\n    }\n};\n/**\n * This class represents a single JSON pointer and its resolved value.\n *\n * @param $ref\n * @param path\n * @param [friendlyPath] - The original user-specified path (used for error messages)\n * @class\n */\nclass Pointer {\n    constructor($ref, path, friendlyPath) {\n        this.$ref = $ref;\n        this.path = path;\n        this.originalPath = friendlyPath || path;\n        this.value = undefined;\n        this.circular = false;\n        this.indirections = 0;\n    }\n    /**\n     * Resolves the value of a nested property within the given object.\n     *\n     * @param obj - The object that will be crawled\n     * @param options\n     * @param pathFromRoot - the path of place that initiated resolving\n     *\n     * @returns\n     * Returns a JSON pointer whose {@link Pointer#value} is the resolved value.\n     * If resolving this value required resolving other JSON references, then\n     * the {@link Pointer#$ref} and {@link Pointer#path} will reflect the resolution path\n     * of the resolved value.\n     */\n    resolve(obj, options, pathFromRoot) {\n        const tokens = Pointer.parse(this.path, this.originalPath);\n        // Crawl the object, one token at a time\n        this.value = unwrapOrThrow(obj);\n        for (let i = 0; i < tokens.length; i++) {\n            if (resolveIf$Ref(this, options, pathFromRoot)) {\n                // The $ref path has changed, so append the remaining tokens to the path\n                this.path = Pointer.join(this.path, tokens.slice(i));\n            }\n            if (typeof this.value === \"object\" && this.value !== null && !isRootPath(pathFromRoot) && \"$ref\" in this.value) {\n                return this;\n            }\n            const token = tokens[i];\n            if (this.value[token] === undefined || (this.value[token] === null && i === tokens.length - 1)) {\n                // one final case is if the entry itself includes slashes, and was parsed out as a token - we can join the remaining tokens and try again\n                let didFindSubstringSlashMatch = false;\n                for (let j = tokens.length - 1; j > i; j--) {\n                    const joinedToken = tokens.slice(i, j + 1).join(\"/\");\n                    if (this.value[joinedToken] !== undefined) {\n                        this.value = this.value[joinedToken];\n                        i = j;\n                        didFindSubstringSlashMatch = true;\n                        break;\n                    }\n                }\n                if (didFindSubstringSlashMatch) {\n                    continue;\n                }\n                this.value = null;\n                throw new errors_js_1.MissingPointerError(token, decodeURI(this.originalPath));\n            }\n            else {\n                this.value = this.value[token];\n            }\n        }\n        // Resolve the final value\n        if (!this.value || (this.value.$ref && url.resolve(this.path, this.value.$ref) !== pathFromRoot)) {\n            resolveIf$Ref(this, options, pathFromRoot);\n        }\n        return this;\n    }\n    /**\n     * Sets the value of a nested property within the given object.\n     *\n     * @param obj - The object that will be crawled\n     * @param value - the value to assign\n     * @param options\n     *\n     * @returns\n     * Returns the modified object, or an entirely new object if the entire object is overwritten.\n     */\n    set(obj, value, options) {\n        const tokens = Pointer.parse(this.path);\n        let token;\n        if (tokens.length === 0) {\n            // There are no tokens, replace the entire object with the new value\n            this.value = value;\n            return value;\n        }\n        // Crawl the object, one token at a time\n        this.value = unwrapOrThrow(obj);\n        for (let i = 0; i < tokens.length - 1; i++) {\n            resolveIf$Ref(this, options);\n            token = tokens[i];\n            if (this.value && this.value[token] !== undefined) {\n                // The token exists\n                this.value = this.value[token];\n            }\n            else {\n                // The token doesn't exist, so create it\n                this.value = setValue(this, token, {});\n            }\n        }\n        // Set the value of the final token\n        resolveIf$Ref(this, options);\n        token = tokens[tokens.length - 1];\n        setValue(this, token, value);\n        // Return the updated object\n        return obj;\n    }\n    /**\n     * Parses a JSON pointer (or a path containing a JSON pointer in the hash)\n     * and returns an array of the pointer's tokens.\n     * (e.g. \"schema.json#/definitions/person/name\" => [\"definitions\", \"person\", \"name\"])\n     *\n     * The pointer is parsed according to RFC 6901\n     * {@link https://tools.ietf.org/html/rfc6901#section-3}\n     *\n     * @param path\n     * @param [originalPath]\n     * @returns\n     */\n    static parse(path, originalPath) {\n        // Get the JSON pointer from the path's hash\n        const pointer = url.getHash(path).substring(1);\n        // If there's no pointer, then there are no tokens,\n        // so return an empty array\n        if (!pointer) {\n            return [];\n        }\n        // Split into an array\n        const split = pointer.split(\"/\");\n        // Decode each part, according to RFC 6901\n        for (let i = 0; i < split.length; i++) {\n            split[i] = safeDecodeURIComponent(split[i].replace(escapedSlash, \"/\").replace(escapedTilde, \"~\"));\n        }\n        if (split[0] !== \"\") {\n            throw new errors_js_1.InvalidPointerError(split, originalPath === undefined ? path : originalPath);\n        }\n        return split.slice(1);\n    }\n    /**\n     * Creates a JSON pointer path, by joining one or more tokens to a base path.\n     *\n     * @param base - The base path (e.g. \"schema.json#/definitions/person\")\n     * @param tokens - The token(s) to append (e.g. [\"name\", \"first\"])\n     * @returns\n     */\n    static join(base, tokens) {\n        // Ensure that the base path contains a hash\n        if (base.indexOf(\"#\") === -1) {\n            base += \"#\";\n        }\n        // Append each token to the base path\n        tokens = Array.isArray(tokens) ? tokens : [tokens];\n        for (let i = 0; i < tokens.length; i++) {\n            const token = tokens[i];\n            // Encode the token, according to RFC 6901\n            base += \"/\" + encodeURIComponent(token.replace(tildes, \"~0\").replace(slashes, \"~1\"));\n        }\n        return base;\n    }\n}\n/**\n * If the given pointer's {@link Pointer#value} is a JSON reference,\n * then the reference is resolved and {@link Pointer#value} is replaced with the resolved value.\n * In addition, {@link Pointer#path} and {@link Pointer#$ref} are updated to reflect the\n * resolution path of the new value.\n *\n * @param pointer\n * @param options\n * @param [pathFromRoot] - the path of place that initiated resolving\n * @returns - Returns `true` if the resolution path changed\n */\nfunction resolveIf$Ref(pointer, options, pathFromRoot) {\n    // Is the value a JSON reference? (and allowed?)\n    if (ref_js_1.default.isAllowed$Ref(pointer.value, options)) {\n        const $refPath = url.resolve(pointer.path, pointer.value.$ref);\n        if ($refPath === pointer.path && !isRootPath(pathFromRoot)) {\n            // The value is a reference to itself, so there's nothing to do.\n            pointer.circular = true;\n        }\n        else {\n            const resolved = pointer.$ref.$refs._resolve($refPath, pointer.path, options);\n            if (resolved === null) {\n                return false;\n            }\n            pointer.indirections += resolved.indirections + 1;\n            if (ref_js_1.default.isExtended$Ref(pointer.value)) {\n                // This JSON reference \"extends\" the resolved value, rather than simply pointing to it.\n                // So the resolved path does NOT change.  Just the value does.\n                pointer.value = ref_js_1.default.dereference(pointer.value, resolved.value);\n                return false;\n            }\n            else {\n                // Resolve the reference\n                pointer.$ref = resolved.$ref;\n                pointer.path = resolved.path;\n                pointer.value = resolved.value;\n            }\n            return true;\n        }\n    }\n    return undefined;\n}\nexports.default = Pointer;\n/**\n * Sets the specified token value of the {@link Pointer#value}.\n *\n * The token is evaluated according to RFC 6901.\n * {@link https://tools.ietf.org/html/rfc6901#section-4}\n *\n * @param pointer - The JSON Pointer whose value will be modified\n * @param token - A JSON Pointer token that indicates how to modify `obj`\n * @param value - The value to assign\n * @returns - Returns the assigned value\n */\nfunction setValue(pointer, token, value) {\n    if (pointer.value && typeof pointer.value === \"object\") {\n        if (token === \"-\" && Array.isArray(pointer.value)) {\n            pointer.value.push(value);\n        }\n        else {\n            pointer.value[token] = value;\n        }\n    }\n    else {\n        throw new errors_js_1.JSONParserError(`Error assigning $ref pointer \"${pointer.path}\". \\nCannot set \"${token}\" of a non-object.`);\n    }\n    return value;\n}\nfunction unwrapOrThrow(value) {\n    if ((0, errors_js_1.isHandledError)(value)) {\n        throw value;\n    }\n    return value;\n}\nfunction isRootPath(pathFromRoot) {\n    return typeof pathFromRoot == \"string\" && Pointer.parse(pathFromRoot).length == 0;\n}\n", "\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst pointer_js_1 = __importDefault(require(\"./pointer.js\"));\nconst errors_js_1 = require(\"./util/errors.js\");\nconst url_js_1 = require(\"./util/url.js\");\n/**\n * This class represents a single JSON reference and its resolved value.\n *\n * @class\n */\nclass $Ref {\n    constructor($refs) {\n        /**\n         * List of all errors. Undefined if no errors.\n         */\n        this.errors = [];\n        this.$refs = $refs;\n    }\n    /**\n     * Pushes an error to errors array.\n     *\n     * @param err - The error to be pushed\n     * @returns\n     */\n    addError(err) {\n        if (this.errors === undefined) {\n            this.errors = [];\n        }\n        const existingErrors = this.errors.map(({ footprint }) => footprint);\n        // the path has been almost certainly set at this point,\n        // but just in case something went wrong, normalizeError injects path if necessary\n        // moreover, certain errors might point at the same spot, so filter them out to reduce noise\n        if (\"errors\" in err && Array.isArray(err.errors)) {\n            this.errors.push(...err.errors.map(errors_js_1.normalizeError).filter(({ footprint }) => !existingErrors.includes(footprint)));\n        }\n        else if (!(\"footprint\" in err) || !existingErrors.includes(err.footprint)) {\n            this.errors.push((0, errors_js_1.normalizeError)(err));\n        }\n    }\n    /**\n     * Determines whether the given JSON reference exists within this {@link $Ref#value}.\n     *\n     * @param path - The full path being resolved, optionally with a JSON pointer in the hash\n     * @param options\n     * @returns\n     */\n    exists(path, options) {\n        try {\n            this.resolve(path, options);\n            return true;\n        }\n        catch {\n            return false;\n        }\n    }\n    /**\n     * Resolves the given JSON reference within this {@link $Ref#value} and returns the resolved value.\n     *\n     * @param path - The full path being resolved, optionally with a JSON pointer in the hash\n     * @param options\n     * @returns - Returns the resolved value\n     */\n    get(path, options) {\n        return this.resolve(path, options)?.value;\n    }\n    /**\n     * Resolves the given JSON reference within this {@link $Ref#value}.\n     *\n     * @param path - The full path being resolved, optionally with a JSON pointer in the hash\n     * @param options\n     * @param friendlyPath - The original user-specified path (used for error messages)\n     * @param pathFromRoot - The path of `obj` from the schema root\n     * @returns\n     */\n    resolve(path, options, friendlyPath, pathFromRoot) {\n        const pointer = new pointer_js_1.default(this, path, friendlyPath);\n        try {\n            return pointer.resolve(this.value, options, pathFromRoot);\n        }\n        catch (err) {\n            if (!options || !options.continueOnError || !(0, errors_js_1.isHandledError)(err)) {\n                throw err;\n            }\n            if (err.path === null) {\n                err.path = (0, url_js_1.safePointerToPath)((0, url_js_1.getHash)(pathFromRoot));\n            }\n            if (err instanceof errors_js_1.InvalidPointerError) {\n                err.source = decodeURI((0, url_js_1.stripHash)(pathFromRoot));\n            }\n            this.addError(err);\n            return null;\n        }\n    }\n    /**\n     * Sets the value of a nested property within this {@link $Ref#value}.\n     * If the property, or any of its parents don't exist, they will be created.\n     *\n     * @param path - The full path of the property to set, optionally with a JSON pointer in the hash\n     * @param value - The value to assign\n     */\n    set(path, value) {\n        const pointer = new pointer_js_1.default(this, path);\n        this.value = pointer.set(this.value, value);\n    }\n    /**\n     * Determines whether the given value is a JSON reference.\n     *\n     * @param value - The value to inspect\n     * @returns\n     */\n    static is$Ref(value) {\n        return (Boolean(value) &&\n            typeof value === \"object\" &&\n            value !== null &&\n            \"$ref\" in value &&\n            typeof value.$ref === \"string\" &&\n            value.$ref.length > 0);\n    }\n    /**\n     * Determines whether the given value is an external JSON reference.\n     *\n     * @param value - The value to inspect\n     * @returns\n     */\n    static isExternal$Ref(value) {\n        return $Ref.is$Ref(value) && value.$ref[0] !== \"#\";\n    }\n    /**\n     * Determines whether the given value is a JSON reference, and whether it is allowed by the options.\n     * For example, if it references an external file, then options.resolve.external must be true.\n     *\n     * @param value - The value to inspect\n     * @param options\n     * @returns\n     */\n    static isAllowed$Ref(value, options) {\n        if (this.is$Ref(value)) {\n            if (value.$ref.substring(0, 2) === \"#/\" || value.$ref === \"#\") {\n                // It's a JSON Pointer reference, which is always allowed\n                return true;\n            }\n            else if (value.$ref[0] !== \"#\" && (!options || options.resolve?.external)) {\n                // It's an external reference, which is allowed by the options\n                return true;\n            }\n        }\n        return undefined;\n    }\n    /**\n     * Determines whether the given value is a JSON reference that \"extends\" its resolved value.\n     * That is, it has extra properties (in addition to \"$ref\"), so rather than simply pointing to\n     * an existing value, this $ref actually creates a NEW value that is a shallow copy of the resolved\n     * value, plus the extra properties.\n     *\n     * @example: {\n       person: {\n         properties: {\n           firstName: { type: string }\n           lastName: { type: string }\n         }\n       }\n       employee: {\n         properties: {\n           $ref: #/person/properties\n           salary: { type: number }\n         }\n       }\n     }\n     *  In this example, \"employee\" is an extended $ref, since it extends \"person\" with an additional\n     *  property (salary).  The result is a NEW value that looks like this:\n     *\n     *  {\n     *    properties: {\n     *      firstName: { type: string }\n     *      lastName: { type: string }\n     *      salary: { type: number }\n     *    }\n     *  }\n     *\n     * @param value - The value to inspect\n     * @returns\n     */\n    static isExtended$Ref(value) {\n        return $Ref.is$Ref(value) && Object.keys(value).length > 1;\n    }\n    /**\n     * Returns the resolved value of a JSON Reference.\n     * If necessary, the resolved value is merged with the JSON Reference to create a new object\n     *\n     * @example: {\n    person: {\n      properties: {\n        firstName: { type: string }\n        lastName: { type: string }\n      }\n    }\n    employee: {\n      properties: {\n        $ref: #/person/properties\n        salary: { type: number }\n      }\n    }\n    } When \"person\" and \"employee\" are merged, you end up with the following object:\n     *\n     *  {\n     *    properties: {\n     *      firstName: { type: string }\n     *      lastName: { type: string }\n     *      salary: { type: number }\n     *    }\n     *  }\n     *\n     * @param $ref - The JSON reference object (the one with the \"$ref\" property)\n     * @param resolvedValue - The resolved value, which can be any type\n     * @returns - Returns the dereferenced value\n     */\n    static dereference($ref, resolvedValue) {\n        if (resolvedValue && typeof resolvedValue === \"object\" && $Ref.isExtended$Ref($ref)) {\n            const merged = {};\n            for (const key of Object.keys($ref)) {\n                if (key !== \"$ref\") {\n                    // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message\n                    merged[key] = $ref[key];\n                }\n            }\n            for (const key of Object.keys(resolvedValue)) {\n                if (!(key in merged)) {\n                    // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message\n                    merged[key] = resolvedValue[key];\n                }\n            }\n            return merged;\n        }\n        else {\n            // Completely replace the original reference with the resolved value\n            return resolvedValue;\n        }\n    }\n}\nexports.default = $Ref;\n", "\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst ono_1 = require(\"@jsdevtools/ono\");\nconst ref_js_1 = __importDefault(require(\"./ref.js\"));\nconst url = __importStar(require(\"./util/url.js\"));\nconst convert_path_to_posix_1 = __importDefault(require(\"./util/convert-path-to-posix\"));\n/**\n * When you call the resolve method, the value that gets passed to the callback function (or Promise) is a $Refs object. This same object is accessible via the parser.$refs property of $RefParser objects.\n *\n * This object is a map of JSON References and their resolved values. It also has several convenient helper methods that make it easy for you to navigate and manipulate the JSON References.\n *\n * See https://apitools.dev/json-schema-ref-parser/docs/refs.html\n */\nclass $Refs {\n    /**\n     * Returns the paths/URLs of all the files in your schema (including the main schema file).\n     *\n     * See https://apitools.dev/json-schema-ref-parser/docs/refs.html#pathstypes\n     *\n     * @param types (optional) Optionally only return certain types of paths (\"file\", \"http\", etc.)\n     */\n    paths(...types) {\n        const paths = getPaths(this._$refs, types.flat());\n        return paths.map((path) => {\n            return (0, convert_path_to_posix_1.default)(path.decoded);\n        });\n    }\n    /**\n     * Returns a map of paths/URLs and their correspond values.\n     *\n     * See https://apitools.dev/json-schema-ref-parser/docs/refs.html#valuestypes\n     *\n     * @param types (optional) Optionally only return values from certain locations (\"file\", \"http\", etc.)\n     */\n    values(...types) {\n        const $refs = this._$refs;\n        const paths = getPaths($refs, types.flat());\n        return paths.reduce((obj, path) => {\n            obj[(0, convert_path_to_posix_1.default)(path.decoded)] = $refs[path.encoded].value;\n            return obj;\n        }, {});\n    }\n    /**\n     * Returns `true` if the given path exists in the schema; otherwise, returns `false`\n     *\n     * See https://apitools.dev/json-schema-ref-parser/docs/refs.html#existsref\n     *\n     * @param $ref The JSON Reference path, optionally with a JSON Pointer in the hash\n     */\n    /**\n     * Determines whether the given JSON reference exists.\n     *\n     * @param path - The path being resolved, optionally with a JSON pointer in the hash\n     * @param [options]\n     * @returns\n     */\n    exists(path, options) {\n        try {\n            this._resolve(path, \"\", options);\n            return true;\n        }\n        catch {\n            return false;\n        }\n    }\n    /**\n     * Resolves the given JSON reference and returns the resolved value.\n     *\n     * @param path - The path being resolved, with a JSON pointer in the hash\n     * @param [options]\n     * @returns - Returns the resolved value\n     */\n    get(path, options) {\n        return this._resolve(path, \"\", options).value;\n    }\n    /**\n     * Sets the value at the given path in the schema. If the property, or any of its parents, don't exist, they will be created.\n     *\n     * @param path The JSON Reference path, optionally with a JSON Pointer in the hash\n     * @param value The value to assign. Can be anything (object, string, number, etc.)\n     */\n    set(path, value) {\n        const absPath = url.resolve(this._root$Ref.path, path);\n        const withoutHash = url.stripHash(absPath);\n        const $ref = this._$refs[withoutHash];\n        if (!$ref) {\n            throw (0, ono_1.ono)(`Error resolving $ref pointer \"${path}\". \\n\"${withoutHash}\" not found.`);\n        }\n        $ref.set(absPath, value);\n    }\n    /**\n     * Returns the specified {@link $Ref} object, or undefined.\n     *\n     * @param path - The path being resolved, optionally with a JSON pointer in the hash\n     * @returns\n     * @protected\n     */\n    _get$Ref(path) {\n        path = url.resolve(this._root$Ref.path, path);\n        const withoutHash = url.stripHash(path);\n        return this._$refs[withoutHash];\n    }\n    /**\n     * Creates a new {@link $Ref} object and adds it to this {@link $Refs} object.\n     *\n     * @param path  - The file path or URL of the referenced file\n     */\n    _add(path) {\n        const withoutHash = url.stripHash(path);\n        const $ref = new ref_js_1.default(this);\n        $ref.path = withoutHash;\n        this._$refs[withoutHash] = $ref;\n        this._root$Ref = this._root$Ref || $ref;\n        return $ref;\n    }\n    /**\n     * Resolves the given JSON reference.\n     *\n     * @param path - The path being resolved, optionally with a JSON pointer in the hash\n     * @param pathFromRoot - The path of `obj` from the schema root\n     * @param [options]\n     * @returns\n     * @protected\n     */\n    _resolve(path, pathFromRoot, options) {\n        const absPath = url.resolve(this._root$Ref.path, path);\n        const withoutHash = url.stripHash(absPath);\n        const $ref = this._$refs[withoutHash];\n        if (!$ref) {\n            throw (0, ono_1.ono)(`Error resolving $ref pointer \"${path}\". \\n\"${withoutHash}\" not found.`);\n        }\n        return $ref.resolve(absPath, options, path, pathFromRoot);\n    }\n    constructor() {\n        /**\n         * A map of paths/urls to {@link $Ref} objects\n         *\n         * @type {object}\n         * @protected\n         */\n        this._$refs = {};\n        /**\n         * Returns the paths of all the files/URLs that are referenced by the JSON schema,\n         * including the schema itself.\n         *\n         * @param [types] - Only return paths of the given types (\"file\", \"http\", etc.)\n         * @returns\n         */\n        /**\n         * Returns the map of JSON references and their resolved values.\n         *\n         * @param [types] - Only return references of the given types (\"file\", \"http\", etc.)\n         * @returns\n         */\n        /**\n         * Returns a POJO (plain old JavaScript object) for serialization as JSON.\n         *\n         * @returns {object}\n         */\n        this.toJSON = this.values;\n        /**\n         * Indicates whether the schema contains any circular references.\n         *\n         * @type {boolean}\n         */\n        this.circular = false;\n        this._$refs = {};\n        // @ts-ignore\n        this._root$Ref = null;\n    }\n}\nexports.default = $Refs;\n/**\n * Returns the encoded and decoded paths keys of the given object.\n *\n * @param $refs - The object whose keys are URL-encoded paths\n * @param [types] - Only return paths of the given types (\"file\", \"http\", etc.)\n * @returns\n */\nfunction getPaths($refs, types) {\n    let paths = Object.keys($refs);\n    // Filter the paths by type\n    types = Array.isArray(types[0]) ? types[0] : Array.prototype.slice.call(types);\n    if (types.length > 0 && types[0]) {\n        paths = paths.filter((key) => {\n            return types.includes($refs[key].pathType);\n        });\n    }\n    // Decode local filesystem paths\n    return paths.map((path) => {\n        return {\n            encoded: path,\n            decoded: $refs[path].pathType === \"file\" ? url.toFileSystemPath(path, true) : path,\n        };\n    });\n}\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.all = all;\nexports.filter = filter;\nexports.sort = sort;\nexports.run = run;\n/**\n * Returns the given plugins as an array, rather than an object map.\n * All other methods in this module expect an array of plugins rather than an object map.\n *\n * @returns\n */\nfunction all(plugins) {\n    return Object.keys(plugins || {})\n        .filter((key) => {\n        return typeof plugins[key] === \"object\";\n    })\n        .map((key) => {\n        plugins[key].name = key;\n        return plugins[key];\n    });\n}\n/**\n * Filters the given plugins, returning only the ones return `true` for the given method.\n */\nfunction filter(plugins, method, file) {\n    return plugins.filter((plugin) => {\n        return !!getResult(plugin, method, file);\n    });\n}\n/**\n * Sorts the given plugins, in place, by their `order` property.\n */\nfunction sort(plugins) {\n    for (const plugin of plugins) {\n        plugin.order = plugin.order || Number.MAX_SAFE_INTEGER;\n    }\n    return plugins.sort((a, b) => {\n        return a.order - b.order;\n    });\n}\n/**\n * Runs the specified method of the given plugins, in order, until one of them returns a successful result.\n * Each method can return a synchronous value, a Promise, or call an error-first callback.\n * If the promise resolves successfully, or the callback is called without an error, then the result\n * is immediately returned and no further plugins are called.\n * If the promise rejects, or the callback is called with an error, then the next plugin is called.\n * If ALL plugins fail, then the last error is thrown.\n */\nasync function run(plugins, method, file, $refs) {\n    let plugin;\n    let lastError;\n    let index = 0;\n    return new Promise((resolve, reject) => {\n        runNextPlugin();\n        function runNextPlugin() {\n            plugin = plugins[index++];\n            if (!plugin) {\n                // There are no more functions, so re-throw the last error\n                return reject(lastError);\n            }\n            try {\n                // console.log('  %s', plugin.name);\n                const result = getResult(plugin, method, file, callback, $refs);\n                if (result && typeof result.then === \"function\") {\n                    // A promise was returned\n                    result.then(onSuccess, onError);\n                }\n                else if (result !== undefined) {\n                    // A synchronous result was returned\n                    onSuccess(result);\n                }\n                else if (index === plugins.length) {\n                    throw new Error(\"No promise has been returned or callback has been called.\");\n                }\n            }\n            catch (e) {\n                onError(e);\n            }\n        }\n        function callback(err, result) {\n            if (err) {\n                onError(err);\n            }\n            else {\n                onSuccess(result);\n            }\n        }\n        function onSuccess(result) {\n            // console.log('    success');\n            resolve({\n                plugin,\n                result,\n            });\n        }\n        function onError(error) {\n            // console.log('    %s', err.message || err);\n            lastError = {\n                plugin,\n                error,\n            };\n            runNextPlugin();\n        }\n    });\n}\n/**\n * Returns the value of the given property.\n * If the property is a function, then the result of the function is returned.\n * If the value is a RegExp, then it will be tested against the file URL.\n * If the value is an array, then it will be compared against the file extension.\n */\nfunction getResult(obj, prop, file, callback, $refs) {\n    const value = obj[prop];\n    if (typeof value === \"function\") {\n        return value.apply(obj, [file, callback, $refs]);\n    }\n    if (!callback) {\n        // The synchronous plugin functions (canParse and canRead)\n        // allow a \"shorthand\" syntax, where the user can match\n        // files by RegExp or by file extension.\n        if (value instanceof RegExp) {\n            return value.test(file.url);\n        }\n        else if (typeof value === \"string\") {\n            return value === file.extension;\n        }\n        else if (Array.isArray(value)) {\n            return value.indexOf(file.extension) !== -1;\n        }\n    }\n    return value;\n}\n", "\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst ono_1 = require(\"@jsdevtools/ono\");\nconst url = __importStar(require(\"./util/url.js\"));\nconst plugins = __importStar(require(\"./util/plugins.js\"));\nconst errors_js_1 = require(\"./util/errors.js\");\n/**\n * Reads and parses the specified file path or URL.\n */\nasync function parse(path, $refs, options) {\n    // Remove the URL fragment, if any\n    const hashIndex = path.indexOf(\"#\");\n    let hash = \"\";\n    if (hashIndex >= 0) {\n        hash = path.substring(hashIndex);\n        // Remove the URL fragment, if any\n        path = path.substring(0, hashIndex);\n    }\n    // Add a new $Ref for this file, even though we don't have the value yet.\n    // This ensures that we don't simultaneously read & parse the same file multiple times\n    const $ref = $refs._add(path);\n    // This \"file object\" will be passed to all resolvers and parsers.\n    const file = {\n        url: path,\n        hash,\n        extension: url.getExtension(path),\n    };\n    // Read the file and then parse the data\n    try {\n        const resolver = await readFile(file, options, $refs);\n        $ref.pathType = resolver.plugin.name;\n        file.data = resolver.result;\n        const parser = await parseFile(file, options, $refs);\n        $ref.value = parser.result;\n        return parser.result;\n    }\n    catch (err) {\n        if ((0, errors_js_1.isHandledError)(err)) {\n            $ref.value = err;\n        }\n        throw err;\n    }\n}\n/**\n * Reads the given file, using the configured resolver plugins\n *\n * @param file           - An object containing information about the referenced file\n * @param file.url       - The full URL of the referenced file\n * @param file.extension - The lowercased file extension (e.g. \".txt\", \".html\", etc.)\n * @param options\n * @param $refs\n * @returns\n * The promise resolves with the raw file contents and the resolver that was used.\n */\nasync function readFile(file, options, $refs) {\n    // console.log('Reading %s', file.url);\n    // Find the resolvers that can read this file\n    let resolvers = plugins.all(options.resolve);\n    resolvers = plugins.filter(resolvers, \"canRead\", file);\n    // Run the resolvers, in order, until one of them succeeds\n    plugins.sort(resolvers);\n    try {\n        const data = await plugins.run(resolvers, \"read\", file, $refs);\n        return data;\n    }\n    catch (err) {\n        if (!err && options.continueOnError) {\n            // No resolver could be matched\n            throw new errors_js_1.UnmatchedResolverError(file.url);\n        }\n        else if (!err || !(\"error\" in err)) {\n            // Throw a generic, friendly error.\n            throw ono_1.ono.syntax(`Unable to resolve $ref pointer \"${file.url}\"`);\n        }\n        // Throw the original error, if it's one of our own (user-friendly) errors.\n        else if (err.error instanceof errors_js_1.ResolverError) {\n            throw err.error;\n        }\n        else {\n            throw new errors_js_1.ResolverError(err, file.url);\n        }\n    }\n}\n/**\n * Parses the given file's contents, using the configured parser plugins.\n *\n * @param file           - An object containing information about the referenced file\n * @param file.url       - The full URL of the referenced file\n * @param file.extension - The lowercased file extension (e.g. \".txt\", \".html\", etc.)\n * @param file.data      - The file contents. This will be whatever data type was returned by the resolver\n * @param options\n * @param $refs\n *\n * @returns\n * The promise resolves with the parsed file contents and the parser that was used.\n */\nasync function parseFile(file, options, $refs) {\n    // Find the parsers that can read this file type.\n    // If none of the parsers are an exact match for this file, then we'll try ALL of them.\n    // This handles situations where the file IS a supported type, just with an unknown extension.\n    const allParsers = plugins.all(options.parse);\n    const filteredParsers = plugins.filter(allParsers, \"canParse\", file);\n    const parsers = filteredParsers.length > 0 ? filteredParsers : allParsers;\n    // Run the parsers, in order, until one of them succeeds\n    plugins.sort(parsers);\n    try {\n        const parser = await plugins.run(parsers, \"parse\", file, $refs);\n        if (!parser.plugin.allowEmpty && isEmpty(parser.result)) {\n            throw ono_1.ono.syntax(`Error parsing \"${file.url}\" as ${parser.plugin.name}. \\nParsed value is empty`);\n        }\n        else {\n            return parser;\n        }\n    }\n    catch (err) {\n        if (!err && options.continueOnError) {\n            // No resolver could be matched\n            throw new errors_js_1.UnmatchedParserError(file.url);\n        }\n        else if (err && err.message && err.message.startsWith(\"Error parsing\")) {\n            throw err;\n        }\n        else if (!err || !(\"error\" in err)) {\n            throw ono_1.ono.syntax(`Unable to parse ${file.url}`);\n        }\n        else if (err.error instanceof errors_js_1.ParserError) {\n            throw err.error;\n        }\n        else {\n            throw new errors_js_1.ParserError(err.error.message, file.url);\n        }\n    }\n}\n/**\n * Determines whether the parsed value is \"empty\".\n *\n * @param value\n * @returns\n */\nfunction isEmpty(value) {\n    return (value === undefined ||\n        (typeof value === \"object\" && Object.keys(value).length === 0) ||\n        (typeof value === \"string\" && value.trim().length === 0) ||\n        (Buffer.isBuffer(value) && value.length === 0));\n}\nexports.default = parse;\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst errors_js_1 = require(\"../util/errors.js\");\nexports.default = {\n    /**\n     * The order that this parser will run, in relation to other parsers.\n     */\n    order: 100,\n    /**\n     * Whether to allow \"empty\" files. This includes zero-byte files, as well as empty JSON objects.\n     */\n    allowEmpty: true,\n    /**\n     * Determines whether this parser can parse a given file reference.\n     * Parsers that match will be tried, in order, until one successfully parses the file.\n     * Parsers that don't match will be skipped, UNLESS none of the parsers match, in which case\n     * every parser will be tried.\n     */\n    canParse: \".json\",\n    /**\n     * Allow JSON files with byte order marks (BOM)\n     */\n    allowBOM: true,\n    /**\n     * Parses the given file as JSON\n     */\n    async parse(file) {\n        let data = file.data;\n        if (Buffer.isBuffer(data)) {\n            data = data.toString();\n        }\n        if (typeof data === \"string\") {\n            if (data.trim().length === 0) {\n                return; // This mirrors the YAML behavior\n            }\n            else {\n                try {\n                    return JSON.parse(data);\n                }\n                catch (e) {\n                    if (this.allowBOM) {\n                        try {\n                            // find the first curly brace\n                            const firstCurlyBrace = data.indexOf(\"{\");\n                            // remove any characters before the first curly brace\n                            data = data.slice(firstCurlyBrace);\n                            return JSON.parse(data);\n                        }\n                        catch (e) {\n                            throw new errors_js_1.ParserError(e.message, file.url);\n                        }\n                    }\n                    throw new errors_js_1.ParserError(e.message, file.url);\n                }\n            }\n        }\n        else {\n            // data is already a JavaScript value (object, array, number, null, NaN, etc.)\n            return data;\n        }\n    },\n};\n", "\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst errors_js_1 = require(\"../util/errors.js\");\nconst js_yaml_1 = __importDefault(require(\"js-yaml\"));\nconst js_yaml_2 = require(\"js-yaml\");\nexports.default = {\n    /**\n     * The order that this parser will run, in relation to other parsers.\n     */\n    order: 200,\n    /**\n     * Whether to allow \"empty\" files. This includes zero-byte files, as well as empty JSON objects.\n     */\n    allowEmpty: true,\n    /**\n     * Determines whether this parser can parse a given file reference.\n     * Parsers that match will be tried, in order, until one successfully parses the file.\n     * Parsers that don't match will be skipped, UNLESS none of the parsers match, in which case\n     * every parser will be tried.\n     */\n    canParse: [\".yaml\", \".yml\", \".json\"], // JSON is valid YAML\n    /**\n     * Parses the given file as YAML\n     *\n     * @param file           - An object containing information about the referenced file\n     * @param file.url       - The full URL of the referenced file\n     * @param file.extension - The lowercased file extension (e.g. \".txt\", \".html\", etc.)\n     * @param file.data      - The file contents. This will be whatever data type was returned by the resolver\n     * @returns\n     */\n    async parse(file) {\n        let data = file.data;\n        if (Buffer.isBuffer(data)) {\n            data = data.toString();\n        }\n        if (typeof data === \"string\") {\n            try {\n                return js_yaml_1.default.load(data, { schema: js_yaml_2.JSON_SCHEMA });\n            }\n            catch (e) {\n                throw new errors_js_1.ParserError(e?.message || \"Parser Error\", file.url);\n            }\n        }\n        else {\n            // data is already a JavaScript value (object, array, number, null, NaN, etc.)\n            return data;\n        }\n    },\n};\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst errors_js_1 = require(\"../util/errors.js\");\nconst TEXT_REGEXP = /\\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;\nexports.default = {\n    /**\n     * The order that this parser will run, in relation to other parsers.\n     */\n    order: 300,\n    /**\n     * Whether to allow \"empty\" files (zero bytes).\n     */\n    allowEmpty: true,\n    /**\n     * The encoding that the text is expected to be in.\n     */\n    encoding: \"utf8\",\n    /**\n     * Determines whether this parser can parse a given file reference.\n     * Parsers that return true will be tried, in order, until one successfully parses the file.\n     * Parsers that return false will be skipped, UNLESS all parsers returned false, in which case\n     * every parser will be tried.\n     */\n    canParse(file) {\n        // Use this parser if the file is a string or Buffer, and has a known text-based extension\n        return (typeof file.data === \"string\" || Buffer.isBuffer(file.data)) && TEXT_REGEXP.test(file.url);\n    },\n    /**\n     * Parses the given file as text\n     */\n    parse(file) {\n        if (typeof file.data === \"string\") {\n            return file.data;\n        }\n        else if (Buffer.isBuffer(file.data)) {\n            return file.data.toString(this.encoding);\n        }\n        else {\n            throw new errors_js_1.ParserError(\"data is not text\", file.url);\n        }\n    },\n};\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst BINARY_REGEXP = /\\.(jpeg|jpg|gif|png|bmp|ico)$/i;\nexports.default = {\n    /**\n     * The order that this parser will run, in relation to other parsers.\n     */\n    order: 400,\n    /**\n     * Whether to allow \"empty\" files (zero bytes).\n     */\n    allowEmpty: true,\n    /**\n     * Determines whether this parser can parse a given file reference.\n     * Parsers that return true will be tried, in order, until one successfully parses the file.\n     * Parsers that return false will be skipped, UNLESS all parsers returned false, in which case\n     * every parser will be tried.\n     */\n    canParse(file) {\n        // Use this parser if the file is a Buffer, and has a known binary extension\n        return Buffer.isBuffer(file.data) && BINARY_REGEXP.test(file.url);\n    },\n    /**\n     * Parses the given data as a Buffer (byte array).\n     */\n    parse(file) {\n        if (Buffer.isBuffer(file.data)) {\n            return file.data;\n        }\n        else {\n            // This will reject if data is anything other than a string or typed array\n            return Buffer.from(file.data);\n        }\n    },\n};\n", "export default {};\n", "\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst fs_1 = __importDefault(require(\"fs\"));\nconst ono_1 = require(\"@jsdevtools/ono\");\nconst url = __importStar(require(\"../util/url.js\"));\nconst errors_js_1 = require(\"../util/errors.js\");\nexports.default = {\n    /**\n     * The order that this resolver will run, in relation to other resolvers.\n     */\n    order: 100,\n    /**\n     * Determines whether this resolver can read a given file reference.\n     * Resolvers that return true will be tried, in order, until one successfully resolves the file.\n     * Resolvers that return false will not be given a chance to resolve the file.\n     */\n    canRead(file) {\n        return url.isFileSystemPath(file.url);\n    },\n    /**\n     * Reads the given file and returns its raw contents as a Buffer.\n     */\n    async read(file) {\n        let path;\n        try {\n            path = url.toFileSystemPath(file.url);\n        }\n        catch (err) {\n            throw new errors_js_1.ResolverError(ono_1.ono.uri(err, `Malformed URI: ${file.url}`), file.url);\n        }\n        try {\n            return await fs_1.default.promises.readFile(path);\n        }\n        catch (err) {\n            throw new errors_js_1.ResolverError((0, ono_1.ono)(err, `Error opening file \"${path}\"`), path);\n        }\n    },\n};\n", "\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst ono_1 = require(\"@jsdevtools/ono\");\nconst url = __importStar(require(\"../util/url.js\"));\nconst errors_js_1 = require(\"../util/errors.js\");\nexports.default = {\n    /**\n     * The order that this resolver will run, in relation to other resolvers.\n     */\n    order: 200,\n    /**\n     * HTTP headers to send when downloading files.\n     *\n     * @example:\n     * {\n     *   \"User-Agent\": \"JSON Schema $Ref Parser\",\n     *   Accept: \"application/json\"\n     * }\n     */\n    headers: null,\n    /**\n     * HTTP request timeout (in milliseconds).\n     */\n    timeout: 60000, // 60 seconds\n    /**\n     * The maximum number of HTTP redirects to follow.\n     * To disable automatic following of redirects, set this to zero.\n     */\n    redirects: 5,\n    /**\n     * The `withCredentials` option of XMLHttpRequest.\n     * Set this to `true` if you're downloading files from a CORS-enabled server that requires authentication\n     */\n    withCredentials: false,\n    /**\n     * Determines whether this resolver can read a given file reference.\n     * Resolvers that return true will be tried in order, until one successfully resolves the file.\n     * Resolvers that return false will not be given a chance to resolve the file.\n     */\n    canRead(file) {\n        return url.isHttp(file.url);\n    },\n    /**\n     * Reads the given URL and returns its raw contents as a Buffer.\n     */\n    read(file) {\n        const u = url.parse(file.url);\n        if (typeof window !== \"undefined\" && !u.protocol) {\n            // Use the protocol of the current page\n            u.protocol = url.parse(location.href).protocol;\n        }\n        return download(u, this);\n    },\n};\n/**\n * Downloads the given file.\n * @returns\n * The promise resolves with the raw downloaded data, or rejects if there is an HTTP error.\n */\nasync function download(u, httpOptions, _redirects) {\n    u = url.parse(u);\n    const redirects = _redirects || [];\n    redirects.push(u.href);\n    try {\n        const res = await get(u, httpOptions);\n        if (res.status >= 400) {\n            throw (0, ono_1.ono)({ status: res.status }, `HTTP ERROR ${res.status}`);\n        }\n        else if (res.status >= 300) {\n            if (!Number.isNaN(httpOptions.redirects) && redirects.length > httpOptions.redirects) {\n                throw new errors_js_1.ResolverError((0, ono_1.ono)({ status: res.status }, `Error downloading ${redirects[0]}. \\nToo many redirects: \\n  ${redirects.join(\" \\n  \")}`));\n            }\n            else if (!(\"location\" in res.headers) || !res.headers.location) {\n                throw (0, ono_1.ono)({ status: res.status }, `HTTP ${res.status} redirect with no location header`);\n            }\n            else {\n                const redirectTo = url.resolve(u.href, res.headers.location);\n                return download(redirectTo, httpOptions, redirects);\n            }\n        }\n        else {\n            if (res.body) {\n                const buf = await res.arrayBuffer();\n                return Buffer.from(buf);\n            }\n            return Buffer.alloc(0);\n        }\n    }\n    catch (err) {\n        throw new errors_js_1.ResolverError((0, ono_1.ono)(err, `Error downloading ${u.href}`), u.href);\n    }\n}\n/**\n * Sends an HTTP GET request.\n * The promise resolves with the HTTP Response object.\n */\nasync function get(u, httpOptions) {\n    let controller;\n    let timeoutId;\n    if (httpOptions.timeout) {\n        controller = new AbortController();\n        timeoutId = setTimeout(() => controller.abort(), httpOptions.timeout);\n    }\n    const response = await fetch(u, {\n        method: \"GET\",\n        headers: httpOptions.headers || {},\n        credentials: httpOptions.withCredentials ? \"include\" : \"same-origin\",\n        signal: controller ? controller.signal : null,\n    });\n    if (timeoutId) {\n        clearTimeout(timeoutId);\n    }\n    return response;\n}\n", "\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getNewOptions = exports.getJsonSchemaRefParserDefaultOptions = void 0;\nconst json_js_1 = __importDefault(require(\"./parsers/json.js\"));\nconst yaml_js_1 = __importDefault(require(\"./parsers/yaml.js\"));\nconst text_js_1 = __importDefault(require(\"./parsers/text.js\"));\nconst binary_js_1 = __importDefault(require(\"./parsers/binary.js\"));\nconst file_js_1 = __importDefault(require(\"./resolvers/file.js\"));\nconst http_js_1 = __importDefault(require(\"./resolvers/http.js\"));\nconst getJsonSchemaRefParserDefaultOptions = () => {\n    const defaults = {\n        /**\n         * Determines how different types of files will be parsed.\n         *\n         * You can add additional parsers of your own, replace an existing one with\n         * your own implementation, or disable any parser by setting it to false.\n         */\n        parse: {\n            json: { ...json_js_1.default },\n            yaml: { ...yaml_js_1.default },\n            text: { ...text_js_1.default },\n            binary: { ...binary_js_1.default },\n        },\n        /**\n         * Determines how JSON References will be resolved.\n         *\n         * You can add additional resolvers of your own, replace an existing one with\n         * your own implementation, or disable any resolver by setting it to false.\n         */\n        resolve: {\n            file: { ...file_js_1.default },\n            http: { ...http_js_1.default },\n            /**\n             * Determines whether external $ref pointers will be resolved.\n             * If this option is disabled, then none of above resolvers will be called.\n             * Instead, external $ref pointers will simply be ignored.\n             *\n             * @type {boolean}\n             */\n            external: true,\n        },\n        /**\n         * By default, JSON Schema $Ref Parser throws the first error it encounters. Setting `continueOnError` to `true`\n         * causes it to keep processing as much as possible and then throw a single error that contains all errors\n         * that were encountered.\n         */\n        continueOnError: false,\n        /**\n         * Determines the types of JSON references that are allowed.\n         */\n        dereference: {\n            /**\n             * Dereference circular (recursive) JSON references?\n             * If false, then a {@link ReferenceError} will be thrown if a circular reference is found.\n             * If \"ignore\", then circular references will not be dereferenced.\n             *\n             * @type {boolean|string}\n             */\n            circular: true,\n            /**\n             * A function, called for each path, which can return true to stop this path and all\n             * subpaths from being dereferenced further. This is useful in schemas where some\n             * subpaths contain literal $ref keys that should not be dereferenced.\n             *\n             * @type {function}\n             */\n            excludedPathMatcher: () => false,\n            referenceResolution: \"relative\",\n        },\n        mutateInputSchema: true,\n    };\n    return defaults;\n};\nexports.getJsonSchemaRefParserDefaultOptions = getJsonSchemaRefParserDefaultOptions;\nconst getNewOptions = (options) => {\n    const newOptions = (0, exports.getJsonSchemaRefParserDefaultOptions)();\n    if (options) {\n        merge(newOptions, options);\n    }\n    return newOptions;\n};\nexports.getNewOptions = getNewOptions;\n/**\n * Merges the properties of the source object into the target object.\n *\n * @param target - The object that we're populating\n * @param source - The options that are being merged\n * @returns\n */\nfunction merge(target, source) {\n    if (isMergeable(source)) {\n        // prevent prototype pollution\n        const keys = Object.keys(source).filter((key) => ![\"__proto__\", \"constructor\", \"prototype\"].includes(key));\n        for (let i = 0; i < keys.length; i++) {\n            const key = keys[i];\n            const sourceSetting = source[key];\n            const targetSetting = target[key];\n            if (isMergeable(sourceSetting)) {\n                // It's a nested object, so merge it recursively\n                target[key] = merge(targetSetting || {}, sourceSetting);\n            }\n            else if (sourceSetting !== undefined) {\n                // It's a scalar value, function, or array. No merging necessary. Just overwrite the target value.\n                target[key] = sourceSetting;\n            }\n        }\n    }\n    return target;\n}\n/**\n * Determines whether the given value can be merged,\n * or if it is a scalar value that should just override the target value.\n *\n * @param val\n * @returns\n */\nfunction isMergeable(val) {\n    return val && typeof val === \"object\" && !Array.isArray(val) && !(val instanceof RegExp) && !(val instanceof Date);\n}\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.normalizeArgs = normalizeArgs;\nconst options_js_1 = require(\"./options.js\");\n/**\n * Normalizes the given arguments, accounting for optional args.\n */\nfunction normalizeArgs(_args) {\n    let path;\n    let schema;\n    let options;\n    let callback;\n    const args = Array.prototype.slice.call(_args);\n    if (typeof args[args.length - 1] === \"function\") {\n        // The last parameter is a callback function\n        callback = args.pop();\n    }\n    if (typeof args[0] === \"string\") {\n        // The first parameter is the path\n        path = args[0];\n        if (typeof args[2] === \"object\") {\n            // The second parameter is the schema, and the third parameter is the options\n            schema = args[1];\n            options = args[2];\n        }\n        else {\n            // The second parameter is the options\n            schema = undefined;\n            options = args[1];\n        }\n    }\n    else {\n        // The first parameter is the schema\n        path = \"\";\n        schema = args[0];\n        options = args[1];\n    }\n    try {\n        options = (0, options_js_1.getNewOptions)(options);\n    }\n    catch (e) {\n        console.error(`JSON Schema Ref Parser: Error normalizing options: ${e}`);\n    }\n    if (!options.mutateInputSchema && typeof schema === \"object\") {\n        // Make a deep clone of the schema, so that we don't alter the original object\n        schema = JSON.parse(JSON.stringify(schema));\n    }\n    return {\n        path,\n        schema,\n        options,\n        callback,\n    };\n}\nexports.default = normalizeArgs;\n", "\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst ref_js_1 = __importDefault(require(\"./ref.js\"));\nconst pointer_js_1 = __importDefault(require(\"./pointer.js\"));\nconst parse_js_1 = __importDefault(require(\"./parse.js\"));\nconst url = __importStar(require(\"./util/url.js\"));\nconst errors_js_1 = require(\"./util/errors.js\");\n/**\n * Crawls the JSON schema, finds all external JSON references, and resolves their values.\n * This method does not mutate the JSON schema. The resolved values are added to {@link $RefParser#$refs}.\n *\n * NOTE: We only care about EXTERNAL references here. INTERNAL references are only relevant when dereferencing.\n *\n * @returns\n * The promise resolves once all JSON references in the schema have been resolved,\n * including nested references that are contained in externally-referenced files.\n */\nfunction resolveExternal(parser, options) {\n    if (!options.resolve?.external) {\n        // Nothing to resolve, so exit early\n        return Promise.resolve();\n    }\n    try {\n        // console.log('Resolving $ref pointers in %s', parser.$refs._root$Ref.path);\n        const promises = crawl(parser.schema, parser.$refs._root$Ref.path + \"#\", parser.$refs, options);\n        return Promise.all(promises);\n    }\n    catch (e) {\n        return Promise.reject(e);\n    }\n}\n/**\n * Recursively crawls the given value, and resolves any external JSON references.\n *\n * @param obj - The value to crawl. If it's not an object or array, it will be ignored.\n * @param path - The full path of `obj`, possibly with a JSON Pointer in the hash\n * @param {boolean} external - Whether `obj` was found in an external document.\n * @param $refs\n * @param options\n * @param seen - Internal.\n *\n * @returns\n * Returns an array of promises. There will be one promise for each JSON reference in `obj`.\n * If `obj` does not contain any JSON references, then the array will be empty.\n * If any of the JSON references point to files that contain additional JSON references,\n * then the corresponding promise will internally reference an array of promises.\n */\nfunction crawl(obj, path, $refs, options, seen, external) {\n    seen || (seen = new Set());\n    let promises = [];\n    if (obj && typeof obj === \"object\" && !ArrayBuffer.isView(obj) && !seen.has(obj)) {\n        seen.add(obj); // Track previously seen objects to avoid infinite recursion\n        if (ref_js_1.default.isExternal$Ref(obj)) {\n            promises.push(resolve$Ref(obj, path, $refs, options));\n        }\n        const keys = Object.keys(obj);\n        for (const key of keys) {\n            const keyPath = pointer_js_1.default.join(path, key);\n            const value = obj[key];\n            promises = promises.concat(crawl(value, keyPath, $refs, options, seen, external));\n        }\n    }\n    return promises;\n}\n/**\n * Resolves the given JSON Reference, and then crawls the resulting value.\n *\n * @param $ref - The JSON Reference to resolve\n * @param path - The full path of `$ref`, possibly with a JSON Pointer in the hash\n * @param $refs\n * @param options\n *\n * @returns\n * The promise resolves once all JSON references in the object have been resolved,\n * including nested references that are contained in externally-referenced files.\n */\nasync function resolve$Ref($ref, path, $refs, options) {\n    const shouldResolveOnCwd = options.dereference?.externalReferenceResolution === \"root\";\n    const resolvedPath = url.resolve(shouldResolveOnCwd ? url.cwd() : path, $ref.$ref);\n    const withoutHash = url.stripHash(resolvedPath);\n    // $ref.$ref = url.relative($refs._root$Ref.path, resolvedPath);\n    // Do we already have this $ref?\n    const ref = $refs._$refs[withoutHash];\n    if (ref) {\n        // We've already parsed this $ref, so use the existing value\n        return Promise.resolve(ref.value);\n    }\n    // Parse the $referenced file/url\n    try {\n        const result = await (0, parse_js_1.default)(resolvedPath, $refs, options);\n        // Crawl the parsed value\n        // console.log('Resolving $ref pointers in %s', withoutHash);\n        const promises = crawl(result, withoutHash + \"#\", $refs, options, new Set(), true);\n        return Promise.all(promises);\n    }\n    catch (err) {\n        if (!options?.continueOnError || !(0, errors_js_1.isHandledError)(err)) {\n            throw err;\n        }\n        if ($refs._$refs[withoutHash]) {\n            err.source = decodeURI(url.stripHash(path));\n            err.path = url.safePointerToPath(url.getHash(path));\n        }\n        return [];\n    }\n}\nexports.default = resolveExternal;\n", "\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst ref_js_1 = __importDefault(require(\"./ref.js\"));\nconst pointer_js_1 = __importDefault(require(\"./pointer.js\"));\nconst url = __importStar(require(\"./util/url.js\"));\n/**\n * Bundles all external JSON references into the main JSON schema, thus resulting in a schema that\n * only has *internal* references, not any *external* references.\n * This method mutates the JSON schema object, adding new references and re-mapping existing ones.\n *\n * @param parser\n * @param options\n */\nfunction bundle(parser, options) {\n    // console.log('Bundling $ref pointers in %s', parser.$refs._root$Ref.path);\n    // Build an inventory of all $ref pointers in the JSON Schema\n    const inventory = [];\n    crawl(parser, \"schema\", parser.$refs._root$Ref.path + \"#\", \"#\", 0, inventory, parser.$refs, options);\n    // Remap all $ref pointers\n    remap(inventory);\n}\n/**\n * Recursively crawls the given value, and inventories all JSON references.\n *\n * @param parent - The object containing the value to crawl. If the value is not an object or array, it will be ignored.\n * @param key - The property key of `parent` to be crawled\n * @param path - The full path of the property being crawled, possibly with a JSON Pointer in the hash\n * @param pathFromRoot - The path of the property being crawled, from the schema root\n * @param indirections\n * @param inventory - An array of already-inventoried $ref pointers\n * @param $refs\n * @param options\n */\nfunction crawl(parent, key, path, pathFromRoot, indirections, inventory, $refs, options) {\n    const obj = key === null ? parent : parent[key];\n    if (obj && typeof obj === \"object\" && !ArrayBuffer.isView(obj)) {\n        if (ref_js_1.default.isAllowed$Ref(obj)) {\n            inventory$Ref(parent, key, path, pathFromRoot, indirections, inventory, $refs, options);\n        }\n        else {\n            // Crawl the object in a specific order that's optimized for bundling.\n            // This is important because it determines how `pathFromRoot` gets built,\n            // which later determines which keys get dereferenced and which ones get remapped\n            const keys = Object.keys(obj).sort((a, b) => {\n                // Most people will expect references to be bundled into the the \"definitions\" property,\n                // so we always crawl that property first, if it exists.\n                if (a === \"definitions\") {\n                    return -1;\n                }\n                else if (b === \"definitions\") {\n                    return 1;\n                }\n                else {\n                    // Otherwise, crawl the keys based on their length.\n                    // This produces the shortest possible bundled references\n                    return a.length - b.length;\n                }\n            });\n            for (const key of keys) {\n                const keyPath = pointer_js_1.default.join(path, key);\n                const keyPathFromRoot = pointer_js_1.default.join(pathFromRoot, key);\n                const value = obj[key];\n                if (ref_js_1.default.isAllowed$Ref(value)) {\n                    inventory$Ref(obj, key, path, keyPathFromRoot, indirections, inventory, $refs, options);\n                }\n                else {\n                    crawl(obj, key, keyPath, keyPathFromRoot, indirections, inventory, $refs, options);\n                }\n            }\n        }\n    }\n}\n/**\n * Inventories the given JSON Reference (i.e. records detailed information about it so we can\n * optimize all $refs in the schema), and then crawls the resolved value.\n *\n * @param $refParent - The object that contains a JSON Reference as one of its keys\n * @param $refKey - The key in `$refParent` that is a JSON Reference\n * @param path - The full path of the JSON Reference at `$refKey`, possibly with a JSON Pointer in the hash\n * @param indirections - unknown\n * @param pathFromRoot - The path of the JSON Reference at `$refKey`, from the schema root\n * @param inventory - An array of already-inventoried $ref pointers\n * @param $refs\n * @param options\n */\nfunction inventory$Ref($refParent, $refKey, path, pathFromRoot, indirections, inventory, $refs, options) {\n    const $ref = $refKey === null ? $refParent : $refParent[$refKey];\n    const $refPath = url.resolve(path, $ref.$ref);\n    const pointer = $refs._resolve($refPath, pathFromRoot, options);\n    if (pointer === null) {\n        return;\n    }\n    const parsed = pointer_js_1.default.parse(pathFromRoot);\n    const depth = parsed.length;\n    const file = url.stripHash(pointer.path);\n    const hash = url.getHash(pointer.path);\n    const external = file !== $refs._root$Ref.path;\n    const extended = ref_js_1.default.isExtended$Ref($ref);\n    indirections += pointer.indirections;\n    const existingEntry = findInInventory(inventory, $refParent, $refKey);\n    if (existingEntry) {\n        // This $Ref has already been inventoried, so we don't need to process it again\n        if (depth < existingEntry.depth || indirections < existingEntry.indirections) {\n            removeFromInventory(inventory, existingEntry);\n        }\n        else {\n            return;\n        }\n    }\n    inventory.push({\n        $ref, // The JSON Reference (e.g. {$ref: string})\n        parent: $refParent, // The object that contains this $ref pointer\n        key: $refKey, // The key in `parent` that is the $ref pointer\n        pathFromRoot, // The path to the $ref pointer, from the JSON Schema root\n        depth, // How far from the JSON Schema root is this $ref pointer?\n        file, // The file that the $ref pointer resolves to\n        hash, // The hash within `file` that the $ref pointer resolves to\n        value: pointer.value, // The resolved value of the $ref pointer\n        circular: pointer.circular, // Is this $ref pointer DIRECTLY circular? (i.e. it references itself)\n        extended, // Does this $ref extend its resolved value? (i.e. it has extra properties, in addition to \"$ref\")\n        external, // Does this $ref pointer point to a file other than the main JSON Schema file?\n        indirections, // The number of indirect references that were traversed to resolve the value\n    });\n    // Recursively crawl the resolved value\n    if (!existingEntry || external) {\n        crawl(pointer.value, null, pointer.path, pathFromRoot, indirections + 1, inventory, $refs, options);\n    }\n}\n/**\n * Re-maps every $ref pointer, so that they're all relative to the root of the JSON Schema.\n * Each referenced value is dereferenced EXACTLY ONCE.  All subsequent references to the same\n * value are re-mapped to point to the first reference.\n *\n * @example: {\n *    first: { $ref: somefile.json#/some/part },\n *    second: { $ref: somefile.json#/another/part },\n *    third: { $ref: somefile.json },\n *    fourth: { $ref: somefile.json#/some/part/sub/part }\n *  }\n *\n * In this example, there are four references to the same file, but since the third reference points\n * to the ENTIRE file, that's the only one we need to dereference.  The other three can just be\n * remapped to point inside the third one.\n *\n * On the other hand, if the third reference DIDN'T exist, then the first and second would both need\n * to be dereferenced, since they point to different parts of the file. The fourth reference does NOT\n * need to be dereferenced, because it can be remapped to point inside the first one.\n *\n * @param inventory\n */\nfunction remap(inventory) {\n    // Group & sort all the $ref pointers, so they're in the order that we need to dereference/remap them\n    inventory.sort((a, b) => {\n        if (a.file !== b.file) {\n            // Group all the $refs that point to the same file\n            return a.file < b.file ? -1 : +1;\n        }\n        else if (a.hash !== b.hash) {\n            // Group all the $refs that point to the same part of the file\n            return a.hash < b.hash ? -1 : +1;\n        }\n        else if (a.circular !== b.circular) {\n            // If the $ref points to itself, then sort it higher than other $refs that point to this $ref\n            return a.circular ? -1 : +1;\n        }\n        else if (a.extended !== b.extended) {\n            // If the $ref extends the resolved value, then sort it lower than other $refs that don't extend the value\n            return a.extended ? +1 : -1;\n        }\n        else if (a.indirections !== b.indirections) {\n            // Sort direct references higher than indirect references\n            return a.indirections - b.indirections;\n        }\n        else if (a.depth !== b.depth) {\n            // Sort $refs by how close they are to the JSON Schema root\n            return a.depth - b.depth;\n        }\n        else {\n            // Determine how far each $ref is from the \"definitions\" property.\n            // Most people will expect references to be bundled into the the \"definitions\" property if possible.\n            const aDefinitionsIndex = a.pathFromRoot.lastIndexOf(\"/definitions\");\n            const bDefinitionsIndex = b.pathFromRoot.lastIndexOf(\"/definitions\");\n            if (aDefinitionsIndex !== bDefinitionsIndex) {\n                // Give higher priority to the $ref that's closer to the \"definitions\" property\n                return bDefinitionsIndex - aDefinitionsIndex;\n            }\n            else {\n                // All else is equal, so use the shorter path, which will produce the shortest possible reference\n                return a.pathFromRoot.length - b.pathFromRoot.length;\n            }\n        }\n    });\n    let file, hash, pathFromRoot;\n    for (const entry of inventory) {\n        // console.log('Re-mapping $ref pointer \"%s\" at %s', entry.$ref.$ref, entry.pathFromRoot);\n        if (!entry.external) {\n            // This $ref already resolves to the main JSON Schema file\n            entry.$ref.$ref = entry.hash;\n        }\n        else if (entry.file === file && entry.hash === hash) {\n            // This $ref points to the same value as the prevous $ref, so remap it to the same path\n            entry.$ref.$ref = pathFromRoot;\n        }\n        else if (entry.file === file && entry.hash.indexOf(hash + \"/\") === 0) {\n            // This $ref points to a sub-value of the prevous $ref, so remap it beneath that path\n            entry.$ref.$ref = pointer_js_1.default.join(pathFromRoot, pointer_js_1.default.parse(entry.hash.replace(hash, \"#\")));\n        }\n        else {\n            // We've moved to a new file or new hash\n            file = entry.file;\n            hash = entry.hash;\n            pathFromRoot = entry.pathFromRoot;\n            // This is the first $ref to point to this value, so dereference the value.\n            // Any other $refs that point to the same value will point to this $ref instead\n            entry.$ref = entry.parent[entry.key] = ref_js_1.default.dereference(entry.$ref, entry.value);\n            if (entry.circular) {\n                // This $ref points to itself\n                entry.$ref.$ref = entry.pathFromRoot;\n            }\n        }\n    }\n    // we want to ensure that any $refs that point to another $ref are remapped to point to the final value\n    // let hadChange = true;\n    // while (hadChange) {\n    //   hadChange = false;\n    //   for (const entry of inventory) {\n    //     if (entry.$ref && typeof entry.$ref === \"object\" && \"$ref\" in entry.$ref) {\n    //       const resolved = inventory.find((e: InventoryEntry) => e.pathFromRoot === entry.$ref.$ref);\n    //       if (resolved) {\n    //         const resolvedPointsToAnotherRef =\n    //           resolved.$ref && typeof resolved.$ref === \"object\" && \"$ref\" in resolved.$ref;\n    //         if (resolvedPointsToAnotherRef && entry.$ref.$ref !== resolved.$ref.$ref) {\n    //           // console.log('Re-mapping $ref pointer \"%s\" at %s', entry.$ref.$ref, entry.pathFromRoot);\n    //           entry.$ref.$ref = resolved.$ref.$ref;\n    //           hadChange = true;\n    //         }\n    //       }\n    //     }\n    //   }\n    // }\n}\n/**\n * TODO\n */\nfunction findInInventory(inventory, $refParent, $refKey) {\n    for (const existingEntry of inventory) {\n        if (existingEntry && existingEntry.parent === $refParent && existingEntry.key === $refKey) {\n            return existingEntry;\n        }\n    }\n    return undefined;\n}\nfunction removeFromInventory(inventory, entry) {\n    const index = inventory.indexOf(entry);\n    inventory.splice(index, 1);\n}\nexports.default = bundle;\n", "\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst ref_js_1 = __importDefault(require(\"./ref.js\"));\nconst pointer_js_1 = __importDefault(require(\"./pointer.js\"));\nconst ono_1 = require(\"@jsdevtools/ono\");\nconst url = __importStar(require(\"./util/url.js\"));\nconst errors_1 = require(\"./util/errors\");\nexports.default = dereference;\n/**\n * Crawls the JSON schema, finds all JSON references, and dereferences them.\n * This method mutates the JSON schema object, replacing JSON references with their resolved value.\n *\n * @param parser\n * @param options\n */\nfunction dereference(parser, options) {\n    const start = Date.now();\n    // console.log('Dereferencing $ref pointers in %s', parser.$refs._root$Ref.path);\n    const dereferenced = crawl(parser.schema, parser.$refs._root$Ref.path, \"#\", new Set(), new Set(), new Map(), parser.$refs, options, start);\n    parser.$refs.circular = dereferenced.circular;\n    parser.schema = dereferenced.value;\n}\n/**\n * Recursively crawls the given value, and dereferences any JSON references.\n *\n * @param obj - The value to crawl. If it's not an object or array, it will be ignored.\n * @param path - The full path of `obj`, possibly with a JSON Pointer in the hash\n * @param pathFromRoot - The path of `obj` from the schema root\n * @param parents - An array of the parent objects that have already been dereferenced\n * @param processedObjects - An array of all the objects that have already been processed\n * @param dereferencedCache - An map of all the dereferenced objects\n * @param $refs\n * @param options\n * @param startTime - The time when the dereferencing started\n * @returns\n */\nfunction crawl(obj, path, pathFromRoot, parents, processedObjects, dereferencedCache, $refs, options, startTime) {\n    let dereferenced;\n    const result = {\n        value: obj,\n        circular: false,\n    };\n    if (options && options.timeoutMs) {\n        if (Date.now() - startTime > options.timeoutMs) {\n            throw new errors_1.TimeoutError(options.timeoutMs);\n        }\n    }\n    const derefOptions = (options.dereference || {});\n    const isExcludedPath = derefOptions.excludedPathMatcher || (() => false);\n    if (derefOptions?.circular === \"ignore\" || !processedObjects.has(obj)) {\n        if (obj && typeof obj === \"object\" && !ArrayBuffer.isView(obj) && !isExcludedPath(pathFromRoot)) {\n            parents.add(obj);\n            processedObjects.add(obj);\n            if (ref_js_1.default.isAllowed$Ref(obj, options)) {\n                dereferenced = dereference$Ref(obj, path, pathFromRoot, parents, processedObjects, dereferencedCache, $refs, options, startTime);\n                result.circular = dereferenced.circular;\n                result.value = dereferenced.value;\n            }\n            else {\n                for (const key of Object.keys(obj)) {\n                    const keyPath = pointer_js_1.default.join(path, key);\n                    const keyPathFromRoot = pointer_js_1.default.join(pathFromRoot, key);\n                    if (isExcludedPath(keyPathFromRoot)) {\n                        continue;\n                    }\n                    const value = obj[key];\n                    let circular = false;\n                    if (ref_js_1.default.isAllowed$Ref(value, options)) {\n                        dereferenced = dereference$Ref(value, keyPath, keyPathFromRoot, parents, processedObjects, dereferencedCache, $refs, options, startTime);\n                        circular = dereferenced.circular;\n                        // Avoid pointless mutations; breaks frozen objects to no profit\n                        if (obj[key] !== dereferenced.value) {\n                            obj[key] = dereferenced.value;\n                            derefOptions?.onDereference?.(value.$ref, obj[key], obj, key);\n                        }\n                    }\n                    else {\n                        if (!parents.has(value)) {\n                            dereferenced = crawl(value, keyPath, keyPathFromRoot, parents, processedObjects, dereferencedCache, $refs, options, startTime);\n                            circular = dereferenced.circular;\n                            // Avoid pointless mutations; breaks frozen objects to no profit\n                            if (obj[key] !== dereferenced.value) {\n                                obj[key] = dereferenced.value;\n                            }\n                        }\n                        else {\n                            circular = foundCircularReference(keyPath, $refs, options);\n                        }\n                    }\n                    // Set the \"isCircular\" flag if this or any other property is circular\n                    result.circular = result.circular || circular;\n                }\n            }\n            parents.delete(obj);\n        }\n    }\n    return result;\n}\n/**\n * Dereferences the given JSON Reference, and then crawls the resulting value.\n *\n * @param $ref - The JSON Reference to resolve\n * @param path - The full path of `$ref`, possibly with a JSON Pointer in the hash\n * @param pathFromRoot - The path of `$ref` from the schema root\n * @param parents - An array of the parent objects that have already been dereferenced\n * @param processedObjects - An array of all the objects that have already been dereferenced\n * @param dereferencedCache - An map of all the dereferenced objects\n * @param $refs\n * @param options\n * @returns\n */\nfunction dereference$Ref($ref, path, pathFromRoot, parents, processedObjects, dereferencedCache, $refs, options, startTime) {\n    const isExternalRef = ref_js_1.default.isExternal$Ref($ref);\n    const shouldResolveOnCwd = isExternalRef && options?.dereference?.externalReferenceResolution === \"root\";\n    const $refPath = url.resolve(shouldResolveOnCwd ? url.cwd() : path, $ref.$ref);\n    const cache = dereferencedCache.get($refPath);\n    if (cache && !cache.circular) {\n        const refKeys = Object.keys($ref);\n        if (refKeys.length > 1) {\n            const extraKeys = {};\n            for (const key of refKeys) {\n                if (key !== \"$ref\" && !(key in cache.value)) {\n                    // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message\n                    extraKeys[key] = $ref[key];\n                }\n            }\n            return {\n                circular: cache.circular,\n                value: Object.assign({}, cache.value, extraKeys),\n            };\n        }\n        return cache;\n    }\n    const pointer = $refs._resolve($refPath, path, options);\n    if (pointer === null) {\n        return {\n            circular: false,\n            value: null,\n        };\n    }\n    // Check for circular references\n    const directCircular = pointer.circular;\n    let circular = directCircular || parents.has(pointer.value);\n    if (circular) {\n        foundCircularReference(path, $refs, options);\n    }\n    // Dereference the JSON reference\n    let dereferencedValue = ref_js_1.default.dereference($ref, pointer.value);\n    // Crawl the dereferenced value (unless it's circular)\n    if (!circular) {\n        // Determine if the dereferenced value is circular\n        const dereferenced = crawl(dereferencedValue, pointer.path, pathFromRoot, parents, processedObjects, dereferencedCache, $refs, options, startTime);\n        circular = dereferenced.circular;\n        dereferencedValue = dereferenced.value;\n    }\n    if (circular && !directCircular && options.dereference?.circular === \"ignore\") {\n        // The user has chosen to \"ignore\" circular references, so don't change the value\n        dereferencedValue = $ref;\n    }\n    if (directCircular) {\n        // The pointer is a DIRECT circular reference (i.e. it references itself).\n        // So replace the $ref path with the absolute path from the JSON Schema root\n        dereferencedValue.$ref = pathFromRoot;\n    }\n    const dereferencedObject = {\n        circular,\n        value: dereferencedValue,\n    };\n    // only cache if no extra properties than $ref\n    if (Object.keys($ref).length === 1) {\n        dereferencedCache.set($refPath, dereferencedObject);\n    }\n    return dereferencedObject;\n}\n/**\n * Called when a circular reference is found.\n * It sets the {@link $Refs#circular} flag, and throws an error if options.dereference.circular is false.\n *\n * @param keyPath - The JSON Reference path of the circular reference\n * @param $refs\n * @param options\n * @returns - always returns true, to indicate that a circular reference was found\n */\nfunction foundCircularReference(keyPath, $refs, options) {\n    $refs.circular = true;\n    if (!options.dereference.circular) {\n        throw ono_1.ono.reference(`Circular $ref pointer found at ${keyPath}`);\n    }\n    return true;\n}\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction makeNext() {\n    if (typeof process === \"object\" && typeof process.nextTick === \"function\") {\n        return process.nextTick;\n    }\n    else if (typeof setImmediate === \"function\") {\n        return setImmediate;\n    }\n    else {\n        return function next(f) {\n            setTimeout(f, 0);\n        };\n    }\n}\nexports.default = makeNext();\n", "\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = maybe;\nconst next_js_1 = __importDefault(require(\"./next.js\"));\nfunction maybe(cb, promise) {\n    if (cb) {\n        promise.then(function (result) {\n            (0, next_js_1.default)(function () {\n                cb(null, result);\n            });\n        }, function (err) {\n            (0, next_js_1.default)(function () {\n                cb(err);\n            });\n        });\n        return undefined;\n    }\n    else {\n        return promise;\n    }\n}\n", "\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getJsonSchemaRefParserDefaultOptions = exports.jsonSchemaParserNormalizeArgs = exports.dereferenceInternal = exports.JSONParserErrorGroup = exports.isHandledError = exports.UnmatchedParserError = exports.ParserError = exports.ResolverError = exports.MissingPointerError = exports.InvalidPointerError = exports.JSONParserError = exports.UnmatchedResolverError = exports.dereference = exports.bundle = exports.resolve = exports.parse = exports.$RefParser = void 0;\nconst refs_js_1 = __importDefault(require(\"./refs.js\"));\nconst parse_js_1 = __importDefault(require(\"./parse.js\"));\nconst normalize_args_js_1 = __importDefault(require(\"./normalize-args.js\"));\nexports.jsonSchemaParserNormalizeArgs = normalize_args_js_1.default;\nconst resolve_external_js_1 = __importDefault(require(\"./resolve-external.js\"));\nconst bundle_js_1 = __importDefault(require(\"./bundle.js\"));\nconst dereference_js_1 = __importDefault(require(\"./dereference.js\"));\nexports.dereferenceInternal = dereference_js_1.default;\nconst url = __importStar(require(\"./util/url.js\"));\nconst errors_js_1 = require(\"./util/errors.js\");\nObject.defineProperty(exports, \"JSONParserError\", { enumerable: true, get: function () { return errors_js_1.JSONParserError; } });\nObject.defineProperty(exports, \"InvalidPointerError\", { enumerable: true, get: function () { return errors_js_1.InvalidPointerError; } });\nObject.defineProperty(exports, \"MissingPointerError\", { enumerable: true, get: function () { return errors_js_1.MissingPointerError; } });\nObject.defineProperty(exports, \"ResolverError\", { enumerable: true, get: function () { return errors_js_1.ResolverError; } });\nObject.defineProperty(exports, \"ParserError\", { enumerable: true, get: function () { return errors_js_1.ParserError; } });\nObject.defineProperty(exports, \"UnmatchedParserError\", { enumerable: true, get: function () { return errors_js_1.UnmatchedParserError; } });\nObject.defineProperty(exports, \"UnmatchedResolverError\", { enumerable: true, get: function () { return errors_js_1.UnmatchedResolverError; } });\nObject.defineProperty(exports, \"isHandledError\", { enumerable: true, get: function () { return errors_js_1.isHandledError; } });\nObject.defineProperty(exports, \"JSONParserErrorGroup\", { enumerable: true, get: function () { return errors_js_1.JSONParserErrorGroup; } });\nconst ono_1 = require(\"@jsdevtools/ono\");\nconst maybe_js_1 = __importDefault(require(\"./util/maybe.js\"));\nconst options_js_1 = require(\"./options.js\");\nObject.defineProperty(exports, \"getJsonSchemaRefParserDefaultOptions\", { enumerable: true, get: function () { return options_js_1.getJsonSchemaRefParserDefaultOptions; } });\n/**\n * This class parses a JSON schema, builds a map of its JSON references and their resolved values,\n * and provides methods for traversing, manipulating, and dereferencing those references.\n *\n * @class\n */\nclass $RefParser {\n    constructor() {\n        /**\n         * The parsed (and possibly dereferenced) JSON schema object\n         *\n         * @type {object}\n         * @readonly\n         */\n        this.schema = null;\n        /**\n         * The resolved JSON references\n         *\n         * @type {$Refs}\n         * @readonly\n         */\n        this.$refs = new refs_js_1.default();\n    }\n    async parse() {\n        const args = (0, normalize_args_js_1.default)(arguments);\n        let promise;\n        if (!args.path && !args.schema) {\n            const err = (0, ono_1.ono)(`Expected a file path, URL, or object. Got ${args.path || args.schema}`);\n            return (0, maybe_js_1.default)(args.callback, Promise.reject(err));\n        }\n        // Reset everything\n        this.schema = null;\n        this.$refs = new refs_js_1.default();\n        // If the path is a filesystem path, then convert it to a URL.\n        // NOTE: According to the JSON Reference spec, these should already be URLs,\n        // but, in practice, many people use local filesystem paths instead.\n        // So we're being generous here and doing the conversion automatically.\n        // This is not intended to be a 100% bulletproof solution.\n        // If it doesn't work for your use-case, then use a URL instead.\n        let pathType = \"http\";\n        if (url.isFileSystemPath(args.path)) {\n            args.path = url.fromFileSystemPath(args.path);\n            pathType = \"file\";\n        }\n        else if (!args.path && args.schema && \"$id\" in args.schema && args.schema.$id) {\n            // when schema id has defined an URL should use that hostname to request the references,\n            // instead of using the current page URL\n            const params = url.parse(args.schema.$id);\n            const port = params.protocol === \"https:\" ? 443 : 80;\n            args.path = `${params.protocol}//${params.hostname}:${port}`;\n        }\n        // Resolve the absolute path of the schema\n        args.path = url.resolve(url.cwd(), args.path);\n        if (args.schema && typeof args.schema === \"object\") {\n            // A schema object was passed-in.\n            // So immediately add a new $Ref with the schema object as its value\n            const $ref = this.$refs._add(args.path);\n            $ref.value = args.schema;\n            $ref.pathType = pathType;\n            promise = Promise.resolve(args.schema);\n        }\n        else {\n            // Parse the schema file/url\n            promise = (0, parse_js_1.default)(args.path, this.$refs, args.options);\n        }\n        try {\n            const result = await promise;\n            if (result !== null && typeof result === \"object\" && !Buffer.isBuffer(result)) {\n                this.schema = result;\n                return (0, maybe_js_1.default)(args.callback, Promise.resolve(this.schema));\n            }\n            else if (args.options.continueOnError) {\n                this.schema = null; // it's already set to null at line 79, but let's set it again for the sake of readability\n                return (0, maybe_js_1.default)(args.callback, Promise.resolve(this.schema));\n            }\n            else {\n                throw ono_1.ono.syntax(`\"${this.$refs._root$Ref.path || result}\" is not a valid JSON Schema`);\n            }\n        }\n        catch (err) {\n            if (!args.options.continueOnError || !(0, errors_js_1.isHandledError)(err)) {\n                return (0, maybe_js_1.default)(args.callback, Promise.reject(err));\n            }\n            if (this.$refs._$refs[url.stripHash(args.path)]) {\n                this.$refs._$refs[url.stripHash(args.path)].addError(err);\n            }\n            return (0, maybe_js_1.default)(args.callback, Promise.resolve(null));\n        }\n    }\n    static parse() {\n        const parser = new $RefParser();\n        return parser.parse.apply(parser, arguments);\n    }\n    async resolve() {\n        const args = (0, normalize_args_js_1.default)(arguments);\n        try {\n            await this.parse(args.path, args.schema, args.options);\n            await (0, resolve_external_js_1.default)(this, args.options);\n            finalize(this);\n            return (0, maybe_js_1.default)(args.callback, Promise.resolve(this.$refs));\n        }\n        catch (err) {\n            return (0, maybe_js_1.default)(args.callback, Promise.reject(err));\n        }\n    }\n    static resolve() {\n        const instance = new $RefParser();\n        return instance.resolve.apply(instance, arguments);\n    }\n    static bundle() {\n        const instance = new $RefParser();\n        return instance.bundle.apply(instance, arguments);\n    }\n    async bundle() {\n        const args = (0, normalize_args_js_1.default)(arguments);\n        try {\n            await this.resolve(args.path, args.schema, args.options);\n            (0, bundle_js_1.default)(this, args.options);\n            finalize(this);\n            return (0, maybe_js_1.default)(args.callback, Promise.resolve(this.schema));\n        }\n        catch (err) {\n            return (0, maybe_js_1.default)(args.callback, Promise.reject(err));\n        }\n    }\n    static dereference() {\n        const instance = new $RefParser();\n        return instance.dereference.apply(instance, arguments);\n    }\n    async dereference() {\n        const args = (0, normalize_args_js_1.default)(arguments);\n        try {\n            await this.resolve(args.path, args.schema, args.options);\n            (0, dereference_js_1.default)(this, args.options);\n            finalize(this);\n            return (0, maybe_js_1.default)(args.callback, Promise.resolve(this.schema));\n        }\n        catch (err) {\n            return (0, maybe_js_1.default)(args.callback, Promise.reject(err));\n        }\n    }\n}\nexports.$RefParser = $RefParser;\nexports.default = $RefParser;\nfunction finalize(parser) {\n    const errors = errors_js_1.JSONParserErrorGroup.getParserErrors(parser);\n    if (errors.length > 0) {\n        throw new errors_js_1.JSONParserErrorGroup(parser);\n    }\n}\nexports.parse = $RefParser.parse;\nexports.resolve = $RefParser.resolve;\nexports.bundle = $RefParser.bundle;\nexports.dereference = $RefParser.dereference;\n", "\"use strict\";\n\nconst { getJsonSchemaRefParserDefaultOptions } = require(\"@apidevtools/json-schema-ref-parser\");\nconst schemaValidator = require(\"./validators/schema\");\nconst specValidator = require(\"./validators/spec\");\n\nmodule.exports = ParserOptions;\n\n\n\n/**\n * Merges the properties of the source object into the target object.\n *\n * @param target - The object that we're populating\n * @param source - The options that are being merged\n * @returns\n */\nfunction merge (target, source) {\n  if (isMergeable(source)) {\n    // prevent prototype pollution\n    const keys = Object.keys(source).filter((key) => ![\"__proto__\", \"constructor\", \"prototype\"].includes(key));\n    for (let i = 0; i < keys.length; i++) {\n      const key = keys[i];\n      const sourceSetting = source[key];\n      const targetSetting = target[key];\n\n      if (isMergeable(sourceSetting)) {\n        // It's a nested object, so merge it recursively\n        target[key] = merge(targetSetting || {}, sourceSetting);\n      }\n      else if (sourceSetting !== undefined) {\n        // It's a scalar value, function, or array. No merging necessary. Just overwrite the target value.\n        target[key] = sourceSetting;\n      }\n    }\n  }\n  return target;\n}\n/**\n * Determines whether the given value can be merged,\n * or if it is a scalar value that should just override the target value.\n *\n * @param val\n * @returns\n */\nfunction isMergeable (val) {\n  return val && typeof val === \"object\" && !Array.isArray(val) && !(val instanceof RegExp) && !(val instanceof Date);\n}\n\n/**\n * Options that determine how Swagger APIs are parsed, resolved, dereferenced, and validated.\n *\n * @param {object|ParserOptions} [_options] - Overridden options\n * @class\n * @augments $RefParserOptions\n */\nfunction ParserOptions (_options) {\n  const defaultOptions = getJsonSchemaRefParserDefaultOptions();\n  const options = merge(defaultOptions, ParserOptions.defaults);\n  return merge(options, _options);\n}\n\nParserOptions.defaults = {\n  /**\n   * Determines how the API definition will be validated.\n   *\n   * You can add additional validators of your own, replace an existing one with\n   * your own implemenation, or disable any validator by setting it to false.\n   */\n  validate: {\n    schema: schemaValidator,\n    spec: specValidator,\n  },\n};\n", "'use strict'\n\nfunction makeNext () {\n  if (typeof process === 'object' && typeof process.nextTick === 'function') {\n    return process.nextTick\n  } else if (typeof setImmediate === 'function') {\n    return setImmediate\n  } else {\n    return function next (f) {\n      setTimeout(f, 0)\n    }\n  }\n}\n\nmodule.exports = makeNext()\n", "\"use strict\"\n\nvar next = require('./next.js')\n\nmodule.exports = function maybe (cb, promise) {\n  if (cb) {\n    promise\n      .then(function (result) {\n        next(function () { cb(null, result) })\n      }, function (err) {\n        next(function () { cb(err) })\n      })\n    return undefined\n  }\n  else {\n    return promise\n  }\n}\n", "/* eslint-disable no-unused-vars */\n\"use strict\";\n\nconst validateSchema = require(\"./validators/schema\");\nconst validateSpec = require(\"./validators/spec\");\nconst { jsonSchemaParserNormalizeArgs: normalizeArgs } = require(\"@apidevtools/json-schema-ref-parser\");\nconst util = require(\"./util\");\nconst Options = require(\"./options\");\nconst maybe = require(\"call-me-maybe\");\nconst { ono } = require(\"@jsdevtools/ono\");\nconst { $RefParser } = require(\"@apidevtools/json-schema-ref-parser\");\nconst { dereferenceInternal: dereference } = require(\"@apidevtools/json-schema-ref-parser\");\n\nconst supported31Versions = [\"3.1.0\", \"3.1.1\"];\nconst supported30Versions = [\"3.0.0\", \"3.0.1\", \"3.0.2\", \"3.0.3\", \"3.0.4\"];\nconst supportedVersions = [...supported31Versions, ...supported30Versions];\n\n/**\n * This class parses a Swagger 2.0 or 3.0 API, resolves its JSON references and their resolved values,\n * and provides methods for traversing, dereferencing, and validating the API.\n *\n * @class\n * @augments $RefParser\n */\nclass SwaggerParser extends $RefParser {\n\n  /**\n   * Parses the given Swagger API.\n   * This method does not resolve any JSON references.\n   * It just reads a single file in JSON or YAML format, and parse it as a JavaScript object.\n   *\n   * @param {string} [path] - The file path or URL of the JSON schema\n   * @param {object} [api] - The Swagger API object. This object will be used instead of reading from `path`.\n   * @param {ParserOptions} [options] - Options that determine how the API is parsed\n   * @param {Function} [callback] - An error-first callback. The second parameter is the parsed API object.\n   * @returns {Promise} - The returned promise resolves with the parsed API object.\n   */\n  async parse (path, api, options, callback) {\n    let args = normalizeArgs(arguments);\n    args.options = new Options(args.options);\n\n    try {\n      let schema = await super.parse(args.path, args.schema, args.options);\n\n      if (schema.swagger) {\n        // Verify that the parsed object is a Swagger API\n        if (schema.swagger === undefined || schema.info === undefined || schema.paths === undefined) {\n          throw ono.syntax(`${args.path || args.schema} is not a valid Swagger API definition`);\n        }\n        else if (typeof schema.swagger === \"number\") {\n          // This is a very common mistake, so give a helpful error message\n          throw ono.syntax('Swagger version number must be a string (e.g. \"2.0\") not a number.');\n        }\n        else if (typeof schema.info.version === \"number\") {\n          // This is a very common mistake, so give a helpful error message\n          throw ono.syntax('API version number must be a string (e.g. \"1.0.0\") not a number.');\n        }\n        else if (schema.swagger !== \"2.0\") {\n          throw ono.syntax(`Unrecognized Swagger version: ${schema.swagger}. Expected 2.0`);\n        }\n      }\n      else {\n        // Verify that the parsed object is a Openapi API\n        if (schema.openapi === undefined || schema.info === undefined) {\n          throw ono.syntax(`${args.path || args.schema} is not a valid Openapi API definition`);\n        }\n        else if (schema.paths === undefined) {\n          if (supported31Versions.indexOf(schema.openapi) !== -1) {\n            if (schema.webhooks === undefined) {\n              throw ono.syntax(`${args.path || args.schema} is not a valid Openapi API definition`);\n            }\n          }\n          else {\n            throw ono.syntax(`${args.path || args.schema} is not a valid Openapi API definition`);\n          }\n        }\n        else if (typeof schema.openapi === \"number\") {\n          // This is a very common mistake, so give a helpful error message\n          throw ono.syntax('Openapi version number must be a string (e.g. \"3.0.0\") not a number.');\n        }\n        else if (typeof schema.info.version === \"number\") {\n          // This is a very common mistake, so give a helpful error message\n          throw ono.syntax('API version number must be a string (e.g. \"1.0.0\") not a number.');\n        }\n        else if (supportedVersions.indexOf(schema.openapi) === -1) {\n          throw ono.syntax(\n            `Unsupported OpenAPI version: ${schema.openapi}. ` +\n            `Swagger Parser only supports versions ${supportedVersions.join(\", \")}`\n          );\n        }\n\n        // This is an OpenAPI v3 schema, check if the \"servers\" have any relative paths and\n        // fix them if the content was pulled from a web resource\n        util.fixOasRelativeServers(schema, args.path);\n      }\n\n      // Looks good!\n      return maybe(args.callback, Promise.resolve(schema));\n    }\n    catch (err) {\n      return maybe(args.callback, Promise.reject(err));\n    }\n  }\n\n  /**\n   * Parses, dereferences, and validates the given Swagger API.\n   * Depending on the options, validation can include JSON Schema validation and/or Swagger Spec validation.\n   *\n   * @param {string} [path] - The file path or URL of the JSON schema\n   * @param {object} [api] - The Swagger API object. This object will be used instead of reading from `path`.\n   * @param {ParserOptions} [options] - Options that determine how the API is parsed, dereferenced, and validated\n   * @param {Function} [callback] - An error-first callback. The second parameter is the parsed API object.\n   * @returns {Promise} - The returned promise resolves with the parsed API object.\n   */\n  async validate (path, api, options, callback) {\n    let me = this;\n    let args = normalizeArgs(arguments);\n    args.options = new Options(args.options);\n\n    // ZSchema doesn't support circular objects, so don't dereference circular $refs yet\n    // (see https://github.com/zaggino/z-schema/issues/137)\n    let circular$RefOption = args.options.dereference.circular;\n    args.options.validate.schema && (args.options.dereference.circular = \"ignore\");\n\n    try {\n      await this.dereference(args.path, args.schema, args.options);\n\n      // Restore the original options, now that we're done dereferencing\n      args.options.dereference.circular = circular$RefOption;\n\n      if (args.options.validate.schema) {\n        // Validate the API against the Swagger schema\n        // NOTE: This is safe to do, because we haven't dereferenced circular $refs yet\n        validateSchema(me.api);\n\n        if (me.$refs.circular) {\n          if (circular$RefOption === true) {\n            // The API has circular references,\n            // so we need to do a second-pass to fully-dereference it\n            dereference(me, args.options);\n          }\n          else if (circular$RefOption === false) {\n            // The API has circular references, and they're not allowed, so throw an error\n            throw ono.reference(\"The API contains circular references\");\n          }\n        }\n      }\n\n      if (args.options.validate.spec) {\n        // Validate the API against the Swagger spec\n        validateSpec(me.api);\n      }\n\n      return maybe(args.callback, Promise.resolve(me.schema));\n    }\n    catch (err) {\n      return maybe(args.callback, Promise.reject(err));\n    }\n  }\n}\n\n\n/**\n * Alias {@link $RefParser#schema} as {@link SwaggerParser#api}\n */\nObject.defineProperty(SwaggerParser.prototype, \"api\", {\n  configurable: true,\n  enumerable: true,\n  get () {\n    return this.schema;\n  }\n});\n\n/**\n * The Swagger object\n * https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#swagger-object\n *\n * @typedef {{swagger: string, info: {}, paths: {}}} SwaggerObject\n */\n\nconst defaultExport = SwaggerParser;\n\ndefaultExport.validate = (...args) => {\n  const defaultInstance = new SwaggerParser();\n  return defaultInstance.validate(...args);\n};\ndefaultExport.dereference = (...args) => {\n  const defaultInstance = new SwaggerParser();\n  return defaultInstance.dereference(...args);\n};\ndefaultExport.bundle = (...args) => {\n  const defaultInstance = new SwaggerParser();\n  return defaultInstance.bundle(...args);\n};\ndefaultExport.parse = (...args) => {\n  const defaultInstance = new SwaggerParser();\n  return defaultInstance.parse(...args);\n};\ndefaultExport.resolve = (...args) => {\n  const defaultInstance = new SwaggerParser();\n  return defaultInstance.resolve(...args);\n};\ndefaultExport.default = defaultExport;\ndefaultExport.SwaggerParser = defaultExport;\n\nmodule.exports = defaultExport;\n", "\"use strict\";\n\nconst form = require(\"./form\");\nconst editors = require(\"./editors\");\nconst analytics = require(\"./analytics\");\nconst { ono } = require(\"@jsdevtools/ono\");\nconst SwaggerParser = require(\"../../../\");\n\nlet swaggerParser = null;\nlet counters = { parse: 0, resolve: 0, bundle: 0, dereference: 0, validate: 0 };\n\nmodule.exports = parser;\n\n/**\n * Adds event handlers to trigger Swagger Parser methods\n */\nfunction parser () {\n  // When the form is submitted, parse the Swagger API\n  form.form.on(\"submit\", (event) => {\n    event.preventDefault();\n    parseSwagger();\n  });\n\n  // When the \"x\" button is clicked, discard the results\n  $(\"#clear\").on(\"click\", () => {\n    swaggerParser = null;\n    editors.clearResults();\n    analytics.trackEvent(\"results\", \"clear\");\n  });\n}\n\n/**\n * This function is called when the \"Validate it!\" button is clicked.\n * It calls Swagger Parser, passing it all the options selected on the form.\n */\nfunction parseSwagger () {\n  try {\n    // Clear any previous results\n    editors.clearResults();\n\n    // Get all the parameters\n    swaggerParser = swaggerParser || new SwaggerParser();\n    let options = form.getOptions();\n    let method = form.method.button.val();\n    let api = form.getAPI();\n\n    // Call Swagger Parser\n    swaggerParser[method](api, options)\n      .then(() => {\n        // Show the results\n        let results = swaggerParser.$refs.values();\n        Object.keys(results).forEach((key) => {\n          editors.showResult(key, results[key]);\n        });\n      })\n      .catch((err) => {\n        editors.showError(ono(err));\n        analytics.trackError(err);\n      });\n\n    // Track the operation\n    counters[method]++;\n    analytics.trackEvent(\"button\", \"click\", method, counters[method]);\n  }\n  catch (err) {\n    editors.showError(ono(err));\n    analytics.trackError(err);\n  }\n}\n", "\"use strict\";\n\nconst form = require(\"./form\");\nconst querystring = require(\"./querystring\");\nconst dropdowns = require(\"./dropdowns\");\nconst editors = require(\"./editors\");\nconst samples = require(\"./samples\");\nconst parser = require(\"./parser\");\nconst analytics = require(\"./analytics\");\n\n$(() => {\n  form();\n  querystring();\n  dropdowns();\n  editors();\n  samples();\n  parser();\n  analytics();\n});\n"],
    +  "mappings": "2hBAAA,IAAAA,EAAAC,GAAA,QCAA,IAAAC,EAAA,GAAAC,GAAAD,EAAA,eAAAE,GAAA,kBAAAC,GAAA,YAAAC,GAAA,iBAAAC,GAAA,aAAAC,GAAA,qBAAAC,GAAA,sBAAAC,GAAA,uBAAAC,GAAA,UAAAC,GAAA,mBAAAC,GAAA,kBAAAC,GAAA,qBAAAC,GAAA,cAAAC,GAAA,+BAAAC,GAAA,8BAAAC,GAAA,kBAAAC,GAAA,UAAAC,GAAA,gBAAAC,GAAA,gCAAAC,GAAA,SAAAC,GAAA,SAAAC,GAAA,UAAAC,GAAA,WAAAC,GAAA,YAAAC,GAAA,UAAAC,GAAA,WAAAC,GAAA,aAAAC,GAAA,QAAAC,GAAA,cAAAC,GAAA,YAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,SAAAC,GAAA,gBAAAC,GAAA,QAAAC,GAAA,aAAAC,GAAA,aAAAC,GAAA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ACvB,MAAS,CACP,CACE,KAAQ,yBACV,EACA,CACE,KAAQ,2BACV,CACF,CACF,CACF,CACF,EACA,QAAW,CACT,KAAQ,SACR,kBAAqB,CACnB,wBAAyB,CACvB,MAAS,CACP,CACE,KAAQ,yBACV,EACA,CACE,KAAQ,sBACV,CACF,CACF,CACF,CACF,EACA,gBAAmB,CACjB,KAAQ,SACR,kBAAqB,CACnB,wBAAyB,CACvB,MAAS,CACP,CACE,KAAQ,yBACV,EACA,CACE,KAAQ,8BACV,CACF,CACF,CACF,CACF,EACA,MAAS,CACP,KAAQ,SACR,kBAAqB,CACnB,wBAAyB,CACvB,MAAS,CACP,CACE,KAAQ,yBACV,EACA,CACE,KAAQ,oBACV,CACF,CACF,CACF,CACF,EACA,UAAa,CACX,KAAQ,SACR,kBAAqB,CACnB,wBAAyB,CACvB,MAAS,CACP,CACE,KAAQ,yBACV,EACA,CACE,KAAQ,wBACV,CACF,CACF,CACF,CACF,CACF,EACA,kBAAqB,CACnB,MAAO,CACP,CACF,EACA,qBAAwB,EAC1B,EACA,OAAU,CACR,KAAQ,SACR,WAAc,CACZ,MAAS,CACP,KAAQ,QACV,EACA,WAAc,CACZ,KAAQ,SACR,QAAW,EACX,iBAAoB,EACtB,EACA,QAAW,CACT,KAAQ,QACV,EACA,iBAAoB,CAClB,KAAQ,UACR,QAAW,EACb,EACA,QAAW,CACT,KAAQ,QACV,EACA,iBAAoB,CAClB,KAAQ,UACR,QAAW,EACb,EACA,UAAa,CACX,KAAQ,UACR,QAAW,CACb,EACA,UAAa,CACX,KAAQ,UACR,QAAW,EACX,QAAW,CACb,EACA,QAAW,CACT,KAAQ,SACR,OAAU,OACZ,EACA,SAAY,CACV,KAAQ,UACR,QAAW,CACb,EACA,SAAY,CACV,KAAQ,UACR,QAAW,EACX,QAAW,CACb,EACA,YAAe,CACb,KAAQ,UACR,QAAW,EACb,EACA,cAAiB,CACf,KAAQ,UACR,QAAW,CACb,EACA,cAAiB,CACf,KAAQ,UACR,QAAW,EACX,QAAW,CACb,EACA,SAAY,CACV,KAAQ,QACR,MAAS,CACP,KAAQ,QACV,EACA,SAAY,EACZ,YAAe,EACjB,EACA,KAAQ,CACN,KAAQ,QACR,MAAS,CACT,EACA,SAAY,EACZ,YAAe,EACjB,EACA,KAAQ,CACN,KAAQ,SACR,KAAQ,CACN,QACA,UACA,UACA,SACA,SACA,QACF,CACF,EACA,IAAO,CACL,MAAS,CACP,CACE,KAAQ,sBACV,EACA,CACE,KAAQ,yBACV,CACF,CACF,EACA,MAAS,CACP,KAAQ,QACR,MAAS,CACP,MAAS,CACP,CACE,KAAQ,sBACV,EACA,CACE,KAAQ,yBACV,CACF,CACF,CACF,EACA,MAAS,CACP,KAAQ,QACR,MAAS,CACP,MAAS,CACP,CACE,KAAQ,sBACV,EACA,CACE,KAAQ,yBACV,CACF,CACF,CACF,EACA,MAAS,CACP,KAAQ,QACR,MAAS,CACP,MAAS,CACP,CACE,KAAQ,sBACV,EACA,CACE,KAAQ,yBACV,CACF,CACF,CACF,EACA,MAAS,CACP,MAAS,CACP,CACE,KAAQ,sBACV,EACA,CACE,KAAQ,yBACV,CACF,CACF,EACA,WAAc,CACZ,KAAQ,SACR,qBAAwB,CACtB,MAAS,CACP,CACE,KAAQ,sBACV,EACA,CACE,KAAQ,yBACV,CACF,CACF,CACF,EACA,qBAAwB,CACtB,MAAS,CACP,CACE,KAAQ,sBACV,EACA,CACE,KAAQ,yBACV,EACA,CACE,KAAQ,SACV,CACF,EACA,QAAW,EACb,EACA,YAAe,CACb,KAAQ,QACV,EACA,OAAU,CACR,KAAQ,QACV,EACA,QAAW,CACX,EACA,SAAY,CACV,KAAQ,UACR,QAAW,EACb,EACA,cAAiB,CACf,KAAQ,6BACV,EACA,SAAY,CACV,KAAQ,UACR,QAAW,EACb,EACA,UAAa,CACX,KAAQ,UACR,QAAW,EACb,EACA,QAAW,CACX,EACA,aAAgB,CACd,KAAQ,qCACV,EACA,WAAc,CACZ,KAAQ,UACR,QAAW,EACb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ACA,CACE,KAAQ,yBACV,CACF,CACF,EACA,MAAO,CACP,CACF,EACA,cAAiB,EACjB,qBAAwB,EAC1B,EACA,oBAAuB,CACrB,KAAQ,SACR,qBAAwB,CACtB,KAAQ,QACR,MAAS,CACP,KAAQ,QACV,CACF,CACF,EACA,IAAO,CACL,KAAQ,SACR,SAAY,CACV,MACF,EACA,WAAc,CACZ,KAAQ,CACN,KAAQ,QACV,EACA,YAAe,CACb,KAAQ,QACV,EACA,aAAgB,CACd,KAAQ,qCACV,CACF,EACA,kBAAqB,CACnB,MAAO,CACP,CACF,EACA,qBAAwB,EAC1B,EACA,sBAAyB,CACvB,KAAQ,SACR,SAAY,CACV,KACF,EACA,WAAc,CACZ,YAAe,CACb,KAAQ,QACV,EACA,IAAO,CACL,KAAQ,SACR,OAAU,eACZ,CACF,EACA,kBAAqB,CACnB,MAAO,CACP,CACF,EACA,qBAAwB,EAC1B,EACA,mBAAsB,CACpB,YAAe,8CACf,IAAO,CACL,SAAY,CACV,UACA,UACF,CACF,CACF,EACA,iBAAoB,CAClB,YAAe,sEACf,IAAO,CACL,SAAY,CACV,SACA,SACF,CACF,EACA,MAAS,CACP,CACE,SAAY,CACV,QACF,CACF,EACA,CACE,SAAY,CACV,SACF,EACA,YAAe,wDACf,MAAS,CACP,CACE,IAAO,CACL,SAAY,CACV,OACF,CACF,CACF,EACA,CACE,IAAO,CACL,SAAY,CACV,SACF,CACF,CACF,EACA,CACE,IAAO,CACL,SAAY,CACV,eACF,CACF,CACF,EACA,CACE,IAAO,CACL,SAAY,CACV,SACF,CACF,CACF,EACA,CACE,IAAO,CACL,SAAY,CACV,UACF,CACF,CACF,CACF,CACF,CACF,CACF,EACA,UAAa,CACX,KAAQ,SACR,WAAc,CACZ,KAAQ,CACN,KAAQ,QACV,EACA,GAAM,CACJ,KAAQ,QACV,EACA,YAAe,CACb,KAAQ,QACV,EACA,SAAY,CACV,KAAQ,UACR,QAAW,EACb,EACA,WAAc,CACZ,KAAQ,UACR,QAAW,EACb,EACA,gBAAmB,CACjB,KAAQ,UACR,QAAW,EACb,EACA,MAAS,CACP,KAAQ,QACV,EACA,QAAW,CACT,KAAQ,SACV,EACA,cAAiB,CACf,KAAQ,UACR,QAAW,EACb,EACA,OAAU,CACR,MAAS,CACP,CACE,KAAQ,sBACV,EACA,CACE,KAAQ,yBACV,CACF,CACF,EACA,QAAW,CACT,KAAQ,SACR,qBAAwB,CACtB,KAAQ,yBACV,EACA,cAAiB,EACjB,cAAiB,CACnB,EACA,QAAW,CACX,EACA,SAAY,CACV,KAAQ,SACR,qBAAwB,CACtB,MAAS,CACP,CACE,KAAQ,uBACV,EACA,CACE,KAAQ,yBACV,CACF,CACF,CACF,CACF,EACA,kBAAqB,CACnB,MAAO,CACP,CACF,EACA,qBAAwB,GACxB,SAAY,CACV,OACA,IACF,EACA,MAAS,CACP,CACE,KAAQ,kCACV,EACA,CACE,KAAQ,gCACV,EACA,CACE,KAAQ,iCACV,CACF,CACF,EACA,kBAAqB,CACnB,YAAe,qBACf,MAAS,CACP,CACE,YAAe,oBACf,SAAY,CACV,UACF,EACA,WAAc,CACZ,GAAM,CACJ,KAAQ,CACN,MACF,CACF,EACA,MAAS,CACP,KAAQ,CACN,SACA,QACA,QACF,EACA,QAAW,QACb,EACA,SAAY,CACV,KAAQ,CACN,EACF,CACF,CACF,CACF,EACA,CACE,YAAe,qBACf,WAAc,CACZ,GAAM,CACJ,KAAQ,CACN,OACF,CACF,EACA,MAAS,CACP,KAAQ,CACN,OACA,iBACA,gBACA,YACF,EACA,QAAW,MACb,CACF,CACF,EACA,CACE,YAAe,sBACf,WAAc,CACZ,GAAM,CACJ,KAAQ,CACN,QACF,CACF,EACA,MAAS,CACP,KAAQ,CACN,QACF,EACA,QAAW,QACb,CACF,CACF,EACA,CACE,YAAe,sBACf,WAAc,CACZ,GAAM,CACJ,KAAQ,CACN,QACF,CACF,EACA,MAAS,CACP,KAAQ,CACN,MACF,EACA,QAAW,MACb,CACF,CACF,CACF,CACF,EACA,YAAe,CACb,KAAQ,SACR,SAAY,CACV,SACF,EACA,WAAc,CACZ,YAAe,CACb,KAAQ,QACV,EACA,QAAW,CACT,KAAQ,SACR,qBAAwB,CACtB,KAAQ,yBACV,CACF,EACA,SAAY,CACV,KAAQ,UACR,QAAW,EACb,CACF,EACA,kBAAqB,CACnB,MAAO,CACP,CACF,EACA,qBAAwB,EAC1B,EACA,eAAkB,CAChB,MAAS,CACP,CACE,KAAQ,oCACV,EACA,CACE,KAAQ,kCACV,EACA,CACE,KAAQ,oCACV,EACA,CACE,KAAQ,2CACV,CACF,CACF,EACA,qBAAwB,CACtB,KAAQ,SACR,SAAY,CACV,OACA,OACA,IACF,EACA,WAAc,CACZ,KAAQ,CACN,KAAQ,SACR,KAAQ,CACN,QACF,CACF,EACA,KAAQ,CACN,KAAQ,QACV,EACA,GAAM,CACJ,KAAQ,SACR,KAAQ,CACN,SACA,QACA,QACF,CACF,EACA,YAAe,CACb,KAAQ,QACV,CACF,EACA,kBAAqB,CACnB,MAAO,CACP,CACF,EACA,qBAAwB,EAC1B,EACA,mBAAsB,CACpB,KAAQ,SACR,SAAY,CACV,SACA,MACF,EACA,WAAc,CACZ,OAAU,CACR,KAAQ,QACV,EACA,aAAgB,CACd,KAAQ,QACV,EACA,YAAe,CACb,KAAQ,QACV,EACA,KAAQ,CACN,KAAQ,SACR,KAAQ,CACN,MACF,CACF,CACF,EACA,kBAAqB,CACnB,MAAO,CACP,CACF,EACA,qBAAwB,GACxB,MAAS,CACP,CACE,YAAe,SACf,WAAc,CACZ,OAAU,CACR,KAAQ,CACN,QACF,CACF,CACF,CACF,EACA,CACE,YAAe,aACf,IAAO,CACL,SAAY,CACV,cACF,CACF,EACA,WAAc,CACZ,OAAU,CACR,IAAO,CACL,KAAQ,CACN,QACF,CACF,CACF,CACF,CACF,CACF,CACF,EACA,qBAAwB,CACtB,KAAQ,SACR,SAAY,CACV,OACA,OACF,EACA,WAAc,CACZ,KAAQ,CACN,KAAQ,SACR,KA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WAAc,CACZ,YAAe,CACb,KAAQ,QACV,EACA,IAAO,CACL,KAAQ,aACV,CACF,EACA,SAAY,CACV,KACF,EACA,KAAQ,mCACR,sBAAyB,EAC3B,EACA,UAAa,CACX,KAAQ,SACR,WAAc,CACZ,KAAQ,CACN,KAAQ,QACV,EACA,GAAM,CACJ,KAAQ,CACN,QACA,SACA,OACA,QACF,CACF,EACA,YAAe,CACb,KAAQ,QACV,EACA,SAAY,CACV,QAAW,GACX,KAAQ,SACV,EACA,WAAc,CACZ,QAAW,GACX,KAAQ,SACV,EACA,gBAAmB,CACjB,QAAW,GACX,KAAQ,SACV,EACA,OAAU,CACR,YAAe,OACjB,EACA,QAAW,CACT,KAAQ,iBACV,CACF,EACA,SAAY,CACV,IACF,EACA,MAAS,CACP,CACE,SAAY,CACV,QACF,CACF,EACA,CACE,SAAY,CACV,SACF,CACF,CACF,EACA,iBAAoB,CAClB,OAAU,CACR,WAAc,CACZ,MAAS,CACP,KAAQ,QACV,EACA,QAAW,CACT,KAAQ,SACV,EACA,cAAiB,CACf,QAAW,GACX,KAAQ,SACV,CACF,EACA,MAAS,CACP,CACE,KAAQ,kBACV,EACA,CACE,KAAQ,iEACV,EACA,CACE,KAAQ,mEACV,EACA,CACE,KAAQ,kEACV,EACA,CACE,KAAQ,mEACV,EACA,CACE,KAAQ,iEACV,CACF,EACA,MAAS,CACP,kBAAmB,CACjB,GAAM,CACJ,WAAc,CACZ,GAAM,CACJ,MAAS,MACX,CACF,EACA,SAAY,CACV,IACF,CACF,EACA,KAAQ,CACN,WAAc,CACZ,MAAS,CACP,QAAW,SACX,KAAQ,CACN,SACA,QACA,QACF,CACF,EACA,SAAY,CACV,MAAS,EACX,CACF,EACA,SAAY,CACV,UACF,CACF,CACF,EACA,oBAAqB,CACnB,GAAM,CACJ,WAAc,CACZ,GAAM,CACJ,MAAS,QACX,CACF,EACA,SAAY,CACV,IACF,CACF,EACA,KAAQ,CACN,WAAc,CACZ,MAAS,CACP,QAAW,SACX,K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AC,IAEA,IAAMC,GAAO,KACPC,GAAc,KACdC,GAAY,KACZC,GAAU,KACVC,GAAU,KACVC,GAAS,KACTC,GAAY,KAElB,EAAE,IAAM,CACNN,GAAK,EACLC,GAAY,EACZC,GAAU,EACVC,GAAQ,EACRC,GAAQ,EACRC,GAAO,EACPC,GAAU,CACZ,CAAC",
    +  "names": ["init_dirname", "__esmMin", "process_exports", "__export", "_debugEnd", "_debugProcess", "_events", "_eventsCount", "_exiting", "_fatalExceptions", "_getActiveHandles", "_getActiveRequests", "_kill", "_linkedBinding", "_maxListeners", "_preload_modules", "_rawDebug", "_startProfilerIdleNotifier", "_stopProfilerIdleNotifier", "_tickCallback", "abort", "addListener", "allowedNodeEnvironmentFlags", "arch", "argv", "argv0", "assert", "binding", "chdir", "config", "cpuUsage", "cwd", "debugPort", "process", "dlopen", "domain", "emit", "emitWarning", "env", "execArgv", "execPath", "exit", "features", "hasUncaughtExceptionCaptureCallback", "hrtime", "kill", "listeners", "memoryUsage", "moduleLoadList", "nextTick", "off", "on", "once", "openStdin", "pid", "platform", "ppid", "prependListener", "prependOnceListener", "reallyExit", "release", "removeAllListeners", "removeListener", "resourceUsage", "setSourceMapsEnabled", "setUncaughtExceptionCaptureCallback", "stderr", "stdin", "stdout", "title", "umask", "uptime", "version", "versions", "unimplemented", "name", "cleanUpNextTick", "draining", "currentQueue", "queue", "queueIndex", "drainQueue", "timeout", "len", "fun", "args", "i", "Item", "array", "noop", "condition", "message", "_performance", "previousTimestamp", "baseNow", "clocktime", "seconds", "nanoseconds", "nanoPerSec", "nowOffset", "init_process", "__esmMin", "init_dirname", "init_buffer", "type", "mask", "dir", "time", "diff", "init_process", "__esmMin", "dew$2", "_dewExec$2", "exports$3", "byteLength", "toByteArray", "fromByteArray", "lookup", "revLookup", "Arr", "code", "len", "getLens", "b64", "validLen", "placeHoldersLen", "lens", "_byteLength", "tmp", "arr", "curByte", "i", "tripletToBase64", "num", "encodeChunk", "uint8", "start", "end", "output", "extraBytes", "parts", "maxChunkLength", "len2", "dew$1", "_dewExec$1", "exports$2", "buffer", "offset", "isLE", "mLen", "nBytes", "e", "m", "eLen", "eMax", "eBias", "nBits", "d", "s", "value", "c", "rt", "dew", "_dewExec", "exports$1", "base64", "ieee754", "customInspectSymbol", "Buffer", "SlowBuffer", "K_MAX_LENGTH", "typedArraySupport", "proto", "createBuffer", "length", "buf", "arg", "encodingOrOffset", "allocUnsafe", "from", "fromString", "fromArrayView", "isInstance", "fromArrayBuffer", "valueOf", "b", "fromObject", "assertSize", "size", "alloc", "fill", "encoding", "checked", "string", "actual", "fromArrayLike", "array", "arrayView", "copy", "byteOffset", "obj", "numberIsNaN", "a", "x", "y", "list", "pos", "mustMatch", "loweredCase", "utf8ToBytes", "base64ToBytes", "slowToString", "hexSlice", "utf8Slice", "asciiSlice", "latin1Slice", "base64Slice", "utf16leSlice", "swap", "n", "str", "max", "target", "thisStart", "thisEnd", "thisCopy", "targetCopy", "bidirectionalIndexOf", "val", "dir", "arrayIndexOf", "indexSize", "arrLength", "valLength", "read", "foundIndex", "found", "j", "hexWrite", "remaining", "strLen", "parsed", "utf8Write", "blitBuffer", "asciiWrite", "asciiToBytes", "base64Write", "ucs2Write", "utf16leToBytes", "res", "firstByte", "codePoint", "bytesPerSequence", "secondByte", "thirdByte", "fourthByte", "tempCodePoint", "decodeCodePointsArray", "MAX_ARGUMENTS_LENGTH", "codePoints", "ret", "out", "hexSliceLookupTable", "bytes", "newBuf", "checkOffset", "ext", "noAssert", "mul", "defineBigIntMethod", "validateNumber", "first", "last", "boundsError", "lo", "hi", "checkInt", "min", "maxBytes", "wrtBigUInt64LE", "checkIntBI", "wrtBigUInt64BE", "limit", "sub", "checkIEEE754", "writeFloat", "littleEndian", "writeDouble", "targetStart", "errors", "E", "sym", "getMessage", "Base", "name", "range", "input", "msg", "received", "addNumericalSeparator", "checkBounds", "type", "INVALID_BASE64_RE", "base64clean", "units", "leadSurrogate", "byteArray", "src", "dst", "alphabet", "table", "i16", "fn", "BufferBigIntNotDefined", "exports", "INSPECT_MAX_BYTES", "kMaxLength", "init_buffer", "__esmMin", "init_dirname", "init_process", "init_buffer", "__esmMin", "require_common", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "isNothing", "subject", "isObject", "toArray", "sequence", "extend", "target", "source", "index", "length", "key", "sourceKeys", "repeat", "string", "count", "result", "cycle", "isNegativeZero", "number", "require_exception", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "formatError", "exception", "compact", "where", "message", "YAMLException", "reason", "mark", "require_snippet", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "common", "getLine", "buffer", "lineStart", "lineEnd", "position", "maxLineLength", "head", "tail", "maxHalfLength", "padStart", "string", "max", "makeSnippet", "mark", "options", "re", "lineStarts", "lineEnds", "match", "foundLineNo", "result", "i", "line", "lineNoLength", "require_type", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "YAMLException", "TYPE_CONSTRUCTOR_OPTIONS", "YAML_NODE_KINDS", "compileStyleAliases", "map", "result", "style", "alias", "Type", "tag", "options", "name", "data", "require_schema", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "YAMLException", "Type", "compileList", "schema", "name", "result", "currentType", "newIndex", "previousType", "previousIndex", "compileMap", "index", "length", "collectType", "type", "Schema", "definition", "implicit", "explicit", "require_str", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "Type", "data", "require_seq", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "Type", "data", "require_map", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "Type", "data", "require_failsafe", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "Schema", "require_null", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "Type", "resolveYamlNull", "data", "max", "constructYamlNull", "isNull", "object", "require_bool", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "Type", "resolveYamlBoolean", "data", "max", "constructYamlBoolean", "isBoolean", "object", "require_int", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "common", "Type", "isHexCode", "c", "isOctCode", "isDecCode", "resolveYamlInteger", "data", "max", "index", "hasDigits", "ch", "constructYamlInteger", "value", "sign", "isInteger", "object", "obj", "require_float", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "common", "Type", "YAML_FLOAT_PATTERN", "resolveYamlFloat", "data", "constructYamlFloat", "value", "sign", "SCIENTIFIC_WITHOUT_DOT", "representYamlFloat", "object", "style", "res", "isFloat", "require_json", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "require_core", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "require_timestamp", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "Type", "YAML_DATE_REGEXP", "YAML_TIMESTAMP_REGEXP", "resolveYamlTimestamp", "data", "constructYamlTimestamp", "match", "year", "month", "day", "hour", "minute", "second", "fraction", "delta", "tz_hour", "tz_minute", "date", "representYamlTimestamp", "object", "require_merge", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "Type", "resolveYamlMerge", "data", "require_binary", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "Type", "BASE64_MAP", "resolveYamlBinary", "data", "code", "idx", "bitlen", "max", "map", "constructYamlBinary", "tailbits", "input", "bits", "result", "representYamlBinary", "object", "tail", "isBinary", "obj", "require_omap", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "Type", "_hasOwnProperty", "_toString", "resolveYamlOmap", "data", "objectKeys", "index", "length", "pair", "pairKey", "pairHasKey", "object", "constructYamlOmap", "require_pairs", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "Type", "_toString", "resolveYamlPairs", "data", "index", "length", "pair", "keys", "result", "object", "constructYamlPairs", "require_set", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "Type", "_hasOwnProperty", "resolveYamlSet", "data", "key", "object", "constructYamlSet", "require_default", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "require_loader", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "common", "YAMLException", "makeSnippet", "DEFAULT_SCHEMA", "_hasOwnProperty", "CONTEXT_FLOW_IN", "CONTEXT_FLOW_OUT", "CONTEXT_BLOCK_IN", "CONTEXT_BLOCK_OUT", "CHOMPING_CLIP", "CHOMPING_STRIP", "CHOMPING_KEEP", "PATTERN_NON_PRINTABLE", "PATTERN_NON_ASCII_LINE_BREAKS", "PATTERN_FLOW_INDICATORS", "PATTERN_TAG_HANDLE", "PATTERN_TAG_URI", "_class", "obj", "is_EOL", "c", "is_WHITE_SPACE", "is_WS_OR_EOL", "is_FLOW_INDICATOR", "fromHexCode", "lc", "escapedHexLen", "fromDecimalCode", "simpleEscapeSequence", "charFromCodepoint", "simpleEscapeCheck", "simpleEscapeMap", "i", "State", "input", "options", "generateError", "state", "message", "mark", "throwError", "throwWarning", "directiveHandlers", "name", "args", "match", "major", "minor", "handle", "prefix", "err", "captureSegment", "start", "end", "checkJson", "_position", "_length", "_character", "_result", "mergeMappings", "destination", "source", "overridableKeys", "sourceKeys", "key", "index", "quantity", "storeMappingPair", "keyTag", "keyNode", "valueNode", "startLine", "startLineStart", "startPos", "readLineBreak", "ch", "skipSeparationSpace", "allowComments", "checkIndent", "lineBreaks", "testDocumentSeparator", "writeFoldedLines", "count", "readPlainScalar", "nodeIndent", "withinFlowCollection", "preceding", "following", "captureStart", "captureEnd", "hasPendingContent", "_line", "_lineStart", "_lineIndent", "_kind", "readSingleQuotedScalar", "readDoubleQuotedScalar", "hexLength", "hexResult", "tmp", "readFlowCollection", "readNext", "_pos", "_tag", "_anchor", "terminator", "isPair", "isExplicitPair", "isMapping", "composeNode", "readBlockScalar", "folding", "chomping", "didReadContent", "detectedIndent", "textIndent", "emptyLines", "atMoreIndented", "readBlockSequence", "detected", "readBlockMapping", "flowIndent", "allowCompact", "_keyLine", "_keyLineStart", "_keyPos", "atExplicitKey", "readTagProperty", "isVerbatim", "isNamed", "tagHandle", "tagName", "readAnchorProperty", "readAlias", "alias", "parentIndent", "nodeContext", "allowToSeek", "allowBlockStyles", "allowBlockScalars", "allowBlockCollections", "indentStatus", "atNewLine", "hasContent", "typeIndex", "typeQuantity", "typeList", "type", "blockIndent", "readDocument", "documentStart", "directiveName", "directiveArgs", "hasDirectives", "loadDocuments", "nullpos", "loadAll", "iterator", "documents", "length", "load", "require_dumper", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "common", "YAMLException", "DEFAULT_SCHEMA", "_toString", "_hasOwnProperty", "CHAR_BOM", "CHAR_TAB", "CHAR_LINE_FEED", "CHAR_CARRIAGE_RETURN", "CHAR_SPACE", "CHAR_EXCLAMATION", "CHAR_DOUBLE_QUOTE", "CHAR_SHARP", "CHAR_PERCENT", "CHAR_AMPERSAND", "CHAR_SINGLE_QUOTE", "CHAR_ASTERISK", "CHAR_COMMA", "CHAR_MINUS", "CHAR_COLON", "CHAR_EQUALS", "CHAR_GREATER_THAN", "CHAR_QUESTION", "CHAR_COMMERCIAL_AT", "CHAR_LEFT_SQUARE_BRACKET", "CHAR_RIGHT_SQUARE_BRACKET", "CHAR_GRAVE_ACCENT", "CHAR_LEFT_CURLY_BRACKET", "CHAR_VERTICAL_LINE", "CHAR_RIGHT_CURLY_BRACKET", "ESCAPE_SEQUENCES", "DEPRECATED_BOOLEANS_SYNTAX", "DEPRECATED_BASE60_SYNTAX", "compileStyleMap", "schema", "map", "result", "keys", "index", "length", "tag", "style", "type", "encodeHex", "character", "string", "handle", "QUOTING_TYPE_SINGLE", "QUOTING_TYPE_DOUBLE", "State", "options", "indentString", "spaces", "ind", "position", "next", "line", "generateNextLine", "state", "level", "testImplicitResolving", "str", "isWhitespace", "c", "isPrintable", "isNsCharOrWhitespace", "isPlainSafe", "prev", "inblock", "cIsNsCharOrWhitespace", "cIsNsChar", "isPlainSafeFirst", "isPlainSafeLast", "codePointAt", "pos", "first", "second", "needIndentIndicator", "leadingSpaceRe", "STYLE_PLAIN", "STYLE_SINGLE", "STYLE_LITERAL", "STYLE_FOLDED", "STYLE_DOUBLE", "chooseScalarStyle", "singleLineOnly", "indentPerLevel", "lineWidth", "testAmbiguousType", "quotingType", "forceQuotes", "i", "char", "prevChar", "hasLineBreak", "hasFoldableLine", "shouldTrackWidth", "previousLineBreak", "plain", "writeScalar", "iskey", "indent", "testAmbiguity", "blockHeader", "dropEndingNewline", "foldString", "escapeString", "indentIndicator", "clip", "keep", "chomp", "width", "lineRe", "nextLF", "foldLine", "prevMoreIndented", "moreIndented", "match", "prefix", "breakRe", "start", "end", "curr", "escapeSeq", "writeFlowSequence", "object", "_result", "_tag", "value", "writeNode", "writeBlockSequence", "compact", "writeFlowMapping", "objectKeyList", "objectKey", "objectValue", "pairBuffer", "writeBlockMapping", "explicitPair", "detectType", "explicit", "typeList", "block", "isblockseq", "tagStr", "objectOrArray", "duplicateIndex", "duplicate", "getDuplicateReferences", "objects", "duplicatesIndexes", "inspectNode", "dump", "input", "require_js_yaml", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "loader", "dumper", "renamed", "from", "to", "require_form", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "jsYAML", "form", "url", "text", "require_querystring", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "form", "querystring", "setFormFields", "setBookmarkURL", "params", "query", "setCheckbox", "input", "value", "options", "method", "url", "bookmark", "require_analytics", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "debug", "analytics", "category", "action", "label", "value", "error", "err", "require_dropdowns", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "form", "analytics", "dropdowns", "setSelectedMethod", "onChange", "setAllowLabel", "setRefsLabel", "setValidateLabel", "trackCheckbox", "event", "methodName", "trackButtonLabel", "menu", "setLabel", "dropdown", "values", "getCheckedAndUnchecked", "checkbox", "value", "_checkboxes", "checked", "unchecked", "i", "require_editors", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "form", "ACE_THEME", "editors", "session", "title", "content", "showResults", "err", "index", "titleId", "editorId", "active", "shortTitle", "getShortTitle", "toText", "editor", "lastSlash", "results", "obj", "e", "require_samples", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "form", "samples", "event", "exports", "newline", "onoCall", "isLazyStack", "stackProp", "exports", "isWritableStack", "joinStacks", "newError", "originalError", "newStack", "popStack", "originalStack", "lazyJoinStacks", "lazyStack", "lazyPopStack", "stack", "lines", "onoStart", "i", "line", "error", "nonJsonTypes", "protectedProps", "objectPrototype", "toJSON", "pojo", "error", "key", "getDeepKeys", "value", "type", "exports", "obj", "omit", "keys", "uniqueKeys", "isomorphic_node_1", "stack_1", "to_json_1", "protectedProps", "extendError", "error", "originalError", "props", "onoError", "extendStack", "mergeErrors", "exports", "newError", "stackProp", "keys", "_newError", "_originalError", "key", "e", "isomorphic_node_1", "normalizeOptions", "options", "exports", "normalizeArgs", "args", "originalError", "props", "formatArgs", "message", "extend_error_1", "normalize_1", "to_json_1", "constructor", "Ono", "exports", "ErrorConstructor", "options", "ono", "args", "originalError", "props", "message", "newError", "error", "constructor_1", "singleton", "ono", "exports", "onoMap", "args", "originalError", "typedOno", "species", "i", "u", "c", "t", "n", "r", "h", "f", "l", "s", "a", "d", "e", "m", "p", "o", "T", "init_chunk_5decc758", "__esmMin", "init_dirname", "init_buffer", "init_process", "c$1", "O", "t", "e", "S", "l$1", "y", "b", "B", "k", "E", "D", "U", "P", "x", "I", "M", "z", "F", "m", "u$1", "T", "N", "W", "$", "C", "V", "G", "R", "J", "_", "H", "h", "Z", "j", "q", "A", "K", "s", "w", "L", "p", "v", "oe", "r", "fe", "ye", "X", "be", "ue", "ae", "we", "ge", "de", "le", "o", "u", "Ae", "ce", "f", "me", "je", "a", "c", "pe", "n", "i", "ke", "se", "he", "ve", "Oe", "Be", "Se", "De", "l", "t$1", "o$1", "n$1", "e$1", "r$1", "t$2", "i$1", "o$2", "d", "Q", "Y", "ee", "te", "re", "ne", "ie", "Ee", "init_chunk_b4205b57", "__esmMin", "init_dirname", "init_buffer", "init_process", "init_chunk_5decc758", "g", "_extend", "callbackify", "debuglog", "deprecate", "format", "inherits", "inspect", "isArray", "isBoolean", "isBuffer", "isDate", "isError", "isFunction", "isNull", "isNullOrUndefined", "isNumber", "isObject", "isPrimitive", "isRegExp", "isString", "isSymbol", "isUndefined", "log", "promisify", "types", "TextEncoder", "TextDecoder", "init_chunk_ce0fbc82", "__esmMin", "init_dirname", "init_buffer", "init_process", "init_chunk_b4205b57", "init_chunk_5decc758", "X", "util_exports", "__export", "TextDecoder", "TextEncoder", "_extend", "callbackify", "debuglog", "X", "deprecate", "format", "inherits", "inspect", "isArray", "isBoolean", "isBuffer", "isDate", "isError", "isFunction", "isNull", "isNullOrUndefined", "isNumber", "isObject", "isPrimitive", "isRegExp", "isString", "isSymbol", "isUndefined", "log", "promisify", "types", "init_util", "__esmMin", "init_dirname", "init_buffer", "init_process", "init_chunk_ce0fbc82", "init_chunk_b4205b57", "init_chunk_5decc758", "util_1", "singleton_1", "exports", "constructor_1", "__exportStar", "module", "require_util", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "util", "parse", "u", "operationsList", "fixServers", "server", "path", "inUrl", "finalUrl", "fixOasRelativeServers", "schema", "filePath", "component", "pathItem", "opItem", "_CodeOrName", "exports", "Name", "s", "_Code", "code", "item", "_a", "c", "names", "_", "strs", "args", "i", "addCodeArg", "plus", "str", "expr", "safeStringify", "optimize", "arg", "interpolate", "res", "mergeExprItems", "a", "b", "strConcat", "c1", "c2", "x", "stringify", "getProperty", "key", "getEsmExportName", "regexpCode", "rx", "code_1", "ValueError", "name", "UsedValueState", "exports", "Scope", "prefixes", "parent", "nameOrPrefix", "prefix", "ng", "_b", "_a", "ValueScopeName", "nameStr", "value", "property", "itemIndex", "line", "ValueScope", "opts", "valueKey", "vs", "_name", "s", "keyOrRef", "scopeName", "values", "usedValues", "getCode", "valueCode", "code", "nameSet", "c", "def", "code_1", "scope_1", "code_2", "exports", "scope_2", "Node", "_names", "_constants", "Def", "varKind", "name", "rhs", "es5", "_n", "names", "constants", "optimizeExpr", "Assign", "lhs", "sideEffects", "addExprNames", "AssignOp", "op", "Label", "label", "Break", "Throw", "error", "AnyCode", "code", "ParentNode", "nodes", "opts", "i", "n", "subtractNames", "addNames", "BlockNode", "Root", "Else", "If", "_If", "condition", "cond", "e", "ns", "not", "_a", "For", "ForLoop", "iteration", "ForRange", "from", "to", "ForIter", "loop", "iterable", "Func", "args", "async", "Return", "Try", "_b", "Catch", "Finally", "CodeGen", "extScope", "prefix", "prefixOrName", "value", "keyOrRef", "scopeName", "nameOrPrefix", "constant", "_constant", "c", "keyValues", "key", "thenBody", "elseBody", "node", "forBody", "arr", "obj", "tryBody", "catchCode", "finallyCode", "body", "nodeCount", "len", "toClose", "funcBody", "N1", "N2", "expr", "replaceName", "canOptimize", "items", "x", "par", "andCode", "mappend", "and", "orCode", "or", "y", "codegen_1", "code_1", "toHash", "arr", "hash", "item", "exports", "alwaysValidSchema", "it", "schema", "checkUnknownRules", "schemaHasRules", "opts", "self", "rules", "key", "checkStrictMode", "schemaHasRulesButRef", "RULES", "schemaRefOrVal", "topSchemaRef", "schemaPath", "keyword", "$data", "unescapeFragment", "str", "unescapeJsonPointer", "escapeFragment", "escapeJsonPointer", "eachItem", "xs", "f", "x", "makeMergeEvaluated", "mergeNames", "mergeToName", "mergeValues", "resultToName", "gen", "from", "to", "toName", "res", "setEvaluated", "evaluatedPropsToName", "items", "ps", "props", "p", "snippets", "useFunc", "Type", "getErrorPath", "dataProp", "dataPropType", "jsPropertySyntax", "isNumber", "msg", "mode", "codegen_1", "names", "exports", "codegen_1", "util_1", "names_1", "exports", "keyword", "schemaType", "reportError", "cxt", "error", "errorPaths", "overrideAllErrors", "it", "gen", "compositeRule", "allErrors", "errObj", "errorObjectCode", "addError", "returnErrors", "reportExtraError", "resetErrorsCount", "errsCount", "extendErrors", "schemaValue", "data", "err", "i", "errs", "validateName", "schemaEnv", "E", "createErrors", "errorObject", "keyValues", "errorInstancePath", "errorSchemaPath", "extraErrorProps", "errorPath", "instancePath", "instPath", "errSchemaPath", "schemaPath", "parentSchema", "schPath", "params", "message", "opts", "propertyName", "topSchemaRef", "errors_1", "codegen_1", "names_1", "boolError", "topBoolOrEmptySchema", "it", "gen", "schema", "validateName", "falseSchemaError", "exports", "boolOrEmptySchema", "valid", "overrideAllErrors", "data", "cxt", "_jsonTypes", "jsonTypes", "isJSONType", "x", "exports", "getRules", "groups", "schemaHasRulesForType", "schema", "self", "type", "group", "shouldUseGroup", "exports", "rule", "shouldUseRule", "_a", "kwd", "rules_1", "applicability_1", "errors_1", "codegen_1", "util_1", "DataType", "exports", "getSchemaTypes", "schema", "types", "getJSONTypes", "ts", "coerceAndCheckDataType", "it", "gen", "data", "opts", "coerceTo", "coerceToTypes", "checkTypes", "wrongType", "checkDataTypes", "coerceData", "reportTypeError", "COERCIBLE", "coerceTypes", "dataType", "coerced", "t", "coerceSpecificType", "assignParentData", "parentData", "parentDataProperty", "expr", "checkDataType", "strictNums", "correct", "EQ", "cond", "numCond", "_cond", "dataTypes", "notObj", "typeError", "schemaValue", "cxt", "getTypeErrorContext", "schemaCode", "codegen_1", "util_1", "assignDefaults", "it", "ty", "properties", "items", "key", "assignDefault", "sch", "i", "exports", "prop", "defaultValue", "gen", "compositeRule", "data", "opts", "childData", "condition", "codegen_1", "util_1", "names_1", "util_2", "checkReportMissingProp", "cxt", "prop", "gen", "data", "it", "noPropertyInData", "exports", "checkMissingProp", "opts", "properties", "missing", "reportMissingProp", "hasPropFunc", "isOwnProperty", "property", "propertyInData", "ownProperties", "cond", "allSchemaProperties", "schemaMap", "p", "schemaProperties", "callValidateCode", "schemaCode", "topSchemaRef", "schemaPath", "errorPath", "func", "context", "passSchema", "dataAndSchema", "valCxt", "args", "newRegExp", "usePattern", "pattern", "u", "regExp", "rx", "validateArray", "keyword", "valid", "validArr", "validateItems", "notValid", "len", "i", "validateUnion", "schema", "sch", "schValid", "_sch", "schCxt", "codegen_1", "names_1", "code_1", "errors_1", "macroKeywordCode", "cxt", "def", "gen", "keyword", "schema", "parentSchema", "it", "macroSchema", "schemaRef", "useKeyword", "valid", "exports", "funcKeywordCode", "$data", "checkAsyncKeyword", "validate", "validateRef", "validateKeyword", "_a", "assignValid", "modifyData", "reportErrs", "ruleErrs", "validateAsync", "validateSync", "addErrs", "e", "validateErrs", "_await", "passCxt", "passSchema", "errors", "data", "errs", "schemaEnv", "result", "validSchemaType", "schemaType", "allowUndefined", "st", "validateKeywordUsage", "opts", "self", "errSchemaPath", "deps", "kwd", "msg", "codegen_1", "util_1", "getSubschema", "it", "keyword", "schemaProp", "schema", "schemaPath", "errSchemaPath", "topSchemaRef", "sch", "exports", "extendSubschemaData", "subschema", "dataProp", "dpType", "data", "dataTypes", "propertyName", "gen", "errorPath", "dataPathArr", "opts", "nextData", "dataContextProps", "_nextData", "extendSubschemaMode", "jtdDiscriminator", "jtdMetadata", "compositeRule", "createErrors", "allErrors", "require_fast_deep_equal", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "equal", "a", "b", "length", "keys", "key", "require_json_schema_traverse", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "traverse", "schema", "opts", "cb", "pre", "post", "_traverse", "jsonPtr", "rootSchema", "parentJsonPtr", "parentKeyword", "parentSchema", "keyIndex", "key", "sch", "i", "prop", "escapeJsonPtr", "str", "util_1", "equal", "traverse", "SIMPLE_INLINED", "inlineRef", "schema", "limit", "hasRef", "countKeys", "exports", "REF_KEYWORDS", "key", "sch", "count", "getFullPath", "resolver", "id", "normalize", "normalizeId", "p", "_getFullPath", "TRAILING_SLASH_HASH", "resolveUrl", "baseId", "ANCHOR", "getSchemaRefs", "schemaId", "uriResolver", "schId", "baseIds", "pathPrefix", "localRefs", "schemaRefs", "jsonPtr", "parentJsonPtr", "fullPath", "innerBaseId", "addRef", "addAnchor", "ref", "_resolve", "ambiguos", "schOrRef", "checkAmbiguosRef", "anchor", "sch1", "sch2", "boolSchema_1", "dataType_1", "applicability_1", "dataType_2", "defaults_1", "keyword_1", "subschema_1", "codegen_1", "names_1", "resolve_1", "util_1", "errors_1", "validateFunctionCode", "it", "isSchemaObj", "checkKeywords", "schemaCxtHasRules", "topSchemaObjCode", "validateFunction", "exports", "gen", "validateName", "schema", "schemaEnv", "opts", "body", "funcSourceUrl", "destructureValCxtES5", "destructureValCxt", "commentKeyword", "checkNoDefault", "resetEvaluated", "typeAndKeywords", "returnResults", "schId", "subschemaCode", "valid", "subSchemaObjCode", "self", "key", "updateContext", "checkAsyncSchema", "errsCount", "checkRefsAndKeywords", "schemaKeywords", "types", "checkedTypes", "errSchemaPath", "msg", "schemaPath", "rootName", "ValidationError", "assignEvaluated", "evaluated", "props", "items", "typeErrors", "data", "allErrors", "RULES", "keywordCode", "checkStrictTypes", "group", "groupKeywords", "iterateKeywords", "useDefaults", "rule", "checkContextTypes", "checkMultipleTypes", "checkKeywordTypes", "includesType", "strictTypesError", "narrowSchemaTypes", "ts", "rules", "keyword", "type", "t", "hasApplicableType", "schTs", "kwdT", "withTypes", "KeywordCxt", "def", "getData", "condition", "successAction", "failAction", "schemaCode", "append", "errorParams", "errorPaths", "cond", "obj", "assign", "codeBlock", "$dataValid", "schemaType", "wrong$DataType", "invalid$DataSchema", "st", "validateSchemaRef", "appl", "subschema", "nextContext", "schemaCxt", "toName", "ruleType", "cxt", "JSON_POINTER", "RELATIVE_JSON_POINTER", "$data", "dataLevel", "dataNames", "dataPathArr", "jsonPointer", "matches", "up", "errorMsg", "expr", "segments", "segment", "pointerType", "ValidationError", "errors", "exports", "resolve_1", "MissingRefError", "resolver", "baseId", "ref", "msg", "exports", "codegen_1", "validation_error_1", "names_1", "resolve_1", "util_1", "validate_1", "SchemaEnv", "env", "schema", "_a", "exports", "compileSchema", "sch", "_sch", "getCompilingSchema", "rootId", "es5", "lines", "ownProperties", "gen", "_ValidationError", "validateName", "schemaCxt", "sourceCode", "validateCode", "validate", "props", "items", "e", "resolveRef", "root", "baseId", "ref", "schOrFunc", "resolve", "schemaId", "inlineOrCompile", "schEnv", "sameSchemaEnv", "s1", "s2", "resolveSchema", "p", "refPath", "getJsonPointer", "id", "schOrRef", "schId", "PREVENT_SCOPE_CHANGE", "parsedRef", "part", "partSchema", "$ref", "require_data", "__commonJSMin", "exports", "module", "require_scopedChars", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "HEX", "require_utils", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "HEX", "normalizeIPv4", "host", "findToken", "matches", "address", "stripLeadingZeros", "stringArrayToHexStripped", "input", "keepZero", "acc", "strip", "c", "getIPV6", "tokenCount", "output", "buffer", "isZone", "endipv6Encountered", "endIpv6", "consume", "hex", "i", "cursor", "normalizeIPv6", "opts", "ipv6", "newHost", "escapedHost", "str", "token", "out", "skip", "l", "ind", "RDS1", "RDS2", "RDS3", "RDS5", "removeDotSegments", "im", "s", "normalizeComponentEncoding", "components", "esc", "func", "recomposeAuthority", "options", "uriTokens", "ipV4res", "ipV6res", "require_schemes", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "UUID_REG", "URN_REG", "isSecure", "wsComponents", "httpParse", "components", "httpSerialize", "secure", "wsParse", "wsSerialize", "path", "query", "urnParse", "urnComponents", "options", "matches", "scheme", "urnScheme", "schemeHandler", "SCHEMES", "urnSerialize", "nid", "uriComponents", "nss", "urnuuidParse", "uuidComponents", "urnuuidSerialize", "http", "https", "ws", "wss", "urn", "urnuuid", "require_fast_uri", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "normalizeIPv6", "normalizeIPv4", "removeDotSegments", "recomposeAuthority", "normalizeComponentEncoding", "SCHEMES", "normalize", "uri", "options", "serialize", "parse", "resolve", "baseURI", "relativeURI", "schemelessOptions", "resolved", "resolveComponents", "base", "relative", "skipNormalization", "target", "equal", "uriA", "uriB", "cmpts", "opts", "components", "uriTokens", "schemeHandler", "authority", "s", "hexLookUp", "v", "k", "nonSimpleDomain", "value", "code", "i", "len", "URI_PARSE", "parsed", "gotEncoding", "isIP", "matches", "ipv4result", "ipv6result", "e", "fastUri", "uri", "exports", "validate_1", "exports", "codegen_1", "validation_error_1", "ref_error_1", "rules_1", "compile_1", "codegen_2", "resolve_1", "dataType_1", "util_1", "$dataRefSchema", "uri_1", "defaultRegExp", "str", "flags", "META_IGNORE_OPTIONS", "EXT_SCOPE_NAMES", "removedOptions", "deprecatedOptions", "MAX_EXPRESSION", "requiredOptions", "o", "s", "_optz", "_a", "optimize", "regExp", "_c", "_b", "uriResolver", "_d", "_f", "_e", "_h", "_g", "_k", "_j", "_m", "_l", "_p", "_o", "_q", "_r", "_s", "_t", "_u", "_v", "_w", "_x", "_y", "_z", "_0", "Ajv", "opts", "es5", "lines", "getLogger", "formatOpt", "checkOptions", "getMetaSchemaOptions", "addInitialFormats", "addInitialKeywords", "addInitialSchemas", "$data", "meta", "schemaId", "_dataRefSchema", "schemaKeyRef", "data", "v", "valid", "schema", "_meta", "sch", "loadSchema", "runCompileAsync", "_schema", "loadMetaSchema", "_compileAsync", "$ref", "e", "checkLoaded", "loadMissingSchema", "ref", "missingRef", "_loadSchema", "p", "key", "_validateSchema", "id", "throwOrLogError", "$schema", "message", "keyRef", "getSchEnv", "root", "cacheKey", "definitions", "def", "kwdOrDef", "keyword", "checkKeyword", "kwd", "addRule", "keywordMetaschema", "definition", "k", "t", "rule", "RULES", "group", "name", "format", "errors", "separator", "dataVar", "text", "msg", "metaSchema", "keywordsJsonPointers", "rules", "jsonPointer", "segments", "keywords", "seg", "schemaOrData", "schemas", "regex", "baseId", "validateSchema", "addSchema", "localRefs", "currentOpts", "checkOpts", "options", "log", "opt", "optsSchemas", "defs", "metaOpts", "noLogs", "logger", "KEYWORD_NAME", "dataType", "post", "ruleGroup", "addBeforeRule", "before", "i", "_rule", "$dataRef", "ref_error_1", "code_1", "codegen_1", "names_1", "compile_1", "util_1", "def", "cxt", "gen", "$ref", "it", "baseId", "env", "validateName", "opts", "self", "root", "callRootRef", "schOrEnv", "callValidate", "inlineRefSchema", "callRef", "rootName", "sch", "v", "getValidate", "schName", "valid", "schCxt", "exports", "$async", "allErrors", "passCxt", "callAsyncRef", "callSyncRef", "addEvaluatedFrom", "e", "addErrorsFrom", "source", "errs", "schEvaluated", "_a", "props", "items", "ref_1", "core", "exports", "core_1", "codegen_1", "ops", "KWDs", "error", "cxt", "kwdOp", "def", "data", "schemaCode", "keyword", "opsIdx", "_a", "exports", "KWDs", "def", "keyword", "parentSchema", "limitKwd", "exports", "codegen_1", "error", "schemaCode", "def", "cxt", "gen", "data", "it", "prec", "res", "invalid", "exports", "ucs2length", "str", "len", "length", "pos", "value", "exports", "codegen_1", "util_1", "ucs2length_1", "error", "keyword", "schemaCode", "comp", "def", "cxt", "data", "it", "op", "len", "exports", "code_1", "codegen_1", "error", "schemaCode", "def", "cxt", "data", "$data", "schema", "it", "u", "regExp", "exports", "codegen_1", "error", "keyword", "schemaCode", "comp", "def", "cxt", "data", "op", "exports", "code_1", "codegen_1", "util_1", "error", "missingProperty", "def", "cxt", "gen", "schema", "schemaCode", "data", "$data", "it", "opts", "useLoop", "allErrorsMode", "exitOnErrorMode", "props", "definedProperties", "requiredKey", "schemaPath", "msg", "loopAllRequired", "prop", "missing", "valid", "loopUntilMissing", "exports", "codegen_1", "error", "keyword", "schemaCode", "comp", "def", "cxt", "data", "op", "exports", "equal", "exports", "dataType_1", "codegen_1", "util_1", "equal_1", "error", "i", "j", "def", "cxt", "gen", "data", "$data", "schema", "parentSchema", "schemaCode", "it", "valid", "itemTypes", "validateUniqueItems", "canOptimize", "loopN", "loopN2", "t", "item", "wrongType", "indices", "eql", "outer", "exports", "codegen_1", "util_1", "equal_1", "error", "schemaCode", "def", "cxt", "gen", "data", "$data", "schema", "exports", "codegen_1", "util_1", "equal_1", "error", "schemaCode", "def", "cxt", "gen", "data", "$data", "schema", "it", "useLoop", "eql", "getEql", "valid", "loopEnum", "vSchema", "_x", "i", "equalCode", "v", "sch", "exports", "limitNumber_1", "limitNumberExclusive_1", "multipleOf_1", "limitLength_1", "pattern_1", "limitProperties_1", "required_1", "limitItems_1", "uniqueItems_1", "const_1", "enum_1", "validation", "exports", "codegen_1", "util_1", "error", "len", "def", "cxt", "parentSchema", "it", "items", "validateAdditionalItems", "gen", "schema", "data", "keyword", "valid", "validateItems", "i", "exports", "codegen_1", "util_1", "code_1", "def", "cxt", "schema", "it", "validateTuple", "extraItems", "schArr", "gen", "parentSchema", "data", "keyword", "checkStrictTuple", "valid", "len", "sch", "i", "opts", "errSchemaPath", "l", "fullTuple", "msg", "exports", "items_1", "def", "cxt", "exports", "codegen_1", "util_1", "code_1", "additionalItems_1", "error", "len", "def", "cxt", "schema", "parentSchema", "it", "prefixItems", "exports", "codegen_1", "util_1", "error", "min", "max", "def", "cxt", "gen", "schema", "parentSchema", "data", "it", "minContains", "maxContains", "len", "cond", "valid", "validateItems", "validateItemsWithCount", "schValid", "count", "checkLimits", "_valid", "block", "i", "exports", "codegen_1", "util_1", "code_1", "exports", "property", "depsCount", "deps", "property_ies", "missingProperty", "def", "cxt", "propDeps", "schDeps", "splitDependencies", "validatePropertyDeps", "validateSchemaDeps", "schema", "propertyDeps", "schemaDeps", "key", "gen", "data", "it", "missing", "prop", "hasProperty", "depProp", "keyword", "valid", "schCxt", "codegen_1", "util_1", "error", "params", "def", "cxt", "gen", "schema", "data", "it", "valid", "key", "exports", "code_1", "codegen_1", "names_1", "util_1", "error", "params", "def", "cxt", "gen", "schema", "parentSchema", "data", "errsCount", "it", "allErrors", "opts", "props", "patProps", "checkAdditionalProperties", "key", "additionalPropertyCode", "isAdditional", "definedProp", "propsSchema", "p", "deleteAdditional", "valid", "applyAdditionalSchema", "errors", "subschema", "exports", "validate_1", "code_1", "util_1", "additionalProperties_1", "def", "cxt", "gen", "schema", "parentSchema", "data", "it", "allProps", "prop", "properties", "p", "valid", "hasDefault", "applyPropertySchema", "exports", "code_1", "codegen_1", "util_1", "util_2", "def", "cxt", "gen", "schema", "data", "parentSchema", "it", "opts", "patterns", "alwaysValidPatterns", "p", "checkProperties", "valid", "props", "validatePatternProperties", "pat", "checkMatchingProperties", "validateProperties", "prop", "key", "alwaysValid", "exports", "util_1", "def", "cxt", "gen", "schema", "it", "valid", "exports", "code_1", "def", "exports", "codegen_1", "util_1", "error", "params", "def", "cxt", "gen", "schema", "parentSchema", "it", "schArr", "valid", "passing", "schValid", "validateOneOf", "sch", "i", "schCxt", "exports", "util_1", "def", "cxt", "gen", "schema", "it", "valid", "sch", "i", "schCxt", "exports", "codegen_1", "util_1", "error", "params", "def", "cxt", "gen", "parentSchema", "it", "hasThen", "hasSchema", "hasElse", "valid", "schValid", "validateIf", "ifClause", "validateClause", "schCxt", "keyword", "schema", "exports", "util_1", "def", "keyword", "parentSchema", "it", "exports", "additionalItems_1", "prefixItems_1", "items_1", "items2020_1", "contains_1", "dependencies_1", "propertyNames_1", "additionalProperties_1", "properties_1", "patternProperties_1", "not_1", "anyOf_1", "oneOf_1", "allOf_1", "if_1", "thenElse_1", "getApplicator", "draft2020", "applicator", "exports", "codegen_1", "error", "schemaCode", "def", "cxt", "ruleType", "gen", "data", "$data", "schema", "it", "opts", "errSchemaPath", "schemaEnv", "self", "validate$DataFormat", "validateFormat", "fmts", "fDef", "fType", "format", "unknownFmt", "invalidFmt", "callFormat", "validData", "formatDef", "unknownFormat", "fmtType", "fmtRef", "getFormat", "validCondition", "unknownMsg", "fmtDef", "code", "fmt", "exports", "format_1", "format", "exports", "core_1", "validation_1", "applicator_1", "format_1", "metadataVocabulary", "draft4Vocabularies", "exports", "DiscrError", "exports", "codegen_1", "types_1", "compile_1", "ref_error_1", "util_1", "error", "discrError", "tagName", "tag", "def", "cxt", "gen", "data", "schema", "parentSchema", "it", "oneOf", "valid", "validateMapping", "mapping", "getMapping", "tagValue", "applyTagSchema", "schemaProp", "_valid", "schCxt", "oneOfMapping", "topRequired", "hasRequired", "tagRequired", "i", "sch", "ref", "propSch", "_a", "addMappings", "required", "addMapping", "exports", "require_json_schema_draft_04", "__commonJSMin", "exports", "module", "core_1", "draft4_1", "discriminator_1", "draft4MetaSchema", "META_SUPPORT_DATA", "META_SCHEMA_ID", "Ajv", "opts", "v", "metaSchema", "module", "exports", "core_2", "core_3", "def", "exports", "id_1", "ref_1", "core", "exports", "codegen_1", "ops", "KWDs", "error", "keyword", "schemaCode", "def", "cxt", "data", "exports", "limitNumber_1", "multipleOf_1", "limitLength_1", "pattern_1", "limitProperties_1", "required_1", "limitItems_1", "uniqueItems_1", "const_1", "enum_1", "validation", "exports", "codegen_1", "names_1", "compile_1", "ref_1", "def", "cxt", "dynamicAnchor", "anchor", "gen", "it", "v", "validate", "_getValidate", "exports", "schemaEnv", "schema", "self", "root", "baseId", "localRefs", "meta", "schemaId", "sch", "codegen_1", "names_1", "ref_1", "def", "cxt", "dynamicRef", "ref", "gen", "keyword", "it", "anchor", "_dynamicRef", "valid", "v", "_callRef", "validate", "exports", "dynamicAnchor_1", "util_1", "def", "cxt", "exports", "dynamicRef_1", "def", "cxt", "exports", "dynamicAnchor_1", "dynamicRef_1", "recursiveAnchor_1", "recursiveRef_1", "dynamic", "exports", "dependencies_1", "def", "cxt", "exports", "dependencies_1", "def", "cxt", "exports", "util_1", "def", "keyword", "parentSchema", "it", "exports", "dependentRequired_1", "dependentSchemas_1", "limitContains_1", "next", "exports", "codegen_1", "util_1", "names_1", "error", "params", "def", "cxt", "gen", "schema", "data", "errsCount", "it", "allErrors", "props", "key", "unevaluatedDynamic", "unevaluatedPropCode", "unevaluatedStatic", "valid", "evaluatedProps", "ps", "p", "exports", "codegen_1", "util_1", "error", "len", "def", "cxt", "gen", "schema", "data", "it", "items", "valid", "validateItems", "from", "i", "exports", "unevaluatedProperties_1", "unevaluatedItems_1", "unevaluated", "exports", "exports", "core_1", "validation_1", "applicator_1", "dynamic_1", "next_1", "unevaluated_1", "format_1", "metadata_1", "draft2020Vocabularies", "exports", "require_schema", "__commonJSMin", "exports", "module", "require_applicator", "__commonJSMin", "exports", "module", "require_unevaluated", "__commonJSMin", "exports", "module", "require_content", "__commonJSMin", "exports", "module", "require_core", "__commonJSMin", "exports", "module", "require_format_annotation", "__commonJSMin", "exports", "module", "require_meta_data", "__commonJSMin", "exports", "module", "require_validation", "__commonJSMin", "exports", "module", "metaSchema", "applicator", "unevaluated", "content", "core", "format", "metadata", "validation", "META_SUPPORT_DATA", "addMetaSchema2020", "$data", "with$data", "sch", "ajv", "exports", "core_1", "draft2020_1", "discriminator_1", "json_schema_2020_12_1", "META_SCHEMA_ID", "Ajv2020", "opts", "v", "$data", "meta", "exports", "module", "validate_1", "codegen_1", "validation_error_1", "ref_error_1", "require_apiDeclaration", "__commonJSMin", "exports", "module", "require_schema", "__commonJSMin", "exports", "module", "require_schema", "__commonJSMin", "exports", "module", "require_schema", "__commonJSMin", "exports", "module", "exports", "module", "require_schema", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "util", "ono", "AjvDraft4", "Ajv", "openapi", "validateSchema", "api", "ajv", "schema", "initializeAjv", "schemaDynamicRef", "err", "message", "formatAjvError", "draft04", "opts", "errors", "indent", "error", "require_lib", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "require_spec", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "util", "ono", "swaggerMethods", "primitiveTypes", "schemaTypes", "validateSpec", "api", "paths", "operationIds", "pathName", "path", "pathId", "validatePath", "definitions", "definitionName", "definition", "definitionId", "validateRequiredPropertiesExist", "operationName", "operation", "operationId", "declaredOperationId", "validateParameters", "responses", "responseName", "response", "responseId", "validateResponse", "pathParams", "operationParams", "checkForDuplicates", "e", "params", "combinedParams", "value", "param", "validateBodyParameters", "validatePathParameters", "validateParameterTypes", "bodyParams", "formParams", "placeholders", "j", "match", "parameterId", "schema", "validTypes", "validateSchema", "formData", "urlEncoded", "consume", "i", "outer", "inner", "code", "headers", "headerName", "header", "headerId", "schemaId", "collectProperties", "schemaObj", "props", "property", "parent", "requiredProperty", "dew", "_dewExec", "exports", "process", "cachedSetTimeout", "cachedClearTimeout", "defaultSetTimout", "defaultClearTimeout", "e", "runTimeout", "fun", "_global", "runClearTimeout", "marker", "queue", "draining", "currentQueue", "queueIndex", "cleanUpNextTick", "drainQueue", "timeout", "len", "args", "i", "Item", "array", "noop", "name", "dir", "init_chunk_2eac56ff", "__esmMin", "init_dirname", "init_buffer", "init_process", "dew", "_dewExec", "exports$1", "process$1", "process", "assertPath", "path", "normalizeStringPosix", "allowAboveRoot", "res", "lastSegmentLength", "lastSlash", "dots", "code", "i", "lastSlashIndex", "_format", "sep", "pathObject", "dir", "base", "posix", "resolvedPath", "resolvedAbsolute", "cwd", "isAbsolute", "trailingSeparator", "joined", "arg", "from", "to", "fromStart", "fromEnd", "fromLen", "toStart", "toEnd", "toLen", "length", "lastCommonSep", "fromCode", "toCode", "out", "hasRoot", "end", "matchedSlash", "ext", "start", "extIdx", "firstNonSlashEnd", "startDot", "startPart", "preDotState", "ret", "exports", "init_chunk_23dbec7b", "__esmMin", "init_dirname", "init_buffer", "init_process", "init_chunk_2eac56ff", "path_exports", "__export", "_makeLong", "basename", "exports", "delimiter", "dirname", "extname", "format", "isAbsolute", "join", "normalize", "parse", "posix", "relative", "resolve", "sep", "win32", "init_path", "__esmMin", "init_dirname", "init_buffer", "init_process", "init_chunk_23dbec7b", "init_chunk_2eac56ff", "require_convert_path_to_posix", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__importDefault", "mod", "convertPathToPosix", "path_1", "filePath", "_a", "_b", "_c", "_d", "_e", "require_is_windows", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "isWindowsConst", "isWindows", "require_url", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__createBinding", "o", "m", "k", "k2", "desc", "__setModuleDefault", "v", "__importStar", "mod", "result", "__importDefault", "resolve", "cwd", "getProtocol", "getExtension", "stripQuery", "getHash", "stripHash", "isHttp", "isFileSystemPath", "fromFileSystemPath", "toFileSystemPath", "safePointerToPath", "relative", "convert_path_to_posix_1", "path_1", "forwardSlashPattern", "protocolPattern", "jsonPointerSlash", "jsonPointerTilde", "path_2", "is_windows_1", "urlEncodePatterns", "urlDecodePatterns", "parse", "u", "from", "to", "_a", "fromUrl", "resolvedUrl", "endSpaces", "pathname", "search", "hash", "path", "process_exports", "lastChar", "match", "lastDot", "queryIndex", "hashIndex", "protocol", "projectDir", "upperPath", "posixUpper", "hasProjectDir", "hasProjectUri", "isAbsolutePath", "pattern", "keepFileProtocol", "i", "isFileUrl", "pointer", "value", "fromDir", "toPath", "require_errors", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "isHandledError", "normalizeError", "ono_1", "url_js_1", "JSONParserError", "message", "source", "JSONParserErrorGroup", "_JSONParserErrorGroup", "parser", "errors", "$ref", "ParserError", "UnmatchedParserError", "ResolverError", "ex", "UnmatchedResolverError", "MissingPointerError", "token", "path", "TimeoutError", "timeout", "InvalidPointerError", "pointer", "err", "require_pointer", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__createBinding", "o", "m", "k", "k2", "desc", "__setModuleDefault", "v", "__importStar", "mod", "result", "__importDefault", "ref_js_1", "url", "errors_js_1", "slashes", "tildes", "escapedSlash", "escapedTilde", "safeDecodeURIComponent", "encodedURIComponent", "e", "Pointer", "_Pointer", "$ref", "path", "friendlyPath", "obj", "options", "pathFromRoot", "tokens", "unwrapOrThrow", "i", "resolveIf$Ref", "isRootPath", "token", "didFindSubstringSlashMatch", "j", "joinedToken", "value", "setValue", "originalPath", "pointer", "split", "base", "$refPath", "resolved", "require_ref", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__importDefault", "mod", "pointer_js_1", "errors_js_1", "url_js_1", "$Ref", "_$Ref", "$refs", "err", "existingErrors", "footprint", "path", "options", "e", "_a", "friendlyPath", "pathFromRoot", "pointer", "value", "$ref", "resolvedValue", "merged", "key", "require_refs", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__createBinding", "o", "m", "k", "k2", "desc", "__setModuleDefault", "v", "__importStar", "mod", "result", "__importDefault", "ono_1", "ref_js_1", "url", "convert_path_to_posix_1", "$Refs", "types", "getPaths", "path", "$refs", "obj", "options", "e", "value", "absPath", "withoutHash", "$ref", "pathFromRoot", "paths", "key", "require_plugins", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "all", "filter", "sort", "run", "plugins", "key", "method", "file", "plugin", "getResult", "a", "b", "$refs", "lastError", "index", "resolve", "reject", "runNextPlugin", "result", "callback", "onSuccess", "onError", "e", "err", "error", "obj", "prop", "value", "require_parse", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__createBinding", "o", "m", "k", "k2", "desc", "__setModuleDefault", "v", "__importStar", "mod", "result", "ono_1", "url", "plugins", "errors_js_1", "parse", "path", "$refs", "options", "hashIndex", "hash", "$ref", "file", "resolver", "readFile", "parser", "parseFile", "err", "resolvers", "allParsers", "filteredParsers", "parsers", "isEmpty", "value", "Buffer", "require_json", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "errors_js_1", "file", "data", "Buffer", "e", "firstCurlyBrace", "require_yaml", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__importDefault", "mod", "errors_js_1", "js_yaml_1", "js_yaml_2", "file", "data", "Buffer", "e", "require_text", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "errors_js_1", "TEXT_REGEXP", "file", "Buffer", "require_binary", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "BINARY_REGEXP", "file", "Buffer", "empty_exports", "__export", "empty_default", "init_empty", "__esmMin", "init_dirname", "init_buffer", "init_process", "require_file", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__createBinding", "o", "m", "k", "k2", "desc", "__setModuleDefault", "v", "__importStar", "mod", "result", "__importDefault", "fs_1", "ono_1", "url", "errors_js_1", "file", "path", "err", "require_http", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__createBinding", "o", "m", "k", "k2", "desc", "__setModuleDefault", "v", "__importStar", "mod", "result", "ono_1", "url", "errors_js_1", "file", "u", "download", "httpOptions", "_redirects", "redirects", "res", "get", "redirectTo", "buf", "Buffer", "err", "controller", "timeoutId", "response", "require_options", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__importDefault", "mod", "json_js_1", "yaml_js_1", "text_js_1", "binary_js_1", "file_js_1", "http_js_1", "getJsonSchemaRefParserDefaultOptions", "getNewOptions", "options", "newOptions", "merge", "target", "source", "isMergeable", "keys", "key", "i", "sourceSetting", "targetSetting", "val", "require_normalize_args", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "normalizeArgs", "options_js_1", "_args", "path", "schema", "options", "callback", "args", "e", "require_resolve_external", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__createBinding", "o", "m", "k", "k2", "desc", "__setModuleDefault", "v", "__importStar", "mod", "result", "__importDefault", "ref_js_1", "pointer_js_1", "parse_js_1", "url", "errors_js_1", "resolveExternal", "parser", "options", "_a", "promises", "crawl", "e", "obj", "path", "$refs", "seen", "external", "resolve$Ref", "keys", "key", "keyPath", "value", "$ref", "shouldResolveOnCwd", "resolvedPath", "withoutHash", "ref", "err", "require_bundle", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__createBinding", "o", "m", "k", "k2", "desc", "__setModuleDefault", "v", "__importStar", "mod", "result", "__importDefault", "ref_js_1", "pointer_js_1", "url", "bundle", "parser", "options", "inventory", "crawl", "remap", "parent", "key", "path", "pathFromRoot", "indirections", "$refs", "obj", "inventory$Ref", "keys", "a", "b", "keyPath", "keyPathFromRoot", "value", "$refParent", "$refKey", "$ref", "$refPath", "pointer", "depth", "file", "hash", "external", "extended", "existingEntry", "findInInventory", "removeFromInventory", "aDefinitionsIndex", "bDefinitionsIndex", "entry", "index", "require_dereference", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__createBinding", "o", "m", "k", "k2", "desc", "__setModuleDefault", "v", "__importStar", "mod", "result", "__importDefault", "ref_js_1", "pointer_js_1", "ono_1", "url", "errors_1", "dereference", "parser", "options", "start", "dereferenced", "crawl", "obj", "path", "pathFromRoot", "parents", "processedObjects", "dereferencedCache", "$refs", "startTime", "_a", "derefOptions", "isExcludedPath", "dereference$Ref", "key", "keyPath", "keyPathFromRoot", "value", "circular", "foundCircularReference", "$ref", "_b", "shouldResolveOnCwd", "$refPath", "cache", "refKeys", "extraKeys", "pointer", "directCircular", "dereferencedValue", "dereferencedObject", "require_next", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "makeNext", "process_exports", "f", "require_maybe", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__importDefault", "mod", "maybe", "next_js_1", "cb", "promise", "result", "err", "require_lib", "__commonJSMin", "exports", "init_dirname", "init_buffer", "init_process", "__createBinding", "o", "m", "k", "k2", "desc", "__setModuleDefault", "v", "__importStar", "mod", "result", "__importDefault", "refs_js_1", "parse_js_1", "normalize_args_js_1", "resolve_external_js_1", "bundle_js_1", "dereference_js_1", "url", "errors_js_1", "ono_1", "maybe_js_1", "options_js_1", "$RefParser", "_$RefParser", "args", "promise", "err", "pathType", "params", "port", "$ref", "Buffer", "parser", "finalize", "instance", "require_options", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "getJsonSchemaRefParserDefaultOptions", "schemaValidator", "specValidator", "ParserOptions", "merge", "target", "source", "isMergeable", "keys", "key", "i", "sourceSetting", "targetSetting", "val", "_options", "defaultOptions", "options", "require_next", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "makeNext", "process_exports", "f", "require_maybe", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "next", "cb", "promise", "result", "err", "require_lib", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "validateSchema", "validateSpec", "normalizeArgs", "util", "Options", "maybe", "ono", "$RefParser", "dereference", "supported31Versions", "supported30Versions", "supportedVersions", "SwaggerParser", "path", "api", "options", "callback", "args", "schema", "err", "me", "circular$RefOption", "defaultExport", "require_parser", "__commonJSMin", "exports", "module", "init_dirname", "init_buffer", "init_process", "form", "editors", "analytics", "ono", "SwaggerParser", "swaggerParser", "counters", "parser", "event", "parseSwagger", "options", "method", "api", "results", "key", "err", "init_dirname", "init_buffer", "init_process", "form", "querystring", "dropdowns", "editors", "samples", "parser", "analytics"]
     }
    diff --git a/package-lock.json b/package-lock.json
    index 18c8b7fe..7733d754 100644
    --- a/package-lock.json
    +++ b/package-lock.json
    @@ -1,6 +1,6 @@
     {
       "name": "@apidevtools/swagger-parser",
    -  "version": "10.1.0",
    +  "version": "10.1.1",
       "lockfileVersion": 3,
       "requires": true,
       "packages": {
    diff --git a/package.json b/package.json
    index 8697e688..b1669d17 100644
    --- a/package.json
    +++ b/package.json
    @@ -1,6 +1,6 @@
     {
       "name": "@apidevtools/swagger-parser",
    -  "version": "10.1.0",
    +  "version": "10.1.1",
       "description": "Swagger 2.0 and OpenAPI 3.0 parser and validator for Node and browsers",
       "keywords": [
         "swagger",