@tencent-ai/codebuddy-code 0.0.1-beta.20 → 0.0.1-beta.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/node/index.js CHANGED
@@ -18,6 +18,7 @@ export * from './git';
18
18
  export * from './memory';
19
19
  export * from './trace';
20
20
  export * from './settings';
21
+ export * from './mcp';
21
22
  export * from './update';
22
23
  export * from './client';
23
24
  export * from './shortcut';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tencent-ai/codebuddy-code",
3
- "version": "0.0.1-beta.20",
3
+ "version": "0.0.1-beta.21",
4
4
  "description": "Use CodeBuddy, Tencent's AI assistant, right from your terminal. CodeBuddy can understand your codebase, edit files, run terminal commands, and handle entire workflows for you.",
5
5
  "main": "lib/node/index.js",
6
6
  "typings": "lib/node/index.d.ts",
package/product.json CHANGED
@@ -788,6 +788,6 @@
788
788
  "description": "tool-websearch-description"
789
789
  }
790
790
  ],
791
- "commit": "5b563236fe2da57cba759c976cbb1f6617e694da",
792
- "date": "2025-08-21T08:41:22.274Z"
791
+ "commit": "c88a29cd70907e8839562fea577011c35662515e",
792
+ "date": "2025-08-22T03:05:33.465Z"
793
793
  }
