!function(e){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=e();elseif("function"==typeofdefine&&define.amd)define([],e);else{varr;r="undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:this,r.Ajv=e()}}(function(){vare;returnfunctione(r,t,a){functions(i,n){if(!t[i]){if(!r[i]){varl="function"==typeofrequire&&require;if(!n&&l)returnl(i,!0);if(o)returno(i,!0);varc=newError("Cannot find module '"+i+"'");throwc.code="MODULE_NOT_FOUND",c}varh=t[i]={exports:{}};r[i][0].call(h.exports,function(e){vart=r[i][1][e];returns(t||e)},h,h.exports,e,r,t,a)}returnt[i].exports}for(varo="function"==typeofrequire&&require,i=0;i<a.length;i++)s(a[i]);returns}({1:[function(e,r,t){"use strict";functiona(e,r){!1!==r&&(r=!0);vart,s=e.async,o=e.transpile;switch(typeofo){case"string":vari=m[o];if(!i)thrownewError("bad transpiler: "+o);returne._transpileFunc=i(e,r);case"undefined":case"boolean":if("string"==typeofs){if(!(t=p[s]))thrownewError("bad async mode: "+s);returne.transpile=t(e,r)}for(varn=0;n<v.length;n++){varl=v[n];if(a(l,!1))returnd.copy(l,e),e.transpile}thrownewError("generators, nodent and regenerator are not available");case"function":returne._transpileFunc=e.transpile;default:thrownewError("bad transpiler: "+o)}}functions(e,r){try{returnnewFunction("(function*(){})()")(),!0}catch(e){if(r)thrownewError("generators not supported")}}functiono(e,r){try{returnnewFunction("(async function(){})()")(),!0}catch(e){if(r)thrownewError("es7 async functions not supported")}}functioni(r,t){try{if(!u){u=e("regenerator"),u.runtime()}returnr.async&&!0!==r.async||(r.async="es7"),n}catch(e){if(t)thrownewError("regenerator not available")}}functionn(e){returnu.compile(e).code}functionl(r,t){try{if(!f){f=e("nodent")({log:!1,dontInstallRequireHook:!0})}return"es7"!=r.async&&(r.async&&!0!==r.async&&console.warn("nodent transpiles only es7 async functions"),r.async="es7"),c}catch(e){if(t)thrownewError("nodent not available")}}functionc(e){returnf.compile(e,"",{promises:!0,sourcemap:!1}).code}functionh(e,r){functiont(e,r,a){functiono(e,t){if(!a)returnr(e,t);setTimeout(function(){r(e,t)})}vari;try{i=s.compile(e)}catch(a){returnvoid(a.missingSchema?function(a){functiono(a,o){if(a)returnr(a);if(!s._refs[i]&&!s._schemas[i])try{s.addSchema(o,i)}catch(e){returnvoidr(e)}t(e,r)}vari=a.missingSchema;if(s._refs[i]||s._schemas[i])returnr(newError("Schema "+i+" is loaded but "+a.missingRef+" cannot be resolved"));varn=s._loadingSchemas[i];n?"function"==typeofn?s._loadingSchemas[i]=[n,o]:n[n.length]=o:(s._loadingSchemas[i]=o,s._opts.loadSchema(i,function(e,r){vart=s._loadingSchemas[i];if(deletes._loadingSchemas[i],"function"==typeoft)t(e,r);elsefor(vara=0;a<t.length;a++)t[a](e,r)}))}(a):o(a))}o(null,i)}vara,s=this;try{a=this._addSchema(e)}catch(e){returnvoidsetTimeout(function(){r(e)})}if(a.validate)setTimeout(function(){r(null,a.validate)});else{if("function"!=typeofthis._opts.loadSchema)thrownewError("options.loadSchema should be a function");t(e,r,!0)}}r.exports={setup:a,compile:h};varu,f,d=e("./compile/util"),p={"*":s,"co*":s,es7:o},m={nodent:l,regenerator:i},v=[{async:"co*"},{async:"es7",transpile:"nodent"},{async:"co*",transpile:"regenerator"}]},{"./compile/util":11}],2:[function(e,r,t){"use strict";vara=r.exports=function(){this._cache={}};a.prototype.put=function(e,r){this._cache[e]=r},a.prototype.get=function(e){returnthis._cache[e]},a.prototype.del=function(e){deletethis._cache[e]},a.prototype.clear=function(){this._cache={}}},{}],3:[function(e,r,t){"use strict";r.exports={$ref:e("../dotjs/ref"),allOf:e("../dotjs/allOf"),anyOf:e("../dotjs/anyOf"),dependencies:e("../dotjs/dependencies"),enum:e("../dotjs/enum"),format:e("../dotjs/format"),items:e("../dotjs/items"),maximum:e("../dotjs/_limit"),minimum:e("../dotjs/_limit"),maxItems:e("../dotjs/_limitItems"),minItems:e("../dotjs/_limitItems"),maxLength:e("../dotjs/_limitLength"),minLength:e("../dotjs/_limitLength"),maxProperties:e("../dotjs/_limitProperties"),
;t+=" "+Y+" } "}}l&&(t+=" if ("+p+") { ",d+="}")}}varne=E;if(ne)for(varV,le=-1,ce=ne.length-1;le<ce;){V=ne[le+=1];varte=P[V];if(e.util.schemaHasRules(te,e.RULES.all)){f.schema=te,f.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(V),f.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(V),t+=" for (var "+m+" in "+c+") { ",_&&(t+=" if (!Object.prototype.hasOwnProperty.call("+c+", "+m+")) continue; "),t+=" if ("+e.usePattern(V)+".test("+m+")) { ",f.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);varZ=c+"["+m+"]";f.dataPathArr[v]=m;varY=e.validate(f);f.baseId=O,e.util.varOccurences(Y,y)<2?t+=" "+e.util.varReplace(Y,y,Z)+" ":t+=" var "+y+" = "+Z+"; "+Y+" ",l&&(t+=" if (!"+p+") break; "),t+=" } ",l&&(t+=" else "+p+" = true; "),t+=" } ",l&&(t+=" if ("+p+") { ",d+="}")}}if(e.opts.v5){varhe=k;if(he)for(varM,ue=-1,fe=he.length-1;ue<fe;){M=he[ue+=1];varde=A[M],te=de.schema;if(e.util.schemaHasRules(te,e.RULES.all)){f.schema=te,f.schemaPath=e.schemaPath+".patternGroups"+e.util.getProperty(M)+".schema",f.errSchemaPath=e.errSchemaPath+"/patternGroups/"+e.util.escapeFragment(M)+"/schema",t+=" var pgPropCount"+a+" = 0; for (var "+m+" in "+c+") { ",_&&(t+=" if (!Object.prototype.hasOwnProperty.call("+c+", "+m+")) continue; "),t+=" if ("+e.usePattern(M)+".test("+m+")) { pgPropCount"+a+"++; ",f.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);varZ=c+"["+m+"]";f.dataPathArr[v]=m;varY=e.validate(f);f.baseId=O,e.util.varOccurences(Y,y)<2?t+=" "+e.util.varReplace(Y,y,Z)+" ":t+=" var "+y+" = "+Z+"; "+Y+" ",l&&(t+=" if (!"+p+") break; "),t+=" } ",l&&(t+=" else "+p+" = true; "),t+=" } ",l&&(t+=" if ("+p+") { ",d+="}");varpe=de.minimum,me=de.maximum;if(void0!==pe||void0!==me){t+=" var "+h+" = true; ";varJ=n;if(void0!==pe){varve=pe,ye="minimum",ge="less";t+=" "+h+" = pgPropCount"+a+" >= "+pe+"; ",n=e.errSchemaPath+"/patternGroups/minimum",t+=" if (!"+h+") { ";varG=G||[];G.push(t),t="",!1!==e.createErrors?(t+=" { keyword: 'patternGroups' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: { reason: '"+ye+"', limit: "+ve+", pattern: '"+e.util.escapeQuotes(M)+"' } ",!1!==e.opts.messages&&(t+=" , message: 'should NOT have "+ge+" than "+ve+' properties matching pattern "'+e.util.escapeQuotes(M)+"\"' "),e.opts.verbose&&(t+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";varK=t;t=G.pop(),t+=!e.compositeRule&&l?e.async?" throw new ValidationError(["+K+"]); ":" validate.errors = ["+K+"]; return false; ":" var err = "+K+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",void0!==me&&(t+=" else ")}if(void0!==me){varve=me,ye="maximum",ge="more";t+=" "+h+" = pgPropCount"+a+" <= "+me+"; ",n=e.errSchemaPath+"/patternGroups/maximum",t+=" if (!"+h+") { ";varG=G||[];G.push(t),t="",!1!==e.createErrors?(t+=" { keyword: 'patternGroups' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: { reason: '"+ye+"', limit: "+ve+", pattern: '"+e.util.escapeQuotes(M)+"' } ",!1!==e.opts.messages&&(t+=" , message: 'should NOT have "+ge+" than "+ve+' properties matching pattern "'+e.util.escapeQuotes(M)+"\"' "),e.opts.verbose&&(t+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";varK=t;t=G.pop(),t+=!e.compositeRule&&l?e.async?" throw new ValidationError(["+K+"]); ":" validate.errors = ["+K+"]; return false; ":" var err = "+K+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } "}n=J,l&&(t+=" if ("+h+") { ",d+="}")}}}}returnl&&(t+=" "+d+" if ("+u+" == errors) {"),t=e.util.cleanUpCode(t)}},{}],32:[function(e,r,t){"use strict";r.exports=function(e,r){vart,a,s=" ",o=e.level,i=e.dataLevel,n=e.schema[r],l=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,h="data"+(i||""),u="valid"+o;if("#"==n||"#/"==n)e.isRoot?(t=e.async,a="validate"):(t=!0===e.root.schema.$async,a="root.refVal[0]");else{varf=e.r
41:[function(e,r,t){functiona(e){varr=this,t=f.call(arguments,1);returnnewPromise(function(a,o){functioni(r){vart;try{t=e.next(r)}catch(e){returno(e)}c(t)}functionn(r){vart;try{t=e.throw(r)}catch(e){returno(e)}c(t)}functionc(e){if(e.done)returna(e.value);vart=s.call(r,e.value);returnt&&l(t)?t.then(i,n):n(newTypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(e.value)+'"'))}if("function"==typeofe&&(e=e.apply(r,t)),!e||"function"!=typeofe.next)returna(e);i()})}functions(e){returne?l(e)?e:h(e)||c(e)?a.call(this,e):"function"==typeofe?o.call(this,e):Array.isArray(e)?i.call(this,e):u(e)?n.call(this,e):e:e}functiono(e){varr=this;returnnewPromise(function(t,a){e.call(r,function(e,r){if(e)returna(e);arguments.length>2&&(r=f.call(arguments,1)),t(r)})})}functioni(e){returnPromise.all(e.map(s,this))}functionn(e){for(varr=newe.constructor,t=Object.keys(e),a=[],o=0;o<t.length;o++){vari=t[o],n=s.call(this,e[i]);n&&l(n)?function(e,t){r[t]=void0,a.push(e.then(function(e){r[t]=e}))}(n,i):r[i]=e[i]}returnPromise.all(a).then(function(){returnr})}functionl(e){return"function"==typeofe.then}functionc(e){return"function"==typeofe.next&&"function"==typeofe.throw}functionh(e){varr=e.constructor;return!!r&&("GeneratorFunction"===r.name||"GeneratorFunction"===r.displayName||c(r.prototype))}functionu(e){returnObject==e.constructor}varf=Array.prototype.slice;r.exports=a.default=a.co=a,a.wrap=function(e){functionr(){returna.call(this,e.apply(this,arguments))}returnr.__generatorFunction__=e,r}},{}],42:[function(e,r,t){vara="undefined"!=typeofJSON?JSON:e("jsonify");r.exports=function(e,r){r||(r={}),"function"==typeofr&&(r={cmp:r});vart=r.space||"";"number"==typeoft&&(t=Array(t+1).join(" "));vari="boolean"==typeofr.cycles&&r.cycles,n=r.replacer||function(e,r){returnr},l=r.cmp&&function(e){returnfunction(r){returnfunction(t,a){returne({key:t,value:r[t]},{key:a,value:r[a]})}}}(r.cmp),c=[];returnfunctione(r,h,u,f){vard=t?"\n"+newArray(f+1).join(t):"",p=t?": ":":";if(u&&u.toJSON&&"function"==typeofu.toJSON&&(u=u.toJSON()),void0!==(u=n.call(r,h,u))){if("object"!=typeofu||null===u)returna.stringify(u);if(s(u)){for(varm=[],v=0;v<u.length;v++){vary=e(u,v,u[v],f+1)||a.stringify(null);m.push(d+t+y)}return"["+m.join(",")+d+"]"}if(-1!==c.indexOf(u)){if(i)returna.stringify("__cycle__");thrownewTypeError("Converting circular structure to JSON")}c.push(u);for(varg=o(u).sort(l&&l(u)),m=[],v=0;v<g.length;v++){varh=g[v],P=e(u,h,u[h],f+1);if(P){varE=a.stringify(h)+p+P;m.push(d+t+E)}}returnc.splice(c.indexOf(u),1),"{"+m.join(",")+d+"}"}}({"":e},"",e,0)};vars=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},o=Object.keys||function(e){varr=Object.prototype.hasOwnProperty||function(){return!0},t=[];for(varaine)r.call(e,a)&&t.push(a);returnt}},{jsonify:43}],43:[function(e,r,t){t.parse=e("./lib/parse"),t.stringify=e("./lib/stringify")},{"./lib/parse":44,"./lib/stringify":45}],44:[function(e,r,t){vara,s,o,i,n={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},l=function(e){throw{name:"SyntaxError",message:e,at:a,text:o}},c=function(e){returne&&e!==s&&l("Expected '"+e+"' instead of '"+s+"'"),s=o.charAt(a),a+=1,s},h=function(){vare,r="";for("-"===s&&(r="-",c("-"));s>="0"&&s<="9";)r+=s,c();if("."===s)for(r+=".";c()&&s>="0"&&s<="9";)r+=s;if("e"===s||"E"===s)for(r+=s,c(),"-"!==s&&"+"!==s||(r+=s,c());s>="0"&&s<="9";)r+=s,c();if(e=+r,isFinite(e))returne;l("Bad number")},u=function(){vare,r,t,a="";if('"'===s)for(;c();){if('"'===s)returnc(),a;if("\\"===s)if(c(),"u"===s){for(t=0,r=0;r<4&&(e=parseInt(c(),16),isFinite(e));r+=1)t=16*t+e;a+=String.fromCharCode(t)}else{if("string"!=typeofn[s])break;a+=n[s]}elsea+=s}l("Bad string")},f=function(){for(;s&&s<=" ";)c()},d=function(){switch(s){case"t":returnc("t"),c("r"),c("u"),c("e"),!0;case"f":returnc("f"),c("a"),c("l"),c("s"),c("e"),!1;case"n":returnc("n"),c("u"),c("l"),c("l"),null}l("Unexpected '"+s+"'")},p=function(){vare=[];if("["===s){if(c