@hyperjump/json-schema 0.18.2 → 0.18.5

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.
@@ -1,2 +1,2 @@
1
- var e=function(e,n){return function t(){null==n&&(n=e.length);var a=[].slice.call(arguments);return a.length>=n?e.apply(this,a):function(){return t.apply(this,a.concat([].slice.call(arguments)))}}};var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var t=function(e,n){return e(n={exports:{}},n.exports),n.exports}((function(e,t){var a;a={},("object"==typeof window&&window||n).PubSub=a,function(e){var n={},t=-1;function a(e,n,t){try{e(n,t)}catch(e){setTimeout(function(e){return function(){throw e}}(e),0)}}function r(e,n,t){e(n,t)}function i(e,t,i,o){var s,c=n[t],m=o?r:a;if(Object.prototype.hasOwnProperty.call(n,t))for(s in c)Object.prototype.hasOwnProperty.call(c,s)&&m(c[s],e,i)}function o(e){var t=String(e);return Boolean(Object.prototype.hasOwnProperty.call(n,t)&&function(e){var n;for(n in e)if(Object.prototype.hasOwnProperty.call(e,n))return!0;return!1}(n[t]))}function s(e,n,t,a){var r=function(e,n,t){return function(){var a=String(e),r=a.lastIndexOf(".");for(i(e,e,n,t);-1!==r;)r=(a=a.substr(0,r)).lastIndexOf("."),i(e,a,n,t);i(e,"*",n,t)}}(e="symbol"==typeof e?e.toString():e,n,a);return!!function(e){for(var n=String(e),t=o(n)||o("*"),a=n.lastIndexOf(".");!t&&-1!==a;)a=(n=n.substr(0,a)).lastIndexOf("."),t=o(n);return t}(e)&&(!0===t?r():setTimeout(r,0),!0)}e.publish=function(n,t){return s(n,t,!1,e.immediateExceptions)},e.publishSync=function(n,t){return s(n,t,!0,e.immediateExceptions)},e.subscribe=function(e,a){if("function"!=typeof a)return!1;e="symbol"==typeof e?e.toString():e,Object.prototype.hasOwnProperty.call(n,e)||(n[e]={});var r="uid_"+String(++t);return n[e][r]=a,r},e.subscribeAll=function(n){return e.subscribe("*",n)},e.subscribeOnce=function(n,t){var a=e.subscribe(n,(function(){e.unsubscribe(a),t.apply(this,arguments)}));return e},e.clearAllSubscriptions=function(){n={}},e.clearSubscriptions=function(e){var t;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&0===t.indexOf(e)&&delete n[t]},e.countSubscriptions=function(e){var t,a,r=0;for(t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&0===t.indexOf(e)){for(a in n[t])r++;break}return r},e.getSubscriptions=function(e){var t,a=[];for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&0===t.indexOf(e)&&a.push(t);return a},e.unsubscribe=function(t){var a,r,i,o="string"==typeof t&&(Object.prototype.hasOwnProperty.call(n,t)||function(e){var t;for(t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&0===t.indexOf(e))return!0;return!1}(t)),s=!o&&"string"==typeof t,c="function"==typeof t,m=!1;if(!o){for(a in n)if(Object.prototype.hasOwnProperty.call(n,a)){if(r=n[a],s&&r[t]){delete r[t],m=t;break}if(c)for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&r[i]===t&&(delete r[i],m=!0)}return m}e.clearSubscriptions(t)}}(a),void 0!==e&&e.exports&&(t=e.exports=a),t.PubSub=a,e.exports=t=a}));t.PubSub;var a=function(e,n){if(e=e.trim(),(n=n.trim()).startsWith("about:"))return n;const t=function(e){const n={host:"",path:"",query:"",protocol:""};let t=e,a=e.indexOf("//");n.protocol=t.substring(0,a),a+=2;const r=e.indexOf("/",a),i=e.indexOf("?"),o=e.indexOf("#");-1!==o&&(t=t.substring(0,o));if(-1!==i){const e=t.substring(i);n.query=e,t=t.substring(0,i)}if(-1!==r){const e=t.substring(0,r);n.host=e,t=t.substring(r),n.path=t}else n.host=t;return n}(e),a=function(e){const n={href:e,hash:"",query:"",netPath:!1,absolutePath:!1,relativePath:!1};if(o.test(e))return n.netPath=!0,n;"/"===e[0]?n.absolutePath=!0:""!==e&&(n.relativePath=!0);let t=e;const a=e.indexOf("?"),r=e.indexOf("#");if(-1!==r){const e=t.substring(r);n.hash=e,t=t.substring(0,r)}if(-1!==a){const e=t.substring(a);n.query=e,t=t.substring(0,a)}return n.path=t,n}(n);if(!t.protocol&&!a.netPath)throw new Error("Error, protocol is not specified");if(a.netPath)return a.href.startsWith("//")&&(a.href=t.protocol+a.href),function(e){const n=e.indexOf("//")+2,t=!e.includes("/",n),a=!e.includes("?",n),r=!e.includes("#",n);return t&&a&&r}(a.href)?r(a.href):a.href;if(a.absolutePath){const{path:e,query:n,hash:r}=a;return t.host+i(e)+n+r}if(a.relativePath){const{path:e,query:n,hash:r}=a;let o,s=t.path,c=t.host;return 0===e.length?o=s:(s=s.substring(0,s.lastIndexOf("/")),o=i(s+"/"+e)),c+=""!==o||n||r?o+n+r:"/",c}{const{host:e,path:n,query:i}=t;return n||i?e+n+i+a.hash:r(e)}};function r(e){return e+("/"===e[e.length-1]?"":"/")}function i(e){let n=e.split("/");""===n[0]&&(n=n.slice(1));let t=[];return n.forEach((e,a)=>{"."!==e&&(".."===e?t.pop():""===e&&a!==n.length-1||t.push(e))}),"/"+t.join("/")}const o=new RegExp("^([a-z][a-z0-9+.-]*:)?//","i");const s={null:e=>null===e,boolean:e=>"boolean"==typeof e,object:e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,array:e=>Array.isArray(e),number:e=>"number"==typeof e,integer:e=>Number.isInteger(e),string:e=>"string"==typeof e},c=e=>{const n=e.indexOf("#"),t=-1===n?e.length:n,a=e.slice(0,t),r=e.slice(t+1);return[decodeURI(a),decodeURI(r)]},m=e=>{const n=RegExp(/^(.+):\/\//).exec(e);return n?n[1]:""};var p={jsonTypeOf:(e,n)=>s[n](e),splitUrl:c,safeResolveUrl:(e,n)=>{const t=a(e,n),r=c(e)[0];if(r&&"file"===m(t)&&"file"!==m(r))throw Error(`Can't access file '${t}' resource from network context '${e}'`);return t}};const l=e=>{if(e.length>0&&"/"!==e[0])throw Error("Invalid JSON Pointer");return e.split("/").slice(1).map(g)},u=(e,n,t,a)=>{if(0===e.length)return t;if(e.length>1){const r=e.shift();return{...n,[r]:u(e,$(n,r,a),t,h(r,a))}}if(Array.isArray(n)){const a=[...n];return a[b(n,e[0])]=t,a}return"object"==typeof n&&null!==n?{...n,[e[0]]:t}:$(n,e[0],a)},d=(e,n,t,a)=>{if(0!==e.length)if(1!==e.length||I(n)){const r=e.shift();d(e,$(n,r,a),t,h(r,a))}else{n[b(n,e[0])]=t}},f=(e,n,t)=>{if(0!=e.length){if(e.length>1){const a=e.shift(),r=$(n,a,t);return{...n,[a]:f(e,r,h(a,t))}}if(Array.isArray(n))return n.filter((n,t)=>t!=e[0]);if("object"==typeof n&&null!==n){const{[e[0]]:t,...a}=n;return a}return $(n,e[0],t)}},y=(e,n,t)=>{if(0!==e.length)if(e.length>1){const a=e.shift(),r=$(n,a,t);y(e,r,h(a,t))}else Array.isArray(n)?n.splice(e[0],1):"object"==typeof n&&null!==n?delete n[e[0]]:$(n,e[0],t)},h=e((e,n)=>n+"/"+v(e)),v=e=>e.toString().replace(/~/g,"~0").replace(/\//g,"~1"),g=e=>e.toString().replace(/~1/g,"/").replace(/~0/g,"~"),b=(e,n)=>Array.isArray(e)&&"-"===n?e.length:n,$=(e,n,t="")=>{if(void 0===e)throw TypeError(`Value at '${t}' is undefined and does not have property '${n}'`);if(null===e)throw TypeError(`Value at '${t}' is null and does not have property '${n}'`);if(I(e))throw TypeError(`Value at '${t}' is a ${typeof e} and does not have property '${n}'`);return e[b(e,n)]},I=e=>null===e||"object"!=typeof e;var O={nil:"",append:h,get:(e,n)=>{const t=l(e),a=e=>t.reduce(([e,n],t)=>[$(e,t,n),h(t,n)],[e,""])[0];return void 0===n?a:a(n)},set:(n,t,a)=>{const r=l(n),i=e((e,n)=>u(r,e,n,""));return void 0===t?i:i(t,a)},assign:(n,t,a)=>{const r=l(n),i=e((e,n)=>d(r,e,n,""));return void 0===t?i:i(t,a)},unset:(e,n)=>{const t=l(e),a=e=>f(t,e,"");return void 0===n?a:a(n)},remove:(e,n)=>{const t=l(e),a=e=>y(t,e,"");return void 0===n?a:a(n)}};O.nil,O.append,O.get,O.set,O.assign,O.unset,O.remove;const S=Symbol("$__value"),j=Symbol("$__href");var x=(e,n)=>Object.freeze({[j]:e,[S]:n}),w=e=>e&&void 0!==e[j],P=e=>e[j],E=e=>e[S];const{jsonTypeOf:A}=p,C=Object.freeze({id:"",pointer:"",instance:void 0,value:void 0}),N=e=>w(e.value)?E(e.value):e.value,R=e((e,n)=>A(N(e),n)),T=(e,n)=>Object.freeze({...n,pointer:O.append(e,n.pointer),value:N(n)[e]}),D=e((e,n)=>N(n).map((t,a,r,i)=>e(T(a,n),a,r,i))),M=e((e,n)=>N(n).map((e,t,a,r)=>T(t,n)).filter((n,t,a,r)=>e(n,t,a,r))),k=e((e,n,t)=>N(t).reduce((n,a,r)=>e(n,T(r,t),r),n)),q=e((e,n)=>N(n).every((t,a,r,i)=>e(T(a,n),a,r,i))),L=e((e,n)=>N(n).some((t,a,r,i)=>e(T(a,n),a,r,i)));var V={nil:C,cons:(e,n="")=>Object.freeze({...C,id:n,instance:e,value:e}),uri:e=>`${e.id}#${encodeURI(e.pointer)}`,value:N,has:(e,n)=>e in N(n),typeOf:R,step:T,entries:e=>Object.keys(N(e)).map(n=>[n,T(n,e)]),keys:e=>Object.keys(N(e)),map:D,filter:M,reduce:k,every:q,some:L,length:e=>N(e).length},J=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,U=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,z=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,_=/\\([\u000b\u0020-\u00ff])/g,F=/([\\"])/g,K=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function B(e){var n=String(e);if(z.test(n))return n;if(n.length>0&&!U.test(n))throw new TypeError("invalid parameter value");return'"'+n.replace(F,"\\$1")+'"'}function Z(e){this.parameters=Object.create(null),this.type=e}var G={format:function(e){if(!e||"object"!=typeof e)throw new TypeError("argument obj is required");var n=e.parameters,t=e.type;if(!t||!K.test(t))throw new TypeError("invalid type");var a=t;if(n&&"object"==typeof n)for(var r,i=Object.keys(n).sort(),o=0;o<i.length;o++){if(r=i[o],!z.test(r))throw new TypeError("invalid parameter name");a+="; "+r+"="+B(n[r])}return a},parse:function(e){if(!e)throw new TypeError("argument string is required");var n="object"==typeof e?function(e){var n;"function"==typeof e.getHeader?n=e.getHeader("content-type"):"object"==typeof e.headers&&(n=e.headers&&e.headers["content-type"]);if("string"!=typeof n)throw new TypeError("content-type header is missing from object");return n}(e):e;if("string"!=typeof n)throw new TypeError("argument string is required to be a string");var t=n.indexOf(";"),a=-1!==t?n.substr(0,t).trim():n.trim();if(!K.test(a))throw new TypeError("invalid media type");var r=new Z(a.toLowerCase());if(-1!==t){var i,o,s;for(J.lastIndex=t;o=J.exec(n);){if(o.index!==t)throw new TypeError("invalid parameter format");t+=o[0].length,i=o[1].toLowerCase(),'"'===(s=o[2])[0]&&(s=s.substr(1,s.length-2).replace(_,"$1")),r.parameters[i]=s}if(t!==n.length)throw new TypeError("invalid parameter format")}return r}},W=async e=>Object.entries(await e),X=e(async(e,n)=>(await n).map(e)),H=e(async(e,n,t)=>(await t).reduce(async(n,t)=>e(await n,t),n)),Q=e(async(e,n,t={})=>H(async(n,t)=>await e(t)?n.concat([t]):n,[],n,t)),Y=e(async(e,n)=>{const t=await X(e,n);return(await Promise.all(t)).some(e=>e)}),ee=e(async(e,n)=>{const t=await X(e,n);return(await Promise.all(t)).every(e=>e)}),ne=e((e,n)=>e.reduce(async(e,n)=>n(await e),n)),te={entries:W,map:X,filter:Q,reduce:H,some:Y,every:ee,pipeline:ne,all:e=>Promise.all(e),allValues:e=>ne([W,H(async(e,[n,t])=>(e[n]=await t,e),{})],e)};te.entries,te.map,te.filter,te.reduce,te.some,te.every,te.pipeline,te.all,te.allValues;var ae=fetch;const{jsonTypeOf:re,splitUrl:ie,safeResolveUrl:oe}=p,se={},ce={},me=(e,n)=>{const t=e in ce?ce[e]:e;if(t in se)return se[t][n]},pe={},le={},ue=(e,n="",t="")=>{e=JSON.parse(JSON.stringify(e));const a=ie(e.$schema||t)[0];if(!a)throw Error("Couldn't determine schema version");delete e.$schema;const r=me(a,"baseToken"),i=me(a,"anchorToken"),o=ie(n)[0];if(!o&&!ie(e[r]||"")[0])throw Error("Couldn't determine an identifier for the schema");const s=oe(o,e[r]||""),[c,m]=ie(s);delete e[r],m&&r===i&&(e[i]=i!==r?encodeURI(m):"#"+encodeURI(m)),o&&(le[o]=c);const p={},l=me(a,"recursiveAnchorToken");let u;!0===e[l]&&(p[""]=c+"#",e[i]="",delete e[l]);const d=me(a,"vocabularyToken");re(e[d],"object")?(ce[c]=a,u=e[d],delete e[d]):(ce[c]=a,u={[a]:!0});const f={"":""};return pe[c]={id:c,schemaVersion:a,schema:de(e,c,a,O.nil,f,p),anchors:f,dynamicAnchors:p,vocabulary:u,validated:!1},c},de=(e,n,t,a,r,i)=>{if(re(e,"object")){const o="string"==typeof e.$schema?ie(e.$schema)[0]:t,s=me(o,"embeddedToken"),c=me(o,"anchorToken");if("string"==typeof e[s]&&(s!==c||"#"!==e[s][0])){const a=oe(n,e[s]);return e[s]=a,ue(e,a,t),x(e[s],e)}const m=me(t,"anchorToken"),p=me(t,"dynamicAnchorToken");"string"==typeof e[p]&&(i[e[p]]=`${n}#${encodeURI(a)}`,r[e[p]]=a,delete e[p]);const l=me(t,"embeddedToken");if("string"==typeof e[m]){const n=m!==l?e[m]:e[m].slice(1);r[n]=a,delete e[m]}const u=me(t,"jrefToken");if("string"==typeof e[u])return x(e[u],e);for(const o in e)e[o]=de(e[o],n,t,O.append(o,a),r,i);return e}return Array.isArray(e)?e.map((e,o)=>de(e,n,t,O.append(o,a),r,i)):e},fe=e=>pe[le[e]]||pe[e],ye=Object.freeze({id:"",schemaVersion:void 0,vocabulary:{},pointer:O.nil,schema:void 0,value:void 0,anchors:{},dynamicAnchors:{},validated:!0}),he=async(e,n=ye)=>{const t=oe(be(n),e),[a,r]=ie(t);if(!(e=>e in pe||e in le)(a)){const e=await ae(a,{headers:{Accept:"application/schema+json"}});if(e.status>=400)throw await e.text(),Error("Failed to retrieve schema with id: "+a);if(e.headers.has("content-type")){const n=G.parse(e.headers.get("content-type")).type;if("application/schema+json"!==n)throw Error(`${a} is not a schema. Found a document with media type: ${n}`)}ue(await e.json(),a)}const i=fe(a),o="/"!==r[0]?ge(i,r):r,s=Object.freeze({...i,pointer:o,value:O.get(o,i.schema)});return ve(s)},ve=e=>w(e.value)?he(P(e.value),e):e,ge=(e,n)=>{if(!(n in e.anchors))throw Error(`No such anchor '${encodeURI(e.id)}#${encodeURI(n)}'`);return e.anchors[n]},be=e=>`${e.id}#${encodeURI(e.pointer)}`,$e=e=>w(e.value)?E(e.value):e.value,Ie=(e,n)=>{const t=fe(n.id),a=Object.freeze({...n,pointer:O.append(e,n.pointer),value:$e(n)[e],validated:t.validated});return ve(a)},Oe=e((e,n)=>te.pipeline([$e,te.map(async(t,a)=>e(await Ie(a,n),a)),te.all],n));var Se={setConfig:(e,n,t)=>{se[e]||(se[e]={}),se[e][n]=t},getConfig:me,add:ue,get:he,markValidated:e=>{pe[e].validated=!0},uri:be,value:$e,getAnchorPointer:ge,typeOf:(e,n)=>re($e(e),n),has:(e,n)=>e in $e(n),step:Ie,keys:e=>Object.keys($e(e)),entries:e=>te.pipeline([$e,Object.keys,te.map(async n=>[n,await Ie(n,e)]),te.all],e),map:Oe,length:e=>$e(e).length};Se.setConfig,Se.getConfig,Se.add,Se.get,Se.markValidated,Se.uri,Se.value,Se.getAnchorPointer,Se.typeOf,Se.has,Se.step,Se.keys,Se.entries,Se.map,Se.length;class je extends Error{constructor(e){super("Invalid Schema"),this.name=this.constructor.name,this.output=e}}var xe=je;const{splitUrl:we}=p,Pe="FLAG",Ee="BASIC",Ae="DETAILED",Ce="VERBOSE";let Ne=Ae,Re=!0;const Te=async e=>{const n={metaData:{}};return{ast:n,schemaUri:await Ue(e,n)}},De=e(({ast:e,schemaUri:n},a,r=Pe)=>{if(![Pe,Ee,Ae,Ce].includes(r))throw Error(`The '${r}' error format is not supported`);const i=[],o=t.subscribe("result",Me(r,i));return _e(n,a,e,{}),t.unsubscribe(o),i[0]}),Me=(e,n)=>{const t=[];return(a,r)=>{if("result"===a){const{keyword:e,absoluteKeywordLocation:n,instanceLocation:a,valid:i}=r,o={keyword:e,absoluteKeywordLocation:n,instanceLocation:a,valid:i,errors:[]};t.push(o)}else if("result.start"===a)t.push(a);else if("result.end"===a){const a=t.pop();for(;"result.start"!==t[t.length-1];){const n=t.pop(),r=[n];e===Ee&&(r.push(...n.errors),delete n.errors),(e===Ce||e!==Pe&&!n.valid)&&a.errors.unshift(...r)}t[t.length-1]=a,n[0]=a}}},ke={},qe=e=>ke[e],Le=e=>e in ke,Ve={},Je={},Ue=async(e,n)=>{if(e=await ze(e),!Le(e.schemaVersion+"#validate")){const n=await Se.get(e.schemaVersion);(Se.getConfig(n.id,"mandatoryVocabularies")||[]).forEach(e=>{if(!n.vocabulary[e])throw Error(`Vocabulary '${e}' must be explicitly declared and required`)}),Object.entries(n.vocabulary).forEach(([e,t])=>{if(e in Ve)Object.entries(Ve[e]).forEach(([e,t])=>{((e,n)=>{ke[e]={collectEvaluatedItems:(e,t,a,r,i)=>n.interpret(e,t,a,r,i)&&new Set,collectEvaluatedProperties:(e,t,a,r,i)=>n.interpret(e,t,a,r,i)&&[],...n}})(`${n.id}#${e}`,t)});else if(t)throw Error("Missing required vocabulary: "+e)})}if(Re&&!e.validated){if(Se.markValidated(e.id),!(e.schemaVersion in Je)){const n=await Se.get(e.schemaVersion),t=await Te(n);Je[n.id]=De(t)}const n=V.cons(e.schema,e.id),t=Je[e.schemaVersion](n,Ne);if(!t.valid)throw new xe(t)}return e.id in n.metaData||(n.metaData[e.id]={id:e.id,dynamicAnchors:e.dynamicAnchors,anchors:e.anchors}),qe(e.schemaVersion+"#validate").compile(e,n)},ze=async e=>Se.typeOf(e,"string")?ze(await Se.get(Se.value(e),e)):e,_e=(e,n,t,a)=>{const r=Fe(e,t),i=we(e)[0];return qe(r).interpret(e,n,t,{...t.metaData[i].dynamicAnchors,...a})},Fe=(e,n)=>{if(!(e in n))throw Error("No schema found at "+e);return n[e][0]};var Ke={validate:async(e,n,t)=>{const a=await Te(e),r=(e,n)=>De(a,V.cons(e),n);return void 0===n?r:r(n,t)},compile:Te,interpret:De,setMetaOutputFormat:e=>{Ne=e},setShouldMetaValidate:e=>{Re=e},FLAG:Pe,BASIC:Ee,DETAILED:Ae,VERBOSE:Ce,add:(e,n="",t="")=>{const a=Se.add(e,n,t);delete Je[a]},getKeyword:qe,hasKeyword:Le,defineVocabulary:(e,n)=>{Ve[e]=n},compileSchema:Ue,interpretSchema:_e,collectEvaluatedProperties:(e,n,t,a,r)=>{const i=Fe(e,t);return qe(i).collectEvaluatedProperties(e,n,t,a,r)},collectEvaluatedItems:(e,n,t,a,r)=>{const i=Fe(e,t);return qe(i).collectEvaluatedItems(e,n,t,a,r)}};var Be={compile:e=>Se.value(e),interpret:()=>!0};var Ze={compile:async(e,n)=>{const t=Se.uri(e);if(!(t in n)){n[t]=!1;const a=Se.value(e);if(!["object","boolean"].includes(typeof a))throw Error(`No schema found at '${Se.uri(e)}'`);n[t]=[e.schemaVersion+"#validate",Se.uri(e),"boolean"==typeof a?a:await te.pipeline([Se.entries,te.map(([n,t])=>[`${e.schemaVersion}#${n}`,t]),te.filter(([n])=>Ke.hasKeyword(n)&&n!==e.schemaVersion+"#validate"),te.map(async([t,a])=>{const r=await Ke.getKeyword(t).compile(a,n,e);return[t,Se.uri(a),r]}),te.all],e)]}return t},interpret:(e,n,a,r)=>{const[i,o,s]=a[e];t.publishSync("result.start");const c="boolean"==typeof s?s:s.every(([e,i,o])=>{t.publishSync("result.start");const s=Ke.getKeyword(e).interpret(o,n,a,r);return t.publishSync("result",{keyword:e,absoluteKeywordLocation:i,instanceLocation:V.uri(n),valid:s,ast:o}),t.publishSync("result.end"),s});return t.publishSync("result",{keyword:i,absoluteKeywordLocation:o,instanceLocation:V.uri(n),valid:c,ast:e}),t.publishSync("result.end"),c},collectEvaluatedProperties:(e,n,t,a,r=!1)=>{const i=t[e][2];return"boolean"==typeof i?!!i&&[]:i.filter(([e])=>!r||!e.endsWith("#unevaluatedProperties")).reduce((e,[r,,i])=>{const o=e&&Ke.getKeyword(r).collectEvaluatedProperties(i,n,t,a);return!1!==o&&[...e,...o]},[])},collectEvaluatedItems:(e,n,t,a,r=!1)=>{const i=t[e][2];return"boolean"==typeof i?!!i&&new Set:i.filter(([e])=>!r||!e.endsWith("#unevaluatedItems")).reduce((e,[r,,i])=>{const o=!1!==e&&Ke.getKeyword(r).collectEvaluatedItems(i,n,t,a);return!1!==o&&new Set([...e,...o])},new Set)}},Ge={metaData:Be,validate:Ze},We={Core:Ke,Schema:Se,Instance:V,Keywords:Ge,InvalidSchemaError:xe};const{Core:Xe,Schema:He,Instance:Qe}=We;var Ye={compile:async(e,n,t)=>{const a=await He.step("items",t),r=He.typeOf(a,"array")?He.length(a):Number.MAX_SAFE_INTEGER;return He.typeOf(e,"boolean")?[r,He.value(e)]:[r,await Xe.compileSchema(e,n)]},interpret:([e,n],t,a,r)=>!Qe.typeOf(t,"array")||("string"==typeof n?Qe.every((t,i)=>i<e||Xe.interpretSchema(n,t,a,r),t):Qe.every((t,a)=>a<e||n,t))};const{Core:en,Schema:nn,Instance:tn}=We,an=([e,n],t,a,r)=>!tn.typeOf(t,"array")||tn.every((t,i)=>i<e||en.interpretSchema(n,t,a,r),t);var rn={compile:async(e,n,t)=>{const a=await nn.step("items",t);return[nn.typeOf(a,"array")?nn.length(a):Number.MAX_SAFE_INTEGER,await en.compileSchema(e,n)]},interpret:an,collectEvaluatedItems:(e,n,t,a)=>an(e,n,t,a)&&new Set(tn.map((e,n)=>n,n))};const{Core:on,Schema:sn,Instance:cn}=We;var mn={compile:async(e,n,t)=>{const a=await sn.step("properties",t),r=sn.typeOf(a,"object")?sn.keys(a):[],i=await sn.step("patternProperties",t),o=sn.typeOf(i,"object")?sn.keys(i).map(e=>new RegExp(e)):[];return sn.typeOf(e,"boolean")?[r,o,sn.value(e)]:[r,o,await on.compileSchema(e,n)]},interpret:([e,n,t],a,r,i)=>{if(!cn.typeOf(a,"object"))return!0;const o=cn.entries(a).filter(([t])=>!e.includes(t)&&!n.some(e=>e.test(t)));return"string"==typeof t?o.every(([,e])=>on.interpretSchema(t,e,r,i)):0===o.length||t}};const{Core:pn,Schema:ln,Instance:un}=We,dn=([e,n,t],a,r,i)=>!un.typeOf(a,"object")||un.entries(a).filter(([t])=>!e.includes(t)&&!n.some(e=>e.test(t))).every(([,e])=>pn.interpretSchema(t,e,r,i));var fn={compile:async(e,n,t)=>{const a=await ln.step("properties",t),r=ln.typeOf(a,"object")?ln.keys(a):[],i=await ln.step("patternProperties",t);return[r,ln.typeOf(i,"object")?ln.keys(i).map(e=>new RegExp(e)):[],await pn.compileSchema(e,n)]},interpret:dn,collectEvaluatedProperties:(e,n,t,a)=>dn(e,n,t,a)&&[new RegExp("")]};const{Core:yn,Schema:hn}=We;var vn={compile:(e,n)=>te.pipeline([hn.map(async e=>yn.compileSchema(await e,n)),te.all],e),interpret:(e,n,t,a)=>e.every(e=>yn.interpretSchema(e,n,t,a)),collectEvaluatedProperties:(e,n,t,a)=>e.reduce((e,r)=>{const i=e&&yn.collectEvaluatedProperties(r,n,t,a);return!1!==i&&[...e,...i]},[]),collectEvaluatedItems:(e,n,t,a)=>e.reduce((e,r)=>{const i=!1!==e&&yn.collectEvaluatedItems(r,n,t,a);return!1!==i&&new Set([...e,...i])},new Set)};const{Core:gn,Schema:bn}=We;var $n={compile:(e,n)=>te.pipeline([bn.map(async e=>gn.compileSchema(await e,n)),te.all],e),interpret:(e,n,t,a)=>e.filter(e=>gn.interpretSchema(e,n,t,a)).length>0,collectEvaluatedProperties:(e,n,t,a)=>e.reduce((e,r)=>{const i=gn.collectEvaluatedProperties(r,n,t,a);return!1!==i?[...e||[],...i]:e},!1),collectEvaluatedItems:(e,n,t,a)=>e.reduce((e,r)=>{const i=gn.collectEvaluatedItems(r,n,t,a);return!1!==i?new Set([...e||[],...i]):e},!1)},In=Object.keys,On=JSON.stringify;var Sn=function(e){return""+function e(n,t){var a,r,i,o,s,c,m;if("string"===(m=typeof n))return On(n);if(!0===n)return"true";if(!1===n)return"false";if(null===n)return"null";if(n instanceof Array){for(i="[",r=n.length-1,a=0;a<r;a++)i+=e(n[a],!1)+",";return r>-1&&(i+=e(n[a],!1)),i+"]"}if(n instanceof Object){if("function"==typeof n.toJSON)return e(n.toJSON(),t);for(r=(o=In(n).sort()).length,i="",a=0;a<r;)void 0!==(c=e(n[s=o[a]],!0))&&(a&&""!==i&&(i+=","),i+=On(s)+":"+c),a++;return"{"+i+"}"}switch(m){case"function":case"undefined":return t?void 0:null;default:return isFinite(n)?n:null}}(e,!1)};const{Schema:jn,Instance:xn}=We;var wn={compile:e=>Sn(jn.value(e)),interpret:(e,n)=>Sn(xn.value(n))===e};const{Core:Pn,Instance:En}=We;var An={compile:(e,n)=>Pn.compileSchema(e,n),interpret:(e,n,t,a)=>!En.typeOf(n,"array")||En.some(n=>Pn.interpretSchema(e,n,t,a),n)};const{Core:Cn,Schema:Nn,Instance:Rn}=We,Tn=({contains:e,minContains:n,maxContains:t},a,r,i)=>{if(!Rn.typeOf(a,"array"))return!0;const o=Rn.reduce((n,t)=>Cn.interpretSchema(e,t,r,i)?n+1:n,0,a);return o>=n&&o<=t};var Dn={compile:async(e,n,t)=>{const a=await Cn.compileSchema(e,n),r=await Nn.step("minContains",t),i=Nn.typeOf(r,"number")?Nn.value(r):1,o=await Nn.step("maxContains",t);return{contains:a,minContains:i,maxContains:Nn.typeOf(o,"number")?Nn.value(o):Number.MAX_SAFE_INTEGER}},interpret:Tn,collectEvaluatedItems:(e,n,t,a)=>Tn(e,n,t,a)&&Rn.reduce((n,r,i)=>Cn.interpretSchema(e.contains,r,t,a)?n.add(i):n,new Set,n)};const{Core:Mn,Schema:kn}=We;var qn={compile:async(e,n)=>{await te.pipeline([kn.entries,te.map(([,e])=>Mn.compileSchema(e,n)),te.all],e)},interpret:()=>!0};const{Core:Ln,Schema:Vn,Instance:Jn}=We;var Un={compile:(e,n)=>te.pipeline([Vn.entries,te.map(async([e,t])=>[e,Vn.typeOf(t,"array")?Vn.value(t):await Ln.compileSchema(t,n)]),te.all],e),interpret:(e,n,t,a)=>{const r=Jn.value(n);return!Jn.typeOf(n,"object")||e.every(([e,i])=>!(e in r)||(Array.isArray(i)?i.every(e=>e in r):Ln.interpretSchema(i,n,t,a)))}};const{Schema:zn,Instance:_n}=We;var Fn={compile:e=>te.pipeline([zn.entries,te.map(([e,n])=>[e,zn.value(n)]),te.all],e),interpret:(e,n)=>{const t=_n.value(n);return!_n.typeOf(n,"object")||e.every(([e,n])=>!(e in t)||n.every(e=>e in t))}};const{Core:Kn,Schema:Bn,Instance:Zn}=We;var Gn={compile:(e,n)=>te.pipeline([Bn.entries,te.map(async([e,t])=>[e,await Kn.compileSchema(t,n)]),te.all],e),interpret:(e,n,t,a)=>{const r=Zn.value(n);return!Zn.typeOf(n,"object")||e.every(([e,i])=>!(e in r)||Kn.interpretSchema(i,n,t,a))},collectEvaluatedProperties:(e,n,t,a)=>e.reduce((e,[r,i])=>{if(!e||!Zn.has(r,n))return e;const o=Kn.collectEvaluatedProperties(i,n,t,a);return!1!==o&&e.concat(o)},[])};const{Schema:Wn,Instance:Xn}=We;var Hn={compile:e=>Wn.value(e).map(Sn),interpret:(e,n)=>e.some(e=>Sn(Xn.value(n))===e)};const{Schema:Qn,Instance:Yn}=We;var et={compile:async e=>Qn.value(e),interpret:(e,n)=>!Yn.typeOf(n,"number")||Yn.value(n)<e};const{Schema:nt,Instance:tt}=We;var at={compile:async e=>nt.value(e),interpret:(e,n)=>!tt.typeOf(n,"number")||tt.value(n)>e};const{Core:rt}=We;var it={compile:(e,n)=>rt.compileSchema(e,n),interpret:(e,n,t,a)=>(rt.interpretSchema(e,n,t,a),!0),collectEvaluatedProperties:(e,n,t,a)=>rt.collectEvaluatedProperties(e,n,t,a)||[],collectEvaluatedItems:(e,n,t,a)=>rt.collectEvaluatedItems(e,n,t,a)||new Set};const{Core:ot,Schema:st}=We,ct=(e,n,t,a)=>{const r=t[e][2];return"boolean"==typeof r?r:r.every(([e,,r])=>ot.getKeyword(e).interpret(r,n,t,a))};var mt={compile:async(e,n,t)=>{if(st.has("if",t)){const a=await st.step("if",t);return[await ot.compileSchema(a,n),await ot.compileSchema(e,n)]}return[]},interpret:([e,n],t,a,r)=>void 0===e||!ct(e,t,a,r)||ot.interpretSchema(n,t,a,r),collectEvaluatedProperties:([e,n],t,a,r)=>void 0!==e&&ct(e,t,a,r)?ot.collectEvaluatedProperties(n,t,a,r):[],collectEvaluatedItems:([e,n],t,a,r)=>void 0!==e&&ct(e,t,a,r)?ot.collectEvaluatedItems(n,t,a,r):new Set};const{Core:pt,Schema:lt}=We,ut=(e,n,t,a)=>{const r=t[e][2];return"boolean"==typeof r?r:r.every(([e,,r])=>pt.getKeyword(e).interpret(r,n,t,a))};var dt={compile:async(e,n,t)=>{if(lt.has("if",t)){const a=await lt.step("if",t);return[await pt.compileSchema(a,n),await pt.compileSchema(e,n)]}return[]},interpret:([e,n],t,a,r)=>void 0===e||ut(e,t,a,r)||pt.interpretSchema(n,t,a,r),collectEvaluatedProperties:([e,n],t,a,r)=>void 0===e||ut(e,t,a,r)?[]:pt.collectEvaluatedProperties(n,t,a,r),collectEvaluatedItems:([e,n],t,a,r)=>void 0===e||ut(e,t,a,r)?new Set:pt.collectEvaluatedItems(n,t,a,r)};const{Core:ft,Schema:yt,Instance:ht}=We,vt=(e,n,t,a)=>!ht.typeOf(n,"array")||("string"==typeof e?ht.every(n=>ft.interpretSchema(e,n,t,a),n):ht.every((n,r)=>!(r in e)||ft.interpretSchema(e[r],n,t,a),n));var gt={compile:async(e,n)=>{if(yt.typeOf(e,"array")){const t=await yt.map(e=>ft.compileSchema(e,n),e);return Promise.all(t)}return ft.compileSchema(e,n)},interpret:vt,collectEvaluatedItems:(e,n,t,a)=>vt(e,n,t,a)&&("string"==typeof e?new Set(ht.map((e,n)=>n,n)):new Set(e.map((e,n)=>n)))};const{Core:bt,Schema:$t,Instance:It}=We,Ot=([e,n],t,a,r)=>!It.typeOf(t,"array")||It.every((t,i)=>i<e||bt.interpretSchema(n,t,a,r),t);var St={compile:async(e,n,t)=>{const a=await $t.step("prefixItems",t);return[$t.typeOf(a,"array")?$t.length(a):0,await bt.compileSchema(e,n)]},interpret:Ot,collectEvaluatedItems:(e,n,t,a)=>Ot(e,n,t,a)&&new Set(It.map((e,n)=>n,n))};const{Schema:jt,Instance:xt}=We;var wt={compile:e=>jt.value(e),interpret:(e,n)=>!xt.typeOf(n,"array")||xt.length(n)<=e};const{Schema:Pt,Instance:Et}=We;var At={compile:e=>Pt.value(e),interpret:(e,n)=>!Et.typeOf(n,"string")||Et.length(n)<=e};const{Schema:Ct,Instance:Nt}=We;var Rt={compile:e=>Ct.value(e),interpret:(e,n)=>!Nt.typeOf(n,"string")||[...Nt.value(n)].length<=e};const{Schema:Tt,Instance:Dt}=We;var Mt={compile:e=>Tt.value(e),interpret:(e,n)=>!Dt.typeOf(n,"object")||Dt.keys(n).length<=e};const{Schema:kt,Instance:qt}=We;var Lt={compile:async(e,n,t)=>{const a=await kt.step("exclusiveMaximum",t),r=kt.value(a);return[kt.value(e),r]},interpret:([e,n],t)=>{if(!qt.typeOf(t,"number"))return!0;const a=qt.value(t);return n?a<e:a<=e}};const{Schema:Vt,Instance:Jt}=We;var Ut={compile:async e=>Vt.value(e),interpret:(e,n)=>!Jt.typeOf(n,"number")||Jt.value(n)<=e};const{Schema:zt,Instance:_t}=We;var Ft={compile:e=>zt.value(e),interpret:(e,n)=>!_t.typeOf(n,"array")||_t.length(n)>=e};const{Schema:Kt,Instance:Bt}=We;var Zt={compile:e=>Kt.value(e),interpret:(e,n)=>!Bt.typeOf(n,"string")||Bt.length(n)>=e};const{Schema:Gt,Instance:Wt}=We;var Xt={compile:e=>Gt.value(e),interpret:(e,n)=>!Wt.typeOf(n,"string")||[...Wt.value(n)].length>=e};const{Schema:Ht,Instance:Qt}=We;var Yt={compile:e=>Ht.value(e),interpret:(e,n)=>!Qt.typeOf(n,"object")||Qt.keys(n).length>=e};const{Schema:ea,Instance:na}=We;var ta={compile:async(e,n,t)=>{const a=await ea.step("exclusiveMinimum",t),r=ea.value(a);return[ea.value(e),r]},interpret:([e,n],t)=>{if(!na.typeOf(t,"number"))return!0;const a=na.value(t);return n?a>e:a>=e}};const{Schema:aa,Instance:ra}=We;var ia={compile:async e=>aa.value(e),interpret:(e,n)=>!ra.typeOf(n,"number")||ra.value(n)>=e};const{Schema:oa,Instance:sa}=We,ca=(e,n)=>Math.abs(e-n)<1.1920929e-7;var ma={compile:e=>oa.value(e),interpret:(e,n)=>{if(!sa.typeOf(n,"number"))return!0;const t=sa.value(n)%e;return ca(0,t)||ca(e,t)}};const{Core:pa}=We;var la={compile:pa.compileSchema,interpret:(e,n,t,a)=>!pa.interpretSchema(e,n,t,a)};const{Core:ua,Schema:da}=We;var fa={compile:async(e,n)=>{const t=await da.map(e=>ua.compileSchema(e,n),e);return Promise.all(t)},interpret:(e,n,t,a)=>{let r=0;for(const i of e)if(ua.interpretSchema(i,n,t,a)&&r++,r>1)break;return 1===r},collectEvaluatedProperties:(e,n,t,a)=>{let r=0;return e.reduce((e,i)=>{if(r>1)return!1;const o=ua.collectEvaluatedProperties(i,n,t,a);return o?0==r++&&o:e},!1)},collectEvaluatedItems:(e,n,t,a)=>{let r=0;return e.reduce((e,i)=>{if(r>1)return!1;const o=ua.collectEvaluatedItems(i,n,t,a);return o?0==r++&&o:e},!1)}};const{Schema:ya,Instance:ha}=We;var va={compile:e=>new RegExp(ya.value(e),"u"),interpret:(e,n)=>!ha.typeOf(n,"string")||e.test(ha.value(n))};const{Core:ga,Schema:ba,Instance:$a}=We,Ia=(e,n,t,a)=>!$a.typeOf(n,"object")||e.every(([e,r])=>$a.entries(n).filter(([n])=>e.test(n)).every(([,e])=>ga.interpretSchema(r,e,t,a)));var Oa={compile:(e,n)=>te.pipeline([ba.entries,te.map(async([e,t])=>[new RegExp(e,"u"),await ga.compileSchema(t,n)]),te.all],e),interpret:Ia,collectEvaluatedProperties:(e,n,t,a)=>Ia(e,n,t,a)&&e.map(([e])=>e)};var Sa={isObject:e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,escapeRegExp:e=>e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),splitUrl:e=>{const n=e.indexOf("#"),t=-1===n?e.length:n,a=e.slice(0,t),r=e.slice(t+1);return[decodeURI(a),decodeURI(r)]}};const{Core:ja,Schema:xa,Instance:wa}=We,{escapeRegExp:Pa}=Sa,Ea=(e,n,t,a)=>!wa.typeOf(n,"object")||wa.entries(n).filter(([n])=>n in e).every(([n,r])=>ja.interpretSchema(e[n],r,t,a));var Aa={compile:(e,n)=>te.pipeline([xa.entries,te.reduce(async(e,[t,a])=>(e[t]=await ja.compileSchema(a,n),e),Object.create(null))],e),interpret:Ea,collectEvaluatedProperties:(e,n,t,a)=>Ea(e,n,t,a)&&Object.keys(e).map(e=>new RegExp(`^${Pa(e)}$`))};const{Core:Ca,Instance:Na}=We;var Ra={compile:(e,n)=>Ca.compileSchema(e,n),interpret:(e,n,t,a)=>!Na.typeOf(n,"object")||Na.keys(n).every(n=>Ca.interpretSchema(e,Na.cons(n),t,a))};const{Core:Ta,Schema:Da}=We,{splitUrl:Ma}=Sa;var ka={compile:async(e,n)=>{const[,t]=Ma(Da.value(e)),a=await Da.get(Da.value(e),e);return await Ta.compileSchema(a,n),[a.id,t]},interpret:([e,n],t,a,r)=>{if(n in a.metaData[e].dynamicAnchors)return Ta.interpretSchema(r[n],t,a,r);{const i=Da.getAnchorPointer(a.metaData[e],n);return Ta.interpretSchema(`${e}#${encodeURI(i)}`,t,a,r)}},collectEvaluatedProperties:Ta.collectEvaluatedProperties,collectEvaluatedItems:Ta.collectEvaluatedItems};const{Core:qa,Schema:La}=We;var Va={compile:async(e,n)=>{const t=await La.get(La.value(e),e);return qa.compileSchema(t,n)},interpret:qa.interpretSchema,collectEvaluatedProperties:qa.collectEvaluatedProperties,collectEvaluatedItems:qa.collectEvaluatedItems};const{Schema:Ja,Instance:Ua}=We;var za={compile:e=>Ja.value(e),interpret:(e,n)=>!Ua.typeOf(n,"object")||e.every(e=>Object.prototype.hasOwnProperty.call(Ua.value(n),e))};const{Core:_a,Schema:Fa,Instance:Ka}=We,Ba=(e,n,t,a)=>!Ka.typeOf(n,"array")||Ka.every((n,r)=>!(r in e)||_a.interpretSchema(e[r],n,t,a),n);var Za={compile:(e,n)=>te.pipeline([Fa.map(e=>_a.compileSchema(e,n)),te.all],e),interpret:Ba,collectEvaluatedItems:(e,n,t,a)=>Ba(e,n,t,a)&&new Set(e.map((e,n)=>n))};const{Schema:Ga,Instance:Wa}=We;var Xa={compile:e=>Ga.value(e),interpret:(e,n)=>"string"==typeof e?Wa.typeOf(n,e):e.some(Wa.typeOf(n))};const{Core:Ha,Schema:Qa,Instance:Ya}=We,er=([e,n],t,a,r)=>{if(!Ya.typeOf(t,"array"))return!0;const i=Ha.collectEvaluatedItems(e,t,a,r,!0);return!1===i||Ya.every((e,o)=>i.has(o)||Ha.interpretSchema(n,Ya.step(o,t),a,r),t)};var nr={compile:async(e,n,t)=>[Qa.uri(t),await Ha.compileSchema(e,n)],interpret:er,collectEvaluatedItems:(e,n,t,a)=>er(e,n,t,a)&&new Set(Ya.map((e,n)=>n,n))};const{Core:tr,Schema:ar,Instance:rr}=We,ir=([e,n],t,a,r)=>{if(!rr.typeOf(t,"object"))return!0;const i=tr.collectEvaluatedProperties(e,t,a,r,!0);return!i||rr.entries(t).filter(([e])=>!i.some(n=>e.match(n))).every(([,e])=>tr.interpretSchema(n,e,a,r))};var or={compile:async(e,n,t)=>[ar.uri(t),await tr.compileSchema(e,n)],interpret:ir,collectEvaluatedProperties:(e,n,t,a)=>ir(e,n,t,a)&&[new RegExp("")]};const{Schema:sr,Instance:cr}=We;var mr={compile:e=>sr.value(e),interpret:(e,n)=>{if(!cr.typeOf(n,"array")||!1===e)return!0;const t=cr.map(e=>Sn(cr.value(e)),n);return new Set(t).size===t.length}};const{Keywords:pr}=We;var lr={additionalItems:Ye,additionalItems6:rn,additionalProperties:mn,additionalProperties6:fn,allOf:vn,anyOf:$n,const:wn,contains:An,containsMinContainsMaxContains:Dn,definitions:qn,dependencies:Un,dependentRequired:Fn,dependentSchemas:Gn,enum:Hn,exclusiveMaximum:et,exclusiveMinimum:at,if:it,then:mt,else:dt,items:gt,items202012:St,maxItems:wt,maxLength:At,maxLength6:Rt,maxProperties:Mt,maximumExclusiveMaximum:Lt,maximum:Ut,metaData:pr.metaData,minItems:Ft,minLength:Zt,minLength6:Xt,minProperties:Yt,minimumExclusiveMinimum:ta,minimum:ia,multipleOf:ma,not:la,oneOf:fa,pattern:va,patternProperties:Oa,properties:Aa,propertyNames:Ra,dynamicRef:ka,ref:Va,required:za,tupleItems:Za,type:Xa,unevaluatedItems:nr,unevaluatedProperties:or,uniqueItems:mr,validate:pr.validate};const{Core:ur,Schema:dr}=We,fr="http://json-schema.org/draft-04/schema";dr.setConfig(fr,"baseToken","id"),dr.setConfig(fr,"embeddedToken","id"),dr.setConfig(fr,"anchorToken","id"),dr.setConfig(fr,"jrefToken","$ref"),dr.add(JSON.parse('{\n "id": "http://json-schema.org/draft-04/schema#",\n "$schema": "http://json-schema.org/draft-04/schema#",\n "description": "Core schema meta-schema",\n "definitions": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$ref": "#" }\n },\n "positiveInteger": {\n "type": "integer",\n "minimum": 0\n },\n "positiveIntegerDefault0": {\n "allOf": [ { "$ref": "#/definitions/positiveInteger" }, { "default": 0 } ]\n },\n "simpleTypes": {\n "enum": [ "array", "boolean", "integer", "null", "number", "object", "string" ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "minItems": 1,\n "uniqueItems": true\n }\n },\n "type": "object",\n "properties": {\n "id": {\n "type": "string"\n },\n "$schema": {\n "type": "string"\n },\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": {},\n "multipleOf": {\n "type": "number",\n "minimum": 0,\n "exclusiveMinimum": true\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "boolean",\n "default": false\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "boolean",\n "default": false\n },\n "maxLength": { "$ref": "#/definitions/positiveInteger" },\n "minLength": { "$ref": "#/definitions/positiveIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "additionalItems": {\n "anyOf": [\n { "type": "boolean" },\n { "$ref": "#" }\n ],\n "default": {}\n },\n "items": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/schemaArray" }\n ],\n "default": {}\n },\n "maxItems": { "$ref": "#/definitions/positiveInteger" },\n "minItems": { "$ref": "#/definitions/positiveIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "maxProperties": { "$ref": "#/definitions/positiveInteger" },\n "minProperties": { "$ref": "#/definitions/positiveIntegerDefault0" },\n "required": { "$ref": "#/definitions/stringArray" },\n "additionalProperties": {\n "anyOf": [\n { "type": "boolean" },\n { "$ref": "#" }\n ],\n "default": {}\n },\n "definitions": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "properties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "dependencies": {\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/stringArray" }\n ]\n }\n },\n "enum": {\n "type": "array",\n "minItems": 1,\n "uniqueItems": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/definitions/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/definitions/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n },\n "format": { "type": "string" },\n "allOf": { "$ref": "#/definitions/schemaArray" },\n "anyOf": { "$ref": "#/definitions/schemaArray" },\n "oneOf": { "$ref": "#/definitions/schemaArray" },\n "not": { "$ref": "#" }\n },\n "dependencies": {\n "exclusiveMaximum": [ "maximum" ],\n "exclusiveMinimum": [ "minimum" ]\n },\n "default": {}\n}')),ur.defineVocabulary(fr,{validate:lr.validate,additionalItems:lr.additionalItems,additionalProperties:lr.additionalProperties,allOf:lr.allOf,anyOf:lr.anyOf,default:lr.metaData,definitions:lr.definitions,dependencies:lr.dependencies,description:lr.metaData,enum:lr.enum,format:lr.metaData,items:lr.items,maxItems:lr.maxItems,maxLength:lr.maxLength,maxProperties:lr.maxProperties,maximum:lr.maximumExclusiveMaximum,minItems:lr.minItems,minLength:lr.minLength,minProperties:lr.minProperties,minimum:lr.minimumExclusiveMinimum,multipleOf:lr.multipleOf,not:lr.not,oneOf:lr.oneOf,pattern:lr.pattern,patternProperties:lr.patternProperties,properties:lr.properties,required:lr.required,title:lr.metaData,type:lr.type,uniqueItems:lr.uniqueItems});const{Core:yr,Schema:hr}=We,vr="http://json-schema.org/draft-06/schema";hr.setConfig(vr,"baseToken","$id"),hr.setConfig(vr,"embeddedToken","$id"),hr.setConfig(vr,"anchorToken","$id"),hr.setConfig(vr,"jrefToken","$ref"),hr.add(JSON.parse('{\n "$schema": "http://json-schema.org/draft-06/schema#",\n "$id": "http://json-schema.org/draft-06/schema#",\n "title": "Core schema meta-schema",\n "definitions": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$ref": "#" }\n },\n "nonNegativeInteger": {\n "type": "integer",\n "minimum": 0\n },\n "nonNegativeIntegerDefault0": {\n "allOf": [\n { "$ref": "#/definitions/nonNegativeInteger" },\n { "default": 0 }\n ]\n },\n "simpleTypes": {\n "enum": [\n "array",\n "boolean",\n "integer",\n "null",\n "number",\n "object",\n "string"\n ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "uniqueItems": true,\n "default": []\n }\n },\n "type": ["object", "boolean"],\n "properties": {\n "$id": {\n "type": "string",\n "format": "uri-reference"\n },\n "$schema": {\n "type": "string",\n "format": "uri"\n },\n "$ref": {\n "type": "string",\n "format": "uri-reference"\n },\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": {},\n "examples": {\n "type": "array",\n "items": {}\n },\n "multipleOf": {\n "type": "number",\n "exclusiveMinimum": 0\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "number"\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "number"\n },\n "maxLength": { "$ref": "#/definitions/nonNegativeInteger" },\n "minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "additionalItems": { "$ref": "#" },\n "items": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/schemaArray" }\n ],\n "default": {}\n },\n "maxItems": { "$ref": "#/definitions/nonNegativeInteger" },\n "minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "contains": { "$ref": "#" },\n "maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },\n "minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "required": { "$ref": "#/definitions/stringArray" },\n "additionalProperties": { "$ref": "#" },\n "definitions": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "properties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "dependencies": {\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/stringArray" }\n ]\n }\n },\n "propertyNames": { "$ref": "#" },\n "const": {},\n "enum": {\n "type": "array",\n "minItems": 1,\n "uniqueItems": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/definitions/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/definitions/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n },\n "format": { "type": "string" },\n "allOf": { "$ref": "#/definitions/schemaArray" },\n "anyOf": { "$ref": "#/definitions/schemaArray" },\n "oneOf": { "$ref": "#/definitions/schemaArray" },\n "not": { "$ref": "#" }\n },\n "default": {}\n}')),yr.defineVocabulary(vr,{validate:lr.validate,additionalItems:lr.additionalItems6,additionalProperties:lr.additionalProperties6,allOf:lr.allOf,anyOf:lr.anyOf,const:lr.const,contains:lr.contains,default:lr.metaData,definitions:lr.definitions,dependencies:lr.dependencies,description:lr.metaData,enum:lr.enum,examples:lr.metaData,exclusiveMaximum:lr.exclusiveMaximum,exclusiveMinimum:lr.exclusiveMinimum,format:lr.metaData,items:lr.items,maxItems:lr.maxItems,maxLength:lr.maxLength6,maxProperties:lr.maxProperties,maximum:lr.maximum,minItems:lr.minItems,minLength:lr.minLength6,minProperties:lr.minProperties,minimum:lr.minimum,multipleOf:lr.multipleOf,not:lr.not,oneOf:lr.oneOf,pattern:lr.pattern,patternProperties:lr.patternProperties,properties:lr.properties,propertyNames:lr.propertyNames,required:lr.required,title:lr.metaData,type:lr.type,uniqueItems:lr.uniqueItems});const{Core:gr,Schema:br}=We,$r="http://json-schema.org/draft-07/schema";br.setConfig($r,"baseToken","$id"),br.setConfig($r,"embeddedToken","$id"),br.setConfig($r,"anchorToken","$id"),br.setConfig($r,"jrefToken","$ref"),br.add(JSON.parse('{\n "$schema": "http://json-schema.org/draft-07/schema#",\n "$id": "http://json-schema.org/draft-07/schema#",\n "title": "Core schema meta-schema",\n "definitions": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$ref": "#" }\n },\n "nonNegativeInteger": {\n "type": "integer",\n "minimum": 0\n },\n "nonNegativeIntegerDefault0": {\n "allOf": [\n { "$ref": "#/definitions/nonNegativeInteger" },\n { "default": 0 }\n ]\n },\n "simpleTypes": {\n "enum": [\n "array",\n "boolean",\n "integer",\n "null",\n "number",\n "object",\n "string"\n ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "uniqueItems": true,\n "default": []\n }\n },\n "type": ["object", "boolean"],\n "properties": {\n "$id": {\n "type": "string",\n "format": "uri-reference"\n },\n "$schema": {\n "type": "string",\n "format": "uri"\n },\n "$ref": {\n "type": "string",\n "format": "uri-reference"\n },\n "$comment": {\n "type": "string"\n },\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": true,\n "readOnly": {\n "type": "boolean",\n "default": false\n },\n "writeOnly": {\n "type": "boolean",\n "default": false\n },\n "examples": {\n "type": "array",\n "items": true\n },\n "multipleOf": {\n "type": "number",\n "exclusiveMinimum": 0\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "number"\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "number"\n },\n "maxLength": { "$ref": "#/definitions/nonNegativeInteger" },\n "minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "additionalItems": { "$ref": "#" },\n "items": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/schemaArray" }\n ],\n "default": true\n },\n "maxItems": { "$ref": "#/definitions/nonNegativeInteger" },\n "minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "contains": { "$ref": "#" },\n "maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },\n "minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "required": { "$ref": "#/definitions/stringArray" },\n "additionalProperties": { "$ref": "#" },\n "definitions": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "properties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "propertyNames": { "format": "regex" },\n "default": {}\n },\n "dependencies": {\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/stringArray" }\n ]\n }\n },\n "propertyNames": { "$ref": "#" },\n "const": true,\n "enum": {\n "type": "array",\n "items": true,\n "minItems": 1,\n "uniqueItems": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/definitions/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/definitions/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n },\n "format": { "type": "string" },\n "contentMediaType": { "type": "string" },\n "contentEncoding": { "type": "string" },\n "if": { "$ref": "#" },\n "then": { "$ref": "#" },\n "else": { "$ref": "#" },\n "allOf": { "$ref": "#/definitions/schemaArray" },\n "anyOf": { "$ref": "#/definitions/schemaArray" },\n "oneOf": { "$ref": "#/definitions/schemaArray" },\n "not": { "$ref": "#" }\n },\n "default": true\n}')),gr.defineVocabulary($r,{validate:lr.validate,additionalItems:lr.additionalItems6,additionalProperties:lr.additionalProperties6,allOf:lr.allOf,anyOf:lr.anyOf,const:lr.const,contains:lr.contains,default:lr.metaData,definitions:lr.definitions,dependencies:lr.dependencies,description:lr.metaData,enum:lr.enum,exclusiveMaximum:lr.exclusiveMaximum,exclusiveMinimum:lr.exclusiveMinimum,format:lr.metaData,if:lr.if,then:lr.then,else:lr.else,items:lr.items,maxItems:lr.maxItems,maxLength:lr.maxLength6,maxProperties:lr.maxProperties,maximum:lr.maximum,minItems:lr.minItems,minLength:lr.minLength6,minProperties:lr.minProperties,minimum:lr.minimum,multipleOf:lr.multipleOf,not:lr.not,oneOf:lr.oneOf,pattern:lr.pattern,patternProperties:lr.patternProperties,properties:lr.properties,propertyNames:lr.propertyNames,readOnly:lr.metaData,required:lr.required,title:lr.metaData,type:lr.type,uniqueItems:lr.uniqueItems,writeOnly:lr.metaData});const{Core:Ir,Schema:Or}=We,Sr="https://json-schema.org/draft/2019-09/schema";Or.setConfig(Sr,"baseToken","$id"),Or.setConfig(Sr,"embeddedToken","$id"),Or.setConfig(Sr,"anchorToken","$anchor"),Or.setConfig(Sr,"recursiveAnchorToken","$recursiveAnchor"),Or.setConfig(Sr,"vocabularyToken","$vocabulary"),Or.setConfig(Sr,"mandatoryVocabularies",["https://json-schema.org/draft/2019-09/vocab/core"]),Or.add(JSON.parse('{\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$id": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/core": true,\n "https://json-schema.org/draft/2019-09/vocab/applicator": true,\n "https://json-schema.org/draft/2019-09/vocab/validation": true,\n "https://json-schema.org/draft/2019-09/vocab/meta-data": true,\n "https://json-schema.org/draft/2019-09/vocab/format": false,\n "https://json-schema.org/draft/2019-09/vocab/content": true\n },\n "$recursiveAnchor": true,\n\n "title": "Core and Validation specifications meta-schema",\n "allOf": [\n {"$ref": "meta/core"},\n {"$ref": "meta/applicator"},\n {"$ref": "meta/validation"},\n {"$ref": "meta/meta-data"},\n {"$ref": "meta/format"},\n {"$ref": "meta/content"}\n ],\n "type": ["object", "boolean"],\n "properties": {\n "definitions": {\n "$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",\n "type": "object",\n "additionalProperties": { "$recursiveRef": "#" },\n "default": {}\n },\n "dependencies": {\n "$comment": "\\"dependencies\\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \\"dependentSchemas\\" and \\"dependentRequired\\"",\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$recursiveRef": "#" },\n { "$ref": "meta/validation#/$defs/stringArray" }\n ]\n }\n }\n }\n}')),Or.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/core",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/core": true\n },\n "$recursiveAnchor": true,\n\n "title": "Core vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "$id": {\n "type": "string",\n "format": "uri-reference",\n "$comment": "Non-empty fragments not allowed.",\n "pattern": "^[^#]*#?$"\n },\n "$schema": {\n "type": "string",\n "format": "uri"\n },\n "$anchor": {\n "type": "string",\n "pattern": "^[A-Za-z][-A-Za-z0-9.:_]*$"\n },\n "$ref": {\n "type": "string",\n "format": "uri-reference"\n },\n "$recursiveRef": {\n "type": "string",\n "format": "uri-reference"\n },\n "$recursiveAnchor": {\n "type": "boolean",\n "default": false\n },\n "$vocabulary": {\n "type": "object",\n "propertyNames": {\n "type": "string",\n "format": "uri"\n },\n "additionalProperties": {\n "type": "boolean"\n }\n },\n "$comment": {\n "type": "string"\n },\n "$defs": {\n "type": "object",\n "additionalProperties": { "$recursiveRef": "#" },\n "default": {}\n }\n }\n}')),Ir.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/core",{validate:lr.validate,$defs:lr.definitions,$recursiveRef:lr.dynamicRef,$ref:lr.ref}),Or.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/applicator",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/applicator": true\n },\n "$recursiveAnchor": true,\n\n "title": "Applicator vocabulary meta-schema",\n "properties": {\n "additionalItems": { "$recursiveRef": "#" },\n "unevaluatedItems": { "$recursiveRef": "#" },\n "items": {\n "anyOf": [\n { "$recursiveRef": "#" },\n { "$ref": "#/$defs/schemaArray" }\n ]\n },\n "contains": { "$recursiveRef": "#" },\n "additionalProperties": { "$recursiveRef": "#" },\n "unevaluatedProperties": { "$recursiveRef": "#" },\n "properties": {\n "type": "object",\n "additionalProperties": { "$recursiveRef": "#" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$recursiveRef": "#" },\n "propertyNames": { "format": "regex" },\n "default": {}\n },\n "dependentSchemas": {\n "type": "object",\n "additionalProperties": {\n "$recursiveRef": "#"\n }\n },\n "propertyNames": { "$recursiveRef": "#" },\n "if": { "$recursiveRef": "#" },\n "then": { "$recursiveRef": "#" },\n "else": { "$recursiveRef": "#" },\n "allOf": { "$ref": "#/$defs/schemaArray" },\n "anyOf": { "$ref": "#/$defs/schemaArray" },\n "oneOf": { "$ref": "#/$defs/schemaArray" },\n "not": { "$recursiveRef": "#" }\n },\n "$defs": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$recursiveRef": "#" }\n }\n }\n}')),Ir.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/applicator",{additionalItems:lr.additionalItems6,additionalProperties:lr.additionalProperties6,allOf:lr.allOf,anyOf:lr.anyOf,contains:lr.containsMinContainsMaxContains,dependentSchemas:lr.dependentSchemas,if:lr.if,then:lr.then,else:lr.else,items:lr.items,not:lr.not,oneOf:lr.oneOf,patternProperties:lr.patternProperties,properties:lr.properties,propertyNames:lr.propertyNames,unevaluatedItems:lr.unevaluatedItems,unevaluatedProperties:lr.unevaluatedProperties}),Or.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/validation",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/validation": true\n },\n "$recursiveAnchor": true,\n\n "title": "Validation vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "multipleOf": {\n "type": "number",\n "exclusiveMinimum": 0\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "number"\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "number"\n },\n "maxLength": { "$ref": "#/$defs/nonNegativeInteger" },\n "minLength": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "maxItems": { "$ref": "#/$defs/nonNegativeInteger" },\n "minItems": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "maxContains": { "$ref": "#/$defs/nonNegativeInteger" },\n "minContains": {\n "$ref": "#/$defs/nonNegativeInteger",\n "default": 1\n },\n "maxProperties": { "$ref": "#/$defs/nonNegativeInteger" },\n "minProperties": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "required": { "$ref": "#/$defs/stringArray" },\n "dependentRequired": {\n "type": "object",\n "additionalProperties": {\n "$ref": "#/$defs/stringArray"\n }\n },\n "const": true,\n "enum": {\n "type": "array",\n "items": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/$defs/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/$defs/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n }\n },\n "$defs": {\n "nonNegativeInteger": {\n "type": "integer",\n "minimum": 0\n },\n "nonNegativeIntegerDefault0": {\n "$ref": "#/$defs/nonNegativeInteger",\n "default": 0\n },\n "simpleTypes": {\n "enum": [\n "array",\n "boolean",\n "integer",\n "null",\n "number",\n "object",\n "string"\n ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "uniqueItems": true,\n "default": []\n }\n }\n}')),Ir.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/validation",{const:lr.const,dependentRequired:lr.dependentRequired,enum:lr.enum,exclusiveMaximum:lr.exclusiveMaximum,exclusiveMinimum:lr.exclusiveMinimum,maxItems:lr.maxItems,maxLength:lr.maxLength6,maxProperties:lr.maxProperties,maximum:lr.maximum,minItems:lr.minItems,minLength:lr.minLength6,minProperties:lr.minProperties,minimum:lr.minimum,multipleOf:lr.multipleOf,pattern:lr.pattern,required:lr.required,type:lr.type,uniqueItems:lr.uniqueItems}),Or.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/meta-data",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/meta-data": true\n },\n "$recursiveAnchor": true,\n\n "title": "Meta-data vocabulary meta-schema",\n\n "type": ["object", "boolean"],\n "properties": {\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": true,\n "deprecated": {\n "type": "boolean",\n "default": false\n },\n "readOnly": {\n "type": "boolean",\n "default": false\n },\n "writeOnly": {\n "type": "boolean",\n "default": false\n },\n "examples": {\n "type": "array",\n "items": true\n }\n }\n}')),Ir.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/meta-data",{default:lr.metaData,deprecated:lr.metaData,description:lr.metaData,examples:lr.metaData,readOnly:lr.metaData,title:lr.metaData,writeOnly:lr.metaData}),Or.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/format",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/format": true\n },\n "$recursiveAnchor": true,\n\n "title": "Format vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "format": { "type": "string" }\n }\n}')),Or.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/content",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/content": true\n },\n "$recursiveAnchor": true,\n\n "title": "Content vocabulary meta-schema",\n\n "type": ["object", "boolean"],\n "properties": {\n "contentMediaType": { "type": "string" },\n "contentEncoding": { "type": "string" },\n "contentSchema": { "$recursiveRef": "#" }\n }\n}')),Ir.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/content",{contentEncoding:lr.metaData,contentMediaType:lr.metaData,contentSchema:lr.metaData});const{Core:jr,Schema:xr}=We,wr="https://json-schema.org/draft/2020-12/schema";xr.setConfig(wr,"baseToken","$id"),xr.setConfig(wr,"embeddedToken","$id"),xr.setConfig(wr,"anchorToken","$anchor"),xr.setConfig(wr,"dynamicAnchorToken","$dynamicAnchor"),xr.setConfig(wr,"vocabularyToken","$vocabulary"),xr.setConfig(wr,"mandatoryVocabularies",["https://json-schema.org/draft/2020-12/vocab/core"]),xr.add(JSON.parse('{\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$id": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/core": true,\n "https://json-schema.org/draft/2020-12/vocab/applicator": true,\n "https://json-schema.org/draft/2020-12/vocab/unevaluated": true,\n "https://json-schema.org/draft/2020-12/vocab/validation": true,\n "https://json-schema.org/draft/2020-12/vocab/meta-data": true,\n "https://json-schema.org/draft/2020-12/vocab/format-annotation": true,\n "https://json-schema.org/draft/2020-12/vocab/content": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Core and Validation specifications meta-schema",\n "allOf": [\n {"$ref": "meta/core"},\n {"$ref": "meta/applicator"},\n {"$ref": "meta/unevaluated"},\n {"$ref": "meta/validation"},\n {"$ref": "meta/meta-data"},\n {"$ref": "meta/format-annotation"},\n {"$ref": "meta/content"}\n ],\n "type": ["object", "boolean"],\n "properties": {\n "definitions": {\n "$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",\n "type": "object",\n "additionalProperties": { "$dynamicRef": "#meta" },\n "default": {}\n },\n "dependencies": {\n "$comment": "\\"dependencies\\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \\"dependentSchemas\\" and \\"dependentRequired\\"",\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$dynamicRef": "#meta" },\n { "$ref": "meta/validation#/$defs/stringArray" }\n ]\n }\n }\n }\n}')),xr.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/core",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/core": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Core vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "$id": {\n "type": "string",\n "format": "uri-reference",\n "$comment": "Non-empty fragments not allowed.",\n "pattern": "^[^#]*#?$"\n },\n "$schema": {\n "type": "string",\n "format": "uri"\n },\n "$anchor": {\n "type": "string",\n "pattern": "^[A-Za-z_][-A-Za-z0-9._]*$"\n },\n "$ref": {\n "type": "string",\n "format": "uri-reference"\n },\n "$dynamicRef": {\n "type": "string",\n "format": "uri-reference"\n },\n "$dynamicAnchor": {\n "type": "string",\n "pattern": "^[A-Za-z_][-A-Za-z0-9._]*$"\n },\n "$vocabulary": {\n "type": "object",\n "propertyNames": {\n "type": "string",\n "format": "uri"\n },\n "additionalProperties": {\n "type": "boolean"\n }\n },\n "$comment": {\n "type": "string"\n },\n "$defs": {\n "type": "object",\n "additionalProperties": { "$dynamicRef": "#meta" },\n "default": {}\n }\n }\n}')),jr.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/core",{validate:lr.validate,$defs:lr.definitions,$dynamicRef:lr.dynamicRef,$ref:lr.ref}),xr.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/applicator",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/applicator": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Applicator vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "prefixItems": { "$ref": "#/$defs/schemaArray" },\n "items": { "$dynamicRef": "#meta" },\n "contains": { "$dynamicRef": "#meta" },\n "additionalProperties": { "$dynamicRef": "#meta" },\n "properties": {\n "type": "object",\n "additionalProperties": { "$dynamicRef": "#meta" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$dynamicRef": "#meta" },\n "propertyNames": { "format": "regex" },\n "default": {}\n },\n "dependentSchemas": {\n "type": "object",\n "additionalProperties": {\n "$dynamicRef": "#meta"\n }\n },\n "propertyNames": { "$dynamicRef": "#meta" },\n "if": { "$dynamicRef": "#meta" },\n "then": { "$dynamicRef": "#meta" },\n "else": { "$dynamicRef": "#meta" },\n "allOf": { "$ref": "#/$defs/schemaArray" },\n "anyOf": { "$ref": "#/$defs/schemaArray" },\n "oneOf": { "$ref": "#/$defs/schemaArray" },\n "not": { "$dynamicRef": "#meta" }\n },\n "$defs": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$dynamicRef": "#meta" }\n }\n }\n}')),jr.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/applicator",{additionalProperties:lr.additionalProperties6,allOf:lr.allOf,anyOf:lr.anyOf,contains:lr.containsMinContainsMaxContains,dependentSchemas:lr.dependentSchemas,if:lr.if,then:lr.then,else:lr.else,items:lr.items202012,not:lr.not,oneOf:lr.oneOf,patternProperties:lr.patternProperties,prefixItems:lr.tupleItems,properties:lr.properties,propertyNames:lr.propertyNames}),xr.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/validation",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/validation": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Validation vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "multipleOf": {\n "type": "number",\n "exclusiveMinimum": 0\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "number"\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "number"\n },\n "maxLength": { "$ref": "#/$defs/nonNegativeInteger" },\n "minLength": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "maxItems": { "$ref": "#/$defs/nonNegativeInteger" },\n "minItems": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "maxContains": { "$ref": "#/$defs/nonNegativeInteger" },\n "minContains": {\n "$ref": "#/$defs/nonNegativeInteger",\n "default": 1\n },\n "maxProperties": { "$ref": "#/$defs/nonNegativeInteger" },\n "minProperties": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "required": { "$ref": "#/$defs/stringArray" },\n "dependentRequired": {\n "type": "object",\n "additionalProperties": {\n "$ref": "#/$defs/stringArray"\n }\n },\n "const": true,\n "enum": {\n "type": "array",\n "items": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/$defs/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/$defs/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n }\n },\n "$defs": {\n "nonNegativeInteger": {\n "type": "integer",\n "minimum": 0\n },\n "nonNegativeIntegerDefault0": {\n "$ref": "#/$defs/nonNegativeInteger",\n "default": 0\n },\n "simpleTypes": {\n "enum": [\n "array",\n "boolean",\n "integer",\n "null",\n "number",\n "object",\n "string"\n ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "uniqueItems": true,\n "default": []\n }\n }\n}')),jr.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/validation",{const:lr.const,dependentRequired:lr.dependentRequired,enum:lr.enum,exclusiveMaximum:lr.exclusiveMaximum,exclusiveMinimum:lr.exclusiveMinimum,maxItems:lr.maxItems,maxLength:lr.maxLength6,maxProperties:lr.maxProperties,maximum:lr.maximum,minItems:lr.minItems,minLength:lr.minLength6,minProperties:lr.minProperties,minimum:lr.minimum,multipleOf:lr.multipleOf,pattern:lr.pattern,required:lr.required,type:lr.type,uniqueItems:lr.uniqueItems}),xr.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/meta-data",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/meta-data": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Meta-data vocabulary meta-schema",\n\n "type": ["object", "boolean"],\n "properties": {\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": true,\n "deprecated": {\n "type": "boolean",\n "default": false\n },\n "readOnly": {\n "type": "boolean",\n "default": false\n },\n "writeOnly": {\n "type": "boolean",\n "default": false\n },\n "examples": {\n "type": "array",\n "items": true\n }\n }\n}')),jr.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/meta-data",{default:lr.metaData,deprecated:lr.metaData,description:lr.metaData,examples:lr.metaData,readOnly:lr.metaData,title:lr.metaData,writeOnly:lr.metaData}),xr.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/format-annotation",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/format-annotation": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Format vocabulary meta-schema for annotation results",\n "type": ["object", "boolean"],\n "properties": {\n "format": { "type": "string" }\n }\n}')),jr.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/format-annotation",{format:lr.metaData}),xr.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/format-assertion",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/format-assertion": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Format vocabulary meta-schema for assertion results",\n "type": ["object", "boolean"],\n "properties": {\n "format": { "type": "string" }\n }\n}')),xr.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/content",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/content": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Content vocabulary meta-schema",\n\n "type": ["object", "boolean"],\n "properties": {\n "contentMediaType": { "type": "string" },\n "contentEncoding": { "type": "string" },\n "contentSchema": { "$dynamicRef": "#meta" }\n }\n}')),jr.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/content",{contentEncoding:lr.metaData,contentMediaType:lr.metaData,contentSchema:lr.metaData}),xr.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/unevaluated",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/unevaluated": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Unevaluated applicator vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "unevaluatedItems": { "$dynamicRef": "#meta" },\n "unevaluatedProperties": { "$dynamicRef": "#meta" }\n }\n}')),jr.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/unevaluated",{unevaluatedItems:lr.unevaluatedItems,unevaluatedProperties:lr.unevaluatedProperties});const{Core:Pr,Schema:Er,InvalidSchemaError:Ar}=We;var Cr={add:Pr.add,get:Er.get,validate:Pr.validate,compile:Pr.compile,interpret:Pr.interpret,setMetaOutputFormat:Pr.setMetaOutputFormat,setShouldMetaValidate:Pr.setShouldMetaValidate,FLAG:Pr.FLAG,BASIC:Pr.BASIC,DETAILED:Pr.DETAILED,VERBOSE:Pr.VERBOSE,Keywords:lr,InvalidSchemaError:Ar},Nr=Cr.add,Rr=Cr.get,Tr=Cr.validate,Dr=Cr.compile,Mr=Cr.interpret,kr=Cr.setMetaOutputFormat,qr=Cr.setShouldMetaValidate,Lr=Cr.FLAG,Vr=Cr.BASIC,Jr=Cr.DETAILED,Ur=Cr.VERBOSE,zr=Cr.Keywords,_r=Cr.InvalidSchemaError;export{Vr as BASIC,Jr as DETAILED,Lr as FLAG,_r as InvalidSchemaError,zr as Keywords,Ur as VERBOSE,Nr as add,Dr as compile,Cr as default,Rr as get,Mr as interpret,kr as setMetaOutputFormat,qr as setShouldMetaValidate,Tr as validate};
1
+ var e=function(e,n){return function t(){null==n&&(n=e.length);var r=[].slice.call(arguments);return r.length>=n?e.apply(this,r):function(){return t.apply(this,r.concat([].slice.call(arguments)))}}};var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var t=function(e,n){return e(n={exports:{}},n.exports),n.exports}((function(e,t){var r,a;r="object"==typeof window&&window||n,a={},r.PubSub?(a=r.PubSub,console.warn("PubSub already loaded, using existing version")):(r.PubSub=a,function(e){var n={},t=-1;function r(e,n,t){try{e(n,t)}catch(e){setTimeout(function(e){return function(){throw e}}(e),0)}}function a(e,n,t){e(n,t)}function i(e,t,i,o){var s,c=n[t],m=o?a:r;if(Object.prototype.hasOwnProperty.call(n,t))for(s in c)Object.prototype.hasOwnProperty.call(c,s)&&m(c[s],e,i)}function o(e){var t=String(e);return Boolean(Object.prototype.hasOwnProperty.call(n,t)&&function(e){var n;for(n in e)if(Object.prototype.hasOwnProperty.call(e,n))return!0;return!1}(n[t]))}function s(e,n,t,r){var a=function(e,n,t){return function(){var r=String(e),a=r.lastIndexOf(".");for(i(e,e,n,t);-1!==a;)a=(r=r.substr(0,a)).lastIndexOf("."),i(e,r,n,t);i(e,"*",n,t)}}(e="symbol"==typeof e?e.toString():e,n,r);return!!function(e){for(var n=String(e),t=o(n)||o("*"),r=n.lastIndexOf(".");!t&&-1!==r;)r=(n=n.substr(0,r)).lastIndexOf("."),t=o(n);return t}(e)&&(!0===t?a():setTimeout(a,0),!0)}e.publish=function(n,t){return s(n,t,!1,e.immediateExceptions)},e.publishSync=function(n,t){return s(n,t,!0,e.immediateExceptions)},e.subscribe=function(e,r){if("function"!=typeof r)return!1;e="symbol"==typeof e?e.toString():e,Object.prototype.hasOwnProperty.call(n,e)||(n[e]={});var a="uid_"+String(++t);return n[e][a]=r,a},e.subscribeAll=function(n){return e.subscribe("*",n)},e.subscribeOnce=function(n,t){var r=e.subscribe(n,(function(){e.unsubscribe(r),t.apply(this,arguments)}));return e},e.clearAllSubscriptions=function(){n={}},e.clearSubscriptions=function(e){var t;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&0===t.indexOf(e)&&delete n[t]},e.countSubscriptions=function(e){var t,r,a=0;for(t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&0===t.indexOf(e)){for(r in n[t])a++;break}return a},e.getSubscriptions=function(e){var t,r=[];for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&0===t.indexOf(e)&&r.push(t);return r},e.unsubscribe=function(t){var r,a,i,o="string"==typeof t&&(Object.prototype.hasOwnProperty.call(n,t)||function(e){var t;for(t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&0===t.indexOf(e))return!0;return!1}(t)),s=!o&&"string"==typeof t,c="function"==typeof t,m=!1;if(!o){for(r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(a=n[r],s&&a[t]){delete a[t],m=t;break}if(c)for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&a[i]===t&&(delete a[i],m=!0)}return m}e.clearSubscriptions(t)}}(a)),void 0!==e&&e.exports&&(t=e.exports=a),t.PubSub=a,e.exports=t=a}));t.PubSub;var r=function(e,n){if(e=e.trim(),(n=n.trim()).startsWith("about:"))return n;const t=function(e){const n={host:"",path:"",query:"",protocol:""};let t=e,r=e.indexOf("//");n.protocol=t.substring(0,r),r+=2;const a=e.indexOf("/",r),i=e.indexOf("?"),o=e.indexOf("#");-1!==o&&(t=t.substring(0,o));if(-1!==i){const e=t.substring(i);n.query=e,t=t.substring(0,i)}if(-1!==a){const e=t.substring(0,a);n.host=e,t=t.substring(a),n.path=t}else n.host=t;return n}(e),r=function(e){const n={href:e,hash:"",query:"",netPath:!1,absolutePath:!1,relativePath:!1};if(o.test(e))return n.netPath=!0,n;"/"===e[0]?n.absolutePath=!0:""!==e&&(n.relativePath=!0);let t=e;const r=e.indexOf("?"),a=e.indexOf("#");if(-1!==a){const e=t.substring(a);n.hash=e,t=t.substring(0,a)}if(-1!==r){const e=t.substring(r);n.query=e,t=t.substring(0,r)}return n.path=t,n}(n);if(!t.protocol&&!r.netPath)throw new Error("Error, protocol is not specified");if(r.netPath)return r.href.startsWith("//")&&(r.href=t.protocol+r.href),function(e){const n=e.indexOf("//")+2,t=!e.includes("/",n),r=!e.includes("?",n),a=!e.includes("#",n);return t&&r&&a}(r.href)?a(r.href):r.href;if(r.absolutePath){const{path:e,query:n,hash:a}=r;return t.host+i(e)+n+a}if(r.relativePath){const{path:e,query:n,hash:a}=r;let o,s=t.path,c=t.host;return 0===e.length?o=s:(s=s.substring(0,s.lastIndexOf("/")),o=i(s+"/"+e)),c+=""!==o||n||a?o+n+a:"/",c}{const{host:e,path:n,query:i}=t;return n||i?e+n+i+r.hash:a(e)}};function a(e){return e+("/"===e[e.length-1]?"":"/")}function i(e){let n=e.split("/");""===n[0]&&(n=n.slice(1));let t=[];return n.forEach((e,r)=>{"."!==e&&(".."===e?t.pop():""===e&&r!==n.length-1||t.push(e))}),"/"+t.join("/")}const o=new RegExp("^([a-z][a-z0-9+.-]*:)?//","i");const s={null:e=>null===e,boolean:e=>"boolean"==typeof e,object:e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,array:e=>Array.isArray(e),number:e=>"number"==typeof e,integer:e=>Number.isInteger(e),string:e=>"string"==typeof e},c=e=>{const n=e.indexOf("#"),t=-1===n?e.length:n,r=e.slice(0,t),a=e.slice(t+1);return[decodeURI(r),decodeURI(a)]},m=e=>{const n=RegExp(/^(.+):\/\//).exec(e);return n?n[1]:""};var l={jsonTypeOf:(e,n)=>s[n](e),splitUrl:c,safeResolveUrl:(e,n)=>{const t=r(e,n),a=c(e)[0];if(a&&"file"===m(t)&&"file"!==m(a))throw Error(`Can't access file '${t}' resource from network context '${e}'`);return t},pathRelative:(e,n)=>{if(e===n)return"";let t=1;const r=e.length-1,a=n.length-t,i=r<a?r:a;let o=-1,s=0;for(;s<i;s++){const r=e.charCodeAt(s+1);if(r!==n.charCodeAt(t+s))break;47===r&&(o=s)}if(a>i){if(47===n.charCodeAt(t+s))return n.slice(t+s+1);if(0===s)return n.slice(t+s)}r>i&&(47===e.charCodeAt(s+1)?o=s:0===i&&(o=0));let c="";for(s=o+2;s<=e.length;++s)s!==e.length&&47!==e.charCodeAt(s)||(c+=0===c.length?"..":"/..");return t+=o,c.length>0?`${c}${n.slice(t,n.length)}`:(47===n.charCodeAt(t)&&++t,n.slice(t,n.length))}};const p=e=>{if(e.length>0&&"/"!==e[0])throw Error("Invalid JSON Pointer");return e.split("/").slice(1).map(g)},u=(e,n,t,r)=>{if(0===e.length)return t;if(e.length>1){const a=e.shift();return{...n,[a]:u(e,$(n,a,r),t,h(a,r))}}if(Array.isArray(n)){const r=[...n];return r[b(n,e[0])]=t,r}return"object"==typeof n&&null!==n?{...n,[e[0]]:t}:$(n,e[0],r)},d=(e,n,t,r)=>{if(0!==e.length)if(1!==e.length||I(n)){const a=e.shift();d(e,$(n,a,r),t,h(a,r))}else{n[b(n,e[0])]=t}},f=(e,n,t)=>{if(0!=e.length){if(e.length>1){const r=e.shift(),a=$(n,r,t);return{...n,[r]:f(e,a,h(r,t))}}if(Array.isArray(n))return n.filter((n,t)=>t!=e[0]);if("object"==typeof n&&null!==n){const{[e[0]]:t,...r}=n;return r}return $(n,e[0],t)}},y=(e,n,t)=>{if(0!==e.length)if(e.length>1){const r=e.shift(),a=$(n,r,t);y(e,a,h(r,t))}else Array.isArray(n)?n.splice(e[0],1):"object"==typeof n&&null!==n?delete n[e[0]]:$(n,e[0],t)},h=e((e,n)=>n+"/"+v(e)),v=e=>e.toString().replace(/~/g,"~0").replace(/\//g,"~1"),g=e=>e.toString().replace(/~1/g,"/").replace(/~0/g,"~"),b=(e,n)=>Array.isArray(e)&&"-"===n?e.length:n,$=(e,n,t="")=>{if(void 0===e)throw TypeError(`Value at '${t}' is undefined and does not have property '${n}'`);if(null===e)throw TypeError(`Value at '${t}' is null and does not have property '${n}'`);if(I(e))throw TypeError(`Value at '${t}' is a ${typeof e} and does not have property '${n}'`);return e[b(e,n)]},I=e=>null===e||"object"!=typeof e;var O={nil:"",append:h,get:(e,n)=>{const t=p(e),r=e=>t.reduce(([e,n],t)=>[$(e,t,n),h(t,n)],[e,""])[0];return void 0===n?r:r(n)},set:(n,t,r)=>{const a=p(n),i=e((e,n)=>u(a,e,n,""));return void 0===t?i:i(t,r)},assign:(n,t,r)=>{const a=p(n),i=e((e,n)=>d(a,e,n,""));return void 0===t?i:i(t,r)},unset:(e,n)=>{const t=p(e),r=e=>f(t,e,"");return void 0===n?r:r(n)},remove:(e,n)=>{const t=p(e),r=e=>y(t,e,"");return void 0===n?r:r(n)}};O.nil,O.append,O.get,O.set,O.assign,O.unset,O.remove;const S=Symbol("$__value"),j=Symbol("$__href");var x={cons:(e,n)=>Object.freeze({[j]:e,[S]:n}),isReference:e=>e&&void 0!==e[j],href:e=>e[j],value:e=>e[S]};const{jsonTypeOf:w}=l,P=Object.freeze({id:"",pointer:"",instance:void 0,value:void 0}),E=e=>x.isReference(e.value)?x.value(e.value):e.value,A=e((e,n)=>w(E(e),n)),C=(e,n)=>Object.freeze({...n,pointer:O.append(e,n.pointer),value:E(n)[e]}),N=e((e,n)=>E(n).map((t,r,a,i)=>e(C(r,n),r,a,i))),R=e((e,n)=>E(n).map((e,t,r,a)=>C(t,n)).filter((n,t,r,a)=>e(n,t,r,a))),T=e((e,n,t)=>E(t).reduce((n,r,a)=>e(n,C(a,t),a),n)),D=e((e,n)=>E(n).every((t,r,a,i)=>e(C(r,n),r,a,i))),k=e((e,n)=>E(n).some((t,r,a,i)=>e(C(r,n),r,a,i)));var M={nil:P,cons:(e,n="")=>Object.freeze({...P,id:n,instance:e,value:e}),uri:e=>`${e.id}#${encodeURI(e.pointer)}`,value:E,has:(e,n)=>e in E(n),typeOf:A,step:C,entries:e=>Object.keys(E(e)).map(n=>[n,C(n,e)]),keys:e=>Object.keys(E(e)),map:N,filter:R,reduce:T,every:D,some:k,length:e=>E(e).length},q=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,V=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,L=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,J=/\\([\u000b\u0020-\u00ff])/g,U=/([\\"])/g,z=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function _(e){var n=String(e);if(L.test(n))return n;if(n.length>0&&!V.test(n))throw new TypeError("invalid parameter value");return'"'+n.replace(U,"\\$1")+'"'}function F(e){this.parameters=Object.create(null),this.type=e}var K={format:function(e){if(!e||"object"!=typeof e)throw new TypeError("argument obj is required");var n=e.parameters,t=e.type;if(!t||!z.test(t))throw new TypeError("invalid type");var r=t;if(n&&"object"==typeof n)for(var a,i=Object.keys(n).sort(),o=0;o<i.length;o++){if(a=i[o],!L.test(a))throw new TypeError("invalid parameter name");r+="; "+a+"="+_(n[a])}return r},parse:function(e){if(!e)throw new TypeError("argument string is required");var n="object"==typeof e?function(e){var n;"function"==typeof e.getHeader?n=e.getHeader("content-type"):"object"==typeof e.headers&&(n=e.headers&&e.headers["content-type"]);if("string"!=typeof n)throw new TypeError("content-type header is missing from object");return n}(e):e;if("string"!=typeof n)throw new TypeError("argument string is required to be a string");var t=n.indexOf(";"),r=-1!==t?n.substr(0,t).trim():n.trim();if(!z.test(r))throw new TypeError("invalid media type");var a=new F(r.toLowerCase());if(-1!==t){var i,o,s;for(q.lastIndex=t;o=q.exec(n);){if(o.index!==t)throw new TypeError("invalid parameter format");t+=o[0].length,i=o[1].toLowerCase(),'"'===(s=o[2])[0]&&(s=s.substr(1,s.length-2).replace(J,"$1")),a.parameters[i]=s}if(t!==n.length)throw new TypeError("invalid parameter format")}return a}},B=async e=>Object.entries(await e),Z=e(async(e,n)=>(await n).map(e)),G=e(async(e,n,t)=>(await t).reduce(async(n,t)=>e(await n,t),n)),W=e(async(e,n,t={})=>G(async(n,t)=>await e(t)?n.concat([t]):n,[],n,t)),X=e(async(e,n)=>{const t=await Z(e,n);return(await Promise.all(t)).some(e=>e)}),H=e(async(e,n)=>{const t=await Z(e,n);return(await Promise.all(t)).every(e=>e)}),Q=e((e,n)=>e.reduce(async(e,n)=>n(await e),n)),Y={entries:B,map:Z,filter:W,reduce:G,some:X,every:H,pipeline:Q,all:e=>Promise.all(e),allValues:e=>Q([B,G(async(e,[n,t])=>(e[n]=await t,e),{})],e)};Y.entries,Y.map,Y.filter,Y.reduce,Y.some,Y.every,Y.pipeline,Y.all,Y.allValues;var ee=fetch;const{jsonTypeOf:ne,splitUrl:te,safeResolveUrl:re,pathRelative:ae}=l,ie={},oe={},se=(e,n)=>{const t=e in oe?oe[e]:e;if(t in ie)return ie[t][n]},ce={},me={},le=(e,n="",t="")=>{e=JSON.parse(JSON.stringify(e));const r=te(e.$schema||t)[0];if(!r)throw Error("Couldn't determine schema version");delete e.$schema;const a=se(r,"baseToken"),i=se(r,"anchorToken"),o=te(n)[0];if(!o&&!te(e[a]||"")[0])throw Error("Couldn't determine an identifier for the schema");const s=re(o,e[a]||""),[c,m]=te(s);delete e[a],m&&a===i&&(e[i]=i!==a?encodeURI(m):"#"+encodeURI(m)),o&&(me[o]=c);const l={},p=se(r,"recursiveAnchorToken");let u;!0===e[p]&&(l[""]=c+"#",e[i]="",delete e[p]);const d=se(r,"vocabularyToken");ne(e[d],"object")?(oe[c]=r,u=e[d],delete e[d]):(oe[c]=r,u={[r]:!0});const f={"":""};return ce[c]={id:c,schemaVersion:r,schema:pe(e,c,r,O.nil,f,l),anchors:f,dynamicAnchors:l,vocabulary:u,validated:!1},c},pe=(e,n,t,r,a,i)=>{if(ne(e,"object")){const o="string"==typeof e.$schema?te(e.$schema)[0]:t,s=se(o,"embeddedToken"),c=se(o,"anchorToken");if("string"==typeof e[s]&&(s!==c||"#"!==e[s][0])){const r=re(n,e[s]);return e[s]=r,le(e,r,t),x.cons(e[s],e)}const m=se(t,"anchorToken"),l=se(t,"dynamicAnchorToken");"string"==typeof e[l]&&(i[e[l]]=`${n}#${encodeURI(r)}`,a[e[l]]=r,delete e[l]);const p=se(t,"embeddedToken");if("string"==typeof e[m]){const n=m!==p?e[m]:e[m].slice(1);a[n]=r,delete e[m]}const u=se(t,"jrefToken");if("string"==typeof e[u])return x.cons(e[u],e);for(const o in e)e[o]=pe(e[o],n,t,O.append(o,r),a,i);return e}return Array.isArray(e)?e.map((e,o)=>pe(e,n,t,O.append(o,r),a,i)):e},ue=e=>ce[me[e]]||ce[e],de=Object.freeze({id:"",schemaVersion:void 0,vocabulary:{},pointer:O.nil,schema:void 0,value:void 0,anchors:{},dynamicAnchors:{},validated:!0}),fe=async(e,n=de)=>{const t=re(ve(n),e),[r,a]=te(t);if(!(e=>e in ce||e in me)(r)){const e=await ee(r,{headers:{Accept:"application/schema+json"}});if(e.status>=400)throw await e.text(),Error("Failed to retrieve schema with id: "+r);if(e.headers.has("content-type")){const n=K.parse(e.headers.get("content-type")).type;if("application/schema+json"!==n)throw Error(`${r} is not a schema. Found a document with media type: ${n}`)}le(await e.json(),r)}const i=ue(r),o="/"!==a[0]?he(i,a):a,s=Object.freeze({...i,pointer:o,value:O.get(o,i.schema)});return ye(s)},ye=e=>x.isReference(e.value)?fe(x.href(e.value),e):e,he=(e,n)=>{if(!(n in e.anchors))throw Error(`No such anchor '${encodeURI(e.id)}#${encodeURI(n)}'`);return e.anchors[n]},ve=e=>`${e.id}#${encodeURI(e.pointer)}`,ge=e=>x.isReference(e.value)?x.value(e.value):e.value,be=(e,n)=>{const t=ue(n.id),r=Object.freeze({...n,pointer:O.append(e,n.pointer),value:ge(n)[e],validated:t.validated});return ye(r)},$e=e((e,n)=>Y.pipeline([ge,Y.map(async(t,r)=>e(await be(r,n),r)),Y.all],n)),Ie={parentId:"",parentDialect:"",includeEmbedded:!0},Oe=(e,n)=>{if(n.startsWith("file://")){const t=e.slice(7,e.lastIndexOf("/"));return""===e?"":ae(t,n.slice(7))}return n};var Se={setConfig:(e,n,t)=>{ie[e]||(ie[e]={}),ie[e][n]=t},getConfig:se,add:le,get:fe,markValidated:e=>{ce[e].validated=!0},uri:ve,value:ge,getAnchorPointer:he,typeOf:(e,n)=>ne(ge(e),n),has:(e,n)=>e in ge(n),step:be,keys:e=>Object.keys(ge(e)),entries:e=>Y.pipeline([ge,Object.keys,Y.map(async n=>[n,await be(n,e)]),Y.all],e),map:$e,length:e=>ge(e).length,toSchema:(e,n={})=>{const t={...Ie,...n},r=JSON.parse(JSON.stringify(e.schema,(n,r)=>{if(!x.isReference(r))return r;const a=x.value(r),i=a.$schema||e.schemaVersion,o=se(i,"embeddedToken");return!t.includeEmbedded&&o in a?void 0:x.value(r)})),a=se(e.schemaVersion,"dynamicAnchorToken");Object.entries(e.dynamicAnchors).forEach(([e,n])=>{const t=te(n)[1];O.assign(t,r,{[a]:e,...O.get(t,r)})});const i=se(e.schemaVersion,"anchorToken");Object.entries(e.anchors).filter(([e])=>""!==e).forEach(([e,n])=>{O.assign(n,r,{[i]:e,...O.get(n,r)})});const o=se(e.schemaVersion,"baseToken"),s=Oe(t.parentId,e.id),c=t.parentDialect===e.schemaVersion?"":e.schemaVersion;return{...s&&{[o]:s},...c&&{$schema:c},...r}}};Se.setConfig,Se.getConfig,Se.add,Se.get,Se.markValidated,Se.uri,Se.value,Se.getAnchorPointer,Se.typeOf,Se.has,Se.step,Se.keys,Se.entries,Se.map,Se.length,Se.toSchema;class je extends Error{constructor(e){super("Invalid Schema"),this.name=this.constructor.name,this.output=e}}var xe=je;const{splitUrl:we}=l,Pe="FLAG",Ee="BASIC",Ae="DETAILED",Ce="VERBOSE";let Ne=Ae,Re=!0;const Te=async e=>{const n={metaData:{}};return{ast:n,schemaUri:await Ue(e,n)}},De=e(({ast:e,schemaUri:n},r,a=Pe)=>{if(![Pe,Ee,Ae,Ce].includes(a))throw Error(`The '${a}' error format is not supported`);const i=[],o=t.subscribe("result",ke(a,i));return _e(n,r,e,{}),t.unsubscribe(o),i[0]}),ke=(e,n)=>{const t=[];return(r,a)=>{if("result"===r){const{keyword:e,absoluteKeywordLocation:n,instanceLocation:r,valid:i}=a,o={keyword:e,absoluteKeywordLocation:n,instanceLocation:r,valid:i,errors:[]};t.push(o)}else if("result.start"===r)t.push(r);else if("result.end"===r){const r=t.pop();for(;"result.start"!==t[t.length-1];){const n=t.pop(),a=[n];e===Ee&&(a.push(...n.errors),delete n.errors),(e===Ce||e!==Pe&&!n.valid)&&r.errors.unshift(...a)}t[t.length-1]=r,n[0]=r}}},Me={},qe=e=>Me[e],Ve=e=>e in Me,Le={},Je={},Ue=async(e,n)=>{if(e=await ze(e),!Ve(e.schemaVersion+"#validate")){const n=await Se.get(e.schemaVersion);(Se.getConfig(n.id,"mandatoryVocabularies")||[]).forEach(e=>{if(!n.vocabulary[e])throw Error(`Vocabulary '${e}' must be explicitly declared and required`)}),Object.entries(n.vocabulary).forEach(([e,t])=>{if(e in Le)Object.entries(Le[e]).forEach(([e,t])=>{((e,n)=>{Me[e]={collectEvaluatedItems:(e,t,r,a,i)=>n.interpret(e,t,r,a,i)&&new Set,collectEvaluatedProperties:(e,t,r,a,i)=>n.interpret(e,t,r,a,i)&&[],...n}})(`${n.id}#${e}`,t)});else if(t)throw Error("Missing required vocabulary: "+e)})}if(Re&&!e.validated){if(Se.markValidated(e.id),!(e.schemaVersion in Je)){const n=await Se.get(e.schemaVersion),t=await Te(n);Je[n.id]=De(t)}const n=M.cons(e.schema,e.id),t=Je[e.schemaVersion](n,Ne);if(!t.valid)throw new xe(t)}return e.id in n.metaData||(n.metaData[e.id]={id:e.id,dynamicAnchors:e.dynamicAnchors,anchors:e.anchors}),qe(e.schemaVersion+"#validate").compile(e,n)},ze=async e=>Se.typeOf(e,"string")?ze(await Se.get(Se.value(e),e)):e,_e=(e,n,t,r)=>{const a=Fe(e,t),i=we(e)[0];return qe(a).interpret(e,n,t,{...t.metaData[i].dynamicAnchors,...r})},Fe=(e,n)=>{if(!(e in n))throw Error("No schema found at "+e);return n[e][0]};var Ke={validate:async(e,n,t)=>{const r=await Te(e),a=(e,n)=>De(r,M.cons(e),n);return void 0===n?a:a(n,t)},compile:Te,interpret:De,setMetaOutputFormat:e=>{Ne=e},setShouldMetaValidate:e=>{Re=e},FLAG:Pe,BASIC:Ee,DETAILED:Ae,VERBOSE:Ce,add:(e,n="",t="")=>{const r=Se.add(e,n,t);delete Je[r]},getKeyword:qe,hasKeyword:Ve,defineVocabulary:(e,n)=>{Le[e]=n},compileSchema:Ue,interpretSchema:_e,collectEvaluatedProperties:(e,n,t,r,a)=>{const i=Fe(e,t);return qe(i).collectEvaluatedProperties(e,n,t,r,a)},collectEvaluatedItems:(e,n,t,r,a)=>{const i=Fe(e,t);return qe(i).collectEvaluatedItems(e,n,t,r,a)}};var Be={compile:e=>Se.value(e),interpret:()=>!0};var Ze={compile:async(e,n)=>{const t=Se.uri(e);if(!(t in n)){n[t]=!1;const r=Se.value(e);if(!["object","boolean"].includes(typeof r))throw Error(`No schema found at '${Se.uri(e)}'`);n[t]=[e.schemaVersion+"#validate",Se.uri(e),"boolean"==typeof r?r:await Y.pipeline([Se.entries,Y.map(([n,t])=>[`${e.schemaVersion}#${n}`,t]),Y.filter(([n])=>Ke.hasKeyword(n)&&n!==e.schemaVersion+"#validate"),Y.map(async([t,r])=>{const a=await Ke.getKeyword(t).compile(r,n,e);return[t,Se.uri(r),a]}),Y.all],e)]}return t},interpret:(e,n,r,a)=>{const[i,o,s]=r[e];t.publishSync("result.start");const c="boolean"==typeof s?s:s.every(([e,i,o])=>{t.publishSync("result.start");const s=Ke.getKeyword(e).interpret(o,n,r,a);return t.publishSync("result",{keyword:e,absoluteKeywordLocation:i,instanceLocation:M.uri(n),valid:s,ast:o}),t.publishSync("result.end"),s});return t.publishSync("result",{keyword:i,absoluteKeywordLocation:o,instanceLocation:M.uri(n),valid:c,ast:e}),t.publishSync("result.end"),c},collectEvaluatedProperties:(e,n,t,r,a=!1)=>{const i=t[e][2];return"boolean"==typeof i?!!i&&[]:i.filter(([e])=>!a||!e.endsWith("#unevaluatedProperties")).reduce((e,[a,,i])=>{const o=e&&Ke.getKeyword(a).collectEvaluatedProperties(i,n,t,r);return!1!==o&&[...e,...o]},[])},collectEvaluatedItems:(e,n,t,r,a=!1)=>{const i=t[e][2];return"boolean"==typeof i?!!i&&new Set:i.filter(([e])=>!a||!e.endsWith("#unevaluatedItems")).reduce((e,[a,,i])=>{const o=!1!==e&&Ke.getKeyword(a).collectEvaluatedItems(i,n,t,r);return!1!==o&&new Set([...e,...o])},new Set)}},Ge={metaData:Be,validate:Ze},We={Core:Ke,Schema:Se,Instance:M,Reference:x,Keywords:Ge,InvalidSchemaError:xe};const{Core:Xe,Schema:He,Instance:Qe}=We;var Ye={compile:async(e,n,t)=>{const r=await He.step("items",t),a=He.typeOf(r,"array")?He.length(r):Number.MAX_SAFE_INTEGER;return He.typeOf(e,"boolean")?[a,He.value(e)]:[a,await Xe.compileSchema(e,n)]},interpret:([e,n],t,r,a)=>!Qe.typeOf(t,"array")||("string"==typeof n?Qe.every((t,i)=>i<e||Xe.interpretSchema(n,t,r,a),t):Qe.every((t,r)=>r<e||n,t))};const{Core:en,Schema:nn,Instance:tn}=We,rn=([e,n],t,r,a)=>!tn.typeOf(t,"array")||tn.every((t,i)=>i<e||en.interpretSchema(n,t,r,a),t);var an={compile:async(e,n,t)=>{const r=await nn.step("items",t);return[nn.typeOf(r,"array")?nn.length(r):Number.MAX_SAFE_INTEGER,await en.compileSchema(e,n)]},interpret:rn,collectEvaluatedItems:(e,n,t,r)=>rn(e,n,t,r)&&new Set(tn.map((e,n)=>n,n))};const{Core:on,Schema:sn,Instance:cn}=We;var mn={compile:async(e,n,t)=>{const r=await sn.step("properties",t),a=sn.typeOf(r,"object")?sn.keys(r):[],i=await sn.step("patternProperties",t),o=sn.typeOf(i,"object")?sn.keys(i).map(e=>new RegExp(e)):[];return sn.typeOf(e,"boolean")?[a,o,sn.value(e)]:[a,o,await on.compileSchema(e,n)]},interpret:([e,n,t],r,a,i)=>{if(!cn.typeOf(r,"object"))return!0;const o=cn.entries(r).filter(([t])=>!e.includes(t)&&!n.some(e=>e.test(t)));return"string"==typeof t?o.every(([,e])=>on.interpretSchema(t,e,a,i)):0===o.length||t}};const{Core:ln,Schema:pn,Instance:un}=We,dn=([e,n,t],r,a,i)=>!un.typeOf(r,"object")||un.entries(r).filter(([t])=>!e.includes(t)&&!n.some(e=>e.test(t))).every(([,e])=>ln.interpretSchema(t,e,a,i));var fn={compile:async(e,n,t)=>{const r=await pn.step("properties",t),a=pn.typeOf(r,"object")?pn.keys(r):[],i=await pn.step("patternProperties",t);return[a,pn.typeOf(i,"object")?pn.keys(i).map(e=>new RegExp(e)):[],await ln.compileSchema(e,n)]},interpret:dn,collectEvaluatedProperties:(e,n,t,r)=>dn(e,n,t,r)&&[new RegExp("")]};const{Core:yn,Schema:hn}=We;var vn={compile:(e,n)=>Y.pipeline([hn.map(async e=>yn.compileSchema(await e,n)),Y.all],e),interpret:(e,n,t,r)=>e.every(e=>yn.interpretSchema(e,n,t,r)),collectEvaluatedProperties:(e,n,t,r)=>e.reduce((e,a)=>{const i=e&&yn.collectEvaluatedProperties(a,n,t,r);return!1!==i&&[...e,...i]},[]),collectEvaluatedItems:(e,n,t,r)=>e.reduce((e,a)=>{const i=!1!==e&&yn.collectEvaluatedItems(a,n,t,r);return!1!==i&&new Set([...e,...i])},new Set)};const{Core:gn,Schema:bn}=We;var $n={compile:(e,n)=>Y.pipeline([bn.map(async e=>gn.compileSchema(await e,n)),Y.all],e),interpret:(e,n,t,r)=>e.filter(e=>gn.interpretSchema(e,n,t,r)).length>0,collectEvaluatedProperties:(e,n,t,r)=>e.reduce((e,a)=>{const i=gn.collectEvaluatedProperties(a,n,t,r);return!1!==i?[...e||[],...i]:e},!1),collectEvaluatedItems:(e,n,t,r)=>e.reduce((e,a)=>{const i=gn.collectEvaluatedItems(a,n,t,r);return!1!==i?new Set([...e||[],...i]):e},!1)},In=Object.keys,On=JSON.stringify;var Sn=function(e){return""+function e(n,t){var r,a,i,o,s,c,m;if("string"===(m=typeof n))return On(n);if(!0===n)return"true";if(!1===n)return"false";if(null===n)return"null";if(n instanceof Array){for(i="[",a=n.length-1,r=0;r<a;r++)i+=e(n[r],!1)+",";return a>-1&&(i+=e(n[r],!1)),i+"]"}if(n instanceof Object){if("function"==typeof n.toJSON)return e(n.toJSON(),t);for(a=(o=In(n).sort()).length,i="",r=0;r<a;)void 0!==(c=e(n[s=o[r]],!0))&&(r&&""!==i&&(i+=","),i+=On(s)+":"+c),r++;return"{"+i+"}"}switch(m){case"function":case"undefined":return t?void 0:null;default:return isFinite(n)?n:null}}(e,!1)};const{Schema:jn,Instance:xn}=We;var wn={compile:e=>Sn(jn.value(e)),interpret:(e,n)=>Sn(xn.value(n))===e};const{Core:Pn,Instance:En}=We;var An={compile:(e,n)=>Pn.compileSchema(e,n),interpret:(e,n,t,r)=>!En.typeOf(n,"array")||En.some(n=>Pn.interpretSchema(e,n,t,r),n)};const{Core:Cn,Schema:Nn,Instance:Rn}=We,Tn=({contains:e,minContains:n,maxContains:t},r,a,i)=>{if(!Rn.typeOf(r,"array"))return!0;const o=Rn.reduce((n,t)=>Cn.interpretSchema(e,t,a,i)?n+1:n,0,r);return o>=n&&o<=t};var Dn={compile:async(e,n,t)=>{const r=await Cn.compileSchema(e,n),a=await Nn.step("minContains",t),i=Nn.typeOf(a,"number")?Nn.value(a):1,o=await Nn.step("maxContains",t);return{contains:r,minContains:i,maxContains:Nn.typeOf(o,"number")?Nn.value(o):Number.MAX_SAFE_INTEGER}},interpret:Tn,collectEvaluatedItems:(e,n,t,r)=>Tn(e,n,t,r)&&Rn.reduce((n,a,i)=>Cn.interpretSchema(e.contains,a,t,r)?n.add(i):n,new Set,n)};const{Core:kn,Schema:Mn}=We;var qn={compile:async(e,n)=>{await Y.pipeline([Mn.entries,Y.map(([,e])=>kn.compileSchema(e,n)),Y.all],e)},interpret:()=>!0};const{Core:Vn,Schema:Ln,Instance:Jn}=We;var Un={compile:(e,n)=>Y.pipeline([Ln.entries,Y.map(async([e,t])=>[e,Ln.typeOf(t,"array")?Ln.value(t):await Vn.compileSchema(t,n)]),Y.all],e),interpret:(e,n,t,r)=>{const a=Jn.value(n);return!Jn.typeOf(n,"object")||e.every(([e,i])=>!(e in a)||(Array.isArray(i)?i.every(e=>e in a):Vn.interpretSchema(i,n,t,r)))}};const{Schema:zn,Instance:_n}=We;var Fn={compile:e=>Y.pipeline([zn.entries,Y.map(([e,n])=>[e,zn.value(n)]),Y.all],e),interpret:(e,n)=>{const t=_n.value(n);return!_n.typeOf(n,"object")||e.every(([e,n])=>!(e in t)||n.every(e=>e in t))}};const{Core:Kn,Schema:Bn,Instance:Zn}=We;var Gn={compile:(e,n)=>Y.pipeline([Bn.entries,Y.map(async([e,t])=>[e,await Kn.compileSchema(t,n)]),Y.all],e),interpret:(e,n,t,r)=>{const a=Zn.value(n);return!Zn.typeOf(n,"object")||e.every(([e,i])=>!(e in a)||Kn.interpretSchema(i,n,t,r))},collectEvaluatedProperties:(e,n,t,r)=>e.reduce((e,[a,i])=>{if(!e||!Zn.has(a,n))return e;const o=Kn.collectEvaluatedProperties(i,n,t,r);return!1!==o&&e.concat(o)},[])};const{Schema:Wn,Instance:Xn}=We;var Hn={compile:e=>Wn.value(e).map(Sn),interpret:(e,n)=>e.some(e=>Sn(Xn.value(n))===e)};const{Schema:Qn,Instance:Yn}=We;var et={compile:async e=>Qn.value(e),interpret:(e,n)=>!Yn.typeOf(n,"number")||Yn.value(n)<e};const{Schema:nt,Instance:tt}=We;var rt={compile:async e=>nt.value(e),interpret:(e,n)=>!tt.typeOf(n,"number")||tt.value(n)>e};const{Core:at}=We;var it={compile:(e,n)=>at.compileSchema(e,n),interpret:(e,n,t,r)=>(at.interpretSchema(e,n,t,r),!0),collectEvaluatedProperties:(e,n,t,r)=>at.collectEvaluatedProperties(e,n,t,r)||[],collectEvaluatedItems:(e,n,t,r)=>at.collectEvaluatedItems(e,n,t,r)||new Set};const{Core:ot,Schema:st}=We,ct=(e,n,t,r)=>{const a=t[e][2];return"boolean"==typeof a?a:a.every(([e,,a])=>ot.getKeyword(e).interpret(a,n,t,r))};var mt={compile:async(e,n,t)=>{if(st.has("if",t)){const r=await st.step("if",t);return[await ot.compileSchema(r,n),await ot.compileSchema(e,n)]}return[]},interpret:([e,n],t,r,a)=>void 0===e||!ct(e,t,r,a)||ot.interpretSchema(n,t,r,a),collectEvaluatedProperties:([e,n],t,r,a)=>void 0!==e&&ct(e,t,r,a)?ot.collectEvaluatedProperties(n,t,r,a):[],collectEvaluatedItems:([e,n],t,r,a)=>void 0!==e&&ct(e,t,r,a)?ot.collectEvaluatedItems(n,t,r,a):new Set};const{Core:lt,Schema:pt}=We,ut=(e,n,t,r)=>{const a=t[e][2];return"boolean"==typeof a?a:a.every(([e,,a])=>lt.getKeyword(e).interpret(a,n,t,r))};var dt={compile:async(e,n,t)=>{if(pt.has("if",t)){const r=await pt.step("if",t);return[await lt.compileSchema(r,n),await lt.compileSchema(e,n)]}return[]},interpret:([e,n],t,r,a)=>void 0===e||ut(e,t,r,a)||lt.interpretSchema(n,t,r,a),collectEvaluatedProperties:([e,n],t,r,a)=>void 0===e||ut(e,t,r,a)?[]:lt.collectEvaluatedProperties(n,t,r,a),collectEvaluatedItems:([e,n],t,r,a)=>void 0===e||ut(e,t,r,a)?new Set:lt.collectEvaluatedItems(n,t,r,a)};const{Core:ft,Schema:yt,Instance:ht}=We,vt=(e,n,t,r)=>!ht.typeOf(n,"array")||("string"==typeof e?ht.every(n=>ft.interpretSchema(e,n,t,r),n):ht.every((n,a)=>!(a in e)||ft.interpretSchema(e[a],n,t,r),n));var gt={compile:async(e,n)=>{if(yt.typeOf(e,"array")){const t=await yt.map(e=>ft.compileSchema(e,n),e);return Promise.all(t)}return ft.compileSchema(e,n)},interpret:vt,collectEvaluatedItems:(e,n,t,r)=>vt(e,n,t,r)&&("string"==typeof e?new Set(ht.map((e,n)=>n,n)):new Set(e.map((e,n)=>n)))};const{Core:bt,Schema:$t,Instance:It}=We,Ot=([e,n],t,r,a)=>!It.typeOf(t,"array")||It.every((t,i)=>i<e||bt.interpretSchema(n,t,r,a),t);var St={compile:async(e,n,t)=>{const r=await $t.step("prefixItems",t);return[$t.typeOf(r,"array")?$t.length(r):0,await bt.compileSchema(e,n)]},interpret:Ot,collectEvaluatedItems:(e,n,t,r)=>Ot(e,n,t,r)&&new Set(It.map((e,n)=>n,n))};const{Schema:jt,Instance:xt}=We;var wt={compile:e=>jt.value(e),interpret:(e,n)=>!xt.typeOf(n,"array")||xt.length(n)<=e};const{Schema:Pt,Instance:Et}=We;var At={compile:e=>Pt.value(e),interpret:(e,n)=>!Et.typeOf(n,"string")||Et.length(n)<=e};const{Schema:Ct,Instance:Nt}=We;var Rt={compile:e=>Ct.value(e),interpret:(e,n)=>!Nt.typeOf(n,"string")||[...Nt.value(n)].length<=e};const{Schema:Tt,Instance:Dt}=We;var kt={compile:e=>Tt.value(e),interpret:(e,n)=>!Dt.typeOf(n,"object")||Dt.keys(n).length<=e};const{Schema:Mt,Instance:qt}=We;var Vt={compile:async(e,n,t)=>{const r=await Mt.step("exclusiveMaximum",t),a=Mt.value(r);return[Mt.value(e),a]},interpret:([e,n],t)=>{if(!qt.typeOf(t,"number"))return!0;const r=qt.value(t);return n?r<e:r<=e}};const{Schema:Lt,Instance:Jt}=We;var Ut={compile:async e=>Lt.value(e),interpret:(e,n)=>!Jt.typeOf(n,"number")||Jt.value(n)<=e};const{Schema:zt,Instance:_t}=We;var Ft={compile:e=>zt.value(e),interpret:(e,n)=>!_t.typeOf(n,"array")||_t.length(n)>=e};const{Schema:Kt,Instance:Bt}=We;var Zt={compile:e=>Kt.value(e),interpret:(e,n)=>!Bt.typeOf(n,"string")||Bt.length(n)>=e};const{Schema:Gt,Instance:Wt}=We;var Xt={compile:e=>Gt.value(e),interpret:(e,n)=>!Wt.typeOf(n,"string")||[...Wt.value(n)].length>=e};const{Schema:Ht,Instance:Qt}=We;var Yt={compile:e=>Ht.value(e),interpret:(e,n)=>!Qt.typeOf(n,"object")||Qt.keys(n).length>=e};const{Schema:er,Instance:nr}=We;var tr={compile:async(e,n,t)=>{const r=await er.step("exclusiveMinimum",t),a=er.value(r);return[er.value(e),a]},interpret:([e,n],t)=>{if(!nr.typeOf(t,"number"))return!0;const r=nr.value(t);return n?r>e:r>=e}};const{Schema:rr,Instance:ar}=We;var ir={compile:async e=>rr.value(e),interpret:(e,n)=>!ar.typeOf(n,"number")||ar.value(n)>=e};const{Schema:or,Instance:sr}=We,cr=(e,n)=>Math.abs(e-n)<1.1920929e-7;var mr={compile:e=>or.value(e),interpret:(e,n)=>{if(!sr.typeOf(n,"number"))return!0;const t=sr.value(n)%e;return cr(0,t)||cr(e,t)}};const{Core:lr}=We;var pr={compile:lr.compileSchema,interpret:(e,n,t,r)=>!lr.interpretSchema(e,n,t,r)};const{Core:ur,Schema:dr}=We;var fr={compile:async(e,n)=>{const t=await dr.map(e=>ur.compileSchema(e,n),e);return Promise.all(t)},interpret:(e,n,t,r)=>{let a=0;for(const i of e)if(ur.interpretSchema(i,n,t,r)&&a++,a>1)break;return 1===a},collectEvaluatedProperties:(e,n,t,r)=>{let a=0;return e.reduce((e,i)=>{if(a>1)return!1;const o=ur.collectEvaluatedProperties(i,n,t,r);return o?0==a++&&o:e},!1)},collectEvaluatedItems:(e,n,t,r)=>{let a=0;return e.reduce((e,i)=>{if(a>1)return!1;const o=ur.collectEvaluatedItems(i,n,t,r);return o?0==a++&&o:e},!1)}};const{Schema:yr,Instance:hr}=We;var vr={compile:e=>new RegExp(yr.value(e),"u"),interpret:(e,n)=>!hr.typeOf(n,"string")||e.test(hr.value(n))};const{Core:gr,Schema:br,Instance:$r}=We,Ir=(e,n,t,r)=>!$r.typeOf(n,"object")||e.every(([e,a])=>$r.entries(n).filter(([n])=>e.test(n)).every(([,e])=>gr.interpretSchema(a,e,t,r)));var Or={compile:(e,n)=>Y.pipeline([br.entries,Y.map(async([e,t])=>[new RegExp(e,"u"),await gr.compileSchema(t,n)]),Y.all],e),interpret:Ir,collectEvaluatedProperties:(e,n,t,r)=>Ir(e,n,t,r)&&e.map(([e])=>e)};var Sr={isObject:e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,escapeRegExp:e=>e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),splitUrl:e=>{const n=e.indexOf("#"),t=-1===n?e.length:n,r=e.slice(0,t),a=e.slice(t+1);return[decodeURI(r),decodeURI(a)]}};const{Core:jr,Schema:xr,Instance:wr}=We,{escapeRegExp:Pr}=Sr,Er=(e,n,t,r)=>!wr.typeOf(n,"object")||wr.entries(n).filter(([n])=>n in e).every(([n,a])=>jr.interpretSchema(e[n],a,t,r));var Ar={compile:(e,n)=>Y.pipeline([xr.entries,Y.reduce(async(e,[t,r])=>(e[t]=await jr.compileSchema(r,n),e),Object.create(null))],e),interpret:Er,collectEvaluatedProperties:(e,n,t,r)=>Er(e,n,t,r)&&Object.keys(e).map(e=>new RegExp(`^${Pr(e)}$`))};const{Core:Cr,Instance:Nr}=We;var Rr={compile:(e,n)=>Cr.compileSchema(e,n),interpret:(e,n,t,r)=>!Nr.typeOf(n,"object")||Nr.keys(n).every(n=>Cr.interpretSchema(e,Nr.cons(n),t,r))};const{Core:Tr,Schema:Dr}=We,{splitUrl:kr}=Sr;var Mr={compile:async(e,n)=>{const[,t]=kr(Dr.value(e)),r=await Dr.get(Dr.value(e),e);return await Tr.compileSchema(r,n),[r.id,t]},interpret:([e,n],t,r,a)=>{if(n in r.metaData[e].dynamicAnchors)return Tr.interpretSchema(a[n],t,r,a);{const i=Dr.getAnchorPointer(r.metaData[e],n);return Tr.interpretSchema(`${e}#${encodeURI(i)}`,t,r,a)}},collectEvaluatedProperties:Tr.collectEvaluatedProperties,collectEvaluatedItems:Tr.collectEvaluatedItems};const{Core:qr,Schema:Vr}=We;var Lr={compile:async(e,n)=>{const t=await Vr.get(Vr.value(e),e);return qr.compileSchema(t,n)},interpret:qr.interpretSchema,collectEvaluatedProperties:qr.collectEvaluatedProperties,collectEvaluatedItems:qr.collectEvaluatedItems};const{Schema:Jr,Instance:Ur}=We;var zr={compile:e=>Jr.value(e),interpret:(e,n)=>!Ur.typeOf(n,"object")||e.every(e=>Object.prototype.hasOwnProperty.call(Ur.value(n),e))};const{Core:_r,Schema:Fr,Instance:Kr}=We,Br=(e,n,t,r)=>!Kr.typeOf(n,"array")||Kr.every((n,a)=>!(a in e)||_r.interpretSchema(e[a],n,t,r),n);var Zr={compile:(e,n)=>Y.pipeline([Fr.map(e=>_r.compileSchema(e,n)),Y.all],e),interpret:Br,collectEvaluatedItems:(e,n,t,r)=>Br(e,n,t,r)&&new Set(e.map((e,n)=>n))};const{Schema:Gr,Instance:Wr}=We;var Xr={compile:e=>Gr.value(e),interpret:(e,n)=>"string"==typeof e?Wr.typeOf(n,e):e.some(Wr.typeOf(n))};const{Core:Hr,Schema:Qr,Instance:Yr}=We,ea=([e,n],t,r,a)=>{if(!Yr.typeOf(t,"array"))return!0;const i=Hr.collectEvaluatedItems(e,t,r,a,!0);return!1===i||Yr.every((e,o)=>i.has(o)||Hr.interpretSchema(n,Yr.step(o,t),r,a),t)};var na={compile:async(e,n,t)=>[Qr.uri(t),await Hr.compileSchema(e,n)],interpret:ea,collectEvaluatedItems:(e,n,t,r)=>ea(e,n,t,r)&&new Set(Yr.map((e,n)=>n,n))};const{Core:ta,Schema:ra,Instance:aa}=We,ia=([e,n],t,r,a)=>{if(!aa.typeOf(t,"object"))return!0;const i=ta.collectEvaluatedProperties(e,t,r,a,!0);return!i||aa.entries(t).filter(([e])=>!i.some(n=>e.match(n))).every(([,e])=>ta.interpretSchema(n,e,r,a))};var oa={compile:async(e,n,t)=>[ra.uri(t),await ta.compileSchema(e,n)],interpret:ia,collectEvaluatedProperties:(e,n,t,r)=>ia(e,n,t,r)&&[new RegExp("")]};const{Schema:sa,Instance:ca}=We;var ma={compile:e=>sa.value(e),interpret:(e,n)=>{if(!ca.typeOf(n,"array")||!1===e)return!0;const t=ca.map(e=>Sn(ca.value(e)),n);return new Set(t).size===t.length}};const{Keywords:la}=We;var pa={additionalItems:Ye,additionalItems6:an,additionalProperties:mn,additionalProperties6:fn,allOf:vn,anyOf:$n,const:wn,contains:An,containsMinContainsMaxContains:Dn,definitions:qn,dependencies:Un,dependentRequired:Fn,dependentSchemas:Gn,enum:Hn,exclusiveMaximum:et,exclusiveMinimum:rt,if:it,then:mt,else:dt,items:gt,items202012:St,maxItems:wt,maxLength:At,maxLength6:Rt,maxProperties:kt,maximumExclusiveMaximum:Vt,maximum:Ut,metaData:la.metaData,minItems:Ft,minLength:Zt,minLength6:Xt,minProperties:Yt,minimumExclusiveMinimum:tr,minimum:ir,multipleOf:mr,not:pr,oneOf:fr,pattern:vr,patternProperties:Or,properties:Ar,propertyNames:Rr,dynamicRef:Mr,ref:Lr,required:zr,tupleItems:Zr,type:Xr,unevaluatedItems:na,unevaluatedProperties:oa,uniqueItems:ma,validate:la.validate};const{Core:ua,Schema:da}=We,fa="http://json-schema.org/draft-04/schema";da.setConfig(fa,"baseToken","id"),da.setConfig(fa,"embeddedToken","id"),da.setConfig(fa,"anchorToken","id"),da.setConfig(fa,"jrefToken","$ref"),da.add(JSON.parse('{\n "id": "http://json-schema.org/draft-04/schema#",\n "$schema": "http://json-schema.org/draft-04/schema#",\n "description": "Core schema meta-schema",\n "definitions": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$ref": "#" }\n },\n "positiveInteger": {\n "type": "integer",\n "minimum": 0\n },\n "positiveIntegerDefault0": {\n "allOf": [ { "$ref": "#/definitions/positiveInteger" }, { "default": 0 } ]\n },\n "simpleTypes": {\n "enum": [ "array", "boolean", "integer", "null", "number", "object", "string" ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "minItems": 1,\n "uniqueItems": true\n }\n },\n "type": "object",\n "properties": {\n "id": {\n "type": "string"\n },\n "$schema": {\n "type": "string"\n },\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": {},\n "multipleOf": {\n "type": "number",\n "minimum": 0,\n "exclusiveMinimum": true\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "boolean",\n "default": false\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "boolean",\n "default": false\n },\n "maxLength": { "$ref": "#/definitions/positiveInteger" },\n "minLength": { "$ref": "#/definitions/positiveIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "additionalItems": {\n "anyOf": [\n { "type": "boolean" },\n { "$ref": "#" }\n ],\n "default": {}\n },\n "items": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/schemaArray" }\n ],\n "default": {}\n },\n "maxItems": { "$ref": "#/definitions/positiveInteger" },\n "minItems": { "$ref": "#/definitions/positiveIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "maxProperties": { "$ref": "#/definitions/positiveInteger" },\n "minProperties": { "$ref": "#/definitions/positiveIntegerDefault0" },\n "required": { "$ref": "#/definitions/stringArray" },\n "additionalProperties": {\n "anyOf": [\n { "type": "boolean" },\n { "$ref": "#" }\n ],\n "default": {}\n },\n "definitions": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "properties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "dependencies": {\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/stringArray" }\n ]\n }\n },\n "enum": {\n "type": "array",\n "minItems": 1,\n "uniqueItems": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/definitions/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/definitions/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n },\n "format": { "type": "string" },\n "allOf": { "$ref": "#/definitions/schemaArray" },\n "anyOf": { "$ref": "#/definitions/schemaArray" },\n "oneOf": { "$ref": "#/definitions/schemaArray" },\n "not": { "$ref": "#" }\n },\n "dependencies": {\n "exclusiveMaximum": [ "maximum" ],\n "exclusiveMinimum": [ "minimum" ]\n },\n "default": {}\n}')),ua.defineVocabulary(fa,{validate:pa.validate,additionalItems:pa.additionalItems,additionalProperties:pa.additionalProperties,allOf:pa.allOf,anyOf:pa.anyOf,default:pa.metaData,definitions:pa.definitions,dependencies:pa.dependencies,description:pa.metaData,enum:pa.enum,format:pa.metaData,items:pa.items,maxItems:pa.maxItems,maxLength:pa.maxLength,maxProperties:pa.maxProperties,maximum:pa.maximumExclusiveMaximum,minItems:pa.minItems,minLength:pa.minLength,minProperties:pa.minProperties,minimum:pa.minimumExclusiveMinimum,multipleOf:pa.multipleOf,not:pa.not,oneOf:pa.oneOf,pattern:pa.pattern,patternProperties:pa.patternProperties,properties:pa.properties,required:pa.required,title:pa.metaData,type:pa.type,uniqueItems:pa.uniqueItems});const{Core:ya,Schema:ha}=We,va="http://json-schema.org/draft-06/schema";ha.setConfig(va,"baseToken","$id"),ha.setConfig(va,"embeddedToken","$id"),ha.setConfig(va,"anchorToken","$id"),ha.setConfig(va,"jrefToken","$ref"),ha.add(JSON.parse('{\n "$schema": "http://json-schema.org/draft-06/schema#",\n "$id": "http://json-schema.org/draft-06/schema#",\n "title": "Core schema meta-schema",\n "definitions": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$ref": "#" }\n },\n "nonNegativeInteger": {\n "type": "integer",\n "minimum": 0\n },\n "nonNegativeIntegerDefault0": {\n "allOf": [\n { "$ref": "#/definitions/nonNegativeInteger" },\n { "default": 0 }\n ]\n },\n "simpleTypes": {\n "enum": [\n "array",\n "boolean",\n "integer",\n "null",\n "number",\n "object",\n "string"\n ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "uniqueItems": true,\n "default": []\n }\n },\n "type": ["object", "boolean"],\n "properties": {\n "$id": {\n "type": "string",\n "format": "uri-reference"\n },\n "$schema": {\n "type": "string",\n "format": "uri"\n },\n "$ref": {\n "type": "string",\n "format": "uri-reference"\n },\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": {},\n "examples": {\n "type": "array",\n "items": {}\n },\n "multipleOf": {\n "type": "number",\n "exclusiveMinimum": 0\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "number"\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "number"\n },\n "maxLength": { "$ref": "#/definitions/nonNegativeInteger" },\n "minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "additionalItems": { "$ref": "#" },\n "items": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/schemaArray" }\n ],\n "default": {}\n },\n "maxItems": { "$ref": "#/definitions/nonNegativeInteger" },\n "minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "contains": { "$ref": "#" },\n "maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },\n "minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "required": { "$ref": "#/definitions/stringArray" },\n "additionalProperties": { "$ref": "#" },\n "definitions": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "properties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "dependencies": {\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/stringArray" }\n ]\n }\n },\n "propertyNames": { "$ref": "#" },\n "const": {},\n "enum": {\n "type": "array",\n "minItems": 1,\n "uniqueItems": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/definitions/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/definitions/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n },\n "format": { "type": "string" },\n "allOf": { "$ref": "#/definitions/schemaArray" },\n "anyOf": { "$ref": "#/definitions/schemaArray" },\n "oneOf": { "$ref": "#/definitions/schemaArray" },\n "not": { "$ref": "#" }\n },\n "default": {}\n}')),ya.defineVocabulary(va,{validate:pa.validate,additionalItems:pa.additionalItems6,additionalProperties:pa.additionalProperties6,allOf:pa.allOf,anyOf:pa.anyOf,const:pa.const,contains:pa.contains,default:pa.metaData,definitions:pa.definitions,dependencies:pa.dependencies,description:pa.metaData,enum:pa.enum,examples:pa.metaData,exclusiveMaximum:pa.exclusiveMaximum,exclusiveMinimum:pa.exclusiveMinimum,format:pa.metaData,items:pa.items,maxItems:pa.maxItems,maxLength:pa.maxLength6,maxProperties:pa.maxProperties,maximum:pa.maximum,minItems:pa.minItems,minLength:pa.minLength6,minProperties:pa.minProperties,minimum:pa.minimum,multipleOf:pa.multipleOf,not:pa.not,oneOf:pa.oneOf,pattern:pa.pattern,patternProperties:pa.patternProperties,properties:pa.properties,propertyNames:pa.propertyNames,required:pa.required,title:pa.metaData,type:pa.type,uniqueItems:pa.uniqueItems});const{Core:ga,Schema:ba}=We,$a="http://json-schema.org/draft-07/schema";ba.setConfig($a,"baseToken","$id"),ba.setConfig($a,"embeddedToken","$id"),ba.setConfig($a,"anchorToken","$id"),ba.setConfig($a,"jrefToken","$ref"),ba.add(JSON.parse('{\n "$schema": "http://json-schema.org/draft-07/schema#",\n "$id": "http://json-schema.org/draft-07/schema#",\n "title": "Core schema meta-schema",\n "definitions": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$ref": "#" }\n },\n "nonNegativeInteger": {\n "type": "integer",\n "minimum": 0\n },\n "nonNegativeIntegerDefault0": {\n "allOf": [\n { "$ref": "#/definitions/nonNegativeInteger" },\n { "default": 0 }\n ]\n },\n "simpleTypes": {\n "enum": [\n "array",\n "boolean",\n "integer",\n "null",\n "number",\n "object",\n "string"\n ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "uniqueItems": true,\n "default": []\n }\n },\n "type": ["object", "boolean"],\n "properties": {\n "$id": {\n "type": "string",\n "format": "uri-reference"\n },\n "$schema": {\n "type": "string",\n "format": "uri"\n },\n "$ref": {\n "type": "string",\n "format": "uri-reference"\n },\n "$comment": {\n "type": "string"\n },\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": true,\n "readOnly": {\n "type": "boolean",\n "default": false\n },\n "writeOnly": {\n "type": "boolean",\n "default": false\n },\n "examples": {\n "type": "array",\n "items": true\n },\n "multipleOf": {\n "type": "number",\n "exclusiveMinimum": 0\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "number"\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "number"\n },\n "maxLength": { "$ref": "#/definitions/nonNegativeInteger" },\n "minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "additionalItems": { "$ref": "#" },\n "items": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/schemaArray" }\n ],\n "default": true\n },\n "maxItems": { "$ref": "#/definitions/nonNegativeInteger" },\n "minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "contains": { "$ref": "#" },\n "maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },\n "minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },\n "required": { "$ref": "#/definitions/stringArray" },\n "additionalProperties": { "$ref": "#" },\n "definitions": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "properties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$ref": "#" },\n "propertyNames": { "format": "regex" },\n "default": {}\n },\n "dependencies": {\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$ref": "#" },\n { "$ref": "#/definitions/stringArray" }\n ]\n }\n },\n "propertyNames": { "$ref": "#" },\n "const": true,\n "enum": {\n "type": "array",\n "items": true,\n "minItems": 1,\n "uniqueItems": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/definitions/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/definitions/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n },\n "format": { "type": "string" },\n "contentMediaType": { "type": "string" },\n "contentEncoding": { "type": "string" },\n "if": { "$ref": "#" },\n "then": { "$ref": "#" },\n "else": { "$ref": "#" },\n "allOf": { "$ref": "#/definitions/schemaArray" },\n "anyOf": { "$ref": "#/definitions/schemaArray" },\n "oneOf": { "$ref": "#/definitions/schemaArray" },\n "not": { "$ref": "#" }\n },\n "default": true\n}')),ga.defineVocabulary($a,{validate:pa.validate,additionalItems:pa.additionalItems6,additionalProperties:pa.additionalProperties6,allOf:pa.allOf,anyOf:pa.anyOf,const:pa.const,contains:pa.contains,default:pa.metaData,definitions:pa.definitions,dependencies:pa.dependencies,description:pa.metaData,enum:pa.enum,exclusiveMaximum:pa.exclusiveMaximum,exclusiveMinimum:pa.exclusiveMinimum,format:pa.metaData,if:pa.if,then:pa.then,else:pa.else,items:pa.items,maxItems:pa.maxItems,maxLength:pa.maxLength6,maxProperties:pa.maxProperties,maximum:pa.maximum,minItems:pa.minItems,minLength:pa.minLength6,minProperties:pa.minProperties,minimum:pa.minimum,multipleOf:pa.multipleOf,not:pa.not,oneOf:pa.oneOf,pattern:pa.pattern,patternProperties:pa.patternProperties,properties:pa.properties,propertyNames:pa.propertyNames,readOnly:pa.metaData,required:pa.required,title:pa.metaData,type:pa.type,uniqueItems:pa.uniqueItems,writeOnly:pa.metaData});const{Core:Ia,Schema:Oa}=We,Sa="https://json-schema.org/draft/2019-09/schema";Oa.setConfig(Sa,"baseToken","$id"),Oa.setConfig(Sa,"embeddedToken","$id"),Oa.setConfig(Sa,"anchorToken","$anchor"),Oa.setConfig(Sa,"recursiveAnchorToken","$recursiveAnchor"),Oa.setConfig(Sa,"vocabularyToken","$vocabulary"),Oa.setConfig(Sa,"mandatoryVocabularies",["https://json-schema.org/draft/2019-09/vocab/core"]),Oa.add(JSON.parse('{\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$id": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/core": true,\n "https://json-schema.org/draft/2019-09/vocab/applicator": true,\n "https://json-schema.org/draft/2019-09/vocab/validation": true,\n "https://json-schema.org/draft/2019-09/vocab/meta-data": true,\n "https://json-schema.org/draft/2019-09/vocab/format": false,\n "https://json-schema.org/draft/2019-09/vocab/content": true\n },\n "$recursiveAnchor": true,\n\n "title": "Core and Validation specifications meta-schema",\n "allOf": [\n {"$ref": "meta/core"},\n {"$ref": "meta/applicator"},\n {"$ref": "meta/validation"},\n {"$ref": "meta/meta-data"},\n {"$ref": "meta/format"},\n {"$ref": "meta/content"}\n ],\n "type": ["object", "boolean"],\n "properties": {\n "definitions": {\n "$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",\n "type": "object",\n "additionalProperties": { "$recursiveRef": "#" },\n "default": {}\n },\n "dependencies": {\n "$comment": "\\"dependencies\\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \\"dependentSchemas\\" and \\"dependentRequired\\"",\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$recursiveRef": "#" },\n { "$ref": "meta/validation#/$defs/stringArray" }\n ]\n }\n }\n }\n}')),Oa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/core",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/core": true\n },\n "$recursiveAnchor": true,\n\n "title": "Core vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "$id": {\n "type": "string",\n "format": "uri-reference",\n "$comment": "Non-empty fragments not allowed.",\n "pattern": "^[^#]*#?$"\n },\n "$schema": {\n "type": "string",\n "format": "uri"\n },\n "$anchor": {\n "type": "string",\n "pattern": "^[A-Za-z][-A-Za-z0-9.:_]*$"\n },\n "$ref": {\n "type": "string",\n "format": "uri-reference"\n },\n "$recursiveRef": {\n "type": "string",\n "format": "uri-reference"\n },\n "$recursiveAnchor": {\n "type": "boolean",\n "default": false\n },\n "$vocabulary": {\n "type": "object",\n "propertyNames": {\n "type": "string",\n "format": "uri"\n },\n "additionalProperties": {\n "type": "boolean"\n }\n },\n "$comment": {\n "type": "string"\n },\n "$defs": {\n "type": "object",\n "additionalProperties": { "$recursiveRef": "#" },\n "default": {}\n }\n }\n}')),Ia.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/core",{validate:pa.validate,$defs:pa.definitions,$recursiveRef:pa.dynamicRef,$ref:pa.ref}),Oa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/applicator",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/applicator": true\n },\n "$recursiveAnchor": true,\n\n "title": "Applicator vocabulary meta-schema",\n "properties": {\n "additionalItems": { "$recursiveRef": "#" },\n "unevaluatedItems": { "$recursiveRef": "#" },\n "items": {\n "anyOf": [\n { "$recursiveRef": "#" },\n { "$ref": "#/$defs/schemaArray" }\n ]\n },\n "contains": { "$recursiveRef": "#" },\n "additionalProperties": { "$recursiveRef": "#" },\n "unevaluatedProperties": { "$recursiveRef": "#" },\n "properties": {\n "type": "object",\n "additionalProperties": { "$recursiveRef": "#" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$recursiveRef": "#" },\n "propertyNames": { "format": "regex" },\n "default": {}\n },\n "dependentSchemas": {\n "type": "object",\n "additionalProperties": {\n "$recursiveRef": "#"\n }\n },\n "propertyNames": { "$recursiveRef": "#" },\n "if": { "$recursiveRef": "#" },\n "then": { "$recursiveRef": "#" },\n "else": { "$recursiveRef": "#" },\n "allOf": { "$ref": "#/$defs/schemaArray" },\n "anyOf": { "$ref": "#/$defs/schemaArray" },\n "oneOf": { "$ref": "#/$defs/schemaArray" },\n "not": { "$recursiveRef": "#" }\n },\n "$defs": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$recursiveRef": "#" }\n }\n }\n}')),Ia.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/applicator",{additionalItems:pa.additionalItems6,additionalProperties:pa.additionalProperties6,allOf:pa.allOf,anyOf:pa.anyOf,contains:pa.containsMinContainsMaxContains,dependentSchemas:pa.dependentSchemas,if:pa.if,then:pa.then,else:pa.else,items:pa.items,not:pa.not,oneOf:pa.oneOf,patternProperties:pa.patternProperties,properties:pa.properties,propertyNames:pa.propertyNames,unevaluatedItems:pa.unevaluatedItems,unevaluatedProperties:pa.unevaluatedProperties}),Oa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/validation",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/validation": true\n },\n "$recursiveAnchor": true,\n\n "title": "Validation vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "multipleOf": {\n "type": "number",\n "exclusiveMinimum": 0\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "number"\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "number"\n },\n "maxLength": { "$ref": "#/$defs/nonNegativeInteger" },\n "minLength": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "maxItems": { "$ref": "#/$defs/nonNegativeInteger" },\n "minItems": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "maxContains": { "$ref": "#/$defs/nonNegativeInteger" },\n "minContains": {\n "$ref": "#/$defs/nonNegativeInteger",\n "default": 1\n },\n "maxProperties": { "$ref": "#/$defs/nonNegativeInteger" },\n "minProperties": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "required": { "$ref": "#/$defs/stringArray" },\n "dependentRequired": {\n "type": "object",\n "additionalProperties": {\n "$ref": "#/$defs/stringArray"\n }\n },\n "const": true,\n "enum": {\n "type": "array",\n "items": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/$defs/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/$defs/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n }\n },\n "$defs": {\n "nonNegativeInteger": {\n "type": "integer",\n "minimum": 0\n },\n "nonNegativeIntegerDefault0": {\n "$ref": "#/$defs/nonNegativeInteger",\n "default": 0\n },\n "simpleTypes": {\n "enum": [\n "array",\n "boolean",\n "integer",\n "null",\n "number",\n "object",\n "string"\n ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "uniqueItems": true,\n "default": []\n }\n }\n}')),Ia.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/validation",{const:pa.const,dependentRequired:pa.dependentRequired,enum:pa.enum,exclusiveMaximum:pa.exclusiveMaximum,exclusiveMinimum:pa.exclusiveMinimum,maxItems:pa.maxItems,maxLength:pa.maxLength6,maxProperties:pa.maxProperties,maximum:pa.maximum,minItems:pa.minItems,minLength:pa.minLength6,minProperties:pa.minProperties,minimum:pa.minimum,multipleOf:pa.multipleOf,pattern:pa.pattern,required:pa.required,type:pa.type,uniqueItems:pa.uniqueItems}),Oa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/meta-data",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/meta-data": true\n },\n "$recursiveAnchor": true,\n\n "title": "Meta-data vocabulary meta-schema",\n\n "type": ["object", "boolean"],\n "properties": {\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": true,\n "deprecated": {\n "type": "boolean",\n "default": false\n },\n "readOnly": {\n "type": "boolean",\n "default": false\n },\n "writeOnly": {\n "type": "boolean",\n "default": false\n },\n "examples": {\n "type": "array",\n "items": true\n }\n }\n}')),Ia.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/meta-data",{default:pa.metaData,deprecated:pa.metaData,description:pa.metaData,examples:pa.metaData,readOnly:pa.metaData,title:pa.metaData,writeOnly:pa.metaData}),Oa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/format",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/format": true\n },\n "$recursiveAnchor": true,\n\n "title": "Format vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "format": { "type": "string" }\n }\n}')),Oa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2019-09/meta/content",\n "$schema": "https://json-schema.org/draft/2019-09/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2019-09/vocab/content": true\n },\n "$recursiveAnchor": true,\n\n "title": "Content vocabulary meta-schema",\n\n "type": ["object", "boolean"],\n "properties": {\n "contentMediaType": { "type": "string" },\n "contentEncoding": { "type": "string" },\n "contentSchema": { "$recursiveRef": "#" }\n }\n}')),Ia.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/content",{contentEncoding:pa.metaData,contentMediaType:pa.metaData,contentSchema:pa.metaData});const{Core:ja,Schema:xa}=We,wa="https://json-schema.org/draft/2020-12/schema";xa.setConfig(wa,"baseToken","$id"),xa.setConfig(wa,"embeddedToken","$id"),xa.setConfig(wa,"anchorToken","$anchor"),xa.setConfig(wa,"dynamicAnchorToken","$dynamicAnchor"),xa.setConfig(wa,"vocabularyToken","$vocabulary"),xa.setConfig(wa,"mandatoryVocabularies",["https://json-schema.org/draft/2020-12/vocab/core"]),xa.add(JSON.parse('{\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$id": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/core": true,\n "https://json-schema.org/draft/2020-12/vocab/applicator": true,\n "https://json-schema.org/draft/2020-12/vocab/unevaluated": true,\n "https://json-schema.org/draft/2020-12/vocab/validation": true,\n "https://json-schema.org/draft/2020-12/vocab/meta-data": true,\n "https://json-schema.org/draft/2020-12/vocab/format-annotation": true,\n "https://json-schema.org/draft/2020-12/vocab/content": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Core and Validation specifications meta-schema",\n "allOf": [\n {"$ref": "meta/core"},\n {"$ref": "meta/applicator"},\n {"$ref": "meta/unevaluated"},\n {"$ref": "meta/validation"},\n {"$ref": "meta/meta-data"},\n {"$ref": "meta/format-annotation"},\n {"$ref": "meta/content"}\n ],\n "type": ["object", "boolean"],\n "properties": {\n "definitions": {\n "$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",\n "type": "object",\n "additionalProperties": { "$dynamicRef": "#meta" },\n "default": {}\n },\n "dependencies": {\n "$comment": "\\"dependencies\\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \\"dependentSchemas\\" and \\"dependentRequired\\"",\n "type": "object",\n "additionalProperties": {\n "anyOf": [\n { "$dynamicRef": "#meta" },\n { "$ref": "meta/validation#/$defs/stringArray" }\n ]\n }\n }\n }\n}')),xa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/core",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/core": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Core vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "$id": {\n "type": "string",\n "format": "uri-reference",\n "$comment": "Non-empty fragments not allowed.",\n "pattern": "^[^#]*#?$"\n },\n "$schema": {\n "type": "string",\n "format": "uri"\n },\n "$anchor": {\n "type": "string",\n "pattern": "^[A-Za-z_][-A-Za-z0-9._]*$"\n },\n "$ref": {\n "type": "string",\n "format": "uri-reference"\n },\n "$dynamicRef": {\n "type": "string",\n "format": "uri-reference"\n },\n "$dynamicAnchor": {\n "type": "string",\n "pattern": "^[A-Za-z_][-A-Za-z0-9._]*$"\n },\n "$vocabulary": {\n "type": "object",\n "propertyNames": {\n "type": "string",\n "format": "uri"\n },\n "additionalProperties": {\n "type": "boolean"\n }\n },\n "$comment": {\n "type": "string"\n },\n "$defs": {\n "type": "object",\n "additionalProperties": { "$dynamicRef": "#meta" },\n "default": {}\n }\n }\n}')),ja.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/core",{validate:pa.validate,$defs:pa.definitions,$dynamicRef:pa.dynamicRef,$ref:pa.ref}),xa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/applicator",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/applicator": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Applicator vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "prefixItems": { "$ref": "#/$defs/schemaArray" },\n "items": { "$dynamicRef": "#meta" },\n "contains": { "$dynamicRef": "#meta" },\n "additionalProperties": { "$dynamicRef": "#meta" },\n "properties": {\n "type": "object",\n "additionalProperties": { "$dynamicRef": "#meta" },\n "default": {}\n },\n "patternProperties": {\n "type": "object",\n "additionalProperties": { "$dynamicRef": "#meta" },\n "propertyNames": { "format": "regex" },\n "default": {}\n },\n "dependentSchemas": {\n "type": "object",\n "additionalProperties": {\n "$dynamicRef": "#meta"\n }\n },\n "propertyNames": { "$dynamicRef": "#meta" },\n "if": { "$dynamicRef": "#meta" },\n "then": { "$dynamicRef": "#meta" },\n "else": { "$dynamicRef": "#meta" },\n "allOf": { "$ref": "#/$defs/schemaArray" },\n "anyOf": { "$ref": "#/$defs/schemaArray" },\n "oneOf": { "$ref": "#/$defs/schemaArray" },\n "not": { "$dynamicRef": "#meta" }\n },\n "$defs": {\n "schemaArray": {\n "type": "array",\n "minItems": 1,\n "items": { "$dynamicRef": "#meta" }\n }\n }\n}')),ja.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/applicator",{additionalProperties:pa.additionalProperties6,allOf:pa.allOf,anyOf:pa.anyOf,contains:pa.containsMinContainsMaxContains,dependentSchemas:pa.dependentSchemas,if:pa.if,then:pa.then,else:pa.else,items:pa.items202012,not:pa.not,oneOf:pa.oneOf,patternProperties:pa.patternProperties,prefixItems:pa.tupleItems,properties:pa.properties,propertyNames:pa.propertyNames}),xa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/validation",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/validation": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Validation vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "multipleOf": {\n "type": "number",\n "exclusiveMinimum": 0\n },\n "maximum": {\n "type": "number"\n },\n "exclusiveMaximum": {\n "type": "number"\n },\n "minimum": {\n "type": "number"\n },\n "exclusiveMinimum": {\n "type": "number"\n },\n "maxLength": { "$ref": "#/$defs/nonNegativeInteger" },\n "minLength": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "pattern": {\n "type": "string",\n "format": "regex"\n },\n "maxItems": { "$ref": "#/$defs/nonNegativeInteger" },\n "minItems": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "uniqueItems": {\n "type": "boolean",\n "default": false\n },\n "maxContains": { "$ref": "#/$defs/nonNegativeInteger" },\n "minContains": {\n "$ref": "#/$defs/nonNegativeInteger",\n "default": 1\n },\n "maxProperties": { "$ref": "#/$defs/nonNegativeInteger" },\n "minProperties": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },\n "required": { "$ref": "#/$defs/stringArray" },\n "dependentRequired": {\n "type": "object",\n "additionalProperties": {\n "$ref": "#/$defs/stringArray"\n }\n },\n "const": true,\n "enum": {\n "type": "array",\n "items": true\n },\n "type": {\n "anyOf": [\n { "$ref": "#/$defs/simpleTypes" },\n {\n "type": "array",\n "items": { "$ref": "#/$defs/simpleTypes" },\n "minItems": 1,\n "uniqueItems": true\n }\n ]\n }\n },\n "$defs": {\n "nonNegativeInteger": {\n "type": "integer",\n "minimum": 0\n },\n "nonNegativeIntegerDefault0": {\n "$ref": "#/$defs/nonNegativeInteger",\n "default": 0\n },\n "simpleTypes": {\n "enum": [\n "array",\n "boolean",\n "integer",\n "null",\n "number",\n "object",\n "string"\n ]\n },\n "stringArray": {\n "type": "array",\n "items": { "type": "string" },\n "uniqueItems": true,\n "default": []\n }\n }\n}')),ja.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/validation",{const:pa.const,dependentRequired:pa.dependentRequired,enum:pa.enum,exclusiveMaximum:pa.exclusiveMaximum,exclusiveMinimum:pa.exclusiveMinimum,maxItems:pa.maxItems,maxLength:pa.maxLength6,maxProperties:pa.maxProperties,maximum:pa.maximum,minItems:pa.minItems,minLength:pa.minLength6,minProperties:pa.minProperties,minimum:pa.minimum,multipleOf:pa.multipleOf,pattern:pa.pattern,required:pa.required,type:pa.type,uniqueItems:pa.uniqueItems}),xa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/meta-data",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/meta-data": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Meta-data vocabulary meta-schema",\n\n "type": ["object", "boolean"],\n "properties": {\n "title": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "default": true,\n "deprecated": {\n "type": "boolean",\n "default": false\n },\n "readOnly": {\n "type": "boolean",\n "default": false\n },\n "writeOnly": {\n "type": "boolean",\n "default": false\n },\n "examples": {\n "type": "array",\n "items": true\n }\n }\n}')),ja.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/meta-data",{default:pa.metaData,deprecated:pa.metaData,description:pa.metaData,examples:pa.metaData,readOnly:pa.metaData,title:pa.metaData,writeOnly:pa.metaData}),xa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/format-annotation",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/format-annotation": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Format vocabulary meta-schema for annotation results",\n "type": ["object", "boolean"],\n "properties": {\n "format": { "type": "string" }\n }\n}')),ja.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/format-annotation",{format:pa.metaData}),xa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/format-assertion",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/format-assertion": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Format vocabulary meta-schema for assertion results",\n "type": ["object", "boolean"],\n "properties": {\n "format": { "type": "string" }\n }\n}')),xa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/content",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/content": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Content vocabulary meta-schema",\n\n "type": ["object", "boolean"],\n "properties": {\n "contentMediaType": { "type": "string" },\n "contentEncoding": { "type": "string" },\n "contentSchema": { "$dynamicRef": "#meta" }\n }\n}')),ja.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/content",{contentEncoding:pa.metaData,contentMediaType:pa.metaData,contentSchema:pa.metaData}),xa.add(JSON.parse('{\n "$id": "https://json-schema.org/draft/2020-12/meta/unevaluated",\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "$vocabulary": {\n "https://json-schema.org/draft/2020-12/vocab/unevaluated": true\n },\n "$dynamicAnchor": "meta",\n\n "title": "Unevaluated applicator vocabulary meta-schema",\n "type": ["object", "boolean"],\n "properties": {\n "unevaluatedItems": { "$dynamicRef": "#meta" },\n "unevaluatedProperties": { "$dynamicRef": "#meta" }\n }\n}')),ja.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/unevaluated",{unevaluatedItems:pa.unevaluatedItems,unevaluatedProperties:pa.unevaluatedProperties});const{Core:Pa,Schema:Ea,InvalidSchemaError:Aa}=We;var Ca={add:Pa.add,get:Ea.get,validate:Pa.validate,compile:Pa.compile,interpret:Pa.interpret,setMetaOutputFormat:Pa.setMetaOutputFormat,setShouldMetaValidate:Pa.setShouldMetaValidate,FLAG:Pa.FLAG,BASIC:Pa.BASIC,DETAILED:Pa.DETAILED,VERBOSE:Pa.VERBOSE,Keywords:pa,InvalidSchemaError:Aa},Na=Ca.add,Ra=Ca.get,Ta=Ca.validate,Da=Ca.compile,ka=Ca.interpret,Ma=Ca.setMetaOutputFormat,qa=Ca.setShouldMetaValidate,Va=Ca.FLAG,La=Ca.BASIC,Ja=Ca.DETAILED,Ua=Ca.VERBOSE,za=Ca.Keywords,_a=Ca.InvalidSchemaError;export{La as BASIC,Ja as DETAILED,Va as FLAG,_a as InvalidSchemaError,za as Keywords,Ua as VERBOSE,Na as add,Da as compile,Ca as default,Ra as get,ka as interpret,Ma as setMetaOutputFormat,qa as setShouldMetaValidate,Ta as validate};
2
2
  //# sourceMappingURL=json-schema-esm.min.js.map