@@ -1 +0,0 @@
1
- exports.id=174,exports.ids=[174],exports.modules={1572:(e,r,t)=>{"use strict";var a=t(2707);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:a.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:a.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},2707:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},2862:function(e,r){!function(e){"use strict";function merge(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];if(r.length>1){r[0]=r[0].slice(0,-1);for(var a=r.length-1,s=1;s<a;++s)r[s]=r[s].slice(1,-1);return r[a]=r[a].slice(1),r.join("")}return r[0]}function subexp(e){return"(?:"+e+")"}function typeOf(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function toUpperCase(e){return e.toUpperCase()}function toArray(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function assign(e,r){var t=e;if(r)for(var a in r)t[a]=r[a];return t}function buildExps(e){var r="[A-Za-z]",t="[0-9]",a=merge(t,"[A-Fa-f]"),s=subexp(subexp("%[EFef]"+a+"%"+a+a+"%"+a+a)+"|"+subexp("%[89A-Fa-f]"+a+"%"+a+a)+"|"+subexp("%"+a+a)),o="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",i=merge("[\\:\\/\\?\\#\\[\\]\\@]",o),n=e?"[\\uE000-\\uF8FF]":"[]",l=merge(r,t,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),u=subexp(r+merge(r,t,"[\\+\\-\\.]")+"*"),c=subexp(subexp(s+"|"+merge(l,o,"[\\:]"))+"*"),h=(subexp(subexp("25[0-5]")+"|"+subexp("2[0-4]"+t)+"|"+subexp("1"+t+t)+"|"+subexp("[1-9]"+t)+"|"+t),subexp(subexp("25[0-5]")+"|"+subexp("2[0-4]"+t)+"|"+subexp("1"+t+t)+"|"+subexp("0?[1-9]"+t)+"|0?0?"+t)),p=subexp(h+"\\."+h+"\\."+h+"\\."+h),d=subexp(a+"{1,4}"),m=subexp(subexp(d+"\\:"+d)+"|"+p),f=subexp(subexp(d+"\\:")+"{6}"+m),v=subexp("\\:\\:"+subexp(d+"\\:")+"{5}"+m),g=subexp(subexp(d)+"?\\:\\:"+subexp(d+"\\:")+"{4}"+m),y=subexp(subexp(subexp(d+"\\:")+"{0,1}"+d)+"?\\:\\:"+subexp(d+"\\:")+"{3}"+m),P=subexp(subexp(subexp(d+"\\:")+"{0,2}"+d)+"?\\:\\:"+subexp(d+"\\:")+"{2}"+m),E=subexp(subexp(subexp(d+"\\:")+"{0,3}"+d)+"?\\:\\:"+d+"\\:"+m),b=subexp(subexp(subexp(d+"\\:")+"{0,4}"+d)+"?\\:\\:"+m),w=subexp(subexp(subexp(d+"\\:")+"{0,5}"+d)+"?\\:\\:"+d),S=subexp(subexp(subexp(d+"\\:")+"{0,6}"+d)+"?\\:\\:"),x=subexp([f,v,g,y,P,E,b,w,S].join("|")),_=subexp(subexp(l+"|"+s)+"+"),R=(subexp(x+"\\%25"+_),subexp(x+subexp("\\%25|\\%(?!"+a+"{2})")+_)),F=subexp("[vV]"+a+"+\\."+merge(l,o,"[\\:]")+"+"),$=subexp("\\["+subexp(R+"|"+x+"|"+F)+"\\]"),D=subexp(subexp(s+"|"+merge(l,o))+"*"),j=subexp($+"|"+p+"(?!"+D+")|"+D),O=subexp(t+"*"),C=subexp(subexp(c+"@")+"?"+j+subexp("\\:"+O)+"?"),I=subexp(s+"|"+merge(l,o,"[\\:\\@]")),A=subexp(I+"*"),k=subexp(I+"+"),z=subexp(subexp(s+"|"+merge(l,o,"[\\@]"))+"+"),L=subexp(subexp("\\/"+A)+"*"),N=subexp("\\/"+subexp(k+L)+"?"),T=subexp(z+L),U=subexp(k+L),q="(?!"+I+")",Q=(subexp(L+"|"+N+"|"+T+"|"+U+"|"+q),subexp(subexp(I+"|"+merge("[\\/\\?]",n))+"*")),V=subexp(subexp(I+"|[\\/\\?]")+"*"),H=subexp(subexp("\\/\\/"+C+L)+"|"+N+"|"+U+"|"+q),M=subexp(u+"\\:"+H+subexp("\\?"+Q)+"?"+subexp("\\#"+V)+"?"),K=subexp(subexp("\\/\\/"+C+L)+"|"+N+"|"+T+"|"+q),J=subexp(K+subexp("\\?"+Q)+"?"+subexp("\\#"+V)+"?");return subexp(M+"|"+J),subexp(u+"\\:"+H+subexp("\\?"+Q)+"?"),subexp(subexp("\\/\\/("+subexp("("+c+")@")+"?("+j+")"+subexp("\\:("+O+")")+"?)")+"?("+L+"|"+N+"|"+U+"|"+q+")"),subexp("\\?("+Q+")"),subexp("\\#("+V+")"),subexp(subexp("\\/\\/("+subexp("("+c+")@")+"?("+j+")"+subexp("\\:("+O+")")+"?)")+"?("+L+"|"+N+"|"+T+"|"+q+")"),subexp("\\?("+Q+")"),subexp("\\#("+V+")"),subexp(subexp("\\/\\/("+subexp("("+c+")@")+"?("+j+")"+subexp("\\:("+O+")")+"?)")+"?("+L+"|"+N+"|"+U+"|"+q+")"),subexp("\\?("+Q+")"),subexp("\\#("+V+")"),subexp("("+c+")@"),subexp("\\:("+O+")"),{NOT_SCHEME:new RegExp(merge("[^]",r,t,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(merge("[^\\%\\:]",l,o),"g"),NOT_HOST:new RegExp(merge("[^\\%\\[\\]\\:]",l,o),"g"),NOT_PATH:new RegExp(merge("[^\\%\\/\\:\\@]",l,o),"g"),NOT_PATH_NOSCHEME:new RegExp(merge("[^\\%\\/\\@]",l,o),"g"),NOT_QUERY:new RegExp(merge("[^\\%]",l,o,"[\\:\\@\\/\\?]",n),"g"),NOT_FRAGMENT:new RegExp(merge("[^\\%]",l,o,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(merge("[^]",l,o),"g"),UNRESERVED:new RegExp(l,"g"),OTHER_CHARS:new RegExp(merge("[^\\%]",l,i),"g"),PCT_ENCODED:new RegExp(s,"g"),IPV4ADDRESS:new RegExp("^("+p+")$"),IPV6ADDRESS:new RegExp("^\\[?("+x+")"+subexp(subexp("\\%25|\\%(?!"+a+"{2})")+"("+_+")")+"?\\]?$")}}var r=buildExps(!1),t=buildExps(!0),a=function(){function sliceIterator(e,r){var t=[],a=!0,s=!1,o=void 0;try{for(var i,n=e[Symbol.iterator]();!(a=(i=n.next()).done)&&(t.push(i.value),!r||t.length!==r);a=!0);}catch(e){s=!0,o=e}finally{try{!a&&n.return&&n.return()}finally{if(s)throw o}}return t}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return sliceIterator(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),toConsumableArray=function(e){if(Array.isArray(e)){for(var r=0,t=Array(e.length);r<e.length;r++)t[r]=e[r];return t}return Array.from(e)},s=2147483647,o=36,i=1,n=26,l=38,u=700,c=72,h=128,p="-",d=/^xn--/,m=/[^\0-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,v={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},g=o-i,y=Math.floor,P=String.fromCharCode;function error$1(e){throw new RangeError(v[e])}function map(e,r){for(var t=[],a=e.length;a--;)t[a]=r(e[a]);return t}function mapDomain(e,r){var t=e.split("@"),a="";return t.length>1&&(a=t[0]+"@",e=t[1]),a+map((e=e.replace(f,".")).split("."),r).join(".")}function ucs2decode(e){for(var r=[],t=0,a=e.length;t<a;){var s=e.charCodeAt(t++);if(s>=55296&&s<=56319&&t<a){var o=e.charCodeAt(t++);56320==(64512&o)?r.push(((1023&s)<<10)+(1023&o)+65536):(r.push(s),t--)}else r.push(s)}return r}var E=function basicToDigit(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:o},b=function digitToBasic(e,r){return e+22+75*(e<26)-((0!=r)<<5)},w=function adapt(e,r,t){var a=0;for(e=t?y(e/u):e>>1,e+=y(e/r);e>g*n>>1;a+=o)e=y(e/g);return y(a+(g+1)*e/(e+l))},S=function decode(e){var r=[],t=e.length,a=0,l=h,u=c,d=e.lastIndexOf(p);d<0&&(d=0);for(var m=0;m<d;++m)e.charCodeAt(m)>=128&&error$1("not-basic"),r.push(e.charCodeAt(m));for(var f=d>0?d+1:0;f<t;){for(var v=a,g=1,P=o;;P+=o){f>=t&&error$1("invalid-input");var b=E(e.charCodeAt(f++));(b>=o||b>y((s-a)/g))&&error$1("overflow"),a+=b*g;var S=P<=u?i:P>=u+n?n:P-u;if(b<S)break;var x=o-S;g>y(s/x)&&error$1("overflow"),g*=x}var _=r.length+1;u=w(a-v,_,0==v),y(a/_)>s-l&&error$1("overflow"),l+=y(a/_),a%=_,r.splice(a++,0,l)}return String.fromCodePoint.apply(String,r)},x=function encode(e){var r=[],t=(e=ucs2decode(e)).length,a=h,l=0,u=c,d=!0,m=!1,f=void 0;try{for(var v,g=e[Symbol.iterator]();!(d=(v=g.next()).done);d=!0){var E=v.value;E<128&&r.push(P(E))}}catch(e){m=!0,f=e}finally{try{!d&&g.return&&g.return()}finally{if(m)throw f}}var S=r.length,x=S;for(S&&r.push(p);x<t;){var _=s,R=!0,F=!1,$=void 0;try{for(var D,j=e[Symbol.iterator]();!(R=(D=j.next()).done);R=!0){var O=D.value;O>=a&&O<_&&(_=O)}}catch(e){F=!0,$=e}finally{try{!R&&j.return&&j.return()}finally{if(F)throw $}}var C=x+1;_-a>y((s-l)/C)&&error$1("overflow"),l+=(_-a)*C,a=_;var I=!0,A=!1,k=void 0;try{for(var z,L=e[Symbol.iterator]();!(I=(z=L.next()).done);I=!0){var N=z.value;if(N<a&&++l>s&&error$1("overflow"),N==a){for(var T=l,U=o;;U+=o){var q=U<=u?i:U>=u+n?n:U-u;if(T<q)break;var Q=T-q,V=o-q;r.push(P(b(q+Q%V,0))),T=y(Q/V)}r.push(P(b(T,0))),u=w(l,C,x==S),l=0,++x}}}catch(e){A=!0,k=e}finally{try{!I&&L.return&&L.return()}finally{if(A)throw k}}++l,++a}return r.join("")},_=function toUnicode(e){return mapDomain(e,(function(e){return d.test(e)?S(e.slice(4).toLowerCase()):e}))},R=function toASCII(e){return mapDomain(e,(function(e){return m.test(e)?"xn--"+x(e):e}))},F={version:"2.1.0",ucs2:{decode:ucs2decode,encode:function ucs2encode(e){return String.fromCodePoint.apply(String,toConsumableArray(e))}},decode:S,encode:x,toASCII:R,toUnicode:_},$={};function pctEncChar(e){var r=e.charCodeAt(0);return r<16?"%0"+r.toString(16).toUpperCase():r<128?"%"+r.toString(16).toUpperCase():r<2048?"%"+(r>>6|192).toString(16).toUpperCase()+"%"+(63&r|128).toString(16).toUpperCase():"%"+(r>>12|224).toString(16).toUpperCase()+"%"+(r>>6&63|128).toString(16).toUpperCase()+"%"+(63&r|128).toString(16).toUpperCase()}function pctDecChars(e){for(var r="",t=0,a=e.length;t<a;){var s=parseInt(e.substr(t+1,2),16);if(s<128)r+=String.fromCharCode(s),t+=3;else if(s>=194&&s<224){if(a-t>=6){var o=parseInt(e.substr(t+4,2),16);r+=String.fromCharCode((31&s)<<6|63&o)}else r+=e.substr(t,6);t+=6}else if(s>=224){if(a-t>=9){var i=parseInt(e.substr(t+4,2),16),n=parseInt(e.substr(t+7,2),16);r+=String.fromCharCode((15&s)<<12|(63&i)<<6|63&n)}else r+=e.substr(t,9);t+=9}else r+=e.substr(t,3),t+=3}return r}function _normalizeComponentEncoding(e,r){function decodeUnreserved(e){var t=pctDecChars(e);return t.match(r.UNRESERVED)?t:e}return e.scheme&&(e.scheme=String(e.scheme).replace(r.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(r.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(r.PCT_ENCODED,decodeUnreserved).replace(r.NOT_USERINFO,pctEncChar).replace(r.PCT_ENCODED,toUpperCase)),void 0!==e.host&&(e.host=String(e.host).replace(r.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(r.NOT_HOST,pctEncChar).replace(r.PCT_ENCODED,toUpperCase)),void 0!==e.path&&(e.path=String(e.path).replace(r.PCT_ENCODED,decodeUnreserved).replace(e.scheme?r.NOT_PATH:r.NOT_PATH_NOSCHEME,pctEncChar).replace(r.PCT_ENCODED,toUpperCase)),void 0!==e.query&&(e.query=String(e.query).replace(r.PCT_ENCODED,decodeUnreserved).replace(r.NOT_QUERY,pctEncChar).replace(r.PCT_ENCODED,toUpperCase)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(r.PCT_ENCODED,decodeUnreserved).replace(r.NOT_FRAGMENT,pctEncChar).replace(r.PCT_ENCODED,toUpperCase)),e}function _stripLeadingZeros(e){return e.replace(/^0*(.*)/,"$1")||"0"}function _normalizeIPv4(e,r){var t=e.match(r.IPV4ADDRESS)||[],s=a(t,2)[1];return s?s.split(".").map(_stripLeadingZeros).join("."):e}function _normalizeIPv6(e,r){var t=e.match(r.IPV6ADDRESS)||[],s=a(t,3),o=s[1],i=s[2];if(o){for(var n=o.toLowerCase().split("::").reverse(),l=a(n,2),u=l[0],c=l[1],h=c?c.split(":").map(_stripLeadingZeros):[],p=u.split(":").map(_stripLeadingZeros),d=r.IPV4ADDRESS.test(p[p.length-1]),m=d?7:8,f=p.length-m,v=Array(m),g=0;g<m;++g)v[g]=h[g]||p[f+g]||"";d&&(v[m-1]=_normalizeIPv4(v[m-1],r));var y=v.reduce((function(e,r,t){if(!r||"0"===r){var a=e[e.length-1];a&&a.index+a.length===t?a.length++:e.push({index:t,length:1})}return e}),[]).sort((function(e,r){return r.length-e.length}))[0],P=void 0;if(y&&y.length>1){var E=v.slice(0,y.index),b=v.slice(y.index+y.length);P=E.join(":")+"::"+b.join(":")}else P=v.join(":");return i&&(P+="%"+i),P}return e}var D=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,j=void 0==="".match(/(){0}/)[1];function parse(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s={},o=!1!==a.iri?t:r;"suffix"===a.reference&&(e=(a.scheme?a.scheme+":":"")+"//"+e);var i=e.match(D);if(i){j?(s.scheme=i[1],s.userinfo=i[3],s.host=i[4],s.port=parseInt(i[5],10),s.path=i[6]||"",s.query=i[7],s.fragment=i[8],isNaN(s.port)&&(s.port=i[5])):(s.scheme=i[1]||void 0,s.userinfo=-1!==e.indexOf("@")?i[3]:void 0,s.host=-1!==e.indexOf("//")?i[4]:void 0,s.port=parseInt(i[5],10),s.path=i[6]||"",s.query=-1!==e.indexOf("?")?i[7]:void 0,s.fragment=-1!==e.indexOf("#")?i[8]:void 0,isNaN(s.port)&&(s.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?i[4]:void 0)),s.host&&(s.host=_normalizeIPv6(_normalizeIPv4(s.host,o),o)),void 0!==s.scheme||void 0!==s.userinfo||void 0!==s.host||void 0!==s.port||s.path||void 0!==s.query?void 0===s.scheme?s.reference="relative":void 0===s.fragment?s.reference="absolute":s.reference="uri":s.reference="same-document",a.reference&&"suffix"!==a.reference&&a.reference!==s.reference&&(s.error=s.error||"URI is not a "+a.reference+" reference.");var n=$[(a.scheme||s.scheme||"").toLowerCase()];if(a.unicodeSupport||n&&n.unicodeSupport)_normalizeComponentEncoding(s,o);else{if(s.host&&(a.domainHost||n&&n.domainHost))try{s.host=F.toASCII(s.host.replace(o.PCT_ENCODED,pctDecChars).toLowerCase())}catch(e){s.error=s.error||"Host's domain name can not be converted to ASCII via punycode: "+e}_normalizeComponentEncoding(s,r)}n&&n.parse&&n.parse(s,a)}else s.error=s.error||"URI can not be parsed.";return s}function _recomposeAuthority(e,a){var s=!1!==a.iri?t:r,o=[];return void 0!==e.userinfo&&(o.push(e.userinfo),o.push("@")),void 0!==e.host&&o.push(_normalizeIPv6(_normalizeIPv4(String(e.host),s),s).replace(s.IPV6ADDRESS,(function(e,r,t){return"["+r+(t?"%25"+t:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(o.push(":"),o.push(String(e.port))),o.length?o.join(""):void 0}var O=/^\.\.?\//,C=/^\/\.(\/|$)/,I=/^\/\.\.(\/|$)/,A=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(e){for(var r=[];e.length;)if(e.match(O))e=e.replace(O,"");else if(e.match(C))e=e.replace(C,"/");else if(e.match(I))e=e.replace(I,"/"),r.pop();else if("."===e||".."===e)e="";else{var t=e.match(A);if(!t)throw new Error("Unexpected dot segment condition");var a=t[0];e=e.slice(a.length),r.push(a)}return r.join("")}function serialize(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=a.iri?t:r,o=[],i=$[(a.scheme||e.scheme||"").toLowerCase()];if(i&&i.serialize&&i.serialize(e,a),e.host)if(s.IPV6ADDRESS.test(e.host));else if(a.domainHost||i&&i.domainHost)try{e.host=a.iri?F.toUnicode(e.host):F.toASCII(e.host.replace(s.PCT_ENCODED,pctDecChars).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(a.iri?"Unicode":"ASCII")+" via punycode: "+r}_normalizeComponentEncoding(e,s),"suffix"!==a.reference&&e.scheme&&(o.push(e.scheme),o.push(":"));var n=_recomposeAuthority(e,a);if(void 0!==n&&("suffix"!==a.reference&&o.push("//"),o.push(n),e.path&&"/"!==e.path.charAt(0)&&o.push("/")),void 0!==e.path){var l=e.path;a.absolutePath||i&&i.absolutePath||(l=removeDotSegments(l)),void 0===n&&(l=l.replace(/^\/\//,"/%2F")),o.push(l)}return void 0!==e.query&&(o.push("?"),o.push(e.query)),void 0!==e.fragment&&(o.push("#"),o.push(e.fragment)),o.join("")}function resolveComponents(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a={};return arguments[3]||(e=parse(serialize(e,t),t),r=parse(serialize(r,t),t)),!(t=t||{}).tolerant&&r.scheme?(a.scheme=r.scheme,a.userinfo=r.userinfo,a.host=r.host,a.port=r.port,a.path=removeDotSegments(r.path||""),a.query=r.query):(void 0!==r.userinfo||void 0!==r.host||void 0!==r.port?(a.userinfo=r.userinfo,a.host=r.host,a.port=r.port,a.path=removeDotSegments(r.path||""),a.query=r.query):(r.path?("/"===r.path.charAt(0)?a.path=removeDotSegments(r.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?a.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+r.path:a.path=r.path:a.path="/"+r.path,a.path=removeDotSegments(a.path)),a.query=r.query):(a.path=e.path,void 0!==r.query?a.query=r.query:a.query=e.query),a.userinfo=e.userinfo,a.host=e.host,a.port=e.port),a.scheme=e.scheme),a.fragment=r.fragment,a}function resolve(e,r,t){var a=assign({scheme:"null"},t);return serialize(resolveComponents(parse(e,a),parse(r,a),a,!0),a)}function normalize(e,r){return"string"==typeof e?e=serialize(parse(e,r),r):"object"===typeOf(e)&&(e=parse(serialize(e,r),r)),e}function equal(e,r,t){return"string"==typeof e?e=serialize(parse(e,t),t):"object"===typeOf(e)&&(e=serialize(e,t)),"string"==typeof r?r=serialize(parse(r,t),t):"object"===typeOf(r)&&(r=serialize(r,t)),e===r}function escapeComponent(e,a){return e&&e.toString().replace(a&&a.iri?t.ESCAPE:r.ESCAPE,pctEncChar)}function unescapeComponent(e,a){return e&&e.toString().replace(a&&a.iri?t.PCT_ENCODED:r.PCT_ENCODED,pctDecChars)}var k={scheme:"http",domainHost:!0,parse:function parse(e,r){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function serialize(e,r){var t="https"===String(e.scheme).toLowerCase();return e.port!==(t?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},z={scheme:"https",domainHost:k.domainHost,parse:k.parse,serialize:k.serialize};function isSecure(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var L={scheme:"ws",domainHost:!0,parse:function parse(e,r){var t=e;return t.secure=isSecure(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t},serialize:function serialize(e,r){if(e.port!==(isSecure(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var t=e.resourceName.split("?"),s=a(t,2),o=s[0],i=s[1];e.path=o&&"/"!==o?o:void 0,e.query=i,e.resourceName=void 0}return e.fragment=void 0,e}},N={scheme:"wss",domainHost:L.domainHost,parse:L.parse,serialize:L.serialize},T={},U="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",q="[0-9A-Fa-f]",Q=subexp(subexp("%[EFef]"+q+"%"+q+q+"%"+q+q)+"|"+subexp("%[89A-Fa-f]"+q+"%"+q+q)+"|"+subexp("%"+q+q)),V="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",H=merge("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),M="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",K=new RegExp(U,"g"),J=new RegExp(Q,"g"),B=new RegExp(merge("[^]",V,"[\\.]",'[\\"]',H),"g"),Z=new RegExp(merge("[^]",U,M),"g"),G=Z;function decodeUnreserved(e){var r=pctDecChars(e);return r.match(K)?r:e}var Y={scheme:"mailto",parse:function parse$$1(e,r){var t=e,a=t.to=t.path?t.path.split(","):[];if(t.path=void 0,t.query){for(var s=!1,o={},i=t.query.split("&"),n=0,l=i.length;n<l;++n){var u=i[n].split("=");switch(u[0]){case"to":for(var c=u[1].split(","),h=0,p=c.length;h<p;++h)a.push(c[h]);break;case"subject":t.subject=unescapeComponent(u[1],r);break;case"body":t.body=unescapeComponent(u[1],r);break;default:s=!0,o[unescapeComponent(u[0],r)]=unescapeComponent(u[1],r)}}s&&(t.headers=o)}t.query=void 0;for(var d=0,m=a.length;d<m;++d){var f=a[d].split("@");if(f[0]=unescapeComponent(f[0]),r.unicodeSupport)f[1]=unescapeComponent(f[1],r).toLowerCase();else try{f[1]=F.toASCII(unescapeComponent(f[1],r).toLowerCase())}catch(e){t.error=t.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}a[d]=f.join("@")}return t},serialize:function serialize$$1(e,r){var t=e,a=toArray(e.to);if(a){for(var s=0,o=a.length;s<o;++s){var i=String(a[s]),n=i.lastIndexOf("@"),l=i.slice(0,n).replace(J,decodeUnreserved).replace(J,toUpperCase).replace(B,pctEncChar),u=i.slice(n+1);try{u=r.iri?F.toUnicode(u):F.toASCII(unescapeComponent(u,r).toLowerCase())}catch(e){t.error=t.error||"Email address's domain name can not be converted to "+(r.iri?"Unicode":"ASCII")+" via punycode: "+e}a[s]=l+"@"+u}t.path=a.join(",")}var c=e.headers=e.headers||{};e.subject&&(c.subject=e.subject),e.body&&(c.body=e.body);var h=[];for(var p in c)c[p]!==T[p]&&h.push(p.replace(J,decodeUnreserved).replace(J,toUpperCase).replace(Z,pctEncChar)+"="+c[p].replace(J,decodeUnreserved).replace(J,toUpperCase).replace(G,pctEncChar));return h.length&&(t.query=h.join("&")),t}},W=/^([^\:]+)\:(.*)/,X={scheme:"urn",parse:function parse$$1(e,r){var t=e.path&&e.path.match(W),a=e;if(t){var s=r.scheme||a.scheme||"urn",o=t[1].toLowerCase(),i=t[2],n=s+":"+(r.nid||o),l=$[n];a.nid=o,a.nss=i,a.path=void 0,l&&(a=l.parse(a,r))}else a.error=a.error||"URN can not be parsed.";return a},serialize:function serialize$$1(e,r){var t=r.scheme||e.scheme||"urn",a=e.nid,s=t+":"+(r.nid||a),o=$[s];o&&(e=o.serialize(e,r));var i=e,n=e.nss;return i.path=(a||r.nid)+":"+n,i}},ee=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,re={scheme:"urn:uuid",parse:function parse(e,r){var t=e;return t.uuid=t.nss,t.nss=void 0,r.tolerant||t.uuid&&t.uuid.match(ee)||(t.error=t.error||"UUID is not valid."),t},serialize:function serialize(e,r){var t=e;return t.nss=(e.uuid||"").toLowerCase(),t}};$[k.scheme]=k,$[z.scheme]=z,$[L.scheme]=L,$[N.scheme]=N,$[Y.scheme]=Y,$[X.scheme]=X,$[re.scheme]=re,e.SCHEMES=$,e.pctEncChar=pctEncChar,e.pctDecChars=pctDecChars,e.parse=parse,e.removeDotSegments=removeDotSegments,e.serialize=serialize,e.resolveComponents=resolveComponents,e.resolve=resolve,e.normalize=normalize,e.equal=equal,e.escapeComponent=escapeComponent,e.unescapeComponent=unescapeComponent,Object.defineProperty(e,"__esModule",{value:!0})}(r)},4243:e=>{"use strict";e.exports=function generate_format(e,r,t){var a=" ",s=e.level,o=e.dataLevel,i=e.schema[r],n=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(o||"");if(!1===e.opts.format)return u&&(a+=" if (true) { "),a;var h,p=e.opts.$data&&i&&i.$data;p?(a+=" var schema"+s+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ",h="schema"+s):h=i;var d=e.opts.unknownFormats,m=Array.isArray(d);if(p){a+=" var "+(f="format"+s)+" = formats["+h+"]; var "+(v="isObject"+s)+" = typeof "+f+" == 'object' && !("+f+" instanceof RegExp) && "+f+".validate; var "+(g="formatType"+s)+" = "+v+" && "+f+".type || 'string'; if ("+v+") { ",e.async&&(a+=" var async"+s+" = "+f+".async; "),a+=" "+f+" = "+f+".validate; } if ( ",p&&(a+=" ("+h+" !== undefined && typeof "+h+" != 'string') || "),a+=" (","ignore"!=d&&(a+=" ("+h+" && !"+f+" ",m&&(a+=" && self._opts.unknownFormats.indexOf("+h+") == -1 "),a+=") || "),a+=" ("+f+" && "+g+" == '"+t+"' && !(typeof "+f+" == 'function' ? ",e.async?a+=" (async"+s+" ? await "+f+"("+c+") : "+f+"("+c+")) ":a+=" "+f+"("+c+") ",a+=" : "+f+".test("+c+"))))) {"}else{var f;if(!(f=e.formats[i])){if("ignore"==d)return e.logger.warn('unknown format "'+i+'" ignored in schema at path "'+e.errSchemaPath+'"'),u&&(a+=" if (true) { "),a;if(m&&d.indexOf(i)>=0)return u&&(a+=" if (true) { "),a;throw new Error('unknown format "'+i+'" is used in schema at path "'+e.errSchemaPath+'"')}var v,g=(v="object"==typeof f&&!(f instanceof RegExp)&&f.validate)&&f.type||"string";if(v){var y=!0===f.async;f=f.validate}if(g!=t)return u&&(a+=" if (true) { "),a;if(y){if(!e.async)throw new Error("async format in sync schema");a+=" if (!(await "+(P="formats"+e.util.getProperty(i)+".validate")+"("+c+"))) { "}else{a+=" if (! ";var P="formats"+e.util.getProperty(i);v&&(P+=".validate"),a+="function"==typeof f?" "+P+"("+c+") ":" "+P+".test("+c+") ",a+=") { "}}var E=E||[];E.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { format: ",a+=p?""+h:""+e.util.toQuotedString(i),a+=" } ",!1!==e.opts.messages&&(a+=" , message: 'should match format \"",a+=p?"' + "+h+" + '":""+e.util.escapeQuotes(i),a+="\"' "),e.opts.verbose&&(a+=" , schema: ",a+=p?"validate.schema"+n:""+e.util.toQuotedString(i),a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),a+=" } "):a+=" {} ";var b=a;return a=E.pop(),!e.compositeRule&&u?e.async?a+=" throw new ValidationError(["+b+"]); ":a+=" validate.errors = ["+b+"]; return false; ":a+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",u&&(a+=" else { "),a}},7916:e=>{"use strict";e.exports=function generate_allOf(e,r,t){var a=" ",s=e.schema[r],o=e.schemaPath+e.util.getProperty(r),i=e.errSchemaPath+"/"+r,n=!e.opts.allErrors,l=e.util.copy(e),u="";l.level++;var c="valid"+l.level,h=l.baseId,p=!0,d=s;if(d)for(var m,f=-1,v=d.length-1;f<v;)m=d[f+=1],(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all))&&(p=!1,l.schema=m,l.schemaPath=o+"["+f+"]",l.errSchemaPath=i+"/"+f,a+=" "+e.validate(l)+" ",l.baseId=h,n&&(a+=" if ("+c+") { ",u+="}"));return n&&(a+=p?" if (true) { ":" "+u.slice(0,-1)+" "),a}},8633:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},10877:e=>{"use strict";e.exports=function generate_contains(e,r,t){var a=" ",s=e.level,o=e.dataLevel,i=e.schema[r],n=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(o||""),h="valid"+s,p="errs__"+s,d=e.util.copy(e);d.level++;var m="valid"+d.level,f="i"+s,v=d.dataLevel=e.dataLevel+1,g="data"+v,y=e.baseId,P=e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all);if(a+="var "+p+" = errors;var "+h+";",P){var E=e.compositeRule;e.compositeRule=d.compositeRule=!0,d.schema=i,d.schemaPath=n,d.errSchemaPath=l,a+=" var "+m+" = false; for (var "+f+" = 0; "+f+" < "+c+".length; "+f+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,f,e.opts.jsonPointers,!0);var b=c+"["+f+"]";d.dataPathArr[v]=f;var w=e.validate(d);d.baseId=y,e.util.varOccurences(w,g)<2?a+=" "+e.util.varReplace(w,g,b)+" ":a+=" var "+g+" = "+b+"; "+w+" ",a+=" if ("+m+") break; } ",e.compositeRule=d.compositeRule=E,a+=" if (!"+m+") {"}else a+=" if ("+c+".length == 0) {";var S=S||[];S.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(a+=" , message: 'should contain a valid item' "),e.opts.verbose&&(a+=" , schema: validate.schema"+n+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),a+=" } "):a+=" {} ";var x=a;return a=S.pop(),!e.compositeRule&&u?e.async?a+=" throw new ValidationError(["+x+"]); ":a+=" validate.errors = ["+x+"]; return false; ":a+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else { ",P&&(a+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "),e.opts.allErrors&&(a+=" } "),a}},17327:(e,r,t)=>{"use strict";function checkDataType(e,r,t,a){var s=a?" !== ":" === ",o=a?" || ":" && ",i=a?"!":"",n=a?"":"!";switch(e){case"null":return r+s+"null";case"array":return i+"Array.isArray("+r+")";case"object":return"("+i+r+o+"typeof "+r+s+'"object"'+o+n+"Array.isArray("+r+"))";case"integer":return"(typeof "+r+s+'"number"'+o+n+"("+r+" % 1)"+o+r+s+r+(t?o+i+"isFinite("+r+")":"")+")";case"number":return"(typeof "+r+s+'"'+e+'"'+(t?o+i+"isFinite("+r+")":"")+")";default:return"typeof "+r+s+'"'+e+'"'}}e.exports={copy:function copy(e,r){for(var t in r=r||{},e)r[t]=e[t];return r},checkDataType,checkDataTypes:function checkDataTypes(e,r,t){if(1===e.length)return checkDataType(e[0],r,t,!0);var a="",s=toHash(e);for(var o in s.array&&s.object&&(a=s.null?"(":"(!"+r+" || ",a+="typeof "+r+' !== "object")',delete s.null,delete s.array,delete s.object),s.number&&delete s.integer,s)a+=(a?" && ":"")+checkDataType(o,r,t,!0);return a},coerceToTypes:function coerceToTypes(e,r){if(Array.isArray(r)){for(var t=[],s=0;s<r.length;s++){var o=r[s];(a[o]||"array"===e&&"array"===o)&&(t[t.length]=o)}if(t.length)return t}else{if(a[r])return[r];if("array"===e&&"array"===r)return["array"]}},toHash,getProperty,escapeQuotes,equal:t(38792),ucs2length:t(50786),varOccurences:function varOccurences(e,r){r+="[^0-9]";var t=e.match(new RegExp(r,"g"));return t?t.length:0},varReplace:function varReplace(e,r,t){return r+="([^0-9])",t=t.replace(/\$/g,"$$$$"),e.replace(new RegExp(r,"g"),t+"$1")},schemaHasRules:function schemaHasRules(e,r){if("boolean"==typeof e)return!e;for(var t in e)if(r[t])return!0},schemaHasRulesExcept:function schemaHasRulesExcept(e,r,t){if("boolean"==typeof e)return!e&&"not"!=t;for(var a in e)if(a!=t&&r[a])return!0},schemaUnknownRules:function schemaUnknownRules(e,r){if("boolean"==typeof e)return;for(var t in e)if(!r[t])return t},toQuotedString,getPathExpr:function getPathExpr(e,r,t,a){return joinPaths(e,t?"'/' + "+r+(a?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):a?"'[' + "+r+" + ']'":"'[\\'' + "+r+" + '\\']'")},getPath:function getPath(e,r,t){var a=toQuotedString(t?"/"+escapeJsonPointer(r):getProperty(r));return joinPaths(e,a)},getData:function getData(e,r,t){var a,s,o,l;if(""===e)return"rootData";if("/"==e[0]){if(!i.test(e))throw new Error("Invalid JSON-pointer: "+e);s=e,o="rootData"}else{if(!(l=e.match(n)))throw new Error("Invalid JSON-pointer: "+e);if(a=+l[1],"#"==(s=l[2])){if(a>=r)throw new Error("Cannot access property/index "+a+" levels up, current level is "+r);return t[r-a]}if(a>r)throw new Error("Cannot access data "+a+" levels up, current level is "+r);if(o="data"+(r-a||""),!s)return o}for(var u=o,c=s.split("/"),h=0;h<c.length;h++){var p=c[h];p&&(u+=" && "+(o+=getProperty(unescapeJsonPointer(p))))}return u},unescapeFragment:function unescapeFragment(e){return unescapeJsonPointer(decodeURIComponent(e))},unescapeJsonPointer,escapeFragment:function escapeFragment(e){return encodeURIComponent(escapeJsonPointer(e))},escapeJsonPointer};var a=toHash(["string","number","integer","boolean","null"]);function toHash(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=!0;return r}var s=/^[a-z$_][a-z$_0-9]*$/i,o=/'|\\/g;function getProperty(e){return"number"==typeof e?"["+e+"]":s.test(e)?"."+e:"['"+escapeQuotes(e)+"']"}function escapeQuotes(e){return e.replace(o,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function toQuotedString(e){return"'"+escapeQuotes(e)+"'"}var i=/^\/(?:[^~]|~0|~1)*$/,n=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function joinPaths(e,r){return'""'==e?r:(e+" + "+r).replace(/([^\\])' \+ '/g,"$1")}function escapeJsonPointer(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function unescapeJsonPointer(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},18354:e=>{"use strict";e.exports=function generate__limitItems(e,r,t){var a,s=" ",o=e.level,i=e.dataLevel,n=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,h="data"+(i||""),p=e.opts.$data&&n&&n.$data;if(p?(s+=" var schema"+o+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",a="schema"+o):a=n,!p&&"number"!=typeof n)throw new Error(r+" must be number");s+="if ( ",p&&(s+=" ("+a+" !== undefined && typeof "+a+" != 'number') || "),s+=" "+h+".length "+("maxItems"==r?">":"<")+" "+a+") { ";var d=r,m=m||[];m.push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(d||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+a+" } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT have ",s+="maxItems"==r?"more":"fewer",s+=" than ",s+=p?"' + "+a+" + '":""+n,s+=" items' "),e.opts.verbose&&(s+=" , schema: ",s+=p?"validate.schema"+l:""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var f=s;return s=m.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+f+"]); ":s+=" validate.errors = ["+f+"]; return false; ":s+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",c&&(s+=" else { "),s}},21131:e=>{"use strict";e.exports=function generate_uniqueItems(e,r,t){var a,s=" ",o=e.level,i=e.dataLevel,n=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,h="data"+(i||""),p="valid"+o,d=e.opts.$data&&n&&n.$data;if(d?(s+=" var schema"+o+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",a="schema"+o):a=n,(n||d)&&!1!==e.opts.uniqueItems){d&&(s+=" var "+p+"; if ("+a+" === false || "+a+" === undefined) "+p+" = true; else if (typeof "+a+" != 'boolean') "+p+" = false; else { "),s+=" var i = "+h+".length , "+p+" = true , j; if (i > 1) { ";var m=e.schema.items&&e.schema.items.type,f=Array.isArray(m);if(!m||"object"==m||"array"==m||f&&(m.indexOf("object")>=0||m.indexOf("array")>=0))s+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+h+"[i], "+h+"[j])) { "+p+" = false; break outer; } } } ";else{s+=" var itemIndices = {}, item; for (;i--;) { var item = "+h+"[i]; ";var v="checkDataType"+(f?"s":"");s+=" if ("+e.util[v](m,"item",e.opts.strictNumbers,!0)+") continue; ",f&&(s+=" if (typeof item == 'string') item = '\"' + item; "),s+=" if (typeof itemIndices[item] == 'number') { "+p+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}s+=" } ",d&&(s+=" } "),s+=" if (!"+p+") { ";var g=g||[];g.push(s),s="",!1!==e.createErrors?(s+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(s+=" , schema: ",s+=d?"validate.schema"+l:""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var y=s;s=g.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+y+"]); ":s+=" validate.errors = ["+y+"]; return false; ":s+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",c&&(s+=" else { ")}else c&&(s+=" if (true) { ");return s}},22204:e=>{"use strict";e.exports=function generate__limitLength(e,r,t){var a,s=" ",o=e.level,i=e.dataLevel,n=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,h="data"+(i||""),p=e.opts.$data&&n&&n.$data;if(p?(s+=" var schema"+o+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",a="schema"+o):a=n,!p&&"number"!=typeof n)throw new Error(r+" must be number");var d="maxLength"==r?">":"<";s+="if ( ",p&&(s+=" ("+a+" !== undefined && typeof "+a+" != 'number') || "),!1===e.opts.unicode?s+=" "+h+".length ":s+=" ucs2length("+h+") ",s+=" "+d+" "+a+") { ";var m=r,f=f||[];f.push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(m||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+a+" } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT be ",s+="maxLength"==r?"longer":"shorter",s+=" than ",s+=p?"' + "+a+" + '":""+n,s+=" characters' "),e.opts.verbose&&(s+=" , schema: ",s+=p?"validate.schema"+l:""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var v=s;return s=f.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+v+"]); ":s+=" validate.errors = ["+v+"]; return false; ":s+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",c&&(s+=" else { "),s}},23391:(e,r,t)=>{"use strict";var a=t(2862),s=t(38792),o=t(17327),i=t(43094),n=t(67614);function resolve(e,r,t){var a=this._refs[t];if("string"==typeof a){if(!this._refs[a])return resolve.call(this,e,r,a);a=this._refs[a]}if((a=a||this._schemas[t])instanceof i)return inlineRef(a.schema,this._opts.inlineRefs)?a.schema:a.validate||this._compile(a);var s,o,n,l=resolveSchema.call(this,r,t);return l&&(s=l.schema,r=l.root,n=l.baseId),s instanceof i?o=s.validate||e.call(this,s.schema,r,void 0,n):void 0!==s&&(o=inlineRef(s,this._opts.inlineRefs)?s:e.call(this,s,r,void 0,n)),o}function resolveSchema(e,r){var t=a.parse(r),s=_getFullPath(t),o=getFullPath(this._getId(e.schema));if(0===Object.keys(e.schema).length||s!==o){var n=normalizeId(s),l=this._refs[n];if("string"==typeof l)return resolveRecursive.call(this,e,l,t);if(l instanceof i)l.validate||this._compile(l),e=l;else{if(!((l=this._schemas[n])instanceof i))return;if(l.validate||this._compile(l),n==normalizeId(r))return{schema:l,root:e,baseId:o};e=l}if(!e.schema)return;o=getFullPath(this._getId(e.schema))}return getJsonPointer.call(this,t,o,e.schema,e)}function resolveRecursive(e,r,t){var a=resolveSchema.call(this,e,r);if(a){var s=a.schema,o=a.baseId;e=a.root;var i=this._getId(s);return i&&(o=resolveUrl(o,i)),getJsonPointer.call(this,t,o,s,e)}}e.exports=resolve,resolve.normalizeId=normalizeId,resolve.fullPath=getFullPath,resolve.url=resolveUrl,resolve.ids=function resolveIds(e){var r=normalizeId(this._getId(e)),t={"":r},i={"":getFullPath(r,!1)},l={},u=this;return n(e,{allKeys:!0},(function(e,r,n,c,h,p,d){if(""!==r){var m=u._getId(e),f=t[c],v=i[c]+"/"+h;if(void 0!==d&&(v+="/"+("number"==typeof d?d:o.escapeFragment(d))),"string"==typeof m){m=f=normalizeId(f?a.resolve(f,m):m);var g=u._refs[m];if("string"==typeof g&&(g=u._refs[g]),g&&g.schema){if(!s(e,g.schema))throw new Error('id "'+m+'" resolves to more than one schema')}else if(m!=normalizeId(v))if("#"==m[0]){if(l[m]&&!s(e,l[m]))throw new Error('id "'+m+'" resolves to more than one schema');l[m]=e}else u._refs[m]=v}t[r]=f,i[r]=v}})),l},resolve.inlineRef=inlineRef,resolve.schema=resolveSchema;var l=o.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(e,r,t,a){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var s=e.fragment.split("/"),i=1;i<s.length;i++){var n=s[i];if(n){if(void 0===(t=t[n=o.unescapeFragment(n)]))break;var u;if(!l[n]&&((u=this._getId(t))&&(r=resolveUrl(r,u)),t.$ref)){var c=resolveUrl(r,t.$ref),h=resolveSchema.call(this,a,c);h&&(t=h.schema,a=h.root,r=h.baseId)}}}return void 0!==t&&t!==a.schema?{schema:t,root:a,baseId:r}:void 0}}var u=o.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function inlineRef(e,r){return!1!==r&&(void 0===r||!0===r?checkNoRef(e):r?countKeys(e)<=r:void 0)}function checkNoRef(e){var r;if(Array.isArray(e)){for(var t=0;t<e.length;t++)if("object"==typeof(r=e[t])&&!checkNoRef(r))return!1}else for(var a in e){if("$ref"==a)return!1;if("object"==typeof(r=e[a])&&!checkNoRef(r))return!1}return!0}function countKeys(e){var r,t=0;if(Array.isArray(e)){for(var a=0;a<e.length;a++)if("object"==typeof(r=e[a])&&(t+=countKeys(r)),t==1/0)return 1/0}else for(var s in e){if("$ref"==s)return 1/0;if(u[s])t++;else if("object"==typeof(r=e[s])&&(t+=countKeys(r)+1),t==1/0)return 1/0}return t}function getFullPath(e,r){return!1!==r&&(e=normalizeId(e)),_getFullPath(a.parse(e))}function _getFullPath(e){return a.serialize(e).split("#")[0]+"#"}var c=/#\/?$/;function normalizeId(e){return e?e.replace(c,""):""}function resolveUrl(e,r){return r=normalizeId(r),a.resolve(e,r)}},24998:e=>{"use strict";e.exports=function generate_items(e,r,t){var a=" ",s=e.level,o=e.dataLevel,i=e.schema[r],n=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(o||""),h="valid"+s,p="errs__"+s,d=e.util.copy(e),m="";d.level++;var f="valid"+d.level,v="i"+s,g=d.dataLevel=e.dataLevel+1,y="data"+g,P=e.baseId;if(a+="var "+p+" = errors;var "+h+";",Array.isArray(i)){var E=e.schema.additionalItems;if(!1===E){a+=" "+h+" = "+c+".length <= "+i.length+"; ";var b=l;l=e.errSchemaPath+"/additionalItems",a+=" if (!"+h+") { ";var w=w||[];w.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+i.length+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have more than "+i.length+" items' "),e.opts.verbose&&(a+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),a+=" } "):a+=" {} ";var S=a;a=w.pop(),!e.compositeRule&&u?e.async?a+=" throw new ValidationError(["+S+"]); ":a+=" validate.errors = ["+S+"]; return false; ":a+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",l=b,u&&(m+="}",a+=" else { ")}var x=i;if(x)for(var _,R=-1,F=x.length-1;R<F;)if(_=x[R+=1],e.opts.strictKeywords?"object"==typeof _&&Object.keys(_).length>0||!1===_:e.util.schemaHasRules(_,e.RULES.all)){a+=" "+f+" = true; if ("+c+".length > "+R+") { ";var $=c+"["+R+"]";d.schema=_,d.schemaPath=n+"["+R+"]",d.errSchemaPath=l+"/"+R,d.errorPath=e.util.getPathExpr(e.errorPath,R,e.opts.jsonPointers,!0),d.dataPathArr[g]=R;var D=e.validate(d);d.baseId=P,e.util.varOccurences(D,y)<2?a+=" "+e.util.varReplace(D,y,$)+" ":a+=" var "+y+" = "+$+"; "+D+" ",a+=" } ",u&&(a+=" if ("+f+") { ",m+="}")}if("object"==typeof E&&(e.opts.strictKeywords?"object"==typeof E&&Object.keys(E).length>0||!1===E:e.util.schemaHasRules(E,e.RULES.all))){d.schema=E,d.schemaPath=e.schemaPath+".additionalItems",d.errSchemaPath=e.errSchemaPath+"/additionalItems",a+=" "+f+" = true; if ("+c+".length > "+i.length+") { for (var "+v+" = "+i.length+"; "+v+" < "+c+".length; "+v+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);$=c+"["+v+"]";d.dataPathArr[g]=v;D=e.validate(d);d.baseId=P,e.util.varOccurences(D,y)<2?a+=" "+e.util.varReplace(D,y,$)+" ":a+=" var "+y+" = "+$+"; "+D+" ",u&&(a+=" if (!"+f+") break; "),a+=" } } ",u&&(a+=" if ("+f+") { ",m+="}")}}else if(e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all)){d.schema=i,d.schemaPath=n,d.errSchemaPath=l,a+=" for (var "+v+" = 0; "+v+" < "+c+".length; "+v+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);$=c+"["+v+"]";d.dataPathArr[g]=v;D=e.validate(d);d.baseId=P,e.util.varOccurences(D,y)<2?a+=" "+e.util.varReplace(D,y,$)+" ":a+=" var "+y+" = "+$+"; "+D+" ",u&&(a+=" if (!"+f+") break; "),a+=" }"}return u&&(a+=" "+m+" if ("+p+" == errors) {"),a}},28921:e=>{"use strict";e.exports=function generate__limitProperties(e,r,t){var a,s=" ",o=e.level,i=e.dataLevel,n=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,h="data"+(i||""),p=e.opts.$data&&n&&n.$data;if(p?(s+=" var schema"+o+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",a="schema"+o):a=n,!p&&"number"!=typeof n)throw new Error(r+" must be number");s+="if ( ",p&&(s+=" ("+a+" !== undefined && typeof "+a+" != 'number') || "),s+=" Object.keys("+h+").length "+("maxProperties"==r?">":"<")+" "+a+") { ";var d=r,m=m||[];m.push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(d||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+a+" } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT have ",s+="maxProperties"==r?"more":"fewer",s+=" than ",s+=p?"' + "+a+" + '":""+n,s+=" properties' "),e.opts.verbose&&(s+=" , schema: ",s+=p?"validate.schema"+l:""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var f=s;return s=m.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+f+"]); ":s+=" validate.errors = ["+f+"]; return false; ":s+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",c&&(s+=" else { "),s}},29669:e=>{"use strict";var r=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,t){for(var a=0;a<t.length;a++){e=JSON.parse(JSON.stringify(e));var s,o=t[a].split("/"),i=e;for(s=1;s<o.length;s++)i=i[o[s]];for(s=0;s<r.length;s++){var n=r[s],l=i[n];l&&(i[n]={anyOf:[l,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}},31887:e=>{"use strict";e.exports=function generate_custom(e,r,t){var a,s,o=" ",i=e.level,n=e.dataLevel,l=e.schema[r],u=e.schemaPath+e.util.getProperty(r),c=e.errSchemaPath+"/"+r,h=!e.opts.allErrors,p="data"+(n||""),d="valid"+i,m="errs__"+i,f=e.opts.$data&&l&&l.$data;f?(o+=" var schema"+i+" = "+e.util.getData(l.$data,n,e.dataPathArr)+"; ",s="schema"+i):s=l;var v,g,y,P,E,b=this,w="definition"+i,S=b.definition,x="";if(f&&S.$data){E="keywordValidate"+i;var _=S.validateSchema;o+=" var "+w+" = RULES.custom['"+r+"'].definition; var "+E+" = "+w+".validate;"}else{if(!(P=e.useCustomRule(b,l,e.schema,e)))return;s="validate.schema"+u,E=P.code,v=S.compile,g=S.inline,y=S.macro}var R=E+".errors",F="i"+i,$="ruleErr"+i,D=S.async;if(D&&!e.async)throw new Error("async keyword in sync schema");if(g||y||(o+=R+" = null;"),o+="var "+m+" = errors;var "+d+";",f&&S.$data&&(x+="}",o+=" if ("+s+" === undefined) { "+d+" = true; } else { ",_&&(x+="}",o+=" "+d+" = "+w+".validateSchema("+s+"); if ("+d+") { ")),g)S.statements?o+=" "+P.validate+" ":o+=" "+d+" = "+P.validate+"; ";else if(y){var j=e.util.copy(e);x="";j.level++;var O="valid"+j.level;j.schema=P.validate,j.schemaPath="";var C=e.compositeRule;e.compositeRule=j.compositeRule=!0;var I=e.validate(j).replace(/validate\.schema/g,E);e.compositeRule=j.compositeRule=C,o+=" "+I}else{(L=L||[]).push(o),o="",o+=" "+E+".call( ",e.opts.passContext?o+="this":o+="self",v||!1===S.schema?o+=" , "+p+" ":o+=" , "+s+" , "+p+" , validate.schema"+e.schemaPath+" ",o+=" , (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var A=n?"data"+(n-1||""):"parentData",k=n?e.dataPathArr[n]:"parentDataProperty",z=o+=" , "+A+" , "+k+" , rootData ) ";o=L.pop(),!1===S.errors?(o+=" "+d+" = ",D&&(o+="await "),o+=z+"; "):o+=D?" var "+(R="customErrors"+i)+" = null; try { "+d+" = await "+z+"; } catch (e) { "+d+" = false; if (e instanceof ValidationError) "+R+" = e.errors; else throw e; } ":" "+R+" = null; "+d+" = "+z+"; "}if(S.modifying&&(o+=" if ("+A+") "+p+" = "+A+"["+k+"];"),o+=""+x,S.valid)h&&(o+=" if (true) { ");else{var L;o+=" if ( ",void 0===S.valid?(o+=" !",o+=y?""+O:""+d):o+=" "+!S.valid+" ",o+=") { ",a=b.keyword,(L=L||[]).push(o),o="",(L=L||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(a||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { keyword: '"+b.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+b.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),o+=" } "):o+=" {} ";var N=o;o=L.pop(),!e.compositeRule&&h?e.async?o+=" throw new ValidationError(["+N+"]); ":o+=" validate.errors = ["+N+"]; return false; ":o+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var T=o;o=L.pop(),g?S.errors?"full"!=S.errors&&(o+=" for (var "+F+"="+m+"; "+F+"<errors; "+F+"++) { var "+$+" = vErrors["+F+"]; if ("+$+".dataPath === undefined) "+$+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+$+".schemaPath === undefined) { "+$+'.schemaPath = "'+c+'"; } ',e.opts.verbose&&(o+=" "+$+".schema = "+s+"; "+$+".data = "+p+"; "),o+=" } "):!1===S.errors?o+=" "+T+" ":(o+=" if ("+m+" == errors) { "+T+" } else { for (var "+F+"="+m+"; "+F+"<errors; "+F+"++) { var "+$+" = vErrors["+F+"]; if ("+$+".dataPath === undefined) "+$+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+$+".schemaPath === undefined) { "+$+'.schemaPath = "'+c+'"; } ',e.opts.verbose&&(o+=" "+$+".schema = "+s+"; "+$+".data = "+p+"; "),o+=" } } "):y?(o+=" var err = ",!1!==e.createErrors?(o+=" { keyword: '"+(a||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { keyword: '"+b.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+b.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&h&&(e.async?o+=" throw new ValidationError(vErrors); ":o+=" validate.errors = vErrors; return false; ")):!1===S.errors?o+=" "+T+" ":(o+=" if (Array.isArray("+R+")) { if (vErrors === null) vErrors = "+R+"; else vErrors = vErrors.concat("+R+"); errors = vErrors.length; for (var "+F+"="+m+"; "+F+"<errors; "+F+"++) { var "+$+" = vErrors["+F+"]; if ("+$+".dataPath === undefined) "+$+".dataPath = (dataPath || '') + "+e.errorPath+"; "+$+'.schemaPath = "'+c+'"; ',e.opts.verbose&&(o+=" "+$+".schema = "+s+"; "+$+".data = "+p+"; "),o+=" } } else { "+T+" } "),o+=" } ",h&&(o+=" else { ")}return o}},32994:e=>{"use strict";e.exports=function generate_multipleOf(e,r,t){var a,s=" ",o=e.level,i=e.dataLevel,n=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,h="data"+(i||""),p=e.opts.$data&&n&&n.$data;if(p?(s+=" var schema"+o+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",a="schema"+o):a=n,!p&&"number"!=typeof n)throw new Error(r+" must be number");s+="var division"+o+";if (",p&&(s+=" "+a+" !== undefined && ( typeof "+a+" != 'number' || "),s+=" (division"+o+" = "+h+" / "+a+", ",e.opts.multipleOfPrecision?s+=" Math.abs(Math.round(division"+o+") - division"+o+") > 1e-"+e.opts.multipleOfPrecision+" ":s+=" division"+o+" !== parseInt(division"+o+") ",s+=" ) ",p&&(s+=" ) "),s+=" ) { ";var d=d||[];d.push(s),s="",!1!==e.createErrors?(s+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+a+" } ",!1!==e.opts.messages&&(s+=" , message: 'should be multiple of ",s+=p?"' + "+a:a+"'"),e.opts.verbose&&(s+=" , schema: ",s+=p?"validate.schema"+l:""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var m=s;return s=d.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+m+"]); ":s+=" validate.errors = ["+m+"]; return false; ":s+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",c&&(s+=" else { "),s}},33523:e=>{"use strict";e.exports=function generate_comment(e,r,t){var a=" ",s=e.schema[r],o=e.errSchemaPath+"/"+r,i=(e.opts.allErrors,e.util.toQuotedString(s));return!0===e.opts.$comment?a+=" console.log("+i+");":"function"==typeof e.opts.$comment&&(a+=" self._opts.$comment("+i+", "+e.util.toQuotedString(o)+", validate.root.schema);"),a}},35510:(e,r,t)=>{"use strict";var a=t(23391);function MissingRefError(e,r,t){this.message=t||MissingRefError.message(e,r),this.missingRef=a.url(e,r),this.missingSchema=a.normalizeId(a.fullPath(this.missingRef))}function errorSubclass(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}e.exports={Validation:errorSubclass((function ValidationError(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:errorSubclass(MissingRefError)},MissingRefError.message=function(e,r){return"can't resolve reference "+r+" from id "+e}},38792:e=>{"use strict";e.exports=function equal(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var t,a,s;if(Array.isArray(e)){if((t=e.length)!=r.length)return!1;for(a=t;0!=a--;)if(!equal(e[a],r[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((t=(s=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(a=t;0!=a--;)if(!Object.prototype.hasOwnProperty.call(r,s[a]))return!1;for(a=t;0!=a--;){var o=s[a];if(!equal(e[o],r[o]))return!1}return!0}return e!=e&&r!=r}},40666:(e,r,t)=>{"use strict";var a=/^[a-z_$][a-z0-9_$-]*$/i,s=t(31887),o=t(1572);e.exports={add:function addKeyword(e,r){var t=this.RULES;if(t.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!a.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(r){this.validateKeyword(r,!0);var o=r.type;if(Array.isArray(o))for(var i=0;i<o.length;i++)_addRule(e,o[i],r);else _addRule(e,o,r);var n=r.metaSchema;n&&(r.$data&&this._opts.$data&&(n={anyOf:[n,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),r.validateSchema=this.compile(n,!0))}function _addRule(e,r,a){for(var o,i=0;i<t.length;i++){var n=t[i];if(n.type==r){o=n;break}}o||(o={type:r,rules:[]},t.push(o));var l={keyword:e,definition:a,custom:!0,code:s,implements:a.implements};o.rules.push(l),t.custom[e]=l}return t.keywords[e]=t.all[e]=!0,this},get:function getKeyword(e){var r=this.RULES.custom[e];return r?r.definition:this.RULES.keywords[e]||!1},remove:function removeKeyword(e){var r=this.RULES;delete r.keywords[e],delete r.all[e],delete r.custom[e];for(var t=0;t<r.length;t++)for(var a=r[t].rules,s=0;s<a.length;s++)if(a[s].keyword==e){a.splice(s,1);break}return this},validate:function validateKeyword(e,r){validateKeyword.errors=null;var t=this._validateKeyword=this._validateKeyword||this.compile(o,!0);if(t(e))return!0;if(validateKeyword.errors=t.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(t.errors));return!1}}},43094:(e,r,t)=>{"use strict";var a=t(17327);e.exports=function SchemaObject(e){a.copy(e,this)}},46313:e=>{"use strict";e.exports=function generate_dependencies(e,r,t){var a=" ",s=e.level,o=e.dataLevel,i=e.schema[r],n=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(o||""),h="errs__"+s,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,f={},v={},g=e.opts.ownProperties;for(b in i)if("__proto__"!=b){var y=i[b],P=Array.isArray(y)?v:f;P[b]=y}a+="var "+h+" = errors;";var E=e.errorPath;for(var b in a+="var missing"+s+";",v)if((P=v[b]).length){if(a+=" if ( "+c+e.util.getProperty(b)+" !== undefined ",g&&(a+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(b)+"') "),u){a+=" && ( ";var w=P;if(w)for(var S=-1,x=w.length-1;S<x;){j=w[S+=1],S&&(a+=" || "),a+=" ( ( "+(A=c+(I=e.util.getProperty(j)))+" === undefined ",g&&(a+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(j)+"') "),a+=") && (missing"+s+" = "+e.util.toQuotedString(e.opts.jsonPointers?j:I)+") ) "}a+=")) { ";var _="missing"+s,R="' + "+_+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(E,_,!0):E+" + "+_);var F=F||[];F.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { property: '"+e.util.escapeQuotes(b)+"', missingProperty: '"+R+"', depsCount: "+P.length+", deps: '"+e.util.escapeQuotes(1==P.length?P[0]:P.join(", "))+"' } ",!1!==e.opts.messages&&(a+=" , message: 'should have ",1==P.length?a+="property "+e.util.escapeQuotes(P[0]):a+="properties "+e.util.escapeQuotes(P.join(", ")),a+=" when property "+e.util.escapeQuotes(b)+" is present' "),e.opts.verbose&&(a+=" , schema: validate.schema"+n+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),a+=" } "):a+=" {} ";var $=a;a=F.pop(),!e.compositeRule&&u?e.async?a+=" throw new ValidationError(["+$+"]); ":a+=" validate.errors = ["+$+"]; return false; ":a+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{a+=" ) { ";var D=P;if(D)for(var j,O=-1,C=D.length-1;O<C;){j=D[O+=1];var I=e.util.getProperty(j),A=(R=e.util.escapeQuotes(j),c+I);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(E,j,e.opts.jsonPointers)),a+=" if ( "+A+" === undefined ",g&&(a+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(j)+"') "),a+=") { var err = ",!1!==e.createErrors?(a+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { property: '"+e.util.escapeQuotes(b)+"', missingProperty: '"+R+"', depsCount: "+P.length+", deps: '"+e.util.escapeQuotes(1==P.length?P[0]:P.join(", "))+"' } ",!1!==e.opts.messages&&(a+=" , message: 'should have ",1==P.length?a+="property "+e.util.escapeQuotes(P[0]):a+="properties "+e.util.escapeQuotes(P.join(", ")),a+=" when property "+e.util.escapeQuotes(b)+" is present' "),e.opts.verbose&&(a+=" , schema: validate.schema"+n+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}a+=" } ",u&&(d+="}",a+=" else { ")}e.errorPath=E;var k=p.baseId;for(var b in f){y=f[b];(e.opts.strictKeywords?"object"==typeof y&&Object.keys(y).length>0||!1===y:e.util.schemaHasRules(y,e.RULES.all))&&(a+=" "+m+" = true; if ( "+c+e.util.getProperty(b)+" !== undefined ",g&&(a+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(b)+"') "),a+=") { ",p.schema=y,p.schemaPath=n+e.util.getProperty(b),p.errSchemaPath=l+"/"+e.util.escapeFragment(b),a+=" "+e.validate(p)+" ",p.baseId=k,a+=" } ",u&&(a+=" if ("+m+") { ",d+="}"))}return u&&(a+=" "+d+" if ("+h+" == errors) {"),a}},47963:e=>{"use strict";e.exports=function generate_ref(e,r,t){var a,s,o=" ",i=e.level,n=e.dataLevel,l=e.schema[r],u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,h="data"+(n||""),p="valid"+i;if("#"==l||"#/"==l)e.isRoot?(a=e.async,s="validate"):(a=!0===e.root.schema.$async,s="root.refVal[0]");else{var d=e.resolveRef(e.baseId,l,e.isRoot);if(void 0===d){var m=e.MissingRefError.message(e.baseId,l);if("fail"==e.opts.missingRefs){e.logger.error(m),(y=y||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { ref: '"+e.util.escapeQuotes(l)+"' } ",!1!==e.opts.messages&&(o+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(l)+"' "),e.opts.verbose&&(o+=" , schema: "+e.util.toQuotedString(l)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),o+=" } "):o+=" {} ";var f=o;o=y.pop(),!e.compositeRule&&c?e.async?o+=" throw new ValidationError(["+f+"]); ":o+=" validate.errors = ["+f+"]; return false; ":o+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(o+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,l,m);e.logger.warn(m),c&&(o+=" if (true) { ")}}else if(d.inline){var v=e.util.copy(e);v.level++;var g="valid"+v.level;v.schema=d.schema,v.schemaPath="",v.errSchemaPath=l,o+=" "+e.validate(v).replace(/validate\.schema/g,d.code)+" ",c&&(o+=" if ("+g+") { ")}else a=!0===d.$async||e.async&&!1!==d.$async,s=d.code}if(s){var y;(y=y||[]).push(o),o="",e.opts.passContext?o+=" "+s+".call(this, ":o+=" "+s+"( ",o+=" "+h+", (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var P=o+=" , "+(n?"data"+(n-1||""):"parentData")+" , "+(n?e.dataPathArr[n]:"parentDataProperty")+", rootData) ";if(o=y.pop(),a){if(!e.async)throw new Error("async schema referenced by sync schema");c&&(o+=" var "+p+"; "),o+=" try { await "+P+"; ",c&&(o+=" "+p+" = true; "),o+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",c&&(o+=" "+p+" = false; "),o+=" } ",c&&(o+=" if ("+p+") { ")}else o+=" if (!"+P+") { if (vErrors === null) vErrors = "+s+".errors; else vErrors = vErrors.concat("+s+".errors); errors = vErrors.length; } ",c&&(o+=" else { ")}return o}},49295:e=>{"use strict";e.exports=function generate_if(e,r,t){var a=" ",s=e.level,o=e.dataLevel,i=e.schema[r],n=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(o||""),h="valid"+s,p="errs__"+s,d=e.util.copy(e);d.level++;var m="valid"+d.level,f=e.schema.then,v=e.schema.else,g=void 0!==f&&(e.opts.strictKeywords?"object"==typeof f&&Object.keys(f).length>0||!1===f:e.util.schemaHasRules(f,e.RULES.all)),y=void 0!==v&&(e.opts.strictKeywords?"object"==typeof v&&Object.keys(v).length>0||!1===v:e.util.schemaHasRules(v,e.RULES.all)),P=d.baseId;if(g||y){var E;d.createErrors=!1,d.schema=i,d.schemaPath=n,d.errSchemaPath=l,a+=" var "+p+" = errors; var "+h+" = true; ";var b=e.compositeRule;e.compositeRule=d.compositeRule=!0,a+=" "+e.validate(d)+" ",d.baseId=P,d.createErrors=!0,a+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.compositeRule=d.compositeRule=b,g?(a+=" if ("+m+") { ",d.schema=e.schema.then,d.schemaPath=e.schemaPath+".then",d.errSchemaPath=e.errSchemaPath+"/then",a+=" "+e.validate(d)+" ",d.baseId=P,a+=" "+h+" = "+m+"; ",g&&y?a+=" var "+(E="ifClause"+s)+" = 'then'; ":E="'then'",a+=" } ",y&&(a+=" else { ")):a+=" if (!"+m+") { ",y&&(d.schema=e.schema.else,d.schemaPath=e.schemaPath+".else",d.errSchemaPath=e.errSchemaPath+"/else",a+=" "+e.validate(d)+" ",d.baseId=P,a+=" "+h+" = "+m+"; ",g&&y?a+=" var "+(E="ifClause"+s)+" = 'else'; ":E="'else'",a+=" } "),a+=" if (!"+h+") { var err = ",!1!==e.createErrors?(a+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { failingKeyword: "+E+" } ",!1!==e.opts.messages&&(a+=" , message: 'should match \"' + "+E+" + '\" schema' "),e.opts.verbose&&(a+=" , schema: validate.schema"+n+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?a+=" throw new ValidationError(vErrors); ":a+=" validate.errors = vErrors; return false; "),a+=" } ",u&&(a+=" else { ")}else u&&(a+=" if (true) { ");return a}},50539:e=>{"use strict";e.exports=function generate_oneOf(e,r,t){var a=" ",s=e.level,o=e.dataLevel,i=e.schema[r],n=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(o||""),h="valid"+s,p="errs__"+s,d=e.util.copy(e),m="";d.level++;var f="valid"+d.level,v=d.baseId,g="prevValid"+s,y="passingSchemas"+s;a+="var "+p+" = errors , "+g+" = false , "+h+" = false , "+y+" = null; ";var P=e.compositeRule;e.compositeRule=d.compositeRule=!0;var E=i;if(E)for(var b,w=-1,S=E.length-1;w<S;)b=E[w+=1],(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))?(d.schema=b,d.schemaPath=n+"["+w+"]",d.errSchemaPath=l+"/"+w,a+=" "+e.validate(d)+" ",d.baseId=v):a+=" var "+f+" = true; ",w&&(a+=" if ("+f+" && "+g+") { "+h+" = false; "+y+" = ["+y+", "+w+"]; } else { ",m+="}"),a+=" if ("+f+") { "+h+" = "+g+" = true; "+y+" = "+w+"; }";return e.compositeRule=d.compositeRule=P,a+=m+"if (!"+h+") { var err = ",!1!==e.createErrors?(a+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { passingSchemas: "+y+" } ",!1!==e.opts.messages&&(a+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(a+=" , schema: validate.schema"+n+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?a+=" throw new ValidationError(vErrors); ":a+=" validate.errors = vErrors; return false; "),a+="} else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }",e.opts.allErrors&&(a+=" } "),a}},50786:e=>{"use strict";e.exports=function ucs2length(e){for(var r,t=0,a=e.length,s=0;s<a;)t++,(r=e.charCodeAt(s++))>=55296&&r<=56319&&s<a&&56320==(64512&(r=e.charCodeAt(s)))&&s++;return t}},53376:(e,r,t)=>{"use strict";var a=t(93890),s=t(17327).toHash;e.exports=function rules(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],r=["type","$comment"];return e.all=s(r),e.types=s(["number","integer","string","array","object","boolean","null"]),e.forEach((function(t){t.rules=t.rules.map((function(t){var s;if("object"==typeof t){var o=Object.keys(t)[0];s=t[o],t=o,s.forEach((function(t){r.push(t),e.all[t]=!0}))}return r.push(t),e.all[t]={keyword:t,code:a[t],implements:s}})),e.all.$comment={keyword:"$comment",code:a.$comment},t.type&&(e.types[t.type]=t)})),e.keywords=s(r.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e}},56075:e=>{"use strict";e.exports=function(e,r){r||(r={}),"function"==typeof r&&(r={cmp:r});var t,a="boolean"==typeof r.cycles&&r.cycles,s=r.cmp&&(t=r.cmp,function(e){return function(r,a){var s={key:r,value:e[r]},o={key:a,value:e[a]};return t(s,o)}}),o=[];return function stringify(e){if(e&&e.toJSON&&"function"==typeof e.toJSON&&(e=e.toJSON()),void 0!==e){if("number"==typeof e)return isFinite(e)?""+e:"null";if("object"!=typeof e)return JSON.stringify(e);var r,t;if(Array.isArray(e)){for(t="[",r=0;r<e.length;r++)r&&(t+=","),t+=stringify(e[r])||"null";return t+"]"}if(null===e)return"null";if(-1!==o.indexOf(e)){if(a)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var i=o.push(e)-1,n=Object.keys(e).sort(s&&s(e));for(t="",r=0;r<n.length;r++){var l=n[r],u=stringify(e[l]);u&&(t&&(t+=","),t+=JSON.stringify(l)+":"+u)}return o.splice(i,1),"{"+t+"}"}}(e)}},58155:(e,r,t)=>{"use strict";var a=t(17327),s=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31],i=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,n=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,l=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,u=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,c=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,h=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,p=/^(?:\/(?:[^~/]|~0|~1)*)*$/,d=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,m=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function formats(e){return e="full"==e?"full":"fast",a.copy(formats[e])}function date(e){var r=e.match(s);if(!r)return!1;var t=+r[1],a=+r[2],i=+r[3];return a>=1&&a<=12&&i>=1&&i<=(2==a&&function isLeapYear(e){return e%4==0&&(e%100!=0||e%400==0)}(t)?29:o[a])}function time(e,r){var t=e.match(i);if(!t)return!1;var a=t[1],s=t[2],o=t[3],n=t[5];return(a<=23&&s<=59&&o<=59||23==a&&59==s&&60==o)&&(!r||n)}e.exports=formats,formats.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":u,url:c,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:n,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex,uuid:h,"json-pointer":p,"json-pointer-uri-fragment":d,"relative-json-pointer":m},formats.full={date,time,"date-time":function date_time(e){var r=e.split(f);return 2==r.length&&date(r[0])&&time(r[1],!0)},uri:function uri(e){return v.test(e)&&l.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":u,url:c,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:n,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex,uuid:h,"json-pointer":p,"json-pointer-uri-fragment":d,"relative-json-pointer":m};var f=/t|\s/i;var v=/\/|:/;var g=/[^\\]\\Z/;function regex(e){if(g.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},61351:e=>{"use strict";e.exports=function generate__limit(e,r,t){var a,s=" ",o=e.level,i=e.dataLevel,n=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,h="data"+(i||""),p=e.opts.$data&&n&&n.$data;p?(s+=" var schema"+o+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",a="schema"+o):a=n;var d="maximum"==r,m=d?"exclusiveMaximum":"exclusiveMinimum",f=e.schema[m],v=e.opts.$data&&f&&f.$data,g=d?"<":">",y=d?">":"<",P=void 0;if(!p&&"number"!=typeof n&&void 0!==n)throw new Error(r+" must be number");if(!v&&void 0!==f&&"number"!=typeof f&&"boolean"!=typeof f)throw new Error(m+" must be number or boolean");if(v){var E=e.util.getData(f.$data,i,e.dataPathArr),b="exclusive"+o,w="exclType"+o,S="exclIsNumber"+o,x="' + "+(F="op"+o)+" + '";s+=" var schemaExcl"+o+" = "+E+"; ",s+=" var "+b+"; var "+w+" = typeof "+(E="schemaExcl"+o)+"; if ("+w+" != 'boolean' && "+w+" != 'undefined' && "+w+" != 'number') { ";var _;P=m;(_=_||[]).push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(P||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(s+=" , message: '"+m+" should be boolean' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var R=s;s=_.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+R+"]); ":s+=" validate.errors = ["+R+"]; return false; ":s+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else if ( ",p&&(s+=" ("+a+" !== undefined && typeof "+a+" != 'number') || "),s+=" "+w+" == 'number' ? ( ("+b+" = "+a+" === undefined || "+E+" "+g+"= "+a+") ? "+h+" "+y+"= "+E+" : "+h+" "+y+" "+a+" ) : ( ("+b+" = "+E+" === true) ? "+h+" "+y+"= "+a+" : "+h+" "+y+" "+a+" ) || "+h+" !== "+h+") { var op"+o+" = "+b+" ? '"+g+"' : '"+g+"='; ",void 0===n&&(P=m,u=e.errSchemaPath+"/"+m,a=E,p=v)}else{x=g;if((S="number"==typeof f)&&p){var F="'"+x+"'";s+=" if ( ",p&&(s+=" ("+a+" !== undefined && typeof "+a+" != 'number') || "),s+=" ( "+a+" === undefined || "+f+" "+g+"= "+a+" ? "+h+" "+y+"= "+f+" : "+h+" "+y+" "+a+" ) || "+h+" !== "+h+") { "}else{S&&void 0===n?(b=!0,P=m,u=e.errSchemaPath+"/"+m,a=f,y+="="):(S&&(a=Math[d?"min":"max"](f,n)),f===(!S||a)?(b=!0,P=m,u=e.errSchemaPath+"/"+m,y+="="):(b=!1,x+="="));F="'"+x+"'";s+=" if ( ",p&&(s+=" ("+a+" !== undefined && typeof "+a+" != 'number') || "),s+=" "+h+" "+y+" "+a+" || "+h+" !== "+h+") { "}}P=P||r,(_=_||[]).push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(P||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+F+", limit: "+a+", exclusive: "+b+" } ",!1!==e.opts.messages&&(s+=" , message: 'should be "+x+" ",s+=p?"' + "+a:a+"'"),e.opts.verbose&&(s+=" , schema: ",s+=p?"validate.schema"+l:""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";R=s;return s=_.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+R+"]); ":s+=" validate.errors = ["+R+"]; return false; ":s+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",c&&(s+=" else { "),s}},67614:e=>{"use strict";var r=e.exports=function(e,r,t){"function"==typeof r&&(t=r,r={}),_traverse(r,"function"==typeof(t=r.cb||t)?t:t.pre||function(){},t.post||function(){},e,"",e)};function _traverse(e,t,a,s,o,i,n,l,u,c){if(s&&"object"==typeof s&&!Array.isArray(s)){for(var h in t(s,o,i,n,l,u,c),s){var p=s[h];if(Array.isArray(p)){if(h in r.arrayKeywords)for(var d=0;d<p.length;d++)_traverse(e,t,a,p[d],o+"/"+h+"/"+d,i,o,h,s,d)}else if(h in r.propsKeywords){if(p&&"object"==typeof p)for(var m in p)_traverse(e,t,a,p[m],o+"/"+h+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),i,o,h,s,m)}else(h in r.keywords||e.allKeys&&!(h in r.skipKeywords))&&_traverse(e,t,a,p,o+"/"+h,i,o,h,s)}a(s,o,i,n,l,u,c)}}r.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},r.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},r.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},r.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}},67814:e=>{"use strict";e.exports=function generate_const(e,r,t){var a=" ",s=e.level,o=e.dataLevel,i=e.schema[r],n=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(o||""),h="valid"+s,p=e.opts.$data&&i&&i.$data;p&&(a+=" var schema"+s+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; "),p||(a+=" var schema"+s+" = validate.schema"+n+";"),a+="var "+h+" = equal("+c+", schema"+s+"); if (!"+h+") { ";var d=d||[];d.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValue: schema"+s+" } ",!1!==e.opts.messages&&(a+=" , message: 'should be equal to constant' "),e.opts.verbose&&(a+=" , schema: validate.schema"+n+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),a+=" } "):a+=" {} ";var m=a;return a=d.pop(),!e.compositeRule&&u?e.async?a+=" throw new ValidationError(["+m+"]); ":a+=" validate.errors = ["+m+"]; return false; ":a+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" }",u&&(a+=" else { "),a}},71449:e=>{"use strict";e.exports=function generate_propertyNames(e,r,t){var a=" ",s=e.level,o=e.dataLevel,i=e.schema[r],n=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(o||""),h="errs__"+s,p=e.util.copy(e);p.level++;var d="valid"+p.level;if(a+="var "+h+" = errors;",e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all)){p.schema=i,p.schemaPath=n,p.errSchemaPath=l;var m="key"+s,f="idx"+s,v="i"+s,g="' + "+m+" + '",y="data"+(p.dataLevel=e.dataLevel+1),P="dataProperties"+s,E=e.opts.ownProperties,b=e.baseId;E&&(a+=" var "+P+" = undefined; "),a+=E?" "+P+" = "+P+" || Object.keys("+c+"); for (var "+f+"=0; "+f+"<"+P+".length; "+f+"++) { var "+m+" = "+P+"["+f+"]; ":" for (var "+m+" in "+c+") { ",a+=" var startErrs"+s+" = errors; ";var w=m,S=e.compositeRule;e.compositeRule=p.compositeRule=!0;var x=e.validate(p);p.baseId=b,e.util.varOccurences(x,y)<2?a+=" "+e.util.varReplace(x,y,w)+" ":a+=" var "+y+" = "+w+"; "+x+" ",e.compositeRule=p.compositeRule=S,a+=" if (!"+d+") { for (var "+v+"=startErrs"+s+"; "+v+"<errors; "+v+"++) { vErrors["+v+"].propertyName = "+m+"; } var err = ",!1!==e.createErrors?(a+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { propertyName: '"+g+"' } ",!1!==e.opts.messages&&(a+=" , message: 'property name \\'"+g+"\\' is invalid' "),e.opts.verbose&&(a+=" , schema: validate.schema"+n+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?a+=" throw new ValidationError(vErrors); ":a+=" validate.errors = vErrors; return false; "),u&&(a+=" break; "),a+=" } }"}return u&&(a+=" if ("+h+" == errors) {"),a}},81997:e=>{"use strict";e.exports=function generate_enum(e,r,t){var a=" ",s=e.level,o=e.dataLevel,i=e.schema[r],n=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(o||""),h="valid"+s,p=e.opts.$data&&i&&i.$data;p&&(a+=" var schema"+s+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ");var d="i"+s,m="schema"+s;p||(a+=" var "+m+" = validate.schema"+n+";"),a+="var "+h+";",p&&(a+=" if (schema"+s+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+s+")) "+h+" = false; else {"),a+=h+" = false;for (var "+d+"=0; "+d+"<"+m+".length; "+d+"++) if (equal("+c+", "+m+"["+d+"])) { "+h+" = true; break; }",p&&(a+=" } "),a+=" if (!"+h+") { ";var f=f||[];f.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValues: schema"+s+" } ",!1!==e.opts.messages&&(a+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(a+=" , schema: validate.schema"+n+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),a+=" } "):a+=" {} ";var v=a;return a=f.pop(),!e.compositeRule&&u?e.async?a+=" throw new ValidationError(["+v+"]); ":a+=" validate.errors = ["+v+"]; return false; ":a+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" }",u&&(a+=" else { "),a}},82174:(e,r,t)=>{"use strict";var a=t(90351),s=t(23391),o=t(93983),i=t(43094),n=t(56075),l=t(58155),u=t(53376),c=t(29669),h=t(17327);e.exports=Ajv,Ajv.prototype.validate=function validate(e,r){var t;if("string"==typeof e){if(!(t=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var a=this._addSchema(e);t=a.validate||this._compile(a)}var s=t(r);!0!==t.$async&&(this.errors=t.errors);return s},Ajv.prototype.compile=function compile(e,r){var t=this._addSchema(e,void 0,r);return t.validate||this._compile(t)},Ajv.prototype.addSchema=function addSchema(e,r,t,a){if(Array.isArray(e)){for(var o=0;o<e.length;o++)this.addSchema(e[o],void 0,t,a);return this}var i=this._getId(e);if(void 0!==i&&"string"!=typeof i)throw new Error("schema id must be string");return checkUnique(this,r=s.normalizeId(r||i)),this._schemas[r]=this._addSchema(e,t,a,!0),this},Ajv.prototype.addMetaSchema=function addMetaSchema(e,r,t){return this.addSchema(e,r,t,!0),this},Ajv.prototype.validateSchema=function validateSchema(e,r){var t=e.$schema;if(void 0!==t&&"string"!=typeof t)throw new Error("$schema must be a string");if(!(t=t||this._opts.defaultMeta||function defaultMeta(e){var r=e._opts.meta;return e._opts.defaultMeta="object"==typeof r?e._getId(r)||r:e.getSchema(m)?m:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var a=this.validate(t,e);if(!a&&r){var s="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(s);this.logger.error(s)}return a},Ajv.prototype.getSchema=function getSchema(e){var r=_getSchemaObj(this,e);switch(typeof r){case"object":return r.validate||this._compile(r);case"string":return this.getSchema(r);case"undefined":return function _getSchemaFragment(e,r){var t=s.schema.call(e,{schema:{}},r);if(t){var o=t.schema,n=t.root,l=t.baseId,u=a.call(e,o,n,void 0,l);return e._fragments[r]=new i({ref:r,fragment:!0,schema:o,root:n,baseId:l,validate:u}),u}}(this,e)}},Ajv.prototype.removeSchema=function removeSchema(e){if(e instanceof RegExp)return _removeAllSchemas(this,this._schemas,e),_removeAllSchemas(this,this._refs,e),this;switch(typeof e){case"undefined":return _removeAllSchemas(this,this._schemas),_removeAllSchemas(this,this._refs),this._cache.clear(),this;case"string":var r=_getSchemaObj(this,e);return r&&this._cache.del(r.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var t=this._opts.serialize,a=t?t(e):e;this._cache.del(a);var o=this._getId(e);o&&(o=s.normalizeId(o),delete this._schemas[o],delete this._refs[o])}return this},Ajv.prototype.addFormat=function addFormat(e,r){"string"==typeof r&&(r=new RegExp(r));return this._formats[e]=r,this},Ajv.prototype.errorsText=function errorsText(e,r){if(!(e=e||this.errors))return"No errors";for(var t=void 0===(r=r||{}).separator?", ":r.separator,a=void 0===r.dataVar?"data":r.dataVar,s="",o=0;o<e.length;o++){var i=e[o];i&&(s+=a+i.dataPath+" "+i.message+t)}return s.slice(0,-t.length)},Ajv.prototype._addSchema=function _addSchema(e,r,t,a){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var o=this._opts.serialize,n=o?o(e):e,l=this._cache.get(n);if(l)return l;a=a||!1!==this._opts.addUsedSchema;var u=s.normalizeId(this._getId(e));u&&a&&checkUnique(this,u);var c,h=!1!==this._opts.validateSchema&&!r;h&&!(c=u&&u==s.normalizeId(e.$schema))&&this.validateSchema(e,!0);var p=s.ids.call(this,e),d=new i({id:u,schema:e,localRefs:p,cacheKey:n,meta:t});"#"!=u[0]&&a&&(this._refs[u]=d);this._cache.put(n,d),h&&c&&this.validateSchema(e,!0);return d},Ajv.prototype._compile=function _compile(e,r){if(e.compiling)return e.validate=callValidate,callValidate.schema=e.schema,callValidate.errors=null,callValidate.root=r||callValidate,!0===e.schema.$async&&(callValidate.$async=!0),callValidate;var t,s;e.compiling=!0,e.meta&&(t=this._opts,this._opts=this._metaOpts);try{s=a.call(this,e.schema,r,e.localRefs)}catch(r){throw delete e.validate,r}finally{e.compiling=!1,e.meta&&(this._opts=t)}return e.validate=s,e.refs=s.refs,e.refVal=s.refVal,e.root=s.root,s;function callValidate(){var r=e.validate,t=r.apply(this,arguments);return callValidate.errors=r.errors,t}},Ajv.prototype.compileAsync=t(89495);var p=t(40666);Ajv.prototype.addKeyword=p.add,Ajv.prototype.getKeyword=p.get,Ajv.prototype.removeKeyword=p.remove,Ajv.prototype.validateKeyword=p.validate;var d=t(35510);Ajv.ValidationError=d.Validation,Ajv.MissingRefError=d.MissingRef,Ajv.$dataMetaSchema=c;var m="http://json-schema.org/draft-07/schema",f=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],v=["/properties"];function Ajv(e){if(!(this instanceof Ajv))return new Ajv(e);e=this._opts=h.copy(e)||{},function setLogger(e){var r=e._opts.logger;if(!1===r)e.logger={log:noop,warn:noop,error:noop};else{if(void 0===r&&(r=console),!("object"==typeof r&&r.log&&r.warn&&r.error))throw new Error("logger must implement log, warn and error methods");e.logger=r}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=l(e.format),this._cache=e.cache||new o,this._loadingSchemas={},this._compilations=[],this.RULES=u(),this._getId=function chooseGetId(e){switch(e.schemaId){case"auto":return _get$IdOrId;case"id":return _getId;default:return _get$Id}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=n),this._metaOpts=function getMetaSchemaOptions(e){for(var r=h.copy(e._opts),t=0;t<f.length;t++)delete r[f[t]];return r}(this),e.formats&&function addInitialFormats(e){for(var r in e._opts.formats){var t=e._opts.formats[r];e.addFormat(r,t)}}(this),e.keywords&&function addInitialKeywords(e){for(var r in e._opts.keywords){var t=e._opts.keywords[r];e.addKeyword(r,t)}}(this),function addDefaultMetaSchema(e){var r;e._opts.$data&&(r=t(8633),e.addMetaSchema(r,r.$id,!0));if(!1===e._opts.meta)return;var a=t(2707);e._opts.$data&&(a=c(a,v));e.addMetaSchema(a,m,!0),e._refs["http://json-schema.org/schema"]=m}(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function addInitialSchemas(e){var r=e._opts.schemas;if(!r)return;if(Array.isArray(r))e.addSchema(r);else for(var t in r)e.addSchema(r[t],t)}(this)}function _getSchemaObj(e,r){return r=s.normalizeId(r),e._schemas[r]||e._refs[r]||e._fragments[r]}function _removeAllSchemas(e,r,t){for(var a in r){var s=r[a];s.meta||t&&!t.test(a)||(e._cache.del(s.cacheKey),delete r[a])}}function _getId(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function _get$Id(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function _get$IdOrId(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function checkUnique(e,r){if(e._schemas[r]||e._refs[r])throw new Error('schema with key or id "'+r+'" already exists')}function noop(){}},82945:e=>{"use strict";e.exports=function generate_anyOf(e,r,t){var a=" ",s=e.level,o=e.dataLevel,i=e.schema[r],n=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(o||""),h="valid"+s,p="errs__"+s,d=e.util.copy(e),m="";d.level++;var f="valid"+d.level,v=i.every((function(r){return e.opts.strictKeywords?"object"==typeof r&&Object.keys(r).length>0||!1===r:e.util.schemaHasRules(r,e.RULES.all)}));if(v){var g=d.baseId;a+=" var "+p+" = errors; var "+h+" = false; ";var y=e.compositeRule;e.compositeRule=d.compositeRule=!0;var P=i;if(P)for(var E,b=-1,w=P.length-1;b<w;)E=P[b+=1],d.schema=E,d.schemaPath=n+"["+b+"]",d.errSchemaPath=l+"/"+b,a+=" "+e.validate(d)+" ",d.baseId=g,a+=" "+h+" = "+h+" || "+f+"; if (!"+h+") { ",m+="}";e.compositeRule=d.compositeRule=y,a+=" "+m+" if (!"+h+") { var err = ",!1!==e.createErrors?(a+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(a+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(a+=" , schema: validate.schema"+n+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?a+=" throw new ValidationError(vErrors); ":a+=" validate.errors = vErrors; return false; "),a+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(a+=" } ")}else u&&(a+=" if (true) { ");return a}},85673:e=>{"use strict";e.exports=function generate_required(e,r,t){var a=" ",s=e.level,o=e.dataLevel,i=e.schema[r],n=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(o||""),h="valid"+s,p=e.opts.$data&&i&&i.$data;p&&(a+=" var schema"+s+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ");var d="schema"+s;if(!p)if(i.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var m=[],f=i;if(f)for(var v,g=-1,y=f.length-1;g<y;){v=f[g+=1];var P=e.schema.properties[v];P&&(e.opts.strictKeywords?"object"==typeof P&&Object.keys(P).length>0||!1===P:e.util.schemaHasRules(P,e.RULES.all))||(m[m.length]=v)}}else m=i;if(p||m.length){var E=e.errorPath,b=p||m.length>=e.opts.loopRequired,w=e.opts.ownProperties;if(u)if(a+=" var missing"+s+"; ",b){p||(a+=" var "+d+" = validate.schema"+n+"; ");var S="' + "+(D="schema"+s+"["+(R="i"+s)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(E,D,e.opts.jsonPointers)),a+=" var "+h+" = true; ",p&&(a+=" if (schema"+s+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+s+")) "+h+" = false; else {"),a+=" for (var "+R+" = 0; "+R+" < "+d+".length; "+R+"++) { "+h+" = "+c+"["+d+"["+R+"]] !== undefined ",w&&(a+=" && Object.prototype.hasOwnProperty.call("+c+", "+d+"["+R+"]) "),a+="; if (!"+h+") break; } ",p&&(a+=" } "),a+=" if (!"+h+") { ",($=$||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(a+=" , message: '",e.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+S+"\\'",a+="' "),e.opts.verbose&&(a+=" , schema: validate.schema"+n+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),a+=" } "):a+=" {} ";var x=a;a=$.pop(),!e.compositeRule&&u?e.async?a+=" throw new ValidationError(["+x+"]); ":a+=" validate.errors = ["+x+"]; return false; ":a+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else { "}else{a+=" if ( ";var _=m;if(_)for(var R=-1,F=_.length-1;R<F;){O=_[R+=1],R&&(a+=" || "),a+=" ( ( "+(k=c+(A=e.util.getProperty(O)))+" === undefined ",w&&(a+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(O)+"') "),a+=") && (missing"+s+" = "+e.util.toQuotedString(e.opts.jsonPointers?O:A)+") ) "}a+=") { ";var $;S="' + "+(D="missing"+s)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(E,D,!0):E+" + "+D),($=$||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(a+=" , message: '",e.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+S+"\\'",a+="' "),e.opts.verbose&&(a+=" , schema: validate.schema"+n+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),a+=" } "):a+=" {} ";x=a;a=$.pop(),!e.compositeRule&&u?e.async?a+=" throw new ValidationError(["+x+"]); ":a+=" validate.errors = ["+x+"]; return false; ":a+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else { "}else if(b){p||(a+=" var "+d+" = validate.schema"+n+"; ");var D;S="' + "+(D="schema"+s+"["+(R="i"+s)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(E,D,e.opts.jsonPointers)),p&&(a+=" if ("+d+" && !Array.isArray("+d+")) { var err = ",!1!==e.createErrors?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(a+=" , message: '",e.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+S+"\\'",a+="' "),e.opts.verbose&&(a+=" , schema: validate.schema"+n+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+d+" !== undefined) { "),a+=" for (var "+R+" = 0; "+R+" < "+d+".length; "+R+"++) { if ("+c+"["+d+"["+R+"]] === undefined ",w&&(a+=" || ! Object.prototype.hasOwnProperty.call("+c+", "+d+"["+R+"]) "),a+=") { var err = ",!1!==e.createErrors?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(a+=" , message: '",e.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+S+"\\'",a+="' "),e.opts.verbose&&(a+=" , schema: validate.schema"+n+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",p&&(a+=" } ")}else{var j=m;if(j)for(var O,C=-1,I=j.length-1;C<I;){O=j[C+=1];var A=e.util.getProperty(O),k=(S=e.util.escapeQuotes(O),c+A);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(E,O,e.opts.jsonPointers)),a+=" if ( "+k+" === undefined ",w&&(a+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(O)+"') "),a+=") { var err = ",!1!==e.createErrors?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(a+=" , message: '",e.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+S+"\\'",a+="' "),e.opts.verbose&&(a+=" , schema: validate.schema"+n+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=E}else u&&(a+=" if (true) {");return a}},88598:e=>{"use strict";e.exports=function generate_validate(e,r,t){var a="",s=!0===e.schema.$async,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),i=e.self._getId(e.schema);if(e.opts.strictKeywords){var n=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(n){var l="unknown keyword: "+n;if("log"!==e.opts.strictKeywords)throw new Error(l);e.logger.warn(l)}}if(e.isTop&&(a+=" var validate = ",s&&(e.async=!0,a+="async "),a+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",i&&(e.opts.sourceCode||e.opts.processCode)&&(a+=" /*# sourceURL="+i+" */ ")),"boolean"==typeof e.schema||!o&&!e.schema.$ref){r="false schema";var u=e.level,c=e.dataLevel,h=e.schema[r],p=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,m=!e.opts.allErrors,f="data"+(c||""),v="valid"+u;if(!1===e.schema){e.isTop?m=!0:a+=" var "+v+" = false; ",(G=G||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",!1!==e.opts.messages&&(a+=" , message: 'boolean schema is false' "),e.opts.verbose&&(a+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),a+=" } "):a+=" {} ";var g=a;a=G.pop(),!e.compositeRule&&m?e.async?a+=" throw new ValidationError(["+g+"]); ":a+=" validate.errors = ["+g+"]; return false; ":a+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?a+=s?" return data; ":" validate.errors = null; return true; ":a+=" var "+v+" = true; ";return e.isTop&&(a+=" }; return validate; "),a}if(e.isTop){var y=e.isTop;u=e.level=0,c=e.dataLevel=0,f="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var P="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(P);e.logger.warn(P)}a+=" var vErrors = null; ",a+=" var errors = 0; ",a+=" if (rootData === undefined) rootData = data; "}else{u=e.level,f="data"+((c=e.dataLevel)||"");if(i&&(e.baseId=e.resolve.url(e.baseId,i)),s&&!e.async)throw new Error("async schema in sync schema");a+=" var errs_"+u+" = errors;"}v="valid"+u,m=!e.opts.allErrors;var E="",b="",w=e.schema.type,S=Array.isArray(w);if(w&&e.opts.nullable&&!0===e.schema.nullable&&(S?-1==w.indexOf("null")&&(w=w.concat("null")):"null"!=w&&(w=[w,"null"],S=!0)),S&&1==w.length&&(w=w[0],S=!1),e.schema.$ref&&o){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(a+=" "+e.RULES.all.$comment.code(e,"$comment")),w){if(e.opts.coerceTypes)var x=e.util.coerceToTypes(e.opts.coerceTypes,w);var _=e.RULES.types[w];if(x||S||!0===_||_&&!$shouldUseGroup(_)){p=e.schemaPath+".type",d=e.errSchemaPath+"/type",p=e.schemaPath+".type",d=e.errSchemaPath+"/type";var R=S?"checkDataTypes":"checkDataType";if(a+=" if ("+e.util[R](w,f,e.opts.strictNumbers,!0)+") { ",x){var F="dataType"+u,$="coerced"+u;a+=" var "+F+" = typeof "+f+"; var "+$+" = undefined; ","array"==e.opts.coerceTypes&&(a+=" if ("+F+" == 'object' && Array.isArray("+f+") && "+f+".length == 1) { "+f+" = "+f+"[0]; "+F+" = typeof "+f+"; if ("+e.util.checkDataType(e.schema.type,f,e.opts.strictNumbers)+") "+$+" = "+f+"; } "),a+=" if ("+$+" !== undefined) ; ";var D=x;if(D)for(var j,O=-1,C=D.length-1;O<C;)"string"==(j=D[O+=1])?a+=" else if ("+F+" == 'number' || "+F+" == 'boolean') "+$+" = '' + "+f+"; else if ("+f+" === null) "+$+" = ''; ":"number"==j||"integer"==j?(a+=" else if ("+F+" == 'boolean' || "+f+" === null || ("+F+" == 'string' && "+f+" && "+f+" == +"+f+" ","integer"==j&&(a+=" && !("+f+" % 1)"),a+=")) "+$+" = +"+f+"; "):"boolean"==j?a+=" else if ("+f+" === 'false' || "+f+" === 0 || "+f+" === null) "+$+" = false; else if ("+f+" === 'true' || "+f+" === 1) "+$+" = true; ":"null"==j?a+=" else if ("+f+" === '' || "+f+" === 0 || "+f+" === false) "+$+" = null; ":"array"==e.opts.coerceTypes&&"array"==j&&(a+=" else if ("+F+" == 'string' || "+F+" == 'number' || "+F+" == 'boolean' || "+f+" == null) "+$+" = ["+f+"]; ");a+=" else { ",(G=G||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '",a+=S?""+w.join(","):""+w,a+="' } ",!1!==e.opts.messages&&(a+=" , message: 'should be ",a+=S?""+w.join(","):""+w,a+="' "),e.opts.verbose&&(a+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),a+=" } "):a+=" {} ";g=a;a=G.pop(),!e.compositeRule&&m?e.async?a+=" throw new ValidationError(["+g+"]); ":a+=" validate.errors = ["+g+"]; return false; ":a+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } if ("+$+" !== undefined) { ";var I=c?"data"+(c-1||""):"parentData";a+=" "+f+" = "+$+"; ",c||(a+="if ("+I+" !== undefined)"),a+=" "+I+"["+(c?e.dataPathArr[c]:"parentDataProperty")+"] = "+$+"; } "}else{(G=G||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '",a+=S?""+w.join(","):""+w,a+="' } ",!1!==e.opts.messages&&(a+=" , message: 'should be ",a+=S?""+w.join(","):""+w,a+="' "),e.opts.verbose&&(a+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),a+=" } "):a+=" {} ";g=a;a=G.pop(),!e.compositeRule&&m?e.async?a+=" throw new ValidationError(["+g+"]); ":a+=" validate.errors = ["+g+"]; return false; ":a+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } "}}if(e.schema.$ref&&!o)a+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",m&&(a+=" } if (errors === ",a+=y?"0":"errs_"+u,a+=") { ",b+="}");else{var A=e.RULES;if(A)for(var k=-1,z=A.length-1;k<z;)if($shouldUseGroup(_=A[k+=1])){if(_.type&&(a+=" if ("+e.util.checkDataType(_.type,f,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==_.type&&e.schema.properties){h=e.schema.properties;var L=Object.keys(h);if(L)for(var N,T=-1,U=L.length-1;T<U;){if(void 0!==(V=h[N=L[T+=1]]).default){var q=f+e.util.getProperty(N);if(e.compositeRule){if(e.opts.strictDefaults){P="default is ignored for: "+q;if("log"!==e.opts.strictDefaults)throw new Error(P);e.logger.warn(P)}}else a+=" if ("+q+" === undefined ","empty"==e.opts.useDefaults&&(a+=" || "+q+" === null || "+q+" === '' "),a+=" ) "+q+" = ","shared"==e.opts.useDefaults?a+=" "+e.useDefault(V.default)+" ":a+=" "+JSON.stringify(V.default)+" ",a+="; "}}}else if("array"==_.type&&Array.isArray(e.schema.items)){var Q=e.schema.items;if(Q){O=-1;for(var V,H=Q.length-1;O<H;)if(void 0!==(V=Q[O+=1]).default){q=f+"["+O+"]";if(e.compositeRule){if(e.opts.strictDefaults){P="default is ignored for: "+q;if("log"!==e.opts.strictDefaults)throw new Error(P);e.logger.warn(P)}}else a+=" if ("+q+" === undefined ","empty"==e.opts.useDefaults&&(a+=" || "+q+" === null || "+q+" === '' "),a+=" ) "+q+" = ","shared"==e.opts.useDefaults?a+=" "+e.useDefault(V.default)+" ":a+=" "+JSON.stringify(V.default)+" ",a+="; "}}}var M=_.rules;if(M)for(var K,J=-1,B=M.length-1;J<B;)if($shouldUseRule(K=M[J+=1])){var Z=K.code(e,K.keyword,_.type);Z&&(a+=" "+Z+" ",m&&(E+="}"))}if(m&&(a+=" "+E+" ",E=""),_.type&&(a+=" } ",w&&w===_.type&&!x)){a+=" else { ";var G;p=e.schemaPath+".type",d=e.errSchemaPath+"/type";(G=G||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '",a+=S?""+w.join(","):""+w,a+="' } ",!1!==e.opts.messages&&(a+=" , message: 'should be ",a+=S?""+w.join(","):""+w,a+="' "),e.opts.verbose&&(a+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),a+=" } "):a+=" {} ";g=a;a=G.pop(),!e.compositeRule&&m?e.async?a+=" throw new ValidationError(["+g+"]); ":a+=" validate.errors = ["+g+"]; return false; ":a+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } "}m&&(a+=" if (errors === ",a+=y?"0":"errs_"+u,a+=") { ",b+="}")}}function $shouldUseGroup(e){for(var r=e.rules,t=0;t<r.length;t++)if($shouldUseRule(r[t]))return!0}function $shouldUseRule(r){return void 0!==e.schema[r.keyword]||r.implements&&function $ruleImplementsSomeKeyword(r){for(var t=r.implements,a=0;a<t.length;a++)if(void 0!==e.schema[t[a]])return!0}(r)}return m&&(a+=" "+b+" "),y?(s?(a+=" if (errors === 0) return data; ",a+=" else throw new ValidationError(vErrors); "):(a+=" validate.errors = vErrors; ",a+=" return errors === 0; "),a+=" }; return validate;"):a+=" var "+v+" = errors === errs_"+u+";",a}},89495:(e,r,t)=>{"use strict";var a=t(35510).MissingRef;e.exports=function compileAsync(e,r,t){var s=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof r&&(t=r,r=void 0);var o=loadMetaSchemaOf(e).then((function(){var t=s._addSchema(e,void 0,r);return t.validate||_compileAsync(t)}));t&&o.then((function(e){t(null,e)}),t);return o;function loadMetaSchemaOf(e){var r=e.$schema;return r&&!s.getSchema(r)?compileAsync.call(s,{$ref:r},!0):Promise.resolve()}function _compileAsync(e){try{return s._compile(e)}catch(t){if(t instanceof a)return function loadMissingSchema(t){var a=t.missingSchema;if(added(a))throw new Error("Schema "+a+" is loaded but "+t.missingRef+" cannot be resolved");var o=s._loadingSchemas[a];o||(o=s._loadingSchemas[a]=s._opts.loadSchema(a)).then(removePromise,removePromise);return o.then((function(e){if(!added(a))return loadMetaSchemaOf(e).then((function(){added(a)||s.addSchema(e,a,void 0,r)}))})).then((function(){return _compileAsync(e)}));function removePromise(){delete s._loadingSchemas[a]}function added(e){return s._refs[e]||s._schemas[e]}}(t);throw t}}}},90351:(e,r,t)=>{"use strict";var a=t(23391),s=t(17327),o=t(35510),i=t(56075),n=t(88598),l=s.ucs2length,u=t(38792),c=o.Validation;function checkCompiling(e,r,t){var a=compIndex.call(this,e,r,t);return a>=0?{index:a,compiling:!0}:(a=this._compilations.length,this._compilations[a]={schema:e,root:r,baseId:t},{index:a,compiling:!1})}function endCompiling(e,r,t){var a=compIndex.call(this,e,r,t);a>=0&&this._compilations.splice(a,1)}function compIndex(e,r,t){for(var a=0;a<this._compilations.length;a++){var s=this._compilations[a];if(s.schema==e&&s.root==r&&s.baseId==t)return a}return-1}function patternCode(e,r){return"var pattern"+e+" = new RegExp("+s.toQuotedString(r[e])+");"}function defaultCode(e){return"var default"+e+" = defaults["+e+"];"}function refValCode(e,r){return void 0===r[e]?"":"var refVal"+e+" = refVal["+e+"];"}function customRuleCode(e){return"var customRule"+e+" = customRules["+e+"];"}function vars(e,r){if(!e.length)return"";for(var t="",a=0;a<e.length;a++)t+=r(a,e);return t}e.exports=function compile(e,r,t,h){var p=this,d=this._opts,m=[void 0],f={},v=[],g={},y=[],P={},E=[];r=r||{schema:e,refVal:m,refs:f};var b=checkCompiling.call(this,e,r,h),w=this._compilations[b.index];if(b.compiling)return w.callValidate=function callValidate(){var e=w.validate,r=e.apply(this,arguments);return callValidate.errors=e.errors,r};var S=this._formats,x=this.RULES;try{var _=localCompile(e,r,t,h);w.validate=_;var R=w.callValidate;return R&&(R.schema=_.schema,R.errors=null,R.refs=_.refs,R.refVal=_.refVal,R.root=_.root,R.$async=_.$async,d.sourceCode&&(R.source=_.source)),_}finally{endCompiling.call(this,e,r,h)}function localCompile(e,t,i,h){var g=!t||t&&t.schema==e;if(t.schema!=r.schema)return compile.call(p,e,t,i,h);var P,b=!0===e.$async,w=n({isTop:!0,schema:e,isRoot:g,baseId:h,root:t,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:o.MissingRef,RULES:x,validate:n,util:s,resolve:a,resolveRef,usePattern,useDefault,useCustomRule,opts:d,formats:S,logger:p.logger,self:p});w=vars(m,refValCode)+vars(v,patternCode)+vars(y,defaultCode)+vars(E,customRuleCode)+w,d.processCode&&(w=d.processCode(w,e));try{P=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",w)(p,x,S,r,m,y,E,u,l,c),m[0]=P}catch(e){throw p.logger.error("Error compiling schema, function code:",w),e}return P.schema=e,P.errors=null,P.refs=f,P.refVal=m,P.root=g?P:t,b&&(P.$async=!0),!0===d.sourceCode&&(P.source={code:w,patterns:v,defaults:y}),P}function resolveRef(e,s,o){s=a.url(e,s);var i,n,l=f[s];if(void 0!==l)return resolvedRef(i=m[l],n="refVal["+l+"]");if(!o&&r.refs){var u=r.refs[s];if(void 0!==u)return resolvedRef(i=r.refVal[u],n=addLocalRef(s,i))}n=addLocalRef(s);var c=a.call(p,localCompile,r,s);if(void 0===c){var h=t&&t[s];h&&(c=a.inlineRef(h,d.inlineRefs)?h:compile.call(p,h,r,t,e))}if(void 0!==c)return function replaceLocalRef(e,r){var t=f[e];m[t]=r}(s,c),resolvedRef(c,n);!function removeLocalRef(e){delete f[e]}(s)}function addLocalRef(e,r){var t=m.length;return m[t]=r,f[e]=t,"refVal"+t}function resolvedRef(e,r){return"object"==typeof e||"boolean"==typeof e?{code:r,schema:e,inline:!0}:{code:r,$async:e&&!!e.$async}}function usePattern(e){var r=g[e];return void 0===r&&(r=g[e]=v.length,v[r]=e),"pattern"+r}function useDefault(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return s.toQuotedString(e);case"object":if(null===e)return"null";var r=i(e),t=P[r];return void 0===t&&(t=P[r]=y.length,y[t]=e),"default"+t}}function useCustomRule(e,r,t,a){if(!1!==p._opts.validateSchema){var s=e.definition.dependencies;if(s&&!s.every((function(e){return Object.prototype.hasOwnProperty.call(t,e)})))throw new Error("parent schema must have all required keywords: "+s.join(","));var o=e.definition.validateSchema;if(o)if(!o(r)){var i="keyword schema is invalid: "+p.errorsText(o.errors);if("log"!=p._opts.validateSchema)throw new Error(i);p.logger.error(i)}}var n,l=e.definition.compile,u=e.definition.inline,c=e.definition.macro;if(l)n=l.call(p,r,t,a);else if(c)n=c.call(p,r,t,a),!1!==d.validateSchema&&p.validateSchema(n,!0);else if(u)n=u.call(p,a,e.keyword,r,t);else if(!(n=e.definition.validate))return;if(void 0===n)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var h=E.length;return E[h]=n,{code:"customRule"+h,validate:n}}}},93890:(e,r,t)=>{"use strict";e.exports={$ref:t(47963),allOf:t(7916),anyOf:t(82945),$comment:t(33523),const:t(67814),contains:t(10877),dependencies:t(46313),enum:t(81997),format:t(4243),if:t(49295),items:t(24998),maximum:t(61351),minimum:t(61351),maxItems:t(18354),minItems:t(18354),maxLength:t(22204),minLength:t(22204),maxProperties:t(28921),minProperties:t(28921),multipleOf:t(32994),not:t(99387),oneOf:t(50539),pattern:t(99224),properties:t(95709),propertyNames:t(71449),required:t(85673),uniqueItems:t(21131),validate:t(88598)}},93983:e=>{"use strict";var r=e.exports=function Cache(){this._cache={}};r.prototype.put=function Cache_put(e,r){this._cache[e]=r},r.prototype.get=function Cache_get(e){return this._cache[e]},r.prototype.del=function Cache_del(e){delete this._cache[e]},r.prototype.clear=function Cache_clear(){this._cache={}}},95709:e=>{"use strict";e.exports=function generate_properties(e,r,t){var a=" ",s=e.level,o=e.dataLevel,i=e.schema[r],n=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(o||""),h="errs__"+s,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,f="key"+s,v="idx"+s,g=p.dataLevel=e.dataLevel+1,y="data"+g,P="dataProperties"+s,E=Object.keys(i||{}).filter(notProto),b=e.schema.patternProperties||{},w=Object.keys(b).filter(notProto),S=e.schema.additionalProperties,x=E.length||w.length,_=!1===S,R="object"==typeof S&&Object.keys(S).length,F=e.opts.removeAdditional,$=_||R||F,D=e.opts.ownProperties,j=e.baseId,O=e.schema.required;if(O&&(!e.opts.$data||!O.$data)&&O.length<e.opts.loopRequired)var C=e.util.toHash(O);function notProto(e){return"__proto__"!==e}if(a+="var "+h+" = errors;var "+m+" = true;",D&&(a+=" var "+P+" = undefined;"),$){if(a+=D?" "+P+" = "+P+" || Object.keys("+c+"); for (var "+v+"=0; "+v+"<"+P+".length; "+v+"++) { var "+f+" = "+P+"["+v+"]; ":" for (var "+f+" in "+c+") { ",x){if(a+=" var isAdditional"+s+" = !(false ",E.length)if(E.length>8)a+=" || validate.schema"+n+".hasOwnProperty("+f+") ";else{var I=E;if(I)for(var A=-1,k=I.length-1;A<k;)B=I[A+=1],a+=" || "+f+" == "+e.util.toQuotedString(B)+" "}if(w.length){var z=w;if(z)for(var L=-1,N=z.length-1;L<N;)se=z[L+=1],a+=" || "+e.usePattern(se)+".test("+f+") "}a+=" ); if (isAdditional"+s+") { "}if("all"==F)a+=" delete "+c+"["+f+"]; ";else{var T=e.errorPath,U="' + "+f+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,f,e.opts.jsonPointers)),_)if(F)a+=" delete "+c+"["+f+"]; ";else{a+=" "+m+" = false; ";var q=l;l=e.errSchemaPath+"/additionalProperties",(re=re||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { additionalProperty: '"+U+"' } ",!1!==e.opts.messages&&(a+=" , message: '",e.opts._errorDataPathProperty?a+="is an invalid additional property":a+="should NOT have additional properties",a+="' "),e.opts.verbose&&(a+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),a+=" } "):a+=" {} ";var Q=a;a=re.pop(),!e.compositeRule&&u?e.async?a+=" throw new ValidationError(["+Q+"]); ":a+=" validate.errors = ["+Q+"]; return false; ":a+=" var err = "+Q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=q,u&&(a+=" break; ")}else if(R)if("failing"==F){a+=" var "+h+" = errors; ";var V=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=S,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,f,e.opts.jsonPointers);var H=c+"["+f+"]";p.dataPathArr[g]=f;var M=e.validate(p);p.baseId=j,e.util.varOccurences(M,y)<2?a+=" "+e.util.varReplace(M,y,H)+" ":a+=" var "+y+" = "+H+"; "+M+" ",a+=" if (!"+m+") { errors = "+h+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+c+"["+f+"]; } ",e.compositeRule=p.compositeRule=V}else{p.schema=S,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,f,e.opts.jsonPointers);H=c+"["+f+"]";p.dataPathArr[g]=f;M=e.validate(p);p.baseId=j,e.util.varOccurences(M,y)<2?a+=" "+e.util.varReplace(M,y,H)+" ":a+=" var "+y+" = "+H+"; "+M+" ",u&&(a+=" if (!"+m+") break; ")}e.errorPath=T}x&&(a+=" } "),a+=" } ",u&&(a+=" if ("+m+") { ",d+="}")}var K=e.opts.useDefaults&&!e.compositeRule;if(E.length){var J=E;if(J)for(var B,Z=-1,G=J.length-1;Z<G;){var Y=i[B=J[Z+=1]];if(e.opts.strictKeywords?"object"==typeof Y&&Object.keys(Y).length>0||!1===Y:e.util.schemaHasRules(Y,e.RULES.all)){var W=e.util.getProperty(B),X=(H=c+W,K&&void 0!==Y.default);p.schema=Y,p.schemaPath=n+W,p.errSchemaPath=l+"/"+e.util.escapeFragment(B),p.errorPath=e.util.getPath(e.errorPath,B,e.opts.jsonPointers),p.dataPathArr[g]=e.util.toQuotedString(B);M=e.validate(p);if(p.baseId=j,e.util.varOccurences(M,y)<2){M=e.util.varReplace(M,y,H);var ee=H}else{ee=y;a+=" var "+y+" = "+H+"; "}if(X)a+=" "+M+" ";else{if(C&&C[B]){a+=" if ( "+ee+" === undefined ",D&&(a+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(B)+"') "),a+=") { "+m+" = false; ";T=e.errorPath,q=l;var re,te=e.util.escapeQuotes(B);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(T,B,e.opts.jsonPointers)),l=e.errSchemaPath+"/required",(re=re||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+te+"' } ",!1!==e.opts.messages&&(a+=" , message: '",e.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+te+"\\'",a+="' "),e.opts.verbose&&(a+=" , schema: validate.schema"+n+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),a+=" } "):a+=" {} ";Q=a;a=re.pop(),!e.compositeRule&&u?e.async?a+=" throw new ValidationError(["+Q+"]); ":a+=" validate.errors = ["+Q+"]; return false; ":a+=" var err = "+Q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=q,e.errorPath=T,a+=" } else { "}else u?(a+=" if ( "+ee+" === undefined ",D&&(a+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(B)+"') "),a+=") { "+m+" = true; } else { "):(a+=" if ("+ee+" !== undefined ",D&&(a+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(B)+"') "),a+=" ) { ");a+=" "+M+" } "}}u&&(a+=" if ("+m+") { ",d+="}")}}if(w.length){var ae=w;if(ae)for(var se,oe=-1,ie=ae.length-1;oe<ie;){Y=b[se=ae[oe+=1]];if(e.opts.strictKeywords?"object"==typeof Y&&Object.keys(Y).length>0||!1===Y:e.util.schemaHasRules(Y,e.RULES.all)){p.schema=Y,p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(se),p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(se),a+=D?" "+P+" = "+P+" || Object.keys("+c+"); for (var "+v+"=0; "+v+"<"+P+".length; "+v+"++) { var "+f+" = "+P+"["+v+"]; ":" for (var "+f+" in "+c+") { ",a+=" if ("+e.usePattern(se)+".test("+f+")) { ",p.errorPath=e.util.getPathExpr(e.errorPath,f,e.opts.jsonPointers);H=c+"["+f+"]";p.dataPathArr[g]=f;M=e.validate(p);p.baseId=j,e.util.varOccurences(M,y)<2?a+=" "+e.util.varReplace(M,y,H)+" ":a+=" var "+y+" = "+H+"; "+M+" ",u&&(a+=" if (!"+m+") break; "),a+=" } ",u&&(a+=" else "+m+" = true; "),a+=" } ",u&&(a+=" if ("+m+") { ",d+="}")}}}return u&&(a+=" "+d+" if ("+h+" == errors) {"),a}},99224:e=>{"use strict";e.exports=function generate_pattern(e,r,t){var a,s=" ",o=e.level,i=e.dataLevel,n=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,h="data"+(i||""),p=e.opts.$data&&n&&n.$data;p?(s+=" var schema"+o+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",a="schema"+o):a=n,s+="if ( ",p&&(s+=" ("+a+" !== undefined && typeof "+a+" != 'string') || "),s+=" !"+(p?"(new RegExp("+a+"))":e.usePattern(n))+".test("+h+") ) { ";var d=d||[];d.push(s),s="",!1!==e.createErrors?(s+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ",s+=p?""+a:""+e.util.toQuotedString(n),s+=" } ",!1!==e.opts.messages&&(s+=" , message: 'should match pattern \"",s+=p?"' + "+a+" + '":""+e.util.escapeQuotes(n),s+="\"' "),e.opts.verbose&&(s+=" , schema: ",s+=p?"validate.schema"+l:""+e.util.toQuotedString(n),s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var m=s;return s=d.pop(),!e.compositeRule&&c?e.async?s+=" throw new ValidationError(["+m+"]); ":s+=" validate.errors = ["+m+"]; return false; ":s+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",c&&(s+=" else { "),s}},99387:e=>{"use strict";e.exports=function generate_not(e,r,t){var a=" ",s=e.level,o=e.dataLevel,i=e.schema[r],n=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(o||""),h="errs__"+s,p=e.util.copy(e);p.level++;var d="valid"+p.level;if(e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all)){p.schema=i,p.schemaPath=n,p.errSchemaPath=l,a+=" var "+h+" = errors; ";var m,f=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.createErrors=!1,p.opts.allErrors&&(m=p.opts.allErrors,p.opts.allErrors=!1),a+=" "+e.validate(p)+" ",p.createErrors=!0,m&&(p.opts.allErrors=m),e.compositeRule=p.compositeRule=f,a+=" if ("+d+") { ";var v=v||[];v.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(a+=" , message: 'should NOT be valid' "),e.opts.verbose&&(a+=" , schema: validate.schema"+n+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),a+=" } "):a+=" {} ";var g=a;a=v.pop(),!e.compositeRule&&u?e.async?a+=" throw new ValidationError(["+g+"]); ":a+=" validate.errors = ["+g+"]; return false; ":a+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(a+=" } ")}else a+=" var err = ",!1!==e.createErrors?(a+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(a+=" , message: 'should NOT be valid' "),e.opts.verbose&&(a+=" , schema: validate.schema"+n+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(a+=" if (false) { ");return a}}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=186,exports.ids=[186],exports.modules={54805:(t,e,r)=>{r.r(e),r.d(e,{StreamableHTTPClientTransport:()=>StreamableHTTPClientTransport,StreamableHTTPError:()=>StreamableHTTPError});var o=r(13298),s=r(51345);class ParseError extends Error{constructor(t,e){super(t),this.name="ParseError",this.type=e.type,this.field=e.field,this.value=e.value,this.line=e.line}}function noop(t){}function createParser(t){if("function"==typeof t)throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");const{onEvent:e=noop,onError:r=noop,onRetry:o=noop,onComment:s}=t;let n,i="",a=!0,l="",c="";function parseLine(t){if(""===t)return void function dispatchEvent(){l.length>0&&e({id:n,event:c||void 0,data:l.endsWith("\n")?l.slice(0,-1):l}),n=void 0,l="",c=""}();if(t.startsWith(":"))return void(s&&s(t.slice(t.startsWith(": ")?2:1)));const r=t.indexOf(":");if(-1===r)processField(t,"",t);else{const e=t.slice(0,r),o=" "===t[r+1]?2:1;processField(e,t.slice(r+o),t)}}function processField(t,e,s){switch(t){case"event":c=e;break;case"data":l=`${l}${e}\n`;break;case"id":n=e.includes("\0")?void 0:e;break;case"retry":/^\d+$/.test(e)?o(parseInt(e,10)):r(new ParseError(`Invalid \`retry\` value: "${e}"`,{type:"invalid-retry",value:e,line:s}));break;default:r(new ParseError(`Unknown field "${t.length>20?`${t.slice(0,20)}…`:t}"`,{type:"unknown-field",field:t,value:e,line:s}))}}return{feed:function feed(t){const e=a?t.replace(/^\xEF\xBB\xBF/,""):t,[r,o]=function splitLines(t){const e=[];let r="",o=0;for(;o<t.length;){const s=t.indexOf("\r",o),n=t.indexOf("\n",o);let i=-1;if(-1!==s&&-1!==n?i=Math.min(s,n):-1!==s?i=s:-1!==n&&(i=n),-1===i){r=t.slice(o);break}{const r=t.slice(o,i);e.push(r),o=i+1,"\r"===t[o-1]&&"\n"===t[o]&&o++}}return[e,r]}(`${i}${e}`);for(const t of r)parseLine(t);i=o,a=!1},reset:function reset(t={}){i&&t.consume&&parseLine(i),a=!0,n=void 0,l="",c="",i=""}}}class EventSourceParserStream extends TransformStream{constructor({onError:t,onRetry:e,onComment:r}={}){let o;super({start(s){o=createParser({onEvent:t=>{s.enqueue(t)},onError(e){"terminate"===t?s.error(e):"function"==typeof t&&t(e)},onRetry:e,onComment:r})},transform(t){o.feed(t)}})}}const n={initialReconnectionDelay:1e3,maxReconnectionDelay:3e4,reconnectionDelayGrowFactor:1.5,maxRetries:2};class StreamableHTTPError extends Error{constructor(t,e){super(`Streamable HTTP error: ${e}`),this.code=t}}class StreamableHTTPClientTransport{constructor(t,e){var r;this._url=t,this._resourceMetadataUrl=void 0,this._requestInit=null==e?void 0:e.requestInit,this._authProvider=null==e?void 0:e.authProvider,this._fetch=null==e?void 0:e.fetch,this._sessionId=null==e?void 0:e.sessionId,this._reconnectionOptions=null!==(r=null==e?void 0:e.reconnectionOptions)&&void 0!==r?r:n}async _authThenStart(){var t;if(!this._authProvider)throw new s.D_("No auth provider");let e;try{e=await(0,s.j2)(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})}catch(e){throw null===(t=this.onerror)||void 0===t||t.call(this,e),e}if("AUTHORIZED"!==e)throw new s.D_;return await this._startOrAuthSse({resumptionToken:void 0})}async _commonHeaders(){var t;const e={};if(this._authProvider){const t=await this._authProvider.tokens();t&&(e.Authorization=`Bearer ${t.access_token}`)}this._sessionId&&(e["mcp-session-id"]=this._sessionId),this._protocolVersion&&(e["mcp-protocol-version"]=this._protocolVersion);const r=this._normalizeHeaders(null===(t=this._requestInit)||void 0===t?void 0:t.headers);return new Headers({...e,...r})}async _startOrAuthSse(t){var e,r,o;const{resumptionToken:s}=t;try{const o=await this._commonHeaders();o.set("Accept","text/event-stream"),s&&o.set("last-event-id",s);const n=await(null!==(e=this._fetch)&&void 0!==e?e:fetch)(this._url,{method:"GET",headers:o,signal:null===(r=this._abortController)||void 0===r?void 0:r.signal});if(!n.ok){if(401===n.status&&this._authProvider)return await this._authThenStart();if(405===n.status)return;throw new StreamableHTTPError(n.status,`Failed to open SSE stream: ${n.statusText}`)}this._handleSseStream(n.body,t,!0)}catch(t){throw null===(o=this.onerror)||void 0===o||o.call(this,t),t}}_getNextReconnectionDelay(t){const e=this._reconnectionOptions.initialReconnectionDelay,r=this._reconnectionOptions.reconnectionDelayGrowFactor,o=this._reconnectionOptions.maxReconnectionDelay;return Math.min(e*Math.pow(r,t),o)}_normalizeHeaders(t){return t?t instanceof Headers?Object.fromEntries(t.entries()):Array.isArray(t)?Object.fromEntries(t):{...t}:{}}_scheduleReconnection(t,e=0){var r;const o=this._reconnectionOptions.maxRetries;if(o>0&&e>=o)return void(null===(r=this.onerror)||void 0===r||r.call(this,new Error(`Maximum reconnection attempts (${o}) exceeded.`)));const s=this._getNextReconnectionDelay(e);setTimeout((()=>{this._startOrAuthSse(t).catch((r=>{var o;null===(o=this.onerror)||void 0===o||o.call(this,new Error(`Failed to reconnect SSE stream: ${r instanceof Error?r.message:String(r)}`)),this._scheduleReconnection(t,e+1)}))}),s)}_handleSseStream(t,e,r){if(!t)return;const{onresumptiontoken:s,replayMessageId:n}=e;let i;(async()=>{var e,a,l,c;try{const r=t.pipeThrough(new TextDecoderStream).pipeThrough(new EventSourceParserStream).getReader();for(;;){const{value:t,done:l}=await r.read();if(l)break;if(t.id&&(i=t.id,null==s||s(t.id)),!t.event||"message"===t.event)try{const r=o.JSONRPCMessageSchema.parse(JSON.parse(t.data));void 0!==n&&(0,o.isJSONRPCResponse)(r)&&(r.id=n),null===(e=this.onmessage)||void 0===e||e.call(this,r)}catch(t){null===(a=this.onerror)||void 0===a||a.call(this,t)}}}catch(t){if(null===(l=this.onerror)||void 0===l||l.call(this,new Error(`SSE stream disconnected: ${t}`)),r&&this._abortController&&!this._abortController.signal.aborted)try{this._scheduleReconnection({resumptionToken:i,onresumptiontoken:s,replayMessageId:n},0)}catch(t){null===(c=this.onerror)||void 0===c||c.call(this,new Error(`Failed to reconnect: ${t instanceof Error?t.message:String(t)}`))}}})()}async start(){if(this._abortController)throw new Error("StreamableHTTPClientTransport already started! If using Client class, note that connect() calls start() automatically.");this._abortController=new AbortController}async finishAuth(t){if(!this._authProvider)throw new s.D_("No auth provider");if("AUTHORIZED"!==await(0,s.j2)(this._authProvider,{serverUrl:this._url,authorizationCode:t,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch}))throw new s.D_("Failed to authorize")}async close(){var t,e;null===(t=this._abortController)||void 0===t||t.abort(),null===(e=this.onclose)||void 0===e||e.call(this)}async send(t,e){var r,n,i,a;try{const{resumptionToken:a,onresumptiontoken:l}=e||{};if(a)return void this._startOrAuthSse({resumptionToken:a,replayMessageId:(0,o.isJSONRPCRequest)(t)?t.id:void 0}).catch((t=>{var e;return null===(e=this.onerror)||void 0===e?void 0:e.call(this,t)}));const c=await this._commonHeaders();c.set("content-type","application/json"),c.set("accept","application/json, text/event-stream");const h={...this._requestInit,method:"POST",headers:c,body:JSON.stringify(t),signal:null===(r=this._abortController)||void 0===r?void 0:r.signal},d=await(null!==(n=this._fetch)&&void 0!==n?n:fetch)(this._url,h),u=d.headers.get("mcp-session-id");if(u&&(this._sessionId=u),!d.ok){if(401===d.status&&this._authProvider){this._resourceMetadataUrl=(0,s.cV)(d);if("AUTHORIZED"!==await(0,s.j2)(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch}))throw new s.D_;return this.send(t)}const e=await d.text().catch((()=>null));throw new Error(`Error POSTing to endpoint (HTTP ${d.status}): ${e}`)}if(202===d.status)return void((0,o.isInitializedNotification)(t)&&this._startOrAuthSse({resumptionToken:void 0}).catch((t=>{var e;return null===(e=this.onerror)||void 0===e?void 0:e.call(this,t)})));const v=(Array.isArray(t)?t:[t]).filter((t=>"method"in t&&"id"in t&&void 0!==t.id)).length>0,m=d.headers.get("content-type");if(v)if(null==m?void 0:m.includes("text/event-stream"))this._handleSseStream(d.body,{onresumptiontoken:l},!1);else{if(!(null==m?void 0:m.includes("application/json")))throw new StreamableHTTPError(-1,`Unexpected content type: ${m}`);{const t=await d.json(),e=Array.isArray(t)?t.map((t=>o.JSONRPCMessageSchema.parse(t))):[o.JSONRPCMessageSchema.parse(t)];for(const t of e)null===(i=this.onmessage)||void 0===i||i.call(this,t)}}}catch(t){throw null===(a=this.onerror)||void 0===a||a.call(this,t),t}}get sessionId(){return this._sessionId}async terminateSession(){var t,e,r;if(this._sessionId)try{const r=await this._commonHeaders(),o={...this._requestInit,method:"DELETE",headers:r,signal:null===(t=this._abortController)||void 0===t?void 0:t.signal},s=await(null!==(e=this._fetch)&&void 0!==e?e:fetch)(this._url,o);if(!s.ok&&405!==s.status)throw new StreamableHTTPError(s.status,`Failed to terminate session: ${s.statusText}`);this._sessionId=void 0}catch(t){throw null===(r=this.onerror)||void 0===r||r.call(this,t),t}}setProtocolVersion(t){this._protocolVersion=t}get protocolVersion(){return this._protocolVersion}}}};
@@ -1 +0,0 @@
1
- exports.id=393,exports.ids=[393],exports.modules={8147:(t,r,e)=>{"use strict";const s=e(16928),n=e(54080),o=e(50078),i=e(34489),c="win32"===process.platform,a=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function parseNonShell(t){if(!c)return t;const r=function detectShebang(t){t.file=n(t);const r=t.file&&i(t.file);return r?(t.args.unshift(t.file),t.command=r,n(t)):t.file}(t),e=!a.test(r);if(t.options.forceShell||e){const e=l.test(r);t.command=s.normalize(t.command),t.command=o.command(t.command),t.args=t.args.map((t=>o.argument(t,e)));const n=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${n}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}t.exports=function parse(t,r,e){r&&!Array.isArray(r)&&(e=r,r=null);const s={command:t,args:r=r?r.slice(0):[],options:e=Object.assign({},e),file:void 0,original:{command:t,args:r}};return e.shell?s:parseNonShell(s)}},14155:(t,r,e)=>{t.exports=isexe,isexe.sync=function sync(t,r){return checkStat(s.statSync(t),r)};var s=e(79896);function isexe(t,r,e){s.stat(t,(function(t,s){e(t,!t&&checkStat(s,r))}))}function checkStat(t,r){return t.isFile()&&function checkMode(t,r){var e=t.mode,s=t.uid,n=t.gid,o=void 0!==r.uid?r.uid:process.getuid&&process.getuid(),i=void 0!==r.gid?r.gid:process.getgid&&process.getgid(),c=parseInt("100",8),a=parseInt("010",8),l=parseInt("001",8),u=c|a;return e&l||e&a&&n===i||e&c&&s===o||e&u&&0===o}(t,r)}},24326:(t,r,e)=>{const s="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,n=e(16928),o=s?";":":",i=e(79882),getNotFoundError=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),getPathInfo=(t,r)=>{const e=r.colon||o,n=t.match(/\//)||s&&t.match(/\\/)?[""]:[...s?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(e)],i=s?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",c=s?i.split(e):[""];return s&&-1!==t.indexOf(".")&&""!==c[0]&&c.unshift(""),{pathEnv:n,pathExt:c,pathExtExe:i}},which=(t,r,e)=>{"function"==typeof r&&(e=r,r={}),r||(r={});const{pathEnv:s,pathExt:o,pathExtExe:c}=getPathInfo(t,r),a=[],step=e=>new Promise(((o,i)=>{if(e===s.length)return r.all&&a.length?o(a):i(getNotFoundError(t));const c=s[e],l=/^".*"$/.test(c)?c.slice(1,-1):c,u=n.join(l,t),p=!l&&/^\.[\\\/]/.test(t)?t.slice(0,2)+u:u;o(subStep(p,e,0))})),subStep=(t,e,s)=>new Promise(((n,l)=>{if(s===o.length)return n(step(e+1));const u=o[s];i(t+u,{pathExt:c},((o,i)=>{if(!o&&i){if(!r.all)return n(t+u);a.push(t+u)}return n(subStep(t,e,s+1))}))}));return e?step(0).then((t=>e(null,t)),e):step(0)};t.exports=which,which.sync=(t,r)=>{r=r||{};const{pathEnv:e,pathExt:s,pathExtExe:o}=getPathInfo(t,r),c=[];for(let a=0;a<e.length;a++){const l=e[a],u=/^".*"$/.test(l)?l.slice(1,-1):l,p=n.join(u,t),d=!u&&/^\.[\\\/]/.test(t)?t.slice(0,2)+p:p;for(let t=0;t<s.length;t++){const e=d+s[t];try{if(i.sync(e,{pathExt:o})){if(!r.all)return e;c.push(e)}}catch(t){}}}if(r.all&&c.length)return c;if(r.nothrow)return null;throw getNotFoundError(t)}},30393:(t,r,e)=>{"use strict";e.r(r),e.d(r,{DEFAULT_INHERITED_ENV_VARS:()=>c,StdioClientTransport:()=>StdioClientTransport,getDefaultEnvironment:()=>getDefaultEnvironment});var s=e(91092),n=e(1708),o=e(57075),i=e(13298);class ReadBuffer{append(t){this._buffer=this._buffer?Buffer.concat([this._buffer,t]):t}readMessage(){if(!this._buffer)return null;const t=this._buffer.indexOf("\n");if(-1===t)return null;const r=this._buffer.toString("utf8",0,t).replace(/\r$/,"");return this._buffer=this._buffer.subarray(t+1),function deserializeMessage(t){return i.JSONRPCMessageSchema.parse(JSON.parse(t))}(r)}clear(){this._buffer=void 0}}const c="win32"===n.platform?["APPDATA","HOMEDRIVE","HOMEPATH","LOCALAPPDATA","PATH","PROCESSOR_ARCHITECTURE","SYSTEMDRIVE","SYSTEMROOT","TEMP","USERNAME","USERPROFILE","PROGRAMFILES"]:["HOME","LOGNAME","PATH","SHELL","TERM","USER"];function getDefaultEnvironment(){const t={};for(const r of c){const e=n.env[r];void 0!==e&&(e.startsWith("()")||(t[r]=e))}return t}class StdioClientTransport{constructor(t){this._abortController=new AbortController,this._readBuffer=new ReadBuffer,this._stderrStream=null,this._serverParams=t,"pipe"!==t.stderr&&"overlapped"!==t.stderr||(this._stderrStream=new o.PassThrough)}async start(){if(this._process)throw new Error("StdioClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise(((t,r)=>{var e,o,i,c,a;this._process=s(this._serverParams.command,null!==(e=this._serverParams.args)&&void 0!==e?e:[],{env:{...getDefaultEnvironment(),...this._serverParams.env},stdio:["pipe","pipe",null!==(o=this._serverParams.stderr)&&void 0!==o?o:"inherit"],shell:!1,signal:this._abortController.signal,windowsHide:"win32"===n.platform&&"type"in n,cwd:this._serverParams.cwd}),this._process.on("error",(t=>{var e,s;"AbortError"!==t.name?(r(t),null===(s=this.onerror)||void 0===s||s.call(this,t)):null===(e=this.onclose)||void 0===e||e.call(this)})),this._process.on("spawn",(()=>{t()})),this._process.on("close",(t=>{var r;this._process=void 0,null===(r=this.onclose)||void 0===r||r.call(this)})),null===(i=this._process.stdin)||void 0===i||i.on("error",(t=>{var r;null===(r=this.onerror)||void 0===r||r.call(this,t)})),null===(c=this._process.stdout)||void 0===c||c.on("data",(t=>{this._readBuffer.append(t),this.processReadBuffer()})),null===(a=this._process.stdout)||void 0===a||a.on("error",(t=>{var r;null===(r=this.onerror)||void 0===r||r.call(this,t)})),this._stderrStream&&this._process.stderr&&this._process.stderr.pipe(this._stderrStream)}))}get stderr(){var t,r;return this._stderrStream?this._stderrStream:null!==(r=null===(t=this._process)||void 0===t?void 0:t.stderr)&&void 0!==r?r:null}get pid(){var t,r;return null!==(r=null===(t=this._process)||void 0===t?void 0:t.pid)&&void 0!==r?r:null}processReadBuffer(){for(var t,r;;)try{const r=this._readBuffer.readMessage();if(null===r)break;null===(t=this.onmessage)||void 0===t||t.call(this,r)}catch(t){null===(r=this.onerror)||void 0===r||r.call(this,t)}}async close(){this._abortController.abort(),this._process=void 0,this._readBuffer.clear()}send(t){return new Promise((r=>{var e;if(!(null===(e=this._process)||void 0===e?void 0:e.stdin))throw new Error("Not connected");const s=function serializeMessage(t){return JSON.stringify(t)+"\n"}(t);this._process.stdin.write(s)?r():this._process.stdin.once("drain",r)}))}}},34489:(t,r,e)=>{"use strict";const s=e(79896),n=e(50230);t.exports=function readShebang(t){const r=Buffer.alloc(150);let e;try{e=s.openSync(t,"r"),s.readSync(e,r,0,150,0),s.closeSync(e)}catch(t){}return n(r.toString())}},50078:t=>{"use strict";const r=/([()\][%!^"`<>&|;, *?])/g;t.exports.command=function escapeCommand(t){return t=t.replace(r,"^$1")},t.exports.argument=function escapeArgument(t,e){return t=(t=`"${t=(t=(t=`${t}`).replace(/(?=(\\+?)?)\1"/g,'$1$1\\"')).replace(/(?=(\\+?)?)\1$/,"$1$1")}"`).replace(r,"^$1"),e&&(t=t.replace(r,"^$1")),t}},50230:(t,r,e)=>{"use strict";const s=e(85672);t.exports=(t="")=>{const r=t.match(s);if(!r)return null;const[e,n]=r[0].replace(/#! ?/,"").split(" "),o=e.split("/").pop();return"env"===o?n:n?`${o} ${n}`:o}},54080:(t,r,e)=>{"use strict";const s=e(16928),n=e(24326),o=e(58139);function resolveCommandAttempt(t,r){const e=t.options.env||process.env,i=process.cwd(),c=null!=t.options.cwd,a=c&&void 0!==process.chdir&&!process.chdir.disabled;if(a)try{process.chdir(t.options.cwd)}catch(t){}let l;try{l=n.sync(t.command,{path:e[o({env:e})],pathExt:r?s.delimiter:void 0})}catch(t){}finally{a&&process.chdir(i)}return l&&(l=s.resolve(c?t.options.cwd:"",l)),l}t.exports=function resolveCommand(t){return resolveCommandAttempt(t)||resolveCommandAttempt(t,!0)}},58139:t=>{"use strict";const pathKey=(t={})=>{const r=t.env||process.env;return"win32"!==(t.platform||process.platform)?"PATH":Object.keys(r).reverse().find((t=>"PATH"===t.toUpperCase()))||"Path"};t.exports=pathKey,t.exports.default=pathKey},66095:(t,r,e)=>{t.exports=isexe,isexe.sync=function sync(t,r){return checkStat(s.statSync(t),t,r)};var s=e(79896);function checkStat(t,r,e){return!(!t.isSymbolicLink()&&!t.isFile())&&function checkPathExt(t,r){var e=void 0!==r.pathExt?r.pathExt:process.env.PATHEXT;if(!e)return!0;if(-1!==(e=e.split(";")).indexOf(""))return!0;for(var s=0;s<e.length;s++){var n=e[s].toLowerCase();if(n&&t.substr(-n.length).toLowerCase()===n)return!0}return!1}(r,e)}function isexe(t,r,e){s.stat(t,(function(s,n){e(s,!s&&checkStat(n,t,r))}))}},79882:(t,r,e)=>{var s;e(79896);function isexe(t,r,e){if("function"==typeof r&&(e=r,r={}),!e){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(e,s){isexe(t,r||{},(function(t,r){t?s(t):e(r)}))}))}s(t,r||{},(function(t,s){t&&("EACCES"===t.code||r&&r.ignoreErrors)&&(t=null,s=!1),e(t,s)}))}s="win32"===process.platform||global.TESTING_WINDOWS?e(66095):e(14155),t.exports=isexe,isexe.sync=function sync(t,r){try{return s.sync(t,r||{})}catch(t){if(r&&r.ignoreErrors||"EACCES"===t.code)return!1;throw t}}},85672:t=>{"use strict";t.exports=/^#!(.*)/},90995:t=>{"use strict";const r="win32"===process.platform;function notFoundError(t,r){return Object.assign(new Error(`${r} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${r} ${t.command}`,path:t.command,spawnargs:t.args})}function verifyENOENT(t,e){return r&&1===t&&!e.file?notFoundError(e.original,"spawn"):null}t.exports={hookChildProcess:function hookChildProcess(t,e){if(!r)return;const s=t.emit;t.emit=function(r,n){if("exit"===r){const r=verifyENOENT(n,e);if(r)return s.call(t,"error",r)}return s.apply(t,arguments)}},verifyENOENT,verifyENOENTSync:function verifyENOENTSync(t,e){return r&&1===t&&!e.file?notFoundError(e.original,"spawnSync"):null},notFoundError}},91092:(t,r,e)=>{"use strict";const s=e(35317),n=e(8147),o=e(90995);function spawn(t,r,e){const i=n(t,r,e),c=s.spawn(i.command,i.args,i.options);return o.hookChildProcess(c,i),c}t.exports=spawn,t.exports.spawn=spawn,t.exports.sync=function spawnSync(t,r,e){const i=n(t,r,e),c=s.spawnSync(i.command,i.args,i.options);return c.error=c.error||o.verifyENOENTSync(c.status,i),c},t.exports._parse=n,t.exports._enoent=o}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=452,exports.ids=[452],exports.modules={34452:(t,e,r)=>{r.r(e),r.d(e,{SSEClientTransport:()=>SSEClientTransport,SseError:()=>SseError});class ParseError extends Error{constructor(t,e){super(t),this.name="ParseError",this.type=e.type,this.field=e.field,this.value=e.value,this.line=e.line}}function noop(t){}function createParser(t){if("function"==typeof t)throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");const{onEvent:e=noop,onError:r=noop,onRetry:s=noop,onComment:i}=t;let n,o="",a=!0,h="",l="";function parseLine(t){if(""===t)return void function dispatchEvent(){h.length>0&&e({id:n,event:l||void 0,data:h.endsWith("\n")?h.slice(0,-1):h}),n=void 0,h="",l=""}();if(t.startsWith(":"))return void(i&&i(t.slice(t.startsWith(": ")?2:1)));const r=t.indexOf(":");if(-1===r)processField(t,"",t);else{const e=t.slice(0,r),s=" "===t[r+1]?2:1;processField(e,t.slice(r+s),t)}}function processField(t,e,i){switch(t){case"event":l=e;break;case"data":h=`${h}${e}\n`;break;case"id":n=e.includes("\0")?void 0:e;break;case"retry":/^\d+$/.test(e)?s(parseInt(e,10)):r(new ParseError(`Invalid \`retry\` value: "${e}"`,{type:"invalid-retry",value:e,line:i}));break;default:r(new ParseError(`Unknown field "${t.length>20?`${t.slice(0,20)}…`:t}"`,{type:"unknown-field",field:t,value:e,line:i}))}}return{feed:function feed(t){const e=a?t.replace(/^\xEF\xBB\xBF/,""):t,[r,s]=function splitLines(t){const e=[];let r="",s=0;for(;s<t.length;){const i=t.indexOf("\r",s),n=t.indexOf("\n",s);let o=-1;if(-1!==i&&-1!==n?o=Math.min(i,n):-1!==i?o=i:-1!==n&&(o=n),-1===o){r=t.slice(s);break}{const r=t.slice(s,o);e.push(r),s=o+1,"\r"===t[s-1]&&"\n"===t[s]&&s++}}return[e,r]}(`${o}${e}`);for(const t of r)parseLine(t);o=s,a=!1},reset:function reset(t={}){o&&t.consume&&parseLine(o),a=!0,n=void 0,h="",l="",o=""}}}class ErrorEvent extends Event{constructor(t,e){var r,s;super(t),this.code=null!=(r=null==e?void 0:e.code)?r:void 0,this.message=null!=(s=null==e?void 0:e.message)?s:void 0}[Symbol.for("nodejs.util.inspect.custom")](t,e,r){return r(inspectableError(this),e)}[Symbol.for("Deno.customInspect")](t,e){return t(inspectableError(this),e)}}function flattenError(t){return t instanceof Error?"errors"in t&&Array.isArray(t.errors)?t.errors.map(flattenError).join(", "):"cause"in t&&t.cause instanceof Error?`${t}: ${flattenError(t.cause)}`:t.message:`${t}`}function inspectableError(t){return{type:t.type,message:t.message,code:t.code,defaultPrevented:t.defaultPrevented,cancelable:t.cancelable,timeStamp:t.timeStamp}}var s,i,n,o,a,h,l,c,d,u,v,p,f,w,E,_,m,g,S,y,b,C,O,__typeError=t=>{throw TypeError(t)},__accessCheck=(t,e,r)=>e.has(t)||__typeError("Cannot "+r),__privateGet=(t,e,r)=>(__accessCheck(t,e,"read from private field"),r?r.call(t):e.get(t)),__privateAdd=(t,e,r)=>e.has(t)?__typeError("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),__privateSet=(t,e,r,s)=>(__accessCheck(t,e,"write to private field"),e.set(t,r),r),__privateMethod=(t,e,r)=>(__accessCheck(t,e,"access private method"),r);class EventSource extends EventTarget{constructor(t,e){var r,g;super(),__privateAdd(this,w),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,__privateAdd(this,s),__privateAdd(this,i),__privateAdd(this,n),__privateAdd(this,o),__privateAdd(this,a),__privateAdd(this,h),__privateAdd(this,l),__privateAdd(this,c,null),__privateAdd(this,d),__privateAdd(this,u),__privateAdd(this,v,null),__privateAdd(this,p,null),__privateAdd(this,f,null),__privateAdd(this,_,(async t=>{var e;__privateGet(this,u).reset();const{body:r,redirected:i,status:o,headers:a}=t;if(204===o)return __privateMethod(this,w,b).call(this,"Server sent HTTP 204, not reconnecting",204),void this.close();if(__privateSet(this,n,i?new URL(t.url):void 0),200!==o)return void __privateMethod(this,w,b).call(this,`Non-200 status code (${o})`,o);if(!(a.get("content-type")||"").startsWith("text/event-stream"))return void __privateMethod(this,w,b).call(this,'Invalid content type, expected "text/event-stream"',o);if(__privateGet(this,s)===this.CLOSED)return;__privateSet(this,s,this.OPEN);const h=new Event("open");if(null==(e=__privateGet(this,f))||e.call(this,h),this.dispatchEvent(h),"object"!=typeof r||!r||!("getReader"in r))return __privateMethod(this,w,b).call(this,"Invalid response body, expected a web ReadableStream",o),void this.close();const l=new TextDecoder,c=r.getReader();let d=!0;do{const{done:t,value:e}=await c.read();e&&__privateGet(this,u).feed(l.decode(e,{stream:!t})),t&&(d=!1,__privateGet(this,u).reset(),__privateMethod(this,w,C).call(this))}while(d)})),__privateAdd(this,m,(t=>{__privateSet(this,d,void 0),"AbortError"!==t.name&&"aborted"!==t.type&&__privateMethod(this,w,C).call(this,flattenError(t))})),__privateAdd(this,S,(t=>{"string"==typeof t.id&&__privateSet(this,c,t.id);const e=new MessageEvent(t.event||"message",{data:t.data,origin:__privateGet(this,n)?__privateGet(this,n).origin:__privateGet(this,i).origin,lastEventId:t.id||""});__privateGet(this,p)&&(!t.event||"message"===t.event)&&__privateGet(this,p).call(this,e),this.dispatchEvent(e)})),__privateAdd(this,y,(t=>{__privateSet(this,h,t)})),__privateAdd(this,O,(()=>{__privateSet(this,l,void 0),__privateGet(this,s)===this.CONNECTING&&__privateMethod(this,w,E).call(this)}));try{if(t instanceof URL)__privateSet(this,i,t);else{if("string"!=typeof t)throw new Error("Invalid URL");__privateSet(this,i,new URL(t,function getBaseURL(){const t="document"in globalThis?globalThis.document:void 0;return t&&"object"==typeof t&&"baseURI"in t&&"string"==typeof t.baseURI?t.baseURI:void 0}()))}}catch{throw function syntaxError(t){const e=globalThis.DOMException;return"function"==typeof e?new e(t,"SyntaxError"):new SyntaxError(t)}("An invalid or illegal string was specified")}__privateSet(this,u,createParser({onEvent:__privateGet(this,S),onRetry:__privateGet(this,y)})),__privateSet(this,s,this.CONNECTING),__privateSet(this,h,3e3),__privateSet(this,a,null!=(r=null==e?void 0:e.fetch)?r:globalThis.fetch),__privateSet(this,o,null!=(g=null==e?void 0:e.withCredentials)&&g),__privateMethod(this,w,E).call(this)}get readyState(){return __privateGet(this,s)}get url(){return __privateGet(this,i).href}get withCredentials(){return __privateGet(this,o)}get onerror(){return __privateGet(this,v)}set onerror(t){__privateSet(this,v,t)}get onmessage(){return __privateGet(this,p)}set onmessage(t){__privateSet(this,p,t)}get onopen(){return __privateGet(this,f)}set onopen(t){__privateSet(this,f,t)}addEventListener(t,e,r){const s=e;super.addEventListener(t,s,r)}removeEventListener(t,e,r){const s=e;super.removeEventListener(t,s,r)}close(){__privateGet(this,l)&&clearTimeout(__privateGet(this,l)),__privateGet(this,s)!==this.CLOSED&&(__privateGet(this,d)&&__privateGet(this,d).abort(),__privateSet(this,s,this.CLOSED),__privateSet(this,d,void 0))}}s=new WeakMap,i=new WeakMap,n=new WeakMap,o=new WeakMap,a=new WeakMap,h=new WeakMap,l=new WeakMap,c=new WeakMap,d=new WeakMap,u=new WeakMap,v=new WeakMap,p=new WeakMap,f=new WeakMap,w=new WeakSet,E=function(){__privateSet(this,s,this.CONNECTING),__privateSet(this,d,new AbortController),__privateGet(this,a)(__privateGet(this,i),__privateMethod(this,w,g).call(this)).then(__privateGet(this,_)).catch(__privateGet(this,m))},_=new WeakMap,m=new WeakMap,g=function(){var t;const e={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...__privateGet(this,c)?{"Last-Event-ID":__privateGet(this,c)}:void 0},cache:"no-store",signal:null==(t=__privateGet(this,d))?void 0:t.signal};return"window"in globalThis&&(e.credentials=this.withCredentials?"include":"same-origin"),e},S=new WeakMap,y=new WeakMap,b=function(t,e){var r;__privateGet(this,s)!==this.CLOSED&&__privateSet(this,s,this.CLOSED);const i=new ErrorEvent("error",{code:e,message:t});null==(r=__privateGet(this,v))||r.call(this,i),this.dispatchEvent(i)},C=function(t,e){var r;if(__privateGet(this,s)===this.CLOSED)return;__privateSet(this,s,this.CONNECTING);const i=new ErrorEvent("error",{code:e,message:t});null==(r=__privateGet(this,v))||r.call(this,i),this.dispatchEvent(i),__privateSet(this,l,setTimeout(__privateGet(this,O),__privateGet(this,h)))},O=new WeakMap,EventSource.CONNECTING=0,EventSource.OPEN=1,EventSource.CLOSED=2;var T=r(13298),k=r(51345);class SseError extends Error{constructor(t,e,r){super(`SSE error: ${e}`),this.code=t,this.event=r}}class SSEClientTransport{constructor(t,e){this._url=t,this._resourceMetadataUrl=void 0,this._eventSourceInit=null==e?void 0:e.eventSourceInit,this._requestInit=null==e?void 0:e.requestInit,this._authProvider=null==e?void 0:e.authProvider,this._fetch=null==e?void 0:e.fetch}async _authThenStart(){var t;if(!this._authProvider)throw new k.D_("No auth provider");let e;try{e=await(0,k.j2)(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})}catch(e){throw null===(t=this.onerror)||void 0===t||t.call(this,e),e}if("AUTHORIZED"!==e)throw new k.D_;return await this._startOrAuth()}async _commonHeaders(){var t;const e={};if(this._authProvider){const t=await this._authProvider.tokens();t&&(e.Authorization=`Bearer ${t.access_token}`)}return this._protocolVersion&&(e["mcp-protocol-version"]=this._protocolVersion),new Headers({...e,...null===(t=this._requestInit)||void 0===t?void 0:t.headers})}_startOrAuth(){var t,e,r;const s=null!==(r=null!==(e=null===(t=null==this?void 0:this._eventSourceInit)||void 0===t?void 0:t.fetch)&&void 0!==e?e:this._fetch)&&void 0!==r?r:fetch;return new Promise(((t,e)=>{this._eventSource=new EventSource(this._url.href,{...this._eventSourceInit,fetch:async(t,e)=>{const r=await this._commonHeaders();r.set("Accept","text/event-stream");const i=await s(t,{...e,headers:r});return 401===i.status&&i.headers.has("www-authenticate")&&(this._resourceMetadataUrl=(0,k.cV)(i)),i}}),this._abortController=new AbortController,this._eventSource.onerror=r=>{var s;if(401===r.code&&this._authProvider)return void this._authThenStart().then(t,e);const i=new SseError(r.code,r.message,r);e(i),null===(s=this.onerror)||void 0===s||s.call(this,i)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",(r=>{var s;const i=r;try{if(this._endpoint=new URL(i.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(t){return e(t),null===(s=this.onerror)||void 0===s||s.call(this,t),void this.close()}t()})),this._eventSource.onmessage=t=>{var e,r;const s=t;let i;try{i=T.JSONRPCMessageSchema.parse(JSON.parse(s.data))}catch(t){return void(null===(e=this.onerror)||void 0===e||e.call(this,t))}null===(r=this.onmessage)||void 0===r||r.call(this,i)}}))}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(t){if(!this._authProvider)throw new k.D_("No auth provider");if("AUTHORIZED"!==await(0,k.j2)(this._authProvider,{serverUrl:this._url,authorizationCode:t,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch}))throw new k.D_("Failed to authorize")}async close(){var t,e,r;null===(t=this._abortController)||void 0===t||t.abort(),null===(e=this._eventSource)||void 0===e||e.close(),null===(r=this.onclose)||void 0===r||r.call(this)}async send(t){var e,r,s;if(!this._endpoint)throw new Error("Not connected");try{const s=await this._commonHeaders();s.set("content-type","application/json");const i={...this._requestInit,method:"POST",headers:s,body:JSON.stringify(t),signal:null===(e=this._abortController)||void 0===e?void 0:e.signal},n=await(null!==(r=this._fetch)&&void 0!==r?r:fetch)(this._endpoint,i);if(!n.ok){if(401===n.status&&this._authProvider){this._resourceMetadataUrl=(0,k.cV)(n);if("AUTHORIZED"!==await(0,k.j2)(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch}))throw new k.D_;return this.send(t)}const e=await n.text().catch((()=>null));throw new Error(`Error POSTing to endpoint (HTTP ${n.status}): ${e}`)}}catch(t){throw null===(s=this.onerror)||void 0===s||s.call(this,t),t}}setProtocolVersion(t){this._protocolVersion=t}}}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=726,exports.ids=[726],exports.modules={51345:(r,e,t)=>{let o;async function random(r){const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~";let t="";const n=await async function getRandomValues(r){return(await o).getRandomValues(new Uint8Array(r))}(r);for(let o=0;o<r;o++){t+=e[n[o]%66]}return t}async function generateChallenge(r){const e=await(await o).subtle.digest("SHA-256",(new TextEncoder).encode(r));return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function pkceChallenge(r){if(r||(r=43),r<43||r>128)throw`Expected a length between 43 and 128. Received ${r}.`;const e=await async function generateVerifier(r){return await random(r)}(r);return{code_verifier:e,code_challenge:await generateChallenge(e)}}t.d(e,{D_:()=>UnauthorizedError,j2:()=>auth,cV:()=>extractResourceMetadataUrl}),o=globalThis.crypto?.webcrypto??globalThis.crypto??Promise.resolve().then(t.t.bind(t,77598,19)).then((r=>r.webcrypto));var n=t(13298),a=t(7578);const i=a.z.object({resource:a.z.string().url(),authorization_servers:a.z.array(a.z.string().url()).optional(),jwks_uri:a.z.string().url().optional(),scopes_supported:a.z.array(a.z.string()).optional(),bearer_methods_supported:a.z.array(a.z.string()).optional(),resource_signing_alg_values_supported:a.z.array(a.z.string()).optional(),resource_name:a.z.string().optional(),resource_documentation:a.z.string().optional(),resource_policy_uri:a.z.string().url().optional(),resource_tos_uri:a.z.string().url().optional(),tls_client_certificate_bound_access_tokens:a.z.boolean().optional(),authorization_details_types_supported:a.z.array(a.z.string()).optional(),dpop_signing_alg_values_supported:a.z.array(a.z.string()).optional(),dpop_bound_access_tokens_required:a.z.boolean().optional()}).passthrough(),s=a.z.object({issuer:a.z.string(),authorization_endpoint:a.z.string(),token_endpoint:a.z.string(),registration_endpoint:a.z.string().optional(),scopes_supported:a.z.array(a.z.string()).optional(),response_types_supported:a.z.array(a.z.string()),response_modes_supported:a.z.array(a.z.string()).optional(),grant_types_supported:a.z.array(a.z.string()).optional(),token_endpoint_auth_methods_supported:a.z.array(a.z.string()).optional(),token_endpoint_auth_signing_alg_values_supported:a.z.array(a.z.string()).optional(),service_documentation:a.z.string().optional(),revocation_endpoint:a.z.string().optional(),revocation_endpoint_auth_methods_supported:a.z.array(a.z.string()).optional(),revocation_endpoint_auth_signing_alg_values_supported:a.z.array(a.z.string()).optional(),introspection_endpoint:a.z.string().optional(),introspection_endpoint_auth_methods_supported:a.z.array(a.z.string()).optional(),introspection_endpoint_auth_signing_alg_values_supported:a.z.array(a.z.string()).optional(),code_challenge_methods_supported:a.z.array(a.z.string()).optional()}).passthrough(),c=a.z.object({issuer:a.z.string(),authorization_endpoint:a.z.string(),token_endpoint:a.z.string(),userinfo_endpoint:a.z.string().optional(),jwks_uri:a.z.string(),registration_endpoint:a.z.string().optional(),scopes_supported:a.z.array(a.z.string()).optional(),response_types_supported:a.z.array(a.z.string()),response_modes_supported:a.z.array(a.z.string()).optional(),grant_types_supported:a.z.array(a.z.string()).optional(),acr_values_supported:a.z.array(a.z.string()).optional(),subject_types_supported:a.z.array(a.z.string()),id_token_signing_alg_values_supported:a.z.array(a.z.string()),id_token_encryption_alg_values_supported:a.z.array(a.z.string()).optional(),id_token_encryption_enc_values_supported:a.z.array(a.z.string()).optional(),userinfo_signing_alg_values_supported:a.z.array(a.z.string()).optional(),userinfo_encryption_alg_values_supported:a.z.array(a.z.string()).optional(),userinfo_encryption_enc_values_supported:a.z.array(a.z.string()).optional(),request_object_signing_alg_values_supported:a.z.array(a.z.string()).optional(),request_object_encryption_alg_values_supported:a.z.array(a.z.string()).optional(),request_object_encryption_enc_values_supported:a.z.array(a.z.string()).optional(),token_endpoint_auth_methods_supported:a.z.array(a.z.string()).optional(),token_endpoint_auth_signing_alg_values_supported:a.z.array(a.z.string()).optional(),display_values_supported:a.z.array(a.z.string()).optional(),claim_types_supported:a.z.array(a.z.string()).optional(),claims_supported:a.z.array(a.z.string()).optional(),service_documentation:a.z.string().optional(),claims_locales_supported:a.z.array(a.z.string()).optional(),ui_locales_supported:a.z.array(a.z.string()).optional(),claims_parameter_supported:a.z.boolean().optional(),request_parameter_supported:a.z.boolean().optional(),request_uri_parameter_supported:a.z.boolean().optional(),require_request_uri_registration:a.z.boolean().optional(),op_policy_uri:a.z.string().optional(),op_tos_uri:a.z.string().optional()}).passthrough().merge(s.pick({code_challenge_methods_supported:!0})),l=a.z.object({access_token:a.z.string(),id_token:a.z.string().optional(),token_type:a.z.string(),expires_in:a.z.number().optional(),scope:a.z.string().optional(),refresh_token:a.z.string().optional()}).strip(),p=a.z.object({error:a.z.string(),error_description:a.z.string().optional(),error_uri:a.z.string().optional()}),d=a.z.object({redirect_uris:a.z.array(a.z.string()).refine((r=>r.every((r=>URL.canParse(r)))),{message:"redirect_uris must contain valid URLs"}),token_endpoint_auth_method:a.z.string().optional(),grant_types:a.z.array(a.z.string()).optional(),response_types:a.z.array(a.z.string()).optional(),client_name:a.z.string().optional(),client_uri:a.z.string().optional(),logo_uri:a.z.string().optional(),scope:a.z.string().optional(),contacts:a.z.array(a.z.string()).optional(),tos_uri:a.z.string().optional(),policy_uri:a.z.string().optional(),jwks_uri:a.z.string().optional(),jwks:a.z.any().optional(),software_id:a.z.string().optional(),software_version:a.z.string().optional(),software_statement:a.z.string().optional()}).strip(),u=a.z.object({client_id:a.z.string(),client_secret:a.z.string().optional(),client_id_issued_at:a.z.number().optional(),client_secret_expires_at:a.z.number().optional()}).strip(),_=d.merge(u);a.z.object({error:a.z.string(),error_description:a.z.string().optional()}).strip(),a.z.object({token:a.z.string(),token_type_hint:a.z.string().optional()}).strip();class OAuthError extends Error{constructor(r,e){super(r),this.errorUri=e,this.name=this.constructor.name}toResponseObject(){const r={error:this.errorCode,error_description:this.message};return this.errorUri&&(r.error_uri=this.errorUri),r}get errorCode(){return this.constructor.errorCode}}class InvalidRequestError extends OAuthError{}InvalidRequestError.errorCode="invalid_request";class InvalidClientError extends OAuthError{}InvalidClientError.errorCode="invalid_client";class InvalidGrantError extends OAuthError{}InvalidGrantError.errorCode="invalid_grant";class UnauthorizedClientError extends OAuthError{}UnauthorizedClientError.errorCode="unauthorized_client";class UnsupportedGrantTypeError extends OAuthError{}UnsupportedGrantTypeError.errorCode="unsupported_grant_type";class InvalidScopeError extends OAuthError{}InvalidScopeError.errorCode="invalid_scope";class AccessDeniedError extends OAuthError{}AccessDeniedError.errorCode="access_denied";class ServerError extends OAuthError{}ServerError.errorCode="server_error";class TemporarilyUnavailableError extends OAuthError{}TemporarilyUnavailableError.errorCode="temporarily_unavailable";class UnsupportedResponseTypeError extends OAuthError{}UnsupportedResponseTypeError.errorCode="unsupported_response_type";class UnsupportedTokenTypeError extends OAuthError{}UnsupportedTokenTypeError.errorCode="unsupported_token_type";class InvalidTokenError extends OAuthError{}InvalidTokenError.errorCode="invalid_token";class MethodNotAllowedError extends OAuthError{}MethodNotAllowedError.errorCode="method_not_allowed";class TooManyRequestsError extends OAuthError{}TooManyRequestsError.errorCode="too_many_requests";class InvalidClientMetadataError extends OAuthError{}InvalidClientMetadataError.errorCode="invalid_client_metadata";class InsufficientScopeError extends OAuthError{}InsufficientScopeError.errorCode="insufficient_scope";const h={[InvalidRequestError.errorCode]:InvalidRequestError,[InvalidClientError.errorCode]:InvalidClientError,[InvalidGrantError.errorCode]:InvalidGrantError,[UnauthorizedClientError.errorCode]:UnauthorizedClientError,[UnsupportedGrantTypeError.errorCode]:UnsupportedGrantTypeError,[InvalidScopeError.errorCode]:InvalidScopeError,[AccessDeniedError.errorCode]:AccessDeniedError,[ServerError.errorCode]:ServerError,[TemporarilyUnavailableError.errorCode]:TemporarilyUnavailableError,[UnsupportedResponseTypeError.errorCode]:UnsupportedResponseTypeError,[UnsupportedTokenTypeError.errorCode]:UnsupportedTokenTypeError,[InvalidTokenError.errorCode]:InvalidTokenError,[MethodNotAllowedError.errorCode]:MethodNotAllowedError,[TooManyRequestsError.errorCode]:TooManyRequestsError,[InvalidClientMetadataError.errorCode]:InvalidClientMetadataError,[InsufficientScopeError.errorCode]:InsufficientScopeError};class UnauthorizedError extends Error{constructor(r){super(null!=r?r:"Unauthorized")}}function selectClientAuthMethod(r,e){const t=void 0!==r.client_secret;return 0===e.length?t?"client_secret_post":"none":t&&e.includes("client_secret_basic")?"client_secret_basic":t&&e.includes("client_secret_post")?"client_secret_post":e.includes("none")?"none":t?"client_secret_post":"none"}function applyClientAuthentication(r,e,t,o){const{client_id:n,client_secret:a}=e;switch(r){case"client_secret_basic":return void function applyBasicAuth(r,e,t){if(!e)throw new Error("client_secret_basic authentication requires a client_secret");const o=btoa(`${r}:${e}`);t.set("Authorization",`Basic ${o}`)}(n,a,t);case"client_secret_post":return void function applyPostAuth(r,e,t){t.set("client_id",r),e&&t.set("client_secret",e)}(n,a,o);case"none":return void function applyPublicAuth(r,e){e.set("client_id",r)}(n,o);default:throw new Error(`Unsupported client authentication method: ${r}`)}}async function parseErrorResponse(r){const e=r instanceof Response?r.status:void 0,t=r instanceof Response?await r.text():r;try{const r=p.parse(JSON.parse(t)),{error:e,error_description:o,error_uri:n}=r;return new(h[e]||ServerError)(o||"",n)}catch(r){return new ServerError(`${e?`HTTP ${e}: `:""}Invalid OAuth error response: ${r}. Raw body: ${t}`)}}async function auth(r,e){var t,o;try{return await authInternal(r,e)}catch(n){if(n instanceof InvalidClientError||n instanceof UnauthorizedClientError)return await(null===(t=r.invalidateCredentials)||void 0===t?void 0:t.call(r,"all")),await authInternal(r,e);if(n instanceof InvalidGrantError)return await(null===(o=r.invalidateCredentials)||void 0===o?void 0:o.call(r,"tokens")),await authInternal(r,e);throw n}}async function authInternal(r,{serverUrl:e,authorizationCode:t,scope:o,resourceMetadataUrl:a,fetchFn:p}){let d,u;try{d=await async function discoverOAuthProtectedResourceMetadata(r,e,t=fetch){const o=await discoverMetadataWithFallback(r,"oauth-protected-resource",t,{protocolVersion:null==e?void 0:e.protocolVersion,metadataUrl:null==e?void 0:e.resourceMetadataUrl});if(!o||404===o.status)throw new Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!o.ok)throw new Error(`HTTP ${o.status} trying to load well-known OAuth protected resource metadata.`);return i.parse(await o.json())}(e,{resourceMetadataUrl:a},p),d.authorization_servers&&d.authorization_servers.length>0&&(u=d.authorization_servers[0])}catch(r){}u||(u=e);const h=await async function selectResourceURL(r,e,t){const o=function resourceUrlFromServerUrl(r){const e="string"==typeof r?new URL(r):new URL(r.href);return e.hash="",e}(r);if(e.validateResourceURL)return await e.validateResourceURL(o,null==t?void 0:t.resource);if(!t)return;if(!function checkResourceAllowed({requestedResource:r,configuredResource:e}){const t="string"==typeof r?new URL(r):new URL(r.href),o="string"==typeof e?new URL(e):new URL(e.href);if(t.origin!==o.origin)return!1;if(t.pathname.length<o.pathname.length)return!1;const n=t.pathname.endsWith("/")?t.pathname:t.pathname+"/",a=o.pathname.endsWith("/")?o.pathname:o.pathname+"/";return n.startsWith(a)}({requestedResource:o,configuredResource:t.resource}))throw new Error(`Protected resource ${t.resource} does not match expected ${o} (or origin)`);return new URL(t.resource)}(e,r,d),g=await async function discoverAuthorizationServerMetadata(r,{fetchFn:e=fetch,protocolVersion:t=n.LATEST_PROTOCOL_VERSION}={}){var o;const a={"MCP-Protocol-Version":t},i=function buildDiscoveryUrls(r){const e="string"==typeof r?new URL(r):r,t="/"!==e.pathname,o=[];if(!t)return o.push({url:new URL("/.well-known/oauth-authorization-server",e.origin),type:"oauth"}),o.push({url:new URL("/.well-known/openid-configuration",e.origin),type:"oidc"}),o;let n=e.pathname;n.endsWith("/")&&(n=n.slice(0,-1));return o.push({url:new URL(`/.well-known/oauth-authorization-server${n}`,e.origin),type:"oauth"}),o.push({url:new URL("/.well-known/oauth-authorization-server",e.origin),type:"oauth"}),o.push({url:new URL(`/.well-known/openid-configuration${n}`,e.origin),type:"oidc"}),o.push({url:new URL(`${n}/.well-known/openid-configuration`,e.origin),type:"oidc"}),o}(r);for(const{url:r,type:t}of i){const n=await fetchWithCorsRetry(r,a,e);if(n){if(!n.ok){if(n.status>=400&&n.status<500)continue;throw new Error(`HTTP ${n.status} trying to load ${"oauth"===t?"OAuth":"OpenID provider"} metadata from ${r}`)}if("oauth"===t)return s.parse(await n.json());{const e=c.parse(await n.json());if(!(null===(o=e.code_challenge_methods_supported)||void 0===o?void 0:o.includes("S256")))throw new Error(`Incompatible OIDC provider at ${r}: does not support S256 code challenge method required by MCP specification`);return e}}}return}(u,{fetchFn:p});let z=await Promise.resolve(r.clientInformation());if(!z){if(void 0!==t)throw new Error("Existing OAuth client information is required when exchanging an authorization code");if(!r.saveClientInformation)throw new Error("OAuth client information must be saveable for dynamic registration");const e=await async function registerClient(r,{metadata:e,clientMetadata:t,fetchFn:o}){let n;if(e){if(!e.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");n=new URL(e.registration_endpoint)}else n=new URL("/register",r);const a=await(null!=o?o:fetch)(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!a.ok)throw await parseErrorResponse(a);return _.parse(await a.json())}(u,{metadata:g,clientMetadata:r.clientMetadata});await r.saveClientInformation(e),z=e}if(void 0!==t){const e=await r.codeVerifier(),o=await async function exchangeAuthorization(r,{metadata:e,clientInformation:t,authorizationCode:o,codeVerifier:n,redirectUri:a,resource:i,addClientAuthentication:s,fetchFn:c}){var p;const d="authorization_code",u=(null==e?void 0:e.token_endpoint)?new URL(e.token_endpoint):new URL("/token",r);if((null==e?void 0:e.grant_types_supported)&&!e.grant_types_supported.includes(d))throw new Error(`Incompatible auth server: does not support grant type ${d}`);const _=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"}),h=new URLSearchParams({grant_type:d,code:o,code_verifier:n,redirect_uri:String(a)});if(s)s(_,h,r,e);else{applyClientAuthentication(selectClientAuthMethod(t,null!==(p=null==e?void 0:e.token_endpoint_auth_methods_supported)&&void 0!==p?p:[]),t,_,h)}i&&h.set("resource",i.href);const g=await(null!=c?c:fetch)(u,{method:"POST",headers:_,body:h});if(!g.ok)throw await parseErrorResponse(g);return l.parse(await g.json())}(u,{metadata:g,clientInformation:z,authorizationCode:t,codeVerifier:e,redirectUri:r.redirectUrl,resource:h,addClientAuthentication:r.addClientAuthentication,fetchFn:p});return await r.saveTokens(o),"AUTHORIZED"}const f=await r.tokens();if(null==f?void 0:f.refresh_token)try{const e=await async function refreshAuthorization(r,{metadata:e,clientInformation:t,refreshToken:o,resource:n,addClientAuthentication:a,fetchFn:i}){var s;const c="refresh_token";let p;if(e){if(p=new URL(e.token_endpoint),e.grant_types_supported&&!e.grant_types_supported.includes(c))throw new Error(`Incompatible auth server: does not support grant type ${c}`)}else p=new URL("/token",r);const d=new Headers({"Content-Type":"application/x-www-form-urlencoded"}),u=new URLSearchParams({grant_type:c,refresh_token:o});if(a)a(d,u,r,e);else{applyClientAuthentication(selectClientAuthMethod(t,null!==(s=null==e?void 0:e.token_endpoint_auth_methods_supported)&&void 0!==s?s:[]),t,d,u)}n&&u.set("resource",n.href);const _=await(null!=i?i:fetch)(p,{method:"POST",headers:d,body:u});if(!_.ok)throw await parseErrorResponse(_);return l.parse({refresh_token:o,...await _.json()})}(u,{metadata:g,clientInformation:z,refreshToken:f.refresh_token,resource:h,addClientAuthentication:r.addClientAuthentication});return await r.saveTokens(e),"AUTHORIZED"}catch(r){if(r instanceof OAuthError&&!(r instanceof ServerError))throw r}const y=r.state?await r.state():void 0,{authorizationUrl:w,codeVerifier:v}=await async function startAuthorization(r,{metadata:e,clientInformation:t,redirectUrl:o,scope:n,state:a,resource:i}){const s="code",c="S256";let l;if(e){if(l=new URL(e.authorization_endpoint),!e.response_types_supported.includes(s))throw new Error(`Incompatible auth server: does not support response type ${s}`);if(!e.code_challenge_methods_supported||!e.code_challenge_methods_supported.includes(c))throw new Error(`Incompatible auth server: does not support code challenge method ${c}`)}else l=new URL("/authorize",r);const p=await pkceChallenge(),d=p.code_verifier,u=p.code_challenge;l.searchParams.set("response_type",s),l.searchParams.set("client_id",t.client_id),l.searchParams.set("code_challenge",u),l.searchParams.set("code_challenge_method",c),l.searchParams.set("redirect_uri",String(o)),a&&l.searchParams.set("state",a);n&&l.searchParams.set("scope",n);(null==n?void 0:n.includes("offline_access"))&&l.searchParams.append("prompt","consent");i&&l.searchParams.set("resource",i.href);return{authorizationUrl:l,codeVerifier:d}}(u,{metadata:g,clientInformation:z,state:y,redirectUrl:r.redirectUrl,scope:o||r.clientMetadata.scope,resource:h});return await r.saveCodeVerifier(v),await r.redirectToAuthorization(w),"REDIRECT"}function extractResourceMetadataUrl(r){const e=r.headers.get("WWW-Authenticate");if(!e)return;const[t,o]=e.split(" ");if("bearer"!==t.toLowerCase()||!o)return;const n=/resource_metadata="([^"]*)"/.exec(e);if(n)try{return new URL(n[1])}catch(r){return}}async function fetchWithCorsRetry(r,e,t=fetch){try{return await t(r,{headers:e})}catch(o){if(o instanceof TypeError)return e?fetchWithCorsRetry(r,void 0,t):void 0;throw o}}async function tryMetadataDiscovery(r,e,t=fetch){const o={"MCP-Protocol-Version":e};return await fetchWithCorsRetry(r,o,t)}async function discoverMetadataWithFallback(r,e,t,o){var a,i;const s=new URL(r),c=null!==(a=null==o?void 0:o.protocolVersion)&&void 0!==a?a:n.LATEST_PROTOCOL_VERSION;let l;if(null==o?void 0:o.metadataUrl)l=new URL(o.metadataUrl);else{const r=function buildWellKnownPath(r,e="",t={}){return e.endsWith("/")&&(e=e.slice(0,-1)),t.prependPathname?`${e}/.well-known/${r}`:`/.well-known/${r}${e}`}(e,s.pathname);l=new URL(r,null!==(i=null==o?void 0:o.metadataServerUrl)&&void 0!==i?i:s),l.search=s.search}let p=await tryMetadataDiscovery(l,c,t);if(!(null==o?void 0:o.metadataUrl)&&function shouldAttemptFallback(r,e){return!r||404===r.status&&"/"!==e}(p,s.pathname)){const r=new URL(`/.well-known/${e}`,s);p=await tryMetadataDiscovery(r,c,t)}return p}}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=939,exports.ids=[939],exports.modules={9939:(e,t,r)=>{r.r(t),r.d(t,{Client:()=>Client});var s=r(37902),o=r(13298),i=r(82174);class Client extends s.Zs{constructor(e,t){var r;super(t),this._clientInfo=e,this._cachedToolOutputValidators=new Map,this._capabilities=null!==(r=null==t?void 0:t.capabilities)&&void 0!==r?r:{},this._ajv=new i}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=(0,s.hG)(this._capabilities,e)}assertCapability(e,t){var r;if(!(null===(r=this._serverCapabilities)||void 0===r?void 0:r[e]))throw new Error(`Server does not support ${e} (required for ${t})`)}async connect(e,t){if(await super.connect(e),void 0===e.sessionId)try{const r=await this.request({method:"initialize",params:{protocolVersion:o.LATEST_PROTOCOL_VERSION,capabilities:this._capabilities,clientInfo:this._clientInfo}},o.InitializeResultSchema,t);if(void 0===r)throw new Error(`Server sent invalid initialize result: ${r}`);if(!o.SUPPORTED_PROTOCOL_VERSIONS.includes(r.protocolVersion))throw new Error(`Server's protocol version is not supported: ${r.protocolVersion}`);this._serverCapabilities=r.capabilities,this._serverVersion=r.serverInfo,e.setProtocolVersion&&e.setProtocolVersion(r.protocolVersion),this._instructions=r.instructions,await this.notification({method:"notifications/initialized"})}catch(e){throw this.close(),e}}getServerCapabilities(){return this._serverCapabilities}getServerVersion(){return this._serverVersion}getInstructions(){return this._instructions}assertCapabilityForMethod(e){var t,r,s,o,i;switch(e){case"logging/setLevel":if(!(null===(t=this._serverCapabilities)||void 0===t?void 0:t.logging))throw new Error(`Server does not support logging (required for ${e})`);break;case"prompts/get":case"prompts/list":if(!(null===(r=this._serverCapabilities)||void 0===r?void 0:r.prompts))throw new Error(`Server does not support prompts (required for ${e})`);break;case"resources/list":case"resources/templates/list":case"resources/read":case"resources/subscribe":case"resources/unsubscribe":if(!(null===(s=this._serverCapabilities)||void 0===s?void 0:s.resources))throw new Error(`Server does not support resources (required for ${e})`);if("resources/subscribe"===e&&!this._serverCapabilities.resources.subscribe)throw new Error(`Server does not support resource subscriptions (required for ${e})`);break;case"tools/call":case"tools/list":if(!(null===(o=this._serverCapabilities)||void 0===o?void 0:o.tools))throw new Error(`Server does not support tools (required for ${e})`);break;case"completion/complete":if(!(null===(i=this._serverCapabilities)||void 0===i?void 0:i.completions))throw new Error(`Server does not support completions (required for ${e})`)}}assertNotificationCapability(e){var t;if("notifications/roots/list_changed"===e)if(!(null===(t=this._capabilities.roots)||void 0===t?void 0:t.listChanged))throw new Error(`Client does not support roots list changed notifications (required for ${e})`)}assertRequestHandlerCapability(e){switch(e){case"sampling/createMessage":if(!this._capabilities.sampling)throw new Error(`Client does not support sampling capability (required for ${e})`);break;case"elicitation/create":if(!this._capabilities.elicitation)throw new Error(`Client does not support elicitation capability (required for ${e})`);break;case"roots/list":if(!this._capabilities.roots)throw new Error(`Client does not support roots capability (required for ${e})`)}}async ping(e){return this.request({method:"ping"},o.EmptyResultSchema,e)}async complete(e,t){return this.request({method:"completion/complete",params:e},o.CompleteResultSchema,t)}async setLoggingLevel(e,t){return this.request({method:"logging/setLevel",params:{level:e}},o.EmptyResultSchema,t)}async getPrompt(e,t){return this.request({method:"prompts/get",params:e},o.GetPromptResultSchema,t)}async listPrompts(e,t){return this.request({method:"prompts/list",params:e},o.ListPromptsResultSchema,t)}async listResources(e,t){return this.request({method:"resources/list",params:e},o.ListResourcesResultSchema,t)}async listResourceTemplates(e,t){return this.request({method:"resources/templates/list",params:e},o.ListResourceTemplatesResultSchema,t)}async readResource(e,t){return this.request({method:"resources/read",params:e},o.ReadResourceResultSchema,t)}async subscribeResource(e,t){return this.request({method:"resources/subscribe",params:e},o.EmptyResultSchema,t)}async unsubscribeResource(e,t){return this.request({method:"resources/unsubscribe",params:e},o.EmptyResultSchema,t)}async callTool(e,t=o.CallToolResultSchema,r){const s=await this.request({method:"tools/call",params:e},t,r),i=this.getToolOutputValidator(e.name);if(i){if(!s.structuredContent&&!s.isError)throw new o.McpError(o.ErrorCode.InvalidRequest,`Tool ${e.name} has an output schema but did not return structured content`);if(s.structuredContent)try{if(!i(s.structuredContent))throw new o.McpError(o.ErrorCode.InvalidParams,`Structured content does not match the tool's output schema: ${this._ajv.errorsText(i.errors)}`)}catch(e){if(e instanceof o.McpError)throw e;throw new o.McpError(o.ErrorCode.InvalidParams,`Failed to validate structured content: ${e instanceof Error?e.message:String(e)}`)}}return s}cacheToolOutputSchemas(e){this._cachedToolOutputValidators.clear();for(const t of e)if(t.outputSchema)try{const e=this._ajv.compile(t.outputSchema);this._cachedToolOutputValidators.set(t.name,e)}catch(e){}}getToolOutputValidator(e){return this._cachedToolOutputValidators.get(e)}async listTools(e,t){const r=await this.request({method:"tools/list",params:e},o.ListToolsResultSchema,t);return this.cacheToolOutputSchemas(r.tools),r}async sendRootsListChanged(){return this.notification({method:"notifications/roots/list_changed"})}}}};