UNPKG

@easingwizard/mcp-server

Version:

Model Context Protocol (MCP) server for the Easing Wizard API - enables generation of various CSS easing curves: Bézier, Spring, Bounce, Wiggle, and Overshoot

2 lines 554 kB
#!/usr/bin/env node var ug=Object.create;var Fo=Object.defineProperty;var lg=Object.getOwnPropertyDescriptor;var dg=Object.getOwnPropertyNames;var pg=Object.getPrototypeOf,mg=Object.prototype.hasOwnProperty;var te=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),lt=(t,e)=>{for(var n in e)Fo(t,n,{get:e[n],enumerable:!0})},fg=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of dg(e))!mg.call(t,r)&&r!==n&&Fo(t,r,{get:()=>e[r],enumerable:!(i=lg(e,r))||i.enumerable});return t};var hg=(t,e,n)=>(n=t!=null?ug(pg(t)):{},fg(e||!t||!t.__esModule?Fo(n,"default",{value:t,enumerable:!0}):n,t));var Up=te((ai,Dp)=>{(function(t,e){typeof ai=="object"&&typeof Dp<"u"?e(ai):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(ai,function(t){"use strict";function e(){for(var _=arguments.length,h=Array(_),x=0;x<_;x++)h[x]=arguments[x];if(h.length>1){h[0]=h[0].slice(0,-1);for(var w=h.length-1,E=1;E<w;++E)h[E]=h[E].slice(1,-1);return h[w]=h[w].slice(1),h.join("")}else return h[0]}function n(_){return"(?:"+_+")"}function i(_){return _===void 0?"undefined":_===null?"null":Object.prototype.toString.call(_).split(" ").pop().split("]").shift().toLowerCase()}function r(_){return _.toUpperCase()}function a(_){return _!=null?_ instanceof Array?_:typeof _.length!="number"||_.split||_.setInterval||_.call?[_]:Array.prototype.slice.call(_):[]}function o(_,h){var x=_;if(h)for(var w in h)x[w]=h[w];return x}function s(_){var h="[A-Za-z]",x="[\\x0D]",w="[0-9]",E="[\\x22]",M=e(w,"[A-Fa-f]"),oe="[\\x0A]",fe="[\\x20]",_e=n(n("%[EFef]"+M+"%"+M+M+"%"+M+M)+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+n("\\%25|\\%(?!"+M+"{2})")+nn),tg=n("[vV]"+M+"+\\."+e(ge,me,"[\\:]")+"+"),ng=n("\\["+n(Et+"|"+Jr+"|"+tg)+"\\]"),rp=n(n(_e+"|"+e(ge,me))+"*"),Ln=n(ng+"|"+gr+"(?!"+rp+")|"+rp),Fn=n(w+"*"),tp=n(n($e+"@")+"?"+Ln+n("\\:"+Fn)+"?"),Mn=n(_e+"|"+e(ge,me,"[\\:\\@]")),ag=n(Mn+"*"),np=n(Mn+"+"),ig=n(n(_e+"|"+e(ge,me,"[\\@]"))+"+"),Kr=n(n("\\/"+ag)+"*"),an=n("\\/"+n(np+Kr)+"?"),Lo=n(ig+Kr),Va=n(np+Kr),on="(?!"+Mn+")",B5=n(Kr+"|"+an+"|"+Lo+"|"+Va+"|"+on),sn=n(n(Mn+"|"+e("[\\/\\?]",ke))+"*"),Vn=n(n(Mn+"|[\\/\\?]")+"*"),ap=n(n("\\/\\/"+tp+Kr)+"|"+an+"|"+Va+"|"+on),og=n(Te+"\\:"+ap+n("\\?"+sn)+"?"+n("\\#"+Vn)+"?"),sg=n(n("\\/\\/"+tp+Kr)+"|"+an+"|"+Lo+"|"+on),cg=n(sg+n("\\?"+sn)+"?"+n("\\#"+Vn)+"?"),H5=n(og+"|"+cg),q5=n(Te+"\\:"+ap+n("\\?"+sn)+"?"),G5="^("+Te+")\\:"+n(n("\\/\\/("+n("("+$e+")@")+"?("+Ln+")"+n("\\:("+Fn+")")+"?)")+"?("+Kr+"|"+an+"|"+Va+"|"+on+")")+n("\\?("+sn+")")+"?"+n("\\#("+Vn+")")+"?$",W5="^(){0}"+n(n("\\/\\/("+n("("+$e+")@")+"?("+Ln+")"+n("\\:("+Fn+")")+"?)")+"?("+Kr+"|"+an+"|"+Lo+"|"+on+")")+n("\\?("+sn+")")+"?"+n("\\#("+Vn+")")+"?$",J5="^("+Te+")\\:"+n(n("\\/\\/("+n("("+$e+")@")+"?("+Ln+")"+n("\\:("+Fn+")")+"?)")+"?("+Kr+"|"+an+"|"+Va+"|"+on+")")+n("\\?("+sn+")")+"?$",K5="^"+n("\\#("+Vn+")")+"?$",Y5="^"+n("("+$e+")@")+"?("+Ln+")"+n("\\:("+Fn+")")+"?$";return{NOT_SCHEME:new RegExp(e("[^]",h,w,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",ge,me),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",ge,me),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",ge,me),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",ge,me),"g"),NOT_QUERY:new RegExp(e("[^\\%]",ge,me,"[\\:\\@\\/\\?]",ke),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",ge,me,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",ge,me),"g"),UNRESERVED:new RegExp(ge,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",ge,ze),"g"),PCT_ENCODED:new RegExp(_e,"g"),IPV4ADDRESS:new RegExp("^("+gr+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Jr+")"+n(n("\\%25|\\%(?!"+M+"{2})")+"("+nn+")")+"?\\]?$")}}var c=s(!1),d=s(!0),m=function(){function _(h,x){var w=[],E=!0,M=!1,oe=void 0;try{for(var fe=h[Symbol.iterator](),_e;!(E=(_e=fe.next()).done)&&(w.push(_e.value),!(x&&w.length===x));E=!0);}catch(Le){M=!0,oe=Le}finally{try{!E&&fe.return&&fe.return()}finally{if(M)throw oe}}return w}return function(h,x){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return _(h,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(_){if(Array.isArray(_)){for(var h=0,x=Array(_.length);h<_.length;h++)x[h]=_[h];return x}else return Array.from(_)},g=2147483647,l=36,f=1,y=26,v=38,$=700,P=72,I=128,O="-",N=/^xn--/,R=/[^\0-\x7E]/,J=/[\x2E\u3002\uFF0E\uFF61]/g,q={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},U=l-f,G=Math.floor,H=String.fromCharCode;function V(_){throw new RangeError(q[_])}function j(_,h){for(var x=[],w=_.length;w--;)x[w]=h(_[w]);return x}function A(_,h){var x=_.split("@"),w="";x.length>1&&(w=x[0]+"@",_=x[1]),_=_.replace(J,".");var E=_.split("."),M=j(E,h).join(".");return w+M}function B(_){for(var h=[],x=0,w=_.length;x<w;){var E=_.charCodeAt(x++);if(E>=55296&&E<=56319&&x<w){var M=_.charCodeAt(x++);(M&64512)==56320?h.push(((E&1023)<<10)+(M&1023)+65536):(h.push(E),x--)}else h.push(E)}return h}var xe=function(h){return String.fromCodePoint.apply(String,p(h))},le=function(h){return h-48<10?h-22:h-65<26?h-65:h-97<26?h-97:l},pe=function(h,x){return h+22+75*(h<26)-((x!=0)<<5)},ce=function(h,x,w){var E=0;for(h=w?G(h/$):h>>1,h+=G(h/x);h>U*y>>1;E+=l)h=G(h/U);return G(E+(U+1)*h/(h+v))},K=function(h){var x=[],w=h.length,E=0,M=I,oe=P,fe=h.lastIndexOf(O);fe<0&&(fe=0);for(var _e=0;_e<fe;++_e)h.charCodeAt(_e)>=128&&V("not-basic"),x.push(h.charCodeAt(_e));for(var Le=fe>0?fe+1:0;Le<w;){for(var me=E,ze=1,Fe=l;;Fe+=l){Le>=w&&V("invalid-input");var ke=le(h.charCodeAt(Le++));(ke>=l||ke>G((g-E)/ze))&&V("overflow"),E+=ke*ze;var ge=Fe<=oe?f:Fe>=oe+y?y:Fe-oe;if(ke<ge)break;var Te=l-ge;ze>G(g/Te)&&V("overflow"),ze*=Te}var $e=x.length+1;oe=ce(E-me,$e,me==0),G(E/$e)>g-M&&V("overflow"),M+=G(E/$e),E%=$e,x.splice(E++,0,M)}return String.fromCodePoint.apply(String,x)},Ne=function(h){var x=[];h=B(h);var w=h.length,E=I,M=0,oe=P,fe=!0,_e=!1,Le=void 0;try{for(var me=h[Symbol.iterator](),ze;!(fe=(ze=me.next()).done);fe=!0){var Fe=ze.value;Fe<128&&x.push(H(Fe))}}catch(Et){_e=!0,Le=Et}finally{try{!fe&&me.return&&me.return()}finally{if(_e)throw Le}}var ke=x.length,ge=ke;for(ke&&x.push(O);ge<w;){var Te=g,$e=!0,It=!1,lr=void 0;try{for(var gr=h[Symbol.iterator](),Se;!($e=(Se=gr.next()).done);$e=!0){var dr=Se.value;dr>=E&&dr<Te&&(Te=dr)}}catch(Et){It=!0,lr=Et}finally{try{!$e&&gr.return&&gr.return()}finally{if(It)throw lr}}var yr=ge+1;Te-E>G((g-M)/yr)&&V("overflow"),M+=(Te-E)*yr,E=Te;var jr=!0,wt=!1,Wr=void 0;try{for(var Zn=h[Symbol.iterator](),Fa;!(jr=(Fa=Zn.next()).done);jr=!0){var Ma=Fa.value;if(Ma<E&&++M>g&&V("overflow"),Ma==E){for(var rn=M,tn=l;;tn+=l){var Jr=tn<=oe?f:tn>=oe+y?y:tn-oe;if(rn<Jr)break;var nn=rn-Jr,Zo=l-Jr;x.push(H(pe(Jr+nn%Zo,0))),rn=G(nn/Zo)}x.push(H(pe(rn,0))),oe=ce(M,yr,ge==ke),M=0,++ge}}}catch(Et){wt=!0,Wr=Et}finally{try{!jr&&Zn.return&&Zn.return()}finally{if(wt)throw Wr}}++M,++E}return x.join("")},We=function(h){return A(h,function(x){return N.test(x)?K(x.slice(4).toLowerCase()):x})},Ye=function(h){return A(h,function(x){return R.test(x)?"xn--"+Ne(x):x})},ve={version:"2.1.0",ucs2:{decode:B,encode:xe},decode:K,encode:Ne,toASCII:Ye,toUnicode:We},Ae={};function He(_){var h=_.charCodeAt(0),x=void 0;return h<16?x="%0"+h.toString(16).toUpperCase():h<128?x="%"+h.toString(16).toUpperCase():h<2048?x="%"+(h>>6|192).toString(16).toUpperCase()+"%"+(h&63|128).toString(16).toUpperCase():x="%"+(h>>12|224).toString(16).toUpperCase()+"%"+(h>>6&63|128).toString(16).toUpperCase()+"%"+(h&63|128).toString(16).toUpperCase(),x}function Qe(_){for(var h="",x=0,w=_.length;x<w;){var E=parseInt(_.substr(x+1,2),16);if(E<128)h+=String.fromCharCode(E),x+=3;else if(E>=194&&E<224){if(w-x>=6){var M=parseInt(_.substr(x+4,2),16);h+=String.fromCharCode((E&31)<<6|M&63)}else h+=_.substr(x,6);x+=6}else if(E>=224){if(w-x>=9){var oe=parseInt(_.substr(x+4,2),16),fe=parseInt(_.substr(x+7,2),16);h+=String.fromCharCode((E&15)<<12|(oe&63)<<6|fe&63)}else h+=_.substr(x,9);x+=9}else h+=_.substr(x,3),x+=3}return h}function ct(_,h){function x(w){var E=Qe(w);return E.match(h.UNRESERVED)?E:w}return _.scheme&&(_.scheme=String(_.scheme).replace(h.PCT_ENCODED,x).toLowerCase().replace(h.NOT_SCHEME,"")),_.userinfo!==void 0&&(_.userinfo=String(_.userinfo).replace(h.PCT_ENCODED,x).replace(h.NOT_USERINFO,He).replace(h.PCT_ENCODED,r)),_.host!==void 0&&(_.host=String(_.host).replace(h.PCT_ENCODED,x).toLowerCase().replace(h.NOT_HOST,He).replace(h.PCT_ENCODED,r)),_.path!==void 0&&(_.path=String(_.path).replace(h.PCT_ENCODED,x).replace(_.scheme?h.NOT_PATH:h.NOT_PATH_NOSCHEME,He).replace(h.PCT_ENCODED,r)),_.query!==void 0&&(_.query=String(_.query).replace(h.PCT_ENCODED,x).replace(h.NOT_QUERY,He).replace(h.PCT_ENCODED,r)),_.fragment!==void 0&&(_.fragment=String(_.fragment).replace(h.PCT_ENCODED,x).replace(h.NOT_FRAGMENT,He).replace(h.PCT_ENCODED,r)),_}function qr(_){return _.replace(/^0*(.*)/,"$1")||"0"}function Ze(_,h){var x=_.match(h.IPV4ADDRESS)||[],w=m(x,2),E=w[1];return E?E.split(".").map(qr).join("."):_}function je(_,h){var x=_.match(h.IPV6ADDRESS)||[],w=m(x,3),E=w[1],M=w[2];if(E){for(var oe=E.toLowerCase().split("::").reverse(),fe=m(oe,2),_e=fe[0],Le=fe[1],me=Le?Le.split(":").map(qr):[],ze=_e.split(":").map(qr),Fe=h.IPV4ADDRESS.test(ze[ze.length-1]),ke=Fe?7:8,ge=ze.length-ke,Te=Array(ke),$e=0;$e<ke;++$e)Te[$e]=me[$e]||ze[ge+$e]||"";Fe&&(Te[ke-1]=Ze(Te[ke-1],h));var It=Te.reduce(function(yr,jr,wt){if(!jr||jr==="0"){var Wr=yr[yr.length-1];Wr&&Wr.index+Wr.length===wt?Wr.length++:yr.push({index:wt,length:1})}return yr},[]),lr=It.sort(function(yr,jr){return jr.length-yr.length})[0],gr=void 0;if(lr&&lr.length>1){var Se=Te.slice(0,lr.index),dr=Te.slice(lr.index+lr.length);gr=Se.join(":")+"::"+dr.join(":")}else gr=Te.join(":");return M&&(gr+="%"+M),gr}else return _}var bt=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Je="".match(/(){0}/)[1]===void 0;function ye(_){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x={},w=h.iri!==!1?d:c;h.reference==="suffix"&&(_=(h.scheme?h.scheme+":":"")+"//"+_);var E=_.match(bt);if(E){Je?(x.scheme=E[1],x.userinfo=E[3],x.host=E[4],x.port=parseInt(E[5],10),x.path=E[6]||"",x.query=E[7],x.fragment=E[8],isNaN(x.port)&&(x.port=E[5])):(x.scheme=E[1]||void 0,x.userinfo=_.indexOf("@")!==-1?E[3]:void 0,x.host=_.indexOf("//")!==-1?E[4]:void 0,x.port=parseInt(E[5],10),x.path=E[6]||"",x.query=_.indexOf("?")!==-1?E[7]:void 0,x.fragment=_.indexOf("#")!==-1?E[8]:void 0,isNaN(x.port)&&(x.port=_.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?E[4]:void 0)),x.host&&(x.host=je(Ze(x.host,w),w)),x.scheme===void 0&&x.userinfo===void 0&&x.host===void 0&&x.port===void 0&&!x.path&&x.query===void 0?x.reference="same-document":x.scheme===void 0?x.reference="relative":x.fragment===void 0?x.reference="absolute":x.reference="uri",h.reference&&h.reference!=="suffix"&&h.reference!==x.reference&&(x.error=x.error||"URI is not a "+h.reference+" reference.");var M=Ae[(h.scheme||x.scheme||"").toLowerCase()];if(!h.unicodeSupport&&(!M||!M.unicodeSupport)){if(x.host&&(h.domainHost||M&&M.domainHost))try{x.host=ve.toASCII(x.host.replace(w.PCT_ENCODED,Qe).toLowerCase())}catch(oe){x.error=x.error||"Host's domain name can not be converted to ASCII via punycode: "+oe}ct(x,c)}else ct(x,w);M&&M.parse&&M.parse(x,h)}else x.error=x.error||"URI can not be parsed.";return x}function ut(_,h){var x=h.iri!==!1?d:c,w=[];return _.userinfo!==void 0&&(w.push(_.userinfo),w.push("@")),_.host!==void 0&&w.push(je(Ze(String(_.host),x),x).replace(x.IPV6ADDRESS,function(E,M,oe){return"["+M+(oe?"%25"+oe:"")+"]"})),(typeof _.port=="number"||typeof _.port=="string")&&(w.push(":"),w.push(String(_.port))),w.length?w.join(""):void 0}var Gr=/^\.\.?\//,$t=/^\/\.(\/|$)/,St=/^\/\.\.(\/|$)/,qe=/^\/?(?:.|\n)*?(?=\/|$)/;function vr(_){for(var h=[];_.length;)if(_.match(Gr))_=_.replace(Gr,"");else if(_.match($t))_=_.replace($t,"/");else if(_.match(St))_=_.replace(St,"/"),h.pop();else if(_==="."||_==="..")_="";else{var x=_.match(qe);if(x){var w=x[0];_=_.slice(w.length),h.push(w)}else throw new Error("Unexpected dot segment condition")}return h.join("")}function tr(_){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=h.iri?d:c,w=[],E=Ae[(h.scheme||_.scheme||"").toLowerCase()];if(E&&E.serialize&&E.serialize(_,h),_.host&&!x.IPV6ADDRESS.test(_.host)){if(h.domainHost||E&&E.domainHost)try{_.host=h.iri?ve.toUnicode(_.host):ve.toASCII(_.host.replace(x.PCT_ENCODED,Qe).toLowerCase())}catch(fe){_.error=_.error||"Host's domain name can not be converted to "+(h.iri?"Unicode":"ASCII")+" via punycode: "+fe}}ct(_,x),h.reference!=="suffix"&&_.scheme&&(w.push(_.scheme),w.push(":"));var M=ut(_,h);if(M!==void 0&&(h.reference!=="suffix"&&w.push("//"),w.push(M),_.path&&_.path.charAt(0)!=="/"&&w.push("/")),_.path!==void 0){var oe=_.path;!h.absolutePath&&(!E||!E.absolutePath)&&(oe=vr(oe)),M===void 0&&(oe=oe.replace(/^\/\//,"/%2F")),w.push(oe)}return _.query!==void 0&&(w.push("?"),w.push(_.query)),_.fragment!==void 0&&(w.push("#"),w.push(_.fragment)),w.join("")}function Xe(_,h){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},w=arguments[3],E={};return w||(_=ye(tr(_,x),x),h=ye(tr(h,x),x)),x=x||{},!x.tolerant&&h.scheme?(E.scheme=h.scheme,E.userinfo=h.userinfo,E.host=h.host,E.port=h.port,E.path=vr(h.path||""),E.query=h.query):(h.userinfo!==void 0||h.host!==void 0||h.port!==void 0?(E.userinfo=h.userinfo,E.host=h.host,E.port=h.port,E.path=vr(h.path||""),E.query=h.query):(h.path?(h.path.charAt(0)==="/"?E.path=vr(h.path):((_.userinfo!==void 0||_.host!==void 0||_.port!==void 0)&&!_.path?E.path="/"+h.path:_.path?E.path=_.path.slice(0,_.path.lastIndexOf("/")+1)+h.path:E.path=h.path,E.path=vr(E.path)),E.query=h.query):(E.path=_.path,h.query!==void 0?E.query=h.query:E.query=_.query),E.userinfo=_.userinfo,E.host=_.host,E.port=_.port),E.scheme=_.scheme),E.fragment=h.fragment,E}function Tr(_,h,x){var w=o({scheme:"null"},x);return tr(Xe(ye(_,w),ye(h,w),w,!0),w)}function ur(_,h){return typeof _=="string"?_=tr(ye(_,h),h):i(_)==="object"&&(_=ye(tr(_,h),h)),_}function La(_,h,x){return typeof _=="string"?_=tr(ye(_,x),x):i(_)==="object"&&(_=tr(_,x)),typeof h=="string"?h=tr(ye(h,x),x):i(h)==="object"&&(h=tr(h,x)),_===h}function Uo(_,h){return _&&_.toString().replace(!h||!h.iri?c.ESCAPE:d.ESCAPE,He)}function wr(_,h){return _&&_.toString().replace(!h||!h.iri?c.PCT_ENCODED:d.PCT_ENCODED,Qe)}var Un={scheme:"http",domainHost:!0,parse:function(h,x){return h.host||(h.error=h.error||"HTTP URIs must have a host."),h},serialize:function(h,x){var w=String(h.scheme).toLowerCase()==="https";return(h.port===(w?443:80)||h.port==="")&&(h.port=void 0),h.path||(h.path="/"),h}},Gd={scheme:"https",domainHost:Un.domainHost,parse:Un.parse,serialize:Un.serialize};function Wd(_){return typeof _.secure=="boolean"?_.secure:String(_.scheme).toLowerCase()==="wss"}var An={scheme:"ws",domainHost:!0,parse:function(h,x){var w=h;return w.secure=Wd(w),w.resourceName=(w.path||"/")+(w.query?"?"+w.query:""),w.path=void 0,w.query=void 0,w},serialize:function(h,x){if((h.port===(Wd(h)?443:80)||h.port==="")&&(h.port=void 0),typeof h.secure=="boolean"&&(h.scheme=h.secure?"wss":"ws",h.secure=void 0),h.resourceName){var w=h.resourceName.split("?"),E=m(w,2),M=E[0],oe=E[1];h.path=M&&M!=="/"?M:void 0,h.query=oe,h.resourceName=void 0}return h.fragment=void 0,h}},Jd={scheme:"wss",domainHost:An.domainHost,parse:An.parse,serialize:An.serialize},Bv={},Hv=!0,Kd="[A-Za-z0-9\\-\\.\\_\\~"+(Hv?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Nr="[0-9A-Fa-f]",qv=n(n("%[EFef]"+Nr+"%"+Nr+Nr+"%"+Nr+Nr)+"|"+n("%[89A-Fa-f]"+Nr+"%"+Nr+Nr)+"|"+n("%"+Nr+Nr)),Gv="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Wv="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Jv=e(Wv,'[\\"\\\\]'),Kv="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Yv=new RegExp(Kd,"g"),en=new RegExp(qv,"g"),Qv=new RegExp(e("[^]",Gv,"[\\.]",'[\\"]',Jv),"g"),Yd=new RegExp(e("[^]",Kd,Kv),"g"),Xv=Yd;function Ao(_){var h=Qe(_);return h.match(Yv)?h:_}var Qd={scheme:"mailto",parse:function(h,x){var w=h,E=w.to=w.path?w.path.split(","):[];if(w.path=void 0,w.query){for(var M=!1,oe={},fe=w.query.split("&"),_e=0,Le=fe.length;_e<Le;++_e){var me=fe[_e].split("=");switch(me[0]){case"to":for(var ze=me[1].split(","),Fe=0,ke=ze.length;Fe<ke;++Fe)E.push(ze[Fe]);break;case"subject":w.subject=wr(me[1],x);break;case"body":w.body=wr(me[1],x);break;default:M=!0,oe[wr(me[0],x)]=wr(me[1],x);break}}M&&(w.headers=oe)}w.query=void 0;for(var ge=0,Te=E.length;ge<Te;++ge){var $e=E[ge].split("@");if($e[0]=wr($e[0]),x.unicodeSupport)$e[1]=wr($e[1],x).toLowerCase();else try{$e[1]=ve.toASCII(wr($e[1],x).toLowerCase())}catch(It){w.error=w.error||"Email address's domain name can not be converted to ASCII via punycode: "+It}E[ge]=$e.join("@")}return w},serialize:function(h,x){var w=h,E=a(h.to);if(E){for(var M=0,oe=E.length;M<oe;++M){var fe=String(E[M]),_e=fe.lastIndexOf("@"),Le=fe.slice(0,_e).replace(en,Ao).replace(en,r).replace(Qv,He),me=fe.slice(_e+1);try{me=x.iri?ve.toUnicode(me):ve.toASCII(wr(me,x).toLowerCase())}catch(ge){w.error=w.error||"Email address's domain name can not be converted to "+(x.iri?"Unicode":"ASCII")+" via punycode: "+ge}E[M]=Le+"@"+me}w.path=E.join(",")}var ze=h.headers=h.headers||{};h.subject&&(ze.subject=h.subject),h.body&&(ze.body=h.body);var Fe=[];for(var ke in ze)ze[ke]!==Bv[ke]&&Fe.push(ke.replace(en,Ao).replace(en,r).replace(Yd,He)+"="+ze[ke].replace(en,Ao).replace(en,r).replace(Xv,He));return Fe.length&&(w.query=Fe.join("&")),w}},eg=/^([^\:]+)\:(.*)/,Xd={scheme:"urn",parse:function(h,x){var w=h.path&&h.path.match(eg),E=h;if(w){var M=x.scheme||E.scheme||"urn",oe=w[1].toLowerCase(),fe=w[2],_e=M+":"+(x.nid||oe),Le=Ae[_e];E.nid=oe,E.nss=fe,E.path=void 0,Le&&(E=Le.parse(E,x))}else E.error=E.error||"URN can not be parsed.";return E},serialize:function(h,x){var w=x.scheme||h.scheme||"urn",E=h.nid,M=w+":"+(x.nid||E),oe=Ae[M];oe&&(h=oe.serialize(h,x));var fe=h,_e=h.nss;return fe.path=(E||x.nid)+":"+_e,fe}},rg=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,ep={scheme:"urn:uuid",parse:function(h,x){var w=h;return w.uuid=w.nss,w.nss=void 0,!x.tolerant&&(!w.uuid||!w.uuid.match(rg))&&(w.error=w.error||"UUID is not valid."),w},serialize:function(h,x){var w=h;return w.nss=(h.uuid||"").toLowerCase(),w}};Ae[Un.scheme]=Un,Ae[Gd.scheme]=Gd,Ae[An.scheme]=An,Ae[Jd.scheme]=Jd,Ae[Qd.scheme]=Qd,Ae[Xd.scheme]=Xd,Ae[ep.scheme]=ep,t.SCHEMES=Ae,t.pctEncChar=He,t.pctDecChars=Qe,t.parse=ye,t.removeDotSegments=vr,t.serialize=tr,t.resolveComponents=Xe,t.resolve=Tr,t.normalize=ur,t.equal=La,t.escapeComponent=Uo,t.unescapeComponent=wr,Object.defineProperty(t,"__esModule",{value:!0})})});var ii=te((Db,Ap)=>{"use strict";Ap.exports=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var i,r,a;if(Array.isArray(e)){if(i=e.length,i!=n.length)return!1;for(r=i;r--!==0;)if(!t(e[r],n[r]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(a=Object.keys(e),i=a.length,i!==Object.keys(n).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[r]))return!1;for(r=i;r--!==0;){var o=a[r];if(!t(e[o],n[o]))return!1}return!0}return e!==e&&n!==n}});var Lp=te((Ub,Zp)=>{"use strict";Zp.exports=function(e){for(var n=0,i=e.length,r=0,a;r<i;)n++,a=e.charCodeAt(r++),a>=55296&&a<=56319&&r<i&&(a=e.charCodeAt(r),(a&64512)==56320&&r++);return n}});var Vt=te((Ab,Vp)=>{"use strict";Vp.exports={copy:$y,checkDataType:as,checkDataTypes:Sy,coerceToTypes:Iy,toHash:os,getProperty:ss,escapeQuotes:cs,equal:ii(),ucs2length:Lp(),varOccurences:Py,varReplace:ky,schemaHasRules:Oy,schemaHasRulesExcept:zy,schemaUnknownRules:Ty,toQuotedString:is,getPathExpr:Ny,getPath:jy,getData:Dy,unescapeFragment:Uy,unescapeJsonPointer:ls,escapeFragment:Ay,escapeJsonPointer:us};function $y(t,e){e=e||{};for(var n in t)e[n]=t[n];return e}function as(t,e,n,i){var r=i?" !== ":" === ",a=i?" || ":" && ",o=i?"!":"",s=i?"":"!";switch(t){case"null":return e+r+"null";case"array":return o+"Array.isArray("+e+")";case"object":return"("+o+e+a+"typeof "+e+r+'"object"'+a+s+"Array.isArray("+e+"))";case"integer":return"(typeof "+e+r+'"number"'+a+s+"("+e+" % 1)"+a+e+r+e+(n?a+o+"isFinite("+e+")":"")+")";case"number":return"(typeof "+e+r+'"'+t+'"'+(n?a+o+"isFinite("+e+")":"")+")";default:return"typeof "+e+r+'"'+t+'"'}}function Sy(t,e,n){switch(t.length){case 1:return as(t[0],e,n,!0);default:var i="",r=os(t);r.array&&r.object&&(i=r.null?"(":"(!"+e+" || ",i+="typeof "+e+' !== "object")',delete r.null,delete r.array,delete r.object),r.number&&delete r.integer;for(var a in r)i+=(i?" && ":"")+as(a,e,n,!0);return i}}var Fp=os(["string","number","integer","boolean","null"]);function Iy(t,e){if(Array.isArray(e)){for(var n=[],i=0;i<e.length;i++){var r=e[i];(Fp[r]||t==="array"&&r==="array")&&(n[n.length]=r)}if(n.length)return n}else{if(Fp[e])return[e];if(t==="array"&&e==="array")return["array"]}}function os(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e}var wy=/^[a-z$_][a-z$_0-9]*$/i,Ey=/'|\\/g;function ss(t){return typeof t=="number"?"["+t+"]":wy.test(t)?"."+t:"['"+cs(t)+"']"}function cs(t){return t.replace(Ey,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function Py(t,e){e+="[^0-9]";var n=t.match(new RegExp(e,"g"));return n?n.length:0}function ky(t,e,n){return e+="([^0-9])",n=n.replace(/\$/g,"$$$$"),t.replace(new RegExp(e,"g"),n+"$1")}function Oy(t,e){if(typeof t=="boolean")return!t;for(var n in t)if(e[n])return!0}function zy(t,e,n){if(typeof t=="boolean")return!t&&n!="not";for(var i in t)if(i!=n&&e[i])return!0}function Ty(t,e){if(typeof t!="boolean"){for(var n in t)if(!e[n])return n}}function is(t){return"'"+cs(t)+"'"}function Ny(t,e,n,i){var r=n?"'/' + "+e+(i?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):i?"'[' + "+e+" + ']'":"'[\\'' + "+e+" + '\\']'";return Mp(t,r)}function jy(t,e,n){var i=is(n?"/"+us(e):ss(e));return Mp(t,i)}var Ry=/^\/(?:[^~]|~0|~1)*$/,Cy=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Dy(t,e,n){var i,r,a,o;if(t==="")return"rootData";if(t[0]=="/"){if(!Ry.test(t))throw new Error("Invalid JSON-pointer: "+t);r=t,a="rootData"}else{if(o=t.match(Cy),!o)throw new Error("Invalid JSON-pointer: "+t);if(i=+o[1],r=o[2],r=="#"){if(i>=e)throw new Error("Cannot access property/index "+i+" levels up, current level is "+e);return n[e-i]}if(i>e)throw new Error("Cannot access data "+i+" levels up, current level is "+e);if(a="data"+(e-i||""),!r)return a}for(var s=a,c=r.split("/"),d=0;d<c.length;d++){var m=c[d];m&&(a+=ss(ls(m)),s+=" && "+a)}return s}function Mp(t,e){return t=='""'?e:(t+" + "+e).replace(/([^\\])' \+ '/g,"$1")}function Uy(t){return ls(decodeURIComponent(t))}function Ay(t){return encodeURIComponent(us(t))}function us(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function ls(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}});var ds=te((Zb,Bp)=>{"use strict";var Zy=Vt();Bp.exports=Ly;function Ly(t){Zy.copy(t,this)}});var qp=te((Lb,Hp)=>{"use strict";var ht=Hp.exports=function(t,e,n){typeof e=="function"&&(n=e,e={}),n=e.cb||n;var i=typeof n=="function"?n:n.pre||function(){},r=n.post||function(){};oi(e,i,r,t,"",t)};ht.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};ht.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};ht.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};ht.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function oi(t,e,n,i,r,a,o,s,c,d){if(i&&typeof i=="object"&&!Array.isArray(i)){e(i,r,a,o,s,c,d);for(var m in i){var p=i[m];if(Array.isArray(p)){if(m in ht.arrayKeywords)for(var g=0;g<p.length;g++)oi(t,e,n,p[g],r+"/"+m+"/"+g,a,r,m,i,g)}else if(m in ht.propsKeywords){if(p&&typeof p=="object")for(var l in p)oi(t,e,n,p[l],r+"/"+m+"/"+Fy(l),a,r,m,i,l)}else(m in ht.keywords||t.allKeys&&!(m in ht.skipKeywords))&&oi(t,e,n,p,r+"/"+m,a,r,m,i)}n(i,r,a,o,s,c,d)}}function Fy(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var pi=te((Fb,Kp)=>{"use strict";var Jn=Up(),Gp=ii(),li=Vt(),si=ds(),My=qp();Kp.exports=gt;gt.normalizeId=vt;gt.fullPath=ci;gt.url=ui;gt.ids=Gy;gt.inlineRef=ps;gt.schema=di;function gt(t,e,n){var i=this._refs[n];if(typeof i=="string")if(this._refs[i])i=this._refs[i];else return gt.call(this,t,e,i);if(i=i||this._schemas[n],i instanceof si)return ps(i.schema,this._opts.inlineRefs)?i.schema:i.validate||this._compile(i);var r=di.call(this,e,n),a,o,s;return r&&(a=r.schema,e=r.root,s=r.baseId),a instanceof si?o=a.validate||t.call(this,a.schema,e,void 0,s):a!==void 0&&(o=ps(a,this._opts.inlineRefs)?a:t.call(this,a,e,void 0,s)),o}function di(t,e){var n=Jn.parse(e),i=Jp(n),r=ci(this._getId(t.schema));if(Object.keys(t.schema).length===0||i!==r){var a=vt(i),o=this._refs[a];if(typeof o=="string")return Vy.call(this,t,o,n);if(o instanceof si)o.validate||this._compile(o),t=o;else if(o=this._schemas[a],o instanceof si){if(o.validate||this._compile(o),a==vt(e))return{schema:o,root:t,baseId:r};t=o}else return;if(!t.schema)return;r=ci(this._getId(t.schema))}return Wp.call(this,n,r,t.schema,t)}function Vy(t,e,n){var i=di.call(this,t,e);if(i){var r=i.schema,a=i.baseId;t=i.root;var o=this._getId(r);return o&&(a=ui(a,o)),Wp.call(this,n,a,r,t)}}var By=li.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function Wp(t,e,n,i){if(t.fragment=t.fragment||"",t.fragment.slice(0,1)=="/"){for(var r=t.fragment.split("/"),a=1;a<r.length;a++){var o=r[a];if(o){if(o=li.unescapeFragment(o),n=n[o],n===void 0)break;var s;if(!By[o]&&(s=this._getId(n),s&&(e=ui(e,s)),n.$ref)){var c=ui(e,n.$ref),d=di.call(this,i,c);d&&(n=d.schema,i=d.root,e=d.baseId)}}}if(n!==void 0&&n!==i.schema)return{schema:n,root:i,baseId:e}}}var Hy=li.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function ps(t,e){if(e===!1)return!1;if(e===void 0||e===!0)return ms(t);if(e)return fs(t)<=e}function ms(t){var e;if(Array.isArray(t)){for(var n=0;n<t.length;n++)if(e=t[n],typeof e=="object"&&!ms(e))return!1}else for(var i in t)if(i=="$ref"||(e=t[i],typeof e=="object"&&!ms(e)))return!1;return!0}function fs(t){var e=0,n;if(Array.isArray(t)){for(var i=0;i<t.length;i++)if(n=t[i],typeof n=="object"&&(e+=fs(n)),e==1/0)return 1/0}else for(var r in t){if(r=="$ref")return 1/0;if(Hy[r])e++;else if(n=t[r],typeof n=="object"&&(e+=fs(n)+1),e==1/0)return 1/0}return e}function ci(t,e){e!==!1&&(t=vt(t));var n=Jn.parse(t);return Jp(n)}function Jp(t){return Jn.serialize(t).split("#")[0]+"#"}var qy=/#\/?$/;function vt(t){return t?t.replace(qy,""):""}function ui(t,e){return e=vt(e),Jn.resolve(t,e)}function Gy(t){var e=vt(this._getId(t)),n={"":e},i={"":ci(e,!1)},r={},a=this;return My(t,{allKeys:!0},function(o,s,c,d,m,p,g){if(s!==""){var l=a._getId(o),f=n[d],y=i[d]+"/"+m;if(g!==void 0&&(y+="/"+(typeof g=="number"?g:li.escapeFragment(g))),typeof l=="string"){l=f=vt(f?Jn.resolve(f,l):l);var v=a._refs[l];if(typeof v=="string"&&(v=a._refs[v]),v&&v.schema){if(!Gp(o,v.schema))throw new Error('id "'+l+'" resolves to more than one schema')}else if(l!=vt(y))if(l[0]=="#"){if(r[l]&&!Gp(o,r[l]))throw new Error('id "'+l+'" resolves to more than one schema');r[l]=o}else a._refs[l]=y}n[s]=f,i[s]=y}}),r}});var mi=te((Mb,Qp)=>{"use strict";var hs=pi();Qp.exports={Validation:Yp(Wy),MissingRef:Yp(vs)};function Wy(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0}vs.message=function(t,e){return"can't resolve reference "+e+" from id "+t};function vs(t,e,n){this.message=n||vs.message(t,e),this.missingRef=hs.url(t,e),this.missingSchema=hs.normalizeId(hs.fullPath(this.missingRef))}function Yp(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}});var gs=te((Vb,Xp)=>{"use strict";Xp.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var n=typeof e.cycles=="boolean"?e.cycles:!1,i=e.cmp&&function(a){return function(o){return function(s,c){var d={key:s,value:o[s]},m={key:c,value:o[c]};return a(d,m)}}}(e.cmp),r=[];return function a(o){if(o&&o.toJSON&&typeof o.toJSON=="function"&&(o=o.toJSON()),o!==void 0){if(typeof o=="number")return isFinite(o)?""+o:"null";if(typeof o!="object")return JSON.stringify(o);var s,c;if(Array.isArray(o)){for(c="[",s=0;s<o.length;s++)s&&(c+=","),c+=a(o[s])||"null";return c+"]"}if(o===null)return"null";if(r.indexOf(o)!==-1){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var d=r.push(o)-1,m=Object.keys(o).sort(i&&i(o));for(c="",s=0;s<m.length;s++){var p=m[s],g=a(o[p]);g&&(c&&(c+=","),c+=JSON.stringify(p)+":"+g)}return r.splice(d,1),"{"+c+"}"}}(t)}});var ys=te((Bb,em)=>{"use strict";em.exports=function(e,n,i){var r="",a=e.schema.$async===!0,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),s=e.self._getId(e.schema);if(e.opts.strictKeywords){var c=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(c){var d="unknown keyword: "+c;if(e.opts.strictKeywords==="log")e.logger.warn(d);else throw new Error(d)}}if(e.isTop&&(r+=" var validate = ",a&&(e.async=!0,r+="async "),r+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",s&&(e.opts.sourceCode||e.opts.processCode)&&(r+=" "+("/*# sourceURL="+s+" */")+" ")),typeof e.schema=="boolean"||!(o||e.schema.$ref)){var n="false schema",m=e.level,p=e.dataLevel,g=e.schema[n],l=e.schemaPath+e.util.getProperty(n),f=e.errSchemaPath+"/"+n,N=!e.opts.allErrors,q,y="data"+(p||""),O="valid"+m;if(e.schema===!1){e.isTop?N=!0:r+=" var "+O+" = false; ";var v=v||[];v.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(q||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: 'boolean schema is false' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),r+=" } "):r+=" {} ";var $=r;r=v.pop(),!e.compositeRule&&N?e.async?r+=" throw new ValidationError(["+$+"]); ":r+=" validate.errors = ["+$+"]; return false; ":r+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?a?r+=" return data; ":r+=" validate.errors = null; return true; ":r+=" var "+O+" = true; ";return e.isTop&&(r+=" }; return validate; "),r}if(e.isTop){var P=e.isTop,m=e.level=0,p=e.dataLevel=0,y="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var I="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(I);else throw new Error(I)}r+=" var vErrors = null; ",r+=" var errors = 0; ",r+=" if (rootData === undefined) rootData = data; "}else{var m=e.level,p=e.dataLevel,y="data"+(p||"");if(s&&(e.baseId=e.resolve.url(e.baseId,s)),a&&!e.async)throw new Error("async schema in sync schema");r+=" var errs_"+m+" = errors;"}var O="valid"+m,N=!e.opts.allErrors,R="",J="",q,U=e.schema.type,G=Array.isArray(U);if(U&&e.opts.nullable&&e.schema.nullable===!0&&(G?U.indexOf("null")==-1&&(U=U.concat("null")):U!="null"&&(U=[U,"null"],G=!0)),G&&U.length==1&&(U=U[0],G=!1),e.schema.$ref&&o){if(e.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');e.opts.extendRefs!==!0&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(r+=" "+e.RULES.all.$comment.code(e,"$comment")),U){if(e.opts.coerceTypes)var H=e.util.coerceToTypes(e.opts.coerceTypes,U);var V=e.RULES.types[U];if(H||G||V===!0||V&&!qe(V)){var l=e.schemaPath+".type",f=e.errSchemaPath+"/type",l=e.schemaPath+".type",f=e.errSchemaPath+"/type",j=G?"checkDataTypes":"checkDataType";if(r+=" if ("+e.util[j](U,y,e.opts.strictNumbers,!0)+") { ",H){var A="dataType"+m,B="coerced"+m;r+=" var "+A+" = typeof "+y+"; var "+B+" = undefined; ",e.opts.coerceTypes=="array"&&(r+=" if ("+A+" == 'object' && Array.isArray("+y+") && "+y+".length == 1) { "+y+" = "+y+"[0]; "+A+" = typeof "+y+"; if ("+e.util.checkDataType(e.schema.type,y,e.opts.strictNumbers)+") "+B+" = "+y+"; } "),r+=" if ("+B+" !== undefined) ; ";var xe=H;if(xe)for(var le,pe=-1,ce=xe.length-1;pe<ce;)le=xe[pe+=1],le=="string"?r+=" else if ("+A+" == 'number' || "+A+" == 'boolean') "+B+" = '' + "+y+"; else if ("+y+" === null) "+B+" = ''; ":le=="number"||le=="integer"?(r+=" else if ("+A+" == 'boolean' || "+y+" === null || ("+A+" == 'string' && "+y+" && "+y+" == +"+y+" ",le=="integer"&&(r+=" && !("+y+" % 1)"),r+=")) "+B+" = +"+y+"; "):le=="boolean"?r+=" else if ("+y+" === 'false' || "+y+" === 0 || "+y+" === null) "+B+" = false; else if ("+y+" === 'true' || "+y+" === 1) "+B+" = true; ":le=="null"?r+=" else if ("+y+" === '' || "+y+" === 0 || "+y+" === false) "+B+" = null; ":e.opts.coerceTypes=="array"&&le=="array"&&(r+=" else if ("+A+" == 'string' || "+A+" == 'number' || "+A+" == 'boolean' || "+y+" == null) "+B+" = ["+y+"]; ");r+=" else { ";var v=v||[];v.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(q||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",G?r+=""+U.join(","):r+=""+U,r+="' } ",e.opts.messages!==!1&&(r+=" , message: 'should be ",G?r+=""+U.join(","):r+=""+U,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),r+=" } "):r+=" {} ";var $=r;r=v.pop(),!e.compositeRule&&N?e.async?r+=" throw new ValidationError(["+$+"]); ":r+=" validate.errors = ["+$+"]; return false; ":r+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } if ("+B+" !== undefined) { ";var K=p?"data"+(p-1||""):"parentData",Ne=p?e.dataPathArr[p]:"parentDataProperty";r+=" "+y+" = "+B+"; ",p||(r+="if ("+K+" !== undefined)"),r+=" "+K+"["+Ne+"] = "+B+"; } "}else{var v=v||[];v.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(q||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",G?r+=""+U.join(","):r+=""+U,r+="' } ",e.opts.messages!==!1&&(r+=" , message: 'should be ",G?r+=""+U.join(","):r+=""+U,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),r+=" } "):r+=" {} ";var $=r;r=v.pop(),!e.compositeRule&&N?e.async?r+=" throw new ValidationError(["+$+"]); ":r+=" validate.errors = ["+$+"]; return false; ":r+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } "}}if(e.schema.$ref&&!o)r+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",N&&(r+=" } if (errors === ",P?r+="0":r+="errs_"+m,r+=") { ",J+="}");else{var We=e.RULES;if(We){for(var V,Ye=-1,ve=We.length-1;Ye<ve;)if(V=We[Ye+=1],qe(V)){if(V.type&&(r+=" if ("+e.util.checkDataType(V.type,y,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(V.type=="object"&&e.schema.properties){var g=e.schema.properties,Ae=Object.keys(g),He=Ae;if(He)for(var Qe,ct=-1,qr=He.length-1;ct<qr;){Qe=He[ct+=1];var Ze=g[Qe];if(Ze.default!==void 0){var je=y+e.util.getProperty(Qe);if(e.compositeRule){if(e.opts.strictDefaults){var I="default is ignored for: "+je;if(e.opts.strictDefaults==="log")e.logger.warn(I);else throw new Error(I)}}else r+=" if ("+je+" === undefined ",e.opts.useDefaults=="empty"&&(r+=" || "+je+" === null || "+je+" === '' "),r+=" ) "+je+" = ",e.opts.useDefaults=="shared"?r+=" "+e.useDefault(Ze.default)+" ":r+=" "+JSON.stringify(Ze.default)+" ",r+="; "}}}else if(V.type=="array"&&Array.isArray(e.schema.items)){var bt=e.schema.items;if(bt){for(var Ze,pe=-1,Je=bt.length-1;pe<Je;)if(Ze=bt[pe+=1],Ze.default!==void 0){var je=y+"["+pe+"]";if(e.compositeRule){if(e.opts.strictDefaults){var I="default is ignored for: "+je;if(e.opts.strictDefaults==="log")e.logger.warn(I);else throw new Error(I)}}else r+=" if ("+je+" === undefined ",e.opts.useDefaults=="empty"&&(r+=" || "+je+" === null || "+je+" === '' "),r+=" ) "+je+" = ",e.opts.useDefaults=="shared"?r+=" "+e.useDefault(Ze.default)+" ":r+=" "+JSON.stringify(Ze.default)+" ",r+="; "}}}}var ye=V.rules;if(ye){for(var ut,Gr=-1,$t=ye.length-1;Gr<$t;)if(ut=ye[Gr+=1],vr(ut)){var St=ut.code(e,ut.keyword,V.type);St&&(r+=" "+St+" ",N&&(R+="}"))}}if(N&&(r+=" "+R+" ",R=""),V.type&&(r+=" } ",U&&U===V.type&&!H)){r+=" else { ";var l=e.schemaPath+".type",f=e.errSchemaPath+"/type",v=v||[];v.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(q||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",G?r+=""+U.join(","):r+=""+U,r+="' } ",e.opts.messages!==!1&&(r+=" , message: 'should be ",G?r+=""+U.join(","):r+=""+U,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),r+=" } "):r+=" {} ";var $=r;r=v.pop(),!e.compositeRule&&N?e.async?r+=" throw new ValidationError(["+$+"]); ":r+=" validate.errors = ["+$+"]; return false; ":r+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } "}N&&(r+=" if (errors === ",P?r+="0":r+="errs_"+m,r+=") { ",J+="}")}}}N&&(r+=" "+J+" "),P?(a?(r+=" if (errors === 0) return data; ",r+=" else throw new ValidationError(vErrors); "):(r+=" validate.errors = vErrors; ",r+=" return errors === 0; "),r+=" }; return validate;"):r+=" var "+O+" = errors === errs_"+m+";";function qe(Xe){for(var Tr=Xe.rules,ur=0;ur<Tr.length;ur++)if(vr(Tr[ur]))return!0}function vr(Xe){return e.schema[Xe.keyword]!==void 0||Xe.implements&&tr(Xe)}function tr(Xe){for(var Tr=Xe.implements,ur=0;ur<Tr.length;ur++)if(e.schema[Tr[ur]]!==void 0)return!0}return r}});var im=te((Hb,am)=>{"use strict";var fi=pi(),vi=Vt(),tm=mi(),Jy=gs(),rm=ys(),Ky=vi.ucs2length,Yy=ii(),Qy=tm.Validation;am.exports=_s;function _s(t,e,n,i){var r=this,a=this._opts,o=[void 0],s={},c=[],d={},m=[],p={},g=[];e=e||{schema:t,refVal:o,refs:s};var l=Xy.call(this,t,e,i),f=this._compilations[l.index];if(l.compiling)return f.callValidate=I;var y=this._formats,v=this.RULES;try{var $=O(t,e,n,i);f.validate=$;var P=f.callValidate;return P&&(P.schema=$.schema,P.errors=null,P.refs=$.refs,P.refVal=$.refVal,P.root=$.root,P.$async=$.$async,a.sourceCode&&(P.source=$.source)),$}finally{e_.call(this,t,e,i)}function I(){var j=f.validate,A=j.apply(this,arguments);return I.errors=j.errors,A}function O(j,A,B,xe){var le=!A||A&&A.schema==j;if(A.schema!=e.schema)return _s.call(r,j,A,B,xe);var pe=j.$async===!0,ce=rm({isTop:!0,schema:j,isRoot:le,baseId:xe,root:A,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:tm.MissingRef,RULES:v,validate:rm,util:vi,resolve:fi,resolveRef:N,usePattern:G,useDefault:H,useCustomRule:V,opts:a,formats:y,logger:r.logger,self:r});ce=hi(o,n_)+hi(c,r_)+hi(m,t_)+hi(g,a_)+ce,a.processCode&&(ce=a.processCode(ce,j));var K;try{var Ne=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",ce);K=Ne(r,v,y,e,o,m,g,Yy,Ky,Qy),o[0]=K}catch(We){throw r.logger.error("Error compiling schema, function code:",ce),We}return K.schema=j,K.errors=null,K.refs=s,K.refVal=o,K.root=le?K:A,pe&&(K.$async=!0),a.sourceCode===!0&&(K.source={code:ce,patterns:c,defaults:m}),K}function N(j,A,B){A=fi.url(j,A);var xe=s[A],le,pe;if(xe!==void 0)return le=o[xe],pe="refVal["+xe+"]",U(le,pe);if(!B&&e.refs){var ce=e.refs[A];if(ce!==void 0)return le=e.refVal[ce],pe=R(A,le),U(le,pe)}pe=R(A);var K=fi.call(r,O,e,A);if(K===void 0){var Ne=n&&n[A];Ne&&(K=fi.inlineRef(Ne,a.inlineRefs)?Ne:_s.call(r,Ne,e,n,j))}if(K===void 0)J(A);else return q(A,K),U(K,pe)}function R(j,A){var B=o.length;return o[B]=A,s[j]=B,"refVal"+B}function J(j){delete s[j]}function q(j,A){var B=s[j];o[B]=A}function U(j,A){return typeof j=="object"||typeof j=="boolean"?{code:A,schema:j,inline:!0}:{code:A,$async:j&&!!j.$async}}function G(j){var A=d[j];return A===void 0&&(A=d[j]=c.length,c[A]=j),"pattern"+A}function H(j){switch(typeof j){case"boolean":case"number":return""+j;case"string":return vi.toQuotedString(j);case"object":if(j===null)return"null";var A=Jy(j),B=p[A];return B===void 0&&(B=p[A]=m.length,m[B]=j),"default"+B}}function V(j,A,B,xe){if(r._opts.validateSchema!==!1){var le=j.definition.dependencies;if(le&&!le.every(function(He){return Object.prototype.hasOwnProperty.call(B,He)}))throw new Error("parent schema must have all required keywords: "+le.join(","));var pe=j.definition.validateSchema;if(pe){var ce=pe(A);if(!ce){var K="keyword schema is invalid: "+r.errorsText(pe.errors);if(r._opts.validateSchema=="log")r.logger.error(K);else throw new Error(K)}}}var Ne=j.definition.compile,We=j.definition.inline,Ye=j.definition.macro,ve;if(Ne)ve=Ne.call(r,A,B,xe);else if(Ye)ve=Ye.call(r,A,B,xe),a.validateSchema!==!1&&r.validateSchema(ve,!0);else if(We)ve=We.call(r,xe,j.keyword,A,B);else if(ve=j.definition.validate,!ve)return;if(ve===void 0)throw new Error('custom keyword "'+j.keyword+'"failed to compile');var Ae=g.length;return g[Ae]=ve,{code:"customRule"+Ae,validate:ve}}}function Xy(t,e,n){var i=nm.call(this,t,e,n);return i>=0?{index:i,compiling:!0}:(i=this._compilations.length,this._compilations[i]={schema:t,root:e,baseId:n},{index:i,compiling:!1})}function e_(t,e,n){var i=nm.call(this,t,e,n);i>=0&&this._compilations.splice(i,1)}function nm(t,e,n){for(var i=0;i<this._compilations.length;i++){var r=this._compilations[i];if(r.schema==t&&r.root==e&&r.baseId==n)return i}return-1}function r_(t,e){return"var pattern"+t+" = new RegExp("+vi.toQuotedString(e[t])+");"}function t_(t){return"var default"+t+" = defaults["+t+"];"}function n_(t,e){return e[t]===void 0?"":"var refVal"+t+" = refVal["+t+"];"}function a_(t){return"var customRule"+t+" = customRules["+t+"];"}function hi(t,e){if(!t.length)return"";for(var n="",i=0;i<t.length;i++)n+=e(i,t);return n}});var sm=te((qb,om)=>{"use strict";var gi=om.exports=function(){this._cache={}};gi.prototype.put=function(e,n){this._cache[e]=n};gi.prototype.get=function(e){return this._cache[e]};gi.prototype.del=function(e){delete this._cache[e]};gi.prototype.clear=function(){this._cache={}}});var _m=te((Gb,ym)=>{"use strict";var i_=Vt(),o_=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,s_=[0,31,28,31,30,31,30,31,31,30,31,30,31],c_=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,cm=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,u_=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d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\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,dm=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,pm=/^(?:\/(?:[^~/]|~0|~1)*)*$/,mm=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,fm=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;ym.exports=yi;function yi(t){return t=t=="full"?"full":"fast",i_.copy(yi[t])}yi.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":um,url:lm,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:cm,ipv4:/^(?:(?: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